/net/ipv4/ |
D | sysctl_net_ipv4.c | 59 .data = &range, in ipv4_local_port_range() 82 kgid_t *data = table->data; in inet_get_ping_group_range_table() local 87 *low = data[0]; in inet_get_ping_group_range_table() 88 *high = data[1]; in inet_get_ping_group_range_table() 95 kgid_t *data = table->data; in set_ping_group_range() local 97 data[0] = low; in set_ping_group_range() 98 data[1] = high; in set_ping_group_range() 112 .data = &urange, in ipv4_ping_group_range() 143 int old_value = *(int *)ctl->data; in proc_tcp_default_init_rwnd() 145 int new_value = *(int *)ctl->data; in proc_tcp_default_init_rwnd() [all …]
|
/net/lapb/ |
D | lapb_subr.c | 118 skb->data[0], skb->data[1], skb->data[2]); in lapb_decode() 128 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode() 130 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode() 133 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode() 135 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode() 140 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode() 142 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode() 145 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode() 147 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode() 155 if (!(skb->data[0] & LAPB_S)) { in lapb_decode() [all …]
|
/net/nfc/nci/ |
D | ntf.c | 45 struct nci_core_conn_credit_ntf *ntf = (void *) skb->data; in nci_core_conn_credits_ntf_packet() 77 __u8 status = skb->data[0]; in nci_core_generic_error_ntf_packet() 91 struct nci_core_intf_error_ntf *ntf = (void *) skb->data; in nci_core_conn_intf_error_ntf_packet() 104 __u8 *data) in nci_extract_rf_params_nfca_passive_poll() argument 106 nfca_poll->sens_res = __le16_to_cpu(*((__u16 *)data)); in nci_extract_rf_params_nfca_passive_poll() 107 data += 2; in nci_extract_rf_params_nfca_passive_poll() 109 nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE); in nci_extract_rf_params_nfca_passive_poll() 114 memcpy(nfca_poll->nfcid1, data, nfca_poll->nfcid1_len); in nci_extract_rf_params_nfca_passive_poll() 115 data += nfca_poll->nfcid1_len; in nci_extract_rf_params_nfca_passive_poll() 117 nfca_poll->sel_res_len = *data++; in nci_extract_rf_params_nfca_passive_poll() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_upcall.c | 230 struct gssp_upcall_data *data) in gssp_accept_sec_context_upcall() argument 233 .state = data->in_handle in gssp_accept_sec_context_upcall() 236 .input_token = data->in_token, in gssp_accept_sec_context_upcall() 249 .output_token = &data->out_token in gssp_accept_sec_context_upcall() 260 if (data->in_handle.len != 0) in gssp_accept_sec_context_upcall() 270 data->major_status = res.status.major_status; in gssp_accept_sec_context_upcall() 271 data->minor_status = res.status.minor_status; in gssp_accept_sec_context_upcall() 273 data->out_handle = rctxh.exported_context_token; in gssp_accept_sec_context_upcall() 274 data->mech_oid.len = rctxh.mech.len; in gssp_accept_sec_context_upcall() 275 memcpy(data->mech_oid.data, rctxh.mech.data, in gssp_accept_sec_context_upcall() [all …]
|
D | gss_krb5_keys.c | 173 if (crypto_blkcipher_setkey(cipher, inkey->data, inkey->len)) in krb5_derive_key() 191 inblock.data = (char *) inblockdata; in krb5_derive_key() 194 outblock.data = (char *) outblockdata; in krb5_derive_key() 200 memcpy(inblock.data, in_constant->data, inblock.len); in krb5_derive_key() 202 krb5_nfold(in_constant->len * 8, in_constant->data, in krb5_derive_key() 203 inblock.len * 8, inblock.data); in krb5_derive_key() 210 (*(gk5e->encrypt))(cipher, NULL, inblock.data, in krb5_derive_key() 211 outblock.data, inblock.len); in krb5_derive_key() 214 memcpy(rawkey + n, outblock.data, (keybytes - n)); in krb5_derive_key() 218 memcpy(rawkey + n, outblock.data, outblock.len); in krb5_derive_key() [all …]
|
/net/sctp/ |
D | sysctl.c | 73 .data = &sysctl_sctp_mem, 80 .data = &sysctl_sctp_rmem, 87 .data = &sysctl_sctp_wmem, 99 .data = &init_net.sctp.rto_initial, 108 .data = &init_net.sctp.rto_min, 117 .data = &init_net.sctp.rto_max, 126 .data = &init_net.sctp.rto_alpha, 133 .data = &init_net.sctp.rto_beta, 140 .data = &init_net.sctp.max_burst, 149 .data = &init_net.sctp.cookie_preserve_enable, [all …]
|
/net/core/ |
D | drop_monitor.c | 77 static struct sk_buff *reset_per_cpu_data(struct per_cpu_dm_data *data) in reset_per_cpu_data() argument 99 mod_timer(&data->send_timer, jiffies + HZ / 10); in reset_per_cpu_data() 102 spin_lock_irqsave(&data->lock, flags); in reset_per_cpu_data() 103 swap(data->skb, skb); in reset_per_cpu_data() 104 spin_unlock_irqrestore(&data->lock, flags); in reset_per_cpu_data() 112 struct per_cpu_dm_data *data; in send_dm_alert() local 114 data = container_of(work, struct per_cpu_dm_data, dm_alert_work); in send_dm_alert() 116 skb = reset_per_cpu_data(data); in send_dm_alert() 129 struct per_cpu_dm_data *data = (struct per_cpu_dm_data *)_data; in sched_send_work() local 131 schedule_work(&data->dm_alert_work); in sched_send_work() [all …]
|
D | sysctl_net_core.c | 32 .data = &size, in rps_sock_flow_sysctl() 94 .data = &sysctl_wmem_max, 102 .data = &sysctl_rmem_max, 110 .data = &sysctl_wmem_default, 118 .data = &sysctl_rmem_default, 126 .data = &weight_p, 133 .data = &netdev_max_backlog, 141 .data = &bpf_jit_enable, 149 .data = &netdev_tstamp_prequeue, 156 .data = &net_ratelimit_state.interval, [all …]
|
/net/irda/ |
D | discovery.c | 85 if ((node->data.saddr == new->data.saddr) && in irlmp_add_discovery() 86 ((node->data.daddr == new->data.daddr) || in irlmp_add_discovery() 87 (strcmp(node->data.info, new->data.info) == 0))) in irlmp_add_discovery() 94 if (get_unaligned((__u16 *)node->data.hints) == get_unaligned((__u16 *)new->data.hints)) in irlmp_add_discovery() 102 hashbin_insert(cachelog, (irda_queue_t *) new, new->data.daddr, NULL); in irlmp_add_discovery() 175 if ((curr->data.saddr == saddr) && in irlmp_expire_discoveries() 196 memcpy(&(buffer[i]), &(curr->data), in irlmp_expire_discoveries() 238 IRDA_DEBUG(0, " daddr=%08x\n", discovery->data.daddr); 239 IRDA_DEBUG(0, " saddr=%08x\n", discovery->data.saddr); 240 IRDA_DEBUG(0, " nickname=%s\n", discovery->data.info); [all …]
|
D | timer.c | 37 static void irlap_slot_timer_expired(void* data); 38 static void irlap_query_timer_expired(void* data); 39 static void irlap_final_timer_expired(void* data); 40 static void irlap_wd_timer_expired(void* data); 41 static void irlap_backoff_timer_expired(void* data); 42 static void irlap_media_busy_expired(void* data); 141 static void irlap_slot_timer_expired(void *data) in irlap_slot_timer_expired() argument 143 struct irlap_cb *self = (struct irlap_cb *) data; in irlap_slot_timer_expired() 157 static void irlap_query_timer_expired(void *data) in irlap_query_timer_expired() argument 159 struct irlap_cb *self = (struct irlap_cb *) data; in irlap_query_timer_expired() [all …]
|
D | irlap_frame.c | 178 frame = (struct snrm_frame *) skb->data; in irlap_recv_snrm_cmd() 338 frame = (struct xid_frame *) tx_skb->data; in irlap_send_discovery_xid_frame() 354 frame->daddr = cpu_to_le32(discovery->data.daddr); in irlap_send_discovery_xid_frame() 385 if (discovery->data.hints[0] & HINT_EXTENSION) { in irlap_send_discovery_xid_frame() 387 info[0] = discovery->data.hints[0]; in irlap_send_discovery_xid_frame() 388 info[1] = discovery->data.hints[1]; in irlap_send_discovery_xid_frame() 391 info[0] = discovery->data.hints[0]; in irlap_send_discovery_xid_frame() 394 info[0] = discovery->data.charset; in irlap_send_discovery_xid_frame() 398 memcpy(info, discovery->data.info, len); in irlap_send_discovery_xid_frame() 428 xid = (struct xid_frame *) skb->data; in irlap_recv_discovery_xid_rsp() [all …]
|
D | irsysctl.c | 117 .data = &sysctl_discovery, 124 .data = sysctl_devname, 132 .data = &irda_debug, 141 .data = &sysctl_fast_poll_increase, 149 .data = &sysctl_discovery_slots, 158 .data = &sysctl_discovery_timeout, 165 .data = &sysctl_slot_timeout, 174 .data = &sysctl_max_baud_rate, 183 .data = &sysctl_min_tx_turn_time, 192 .data = &sysctl_max_tx_data_size, [all …]
|
/net/netfilter/ |
D | xt_ipvs.c | 50 const struct xt_ipvs_mtinfo *data = par->matchinfo; in ipvs_mt() local 58 if (data->bitmask == XT_IPVS_IPVS_PROPERTY) { in ipvs_mt() 60 !!(data->invert & XT_IPVS_IPVS_PROPERTY); in ipvs_mt() 72 if (data->bitmask & XT_IPVS_PROTO) in ipvs_mt() 73 if ((iph.protocol == data->l4proto) ^ in ipvs_mt() 74 !(data->invert & XT_IPVS_PROTO)) { in ipvs_mt() 99 if (data->bitmask & XT_IPVS_VPORT) in ipvs_mt() 100 if ((cp->vport == data->vport) ^ in ipvs_mt() 101 !(data->invert & XT_IPVS_VPORT)) { in ipvs_mt() 106 if (data->bitmask & XT_IPVS_VPORTCTL) in ipvs_mt() [all …]
|
D | nf_conntrack_h323_main.c | 54 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, 121 unsigned char **data, int *datalen, int *dataoff) in get_tpkt_data() argument [all …]
|
D | nf_conntrack_irc.c | 72 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 …]
|
D | nf_conntrack_ftp.c | 119 static int try_number(const char *data, size_t dlen, u_int32_t array[], in try_number() argument 127 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number() 128 if (*data >= '0' && *data <= '9') { in try_number() 129 array[i] = array[i]*10 + *data - '0'; in try_number() 131 else if (*data == sep) in try_number() 136 if (*data == term && i == array_size - 1) in try_number() 140 len, i, *data); in try_number() 150 static int try_rfc959(const char *data, size_t dlen, in try_rfc959() argument 156 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959() 167 static int get_port(const char *data, int start, size_t dlen, char delim, in get_port() argument [all …]
|
/net/8021q/ |
D | vlan_netlink.c | 41 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[]) in vlan_validate() argument 54 if (!data) in vlan_validate() 57 if (data[IFLA_VLAN_PROTOCOL]) { in vlan_validate() 58 switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { in vlan_validate() 67 if (data[IFLA_VLAN_ID]) { in vlan_validate() 68 id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_validate() 72 if (data[IFLA_VLAN_FLAGS]) { in vlan_validate() 73 flags = nla_data(data[IFLA_VLAN_FLAGS]); in vlan_validate() 80 err = vlan_validate_qos_map(data[IFLA_VLAN_INGRESS_QOS]); in vlan_validate() 83 err = vlan_validate_qos_map(data[IFLA_VLAN_EGRESS_QOS]); in vlan_validate() [all …]
|
/net/irda/irlan/ |
D | irlan_filter.c | 64 skb->data[0] = 0x00; /* Success */ in irlan_filter_request() 65 skb->data[1] = 0x03; in irlan_filter_request() 77 skb->data[0] = 0x00; /* Success */ in irlan_filter_request() 78 skb->data[1] = 0x00; in irlan_filter_request() 85 skb->data[0] = 0x00; /* Success */ in irlan_filter_request() 86 skb->data[1] = 0x00; in irlan_filter_request() 94 skb->data[0] = 0x00; /* Success */ in irlan_filter_request() 95 skb->data[1] = 0x00; in irlan_filter_request() 102 skb->data[0] = 0x00; /* Success */ in irlan_filter_request() 103 skb->data[1] = 0x00; in irlan_filter_request() [all …]
|
/net/caif/ |
D | cfpkt_skbuff.c | 113 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len) in cfpkt_peek_head() argument 117 memcpy(data, skb->data, len); in cfpkt_peek_head() 120 return !cfpkt_extr_head(pkt, data, len) && in cfpkt_peek_head() 121 !cfpkt_add_head(pkt, data, len); in cfpkt_peek_head() 124 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len) in cfpkt_extr_head() argument 144 if (data) in cfpkt_extr_head() 145 memcpy(data, from, len); in cfpkt_extr_head() 153 u8 *data = dta; in cfpkt_extr_trail() local 162 if (unlikely(skb->data + len > skb_tail_pointer(skb))) { in cfpkt_extr_trail() 168 memcpy(data, from, len); in cfpkt_extr_trail() [all …]
|
/net/bluetooth/cmtp/ |
D | capi.c | 143 scb->data = (CAPIMSG_COMMAND(skb->data) == CAPI_DATA_B3); in cmtp_send_capimsg() 195 switch (CAPIMSG_SUBCOMMAND(skb->data)) { in cmtp_recv_interopmsg() 200 func = CAPIMSG_U16(skb->data, CAPI_MSG_BASELEN + 5); in cmtp_recv_interopmsg() 201 info = CAPIMSG_U16(skb->data, CAPI_MSG_BASELEN + 8); in cmtp_recv_interopmsg() 205 msgnum = CAPIMSG_MSGID(skb->data); in cmtp_recv_interopmsg() 211 application->mapping = CAPIMSG_APPID(skb->data); in cmtp_recv_interopmsg() 218 appl = CAPIMSG_APPID(skb->data); in cmtp_recv_interopmsg() 233 controller = CAPIMSG_U16(skb->data, CAPI_MSG_BASELEN + 11); in cmtp_recv_interopmsg() 234 msgnum = CAPIMSG_MSGID(skb->data); in cmtp_recv_interopmsg() 244 skb->data + CAPI_MSG_BASELEN + 11, in cmtp_recv_interopmsg() [all …]
|
/net/wireless/ |
D | lib80211_crypt_ccmp.c | 237 pos = skb->data + hdr_len + CCMP_HDR_LEN; in lib80211_ccmp_encrypt() 238 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_encrypt() 296 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in lib80211_ccmp_decrypt() 303 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_decrypt() 304 pos = skb->data + hdr_len; in lib80211_ccmp_decrypt() 373 memmove(skb->data + CCMP_HDR_LEN, skb->data, hdr_len); in lib80211_ccmp_decrypt() 382 struct lib80211_ccmp_data *data = priv; in lib80211_ccmp_set_key() local 384 struct crypto_cipher *tfm = data->tfm; in lib80211_ccmp_set_key() 386 keyidx = data->key_idx; in lib80211_ccmp_set_key() 387 memset(data, 0, sizeof(*data)); in lib80211_ccmp_set_key() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_ftp.c | 87 static int ip_vs_ftp_get_addrport(char *data, char *data_limit, in ip_vs_ftp_get_addrport() argument 97 if (data_limit - data < plen) { in ip_vs_ftp_get_addrport() 99 if (strnicmp(data, pattern, data_limit - data) == 0) in ip_vs_ftp_get_addrport() 105 if (strnicmp(data, pattern, plen) != 0) { in ip_vs_ftp_get_addrport() 108 s = data + plen; in ip_vs_ftp_get_addrport() 124 for (data = s; ; data++) { in ip_vs_ftp_get_addrport() 125 if (data == data_limit) in ip_vs_ftp_get_addrport() 127 if (*data == term) in ip_vs_ftp_get_addrport() 130 *end = data; in ip_vs_ftp_get_addrport() 133 for (data = s; ; data++) { in ip_vs_ftp_get_addrport() [all …]
|
/net/mac80211/ |
D | wep.c | 94 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_wep_add_iv() 124 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_wep_remove_iv() 128 memmove(skb->data + WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv() 137 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_encrypt_data() argument 145 icv = cpu_to_le32(~crc32_le(~0, data, data_len)); in ieee80211_wep_encrypt_data() 146 put_unaligned(icv, (__le32 *)(data + data_len)); in ieee80211_wep_encrypt_data() 150 crypto_cipher_encrypt_one(tfm, data + i, data + i); in ieee80211_wep_encrypt_data() 175 len = skb->len - (iv + WEP_IV_LEN - skb->data); in ieee80211_wep_encrypt() 195 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_decrypt_data() argument 205 crypto_cipher_decrypt_one(tfm, data + i, data + i); in ieee80211_wep_decrypt_data() [all …]
|
/net/rfkill/ |
D | core.c | 65 void *data; member 212 struct rfkill_data *data; in rfkill_send_events() local 215 list_for_each_entry(data, &rfkill_fds, list) { in rfkill_send_events() 220 mutex_lock(&data->mtx); in rfkill_send_events() 221 list_add_tail(&ev->list, &data->events); in rfkill_send_events() 222 mutex_unlock(&data->mtx); in rfkill_send_events() 223 wake_up_interruptible(&data->read_wait); in rfkill_send_events() 285 rfkill->ops->query(rfkill, rfkill->data); in rfkill_set_block() 303 err = rfkill->ops->set_block(rfkill->data, blocked); in rfkill_set_block() 887 rfkill->data = ops_data; in rfkill_alloc() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 263 #define HKEY(data, initval, htable_bits) \ argument 264 (jhash2((u32 *)(data), HKEY_DATALEN/sizeof(u32), initval) \ 367 struct htype *h = set->data; in mtype_flush() 391 struct htype *h = set->data; in mtype_destroy() 402 set->data = NULL; in mtype_destroy() 408 struct htype *h = set->data; in mtype_gc_init() 411 h->gc.data = (unsigned long) set; in mtype_gc_init() 422 const struct htype *x = a->data; in mtype_same_set() 423 const struct htype *y = b->data; in mtype_same_set() 444 struct mtype_elem *data; in mtype_expire() local [all …]
|