/openbmc/linux/drivers/dma/dw/ |
H A D | dw.c | 51 if ((bytes >> width) > dwc->block_size) { in dw_dma_bytes2block() 52 block = dwc->block_size; in dw_dma_bytes2block() 53 *len = dwc->block_size << width; in dw_dma_bytes2block()
|
H A D | internal.h | 65 .block_size = 131071, 81 .block_size = 131071,
|
/openbmc/linux/fs/btrfs/ |
H A D | reflink.c | 65 const u32 block_size = fs_info->sectorsize; in copy_inline_to_page() local 66 const u64 range_end = file_offset + block_size - 1; in copy_inline_to_page() 74 ASSERT(IS_ALIGNED(file_offset, block_size)); in copy_inline_to_page() 83 block_size); in copy_inline_to_page() 142 if (datal < block_size) in copy_inline_to_page() 143 memzero_page(page, datal, block_size - datal); in copy_inline_to_page() 145 btrfs_page_set_uptodate(fs_info, page, file_offset, block_size); in copy_inline_to_page() 146 btrfs_page_clear_checked(fs_info, page, file_offset, block_size); in copy_inline_to_page() 147 btrfs_page_set_dirty(fs_info, page, file_offset, block_size); in copy_inline_to_page() 155 block_size, true); in copy_inline_to_page() [all …]
|
/openbmc/u-boot/drivers/ddr/marvell/axp/ |
H A D | xor.c | 154 int mv_xor_mem_init(u32 chan, u32 start_ptr, u32 block_size, u32 init_val_high, in mv_xor_mem_init() argument 166 if ((block_size < XEXBSR_BLOCK_SIZE_MIN_VALUE) || in mv_xor_mem_init() 167 (block_size > XEXBSR_BLOCK_SIZE_MAX_VALUE)) in mv_xor_mem_init() 187 block_size); in mv_xor_mem_init()
|
/openbmc/linux/fs/ntfs/ |
H A D | dir.c | 345 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name() 352 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name() 355 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name() 823 dir_ni->itype.index.block_size) { 830 dir_ni->itype.index.block_size); 833 index_end = (u8*)ia + dir_ni->itype.index.block_size; 1298 ~(s64)(ndir->itype.index.block_size - 1))); in ntfs_readdir() 1314 ~(s64)(ndir->itype.index.block_size - 1)) >> in ntfs_readdir() 1326 ndir->itype.index.block_size)) { in ntfs_readdir() 1334 ndir->itype.index.block_size); in ntfs_readdir() [all …]
|
H A D | inode.c | 385 ni->itype.index.block_size = 0; in __ntfs_init_inode() 838 if (ni->itype.index.block_size & in ntfs_read_locked_inode() 839 (ni->itype.index.block_size - 1)) { in ntfs_read_locked_inode() 842 ni->itype.index.block_size); in ntfs_read_locked_inode() 849 ni->itype.index.block_size, in ntfs_read_locked_inode() 858 ni->itype.index.block_size, in ntfs_read_locked_inode() 864 ffs(ni->itype.index.block_size) - 1; in ntfs_read_locked_inode() 1087 block_size) - 1; in ntfs_read_locked_inode() 1368 block_size) - 1; in ntfs_read_locked_attr_inode() 1373 ni->itype.compressed.block_size = 0; in ntfs_read_locked_attr_inode() [all …]
|
/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_buddy_test.c | 72 u64 block_size; in check_block() local 84 block_size = drm_buddy_block_size(mm, block); in check_block() 87 if (block_size < mm->chunk_size) { in check_block() 93 if (block_size & (block_size - 1)) { in check_block() 98 if (!IS_ALIGNED(block_size, mm->chunk_size)) { in check_block() 108 if (!IS_ALIGNED(offset, block_size)) { in check_block() 121 if (drm_buddy_block_offset(buddy) != (offset ^ block_size)) { in check_block() 126 if (drm_buddy_block_size(mm, buddy) != block_size) { in check_block()
|
/openbmc/linux/drivers/crypto/ |
H A D | atmel-sha.c | 105 size_t block_size; member 443 ctx->block_size = SHA1_BLOCK_SIZE; in atmel_sha_init() 724 ctx->block_size); in atmel_sha_xmit_dma_map() 815 ctx->buflen + ctx->block_size); in atmel_sha_update_dma_start() 1396 size_t bs = ctx->block_size; in atmel_sha_dma_check_aligned() 1725 bs = ctx->block_size; in atmel_sha_hmac_setup() 1754 size_t bs = ctx->block_size; in atmel_sha_hmac_prehash_key_done() 1770 size_t bs = ctx->block_size; in atmel_sha_hmac_compute_ipad_hash() 1790 size_t bs = ctx->block_size; in atmel_sha_hmac_compute_opad_hash() 1876 size_t bs = ctx->block_size; in atmel_sha_hmac_init_done() [all …]
|
H A D | n2_core.c | 1090 u8 block_size; member 1099 .block_size = DES_BLOCK_SIZE, 1112 .block_size = DES_BLOCK_SIZE, 1126 .block_size = DES_BLOCK_SIZE, 1141 .block_size = DES_BLOCK_SIZE, 1154 .block_size = DES_BLOCK_SIZE, 1168 .block_size = DES_BLOCK_SIZE, 1182 .block_size = AES_BLOCK_SIZE, 1195 .block_size = AES_BLOCK_SIZE, 1209 .block_size = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/drivers/mmc/core/ |
H A D | queue.c | 351 unsigned block_size = 512; in mmc_setup_queue() local 369 block_size = card->ext_csd.data_sector_size; in mmc_setup_queue() 370 WARN_ON(block_size != 512 && block_size != 4096); in mmc_setup_queue() 373 blk_queue_logical_block_size(mq->queue, block_size); in mmc_setup_queue() 381 round_down(host->max_seg_size, block_size)); in mmc_setup_queue()
|
/openbmc/linux/drivers/md/ |
H A D | dm-bufio.c | 982 unsigned int block_size; member 1115 diff = (long)b->c->block_size; in adjust_total_allocated() 1394 end = b->c->block_size; in submit_io() 2042 BUG_ON(end > b->c->block_size); in dm_bufio_mark_partial_buffer_dirty() 2252 return c->block_size; in dm_bufio_get_block_size() 2360 retain_bytes /= c->block_size; in get_retain_buffers() 2449 if (!block_size || block_size & ((1 << SECTOR_SHIFT) - 1)) { in dm_bufio_client_create() 2464 c->block_size = block_size; in dm_bufio_client_create() 2465 if (is_power_of_2(block_size)) in dm_bufio_client_create() 2494 if (block_size <= KMALLOC_MAX_SIZE && in dm_bufio_client_create() [all …]
|
H A D | raid5-ppl.c | 452 ilog2(ppl_conf->block_size >> 9)); in ppl_submit_iounit() 792 int block_size = ppl_conf->block_size; in ppl_recover_entry() local 836 if (block_size == 512 && in ppl_recover_entry() 839 block_size = RAID5_STRIPE_SIZE(conf); in ppl_recover_entry() 842 for (i = 0; i < strip_sectors; i += (block_size >> 9)) { in ppl_recover_entry() 899 if (!sync_page_io(rdev, sector, block_size, page2, in ppl_recover_entry() 908 ppl_xor(block_size, page1, page2); in ppl_recover_entry() 922 block_size, page2, REQ_OP_READ, in ppl_recover_entry() 931 ppl_xor(block_size, page1, page2); in ppl_recover_entry() 948 if (!sync_page_io(parity_rdev, parity_sector, block_size, in ppl_recover_entry() [all …]
|
/openbmc/linux/drivers/mtd/nand/onenand/ |
H A D | onenand_base.c | 2148 len -= block_size; in onenand_multiblock_erase_verify() 2149 addr += block_size; in onenand_multiblock_erase_verify() 2188 len -= block_size; in onenand_multiblock_erase() 2189 addr += block_size; in onenand_multiblock_erase() 2229 len -= block_size; in onenand_multiblock_erase() 2230 addr += block_size; in onenand_multiblock_erase() 2248 len -= block_size; in onenand_multiblock_erase() 2249 addr += block_size; in onenand_multiblock_erase() 2314 len -= block_size; in onenand_block_by_block_erase() 2315 addr += block_size; in onenand_block_by_block_erase() [all …]
|
/openbmc/linux/drivers/target/ |
H A D | target_core_iblock.c | 240 u32 block_size = bdev_logical_block_size(ib_dev->ibd_bd); in iblock_get_blocks() local 242 div_u64(bdev_nr_bytes(ib_dev->ibd_bd), block_size) - 1; in iblock_get_blocks() 244 if (block_size == dev->dev_attrib.block_size) in iblock_get_blocks() 247 switch (block_size) { in iblock_get_blocks() 249 switch (dev->dev_attrib.block_size) { in iblock_get_blocks() 264 switch (dev->dev_attrib.block_size) { in iblock_get_blocks() 279 switch (dev->dev_attrib.block_size) { in iblock_get_blocks() 294 switch (dev->dev_attrib.block_size) { in iblock_get_blocks() 513 sg->length != cmd->se_dev->dev_attrib.block_size) { in iblock_execute_write_same() 516 cmd->se_dev->dev_attrib.block_size); in iblock_execute_write_same()
|
/openbmc/linux/drivers/s390/char/ |
H A D | tape_proc.c | 61 if (device->char_data.block_size == 0) in tape_proc_show() 64 seq_printf(m, "%i\t", device->char_data.block_size); in tape_proc_show()
|
/openbmc/phosphor-mboxd/vpnor/test/ |
H A D | create_pnor_partition_table.cpp | 46 expectedTable.data.block_size = BLOCK_SIZE; in main() 48 (PNOR_SIZE) / expectedTable.data.block_size; in main()
|
/openbmc/hiomapd/vpnor/test/ |
H A D | create_pnor_partition_table.cpp | 48 expectedTable.data.block_size = BLOCK_SIZE; in main() 50 (PNOR_SIZE) / expectedTable.data.block_size; in main()
|
/openbmc/linux/fs/verity/ |
H A D | fsverity_private.h | 26 unsigned int block_size; /* block size in bytes, e.g. 64 for SHA-256 */ member 39 unsigned int block_size; /* size of data and tree blocks */ member
|
/openbmc/qemu/dump/ |
H A D | dump.c | 966 uint32_t block_size; in create_header32() local 978 block_size = s->dump_info.page_size; in create_header32() 979 dh->block_size = cpu_to_dump32(s, block_size); in create_header32() 1036 block_size, kh, size) < 0) { in create_header32() 1058 block_size; in create_header32() 1062 block_size; in create_header32() 1077 uint32_t block_size; in create_header64() local 1089 block_size = s->dump_info.page_size; in create_header64() 1090 dh->block_size = cpu_to_dump32(s, block_size); in create_header64() 1170 block_size; in create_header64() [all …]
|
/openbmc/linux/fs/pstore/ |
H A D | ram_core.c | 129 int ecc_block_size = prz->ecc_info.block_size; in persistent_ram_update_ecc() 172 int size = prz->ecc_info.block_size; in persistent_ram_ecc_old() 183 block += prz->ecc_info.block_size; in persistent_ram_ecc_old() 199 prz->ecc_info.block_size = ecc_info->block_size ?: 128; in persistent_ram_init_ecc() 205 prz->ecc_info.block_size + in persistent_ram_init_ecc() 616 prz->ecc_info.ecc_size, prz->ecc_info.block_size); in persistent_ram_new()
|
/openbmc/linux/drivers/input/rmi4/ |
H A D | rmi_f34.h | 124 __le16 block_size; member 238 u16 block_size; member 256 u16 block_size; member
|
/openbmc/linux/fs/befs/ |
H A D | befs.h | 34 u32 block_size; member 145 return BEFS_SB(sb)->block_size / sizeof(befs_disk_inode_addr); in befs_iaddrs_per_block()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_fb_dma_helper.c | 79 u32 block_size = fb->format->char_per_block[plane]; in drm_fb_dma_get_gem_addr() local 102 dma_addr += block_size * num_hblocks; in drm_fb_dma_get_gem_addr()
|
/openbmc/linux/sound/isa/gus/ |
H A D | gus_pcm.c | 42 unsigned int block_size; member 123 curr = begin + (pcmp->bpos * pcmp->block_size) / runtime->channels; in snd_gf1_pcm_trigger_up() 124 end = curr + (pcmp->block_size / runtime->channels); in snd_gf1_pcm_trigger_up() 214 end = pcmp->memory + (((pcmp->bpos + 1) * pcmp->block_size) / runtime->channels); in snd_gf1_pcm_interrupt_wave() 245 end = pcmp->bpos * pcmp->block_size; in snd_gf1_pcm_interrupt_wave() 247 snd_gf1_pcm_block_change(pcmp->substream, end, pcmp->memory + (end / 2), pcmp->block_size / 2); in snd_gf1_pcm_interrupt_wave() 248 …ange(pcmp->substream, end + (pcmp->block_size / 2), pcmp->memory + (pcmp->dma_size / 2) + (end / 2… in snd_gf1_pcm_interrupt_wave() 250 snd_gf1_pcm_block_change(pcmp->substream, end, pcmp->memory + end, pcmp->block_size); in snd_gf1_pcm_interrupt_wave() 480 pcmp->block_size = snd_pcm_lib_period_bytes(substream); in snd_gf1_pcm_playback_prepare() 481 pcmp->blocks = pcmp->dma_size / pcmp->block_size; in snd_gf1_pcm_playback_prepare()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | setup_64.c | 80 .block_size = 0x40, 84 .block_size = 0x40, 556 info->block_size = bsize; in init_cache_info() 679 dcache_bsize = ppc64_caches.l1d.block_size; in initialize_cache_info() 680 icache_bsize = ppc64_caches.l1i.block_size; in initialize_cache_info()
|