Home
last modified time | relevance | path

Searched refs:eb (Results 1 – 25 of 125) sorted by relevance

12345

/Linux-v6.6/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c319 static int eb_parse(struct i915_execbuffer *eb);
320 static int eb_pin_engine(struct i915_execbuffer *eb, bool throttle);
321 static void eb_unpin_engine(struct i915_execbuffer *eb);
322 static void eb_capture_release(struct i915_execbuffer *eb);
324 static inline bool eb_use_cmdparser(const struct i915_execbuffer *eb) in eb_use_cmdparser() argument
326 return intel_engine_requires_cmd_parser(eb->context->engine) || in eb_use_cmdparser()
327 (intel_engine_using_cmd_parser(eb->context->engine) && in eb_use_cmdparser()
328 eb->args->batch_len); in eb_use_cmdparser()
331 static int eb_create(struct i915_execbuffer *eb) in eb_create() argument
333 if (!(eb->args->flags & I915_EXEC_HANDLE_LUT)) { in eb_create()
[all …]
/Linux-v6.6/fs/btrfs/
Dlocking.c82 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, int level) in btrfs_set_buffer_lockdep_class() argument
93 lockdep_set_class_and_name(&eb->lock, &ks->keys[level], ks->names[level]); in btrfs_set_buffer_lockdep_class()
96 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb) in btrfs_maybe_reset_lockdep_class() argument
100 eb, btrfs_header_level(eb)); in btrfs_maybe_reset_lockdep_class()
129 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_read_lock() argument
136 down_read_nested(&eb->lock, nest); in __btrfs_tree_read_lock()
137 trace_btrfs_tree_read_lock(eb, start_ns); in __btrfs_tree_read_lock()
140 void btrfs_tree_read_lock(struct extent_buffer *eb) in btrfs_tree_read_lock() argument
142 __btrfs_tree_read_lock(eb, BTRFS_NESTING_NORMAL); in btrfs_tree_read_lock()
150 int btrfs_try_tree_read_lock(struct extent_buffer *eb) in btrfs_try_tree_read_lock() argument
[all …]
Dextent_io.c44 static inline void btrfs_leak_debug_add_eb(struct extent_buffer *eb) in btrfs_leak_debug_add_eb() argument
46 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb()
50 list_add(&eb->leak_list, &fs_info->allocated_ebs); in btrfs_leak_debug_add_eb()
54 static inline void btrfs_leak_debug_del_eb(struct extent_buffer *eb) in btrfs_leak_debug_del_eb() argument
56 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb()
60 list_del(&eb->leak_list); in btrfs_leak_debug_del_eb()
66 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check() local
79 eb = list_first_entry(&fs_info->allocated_ebs, in btrfs_extent_buffer_leak_debug_check()
83 eb->start, eb->len, atomic_read(&eb->refs), eb->bflags, in btrfs_extent_buffer_leak_debug_check()
84 btrfs_header_owner(eb)); in btrfs_extent_buffer_leak_debug_check()
[all …]
Dtree-mod-log.c174 struct extent_buffer *eb) in tree_mod_dont_log() argument
178 if (eb && btrfs_header_level(eb) == 0) in tree_mod_dont_log()
192 struct extent_buffer *eb) in tree_mod_need_log() argument
196 if (eb && btrfs_header_level(eb) == 0) in tree_mod_need_log()
202 static struct tree_mod_elem *alloc_tree_mod_elem(struct extent_buffer *eb, in alloc_tree_mod_elem() argument
212 tm->logical = eb->start; in alloc_tree_mod_elem()
214 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem()
215 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem()
219 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem()
225 int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot, in btrfs_tree_mod_log_insert_key() argument
[all …]
Daccessors.h9 struct extent_buffer *eb; member
14 void btrfs_init_map_token(struct btrfs_map_token *token, struct extent_buffer *eb);
35 #define read_eb_member(eb, ptr, type, member, result) (\ argument
36 read_extent_buffer(eb, (char *)(result), \
41 #define write_eb_member(eb, ptr, type, member, result) (\ argument
42 write_extent_buffer(eb, (char *)(result), \
53 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
55 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \
64 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \
68 return btrfs_get_##bits(eb, s, offsetof(type, member)); \
[all …]
Daccessors.c11 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds() argument
16 if (unlikely(member_offset + size > eb->len)) { in check_setget_bounds()
17 btrfs_warn(eb->fs_info, in check_setget_bounds()
19 (member_offset > eb->len ? "start" : "end"), in check_setget_bounds()
20 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds()
27 void btrfs_init_map_token(struct btrfs_map_token *token, struct extent_buffer *eb) in btrfs_init_map_token() argument
29 token->eb = eb; in btrfs_init_map_token()
30 token->kaddr = page_address(eb->pages[0]); in btrfs_init_map_token()
64 const unsigned long oip = get_eb_offset_in_page(token->eb, \
72 ASSERT(check_setget_bounds(token->eb, ptr, off, size)); \
[all …]
Dprint-tree.c52 static void print_chunk(const struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() argument
54 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk()
57 btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk), in print_chunk()
58 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk()
61 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk()
62 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk()
65 static void print_dev_item(const struct extent_buffer *eb, in print_dev_item() argument
69 btrfs_device_id(eb, dev_item), in print_dev_item()
70 btrfs_device_total_bytes(eb, dev_item), in print_dev_item()
71 btrfs_device_bytes_used(eb, dev_item)); in print_dev_item()
[all …]
Dextent_io.h98 struct extent_buffer *eb; member
111 static inline size_t get_eb_offset_in_page(const struct extent_buffer *eb, in get_eb_offset_in_page() argument
121 return offset_in_page(offset + eb->start); in get_eb_offset_in_page()
209 void free_extent_buffer(struct extent_buffer *eb);
210 void free_extent_buffer_stale(struct extent_buffer *eb);
214 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, int mirror_num,
216 void wait_on_extent_buffer_writeback(struct extent_buffer *eb);
221 static inline int num_extent_pages(const struct extent_buffer *eb) in num_extent_pages() argument
230 return (eb->len >> PAGE_SHIFT) ?: 1; in num_extent_pages()
233 static inline int extent_buffer_uptodate(const struct extent_buffer *eb) in extent_buffer_uptodate() argument
[all …]
Dlocking.h162 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
163 void btrfs_tree_lock(struct extent_buffer *eb);
164 void btrfs_tree_unlock(struct extent_buffer *eb);
166 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
167 void btrfs_tree_read_lock(struct extent_buffer *eb);
168 void btrfs_tree_read_unlock(struct extent_buffer *eb);
169 int btrfs_try_tree_read_lock(struct extent_buffer *eb);
170 int btrfs_try_tree_write_lock(struct extent_buffer *eb);
176 static inline void btrfs_assert_tree_write_locked(struct extent_buffer *eb) in btrfs_assert_tree_write_locked() argument
178 lockdep_assert_held_write(&eb->lock); in btrfs_assert_tree_write_locked()
[all …]
Duuid-tree.c30 struct extent_buffer *eb; in btrfs_uuid_tree_lookup() local
56 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
58 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_lookup()
59 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup()
71 read_extent_buffer(eb, &data, offset, sizeof(data)); in btrfs_uuid_tree_lookup()
93 struct extent_buffer *eb; in btrfs_uuid_tree_add() local
119 eb = path->nodes[0]; in btrfs_uuid_tree_add()
121 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
128 eb = path->nodes[0]; in btrfs_uuid_tree_add()
130 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
[all …]
Dbackref.c37 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 …]
Dtree-checker.c55 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument
58 const struct btrfs_fs_info *fs_info = eb->fs_info; in generic_err()
69 btrfs_header_level(eb) == 0 ? "leaf" : "node", in generic_err()
70 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
80 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument
83 const struct btrfs_fs_info *fs_info = eb->fs_info; in file_extent_err()
88 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err()
96 btrfs_header_level(eb) == 0 ? "leaf" : "node", in file_extent_err()
97 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err()
140 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() argument
[all …]
Drelocation.c747 struct extent_buffer *eb; in create_reloc_root() local
765 ret = btrfs_copy_root(trans, root, root->commit_root, &eb, in create_reloc_root()
788 ret = btrfs_copy_root(trans, root, root->node, &eb, in create_reloc_root()
801 btrfs_set_root_bytenr(root_item, eb->start); in create_reloc_root()
802 btrfs_set_root_level(root_item, btrfs_header_level(eb)); in create_reloc_root()
812 btrfs_tree_unlock(eb); in create_reloc_root()
813 free_extent_buffer(eb); in create_reloc_root()
1191 int memcmp_node_keys(struct extent_buffer *eb, int slot, in memcmp_node_keys() argument
1196 btrfs_node_key(eb, &key1, slot); in memcmp_node_keys()
1217 struct extent_buffer *eb; in replace_path() local
[all …]
Ddisk-io.c104 int btrfs_buffer_uptodate(struct extent_buffer *eb, u64 parent_transid, int atomic) in btrfs_buffer_uptodate() argument
106 if (!extent_buffer_uptodate(eb)) in btrfs_buffer_uptodate()
109 if (!parent_transid || btrfs_header_generation(eb) == parent_transid) in btrfs_buffer_uptodate()
115 if (!extent_buffer_uptodate(eb) || in btrfs_buffer_uptodate()
116 btrfs_header_generation(eb) != parent_transid) { in btrfs_buffer_uptodate()
117 btrfs_err_rl(eb->fs_info, in btrfs_buffer_uptodate()
119 eb->start, eb->read_mirror, in btrfs_buffer_uptodate()
120 parent_transid, btrfs_header_generation(eb)); in btrfs_buffer_uptodate()
121 clear_extent_buffer_uptodate(eb); in btrfs_buffer_uptodate()
166 static int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, in btrfs_repair_eb_io_failure() argument
[all …]
/Linux-v6.6/drivers/bus/
Dintel-ixp4xx-eb.c154 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-v6.6/fs/btrfs/tests/
Dextent-io-tests.c322 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb) in check_eb_bitmap() argument
326 for (i = 0; i < eb->len * BITS_PER_BYTE; i++) { in check_eb_bitmap()
330 bit1 = !!extent_buffer_test_bit(eb, 0, i); in check_eb_bitmap()
335 read_extent_buffer(eb, &has, i / BITS_PER_BYTE, 1); in check_eb_bitmap()
344 bit1 = !!extent_buffer_test_bit(eb, i / BITS_PER_BYTE, in check_eb_bitmap()
350 read_extent_buffer(eb, &has, i / BITS_PER_BYTE, 1); in check_eb_bitmap()
364 struct extent_buffer *eb, in test_bitmap_set() argument
371 extent_buffer_bitmap_set(eb, byte_start, bit_start, bit_len); in test_bitmap_set()
372 ret = check_eb_bitmap(bitmap, eb); in test_bitmap_set()
379 struct extent_buffer *eb, in test_bitmap_clear() argument
[all …]
Dextent-buffer-tests.c18 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()
65 write_extent_buffer(eb, value, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
85 btrfs_item_key_to_cpu(eb, &key, 0); in test_btrfs_split_item()
93 if (btrfs_item_size(eb, 0) != strlen(split1)) { in test_btrfs_split_item()
99 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
109 btrfs_item_key_to_cpu(eb, &key, 1); in test_btrfs_split_item()
117 if (btrfs_item_size(eb, 1) != strlen(split2)) { in test_btrfs_split_item()
[all …]
/Linux-v6.6/drivers/mtd/
Dmtdswap.c184 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-v6.6/drivers/mtd/tests/
Dstresstest.c45 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 …]
Dtorturetest.c28 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-v6.6/arch/arm/boot/dts/arm/
DMakefile12 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 \
/Linux-v6.6/arch/arm/boot/dts/intel/ixp/
Dintel-ixp42x-arcom-vulcan.dts55 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 …]
Dintel-ixp4xx-reference-design.dtsi62 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 …]
Dintel-ixp42x-gateworks-gw2348.dts72 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 …]
Dintel-ixp43x-gateworks-gw2358.dts85 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 …]

12345