| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_transport_access_macros.h | 35 #define ADF_MSG_SIZE_TO_BYTES(SIZE) (SIZE << 5) argument 36 #define ADF_BYTES_TO_MSG_SIZE(SIZE) (SIZE >> 5) argument 37 #define ADF_SIZE_TO_RING_SIZE_IN_BYTES(SIZE) ((1 << (SIZE - 1)) << 7) argument 38 #define ADF_RING_SIZE_IN_BYTES_TO_SIZE(SIZE) ((1 << (SIZE - 1)) >> 7) argument 41 #define ADF_RING_SIZE_BYTES_MIN(SIZE) \ argument 42 ((SIZE < ADF_SIZE_TO_RING_SIZE_IN_BYTES(ADF_RING_SIZE_4K)) ? \ 43 ADF_SIZE_TO_RING_SIZE_IN_BYTES(ADF_RING_SIZE_4K) : SIZE) 44 #define ADF_RING_SIZE_MODULO(SIZE) (SIZE + 0x6) argument 45 #define ADF_SIZE_TO_POW(SIZE) ((((SIZE & 0x4) >> 1) | ((SIZE & 0x4) >> 2) | \ argument 46 SIZE) & ~0x4)
|
| /linux/tools/testing/selftests/exec/ |
| H A D | binfmt_script.py | 14 SIZE=256 variable 117 test(name="too-big", size=SIZE+80, good=False) 119 test(name="exact", size=SIZE, good=False) 121 test(name="exact-space", size=SIZE, good=False, leading=" ") 123 test(name="whitespace-too-big", size=SIZE+71, good=False, root="", 126 test(name="truncated", size=SIZE+17, good=False, leading=" " * 19) 131 test(name="spaces", size=SIZE-1, good=False, root="", fill=" ", 134 test(name="newline-prefix", size=SIZE-1, good=False, leading="\n", 145 test(name="one-under", size=SIZE-1) 147 test(name="two-under", size=SIZE-2) [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | madv_populate.c | 26 #define SIZE (2 * 1024 * 1024) macro 58 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read() 62 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_read() 65 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_prot_read() 69 munmap(addr, SIZE); in test_prot_read() 79 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write() 83 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_write() 87 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_prot_write() 90 munmap(addr, SIZE); in test_prot_write() 100 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes() [all …]
|
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 89 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a { in iomap_sized() argument 99 pub fn iomap_exclusive_sized<const SIZE: usize>( in iomap_exclusive_sized() 101 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a { in iomap_exclusive_sized() argument 168 pub struct ExclusiveIoMem<const SIZE: usize> { 170 iomem: IoMem<SIZE>, 179 impl<const SIZE: usize> ExclusiveIoMem<SIZE> { 214 impl<const SIZE: usize> Deref for ExclusiveIoMem<SIZE> { 215 type Target = Mmio<SIZE>; 231 pub struct IoMem<const SIZE: usize = 0> { 232 io: MmioRaw<SIZE>, [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-roccat-common.h | 47 #define ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE) \ argument 53 SIZE, COMMAND); \ 56 #define ROCCAT_COMMON2_SYSFS_R(thingy, COMMAND, SIZE) \ argument 62 SIZE, COMMAND); \ 65 #define ROCCAT_COMMON2_SYSFS_RW(thingy, COMMAND, SIZE) \ argument 66 ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE) \ 67 ROCCAT_COMMON2_SYSFS_R(thingy, COMMAND, SIZE) 69 #define ROCCAT_COMMON2_BIN_ATTRIBUTE_RW(thingy, COMMAND, SIZE) \ argument 70 ROCCAT_COMMON2_SYSFS_RW(thingy, COMMAND, SIZE); \ 73 .size = SIZE, \ [all …]
|
| /linux/rust/kernel/pci/ |
| H A D | io.rs | 64 const SIZE: usize; constant 68 const SIZE: usize = 256; constant 72 const SIZE: usize = 4096; constant 176 const MIN_SIZE: usize = S::SIZE; 188 pub struct Bar<const SIZE: usize = 0> { 190 io: MmioRaw<SIZE>, 194 impl<const SIZE: usize> Bar<SIZE> { 273 impl<const SIZE: usize> Drop for Bar<SIZE> { 279 impl<const SIZE: usize> Deref for Bar<SIZE> { 280 type Target = Mmio<SIZE>; [all …]
|
| /linux/rust/kernel/ |
| H A D | io.rs | 38 pub struct MmioRaw<const SIZE: usize = 0> { 43 impl<const SIZE: usize> MmioRaw<SIZE> { 46 if maxsize < SIZE { in new() 138 pub struct Mmio<const SIZE: usize = 0>(MmioRaw<SIZE>); 538 impl<const SIZE: usize> IoCapable<u8> for Mmio<SIZE> {} 539 impl<const SIZE: usize> IoCapable<u16> for Mmio<SIZE> {} 540 impl<const SIZE: usize> IoCapable<u32> for Mmio<SIZE> {} 544 impl<const SIZE: usize> IoCapable<u64> for Mmio<SIZE> {} 546 impl<const SIZE: usize> Io for Mmio<SIZE> { 600 impl<const SIZE: usize> IoKnownSize for Mmio<SIZE> { [all …]
|
| /linux/tools/testing/selftests/powerpc/stringloops/ |
| H A D | strlen.c | 8 #define SIZE 256 macro 19 for (offset = 0; offset < SIZE; offset++) { in test_one() 29 for (i = offset; i < SIZE; i++) in test_one() 56 s = memalign(128, SIZE); in testcase() 64 memset(s, 0, SIZE); in testcase() 65 for (i = 0; i < SIZE; i++) { in testcase() 78 for (j = 0; j < SIZE; j++) { in testcase() 87 s[SIZE - 1 - j] = 0; in testcase() 92 for (i = 0; i < SIZE; i++) { in testcase()
|
| H A D | memcmp.c | 10 #define SIZE 256 macro 80 comp_size = (islarge ? LARGE_SIZE : SIZE); in testcase() 119 test_one(rand_s1, rand_s2, SIZE, 0, comp_size); in testcase() 147 test_one(rand_s1, rand_s2, SIZE, 0, comp_size); in testcase()
|
| /linux/samples/bpf/ |
| H A D | bpf_insn.h | 109 #define BPF_LD_ABS(SIZE, IMM) \ argument 111 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 119 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ argument 121 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 129 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ argument 131 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 152 #define BPF_ATOMIC_OP(SIZE, OP, DST, SRC, OFF) \ argument 154 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \ 161 #define BPF_STX_XADD(SIZE, DST, SRC, OFF) BPF_ATOMIC_OP(SIZE, BPF_ADD, DST, SRC, OFF) argument 165 #define BPF_ST_MEM(SIZE, DST, OFF, IMM) \ argument [all …]
|
| /linux/tools/include/linux/ |
| H A D | filter.h | 152 #define BPF_LD_ABS(SIZE, IMM) \ argument 154 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 162 #define BPF_LD_IND(SIZE, SRC, IMM) \ argument 164 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \ 172 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ argument 174 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 182 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ argument 184 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 205 #define BPF_ATOMIC_OP(SIZE, OP, DST, SRC, OFF) \ argument 207 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \ [all …]
|
| /linux/tools/testing/selftests/powerpc/mm/ |
| H A D | hugetlb_vs_thp_test.c | 9 #define SIZE (16 * 1024 * 1024) macro 18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 28 if (munmap(addr, SIZE)) { in test_body() 34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 57 munmap(addr, SIZE); in test_body()
|
| H A D | prot_sao.c | 16 #define SIZE (64 * 1024) macro 35 p = mmap(NULL, SIZE, PROT_READ | PROT_WRITE | PROT_SAO, in test_prot_sao() 40 memset(p, 0xaa, SIZE); in test_prot_sao()
|
| /linux/lib/tests/ |
| H A D | test_hash.c | 142 #define SIZE 256 /* Run time is cubic in SIZE */ macro 146 char buf[SIZE+1]; in test_string_or() 150 fill_buf(buf, SIZE, 1); in test_string_or() 153 for (j = SIZE; j > 0; --j) { in test_string_or() 171 char buf[SIZE+1]; in test_hash_or() 176 fill_buf(buf, SIZE, 1); in test_hash_or() 179 for (j = SIZE; j > 0; --j) { in test_hash_or()
|
| /linux/drivers/gpu/nova-core/regs/ |
| H A D | macros.rs | 350 static_assert!($idx < $alias::SIZE); 359 static_assert!($idx < $alias::SIZE); 478 pub(crate) const SIZE: usize = $size; 490 build_assert!(idx < Self::SIZE); 508 build_assert!(idx < Self::SIZE); 543 if idx < Self::SIZE { 563 if idx < Self::SIZE { 585 if idx < Self::SIZE { 602 pub(crate) const SIZE: usize = $size; 618 build_assert!(idx < Self::SIZE); [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | nbio_v7_0.c | 77 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, doorbell_size); in nbio_v7_0_sdma_doorbell_range() 79 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_0_sdma_doorbell_range() 96 BIF_MMSCH0_DOORBELL_RANGE, SIZE, 8); in nbio_v7_0_vcn_doorbell_range() 99 BIF_MMSCH0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_0_vcn_doorbell_range() 123 ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, SIZE, 2); in nbio_v7_0_ih_doorbell_range() 125 ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, SIZE, 0); in nbio_v7_0_ih_doorbell_range()
|
| H A D | nbio_v7_7.c | 77 SIZE, doorbell_size); in nbio_v7_7_sdma_doorbell_range() 81 SIZE, 0); in nbio_v7_7_sdma_doorbell_range() 98 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 8); in nbio_v7_7_vcn_doorbell_range() 101 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_7_vcn_doorbell_range() 156 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_7_ih_doorbell_range() 160 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_7_ih_doorbell_range()
|
| H A D | nbio_v7_2.c | 120 SIZE, doorbell_size); in nbio_v7_2_sdma_doorbell_range() 124 SIZE, 0); in nbio_v7_2_sdma_doorbell_range() 141 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 8); in nbio_v7_2_vcn_doorbell_range() 144 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_2_vcn_doorbell_range() 198 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_2_ih_doorbell_range() 202 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_2_ih_doorbell_range()
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | mkcapflags.sh | 14 SIZE=$2 22 echo "const char * const $ARRAY[$SIZE] = {"
|
| /linux/include/linux/ |
| H A D | seq_buf.h | 27 #define DECLARE_SEQ_BUF(NAME, SIZE) \ argument 29 .buffer = (char[SIZE]) { 0 }, \ 30 .size = SIZE, \
|
| H A D | filter.h | 308 #define BPF_LD_ABS(SIZE, IMM) \ argument 310 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 318 #define BPF_LD_IND(SIZE, SRC, IMM) \ argument 320 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \ 328 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ argument 330 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 338 #define BPF_LDX_MEMSX(SIZE, DST, SRC, OFF) \ argument 340 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEMSX, \ 348 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ argument 350 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ [all …]
|
| /linux/fs/coda/ |
| H A D | upcall.c | 71 #define SIZE(tag) max_t(unsigned int, INSIZE(tag), OUTSIZE(tag)) macro 81 insize = SIZE(root); in venus_rootfid() 99 insize = SIZE(getattr); in venus_getattr() 118 insize = SIZE(setattr); in venus_setattr() 167 insize = SIZE(release); in venus_close() 187 insize = SIZE(open_by_fd); in venus_open() 446 insize=SIZE(fsync); in venus_fsync() 462 insize = SIZE(access); in venus_access() 517 error = coda_upcall(coda_vcp(sb), SIZE(ioctl) + data->vi.in_size, in venus_pioctl() 556 insize = SIZE(statfs); in venus_statfs() [all …]
|
| /linux/security/apparmor/include/ |
| H A D | label.h | 52 #define vec_last(VEC, SIZE) ((VEC)[(SIZE) - 1]) argument 53 #define vec_ns(VEC, SIZE) (vec_last((VEC), (SIZE))->ns) argument 54 #define vec_labelset(VEC, SIZE) (&vec_ns((VEC), (SIZE))->labels) argument
|
| /linux/tools/perf/Documentation/ |
| H A D | jit-interface.txt | 10 START SIZE symbolname 12 START and SIZE are hex numbers without 0x.
|
| /linux/drivers/gpu/drm/amd/pm/swsmu/ |
| H A D | smu_cmn.h | 237 #define SMU_METRICS_ARRAY(ID, UNIT, TYPEID, NAME, SIZE) \ argument 239 SMU_CTYPE(TYPEID) NAME[SIZE] 250 #define SMU_METRICS_INIT_ARRAY(ID, UNIT, TYPEID, NAME, SIZE) \ argument 253 AMDGPU_METRICS_ENC_ATTR(UNIT, TYPEID, ID, SIZE); \
|