/linux/arch/powerpc/lib/ |
H A D | feature-fixups-test.S | 227 #define MAKE_MACRO_TEST(TYPE) \ argument 228 globl(ftr_fixup_test_ ##TYPE##_macros) \ 231 BEGIN_##TYPE##_SECTION \ 235 END_##TYPE##_SECTION(0, 1) \ 239 BEGIN_##TYPE##_SECTION \ 243 END_##TYPE##_SECTION(0, 0) \ 247 BEGIN_##TYPE##_SECTION \ 250 BEGIN_##TYPE##_SECTION_NESTED(80) \ 253 END_##TYPE##_SECTION_NESTED(0, 1, 80) \ 256 END_##TYPE##_SECTION(0, 0) \ [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_tunnel.sh | 76 ip link add dev $DEV_NS type $TYPE seq $tun_key \ 82 ip link add dev $DEV type $TYPE $tun_key external 98 ip link add dev $DEV_NS type $TYPE seq flowlabel 0xbcdef key 2 \ 106 ip link add dev $DEV type $TYPE external 117 ip link add dev $DEV_NS type $TYPE seq key 2 \ 122 ip link add dev $DEV_NS type $TYPE seq key 2 \ 130 ip link add dev $DEV type $TYPE external 147 ip link add dev $DEV_NS type $TYPE seq key 2 \ 152 ip link add dev $DEV_NS type $TYPE seq key 2 \ 160 ip link add dev $DEV type $TYPE external [all …]
|
H A D | bpf_util.h | 55 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) 59 #define offsetofend(TYPE, MEMBER) \ 60 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER)) 54 sizeof_field(TYPE,MEMBER) global() argument 58 offsetofend(TYPE,MEMBER) global() argument
|
H A D | test_lirc_mode2.sh | 31 TYPE=lirc_mode2 35 echo -e ${RED}"FAIL: $TYPE"${NC} 37 echo -e ${GREEN}"PASS: $TYPE"${NC}
|
/linux/arch/sparc/math-emu/ |
H A D | math_32.c | 282 #define TYPE(dummy, r, ru, b, bu, a, au) type = (au << 2) | (a << 0) | (bu << 5) | (b << 3) | (ru <… in do_one_mathemu() macro 298 case FSQRTQ: TYPE(3,3,1,3,1,0,0); break; in do_one_mathemu() 302 case FDIVQ: TYPE(3,3,1,3,1,3,1); break; in do_one_mathemu() 303 case FDMULQ: TYPE(3,3,1,2,1,2,1); break; in do_one_mathemu() 304 case FQTOS: TYPE(3,1,1,3,1,0,0); break; in do_one_mathemu() 305 case FQTOD: TYPE(3,2,1,3,1,0,0); break; in do_one_mathemu() 306 case FITOQ: TYPE(3,3,1,1,0,0,0); break; in do_one_mathemu() 307 case FSTOQ: TYPE(3,3,1,1,1,0,0); break; in do_one_mathemu() 308 case FDTOQ: TYPE(3,3,1,2,1,0,0); break; in do_one_mathemu() 309 case FQTOI: TYPE(3,1,0,3,1,0,0); break; in do_one_mathemu() [all …]
|
H A D | math_64.c | 176 #define TYPE(ftt, r, ru, b, bu, a, au) type = (au << 2) | (a << 0) | (bu << 5) | (b << 3) | (ru << … in do_mathemu() macro 198 case FABSQ: TYPE(3,3,0,3,0,0,0); break; in do_mathemu() 199 case FSQRTQ: TYPE(3,3,1,3,1,0,0); break; in do_mathemu() 203 case FDIVQ: TYPE(3,3,1,3,1,3,1); break; in do_mathemu() 204 case FDMULQ: TYPE(3,3,1,2,1,2,1); break; in do_mathemu() 205 case FQTOX: TYPE(3,2,0,3,1,0,0); break; in do_mathemu() 206 case FXTOQ: TYPE(3,3,1,2,0,0,0); break; in do_mathemu() 207 case FQTOS: TYPE(3,1,1,3,1,0,0); break; in do_mathemu() 208 case FQTOD: TYPE(3,2,1,3,1,0,0); break; in do_mathemu() 209 case FITOQ: TYPE(3,3,1,1,0,0,0); break; in do_mathemu() [all …]
|
/linux/include/linux/ |
H A D | stddef.h | 16 #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) argument 24 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 32 #define offsetofend(TYPE, MEMBER) \ argument 33 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER)) 93 #define DECLARE_FLEX_ARRAY(TYPE, NAME) \ argument 94 __DECLARE_FLEX_ARRAY(TYPE, NAME)
|
H A D | cache.h | 158 #define CACHELINE_ASSERT_GROUP_MEMBER(TYPE, GROUP, MEMBER) \ argument 159 BUILD_BUG_ON(!(offsetof(TYPE, MEMBER) >= \ 160 offsetofend(TYPE, __cacheline_group_begin__##GROUP) && \ 161 offsetofend(TYPE, MEMBER) <= \ 162 offsetof(TYPE, __cacheline_group_end__##GROUP))) 166 #define CACHELINE_ASSERT_GROUP_SIZE(TYPE, GROUP, SIZE) \ argument 167 BUILD_BUG_ON(offsetof(TYPE, __cacheline_group_end__##GROUP) - \ 168 offsetofend(TYPE, __cacheline_group_begin__##GROUP) > \
|
H A D | filter.h | 148 #define BPF_ENDIAN(TYPE, DST, LEN) \ argument 150 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \ 287 #define BPF_MOV64_RAW(TYPE, DST, SRC, IMM) \ argument 289 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \ 295 #define BPF_MOV32_RAW(TYPE, DST, SRC, IMM) \ argument 297 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \ 617 #define bpf_ctx_range(TYPE, MEMBER) \ argument 618 offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1 619 #define bpf_ctx_range_till(TYPE, MEMBER1, MEMBER2) \ argument 620 offsetof(TYPE, MEMBER1) ... offsetofend(TYPE, MEMBER2) - 1 [all …]
|
/linux/tools/testing/selftests/kvm/ |
H A D | guest_print_test.c | 28 TYPE(test_type_i64, I64, "%ld", int64_t) \ 29 TYPE(test_type_u64, U64u, "%lu", uint64_t) \ 30 TYPE(test_type_x64, U64x, "0x%lx", uint64_t) \ 31 TYPE(test_type_X64, U64X, "0x%lX", uint64_t) \ 32 TYPE(test_type_u32, U32u, "%u", uint32_t) \ 33 TYPE(test_type_x32, U32x, "0x%x", uint32_t) \ 34 TYPE(test_type_X32, U32X, "0x%X", uint32_t) \ 35 TYPE(test_type_int, INT, "%d", int) \ 36 TYPE(test_type_char, CHAR, "%c", char) \ 37 TYPE(test_type_str, STR, "'%s'", const char *) \ [all …]
|
/linux/arch/sparc/include/asm/ |
H A D | asm.h | 10 #define BRANCH32(TYPE, PREDICT, DEST) \ argument 11 TYPE,PREDICT %icc, DEST 12 #define BRANCH32_ANNUL(TYPE, PREDICT, DEST) \ argument 13 TYPE,a,PREDICT %icc, DEST 23 #define BRANCH32(TYPE, PREDICT, DEST) \ argument 24 TYPE DEST 25 #define BRANCH32_ANNUL(TYPE, PREDICT, DEST) \ argument 26 TYPE,a DEST
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_pkt_md_access.c | 11 #define TEST_FIELD(TYPE, FIELD, MASK) \ argument 13 TYPE tmp = *(volatile TYPE *)&skb->FIELD; \ 19 #define TEST_FIELD(TYPE, FIELD, MASK) \ argument 21 TYPE tmp = *((volatile TYPE *)&skb->FIELD + \ 22 TEST_FIELD_OFFSET(skb->FIELD, TYPE)); \
|
/linux/fs/jfs/ |
H A D | jfs_btree.h | 50 #define BT_PAGE(IP, MP, TYPE, ROOT)\ argument 51 (BT_IS_ROOT(MP) ? (TYPE *)&JFS_IP(IP)->ROOT : (TYPE *)(MP)->data) 54 #define BT_GETPAGE(IP, BN, MP, TYPE, SIZE, P, RC, ROOT)\ argument 59 P = (TYPE *)&JFS_IP(IP)->ROOT;\ 142 #define BT_GETSEARCH(IP, LEAF, BN, MP, TYPE, P, INDEX, ROOT)\ argument 147 P = (TYPE *)MP->data;\ 149 P = (TYPE *)&JFS_IP(IP)->ROOT;\
|
/linux/tools/lib/bpf/ |
H A D | libbpf_common.h | 64 #define LIBBPF_OPTS(TYPE, NAME, ...) \ argument 65 struct TYPE NAME = ({ \ 66 memset(&NAME, 0, sizeof(struct TYPE)); \ 67 (struct TYPE) { \ 68 .sz = sizeof(struct TYPE), \
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx.h | 212 #define CVMX_BUILD_WRITE64(TYPE, ST) \ argument 213 static inline void cvmx_write64_##TYPE(uint64_t addr, TYPE##_t val) \ 215 *CASTPTR(volatile TYPE##_t, addr) = val; \ 226 #define CVMX_BUILD_READ64(TYPE, LT) \ argument 227 static inline TYPE##_t cvmx_read64_##TYPE(uint64_t addr) \ 229 return *CASTPTR(volatile TYPE##_t, addr); \
|
/linux/tools/include/nolibc/ |
H A D | types.h | 207 #define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD) argument 211 #define container_of(PTR, TYPE, FIELD) ({ \ argument 212 __typeof__(((TYPE *)0)->FIELD) *__FIELD_PTR = (PTR); \ 213 (TYPE *)((char *) __FIELD_PTR - offsetof(TYPE, FIELD)); \
|
/linux/arch/mips/crypto/ |
H A D | crc32-mips.c | 31 #define _ASM_SET_CRC(OP, SZ, TYPE) \ argument 37 ((SZ) << 6) | ((TYPE) << 8)) \ 39 ((SZ) << 14) | ((TYPE) << 3))) 40 #define _ASM_UNSET_CRC(op, SZ, TYPE) ".purgem " #op "\n\t" argument 42 #define _ASM_SET_CRC(op, SZ, TYPE) ".set\tcrc\n\t" argument 43 #define _ASM_UNSET_CRC(op, SZ, TYPE) argument 46 #define __CRC32(crc, value, op, SZ, TYPE) \ argument 50 _ASM_SET_CRC(op, SZ, TYPE) \ 52 _ASM_UNSET_CRC(op, SZ, TYPE) \
|
/linux/arch/x86/kernel/fpu/ |
H A D | init.c | 142 #define CHECK_MEMBER_AT_END_OF(TYPE, MEMBER) \ argument 143 BUILD_BUG_ON(sizeof(TYPE) != \ 144 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
|
/linux/tools/usb/ |
H A D | hcd-tests.sh | 92 for TYPE in $ARGS 103 case $TYPE in 269 echo "Don't understand test type $TYPE"
|
/linux/drivers/md/dm-vdo/ |
H A D | memory-alloc.h | 70 #define vdo_allocate(COUNT, TYPE, WHAT, PTR) \ argument 71 __vdo_do_allocation(COUNT, sizeof(TYPE), 0, __alignof__(TYPE), WHAT, PTR)
|
/linux/Documentation/userspace-api/media/cec/ |
H A D | cec-ioc-adap-g-conn-info.rst | 71 * .. _`CEC-CONNECTOR-TYPE-NO-CONNECTOR`: 77 * .. _`CEC-CONNECTOR-TYPE-DRM`: 96 * .. _`CEC-DRM-CONNECTOR-TYPE-CARD-NO`: 102 * .. _`CEC-DRM-CONNECTOR-TYPE-CONNECTOR_ID`:
|
/linux/tools/include/linux/ |
H A D | filter.h | 70 #define BPF_ENDIAN(TYPE, DST, LEN) \ argument 72 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \ 134 #define BPF_MOV64_RAW(TYPE, DST, SRC, IMM) \ argument 136 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \ 142 #define BPF_MOV32_RAW(TYPE, DST, SRC, IMM) \ argument 144 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
|
/linux/tools/testing/selftests/rseq/ |
H A D | rseq.h | 24 #define rseq_sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 28 #define rseq_offsetofend(TYPE, MEMBER) \ argument 29 (offsetof(TYPE, MEMBER) + rseq_sizeof_field(TYPE, MEMBER))
|
/linux/tools/include/uapi/linux/ |
H A D | stddef.h | 42 #define __DECLARE_FLEX_ARRAY(TYPE, NAME) \ argument 45 TYPE NAME[]; \
|
/linux/include/acpi/platform/ |
H A D | acgcc.h | 69 #define ACPI_FLEX_ARRAY(TYPE, NAME) \ argument 72 TYPE NAME[]; \
|