/net/sched/ |
D | em_meta.c | 74 unsigned long value; member 109 get_random_bytes(&dst->value, sizeof(dst->value)); in META_COLLECTOR() 122 dst->value = fixed_loadavg(avenrun[0]); in META_COLLECTOR() 127 dst->value = fixed_loadavg(avenrun[1]); in META_COLLECTOR() 132 dst->value = fixed_loadavg(avenrun[2]); in META_COLLECTOR() 144 dst->value = dev->ifindex; in int_dev() 153 dst->value = (unsigned long) dev->name; in var_dev() 177 dst->value = skb_vlan_tag_get(skb); in META_COLLECTOR() 179 dst->value = tag; in META_COLLECTOR() 192 dst->value = skb->priority; in META_COLLECTOR() [all …]
|
D | sch_dsmark.c | 42 u8 value; member 142 p->mv[*arg - 1].value = nla_get_u8(tb[TCA_DSMARK_VALUE]); in dsmark_change() 161 p->mv[arg - 1].value = 0; in dsmark_delete() 178 if (p->mv[i].mask == 0xff && !p->mv[i].value) in dsmark_walk() 309 p->mv[index].value); in dsmark_dequeue() 313 p->mv[index].value); in dsmark_dequeue() 321 if (p->mv[index].mask != 0xff || p->mv[index].value) in dsmark_dequeue() 384 p->mv[i].value = 0; in dsmark_init() 444 nla_put_u8(skb, TCA_DSMARK_VALUE, p->mv[cl - 1].value)) in dsmark_dump_class()
|
/net/dccp/ |
D | options.c | 24 u64 value = 0; in dccp_decode_value_var() local 27 value += ((u64)*bf++) << 40; in dccp_decode_value_var() 29 value += ((u64)*bf++) << 32; in dccp_decode_value_var() 31 value += ((u64)*bf++) << 24; in dccp_decode_value_var() 33 value += ((u64)*bf++) << 16; in dccp_decode_value_var() 35 value += ((u64)*bf++) << 8; in dccp_decode_value_var() 37 value += *bf; in dccp_decode_value_var() 39 return value; in dccp_decode_value_var() 59 unsigned char *uninitialized_var(value); in dccp_parse_options() 71 value = NULL; in dccp_parse_options() [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.asn1 | 28 integer-value 31 string-value 34 objectID-value 40 ipAddress-value 43 counter-value 46 timeticks-value 49 arbitrary-value 52 big-counter-value 55 unsigned-integer-value 160 value
|
/net/core/ |
D | pktgen.c | 717 int value; in hex32_arg() local 722 value = hex_to_bin(c); in hex32_arg() 723 if (value >= 0) in hex32_arg() 724 *num |= value; in hex32_arg() 864 unsigned long value = 0; in pktgen_if_write() local 914 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write() 919 if (value < 14 + 20 + 8) in pktgen_if_write() 920 value = 14 + 20 + 8; in pktgen_if_write() 921 if (value != pkt_dev->min_pkt_size) { in pktgen_if_write() 922 pkt_dev->min_pkt_size = value; in pktgen_if_write() [all …]
|
D | bpf_sk_storage.c | 122 struct sock *sk, void *value, in selem_alloc() argument 132 if (value) in selem_alloc() 133 memcpy(SDATA(selem)->data, value, smap->map.value_size); in selem_alloc() 389 void *value, in sk_storage_update() argument 412 selem = selem_alloc(smap, sk, value, true); in sk_storage_update() 437 value, false); in sk_storage_update() 461 copy_map_value_locked(map, old_sdata->data, value, false); in sk_storage_update() 474 selem = selem_alloc(smap, sk, value, !old_sdata); in sk_storage_update() 718 void *value, u64 map_flags) in bpf_fd_sk_storage_update_elem() argument 727 sdata = sk_storage_update(sock->sk, map, value, map_flags); in bpf_fd_sk_storage_update_elem() [all …]
|
D | devlink.c | 1933 struct devlink_dpipe_value *value) in devlink_dpipe_value_put() argument 1936 value->value_size, value->value)) in devlink_dpipe_value_put() 1938 if (value->mask) in devlink_dpipe_value_put() 1940 value->value_size, value->mask)) in devlink_dpipe_value_put() 1942 if (value->mapping_valid) in devlink_dpipe_value_put() 1944 value->mapping_value)) in devlink_dpipe_value_put() 1950 struct devlink_dpipe_value *value) in devlink_dpipe_action_value_put() argument 1952 if (!value->action) in devlink_dpipe_action_value_put() 1954 if (devlink_dpipe_action_put(skb, value->action)) in devlink_dpipe_action_value_put() 1956 if (devlink_dpipe_value_put(skb, value)) in devlink_dpipe_action_value_put() [all …]
|
D | netclassid_cgroup.c | 89 u64 value) in write_classid() argument 97 cs->classid = (u32)value; in write_classid()
|
/net/wireless/ |
D | wext-compat.c | 262 else if (rts->value < 0) in cfg80211_wext_siwrts() 265 wdev->wiphy->rts_threshold = rts->value; in cfg80211_wext_siwrts() 281 rts->value = wdev->wiphy->rts_threshold; in cfg80211_wext_giwrts() 282 rts->disabled = rts->value == (u32) -1; in cfg80211_wext_giwrts() 300 else if (frag->value < 256) in cfg80211_wext_siwfrag() 304 wdev->wiphy->frag_threshold = frag->value & ~0x1; in cfg80211_wext_siwfrag() 321 frag->value = wdev->wiphy->frag_threshold; in cfg80211_wext_giwfrag() 322 frag->disabled = frag->value == (u32) -1; in cfg80211_wext_giwfrag() 340 if (retry->disabled || retry->value < 1 || retry->value > 255 || in cfg80211_wext_siwretry() 345 wdev->wiphy->retry_long = retry->value; in cfg80211_wext_siwretry() [all …]
|
D | debugfs.c | 13 #define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...) \ argument 21 res = scnprintf(buf, buflen, fmt "\n", ##value); \
|
/net/tipc/ |
D | ib_media.c | 52 sprintf(str_buf, "%20phC", a->value); in tipc_ib_addr2str() 61 memcpy(msg, addr->value, INFINIBAND_ALEN); in tipc_ib_addr2msg() 71 memcpy(addr->value, msg, INFINIBAND_ALEN); in tipc_ib_raw2addr() 73 addr->broadcast = !memcmp(msg, b->bcast_addr.value, in tipc_ib_raw2addr()
|
D | eth_media.c | 47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str() 56 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, addr->value, ETH_ALEN); in tipc_eth_addr2msg() 68 ether_addr_copy(addr->value, msg); in tipc_eth_raw2addr() 70 addr->broadcast = !memcmp(addr->value, bcast_mac, ETH_ALEN); in tipc_eth_raw2addr()
|
D | udp_media.c | 116 memcpy(addr->value, ua, sizeof(struct udp_media_addr)); in tipc_udp_media_addr_set() 125 struct udp_media_addr *ua = (struct udp_media_addr *)&a->value; in tipc_udp_addr2str() 154 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, a->value, in tipc_udp_addr2msg() 224 struct udp_media_addr *src = (struct udp_media_addr *)&b->addr.value; in tipc_udp_send_msg() 225 struct udp_media_addr *dst = (struct udp_media_addr *)&addr->value; in tipc_udp_send_msg() 325 dst = (struct udp_media_addr *)&b->bcast_addr.value; in tipc_udp_rcast_disc() 533 struct udp_media_addr *src = (struct udp_media_addr *)&b->addr.value; in tipc_udp_nl_add_bearer_data() 549 dst = (struct udp_media_addr *)&b->bcast_addr.value; in tipc_udp_nl_add_bearer_data() 630 dst = (struct udp_media_addr *)&b->bcast_addr.value; in tipc_udp_nl_bearer_add() 771 memcpy(&b->bcast_addr.value, &remote, sizeof(remote)); in tipc_udp_enable()
|
/net/sctp/ |
D | stream_sched.c | 26 __u16 value, gfp_t gfp) in sctp_sched_fcfs_set() argument 32 __u16 *value) in sctp_sched_fcfs_get() argument 34 *value = 0; in sctp_sched_fcfs_get() 200 __u16 value, gfp_t gfp) in sctp_sched_set_value() argument 213 return asoc->outqueue.sched->set(&asoc->stream, sid, value, gfp); in sctp_sched_set_value() 217 __u16 *value) in sctp_sched_get_value() argument 225 return asoc->outqueue.sched->get(&asoc->stream, sid, value); in sctp_sched_get_value()
|
/net/802/ |
D | mrp.c | 215 static void mrp_attrvalue_inc(void *value, u8 len) in mrp_attrvalue_inc() argument 217 u8 *v = (u8 *)value; in mrp_attrvalue_inc() 227 const void *value, u8 len, u8 type) in mrp_attr_cmp() argument 233 return memcmp(attr->value, value, len); in mrp_attr_cmp() 237 const void *value, u8 len, u8 type) in mrp_attr_lookup() argument 245 d = mrp_attr_cmp(attr, value, len, type); in mrp_attr_lookup() 257 const void *value, u8 len, u8 type) in mrp_attr_create() argument 266 d = mrp_attr_cmp(attr, value, len, type); in mrp_attr_create() 282 memcpy(attr->value, value, len); in mrp_attr_create() 420 memcmp(mrp_cb(app->pdu)->attrvalue, attr->value, attr->len)) { in mrp_pdu_append_vecattr_event() [all …]
|
/net/dcb/ |
D | dcbnl.c | 222 u8 value; in dcbnl_getpfccfg() local 251 &value); in dcbnl_getpfccfg() 252 ret = nla_put_u8(skb, i, value); in dcbnl_getpfccfg() 281 u8 value; in dcbnl_getcap() local 309 if (!netdev->dcbnl_ops->getcap(netdev, i, &value)) { in dcbnl_getcap() 310 ret = nla_put_u8(skb, i, value); in dcbnl_getcap() 326 u8 value; in dcbnl_getnumtcs() local 354 ret = netdev->dcbnl_ops->getnumtcs(netdev, i, &value); in dcbnl_getnumtcs() 356 ret = nla_put_u8(skb, i, value); in dcbnl_getnumtcs() 374 u8 value; in dcbnl_setnumtcs() local [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 103 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option() 115 err = gssx_dec_buffer(xdr, &opt->value); in gssx_dec_option() 259 oa->data[0].value.data = (void *)creds; in gssx_dec_option_array() 260 oa->data[0].value.len = 0; in gssx_dec_option_array() 282 oa->data[0].value.len = 1; /* presence */ in gssx_dec_option_array() 363 opt.value.data = LUCID_VALUE; in gssx_enc_call_ctx() 364 opt.value.len = sizeof(LUCID_VALUE); in gssx_enc_call_ctx() 370 opt.value.data = CREDS_VALUE; in gssx_enc_call_ctx() 371 opt.value.len = sizeof(CREDS_VALUE); in gssx_enc_call_ctx() 388 err = gssx_dec_buffer(xdr, &attr->value); in gssx_dec_name_attr()
|
D | gss_rpc_upcall.c | 327 gssx_buffer *value = &res.options.data[0].value; in gssp_accept_sec_context_upcall() local 331 if (value->len == 1) { in gssp_accept_sec_context_upcall() 333 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall() 337 kfree(value->data); in gssp_accept_sec_context_upcall()
|
/net/netfilter/ipset/ |
D | ip_set_bitmap_gen.h | 116 mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_test() argument 120 const struct mtype_adt_elem *e = value; in mtype_test() 130 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument 134 const struct mtype_adt_elem *e = value; in mtype_add() 175 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del() argument 179 const struct mtype_adt_elem *e = value; in mtype_del()
|
D | ip_set_hash_gen.h | 71 unsigned char value[0] /* the array of the values */ 353 ((struct mtype_elem *)((n)->value + ((i) * (dsize)))) 513 memcpy(tmp->value + d * dsize, data, dsize); in mtype_expire() 693 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument 698 const struct mtype_elem *d = value; in mtype_add() 715 key = HKEY(value, h->initval, t->htable_bits); in mtype_add() 835 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del() argument 840 const struct mtype_elem *d = value; in mtype_del() 848 key = HKEY(value, h->initval, t->htable_bits); in mtype_del() 896 memcpy(tmp->value + k * dsize, data, dsize); in mtype_del() [all …]
|
D | ip_set_list_set.c | 185 list_set_utest(struct ip_set *set, void *value, const struct ip_set_ext *ext, in list_set_utest() argument 189 struct set_adt_elem *d = value; in list_set_utest() 232 list_set_uadd(struct ip_set *set, void *value, const struct ip_set_ext *ext, in list_set_uadd() argument 236 struct set_adt_elem *d = value; in list_set_uadd() 314 list_set_udel(struct ip_set *set, void *value, const struct ip_set_ext *ext, in list_set_udel() argument 318 struct set_adt_elem *d = value; in list_set_udel()
|
/net/sunrpc/ |
D | sysctl.c | 82 unsigned int value; in proc_dodebug() local 107 value = simple_strtol(tmpbuf, &s, 0); in proc_dodebug() 116 *(unsigned int *) table->data = value; in proc_dodebug()
|
/net/netfilter/ |
D | xt_u32.c | 80 if (ct->value[i].min <= val && val <= ct->value[i].max) in u32_match_it()
|
/net/nfc/ |
D | llcp_commands.c | 79 u8 *nfc_llcp_build_tlv(u8 type, u8 *value, u8 value_length, u8 *tlv_length) in nfc_llcp_build_tlv() argument 101 memcpy(tlv + 2, value, length); in nfc_llcp_build_tlv() 109 u8 value[2]; in nfc_llcp_build_sdres_tlv() local 115 value[0] = tid; in nfc_llcp_build_sdres_tlv() 116 value[1] = sap; in nfc_llcp_build_sdres_tlv() 118 sdres->tlv = nfc_llcp_build_tlv(LLCP_TLV_SDRES, value, 2, in nfc_llcp_build_sdres_tlv()
|
/net/netlabel/ |
D | netlabel_unlabeled.c | 734 static void netlbl_unlabel_acceptflg_set(u8 value, in netlbl_unlabel_acceptflg_set() argument 741 netlabel_unlabel_acceptflg = value; in netlbl_unlabel_acceptflg_set() 746 " unlbl_accept=%u old=%u", value, old_val); in netlbl_unlabel_acceptflg_set() 810 u8 value; in netlbl_unlabel_accept() local 814 value = nla_get_u8(info->attrs[NLBL_UNLABEL_A_ACPTFLG]); in netlbl_unlabel_accept() 815 if (value == 1 || value == 0) { in netlbl_unlabel_accept() 817 netlbl_unlabel_acceptflg_set(value, &audit_info); in netlbl_unlabel_accept()
|