Home
last modified time | relevance | path

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

1234

/linux-6.15/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-6.15/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)
145 test(name="one-under", size=SIZE-1)
147 test(name="two-under", size=SIZE-2)
149 test(name="exact-trunc-whitespace", size=SIZE, arg=" ")
151 test(name="exact-trunc-arg", size=SIZE, arg=" f")
153 test(name="one-under-full-arg", size=SIZE-1, arg=" f")
155 test(name="one-under-no-nl", size=SIZE-1, newline="")
159 test(name="one-under-trunc-arg", size=SIZE-1, arg=" ")
[all …]
/linux-6.15/tools/testing/selftests/mm/
H A Dmadv_populate.c26 #define SIZE (2 * 1024 * 1024) macro
62 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_read()
69 munmap(addr, SIZE); in test_prot_read()
83 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_write()
90 munmap(addr, SIZE); in test_prot_write()
100 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes()
132 munmap(addr, SIZE); in test_holes()
170 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_read()
182 munmap(addr, SIZE); in test_populate_read()
204 munmap(addr, SIZE); in test_populate_write()
[all …]
/linux-6.15/drivers/hid/
H A Dhid-roccat-common.h47 #define ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE) \ argument
53 SIZE, COMMAND); \
62 SIZE, COMMAND); \
66 ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE) \
67 ROCCAT_COMMON2_SYSFS_R(thingy, COMMAND, SIZE)
70 ROCCAT_COMMON2_SYSFS_RW(thingy, COMMAND, SIZE); \
73 .size = SIZE, \
79 ROCCAT_COMMON2_SYSFS_R(thingy, COMMAND, SIZE); \
82 .size = SIZE, \
87 ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE); \
[all …]
/linux-6.15/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-6.15/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-6.15/rust/kernel/
H A Dio.rs18 pub struct IoRaw<const SIZE: usize = 0> {
23 impl<const SIZE: usize> IoRaw<SIZE> {
26 if maxsize < SIZE { in new()
108 pub struct Io<const SIZE: usize = 0>(IoRaw<SIZE>);
169 impl<const SIZE: usize> Io<SIZE> {
176 pub unsafe fn from_raw(raw: &IoRaw<SIZE>) -> &Self { in from_raw()
216 build_assert!(Self::offset_valid::<U>(offset, SIZE)); in io_addr_assert()
H A Dpci.rs264 pub struct Bar<const SIZE: usize = 0> {
266 io: IoRaw<SIZE>,
270 impl<const SIZE: usize> Bar<SIZE> {
348 impl<const SIZE: usize> Drop for Bar<SIZE> {
354 impl<const SIZE: usize> Deref for Bar<SIZE> {
355 type Target = Io<SIZE>;
394 pub fn iomap_region_sized<const SIZE: usize>( in iomap_region_sized()
398 ) -> Result<Devres<Bar<SIZE>>> { in iomap_region_sized() argument
399 let bar = Bar::<SIZE>::new(self, bar, name)?; in iomap_region_sized()
/linux-6.15/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, \
214 #define BPF_STX_XADD(SIZE, DST, SRC, OFF) BPF_ATOMIC_OP(SIZE, BPF_ADD, DST, SRC, OFF) argument
218 #define BPF_ST_MEM(SIZE, DST, OFF, IMM) \ argument
[all …]
/linux-6.15/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-6.15/lib/tests/
H A Dtest_hash.c142 #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-6.15/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()
H A Dnbio_v7_0.c77 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 Dnbio_v7_7.c77 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 Dnbio_v7_2.c120 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()
H A Dnbio_v2_3.c124 BIF_SDMA0_DOORBELL_RANGE, SIZE, in nbio_v2_3_sdma_doorbell_range()
128 BIF_SDMA0_DOORBELL_RANGE, SIZE, in nbio_v2_3_sdma_doorbell_range()
147 BIF_MMSCH0_DOORBELL_RANGE, SIZE, 8); in nbio_v2_3_vcn_doorbell_range()
150 BIF_MMSCH0_DOORBELL_RANGE, SIZE, 0); in nbio_v2_3_vcn_doorbell_range()
196 BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v2_3_ih_doorbell_range()
200 BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v2_3_ih_doorbell_range()
/linux-6.15/arch/x86/kernel/cpu/
H A Dmkcapflags.sh14 SIZE=$2
22 echo "const char * const $ARRAY[$SIZE] = {"
/linux-6.15/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.h305 #define BPF_LD_ABS(SIZE, IMM) \ argument
307 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
315 #define BPF_LD_IND(SIZE, SRC, IMM) \ argument
317 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
325 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ argument
335 #define BPF_LDX_MEMSX(SIZE, DST, SRC, OFF) \ argument
345 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ argument
380 #define BPF_STX_XADD(SIZE, DST, SRC, OFF) BPF_ATOMIC_OP(SIZE, BPF_ADD, DST, SRC, OFF) argument
384 #define BPF_ST_MEM(SIZE, DST, OFF, IMM) \ argument
386 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
[all …]
/linux-6.15/tools/perf/Documentation/
H A Djit-interface.txt10 START SIZE symbolname
12 START and SIZE are hex numbers without 0x.
/linux-6.15/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-6.15/security/apparmor/include/
H A Dlabel.h51 #define vec_last(VEC, SIZE) ((VEC)[(SIZE) - 1]) argument
52 #define vec_ns(VEC, SIZE) (vec_last((VEC), (SIZE))->ns) argument
53 #define vec_labelset(VEC, SIZE) (&vec_ns((VEC), (SIZE))->labels) argument
/linux-6.15/Documentation/devicetree/bindings/pci/
H A Dloongson.yaml55 // CPU_PHYSICAL(2) SIZE(2)
58 // BUS_ADDRESS(3) CPU_PHYSICAL(2) SIZE(2)

1234