Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/mfd/
H A 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()
213 size -= blk_size; in pmci_flash_bulk_read()
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dfsl_ifc_spl.c115 int blk_size; in nand_spl_load_image() local
159 blk_size = pages_per_blk * page_size; in nand_spl_load_image()
223 offs = (offs + blk_size) & ~(blk_size - 1); in nand_spl_load_image()
224 pos &= ~(blk_size - 1); in nand_spl_load_image()
233 } while ((offs & (blk_size - 1)) && (pos < uboot_size)); in nand_spl_load_image()
/openbmc/u-boot/disk/
H A Dpart_mac.c85 mb = ldiv(n, ((1024 * 1024) / ddesc->blk_size)); /* MB */ in part_print_mac()
87 mb.rem *= 10 * ddesc->blk_size; in part_print_mac()
101 ddesc->blk_size, in part_print_mac()
131 bytes /= (1024 / ddesc->blk_size); /* kB; assumes blk_size == 512 */ in part_print_mac()
226 info->blksz = ddesc->blk_size; in part_get_info_mac()
H A Dpart_mac.h27 __u16 blk_size; /* block size of device */ member
/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio-blkdev.c125 vdev->config.blk.blk_size = VIRTIO_ISO_BLOCK_SIZE; in virtio_assume_iso9660()
144 vdev->config.blk.blk_size = VIRTIO_DASD_DEFAULT_BLOCK_SIZE; in virtio_assume_eckd()
147 vdev->config.blk.blk_size = vdev->scsi_block_size; in virtio_assume_eckd()
152 virtio_eckd_sectors_for_block_size(vdev->config.blk.blk_size); in virtio_assume_eckd()
176 return vdev->config.blk.blk_size; in virtio_get_block_size()
/openbmc/linux/lib/
H A 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()
H A 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()
/openbmc/linux/fs/reiserfs/
H A 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()
/openbmc/u-boot/drivers/spi/
H A Dmxc_spi.c340 u32 blk_size; in mxc_spi_xfer_internal() local
352 blk_size = n_bytes; in mxc_spi_xfer_internal()
354 blk_size = MAX_SPI_BYTES; in mxc_spi_xfer_internal()
356 n_bits = blk_size * 8; in mxc_spi_xfer_internal()
363 p_outbuf += blk_size; in mxc_spi_xfer_internal()
365 p_inbuf += blk_size; in mxc_spi_xfer_internal()
366 n_bytes -= blk_size; in mxc_spi_xfer_internal()
/openbmc/linux/drivers/s390/block/
H A Ddasd_fba.h26 __u16 blk_size; /* Blocksize */ member
66 __u16 blk_size; member
H A 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()
/openbmc/linux/drivers/platform/x86/intel/ifs/
H A 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()
/openbmc/linux/drivers/char/
H A 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()
/openbmc/qemu/block/export/
H A Dvhost-user-blk-server.c236 uint32_t blk_size, in vu_blk_initialize_config() argument
241 config->blk_size = cpu_to_le32(blk_size); in vu_blk_initialize_config()
251 cpu_to_le32(blk_size >> VIRTIO_BLK_SECTOR_BITS); in vu_blk_initialize_config()
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A 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()
/openbmc/linux/drivers/block/
H A 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()
H A 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()
1462 blk_queue_io_min(q, blk_size * min_io_size); in virtblk_probe()
1468 blk_queue_io_opt(q, blk_size * opt_io_size); in virtblk_probe()
[all …]
/openbmc/linux/sound/soc/mediatek/common/
H A 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()
/openbmc/linux/drivers/dma/qcom/
H A 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()
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsdio.c1588 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()
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()
1625 data += blk_size; in mwifiex_deaggr_sdio_pkt()
1626 total_pkt_len -= blk_size; in mwifiex_deaggr_sdio_pkt()
2336 u32 blk_size; in mwifiex_sdio_host_to_card() local
2342 blk_size = MWIFIEX_SDIO_BLOCK_SIZE; in mwifiex_sdio_host_to_card()
2343 buf_block_len = (pkt_len + blk_size - 1) / blk_size; in mwifiex_sdio_host_to_card()
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dps3stor.h28 u64 blk_size; member
/openbmc/linux/drivers/usb/host/
H A 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()
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()
1003 WARN_ON(epq->blk_size != 0); in finish_iso_transfers()
2249 isp1362_hcd->istl_queue[i].blk_size = 4; in isp1362_mem_config()
2263 isp1362_hcd->intl_queue.blk_size = intl_blksize; in isp1362_mem_config()
2279 isp1362_hcd->atl_queue.blk_size = atl_blksize; in isp1362_mem_config()
[all …]
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Dplatform.h151 unsigned int dev_index, u64 *blk_size);
164 unsigned int dev_index, u64 *port, u64 *blk_size,
H A 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()
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_blk.h50 __u32 blk_size; member

123