/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_execbuffer.c | 320 static int eb_parse(struct i915_execbuffer *eb); 321 static int eb_pin_engine(struct i915_execbuffer *eb, bool throttle); 322 static void eb_unpin_engine(struct i915_execbuffer *eb); 323 static void eb_capture_release(struct i915_execbuffer *eb); 325 static bool eb_use_cmdparser(const struct i915_execbuffer *eb) in eb_use_cmdparser() argument 327 return intel_engine_requires_cmd_parser(eb->context->engine) || in eb_use_cmdparser() 328 (intel_engine_using_cmd_parser(eb->context->engine) && in eb_use_cmdparser() 329 eb->args->batch_len); in eb_use_cmdparser() 332 static int eb_create(struct i915_execbuffer *eb) in eb_create() argument 334 if (!(eb->args->flags & I915_EXEC_HANDLE_LUT)) { in eb_create() [all …]
|
/linux/fs/btrfs/ |
H A D | extent_io.c | 41 static inline void btrfs_leak_debug_add_eb(struct extent_buffer *eb) in btrfs_leak_debug_add_eb() argument 43 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb() 47 list_add(&eb->leak_list, &fs_info->allocated_ebs); in btrfs_leak_debug_add_eb() 51 static inline void btrfs_leak_debug_del_eb(struct extent_buffer *eb) in btrfs_leak_debug_del_eb() argument 53 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb() 57 list_del(&eb->leak_list); in btrfs_leak_debug_del_eb() 63 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check() local 76 eb = list_first_entry(&fs_info->allocated_ebs, in btrfs_extent_buffer_leak_debug_check() 80 eb->start, eb->len, atomic_read(&eb->refs), eb->bflags, in btrfs_extent_buffer_leak_debug_check() 81 btrfs_header_owner(eb)); in btrfs_extent_buffer_leak_debug_check() [all …]
|
H A D | accessors.c | 12 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds() argument 17 if (unlikely(member_offset + size > eb->len)) { in check_setget_bounds() 18 btrfs_warn(eb->fs_info, in check_setget_bounds() 20 (member_offset > eb->len ? "start" : "end"), in check_setget_bounds() 21 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds() 28 void btrfs_init_map_token(struct btrfs_map_token *token, struct extent_buffer *eb) in btrfs_init_map_token() argument 30 token->eb = eb; in btrfs_init_map_token() 31 token->kaddr = folio_address(eb->folios[0]); in btrfs_init_map_token() 64 const unsigned long idx = get_eb_folio_index(token->eb, member_offset); \ 65 const unsigned long oil = get_eb_offset_in_folio(token->eb, \ [all …]
|
H A D | tree-mod-log.c | 173 static bool tree_mod_dont_log(struct btrfs_fs_info *fs_info, const struct extent_buffer *eb) in tree_mod_dont_log() argument 177 if (eb && btrfs_header_level(eb) == 0) in tree_mod_dont_log() 191 const struct extent_buffer *eb) in tree_mod_need_log() argument 195 if (eb && btrfs_header_level(eb) == 0) in tree_mod_need_log() 201 static struct tree_mod_elem *alloc_tree_mod_elem(const struct extent_buffer *eb, in alloc_tree_mod_elem() argument 211 tm->logical = eb->start; in alloc_tree_mod_elem() 213 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem() 214 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem() 218 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem() 224 int btrfs_tree_mod_log_insert_key(const struct extent_buffer *eb, int slot, in btrfs_tree_mod_log_insert_key() argument [all …]
|
H A D | accessors.h | 19 struct extent_buffer *eb; member 24 void btrfs_init_map_token(struct btrfs_map_token *token, struct extent_buffer *eb); 45 #define read_eb_member(eb, ptr, type, member, result) (\ argument 46 read_extent_buffer(eb, (char *)(result), \ 51 #define write_eb_member(eb, ptr, type, member, source) ( \ argument 52 write_extent_buffer(eb, (const char *)(source), \ 63 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 65 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 74 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \ 78 return btrfs_get_##bits(eb, s, offsetof(type, member)); \ [all …]
|
H A D | extent_io.h | 130 struct extent_buffer *eb; member 135 static inline unsigned long offset_in_eb_folio(const struct extent_buffer *eb, in offset_in_eb_folio() argument 138 ASSERT(eb->folio_size); in offset_in_eb_folio() 139 return start & (eb->folio_size - 1); in offset_in_eb_folio() 150 static inline size_t get_eb_offset_in_folio(const struct extent_buffer *eb, in get_eb_offset_in_folio() argument 168 return offset_in_folio(eb->folios[0], offset + eb->start); in get_eb_offset_in_folio() 171 static inline unsigned long get_eb_folio_index(const struct extent_buffer *eb, in get_eb_folio_index() argument 186 return offset >> eb->folio_shift; in get_eb_folio_index() 263 void free_extent_buffer(struct extent_buffer *eb); 264 void free_extent_buffer_stale(struct extent_buffer *eb); [all …]
|
H A D | print-tree.c | 55 static void print_chunk(const struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() argument 57 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk() 60 btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk), in print_chunk() 61 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk() 64 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk() 65 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk() 68 static void print_dev_item(const struct extent_buffer *eb, in print_dev_item() argument 72 btrfs_device_id(eb, dev_item), in print_dev_item() 73 btrfs_device_total_bytes(eb, dev_item), in print_dev_item() 74 btrfs_device_bytes_used(eb, dev_item)); in print_dev_item() [all …]
|
H A D | locking.h | 175 void btrfs_tree_lock_nested(struct extent_buffer *eb, enum btrfs_lock_nesting nest); 177 static inline void btrfs_tree_lock(struct extent_buffer *eb) in btrfs_tree_lock() argument 179 btrfs_tree_lock_nested(eb, BTRFS_NESTING_NORMAL); in btrfs_tree_lock() 182 void btrfs_tree_unlock(struct extent_buffer *eb); 184 void btrfs_tree_read_lock_nested(struct extent_buffer *eb, enum btrfs_lock_nesting nest); 186 static inline void btrfs_tree_read_lock(struct extent_buffer *eb) in btrfs_tree_read_lock() argument 188 btrfs_tree_read_lock_nested(eb, BTRFS_NESTING_NORMAL); in btrfs_tree_read_lock() 191 void btrfs_tree_read_unlock(struct extent_buffer *eb); 192 int btrfs_try_tree_read_lock(struct extent_buffer *eb); 198 static inline void btrfs_assert_tree_write_locked(struct extent_buffer *eb) in btrfs_assert_tree_write_locked() argument [all …]
|
H A D | uuid-tree.c | 31 struct extent_buffer *eb; in btrfs_uuid_tree_lookup() local 57 eb = path->nodes[0]; in btrfs_uuid_tree_lookup() 59 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_lookup() 60 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup() 72 read_extent_buffer(eb, &data, offset, sizeof(data)); in btrfs_uuid_tree_lookup() 94 struct extent_buffer *eb; in btrfs_uuid_tree_add() local 120 eb = path->nodes[0]; in btrfs_uuid_tree_add() 122 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add() 129 eb = path->nodes[0]; in btrfs_uuid_tree_add() 131 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add() [all …]
|
H A D | backref.c | 37 const struct extent_buffer *eb, in check_extent_in_eb() argument 41 const u64 data_len = btrfs_file_extent_num_bytes(eb, fi); in check_extent_in_eb() 49 !btrfs_file_extent_compression(eb, fi) && in check_extent_in_eb() 50 !btrfs_file_extent_encryption(eb, fi) && in check_extent_in_eb() 51 !btrfs_file_extent_other_encoding(eb, fi)) { in check_extent_in_eb() 54 data_offset = btrfs_file_extent_offset(eb, fi); in check_extent_in_eb() 65 cached = ctx->cache_lookup(eb->start, ctx->user_ctx, &root_ids, in check_extent_in_eb() 105 const struct extent_buffer *eb, in find_extent_in_eb() argument 121 nritems = btrfs_header_nritems(eb); in find_extent_in_eb() 123 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb() [all …]
|
H A D | tree-checker.c | 56 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument 59 const struct btrfs_fs_info *fs_info = eb->fs_info; in generic_err() 68 dump_page(folio_page(eb->folios[0], 0), "eb page dump"); in generic_err() 71 btrfs_header_level(eb) == 0 ? "leaf" : "node", in generic_err() 72 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err() 82 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument 85 const struct btrfs_fs_info *fs_info = eb->fs_info; in file_extent_err() 90 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err() 96 dump_page(folio_page(eb->folios[0], 0), "eb page dump"); in file_extent_err() 99 btrfs_header_level(eb) == 0 ? "leaf" : "node", in file_extent_err() [all …]
|
H A D | relocation.c | 673 struct extent_buffer *eb; in create_reloc_root() local 691 ret = btrfs_copy_root(trans, root, root->commit_root, &eb, in create_reloc_root() 714 ret = btrfs_copy_root(trans, root, root->node, &eb, in create_reloc_root() 727 btrfs_set_root_bytenr(root_item, eb->start); in create_reloc_root() 728 btrfs_set_root_level(root_item, btrfs_header_level(eb)); in create_reloc_root() 738 btrfs_tree_unlock(eb); in create_reloc_root() 739 free_extent_buffer(eb); in create_reloc_root() 1071 static noinline_for_stack int memcmp_node_keys(const struct extent_buffer *eb, in memcmp_node_keys() argument 1077 btrfs_node_key(eb, &key1, slot); in memcmp_node_keys() 1098 struct extent_buffer *eb; in replace_path() local [all …]
|
H A D | disk-io.c | 119 int btrfs_buffer_uptodate(struct extent_buffer *eb, u64 parent_transid, int atomic) in btrfs_buffer_uptodate() argument 121 if (!extent_buffer_uptodate(eb)) in btrfs_buffer_uptodate() 124 if (!parent_transid || btrfs_header_generation(eb) == parent_transid) in btrfs_buffer_uptodate() 130 if (!extent_buffer_uptodate(eb) || in btrfs_buffer_uptodate() 131 btrfs_header_generation(eb) != parent_transid) { in btrfs_buffer_uptodate() 132 btrfs_err_rl(eb->fs_info, in btrfs_buffer_uptodate() 134 eb->start, eb->read_mirror, in btrfs_buffer_uptodate() 135 parent_transid, btrfs_header_generation(eb)); in btrfs_buffer_uptodate() 136 clear_extent_buffer_uptodate(eb); in btrfs_buffer_uptodate() 181 static int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, in btrfs_repair_eb_io_failure() argument [all …]
|
/linux/drivers/bus/ |
H A D | intel-ixp4xx-eb.c | 154 static void ixp4xx_exp_setup_chipselect(struct ixp4xx_eb *eb, in ixp4xx_exp_setup_chipselect() argument 166 if (eb->is_42x && (cs_index > 7)) { in ixp4xx_exp_setup_chipselect() 167 dev_err(eb->dev, in ixp4xx_exp_setup_chipselect() 172 if (eb->is_43x && (cs_index > 3)) { in ixp4xx_exp_setup_chipselect() 173 dev_err(eb->dev, in ixp4xx_exp_setup_chipselect() 191 regmap_read(eb->rmap, IXP4XX_EXP_TIMING_CS0 + in ixp4xx_exp_setup_chipselect() 193 dev_info(eb->dev, "CS%d at %#08x, size %#08x, config before: %#08x\n", in ixp4xx_exp_setup_chipselect() 194 cs_index, eb->bus_base + IXP4XX_EXP_STRIDE * cs_index, in ixp4xx_exp_setup_chipselect() 203 dev_err(eb->dev, "illegal size order %d\n", cs_order); in ixp4xx_exp_setup_chipselect() 206 dev_dbg(eb->dev, "CS%d size order: %d\n", cs_index, cs_order); in ixp4xx_exp_setup_chipselect() [all …]
|
/linux/fs/btrfs/tests/ |
H A D | extent-io-tests.c | 342 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb) in check_eb_bitmap() argument 346 for (i = 0; i < eb->len * BITS_PER_BYTE; i++) { in check_eb_bitmap() 350 bit1 = !!extent_buffer_test_bit(eb, 0, i); in check_eb_bitmap() 355 read_extent_buffer(eb, &has, i / BITS_PER_BYTE, 1); in check_eb_bitmap() 364 bit1 = !!extent_buffer_test_bit(eb, i / BITS_PER_BYTE, in check_eb_bitmap() 370 read_extent_buffer(eb, &has, i / BITS_PER_BYTE, 1); in check_eb_bitmap() 384 struct extent_buffer *eb, in test_bitmap_set() argument 391 extent_buffer_bitmap_set(eb, byte_start, bit_start, bit_len); in test_bitmap_set() 392 ret = check_eb_bitmap(bitmap, eb); in test_bitmap_set() 399 struct extent_buffer *eb, in test_bitmap_clear() argument [all …]
|
H A D | extent-buffer-tests.c | 18 struct extent_buffer *eb; in test_btrfs_split_item() local 51 eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item() 52 path->nodes[0] = eb; in test_btrfs_split_item() 53 if (!eb) { in test_btrfs_split_item() 69 write_extent_buffer(eb, value, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item() 89 btrfs_item_key_to_cpu(eb, &key, 0); in test_btrfs_split_item() 97 if (btrfs_item_size(eb, 0) != strlen(split1)) { in test_btrfs_split_item() 103 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item() 113 btrfs_item_key_to_cpu(eb, &key, 1); in test_btrfs_split_item() 121 if (btrfs_item_size(eb, 1) != strlen(split2)) { in test_btrfs_split_item() [all …]
|
/linux/drivers/mtd/ |
H A D | mtdswap.c | 184 static loff_t mtdswap_eb_offset(struct mtdswap_dev *d, struct swap_eb *eb) in mtdswap_eb_offset() argument 186 return (loff_t)(eb - d->eb_data) * d->mtd->erasesize; in mtdswap_eb_offset() 189 static void mtdswap_eb_detach(struct mtdswap_dev *d, struct swap_eb *eb) in mtdswap_eb_detach() argument 194 if (eb->root) { in mtdswap_eb_detach() 195 tp = container_of(eb->root, struct mtdswap_tree, root); in mtdswap_eb_detach() 199 rb_erase(&eb->rb, eb->root); in mtdswap_eb_detach() 203 static void __mtdswap_rb_add(struct rb_root *root, struct swap_eb *eb) in __mtdswap_rb_add() argument 212 if (eb->erase_count > cur->erase_count) in __mtdswap_rb_add() 218 rb_link_node(&eb->rb, parent, p); in __mtdswap_rb_add() 219 rb_insert_color(&eb->rb, root); in __mtdswap_rb_add() [all …]
|
/linux/drivers/mtd/tests/ |
H A D | stresstest.c | 45 unsigned int eb; in rand_eb() local 49 eb = get_random_u32_below(ebcnt - 1); in rand_eb() 50 if (bbt[eb]) in rand_eb() 52 return eb; in rand_eb() 67 int eb = rand_eb(); in do_read() local 72 if (bbt[eb + 1]) { in do_read() 78 addr = (loff_t)eb * mtd->erasesize + offs; in do_read() 84 int eb = rand_eb(), offs, err, len; in do_write() local 87 offs = offsets[eb]; in do_write() 89 err = mtdtest_erase_eraseblock(mtd, eb); in do_write() [all …]
|
H A D | torturetest.c | 28 static int eb = 8; variable 29 module_param(eb, int, S_IRUGO); 30 MODULE_PARM_DESC(eb, "eraseblock number within the selected MTD device"); 187 ebcnt, eb, eb + ebcnt - 1, dev); in tort_init() 245 err = mtdtest_scan_for_bad_eraseblocks(mtd, bad_ebs, eb, ebcnt); in tort_init() 254 err = mtdtest_erase_good_eraseblocks(mtd, bad_ebs, eb, ebcnt); in tort_init() 260 for (i = eb; i < eb + ebcnt; i++) { in tort_init() 261 if (bad_ebs[i - eb]) in tort_init() 277 for (i = eb; i < eb + ebcnt; i++) { in tort_init() 278 if (bad_ebs[i - eb]) in tort_init() [all …]
|
/linux/arch/arm/boot/dts/intel/ixp/ |
H A D | intel-ixp42x-arcom-vulcan.dts | 55 intel,ixp4xx-eb-t3 = <3>; 56 intel,ixp4xx-eb-byte-access-on-halfword = <1>; 57 intel,ixp4xx-eb-write-enable = <1>; 71 intel,ixp4xx-eb-t3 = <1>; 72 intel,ixp4xx-eb-t4 = <2>; 73 intel,ixp4xx-eb-ahb-split-transfers = <1>; 74 intel,ixp4xx-eb-write-enable = <1>; 75 intel,ixp4xx-eb-byte-access = <1>; 90 intel,ixp4xx-eb-t3 = <3>; 91 intel,ixp4xx-eb-cycle-type = <1>; /* Motorola cycles */ [all …]
|
H A D | intel-ixp42x-gateworks-gw2348.dts | 72 intel,ixp4xx-eb-write-enable = <1>; 89 intel,ixp4xx-eb-t1 = <3>; // 3 cycles extra address phase 90 intel,ixp4xx-eb-t2 = <3>; // 3 cycles extra setup phase 91 intel,ixp4xx-eb-t3 = <15>; // 15 cycles extra strobe phase 92 intel,ixp4xx-eb-t4 = <3>; // 3 cycles extra hold phase 93 intel,ixp4xx-eb-t5 = <15>; // 15 cycles extra recovery phase 94 intel,ixp4xx-eb-cycle-type = <0>; // Intel cycle type 95 intel,ixp4xx-eb-byte-access-on-halfword = <1>; 96 intel,ixp4xx-eb-mux-address-and-data = <0>; 97 intel,ixp4xx-eb-ahb-split-transfers = <0>; [all …]
|
H A D | intel-ixp4xx-reference-design.dtsi | 62 intel,ixp4xx-eb-t1 = <0>; 63 intel,ixp4xx-eb-t2 = <0>; 64 intel,ixp4xx-eb-t3 = <1>; // 1 cycle extra strobe phase 65 intel,ixp4xx-eb-t4 = <0>; 66 intel,ixp4xx-eb-t5 = <0>; 67 intel,ixp4xx-eb-cycle-type = <0>; // Intel cycle type 68 intel,ixp4xx-eb-byte-access-on-halfword = <0>; 69 intel,ixp4xx-eb-mux-address-and-data = <0>; 70 intel,ixp4xx-eb-ahb-split-transfers = <0>; 71 intel,ixp4xx-eb-write-enable = <1>; [all …]
|
H A D | intel-ixp42x-usrobotics-usr8200.dts | 91 intel,ixp4xx-eb-write-enable = <1>; 109 intel,ixp4xx-eb-t1 = <0>; // no cycles extra address phase 110 intel,ixp4xx-eb-t2 = <0>; // no cycles extra setup phase 111 intel,ixp4xx-eb-t3 = <15>; // 15 cycles extra strobe phase 112 intel,ixp4xx-eb-t4 = <3>; // 3 cycles extra hold phase 113 intel,ixp4xx-eb-t5 = <15>; // 15 cycles extra recovery phase 114 intel,ixp4xx-eb-cycle-type = <0>; // Intel cycle 115 intel,ixp4xx-eb-byte-access-on-halfword = <0>; 116 intel,ixp4xx-eb-mux-address-and-data = <0>; 117 intel,ixp4xx-eb-ahb-split-transfers = <0>; [all …]
|
H A D | intel-ixp43x-gateworks-gw2358.dts | 85 intel,ixp4xx-eb-write-enable = <1>; 105 intel,ixp4xx-eb-t1 = <3>; // 3 cycles extra address phase 106 intel,ixp4xx-eb-t2 = <3>; // 3 cycles extra setup phase 107 intel,ixp4xx-eb-t3 = <15>; // 15 cycles extra strobe phase 108 intel,ixp4xx-eb-t4 = <3>; // 3 cycles extra hold phase 109 intel,ixp4xx-eb-t5 = <15>; // 15 cycles extra recovery phase 110 intel,ixp4xx-eb-cycle-type = <0>; // Intel cycle type 111 intel,ixp4xx-eb-byte-access-on-halfword = <1>; 112 intel,ixp4xx-eb-mux-address-and-data = <0>; 113 intel,ixp4xx-eb-ahb-split-transfers = <0>; [all …]
|
/linux/arch/arm/boot/dts/arm/ |
H A D | Makefile | 12 arm-realview-eb.dtb \ 13 arm-realview-eb-bbrevd.dtb \ 14 arm-realview-eb-11mp.dtb \ 15 arm-realview-eb-11mp-bbrevd.dtb \ 16 arm-realview-eb-11mp-ctrevb.dtb \ 17 arm-realview-eb-11mp-bbrevd-ctrevb.dtb \ 18 arm-realview-eb-a9mp.dtb \ 19 arm-realview-eb-a9mp-bbrevd.dtb \
|