/Linux-v5.10/lib/ |
D | test-string_helpers.c | 352 #define test_string_get_size_one(size, blk_size, exp_result10, exp_result2) \ argument 356 __test_string_get_size((size), (blk_size), (exp_result10), \ 365 const u64 blk_size) in test_string_get_size_check() argument 374 size, blk_size, units); in test_string_get_size_check() 378 static __init void __test_string_get_size(const u64 size, const u64 blk_size, in __test_string_get_size() argument 385 string_get_size(size, blk_size, STRING_UNITS_10, buf10, sizeof(buf10)); in __test_string_get_size() 386 string_get_size(size, blk_size, STRING_UNITS_2, buf2, sizeof(buf2)); in __test_string_get_size() 389 size, blk_size); in __test_string_get_size() 392 size, blk_size); in __test_string_get_size()
|
D | string_helpers.c | 34 void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, in string_get_size() argument 59 if (blk_size == 0) in string_get_size() 75 while (blk_size >> 32) { in string_get_size() 76 do_div(blk_size, divisor[units]); in string_get_size() 87 size *= blk_size; in string_get_size()
|
/Linux-v5.10/drivers/ide/ |
D | ide-tape.c | 185 unsigned short blk_size; member 286 scsi_req(rq)->resid_len = tape->blk_size * get_unaligned_be32(&sense[3]); in idetape_analyze_error() 352 (blk_rq_bytes(rq) - scsi_req(rq)->resid_len) / tape->blk_size; in ide_tape_callback() 354 tape->avg_size += blocks * tape->blk_size; in ide_tape_callback() 548 unsigned int length = blk_rq_sectors(rq) / (tape->blk_size >> 9); in ide_tape_create_rw_cmd() 856 BUG_ON(size < 0 || size % tape->blk_size); in idetape_queue_rw_tail() 932 size_t aligned = roundup(tape->valid, tape->blk_size); in ide_tape_flush_merge_buffer() 1143 if (count > tape->blk_size && in idetape_chrdev_read() 1144 (count % tape->blk_size) == 0) in idetape_chrdev_read() 1145 tape->user_bs_factor = count / tape->blk_size; in idetape_chrdev_read() [all …]
|
/Linux-v5.10/fs/reiserfs/ |
D | tail_conversion.c | 42 int blk_size; in direct2indirect() local 52 blk_size = sb->s_blocksize; in direct2indirect() 123 tail_size = (le_ih_k_offset(p_le_ih) & (blk_size - 1)) in direct2indirect() 157 memset(kaddr + pgoff, 0, blk_size - total_tail); in direct2indirect()
|
/Linux-v5.10/drivers/s390/block/ |
D | dasd_fba.h | 26 __u16 blk_size; /* Blocksize */ member 66 __u16 blk_size; member
|
D | dasd_fba.c | 103 data->blk_size = blksize; in define_extent() 190 (private->rdc_data.blk_size >> 9)) >> 11), in dasd_fba_check_characteristics() 191 private->rdc_data.blk_size, in dasd_fba_check_characteristics() 201 rc = dasd_check_blocksize(private->rdc_data.blk_size); in dasd_fba_do_analysis() 204 private->rdc_data.blk_size); in dasd_fba_do_analysis() 208 block->bp_block = private->rdc_data.blk_size; in dasd_fba_do_analysis() 210 for (sb = 512; sb < private->rdc_data.blk_size; sb = sb << 1) in dasd_fba_do_analysis()
|
/Linux-v5.10/drivers/char/ |
D | ps3flash.c | 90 dev->regions[dev->region_idx].size*dev->blk_size); in ps3flash_llseek() 107 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_read() 176 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_write() 337 tmp = dev->regions[dev->region_idx].start*dev->blk_size; in ps3flash_probe() 344 tmp = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_probe() 376 priv->chunk_sectors = dev->bounce_size / dev->blk_size; in ps3flash_probe()
|
/Linux-v5.10/drivers/block/rsxx/ |
D | dev.c | 226 unsigned short blk_size; in rsxx_setup_dev() local 255 blk_size = card->config.data.block_size; in rsxx_setup_dev() 256 blk_queue_dma_alignment(card->queue, blk_size - 1); in rsxx_setup_dev() 257 blk_queue_logical_block_size(card->queue, blk_size); in rsxx_setup_dev()
|
/Linux-v5.10/drivers/block/ |
D | virtio_blk.c | 706 u32 v, blk_size, max_size, sg_elems, opt_io_size; in virtblk_probe() local 826 struct virtio_blk_config, blk_size, in virtblk_probe() 827 &blk_size); in virtblk_probe() 829 blk_queue_logical_block_size(q, blk_size); in virtblk_probe() 831 blk_size = queue_logical_block_size(q); in virtblk_probe() 839 blk_size * (1 << physical_block_exp)); in virtblk_probe() 845 blk_queue_alignment_offset(q, blk_size * alignment_offset); in virtblk_probe() 851 blk_queue_io_min(q, blk_size * min_io_size); in virtblk_probe() 857 blk_queue_io_opt(q, blk_size * opt_io_size); in virtblk_probe() 860 q->limits.discard_granularity = blk_size; in virtblk_probe()
|
D | ps3disk.c | 403 if (dev->blk_size < 512) { in ps3disk_probe() 406 __LINE__, dev->blk_size); in ps3disk_probe() 457 blk_queue_dma_alignment(queue, dev->blk_size-1); in ps3disk_probe() 458 blk_queue_logical_block_size(queue, dev->blk_size); in ps3disk_probe() 481 priv->blocking_factor = dev->blk_size >> 9; in ps3disk_probe()
|
/Linux-v5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_smp.c | 21 int blk_size; member 99 u32 smp_entries_per_blk = smp->blk_size / (128 / BITS_PER_BYTE); in set_fifo_thresholds() 152 n = DIV_ROUND_UP(fetch_stride * nlines, smp->blk_size); in mdp5_smp_calculate() 393 smp->blk_size = cfg->mmb_size; in mdp5_smp_init()
|
/Linux-v5.10/sound/soc/mediatek/common/ |
D | mtk-btcvsd.c | 290 unsigned int blk_size, in mtk_btcvsd_snd_data_transfer() argument 295 if (blk_size == 60 || blk_size == 120 || blk_size == 20) { in mtk_btcvsd_snd_data_transfer() 299 for (i = 0; i < (blk_size * blk_num / 4); i++) in mtk_btcvsd_snd_data_transfer() 306 for (i = 0; i < (blk_size / 2); i++) in mtk_btcvsd_snd_data_transfer() 361 unsigned int blk_size, in mtk_btcvsd_read_from_bt() argument 389 for (i = 0; i < blk_size; i++) { in mtk_btcvsd_read_from_bt() 414 unsigned int blk_size) in mtk_btcvsd_write_to_bt() argument 434 for (i = 0; i < blk_size; i++) { in mtk_btcvsd_write_to_bt()
|
/Linux-v5.10/drivers/net/wireless/marvell/mwifiex/ |
D | sdio.c | 683 u32 blk_size = (blk_mode == BLOCK_MODE) ? MWIFIEX_SDIO_BLOCK_SIZE : 1; in mwifiex_write_data_sync() local 698 ret = sdio_writesb(card->func, ioport, buffer, blk_cnt * blk_size); in mwifiex_write_data_sync() 714 u32 blk_size = (blk_mode == BLOCK_MODE) ? MWIFIEX_SDIO_BLOCK_SIZE : 1; in mwifiex_read_data_sync() local 722 ret = sdio_readsb(card->func, buffer, ioport, blk_cnt * blk_size); in mwifiex_read_data_sync() 1552 u16 blk_size; in mwifiex_deaggr_sdio_pkt() local 1563 blk_size = adapter->sdio_rx_block_size * blk_num; in mwifiex_deaggr_sdio_pkt() 1564 if (blk_size > total_pkt_len) { in mwifiex_deaggr_sdio_pkt() 1568 __func__, blk_num, blk_size, total_pkt_len); in mwifiex_deaggr_sdio_pkt() 1573 if ((pkt_len + SDIO_HEADER_OFFSET) > blk_size) { in mwifiex_deaggr_sdio_pkt() 1577 __func__, pkt_len, blk_size); in mwifiex_deaggr_sdio_pkt() [all …]
|
/Linux-v5.10/drivers/usb/host/ |
D | isp1362-hcd.c | 160 if (index * epq->blk_size > epq->buf_size) { in get_ptd_offset() 163 epq->buf_size / epq->blk_size); in get_ptd_offset() 166 offset = epq->buf_start + index * epq->blk_size; in get_ptd_offset() 179 xfer_size = min_t(size_t, xfer_size, epq->buf_avail * epq->blk_size - PTD_HEADER_SIZE); in max_transfer_size() 190 int num_ptds = ((len + PTD_HEADER_SIZE - 1) / epq->blk_size) + 1; in claim_ptd_buffers() 200 epq->name, len, epq->blk_size, num_ptds, epq->buf_map, epq->skip_map); in claim_ptd_buffers() 209 num_ptds, found, len, (int)(epq->blk_size - PTD_HEADER_SIZE)); in claim_ptd_buffers() 844 int num_ptds = (ep->length + PTD_HEADER_SIZE + (epq->blk_size - 1)) / epq->blk_size; in next_ptd() 847 ep->length, num_ptds, epq->blk_size, ptd_offset + num_ptds * epq->blk_size); in next_ptd() 849 ptd_offset += num_ptds * epq->blk_size; in next_ptd() [all …]
|
/Linux-v5.10/arch/powerpc/platforms/ps3/ |
D | platform.h | 151 unsigned int dev_index, u64 *blk_size); 164 unsigned int dev_index, u64 *port, u64 *blk_size,
|
D | repository.c | 571 unsigned int dev_index, u64 *blk_size) in ps3_repository_read_stor_dev_blk_size() argument 577 0, blk_size, NULL); in ps3_repository_read_stor_dev_blk_size() 645 unsigned int dev_index, u64 *port, u64 *blk_size, in ps3_repository_read_stor_dev_info() argument 655 blk_size); in ps3_repository_read_stor_dev_info() 1238 u64 port, blk_size, num_blocks; in dump_stor_dev_info() local 1244 repo->dev_index, &port, &blk_size, &num_blocks, &num_regions); in dump_stor_dev_info() 1255 port, blk_size, num_blocks, num_regions); in dump_stor_dev_info()
|
D | device-init.c | 326 u64 port, blk_size, num_blocks; in ps3_setup_storage_dev() local 333 &blk_size, &num_blocks, in ps3_setup_storage_dev() 343 repo->dev_index, repo->dev_type, port, blk_size, num_blocks, in ps3_setup_storage_dev() 357 p->blk_size = blk_size; in ps3_setup_storage_dev()
|
/Linux-v5.10/arch/powerpc/include/asm/ |
D | ps3stor.h | 28 u64 blk_size; member
|
/Linux-v5.10/include/uapi/linux/ |
D | virtio_blk.h | 73 __virtio32 blk_size; member
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_hubp.c | 342 enum hubp_ind_block_size blk_size) in hubp3_dcc_control() argument 349 PRIMARY_SURFACE_DCC_IND_BLK, blk_size, in hubp3_dcc_control() 351 SECONDARY_SURFACE_DCC_IND_BLK, blk_size); in hubp3_dcc_control()
|
/Linux-v5.10/include/linux/ |
D | string_helpers.h | 18 void string_get_size(u64 size, u64 blk_size, enum string_size_units units,
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | hubp.h | 104 enum hubp_ind_block_size blk_size);
|
/Linux-v5.10/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
D | pearl_pcie.c | 957 int blk_size = QTN_PCIE_FW_BUFSZ - sizeof(struct qtnf_pearl_fw_hdr); in qtnf_ep_fw_load() local 958 int blk_count = fw_size / blk_size + ((fw_size % blk_size) ? 1 : 0); in qtnf_ep_fw_load() 997 blk_size + len); in qtnf_ep_fw_load() 1000 pblk -= QTN_PCIE_FW_DLMASK * blk_size; in qtnf_ep_fw_load()
|
/Linux-v5.10/drivers/scsi/ |
D | ps3rom.c | 351 if (dev->blk_size != CD_FRAMESIZE) { in ps3rom_probe() 354 __LINE__, dev->blk_size); in ps3rom_probe()
|
/Linux-v5.10/drivers/iommu/ |
D | io-pgtable-arm-v7s.c | 677 size_t blk_size = ARM_V7S_BLOCK_SIZE(lvl); in __arm_v7s_unmap() local 684 io_pgtable_tlb_flush_walk(iop, iova, blk_size, in __arm_v7s_unmap() 696 io_pgtable_tlb_add_page(iop, gather, iova, blk_size); in __arm_v7s_unmap() 698 iova += blk_size; in __arm_v7s_unmap()
|