Home
last modified time | relevance | path

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

12345678

/Linux-v6.1/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c50 FORCE_CPU_RELOC = 1,
106 * 1. Add a command to load the HW context. For Logical Ring Contexts, i.e.
133 * 1. Validation - Ensure all the pointers, handles and flags are valid.
257 struct i915_request *requests[MAX_ENGINE_INSTANCE + 1];
259 struct eb_vma *batches[MAX_ENGINE_INSTANCE + 1];
262 /** used for excl fence in dma_resv objects when > 1 BB submitted */
289 bool use_64bit_reloc : 1;
290 bool has_llc : 1;
291 bool has_fence : 1;
292 bool needs_unfenced : 1;
[all …]
/Linux-v6.1/fs/btrfs/
Dlocking.c18 * eb, the lockdep key is determined by the btrfs_root it belongs to and
19 * the level the eb occupies in the tree.
49 DEFINE_LEVEL(stem, 1) \
80 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, int level) in btrfs_set_buffer_lockdep_class() argument
91 lockdep_set_class_and_name(&eb->lock, &ks->keys[level], ks->names[level]); in btrfs_set_buffer_lockdep_class()
94 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb) in btrfs_maybe_reset_lockdep_class() argument
98 eb, btrfs_header_level(eb)); in btrfs_maybe_reset_lockdep_class()
121 * @eb: the eb to be locked
127 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_read_lock() argument
134 down_read_nested(&eb->lock, nest); in __btrfs_tree_read_lock()
[all …]
Dextent_io.c37 static inline void btrfs_leak_debug_add_eb(struct extent_buffer *eb) in btrfs_leak_debug_add_eb() argument
39 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb()
43 list_add(&eb->leak_list, &fs_info->allocated_ebs); in btrfs_leak_debug_add_eb()
47 static inline void btrfs_leak_debug_del_eb(struct extent_buffer *eb) in btrfs_leak_debug_del_eb() argument
49 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb()
53 list_del(&eb->leak_list); in btrfs_leak_debug_del_eb()
59 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check() local
72 eb = list_first_entry(&fs_info->allocated_ebs, in btrfs_extent_buffer_leak_debug_check()
76 eb->start, eb->len, atomic_read(&eb->refs), eb->bflags, in btrfs_extent_buffer_leak_debug_check()
77 btrfs_header_owner(eb)); in btrfs_extent_buffer_leak_debug_check()
[all …]
Dstruct-funcs.c10 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds() argument
15 if (unlikely(member_offset + size > eb->len)) { in check_setget_bounds()
16 btrfs_warn(eb->fs_info, in check_setget_bounds()
17 "bad eb member %s: ptr 0x%lx start %llu member offset %lu size %d", in check_setget_bounds()
18 (member_offset > eb->len ? "start" : "end"), in check_setget_bounds()
19 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds()
56 const unsigned long oip = get_eb_offset_in_page(token->eb, \
64 ASSERT(check_setget_bounds(token->eb, ptr, off, size)); \
69 token->kaddr = page_address(token->eb->pages[idx]); \
71 if (INLINE_EXTENT_BUFFER_PAGES == 1 || oip + size <= PAGE_SIZE ) \
[all …]
Dextent_io.h32 #define PAGE_UNLOCK (1 << 0)
34 #define PAGE_START_WRITEBACK (1 << 1)
35 #define PAGE_END_WRITEBACK (1 << 2)
36 #define PAGE_SET_ORDERED (1 << 3)
37 #define PAGE_SET_ERROR (1 << 4)
38 #define PAGE_LOCK (1 << 5)
44 #define EXTENT_PAGE_PRIVATE 1
49 * 1. The bitmaps must be little-endian on disk.
54 #define BYTE_MASK ((1 << BITS_PER_BYTE) - 1)
56 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK)
[all …]
Dprint-tree.c49 static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() argument
51 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk()
54 btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk), in print_chunk()
55 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk()
58 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk()
59 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk()
62 static void print_dev_item(struct extent_buffer *eb, in print_dev_item() argument
66 btrfs_device_id(eb, dev_item), in print_dev_item()
67 btrfs_device_total_bytes(eb, dev_item), in print_dev_item()
68 btrfs_device_bytes_used(eb, dev_item)); in print_dev_item()
[all …]
Dtree-mod-log.c170 struct extent_buffer *eb) in tree_mod_dont_log() argument
174 if (eb && btrfs_header_level(eb) == 0) in tree_mod_dont_log()
188 struct extent_buffer *eb) in tree_mod_need_log() argument
192 if (eb && btrfs_header_level(eb) == 0) in tree_mod_need_log()
198 static struct tree_mod_elem *alloc_tree_mod_elem(struct extent_buffer *eb, in alloc_tree_mod_elem() argument
209 tm->logical = eb->start; in alloc_tree_mod_elem()
211 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem()
212 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem()
216 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem()
222 int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot, in btrfs_tree_mod_log_insert_key() argument
[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(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
86 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
87 void btrfs_tree_lock(struct extent_buffer *eb);
88 void btrfs_tree_unlock(struct extent_buffer *eb);
90 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
91 void btrfs_tree_read_lock(struct extent_buffer *eb);
92 void btrfs_tree_read_unlock(struct extent_buffer *eb);
93 int btrfs_try_tree_read_lock(struct extent_buffer *eb);
94 int btrfs_try_tree_write_lock(struct extent_buffer *eb);
100 static inline void btrfs_assert_tree_write_locked(struct extent_buffer *eb) in btrfs_assert_tree_write_locked() argument
[all …]
Dbackref.c29 const struct extent_buffer *eb, in check_extent_in_eb() argument
39 !btrfs_file_extent_compression(eb, fi) && in check_extent_in_eb()
40 !btrfs_file_extent_encryption(eb, fi) && in check_extent_in_eb()
41 !btrfs_file_extent_other_encoding(eb, fi)) { in check_extent_in_eb()
45 data_offset = btrfs_file_extent_offset(eb, fi); in check_extent_in_eb()
46 data_len = btrfs_file_extent_num_bytes(eb, fi); in check_extent_in_eb()
50 return 1; in check_extent_in_eb()
76 static int find_extent_in_eb(const struct extent_buffer *eb, in find_extent_in_eb() argument
94 nritems = btrfs_header_nritems(eb); in find_extent_in_eb()
96 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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 …]
/Linux-v6.1/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 …]
/Linux-v6.1/fs/btrfs/tests/
Dextent-buffer-tests.c17 struct extent_buffer *eb; in test_btrfs_split_item() local
50 eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item()
51 path->nodes[0] = eb; in test_btrfs_split_item()
52 if (!eb) { in test_btrfs_split_item()
64 write_extent_buffer(eb, value, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
84 btrfs_item_key_to_cpu(eb, &key, 0); in test_btrfs_split_item()
92 if (btrfs_item_size(eb, 0) != strlen(split1)) { in test_btrfs_split_item()
98 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
108 btrfs_item_key_to_cpu(eb, &key, 1); in test_btrfs_split_item()
111 test_err("invalid key at slot 1"); in test_btrfs_split_item()
[all …]
Dextent-io-tests.c16 #define PROCESS_UNLOCK (1 << 0)
17 #define PROCESS_RELEASE (1 << 1)
18 #define PROCESS_TEST_LOCKED (1 << 2)
103 state->end + 1 - state->start, flags_str); in dump_extent_io_tree()
162 set_extent_delalloc(tmp, 0, sectorsize - 1, 0, NULL); in test_find_delalloc()
164 end = start + PAGE_SIZE - 1; in test_find_delalloc()
171 if (start != 0 || end != (sectorsize - 1)) { in test_find_delalloc()
173 sectorsize - 1, start, end); in test_find_delalloc()
193 set_extent_delalloc(tmp, sectorsize, max_bytes - 1, 0, NULL); in test_find_delalloc()
195 end = start + PAGE_SIZE - 1; in test_find_delalloc()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/bus/
Dintel,ixp4xx-expansion-bus-controller.yaml33 maxItems: 1
49 const: 1
61 intel,ixp4xx-eb-t1:
66 intel,ixp4xx-eb-t2:
71 intel,ixp4xx-eb-t3:
76 intel,ixp4xx-eb-t4:
81 intel,ixp4xx-eb-t5:
86 intel,ixp4xx-eb-cycle-type:
88 chip select. 0 = Intel cycles, 1 = Motorola cycles, 2 = HPI cycles.
90 enum: [0, 1, 2]
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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 …]
Dums512-clk.c33 static CLK_FIXED_FACTOR_FW_NAME(clk_26m_aud, "clk-26m-aud", "ext-26m", 1, 1, 0);
34 static CLK_FIXED_FACTOR_FW_NAME(clk_13m, "clk-13m", "ext-26m", 2, 1, 0);
35 static CLK_FIXED_FACTOR_FW_NAME(clk_6m5, "clk-6m5", "ext-26m", 4, 1, 0);
36 static CLK_FIXED_FACTOR_FW_NAME(clk_4m3, "clk-4m3", "ext-26m", 6, 1, 0);
37 static CLK_FIXED_FACTOR_FW_NAME(clk_2m, "clk-2m", "ext-26m", 13, 1, 0);
38 static CLK_FIXED_FACTOR_FW_NAME(clk_1m, "clk-1m", "ext-26m", 26, 1, 0);
39 static CLK_FIXED_FACTOR_FW_NAME(clk_250k, "clk-250k", "ext-26m", 104, 1, 0);
40 static CLK_FIXED_FACTOR_FW_NAME(rco_25m, "rco-25m", "rco-100m", 4, 1, 0);
41 static CLK_FIXED_FACTOR_FW_NAME(rco_4m, "rco-4m", "rco-100m", 25, 1, 0);
42 static CLK_FIXED_FACTOR_FW_NAME(rco_2m, "rco-2m", "rco-100m", 50, 1, 0);
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Dintel-ixp42x-arcom-vulcan.dts16 #address-cells = <1>;
17 #size-cells = <1>;
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>;
[all …]
Dintel-ixp4xx-reference-design.dtsi31 #address-cells = <1>;
56 * command byte = 1 and address byte = 2 from the device
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>;
[all …]
Dintel-ixp42x-gateworks-gw2348.dts15 #address-cells = <1>;
16 #size-cells = <1>;
46 #address-cells = <1>;
72 intel,ixp4xx-eb-write-enable = <1>;
82 ide@1,0 {
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
[all …]
/Linux-v6.1/drivers/mtd/tests/
Dstresstest.c45 unsigned int eb; in rand_eb() local
48 /* Read or write up 2 eraseblocks at a time - hence 'ebcnt - 1' */ in rand_eb()
49 eb = prandom_u32_max(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()
[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 …]

12345678