/openbmc/qemu/block/ |
H A D | graph-lock.c | 109 void no_coroutine_fn bdrv_graph_wrlock(BlockDriverState *bs) in bdrv_graph_wrlock() argument 121 if (bs) { in bdrv_graph_wrlock() 122 ctx = bdrv_get_aio_context(bs); in bdrv_graph_wrlock() 160 aio_context_acquire(bdrv_get_aio_context(bs)); in bdrv_graph_wrlock() 206 void no_coroutine_fn bdrv_graph_wrunlock(BlockDriverState *bs) in bdrv_graph_wrunlock() argument 208 AioContext *ctx = bs ? bdrv_get_aio_context(bs) : NULL; in bdrv_graph_wrunlock()
|
H A D | qed-table.c | 35 ret = bdrv_co_pread(s->bs->file, offset, bytes, table->offsets, 0); in qed_read_table() 84 new_table = qemu_blockalign(s->bs, len_bytes); in qed_write_table() 96 ret = bdrv_co_pwrite(s->bs->file, offset, len_bytes, new_table->offsets, 0); in qed_write_table() 104 ret = bdrv_co_flush(s->bs); in qed_write_table() 125 BLKDBG_CO_EVENT(s->bs->file, BLKDBG_L1_UPDATE); in qed_write_l1_table() 153 BLKDBG_CO_EVENT(s->bs->file, BLKDBG_L2_LOAD); in qed_read_l2_table() 186 BLKDBG_CO_EVENT(s->bs->file, BLKDBG_L2_UPDATE); in qed_write_l2_table()
|
H A D | curl.c | 579 BDRVCURLState *s = bs->opaque; in curl_detach_aio_context() 607 BDRVCURLState *s = bs->opaque; in curl_attach_aio_context() 683 BDRVCURLState *s = bs->opaque; in curl_open() 869 curl_attach_aio_context(bs, bdrv_get_aio_context(bs)); in curl_open() 898 BDRVCURLState *s = bs->opaque; in curl_setup_preadv() 972 curl_setup_preadv(bs, &acb); in curl_co_preadv() 981 BDRVCURLState *s = bs->opaque; in curl_close() 984 curl_detach_aio_context(bs); in curl_close() 997 BDRVCURLState *s = bs->opaque; in curl_co_getlength() 1003 BDRVCURLState *s = bs->opaque; in curl_refresh_filename() [all …]
|
H A D | backup.c | 355 BlockJob *backup_job_create(const char *job_id, BlockDriverState *bs, in backup_job_create() argument 374 assert(bs); in backup_job_create() 382 if (bs == target) { in backup_job_create() 388 if (!bdrv_is_inserted(bs)) { in backup_job_create() 390 bdrv_get_device_name(bs)); in backup_job_create() 406 if (bdrv_op_is_blocked(bs, BLOCK_OP_TYPE_BACKUP_SOURCE, errp)) { in backup_job_create() 439 len = bdrv_getlength(bs); in backup_job_create() 443 bdrv_get_device_or_node_name(bs)); in backup_job_create() 451 bdrv_get_device_or_node_name(bs)); in backup_job_create() 460 cbw = bdrv_cbw_append(bs, target, filter_node_name, &bcs, errp); in backup_job_create() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | bitops.h | 48 #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs)) argument 56 #define PPC_BITMASK32(bs, be) ((PPC_BIT32(bs) - PPC_BIT32(be))|PPC_BIT32(bs)) argument 60 #define PPC_BITMASK8(bs, be) ((PPC_BIT8(bs) - PPC_BIT8(be))|PPC_BIT8(bs)) argument
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 261 | 171 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn0-pre" bs=1 skip=$sn0_ofs count=40 \ 173 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn1-pre" bs=1 skip=$sn1_ofs count=40 \ 179 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn0-extra" bs=1 \ 181 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn1-extra" bs=1 \ 183 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn2-extra" bs=1 \ 187 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn0-post" bs=1 \ 190 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn1-post" bs=1 \ 193 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn2-post" bs=1 \ 224 | dd of="$TEST_IMG.v2.orig" bs=1 seek=$sn_table_ofs conv=notrunc \ 356 dd if="$TEST_DIR/sn0" of="$TEST_IMG" bs=1 seek=$offset conv=notrunc \ [all …]
|
H A D | 159 | 46 for bs in $TEST_SIZES; do 56 echo "== Converting the image with dd with a block size of $bs ==" 58 $QEMU_IMG dd if="$TEST_IMG" of="$TEST_IMG.out" bs=$bs -O "$IMGFMT"
|
/openbmc/qemu/include/block/ |
H A D | qapi.h | 33 bdrv_block_device_info(BlockBackend *blk, BlockDriverState *bs, 37 bdrv_query_snapshot_info_list(BlockDriverState *bs, 41 bdrv_query_image_info(BlockDriverState *bs, ImageInfo **p_info, bool flat, 44 bdrv_query_block_graph_info(BlockDriverState *bs, BlockGraphInfo **p_info,
|
H A D | write-threshold.h | 26 void bdrv_write_threshold_set(BlockDriverState *bs, uint64_t threshold_bytes); 34 uint64_t bdrv_write_threshold_get(const BlockDriverState *bs); 42 void bdrv_write_threshold_check_write(BlockDriverState *bs, int64_t offset,
|
/openbmc/linux/drivers/media/tuners/ |
H A D | tda827x.c | 84 u8 bs; member 92 { .lomax = 62000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1}, 93 { .lomax = 66000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1}, 94 { .lomax = 76000000, .spd = 3, .bs = 1, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0}, 95 { .lomax = 84000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0}, 96 { .lomax = 93000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0}, 97 { .lomax = 98000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0}, 98 { .lomax = 109000000, .spd = 3, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 0}, 99 { .lomax = 123000000, .spd = 2, .bs = 2, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1}, 182 (tda827x_table[i].bs << 3) + in tda827xo_set_params() [all …]
|
/openbmc/qemu/migration/ |
H A D | block.c | 379 BlockDriverState *bs; in init_blk_migration() local 386 BlockDriverState *bs; in init_blk_migration() member 401 for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { in init_blk_migration() 406 for (i = 0, bs = bdrv_first(&it); bs; bs = bdrv_next(&it), i++) { in init_blk_migration() 407 if (bdrv_is_read_only(bs)) { in init_blk_migration() 411 sectors = bdrv_nb_sectors(bs); in init_blk_migration() 429 bmds_bs[i].bs = bs; in init_blk_migration() 446 bs = bmds_bs[i].bs; in init_blk_migration() 683 BlockDriverState *bs; in block_migration_cleanup_bmds() local 691 bs = blk_bs(bmds->blk); in block_migration_cleanup_bmds() [all …]
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | rheap.c | 175 bs = blk->start; in attach_free_block() 176 be = bs + blk->size; in attach_free_block() 184 if (e == bs) in attach_free_block() 398 bs = blk->start; in rh_detach_region() 400 if (s >= bs && e <= be) in rh_detach_region() 418 if (bs == s) in rh_detach_region() 424 blk->size = s - bs; in rh_detach_region() 555 bs = blk->start; in rh_alloc_fixed() 557 if (s >= bs && e <= be) in rh_alloc_fixed() 580 if (bs == s) in rh_alloc_fixed() [all …]
|
/openbmc/qemu/ |
H A D | blockjob.c | 210 bdrv_op_unblock_all(c->bs, job->blocker); in block_job_remove_all_bdrv() 218 bool block_job_has_bdrv(BlockJob *job, BlockDriverState *bs) in block_job_has_bdrv() argument 225 if (c->bs == bs) { in block_job_has_bdrv() 237 AioContext *ctx = bdrv_get_aio_context(bs); in block_job_add_bdrv() 241 bdrv_ref(bs); in block_job_add_bdrv() 264 bdrv_op_block_all(bs, job->blocker); in block_job_add_bdrv() 517 bdrv_graph_wrlock(bs); in block_job_create() 520 job_id = bdrv_get_device_name(bs); in block_job_create() 526 bdrv_graph_wrunlock(bs); in block_job_create() 566 bdrv_graph_wrunlock(bs); in block_job_create() [all …]
|
/openbmc/qemu/block/monitor/ |
H A D | block-hmp-cmds.c | 81 if (!bs) { in hmp_drive_add_node() 86 bdrv_set_monitor_owned(bs); in hmp_drive_add_node() 143 BlockDriverState *bs; in hmp_drive_del() local 150 bs = bdrv_find_node(id); in hmp_drive_del() 151 if (bs) { in hmp_drive_del() 174 bs = blk_bs(blk); in hmp_drive_del() 175 if (bs) { in hmp_drive_del() 215 BlockDriverState *bs; in hmp_commit() local 579 if (!bs) { in hmp_qemu_io() 588 if (bs) { in hmp_qemu_io() [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | xattr.c | 1905 bs->s.base = BHDR(bs->bh); in ext4_xattr_block_find() 1906 bs->s.first = BFIRST(bs->bh); in ext4_xattr_block_find() 1907 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find() 1908 bs->s.here = bs->s.first; in ext4_xattr_block_find() 1909 error = xattr_find_entry(inode, &bs->s.here, bs->s.end, in ext4_xattr_block_find() 2128 } else if (bs->bh && s->base == bs->bh->b_data) { in ext4_xattr_block_set() 2202 if (bs->bh && bs->bh != new_bh) { in ext4_xattr_block_set() 2230 if (!(bs->bh && s->base == bs->bh->b_data)) in ext4_xattr_block_set() 2436 if (!bs.s.not_found && ext4_xattr_value_same(&bs.s, &i)) in ext4_xattr_set_handle() 2682 if (bs) in ext4_xattr_move_to_block() [all …]
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
H A D | empty.py | 73 bs = get_byte_count(source_params['bs']) 75 bs = get_byte_count('1M') 82 quotient, remainder = divmod(size, bs) 85 file.write(bytearray(bs))
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | refcount.c | 421 struct xchk_btree *bs, in xchk_refcountbt_check_mergeable() argument 425 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_refcountbt_check_mergeable() 429 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_check_mergeable() 437 struct xchk_btree *bs, in xchk_refcountbt_rec() argument 441 struct xchk_refcbt_records *rrc = bs->private; in xchk_refcountbt_rec() 444 if (xfs_refcount_check_irec(bs->cur, &irec) != NULL) { in xchk_refcountbt_rec() 445 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_rec() 455 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_rec() 458 xchk_refcountbt_check_mergeable(bs, rrc, &irec); in xchk_refcountbt_rec() 459 xchk_refcountbt_xref(bs->sc, &irec); in xchk_refcountbt_rec() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | sch_tbf_root.sh | 13 local bs=$1; shift 16 rate 400Mbit burst $bs limit 1M 17 do_tbf_test 10 400 $bs
|
/openbmc/u-boot/test/fs/ |
H A D | fs-test.sh | 134 dd if=/dev/zero of=$1 bs=1024 count=$((3 * 1024 * 1024)) 364 sudo dd if=/dev/urandom of="${GB2p5}" bs=1M count=1 \ 366 sudo dd if=/dev/urandom of="${GB2p5}" bs=1M count=2 seek=2047 \ 368 sudo dd if=/dev/urandom of="${GB2p5}" bs=1M count=1 seek=2499 \ 374 sudo dd if=/dev/urandom of="${MB1}" bs=1M count=1 \ 384 dd if="${MB1}" bs=1M skip=0 count=1 2> /dev/null | md5sum > "$2" 388 dd if="${GB2p5}" bs=1M skip=0 count=1 \ 392 dd if="${GB2p5}" bs=1M skip=2499 count=1 \ 396 dd if="${GB2p5}" bs=1M skip=2047 count=1 \ 400 dd if="${GB2p5}" bs=1M skip=2048 count=1 \ [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0016-pass-correct-parameters-to-getdents64.patch | 8 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size); 27 … bs = MIN(MALLOC_SIZEOF_SAFE(de) - offsetof(DirectoryEntries, buffer), (size_t) SSIZE_MAX); 28 assert(bs > de->buffer_size); 30 - n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_si… 31 …etdents64(dir_fd, (struct dirent*)((uint8_t*) de->buffer + de->buffer_size), bs - de->buffer_size);
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0016-pass-correct-parameters-to-getdents64.patch | 8 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size); 27 … bs = MIN(MALLOC_SIZEOF_SAFE(de) - offsetof(DirectoryEntries, buffer), (size_t) SSIZE_MAX); 28 assert(bs > de->buffer_size); 30 - n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_si… 31 …etdents64(dir_fd, (struct dirent*)((uint8_t*) de->buffer + de->buffer_size), bs - de->buffer_size);
|
/openbmc/qemu/util/ |
H A D | aiocb.c | 28 void *qemu_aio_get(const AIOCBInfo *aiocb_info, BlockDriverState *bs, in qemu_aio_get() argument 35 acb->bs = bs; in qemu_aio_get()
|
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 69 int bs = crypto_ahash_blocksize(ahash); in sun8i_ss_hmac_setkey() local 74 if (keylen > bs) { in sun8i_ss_hmac_setkey() 84 tfmctx->ipad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey() 96 for (i = 0; i < bs; i++) { in sun8i_ss_hmac_setkey() 438 if (bs == 64) { in hash_pad() 447 fill += bs; in hash_pad() 464 if (bs == 64) { in hash_pad() 603 rctx->t_src[0].len = bs / 4; in sun8i_ss_hash_run() 607 byte_count = areq->nbytes + bs; in sun8i_ss_hash_run() 630 rctx->t_src[0].len = bs / 4; in sun8i_ss_hash_run() [all …]
|
/openbmc/linux/arch/mips/txx9/generic/ |
H A D | mem_tx4927.c | 43 unsigned int bs = 0; in tx4927_process_sdccr() local 58 bs = 2 << sdccr_bs; in tx4927_process_sdccr() 64 return rs * cs * mw * bs; in tx4927_process_sdccr()
|
/openbmc/qemu/block/export/ |
H A D | export.c | 80 BlockDriverState *bs; in blk_exp_add() local 103 bs = bdrv_lookup_bs(NULL, export->node_name, errp); in blk_exp_add() 104 if (!bs) { in blk_exp_add() 111 if (bdrv_is_read_only(bs) && export->writable) { in blk_exp_add() 116 ctx = bdrv_get_aio_context(bs); in blk_exp_add() 134 ret = bdrv_try_change_aio_context(bs, new_ctx, NULL, set_context_errp); in blk_exp_add() 151 bdrv_activate(bs, NULL); in blk_exp_add() 165 ret = blk_insert_bs(blk, bs, errp); in blk_exp_add()
|