/device/soc/hpmicro/sdk/hpm_sdk/middleware/hpm_sdmmc/lib/ |
D | hpm_sdmmc_sd.c | 46 static hpm_stat_t sd_send_card_status(sd_card_t *card); 48 static hpm_stat_t sd_send_rca(sd_card_t *card); 50 static hpm_stat_t sd_send_csd(sd_card_t *card); 52 static hpm_stat_t sd_switch_function(sd_card_t *card, uint32_t mode, uint32_t group, uint32_t numbe… 54 static void sd_decode_scr(sd_card_t *card, uint32_t *raw_scr); 56 static hpm_stat_t sd_send_scr(sd_card_t *card); 58 static hpm_stat_t sd_app_cmd_send_cond_op(sd_card_t *card, sd_ocr_t ocr); 60 static hpm_stat_t sd_send_if_cond(sd_card_t *card); 62 static hpm_stat_t sd_probe_bus_voltage(sd_card_t *card); 64 static hpm_stat_t sd_switch_voltage(sd_card_t *card); [all …]
|
D | hpm_sdmmc_sd.h | 250 hpm_stat_t sd_init(sd_card_t *card); 252 void sd_deinit(sd_card_t *card); 254 hpm_stat_t sd_card_init(sd_card_t *card); 256 void sd_card_deinit(sd_card_t *card); 258 hpm_stat_t sd_host_init(sd_card_t *card); 260 hpm_stat_t sd_host_deinit(sd_card_t *card); 262 void sd_set_card_power(sd_card_t *card, bool enable); 264 bool sd_is_card_present(sd_card_t *card); 266 bool sd_check_readonly(sd_card_t *card); 268 hpm_stat_t sd_select_card(sd_card_t *card, bool is_selected); [all …]
|
/device/soc/rockchip/common/sdk_linux/drivers/mmc/core/ |
D | sdio.c | 46 if (mmc_card_nonstd_func_interface(func->card)) { in sdio_read_fbr() 51 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF, 0, &data); in sdio_read_fbr() 59 …ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF_EXT, 0, &data); in sdio_read_fbr() 71 static int sdio_init_func(struct mmc_card *card, unsigned int fn) in sdio_init_func() argument 80 func = sdio_alloc_func(card); in sdio_init_func() 87 if (!(card->quirks & MMC_QUIRK_NONSTD_SDIO)) { in sdio_init_func() 98 func->vendor = func->card->cis.vendor; in sdio_init_func() 99 func->device = func->card->cis.device; in sdio_init_func() 100 func->max_blksize = func->card->cis.blksize; in sdio_init_func() 103 card->sdio_func[fn - 1] = func; in sdio_init_func() [all …]
|
D | block.c | 190 static inline int mmc_blk_part_switch(struct mmc_card *card, unsigned int part_type); 191 static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq, struct mmc_card *card, int recovery_mode, 236 struct mmc_card *card = md->queue.card; in power_ro_lock_show() local 239 if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PERM_WP_EN) { in power_ro_lock_show() 241 } else if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PWR_WP_EN) { in power_ro_lock_show() 426 static int card_busy_detect(struct mmc_card *card, unsigned int timeout_ms, u32 *resp_errs) in card_busy_detect() argument 435 err = __mmc_send_status(card, &status, MMC_CARD_BUSY_DETECT_RETRY_COUNT); in card_busy_detect() 437 dev_err(mmc_dev(card->host), "error %d requesting status\n", err); in card_busy_detect() 451 … dev_err(mmc_dev(card->host), "Card stuck in wrong state! %s status: %#x\n", __func__, status); in card_busy_detect() 459 static int mmc_blk_ioctl_cmd_ext(struct mmc_card *card, struct mmc_blk_data *md, struct mmc_blk_ioc… in mmc_blk_ioctl_cmd_ext() argument [all …]
|
D | core.h | 43 void mmc_init_erase(struct mmc_card *card); 56 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr, int card_drv_type, int *… 85 int sdio_reset_comm(struct mmc_card *card); 94 void mmc_add_card_debugfs(struct mmc_card *card); 95 void mmc_remove_card_debugfs(struct mmc_card *card); 97 int mmc_execute_tuning(struct mmc_card *card); 98 int mmc_hs200_to_hs400(struct mmc_card *card); 99 int mmc_hs400_to_hs200(struct mmc_card *card); 106 int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr, unsigned int arg); 107 int mmc_can_erase(struct mmc_card *card); [all …]
|
/device/soc/hisilicon/common/platform/mmc/himci_v200/proc/ |
D | himci_proc.c | 62 static int32_t ProcStatsCardConnectedPrint(struct MmcDevice *card, struct SeqBuf *s) in ProcStatsCardConnectedPrint() argument 66 if ((card == NULL) || (card->state.bits.present == 0)) { in ProcStatsCardConnectedPrint() 95 static int32_t ProcStatsCardTypePrint(struct MmcDevice *card, struct SeqBuf *s) in ProcStatsCardTypePrint() argument 100 status = LosBufPrintf(s, "\tType: %s", ProcGetCardType(card->type)); in ProcStatsCardTypePrint() 104 if (card->state.bits.blockAddr > 0) { in ProcStatsCardTypePrint() 106 if (card->state.bits.sdxc > 0) { in ProcStatsCardTypePrint() 138 static int32_t ProcStatsUhsPrint(struct MmcDevice *card, struct SeqBuf *s) in ProcStatsUhsPrint() argument 141 struct SdDevice *dev = (struct SdDevice *)card; in ProcStatsUhsPrint() 147 if (card->type == MMC_DEV_SD || card->type == MMC_DEV_COMBO) { in ProcStatsUhsPrint() 148 if (card->state.bits.uhs > 0 && in ProcStatsUhsPrint() [all …]
|
/device/soc/hisilicon/common/platform/mmc/sdhci/proc/ |
D | sdhci_proc.c | 61 static int32_t ProcStatsCardConnectedPrint(struct MmcDevice *card, struct SeqBuf *s) in ProcStatsCardConnectedPrint() argument 65 if ((card == NULL) || card->state.bits.present == 0) { in ProcStatsCardConnectedPrint() 94 static int32_t ProcStatsCardTypePrint(struct MmcDevice *card, struct SeqBuf *s) in ProcStatsCardTypePrint() argument 99 status = LosBufPrintf(s, "\tType: %s", ProcGetCardType(card->type)); in ProcStatsCardTypePrint() 103 if (card->state.bits.blockAddr > 0) { in ProcStatsCardTypePrint() 105 if (card->state.bits.sdxc > 0) { in ProcStatsCardTypePrint() 137 static int32_t ProcStatsUhsPrint(struct MmcDevice *card, struct SeqBuf *s) in ProcStatsUhsPrint() argument 140 struct SdDevice *dev = (struct SdDevice *)card; in ProcStatsUhsPrint() 146 if (card->type == MMC_DEV_SD || card->type == MMC_DEV_COMBO) { in ProcStatsUhsPrint() 147 if (card->state.bits.uhs > 0 && in ProcStatsUhsPrint() [all …]
|
/device/board/hihope/rk3568/audio_drivers/dsp/src/ |
D | rk3568_dsp_ops.c | 16 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in DspDaiStartup() argument 18 (void)card; in DspDaiStartup() 23 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param) in DspDaiHwParams() argument 25 (void)card; in DspDaiHwParams() 52 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument 54 (void)card; in DspDaiDeviceInit() 59 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… in DspDecodeAudioStream() argument 61 (void)card; in DspDecodeAudioStream() 68 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… in DspEncodeAudioStream() argument 70 (void)card; in DspEncodeAudioStream() [all …]
|
/device/board/kaihong/khdvk_3566b/kernel/audio/dsp/src/ |
D | rk3568_dsp_ops.c | 16 int32_t DspDaiStartup(const struct AudioCard *card, in DspDaiStartup() argument 19 (void)card; in DspDaiStartup() 24 int32_t DspDaiHwParams(const struct AudioCard *card, in DspDaiHwParams() argument 27 (void)card; in DspDaiHwParams() 55 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument 57 (void)card; in DspDaiDeviceInit() 62 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, in DspDecodeAudioStream() argument 65 (void)card; in DspDecodeAudioStream() 72 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, in DspEncodeAudioStream() argument 75 (void)card; in DspEncodeAudioStream() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/hdf/audio/dsp/ |
D | a311d_dsp_ops.c | 17 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in DspDaiStartup() argument 19 (void)card; in DspDaiStartup() 24 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param) in DspDaiHwParams() argument 26 (void)card; in DspDaiHwParams() 51 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument 53 (void)card; in DspDaiDeviceInit() 58 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… in DspDecodeAudioStream() argument 60 (void)card; in DspDecodeAudioStream() 66 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… in DspEncodeAudioStream() argument 68 (void)card; in DspEncodeAudioStream() [all …]
|
D | a311d_dsp_ops.h | 20 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device); 24 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 25 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 26 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 27 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 28 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice…
|
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/dsp/src/ |
D | dsp_ops.c | 17 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in DspDaiStartup() argument 19 (void)card; in DspDaiStartup() 24 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param) in DspDaiHwParams() argument 26 (void)card; in DspDaiHwParams() 51 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument 53 (void)card; in DspDaiDeviceInit() 58 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… in DspDecodeAudioStream() argument 60 (void)card; in DspDecodeAudioStream() 66 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… in DspEncodeAudioStream() argument 68 (void)card; in DspEncodeAudioStream() [all …]
|
/device/board/hisilicon/hispark_taurus/audio_drivers/unittest/src/ |
D | hi3516_dai_ops_test.c | 45 struct AudioCard *card = NULL; in TestDaiStartup() local 49 ret = Hi3516DaiDeviceInit(card, device); in TestDaiStartup() 57 struct AudioCard *card = NULL; in TestDaiHwParams() local 60 ret = Hi3516DaiHwParams(card, param); in TestDaiHwParams() 69 struct AudioCard *card = NULL; in TestDaiTrigger() local 73 ret = GetAudioCard(&card); in TestDaiTrigger() 79 if (card->rtd == NULL || card->rtd->cpuDai == NULL) { in TestDaiTrigger() 83 cpuDai = card->rtd->cpuDai; in TestDaiTrigger()
|
D | hi3516_codec_ops_test.c | 45 struct AudioCard *card = NULL; in TestCodecDaiDeviceInit() local 49 ret = Hi3516CodecDaiDeviceInit(card, device); in TestCodecDaiDeviceInit() 59 struct AudioCard *card = NULL; in TestCodecDaiStartup() local 63 ret = Hi3516CodecDaiStartup(card, device); in TestCodecDaiStartup() 71 struct AudioCard *card = NULL; in TestCodecDaiHwParams() local 76 ret = Hi3516CodecDaiHwParams(card, param); in TestCodecDaiHwParams()
|
/device/soc/amlogic/a311d/soc/amlogic/mmc/ |
D | emmc_partitions.c | 88 static int mmc_transfer(struct mmc_card *card, unsigned int dev_addr, unsigned int blocks, void *bu… 90 int mmc_read_internal(struct mmc_card *card, unsigned int dev_addr, unsigned int blocks, void *buf) in mmc_read_internal() argument 92 return mmc_transfer(card, dev_addr, blocks, buf, 0); in mmc_read_internal() 95 int mmc_write_internal(struct mmc_card *card, unsigned int dev_addr, unsigned int blocks, void *buf) in mmc_write_internal() argument 97 return mmc_transfer(card, dev_addr, blocks, buf, 1); in mmc_write_internal() 260 int amlmmc_dtb_read(struct mmc_card *card, unsigned char *buf, int len) in amlmmc_dtb_read() argument 263 int bit = card->csd.read_blkbits; in amlmmc_dtb_read() 285 ret = mmc_read_internal(card, start_blk, (DTB_CELL_SIZE >> bit), dst); in amlmmc_dtb_read() 401 int amlmmc_dtb_init(struct mmc_card *card) in amlmmc_dtb_init() argument 405 card_dtb = card; in amlmmc_dtb_init() [all …]
|
D | emmc_key.c | 41 struct mmc_card *card = mmc_card_key; in emmc_read_valid_key() local 42 int bit = card->csd.read_blkbits; in emmc_read_valid_key() 50 mmc_claim_host(card->host); in emmc_read_valid_key() 52 ret = mmc_read_internal(card, blk, EMMC_BLOCK_SIZE, dst); in emmc_read_valid_key() 62 mmc_release_host(card->host); in emmc_read_valid_key() 89 struct mmc_card *card = mmc_card_key; in emmc_write_one_key() local 90 int bit = card->csd.read_blkbits; in emmc_write_one_key() 104 mmc_claim_host(card->host); in emmc_write_one_key() 106 ret = mmc_write_internal(card, blk, EMMC_BLOCK_SIZE, src); in emmc_write_one_key() 118 ret = mmc_write_internal(card, blk, 1, checksum_info); in emmc_write_one_key() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/codec/t507/src/ |
D | t507_codec_ops.c | 103 int32_t T507CodecDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in T507CodecDaiDeviceInit() argument 113 (void)card; in T507CodecDaiDeviceInit() 117 int32_t T507CodecDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param) in T507CodecDaiHwParams() argument 122 if (param == NULL || param->cardServiceName == NULL || card == NULL || in T507CodecDaiHwParams() 123 card->rtd == NULL || card->rtd->codecDai == NULL || card->rtd->codecDai->devData == NULL || in T507CodecDaiHwParams() 124 card->rtd->codecDai->devData->regCfgGroup == NULL) { in T507CodecDaiHwParams() 138 int32_t T507CodecDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in T507CodecDaiStartup() argument 144 (void)card; in T507CodecDaiStartup() 155 int32_t T507CodecDaiTrigger(const struct AudioCard *card, int cmd, const struct DaiDevice *device) in T507CodecDaiTrigger() argument 161 (void)card; in T507CodecDaiTrigger()
|
/device/board/hisilicon/hispark_taurus/audio_drivers/codec/hi3516/src/ |
D | hi3516_codec_ops.c | 95 int32_t Hi3516CodecDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in Hi3516CodecDaiDeviceInit() argument 103 (void)card; in Hi3516CodecDaiDeviceInit() 107 int32_t Hi3516CodecDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param) in Hi3516CodecDaiHwParams() argument 112 if (param == NULL || param->cardServiceName == NULL || card == NULL || in Hi3516CodecDaiHwParams() 113 card->rtd == NULL || card->rtd->codecDai == NULL || card->rtd->codecDai->devData == NULL || in Hi3516CodecDaiHwParams() 114 card->rtd->codecDai->devData->regCfgGroup == NULL) { in Hi3516CodecDaiHwParams() 129 ret = Hi3516CodecDaiParamsUpdate(card->rtd->codecDai->devData->regCfgGroup, codecDaiParamsVal); in Hi3516CodecDaiHwParams() 137 int32_t Hi3516CodecDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in Hi3516CodecDaiStartup() argument 145 (void)card; in Hi3516CodecDaiStartup()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
D | oal_sdio_if.h | 73 #define sdio_get_max_block_count(func) ((func)->card->host->max_blk_count) 74 #define sdio_get_max_req_size(func) ((func)->card->host->max_req_size) 75 #define sdio_get_max_blk_size(func) ((func)->card->host->max_blk_size) 76 #define sdio_get_max_seg_size(func) ((func)->card->host->max_seg_size) 77 #define sdio_get_max_segs(func) ((func)->card->host->max_segs) 113 #define sdio_get_max_block_count(func) (func->card->host->max_blk_num) 114 #define sdio_get_max_req_size(func) (func->card->host->max_request_size) 115 #define sdio_get_max_blk_size(func) (func->card->host->max_blk_size) 182 #define sdio_get_max_block_count(func) (func->card->host->max_blk_count) 183 #define sdio_get_max_req_size(func) (func->card->host->max_req_size) [all …]
|
/device/board/hisilicon/hispark_taurus/audio_drivers/dsp/include/ |
D | dsp_ops.h | 30 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device); 34 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 35 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 36 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 37 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 38 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice…
|
/device/board/osware/imx8mm/drivers/audio/dsp/include/ |
D | dsp_ops.h | 30 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device); 34 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 35 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 36 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 37 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 38 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice…
|
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/dsp/include/ |
D | dsp_ops.h | 20 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device); 24 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 25 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 26 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 27 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 28 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice…
|
/device/board/hihope/rk3568/audio_drivers/dsp/include/ |
D | rk3568_dsp_ops.h | 20 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device); 24 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device); 25 int32_t DspDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param); 26 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 27 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevi… 28 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice…
|
/device/board/kaihong/khdvk_3566b/kernel/audio/dsp/include/ |
D | rk3568_dsp_ops.h | 20 int32_t DspDaiDeviceInit(struct AudioCard *card, 27 int32_t DspDaiStartup(const struct AudioCard *card, 29 int32_t DspDaiHwParams(const struct AudioCard *card, 31 int32_t DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, 33 int32_t DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, 35 int32_t DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf,
|
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/dai/src/ |
D | t507_dai_ahub_ops.c | 79 int32_t T507AhubDaiTrigger(const struct AudioCard *card, int cmd, const struct DaiDevice *device) in T507AhubDaiTrigger() argument 83 (void)card; in T507AhubDaiTrigger() 135 int32_t T507AhubDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in T507AhubDaiStartup() argument 141 (void)card; in T507AhubDaiStartup() 159 int32_t T507AhubDaiHwParams(const struct AudioCard *card, const struct AudioPcmHwParams *param) in T507AhubDaiHwParams() argument 165 if (card == NULL || card->rtd == NULL || card->rtd->cpuDai == NULL || in T507AhubDaiHwParams()
|