Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 25 of 476) sorted by relevance

12345678910>>...20

/openbmc/qemu/block/
H A Dblock-backend.c99 BlockBackend *blk; member
122 blk_set_perm_locked(BlockBackend *blk, uint64_t perm, uint64_t shared_perm,
145 BlockBackend *blk = child->opaque; in blk_root_get_parent_desc() local
148 if (blk->name) { in blk_root_get_parent_desc()
149 return g_strdup_printf("block device '%s'", blk->name); in blk_root_get_parent_desc()
152 dev_id = blk_get_attached_dev_id(blk); in blk_root_get_parent_desc()
169 BlockBackend *blk = opaque; in blk_vm_state_changed() local
175 qemu_del_vm_change_state_handler(blk->vmsh); in blk_vm_state_changed()
176 blk->vmsh = NULL; in blk_vm_state_changed()
177 blk_set_perm(blk, blk->perm, blk->shared_perm, &local_err); in blk_vm_state_changed()
[all …]
H A Dqapi-sysemu.c45 BlockBackend *blk; in qmp_get_blk() local
53 blk = blk_by_qdev_id(qdev_id, errp); in qmp_get_blk()
55 blk = blk_by_name(blk_name); in qmp_get_blk()
56 if (blk == NULL) { in qmp_get_blk()
62 return blk; in qmp_get_blk()
79 BlockBackend *blk; in do_open_tray() local
83 blk = qmp_get_blk(blk_name, qdev_id, errp); in do_open_tray()
84 if (!blk) { in do_open_tray()
88 if (!blk_dev_has_removable_media(blk)) { in do_open_tray()
93 if (!blk_dev_has_tray(blk)) { in do_open_tray()
[all …]
/openbmc/linux/sound/pci/ctxfi/
H A Dcthardware.h87 int (*src_rsc_put_ctrl_blk)(void *blk);
88 int (*src_set_state)(void *blk, unsigned int state);
89 int (*src_set_bm)(void *blk, unsigned int bm);
90 int (*src_set_rsr)(void *blk, unsigned int rsr);
91 int (*src_set_sf)(void *blk, unsigned int sf);
92 int (*src_set_wr)(void *blk, unsigned int wr);
93 int (*src_set_pm)(void *blk, unsigned int pm);
94 int (*src_set_rom)(void *blk, unsigned int rom);
95 int (*src_set_vo)(void *blk, unsigned int vo);
96 int (*src_set_st)(void *blk, unsigned int st);
[all …]
H A Dcthw20k2.c157 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local
160 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk()
161 if (!blk) in src_get_rsc_ctrl_blk()
164 *rblk = blk; in src_get_rsc_ctrl_blk()
169 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument
171 kfree(blk); in src_put_rsc_ctrl_blk()
176 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument
178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state()
185 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument
187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm()
[all …]
H A Dcthw20k1.c157 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local
160 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk()
161 if (!blk) in src_get_rsc_ctrl_blk()
164 *rblk = blk; in src_get_rsc_ctrl_blk()
169 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument
171 kfree(blk); in src_put_rsc_ctrl_blk()
176 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument
178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state()
185 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument
187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm()
[all …]
/openbmc/qemu/include/sysemu/
H A Dblock-backend-io.h26 const char *blk_name(const BlockBackend *blk);
28 BlockDriverState *blk_bs(BlockBackend *blk);
30 void blk_set_allow_write_beyond_eof(BlockBackend *blk, bool allow);
31 void blk_set_allow_aio_context_change(BlockBackend *blk, bool allow);
32 void blk_set_disable_request_queuing(BlockBackend *blk, bool disable);
33 bool blk_iostatus_is_enabled(const BlockBackend *blk);
35 char *blk_get_attached_dev_id(BlockBackend *blk);
37 BlockAIOCB *blk_aio_pwrite_zeroes(BlockBackend *blk, int64_t offset,
41 BlockAIOCB *blk_aio_preadv(BlockBackend *blk, int64_t offset,
44 BlockAIOCB *blk_aio_pwritev(BlockBackend *blk, int64_t offset,
[all …]
H A Dblock-backend-global-state.h43 int blk_get_refcnt(BlockBackend *blk);
44 void blk_ref(BlockBackend *blk);
46 void no_coroutine_fn blk_unref(BlockBackend *blk);
47 void coroutine_fn no_co_wrapper blk_co_unref(BlockBackend *blk);
51 BlockBackend *blk_next(BlockBackend *blk);
52 BlockBackend *blk_all_next(BlockBackend *blk);
53 bool monitor_add_blk(BlockBackend *blk, const char *name, Error **errp);
54 void monitor_remove_blk(BlockBackend *blk);
56 BlockBackendPublic *blk_get_public(BlockBackend *blk);
58 void blk_remove_bs(BlockBackend *blk);
[all …]
/openbmc/linux/arch/powerpc/lib/
H A Drheap.c47 rh_block_t *block, *blk; in grow() local
73 for (i = 0, blk = block; i < info->max_blocks; i++, blk++) in grow()
74 fixup(blks, blke, delta, &blk->list); in grow()
91 blk = block + info->max_blocks - new_blocks; in grow()
92 for (i = 0; i < new_blocks; i++, blk++) in grow()
93 list_add(&blk->list, &info->empty_list); in grow()
123 rh_block_t *blk; in get_slot() local
133 blk = list_entry(info->empty_list.next, rh_block_t, list); in get_slot()
134 list_del_init(&blk->list); in get_slot()
138 blk->start = 0; in get_slot()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c84 static u32 ice_sect_id(enum ice_block blk, enum ice_sect sect) in ice_sect_id() argument
86 return ice_sect_lkup[blk][sect]; in ice_sect_id()
630 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx, in ice_find_prot_off() argument
635 if (prof >= hw->blk[blk].es.count) in ice_find_prot_off()
638 if (fv_idx >= hw->blk[blk].es.fvw) in ice_find_prot_off()
641 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw); in ice_find_prot_off()
663 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg) in ice_ptg_find_ptype() argument
668 *ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg; in ice_ptg_find_ptype()
681 static void ice_ptg_alloc_val(struct ice_hw *hw, enum ice_block blk, u8 ptg) in ice_ptg_alloc_val() argument
683 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true; in ice_ptg_alloc_val()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_mem_input.h158 #define MI_GFX6_TILE_MASK_SH_LIST(mask_sh, blk)\ argument
159 SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
160 SFB(blk, GRPH_CONTROL, GRPH_BANK_WIDTH, mask_sh),\
161 SFB(blk, GRPH_CONTROL, GRPH_BANK_HEIGHT, mask_sh),\
162 SFB(blk, GRPH_CONTROL, GRPH_MACRO_TILE_ASPECT, mask_sh),\
163 SFB(blk, GRPH_CONTROL, GRPH_TILE_SPLIT, mask_sh),\
164 SFB(blk, GRPH_CONTROL, GRPH_PIPE_CONFIG, mask_sh),\
165 SFB(blk, GRPH_CONTROL, GRPH_ARRAY_MODE, mask_sh),\
166 SFB(blk, GRPH_CONTROL, GRPH_COLOR_EXPANSION_MODE, mask_sh)
169 #define MI_GFX8_TILE_MASK_SH_LIST(mask_sh, blk)\ argument
[all …]
/openbmc/linux/block/
H A DMakefile6 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 \
11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
12 disk-events.o blk-ia-ranges.o early-lookup.o
17 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o
18 obj-$(CONFIG_BLK_CGROUP_RWSTAT) += blk-cgroup-rwstat.o
19 obj-$(CONFIG_BLK_CGROUP_FC_APPID) += blk-cgroup-fc-appid.o
[all …]
/openbmc/linux/sound/pci/emu10k1/
H A Dmemory.c69 static int synth_alloc_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk);
70 static int synth_free_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk);
76 static void emu10k1_memblk_init(struct snd_emu10k1_memblk *blk) in emu10k1_memblk_init() argument
78 blk->mapped_page = -1; in emu10k1_memblk_init()
79 INIT_LIST_HEAD(&blk->mapped_link); in emu10k1_memblk_init()
80 INIT_LIST_HEAD(&blk->mapped_order_link); in emu10k1_memblk_init()
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()
[all …]
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_bitmap.c20 static inline u8 *yaffs_block_bits(struct yaffs_dev *dev, int blk) in yaffs_block_bits() argument
22 if (blk < dev->internal_start_block || blk > dev->internal_end_block) { in yaffs_block_bits()
25 blk); in yaffs_block_bits()
29 (dev->chunk_bit_stride * (blk - dev->internal_start_block)); in yaffs_block_bits()
32 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk) in yaffs_verify_chunk_bit_id() argument
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()
43 void yaffs_clear_chunk_bits(struct yaffs_dev *dev, int blk) in yaffs_clear_chunk_bits() argument
45 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bits()
50 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_clear_chunk_bit() argument
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-blockjob.c33 static BlockJob *mk_job(BlockBackend *blk, const char *id, in mk_job() argument
40 job = block_job_create(id, drv, NULL, blk_bs(blk), in mk_job()
49 g_assert_cmpstr(job->job.id, ==, blk_name(blk)); in mk_job()
59 static BlockJob *do_test_id(BlockBackend *blk, const char *id, in do_test_id() argument
62 return mk_job(blk, id, &test_block_job_driver, in do_test_id()
71 BlockBackend *blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in create_blk() local
79 blk_insert_bs(blk, bs, &error_abort); in create_blk()
84 monitor_add_blk(blk, name, &err); in create_blk()
88 return blk; in create_blk()
92 static void destroy_blk(BlockBackend *blk) in destroy_blk() argument
[all …]
H A Dtest-block-iothread.c114 static void test_sync_op_blk_pread(BlockBackend *blk) in test_sync_op_blk_pread() argument
120 ret = blk_pread(blk, 0, sizeof(buf), buf, 0); in test_sync_op_blk_pread()
124 ret = blk_pread(blk, -2, sizeof(buf), buf, 0); in test_sync_op_blk_pread()
128 static void test_sync_op_blk_pwrite(BlockBackend *blk) in test_sync_op_blk_pwrite() argument
134 ret = blk_pwrite(blk, 0, sizeof(buf), buf, 0); in test_sync_op_blk_pwrite()
138 ret = blk_pwrite(blk, -2, sizeof(buf), buf, 0); in test_sync_op_blk_pwrite()
142 static void test_sync_op_blk_preadv(BlockBackend *blk) in test_sync_op_blk_preadv() argument
149 ret = blk_preadv(blk, 0, sizeof(buf), &qiov, 0); in test_sync_op_blk_preadv()
153 ret = blk_preadv(blk, -2, sizeof(buf), &qiov, 0); in test_sync_op_blk_preadv()
157 static void test_sync_op_blk_pwritev(BlockBackend *blk) in test_sync_op_blk_pwritev() argument
[all …]
H A Dtest-replication.c51 static void test_blk_read(BlockBackend *blk, long pattern, in test_blk_read() argument
76 blk_aio_preadv(blk, offset, &qiov, 0, blk_rw_done, &async_ret); in test_blk_read()
96 static void test_blk_write(BlockBackend *blk, long pattern, int64_t offset, in test_blk_write() argument
113 blk_aio_pwritev(blk, offset, &qiov, 0, blk_rw_done, &async_ret); in test_blk_write()
173 BlockBackend *blk; in start_primary() local
189 blk = blk_new_open(NULL, NULL, qdict, BDRV_O_RDWR, &error_abort); in start_primary()
190 g_assert(blk); in start_primary()
192 monitor_add_blk(blk, P_ID, &error_abort); in start_primary()
196 return blk; in start_primary()
201 BlockBackend *blk; in teardown_primary() local
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-qup.c241 struct qup_i2c_block blk; member
283 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_interrupt() local
334 blk->tx_fifo_free += qup->out_blk_sz; in qup_i2c_interrupt()
345 if (!blk->is_rx_blk_mode) { in qup_i2c_interrupt()
346 blk->fifo_available += qup->in_fifo_sz; in qup_i2c_interrupt()
349 blk->fifo_available += qup->in_blk_sz; in qup_i2c_interrupt()
355 if (!blk->rx_bytes_read) in qup_i2c_interrupt()
365 if (blk->is_tx_blk_mode && !(opflags & QUP_MX_OUTPUT_DONE)) in qup_i2c_interrupt()
458 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_write_tx_fifo_v1() local
468 blk->tx_fifo_free--; in qup_i2c_write_tx_fifo_v1()
[all …]
/openbmc/linux/sound/synth/
H A Dutil_mem.c62 struct snd_util_memblk *blk; in __snd_util_mem_alloc() local
79 blk = get_memblk(p); in __snd_util_mem_alloc()
80 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc()
82 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc()
100 struct snd_util_memblk *blk; in __snd_util_memblk_new() local
102 blk = kmalloc(sizeof(struct snd_util_memblk) + hdr->block_extra_size, in __snd_util_memblk_new()
104 if (blk == NULL) in __snd_util_memblk_new()
108 blk->offset = 0; in __snd_util_memblk_new()
111 blk->offset = p->offset + p->size; in __snd_util_memblk_new()
113 blk->size = units; in __snd_util_memblk_new()
[all …]
/openbmc/linux/sound/pci/trident/
H A Dtrident_memory.c101 #define firstpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->first_page) argument
102 #define lastpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->last_page) argument
110 struct snd_util_memblk *blk; in search_empty() local
117 blk = list_entry(p, struct snd_util_memblk, list); in search_empty()
118 if (page + psize <= firstpg(blk)) in search_empty()
120 page = lastpg(blk) + 1; in search_empty()
127 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty()
128 if (blk == NULL) in search_empty()
130 blk->offset = aligned_page_offset(page); /* set aligned offset */ in search_empty()
131 firstpg(blk) = page; in search_empty()
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Ddabtree.c55 ds->state->path.blk[level].blkno), in xchk_da_process_error()
77 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt()
86 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local
89 ASSERT(blk->magic == XFS_DA_NODE_MAGIC); in xchk_da_btree_node_entry()
91 xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr); in xchk_da_btree_node_entry()
92 return hdr.btree + blk->index; in xchk_da_btree_node_entry()
253 if (altpath->blk[level].bp) in xchk_da_btree_block_check_sibling()
254 xchk_buffer_recheck(ds->sc, altpath->blk[level].bp); in xchk_da_btree_block_check_sibling()
257 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling()
263 if (altpath->blk[plevel].bp == NULL || in xchk_da_btree_block_check_sibling()
[all …]
/openbmc/u-boot/fs/
H A Dfs_internal.c13 int fs_devread(struct blk_desc *blk, disk_partition_t *partition, in fs_devread() argument
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()
42 if (blk_dread(blk, partition->start + sector, 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()
[all …]
/openbmc/qemu/hw/block/
H A Dblock.c26 static int blk_pread_nonzeroes(BlockBackend *blk, hwaddr size, void *buf) in blk_pread_nonzeroes() argument
30 BlockDriverState *bs = blk_bs(blk); in blk_pread_nonzeroes()
42 ret = blk_pread(blk, offset, bytes, (uint8_t *) buf + offset, 0); in blk_pread_nonzeroes()
62 bool blk_check_size_and_read_all(BlockBackend *blk, DeviceState *dev, in blk_check_size_and_read_all() argument
69 blk_len = blk_getlength(blk); in blk_check_size_and_read_all()
72 "can't get size of %s block backend", blk_name(blk)); in blk_check_size_and_read_all()
80 blk_name(blk), blk_len); in blk_check_size_and_read_all()
91 ret = blk_pread_nonzeroes(blk, size, buf); in blk_check_size_and_read_all()
96 blk_name(blk), object_get_typename(OBJECT(dev)), in blk_check_size_and_read_all()
105 BlockBackend *blk = conf->blk; in blkconf_blocksizes() local
[all …]
/openbmc/linux/drivers/net/wireless/intersil/orinoco/
H A Dhermes_dld.c96 dblock_addr(const struct dblock *blk) in dblock_addr() argument
98 return le32_to_cpu(blk->addr); in dblock_addr()
102 dblock_len(const struct dblock *blk) in dblock_len() argument
104 return le16_to_cpu(blk->len); in dblock_len()
256 const struct dblock *blk = (const struct dblock *) first_block; in hermes_blocks_length() local
260 end -= sizeof(*blk); in hermes_blocks_length()
264 while (((void *) blk <= end) && in hermes_blocks_length()
265 (dblock_addr(blk) != BLOCK_END)) { in hermes_blocks_length()
266 len = dblock_len(blk); in hermes_blocks_length()
267 total_len += sizeof(*blk) + len; in hermes_blocks_length()
[all …]
/openbmc/qemu/
H A Dqemu-io-cmds.c58 static int init_check_command(BlockBackend *blk, const cmdinfo_t *ct) in init_check_command() argument
63 if (!(ct->flags & CMD_NOFILE_OK) && !blk) { in init_check_command()
70 static int command(BlockBackend *blk, const cmdinfo_t *ct, int argc, in command() argument
75 if (!init_check_command(blk, ct)) { in command()
108 assert(blk || !ct->perm); in command()
109 if (ct->perm && blk_is_available(blk)) { in command()
111 blk_get_perm(blk, &orig_perm, &orig_shared_perm); in command()
120 ret = blk_set_perm(blk, new_perm, orig_shared_perm, &local_err); in command()
129 return ct->cfunc(blk, argc, argv); in command()
341 static void *qemu_io_alloc(BlockBackend *blk, size_t len, int pattern, in qemu_io_alloc() argument
[all …]
/openbmc/linux/drivers/net/phy/mscc/
H A Dmscc_ptp.c62 static u32 vsc85xx_ts_read_csr(struct phy_device *phydev, enum ts_blk blk, in vsc85xx_ts_read_csr() argument
70 switch (blk) { in vsc85xx_ts_read_csr()
106 static void vsc85xx_ts_write_csr(struct phy_device *phydev, enum ts_blk blk, in vsc85xx_ts_write_csr() argument
117 blk == PROCESSOR; in vsc85xx_ts_write_csr()
120 switch (blk) { in vsc85xx_ts_write_csr()
291 static int vsc85xx_ts_disable_flows(struct phy_device *phydev, enum ts_blk blk) in vsc85xx_ts_disable_flows() argument
295 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP1_NXT_PROT_NXT_COMP, 0); in vsc85xx_ts_disable_flows()
296 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP1_NXT_PROT_UDP_CHKSUM, in vsc85xx_ts_disable_flows()
298 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP2_NXT_PROT_NXT_COMP, 0); in vsc85xx_ts_disable_flows()
299 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP2_NXT_PROT_UDP_CHKSUM, in vsc85xx_ts_disable_flows()
[all …]

12345678910>>...20