Home
last modified time | relevance | path

Searched refs:from (Results 1 – 25 of 91) sorted by relevance

1234

/net/core/
Ddev_addr_lists.c633 int dev_uc_sync(struct net_device *to, struct net_device *from) in dev_uc_sync() argument
637 if (to->addr_len != from->addr_len) in dev_uc_sync()
641 err = __hw_addr_sync(&to->uc, &from->uc, to->addr_len); in dev_uc_sync()
663 int dev_uc_sync_multiple(struct net_device *to, struct net_device *from) in dev_uc_sync_multiple() argument
667 if (to->addr_len != from->addr_len) in dev_uc_sync_multiple()
671 err = __hw_addr_sync_multiple(&to->uc, &from->uc, to->addr_len); in dev_uc_sync_multiple()
688 void dev_uc_unsync(struct net_device *to, struct net_device *from) in dev_uc_unsync() argument
690 if (to->addr_len != from->addr_len) in dev_uc_unsync()
693 netif_addr_lock_bh(from); in dev_uc_unsync()
695 __hw_addr_unsync(&to->uc, &from->uc, to->addr_len); in dev_uc_unsync()
[all …]
Dutils.c426 __be32 from, __be32 to, bool pseudohdr) in inet_proto_csum_replace4() argument
429 csum_replace4(sum, from, to); in inet_proto_csum_replace4()
432 (__force __wsum)from), in inet_proto_csum_replace4()
436 (__force __wsum)from), in inet_proto_csum_replace4()
442 const __be32 *from, const __be32 *to, in inet_proto_csum_replace16() argument
446 ~from[0], ~from[1], ~from[2], ~from[3], in inet_proto_csum_replace16()
Ddatagram.c544 struct iov_iter *from, in skb_copy_datagram_from_iter() argument
555 if (copy_from_iter(skb->data + offset, copy, from) != copy) in skb_copy_datagram_from_iter()
577 copy, from); in skb_copy_datagram_from_iter()
599 from, copy)) in skb_copy_datagram_from_iter()
616 struct iov_iter *from, size_t length) in __zerocopy_sg_from_iter() argument
620 while (length && iov_iter_count(from)) { in __zerocopy_sg_from_iter()
630 copied = iov_iter_get_pages(from, pages, length, in __zerocopy_sg_from_iter()
635 iov_iter_advance(from, copied); in __zerocopy_sg_from_iter()
670 int zerocopy_sg_from_iter(struct sk_buff *skb, struct iov_iter *from) in zerocopy_sg_from_iter() argument
672 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); in zerocopy_sg_from_iter()
[all …]
Dskbuff.c2550 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len) in skb_store_bits() argument
2562 skb_copy_to_linear_data_offset(skb, offset, from, copy); in skb_store_bits()
2566 from += copy; in skb_store_bits()
2588 memcpy(vaddr + p_off, from + copied, p_len); in skb_store_bits()
2595 from += copy; in skb_store_bits()
2610 from, copy)) in skb_store_bits()
2615 from += copy; in skb_store_bits()
2903 skb_zerocopy_headlen(const struct sk_buff *from) in skb_zerocopy_headlen() argument
2907 if (!from->head_frag || in skb_zerocopy_headlen()
2908 skb_headlen(from) < L1_CACHE_BYTES || in skb_zerocopy_headlen()
[all …]
/net/netfilter/ipvs/
Dip_vs_ftp.c254 union nf_inet_addr from; in ip_vs_ftp_out() local
284 &from, &port, cp->af, in ip_vs_ftp_out()
289 &from.ip, ntohs(port), &cp->caddr.ip, 0); in ip_vs_ftp_out()
300 from = cp->daddr; in ip_vs_ftp_out()
305 &from, &port, cp->af, in ip_vs_ftp_out()
310 IP_VS_DBG_ADDR(cp->af, &from), ntohs(port), in ip_vs_ftp_out()
321 ipvsh->protocol, &from, port, in ip_vs_ftp_out()
331 n_cp = ip_vs_conn_new(&p, cp->af, &from, port, in ip_vs_ftp_out()
344 from.ip = n_cp->vaddr.ip; in ip_vs_ftp_out()
347 ((unsigned char *)&from.ip)[0], in ip_vs_ftp_out()
[all …]
/net/ipv4/netfilter/
Dnf_nat_snmp_basic_main.c63 __be32 from; member
73 memcpy(&s[1], &ctx->from, 4); in fast_csum()
83 memcpy(&s[0], &ctx->from, 4); in fast_csum()
114 if (*pdata == ctx->from) { in snmp_helper()
116 (void *)&ctx->from, (void *)&ctx->to); in snmp_helper()
136 ctx.from = ct->tuplehash[dir].tuple.src.u3.ip; in snmp_translate()
139 ctx.from = ct->tuplehash[!dir].tuple.src.u3.ip; in snmp_translate()
143 if (ctx.from == ctx.to) in snmp_translate()
/net/rds/
Dmessage.c370 static int rds_message_zcopy_from_user(struct rds_message *rm, struct iov_iter *from) in rds_message_zcopy_from_user() argument
374 int length = iov_iter_count(from); in rds_message_zcopy_from_user()
378 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_zcopy_from_user()
395 while (iov_iter_count(from)) { in rds_message_zcopy_from_user()
400 copied = iov_iter_get_pages(from, &pages, PAGE_SIZE, in rds_message_zcopy_from_user()
414 iov_iter_advance(from, copied); in rds_message_zcopy_from_user()
428 int rds_message_copy_from_user(struct rds_message *rm, struct iov_iter *from, in rds_message_copy_from_user() argument
436 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_copy_from_user()
443 return rds_message_zcopy_from_user(rm, from); in rds_message_copy_from_user()
445 while (iov_iter_count(from)) { in rds_message_copy_from_user()
[all …]
/net/ipv4/
Dip_output.c544 static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) in ip_copy_metadata() argument
546 to->pkt_type = from->pkt_type; in ip_copy_metadata()
547 to->priority = from->priority; in ip_copy_metadata()
548 to->protocol = from->protocol; in ip_copy_metadata()
549 to->skb_iif = from->skb_iif; in ip_copy_metadata()
551 skb_dst_copy(to, from); in ip_copy_metadata()
552 to->dev = from->dev; in ip_copy_metadata()
553 to->mark = from->mark; in ip_copy_metadata()
555 skb_copy_hash(to, from); in ip_copy_metadata()
558 to->tc_index = from->tc_index; in ip_copy_metadata()
[all …]
/net/netfilter/ipset/
Dpfxlen.c172 ip_set_range_to_cidr(u32 from, u32 to, u8 *cidr) in ip_set_range_to_cidr() argument
178 if ((from & ip_set_hostmask(i)) != from) in ip_set_range_to_cidr()
180 last = from | ~ip_set_hostmask(i); in ip_set_range_to_cidr()
187 return from; in ip_set_range_to_cidr()
/net/x25/
Dx25_forward.c17 int x25_forward_call(struct x25_address *dest_addr, struct x25_neigh *from, in x25_forward_call() argument
41 if (rt->dev == from->dev) { in x25_forward_call()
67 new_frwd->dev2 = from->dev; in x25_forward_call()
92 int x25_forward_data(int lci, struct x25_neigh *from, struct sk_buff *skb) { in x25_forward_data() argument
106 if (from->dev == frwd->dev1) { in x25_forward_data()
/net/atm/
Datm_misc.c88 void sonet_copy_stats(struct k_sonet_stats *from, struct sonet_stats *to) in sonet_copy_stats() argument
90 #define __HANDLE_ITEM(i) to->i = atomic_read(&from->i) in sonet_copy_stats()
96 void sonet_subtract_stats(struct k_sonet_stats *from, struct sonet_stats *to) in sonet_subtract_stats() argument
98 #define __HANDLE_ITEM(i) atomic_sub(to->i, &from->i) in sonet_subtract_stats()
/net/ipv6/
Dip6_output.c579 static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from) in ip6_copy_metadata() argument
581 to->pkt_type = from->pkt_type; in ip6_copy_metadata()
582 to->priority = from->priority; in ip6_copy_metadata()
583 to->protocol = from->protocol; in ip6_copy_metadata()
585 skb_dst_set(to, dst_clone(skb_dst(from))); in ip6_copy_metadata()
586 to->dev = from->dev; in ip6_copy_metadata()
587 to->mark = from->mark; in ip6_copy_metadata()
589 skb_copy_hash(to, from); in ip6_copy_metadata()
592 to->tc_index = from->tc_index; in ip6_copy_metadata()
594 nf_copy(to, from); in ip6_copy_metadata()
[all …]
Droute.c370 struct fib6_info *from; in ip6_dst_destroy() local
382 from = xchg((__force struct fib6_info **)&rt->from, NULL); in ip6_dst_destroy()
383 fib6_info_release(from); in ip6_dst_destroy()
413 struct fib6_info *from; in rt6_check_expired() local
415 from = rcu_dereference(rt->from); in rt6_check_expired()
420 } else if (from) { in rt6_check_expired()
422 fib6_check_expired(from); in rt6_check_expired()
1122 static void rt6_set_from(struct rt6_info *rt, struct fib6_info *from) in rt6_set_from() argument
1125 rcu_assign_pointer(rt->from, from); in rt6_set_from()
1126 ip_dst_init_metrics(&rt->dst, from->fib6_metrics); in rt6_set_from()
[all …]
/net/caif/
Dcfpkt_skbuff.c122 u8 *from; in cfpkt_extr_head() local
137 from = skb_pull(skb, len); in cfpkt_extr_head()
138 from -= len; in cfpkt_extr_head()
140 memcpy(data, from, len); in cfpkt_extr_head()
149 u8 *from; in cfpkt_extr_trail() local
161 from = skb_tail_pointer(skb) - len; in cfpkt_extr_trail()
163 memcpy(data, from, len); in cfpkt_extr_trail()
/net/dccp/
Doptions.c405 const unsigned char *tail, *from; in dccp_insert_option_ackvec() local
430 from = av->av_buf + av->av_buf_head; in dccp_insert_option_ackvec()
449 if (from + copylen > tail) { in dccp_insert_option_ackvec()
450 const u16 tailsize = tail - from; in dccp_insert_option_ackvec()
452 memcpy(to, from, tailsize); in dccp_insert_option_ackvec()
456 from = av->av_buf; in dccp_insert_option_ackvec()
459 memcpy(to, from, copylen); in dccp_insert_option_ackvec()
460 from += copylen; in dccp_insert_option_ackvec()
/net/sched/
Dem_text.c32 int from, to; in em_text_match() local
34 from = tcf_get_base_ptr(skb, tm->from_layer) - skb->data; in em_text_match()
35 from += tm->from_offset; in em_text_match()
40 return skb_find_text(skb, from, to, tm->config) != UINT_MAX; in em_text_match()
/net/ipv6/ila/
Dila.h84 static inline __wsum compute_csum_diff8(const __be32 *from, const __be32 *to) in compute_csum_diff8() argument
87 ~from[0], ~from[1], to[0], to[1], in compute_csum_diff8()
/net/qrtr/
Dqrtr.c132 int type, struct sockaddr_qrtr *from,
135 int type, struct sockaddr_qrtr *from,
176 int type, struct sockaddr_qrtr *from, in qrtr_node_enqueue() argument
186 hdr->src_node_id = cpu_to_le32(from->sq_node); in qrtr_node_enqueue()
187 hdr->src_port_id = cpu_to_le32(from->sq_port); in qrtr_node_enqueue()
670 int type, struct sockaddr_qrtr *from, in qrtr_local_enqueue() argument
683 cb->src_node = from->sq_node; in qrtr_local_enqueue()
684 cb->src_port = from->sq_port; in qrtr_local_enqueue()
699 int type, struct sockaddr_qrtr *from, in qrtr_bcast_enqueue() argument
710 qrtr_node_enqueue(node, skbn, type, from, to); in qrtr_bcast_enqueue()
[all …]
Dtun.c75 static ssize_t qrtr_tun_write_iter(struct kiocb *iocb, struct iov_iter *from) in qrtr_tun_write_iter() argument
79 size_t len = iov_iter_count(from); in qrtr_tun_write_iter()
87 if (!copy_from_iter_full(kbuf, len, from)) { in qrtr_tun_write_iter()
/net/netfilter/
Dxt_connbytes.c92 if (sinfo->count.to >= sinfo->count.from) in connbytes_mt()
93 return what <= sinfo->count.to && what >= sinfo->count.from; in connbytes_mt()
95 return what < sinfo->count.to || what > sinfo->count.from; in connbytes_mt()
/net/ceph/
Dceph_common.c425 argstr[0].from); in ceph_parse_options()
431 err = ceph_parse_ips(argstr[0].from, in ceph_parse_options()
441 err = parse_fsid(argstr[0].from, &opt->fsid); in ceph_parse_options()
447 opt->name = kstrndup(argstr[0].from, in ceph_parse_options()
448 argstr[0].to-argstr[0].from, in ceph_parse_options()
464 err = ceph_crypto_key_unarmor(opt->key, argstr[0].from); in ceph_parse_options()
477 err = get_secret(opt->key, argstr[0].from); in ceph_parse_options()
/net/8021q/
Dvlan_netlink.c122 vlan_dev_set_ingress_priority(dev, m->to, m->from); in vlan_changelink()
128 err = vlan_dev_set_egress_priority(dev, m->from, m->to); in vlan_changelink()
240 m.from = i; in vlan_fill_info()
260 m.from = pm->priority; in vlan_fill_info()
/net/dsa/
Dtag_8021q.c331 u8 *from = skb_mac_header(skb); in dsa_8021q_remove_header() local
332 u8 *dest = from + VLAN_HLEN; in dsa_8021q_remove_header()
334 memmove(dest, from, ETH_HLEN - VLAN_HLEN); in dsa_8021q_remove_header()
/net/ax25/
DKconfig41 contained in the AX25-HOWTO, available from
58 from clients (called "slaves") and redistributes it to other slaves.
73 from clients (called "slaves") and redistributes it to other slaves.
89 contained in the Linux Ham Wiki, available from
108 contained in the Linux Ham Wiki, available from
/net/sctp/
Ddiag.c101 struct sctp_transport *from; in inet_diag_msg_sctpaddrs_fill() local
111 list_for_each_entry(from, &asoc->peer.transport_addr_list, in inet_diag_msg_sctpaddrs_fill()
113 memcpy(info, &from->ipaddr, sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill()
114 memset(info + sizeof(from->ipaddr), 0, in inet_diag_msg_sctpaddrs_fill()
115 addrlen - sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill()

1234