/linux/drivers/mmc/core/ |
H A 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()
|
H A 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()
|
H A D | mmc_test.c | 211 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument 238 mrq->data->blksz = blksz; in mmc_test_prepare_mrq() 290 u8 *buffer, unsigned addr, unsigned blksz, int write) in mmc_test_buffer_transfer() argument 303 sg_init_one(&sg, buffer, blksz); in mmc_test_buffer_transfer() 305 mmc_test_prepare_mrq(test, &mrq, &sg, 1, addr, 1, blksz, write); in mmc_test_buffer_transfer() 710 mrq->data->blocks * mrq->data->blksz) in mmc_test_check_result() 741 if (!ret && mrq->data->bytes_xfered > mrq->data->blksz) in mmc_test_check_broken_result() 875 unsigned blocks, unsigned blksz, int write) in mmc_test_simple_transfer() argument 887 blocks, blksz, write); in mmc_test_simple_transfer() 900 unsigned blocks, unsigned blksz, int write) in mmc_test_broken_transfer() argument [all …]
|
H A D | sdio_ops.h | 22 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz);
|
H A D | sd_ops.c | 338 data.blksz = 8; in mmc_app_send_scr() 401 data.blksz = 64; in mmc_app_sd_status()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_trans_resv.c | 264 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_refcountbt_reservation() local 270 xfs_calc_buf_res(xfs_refcountbt_block_count(mp, nr_ops), blksz); in xfs_calc_refcountbt_reservation() 302 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_write_reservation() local 305 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), blksz) + in xfs_calc_write_reservation() 307 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), blksz); in xfs_calc_write_reservation() 312 blksz) + in xfs_calc_write_reservation() 314 xfs_calc_buf_res(xfs_rtalloc_block_count(mp, 1), blksz) + in xfs_calc_write_reservation() 315 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), blksz); in xfs_calc_write_reservation() 321 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), blksz); in xfs_calc_write_reservation() 338 blksz); in xfs_calc_write_reservation() [all …]
|
/linux/drivers/md/ |
H A 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()
|
/linux/arch/sparc/include/asm/ |
H A D | adi_64.h | 15 __u64 blksz; member 36 return adi_state.caps.blksz; in adi_blksize()
|
H A D | elf_64.h | 222 NEW_AUX_ENT(AT_ADI_BLKSZ, adi_state.caps.blksz); \
|
/linux/drivers/staging/greybus/ |
H A D | sdio.c | 120 u32 blksz; in gb_sdio_get_caps() local 138 blksz = min_t(u16, le16_to_cpu(response.max_blk_size), data_max); in gb_sdio_get_caps() 139 blksz = max_t(u32, 512, blksz); in gb_sdio_get_caps() 141 mmc->max_blk_size = rounddown_pow_of_two(blksz); in gb_sdio_get_caps() 278 request->data_blksz = cpu_to_le16(data->blksz); in _gb_sdio_send() 332 request->data_blksz = cpu_to_le16(data->blksz); in _gb_sdio_recv() 372 left = data->blksz * data->blocks; in gb_sdio_transfer() 385 nblocks = len / data->blksz; in gb_sdio_transfer() 386 len = nblocks * data->blksz; in gb_sdio_transfer() 468 request.data_blksz = cpu_to_le16(data->blksz); in gb_sdio_command()
|
/linux/drivers/mmc/host/ |
H A 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()
|
H A D | tifm_sd.c | 226 unsigned int t_size = r_data->blksz; in tifm_sd_bounce_block() 251 r_data->blksz - t_size, in tifm_sd_bounce_block() 255 r_data->blksz - t_size, p_cnt); in tifm_sd_bounce_block() 265 unsigned int t_size = TIFM_DMA_TSIZE * r_data->blksz; in tifm_sd_set_dma_data() 289 dma_blk_cnt = dma_len / r_data->blksz; in tifm_sd_set_dma_data() 291 host->block_pos += dma_blk_cnt * r_data->blksz; in tifm_sd_set_dma_data() 637 if (mrq->data && !is_power_of_2(mrq->data->blksz)) in tifm_sd_request() 661 r_data->blksz); in tifm_sd_request() 691 writel(ilog2(r_data->blksz) - 2, in tifm_sd_request() 710 writel(r_data->blksz - 1, in tifm_sd_request() [all …]
|
H A 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() 667 data->blocks, data->blksz, data->blocks * data->blksz); in cvm_mmc_dma_request() 715 unsigned int data_len = mrq->data->blocks * mrq->data->blksz; in do_write_request() 803 64 - ((cmd->data->blocks * cmd->data->blksz) / 8)); in cvm_mmc_request()
|
H A 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()
|
H A D | tmio_mmc_core.c | 431 if (count > data->blksz) in tmio_mmc_pio_irq() 432 count = data->blksz; in tmio_mmc_pio_irq() 475 data->bytes_xfered = data->blocks * data->blksz; in tmio_mmc_do_data_irq() 735 data->blksz, data->blocks); in tmio_mmc_start_data() 742 if (data->blksz < 2 || (data->blksz < 4 && !blksz_2bytes)) { in tmio_mmc_start_data() 744 mmc_hostname(host->mmc), data->blksz); in tmio_mmc_start_data() 754 sd_ctrl_write16(host, CTL_SD_XFER_LEN, data->blksz); in tmio_mmc_start_data()
|
H A 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()
|
H A D | sdricoh_cs.c | 269 sdricoh_writew(host, R226_BLOCKSIZE, data->blksz); in sdricoh_request() 295 "sg length %i\n", data->blksz, data->blocks, in sdricoh_request() 301 size_t len = data->blksz; in sdricoh_request()
|
H A D | dw_mmc.c | 134 data->blksz, data->flags, data->error); in dw_mci_req_show() 890 if (data->blocks * data->blksz < DW_MCI_DMA_THRESHOLD) in dw_mci_pre_dma_transfer() 893 if (data->blksz & 3) in dw_mci_pre_dma_transfer() 991 unsigned int blksz = data->blksz; in dw_mci_adjust_fifoth() local 994 u32 blksz_depth = blksz / fifo_width, fifoth_val; in dw_mci_adjust_fifoth() 1009 if (blksz % fifo_width) in dw_mci_adjust_fifoth() 1031 unsigned int blksz = data->blksz; in dw_mci_ctrl_thld() local 1062 blksz_depth = blksz / (1 << host->data_shift); in dw_mci_ctrl_thld() 1073 thld_size = blksz; in dw_mci_ctrl_thld() 1113 if (host->prev_blksz != data->blksz) in dw_mci_submit_data_dma() [all …]
|
H A D | mmci.c | 531 if (!is_power_of_2(data->blksz) && !variant->datactrl_any_blocksz) { in mmci_validate_data() 533 "unsupported block size (%d bytes)\n", data->blksz); in mmci_validate_data() 594 data->sg_len, data->blksz, data->blocks, data->flags); in mmci_dma_start() 690 return MCI_DPSM_ENABLE | (host->data->blksz << 16); in ux500v2_get_dctrl_cfg() 1044 if (data->blksz * data->blocks <= variant->fifosize) in _mmci_dmae_prep_data() 1056 if (host->variant->dma_power_of_2 && !is_power_of_2(data->blksz)) in _mmci_dmae_prep_data() 1244 data->blksz, data->blocks, data->flags); in mmci_start_data() 1247 host->size = data->blksz * data->blocks; in mmci_start_data() 1417 success = data->blksz * data->blocks - remain; in mmci_data_irq() 1441 data->bytes_xfered = round_down(success, data->blksz); in mmci_data_irq() [all …]
|
H A D | mmci_stm32_sdmmc.c | 138 unsigned int xfer_bytes = data->blksz * data->blocks; in _sdmmc_idma_prep_data() 177 unsigned int xfer_bytes = data->blksz * data->blocks; in sdmmc_idma_unprep_data() 419 thr = ffs(min_t(unsigned int, host->data->blksz, in sdmmc_get_dctrl_cfg()
|
/linux/drivers/bluetooth/ |
H A D | btmrvl_sdio.c | 703 int ret, num_blocks, blksz; in btmrvl_sdio_card_to_host() local 724 blksz = SDIO_BLOCK_SIZE; in btmrvl_sdio_card_to_host() 725 num_blocks = DIV_ROUND_UP(buf_len, blksz); in btmrvl_sdio_card_to_host() 728 || (num_blocks * blksz) > ALLOC_BUF_SIZE) { in btmrvl_sdio_card_to_host() 735 skb = bt_skb_alloc(num_blocks * blksz + BTSDIO_DMA_ALIGN, GFP_KERNEL); in btmrvl_sdio_card_to_host() 752 num_blocks * blksz); in btmrvl_sdio_card_to_host() 767 if (buf_len > blksz * num_blocks) { in btmrvl_sdio_card_to_host() 769 buf_len, blksz * num_blocks); in btmrvl_sdio_card_to_host() 807 BT_ERR("hex: %*ph", blksz * num_blocks, payload); in btmrvl_sdio_card_to_host() 1091 int blksz; in btmrvl_sdio_host_to_card() local [all …]
|
/linux/include/trace/events/ |
H A D | mmc.h | 34 __field(unsigned int, blksz) 60 __entry->blksz = mrq->data ? mrq->data->blksz : 0; 89 __entry->blocks, __entry->blksz,
|
/linux/include/uapi/linux/mmc/ |
H A D | ioctl.h | 22 unsigned int blksz; member
|
/linux/include/linux/mmc/ |
H A D | core.h | 124 unsigned int blksz; /* data block size */ member
|
H A D | sdio_func.h | 136 extern int sdio_set_block_size(struct sdio_func *func, unsigned blksz);
|