Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 66) sorted by relevance

123

/net/bluetooth/
Dmgmt_config.c132 u8 *buffer = data; in set_def_system_config() local
142 const u8 len = TO_TLV(buffer)->length; in set_def_system_config()
146 const u16 type = le16_to_cpu(TO_TLV(buffer)->type); in set_def_system_config()
210 buffer += exp_len; in set_def_system_config()
214 buffer = data; in set_def_system_config()
216 const u8 len = TO_TLV(buffer)->length; in set_def_system_config()
219 const u16 type = le16_to_cpu(TO_TLV(buffer)->type); in set_def_system_config()
223 hdev->def_page_scan_type = TLV_GET_LE16(buffer); in set_def_system_config()
226 hdev->def_page_scan_int = TLV_GET_LE16(buffer); in set_def_system_config()
229 hdev->def_page_scan_window = TLV_GET_LE16(buffer); in set_def_system_config()
[all …]
/net/netfilter/
Dnf_nat_sip.c38 const char *buffer, unsigned int buflen) in mangle_packet() argument
52 buffer, buflen, false)) in mangle_packet()
60 buffer, buflen)) in mangle_packet()
70 static int sip_sprintf_addr(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr() argument
74 return sprintf(buffer, "%pI4", &addr->ip); in sip_sprintf_addr()
77 return sprintf(buffer, "[%pI6c]", &addr->ip6); in sip_sprintf_addr()
79 return sprintf(buffer, "%pI6c", &addr->ip6); in sip_sprintf_addr()
83 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr_port() argument
87 return sprintf(buffer, "%pI4:%u", &addr->ip, port); in sip_sprintf_addr_port()
89 return sprintf(buffer, "[%pI6c]:%u", &addr->ip6, port); in sip_sprintf_addr_port()
[all …]
Dnf_nat_ftp.c34 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() argument
40 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd()
49 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd()
52 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd()
55 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd()
75 char buffer[sizeof("|1||65535|") + INET6_ADDRSTRLEN]; in nf_nat_ftp() local
95 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp()
103 matchlen, buffer, buflen)) in nf_nat_ftp()
Dnf_nat_irc.c39 char buffer[sizeof("4294967296 65635")]; in help() local
72 snprintf(buffer, sizeof(buffer), "%u %u", ntohl(newaddr.ip), port); in help()
74 buffer, &newaddr.ip, port); in help()
77 matchlen, buffer, strlen(buffer))) { in help()
Dnf_nat_amanda.c35 char buffer[sizeof("65535")]; in help() local
53 sprintf(buffer, "%u", port); in help()
56 buffer, strlen(buffer))) { in help()
Dnf_hooks_lwtunnel.c32 void *buffer, size_t *lenp, loff_t *ppos) in nf_hooks_lwtunnel_sysctl_handler() argument
48 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in nf_hooks_lwtunnel_sysctl_handler()
/net/core/
Dsysctl_net_core.c51 static void dump_cpumask(void *buffer, size_t *lenp, loff_t *ppos, in dump_cpumask() argument
71 memcpy(buffer, kbuf, len); in dump_cpumask()
96 void *buffer, size_t *lenp, loff_t *ppos) in rps_default_mask_sysctl() argument
109 err = cpumask_parse(buffer, rps_default_mask); in rps_default_mask_sysctl()
117 dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl()
127 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument
145 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
196 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl() argument
207 ret = cpumask_parse(buffer, mask); in flow_limit_cpu_sysctl()
244 dump_cpumask(buffer, lenp, ppos, mask); in flow_limit_cpu_sysctl()
[all …]
/net/sctp/
Dsysctl.c47 void *buffer, size_t *lenp, loff_t *ppos);
49 void *buffer, size_t *lenp, loff_t *ppos);
50 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, void *buffer,
52 static int proc_sctp_do_udp_port(struct ctl_table *ctl, int write, void *buffer,
55 void *buffer, size_t *lenp, loff_t *ppos);
57 void *buffer, size_t *lenp, loff_t *ppos);
59 void *buffer, size_t *lenp, loff_t *ppos);
392 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
411 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
437 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument
[all …]
/net/sched/
Dsch_tbf.c102 s64 buffer; /* Token bucket depth/rate: MUST BE >= MTU/B */ member
283 toks = min_t(s64, now - q->t_c, q->buffer); in tbf_dequeue()
292 if (toks > q->buffer) in tbf_dequeue()
293 toks = q->buffer; in tbf_dequeue()
335 q->tokens = q->buffer; in tbf_reset()
362 s64 buffer, mtu; in tbf_change() local
385 buffer = min_t(u64, PSCHED_TICKS2NS(qopt->buffer), ~0U); in tbf_change()
394 buffer = psched_l2t_ns(&rate, max_size); in tbf_change()
396 max_size = min_t(u64, psched_ns_t2l(&rate, buffer), ~0U); in tbf_change()
460 q->buffer = buffer; in tbf_change()
[all …]
/net/sunrpc/
Dsysctl.c44 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument
54 len = memory_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt()
65 proc_dodebug(struct ctl_table *table, int write, void *buffer, size_t *lenp, in proc_dodebug() argument
81 p = buffer; in proc_dodebug()
113 memcpy(buffer, tmpbuf, len); in proc_dodebug()
115 *((char *)buffer + len) = '\n'; in proc_dodebug()
/net/ipv4/
Dsysctl_net_ipv4.c69 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument
85 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
104 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument
121 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports()
165 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument
182 ret = proc_doulongvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
200 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument
207 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority()
216 void *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
229 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
[all …]
Dcipso_ipv4.c1176 unsigned char *buffer, in cipso_v4_gentag_rbm() argument
1195 &buffer[4], in cipso_v4_gentag_rbm()
1211 buffer[0] = CIPSO_V4_TAG_RBITMAP; in cipso_v4_gentag_rbm()
1212 buffer[1] = tag_len; in cipso_v4_gentag_rbm()
1213 buffer[3] = level; in cipso_v4_gentag_rbm()
1275 unsigned char *buffer, in cipso_v4_gentag_enum() argument
1294 &buffer[4], in cipso_v4_gentag_enum()
1303 buffer[0] = CIPSO_V4_TAG_ENUM; in cipso_v4_gentag_enum()
1304 buffer[1] = tag_len; in cipso_v4_gentag_enum()
1305 buffer[3] = level; in cipso_v4_gentag_enum()
[all …]
/net/rds/
Dconnection.c656 u64 *buffer, in rds_for_each_conn_info() argument
673 if (!visitor(conn, buffer)) in rds_for_each_conn_info()
680 rds_info_copy(iter, buffer, item_len); in rds_for_each_conn_info()
694 u64 *buffer, in rds_walk_conn_path_info() argument
722 if (!visitor(cp, buffer)) in rds_walk_conn_path_info()
730 rds_info_copy(iter, buffer, item_len); in rds_walk_conn_path_info()
739 static int rds_conn_info_visitor(struct rds_conn_path *cp, void *buffer) in rds_conn_info_visitor() argument
741 struct rds_info_connection *cinfo = buffer; in rds_conn_info_visitor()
769 static int rds6_conn_info_visitor(struct rds_conn_path *cp, void *buffer) in rds6_conn_info_visitor() argument
771 struct rds6_info_connection *cinfo6 = buffer; in rds6_conn_info_visitor()
[all …]
Dib.c295 void *buffer) in rds_ib_conn_info_visitor() argument
297 struct rds_info_rdma_connection *iinfo = buffer; in rds_ib_conn_info_visitor()
334 void *buffer) in rds6_ib_conn_info_visitor() argument
336 struct rds6_info_rdma_connection *iinfo6 = buffer; in rds6_ib_conn_info_visitor()
373 u64 buffer[(sizeof(struct rds_info_rdma_connection) + 7) / 8]; in rds_ib_ic_info() local
377 buffer, in rds_ib_ic_info()
387 u64 buffer[(sizeof(struct rds6_info_rdma_connection) + 7) / 8]; in rds6_ib_ic_info() local
391 buffer, in rds6_ib_ic_info()
Drecv.c174 } buffer; in rds_recv_incoming_exthdrs() local
177 len = sizeof(buffer); in rds_recv_incoming_exthdrs()
178 type = rds_message_next_extension(hdr, &pos, &buffer, &len); in rds_recv_incoming_exthdrs()
184 rds_rdma_unuse(rs, be32_to_cpu(buffer.rdma.h_rdma_rkey), 0); in rds_recv_incoming_exthdrs()
191 be32_to_cpu(buffer.rdma_dest.h_rdma_rkey), in rds_recv_incoming_exthdrs()
192 be32_to_cpu(buffer.rdma_dest.h_rdma_offset)); in rds_recv_incoming_exthdrs()
207 } buffer; in rds_recv_hs_exthdrs() local
211 len = sizeof(buffer); in rds_recv_hs_exthdrs()
212 type = rds_message_next_extension(hdr, &pos, &buffer, &len); in rds_recv_hs_exthdrs()
219 be16_to_cpu(buffer.rds_npaths)); in rds_recv_hs_exthdrs()
[all …]
/net/x25/
Dx25_facilities.c188 int x25_create_facilities(unsigned char *buffer, in x25_create_facilities() argument
192 unsigned char *p = buffer + 1; in x25_create_facilities()
200 buffer[0] = 0; in x25_create_facilities()
254 len = p - buffer; in x25_create_facilities()
255 buffer[0] = len - 1; in x25_create_facilities()
/net/iucv/
Diucv.c1074 u8 flags, void *buffer, in iucv_message_receive_iprmdata() argument
1091 for (array = buffer; size > 0; array++) { in iucv_message_receive_iprmdata()
1099 memcpy(buffer, rmmsg, min_t(size_t, size, 8)); in iucv_message_receive_iprmdata()
1122 u8 flags, void *buffer, size_t size, size_t *residual) in __iucv_message_receive() argument
1129 buffer, size, residual); in __iucv_message_receive()
1135 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in __iucv_message_receive()
1170 u8 flags, void *buffer, size_t size, size_t *residual) in iucv_message_receive() argument
1176 buffer, size, residual); in iucv_message_receive()
1178 rc = __iucv_message_receive(path, msg, flags, buffer, size, residual); in iucv_message_receive()
1285 u8 flags, u32 srccls, void *buffer, size_t size) in __iucv_message_send() argument
[all …]
/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c131 void *buffer; in svc_rdma_recv_ctxt_alloc() local
136 buffer = kmalloc_node(rdma->sc_max_req_size, GFP_KERNEL, node); in svc_rdma_recv_ctxt_alloc()
137 if (!buffer) in svc_rdma_recv_ctxt_alloc()
139 addr = ib_dma_map_single(rdma->sc_pd->device, buffer, in svc_rdma_recv_ctxt_alloc()
158 ctxt->rc_recv_buf = buffer; in svc_rdma_recv_ctxt_alloc()
162 kfree(buffer); in svc_rdma_recv_ctxt_alloc()
Dsvc_rdma_sendto.c129 void *buffer; in svc_rdma_send_ctxt_alloc() local
136 buffer = kmalloc_node(rdma->sc_max_req_size, GFP_KERNEL, node); in svc_rdma_send_ctxt_alloc()
137 if (!buffer) in svc_rdma_send_ctxt_alloc()
139 addr = ib_dma_map_single(rdma->sc_pd->device, buffer, in svc_rdma_send_ctxt_alloc()
151 ctxt->sc_xprt_buf = buffer; in svc_rdma_send_ctxt_alloc()
161 kfree(buffer); in svc_rdma_send_ctxt_alloc()
Dsvc_rdma.c78 void *buffer, size_t *lenp, loff_t *ppos) in svcrdma_counter_handler() argument
102 memcpy(buffer, tmp, len); in svcrdma_counter_handler()
/net/rose/
Drose_subr.c27 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose);
435 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose) in rose_create_facilities() argument
437 unsigned char *p = buffer + 1; in rose_create_facilities()
524 len = p - buffer; in rose_create_facilities()
525 buffer[0] = len - 1; in rose_create_facilities()
/net/phonet/
Dsysctl.c52 void *buffer, size_t *lenp, loff_t *ppos) in proc_local_port_range() argument
64 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_local_port_range()
/net/ipv6/
Dsysctl_net_ipv6.c34 void *buffer, size_t *lenp, loff_t *ppos) in proc_rt6_multipath_hash_policy() argument
41 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in proc_rt6_multipath_hash_policy()
49 proc_rt6_multipath_hash_fields(struct ctl_table *table, int write, void *buffer, in proc_rt6_multipath_hash_fields() argument
57 ret = proc_douintvec_minmax(table, write, buffer, lenp, ppos); in proc_rt6_multipath_hash_fields()
/net/netfilter/ipvs/
Dip_vs_sync.c959 static void ip_vs_process_message_v0(struct netns_ipvs *ipvs, const char *buffer, in ip_vs_process_message_v0() argument
962 struct ip_vs_sync_mesg_v0 *m = (struct ip_vs_sync_mesg_v0 *)buffer; in ip_vs_process_message_v0()
970 p = (char *)buffer + sizeof(struct ip_vs_sync_mesg_v0); in ip_vs_process_message_v0()
974 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { in ip_vs_process_message_v0()
984 if (p > buffer+buflen) { in ip_vs_process_message_v0()
1204 static void ip_vs_process_message(struct netns_ipvs *ipvs, __u8 *buffer, in ip_vs_process_message() argument
1207 struct ip_vs_sync_mesg *m2 = (struct ip_vs_sync_mesg *)buffer; in ip_vs_process_message()
1229 msg_end = buffer + sizeof(struct ip_vs_sync_mesg); in ip_vs_process_message()
1238 if (p + sizeof(s->v4) > buffer+buflen) { in ip_vs_process_message()
1246 if (msg_end > buffer+buflen) { in ip_vs_process_message()
[all …]
/net/atm/
Dioctl.c176 if (get_user(cbuf, &ciobuf->buffer)) in do_vcc_ioctl()
183 if (get_user(buf, &iobuf->buffer)) in do_vcc_ioctl()
283 if (get_user(data, &iobuf32->buffer)) in do_atm_iobuf()

123