/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/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 | 29 u64 count, *val; in bpf_prog1() local 32 count = bpf_perf_event_read(&counters, key); in bpf_prog1() 33 error = (s64)count; in bpf_prog1() 39 *val = count; in bpf_prog1() 41 bpf_map_update_elem(&values, &key, &count, BPF_NOEXIST); in bpf_prog1()
|
D | sampleip_user.c | 74 __u32 count; member 82 return ((struct ipcount *)p1)->count - ((struct ipcount *)p2)->count; in count_cmp() 99 counts[i++].count = value; in print_ip_map() 115 counts[i].count); in print_ip_map() 118 counts[i].count); in print_ip_map()
|
D | test_override_return.sh | 4 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()
|
/samples/mic/mpssd/ |
D | mpss | 71 count=100 75 while [ $count -ge 0 ] 85 count=`expr $count - 1`
|
/samples/vfio-mdev/ |
D | mbochs.c | 95 module_param_named(count, max_mbytes, int, 0444); 306 char *buf, u32 count) in handle_pci_cfg_write() argument 334 char *buf, u32 count) in handle_mmio_write() argument 344 if (count != 2) in handle_mmio_write() 358 __func__, offset, count); in handle_mmio_write() 364 char *buf, u32 count) in handle_mmio_read() argument 376 memset(buf, 0, count); in handle_mmio_read() 379 memcpy(buf, mdev_state->edid_blob + offset, count); in handle_mmio_read() 382 if (count != 2) in handle_mmio_read() 394 __func__, offset, count); in handle_mmio_read() [all …]
|
D | mtty.c | 114 u8 count; member 159 static void dump_buffer(u8 *buf, uint32_t count) in dump_buffer() argument 165 for (i = 0; i < count; i++) { in dump_buffer() 238 u8 *buf, u32 count) in handle_pci_cfg_write() argument 286 offset, count); in handle_pci_cfg_write() 292 u16 offset, u8 *buf, u32 count) in handle_bar_write() argument 308 if (mdev_state->s[index].rxtx.count < in handle_bar_write() 312 mdev_state->s[index].rxtx.count++; in handle_bar_write() 322 (mdev_state->s[index].rxtx.count == in handle_bar_write() 376 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"); 151 char *buf, u32 count) in handle_pci_cfg_write() argument 175 static ssize_t mdev_access(struct mdev_device *mdev, char *buf, size_t count, in mdev_access() argument 186 handle_pci_cfg_write(mdev_state, pos, buf, count); in mdev_access() 188 memcpy(buf, (mdev_state->vconfig + pos), count); in mdev_access() 191 (pos + count <= in mdev_access() 195 memcpy(mdev_state->memblk, buf, count); in mdev_access() 197 memcpy(buf, mdev_state->memblk, count); in mdev_access() 206 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/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 | 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() 137 size_t count, loff_t *ppos) in fifo_read() argument 145 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
|
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() 123 size_t count, loff_t *ppos) in fifo_read() argument 131 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() 130 size_t count, loff_t *ppos) in fifo_read() argument 138 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
|
/samples/configfs/ |
D | configfs_sample.c | 64 const char *page, size_t count) in childless_storeme_store() argument 79 return count; in childless_storeme_store() 148 const char *page, size_t count) in simple_child_storeme_store() argument 163 return count; in simple_child_storeme_store()
|
/samples/mei/ |
D | mei-amt-version.c | 252 uint32_t count; member 322 sizeof(code_ver->count); in amt_verify_code_versions() 323 if (code_ver->count != ver_type_cnt / sizeof(struct amt_version_type)) { in amt_verify_code_versions() 328 for (i = 0; i < code_ver->count; i++) { in amt_verify_code_versions() 465 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()
|
/samples/v4l/ |
D | v4l2-pci-skeleton.c | 249 static int start_streaming(struct vb2_queue *vq, unsigned int count) in start_streaming() argument
|