Lines Matching refs:sd_data
480 struct sdhc_data *sd_data) in sam_hsmci_request_inner() argument
493 (uint32_t)sd_data, cmd->response_type & SDHC_NATIVE_RESPONSE_MASK); in sam_hsmci_request_inner()
500 if (sd_data) { in sam_hsmci_request_inner()
538 if ((sd_data->block_size & 0x3) == 0 && (((uint32_t)sd_data->data) & 0x3) == 0) { in sam_hsmci_request_inner()
539 size = (sd_data->block_size + 3) >> 2; in sam_hsmci_request_inner()
543 size = sd_data->block_size; in sam_hsmci_request_inner()
549 HSMCI_BLKR_BLKLEN(sd_data->block_size) | HSMCI_BLKR_BCNT(sd_data->blocks); in sam_hsmci_request_inner()
551 transfer_count = size * sd_data->blocks; in sam_hsmci_request_inner()
560 hsmci->HSMCI_TPR = (uint32_t)sd_data->data; in sam_hsmci_request_inner()
563 hsmci->HSMCI_RPR = (uint32_t)sd_data->data; in sam_hsmci_request_inner()
574 if (sd_data) { in sam_hsmci_request_inner()
588 ret = hsmci_do_manual_transfer(hsmci, byte_mode, is_write, sd_data->data, in sam_hsmci_request_inner()
617 struct sdhc_data *sd_data) in sam_hsmci_request() argument
637 ret = sam_hsmci_request_inner(dev, cmd, sd_data); in sam_hsmci_request()
638 if (sd_data && (ret || sd_data->blocks > 1)) { in sam_hsmci_request()