Home
last modified time | relevance | path

Searched refs:blksz (Results 1 – 25 of 77) sorted by relevance

1234

/linux-6.1.9/fs/xfs/libxfs/
Dxfs_trans_resv.c220 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_rtalloc_block_count() local
224 return (howmany(rtbmp_bytes, blksz) + 1) * num_ops; in xfs_rtalloc_block_count()
260 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_refcountbt_reservation() local
266 xfs_calc_buf_res(xfs_refcountbt_block_count(mp, nr_ops), blksz); in xfs_calc_refcountbt_reservation()
298 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_write_reservation() local
301 xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), blksz) + in xfs_calc_write_reservation()
303 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 2), blksz); in xfs_calc_write_reservation()
308 blksz) + in xfs_calc_write_reservation()
310 xfs_calc_buf_res(xfs_rtalloc_block_count(mp, 1), blksz) + in xfs_calc_write_reservation()
311 xfs_calc_buf_res(xfs_allocfree_block_count(mp, 1), blksz); in xfs_calc_write_reservation()
[all …]
/linux-6.1.9/drivers/mmc/core/
Dsdio_ops.c115 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()
Dsdio_io.c159 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()
Dmmc_test.c211 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 …]
Dsdio_ops.h22 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz);
/linux-6.1.9/drivers/md/
Ddm-dust.c28 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-6.1.9/drivers/mmc/host/
Dusdhi6rol0.c322 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 …]
Dmeson-gx-mmc.c257 if (sg->length % data->blksz) { in meson_mmc_get_transfer_mode()
260 sg->length, data->blksz); in meson_mmc_get_transfer_mode()
678 static void meson_mmc_set_blksz(struct mmc_host *mmc, unsigned int blksz) in meson_mmc_set_blksz() argument
686 if (!is_power_of_2(blksz)) in meson_mmc_set_blksz()
687 dev_err(host->dev, "blksz %u is not a power of 2\n", blksz); in meson_mmc_set_blksz()
689 blksz = ilog2(blksz); in meson_mmc_set_blksz()
692 if (blksz == blksz_old) in meson_mmc_set_blksz()
696 blksz_old, blksz); in meson_mmc_set_blksz()
699 cfg |= FIELD_PREP(CFG_BLK_LEN_MASK, blksz); in meson_mmc_set_blksz()
734 meson_mmc_set_blksz(mmc, data->blksz); in meson_mmc_desc_chain_transfer()
[all …]
Dcb710-mmc.c262 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()
Dmmci_qcom_dml.c67 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()
Drtsx_pci_sdmmc.c102 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument
106 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BYTE_CNT_L, 0xFF, blksz); in sd_cmd_set_data_len()
107 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BYTE_CNT_H, 0xFF, blksz >> 8); in sd_cmd_set_data_len()
439 size_t data_len = data->blksz * data->blocks; in sd_read_long_data()
453 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_read_long_data()
496 size_t data_len = data->blksz * data->blocks; in sd_write_long_data()
512 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_write_long_data()
588 buf = kzalloc(data->blksz, GFP_NOIO); in sd_normal_rw()
598 cmd->error = sd_read_data(host, cmd, (u16)data->blksz, buf, in sd_normal_rw()
599 data->blksz, 200); in sd_normal_rw()
[all …]
Dtifm_sd.c225 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 …]
Dcavium.c302 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()
Dtoshsd.c184 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()
Drtsx_usb_sdmmc.c457 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()
Dtmio_mmc_core.c429 if (count > data->blksz) in tmio_mmc_pio_irq()
430 count = data->blksz; in tmio_mmc_pio_irq()
473 data->bytes_xfered = data->blocks * data->blksz; in tmio_mmc_do_data_irq()
730 data->blksz, data->blocks); in tmio_mmc_start_data()
737 if (data->blksz < 2 || (data->blksz < 4 && !blksz_2bytes)) { in tmio_mmc_start_data()
739 mmc_hostname(host->mmc), data->blksz); in tmio_mmc_start_data()
749 sd_ctrl_write16(host, CTL_SD_XFER_LEN, data->blksz); in tmio_mmc_start_data()
Dmvsdio.c98 (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()
Datmel-mci.c435 data->blksz, data->flags, data->error); in atmci_req_show()
919 int transfer_size = host->data->blocks * host->data->blksz; in atmci_pdc_complete()
1024 if (data->blocks * data->blksz < 12 in atmci_prepare_data()
1025 || (data->blocks * data->blksz) & 3) in atmci_prepare_data()
1066 tmp |= ATMCI_BLKLEN(data->blksz); in atmci_prepare_data_pdc()
1070 host->data_size = data->blocks * data->blksz; in atmci_prepare_data_pdc()
1114 if (data->blocks * data->blksz < ATMCI_DMA_THRESHOLD) in atmci_prepare_data_dma()
1116 if (data->blksz & 3) in atmci_prepare_data_dma()
1283 | ATMCI_BLKLEN(data->blksz)); in atmci_start_request()
1285 ATMCI_BCNT(data->blocks) | ATMCI_BLKLEN(data->blksz)); in atmci_start_request()
[all …]
Ddw_mmc.c135 data->blksz, data->flags, data->error); in dw_mci_req_show()
892 if (data->blocks * data->blksz < DW_MCI_DMA_THRESHOLD) in dw_mci_pre_dma_transfer()
895 if (data->blksz & 3) in dw_mci_pre_dma_transfer()
993 unsigned int blksz = data->blksz; in dw_mci_adjust_fifoth() local
996 u32 blksz_depth = blksz / fifo_width, fifoth_val; in dw_mci_adjust_fifoth()
1011 if (blksz % fifo_width) in dw_mci_adjust_fifoth()
1033 unsigned int blksz = data->blksz; in dw_mci_ctrl_thld() local
1064 blksz_depth = blksz / (1 << host->data_shift); in dw_mci_ctrl_thld()
1075 thld_size = blksz; in dw_mci_ctrl_thld()
1115 if (host->prev_blksz != data->blksz) in dw_mci_submit_data_dma()
[all …]
Dsdricoh_cs.c277 sdricoh_writew(host, R226_BLOCKSIZE, data->blksz); in sdricoh_request()
303 "sg length %i\n", data->blksz, data->blocks, in sdricoh_request()
309 size_t len = data->blksz; in sdricoh_request()
/linux-6.1.9/arch/sparc/include/asm/
Dadi_64.h15 __u64 blksz; member
36 return adi_state.caps.blksz; in adi_blksize()
/linux-6.1.9/drivers/staging/greybus/
Dsdio.c120 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-6.1.9/drivers/bluetooth/
Dbtmrvl_sdio.c704 int ret, num_blocks, blksz; in btmrvl_sdio_card_to_host() local
725 blksz = SDIO_BLOCK_SIZE; in btmrvl_sdio_card_to_host()
726 num_blocks = DIV_ROUND_UP(buf_len, blksz); in btmrvl_sdio_card_to_host()
729 || (num_blocks * blksz) > ALLOC_BUF_SIZE) { in btmrvl_sdio_card_to_host()
736 skb = bt_skb_alloc(num_blocks * blksz + BTSDIO_DMA_ALIGN, GFP_KERNEL); in btmrvl_sdio_card_to_host()
753 num_blocks * blksz); in btmrvl_sdio_card_to_host()
768 if (buf_len > blksz * num_blocks) { in btmrvl_sdio_card_to_host()
770 buf_len, blksz * num_blocks); in btmrvl_sdio_card_to_host()
808 BT_ERR("hex: %*ph", blksz * num_blocks, payload); in btmrvl_sdio_card_to_host()
1092 int blksz; in btmrvl_sdio_host_to_card() local
[all …]
/linux-6.1.9/include/trace/events/
Dmmc.h34 __field(unsigned int, blksz)
60 __entry->blksz = mrq->data ? mrq->data->blksz : 0;
89 __entry->blocks, __entry->blksz,
/linux-6.1.9/include/uapi/linux/mmc/
Dioctl.h22 unsigned int blksz; member

1234