/net/tipc/ |
D | msg.h | 116 static inline u32 msg_word(struct tipc_msg *m, u32 pos) in msg_word() argument 118 return ntohl(m->hdr[pos]); in msg_word() 121 static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val) in msg_set_word() argument 123 m->hdr[w] = htonl(val); in msg_set_word() 126 static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask) in msg_bits() argument 128 return (msg_word(m, w) >> pos) & mask; in msg_bits() 131 static inline void msg_set_bits(struct tipc_msg *m, u32 w, in msg_set_bits() argument 136 m->hdr[w] &= ~htonl(mask); in msg_set_bits() 137 m->hdr[w] |= htonl(val); in msg_set_bits() 151 static inline u32 msg_version(struct tipc_msg *m) in msg_version() argument [all …]
|
/net/9p/ |
D | trans_fd.c | 171 static void p9_mux_poll_stop(struct p9_conn *m) in p9_mux_poll_stop() argument 176 for (i = 0; i < ARRAY_SIZE(m->poll_wait); i++) { in p9_mux_poll_stop() 177 struct p9_poll_wait *pwait = &m->poll_wait[i]; in p9_mux_poll_stop() 186 list_del_init(&m->poll_pending_link); in p9_mux_poll_stop() 199 static void p9_conn_cancel(struct p9_conn *m, int err) in p9_conn_cancel() argument 204 p9_debug(P9_DEBUG_ERROR, "mux %p err %d\n", m, err); in p9_conn_cancel() 206 spin_lock(&m->client->lock); in p9_conn_cancel() 208 if (m->err) { in p9_conn_cancel() 209 spin_unlock(&m->client->lock); in p9_conn_cancel() 213 m->err = err; in p9_conn_cancel() [all …]
|
D | mod.c | 84 void v9fs_register_trans(struct p9_trans_module *m) in v9fs_register_trans() argument 87 list_add_tail(&m->list, &v9fs_trans_list); in v9fs_register_trans() 97 void v9fs_unregister_trans(struct p9_trans_module *m) in v9fs_unregister_trans() argument 100 list_del_init(&m->list); in v9fs_unregister_trans() 162 void v9fs_put_trans(struct p9_trans_module *m) in v9fs_put_trans() argument 164 if (m) in v9fs_put_trans() 165 module_put(m->owner); in v9fs_put_trans()
|
/net/ipv6/netfilter/ |
D | nf_log_ipv6.c | 39 static void dump_ipv6_packet(struct nf_log_buf *m, in dump_ipv6_packet() argument 59 nf_log_buf_add(m, "TRUNCATED"); in dump_ipv6_packet() 64 nf_log_buf_add(m, "SRC=%pI6 DST=%pI6 ", &ih->saddr, &ih->daddr); in dump_ipv6_packet() 67 nf_log_buf_add(m, "LEN=%zu TC=%u HOPLIMIT=%u FLOWLBL=%u ", in dump_ipv6_packet() 82 nf_log_buf_add(m, "TRUNCATED"); in dump_ipv6_packet() 88 nf_log_buf_add(m, "OPT ( "); in dump_ipv6_packet() 95 nf_log_buf_add(m, "FRAG:"); in dump_ipv6_packet() 99 nf_log_buf_add(m, "TRUNCATED "); in dump_ipv6_packet() 104 nf_log_buf_add(m, "%u ", ntohs(fh->frag_off) & 0xFFF8); in dump_ipv6_packet() 108 nf_log_buf_add(m, "INCOMPLETE "); in dump_ipv6_packet() [all …]
|
/net/ipv4/netfilter/ |
D | nf_log_ipv4.c | 38 static void dump_ipv4_packet(struct nf_log_buf *m, in dump_ipv4_packet() argument 53 nf_log_buf_add(m, "TRUNCATED"); in dump_ipv4_packet() 60 nf_log_buf_add(m, "SRC=%pI4 DST=%pI4 ", &ih->saddr, &ih->daddr); in dump_ipv4_packet() 63 nf_log_buf_add(m, "LEN=%u TOS=0x%02X PREC=0x%02X TTL=%u ID=%u ", in dump_ipv4_packet() 69 nf_log_buf_add(m, "CE "); in dump_ipv4_packet() 71 nf_log_buf_add(m, "DF "); in dump_ipv4_packet() 73 nf_log_buf_add(m, "MF "); in dump_ipv4_packet() 77 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet() 89 nf_log_buf_add(m, "TRUNCATED"); in dump_ipv4_packet() 94 nf_log_buf_add(m, "OPT ("); in dump_ipv4_packet() [all …]
|
D | nf_log_arp.c | 45 static void dump_arp_packet(struct nf_log_buf *m, in dump_arp_packet() argument 56 nf_log_buf_add(m, "TRUNCATED"); in dump_arp_packet() 59 nf_log_buf_add(m, "ARP HTYPE=%d PTYPE=0x%04x OPCODE=%d", in dump_arp_packet() 72 nf_log_buf_add(m, " INCOMPLETE [%zu bytes]", in dump_arp_packet() 76 nf_log_buf_add(m, " MACSRC=%pM IPSRC=%pI4 MACDST=%pM IPDST=%pI4", in dump_arp_packet() 87 struct nf_log_buf *m; in nf_log_arp_packet() local 93 m = nf_log_buf_open(); in nf_log_arp_packet() 98 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, loginfo, in nf_log_arp_packet() 100 dump_arp_packet(m, loginfo, skb, 0); in nf_log_arp_packet() 102 nf_log_buf_close(m); in nf_log_arp_packet()
|
/net/can/ |
D | proc.c | 186 static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list, in can_print_rcvlist() argument 196 seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask, in can_print_rcvlist() 201 static void can_print_recv_banner(struct seq_file *m) in can_print_recv_banner() argument 207 seq_puts(m, " device can_id can_mask function" in can_print_recv_banner() 211 static int can_stats_proc_show(struct seq_file *m, void *v) in can_stats_proc_show() argument 213 struct net *net = m->private; in can_stats_proc_show() 217 seq_putc(m, '\n'); in can_stats_proc_show() 218 seq_printf(m, " %8ld transmitted frames (TXF)\n", can_stats->tx_frames); in can_stats_proc_show() 219 seq_printf(m, " %8ld received frames (RXF)\n", can_stats->rx_frames); in can_stats_proc_show() 220 seq_printf(m, " %8ld matched frames (RXMF)\n", can_stats->matches); in can_stats_proc_show() [all …]
|
/net/l2tp/ |
D | l2tp_debugfs.c | 66 static void *l2tp_dfs_seq_start(struct seq_file *m, loff_t *offs) in l2tp_dfs_seq_start() argument 74 BUG_ON(m->private == NULL); in l2tp_dfs_seq_start() 75 pd = m->private; in l2tp_dfs_seq_start() 91 static void *l2tp_dfs_seq_next(struct seq_file *m, void *v, loff_t *pos) in l2tp_dfs_seq_next() argument 102 static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v) in l2tp_dfs_seq_tunnel_show() argument 124 seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id); in l2tp_dfs_seq_tunnel_show() 132 seq_printf(m, " from %pI6c to %pI6c\n", in l2tp_dfs_seq_tunnel_show() 136 seq_printf(m, " from %pI4 to %pI4\n", in l2tp_dfs_seq_tunnel_show() 139 seq_printf(m, " source port %hu, dest port %hu\n", in l2tp_dfs_seq_tunnel_show() 142 seq_printf(m, " L2TPv%d, %s\n", tunnel->version, in l2tp_dfs_seq_tunnel_show() [all …]
|
/net/netfilter/ |
D | nf_log_common.c | 24 int nf_log_dump_udp_header(struct nf_log_buf *m, const struct sk_buff *skb, in nf_log_dump_udp_header() argument 32 nf_log_buf_add(m, "PROTO=UDP "); in nf_log_dump_udp_header() 34 nf_log_buf_add(m, "PROTO=UDPLITE "); in nf_log_dump_udp_header() 42 nf_log_buf_add(m, "INCOMPLETE [%u bytes] ", skb->len - offset); in nf_log_dump_udp_header() 48 nf_log_buf_add(m, "SPT=%u DPT=%u LEN=%u ", in nf_log_dump_udp_header() 56 int nf_log_dump_tcp_header(struct nf_log_buf *m, const struct sk_buff *skb, in nf_log_dump_tcp_header() argument 64 nf_log_buf_add(m, "PROTO=TCP "); in nf_log_dump_tcp_header() 72 nf_log_buf_add(m, "INCOMPLETE [%u bytes] ", skb->len - offset); in nf_log_dump_tcp_header() 77 nf_log_buf_add(m, "SPT=%u DPT=%u ", in nf_log_dump_tcp_header() 81 nf_log_buf_add(m, "SEQ=%u ACK=%u ", in nf_log_dump_tcp_header() [all …]
|
D | xt_iprange.c | 24 bool m; in iprange_mt4() local 27 m = ntohl(iph->saddr) < ntohl(info->src_min.ip); in iprange_mt4() 28 m |= ntohl(iph->saddr) > ntohl(info->src_max.ip); in iprange_mt4() 29 m ^= !!(info->flags & IPRANGE_SRC_INV); in iprange_mt4() 30 if (m) { in iprange_mt4() 40 m = ntohl(iph->daddr) < ntohl(info->dst_min.ip); in iprange_mt4() 41 m |= ntohl(iph->daddr) > ntohl(info->dst_max.ip); in iprange_mt4() 42 m ^= !!(info->flags & IPRANGE_DST_INV); in iprange_mt4() 43 if (m) { in iprange_mt4() 73 bool m; in iprange_mt6() local [all …]
|
D | xt_limit.c | 157 struct xt_rateinfo m = { in limit_mt_compat_from_user() local 165 memcpy(dst, &m, sizeof(m)); in limit_mt_compat_from_user() 170 const struct xt_rateinfo *m = src; in limit_mt_compat_to_user() local 172 .avg = m->avg, in limit_mt_compat_to_user() 173 .burst = m->burst, in limit_mt_compat_to_user() 174 .prev = m->prev, in limit_mt_compat_to_user() 175 .credit = m->credit, in limit_mt_compat_to_user() 176 .credit_cap = m->credit_cap, in limit_mt_compat_to_user() 177 .cost = m->cost, in limit_mt_compat_to_user() 178 .master = m->prev >> 32, in limit_mt_compat_to_user()
|
D | nf_log.c | 275 __printf(2, 3) int nf_log_buf_add(struct nf_log_buf *m, const char *f, ...) in nf_log_buf_add() argument 280 if (likely(m->count < S_SIZE)) { in nf_log_buf_add() 282 len = vsnprintf(m->buf + m->count, S_SIZE - m->count, f, args); in nf_log_buf_add() 284 if (likely(m->count + len < S_SIZE)) { in nf_log_buf_add() 285 m->count += len; in nf_log_buf_add() 289 m->count = S_SIZE; in nf_log_buf_add() 297 struct nf_log_buf *m = kmalloc(sizeof(*m), GFP_ATOMIC); in nf_log_buf_open() local 299 if (unlikely(!m)) { in nf_log_buf_open() 302 m = xchg(&emergency_ptr, NULL); in nf_log_buf_open() 303 } while (!m); in nf_log_buf_open() [all …]
|
/net/sched/ |
D | sch_teql.c | 69 struct teql_master *m; member 102 dat_queue = netdev_get_tx_queue(dat->m->dev, 0); in teql_dequeue() 106 struct net_device *m = qdisc_dev(q); in teql_dequeue() local 107 if (m) { in teql_dequeue() 108 dat->m->slaves = sch; in teql_dequeue() 109 netif_wake_queue(m); in teql_dequeue() 139 struct teql_master *master = dat->m; in teql_destroy() 173 struct teql_master *m = (struct teql_master *)sch->ops; in teql_qdisc_init() local 176 if (dev->hard_header_len > m->dev->hard_header_len) in teql_qdisc_init() 179 if (m->dev == dev) in teql_qdisc_init() [all …]
|
D | act_mirred.c | 55 struct tcf_mirred *m = to_mirred(a); in tcf_mirred_release() local 60 list_del(&m->tcfm_list); in tcf_mirred_release() 61 dev = rcu_dereference_protected(m->tcfm_dev, 1); in tcf_mirred_release() 82 struct tcf_mirred *m; in tcf_mirred_init() local 136 m = to_mirred(*a); in tcf_mirred_init() 139 m->tcf_action = parm->action; in tcf_mirred_init() 140 m->tcfm_eaction = parm->eaction; in tcf_mirred_init() 142 m->tcfm_ifindex = parm->ifindex; in tcf_mirred_init() 144 dev_put(rcu_dereference_protected(m->tcfm_dev, 1)); in tcf_mirred_init() 146 rcu_assign_pointer(m->tcfm_dev, dev); in tcf_mirred_init() [all …]
|
D | em_text.c | 30 #define EM_TEXT_PRIV(m) ((struct text_match *) (m)->data) argument 32 static int em_text_match(struct sk_buff *skb, struct tcf_ematch *m, in em_text_match() argument 35 struct text_match *tm = EM_TEXT_PRIV(m); in em_text_match() 48 struct tcf_ematch *m) in em_text_change() argument 96 m->datalen = sizeof(*tm); in em_text_change() 97 m->data = (unsigned long) tm; in em_text_change() 102 static void em_text_destroy(struct tcf_ematch *m) in em_text_destroy() argument 104 if (EM_TEXT_PRIV(m) && EM_TEXT_PRIV(m)->config) in em_text_destroy() 105 textsearch_destroy(EM_TEXT_PRIV(m)->config); in em_text_destroy() 108 static int em_text_dump(struct sk_buff *skb, struct tcf_ematch *m) in em_text_dump() argument [all …]
|
D | em_canid.c | 91 static inline struct canid_match *em_canid_priv(struct tcf_ematch *m) in em_canid_priv() argument 93 return (struct canid_match *)m->data; in em_canid_priv() 96 static int em_canid_match(struct sk_buff *skb, struct tcf_ematch *m, in em_canid_match() argument 99 struct canid_match *cm = em_canid_priv(m); in em_canid_match() 124 struct tcf_ematch *m) in em_canid_change() argument 181 m->datalen = sizeof(struct canid_match) + len; in em_canid_change() 182 m->data = (unsigned long)cm; in em_canid_change() 186 static void em_canid_destroy(struct tcf_ematch *m) in em_canid_destroy() argument 188 struct canid_match *cm = em_canid_priv(m); in em_canid_destroy() 193 static int em_canid_dump(struct sk_buff *skb, struct tcf_ematch *m) in em_canid_dump() argument [all …]
|
/net/sunrpc/ |
D | timer.c | 60 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument 68 if (m < 0) in rpc_update_rtt() 71 if (m == 0) in rpc_update_rtt() 72 m = 1L; in rpc_update_rtt() 75 m -= *srtt >> 3; in rpc_update_rtt() 76 *srtt += m; in rpc_update_rtt() 78 if (m < 0) in rpc_update_rtt() 79 m = -m; in rpc_update_rtt() 82 m -= *sdrtt >> 2; in rpc_update_rtt() 83 *sdrtt += m; in rpc_update_rtt()
|
D | svc.c | 56 struct svc_pool_map *m = &svc_pool_map; in param_set_pool_mode() local 62 if (m->count) in param_set_pool_mode() 142 svc_pool_map_alloc_arrays(struct svc_pool_map *m, unsigned int maxpools) in svc_pool_map_alloc_arrays() argument 144 m->to_pool = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays() 145 if (!m->to_pool) in svc_pool_map_alloc_arrays() 147 m->pool_to = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays() 148 if (!m->pool_to) in svc_pool_map_alloc_arrays() 154 kfree(m->to_pool); in svc_pool_map_alloc_arrays() 155 m->to_pool = NULL; in svc_pool_map_alloc_arrays() 165 svc_pool_map_init_percpu(struct svc_pool_map *m) in svc_pool_map_init_percpu() argument [all …]
|
/net/atm/ |
D | mpoa_proc.c | 108 static void *mpc_start(struct seq_file *m, loff_t *pos) in mpc_start() argument 121 static void *mpc_next(struct seq_file *m, void *v, loff_t *pos) in mpc_next() argument 128 static void mpc_stop(struct seq_file *m, void *v) in mpc_stop() argument 135 static int mpc_show(struct seq_file *m, void *v) in mpc_show() argument 145 atm_mpoa_disp_qos(m); in mpc_show() 149 seq_printf(m, "\nInterface %d:\n\n", mpc->dev_num); in mpc_show() 150 …seq_printf(m, "Ingress Entries:\nIP address State Holding time Packets fwded VPI VCI\… in mpc_show() 155 seq_printf(m, "%-16s%s%-14lu%-12u", in mpc_show() 162 seq_printf(m, " %-3d %-3d", in mpc_show() 165 seq_printf(m, "\n"); in mpc_show() [all …]
|
/net/8021q/ |
D | vlan_netlink.c | 96 struct ifla_vlan_qos_mapping *m; in vlan_changelink() local 108 m = nla_data(attr); in vlan_changelink() 109 vlan_dev_set_ingress_priority(dev, m->to, m->from); in vlan_changelink() 114 m = nla_data(attr); in vlan_changelink() 115 err = vlan_dev_set_egress_priority(dev, m->from, m->to); in vlan_changelink() 196 struct ifla_vlan_qos_mapping m; in vlan_fill_info() local 218 m.from = i; in vlan_fill_info() 219 m.to = vlan->ingress_priority_map[i]; in vlan_fill_info() 221 sizeof(m), &m)) in vlan_fill_info() 238 m.from = pm->priority; in vlan_fill_info() [all …]
|
/net/ceph/ |
D | messenger.c | 1242 struct ceph_msg *m = con->out_msg; in prepare_write_message_footer() local 1244 m->footer.flags |= CEPH_MSG_FOOTER_COMPLETE; in prepare_write_message_footer() 1247 con_out_kvec_add(con, sizeof_footer(con), &m->footer); in prepare_write_message_footer() 1250 con->ops->sign_message(m); in prepare_write_message_footer() 1252 m->footer.sig = 0; in prepare_write_message_footer() 1254 m->old_footer.flags = m->footer.flags; in prepare_write_message_footer() 1256 con->out_more = m->more_to_follow; in prepare_write_message_footer() 1265 struct ceph_msg *m; in prepare_write_message() local 1282 m = list_first_entry(&con->out_queue, struct ceph_msg, list_head); in prepare_write_message() 1283 con->out_msg = m; in prepare_write_message() [all …]
|
D | mon_client.c | 44 struct ceph_monmap *m = NULL; in ceph_monmap_decode() local 61 ceph_decode_need(&p, end, num_mon*sizeof(m->mon_inst[0]), bad); in ceph_monmap_decode() 65 m = kmalloc(sizeof(*m) + sizeof(m->mon_inst[0])*num_mon, GFP_NOFS); in ceph_monmap_decode() 66 if (m == NULL) in ceph_monmap_decode() 68 m->fsid = fsid; in ceph_monmap_decode() 69 m->epoch = epoch; in ceph_monmap_decode() 70 m->num_mon = num_mon; in ceph_monmap_decode() 71 ceph_decode_copy(&p, m->mon_inst, num_mon*sizeof(m->mon_inst[0])); in ceph_monmap_decode() 73 ceph_decode_addr(&m->mon_inst[i].addr); in ceph_monmap_decode() 75 dout("monmap_decode epoch %d, num_mon %d\n", m->epoch, in ceph_monmap_decode() [all …]
|
D | osd_client.c | 2324 struct rb_node *m; in ceph_osdc_abort_on_full() local 2326 m = rb_first(&osd->o_requests); in ceph_osdc_abort_on_full() 2327 while (m) { in ceph_osdc_abort_on_full() 2328 struct ceph_osd_request *req = rb_entry(m, in ceph_osdc_abort_on_full() 2330 m = rb_next(m); in ceph_osdc_abort_on_full() 2352 struct rb_node *m; in ceph_osdc_abort_on_full() local 2354 m = rb_first(&osd->o_requests); in ceph_osdc_abort_on_full() 2355 while (m) { in ceph_osdc_abort_on_full() 2356 struct ceph_osd_request *req = rb_entry(m, in ceph_osdc_abort_on_full() 2358 m = rb_next(m); in ceph_osdc_abort_on_full() [all …]
|
D | ceph_common.c | 543 int ceph_print_client_options(struct seq_file *m, struct ceph_client *client) in ceph_print_client_options() argument 546 size_t pos = m->count; in ceph_print_client_options() 549 seq_puts(m, "name="); in ceph_print_client_options() 550 seq_escape(m, opt->name, ", \t\n\\"); in ceph_print_client_options() 551 seq_putc(m, ','); in ceph_print_client_options() 554 seq_puts(m, "secret=<hidden>,"); in ceph_print_client_options() 557 seq_printf(m, "fsid=%pU,", &opt->fsid); in ceph_print_client_options() 559 seq_puts(m, "noshare,"); in ceph_print_client_options() 561 seq_puts(m, "nocrc,"); in ceph_print_client_options() 563 seq_puts(m, "nocephx_require_signatures,"); in ceph_print_client_options() [all …]
|
/net/nfc/nci/ |
D | spi.c | 46 struct spi_message m; in __nci_spi_send() local 63 spi_message_init(&m); in __nci_spi_send() 64 spi_message_add_tail(&t, &m); in __nci_spi_send() 66 return spi_sync(nspi->spi, &m); in __nci_spi_send() 188 struct spi_message m; in __nci_spi_read() local 194 spi_message_init(&m); in __nci_spi_read() 203 spi_message_add_tail(&tx, &m); in __nci_spi_read() 210 spi_message_add_tail(&rx, &m); in __nci_spi_read() 212 ret = spi_sync(nspi->spi, &m); in __nci_spi_read() 226 spi_message_init(&m); in __nci_spi_read() [all …]
|