/samples/seccomp/ |
D | bpf-helper.c | 20 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() argument 24 if (count < 1 || count > BPF_MAXINSNS) in bpf_resolve_jumps() 30 for (i = 0; i < count; ++i) { in bpf_resolve_jumps() 31 size_t offset = count - i - 1; in bpf_resolve_jumps() 69 if (labels->count == BPF_LABELS_MAX) { in seccomp_bpf_label() 73 if (labels->count == 0) { in seccomp_bpf_label() 76 labels->count++; in seccomp_bpf_label() 79 end = begin + labels->count; in seccomp_bpf_label() 86 labels->count++; in seccomp_bpf_label() 90 void seccomp_bpf_print(struct sock_filter *filter, size_t count) in seccomp_bpf_print() argument [all …]
|
D | bpf-helper.h | 28 int count; member 36 struct sock_filter *filter, size_t count); 38 void seccomp_bpf_print(struct sock_filter *filter, size_t count);
|
D | bpf-fancy.c | 30 .count = 0, in main()
|
/samples/ftrace/ |
D | sample-trace-array.h | 62 TP_PROTO(int count, unsigned long time), 64 TP_ARGS(count, time), 67 __field(int, count) 72 __entry->count = count; 76 TP_printk("count value=%d at jiffies=%lu", __entry->count,
|
D | sample-trace-array.c | 46 static void simple_thread_func(int count) in simple_thread_func() argument 56 count); in simple_thread_func() 61 trace_sample_event(count, jiffies); in simple_thread_func() 66 int count = 0; in simple_thread() local 83 simple_thread_func(count++); in simple_thread()
|
/samples/bpf/ |
D | syscall_tp_kern.c | 35 static __always_inline void count(void *map) in count() function 50 count(&enter_open_map); in trace_enter_open() 57 count(&enter_open_map); in trace_enter_open_at() 64 count(&exit_open_map); in trace_enter_exit() 71 count(&exit_open_map); in trace_enter_exit_at()
|
D | tracex6_kern.c | 33 u64 count, *val; in bpf_prog1() local 36 count = bpf_perf_event_read(&counters, key); in bpf_prog1() 37 error = (s64)count; in bpf_prog1() 43 *val = count; in bpf_prog1() 45 bpf_map_update_elem(&values, &key, &count, BPF_NOEXIST); in bpf_prog1()
|
D | sampleip_user.c | 78 __u32 count; member 86 return ((struct ipcount *)p1)->count - ((struct ipcount *)p2)->count; in count_cmp() 103 counts[i++].count = value; in print_ip_map() 119 counts[i].count); in print_ip_map() 122 counts[i].count); in print_ip_map()
|
D | test_override_return.sh | 5 dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1
|
D | offwaketime_user.c | 48 static void print_stack(struct key_t *key, __u64 count) in print_stack() argument 68 printf(";%s %lld\n", key->waker, count); in print_stack()
|
D | trace_event_user.c | 61 static void print_stack(struct key_t *key, __u64 count) in print_stack() argument 67 printf("%3lld %s;", count, key->comm); in print_stack() 81 if (count < 6) in print_stack()
|
D | xdp_sample_user.c | 384 __u32 batch, count = 32; in map_collect_percpu_devmap() local 390 keys = calloc(count, sizeof(__u64)); in map_collect_percpu_devmap() 393 values = calloc(count * nr_cpus, sizeof(struct datarec)); in map_collect_percpu_devmap() 403 keys, values, &count, NULL); in map_collect_percpu_devmap() 410 for (i = 0; i < count; i++) { in map_collect_percpu_devmap() 437 count = 32; in map_collect_percpu_devmap()
|
/samples/vfio-mdev/ |
D | mbochs.c | 95 module_param_named(count, max_mbytes, int, 0444); 298 char *buf, u32 count) in handle_pci_cfg_write() argument 326 char *buf, u32 count) in handle_mmio_write() argument 336 if (count != 2) in handle_mmio_write() 350 __func__, offset, count); in handle_mmio_write() 356 char *buf, u32 count) in handle_mmio_read() argument 368 memset(buf, 0, count); in handle_mmio_read() 371 memcpy(buf, mdev_state->edid_blob + offset, count); in handle_mmio_read() 374 if (count != 2) in handle_mmio_read() 386 __func__, offset, count); in handle_mmio_read() [all …]
|
D | mtty.c | 114 u8 count; member 161 static void dump_buffer(u8 *buf, uint32_t count) in dump_buffer() argument 167 for (i = 0; i < count; i++) { in dump_buffer() 240 u8 *buf, u32 count) in handle_pci_cfg_write() argument 288 offset, count); in handle_pci_cfg_write() 294 u16 offset, u8 *buf, u32 count) in handle_bar_write() argument 310 if (mdev_state->s[index].rxtx.count < in handle_bar_write() 314 mdev_state->s[index].rxtx.count++; in handle_bar_write() 324 (mdev_state->s[index].rxtx.count == in handle_bar_write() 378 mdev_state->s[index].rxtx.count = 0; in handle_bar_write() [all …]
|
D | mdpy.c | 47 module_param_named(count, max_devices, int, 0444); 48 MODULE_PARM_DESC(count, "number of " MDPY_NAME " devices"); 143 char *buf, u32 count) in handle_pci_cfg_write() argument 168 size_t count, loff_t pos, bool is_write) in mdev_access() argument 176 handle_pci_cfg_write(mdev_state, pos, buf, count); in mdev_access() 178 memcpy(buf, (mdev_state->vconfig + pos), count); in mdev_access() 181 (pos + count <= in mdev_access() 185 memcpy(mdev_state->memblk, buf, count); in mdev_access() 187 memcpy(buf, mdev_state->memblk, count); in mdev_access() 197 ret = count; in mdev_access() [all …]
|
/samples/kobject/ |
D | kobject-example.c | 35 const char *buf, size_t count) in foo_store() argument 43 return count; in foo_store() 67 const char *buf, size_t count) in b_store() argument 79 return count; in b_store()
|
D | kset-example.c | 41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count); 119 const char *buf, size_t count) in foo_store() argument 127 return count; in foo_store() 151 const char *buf, size_t count) in b_store() argument 163 return count; in b_store()
|
/samples/crypto/ |
D | fips140_lab_util.c | 91 static void rand_bytes(uint8_t *bytes, size_t count) in rand_bytes() argument 95 for (i = 0; i < count; i++) in rand_bytes() 104 static const char *bytes_to_hex(const uint8_t *bytes, size_t count) in bytes_to_hex() argument 109 ASSERT(count <= 512); in bytes_to_hex() 110 for (i = 0; i < count; i++) in bytes_to_hex() 115 static void full_write(int fd, const void *buf, size_t count) in full_write() argument 117 while (count) { in full_write() 118 ssize_t ret = write(fd, buf, count); in full_write() 123 count -= ret; in full_write() 253 static void dump_from_jent_fd(int fd, size_t count) in dump_from_jent_fd() argument [all …]
|
/samples/rpmsg/ |
D | rpmsg_client_sample.c | 18 static int count = 100; variable 19 module_param(count, int, 0644); 38 if (idata->rx_count >= count) { in rpmsg_sample_cb()
|
/samples/kfifo/ |
D | inttype-example.c | 107 size_t count, loff_t *ppos) in fifo_write() argument 115 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write() 125 size_t count, loff_t *ppos) in fifo_read() argument 133 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
|
D | record-example.c | 121 size_t count, loff_t *ppos) in fifo_write() argument 129 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write() 139 size_t count, loff_t *ppos) in fifo_read() argument 147 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
|
D | bytestream-example.c | 114 size_t count, loff_t *ppos) in fifo_write() argument 122 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write() 132 size_t count, loff_t *ppos) in fifo_read() argument 140 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
|
/samples/configfs/ |
D | configfs_sample.c | 60 const char *page, size_t count) in childless_storeme_store() argument 69 return count; in childless_storeme_store() 137 const char *page, size_t count) in simple_child_storeme_store() argument 146 return count; in simple_child_storeme_store()
|
/samples/mei/ |
D | mei-amt-version.c | 261 uint32_t count; member 331 sizeof(code_ver->count); in amt_verify_code_versions() 332 if (code_ver->count != ver_type_cnt / sizeof(struct amt_version_type)) { in amt_verify_code_versions() 337 for (i = 0; i < code_ver->count; i++) { in amt_verify_code_versions() 474 for (i = 0; i < ver.count; i++) { in main()
|
/samples/qmi/ |
D | qmi_sample_client.c | 302 size_t count, loff_t *ppos) in ping_write() argument 326 count = ret; in ping_write() 328 return count; in ping_write() 369 size_t count, loff_t *ppos) in data_write() argument 388 req->data_len = min_t(size_t, sizeof(req->data), count); in data_write() 418 ret = count; in data_write()
|