Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 663) sorted by relevance

12345678910>>...27

/net/ipv4/
Dsysctl_net_ipv4.c78 container_of(table->data, struct net, ipv4.ip_local_ports.range); in ipv4_local_port_range()
82 .data = &range, in ipv4_local_port_range()
112 struct net *net = container_of(table->data, struct net, in ipv4_privileged_ports()
118 .data = &pports, in ipv4_privileged_ports()
145 kgid_t *data = table->data; in inet_get_ping_group_range_table() local
147 container_of(table->data, struct net, ipv4.ping_group_range.range); in inet_get_ping_group_range_table()
152 *low = data[0]; in inet_get_ping_group_range_table()
153 *high = data[1]; in inet_get_ping_group_range_table()
160 kgid_t *data = table->data; in set_ping_group_range() local
162 container_of(table->data, struct net, ipv4.ping_group_range.range); in set_ping_group_range()
[all …]
Dipip.c132 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipip_err()
400 static int ipip_tunnel_validate(struct nlattr *tb[], struct nlattr *data[], in ipip_tunnel_validate() argument
405 if (!data || !data[IFLA_IPTUN_PROTO]) in ipip_tunnel_validate()
408 proto = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ipip_tunnel_validate()
415 static void ipip_netlink_parms(struct nlattr *data[], in ipip_netlink_parms() argument
426 if (!data) in ipip_netlink_parms()
429 if (data[IFLA_IPTUN_LINK]) in ipip_netlink_parms()
430 parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]); in ipip_netlink_parms()
432 if (data[IFLA_IPTUN_LOCAL]) in ipip_netlink_parms()
433 parms->iph.saddr = nla_get_in_addr(data[IFLA_IPTUN_LOCAL]); in ipip_netlink_parms()
[all …]
/net/nfc/nci/
Dntf.c33 struct nci_core_conn_credit_ntf *ntf = (void *) skb->data; in nci_core_conn_credits_ntf_packet()
68 __u8 status = skb->data[0]; in nci_core_generic_error_ntf_packet()
82 struct nci_core_intf_error_ntf *ntf = (void *) skb->data; in nci_core_conn_intf_error_ntf_packet()
95 __u8 *data) in nci_extract_rf_params_nfca_passive_poll() argument
97 nfca_poll->sens_res = __le16_to_cpu(*((__le16 *)data)); in nci_extract_rf_params_nfca_passive_poll()
98 data += 2; in nci_extract_rf_params_nfca_passive_poll()
100 nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE); in nci_extract_rf_params_nfca_passive_poll()
105 memcpy(nfca_poll->nfcid1, data, nfca_poll->nfcid1_len); in nci_extract_rf_params_nfca_passive_poll()
106 data += nfca_poll->nfcid1_len; in nci_extract_rf_params_nfca_passive_poll()
108 nfca_poll->sel_res_len = *data++; in nci_extract_rf_params_nfca_passive_poll()
[all …]
Dhci.c22 const u8 *data; member
50 u8 data[]; member
142 const u8 data_type, const u8 *data, in nci_hci_send_data() argument
178 skb_put_data(skb, data + i, len); in nci_hci_send_data()
202 struct nci_data *data = (struct nci_data *)opt; in nci_hci_send_data_req() local
204 nci_hci_send_data(ndev, data->pipe, data->cmd, in nci_hci_send_data_req()
205 data->data, data->data_len); in nci_hci_send_data_req()
228 struct nci_data data; in nci_hci_send_cmd() local
239 data.conn_id = conn_info->conn_id; in nci_hci_send_cmd()
240 data.pipe = pipe; in nci_hci_send_cmd()
[all …]
/net/lapb/
Dlapb_subr.c111 lapb_dbg(2, "(%p) S%d RX %3ph\n", lapb->dev, lapb->state, skb->data); in lapb_decode()
121 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode()
123 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode()
126 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode()
128 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode()
133 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode()
135 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode()
138 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode()
140 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode()
148 if (!(skb->data[0] & LAPB_S)) { in lapb_decode()
[all …]
/net/mac80211/
Dethtool.c66 u64 *data) in ieee80211_get_stats() argument
78 memset(data, 0, sizeof(u64) * STA_STATS_LEN); in ieee80211_get_stats()
82 data[i++] += sta->rx_stats.packets; \ in ieee80211_get_stats()
83 data[i++] += sta->rx_stats.bytes; \ in ieee80211_get_stats()
84 data[i++] += sta->rx_stats.num_duplicates; \ in ieee80211_get_stats()
85 data[i++] += sta->rx_stats.fragments; \ in ieee80211_get_stats()
86 data[i++] += sta->rx_stats.dropped; \ in ieee80211_get_stats()
88 data[i++] += sinfo.tx_packets; \ in ieee80211_get_stats()
89 data[i++] += sinfo.tx_bytes; \ in ieee80211_get_stats()
90 data[i++] += sta->status_stats.filtered; \ in ieee80211_get_stats()
[all …]
/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c226 return kstrndup(netobj->data, netobj->len, GFP_KERNEL); in gssp_stringify()
266 struct gssp_upcall_data *data) in gssp_accept_sec_context_upcall() argument
269 .state = data->in_handle in gssp_accept_sec_context_upcall()
272 .input_token = data->in_token, in gssp_accept_sec_context_upcall()
286 .output_token = &data->out_token in gssp_accept_sec_context_upcall()
298 if (data->in_handle.len != 0) in gssp_accept_sec_context_upcall()
312 data->major_status = res.status.major_status; in gssp_accept_sec_context_upcall()
313 data->minor_status = res.status.minor_status; in gssp_accept_sec_context_upcall()
315 data->out_handle = rctxh.exported_context_token; in gssp_accept_sec_context_upcall()
316 data->mech_oid.len = rctxh.mech.len; in gssp_accept_sec_context_upcall()
[all …]
Dgss_krb5_keys.c163 if (crypto_sync_skcipher_setkey(cipher, inkey->data, inkey->len)) in krb5_derive_key()
181 inblock.data = (char *) inblockdata; in krb5_derive_key()
184 outblock.data = (char *) outblockdata; in krb5_derive_key()
190 memcpy(inblock.data, in_constant->data, inblock.len); in krb5_derive_key()
192 krb5_nfold(in_constant->len * 8, in_constant->data, in krb5_derive_key()
193 inblock.len * 8, inblock.data); in krb5_derive_key()
200 (*(gk5e->encrypt))(cipher, NULL, inblock.data, in krb5_derive_key()
201 outblock.data, inblock.len); in krb5_derive_key()
204 memcpy(rawkey + n, outblock.data, (keybytes - n)); in krb5_derive_key()
208 memcpy(rawkey + n, outblock.data, outblock.len); in krb5_derive_key()
[all …]
/net/bluetooth/
Dhci_debugfs.c183 struct oob_data *data; in remote_oob_show() local
186 list_for_each_entry(data, &hdev->remote_oob_data, list) { in remote_oob_show()
188 &data->bdaddr, data->bdaddr_type, data->present, in remote_oob_show()
189 16, data->hash192, 16, data->rand192, in remote_oob_show()
190 16, data->hash256, 16, data->rand256); in remote_oob_show()
199 static int conn_info_min_age_set(void *data, u64 val) in conn_info_min_age_set() argument
201 struct hci_dev *hdev = data; in conn_info_min_age_set()
213 static int conn_info_min_age_get(void *data, u64 *val) in conn_info_min_age_get() argument
215 struct hci_dev *hdev = data; in conn_info_min_age_get()
227 static int conn_info_max_age_set(void *data, u64 val) in conn_info_max_age_set() argument
[all …]
/net/bpf/
Dtest_run.c77 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() argument
93 if (data_out && copy_to_user(data_out, data, copy_size)) in bpf_test_finish()
112 void *data; in bpf_test_init() local
117 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init()
118 if (!data) in bpf_test_init()
121 if (copy_from_user(data + headroom, data_in, size)) { in bpf_test_init()
122 kfree(data); in bpf_test_init()
125 return data; in bpf_test_init()
133 void *data; in bpf_ctx_init() local
139 data = kzalloc(max_size, GFP_USER); in bpf_ctx_init()
[all …]
/net/ipv6/
Dsysctl_net_ipv6.c35 net = container_of(table->data, struct net, in proc_rt6_multipath_hash_policy()
47 .data = &init_net.ipv6.sysctl.bindv6only,
54 .data = &init_net.ipv6.sysctl.anycast_src_echo_reply,
61 .data = &init_net.ipv6.sysctl.flowlabel_consistency,
68 .data = &init_net.ipv6.sysctl.auto_flowlabels,
77 .data = &init_net.ipv6.sysctl.fwmark_reflect,
84 .data = &init_net.ipv6.sysctl.idgen_retries,
91 .data = &init_net.ipv6.sysctl.idgen_delay,
98 .data = &init_net.ipv6.sysctl.flowlabel_state_ranges,
105 .data = &init_net.ipv6.sysctl.ip_nonlocal_bind,
[all …]
/net/sctp/
Dsysctl.c62 .data = &sysctl_sctp_mem,
69 .data = &sysctl_sctp_rmem,
76 .data = &sysctl_sctp_wmem,
88 .data = &init_net.sctp.rto_initial,
97 .data = &init_net.sctp.rto_min,
106 .data = &init_net.sctp.rto_max,
115 .data = &init_net.sctp.rto_alpha,
124 .data = &init_net.sctp.rto_beta,
133 .data = &init_net.sctp.max_burst,
142 .data = &init_net.sctp.cookie_preserve_enable,
[all …]
/net/netfilter/
Dxt_ipvs.c51 const struct xt_ipvs_mtinfo *data = par->matchinfo; in ipvs_mt() local
60 if (data->bitmask == XT_IPVS_IPVS_PROPERTY) { in ipvs_mt()
62 !!(data->invert & XT_IPVS_IPVS_PROPERTY); in ipvs_mt()
74 if (data->bitmask & XT_IPVS_PROTO) in ipvs_mt()
75 if ((iph.protocol == data->l4proto) ^ in ipvs_mt()
76 !(data->invert & XT_IPVS_PROTO)) { in ipvs_mt()
101 if (data->bitmask & XT_IPVS_VPORT) in ipvs_mt()
102 if ((cp->vport == data->vport) ^ in ipvs_mt()
103 !(data->invert & XT_IPVS_VPORT)) { in ipvs_mt()
108 if (data->bitmask & XT_IPVS_VPORTCTL) in ipvs_mt()
[all …]
Dnf_conntrack_h323_main.c54 unsigned char **data, int dataoff,
59 unsigned char **data, int dataoff,
66 unsigned int protoff, unsigned char **data,
71 unsigned int protoff, unsigned char **data,
77 unsigned char **data, int dataoff,
86 unsigned char **data, int dataoff,
93 unsigned char **data, int dataoff,
100 unsigned char **data, int dataoff,
107 unsigned char **data, TransportAddress *taddr, int idx,
120 unsigned char **data, int *datalen, int *dataoff) in get_tpkt_data() argument
[all …]
Dxt_l2tp.c49 static bool l2tp_match(const struct xt_l2tp_info *info, struct l2tp_data *data) in l2tp_match() argument
51 if ((info->flags & XT_L2TP_TYPE) && (info->type != data->type)) in l2tp_match()
54 if ((info->flags & XT_L2TP_VERSION) && (info->version != data->version)) in l2tp_match()
59 ((data->type == XT_L2TP_TYPE_CONTROL) || (data->version == 2)) && in l2tp_match()
60 (info->tid != data->tid)) in l2tp_match()
64 if ((info->flags & XT_L2TP_SID) && (data->type == XT_L2TP_TYPE_DATA) && in l2tp_match()
65 (info->sid != data->sid)) in l2tp_match()
87 struct l2tp_data data = { 0, }; in l2tp_udp_mt() local
101 data.type = XT_L2TP_TYPE_CONTROL; in l2tp_udp_mt()
103 data.type = XT_L2TP_TYPE_DATA; in l2tp_udp_mt()
[all …]
Dnft_immediate.c24 nft_data_copy(&regs->data[priv->dreg], &priv->data, priv->dlen); in nft_immediate_eval()
44 err = nft_data_init(ctx, &priv->data, sizeof(priv->data), &desc, in nft_immediate_init()
52 err = nft_validate_register_store(ctx, priv->dreg, &priv->data, in nft_immediate_init()
60 nft_data_release(&priv->data, desc.type); in nft_immediate_init()
69 return nft_data_hold(&priv->data, nft_dreg_to_type(priv->dreg)); in nft_immediate_activate()
81 return nft_data_release(&priv->data, nft_dreg_to_type(priv->dreg)); in nft_immediate_deactivate()
91 return nft_data_dump(skb, NFTA_IMMEDIATE_DATA, &priv->data, in nft_immediate_dump()
104 const struct nft_data *data; in nft_immediate_validate() local
110 data = &priv->data; in nft_immediate_validate()
112 switch (data->verdict.code) { in nft_immediate_validate()
[all …]
Dnft_cmp.c19 struct nft_data data; member
32 d = memcmp(&regs->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval()
78 err = nft_data_init(NULL, &priv->data, sizeof(priv->data), &desc, in nft_cmp_init()
85 nft_data_release(&priv->data, desc.type); in nft_cmp_init()
108 if (nft_data_dump(skb, NFTA_CMP_DATA, &priv->data, in nft_cmp_dump()
128 memcpy(key + reg->offset, &priv->data, priv->len); in __nft_cmp_offload()
134 nft_offload_update_dependency(ctx, &priv->data, priv->len); in __nft_cmp_offload()
163 struct nft_data data; in nft_cmp_fast_init() local
167 err = nft_data_init(NULL, &data, sizeof(data), &desc, in nft_cmp_fast_init()
180 priv->data = data.data[0] & mask; in nft_cmp_fast_init()
[all …]
Dnf_conntrack_ftp.c122 static int try_number(const char *data, size_t dlen, u_int32_t array[], in try_number() argument
130 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number()
131 if (*data >= '0' && *data <= '9') { in try_number()
132 array[i] = array[i]*10 + *data - '0'; in try_number()
134 else if (*data == sep) in try_number()
140 if ((*data == term || !term) && i == array_size - 1) in try_number()
144 len, i, *data); in try_number()
154 static int try_rfc959(const char *data, size_t dlen, in try_rfc959() argument
161 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959()
181 static int try_rfc1123(const char *data, size_t dlen, in try_rfc1123() argument
[all …]
Dnf_conntrack_irc.c72 static int parse_dcc(char *data, const char *data_end, __be32 *ip, in parse_dcc() argument
78 while (*data++ != ' ') in parse_dcc()
79 if (data > data_end - 12) in parse_dcc()
84 for (tmp = data; tmp <= data_end; tmp++) in parse_dcc()
90 *ad_beg_p = data; in parse_dcc()
91 *ip = cpu_to_be32(simple_strtoul(data, &data, 10)); in parse_dcc()
94 while (*data == ' ') { in parse_dcc()
95 if (data >= data_end) in parse_dcc()
97 data++; in parse_dcc()
100 *port = simple_strtoul(data, &data, 10); in parse_dcc()
[all …]
Dnf_conncount.c293 static void schedule_gc_worker(struct nf_conncount_data *data, int tree) in schedule_gc_worker() argument
295 set_bit(tree, data->pending_trees); in schedule_gc_worker()
296 schedule_work(&data->gc_work); in schedule_gc_worker()
301 struct nf_conncount_data *data, in insert_tree() argument
313 u8 keylen = data->keylen; in insert_tree()
351 schedule_gc_worker(data, hash); in insert_tree()
386 struct nf_conncount_data *data, in count_tree() argument
395 u8 keylen = data->keylen; in count_tree()
397 hash = jhash2(key, data->keylen, conncount_rnd) % CONNCOUNT_SLOTS; in count_tree()
398 root = &data->root[hash]; in count_tree()
[all …]
/net/netfilter/ipvs/
Dip_vs_ftp.c68 struct tcphdr *th = (struct tcphdr *)((char *)skb->data + ipvsh->len); in ip_vs_ftp_data_ptr()
96 static int ip_vs_ftp_get_addrport(char *data, char *data_limit, in ip_vs_ftp_get_addrport() argument
108 if (data_limit - data < plen) { in ip_vs_ftp_get_addrport()
110 if (strncasecmp(data, pattern, data_limit - data) == 0) in ip_vs_ftp_get_addrport()
116 if (strncasecmp(data, pattern, plen) != 0) { in ip_vs_ftp_get_addrport()
119 s = data + plen; in ip_vs_ftp_get_addrport()
142 for (data = s; ; data++) { in ip_vs_ftp_get_addrport()
143 if (data == data_limit) in ip_vs_ftp_get_addrport()
145 c = *data; in ip_vs_ftp_get_addrport()
161 *end = data; in ip_vs_ftp_get_addrport()
[all …]
/net/wireless/
Dlib80211_crypt_ccmp.c213 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_encrypt()
220 sg_set_buf(&sg[1], skb->data + hdr_len + CCMP_HDR_LEN, in lib80211_ccmp_encrypt()
272 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_decrypt()
273 pos = skb->data + hdr_len; in lib80211_ccmp_decrypt()
340 memmove(skb->data + CCMP_HDR_LEN, skb->data, hdr_len); in lib80211_ccmp_decrypt()
349 struct lib80211_ccmp_data *data = priv; in lib80211_ccmp_set_key() local
351 struct crypto_aead *tfm = data->tfm; in lib80211_ccmp_set_key()
353 keyidx = data->key_idx; in lib80211_ccmp_set_key()
354 memset(data, 0, sizeof(*data)); in lib80211_ccmp_set_key()
355 data->key_idx = keyidx; in lib80211_ccmp_set_key()
[all …]
/net/core/
Dsysctl_net_core.c53 .data = &size, in rps_sock_flow_sysctl()
205 ptr = table->data; in flow_limit_table_len_sysctl()
224 .data = id, in set_default_qdisc()
260 fake_table.data = buf; in proc_do_rss_key()
270 int ret, jit_enable = *(int *)table->data; in proc_dointvec_minmax_bpf_enable()
276 tmp.data = &jit_enable; in proc_dointvec_minmax_bpf_enable()
281 *(int *)table->data = jit_enable; in proc_dointvec_minmax_bpf_enable()
320 .data = &sysctl_wmem_max,
328 .data = &sysctl_rmem_max,
336 .data = &sysctl_wmem_default,
[all …]
/net/caif/
Dcfpkt_skbuff.c108 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len) in cfpkt_peek_head() argument
112 memcpy(data, skb->data, len); in cfpkt_peek_head()
115 return !cfpkt_extr_head(pkt, data, len) && in cfpkt_peek_head()
116 !cfpkt_add_head(pkt, data, len); in cfpkt_peek_head()
119 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len) in cfpkt_extr_head() argument
139 if (data) in cfpkt_extr_head()
140 memcpy(data, from, len); in cfpkt_extr_head()
148 u8 *data = dta; in cfpkt_extr_trail() local
157 if (unlikely(skb->data + len > skb_tail_pointer(skb))) { in cfpkt_extr_trail()
163 memcpy(data, from, len); in cfpkt_extr_trail()
[all …]
/net/8021q/
Dvlan_netlink.c39 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[], in vlan_validate() argument
57 if (!data) { in vlan_validate()
62 if (data[IFLA_VLAN_PROTOCOL]) { in vlan_validate()
63 switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { in vlan_validate()
73 if (data[IFLA_VLAN_ID]) { in vlan_validate()
74 id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_validate()
80 if (data[IFLA_VLAN_FLAGS]) { in vlan_validate()
81 flags = nla_data(data[IFLA_VLAN_FLAGS]); in vlan_validate()
91 err = vlan_validate_qos_map(data[IFLA_VLAN_INGRESS_QOS]); in vlan_validate()
96 err = vlan_validate_qos_map(data[IFLA_VLAN_EGRESS_QOS]); in vlan_validate()
[all …]

12345678910>>...27