Searched refs:i (Results 1 – 7 of 7) sorted by relevance
/samples/kfifo/ |
D | dma-example.c | 25 int i; in example_init() local 41 for (i = 0; i != 9; i++) in example_init() 42 kfifo_put(&fifo, &i); in example_init() 75 for (i = 0; i < nents; i++) { in example_init() 79 i, sg[i].page_link, sg[i].offset, sg[i].length); in example_init() 81 if (sg_is_last(&sg[i])) in example_init() 104 for (i = 0; i < nents; i++) { in example_init() 108 i, sg[i].page_link, sg[i].offset, sg[i].length); in example_init() 110 if (sg_is_last(&sg[i])) in example_init()
|
D | bytestream-example.c | 57 unsigned char i, j; in testfunc() local 66 for (i = 0; i != 10; i++) in testfunc() 67 kfifo_put(&test, &i); in testfunc() 73 i = kfifo_out(&test, buf, 5); in testfunc() 74 printk(KERN_INFO "buf: %.*s\n", i, buf); in testfunc() 88 for (i = 20; kfifo_put(&test, &i); i++) in testfunc() 94 if (kfifo_peek(&test, &i)) in testfunc() 95 printk(KERN_INFO "%d\n", i); in testfunc() 99 while (kfifo_get(&test, &i)) { in testfunc() 100 printk(KERN_INFO "item = %d\n", i); in testfunc() [all …]
|
D | inttype-example.c | 57 int i, j; in testfunc() local 63 for (i = 0; i != 10; i++) in testfunc() 64 kfifo_put(&test, &i); in testfunc() 81 for (i = 20; kfifo_put(&test, &i); i++) in testfunc() 87 if (kfifo_peek(&test, &i)) in testfunc() 88 printk(KERN_INFO "%d\n", i); in testfunc() 92 while (kfifo_get(&test, &i)) { in testfunc() 93 printk(KERN_INFO "item = %d\n", i); in testfunc() 94 if (i != expected_result[j++]) { in testfunc()
|
D | record-example.c | 74 unsigned int i; in testfunc() local 86 for (i = 0; i < 10; i++) { in testfunc() 87 memset(buf, 'a' + i, i + 1); in testfunc() 88 kfifo_in(&test, buf, i + 1); in testfunc() 103 i = 0; in testfunc() 108 if (strcmp(buf, expected_result[i++])) { in testfunc() 113 if (i != ARRAY_SIZE(expected_result)) { in testfunc()
|
/samples/hidraw/ |
D | hid-example.c | 45 int i, res, desc_size = 0; in main() local 77 for (i = 0; i < rpt_desc.size; i++) in main() 78 printf("%hhx ", rpt_desc.value[i]); in main() 127 for (i = 0; i < res; i++) in main() 128 printf("%hhx ", buf[i]); in main() 149 for (i = 0; i < res; i++) in main() 150 printf("%hhx ", buf[i]); in main()
|
/samples/uhid/ |
D | uhid-example.c | 220 ssize_t ret, i; in keyboard() local 231 for (i = 0; i < ret; ++i) { in keyboard() 232 switch (buf[i]) { in keyboard() 296 fprintf(stderr, "Invalid input: %c\n", buf[i]); in keyboard()
|
/samples/seccomp/ |
D | bpf-helper.h | 82 #define ARG(i) ARG_32(i) argument 131 #define ARG(i) ARG_64(i) argument
|