Home
last modified time | relevance | path

Searched refs:blk (Results 151 – 175 of 491) sorted by relevance

12345678910>>...20

/openbmc/qemu/include/sysemu/
H A Dblock-ram-registrar.h23 BlockBackend *blk; member
28 void blk_ram_registrar_init(BlockRAMRegistrar *r, BlockBackend *blk);
/openbmc/qemu/include/hw/block/
H A Dflash.h18 BlockBackend *blk,
37 BlockBackend *blk,
48 DeviceState *nand_init(BlockBackend *blk, int manf_id, int chip_id);
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_summary.h33 int blk);
34 void yaffs_summary_gc(struct yaffs_dev *dev, int blk);
/openbmc/u-boot/drivers/fastboot/
H A Dfb_mmc.c60 lbaint_t blk = start; in fb_mmc_blk_write() local
71 blks_written = blk_dwrite(block_dev, blk, cur_blkcnt, in fb_mmc_blk_write()
76 blks_written = blk_derase(block_dev, blk, cur_blkcnt); in fb_mmc_blk_write()
78 blk += blks_written; in fb_mmc_blk_write()
85 lbaint_t blk, lbaint_t blkcnt, const void *buffer) in fb_mmc_sparse_write() argument
90 return fb_mmc_blk_write(dev_desc, blk, blkcnt, buffer); in fb_mmc_sparse_write()
94 lbaint_t blk, lbaint_t blkcnt) in fb_mmc_sparse_reserve() argument
/openbmc/linux/block/partitions/
H A Dibm.c139 sector_t blk; in find_vol1_partitions() local
155 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in find_vol1_partitions()
157 data = read_part_sector(state, blk * secperblk, &sect); in find_vol1_partitions()
166 blk++; in find_vol1_partitions()
167 data = read_part_sector(state, blk * secperblk, &sect); in find_vol1_partitions()
184 blk++; in find_vol1_partitions()
185 data = read_part_sector(state, blk * secperblk, &sect); in find_vol1_partitions()
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/d71/
H A Dd71_dev.c321 void d71_read_block_header(u32 __iomem *reg, struct block_header *blk) in d71_read_block_header() argument
325 blk->block_info = malidp_read32(reg, BLK_BLOCK_INFO); in d71_read_block_header()
326 if (BLOCK_INFO_BLK_TYPE(blk->block_info) == D71_BLK_TYPE_RESERVED) in d71_read_block_header()
329 blk->pipeline_info = malidp_read32(reg, BLK_PIPELINE_INFO); in d71_read_block_header()
333 blk->input_ids[i] = malidp_read32(reg + i, BLK_VALID_INPUT_ID0); in d71_read_block_header()
334 for (i = 0; i < PIPELINE_INFO_N_OUTPUTS(blk->pipeline_info); i++) in d71_read_block_header()
335 blk->output_ids[i] = malidp_read32(reg + i, BLK_OUTPUT_ID0); in d71_read_block_header()
353 struct block_header blk; in d71_enum_resources() local
447 d71_read_block_header(blk_base, &blk); in d71_enum_resources()
448 if (BLOCK_INFO_BLK_TYPE(blk.block_info) != D71_BLK_TYPE_RESERVED) { in d71_enum_resources()
[all …]
H A Dd71_dev.h49 struct block_header *blk, u32 __iomem *reg);
50 void d71_read_block_header(u32 __iomem *reg, struct block_header *blk);
/openbmc/qemu/include/block/
H A Dblock_int-global-state.h244 void blk_dev_change_media_cb(BlockBackend *blk, bool load, Error **errp);
245 bool blk_dev_has_removable_media(BlockBackend *blk);
246 void blk_dev_eject_request(BlockBackend *blk, bool force);
247 bool blk_dev_is_medium_locked(BlockBackend *blk);
/openbmc/qemu/include/
H A Dqemu-io.h28 typedef int (*cfunc_t)(BlockBackend *blk, int argc, char **argv);
48 int qemuio_command(BlockBackend *blk, const char *cmd);
/openbmc/linux/fs/squashfs/
H A Dnamei.c200 unsigned int blk, off, ino_num; in squashfs_lookup() local
202 blk = le32_to_cpu(dirh.start_block); in squashfs_lookup()
206 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup()
210 blk, off, ino_num); in squashfs_lookup()
/openbmc/qemu/tests/qtest/fuzz/
H A Dvirtio_blk_fuzz.c84 QVirtioBlk *blk = fuzz_qos_obj; in virtio_blk_fuzz() local
85 QVirtioDevice *dev = blk->vdev; in virtio_blk_fuzz()
133 QVirtioBlk *blk = fuzz_qos_obj; in virtio_blk_with_flag_fuzz() local
137 queues = qvirtio_blk_init(blk->vdev, *(uint64_t *)Data); in virtio_blk_with_flag_fuzz()
/openbmc/linux/fs/f2fs/
H A Dextent_cache.c49 ei->blk, ei->fofs, ei->len); in sanity_check_extent_cache()
57 block_t blk, bool keep_clen, in __set_extent_info() argument
65 ei->blk = blk; in __set_extent_info()
138 back->blk + back->len == front->blk); in __is_extent_mergeable()
523 next_ex->ei.blk = ei->blk; in __try_merge_extent_node()
612 tei->blk, 0); in __update_extent_tree_range()
667 end - dei.fofs + dei.blk, false, in __update_extent_tree_range()
714 if (tei->blk) { in __update_extent_tree_range()
886 ei.blk = NULL_ADDR; in __update_extent_cache()
888 ei.blk = dn->data_blkaddr; in __update_extent_cache()
[all …]
/openbmc/qemu/hw/arm/
H A Dimx25_pdk.c124 BlockBackend *blk; in imx25_pdk_init() local
127 blk = di ? blk_by_legacy_dinfo(di) : NULL; in imx25_pdk_init()
130 qdev_prop_set_drive_err(carddev, "drive", blk, &error_fatal); in imx25_pdk_init()
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_smp.c88 int blk = find_first_zero_bit(state->state, cnt); in smp_request_block() local
89 set_bit(blk, cs); in smp_request_block()
90 set_bit(blk, state->state); in smp_request_block()
223 u32 blk, val; in update_smp_state() local
225 for_each_set_bit(blk, *assigned, cnt) { in update_smp_state()
226 int idx = blk / 3; in update_smp_state()
227 int fld = blk % 3; in update_smp_state()
/openbmc/u-boot/include/
H A Dimage-sparse.h18 lbaint_t blk,
23 lbaint_t blk,
/openbmc/qemu/nbd/
H A Dserver.c1666 blk_ref(blk); in nbd_export_set_on_eject_blk()
1667 nbd_exp->eject_notifier_blk = blk; in nbd_export_set_on_eject_blk()
1684 BlockBackend *blk = blk_exp->blk; in nbd_export_create() local
1715 size = blk_getlength(blk); in nbd_export_create()
1724 blk_get_perm(blk, &perm, &shared_perm); in nbd_export_create()
1757 BlockDriverState *bs = blk_bs(blk); in nbd_export_create()
1823 blk_set_disable_request_queuing(blk, true); in nbd_export_create()
1827 blk_set_dev_ops(blk, &nbd_block_ops, exp); in nbd_export_create()
2739 ret = blk_co_flush(exp->common.blk); in nbd_do_cmd_read()
2847 ret = blk_co_flush(exp->common.blk); in nbd_handle_request()
[all …]
/openbmc/qemu/hw/sd/
H A Dsd.c117 BlockBackend *blk; member
685 if (sd->blk) { in sd_reset()
709 sd->wp_switch = sd->blk ? !blk_is_writable(sd->blk) : false; in sd_reset()
725 return sd->blk && blk_is_inserted(sd->blk); in sd_get_inserted()
875 qemu_set_irq(readonly, sd->blk ? !blk_is_writable(sd->blk) : 0); in sd_set_cb()
876 qemu_set_irq(insert, sd->blk ? blk_is_inserted(sd->blk) : 0); in sd_set_cb()
919 if (!sd->blk || blk_pread(sd->blk, addr, len, sd->data, 0) < 0) { in sd_blk_read()
1937 if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable) { in sd_do_command()
2044 if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable) in sd_write_byte()
2222 if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable) in sd_read_byte()
[all …]
/openbmc/qemu/block/
H A Dvhdx.c1517 vhdx_create_new_headers(BlockBackend *blk, uint64_t image_size, in vhdx_create_new_headers() argument
1520 BlockDriverState *bs = blk_bs(blk); in vhdx_create_new_headers()
1583 vhdx_create_new_metadata(BlockBackend *blk, uint64_t image_size, in vhdx_create_new_metadata() argument
1681 ret = blk_co_pwrite(blk, metadata_offset + (64 * KiB), in vhdx_create_new_metadata()
1703 vhdx_create_bat(BlockBackend *blk, BDRVVHDXState *s, in vhdx_create_bat() argument
1746 has_zero_init = bdrv_has_zero_init(blk_bs(blk)); in vhdx_create_bat()
1915 BlockBackend *blk = NULL; in vhdx_co_create() local
2013 if (!blk) { in vhdx_co_create()
2017 blk_set_allow_write_beyond_eof(blk, true); in vhdx_co_create()
2043 ret = vhdx_create_new_headers(blk, image_size, log_size); in vhdx_co_create()
[all …]
H A Dvpc.c839 ret = blk_co_pwrite(blk, offset, sizeof(*footer), footer, 0); in create_dynamic_disk()
845 ret = blk_co_pwrite(blk, offset, sizeof(*footer), footer, 0); in create_dynamic_disk()
855 ret = blk_co_pwrite(blk, offset, 512, bat_sector, 0); in create_dynamic_disk()
901 ret = blk_co_truncate(blk, total_size, false, PREALLOC_MODE_OFF, 0, errp); in create_fixed_disk()
906 ret = blk_co_pwrite(blk, total_size - sizeof(*footer), sizeof(*footer), in create_fixed_disk()
976 BlockBackend *blk = NULL; in vpc_co_create() local
1017 if (!blk) { in vpc_co_create()
1021 blk_set_allow_write_beyond_eof(blk, true); in vpc_co_create()
1078 ret = create_dynamic_disk(blk, &footer, total_sectors); in vpc_co_create()
1083 ret = create_fixed_disk(blk, &footer, total_size, errp); in vpc_co_create()
[all …]
/openbmc/qemu/hw/block/
H A Dxen-block.c297 int64_t sectors = blk_getlength(conf->blk) / conf->logical_block_size; in xen_block_set_size()
351 BlockBackend *blk = conf->blk; in xen_block_realize() local
371 assert(blk); in xen_block_realize()
372 if (!blk_is_inserted(blk)) { in xen_block_realize()
395 if (blk_get_flags(blk) & BDRV_O_UNMAP) { in xen_block_realize()
422 xen_block_dataplane_create(xendev, blk, conf->logical_block_size, in xen_block_realize()
425 blk_set_dev_ops(blk, &xen_block_dev_ops, blockdev); in xen_block_realize()
717 if (!conf->blk) { in xen_disk_realize()
756 if (!conf->blk) { in xen_cdrom_realize()
760 conf->blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in xen_cdrom_realize()
[all …]
H A Dpflash_cfi02.c71 BlockBackend *blk; member
398 if (pfl->blk) { in pflash_update()
403 ret = blk_pwrite(pfl->blk, offset, offset_end - offset, in pflash_update()
892 if (pfl->blk) { in pflash_cfi02_realize()
894 pfl->ro = !blk_supports_write_perm(pfl->blk); in pflash_cfi02_realize()
896 ret = blk_set_perm(pfl->blk, perm, BLK_PERM_ALL, errp); in pflash_cfi02_realize()
904 if (pfl->blk) { in pflash_cfi02_realize()
941 DEFINE_PROP_DRIVE("drive", PFlashCFI02, blk),
1000 BlockBackend *blk, in type_init()
1011 if (blk) { in type_init()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_dir2_node.c1507 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_leafn_toosmall()
1508 leaf = blk->bp->b_addr; in xfs_dir2_leafn_toosmall()
1596 if (blkno < blk->blkno) in xfs_dir2_leafn_toosmall()
2038 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_addname()
2043 rval = xfs_dir2_leafn_add(blk->bp, args, blk->index); in xfs_dir2_node_addname()
2109 state->path.blk[i].bp = NULL; in xfs_dir2_node_lookup()
2152 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_removename()
2159 error = xfs_dir2_leafn_remove(args, blk->bp, blk->index, in xfs_dir2_node_removename()
2230 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_replace()
2235 blk->bp->b_addr); in xfs_dir2_node_replace()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0007-linux-syslinux-implement-ext_construct_sectmap_fs.patch42 + blk64_t pblk, blksize, blk = 0;
63 + retval = ext2fs_bmap2(fs, newino, 0, 0, 0, blk, 0, &pblk);
69 + blk++;
/openbmc/u-boot/doc/
H A DREADME.virtio81 -device virtio-blk-device,drive=hd0
89 -device virtio-blk-pci,drive=hd0
100 -device virtio-blk-device,drive=hd0 \
102 -device virtio-blk-pci,drive=hd1
111 -device virtio-blk-pci,drive=hd0,disable-legacy=true,disable-modern=false
123 virtio read addr blk# cnt - read `cnt' blocks starting at block
124 `blk#' to memory address `addr'
125 virtio write addr blk# cnt - write `cnt' blocks starting at block
126 `blk#' from memory address `addr'
173 | | virtio-net | | virtio-blk | |
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxbf-pmc.c547 if (strstr(blk, "tilenet")) { in mlxbf_pmc_event_list()
550 } else if (strstr(blk, "tile")) { in mlxbf_pmc_event_list()
553 } else if (strstr(blk, "triogen")) { in mlxbf_pmc_event_list()
556 } else if (strstr(blk, "trio")) { in mlxbf_pmc_event_list()
571 } else if (strstr(blk, "mss")) { in mlxbf_pmc_event_list()
574 } else if (strstr(blk, "ecc")) { in mlxbf_pmc_event_list()
577 } else if (strstr(blk, "pcie")) { in mlxbf_pmc_event_list()
580 } else if (strstr(blk, "l3cache")) { in mlxbf_pmc_event_list()
583 } else if (strstr(blk, "gic")) { in mlxbf_pmc_event_list()
586 } else if (strstr(blk, "smmu")) { in mlxbf_pmc_event_list()
[all …]

12345678910>>...20