Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 61) sorted by relevance

123

/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_transport_access_macros.h35 #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 Dbinfmt_script.py14 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 Dmadv_populate.c26 #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 …]
H A Dmlock2-tests.c90 #define SIZE "Size:" macro
140 vma_size = get_value_for_name(addr, SIZE); in is_vma_lock_on_fault()
160 vma_size = get_value_for_name(addr, SIZE); in lock_check()
/linux/rust/kernel/io/
H A Dmem.rs85 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a { in iomap_sized() argument
95 pub fn iomap_exclusive_sized<const SIZE: usize>( in iomap_exclusive_sized()
97 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a { in iomap_exclusive_sized() argument
159 pub struct ExclusiveIoMem<const SIZE: usize> {
161 iomem: IoMem<SIZE>,
170 impl<const SIZE: usize> ExclusiveIoMem<SIZE> {
205 impl<const SIZE: usize> Deref for ExclusiveIoMem<SIZE> {
206 type Target = Io<SIZE>;
222 pub struct IoMem<const SIZE: usize = 0> {
223 io: IoRaw<SIZE>,
[all …]
/linux/drivers/hid/
H A Dhid-roccat-common.h47 #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 Dio.rs25 pub struct Bar<const SIZE: usize = 0> {
27 io: IoRaw<SIZE>,
31 impl<const SIZE: usize> Bar<SIZE> {
110 impl<const SIZE: usize> Drop for Bar<SIZE> {
116 impl<const SIZE: usize> Deref for Bar<SIZE> {
117 type Target = Io<SIZE>;
128 pub fn iomap_region_sized<'a, const SIZE: usize>( in iomap_region_sized()
132 ) -> impl PinInit<Devres<Bar<SIZE>>, Error> + 'a { in iomap_region_sized() argument
133 Devres::new(self.as_ref(), Bar::<SIZE>::new(self, bar, name)) in iomap_region_sized()
/linux/tools/testing/selftests/powerpc/stringloops/
H A Dstrlen.c8 #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 Dmemcmp.c10 #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 Dbpf_insn.h109 #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/rust/kernel/
H A Dio.rs38 pub struct IoRaw<const SIZE: usize = 0> {
43 impl<const SIZE: usize> IoRaw<SIZE> {
46 if maxsize < SIZE { in new()
136 pub struct Io<const SIZE: usize = 0>(IoRaw<SIZE>);
197 impl<const SIZE: usize> Io<SIZE> {
204 pub unsafe fn from_raw(raw: &IoRaw<SIZE>) -> &Self { in from_raw()
244 build_assert!(Self::offset_valid::<U>(offset, SIZE)); in io_addr_assert()
/linux/tools/include/linux/
H A Dfilter.h152 #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 Dhugetlb_vs_thp_test.c9 #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 Dprot_sao.c16 #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/drivers/gpu/drm/amd/amdgpu/
H A Dnbio_v7_11.c77 SIZE, doorbell_size); in nbio_v7_11_sdma_doorbell_range()
81 SIZE, 0); in nbio_v7_11_sdma_doorbell_range()
102 SIZE, doorbell_size); in nbio_v7_11_vpe_doorbell_range()
106 SIZE, 0); in nbio_v7_11_vpe_doorbell_range()
127 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 8); in nbio_v7_11_vcn_doorbell_range()
130 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_11_vcn_doorbell_range()
184 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_11_ih_doorbell_range()
188 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_11_ih_doorbell_range()
/linux/arch/x86/kernel/cpu/
H A Dmkcapflags.sh14 SIZE=$2
22 echo "const char * const $ARRAY[$SIZE] = {"
/linux/include/linux/
H A Dseq_buf.h27 #define DECLARE_SEQ_BUF(NAME, SIZE) \ argument
29 .buffer = (char[SIZE]) { 0 }, \
30 .size = SIZE, \
H A Dfilter.h308 #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 Dupcall.c71 #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 Djit-interface.txt10 START SIZE symbolname
12 START and SIZE are hex numbers without 0x.
/linux/security/apparmor/include/
H A Dlabel.h52 #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 Djfs_btree.h54 #define BT_GETPAGE(IP, BN, MP, TYPE, SIZE, P, RC, ROOT)\ argument
64 MP = read_metapage((IP), BN, SIZE, 1);\
/linux/drivers/platform/arm64/
H A Dhuawei-gaokun-ec.c75 #define MKREQ(REG0, REG1, SIZE, ...) \ argument
77 REG0, REG1, SIZE, \
81 [3 + (SIZE)] = 0, \
84 #define MKRESP(SIZE) \ argument
86 [RESP_HDR_SIZE + (SIZE) - 1] = 0, \
/linux/drivers/media/platform/amphion/
H A Dvpu_msgs.c353 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/drivers/gpu/drm/nouveau/dispnv50/
H A Dhead827d.c42 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()

123