/openbmc/qemu/block/ |
H A D | block-backend.c | 177 blk_set_perm(blk, blk->perm, blk->shared_perm, &local_err); in blk_vm_state_changed() 230 blk_set_perm_locked(blk, blk->perm, blk->shared_perm, &local_err); in blk_root_activate() 247 if (blk->dev || blk_name(blk)[0]) { in blk_can_inactivate() 526 return blk ? blk->refcnt : 0; in blk_get_refcnt() 1558 acb->blk = blk; in blk_abort_aio_request() 1605 .blk = blk, in blk_aio_prwv() 1912 .blk = blk, in blk_aio_zone_report() 1953 .blk = blk, in blk_aio_zone_mgmt() 1993 .blk = blk, in blk_aio_zone_append() 2491 BlockBackend *blk = s->blk; in blk_root_set_aio_ctx_commit() local [all …]
|
H A D | qapi-sysemu.c | 45 BlockBackend *blk; in qmp_get_blk() local 62 return blk; in qmp_get_blk() 79 BlockBackend *blk; in do_open_tray() local 84 if (!blk) { in do_open_tray() 147 if (!blk) { in qmp_blockdev_close_tray() 183 if (!blk) { in blockdev_remove_medium() 202 bs = blk_bs(blk); in blockdev_remove_medium() 295 if (!blk) { in blockdev_insert_medium() 337 if (!blk) { in qmp_blockdev_change_medium() 443 if (!blk) { in qmp_block_set_io_throttle() [all …]
|
/openbmc/linux/sound/pci/ctxfi/ |
H A D | cthardware.h | 87 int (*src_rsc_put_ctrl_blk)(void *blk); 107 int (*src_set_dirty_all)(void *blk); 110 unsigned int (*src_get_dirty)(void *blk); 113 int (*src_mgr_put_ctrl_blk)(void *blk); 124 int (*srcimp_mgr_put_ctrl_blk)(void *blk); 133 int (*amixer_rsc_put_ctrl_blk)(void *blk); 143 int (*amixer_set_dirty_all)(void *blk); 145 int (*amixer_get_y)(void *blk); 150 int (*dai_put_ctrl_blk)(void *blk); 159 int (*dao_put_ctrl_blk)(void *blk); [all …]
|
H A D | cthw20k2.c | 160 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk() 161 if (!blk) in src_get_rsc_ctrl_blk() 171 kfree(blk); in src_put_rsc_ctrl_blk() 486 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_mgr_get_ctrl_blk() 487 if (!blk) in src_mgr_get_ctrl_blk() 507 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in srcimp_mgr_get_ctrl_blk() 508 if (!blk) in srcimp_mgr_get_ctrl_blk() 696 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in amixer_rsc_get_ctrl_blk() 885 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in dai_get_ctrl_blk() 935 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in dao_get_ctrl_blk() [all …]
|
H A D | cthw20k1.c | 160 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk() 161 if (!blk) in src_get_rsc_ctrl_blk() 171 kfree(blk); in src_put_rsc_ctrl_blk() 486 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_mgr_get_ctrl_blk() 487 if (!blk) in src_mgr_get_ctrl_blk() 507 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in srcimp_mgr_get_ctrl_blk() 508 if (!blk) in srcimp_mgr_get_ctrl_blk() 694 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in amixer_rsc_get_ctrl_blk() 901 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in dai_get_ctrl_blk() 950 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in dao_get_ctrl_blk() [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | block-backend-global-state.h | 43 int blk_get_refcnt(BlockBackend *blk); 44 void blk_ref(BlockBackend *blk); 51 BlockBackend *blk_next(BlockBackend *blk); 54 void monitor_remove_blk(BlockBackend *blk); 59 void blk_remove_bs(BlockBackend *blk); 68 void blk_iostatus_enable(BlockBackend *blk); 71 void blk_iostatus_reset(BlockBackend *blk); 84 bool blk_in_drain(BlockBackend *blk); 85 void blk_drain(BlockBackend *blk); 90 bool blk_is_sg(BlockBackend *blk); [all …]
|
H A D | block-backend-io.h | 26 const char *blk_name(const BlockBackend *blk); 28 BlockDriverState *blk_bs(BlockBackend *blk); 35 char *blk_get_attached_dev_id(BlockBackend *blk); 47 BlockAIOCB *blk_aio_flush(BlockBackend *blk, 65 void blk_inc_in_flight(BlockBackend *blk); 66 void blk_dec_in_flight(BlockBackend *blk); 88 int64_t blk_nb_sectors(BlockBackend *blk); 92 bool blk_is_writable(BlockBackend *blk); 93 bool blk_enable_write_cache(BlockBackend *blk); 100 int blk_get_max_iov(BlockBackend *blk); [all …]
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | rheap.c | 73 for (i = 0, blk = block; i < info->max_blocks; i++, blk++) in grow() 142 return blk; in get_slot() 323 for (i = 0, blk = block; i < max_blocks; i++, blk++) in rh_init() 394 blk = NULL; in rh_detach_region() 399 be = blk->start + blk->size; in rh_detach_region() 459 blk = NULL; in rh_alloc_align() 464 if (start + size <= blk->start + blk->size) in rh_alloc_align() 556 be = blk->start + blk->size; in rh_alloc_fixed() 627 if (blk == NULL || start > (blk->start + blk->size)) in rh_free() 694 if (blk == NULL || start > (blk->start + blk->size)) in rh_set_owner() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_mem_input.h | 180 #define MI_DCP_MASK_SH_LIST(mask_sh, blk)\ argument 181 SFB(blk, GRPH_ENABLE, GRPH_ENABLE, mask_sh),\ 182 SFB(blk, GRPH_CONTROL, GRPH_DEPTH, mask_sh),\ 186 SFB(blk, GRPH_X_END, GRPH_X_END, mask_sh),\ 187 SFB(blk, GRPH_Y_END, GRPH_Y_END, mask_sh),\ 188 SFB(blk, GRPH_PITCH, GRPH_PITCH, mask_sh),\ 206 SFB(blk, GRPH_ENABLE, GRPH_ENABLE, mask_sh),\ 211 SFB(blk, GRPH_X_END, GRPH_X_END, mask_sh),\ 212 SFB(blk, GRPH_Y_END, GRPH_Y_END, mask_sh),\ 213 SFB(blk, GRPH_PITCH, GRPH_PITCH, mask_sh),\ [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 641 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw); in ice_find_prot_off() 778 hw->blk[blk].xlt1.t[ptype] = ptg; in ice_ptg_add_mv_ptype() 1144 &hw->blk[blk].xlt2.vsis[vsi]; in ice_vsig_add_mv_vsi() 1146 hw->blk[blk].xlt2.t[vsi] = vsig; in ice_vsig_add_mv_vsi() 1173 for (i = hw->blk[blk].masks.first; i < hw->blk[blk].masks.first + in ice_prof_has_mask_idx() 1479 memset(hw->blk[blk].masks.masks, 0, sizeof(hw->blk[blk].masks.masks)); in ice_init_prof_masks() 1482 i < hw->blk[blk].masks.first + hw->blk[blk].masks.count; i++) in ice_init_prof_masks() 1519 i < hw->blk[blk].masks.first + hw->blk[blk].masks.count; i++) in ice_alloc_prof_mask() 1579 mask_idx < hw->blk[blk].masks.first + hw->blk[blk].masks.count)) in ice_free_prof_mask() 1645 i < hw->blk[blk].masks.first + hw->blk[blk].masks.count; i++) { in ice_shutdown_prof_masks() [all …]
|
/openbmc/linux/block/ |
H A D | Makefile | 6 obj-y := bdev.o fops.o bio.o elevator.o blk-core.o blk-sysfs.o \ 7 blk-flush.o blk-settings.o blk-ioc.o blk-map.o \ 8 blk-merge.o blk-timeout.o \ 9 blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \ 10 blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \ 17 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o 31 obj-$(CONFIG_BLK_MQ_PCI) += blk-mq-pci.o 34 obj-$(CONFIG_BLK_WBT) += blk-wbt.o 38 obj-$(CONFIG_BLK_PM) += blk-pm.o 39 obj-$(CONFIG_BLK_INLINE_ENCRYPTION) += blk-crypto.o blk-crypto-profile.o \ [all …]
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | memory.c | 81 blk->map_locked = 0; in emu10k1_memblk_init() 83 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init() 84 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1); in emu10k1_memblk_init() 85 blk->pages = blk->last_page - blk->first_page + 1; in emu10k1_memblk_init() 118 page = blk->mapped_page + blk->pages; in search_empty_map_area() 152 for (pg = blk->first_page; pg <= blk->last_page; pg++) { in map_memblk() 192 for (pg = blk->first_page; pg <= blk->last_page; pg++) { in unmap_memblk() 226 if (blk == NULL) in search_empty() 230 return blk; in search_empty() 320 if (blk == NULL) { in snd_emu10k1_alloc_pages() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_bitmap.c | 22 if (blk < dev->internal_start_block || blk > dev->internal_end_block) { in yaffs_block_bits() 25 blk); in yaffs_block_bits() 34 if (blk < dev->internal_start_block || blk > dev->internal_end_block || in yaffs_verify_chunk_bit_id() 38 blk, chunk); in yaffs_verify_chunk_bit_id() 45 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bits() 52 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bit() 54 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_clear_chunk_bit() 60 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_set_chunk_bit() 68 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_check_chunk_bit() 76 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_still_some_chunks() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-replication.c | 190 g_assert(blk); in start_primary() 196 return blk; in start_primary() 206 assert(blk); in teardown_primary() 211 blk_unref(blk); in teardown_primary() 310 assert(blk); in start_secondary() 336 assert(blk); in start_secondary() 341 return blk; in start_secondary() 352 assert(blk); in teardown_secondary() 357 blk_unref(blk); in teardown_secondary() 362 assert(blk); in teardown_secondary() [all …]
|
H A D | test-blockjob.c | 88 return blk; in create_blk() 98 blk_remove_bs(blk); in destroy_blk() 99 blk_unref(blk); in destroy_blk() 104 BlockBackend *blk[3]; in test_job_ids() local 163 BlockBackend *blk; member 205 BlockBackend *blk; in create_common() local 220 s->blk = blk; in create_common() 229 BlockBackend *blk = s->blk; in cancel_common() local 244 destroy_blk(blk); in cancel_common() 460 BlockBackend *blk; in test_complete_in_standby() local [all …]
|
H A D | test-block-iothread.c | 470 BlockBackend *blk; in test_sync_op() local 491 t->blkfn(blk); in test_sync_op() 497 blk_unref(blk); in test_sync_op() 555 BlockBackend *blk; in test_attach_blockjob() local 603 blk_unref(blk); in test_attach_blockjob() 623 BlockBackend *blk; in test_propagate_basic() local 668 blk_unref(blk); in test_propagate_basic() 744 blk_unref(blk); in test_propagate_diamond() 825 blk_unref(blk); in test_propagate_mirror() 864 blk_unref(blk); in test_attach_second_node() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-qup.c | 283 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_interrupt() local 458 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_write_tx_fifo_v1() local 919 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_read_rx_fifo_v1() local 956 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_conf_v1() local 998 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_conf_xfer_v1() local 1042 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_write_one() local 1053 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_read_one() local 1125 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_conf_count_v2() local 1156 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_conf_mode_v2() local 1195 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_recv_data() local [all …]
|
/openbmc/linux/sound/synth/ |
H A D | util_mem.c | 62 struct snd_util_memblk *blk; in __snd_util_mem_alloc() local 79 blk = get_memblk(p); in __snd_util_mem_alloc() 82 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc() 104 if (blk == NULL) in __snd_util_memblk_new() 108 blk->offset = 0; in __snd_util_memblk_new() 113 blk->size = units; in __snd_util_memblk_new() 117 return blk; in __snd_util_memblk_new() 131 return blk; in snd_util_mem_alloc() 142 list_del(&blk->list); in __snd_util_mem_free() 144 hdr->used -= blk->size; in __snd_util_mem_free() [all …]
|
/openbmc/qemu/migration/ |
H A D | block.c | 49 BlockBackend *blk; member 249 blk->ret = ret; in blk_mig_read_cb() 252 bmds_set_aio_inflight(blk->bmds, blk->sector, blk->nr_sectors, 0); in blk_mig_read_cb() 267 BlkMigBlock *blk; in mig_save_device_bulk() local 306 blk->bmds = bmds; in mig_save_device_bulk() 520 BlkMigBlock *blk; in mig_save_device_dirty() local 554 qemu_iovec_init_buf(&blk->qiov, blk->buf, in mig_save_device_dirty() 557 blk->aiocb = blk_aio_preadv(bmds->blk, in mig_save_device_dirty() 593 g_free(blk); in mig_save_device_dirty() 647 g_free(blk); in flush_blks() [all …]
|
/openbmc/linux/sound/pci/trident/ |
H A D | trident_memory.c | 120 page = lastpg(blk) + 1; in search_empty() 128 if (blk == NULL) in search_empty() 131 firstpg(blk) = page; in search_empty() 133 return blk; in search_empty() 177 if (blk == NULL) { in snd_trident_alloc_sg_pages() 184 for (page = firstpg(blk); page <= lastpg(blk); page++, idx++) { in snd_trident_alloc_sg_pages() 195 return blk; in snd_trident_alloc_sg_pages() 221 if (blk == NULL) { in snd_trident_alloc_cont_pages() 228 for (page = firstpg(blk); page <= lastpg(blk); page++, in snd_trident_alloc_cont_pages() 238 return blk; in snd_trident_alloc_cont_pages() [all …]
|
/openbmc/u-boot/fs/ |
H A D | fs_internal.c | 18 ALLOC_CACHE_ALIGN_BUFFER(char, sec_buf, (blk ? blk->blksz : 0)); in fs_devread() 19 if (blk == NULL) { in fs_devread() 23 log2blksz = blk->log2blksz; in fs_devread() 35 byte_offset &= blk->blksz - 1; in fs_devread() 47 readlen = min((int)blk->blksz - byte_offset, in fs_devread() 59 block_len = byte_len & ~(blk->blksz - 1); in fs_devread() 62 ALLOC_CACHE_ALIGN_BUFFER(u8, p, blk->blksz); in fs_devread() 64 block_len = blk->blksz; in fs_devread() 65 blk_dread(blk, partition->start + sector, 1, in fs_devread() 77 block_len = byte_len & ~(blk->blksz - 1); in fs_devread() [all …]
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | dabtree.c | 86 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local 265 altpath->blk[plevel].bp == path->blk[plevel].bp)) in xchk_da_btree_block_check_sibling() 328 blk = &ds->state->path.blk[level]; in xchk_da_btree_block() 332 if (blk->bp) { in xchk_da_btree_block() 334 blk->bp = NULL; in xchk_da_btree_block() 348 if (blk->bp) in xchk_da_btree_block() 393 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, pmaxrecs); in xchk_da_btree_block() 402 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 411 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 463 blk->bp = NULL; in xchk_da_btree_block() [all …]
|
/openbmc/linux/drivers/net/wireless/intersil/orinoco/ |
H A D | hermes_dld.c | 104 return le16_to_cpu(blk->len); in dblock_len() 260 end -= sizeof(*blk); in hermes_blocks_length() 266 len = dblock_len(blk); in hermes_blocks_length() 268 blk = (struct dblock *) &blk->data[len]; in hermes_blocks_length() 279 const struct dblock *blk; in hermes_program() local 286 if ((void *) blk > (end - sizeof(*blk))) in hermes_program() 289 blkaddr = dblock_addr(blk); in hermes_program() 290 blklen = dblock_len(blk); in hermes_program() 301 blk = (const struct dblock *) &blk->data[blklen]; in hermes_program() 303 if ((void *) blk > (end - sizeof(*blk))) in hermes_program() [all …]
|
/openbmc/linux/fs/quota/ |
H A D | quota_tree.c | 113 int ret, blk; in get_free_dqblk() local 136 ret = blk; in get_free_dqblk() 256 uint blk, i; in find_free_dqentry() local 278 *err = blk; in find_free_dqentry() 315 blk); in find_free_dqentry() 322 return blk; in find_free_dqentry() 449 uint blk) in free_dqentry() argument 467 blk); in free_dqentry() 526 *blk); in remove_tree() 551 *blk = 0; in remove_tree() [all …]
|
/openbmc/qemu/ |
H A D | qemu-io-cmds.c | 75 if (!init_check_command(blk, ct)) { in command() 108 assert(blk || !ct->perm); in command() 129 return ct->cfunc(blk, argc, argv); in command() 349 buf = blk_blockalign(blk, len); in qemu_io_alloc() 1346 BlockBackend *blk; member 1481 ctx->blk = blk; in aio_read_f() 1595 ctx->blk = blk; in aio_write_f() 1723 return blk_flush(blk); in flush_f() 2011 size = blk_getlength(blk); in length_f() 2274 bytes = blk_getlength(blk); in map_f() [all …]
|