/samples/bpf/ |
D | hash_func01.h | 10 __u32 SuperFastHash (const char *data, int len, __u32 initval) { in SuperFastHash() argument 15 if (len <= 0 || data == NULL) return 0; in SuperFastHash() 17 rem = len & 3; in SuperFastHash() 18 len >>= 2; in SuperFastHash() 22 for (;len > 0; len--) { in SuperFastHash()
|
D | tracex1_kern.c | 35 int len; in bpf_prog1() local 40 len = _(skb->len); in bpf_prog1() 47 bpf_trace_printk(fmt, sizeof(fmt), skb, len); in bpf_prog1()
|
D | hbm_out_kern.c | 61 int len = skb->len; in _hbm_out_cg() local 109 credit -= len; in _hbm_out_cg() 125 (len > LARGE_PKT_THRESH && credit < -LARGE_PKT_DROP_THRESH)) { in _hbm_out_cg() 156 } else if (len > LARGE_PKT_THRESH) { in _hbm_out_cg() 167 hbm_update_stats(qsp, len, curtime, congestion_flag, drop_flag, in _hbm_out_cg() 171 __sync_add_and_fetch(&(qdp->credit), len); in _hbm_out_cg()
|
D | hbm_edt_kern.c | 68 int len = skb->len; in _hbm_out_cg() local 101 delta_send = BYTES_TO_NS(len, qdp->rate); in _hbm_out_cg() 116 len > LARGE_PKT_THRESH)) { in _hbm_out_cg() 139 } else if (len > LARGE_PKT_THRESH) { in _hbm_out_cg() 156 hbm_update_stats(qsp, len, curtime, congestion_flag, drop_flag, in _hbm_out_cg()
|
D | cpustat_user.c | 156 int len, fd; in cpu_stat_inject_cpu_frequency_event() local 164 len = write(fd, CPUFREQ_LOWEST_FREQ, strlen(CPUFREQ_LOWEST_FREQ)); in cpu_stat_inject_cpu_frequency_event() 165 if (len < 0) { in cpu_stat_inject_cpu_frequency_event() 170 len = write(fd, CPUFREQ_HIGHEST_FREQ, strlen(CPUFREQ_HIGHEST_FREQ)); in cpu_stat_inject_cpu_frequency_event() 171 if (len < 0) { in cpu_stat_inject_cpu_frequency_event() 178 return len; in cpu_stat_inject_cpu_frequency_event()
|
D | xdpsock_user.c | 597 static unsigned int do_csum(const unsigned char *buff, int len) in do_csum() argument 602 if (len <= 0) in do_csum() 611 len--; in do_csum() 614 if (len >= 2) { in do_csum() 617 len -= 2; in do_csum() 620 if (len >= 4) { in do_csum() 622 ((unsigned int)len & ~3); in do_csum() 636 if (len & 2) { in do_csum() 641 if (len & 1) in do_csum() 693 __u32 len, __u8 proto, __wsum sum); [all …]
|
D | hbm_kern.h | 156 int len, in hbm_update_stats() argument 169 __sync_add_and_fetch(&(qsp->bytes_total), len); in hbm_update_stats() 178 __sync_add_and_fetch(&(qsp->bytes_marked), len); in hbm_update_stats() 183 len); in hbm_update_stats()
|
D | sockex1_kern.c | 26 __sync_fetch_and_add(value, skb->len); in bpf_prog1()
|
D | task_fd_query_user.c | 96 __u32 len, prog_id, fd_type; in test_debug_fs_kprobe() local 100 len = sizeof(buf); in test_debug_fs_kprobe() 102 err = bpf_task_fd_query(getpid(), event_fd, 0, buf, &len, in test_debug_fs_kprobe() 234 __u32 len, prog_id, fd_type; in test_debug_fs_uprobe() local 280 len = sizeof(buf); in test_debug_fs_uprobe() 281 err = bpf_task_fd_query(getpid(), kfd, 0, buf, &len, in test_debug_fs_uprobe()
|
D | cookie_uid_helper_example.c | 127 offsetof(struct __sk_buff, len)), in prog_load() 153 offsetof(struct __sk_buff, len)), in prog_load() 157 offsetof(struct __sk_buff, len)), in prog_load()
|
D | lwt_len_hist_kern.c | 64 key = log2l(skb->len); in do_len_hist()
|
D | tracex5_user.c | 28 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_accept_all_seccomp()
|
D | xsk_fwd.c | 423 u32 len[MAX_BURST_RX]; member 428 u32 len[MAX_BURST_TX]; member 554 b->len[i] = xsk_ring_cons__rx_desc(&p->rxq, pos + i)->len; in port_rx_burst() 621 xsk_ring_prod__tx_desc(&p->txq, pos + i)->len = b->len[i]; in port_tx_burst() 693 btx->len[btx->n_pkts] = brx->len[j]; in thread_func()
|
/samples/watch_queue/ |
D | watch_test.c | 48 static void saw_key_change(struct watch_notification *n, size_t len) in saw_key_change() argument 52 if (len != sizeof(struct key_notification)) { in saw_key_change() 95 size_t largest, len; in consumer() local 109 len = n.n.info & WATCH_INFO_LENGTH; in consumer() 110 if (len < sizeof(n.n) || len > largest) { in consumer() 111 fprintf(stderr, "Bad message length: %zu/%zu\n", len, largest); in consumer() 132 saw_key_change(&n.n, len); in consumer() 139 p += len; in consumer()
|
/samples/connector/ |
D | cn_test.c | 29 msg->seq, msg->ack, msg->len, in cn_test_callback() 30 msg->len ? (char *)msg->data : ""); in cn_test_callback() 73 msg->len = size0 - sizeof(*msg); 80 ctl->len = msg->len - sizeof(*ctl); 127 m->len = sizeof(data); in cn_test_timer_func() 129 m->len = in cn_test_timer_func() 133 memcpy(m + 1, data, m->len); in cn_test_timer_func()
|
D | ucon.c | 54 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); in netlink_send() 66 __func__, msg->id.idx, msg->id.val, msg->len, msg->seq, msg->ack); in netlink_send() 68 memcpy(m, msg, sizeof(*m) + msg->len); in netlink_send() 101 int len; in main() local 174 data->len = 0; in main() 178 len = netlink_send(s, data); in main() 208 len = recv(s, buf, sizeof(buf), 0); in main() 209 if (len == -1) { in main()
|
/samples/mei/ |
D | mei-amt-version.c | 155 ssize_t len, unsigned long timeout) in mei_recv_msg() argument 164 mei_msg(me, "call read length = %zd\n", len); in mei_recv_msg() 182 rc = read(me->fd, buffer, len); in mei_recv_msg() 199 ssize_t len, unsigned long timeout) in mei_send_msg() argument 204 mei_msg(me, "call write length = %zd\n", len); in mei_send_msg() 206 written = write(me->fd, buffer, len); in mei_send_msg() 323 uint32_t len; in amt_verify_code_versions() local 338 len = code_ver->versions[i].description.length; in amt_verify_code_versions() 340 if (len > AMT_UNICODE_STRING_LEN) { in amt_verify_code_versions() 345 len = code_ver->versions[i].version.length; in amt_verify_code_versions() [all …]
|
/samples/vfs/ |
D | test-statx.c | 53 int len; in print_time() local 60 len = strftime(buffer, 100, "%F %T", &tm); in print_time() 61 if (len == 0) { in print_time() 66 fwrite(buffer, 1, len, stdout); in print_time() 68 len = strftime(buffer, 100, "%z", &tm); in print_time() 69 if (len == 0) { in print_time() 73 fwrite(buffer, 1, len, stdout); in print_time()
|
/samples/hidraw/ |
D | hid-example.c | 24 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) argument 25 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) argument
|
/samples/trace_events/ |
D | trace-events-sample.c | 25 int len = cnt % 5; in simple_thread_func() local 31 for (i = 0; i < len; i++) in simple_thread_func() 36 trace_foo_bar("hello", cnt, array, random_strings[len], in simple_thread_func()
|
/samples/seccomp/ |
D | bpf-direct.c | 68 size_t len; in emulator() local 75 len = (size_t) ctx->uc_mcontext.gregs[REG_ARG2]; in emulator() 84 bytes = write(STDOUT_FILENO, buf, len); in emulator() 146 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_filter()
|
D | dropper.c | 42 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_filter()
|
/samples/rpmsg/ |
D | rpmsg_client_sample.c | 25 static int rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len, in rpmsg_sample_cb() argument 34 print_hex_dump_debug(__func__, DUMP_PREFIX_NONE, 16, 1, data, len, in rpmsg_sample_cb()
|
/samples/pktgen/ |
D | functions.sh | 213 local len=$[ IP6 ? 8 : 4 ] 214 local max=$[ 2**(len*2)-1 ]
|
/samples/kobject/ |
D | kset-example.c | 74 const char *buf, size_t len) in foo_attr_store() argument 85 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
|