Home
last modified time | relevance | path

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

1234567

/linux/fs/btrfs/
H A Dextent_io.h64 #define EXTENT_FOLIO_PRIVATE 1
69 * 1. The bitmaps must be little-endian on disk.
74 #define BYTE_MASK ((1U << BITS_PER_BYTE) - 1)
76 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK)
78 (BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
93 * The address where the eb can be accessed without any cross-page handling.
103 /* >= 0 if eb belongs to a log tree, -1 otherwise */
126 * Only used to mediate allocation, do not refer to the eb directly if not
127 * returned from a successful eb allocating API.
129 * The eb folios and bfs should generally not be fully attached, except briefly
[all …]
H A Dextent_io.c43 static inline void btrfs_leak_debug_add_eb(struct extent_buffer *eb) in btrfs_leak_debug_add_eb() argument
45 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb()
49 list_add(&eb->leak_list, &fs_info->allocated_ebs); in btrfs_leak_debug_add_eb()
53 static inline void btrfs_leak_debug_del_eb(struct extent_buffer *eb) in btrfs_leak_debug_del_eb() argument
55 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb()
59 list_del(&eb->leak_list); in btrfs_leak_debug_del_eb()
65 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check() local
78 eb = list_first_entry(&fs_info->allocated_ebs, in btrfs_extent_buffer_leak_debug_check()
82 eb->start, eb->len, refcount_read(&eb->refs), eb->bflags, in btrfs_extent_buffer_leak_debug_check()
83 btrfs_header_owner(eb)); in btrfs_extent_buffer_leak_debug_check()
[all …]
H A Daccessors.c12 static void __cold report_setget_bounds(const struct extent_buffer *eb, in report_setget_bounds() argument
17 btrfs_warn(eb->fs_info, in report_setget_bounds()
18 "bad eb member %s: ptr 0x%lx start %llu member offset %lu size %d", in report_setget_bounds()
19 (member_offset > eb->len ? "start" : "end"), in report_setget_bounds()
20 (unsigned long)ptr, eb->start, member_offset, size); in report_setget_bounds()
52 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
56 const unsigned long idx = get_eb_folio_index(eb, member_offset);\
57 const unsigned long oif = get_eb_offset_in_folio(eb, \
59 char *kaddr = folio_address(eb->folios[idx]) + oif; \
60 const int part = eb->folio_size - oif; \
[all …]
H A Dprint-tree.c63 static void print_chunk(const struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() argument
65 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk()
68 btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk), in print_chunk()
69 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk()
72 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk()
73 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk()
76 static void print_dev_item(const struct extent_buffer *eb, in print_dev_item() argument
80 btrfs_device_id(eb, dev_item), in print_dev_item()
81 btrfs_device_total_bytes(eb, dev_item), in print_dev_item()
82 btrfs_device_bytes_used(eb, dev_item)); in print_dev_item()
[all …]
H A Duuid-tree.c31 struct extent_buffer *eb; in btrfs_uuid_tree_lookup() local
51 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
53 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_lookup()
54 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup()
66 read_extent_buffer(eb, &data, offset, sizeof(data)); in btrfs_uuid_tree_lookup()
86 struct extent_buffer *eb; in btrfs_uuid_tree_add() local
105 eb = path->nodes[0]; in btrfs_uuid_tree_add()
107 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
114 eb = path->nodes[0]; in btrfs_uuid_tree_add()
116 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
[all …]
H A 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()
58 return 1; 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()
[all …]
H A Dlocking.h19 #define BTRFS_WRITE_LOCK 1
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 bool btrfs_try_tree_read_lock(struct extent_buffer *eb);
[all …]
/linux/fs/btrfs/tests/
H A Dextent-io-tests.c17 #define PROCESS_UNLOCK (1U << 0)
18 #define PROCESS_RELEASE (1U << 1)
19 #define PROCESS_TEST_LOCKED (1U << 2)
104 state->end + 1 - state->start, flags_str); in dump_extent_io_tree()
179 btrfs_set_extent_bit(tmp, 0, sectorsize - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
181 end = start + PAGE_SIZE - 1; in test_find_delalloc()
188 if (start != 0 || end != (sectorsize - 1)) { in test_find_delalloc()
190 sectorsize - 1, start, end); in test_find_delalloc()
210 btrfs_set_extent_bit(tmp, sectorsize, max_bytes - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
212 end = start + PAGE_SIZE - 1; in test_find_delalloc()
[all …]
H A 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 …]
/linux/drivers/bus/
H A 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/arch/sh/include/mach-kfr2r09/mach/
H A 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/drivers/clk/sprd/
H A 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 …]
H A 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 …]
H A Dums512-clk.c32 static CLK_FIXED_FACTOR_FW_NAME(clk_26m_aud, "clk-26m-aud", "ext-26m", 1, 1, 0);
33 static CLK_FIXED_FACTOR_FW_NAME(clk_13m, "clk-13m", "ext-26m", 2, 1, 0);
34 static CLK_FIXED_FACTOR_FW_NAME(clk_6m5, "clk-6m5", "ext-26m", 4, 1, 0);
35 static CLK_FIXED_FACTOR_FW_NAME(clk_4m3, "clk-4m3", "ext-26m", 6, 1, 0);
36 static CLK_FIXED_FACTOR_FW_NAME(clk_2m, "clk-2m", "ext-26m", 13, 1, 0);
37 static CLK_FIXED_FACTOR_FW_NAME(clk_1m, "clk-1m", "ext-26m", 26, 1, 0);
38 static CLK_FIXED_FACTOR_FW_NAME(clk_250k, "clk-250k", "ext-26m", 104, 1, 0);
39 static CLK_FIXED_FACTOR_FW_NAME(rco_25m, "rco-25m", "rco-100m", 4, 1, 0);
40 static CLK_FIXED_FACTOR_FW_NAME(rco_4m, "rco-4m", "rco-100m", 25, 1, 0);
41 static CLK_FIXED_FACTOR_FW_NAME(rco_2m, "rco-2m", "rco-100m", 50, 1, 0);
[all …]
/linux/arch/arm/boot/dts/intel/ixp/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dintel-ixp42x-usrobotics-usr8200.dts18 #address-cells = <1>;
19 #size-cells = <1>;
46 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
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
[all …]
H A Dintel-ixp43x-gateworks-gw2358.dts13 #address-cells = <1>;
14 #size-cells = <1>;
46 #address-cells = <1>;
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
[all …]
/linux/Documentation/devicetree/bindings/memory-controllers/
H A Dintel,ixp4xx-expansion-peripheral-props.yaml18 intel,ixp4xx-eb-t1:
23 intel,ixp4xx-eb-t2:
28 intel,ixp4xx-eb-t3:
33 intel,ixp4xx-eb-t4:
38 intel,ixp4xx-eb-t5:
43 intel,ixp4xx-eb-cycle-type:
45 chip select. 0 = Intel cycles, 1 = Motorola cycles, 2 = HPI cycles.
47 enum: [0, 1, 2]
49 intel,ixp4xx-eb-byte-access-on-halfword:
52 enum: [0, 1]
[all …]
H A Dintel,ixp4xx-expansion-bus-controller.yaml33 maxItems: 1
49 const: 1
81 #size-cells = <1>;
83 <1 0x0 0x51000000 0x01000000>;
85 <1 0x0 0x51000000 0x01000000>;
90 intel,ixp4xx-eb-t3 = <3>;
91 intel,ixp4xx-eb-cycle-type = <0>;
92 intel,ixp4xx-eb-byte-access-on-halfword = <1>;
93 intel,ixp4xx-eb-write-enable = <1>;
94 intel,ixp4xx-eb-byte-access = <0>;
[all …]
/linux/drivers/mtd/tests/
H A 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 = 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()
[all …]
H A 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 …]
/linux/tools/arch/x86/lib/
H A Dx86-opcode-map.txt34 # (W=1): this opcode requires XOP.W == 1
51 00: ADD Eb,Gb
53 02: ADD Gb,Eb
59 08: OR Eb,Gb
61 0a: OR Gb,Eb
68 10: ADC Eb,Gb
70 12: ADC Gb,Eb
76 18: SBB Eb,Gb
78 1a: SBB Gb,Eb
79 1b: SBB Gv,Ev
[all …]
/linux/arch/x86/lib/
H A Dx86-opcode-map.txt34 # (W=1): this opcode requires XOP.W == 1
51 00: ADD Eb,Gb
53 02: ADD Gb,Eb
59 08: OR Eb,Gb
61 0a: OR Gb,Eb
68 10: ADC Eb,Gb
70 12: ADC Gb,Eb
76 18: SBB Eb,Gb
78 1a: SBB Gb,Eb
79 1b: SBB Gv,Ev
[all …]

1234567