Lines Matching refs:pfunction
162 static void rsi_reset_card(struct sdio_func *pfunction) in rsi_reset_card() argument
166 struct mmc_card *card = pfunction->card; in rsi_reset_card()
173 ret = rsi_cmd52writebyte(pfunction->card, in rsi_reset_card()
214 err = rsi_issue_sdiocommand(pfunction, in rsi_reset_card()
228 err = rsi_issue_sdiocommand(pfunction, SD_IO_SEND_OP_COND, 0, in rsi_reset_card()
236 err = rsi_issue_sdiocommand(pfunction, SD_IO_SEND_OP_COND, in rsi_reset_card()
257 err = rsi_issue_sdiocommand(pfunction, in rsi_reset_card()
271 err = rsi_issue_sdiocommand(pfunction, in rsi_reset_card()
342 struct mmc_host *host = dev->pfunction->card->host; in rsi_setclock()
366 status = sdio_set_block_size(dev->pfunction, length); in rsi_setblocklength()
367 dev->pfunction->max_blksize = 256; in rsi_setblocklength()
368 adapter->block_size = dev->pfunction->max_blksize; in rsi_setblocklength()
416 sdio_claim_host(dev->pfunction); in rsi_sdio_read_register()
419 *data = sdio_f0_readb(dev->pfunction, addr, &status); in rsi_sdio_read_register()
421 *data = sdio_readb(dev->pfunction, addr, &status); in rsi_sdio_read_register()
424 sdio_release_host(dev->pfunction); in rsi_sdio_read_register()
449 sdio_claim_host(dev->pfunction); in rsi_sdio_write_register()
452 sdio_f0_writeb(dev->pfunction, *data, addr, &status); in rsi_sdio_write_register()
454 sdio_writeb(dev->pfunction, *data, addr, &status); in rsi_sdio_write_register()
457 sdio_release_host(dev->pfunction); in rsi_sdio_write_register()
503 sdio_claim_host(dev->pfunction); in rsi_sdio_read_register_multiple()
505 status = sdio_readsb(dev->pfunction, data, addr, count); in rsi_sdio_read_register_multiple()
508 sdio_release_host(dev->pfunction); in rsi_sdio_read_register_multiple()
547 sdio_claim_host(dev->pfunction); in rsi_sdio_write_register_multiple()
549 status = sdio_writesb(dev->pfunction, addr, data, count); in rsi_sdio_write_register_multiple()
552 sdio_release_host(dev->pfunction); in rsi_sdio_write_register_multiple()
835 struct sdio_func *pfunction) in rsi_init_sdio_interface() argument
846 sdio_claim_host(pfunction); in rsi_init_sdio_interface()
848 pfunction->enable_timeout = 100; in rsi_init_sdio_interface()
849 status = sdio_enable_func(pfunction); in rsi_init_sdio_interface()
852 sdio_release_host(pfunction); in rsi_init_sdio_interface()
858 rsi_91x_dev->pfunction = pfunction; in rsi_init_sdio_interface()
859 adapter->device = &pfunction->dev; in rsi_init_sdio_interface()
861 sdio_set_drvdata(pfunction, adapter); in rsi_init_sdio_interface()
876 sdio_release_host(pfunction); in rsi_init_sdio_interface()
886 sdio_disable_func(pfunction); in rsi_init_sdio_interface()
887 sdio_release_host(pfunction); in rsi_init_sdio_interface()
894 struct sdio_func *pfunction = sdev->pfunction; in rsi_sdio_reinit_device() local
901 sdio_claim_host(pfunction); in rsi_sdio_reinit_device()
903 sdio_release_irq(pfunction); in rsi_sdio_reinit_device()
904 rsi_reset_card(pfunction); in rsi_sdio_reinit_device()
906 sdio_enable_func(pfunction); in rsi_sdio_reinit_device()
909 sdio_claim_irq(pfunction, rsi_handle_interrupt); in rsi_sdio_reinit_device()
912 sdio_release_host(pfunction); in rsi_sdio_reinit_device()
1010 static int rsi_probe(struct sdio_func *pfunction, in rsi_probe() argument
1028 if (rsi_init_sdio_interface(adapter, pfunction)) { in rsi_probe()
1035 if (pfunction->device == SDIO_DEVICE_ID_RSI_9113) { in rsi_probe()
1038 } else if (pfunction->device == SDIO_DEVICE_ID_RSI_9116) { in rsi_probe()
1044 pfunction->device); in rsi_probe()
1057 sdio_claim_host(pfunction); in rsi_probe()
1058 if (sdio_claim_irq(pfunction, rsi_handle_interrupt)) { in rsi_probe()
1060 sdio_release_host(pfunction); in rsi_probe()
1064 sdio_release_host(pfunction); in rsi_probe()
1085 sdio_claim_host(pfunction); in rsi_probe()
1086 sdio_release_irq(pfunction); in rsi_probe()
1087 sdio_release_host(pfunction); in rsi_probe()
1091 sdio_claim_host(pfunction); in rsi_probe()
1092 sdio_disable_func(pfunction); in rsi_probe()
1093 sdio_release_host(pfunction); in rsi_probe()
1216 static void rsi_disconnect(struct sdio_func *pfunction) in rsi_disconnect() argument
1218 struct rsi_hw *adapter = sdio_get_drvdata(pfunction); in rsi_disconnect()
1227 sdio_claim_host(pfunction); in rsi_disconnect()
1228 sdio_release_irq(pfunction); in rsi_disconnect()
1229 sdio_release_host(pfunction); in rsi_disconnect()
1245 sdio_claim_host(pfunction); in rsi_disconnect()
1246 rsi_reset_card(pfunction); in rsi_disconnect()
1247 sdio_disable_func(pfunction); in rsi_disconnect()
1248 sdio_release_host(pfunction); in rsi_disconnect()
1260 struct sdio_func *func = dev->pfunction; in rsi_set_sdio_pm_caps()
1363 struct sdio_func *pfunction = dev_to_sdio_func(dev); in rsi_suspend() local
1364 struct rsi_hw *adapter = sdio_get_drvdata(pfunction); in rsi_suspend()
1372 rsi_sdio_disable_interrupts(pfunction); in rsi_suspend()
1385 struct sdio_func *pfunction = dev_to_sdio_func(dev); in rsi_resume() local
1386 struct rsi_hw *adapter = sdio_get_drvdata(pfunction); in rsi_resume()
1390 rsi_sdio_enable_interrupts(pfunction); in rsi_resume()
1398 struct sdio_func *pfunction = dev_to_sdio_func(dev); in rsi_freeze() local
1399 struct rsi_hw *adapter = sdio_get_drvdata(pfunction); in rsi_freeze()
1423 ret = rsi_sdio_disable_interrupts(pfunction); in rsi_freeze()
1439 struct sdio_func *pfunction = dev_to_sdio_func(dev); in rsi_thaw() local
1440 struct rsi_hw *adapter = sdio_get_drvdata(pfunction); in rsi_thaw()
1449 rsi_sdio_enable_interrupts(pfunction); in rsi_thaw()
1458 struct sdio_func *pfunction = dev_to_sdio_func(dev); in rsi_shutdown() local
1459 struct rsi_hw *adapter = sdio_get_drvdata(pfunction); in rsi_shutdown()
1479 rsi_sdio_disable_interrupts(sdev->pfunction); in rsi_shutdown()
1492 struct sdio_func *pfunction = dev_to_sdio_func(dev); in rsi_restore() local
1493 struct rsi_hw *adapter = sdio_get_drvdata(pfunction); in rsi_restore()