Home
last modified time | relevance | path

Searched refs:bits_offset (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf.h13 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
14 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
15 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
17 BTF_INT_ENC(encoding, bits_offset, bits)
39 #define BTF_MEMBER_ENC(name, type, bits_offset) \ argument
40 (name), (type), (bits_offset)
42 #define BTF_MEMBER_OFFSET(bitfield_size, bits_offset) \ argument
43 ((bitfield_size) << 24 | (bits_offset))
/Linux-v5.4/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst93 'pad' type_id=3 bits_offset=0
94 'sock' type_id=4 bits_offset=64
95 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
146 'a' type_id=3 bits_offset=0
147 'b' type_id=4 bits_offset=0
148 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
150 'const_int_field' type_id=5 bits_offset=0
151 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4
152 'arr_field' type_id=8 bits_offset=40
153 'fwd_field' type_id=10 bits_offset=192
[all …]
/Linux-v5.4/tools/lib/bpf/
Dlibbpf_internal.h17 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
18 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
19 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
21 BTF_INT_ENC(encoding, bits_offset, bits)
22 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
/Linux-v5.4/drivers/gpio/
Dgpio-pcie-idio-24.c203 unsigned int bits_offset; in idio_24_gpio_get_multiple() local
222 bits_offset = i * gpio_reg_size; in idio_24_gpio_get_multiple()
225 word_index = BIT_WORD(bits_offset); in idio_24_gpio_get_multiple()
228 word_offset = bits_offset % BITS_PER_LONG; in idio_24_gpio_get_multiple()
298 unsigned long bits_offset; in idio_24_gpio_set_multiple() local
318 bits_offset = i * gpio_reg_size; in idio_24_gpio_set_multiple()
321 gpio_mask = (*mask >> bits_offset) & port_mask; in idio_24_gpio_set_multiple()
331 out_state |= (*bits >> bits_offset) & gpio_mask; in idio_24_gpio_set_multiple()
Dgpio-104-idi-48.c91 unsigned int bits_offset; in idi_48_gpio_get_multiple() local
104 bits_offset = i * gpio_reg_size; in idi_48_gpio_get_multiple()
107 word_index = BIT_WORD(bits_offset); in idi_48_gpio_get_multiple()
110 word_offset = bits_offset % BITS_PER_LONG; in idi_48_gpio_get_multiple()
Dgpio-pci-idio-16.c105 unsigned int bits_offset; in idio_16_gpio_get_multiple() local
122 bits_offset = i * gpio_reg_size; in idio_16_gpio_get_multiple()
125 word_index = BIT_WORD(bits_offset); in idio_16_gpio_get_multiple()
128 word_offset = bits_offset % BITS_PER_LONG; in idio_16_gpio_get_multiple()
Dgpio-gpio-mm.c174 unsigned int bits_offset; in gpiomm_gpio_get_multiple() local
187 bits_offset = i * gpio_reg_size; in gpiomm_gpio_get_multiple()
190 word_index = BIT_WORD(bits_offset); in gpiomm_gpio_get_multiple()
193 word_offset = bits_offset % BITS_PER_LONG; in gpiomm_gpio_get_multiple()
Dgpio-ws16c48.c132 unsigned int bits_offset; in ws16c48_gpio_get_multiple() local
145 bits_offset = i * gpio_reg_size; in ws16c48_gpio_get_multiple()
148 word_index = BIT_WORD(bits_offset); in ws16c48_gpio_get_multiple()
151 word_offset = bits_offset % BITS_PER_LONG; in ws16c48_gpio_get_multiple()
Dgpio-104-dio-48e.c185 unsigned int bits_offset; in dio48e_gpio_get_multiple() local
198 bits_offset = i * gpio_reg_size; in dio48e_gpio_get_multiple()
201 word_index = BIT_WORD(bits_offset); in dio48e_gpio_get_multiple()
204 word_offset = bits_offset % BITS_PER_LONG; in dio48e_gpio_get_multiple()
/Linux-v5.4/kernel/bpf/
Dbtf.c1388 static void btf_bitfield_seq_show(void *data, u8 bits_offset, in btf_bitfield_seq_show() argument
1396 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_seq_show()
1402 left_shift_bits = bits_offset; in btf_bitfield_seq_show()
1415 void *data, u8 bits_offset, in btf_int_bits_seq_show() argument
1426 total_bits_offset = bits_offset + BTF_INT_OFFSET(int_data); in btf_int_bits_seq_show()
1428 bits_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_int_bits_seq_show()
1429 btf_bitfield_seq_show(data, bits_offset, nr_bits, m); in btf_int_bits_seq_show()
1433 u32 type_id, void *data, u8 bits_offset, in btf_int_seq_show() argument
1441 if (bits_offset || BTF_INT_OFFSET(int_data) || in btf_int_seq_show()
1443 btf_int_bits_seq_show(btf, t, data, bits_offset, m); in btf_int_seq_show()
[all …]
Dcore.c265 const u32 bits_offset = SHA_MESSAGE_BYTES - sizeof(__be64); in bpf_prog_calc_tag() local
317 bits = (__be64 *)(todo + bsize + bits_offset); in bpf_prog_calc_tag()
/Linux-v5.4/Documentation/bpf/
Dbtf.rst819 a type_id=2 bitfield_size=2 bits_offset=0
820 b type_id=2 bitfield_size=3 bits_offset=2
821 c type_id=2 bitfield_size=2 bits_offset=5