/openbmc/u-boot/fs/ |
H A D | fs_internal.c | 16 unsigned block_len; in fs_devread() local 59 block_len = byte_len & ~(blk->blksz - 1); in fs_devread() 61 if (block_len == 0) { in fs_devread() 64 block_len = blk->blksz; in fs_devread() 72 block_len >> log2blksz, (void *)buf) != in fs_devread() 73 block_len >> log2blksz) { in fs_devread() 77 block_len = byte_len & ~(blk->blksz - 1); in fs_devread() 78 buf += block_len; in fs_devread() 79 byte_len -= block_len; in fs_devread() 80 sector += block_len / blk->blksz; in fs_devread()
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | property.c | 39 size_t block_len, unsigned int dir_offset, size_t dir_len, 53 size_t block_len) in tb_property_entry_valid() argument 59 if (entry->length > block_len) in tb_property_entry_valid() 61 if (entry->value + entry->length > block_len) in tb_property_entry_valid() 102 if (!tb_property_entry_valid(entry, block_len)) in tb_property_parse() 221 size_t block_len) in tb_property_parse_dir() argument 228 if (rootdir->length > block_len) in tb_property_parse_dir() 349 u32 *block, unsigned int start_offset, size_t block_len) in __tb_property_format_dir() argument 408 if (dir_end > block_len) in __tb_property_format_dir() 437 block_len); in __tb_property_format_dir() [all …]
|
/openbmc/qemu/util/ |
H A D | hexdump.c | 25 size_t unit_len, size_t block_len) in qemu_hexdump_line() argument 36 if (block_len) { in qemu_hexdump_line() 37 est += len / block_len; in qemu_hexdump_line() 49 if (block_len && b == block_len) { in qemu_hexdump_line()
|
/openbmc/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 74 em->block_len = SZ_16K; in test_case_1() 95 em->block_len = SZ_4K; in test_case_1() 116 em->block_len = len; in test_case_1() 162 em->block_len = (u64)-1; in test_case_2() 183 em->block_len = SZ_4K; in test_case_2() 218 em->block_len); in test_case_2() 245 em->block_len = SZ_4K; in __test_case_3() 266 em->block_len = SZ_16K; in __test_case_3() 344 em->block_len = SZ_8K; in __test_case_4() 398 em->block_len); in __test_case_4() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 108 | 241 block_len=$((16 * 1024)) 242 while [[ $block_len -ge 512 ]]; do 247 $QEMU_IO -c "write $ofs $block_len" "$TEST_IMG" >/dev/null 248 ofs=$((ofs + block_len)) 250 block_len=$((block_len / 2))
|
/openbmc/linux/drivers/media/i2c/ |
H A D | saa7185.c | 78 int block_len; in saa7185_write_block() local 81 block_len = 0; in saa7185_write_block() 82 block_data[block_len++] = reg = data[0]; in saa7185_write_block() 84 block_data[block_len++] = in saa7185_write_block() 88 } while (len >= 2 && data[0] == reg && block_len < 32); in saa7185_write_block() 89 ret = i2c_master_send(client, block_data, block_len); in saa7185_write_block()
|
H A D | adv7170.c | 89 int block_len; in adv7170_write_block() local 92 block_len = 0; in adv7170_write_block() 93 block_data[block_len++] = reg = data[0]; in adv7170_write_block() 95 block_data[block_len++] = in adv7170_write_block() 99 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7170_write_block() 100 ret = i2c_master_send(client, block_data, block_len); in adv7170_write_block()
|
H A D | adv7175.c | 83 int block_len; in adv7175_write_block() local 86 block_len = 0; in adv7175_write_block() 87 block_data[block_len++] = reg = data[0]; in adv7175_write_block() 89 block_data[block_len++] = data[1]; in adv7175_write_block() 93 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7175_write_block() 94 ret = i2c_master_send(client, block_data, block_len); in adv7175_write_block()
|
H A D | bt819.c | 102 int block_len; in bt819_write_block() local 105 block_len = 0; in bt819_write_block() 106 block_data[block_len++] = reg = data[0]; in bt819_write_block() 108 block_data[block_len++] = in bt819_write_block() 112 } while (len >= 2 && data[0] == reg && block_len < 32); in bt819_write_block() 113 ret = i2c_master_send(client, block_data, block_len); in bt819_write_block()
|
/openbmc/linux/fs/btrfs/ |
H A D | extent_map.c | 255 em->block_len += merge->block_len; in try_merge_map() 273 em->block_len += merge->block_len; in try_merge_map() 581 em->block_len = em->len; in merge_extent_mapping() 801 split->block_len = em->block_len; in btrfs_drop_extent_map_range() 803 split->block_len = split->len; in btrfs_drop_extent_map_range() 809 split->block_len = 0; in btrfs_drop_extent_map_range() 843 split->block_len = em->block_len; in btrfs_drop_extent_map_range() 848 split->block_len = split->len; in btrfs_drop_extent_map_range() 855 split->block_len = 0; in btrfs_drop_extent_map_range() 1014 split_pre->block_len = split_pre->len; in split_extent_map() [all …]
|
H A D | extent_map.h | 44 u64 block_len; member 82 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end() 84 return em->block_start + em->block_len; in extent_map_block_end()
|
/openbmc/linux/fs/cramfs/ |
H A D | inode.c | 827 u32 block_ptr, block_start, block_len; in cramfs_read_folio() local 845 block_len = PAGE_SIZE; in cramfs_read_folio() 848 block_len = in cramfs_read_folio() 851 block_len = *(u16 *) in cramfs_read_folio() 876 block_len = *(u16 *) in cramfs_read_folio() 878 block_start += 2 + block_len; in cramfs_read_folio() 882 block_len = block_ptr - block_start; in cramfs_read_folio() 885 if (block_len == 0) in cramfs_read_folio() 895 block_len); in cramfs_read_folio() 896 bytes_filled = block_len; in cramfs_read_folio() [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | xen_arm.c | 104 ram_addr_t block_len, ram_size[GUEST_RAM_BANKS]; in xen_init_ram() local 110 block_len = GUEST_RAM0_BASE + ram_size[0]; in xen_init_ram() 114 block_len = GUEST_RAM1_BASE + ram_size[1]; in xen_init_ram() 117 memory_region_init_ram(&xen_memory, NULL, "xen.ram", block_len, in xen_init_ram() 130 memory_region_init_ram(&xen_grants, NULL, "xen.grants", block_len, in xen_init_ram()
|
/openbmc/linux/drivers/net/wireless/intersil/hostap/ |
H A D | hostap_download.c | 552 int block_len; in prism2_download_block() local 554 block_len = rest_len < 4096 ? rest_len : 4096; in prism2_download_block() 559 HFA384X_OUTW(block_len, HFA384X_PARAM2_OFF); in prism2_download_block() 570 if (hfa384x_to_aux(dev, bufaddr, block_len, data)) { in prism2_download_block() 572 "(len=%d) failed\n", dev->name, addr, block_len); in prism2_download_block() 586 return block_len; in prism2_download_block() 652 int block_len; in prism2_download_nonvolatile() local 654 block_len = prism2_download_block( in prism2_download_nonvolatile() 659 if (block_len < 0) { in prism2_download_nonvolatile() 664 rest_len -= block_len; in prism2_download_nonvolatile() [all …]
|
/openbmc/linux/drivers/input/rmi4/ |
H A D | rmi_smbus.c | 151 int block_len = min_t(int, len, SMB_MAX_COUNT); in rmi_smb_write_block() local 153 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_write_block() 159 databuff, block_len); in rmi_smb_write_block() 203 int block_len = min_t(int, cur_len, SMB_MAX_COUNT); in rmi_smb_read_block() local 205 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_read_block() 211 databuff, block_len); in rmi_smb_read_block()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wm8958-dsp2.c | 49 size_t block_len, len; in wm8958_dsp2_fw() local 105 block_len = get_unaligned_be32(data + 4); in wm8958_dsp2_fw() 106 if (block_len + 8 > len) { in wm8958_dsp2_fw() 108 block_len); in wm8958_dsp2_fw() 111 if (block_len == 0) { in wm8958_dsp2_fw() 126 memcpy(str, data + 8, block_len); in wm8958_dsp2_fw() 141 block_len, (data32 >> 24) & 0xff, in wm8958_dsp2_fw() 151 block_len / 2, in wm8958_dsp2_fw() 162 block_len += block_len % 4; in wm8958_dsp2_fw() 164 data += block_len + 8; in wm8958_dsp2_fw() [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf-i2c.c | 434 u16 block_len; in mxl111sf_i2c_hw_xfer_msg() local 508 block_len = (msg->len / 8); in mxl111sf_i2c_hw_xfer_msg() 512 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg() 514 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg() 615 block_len = ((msg->len) / 8); in mxl111sf_i2c_hw_xfer_msg() 620 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg() 626 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg() 726 msg->buf[(block_len*8)+i] = in mxl111sf_i2c_hw_xfer_msg()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tx.c | 140 int block_len = len & ~(sizeof(copy_buf->buf) - 1); in efx_memcpy_toio_aligned() local 142 __iowrite64_copy(*piobuf, data, block_len >> 3); in efx_memcpy_toio_aligned() 143 *piobuf += block_len; in efx_memcpy_toio_aligned() 144 len -= block_len; in efx_memcpy_toio_aligned() 147 data += block_len; in efx_memcpy_toio_aligned()
|
/openbmc/qemu/migration/ |
H A D | vmstate-types.c | 481 int block_len; in get_unused_buffer() local 484 block_len = MIN(sizeof(buf), size); in get_unused_buffer() 485 size -= block_len; in get_unused_buffer() 486 qemu_get_buffer(f, buf, block_len); in get_unused_buffer() 495 int block_len; in put_unused_buffer() local 498 block_len = MIN(sizeof(buf), size); in put_unused_buffer() 499 size -= block_len; in put_unused_buffer() 500 qemu_put_buffer(f, buf, block_len); in put_unused_buffer()
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | nand_util.c | 415 size_t block_len, block_off; in check_skip_len() local 423 block_len = mtd->erasesize - block_off; in check_skip_len() 426 len_excl_bad += block_len; in check_skip_len() 430 offset += block_len; in check_skip_len() 431 *used += block_len; in check_skip_len()
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdnsp-ring.c | 1888 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx() 1893 block_len = full_len; in cdnsp_queue_bulk_tx() 2006 while (sg && sent_len >= block_len) { in cdnsp_queue_bulk_tx() 2009 sent_len -= block_len; in cdnsp_queue_bulk_tx() 2012 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx() 2017 block_len -= sent_len; in cdnsp_queue_bulk_tx() 2256 block_len = sg_dma_len(sg); in cdnsp_queue_isoc_tx() 2260 block_len = td_len; in cdnsp_queue_isoc_tx() 2347 sent_len -= block_len; in cdnsp_queue_isoc_tx() 2350 block_len = sg_dma_len(sg); in cdnsp_queue_isoc_tx() [all …]
|
/openbmc/linux/drivers/net/wireless/intersil/p54/ |
H A D | p54usb.c | 744 unsigned int block_len = min(remains, (unsigned int)512); in p54u_upload_firmware_net2280() local 745 memcpy(buf, data, block_len); in p54u_upload_firmware_net2280() 747 err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, block_len); in p54u_upload_firmware_net2280() 765 cpu_to_le32(block_len)); in p54u_upload_firmware_net2280() 773 cpu_to_le32(block_len >> 2)); in p54u_upload_firmware_net2280() 791 remains -= block_len; in p54u_upload_firmware_net2280() 792 data += block_len; in p54u_upload_firmware_net2280() 793 offset += block_len; in p54u_upload_firmware_net2280()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_ncm.c | 1165 unsigned block_len; in ncm_unwrap_ntb() local 1195 block_len = get_ncm(&tmp, opts->block_length); in ncm_unwrap_ntb() 1197 if (block_len > ntb_max) { in ncm_unwrap_ntb() 1212 (ndp_index > (block_len - in ncm_unwrap_ntb() 1260 (index > block_len - opts->dpe_size)) { in ncm_unwrap_ntb() 1297 if (index2 > block_len - opts->dpe_size) { in ncm_unwrap_ntb() 1327 to_process -= block_len; in ncm_unwrap_ntb() 1334 (*(unsigned char *)(ntb_ptr + block_len) == 0x00)) { in ncm_unwrap_ntb() 1336 } else if ((to_process > 0) && (block_len != 0)) { in ncm_unwrap_ntb() 1337 ntb_ptr = (unsigned char *)(ntb_ptr + block_len); in ncm_unwrap_ntb()
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | falcon.c | 619 size_t block_len, pos = 0; in falcon_spi_read() local 628 buffer + pos, block_len); in falcon_spi_read() 631 pos += block_len; in falcon_spi_read() 695 size_t block_len, pos = 0; in falcon_spi_write() local 704 block_len = min(len - pos, in falcon_spi_write() 708 buffer + pos, NULL, block_len); in falcon_spi_write() 718 NULL, verify_buffer, block_len); in falcon_spi_write() 724 pos += block_len; in falcon_spi_write() 808 unsigned pos, block_len; in falcon_spi_erase() local 833 for (pos = 0; pos < len; pos += block_len) { in falcon_spi_erase() [all …]
|
/openbmc/qemu/hw/i386/xen/ |
H A D | xen-hvm.c | 121 ram_addr_t block_len; in xen_ram_init() local 145 block_len = ram_size; in xen_ram_init() 151 block_len = (4 * GiB) + x86ms->above_4g_mem_size; in xen_ram_init() 153 memory_region_init_ram(&xen_memory, NULL, "xen.ram", block_len, in xen_ram_init()
|