Searched refs:card_exist (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/drivers/mfd/
H A Drtl8411.c234 unsigned int card_exist; rtl8411_cd_deglitch() local
236 card_exist = rtsx_pci_readl(pcr, RTSX_BIPR); rtl8411_cd_deglitch()
237 card_exist &= CARD_EXIST; rtl8411_cd_deglitch()
238 if (!card_exist) { rtl8411_cd_deglitch()
247 if (hweight32(card_exist) > 1) { rtl8411_cd_deglitch()
252 card_exist = rtsx_pci_readl(pcr, RTSX_BIPR); rtl8411_cd_deglitch()
253 if (card_exist & MS_EXIST) rtl8411_cd_deglitch()
254 card_exist = MS_EXIST; rtl8411_cd_deglitch()
255 else if (card_exist & SD_EXIST) rtl8411_cd_deglitch()
256 card_exist = SD_EXIST; rtl8411_cd_deglitch()
258 card_exist = 0; rtl8411_cd_deglitch()
263 pcr_dbg(pcr, "After CD deglitch, card_exist = 0x%x\n", rtl8411_cd_deglitch()
264 card_exist); rtl8411_cd_deglitch()
267 if (card_exist & MS_EXIST) { rtl8411_cd_deglitch()
272 } else if (card_exist & SD_EXIST) { rtl8411_cd_deglitch()
279 return card_exist; rtl8411_cd_deglitch()
H A Drtsx_pcr.c768 if (pcr->card_exist & (~cd_mask[card])) rtsx_pci_card_exclusive_check()
852 pcr->card_exist |= card_inserted; rtsx_pci_card_detect()
853 pcr->card_exist &= ~card_removed; rtsx_pci_card_detect()
1065 * So we need to initialize pcr->card_exist here. rtsx_pci_init_hw()
1068 pcr->card_exist = pcr->ops->cd_deglitch(pcr); rtsx_pci_init_hw()
1070 pcr->card_exist = rtsx_pci_readl(pcr, RTSX_BIPR) & CARD_EXIST; rtsx_pci_init_hw()
/linux-4.4.14/drivers/staging/rts5208/
H A Drtsx_card.c375 chip->card_exist |= XD_CARD; rtsx_reset_cards()
383 if (chip->card_exist & XD_CARD) { rtsx_reset_cards()
389 chip->card_exist |= SD_CARD; rtsx_reset_cards()
399 chip->card_exist |= MS_CARD; rtsx_reset_cards()
425 chip->card_exist |= SD_CARD; rtsx_reinit_cards()
434 chip->card_exist |= XD_CARD; rtsx_reinit_cards()
443 chip->card_exist |= MS_CARD; rtsx_reinit_cards()
458 if (chip->card_exist) { card_cd_debounce()
459 if (chip->card_exist & XD_CARD) { card_cd_debounce()
462 } else if (chip->card_exist & SD_CARD) { card_cd_debounce()
465 } else if (chip->card_exist & MS_CARD) { card_cd_debounce()
504 if (!(chip->card_exist & XD_CARD) && card_cd_debounce()
507 if (!(chip->card_exist & SD_CARD) && card_cd_debounce()
510 if (!(chip->card_exist & MS_CARD) && card_cd_debounce()
545 if (!(chip->card_exist & SD_CARD) && !chip->sd_io) rtsx_init_cards()
547 if (!(chip->card_exist & XD_CARD)) rtsx_init_cards()
549 if (!(chip->card_exist & MS_CARD)) rtsx_init_cards()
571 chip->card_exist &= ~SD_CARD; rtsx_init_cards()
584 chip->card_exist &= ~XD_CARD; rtsx_init_cards()
600 chip->card_exist &= ~MS_CARD; rtsx_init_cards()
609 dev_dbg(rtsx_dev(chip), "chip->card_exist = 0x%x\n", rtsx_init_cards()
610 chip->card_exist); rtsx_init_cards()
612 if (!chip->card_exist) rtsx_init_cards()
1165 if (chip->card_exist & chip->lun2card[lun]) check_card_exist()
H A Drtsx_chip.c1081 chip->card_exist = 0; rtsx_release_chip()
1088 if (chip->card_exist && chip->blink_led) { rtsx_blink_led()
1155 if (chip->card_exist & SD_CARD) rtsx_manage_ocp()
1157 else if (chip->card_exist & MS_CARD) rtsx_manage_ocp()
1159 else if (chip->card_exist & XD_CARD) rtsx_manage_ocp()
1175 if (chip->card_exist & SD_CARD) { rtsx_manage_sd_lock()
1285 if (sd_oc && (chip->card_exist & SD_CARD)) { rtsx_manage_2lun_mode()
1291 if (ms_oc && (chip->card_exist & MS_CARD)) { rtsx_manage_2lun_mode()
1308 if (chip->card_exist & SD_CARD) { rtsx_manage_1lun_mode()
1311 } else if (chip->card_exist & MS_CARD) { rtsx_manage_1lun_mode()
1314 } else if (chip->card_exist & XD_CARD) { rtsx_manage_1lun_mode()
1332 if (chip->card_exist) rtsx_delink_stage1()
1340 if (chip->card_exist) rtsx_delink_stage1()
1350 if (chip->card_exist) rtsx_delink_stage1()
2263 chip->card_exist = 0; rtsx_do_before_power_down()
H A Drtsx_scsi.c2633 if (chip->card_exist) { read_status()
2634 if (chip->card_exist & XD_CARD) read_status()
2636 else if (chip->card_exist & SD_CARD) read_status()
2638 else if (chip->card_exist & MS_CARD) read_status()
H A Drtsx_chip.h729 u8 card_exist; /* card exist bit map (physical exist) */ member in struct:rtsx_chip
/linux-4.4.14/drivers/mmc/host/
H A Drtsx_usb_sdmmc.c57 bool card_exist; member in struct:rtsx_usb_sdmmc
813 host->card_exist = true; sdmmc_get_cd()
818 host->card_exist = false; sdmmc_get_cd()
837 if ((!host->card_exist)) { sdmmc_request()
/linux-4.4.14/include/linux/mfd/
H A Drtsx_pci.h907 unsigned int card_exist; member in struct:rtsx_pcr

Completed in 366 milliseconds