Home
last modified time | relevance | path

Searched refs:n (Results 1 – 7 of 7) sorted by relevance

/samples/watch_queue/
Dwatch_test.c48 static void saw_key_change(struct watch_notification *n, size_t len) in saw_key_change() argument
50 struct key_notification *k = (struct key_notification *)n; in saw_key_change()
58 k->key_id, n->subtype, key_subtypes[n->subtype], k->aux); in saw_key_change()
68 struct watch_notification n; in consumer() member
70 } n; in consumer() local
104 memcpy(&n, p, largest); in consumer()
107 p - buffer, n.n.type, n.n.subtype, n.n.info); in consumer()
109 len = n.n.info & WATCH_INFO_LENGTH; in consumer()
110 if (len < sizeof(n.n) || len > largest) { in consumer()
115 switch (n.n.type) { in consumer()
[all …]
/samples/auxdisplay/
Dcfag12864b-example.c30 #define CFAG12864B_BIT(n) (((unsigned char) 1) << (n)) argument
153 unsigned char i, j, n; in cfag12864b_format() local
159 for (n = 0; n < CFAG12864B_BPB; n++) in cfag12864b_format()
161 j * CFAG12864B_BPB + n]) in cfag12864b_format()
164 CFAG12864B_BIT(n); in cfag12864b_format()
186 static void example(unsigned char n) in example() argument
191 if (n > EXAMPLES) in example()
194 printf("Example %i/%i - ", n, EXAMPLES); in example()
196 switch (n) { in example()
244 unsigned char n; in main() local
[all …]
/samples/vfs/
Dtest-fsmount.c23 int err, n; in check_messages() local
28 n = read(fd, buf, sizeof(buf)); in check_messages()
29 if (n < 0) in check_messages()
31 n -= 2; in check_messages()
35 fprintf(stderr, "Error: %*.*s\n", n, n, buf + 2); in check_messages()
38 fprintf(stderr, "Warning: %*.*s\n", n, n, buf + 2); in check_messages()
41 fprintf(stderr, "Info: %*.*s\n", n, n, buf + 2); in check_messages()
/samples/bpf/
Dtcp_basertt_kern.c29 int rv = 0, n; in bpf_basertt() local
48 n = bpf_getsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_basertt()
50 if (!n && !__builtin_memcmp(cong, nv, sizeof(nv))) { in bpf_basertt()
53 } else if (n) { in bpf_basertt()
54 rv = n; in bpf_basertt()
Dtracex3_kern.c34 static unsigned int log2l(unsigned long long n) in log2l() argument
36 #define S(k) if (n >= (1ull << k)) { i += k; n >>= k; } in log2l()
37 int i = -(n == 0); in log2l()
Ddo_hbm_test.sh235 n=0
289 n=$[dur+2]
290 sleep $n
361 n=$[dur+1]
362 sleep $n
/samples/pktgen/
DREADME.rst27 -n : ($COUNT) num messages to send per thread, 0 means indefinitely