• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ sdio_unregister_driver函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: emapi_sdio_init

int emapi_sdio_init(unsigned long arg)
{
	int rc = 0;
	unsigned long cmd;

	get_user(cmd, (unsigned long *) arg);

	switch (cmd) {
		case 0:
#ifdef CONFIG_WIFI_CONTROL_FUNC
			wifi_add_dev();
#else
			printk(KERN_CRIT "EMAPI: fail to power on\n");
#endif
			mdelay(50);
			break;
		case 1:
			if (emapi.sdio_status)
				sdio_unregister_driver(&emapi_sdio_drv);
#ifdef CONFIG_WIFI_CONTROL_FUNC
			wifi_del_dev();
#else	
			printk(KERN_CRIT "EMAPI: fail to power off\n");
#endif
			emapi.sdio_status = 0;
			mdelay(50);
			break;
		case 2:
			rc = sdio_register_driver(&emapi_sdio_drv);
			if (rc < 0) {
	   			printk("emapi sdio driver init error\n");
				goto error;
			}
			emapi.sdio_status = 1;
			break;
		default:
			printk("unkown command\n");
			rc = -EINVAL;
			goto error;
	};
	return rc;
error:
	if (emapi_sdio_drv.drv.bus != NULL)
		sdio_unregister_driver(&emapi_sdio_drv);
#ifdef CONFIG_WIFI_CONTROL_FUNC
	wifi_del_dev();
#else	
	printk(KERN_CRIT "EMAPI: fail to power off\n");
#endif
	return rc;
}
开发者ID:Soaa-,项目名称:-lightspeed,代码行数:51,代码来源:sdio_emapi.c


示例2: rtw_drv_halt

static void __exit rtw_drv_halt(void)
{
//	DBG_871X(KERN_INFO "+%s", __func__);
	RT_TRACE(_module_hci_intfs_c_, _drv_notice_, ("+rtw_drv_halt\n"));

	rtw_suspend_lock_uninit();
	drvpriv.drv_registered = _FALSE;

	sdio_unregister_driver(&drvpriv.r871xs_drv);

#if defined(CONFIG_CONCURRENT_MODE) || defined(CONFIG_DUALMAC_CONCURRENT)
	_rtw_mutex_free(&drvpriv.h2c_fwcmd_mutex);
	_rtw_mutex_free(&drvpriv.setch_mutex);
	_rtw_mutex_free(&drvpriv.setbw_mutex);
	_rtw_mutex_free(&drvpriv.hw_init_mutex);
#endif

#if defined(CONFIG_MMC_SUNXI_POWER_CONTROL)
	sunximmc_rescan_card(SDIOID, 0);
	rtl8189es_sdio_poweroff();
	printk("[rtl8189es] %s: remove card, power off.\n", __FUNCTION__);
#endif

//	DBG_871X(KERN_INFO "-%s", __func__);
	RT_TRACE(_module_hci_intfs_c_, _drv_notice_, ("-rtw_drv_halt\n"));
}
开发者ID:swiftboard,项目名称:lichee_linux-3.0,代码行数:26,代码来源:sdio_intf.c


示例3: HIFShutDownDevice

void
HIFShutDownDevice(HIF_DEVICE *device)
{
    AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: +HIFShutDownDevice\n"));
    if (device != NULL) {
        AR_DEBUG_ASSERT(device->func != NULL);
    } else {
            /* since we are unloading the driver anyways, reset all cards in case the SDIO card
             * is externally powered and we are unloading the SDIO stack.  This avoids the problem when
             * the SDIO stack is reloaded and attempts are made to re-enumerate a card that is already
             * enumerated */
        AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: HIFShutDownDevice, resetting\n"));
        ResetAllCards();

        /* Unregister with bus driver core */
        if (registered) {
            registered = 0;
            AR_DEBUG_PRINTF(ATH_DEBUG_TRACE,
                            ("AR6000: Unregistering with the bus driver\n"));
            sdio_unregister_driver(&ar6k_driver);
            AR_DEBUG_PRINTF(ATH_DEBUG_TRACE,
                            ("AR6000: Unregistered\n"));
        }
    }
    AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: -HIFShutDownDevice\n"));
}
开发者ID:AvalueAES,项目名称:rev-sa01,代码行数:26,代码来源:hif.c


示例4: mwifiex_sdio_cleanup_module

/*
 * This function cleans up the SDIO driver.
 *
 * The following major steps are followed for cleanup -
 *      - Resume the device if its suspended
 *      - Disconnect the device if connected
 *      - Shutdown the firmware
 *      - Unregister the device from SDIO bus.
 */
static void
mwifiex_sdio_cleanup_module(void)
{
	struct mwifiex_adapter *adapter = g_adapter;
	int i;

	if (down_interruptible(&add_remove_card_sem))
		goto exit_sem_err;

	if (!adapter || !adapter->priv_num)
		goto exit;

	if (adapter->is_suspended)
		mwifiex_sdio_resume(adapter->dev);

	for (i = 0; i < adapter->priv_num; i++)
		if ((GET_BSS_ROLE(adapter->priv[i]) == MWIFIEX_BSS_ROLE_STA) &&
		    adapter->priv[i]->media_connected)
			mwifiex_deauthenticate(adapter->priv[i], NULL);

	if (!adapter->surprise_removed)
		mwifiex_init_shutdown_fw(mwifiex_get_priv(adapter,
							  MWIFIEX_BSS_ROLE_ANY),
					 MWIFIEX_FUNC_SHUTDOWN);

exit:
	up(&add_remove_card_sem);

exit_sem_err:
	sdio_unregister_driver(&mwifiex_sdio);
}
开发者ID:791254467,项目名称:u8500_kernel,代码行数:40,代码来源:sdio.c


示例5: cw1200_sdio_init

/* Init Module function -> Called by insmod */
static int __init cw1200_sdio_init(void)
{
	const struct cw1200_platform_data *pdata;
	int ret;

	pdata = cw1200_get_platform_data();

	ret = sdio_register_driver(&sdio_driver);
	if (ret)
		goto err_reg;

	if (pdata->power_ctrl) {
		ret = pdata->power_ctrl(pdata, true);
		if (ret)
			goto err_power;
	}

	ret = cw1200_sdio_on(pdata);
	if (ret)
		goto err_on;

	return 0;

err_on:
	if (pdata->power_ctrl)
		pdata->power_ctrl(pdata, false);
err_power:
	sdio_unregister_driver(&sdio_driver);
err_reg:
	return ret;
}
开发者ID:791254467,项目名称:u8500_kernel,代码行数:32,代码来源:cw1200_sdio.c


示例6: mtlte_sys_sdio_driver_exit

//static
//void __exit mtlte_sys_sdio_driver_exit(void)
void mtlte_sys_sdio_driver_exit(void)
{
    KAL_RAWPRINT(("[EXIT] =======> lte_sdio_driver_exit\n"));

    sdio_onoff_module_exit();

    KAL_DESTROYMUTEX(&lte_dev.thread_kick_lock) ;

    sdio_unregister_driver(&mtlte_driver);
    KAL_RAWPRINT(("[EXIT] sdio_unregister_driver OK. \n"));       


#if EMCS_SDIO_DRVTST		
    mtlte_dev_test_drvdeinit() ;    
    KAL_RAWPRINT(("[EXIT] mtlte_dev_test_drvdeinit OK. \n")); 
#endif   

    /* denit the expt layer */
    mtlte_expt_deinit() ;
    KAL_RAWPRINT(("[EXIT] mtlte_expt_deinit OK. \n")); 

    /* denit the data flow layer */
    mtlte_df_deinit() ;
    KAL_RAWPRINT(("[EXIT] mtlte_df_deinit OK. \n")); 

    /* denit the hif layer */
    mtlte_hif_sdio_deinit() ;
    KAL_RAWPRINT(("[EXIT] mtlte_hif_sdio_deinit OK. \n")); 

#ifdef MT_LTE_AUTO_CALIBRATION        
    autok_module_exit();
#endif

    KAL_RAWPRINT(("[EXIT] <======= lte_sdio_driver_exit\n"));
}
开发者ID:Scorpio92,项目名称:mediatek,代码行数:37,代码来源:lte_main.c


示例7: sbi_unregister

/** 
 *  @brief This function de-registers the bt module in bus driver.
 *  
 *  @return 	   N/A
 */
void
sbi_unregister(void)
{
    ENTER();
    unregister = TRUE;
    sdio_unregister_driver(&sdio_bt);
    LEAVE();
}
开发者ID:12019,项目名称:miniature-octo-tribble,代码行数:13,代码来源:bt_sdiommc.c


示例8: sdio_detect_exit

int sdio_detect_exit(void)
{
	g_func = NULL;
	//register to mmc driver
	sdio_unregister_driver(&mtk_sdio_client_drv);
	WMT_DETECT_INFO_FUNC("sdio_unregister_driver\n");
	return 0;
}
开发者ID:Sector1369,项目名称:acer_v370_kk,代码行数:8,代码来源:sdio_detect.c


示例9: sdio_function_cleanup

void sdio_function_cleanup(void)
{
	sd_trace(("%s Enter\n", __func__));

	sdio_unregister_driver(&bcmsdh_sdmmc_driver);

	kfree(gInstance);
}
开发者ID:Adjustxx,项目名称:Savaged-Zen,代码行数:8,代码来源:bcmsdh_sdmmc_linux.c


示例10: bcmsdh_unregister_client_driver

/*
 * module cleanup
*/
void bcmsdh_unregister_client_driver(void)
{
	sdio_unregister_driver(&bcmsdh_sdmmc_driver);
#ifdef GLOBAL_SDMMC_INSTANCE
	if (gInstance)
		kfree(gInstance);
#endif
}
开发者ID:akuster,项目名称:linux-meson,代码行数:11,代码来源:bcmsdh_sdmmc_linux.c


示例11: cw1200_sdio_exit

/* Called at Driver Unloading */
static void __exit cw1200_sdio_exit(void)
{
	const struct cw1200_platform_data *pdata;
	pdata = cw1200_get_platform_data();
	sdio_unregister_driver(&sdio_driver);
	cw1200_sdio_off(pdata);
	if (pdata->power_ctrl)
		pdata->power_ctrl(pdata, false);
}
开发者ID:791254467,项目名称:u8500_kernel,代码行数:10,代码来源:cw1200_sdio.c


示例12: cw1200_sdio_exit

/* Called at Driver Unloading */
static void __exit cw1200_sdio_exit(void)
{
	const struct cw1200_platform_data_sdio *pdata;

	/* FIXME -- this won't support multiple devices */
	pdata = global_plat_data;
	sdio_unregister_driver(&sdio_driver);
	cw1200_sdio_off(pdata);
}
开发者ID:EvolutionMod,项目名称:ath10-lenovo,代码行数:10,代码来源:cw1200_sdio.c


示例13: brcmf_sdio_exit

void brcmf_sdio_exit(void)
{
	brcmf_dbg(SDIO, "Enter\n");

	if (brcmfmac_sdio_pdata)
		platform_driver_unregister(&brcmf_sdio_pd);
	else
		sdio_unregister_driver(&brcmf_sdmmc_driver);
}
开发者ID:AnadoluPanteri,项目名称:kernel-plus-harmattan,代码行数:9,代码来源:bcmsdh_sdmmc.c


示例14: linux_sdio_deinit

void linux_sdio_deinit(void *pv)
{

	/**
	 *      TODO :
	 **/


	sdio_unregister_driver(&wilc_bus);
}
开发者ID:Chong-Li,项目名称:cse522,代码行数:10,代码来源:linux_wlan_sdio.c


示例15: woal_bus_unregister

/**
 *  @brief This function de-registers the IF module in bus driver
 *
 *  @return         N/A
 */
void
woal_bus_unregister(void)
{
	ENTER();

	/* SDIO Driver Unregistration */
	sdio_unregister_driver(&wlan_sdio);

	LEAVE();
}
开发者ID:krysanto,项目名称:steamlink-sdk,代码行数:15,代码来源:moal_sdio_mmc.c


示例16: brcmf_sdio_pd_remove

static int brcmf_sdio_pd_remove(struct platform_device *pdev)
{
	brcmf_dbg(SDIO, "Enter\n");

	if (brcmfmac_sdio_pdata->power_off)
		brcmfmac_sdio_pdata->power_off();

	sdio_unregister_driver(&brcmf_sdmmc_driver);

	return 0;
}
开发者ID:AnadoluPanteri,项目名称:kernel-plus-harmattan,代码行数:11,代码来源:bcmsdh_sdmmc.c


示例17: mwifiex_sdio_cleanup_module

static void
mwifiex_sdio_cleanup_module(void)
{
	if (!down_interruptible(&add_remove_card_sem))
		up(&add_remove_card_sem);

	
	user_rmmod = 1;

	sdio_unregister_driver(&mwifiex_sdio);
}
开发者ID:DirtyDroidX,项目名称:android_kernel_htc_m8ul,代码行数:11,代码来源:sdio.c


示例18: mwifiex_sdio_cleanup_module

/*
 * This function cleans up the SDIO driver.
 *
 * The following major steps are followed for cleanup -
 *      - Resume the device if its suspended
 *      - Disconnect the device if connected
 *      - Shutdown the firmware
 *      - Unregister the device from SDIO bus.
 */
static void
mwifiex_sdio_cleanup_module(void)
{
	if (!down_interruptible(&add_remove_card_sem))
		up(&add_remove_card_sem);

	/* Set the flag as user is removing this module. */
	user_rmmod = 1;

	sdio_unregister_driver(&mwifiex_sdio);
}
开发者ID:BreakDaLotus,项目名称:attitude_adjustment,代码行数:20,代码来源:sdio.c


示例19: glUnregisterBus

/*----------------------------------------------------------------------------*/
VOID glUnregisterBus(remove_card pfRemove)
{
	ASSERT(pfRemove);
	pfRemove();

#if MTK_WCN_HIF_SDIO
	/* unregister MTK sdio client */
	mtk_wcn_hif_sdio_client_unreg(&cltInfo);
#else
	sdio_unregister_driver(&mtk_sdio_driver);
#endif

	return;
}				/* end of glUnregisterBus() */
开发者ID:Swapnil133609,项目名称:Zeus_exp,代码行数:15,代码来源:sdio.c


示例20: sdio_function_cleanup

void sdio_function_cleanup(void)
{
	sd_trace(("%s Enter\n", __FUNCTION__));

#if defined(CONFIG_BRCM_LGE_WL_HOSTWAKEUP)
	sdio_claim_host(gInstance->func[0]);
	dhd_enable_sdio_irq(FALSE);
	sdio_release_host(gInstance->func[0]);

	dhd_unregister_early_suspend();
	dhd_suspend_context = TRUE;
#endif	/* defined(CONFIG_BRCM_LGE_WL_HOSTWAKEUP) */

	sdio_unregister_driver(&bcmsdh_sdmmc_driver);

	if (gInstance)
		kfree(gInstance);
}
开发者ID:venkatkamesh,项目名称:lg_ally_kernel-2.6.XX,代码行数:18,代码来源:bcmsdh_sdmmc_linux.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ sdio_writeb函数代码示例发布时间:2022-05-30
下一篇:
C++ sdio_unregister_bus函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap