Home
last modified time | relevance | path

Searched refs:from (Results 1 – 25 of 89) 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()
459 const __be32 *from, const __be32 *to, in inet_proto_csum_replace16() argument
463 ~from[0], ~from[1], ~from[2], ~from[3], in inet_proto_csum_replace16()
Ddatagram.c552 struct iov_iter *from, in skb_copy_datagram_from_iter() argument
563 if (copy_from_iter(skb->data + offset, copy, from) != copy) in skb_copy_datagram_from_iter()
585 copy, from); in skb_copy_datagram_from_iter()
607 from, copy)) in skb_copy_datagram_from_iter()
624 struct iov_iter *from, size_t length) in __zerocopy_sg_from_iter() argument
628 while (length && iov_iter_count(from)) { in __zerocopy_sg_from_iter()
638 copied = iov_iter_get_pages(from, pages, length, in __zerocopy_sg_from_iter()
643 iov_iter_advance(from, copied); in __zerocopy_sg_from_iter()
678 int zerocopy_sg_from_iter(struct sk_buff *skb, struct iov_iter *from) in zerocopy_sg_from_iter() argument
680 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); in zerocopy_sg_from_iter()
[all …]
Dskbuff.c2578 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len) in skb_store_bits() argument
2590 skb_copy_to_linear_data_offset(skb, offset, from, copy); in skb_store_bits()
2594 from += copy; in skb_store_bits()
2616 memcpy(vaddr + p_off, from + copied, p_len); in skb_store_bits()
2623 from += copy; in skb_store_bits()
2638 from, copy)) in skb_store_bits()
2643 from += copy; in skb_store_bits()
2931 skb_zerocopy_headlen(const struct sk_buff *from) in skb_zerocopy_headlen() argument
2935 if (!from->head_frag || in skb_zerocopy_headlen()
2936 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.c364 static int rds_message_zcopy_from_user(struct rds_message *rm, struct iov_iter *from) in rds_message_zcopy_from_user() argument
368 int length = iov_iter_count(from); in rds_message_zcopy_from_user()
372 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_zcopy_from_user()
389 while (iov_iter_count(from)) { in rds_message_zcopy_from_user()
394 copied = iov_iter_get_pages(from, &pages, PAGE_SIZE, in rds_message_zcopy_from_user()
408 iov_iter_advance(from, copied); in rds_message_zcopy_from_user()
422 int rds_message_copy_from_user(struct rds_message *rm, struct iov_iter *from, in rds_message_copy_from_user() argument
430 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_copy_from_user()
437 return rds_message_zcopy_from_user(rm, from); in rds_message_copy_from_user()
439 while (iov_iter_count(from)) { in rds_message_copy_from_user()
[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/ipv4/
Dip_output.c553 static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) in ip_copy_metadata() argument
555 to->pkt_type = from->pkt_type; in ip_copy_metadata()
556 to->priority = from->priority; in ip_copy_metadata()
557 to->protocol = from->protocol; in ip_copy_metadata()
558 to->skb_iif = from->skb_iif; in ip_copy_metadata()
560 skb_dst_copy(to, from); in ip_copy_metadata()
561 to->dev = from->dev; in ip_copy_metadata()
562 to->mark = from->mark; in ip_copy_metadata()
564 skb_copy_hash(to, from); in ip_copy_metadata()
567 to->tc_index = from->tc_index; in ip_copy_metadata()
[all …]
/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()
Dresources.c161 static void copy_aal_stats(struct k_atm_aal_stats *from, in copy_aal_stats() argument
164 #define __HANDLE_ITEM(i) to->i = atomic_read(&from->i) in copy_aal_stats()
169 static void subtract_aal_stats(struct k_atm_aal_stats *from, in subtract_aal_stats() argument
172 #define __HANDLE_ITEM(i) atomic_sub(to->i, &from->i) in subtract_aal_stats()
/net/ipv6/
Dip6_output.c654 static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from) in ip6_copy_metadata() argument
656 to->pkt_type = from->pkt_type; in ip6_copy_metadata()
657 to->priority = from->priority; in ip6_copy_metadata()
658 to->protocol = from->protocol; in ip6_copy_metadata()
660 skb_dst_set(to, dst_clone(skb_dst(from))); in ip6_copy_metadata()
661 to->dev = from->dev; in ip6_copy_metadata()
662 to->mark = from->mark; in ip6_copy_metadata()
664 skb_copy_hash(to, from); in ip6_copy_metadata()
667 to->tc_index = from->tc_index; in ip6_copy_metadata()
669 nf_copy(to, from); in ip6_copy_metadata()
[all …]
Droute.c371 struct fib6_info *from; in ip6_dst_destroy() local
383 from = xchg((__force struct fib6_info **)&rt->from, NULL); in ip6_dst_destroy()
384 fib6_info_release(from); in ip6_dst_destroy()
414 struct fib6_info *from; in rt6_check_expired() local
416 from = rcu_dereference(rt->from); in rt6_check_expired()
421 } else if (from) { in rt6_check_expired()
423 fib6_check_expired(from); in rt6_check_expired()
1126 static void rt6_set_from(struct rt6_info *rt, struct fib6_info *from) in rt6_set_from() argument
1129 rcu_assign_pointer(rt->from, from); in rt6_set_from()
1130 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()
678 int type, struct sockaddr_qrtr *from, in qrtr_local_enqueue() argument
691 cb->src_node = from->sq_node; in qrtr_local_enqueue()
692 cb->src_port = from->sq_port; in qrtr_local_enqueue()
707 int type, struct sockaddr_qrtr *from, in qrtr_bcast_enqueue() argument
718 qrtr_node_enqueue(node, skbn, type, from, to); in qrtr_bcast_enqueue()
[all …]
Dtun.c85 static ssize_t qrtr_tun_write_iter(struct kiocb *iocb, struct iov_iter *from) in qrtr_tun_write_iter() argument
89 size_t len = iov_iter_count(from); in qrtr_tun_write_iter()
103 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.c124 vlan_dev_set_ingress_priority(dev, m->to, m->from); in vlan_changelink()
132 err = vlan_dev_set_egress_priority(dev, m->from, m->to); in vlan_changelink()
244 m.from = i; in vlan_fill_info()
264 m.from = pm->priority; in vlan_fill_info()
/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.c97 struct sctp_transport *from; in inet_diag_msg_sctpaddrs_fill() local
107 list_for_each_entry(from, &asoc->peer.transport_addr_list, in inet_diag_msg_sctpaddrs_fill()
109 memcpy(info, &from->ipaddr, sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill()
110 memset(info + sizeof(from->ipaddr), 0, in inet_diag_msg_sctpaddrs_fill()
111 addrlen - sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill()

1234