当前位置: 首页>>代码示例>>C++>>正文


C++ WMT_WARN_FUNC函数代码示例

本文整理汇总了C++中WMT_WARN_FUNC函数的典型用法代码示例。如果您正苦于以下问题:C++ WMT_WARN_FUNC函数的具体用法?C++ WMT_WARN_FUNC怎么用?C++ WMT_WARN_FUNC使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了WMT_WARN_FUNC函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: mtk_wcn_cmb_hw_deinit

INT32 mtk_wcn_cmb_hw_deinit(VOID)
{
	WMT_WARN_FUNC
	    ("mtk_wcn_cmb_hw_deinit start, set to default hw init sequence parameters\n");
	gPwrSeqTime.ldoStableTime = DFT_LDO_STABLE_TIME;
	gPwrSeqTime.offStableTime = DFT_OFF_STABLE_TIME;
	gPwrSeqTime.onStableTime = DFT_ON_STABLE_TIME;
	gPwrSeqTime.rstStableTime = DFT_RST_STABLE_TIME;
	gPwrSeqTime.rtcStableTime = DFT_RTC_STABLE_TIME;
	WMT_WARN_FUNC("mtk_wcn_cmb_hw_deinit finish\n");
	return 0;
}
开发者ID:Galland,项目名称:mt6620,代码行数:12,代码来源:mtk_wcn_cmb_hw.c

示例2: wmt_ctrl_tx_ex

INT32
wmt_ctrl_tx_ex (
    const UINT8 *pData,
    const UINT32 size,
    UINT32 *writtenSize,
    const MTK_WCN_BOOL bRawFlag
    )
{
    P_DEV_WMT pDev = &gDevWmt; /* single instance */
    INT32 iRet;

    if (NULL != writtenSize) {
        *writtenSize = 0;
    }

    /* sanity check */
    if (0 == size) {
        WMT_WARN_FUNC("size to tx is 0\n");
        osal_assert(size);
        return -1;
    }

    /* if STP is not enabled yet, can't use this function. Use tx_raw instead */
    if ( !osal_test_bit(WMT_STAT_STP_OPEN, &pDev->state) ||
        !osal_test_bit(WMT_STAT_STP_EN, &pDev->state) ) {
        WMT_ERR_FUNC("wmt state(0x%lx) \n", pDev->state);
        osal_assert(osal_test_bit(WMT_STAT_STP_EN, &pDev->state));
        osal_assert(osal_test_bit(WMT_STAT_STP_OPEN, &pDev->state));
        return -2;
    }

    /* sanity ok, proceeding tx operation */
    /*retval = mtk_wcn_stp_send_data(data, size, WMTDRV_TYPE_WMT);*/
    mtk_wcn_stp_flush_rx_queue(WMT_TASK_INDX);
    if (bRawFlag) {
        iRet = mtk_wcn_stp_send_data_raw(pData, size, WMT_TASK_INDX);
    }
    else {
        iRet = mtk_wcn_stp_send_data(pData, size, WMT_TASK_INDX);
    }

    if (iRet != size){
        WMT_WARN_FUNC("write(%d) written(%d)\n", size, iRet);
        osal_assert(iRet == size);
    }

    if (writtenSize) {
        *writtenSize = iRet;
    }

    return 0;

}
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:53,代码来源:wmt_ctrl.c

示例3: mtk_wcn_wmt_func_ctrl

static MTK_WCN_BOOL
mtk_wcn_wmt_func_ctrl (
    ENUM_WMTDRV_TYPE_T type,
    ENUM_WMT_OPID_T opId
    )
{
    P_OSAL_OP pOp;
    MTK_WCN_BOOL bRet;
    P_OSAL_SIGNAL pSignal;

    pOp = wmt_lib_get_free_op();
    if (!pOp) {
        WMT_WARN_FUNC("get_free_lxop fail\n");
        return MTK_WCN_BOOL_FALSE;
    }
    
    pSignal = &pOp->signal;

    pOp->op.opId = opId;
    pOp->op.au4OpData[0] = type;
    pSignal->timeoutValue= (WMT_OPID_FUNC_ON == pOp->op.opId) ? MAX_FUNC_ON_TIME : MAX_FUNC_OFF_TIME;

    WMT_INFO_FUNC("OPID(%d) type(%d) start\n",
            pOp->op.opId,
            pOp->op.au4OpData[0]);

    /*do not check return value, we will do this either way*/
    wmt_lib_host_awake_get();
    /*wake up chip first*/
    if (DISABLE_PSM_MONITOR()) {
        WMT_ERR_FUNC("wake up failed\n");
        wmt_lib_put_op_to_free_queue(pOp);
        return MTK_WCN_BOOL_FALSE;
    }
    
    bRet = wmt_lib_put_act_op(pOp);
    ENABLE_PSM_MONITOR();
    wmt_lib_host_awake_put();
    
    if (MTK_WCN_BOOL_FALSE == bRet) {
        WMT_WARN_FUNC("OPID(%d) type(%d) fail\n",
            pOp->op.opId,
            pOp->op.au4OpData[0]);
    }
    else{ 
        WMT_INFO_FUNC("OPID(%d) type(%d) ok\n",
            pOp->op.opId,
            pOp->op.au4OpData[0]);
    }
    return bRet;
}
开发者ID:SteveHuang27,项目名称:android_kernel_allview_p5_quad,代码行数:51,代码来源:wmt_exp.c

示例4: wmt_plat_eirq_ctrl

INT32
wmt_plat_eirq_ctrl (
    ENUM_PIN_ID id,
    ENUM_PIN_STATE state
    )
{
    INT32 iRet = 0;
    // TODO: [ChangeFeature][GeorgeKuo]: use another function to handle this, as done in gpio_ctrls

    if ( (PIN_STA_INIT != state )
        && (PIN_STA_DEINIT != state )
        && (PIN_STA_EINT_EN != state )
        && (PIN_STA_EINT_DIS != state ) ) {
        iRet = -1;
        WMT_WARN_FUNC("WMT-PLAT:invalid PIN_STATE(%d) in eirq_ctrl for PIN(%d), ret(%d) \n", state, id, iRet);
        return iRet;
    }

    switch (id) {
    case PIN_BGF_EINT:
        if (PIN_STA_INIT == state) {
			iRet = request_irq(g_bgf_irq, bgf_irq_handler,  IRQF_TRIGGER_LOW | IRQF_DISABLED, "MTK6620_BT", NULL);
			if (iRet) {
				WMT_INFO_FUNC("WMT-PLAT: request IRQ fail for BGF IRQ : %d\n", g_bgf_irq);
			} else {
           		enable_irq_wake(g_bgf_irq);
			}
			WMT_INFO_FUNC("WMT-PLAT:BGF Int requested...%s, iRet=%d\n", iRet?"fail":"success.", iRet);
        } else if (PIN_STA_EINT_EN == state) {
		   	enable_irq(g_bgf_irq);
        } else if (PIN_STA_EINT_DIS == state) {
		   	disable_irq_nosync(g_bgf_irq);
        } else {
           	disable_irq_wake(g_bgf_irq);
            free_irq(g_bgf_irq,NULL);
            WMT_INFO_FUNC("WMT-PLAT:BGFInt (deinit) \n");
        }
        break;

    case PIN_ALL_EINT:
		break;
	case PIN_WIFI_EINT:
		break;
	default:
        WMT_WARN_FUNC("WMT-PLAT:unsupported EIRQ(PIN_ID:%d) in eirq_ctrl\n", id);
        break;
    }

    return iRet;
}
开发者ID:Dee-UK,项目名称:RK3188_KK_4.4.02_Beta,代码行数:50,代码来源:wmt_plat.c

示例5: wmt_plat_gps_lna_ctrl

static INT32
wmt_plat_gps_lna_ctrl (
        ENUM_PIN_STATE state
        )
{
    switch (state) {
    case PIN_STA_INIT:
		aml_gpio_enable_mtk (MTK_GPS_LNA);
    case PIN_STA_DEINIT:
    /*set GPS_LNA GPIO to GPIO mode, pull disable,output low*/
		aml_gpio_init_configure_mtk(MTK_GPS_LNA,0);
		aml_gpio_input_mtk(MTK_GPS_LNA);
        break;
    case PIN_STA_OUT_H:
    /*set GPS_LNA GPIO to GPIO mode, pull disable,output high*/
		aml_gpio_init_configure_mtk(MTK_GPS_LNA,1);
        break;
    case PIN_STA_OUT_L:
    /*set GPS_LNA GPIO to GPIO mode, pull disable,output low*/
		aml_gpio_init_configure_mtk(MTK_GPS_LNA,0);
        break;

    default:
        WMT_WARN_FUNC("%d mode not defined for  gps lna pin !!!\n", state);
        break;
    }
    return 0;

}
开发者ID:32743069,项目名称:amlogic_common_3050,代码行数:29,代码来源:wmt_plat_meson6.c

示例6: mtk_wcn_cmb_hw_init

INT32
mtk_wcn_cmb_hw_init (
    P_PWR_SEQ_TIME pPwrSeqTime
    )
{
    if (NULL != pPwrSeqTime            && 
        pPwrSeqTime->ldoStableTime > 0 &&
        pPwrSeqTime->rtcStableTime > 0 &&
        pPwrSeqTime->offStableTime > DFT_OFF_STABLE_TIME &&
        pPwrSeqTime->onStableTime  > DFT_ON_STABLE_TIME  &&
        pPwrSeqTime->rstStableTime > DFT_RST_STABLE_TIME
    ) {
        /*memcpy may be more performance*/
        WMT_DBG_FUNC("setting hw init sequence parameters\n");
        osal_memcpy(&gPwrSeqTime, pPwrSeqTime, osal_sizeof(gPwrSeqTime));
    }
    else {    
        WMT_WARN_FUNC("invalid pPwrSeqTime parameter, use default hw init sequence parameters\n");
        gPwrSeqTime.ldoStableTime = DFT_LDO_STABLE_TIME;
        gPwrSeqTime.offStableTime = DFT_OFF_STABLE_TIME;
        gPwrSeqTime.onStableTime = DFT_ON_STABLE_TIME;
        gPwrSeqTime.rstStableTime = DFT_RST_STABLE_TIME;
        gPwrSeqTime.rtcStableTime = DFT_RTC_STABLE_TIME;
    }
    mtk_wcn_cmb_hw_dmp_seq();
    return 0;
}
开发者ID:ChangYX,项目名称:Linux3188,代码行数:27,代码来源:mtk_wcn_cmb_hw_6620.c

示例7: wmt_plat_pwr_ctrl

INT32 wmt_plat_pwr_ctrl(ENUM_FUNC_STATE state)
{
	INT32 ret = -1;

	switch (state) {
	case FUNC_ON:
/* TODO:[ChangeFeature][George] always output this or by request throuth /proc or sysfs? */
		wmt_plat_dump_pin_conf();
		ret = mtk_wcn_cmb_hw_pwr_on();
		break;

	case FUNC_OFF:
		ret = mtk_wcn_cmb_hw_pwr_off();
		break;

	case FUNC_RST:
		ret = mtk_wcn_cmb_hw_rst();
		break;

	default:
		WMT_WARN_FUNC
		    ("WMT-PLAT:Warnning, invalid state(%d) in pwr_ctrl\n",
		     state);
		break;
	}

	return ret;
}
开发者ID:Galland,项目名称:mt6620,代码行数:28,代码来源:wmt_plat_sample.c

示例8: wmt_plat_ldo_ctrl

INT32 wmt_plat_ldo_ctrl(ENUM_PIN_STATE state)
{
	switch (state) {
	case PIN_STA_INIT:
/*set to gpio output low, disable pull*/
		WMT_DBG_FUNC("WMT-PLAT:LDO init (out 0) \n");
		break;

	case PIN_STA_OUT_H:
		WMT_DBG_FUNC("WMT-PLAT:LDO (out 1) \n");
		break;

	case PIN_STA_OUT_L:
		WMT_DBG_FUNC("WMT-PLAT:LDO (out 0) \n");
		break;

	case PIN_STA_IN_L:
	case PIN_STA_DEINIT:
/*set to gpio input low, pull down enable*/
		WMT_DBG_FUNC("WMT-PLAT:LDO deinit (in pd) \n");
		break;

	default:
		WMT_WARN_FUNC("WMT-PLAT:Warnning, invalid state(%d) on LDO\n",
			      state);
		break;
	}
	return 0;
}
开发者ID:Galland,项目名称:mt6620,代码行数:29,代码来源:wmt_plat_sample.c

示例9: wmt_plat_all_eint_ctrl

INT32 wmt_plat_all_eint_ctrl(ENUM_PIN_STATE state)
{
	switch (state) {
	case PIN_STA_INIT:
/*set to gpio input low, pull down eanble*/
		WMT_DBG_FUNC("WMT-PLAT:ALLInt init(in pd) \n");
		break;

	case PIN_STA_MUX:
/*set to gpio EINT mode, pull down enable*/
		break;

	case PIN_STA_IN_L:
	case PIN_STA_DEINIT:
/*set to gpio input low, pull down enable*/
		break;

	default:
		WMT_WARN_FUNC
		    ("WMT-PLAT:Warnning, invalid state(%d) on ALL EINT\n",
		     state);
		break;
	}
	return 0;
}
开发者ID:Galland,项目名称:mt6620,代码行数:25,代码来源:wmt_plat_sample.c

示例10: wmt_plat_uart_ctrl

INT32 wmt_plat_uart_ctrl(ENUM_PIN_STATE state)
{
    switch(state)
    {
    case PIN_STA_MUX:
    case PIN_STA_INIT:
        mt_set_gpio_mode(GPIO_COMBO_URXD_PIN, GPIO_COMBO_URXD_PIN_M_URXD);
        mt_set_gpio_mode(GPIO_COMBO_UTXD_PIN, GPIO_COMBO_UTXD_PIN_M_UTXD);
        WMT_DBG_FUNC("WMT-PLAT:UART init (mode_01, uart) \n");
        break;
    case PIN_STA_IN_L:
    case PIN_STA_DEINIT:
        mt_set_gpio_mode(GPIO_COMBO_URXD_PIN, GPIO_COMBO_URXD_PIN_M_GPIO);
        mt_set_gpio_dir(GPIO_COMBO_URXD_PIN, GPIO_DIR_OUT);
        mt_set_gpio_out(GPIO_COMBO_URXD_PIN, GPIO_OUT_ZERO);

        mt_set_gpio_mode(GPIO_COMBO_UTXD_PIN, GPIO_COMBO_UTXD_PIN_M_GPIO);
        mt_set_gpio_dir(GPIO_COMBO_UTXD_PIN, GPIO_DIR_OUT);
        mt_set_gpio_out(GPIO_COMBO_UTXD_PIN, GPIO_OUT_ZERO);
        WMT_DBG_FUNC("WMT-PLAT:UART deinit (out 0) \n");
        break;
	case PIN_STA_IN_PU:
		mt_set_gpio_mode(GPIO_COMBO_URXD_PIN, GPIO_COMBO_URXD_PIN_M_GPIO);
		mt_set_gpio_dir(GPIO_COMBO_URXD_PIN, GPIO_DIR_IN);
		mt_set_gpio_pull_enable(GPIO_COMBO_URXD_PIN, GPIO_PULL_ENABLE);
        mt_set_gpio_pull_select(GPIO_COMBO_URXD_PIN, GPIO_PULL_UP);
        
		
    default:
        WMT_WARN_FUNC("WMT-PLAT:Warnning, invalid state(%d) on UART Group\n", state);
        break;
    }

    return 0;
}
开发者ID:KhioGie,项目名称:imo_s88_kk,代码行数:35,代码来源:wmt_plat_alps.c

示例11: wmt_plat_i2s_ctrl

INT32 wmt_plat_i2s_ctrl(ENUM_PIN_STATE state)
{
#ifndef FM_ANALOG_INPUT
	switch (state) {
	case PIN_STA_INIT:
	case PIN_STA_MUX:
/*set to I2S function*/
		WMT_DBG_FUNC("WMT-PLAT:I2S init \n");
		break;
	case PIN_STA_IN_L:
	case PIN_STA_DEINIT:
/*set to gpio input low, pull down enable*/
		WMT_DBG_FUNC("WMT-PLAT:I2S deinit (out 0) \n");
		break;
	default:
		WMT_WARN_FUNC
		    ("WMT-PLAT:Warnning, invalid state(%d) on I2S Group\n",
		     state);
		break;
	}
#else
	WMT_INFO_FUNC
	    ("[MT6620]warnning:FM analog mode is set, no I2S GPIO settings should be modified by combo driver\n");
#endif

	return 0;
}
开发者ID:Galland,项目名称:mt6620,代码行数:27,代码来源:wmt_plat_sample.c

示例12: wmt_ctrl_stp_conf

INT32  wmt_ctrl_stp_conf(P_WMT_CTRL_DATA pWmtCtrlData)
{
    INT32 iRet = -1;
    P_DEV_WMT pDev = &gDevWmt; /* single instance */
    UINT32 type;
    UINT32 value;
    if (!osal_test_bit(WMT_STAT_STP_OPEN, &pDev->state)) {
        WMT_WARN_FUNC("CTRL_STP_ENABLE but invalid Handle of WmtStp \n");
        return -1;
    }

    type = pWmtCtrlData->au4CtrlData[0];
    value = pWmtCtrlData->au4CtrlData[1];
    iRet = wmt_ctrl_stp_conf_ex(type, value);

    if (!iRet) {
        if (WMT_STP_CONF_EN == type) {
            if (value) {
                osal_set_bit(WMT_STAT_STP_EN, &pDev->state);
                WMT_DBG_FUNC("enable STP\n");
            }
            else {
                osal_clear_bit(WMT_STAT_STP_EN, &pDev->state);
                WMT_DBG_FUNC("disable STP\n");
            }
        }
    }

    return iRet;
}
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:30,代码来源:wmt_ctrl.c

示例13: WMT_write

ssize_t WMT_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
{
	INT32 iRet = 0;
	UINT8 wrBuf[NAME_MAX + 1] = { 0 };
	INT32 copySize = (count < NAME_MAX) ? count : NAME_MAX;

	WMT_LOUD_FUNC("count:%d copySize:%d\n", count, copySize);

	if (copySize > 0) {
		if (copy_from_user(wrBuf, buf, copySize)) {
			iRet = -EFAULT;
			goto write_done;
		}
		iRet = copySize;
		wrBuf[NAME_MAX] = '\0';

		if (!strncasecmp(wrBuf, "ok", NAME_MAX)) {
			WMT_DBG_FUNC("resp str ok\n");
			/* pWmtDevCtx->cmd_result = 0; */
			wmt_lib_trigger_cmd_signal(0);
		} else {
			WMT_WARN_FUNC("warning resp str (%s)\n", wrBuf);
			/* pWmtDevCtx->cmd_result = -1; */
			wmt_lib_trigger_cmd_signal(-1);
		}
		/* complete(&pWmtDevCtx->cmd_comp); */

	}

 write_done:
	return iRet;
}
开发者ID:AudioGod,项目名称:MediaTek-HelioX10-Kernel,代码行数:32,代码来源:wmt_dev.c

示例14: WMT_open

static int WMT_open(struct inode *inode, struct file *file)
{
    long ret;

    WMT_INFO_FUNC("major %d minor %d (pid %d)\n",
        imajor(inode),
        iminor(inode),
        current->pid
        );

    ret = wait_event_timeout(gWmtInitWq,
        gWmtInitDone != 0,
        msecs_to_jiffies(WMT_DEV_INIT_TO_MS));

    if (!ret) {
        WMT_WARN_FUNC("wait wmt init timeout (%d)ms (%d)jiffies, return -EIO\n",
            WMT_DEV_INIT_TO_MS, msecs_to_jiffies(WMT_DEV_INIT_TO_MS));
        return -EIO;
    }

    if (atomic_inc_return(&gWmtRefCnt) == 1) {
        WMT_INFO_FUNC("1st call (%d)\n", ret);
    }

    return 0;
}
开发者ID:BPI-SINOVOIP,项目名称:BPI-M2-bsp,代码行数:26,代码来源:wmt_dev.c

示例15: wmt_ctrl_host_baudrate_set

INT32  wmt_ctrl_host_baudrate_set(P_WMT_CTRL_DATA pWmtCtrlData)
{
    INT32 iRet = -1;
    char cmdStr[NAME_MAX + 1] = {0};
    UINT32 u4Baudrate = pWmtCtrlData->au4CtrlData[0];
    UINT32 u4FlowCtrl = pWmtCtrlData->au4CtrlData[1];

    WMT_DBG_FUNC("baud(%d), flowctrl(%d) \n", u4Baudrate, u4FlowCtrl);

    if (osal_test_bit(WMT_STAT_STP_OPEN, &gDevWmt.state)) {
        osal_snprintf(cmdStr, NAME_MAX, "baud_%d_%d", u4Baudrate, u4FlowCtrl);
        iRet = wmt_ctrl_ul_cmd(&gDevWmt, cmdStr);
    if (iRet) {
        WMT_WARN_FUNC("CTRL_BAUDRATE baud(%d), flowctrl(%d) fail(%d) \n",
            u4Baudrate,
            pWmtCtrlData->au4CtrlData[1],
            iRet);
        }
    else {
        WMT_DBG_FUNC("CTRL_BAUDRATE baud(%d), flowctrl(%d) ok\n",
        u4Baudrate,
        u4FlowCtrl);
        }
    }
    else {
        WMT_INFO_FUNC("CTRL_BAUDRATE but invalid Handle of WmtStp \n");
    }
    return iRet;
}
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:29,代码来源:wmt_ctrl.c


注:本文中的WMT_WARN_FUNC函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。