/net/bridge/ |
H A D | br_stp_bpdu.c | 78 unsigned char buf[35]; local 83 buf[0] = 0; 84 buf[1] = 0; 85 buf[2] = 0; 86 buf[3] = BPDU_TYPE_CONFIG; 87 buf[4] = (bpdu->topology_change ? 0x01 : 0) | 89 buf[5] = bpdu->root.prio[0]; 90 buf[6] = bpdu->root.prio[1]; 91 buf[7] = bpdu->root.addr[0]; 92 buf[ 123 unsigned char buf[4]; local 146 const unsigned char *buf; local [all...] |
H A D | br_sysfs_br.c | 32 const char *buf, size_t len, 43 val = simple_strtoul(buf, &endp, 0); 44 if (endp == buf) 53 struct device_attribute *attr, char *buf) 56 return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->forward_delay)); 61 const char *buf, size_t len) 63 return store_bridge_parm(d, buf, len, br_set_forward_delay); 68 char *buf) 70 return sprintf(buf, "%lu\n", 75 struct device_attribute *attr, const char *buf, 31 store_bridge_parm(struct device *d, const char *buf, size_t len, int (*set)(struct net_bridge *, unsigned long)) argument 52 forward_delay_show(struct device *d, struct device_attribute *attr, char *buf) argument 59 forward_delay_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 67 hello_time_show(struct device *d, struct device_attribute *attr, char *buf) argument 74 hello_time_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 82 max_age_show(struct device *d, struct device_attribute *attr, char *buf) argument 89 max_age_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 96 ageing_time_show(struct device *d, struct device_attribute *attr, char *buf) argument 109 ageing_time_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 117 stp_state_show(struct device *d, struct device_attribute *attr, char *buf) argument 125 stp_state_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 149 group_fwd_mask_show(struct device *d, struct device_attribute *attr, char *buf) argument 158 group_fwd_mask_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 183 priority_show(struct device *d, struct device_attribute *attr, char *buf) argument 197 priority_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 204 root_id_show(struct device *d, struct device_attribute *attr, char *buf) argument 211 bridge_id_show(struct device *d, struct device_attribute *attr, char *buf) argument 218 root_port_show(struct device *d, struct device_attribute *attr, char *buf) argument 225 root_path_cost_show(struct device *d, struct device_attribute *attr, char *buf) argument 232 topology_change_show(struct device *d, struct device_attribute *attr, char *buf) argument 239 topology_change_detected_show(struct device *d, struct device_attribute *attr, char *buf) argument 248 hello_timer_show(struct device *d, struct device_attribute *attr, char *buf) argument 256 tcn_timer_show(struct device *d, struct device_attribute *attr, char *buf) argument 264 topology_change_timer_show(struct device *d, struct device_attribute *attr, char *buf) argument 273 gc_timer_show(struct device *d, struct device_attribute *attr, char *buf) argument 281 group_addr_show(struct device *d, struct device_attribute *attr, char *buf) argument 291 group_addr_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 333 flush_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 348 multicast_router_show(struct device *d, struct device_attribute *attr, char *buf) argument 355 multicast_router_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 363 multicast_snooping_show(struct device *d, struct device_attribute *attr, char *buf) argument 371 multicast_snooping_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 379 multicast_query_use_ifaddr_show(struct device *d, struct device_attribute *attr, char *buf) argument 394 multicast_query_use_ifaddr_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 402 multicast_querier_show(struct device *d, struct device_attribute *attr, char *buf) argument 410 multicast_querier_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 418 hash_elasticity_show(struct device *d, struct device_attribute *attr, char *buf) argument 431 hash_elasticity_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 439 hash_max_show(struct device *d, struct device_attribute *attr, char *buf) argument 446 hash_max_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 453 multicast_last_member_count_show(struct device *d, struct device_attribute *attr, char *buf) argument 467 multicast_last_member_count_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 475 multicast_startup_query_count_show( struct device *d, struct device_attribute *attr, char *buf) argument 488 multicast_startup_query_count_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 496 multicast_last_member_interval_show( struct device *d, struct device_attribute *attr, char *buf) argument 510 multicast_last_member_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 518 multicast_membership_interval_show( struct device *d, struct device_attribute *attr, char *buf) argument 532 multicast_membership_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 540 multicast_querier_interval_show(struct device *d, struct device_attribute *attr, char *buf) argument 555 multicast_querier_interval_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 563 multicast_query_interval_show(struct device *d, struct device_attribute *attr, char *buf) argument 578 multicast_query_interval_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 586 multicast_query_response_interval_show( struct device *d, struct device_attribute *attr, char *buf) argument 601 multicast_query_response_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 609 multicast_startup_query_interval_show( struct device *d, struct device_attribute *attr, char *buf) argument 624 multicast_startup_query_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 633 nf_call_iptables_show( struct device *d, struct device_attribute *attr, char *buf) argument 646 nf_call_iptables_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 654 nf_call_ip6tables_show( struct device *d, struct device_attribute *attr, char *buf) argument 667 nf_call_ip6tables_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 675 nf_call_arptables_show( struct device *d, struct device_attribute *attr, char *buf) argument 688 nf_call_arptables_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 697 vlan_filtering_show(struct device *d, struct device_attribute *attr, char *buf) argument 705 vlan_filtering_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 713 vlan_protocol_show(struct device *d, struct device_attribute *attr, char *buf) argument 721 vlan_protocol_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 729 default_pvid_show(struct device *d, struct device_attribute *attr, char *buf) argument 737 default_pvid_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument 806 brforward_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument [all...] |
H A D | br_sysfs_if.c | 38 static ssize_t show_##_name(struct net_bridge_port *p, char *buf) \ 40 return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ 69 static ssize_t show_path_cost(struct net_bridge_port *p, char *buf) argument 71 return sprintf(buf, "%d\n", p->path_cost); 77 static ssize_t show_priority(struct net_bridge_port *p, char *buf) argument 79 return sprintf(buf, "%d\n", p->priority); 85 static ssize_t show_designated_root(struct net_bridge_port *p, char *buf) argument 87 return br_show_bridge_id(buf, &p->designated_root); 91 static ssize_t show_designated_bridge(struct net_bridge_port *p, char *buf) argument 93 return br_show_bridge_id(buf, 97 show_designated_port(struct net_bridge_port *p, char *buf) argument 103 show_designated_cost(struct net_bridge_port *p, char *buf) argument 109 show_port_id(struct net_bridge_port *p, char *buf) argument 115 show_port_no(struct net_bridge_port *p, char *buf) argument 122 show_change_ack(struct net_bridge_port *p, char *buf) argument 128 show_config_pending(struct net_bridge_port *p, char *buf) argument 134 show_port_state(struct net_bridge_port *p, char *buf) argument 140 show_message_age_timer(struct net_bridge_port *p, char *buf) argument 147 show_forward_delay_timer(struct net_bridge_port *p, char *buf) argument 154 show_hold_timer(struct net_bridge_port *p, char *buf) argument 175 show_multicast_router(struct net_bridge_port *p, char *buf) argument 222 brport_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 231 brport_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument [all...] |
/net/sunrpc/auth_gss/ |
H A D | gss_generic_token.c | 96 der_write_length(unsigned char **buf, int length) argument 99 *(*buf)++ = (unsigned char) length; 101 *(*buf)++ = (unsigned char) (der_length_size(length)+127); 104 *(*buf)++ = (unsigned char) (length>>24); 106 *(*buf)++ = (unsigned char) ((length>>16)&0xff); 109 *(*buf)++ = (unsigned char) ((length>>8)&0xff); 110 *(*buf)++ = (unsigned char) (length&0xff); 114 /* returns decoded length, or < 0 on failure. Advances buf and 118 der_read_length(unsigned char **buf, int *bufsize) argument 125 sf = *(*buf) 160 g_make_token_header(struct xdr_netobj *mech, int body_size, unsigned char **buf) argument 183 unsigned char *buf = *buf_in; local [all...] |
H A D | gss_krb5_wrap.c | 49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) argument 51 int padding = gss_krb5_padding(blocksize, buf->len - offset); 55 if (buf->page_len || buf->tail[0].iov_len) 56 iov = &buf->tail[0]; 58 iov = &buf->head[0]; 61 buf->len += padding; 66 gss_krb5_remove_padding(struct xdr_buf *buf, int blocksize) argument 70 size_t len = buf->len; 72 if (len <= buf 158 gss_wrap_kerberos_v1(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf, struct page **pages) argument 266 gss_unwrap_kerberos_v1(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf) argument 401 rotate_buf_a_little(struct xdr_buf *buf, unsigned int shift) argument 418 _rotate_left(struct xdr_buf *buf, unsigned int shift) argument 431 rotate_left(u32 base, struct xdr_buf *buf, unsigned int shift) argument 440 gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, struct page **pages) argument 495 gss_unwrap_kerberos_v2(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf) argument 591 gss_wrap_kerberos(struct gss_ctx *gctx, int offset, struct xdr_buf *buf, struct page **pages) argument 610 gss_unwrap_kerberos(struct gss_ctx *gctx, int offset, struct xdr_buf *buf) argument [all...] |
/net/tipc/ |
H A D | log.c | 42 * @buf: pointer to print buffer 46 int tipc_snprintf(char *buf, int len, const char *fmt, ...) argument 52 i = vscnprintf(buf, len, fmt, args);
|
H A D | msg.c | 70 struct sk_buff *buf; local 72 buf = tipc_buf_acquire(hdr_sz + data_sz); 73 if (unlikely(!buf)) 76 msg = buf_msg(buf); 87 return buf; 93 * @*buf: in: the buffer to append. Always defined 94 * out: head buf after sucessful complete reassembly, otherwise NULL 97 int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf) argument 100 struct sk_buff *frag = *buf; 123 *buf 182 struct sk_buff *buf, *prev; local 274 tipc_msg_bundle(struct sk_buff *bbuf, struct sk_buff *buf, u32 mtu) argument 316 tipc_msg_make_bundle(struct sk_buff **buf, u32 mtu, u32 dnode) argument 357 tipc_msg_reverse(struct sk_buff *buf, u32 *dnode, int err) argument 403 tipc_msg_eval(struct sk_buff *buf, u32 *dnode) argument 434 struct sk_buff *buf = chain; local [all...] |
H A D | socket.h | 44 int tipc_sk_rcv(struct sk_buff *buf); 46 void tipc_sk_mcast_rcv(struct sk_buff *buf);
|
H A D | config.c | 51 struct sk_buff *buf; local 53 buf = alloc_skb(rep_headroom + payload_size, GFP_ATOMIC); 54 if (buf) 55 skb_reserve(buf, rep_headroom); 56 return buf; 59 int tipc_cfg_append_tlv(struct sk_buff *buf, int tlv_type, argument 62 struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(buf); 65 if (skb_tailroom(buf) < new_tlv_space) 67 skb_put(buf, new_tlv_space); 77 struct sk_buff *buf; local 96 struct sk_buff *buf; local 107 struct sk_buff *buf; local [all...] |
H A D | name_distr.h | 72 void named_cluster_distribute(struct sk_buff *buf); 74 void tipc_named_rcv(struct sk_buff *buf);
|
H A D | name_distr.c | 106 struct sk_buff *buf = tipc_buf_acquire(INT_H_SIZE + size); local 109 if (buf != NULL) { 110 msg = buf_msg(buf); 114 return buf; 117 void named_cluster_distribute(struct sk_buff *buf) argument 130 obuf = skb_copy(buf, GFP_ATOMIC); 138 kfree_skb(buf); 146 struct sk_buff *buf; local 155 buf = named_prepare_buf(PUBLICATION, ITEM_SIZE, 0); 156 if (!buf) { 171 struct sk_buff *buf; local 201 struct sk_buff *buf = NULL; local 366 tipc_named_rcv(struct sk_buff *buf) argument [all...] |
H A D | link.c | 79 struct sk_buff *buf); 80 static void tipc_link_proto_rcv(struct tipc_link *l_ptr, struct sk_buff *buf); 82 struct sk_buff **buf); 88 static void tipc_link_sync_rcv(struct tipc_node *n, struct sk_buff *buf); 89 static int tipc_link_input(struct tipc_link *l, struct sk_buff *buf); 90 static int tipc_link_prepare_input(struct tipc_link *l, struct sk_buff **buf); 334 struct sk_buff *buf; local 336 buf = tipc_msg_create(SOCK_WAKEUP, 0, INT_H_SIZE, 0, tipc_own_addr, 338 if (!buf) 340 TIPC_SKB_CB(buf) 356 struct sk_buff *buf; local 670 tipc_link_cong(struct tipc_link *link, struct sk_buff *buf) argument 704 __tipc_link_xmit(struct tipc_link *link, struct sk_buff *buf) argument 780 tipc_link_xmit(struct sk_buff *buf, u32 dnode, u32 selector) argument 815 struct sk_buff *buf; local 836 tipc_link_sync_rcv(struct tipc_node *n, struct sk_buff *buf) argument 850 struct sk_buff *buf = l_ptr->first_out; local 946 link_retransmit_failure(struct tipc_link *l_ptr, struct sk_buff *buf) argument 987 tipc_link_retransmit(struct tipc_link *l_ptr, struct sk_buff *buf, u32 retransmits) argument 1024 link_insert_deferred_queue(struct tipc_link *l_ptr, struct sk_buff *buf) argument 1054 link_recv_buf_validate(struct sk_buff *buf) argument 1111 struct sk_buff *buf = head; local 1257 tipc_link_prepare_input(struct tipc_link *l, struct sk_buff **buf) argument 1299 tipc_link_input(struct tipc_link *l, struct sk_buff *buf) argument 1329 tipc_link_defer_pkt(struct sk_buff **head, struct sk_buff **tail, struct sk_buff *buf) argument 1377 link_handle_out_of_seq_msg(struct tipc_link *l_ptr, struct sk_buff *buf) argument 1417 struct sk_buff *buf = NULL; local 1514 tipc_link_proto_rcv(struct tipc_link *l_ptr, struct sk_buff *buf) argument 1658 struct sk_buff *buf; local 1701 struct sk_buff *buf; local 1815 struct sk_buff *buf; local 1837 struct sk_buff *buf = NULL; local 1881 tipc_link_tunnel_rcv(struct tipc_node *n_ptr, struct sk_buff **buf) argument 1912 tipc_link_bundle_rcv(struct sk_buff *buf) argument 2209 tipc_link_stats(const char *name, char *buf, const u32 buf_size) argument 2301 struct sk_buff *buf; local [all...] |
/net/sunrpc/ |
H A D | xdr.c | 116 * @buf: XDR buffer where string resides 121 xdr_terminate_string(struct xdr_buf *buf, const u32 len) argument 125 kaddr = kmap_atomic(buf->pages[0]); 126 kaddr[buf->page_base + len] = '\0'; 137 char *buf = (char *)head->iov_base; local 146 tail->iov_base = buf + offset; 308 * @buf: xdr_buf 309 * @len: bytes to remove from buf->head[0] 311 * Shrinks XDR buffer's header kvec buf->head[0] by 316 xdr_shrink_bufhead(struct xdr_buf *buf, size_ argument 392 xdr_shrink_pagelen(struct xdr_buf *buf, size_t len) argument 431 xdr_shift_buf(struct xdr_buf *buf, size_t len) argument 460 xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) argument 605 struct xdr_buf *buf = xdr->buf; local 667 struct xdr_buf *buf = xdr->buf; local 693 struct xdr_buf *buf = xdr->buf; local 789 xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) argument 813 xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, struct page **pages, unsigned int len) argument 849 xdr_set_scratch_buffer(struct xdr_stream *xdr, void *buf, size_t buflen) argument 903 struct xdr_buf *buf = xdr->buf; local 944 struct xdr_buf *buf = xdr->buf; local 998 xdr_buf_from_iov(struct kvec *iov, struct xdr_buf *buf) argument 1022 xdr_buf_subsegment(struct xdr_buf *buf, struct xdr_buf *subbuf, unsigned int base, unsigned int len) argument 1076 xdr_buf_trim(struct xdr_buf *buf, unsigned int len) argument 1125 read_bytes_from_xdr_buf(struct xdr_buf *buf, unsigned int base, void *obj, unsigned int len) argument 1156 write_bytes_to_xdr_buf(struct xdr_buf *buf, unsigned int base, void *obj, unsigned int len) argument 1170 xdr_decode_word(struct xdr_buf *buf, unsigned int base, u32 *obj) argument 1184 xdr_encode_word(struct xdr_buf *buf, unsigned int base, u32 obj) argument 1196 xdr_buf_read_netobj(struct xdr_buf *buf, struct xdr_netobj *obj, unsigned int offset) argument 1232 xdr_xcode_array2(struct xdr_buf *buf, unsigned int base, struct xdr_array2_desc *desc, int encode) argument 1426 xdr_decode_array2(struct xdr_buf *buf, unsigned int base, struct xdr_array2_desc *desc) argument 1437 xdr_encode_array2(struct xdr_buf *buf, unsigned int base, struct xdr_array2_desc *desc) argument 1449 xdr_process_buf(struct xdr_buf *buf, unsigned int offset, unsigned int len, int (*actor)(struct scatterlist *, void *), void *data) argument [all...] |
H A D | addr.c | 28 char *buf, const int buflen) 39 return snprintf(buf, buflen, "::"); 47 return snprintf(buf, buflen, "::1"); 56 return snprintf(buf, buflen, "::ffff:%pI4", 62 return snprintf(buf, buflen, "%pI6c", addr); 66 char *buf, const size_t buflen) 73 len = rpc_ntop6_noscopeid(sap, buf, buflen); 91 strcat(buf, scopebuf); 98 char *buf, const int buflen) 104 char *buf, cons 27 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) argument 65 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) argument 97 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) argument 103 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) argument 111 rpc_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) argument 128 rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) argument 141 rpc_pton4(const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 160 rpc_parse_scope_id(struct net *net, const char *buf, const size_t buflen, const char *delim, struct sockaddr_in6 *sin6) argument 202 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 225 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 247 rpc_pton(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 317 char *c, buf[RPCBIND_MAXUADDRLEN + sizeof('\\0')]; local [all...] |
/net/ieee802154/ |
H A D | header_ops.c | 22 ieee802154_hdr_push_addr(u8 *buf, const struct ieee802154_addr *addr, argument 31 memcpy(buf + pos, &addr->pan_id, 2); 37 memcpy(buf + pos, &addr->short_addr, 2); 42 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); 54 ieee802154_hdr_push_sechdr(u8 *buf, const struct ieee802154_sechdr *hdr) argument 58 memcpy(buf, hdr, 1); 59 memcpy(buf + 1, &hdr->frame_counter, 4); 69 memcpy(buf + pos, &hdr->short_src, 4); 74 memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LEN); 79 buf[po 87 u8 buf[MAC802154_FRAME_HARD_HEADER_LEN]; local 124 memcpy(skb_push(skb, pos), buf, pos); local 131 ieee802154_hdr_get_addr(const u8 *buf, int mode, bool omit_pan, struct ieee802154_addr *addr) argument 168 ieee802154_hdr_get_sechdr(const u8 *buf, struct ieee802154_sechdr *hdr) argument 225 ieee802154_hdr_get_addrs(const u8 *buf, struct ieee802154_hdr *hdr) argument 273 const u8 *buf = skb_mac_header(skb); local 293 const u8 *buf = skb_mac_header(skb); local [all...] |
/net/ax25/ |
H A D | ax25_addr.c | 49 char *ax2asc(char *buf, const ax25_address *a) argument 54 for (n = 0, s = buf; n < 6; n++) { 70 if (*buf == '\0' || *buf == '-') 73 return buf; 159 const unsigned char *ax25_addr_parse(const unsigned char *buf, int len, argument 170 if (buf[6] & AX25_CBIT) 172 if (buf[13] & AX25_CBIT) 177 *dama = ~buf[13] & AX25_DAMA_FLAG; 181 memcpy(dest, buf 218 ax25_addr_build(unsigned char *buf, const ax25_address *src, const ax25_address *dest, const ax25_digi *d, int flag, int modulus) argument [all...] |
/net/mac80211/ |
H A D | debugfs_key.c | 68 char buf[15]; local 72 sprintf(buf, "%.2x-%.2x-%.2x:%d\n", 74 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); 82 char buf[20]; local 89 len = scnprintf(buf, sizeof(buf), "\n"); 92 len = scnprintf(buf, sizeof(buf), "%08x %04x\n", 98 len = scnprintf(buf, sizeo 119 char buf[14*IEEE80211_NUM_TIDS+1], *p = buf; local 165 char buf[20]; local 187 char buf[20]; local 206 char buf[20]; local 223 char *buf = kmalloc(bufsize, GFP_KERNEL); local 246 char buf[100]; local 295 char buf[50]; local 334 char buf[50]; local [all...] |
H A D | debugfs_sta.c | 70 char buf[121]; local 76 int res = scnprintf(buf, sizeof(buf), 90 return simple_read_from_buffer(userbuf, count, ppos, buf, res); 99 char buf[17*IEEE80211_NUM_ACS], *p = buf; local 103 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, 106 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); 127 char buf[100]; local 147 char buf[15*IEEE80211_NUM_TIDS], *p = buf; local 161 char buf[71 + IEEE80211_NUM_TIDS * 40], *p = buf; local 200 char _buf[12] = {}, *buf = _buf; local 264 char buf[512], *p = buf; local 341 char buf[128], *p = buf; local 401 sta_tx_latency_stat_header(struct ieee80211_tx_latency_bin_ranges *tx_latency, char *buf, int pos, int bufsz) argument 426 sta_tx_latency_stat_table(struct ieee80211_tx_latency_bin_ranges *tx_lat_range, struct ieee80211_tx_latency_stat *tx_lat, char *buf, int pos, int bufsz, int tid) argument 461 char *buf; local [all...] |
H A D | debugfs.c | 36 char *buf; local 46 buf = kzalloc(bufsz, GFP_ATOMIC); 47 if (!buf) 51 pos += scnprintf(buf + pos, bufsz - pos, "%d,", 53 pos += scnprintf(buf + pos, bufsz - pos, "\n"); 56 buf = kzalloc(bufsz, GFP_ATOMIC); 57 if (!buf) 60 pos += scnprintf(buf + pos, bufsz - pos, "%s\n", 64 buf = kzalloc(bufsz, GFP_ATOMIC); 65 if (!buf) 103 char buf[128] = {}; local 191 char buf[DEBUGFS_FORMAT_BUFFER_SIZE]; local 267 char *buf = kzalloc(mxln, GFP_KERNEL); local 330 char buf[IEEE80211_MAX_QUEUES * 20]; local 348 format_devstat_counter(struct ieee80211_local *local, char __user *userbuf, size_t count, loff_t *ppos, int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf, int buflen)) argument 355 char buf[20]; local [all...] |
/net/irda/ |
H A D | parameters.c | 38 static int irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi, 40 static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi, 42 static int irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi, 44 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi, 47 static int irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi, 49 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi, 52 static int irda_param_unpack(__u8 *buf, char *fmt, ...); 76 * Function irda_insert_no_value (self, buf, len, pi, type, func) 78 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi, argument 91 irda_param_pack(buf, "b 105 irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func) argument 126 irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func) argument 202 irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func) argument 288 irda_extract_string(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func) argument 336 irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func) argument 365 irda_param_pack(__u8 *buf, char *fmt, ...) argument 408 irda_param_unpack(__u8 *buf, char *fmt, ...) argument 455 irda_param_insert(void *self, __u8 pi, __u8 *buf, int len, pi_param_info_t *info) argument 509 irda_param_extract(void *self, __u8 *buf, int len, pi_param_info_t *info) argument 566 irda_param_extract_all(void *self, __u8 *buf, int len, pi_param_info_t *info) argument [all...] |
/net/wireless/ |
H A D | debugfs.c | 21 char buf[buflen]; \ 24 res = scnprintf(buf, buflen, fmt "\n", ##value); \ 25 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 44 char *buf, int buf_size, int offset) 50 return scnprintf(buf + offset, 55 return scnprintf(buf + offset, 70 char *buf; local 75 buf = kzalloc(buf_size, GFP_KERNEL); 76 if (!buf) 87 buf, buf_siz 43 ht_print_chan(struct ieee80211_channel *chan, char *buf, int buf_size, int offset) argument [all...] |
/net/batman-adv/ |
H A D | sysfs.h | 33 char *buf); 35 char *buf, size_t count);
|
/net/core/ |
H A D | net-sysfs.c | 43 struct device_attribute *attr, char *buf, 51 ret = (*format)(ndev, buf); 59 static ssize_t format_##field(const struct net_device *dev, char *buf) \ 61 return sprintf(buf, format_string, dev->field); \ 64 struct device_attribute *attr, char *buf) \ 66 return netdev_show(dev, attr, buf, format_##field); \ 79 const char *buf, size_t len, 90 ret = kstrtoul(buf, 0, &new); 115 static ssize_t format_name_assign_type(const struct net_device *dev, char *buf) argument 117 return sprintf(buf, fmt_de 42 netdev_show(const struct device *dev, struct device_attribute *attr, char *buf, ssize_t (*format)(const struct net_device *, char *)) argument 78 netdev_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len, int (*set)(struct net_device *, unsigned long)) argument 120 name_assign_type_show(struct device *dev, struct device_attribute *attr, char *buf) argument 135 address_show(struct device *dev, struct device_attribute *attr, char *buf) argument 149 broadcast_show(struct device *dev, struct device_attribute *attr, char *buf) argument 166 carrier_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument 172 carrier_show(struct device *dev, struct device_attribute *attr, char *buf) argument 183 speed_show(struct device *dev, struct device_attribute *attr, char *buf) argument 202 duplex_show(struct device *dev, struct device_attribute *attr, char *buf) argument 234 dormant_show(struct device *dev, struct device_attribute *attr, char *buf) argument 256 operstate_show(struct device *dev, struct device_attribute *attr, char *buf) argument 275 carrier_changes_show(struct device *dev, struct device_attribute *attr, char *buf) argument 292 mtu_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument 304 flags_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument 317 tx_queue_len_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument 328 ifalias_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument 351 ifalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument 372 group_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument 380 phys_port_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument 431 netstat_show(const struct device *d, struct device_attribute *attr, char *buf, unsigned long offset) argument 540 rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 552 rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument 570 show_rps_map(struct netdev_rx_queue *queue, struct rx_queue_attribute *attribute, char *buf) argument 600 store_rps_map(struct netdev_rx_queue *queue, struct rx_queue_attribute *attribute, const char *buf, size_t len) argument 656 show_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue, struct rx_queue_attribute *attr, char *buf) argument 679 store_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue, struct rx_queue_attribute *attr, const char *buf, size_t len) argument 875 netdev_queue_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 887 netdev_queue_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument 905 show_trans_timeout(struct netdev_queue *queue, struct netdev_queue_attribute *attribute, char *buf) argument 925 bql_show(char *buf, unsigned int value) argument 930 bql_set(const char *buf, const size_t count, unsigned int *pvalue) argument 951 bql_show_hold_time(struct netdev_queue *queue, struct netdev_queue_attribute *attr, char *buf) argument 960 bql_set_hold_time(struct netdev_queue *queue, struct netdev_queue_attribute *attribute, const char *buf, size_t len) argument 981 bql_show_inflight(struct netdev_queue *queue, struct netdev_queue_attribute *attr, char *buf) argument 1044 show_xps_map(struct netdev_queue *queue, struct netdev_queue_attribute *attribute, char *buf) argument 1089 store_xps_map(struct netdev_queue *queue, struct netdev_queue_attribute *attribute, const char *buf, size_t len) argument [all...] |
/net/ceph/ |
H A D | auth_none.h | 15 char buf[128]; member in struct:ceph_none_authorizer
|
/net/ipv4/ |
H A D | sysfs_net_ipv4.c | 28 struct kobj_attribute *attr, char *buf) \ 30 return sprintf(buf, "%d\n", _var); \ 34 const char *buf, size_t count) \ 37 ret = sscanf(buf, "%d", &val); \
|