Home
last modified time | relevance | path

Searched refs:blk_size (Results 1 – 25 of 58) sorted by relevance

123

/linux-6.6.21/drivers/mfd/
Dintel-m10-bmc-pmci.c152 u32 blk_size, offset = 0, write_count; in pmci_flash_bulk_write() local
155 blk_size = min(pmci_get_write_space(pmci), size); in pmci_flash_bulk_write()
156 if (blk_size == 0) { in pmci_flash_bulk_write()
164 write_count = blk_size / M10BMC_N6000_FIFO_WORD_SIZE; in pmci_flash_bulk_write()
168 size -= blk_size; in pmci_flash_bulk_write()
169 offset += blk_size; in pmci_flash_bulk_write()
186 u32 blk_size, offset = 0, val, full_read_count, read_count; in pmci_flash_bulk_read() local
190 blk_size = min_t(u32, size, M10BMC_N6000_READ_BLOCK_SIZE); in pmci_flash_bulk_read()
191 full_read_count = blk_size / M10BMC_N6000_FIFO_WORD_SIZE; in pmci_flash_bulk_read()
194 if (full_read_count * M10BMC_N6000_FIFO_WORD_SIZE < blk_size) in pmci_flash_bulk_read()
[all …]
/linux-6.6.21/lib/
Dtest-string_helpers.c477 #define test_string_get_size_one(size, blk_size, exp_result10, exp_result2) \ argument
481 __test_string_get_size((size), (blk_size), (exp_result10), \
490 const u64 blk_size) in test_string_get_size_check() argument
499 size, blk_size, units); in test_string_get_size_check()
503 static __init void __test_string_get_size(const u64 size, const u64 blk_size, in __test_string_get_size() argument
510 string_get_size(size, blk_size, STRING_UNITS_10, buf10, sizeof(buf10)); in __test_string_get_size()
511 string_get_size(size, blk_size, STRING_UNITS_2, buf2, sizeof(buf2)); in __test_string_get_size()
514 size, blk_size); in __test_string_get_size()
517 size, blk_size); in __test_string_get_size()
Dstring_helpers.c35 void string_get_size(u64 size, u64 blk_size, const enum string_size_units units, in string_get_size() argument
60 if (blk_size == 0) in string_get_size()
76 while (blk_size >> 32) { in string_get_size()
77 do_div(blk_size, divisor[units]); in string_get_size()
88 size *= blk_size; in string_get_size()
/linux-6.6.21/fs/reiserfs/
Dtail_conversion.c42 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-6.6.21/drivers/s390/block/
Ddasd_fba.h26 __u16 blk_size; /* Blocksize */ member
66 __u16 blk_size; member
Ddasd_fba.c94 data->blk_size = blksize; in define_extent()
181 (private->rdc_data.blk_size >> 9)) >> 11), in dasd_fba_check_characteristics()
182 private->rdc_data.blk_size, in dasd_fba_check_characteristics()
192 rc = dasd_check_blocksize(private->rdc_data.blk_size); in dasd_fba_do_analysis()
195 private->rdc_data.blk_size); in dasd_fba_do_analysis()
199 block->bp_block = private->rdc_data.blk_size; in dasd_fba_do_analysis()
201 for (sb = 512; sb < private->rdc_data.blk_size; sb = sb << 1) in dasd_fba_do_analysis()
/linux-6.6.21/drivers/platform/x86/intel/ifs/
Dload.c54 unsigned int blk_size; member
72 meta_header->blk_size && in find_meta_data()
74 meta_size += meta_header->blk_size; in find_meta_data()
78 meta_header = (void *)meta_header + meta_header->blk_size; in find_meta_data()
/linux-6.6.21/drivers/char/
Dps3flash.c90 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-6.6.21/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_smp.c21 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-6.6.21/drivers/block/
Dps3disk.c388 if (dev->blk_size < 512) { in ps3disk_probe()
391 __LINE__, dev->blk_size); in ps3disk_probe()
445 blk_queue_dma_alignment(queue, dev->blk_size-1); in ps3disk_probe()
446 blk_queue_logical_block_size(queue, dev->blk_size); in ps3disk_probe()
461 priv->blocking_factor = dev->blk_size >> 9; in ps3disk_probe()
Dvirtio_blk.c1310 u32 v, blk_size, max_size, sg_elems, opt_io_size; in virtblk_probe() local
1429 struct virtio_blk_config, blk_size, in virtblk_probe()
1430 &blk_size); in virtblk_probe()
1432 err = blk_validate_block_size(blk_size); in virtblk_probe()
1436 blk_size); in virtblk_probe()
1440 blk_queue_logical_block_size(q, blk_size); in virtblk_probe()
1442 blk_size = queue_logical_block_size(q); in virtblk_probe()
1450 blk_size * (1 << physical_block_exp)); in virtblk_probe()
1456 blk_queue_alignment_offset(q, blk_size * alignment_offset); in virtblk_probe()
1462 blk_queue_io_min(q, blk_size * min_io_size); in virtblk_probe()
[all …]
/linux-6.6.21/sound/soc/mediatek/common/
Dmtk-btcvsd.c290 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-6.6.21/drivers/dma/qcom/
Dqcom_adm.c132 u32 blk_size; member
362 int blk_size = 0; in adm_prep_slave_sg() local
378 blk_size = adm_get_blksize(burst); in adm_prep_slave_sg()
379 if (blk_size < 0) { in adm_prep_slave_sg()
413 async_desc->blk_size = blk_size; in adm_prep_slave_sg()
550 writel(async_desc->mux | async_desc->blk_size, in adm_start_dma()
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/
Dsdio.c709 u32 blk_size = (blk_mode == BLOCK_MODE) ? MWIFIEX_SDIO_BLOCK_SIZE : 1; in mwifiex_write_data_sync() local
724 ret = sdio_writesb(card->func, ioport, buffer, blk_cnt * blk_size); in mwifiex_write_data_sync()
740 u32 blk_size = (blk_mode == BLOCK_MODE) ? MWIFIEX_SDIO_BLOCK_SIZE : 1; in mwifiex_read_data_sync() local
748 ret = sdio_readsb(card->func, buffer, ioport, blk_cnt * blk_size); in mwifiex_read_data_sync()
1588 u16 blk_size; in mwifiex_deaggr_sdio_pkt() local
1599 blk_size = adapter->sdio_rx_block_size * blk_num; in mwifiex_deaggr_sdio_pkt()
1600 if (blk_size > total_pkt_len) { in mwifiex_deaggr_sdio_pkt()
1604 __func__, blk_num, blk_size, total_pkt_len); in mwifiex_deaggr_sdio_pkt()
1609 if ((pkt_len + SDIO_HEADER_OFFSET) > blk_size) { in mwifiex_deaggr_sdio_pkt()
1613 __func__, pkt_len, blk_size); in mwifiex_deaggr_sdio_pkt()
[all …]
/linux-6.6.21/drivers/usb/host/
Disp1362-hcd.c160 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-6.6.21/arch/powerpc/platforms/ps3/
Dplatform.h151 unsigned int dev_index, u64 *blk_size);
164 unsigned int dev_index, u64 *port, u64 *blk_size,
Drepository.c571 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()
Ddevice-init.c326 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-6.6.21/arch/powerpc/include/asm/
Dps3stor.h28 u64 blk_size; member
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_hubp.c338 enum hubp_ind_block_size blk_size) in hubp3_dcc_control() argument
345 PRIMARY_SURFACE_DCC_IND_BLK, blk_size, in hubp3_dcc_control()
347 SECONDARY_SURFACE_DCC_IND_BLK, blk_size); in hubp3_dcc_control()
/linux-6.6.21/drivers/fpga/
Dintel-m10-bmc-sec-update.c583 u32 blk_size, doorbell; in m10bmc_sec_fw_write() local
598 blk_size = min_t(u32, WRITE_BLOCK_SIZE, size); in m10bmc_sec_fw_write()
599 ret = m10bmc_sec_write(sec, data, offset, blk_size); in m10bmc_sec_fw_write()
603 *written = blk_size; in m10bmc_sec_fw_write()
/linux-6.6.21/include/uapi/linux/
Dvirtio_blk.h75 __virtio32 blk_size; member
/linux-6.6.21/include/sound/
Dtas2781-dsp.h78 unsigned int blk_size; member
/linux-6.6.21/sound/soc/codecs/
Dtas2781-fmwlib.c348 block->blk_size = be32_to_cpup((__be32 *)&data[offset]); in fw_parse_block_data_kernel()
354 if (offset + block->blk_size > fmw->size) { in fw_parse_block_data_kernel()
360 block->data = kmemdup(&data[offset], block->blk_size, GFP_KERNEL); in fw_parse_block_data_kernel()
365 offset += block->blk_size; in fw_parse_block_data_kernel()
773 const unsigned int blk_size = block->blk_size; in tasdevice_load_block_kernel() local
908 dev_idx, blk_size - length); in tasdevice_load_block_kernel()
912 __func__, length, blk_size); in tasdevice_load_block_kernel()
916 if (blk_size < length) { in tasdevice_load_block_kernel()
918 __func__, length, blk_size); in tasdevice_load_block_kernel()
/linux-6.6.21/drivers/scsi/
Dps3rom.c346 if (dev->blk_size != CD_FRAMESIZE) { in ps3rom_probe()
349 __LINE__, dev->blk_size); in ps3rom_probe()

123