| /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_REA in test_holes() [all...] |
| H A D | mlock2-tests.c | 91 #define SIZE "Size:" 141 vma_size = get_value_for_name(addr, SIZE); in is_vma_lock_on_fault() 161 vma_size = get_value_for_name(addr, SIZE); in lock_check() 90 #define SIZE global() macro
|
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 92 pub fn iomap_sized<const SIZE: usize>(self) -> Result<IoMem<'a, SIZE>> { 102 pub fn iomap_exclusive_sized<const SIZE: usize>(self) -> Result<ExclusiveIoMem<'a, SIZE>> { 168 pub struct ExclusiveIoMem<'a, const SIZE: usize> { 170 iomem: IoMem<'a, SIZE>, 179 impl<const SIZE: usize> ForLt for ExclusiveIoMem<'static, SIZE> { in ioremap() 180 type Of<'a> = ExclusiveIoMem<'a, SIZE>; in ioremap() 183 // SAFETY: `ExclusiveIoMem<'a, SIZE>` i in ioremap() 85 iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a iomap_sized() argument 97 iomap_exclusive_sized<const SIZE: usize>( self, ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a iomap_exclusive_sized() argument [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 | 170 pub struct Bar<'a, const SIZE: usize = 0> { in new() 172 io: MmioRaw<crate::io::Region<SIZE>>, in new() 176 impl<const SIZE: usize> ForLt for Bar<'static, SIZE> { in new() 177 type Of<'a> = Bar<'a, SIZE>; in new() 180 // SAFETY: `Bar<'a, SIZE>` is covariant over `'a`; it holds `&'a Device<Bound>`, in new() 182 unsafe impl<const SIZE: usize> CovariantForLt for Bar<'static, SIZE> {} in new() 187 pub type DevresBar<const SIZE: usize = 0> = DevresLt<Bar<'static, SIZE>>; in new() 62 const SIZE: usize; global() constant 66 const SIZE: usize = 256; global() constant 70 const SIZE: usize = 4096; global() constant 256 iomap_region_sized<'a, const SIZE: usize>( &'a self, bar: u32, name: &'a CStr, ) -> impl PinInit<Devres<Bar<SIZE>>, Error> + 'a iomap_region_sized() argument [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 | 153 #define BPF_LD_ABS(SIZE, IMM) \ 155 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 163 #define BPF_LD_IND(SIZE, SRC, IMM) \ 165 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \ 173 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ 175 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 183 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ 185 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \ 206 #define BPF_ATOMIC_OP(SIZE, OP, DST, SRC, OFF) \ 208 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMI 152 BPF_LD_ABS(SIZE,IMM) global() argument 162 BPF_LD_IND(SIZE,SRC,IMM) global() argument 172 BPF_LDX_MEM(SIZE,DST,SRC,OFF) global() argument 182 BPF_STX_MEM(SIZE,DST,SRC,OFF) global() argument 205 BPF_ATOMIC_OP(SIZE,OP,DST,SRC,OFF) global() argument 214 BPF_STX_XADD(SIZE,DST,SRC,OFF) global() argument 218 BPF_ST_MEM(SIZE,DST,OFF,IMM) global() argument [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/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 | 309 #define BPF_LD_ABS(SIZE, IMM) \ argument 311 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 319 #define BPF_LD_IND(SIZE, SRC, IMM) \ argument 321 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \ 329 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ argument 331 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \ 339 #define BPF_LDX_MEMSX(SIZE, DST, SRC, OFF) \ argument 341 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEMSX, \ 349 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ argument 351 .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/tools/perf/Documentation/ |
| H A D | jit-interface.txt | 10 START SIZE symbolname 12 START and SIZE are hex numbers without 0x.
|
| /linux/rust/kernel/ |
| H A D | io.rs | 55 pub struct Region<const SIZE: usize = 0> { 59 impl<const SIZE: usize> Region<SIZE> { 69 core::ptr::slice_from_raw_parts_mut(base, size) as *mut Region<SIZE> in ptr_from_raw_parts_mut() 78 if size < SIZE || base.align_offset(4) != 0 || !size.is_multiple_of(4) { in ptr_try_from_raw_parts_mut() 86 impl<const SIZE: usize> KnownSize for Region<SIZE> { 87 const MIN_SIZE: usize = SIZE; 104 unsafe impl<const SIZE: usize> IntoBytes for Region<SIZE> { 150 impl<const SIZE: usize> MmioRaw<Region<SIZE>> { 374 impl<const SIZE: usize> IoLoc<Region<SIZE>, $ty> for usize {
|
| /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/fs/jfs/ |
| H A D | jfs_btree.h | 54 #define BT_GETPAGE(IP, BN, MP, TYPE, SIZE, P, RC, ROOT)\ argument 64 MP = read_metapage((IP), BN, SIZE, 1);\
|
| /linux/drivers/media/platform/amphion/ |
| H A D | vpu_msgs.c | 353 const unsigned int SIZE = sizeof(u32); in vpu_core_run_msg_work() local 355 while (kfifo_len(&core->msg_fifo) >= SIZE) { in vpu_core_run_msg_work() 358 if (kfifo_out(&core->msg_fifo, &data, SIZE) == SIZE) in vpu_core_run_msg_work()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_da_btree.h | 166 #define XFS_DA_LOGRANGE(BASE, ADDR, SIZE) \ argument 168 (uint)(XFS_DA_LOGOFF(BASE, ADDR)+(SIZE)-1)
|
| /linux/arch/s390/mm/ |
| H A D | pgalloc.c | 189 #define BASE_ADDR_END_FUNC(NAME, SIZE) \ argument 193 unsigned long next = (addr + (SIZE)) & ~((SIZE) - 1); \
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | head827d.c | 42 NVDEF(NV827D, HEAD_SET_CONTROL_CURSOR, SIZE, W64_H64)); in head827d_curs_clr() 61 NVVAL(NV827D, HEAD_SET_CONTROL_CURSOR, SIZE, asyh->curs.layout) | in head827d_curs_set()
|