/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | sdio_ops.c | 115 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz) in mmc_io_rw_extended() argument 126 WARN_ON(blksz == 0); in mmc_io_rw_extended() 141 cmd.arg |= (blksz == 512) ? 0 : blksz; /* byte mode */ in mmc_io_rw_extended() 146 data.blksz = blksz; in mmc_io_rw_extended() 151 left_size = data.blksz * data.blocks; in mmc_io_rw_extended()
|
D | sdio_io.c | 159 int sdio_set_block_size(struct sdio_func *func, unsigned blksz) in sdio_set_block_size() argument 163 if (blksz > func->card->host->max_blk_size) in sdio_set_block_size() 166 if (blksz == 0) { in sdio_set_block_size() 167 blksz = min(func->max_blksize, func->card->host->max_blk_size); in sdio_set_block_size() 168 blksz = min(blksz, 512u); in sdio_set_block_size() 173 blksz & 0xff, NULL); in sdio_set_block_size() 178 (blksz >> 8) & 0xff, NULL); in sdio_set_block_size() 181 func->cur_blksize = blksz; in sdio_set_block_size()
|
D | sd_ops.c | 239 data.blksz = 8; in mmc_app_send_scr() 286 data.blksz = 64; in mmc_sd_switch() 327 data.blksz = 64; in mmc_app_sd_status()
|
D | mmc_test.c | 212 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument 239 mrq->data->blksz = blksz; in mmc_test_prepare_mrq() 291 u8 *buffer, unsigned addr, unsigned blksz, int write) in mmc_test_buffer_transfer() argument 304 sg_init_one(&sg, buffer, blksz); in mmc_test_buffer_transfer() 306 mmc_test_prepare_mrq(test, &mrq, &sg, 1, addr, 1, blksz, write); in mmc_test_buffer_transfer() 725 mrq->data->blocks * mrq->data->blksz) in mmc_test_check_result() 756 if (!ret && mrq->data->bytes_xfered > mrq->data->blksz) in mmc_test_check_broken_result() 890 unsigned blocks, unsigned blksz, int write) in mmc_test_simple_transfer() argument 902 blocks, blksz, write); in mmc_test_simple_transfer() 915 unsigned blocks, unsigned blksz, int write) in mmc_test_broken_transfer() argument [all …]
|
D | sdio_ops.h | 22 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz);
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_trans_resv.c | 210 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_rtalloc_log_count() local 214 return (howmany(rtbmp_bytes, blksz) + 1) * num_ops; in xfs_rtalloc_log_count() 264 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_write_reservation() local 267 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), blksz) + in xfs_calc_write_reservation() 269 xfs_calc_buf_res(xfs_allocfree_log_count(mp, 2), blksz); in xfs_calc_write_reservation() 274 blksz) + in xfs_calc_write_reservation() 276 xfs_calc_buf_res(xfs_rtalloc_log_count(mp, 1), blksz) + in xfs_calc_write_reservation() 277 xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1), blksz); in xfs_calc_write_reservation() 283 xfs_calc_buf_res(xfs_allocfree_log_count(mp, 2), blksz); in xfs_calc_write_reservation() 312 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_itruncate_reservation() local [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-dust.c | 28 unsigned int blksz; member 326 unsigned int blksz; in dust_ctr() local 336 if (kstrtouint(argv[2], 10, &blksz) || !blksz) { in dust_ctr() 341 if (blksz < 512) { in dust_ctr() 346 if (!is_power_of_2(blksz)) { in dust_ctr() 351 if (to_sector(blksz) > max_block_sectors) { in dust_ctr() 356 sect_per_block = (blksz >> SECTOR_SHIFT); in dust_ctr() 376 dd->blksz = blksz; in dust_ctr() 528 (unsigned long long)dd->start, dd->blksz); in dust_status()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | usdhi6rol0.c | 322 data->blksz, data->blocks, sg->offset); in usdhi6_blk_bounce() 338 data->blksz - blk_head); in usdhi6_blk_bounce() 360 size_t blk_head = head % data->blksz; in usdhi6_sg_map() 363 if (WARN(sg_dma_len(sg) % data->blksz, in usdhi6_sg_map() 365 sg_dma_len(sg), data->blksz)) in usdhi6_sg_map() 378 if (head < data->blksz) in usdhi6_sg_map() 410 data->blksz - blk_head); in usdhi6_sg_unmap() 419 (host->page_idx << PAGE_SHIFT) + data->blksz - blk_head) in usdhi6_sg_unmap() 444 host->offset = data->blksz - host->head_len; in usdhi6_sg_advance() 448 host->offset += data->blksz; in usdhi6_sg_advance() [all …]
|
D | meson-gx-mmc.c | 662 static void meson_mmc_set_blksz(struct mmc_host *mmc, unsigned int blksz) in meson_mmc_set_blksz() argument 670 if (!is_power_of_2(blksz)) in meson_mmc_set_blksz() 671 dev_err(host->dev, "blksz %u is not a power of 2\n", blksz); in meson_mmc_set_blksz() 673 blksz = ilog2(blksz); in meson_mmc_set_blksz() 676 if (blksz == blksz_old) in meson_mmc_set_blksz() 680 blksz_old, blksz); in meson_mmc_set_blksz() 683 cfg |= FIELD_PREP(CFG_BLK_LEN_MASK, blksz); in meson_mmc_set_blksz() 718 meson_mmc_set_blksz(mmc, data->blksz); in meson_mmc_desc_chain_transfer() 725 len /= data->blksz; in meson_mmc_desc_chain_transfer() 823 meson_mmc_set_blksz(mmc, data->blksz); in meson_mmc_start_cmd() [all …]
|
D | mmci_qcom_dml.c | 67 writel_relaxed(data->blksz, base + DML_PRODUCER_BAM_BLOCK_SIZE); in qcom_dma_start() 70 writel_relaxed(data->blocks * data->blksz, in qcom_dma_start() 184 return MCI_DPSM_ENABLE | (host->data->blksz << 4); in qcom_get_dctrl_cfg()
|
D | cb710-mmc.c | 262 return !(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8)); in cb710_is_transfer_size_supported() 273 if (unlikely(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8))) in cb710_mmc_receive() 284 len = data->blksz; in cb710_mmc_receive() 317 if (unlikely(data->blocks > 1 && data->blksz & 15)) in cb710_mmc_send() 326 len = (data->blksz + 15) >> 4; in cb710_mmc_send() 439 data->bytes_xfered = data->blksz * data->blocks; in cb710_mmc_transfer_data() 457 cb710_mmc_set_transfer_size(slot, data->blocks, data->blksz); in cb710_mmc_command()
|
D | rtsx_pci_sdmmc.c | 99 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument 103 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BYTE_CNT_L, 0xFF, blksz); in sd_cmd_set_data_len() 104 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BYTE_CNT_H, 0xFF, blksz >> 8); in sd_cmd_set_data_len() 436 size_t data_len = data->blksz * data->blocks; in sd_read_long_data() 450 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_read_long_data() 493 size_t data_len = data->blksz * data->blocks; in sd_write_long_data() 509 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_write_long_data() 585 buf = kzalloc(data->blksz, GFP_NOIO); in sd_normal_rw() 595 cmd->error = sd_read_data(host, cmd, (u16)data->blksz, buf, in sd_normal_rw() 596 data->blksz, 200); in sd_normal_rw() [all …]
|
D | tifm_sd.c | 225 unsigned int t_size = r_data->blksz; in tifm_sd_bounce_block() 250 r_data->blksz - t_size, in tifm_sd_bounce_block() 254 r_data->blksz - t_size, p_cnt); in tifm_sd_bounce_block() 264 unsigned int t_size = TIFM_DMA_TSIZE * r_data->blksz; in tifm_sd_set_dma_data() 291 dma_blk_cnt = dma_len / r_data->blksz; in tifm_sd_set_dma_data() 293 host->block_pos += dma_blk_cnt * r_data->blksz; in tifm_sd_set_dma_data() 644 if (mrq->data && !is_power_of_2(mrq->data->blksz)) in tifm_sd_request() 668 r_data->blksz); in tifm_sd_request() 698 writel(ilog2(r_data->blksz) - 2, in tifm_sd_request() 717 writel(r_data->blksz - 1, in tifm_sd_request() [all …]
|
D | cavium.c | 302 int data_len = req->data->blocks * req->data->blksz; in do_read() 336 req->data->bytes_xfered = req->data->blocks * req->data->blksz; in do_write() 375 data->bytes_xfered = data->blocks * data->blksz; in finish_dma_single() 392 data->bytes_xfered = data->blocks * data->blksz; in finish_dma_sg() 669 data->blocks, data->blksz, data->blocks * data->blksz); in cvm_mmc_dma_request() 717 unsigned int data_len = mrq->data->blocks * mrq->data->blksz; in do_write_request() 805 64 - ((cmd->data->blocks * cmd->data->blksz) / 8)); in cvm_mmc_request()
|
D | toshsd.c | 184 if (count > data->blksz) in toshsd_thread_irq() 185 count = data->blksz; in toshsd_thread_irq() 277 data->bytes_xfered = data->blocks * data->blksz; in toshsd_data_end_irq() 479 data->blksz, data->blocks, data->sg->offset); in toshsd_start_data() 492 iowrite16(data->blksz, host->ioaddr + SD_CARDXFERDATALEN); in toshsd_start_data()
|
D | rtsx_usb_sdmmc.c | 457 size_t data_len = data->blksz * data->blocks; in sd_rw_multi() 552 buf = kzalloc(data->blksz, GFP_NOIO); in sd_normal_rw() 562 cmd->error = sd_read_data(host, cmd, (u16)data->blksz, buf, in sd_normal_rw() 563 data->blksz, 200); in sd_normal_rw() 568 sg_copy_from_buffer(data->sg, data->sg_len, buf, data->blksz); in sd_normal_rw() 570 sg_copy_to_buffer(data->sg, data->sg_len, buf, data->blksz); in sd_normal_rw() 572 cmd->error = sd_write_data(host, cmd, (u16)data->blksz, buf, in sd_normal_rw() 573 data->blksz, 200); in sd_normal_rw() 832 data_size = data->blocks * data->blksz; in sdmmc_request() 857 data->bytes_xfered = data->blocks * data->blksz; in sdmmc_request()
|
D | tmio_mmc_core.c | 386 if (count > data->blksz) in tmio_mmc_pio_irq() 387 count = data->blksz; in tmio_mmc_pio_irq() 430 data->bytes_xfered = data->blocks * data->blksz; in tmio_mmc_do_data_irq() 685 data->blksz, data->blocks); in tmio_mmc_start_data() 692 if (data->blksz < 2 || (data->blksz < 4 && !blksz_2bytes)) { in tmio_mmc_start_data() 694 mmc_hostname(host->mmc), data->blksz); in tmio_mmc_start_data() 704 sd_ctrl_write16(host, CTL_SD_XFER_LEN, data->blksz); in tmio_mmc_start_data()
|
D | mvsdio.c | 98 (u32)sg_virt(data->sg), data->blocks, data->blksz, in mvsd_setup_data() 105 mvsd_write(MVSD_BLK_SIZE, data->blksz); in mvsd_setup_data() 107 if (nodma || (data->blksz | data->sg->offset) & 3 || in mvsd_setup_data() 117 host->pio_size = data->blocks * data->blksz; in mvsd_setup_data() 311 (data->blocks - mvsd_read(MVSD_CURR_BLK_LEFT)) * data->blksz; in mvsd_finish_data() 314 data->bytes_xfered -= data->blksz; in mvsd_finish_data()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | adi_64.h | 15 __u64 blksz; member 36 return adi_state.caps.blksz; in adi_blksize()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | sdio.c | 121 u32 blksz; in gb_sdio_get_caps() local 139 blksz = min_t(u16, le16_to_cpu(response.max_blk_size), data_max); in gb_sdio_get_caps() 140 blksz = max_t(u32, 512, blksz); in gb_sdio_get_caps() 142 mmc->max_blk_size = rounddown_pow_of_two(blksz); in gb_sdio_get_caps() 279 request->data_blksz = cpu_to_le16(data->blksz); in _gb_sdio_send() 333 request->data_blksz = cpu_to_le16(data->blksz); in _gb_sdio_recv() 373 left = data->blksz * data->blocks; in gb_sdio_transfer() 386 nblocks = len / data->blksz; in gb_sdio_transfer() 387 len = nblocks * data->blksz; in gb_sdio_transfer() 469 request.data_blksz = cpu_to_le16(data->blksz); in gb_sdio_command()
|
/kernel/linux/linux-5.10/drivers/bluetooth/ |
D | btmrvl_sdio.c | 717 int ret, num_blocks, blksz; in btmrvl_sdio_card_to_host() local 738 blksz = SDIO_BLOCK_SIZE; in btmrvl_sdio_card_to_host() 739 num_blocks = DIV_ROUND_UP(buf_len, blksz); in btmrvl_sdio_card_to_host() 742 || (num_blocks * blksz) > ALLOC_BUF_SIZE) { in btmrvl_sdio_card_to_host() 749 skb = bt_skb_alloc(num_blocks * blksz + BTSDIO_DMA_ALIGN, GFP_KERNEL); in btmrvl_sdio_card_to_host() 766 num_blocks * blksz); in btmrvl_sdio_card_to_host() 781 if (buf_len > blksz * num_blocks) { in btmrvl_sdio_card_to_host() 783 buf_len, blksz * num_blocks); in btmrvl_sdio_card_to_host() 821 BT_ERR("hex: %*ph", blksz * num_blocks, payload); in btmrvl_sdio_card_to_host() 1105 int blksz; in btmrvl_sdio_host_to_card() local [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | mmc.h | 34 __field(unsigned int, blksz) 60 __entry->blksz = mrq->data ? mrq->data->blksz : 0; 89 __entry->blocks, __entry->blksz,
|
/kernel/linux/linux-5.10/include/uapi/linux/mmc/ |
D | ioctl.h | 22 unsigned int blksz; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/mmc/ |
D | ioctl.h | 30 unsigned int blksz; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/mmc/ |
D | ioctl.h | 19 unsigned int blksz; member
|