Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/crypto/qat/qat_common/
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.1.9/tools/testing/selftests/exec/
Dbinfmt_script.py14 SIZE=256 variable
111 test(name="too-big", size=SIZE+80, good=False)
113 test(name="exact", size=SIZE, good=False)
115 test(name="exact-space", size=SIZE, good=False, leading=" ")
117 test(name="whitespace-too-big", size=SIZE+71, good=False, root="",
120 test(name="truncated", size=SIZE+17, good=False, leading=" " * 19)
125 test(name="spaces", size=SIZE-1, good=False, root="", fill=" ",
128 test(name="newline-prefix", size=SIZE-1, good=False, leading="\n",
139 test(name="one-under", size=SIZE-1)
141 test(name="two-under", size=SIZE-2)
[all …]
/linux-6.1.9/tools/testing/selftests/vm/
Dmadv_populate.c26 #define SIZE (2 * 1024 * 1024) macro
66 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read()
70 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_read()
73 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_prot_read()
77 munmap(addr, SIZE); in test_prot_read()
87 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write()
91 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_write()
95 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_prot_write()
98 munmap(addr, SIZE); in test_prot_write()
108 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes()
[all …]
/linux-6.1.9/drivers/hid/
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-6.1.9/tools/testing/selftests/powerpc/stringloops/
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()
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.1.9/samples/bpf/
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 …]
Dtracex2_user.c40 #define SIZE sizeof(struct task) macro
55 if (memcmp(&next_key, task, SIZE)) { in print_hist_for_pid()
93 if (memcmp(&tasks[i], &next_key, SIZE) == 0) in print_hist()
96 memcpy(&tasks[task_cnt++], &next_key, SIZE); in print_hist()
/linux-6.1.9/tools/include/linux/
Dfilter.h134 #define BPF_LD_ABS(SIZE, IMM) \ argument
136 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
144 #define BPF_LD_IND(SIZE, SRC, IMM) \ argument
146 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
154 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ argument
156 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
164 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ argument
166 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
187 #define BPF_ATOMIC_OP(SIZE, OP, DST, SRC, OFF) \ argument
189 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/mm/
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()
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.1.9/lib/
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.1.9/drivers/gpu/drm/amd/amdgpu/
Dnbio_v7_0.c78 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, doorbell_size); in nbio_v7_0_sdma_doorbell_range()
80 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_0_sdma_doorbell_range()
97 BIF_MMSCH0_DOORBELL_RANGE, SIZE, 8); in nbio_v7_0_vcn_doorbell_range()
100 BIF_MMSCH0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_0_vcn_doorbell_range()
124 ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, SIZE, 2); in nbio_v7_0_ih_doorbell_range()
126 ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, SIZE, 0); in nbio_v7_0_ih_doorbell_range()
Dnbio_v7_7.c78 SIZE, doorbell_size); in nbio_v7_7_sdma_doorbell_range()
82 SIZE, 0); in nbio_v7_7_sdma_doorbell_range()
99 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 8); in nbio_v7_7_vcn_doorbell_range()
102 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_7_vcn_doorbell_range()
157 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_7_ih_doorbell_range()
161 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_7_ih_doorbell_range()
Dnbio_v7_2.c121 SIZE, doorbell_size); in nbio_v7_2_sdma_doorbell_range()
125 SIZE, 0); in nbio_v7_2_sdma_doorbell_range()
142 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 8); in nbio_v7_2_vcn_doorbell_range()
145 GDC0_BIF_VCN0_DOORBELL_RANGE, SIZE, 0); in nbio_v7_2_vcn_doorbell_range()
199 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_2_ih_doorbell_range()
203 GDC0_BIF_IH_DOORBELL_RANGE, SIZE, in nbio_v7_2_ih_doorbell_range()
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()
Dnbio_v6_1.c99 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, doorbell_size); in nbio_v6_1_sdma_doorbell_range()
101 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, SIZE, 0); in nbio_v6_1_sdma_doorbell_range()
141 BIF_IH_DOORBELL_RANGE, SIZE, 6); in nbio_v6_1_ih_doorbell_range()
143 ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, SIZE, 0); in nbio_v6_1_ih_doorbell_range()
/linux-6.1.9/arch/x86/kernel/cpu/
Dmkcapflags.sh14 SIZE=$2
22 echo "const char * const $ARRAY[$SIZE] = {"
/linux-6.1.9/tools/testing/selftests/netfilter/
Dnft_flowtable.sh214 SIZE=$((RANDOM % (1024 * 128)))
215 SIZE=$((SIZE + (1024 * 8)))
216 TSIZE=$((SIZE * 1024))
218 dd if=/dev/urandom of="$name" bs=1024 count=$SIZE 2> /dev/null
220 SIZE=$((RANDOM % 1024))
221 SIZE=$((SIZE + 128))
222 TSIZE=$((TSIZE + SIZE))
223 dd if=/dev/urandom conf=notrunc of="$name" bs=1 count=$SIZE 2> /dev/null
/linux-6.1.9/include/linux/
Dfilter.h228 #define BPF_LD_ABS(SIZE, IMM) \ argument
230 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
238 #define BPF_LD_IND(SIZE, SRC, IMM) \ argument
240 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
248 #define BPF_LDX_MEM(SIZE, DST, SRC, OFF) \ argument
250 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
258 #define BPF_STX_MEM(SIZE, DST, SRC, OFF) \ argument
260 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
282 #define BPF_ATOMIC_OP(SIZE, OP, DST, SRC, OFF) \ argument
284 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \
[all …]
/linux-6.1.9/tools/perf/Documentation/
Djit-interface.txt10 START SIZE symbolname
12 START and SIZE are hex numbers without 0x.
/linux-6.1.9/fs/coda/
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.1.9/Documentation/devicetree/bindings/pci/
Dloongson.yaml55 // CPU_PHYSICAL(2) SIZE(2)
58 // BUS_ADDRESS(3) CPU_PHYSICAL(2) SIZE(2)
/linux-6.1.9/security/apparmor/include/
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.1.9/arch/powerpc/include/asm/
Dsstep.h99 #define SIZE(n) ((n) << 12) macro
105 #define MKOP(t, f, s) ((t) | (f) | SIZE(s))

123