Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 28) sorted by relevance

12

/net/batman-adv/
Dsysfs.c138 struct attribute *attr, char *buff, \
146 length = __batadv_store_bool_attr(buff, count, _post_func, attr,\
156 struct attribute *attr, char *buff) \
161 return sprintf(buff, "%s\n", \
177 struct attribute *attr, char *buff, \
185 length = __batadv_store_uint_attr(buff, count, _min, _max, \
197 struct attribute *attr, char *buff) \
202 return sprintf(buff, "%i\n", atomic_read(&bat_priv->_var)); \
216 struct attribute *attr, char *buff, \
222 size_t res = __batadv_store_bool_attr(buff, count, _post_func, \
[all …]
Dgateway_common.c36 bool batadv_parse_throughput(struct net_device *net_dev, char *buff, in batadv_parse_throughput() argument
44 if (strlen(buff) > 4) { in batadv_parse_throughput()
45 tmp_ptr = buff + strlen(buff) - 4; in batadv_parse_throughput()
55 ret = kstrtou64(buff, 10, &lthroughput); in batadv_parse_throughput()
59 description, buff); in batadv_parse_throughput()
69 description, buff); in batadv_parse_throughput()
84 description, buff); in batadv_parse_throughput()
103 static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff, in batadv_parse_gw_bandwidth() argument
109 slash_ptr = strchr(buff, '/'); in batadv_parse_gw_bandwidth()
113 ret = batadv_parse_throughput(net_dev, buff, "download gateway speed", in batadv_parse_gw_bandwidth()
[all …]
Dgateway_common.h30 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
35 bool batadv_parse_throughput(struct net_device *net_dev, char *buff,
Dbat_v.c670 char *buff, size_t count) in batadv_v_store_sel_class() argument
674 if (!batadv_parse_throughput(bat_priv->soft_iface, buff, in batadv_v_store_sel_class()
688 static ssize_t batadv_v_show_sel_class(struct batadv_priv *bat_priv, char *buff) in batadv_v_show_sel_class() argument
692 return sprintf(buff, "%u.%u MBit\n", class / 10, class % 10); in batadv_v_show_sel_class()
Dicmp_socket.c167 static ssize_t batadv_socket_write(struct file *file, const char __user *buff, in batadv_socket_write() argument
209 if (copy_from_user(icmp_header, buff, packet_len)) { in batadv_socket_write()
Dtypes.h2272 ssize_t (*store_sel_class)(struct batadv_priv *bat_priv, char *buff,
2276 ssize_t (*show_sel_class)(struct batadv_priv *bat_priv, char *buff);
/net/netrom/
Dnr_dev.c69 unsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN); in nr_header() local
71 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); in nr_header()
72 buff[6] &= ~AX25_CBIT; in nr_header()
73 buff[6] &= ~AX25_EBIT; in nr_header()
74 buff[6] |= AX25_SSSID_SPARE; in nr_header()
75 buff += AX25_ADDR_LEN; in nr_header()
78 memcpy(buff, daddr, dev->addr_len); in nr_header()
79 buff[6] &= ~AX25_CBIT; in nr_header()
80 buff[6] |= AX25_EBIT; in nr_header()
81 buff[6] |= AX25_SSSID_SPARE; in nr_header()
[all …]
/net/ax25/
Dax25_ip.c49 unsigned char *buff; in ax25_hard_header() local
56 buff = skb_push(skb, AX25_HEADER_LEN); in ax25_hard_header()
57 *buff++ = 0x00; /* KISS DATA */ in ax25_hard_header()
60 memcpy(buff, daddr, dev->addr_len); /* Address specified */ in ax25_hard_header()
62 buff[6] &= ~AX25_CBIT; in ax25_hard_header()
63 buff[6] &= ~AX25_EBIT; in ax25_hard_header()
64 buff[6] |= AX25_SSSID_SPARE; in ax25_hard_header()
65 buff += AX25_ADDR_LEN; in ax25_hard_header()
68 memcpy(buff, saddr, dev->addr_len); in ax25_hard_header()
70 memcpy(buff, dev->dev_addr, dev->addr_len); in ax25_hard_header()
[all …]
/net/rose/
Drose_dev.c39 unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2); in rose_header() local
42 memcpy(buff + 7, daddr, dev->addr_len); in rose_header()
44 *buff++ = ROSE_GFI | ROSE_Q_BIT; in rose_header()
45 *buff++ = 0x00; in rose_header()
46 *buff++ = ROSE_DATA; in rose_header()
47 *buff++ = 0x7F; in rose_header()
48 *buff++ = AX25_P_IP; in rose_header()
/net/ipv4/
Dtcp_output.c1284 struct sk_buff *buff, in tcp_insert_write_queue_after() argument
1289 __skb_queue_after(&sk->sk_write_queue, skb, buff); in tcp_insert_write_queue_after()
1291 tcp_rbtree_insert(&sk->tcp_rtx_queue, buff); in tcp_insert_write_queue_after()
1304 struct sk_buff *buff; in tcp_fragment() local
1335 buff = sk_stream_alloc_skb(sk, nsize, gfp, true); in tcp_fragment()
1336 if (!buff) in tcp_fragment()
1338 skb_copy_decrypted(buff, skb); in tcp_fragment()
1340 sk_wmem_queued_add(sk, buff->truesize); in tcp_fragment()
1341 sk_mem_charge(sk, buff->truesize); in tcp_fragment()
1343 buff->truesize += nlen; in tcp_fragment()
[all …]
Dproc.c396 unsigned long buff[TCPUDP_MIB_MAX]; in snmp_seq_show_tcp_udp() local
400 memset(buff, 0, TCPUDP_MIB_MAX * sizeof(unsigned long)); in snmp_seq_show_tcp_udp()
407 snmp_get_cpu_field_batch(buff, snmp4_tcp_list, in snmp_seq_show_tcp_udp()
412 seq_printf(seq, " %ld", buff[i]); in snmp_seq_show_tcp_udp()
414 seq_printf(seq, " %lu", buff[i]); in snmp_seq_show_tcp_udp()
417 memset(buff, 0, TCPUDP_MIB_MAX * sizeof(unsigned long)); in snmp_seq_show_tcp_udp()
419 snmp_get_cpu_field_batch(buff, snmp4_udp_list, in snmp_seq_show_tcp_udp()
426 seq_printf(seq, " %lu", buff[i]); in snmp_seq_show_tcp_udp()
428 memset(buff, 0, TCPUDP_MIB_MAX * sizeof(unsigned long)); in snmp_seq_show_tcp_udp()
432 snmp_get_cpu_field_batch(buff, snmp4_udp_list, in snmp_seq_show_tcp_udp()
[all …]
/net/atm/
Dmpoa_proc.c51 static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
54 static int parse_qos(const char *buff);
209 static ssize_t proc_mpc_write(struct file *file, const char __user *buff, in proc_mpc_write() argument
226 if (get_user(*p, buff++)) { in proc_mpc_write()
244 static int parse_qos(const char *buff) in parse_qos() argument
256 if (sscanf(buff, "del %hhu.%hhu.%hhu.%hhu", in parse_qos()
262 if (sscanf(buff, "add %hhu.%hhu.%hhu.%hhu tx=%d,%d rx=tx", in parse_qos()
266 } else if (sscanf(buff, "add %hhu.%hhu.%hhu.%hhu tx=%d,%d rx=%d,%d", in parse_qos()
Dlec.c131 char *buff; in lec_handle_bridge() local
139 buff = skb->data + skb->dev->hard_header_len; in lec_handle_bridge()
140 if (*buff++ == 0x42 && *buff++ == 0x42 && *buff++ == 0x03) { in lec_handle_bridge()
151 buff += 4; in lec_handle_bridge()
152 mesg->content.normal.flag = *buff & 0x01; in lec_handle_bridge()
Dmpc.c496 char *buff; in send_via_shortcut() local
507 buff = skb->data + mpc->dev->hard_header_len; in send_via_shortcut()
508 iph = (struct iphdr *)buff; in send_via_shortcut()
/net/netfilter/ipvs/
Dip_vs_sync.c548 struct ip_vs_sync_buff *buff; in ip_vs_sync_conn_v0() local
570 buff = ms->sync_buff; in ip_vs_sync_conn_v0()
573 if (buff) { in ip_vs_sync_conn_v0()
574 m = (struct ip_vs_sync_mesg_v0 *) buff->mesg; in ip_vs_sync_conn_v0()
576 if (buff->head + len > buff->end || !m->nr_conns) { in ip_vs_sync_conn_v0()
579 buff = NULL; in ip_vs_sync_conn_v0()
582 if (!buff) { in ip_vs_sync_conn_v0()
583 buff = ip_vs_sync_buff_create_v0(ipvs, len); in ip_vs_sync_conn_v0()
584 if (!buff) { in ip_vs_sync_conn_v0()
589 ms->sync_buff = buff; in ip_vs_sync_conn_v0()
[all …]
/net/xfrm/
Dxfrm_proc.c49 unsigned long buff[LINUX_MIB_XFRMMAX]; in xfrm_statistics_seq_show() local
53 memset(buff, 0, sizeof(unsigned long) * LINUX_MIB_XFRMMAX); in xfrm_statistics_seq_show()
55 snmp_get_cpu_field_batch(buff, xfrm_mib_list, in xfrm_statistics_seq_show()
59 buff[i]); in xfrm_statistics_seq_show()
/net/netfilter/
Dnft_exthdr.c183 u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE]; in nft_exthdr_tcp_eval() local
190 tcph = nft_tcp_header_pointer(pkt, sizeof(buff), buff, &tcphdr_len); in nft_exthdr_tcp_eval()
226 u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE]; in nft_exthdr_tcp_set_eval() local
233 tcph = nft_tcp_header_pointer(pkt, sizeof(buff), buff, &tcphdr_len); in nft_exthdr_tcp_set_eval()
257 tcph = nft_tcp_header_pointer(pkt, sizeof(buff), buff, in nft_exthdr_tcp_set_eval()
Dnf_conntrack_proto_tcp.c346 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_options() local
354 length, buff); in tcp_options()
401 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_sack() local
410 length, buff); in tcp_sack()
/net/ipv6/
Dproc.c183 unsigned long buff[SNMP_MIB_MAX]; in snmp6_seq_show_item() local
187 memset(buff, 0, sizeof(unsigned long) * SNMP_MIB_MAX); in snmp6_seq_show_item()
189 snmp_get_cpu_field_batch(buff, itemlist, pcpumib); in snmp6_seq_show_item()
192 itemlist[i].name, buff[i]); in snmp6_seq_show_item()
Dtcp_ipv6.c812 struct sk_buff *buff; in tcp_v6_send_response() local
828 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len, in tcp_v6_send_response()
830 if (!buff) in tcp_v6_send_response()
833 skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); in tcp_v6_send_response()
835 t1 = skb_push(buff, tot_len); in tcp_v6_send_response()
836 skb_reset_transport_header(buff); in tcp_v6_send_response()
873 buff->ip_summed = CHECKSUM_PARTIAL; in tcp_v6_send_response()
874 buff->csum = 0; in tcp_v6_send_response()
876 __tcp_v6_send_check(buff, &fl6.saddr, &fl6.daddr); in tcp_v6_send_response()
892 skb_set_hash(buff, inet_twsk(sk)->tw_txhash, in tcp_v6_send_response()
[all …]
Dndisc.c1583 struct sk_buff *buff; in ndisc_send_redirect() local
1667 buff = ndisc_alloc_skb(dev, sizeof(*msg) + optlen); in ndisc_send_redirect()
1668 if (!buff) in ndisc_send_redirect()
1671 msg = skb_put(buff, sizeof(*msg)); in ndisc_send_redirect()
1685 ndisc_fill_redirect_addr_option(buff, ha, ops_data); in ndisc_send_redirect()
1692 ndisc_fill_redirect_hdr_option(buff, skb, rd_len); in ndisc_send_redirect()
1694 skb_dst_set(buff, dst); in ndisc_send_redirect()
1695 ndisc_send_skb(buff, &ipv6_hdr(skb)->saddr, &saddr_buf); in ndisc_send_redirect()
/net/sctp/
Dproc.c61 unsigned long buff[SCTP_MIB_MAX]; in sctp_snmp_seq_show() local
65 memset(buff, 0, sizeof(unsigned long) * SCTP_MIB_MAX); in sctp_snmp_seq_show()
67 snmp_get_cpu_field_batch(buff, sctp_snmp_list, in sctp_snmp_seq_show()
71 buff[i]); in sctp_snmp_seq_show()
/net/
Dsocket.c1922 int __sys_sendto(int fd, void __user *buff, size_t len, unsigned int flags, in __sys_sendto() argument
1932 err = import_single_range(WRITE, buff, len, &iov, &msg.msg_iter); in __sys_sendto()
1961 SYSCALL_DEFINE6(sendto, int, fd, void __user *, buff, size_t, len, in SYSCALL_DEFINE6() argument
1965 return __sys_sendto(fd, buff, len, flags, addr, addr_len); in SYSCALL_DEFINE6()
1972 SYSCALL_DEFINE4(send, int, fd, void __user *, buff, size_t, len, in SYSCALL_DEFINE4() argument
1975 return __sys_sendto(fd, buff, len, flags, NULL, 0); in SYSCALL_DEFINE4()
/net/packet/
Daf_packet.c189 static void packet_increment_head(struct packet_ring_buffer *buff);
1151 static void packet_increment_head(struct packet_ring_buffer *buff) in packet_increment_head() argument
1153 buff->head = buff->head != buff->frame_max ? buff->head+1 : 0; in packet_increment_head()
/net/core/
Dneighbour.c1152 struct sk_buff *buff; in __neigh_event_send() local
1154 buff = __skb_dequeue(&neigh->arp_queue); in __neigh_event_send()
1155 if (!buff) in __neigh_event_send()
1157 neigh->arp_queue_len_bytes -= buff->truesize; in __neigh_event_send()
1158 kfree_skb(buff); in __neigh_event_send()

12