Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 25 of 498) sorted by relevance

12345678910>>...20

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_h323_asn1.c100 #define INC_BIT(bs) if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;} argument
101 #define INC_BITS(bs,b) if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;} argument
102 #define BYTE_ALIGN(bs) if((bs)->bit){(bs)->cur++;(bs)->bit=0;} argument
103 static unsigned int get_len(struct bitstr *bs);
104 static unsigned int get_bit(struct bitstr *bs);
105 static unsigned int get_bits(struct bitstr *bs, unsigned int b);
106 static unsigned int get_bitmap(struct bitstr *bs, unsigned int b);
107 static unsigned int get_uint(struct bitstr *bs, int b);
110 static int decode_nul(struct bitstr *bs, const struct field_t *f, char *base, int level);
111 static int decode_bool(struct bitstr *bs, const struct field_t *f, char *base, int level);
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-bcm2835aux.c105 static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs, in bcm2835aux_debugfs_create() argument
116 bs->debugfs_dir = dir; in bcm2835aux_debugfs_create()
120 &bs->count_transfer_polling); in bcm2835aux_debugfs_create()
122 &bs->count_transfer_irq); in bcm2835aux_debugfs_create()
124 &bs->count_transfer_irq_after_poll); in bcm2835aux_debugfs_create()
127 static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs) in bcm2835aux_debugfs_remove() argument
129 debugfs_remove_recursive(bs->debugfs_dir); in bcm2835aux_debugfs_remove()
130 bs->debugfs_dir = NULL; in bcm2835aux_debugfs_remove()
133 static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs, in bcm2835aux_debugfs_create() argument
138 static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs) in bcm2835aux_debugfs_remove() argument
[all …]
H A Dspi-bcm2835.c163 static void bcm2835_debugfs_create(struct bcm2835_spi *bs, in bcm2835_debugfs_create() argument
174 bs->debugfs_dir = dir; in bcm2835_debugfs_create()
178 &bs->count_transfer_polling); in bcm2835_debugfs_create()
180 &bs->count_transfer_irq); in bcm2835_debugfs_create()
182 &bs->count_transfer_irq_after_polling); in bcm2835_debugfs_create()
184 &bs->count_transfer_dma); in bcm2835_debugfs_create()
187 static void bcm2835_debugfs_remove(struct bcm2835_spi *bs) in bcm2835_debugfs_remove() argument
189 debugfs_remove_recursive(bs->debugfs_dir); in bcm2835_debugfs_remove()
190 bs->debugfs_dir = NULL; in bcm2835_debugfs_remove()
193 static void bcm2835_debugfs_create(struct bcm2835_spi *bs, in bcm2835_debugfs_create() argument
[all …]
H A Dspi-bcm63xx-hsspi.c122 #define bcm63xx_prepend_printk_on_checkfail(bs, fmt, ...) \ argument
124 if (bs->xfer_mode == HSSPI_XFER_MODE_AUTO) \
125 dev_dbg(&bs->pdev->dev, fmt, ##__VA_ARGS__); \
126 else if (bs->xfer_mode == HSSPI_XFER_MODE_PREPEND) \
127 dev_err(&bs->pdev->dev, fmt, ##__VA_ARGS__); \
152 struct bcm63xx_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_show() local
154 return sprintf(buf, "%d\n", bs->wait_mode); in wait_mode_show()
161 struct bcm63xx_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_store() local
172 mutex_lock(&bs->msg_mutex); in wait_mode_store()
173 bs->wait_mode = val; in wait_mode_store()
[all …]
H A Dspi-bcmbca-hsspi.c130 struct bcmbca_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_show() local
132 return sprintf(buf, "%d\n", bs->wait_mode); in wait_mode_show()
139 struct bcmbca_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_store() local
150 mutex_lock(&bs->msg_mutex); in wait_mode_store()
151 bs->wait_mode = val; in wait_mode_store()
154 __raw_writel(HSSPI_INT_CLEAR_ALL, bs->regs + HSSPI_INT_STATUS_REG); in wait_mode_store()
155 mutex_unlock(&bs->msg_mutex); in wait_mode_store()
171 static void bcmbca_hsspi_set_cs(struct bcmbca_hsspi *bs, unsigned int cs, in bcmbca_hsspi_set_cs() argument
180 mutex_lock(&bs->bus_mutex); in bcmbca_hsspi_set_cs()
182 reg = __raw_readl(bs->spim_ctrl); in bcmbca_hsspi_set_cs()
[all …]
H A Dspi-bcm63xx.c154 static inline u8 bcm_spi_readb(struct bcm63xx_spi *bs, in bcm_spi_readb() argument
157 return readb(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readb()
160 static inline void bcm_spi_writeb(struct bcm63xx_spi *bs, in bcm_spi_writeb() argument
163 writeb(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writeb()
166 static inline void bcm_spi_writew(struct bcm63xx_spi *bs, in bcm_spi_writew() argument
170 iowrite16be(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew()
172 writew(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew()
189 struct bcm63xx_spi *bs = spi_controller_get_devdata(spi->controller); in bcm63xx_spi_setup_transfer() local
205 reg = bcm_spi_readb(bs, SPI_CLK_CFG); in bcm63xx_spi_setup_transfer()
209 bcm_spi_writeb(bs, reg, SPI_CLK_CFG); in bcm63xx_spi_setup_transfer()
[all …]
/openbmc/qemu/block/
H A Dio.c46 bdrv_parent_cb_resize(BlockDriverState *bs);
48 static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs,
52 bdrv_parent_drained_begin(BlockDriverState *bs, BdrvChild *ignore) in bdrv_parent_drained_begin() argument
58 QLIST_FOREACH_SAFE(c, &bs->parents, next_parent, next) { in bdrv_parent_drained_begin()
79 bdrv_parent_drained_end(BlockDriverState *bs, BdrvChild *ignore) in bdrv_parent_drained_end() argument
85 QLIST_FOREACH(c, &bs->parents, next_parent) { in bdrv_parent_drained_end()
104 bdrv_parent_drained_poll(BlockDriverState *bs, BdrvChild *ignore, in bdrv_parent_drained_poll() argument
112 QLIST_FOREACH_SAFE(c, &bs->parents, next_parent, next) { in bdrv_parent_drained_poll()
152 BlockDriverState *bs; member
160 s->bs->bl = s->old_bl; in bdrv_refresh_limits_abort()
[all …]
H A Draw-format.c99 raw_apply_options(BlockDriverState *bs, BDRVRawState *s, uint64_t offset, in raw_apply_options() argument
104 real_size = bdrv_getlength(bs->file->bs); in raw_apply_options()
152 assert(reopen_state->bs != NULL); in raw_reopen_prepare()
162 ret = raw_apply_options(reopen_state->bs, reopen_state->opaque, in raw_reopen_prepare()
174 BDRVRawState *s = state->bs->opaque; in raw_reopen_commit()
189 static inline int raw_adjust_offset(BlockDriverState *bs, int64_t *offset, in raw_adjust_offset() argument
192 BDRVRawState *s = bs->opaque; in raw_adjust_offset()
210 raw_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in raw_co_preadv() argument
215 ret = raw_adjust_offset(bs, &offset, bytes, false); in raw_co_preadv()
220 BLKDBG_CO_EVENT(bs->file, BLKDBG_READ_AIO); in raw_co_preadv()
[all …]
H A Dsnapshot.c53 int bdrv_snapshot_find(BlockDriverState *bs, QEMUSnapshotInfo *sn_info, in bdrv_snapshot_find() argument
62 nb_sns = bdrv_snapshot_list(bs, &sn_tab); in bdrv_snapshot_find()
98 bool bdrv_snapshot_find_by_id_and_name(BlockDriverState *bs, in bdrv_snapshot_find_by_id_and_name() argument
111 nb_sns = bdrv_snapshot_list(bs, &sn_tab); in bdrv_snapshot_find_by_id_and_name()
158 bdrv_snapshot_fallback_child(BlockDriverState *bs) in bdrv_snapshot_fallback_child() argument
160 BdrvChild *fallback = bdrv_primary_child(bs); in bdrv_snapshot_fallback_child()
176 QLIST_FOREACH(child, &bs->children, next) { in bdrv_snapshot_fallback_child()
189 bdrv_snapshot_fallback(BlockDriverState *bs) in bdrv_snapshot_fallback() argument
192 return child_bs(bdrv_snapshot_fallback_child(bs)); in bdrv_snapshot_fallback()
195 int bdrv_can_snapshot(BlockDriverState *bs) in bdrv_can_snapshot() argument
[all …]
H A Dfilter-compress.c31 static int compress_open(BlockDriverState *bs, QDict *options, int flags, in compress_open() argument
34 int ret = bdrv_open_file_child(NULL, options, "file", bs, errp); in compress_open()
41 if (!bs->file->bs->drv || !block_driver_can_compress(bs->file->bs->drv)) { in compress_open()
44 bdrv_get_format_name(bs->file->bs) ?: "(no format)"); in compress_open()
49 bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED | in compress_open()
50 (BDRV_REQ_FUA & bs->file->bs->supported_write_flags); in compress_open()
52 bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED | in compress_open()
54 bs->file->bs->supported_zero_flags); in compress_open()
61 compress_co_getlength(BlockDriverState *bs) in compress_co_getlength() argument
63 return bdrv_co_getlength(bs->file->bs); in compress_co_getlength()
[all …]
H A Ddirty-bitmap.c34 BlockDriverState *bs; member
64 static inline void bdrv_dirty_bitmaps_lock(BlockDriverState *bs) in bdrv_dirty_bitmaps_lock() argument
66 qemu_mutex_lock(&bs->dirty_bitmap_mutex); in bdrv_dirty_bitmaps_lock()
69 static inline void bdrv_dirty_bitmaps_unlock(BlockDriverState *bs) in bdrv_dirty_bitmaps_unlock() argument
71 qemu_mutex_unlock(&bs->dirty_bitmap_mutex); in bdrv_dirty_bitmaps_unlock()
76 bdrv_dirty_bitmaps_lock(bitmap->bs); in bdrv_dirty_bitmap_lock()
81 bdrv_dirty_bitmaps_unlock(bitmap->bs); in bdrv_dirty_bitmap_unlock()
85 BdrvDirtyBitmap *bdrv_find_dirty_bitmap(BlockDriverState *bs, const char *name) in bdrv_find_dirty_bitmap() argument
90 QLIST_FOREACH(bm, &bs->dirty_bitmaps, list) { in bdrv_find_dirty_bitmap()
99 BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, in bdrv_create_dirty_bitmap() argument
[all …]
H A Dpreallocate.c83 static int preallocate_drop_resize(BlockDriverState *bs, Error **errp);
140 static int preallocate_open(BlockDriverState *bs, QDict *options, int flags, in preallocate_open() argument
143 BDRVPreallocateState *s = bs->opaque; in preallocate_open()
153 s->drop_resize_bh = qemu_bh_new(preallocate_drop_resize_bh, bs); in preallocate_open()
155 ret = bdrv_open_file_child(NULL, options, "file", bs, errp); in preallocate_open()
162 if (!preallocate_absorb_opts(&s->opts, options, bs->file->bs, errp)) { in preallocate_open()
166 bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED | in preallocate_open()
167 (BDRV_REQ_FUA & bs->file->bs->supported_write_flags); in preallocate_open()
169 bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED | in preallocate_open()
171 bs->file->bs->supported_zero_flags); in preallocate_open()
[all …]
H A Dreplication.c82 static int replication_open(BlockDriverState *bs, QDict *options, in replication_open() argument
86 BDRVReplicationState *s = bs->opaque; in replication_open()
91 ret = bdrv_open_file_child(NULL, options, "file", bs, errp); in replication_open()
130 s->rs = replication_new(bs, &replication_ops); in replication_open()
139 static void replication_close(BlockDriverState *bs) in replication_close() argument
141 BDRVReplicationState *s = bs->opaque; in replication_close()
161 static void replication_child_perm(BlockDriverState *bs, BdrvChild *c, in replication_child_perm() argument
173 if ((bs->open_flags & (BDRV_O_INACTIVE | BDRV_O_RDWR)) == BDRV_O_RDWR) { in replication_child_perm()
183 replication_co_getlength(BlockDriverState *bs) in replication_co_getlength() argument
185 return bdrv_co_getlength(bs->file->bs); in replication_co_getlength()
[all …]
H A Dthrottle.c76 static int throttle_open(BlockDriverState *bs, QDict *options, in throttle_open() argument
79 ThrottleGroupMember *tgm = bs->opaque; in throttle_open()
83 ret = bdrv_open_file_child(NULL, options, "file", bs, errp); in throttle_open()
90 bs->supported_write_flags = bs->file->bs->supported_write_flags | in throttle_open()
92 bs->supported_zero_flags = bs->file->bs->supported_zero_flags | in throttle_open()
98 throttle_group_register_tgm(tgm, group, bdrv_get_aio_context(bs)); in throttle_open()
105 static void throttle_close(BlockDriverState *bs) in throttle_close() argument
107 ThrottleGroupMember *tgm = bs->opaque; in throttle_close()
113 throttle_co_getlength(BlockDriverState *bs) in throttle_co_getlength() argument
115 return bdrv_co_getlength(bs->file->bs); in throttle_co_getlength()
[all …]
H A Dcopy-on-read.c39 cor_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) in cor_open() argument
42 BDRVStateCOR *state = bs->opaque; in cor_open()
49 ret = bdrv_open_file_child(NULL, options, "file", bs, errp); in cor_open()
56 bs->supported_read_flags = BDRV_REQ_PREFETCH; in cor_open()
58 bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED | in cor_open()
59 (BDRV_REQ_FUA & bs->file->bs->supported_write_flags); in cor_open()
61 bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED | in cor_open()
63 bs->file->bs->supported_zero_flags); in cor_open()
84 if (bdrv_freeze_backing_chain(bs, bottom_bs, errp) < 0) { in cor_open()
111 static void cor_child_perm(BlockDriverState *bs, BdrvChild *c, in cor_child_perm() argument
[all …]
H A Dcopy-before-write.c84 cbw_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_co_preadv() argument
87 return bdrv_co_preadv(bs->file, offset, bytes, qiov, flags); in cbw_co_preadv()
92 BlockDriverState *bs = opaque; in block_copy_cb() local
94 bdrv_dec_in_flight(bs); in block_copy_cb()
106 static coroutine_fn int cbw_do_copy_before_write(BlockDriverState *bs, in cbw_do_copy_before_write() argument
109 BDRVCopyBeforeWriteState *s = bs->opaque; in cbw_do_copy_before_write()
132 bdrv_inc_in_flight(bs); in cbw_do_copy_before_write()
134 block_copy_cb, bs); in cbw_do_copy_before_write()
155 cbw_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in cbw_co_pdiscard() argument
157 int ret = cbw_do_copy_before_write(bs, offset, bytes, 0); in cbw_co_pdiscard()
[all …]
H A Dblkverify.c28 BlockDriverState *bs; member
112 static int blkverify_open(BlockDriverState *bs, QDict *options, int flags, in blkverify_open() argument
115 BDRVBlkverifyState *s = bs->opaque; in blkverify_open()
127 bs, errp); in blkverify_open()
134 "test", bs, &child_of_bds, BDRV_CHILD_DATA, in blkverify_open()
141 bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED; in blkverify_open()
142 bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED; in blkverify_open()
150 static void blkverify_close(BlockDriverState *bs) in blkverify_close() argument
152 BDRVBlkverifyState *s = bs->opaque; in blkverify_close()
155 bdrv_unref_child(bs, s->test_file); in blkverify_close()
[all …]
H A Dblkreplay.c24 static int blkreplay_open(BlockDriverState *bs, QDict *options, int flags, in blkreplay_open() argument
30 ret = bdrv_open_file_child(NULL, options, "image", bs, errp); in blkreplay_open()
35 bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED; in blkreplay_open()
36 bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED; in blkreplay_open()
44 blkreplay_co_getlength(BlockDriverState *bs) in blkreplay_co_getlength() argument
46 return bdrv_co_getlength(bs->file->bs); in blkreplay_co_getlength()
62 static void block_request_create(uint64_t reqid, BlockDriverState *bs, in block_request_create() argument
68 .bh = aio_bh_new(bdrv_get_aio_context(bs), blkreplay_bh_cb, req), in block_request_create()
74 blkreplay_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkreplay_co_preadv() argument
78 int ret = bdrv_co_preadv(bs->file, offset, bytes, qiov, flags); in blkreplay_co_preadv()
[all …]
H A Dqcow2.c78 qcow2_co_preadv_compressed(BlockDriverState *bs,
103 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_read_func() local
104 BDRVQcow2State *s = bs->opaque; in qcow2_crypto_hdr_read_func()
112 ret = bdrv_pread(bs->file, s->crypto_header.offset + offset, buflen, buf, in qcow2_crypto_hdr_read_func()
126 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_init_func() local
127 BDRVQcow2State *s = bs->opaque; in qcow2_crypto_hdr_init_func()
131 ret = qcow2_alloc_clusters(bs, headerlen); in qcow2_crypto_hdr_init_func()
148 assert(qcow2_pre_write_overlap_check(bs, 0, ret, clusterlen, false) == 0); in qcow2_crypto_hdr_init_func()
149 ret = bdrv_co_pwrite_zeroes(bs->file, ret, clusterlen, 0); in qcow2_crypto_hdr_init_func()
165 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_write_func() local
[all …]
H A Dqcow2-cluster.c35 int coroutine_fn qcow2_shrink_l1_table(BlockDriverState *bs, in qcow2_shrink_l1_table() argument
38 BDRVQcow2State *s = bs->opaque; in qcow2_shrink_l1_table()
51 BLKDBG_CO_EVENT(bs->file, BLKDBG_L1_SHRINK_WRITE_TABLE); in qcow2_shrink_l1_table()
52 ret = bdrv_co_pwrite_zeroes(bs->file, in qcow2_shrink_l1_table()
59 ret = bdrv_co_flush(bs->file->bs); in qcow2_shrink_l1_table()
64 BLKDBG_CO_EVENT(bs->file, BLKDBG_L1_SHRINK_FREE_L2_CLUSTERS); in qcow2_shrink_l1_table()
69 qcow2_free_clusters(bs, s->l1_table[i] & L1E_OFFSET_MASK, in qcow2_shrink_l1_table()
86 int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size, in qcow2_grow_l1_table() argument
89 BDRVQcow2State *s = bs->opaque; in qcow2_grow_l1_table()
130 new_l1_table = qemu_try_blockalign(bs->file->bs, new_l1_size2); in qcow2_grow_l1_table()
[all …]
/openbmc/qemu/
H A Dblock.c92 static bool bdrv_recurse_has_child(BlockDriverState *bs,
107 static bool bdrv_backing_overridden(BlockDriverState *bs);
109 static bool bdrv_change_aio_context(BlockDriverState *bs, AioContext *ctx,
136 size_t bdrv_opt_mem_align(BlockDriverState *bs) in bdrv_opt_mem_align() argument
138 if (!bs || !bs->drv) { in bdrv_opt_mem_align()
144 return bs->bl.opt_mem_alignment; in bdrv_opt_mem_align()
147 size_t bdrv_min_mem_align(BlockDriverState *bs) in bdrv_min_mem_align() argument
149 if (!bs || !bs->drv) { in bdrv_min_mem_align()
155 return bs->bl.min_mem_alignment; in bdrv_min_mem_align()
277 bool bdrv_is_read_only(BlockDriverState *bs) in bdrv_is_read_only() argument
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Dbtree.c138 struct xchk_btree *bs) in xchk_btree_rec() argument
140 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_rec()
152 trace_xchk_btree_rec(bs->sc, cur, 0); in xchk_btree_rec()
155 if (bs->lastrec_valid && in xchk_btree_rec()
156 !cur->bc_ops->recs_inorder(cur, &bs->lastrec, rec)) in xchk_btree_rec()
157 xchk_btree_set_corrupt(bs->sc, cur, 0); in xchk_btree_rec()
158 memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len); in xchk_btree_rec()
159 bs->lastrec_valid = true; in xchk_btree_rec()
169 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec()
178 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec()
[all …]
/openbmc/qemu/include/block/
H A Dblock-io.h80 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_nb_sectors(BlockDriverState *bs);
81 int64_t coroutine_mixed_fn bdrv_nb_sectors(BlockDriverState *bs);
83 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_getlength(BlockDriverState *bs);
84 int64_t co_wrapper_mixed_bdrv_rdlock bdrv_getlength(BlockDriverState *bs);
87 bdrv_co_get_allocated_file_size(BlockDriverState *bs);
90 bdrv_get_allocated_file_size(BlockDriverState *bs);
96 bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
99 bdrv_co_delete_file_noerr(BlockDriverState *bs);
107 bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf);
110 int coroutine_fn GRAPH_RDLOCK bdrv_co_flush(BlockDriverState *bs);
[all …]
H A Dblock_int-common.h77 BlockDriverState *bs; member
213 BlockDriverState *bs, Error **errp);
218 void GRAPH_RDLOCK_PTR (*bdrv_amend_clean)(BlockDriverState *bs);
226 BlockDriverState *bs, BlockDriverState *to_replace);
249 BlockDriverState *bs, QDict *options, int flags, Error **errp);
251 void (*bdrv_close)(BlockDriverState *bs);
260 BlockDriverState *bs, QemuOpts *opts,
264 int GRAPH_RDLOCK_PTR (*bdrv_make_empty)(BlockDriverState *bs);
270 void GRAPH_RDLOCK_PTR (*bdrv_refresh_filename)(BlockDriverState *bs);
294 BlockDriverState *bs, QDict *target, bool backing_overridden);
[all …]
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_vli.h226 static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits) in bitstream_init() argument
228 bs->buf = s; in bitstream_init()
229 bs->buf_len = len; in bitstream_init()
230 bs->pad_bits = pad_bits; in bitstream_init()
231 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_init()
234 static inline void bitstream_rewind(struct bitstream *bs) in bitstream_rewind() argument
236 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_rewind()
237 memset(bs->buf, 0, bs->buf_len); in bitstream_rewind()
248 static inline int bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits) in bitstream_put_bits() argument
250 unsigned char *b = bs->cur.b; in bitstream_put_bits()
[all …]

12345678910>>...20