Home
last modified time | relevance | path

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

1234567

/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 …]
Duuid-tree.c27 struct extent_buffer *eb; in btrfs_uuid_tree_lookup() local
53 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
55 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_tree_lookup()
56 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup()
68 read_extent_buffer(eb, &data, offset, sizeof(data)); in btrfs_uuid_tree_lookup()
90 struct extent_buffer *eb; in btrfs_uuid_tree_add() local
116 eb = path->nodes[0]; in btrfs_uuid_tree_add()
118 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
125 eb = path->nodes[0]; in btrfs_uuid_tree_add()
127 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
[all …]
Dlocking.h14 #define BTRFS_WRITE_LOCK 1
88 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
89 void btrfs_tree_lock(struct extent_buffer *eb);
90 void btrfs_tree_unlock(struct extent_buffer *eb);
92 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest,
94 void btrfs_tree_read_lock(struct extent_buffer *eb);
95 void btrfs_tree_read_unlock(struct extent_buffer *eb);
96 void btrfs_tree_read_unlock_blocking(struct extent_buffer *eb);
97 void btrfs_set_lock_blocking_read(struct extent_buffer *eb);
98 void btrfs_set_lock_blocking_write(struct extent_buffer *eb);
[all …]
Dbackref.c28 const struct extent_buffer *eb, in check_extent_in_eb() argument
38 !btrfs_file_extent_compression(eb, fi) && in check_extent_in_eb()
39 !btrfs_file_extent_encryption(eb, fi) && in check_extent_in_eb()
40 !btrfs_file_extent_other_encoding(eb, fi)) { in check_extent_in_eb()
44 data_offset = btrfs_file_extent_offset(eb, fi); in check_extent_in_eb()
45 data_len = btrfs_file_extent_num_bytes(eb, fi); in check_extent_in_eb()
49 return 1; in check_extent_in_eb()
75 static int find_extent_in_eb(const struct extent_buffer *eb, in find_extent_in_eb() argument
93 nritems = btrfs_header_nritems(eb); in find_extent_in_eb()
95 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb()
[all …]
Dctree.h63 #define BTRFS_MAX_MIRRORS (4 + 1)
112 #define BTRFS_STAT_PREV 1
119 return div_u64(size + BTRFS_MAX_EXTENT_SIZE - 1, BTRFS_MAX_EXTENT_SIZE); in count_max_extents()
126 sizeof(struct btrfs_stripe) * (num_stripes - 1); in btrfs_chunk_item_size()
153 #define BTRFS_BACKREF_REV_MASK (((u64)BTRFS_BACKREF_REV_MAX - 1) << \
157 #define BTRFS_MIXED_BACKREF_REV 1
350 * level 0 is always the leaf, and nodes[1...BTRFS_MAX_LEVEL] will point
370 unsigned int search_for_split:1;
371 unsigned int keep_locks:1;
372 unsigned int skip_locking:1;
[all …]
Drelocation.c43 * BG C: 1 extents | BG C: 3 data extents (1 old + 2 relocated)
47 * 1. Mark the target block group read-only
103 unsigned int key_ready:1;
147 unsigned int create_reloc_tree:1;
148 unsigned int merge_reloc_tree:1;
149 unsigned int found_file_extent:1;
154 #define UPDATE_DATA_PTRS 1
166 node->bytenr + blocksize - 1, EXTENT_DIRTY); in mark_block_processed()
168 node->processed = 1; in mark_block_processed()
210 edge = edges[idx - 1]; in walk_down_backref()
[all …]
Dctree.c125 struct extent_buffer *eb; in btrfs_root_node() local
127 while (1) { in btrfs_root_node()
129 eb = rcu_dereference(root->node); in btrfs_root_node()
137 if (atomic_inc_not_zero(&eb->refs)) { in btrfs_root_node()
144 return eb; in btrfs_root_node()
221 ret = btrfs_inc_ref(trans, root, cow, 1); in btrfs_copy_root()
313 u64 min_seq = (u64)-1; in btrfs_put_tree_mod_seq()
398 * Determines if logging can be omitted. Returns 1 if it can. Otherwise, it
404 struct extent_buffer *eb) { in tree_mod_dont_log() argument
407 return 1; in tree_mod_dont_log()
[all …]
Ddisk-io.c127 * eb, the lockdep key is determined by the btrfs_root it belongs to and
128 * the level the eb occupies in the tree.
156 char names[BTRFS_MAX_LEVEL + 1][20];
157 struct lock_class_key keys[BTRFS_MAX_LEVEL + 1];
188 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, in btrfs_set_buffer_lockdep_class() argument
200 lockdep_set_class_and_name(&eb->lock, in btrfs_set_buffer_lockdep_class()
223 for (i = 1; i < num_pages; i++) { in csum_tree_block()
238 struct extent_buffer *eb, u64 parent_transid, in verify_parent_transid() argument
245 if (!parent_transid || btrfs_header_generation(eb) == parent_transid) in verify_parent_transid()
252 btrfs_tree_read_lock(eb); in verify_parent_transid()
[all …]
Ddev-replace.c74 struct extent_buffer *eb; in btrfs_init_dev_replace() local
125 eb = path->nodes[0]; in btrfs_init_dev_replace()
126 item_size = btrfs_item_size_nr(eb, slot); in btrfs_init_dev_replace()
127 ptr = btrfs_item_ptr(eb, slot, struct btrfs_dev_replace_item); in btrfs_init_dev_replace()
135 src_devid = btrfs_dev_replace_src_devid(eb, ptr); in btrfs_init_dev_replace()
137 btrfs_dev_replace_cont_reading_from_srcdev_mode(eb, ptr); in btrfs_init_dev_replace()
138 dev_replace->replace_state = btrfs_dev_replace_replace_state(eb, ptr); in btrfs_init_dev_replace()
139 dev_replace->time_started = btrfs_dev_replace_time_started(eb, ptr); in btrfs_init_dev_replace()
141 btrfs_dev_replace_time_stopped(eb, ptr); in btrfs_init_dev_replace()
143 btrfs_dev_replace_num_write_errors(eb, ptr)); in btrfs_init_dev_replace()
[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-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-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-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 …]
Dextent-io-tests.c15 #define PROCESS_UNLOCK (1 << 0)
16 #define PROCESS_RELEASE (1 << 1)
17 #define PROCESS_TEST_LOCKED (1 << 2)
26 unsigned long nr_pages = end_index - index + 1; in process_page_range()
113 set_extent_delalloc(tmp, 0, sectorsize - 1, 0, NULL); in test_find_delalloc()
122 if (start != 0 || end != (sectorsize - 1)) { in test_find_delalloc()
124 sectorsize - 1, start, end); in test_find_delalloc()
144 set_extent_delalloc(tmp, sectorsize, max_bytes - 1, 0, NULL); in test_find_delalloc()
153 if (start != test_start || end != max_bytes - 1) { in test_find_delalloc()
155 test_start, max_bytes - 1, start, end); in test_find_delalloc()
[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 …]
Dsc9860-clk.c26 6, 1, 0);
28 13, 1, 0);
29 static CLK_FIXED_FACTOR(fac_1m, "fac-1m", "ext-26m",
30 26, 1, 0);
32 104, 1, 0);
34 1, 1, 0);
36 1, 1, 0);
38 4, 1, 0);
40 25, 1, 0);
42 50, 1, 0);
[all …]
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dstresstest.c45 unsigned int eb; in rand_eb() local
48 eb = prandom_u32(); in rand_eb()
49 /* Read or write up 2 eraseblocks at a time - hence 'ebcnt - 1' */ in rand_eb()
50 eb %= (ebcnt - 1); in rand_eb()
51 if (bbt[eb]) in rand_eb()
53 return eb; in rand_eb()
76 int eb = rand_eb(); in do_read() local
81 if (bbt[eb + 1]) { in do_read()
87 addr = (loff_t)eb * mtd->erasesize + offs; in do_read()
93 int eb = rand_eb(), offs, err, len; in do_write() local
[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");
48 static int check = 1;
97 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock()
104 pr_err("single bit flip occurred at EB %d " in check_eraseblock()
107 pr_err("error %d while reading EB %d, " in check_eraseblock()
113 pr_err("failed to read %zd bytes from EB %d, " in check_eraseblock()
120 pr_err("read wrong data from EB %d\n", ebnum); in check_eraseblock()
126 pr_info("re-try reading data from EB %d\n", in check_eraseblock()
[all …]
/kernel/linux/linux-5.10/tools/arch/x86/lib/
Dx86-opcode-map.txt41 00: ADD Eb,Gb
43 02: ADD Gb,Eb
49 08: OR Eb,Gb
51 0a: OR Gb,Eb
58 10: ADC Eb,Gb
60 12: ADC Gb,Eb
66 18: SBB Eb,Gb
68 1a: SBB Gb,Eb
69 1b: SBB Gv,Ev
70 1c: SBB AL,Ib
[all …]
/kernel/linux/linux-5.10/arch/x86/lib/
Dx86-opcode-map.txt41 00: ADD Eb,Gb
43 02: ADD Gb,Eb
49 08: OR Eb,Gb
51 0a: OR Gb,Eb
58 10: ADC Eb,Gb
60 12: ADC Gb,Eb
66 18: SBB Eb,Gb
68 1a: SBB Gb,Eb
69 1b: SBB Gv,Ev
70 1c: SBB AL,Ib
[all …]

1234567