Home
last modified time | relevance | path

Searched +full:1 +full:eb (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/fs/btrfs/
Dlocking.c35 * The extent buffer locks (also called tree locks) manage access to eb data
37 * members of eb).
121 static inline void btrfs_assert_spinning_writers_get(struct extent_buffer *eb) in btrfs_assert_spinning_writers_get() argument
123 WARN_ON(eb->spinning_writers); in btrfs_assert_spinning_writers_get()
124 eb->spinning_writers++; in btrfs_assert_spinning_writers_get()
127 static inline void btrfs_assert_spinning_writers_put(struct extent_buffer *eb) in btrfs_assert_spinning_writers_put() argument
129 WARN_ON(eb->spinning_writers != 1); in btrfs_assert_spinning_writers_put()
130 eb->spinning_writers--; in btrfs_assert_spinning_writers_put()
133 static inline void btrfs_assert_no_spinning_writers(struct extent_buffer *eb) in btrfs_assert_no_spinning_writers() argument
135 WARN_ON(eb->spinning_writers); in btrfs_assert_no_spinning_writers()
[all …]
Dprint-tree.c48 static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() argument
50 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk()
53 btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk), in print_chunk()
54 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk()
57 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk()
58 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk()
61 static void print_dev_item(struct extent_buffer *eb, in print_dev_item() argument
65 btrfs_device_id(eb, dev_item), in print_dev_item()
66 btrfs_device_total_bytes(eb, dev_item), in print_dev_item()
67 btrfs_device_bytes_used(eb, dev_item)); in print_dev_item()
[all …]
Dextent_io.h15 #define EXTENT_BIO_COMPRESSED 1
36 #define PAGE_UNLOCK (1 << 0)
37 #define PAGE_CLEAR_DIRTY (1 << 1)
38 #define PAGE_SET_WRITEBACK (1 << 2)
39 #define PAGE_END_WRITEBACK (1 << 3)
40 #define PAGE_SET_PRIVATE2 (1 << 4)
41 #define PAGE_SET_ERROR (1 << 5)
42 #define PAGE_LOCK (1 << 6)
48 #define EXTENT_PAGE_PRIVATE 1
53 * 1. The bitmaps must be little-endian on disk.
[all …]
Dstruct-funcs.c10 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds() argument
15 if (member_offset > eb->len) { in check_setget_bounds()
16 btrfs_warn(eb->fs_info, in check_setget_bounds()
17 "bad eb member start: ptr 0x%lx start %llu member offset %lu size %d", in check_setget_bounds()
18 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds()
21 if (member_offset + size > eb->len) { in check_setget_bounds()
22 btrfs_warn(eb->fs_info, in check_setget_bounds()
23 "bad eb member end: ptr 0x%lx start %llu member offset %lu size %d", in check_setget_bounds()
24 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds()
68 ASSERT(check_setget_bounds(token->eb, ptr, off, size)); \
[all …]
Dextent_io.c64 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()
82 list_del(&eb->leak_list); in btrfs_extent_buffer_leak_debug_check()
83 kmem_cache_free(extent_buffer_cache, eb); in btrfs_extent_buffer_leak_debug_check()
115 if (end >= PAGE_SIZE && (end % 2) == 0 && end != isize - 1) { in __btrfs_debug_check_extent_io_range()
139 unsigned int extent_locked:1;
142 unsigned int sync_io:1;
157 changeset->bytes_changed += state->end - state->start + 1; in add_extent_changeset()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c51 FORCE_CPU_RELOC = 1,
107 * 1. Add a command to load the HW context. For Logical Ring Contexts, i.e.
134 * 1. Validation - Ensure all the pointers, handles and flags are valid.
258 struct i915_request *requests[MAX_ENGINE_INSTANCE + 1];
260 struct eb_vma *batches[MAX_ENGINE_INSTANCE + 1];
263 /** used for excl fence in dma_resv objects when > 1 BB submitted */
290 bool use_64bit_reloc : 1;
291 bool has_llc : 1;
292 bool has_fence : 1;
293 bool needs_unfenced : 1;
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_execbuffer.c19 static int __igt_gpu_reloc(struct i915_execbuffer *eb, in __igt_gpu_reloc() argument
24 GENMASK_ULL(eb->reloc_cache.use_64bit_reloc ? 63 : 31, 0); in __igt_gpu_reloc()
31 vma = i915_vma_instance(obj, eb->context->vm, NULL); in __igt_gpu_reloc()
35 err = i915_gem_object_lock(obj, &eb->ww); in __igt_gpu_reloc()
39 err = i915_vma_pin_ww(vma, &eb->ww, 0, 0, PIN_USER | PIN_HIGH); in __igt_gpu_reloc()
44 err = __reloc_entry_gpu(eb, vma, offsets[0] * sizeof(u32), 0); in __igt_gpu_reloc()
49 err = __reloc_entry_gpu(eb, vma, offsets[1] * sizeof(u32), 1); in __igt_gpu_reloc()
54 i = PAGE_SIZE / sizeof(u32) - 1; in __igt_gpu_reloc()
55 i -= eb->reloc_cache.rq_size; in __igt_gpu_reloc()
56 memset32(eb->reloc_cache.rq_cmd + eb->reloc_cache.rq_size, in __igt_gpu_reloc()
[all …]
/kernel/linux/linux-6.6/fs/btrfs/
Dlocking.c19 * eb, the lockdep key is determined by the btrfs_root it belongs to and
20 * the level the eb occupies in the tree.
50 DEFINE_LEVEL(stem, 1) \
82 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()
123 * @eb: the eb to be locked
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()
[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 …]
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()
18 "bad eb member %s: ptr 0x%lx start %llu member offset %lu size %d", 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, \
[all …]
Dextent_io.h49 #define EXTENT_PAGE_PRIVATE 1
54 * 1. The bitmaps must be little-endian on disk.
59 #define BYTE_MASK ((1 << BITS_PER_BYTE) - 1)
61 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK)
63 (BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
85 /* >= 0 if eb belongs to a log tree, -1 otherwise */
98 struct extent_buffer *eb; member
99 /* Block group @eb resides in. Only used for zoned mode. */
106 * @eb: target extent buffer
111 static inline size_t get_eb_offset_in_page(const struct extent_buffer *eb, in get_eb_offset_in_page() argument
[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 …]
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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c44 FORCE_CPU_RELOC = 1,
97 * 1. Add a command to load the HW context. For Logical Ring Contexts, i.e.
124 * 1. Validation - Ensure all the pointers, handles and flags are valid.
272 bool use_64bit_reloc : 1;
273 bool has_llc : 1;
274 bool has_fence : 1;
275 bool needs_unfenced : 1;
306 static int eb_parse(struct i915_execbuffer *eb);
307 static struct i915_request *eb_pin_engine(struct i915_execbuffer *eb,
309 static void eb_unpin_engine(struct i915_execbuffer *eb);
[all …]
/kernel/linux/linux-6.6/drivers/bus/
Dintel-ixp4xx-eb.c58 #define IXP4XX_EXP_WR_EN BIT(1)
93 .prop = "intel,ixp4xx-eb-t1",
99 .prop = "intel,ixp4xx-eb-t2",
105 .prop = "intel,ixp4xx-eb-t3",
111 .prop = "intel,ixp4xx-eb-t4",
117 .prop = "intel,ixp4xx-eb-t5",
123 .prop = "intel,ixp4xx-eb-byte-access-on-halfword",
124 .max = 1,
128 .prop = "intel,ixp4xx-eb-hpi-hrdy-pol-high",
129 .max = 1,
[all …]
/kernel/linux/linux-6.6/fs/btrfs/tests/
Dextent-io-tests.c17 #define PROCESS_UNLOCK (1 << 0)
18 #define PROCESS_RELEASE (1 << 1)
19 #define PROCESS_TEST_LOCKED (1 << 2)
104 state->end + 1 - state->start, flags_str); in dump_extent_io_tree()
180 set_extent_bit(tmp, 0, sectorsize - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
182 end = start + PAGE_SIZE - 1; in test_find_delalloc()
189 if (start != 0 || end != (sectorsize - 1)) { in test_find_delalloc()
191 sectorsize - 1, start, end); in test_find_delalloc()
211 set_extent_bit(tmp, sectorsize, max_bytes - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
213 end = start + PAGE_SIZE - 1; in test_find_delalloc()
[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 * Passing a NULL trans handle is fine here, we have a dummy root 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()
[all …]
/kernel/linux/linux-6.6/arch/sh/include/mach-kfr2r09/mach/
Dpartner-jet-setup.txt35 WAIT 1
40 EB 0xa4050120, 0x00
41 EB 0xa4050122, 0x00
42 EB 0xa4050124, 0x00
43 EB 0xa4050126, 0x00
44 EB 0xa4050128, 0xA0
45 EB 0xa405012A, 0x10
46 EB 0xa405012C, 0x00
47 EB 0xa405012E, 0x00
48 EB 0xa4050130, 0x00
[all …]
/kernel/linux/linux-5.10/arch/sh/include/mach-kfr2r09/mach/
Dpartner-jet-setup.txt35 WAIT 1
40 EB 0xa4050120, 0x00
41 EB 0xa4050122, 0x00
42 EB 0xa4050124, 0x00
43 EB 0xa4050126, 0x00
44 EB 0xa4050128, 0xA0
45 EB 0xa405012A, 0x10
46 EB 0xa405012C, 0x00
47 EB 0xa405012E, 0x00
48 EB 0xa4050130, 0x00
[all …]
/kernel/linux/linux-5.10/drivers/mtd/
Dmtdswap.c45 * Frequency value 6 means 1/6 of the GC passes will pick an erase block based
59 #define BLOCK_ERROR (UINT_MAX - 1)
62 #define EBLOCK_BAD (1 << 0)
63 #define EBLOCK_NOMAGIC (1 << 1)
64 #define EBLOCK_BITFLIP (1 << 2)
65 #define EBLOCK_FAILED (1 << 3)
66 #define EBLOCK_READERR (1 << 4)
136 #define MTDSWAP_MAGIC_DIRTY (MTDSWAP_MAGIC_CLEAN + 1)
138 #define MTDSWAP_TYPE_DIRTY 1
158 #define MIN_ERASE_BLOCKS (MIN_SPARE_EBLOCKS + 1)
[all …]
/kernel/linux/linux-6.6/drivers/mtd/
Dmtdswap.c45 * Frequency value 6 means 1/6 of the GC passes will pick an erase block based
59 #define BLOCK_ERROR (UINT_MAX - 1)
62 #define EBLOCK_BAD (1 << 0)
63 #define EBLOCK_NOMAGIC (1 << 1)
64 #define EBLOCK_BITFLIP (1 << 2)
65 #define EBLOCK_FAILED (1 << 3)
66 #define EBLOCK_READERR (1 << 4)
136 #define MTDSWAP_MAGIC_DIRTY (MTDSWAP_MAGIC_CLEAN + 1)
138 #define MTDSWAP_TYPE_DIRTY 1
158 #define MIN_ERASE_BLOCKS (MIN_SPARE_EBLOCKS + 1)
[all …]
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dextent-buffer-tests.c17 struct extent_buffer *eb; in test_btrfs_split_item() local
51 path->nodes[0] = eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item()
52 if (!eb) { in test_btrfs_split_item()
63 setup_items_for_insert(root, path, &key, &value_len, 1); 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()
94 if (btrfs_item_size(eb, item) != strlen(split1)) { in test_btrfs_split_item()
100 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
110 btrfs_item_key_to_cpu(eb, &key, 1); in test_btrfs_split_item()
113 test_err("invalid key at slot 1"); in test_btrfs_split_item()
[all …]
/kernel/linux/linux-6.6/lib/
Dtest-string_helpers.c24 print_hex_dump(KERN_WARNING, "Input: ", DUMP_PREFIX_NONE, 16, 1, in test_string_check_buf()
26 print_hex_dump(KERN_WARNING, "Expected: ", DUMP_PREFIX_NONE, 16, 1, in test_string_check_buf()
28 print_hex_dump(KERN_WARNING, "Got: ", DUMP_PREFIX_NONE, 16, 1, in test_string_check_buf()
47 .in = "\\40\\1\\387\\0064\\05\\040\\8a\\110\\777",
106 test_string_check_buf(name, flags, in, p - 1, out_real, q_real, in test_string_unescape()
155 .in = "\eb \\C\007\"\x90\r]",
157 .out = "\eb \\C\007\"\x90\\r]",
160 .out = "\\eb \\\\C\\a\\\"\x90\r]",
163 .out = "\\eb \\\\C\\a\\\"\x90\\r]",
178 .out = "\eb \\C\007\"\x90\r]",
[all …]
/kernel/linux/linux-5.10/drivers/clk/sprd/
Dsc9863a-clk.c79 { .shift = 95, .width = 1 }, /* lock_done */
80 { .shift = 0, .width = 1 }, /* div_s */
81 { .shift = 1, .width = 1 }, /* mod_en */
82 { .shift = 2, .width = 1 }, /* sdm_en */
93 static CLK_FIXED_FACTOR_HW(twpll_768m, "twpll-768m", &twpll.common.hw, 2, 1, 0);
94 static CLK_FIXED_FACTOR_HW(twpll_384m, "twpll-384m", &twpll.common.hw, 4, 1, 0);
95 static CLK_FIXED_FACTOR_HW(twpll_192m, "twpll-192m", &twpll.common.hw, 8, 1, 0);
96 static CLK_FIXED_FACTOR_HW(twpll_96m, "twpll-96m", &twpll.common.hw, 16, 1, 0);
97 static CLK_FIXED_FACTOR_HW(twpll_48m, "twpll-48m", &twpll.common.hw, 32, 1, 0);
98 static CLK_FIXED_FACTOR_HW(twpll_24m, "twpll-24m", &twpll.common.hw, 64, 1, 0);
[all …]
/kernel/linux/linux-6.6/drivers/clk/sprd/
Dsc9863a-clk.c79 { .shift = 95, .width = 1 }, /* lock_done */
80 { .shift = 0, .width = 1 }, /* div_s */
81 { .shift = 1, .width = 1 }, /* mod_en */
82 { .shift = 2, .width = 1 }, /* sdm_en */
93 static CLK_FIXED_FACTOR_HW(twpll_768m, "twpll-768m", &twpll.common.hw, 2, 1, 0);
94 static CLK_FIXED_FACTOR_HW(twpll_384m, "twpll-384m", &twpll.common.hw, 4, 1, 0);
95 static CLK_FIXED_FACTOR_HW(twpll_192m, "twpll-192m", &twpll.common.hw, 8, 1, 0);
96 static CLK_FIXED_FACTOR_HW(twpll_96m, "twpll-96m", &twpll.common.hw, 16, 1, 0);
97 static CLK_FIXED_FACTOR_HW(twpll_48m, "twpll-48m", &twpll.common.hw, 32, 1, 0);
98 static CLK_FIXED_FACTOR_HW(twpll_24m, "twpll-24m", &twpll.common.hw, 64, 1, 0);
[all …]

12345678910>>...15