/net/tipc/ |
D | msg.h | 118 static inline u32 msg_word(struct tipc_msg *m, u32 pos) in msg_word() argument 120 return ntohl(m->hdr[pos]); in msg_word() 123 static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val) in msg_set_word() argument 125 m->hdr[w] = htonl(val); in msg_set_word() 128 static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask) in msg_bits() argument 130 return (msg_word(m, w) >> pos) & mask; in msg_bits() 133 static inline void msg_set_bits(struct tipc_msg *m, u32 w, in msg_set_bits() argument 138 m->hdr[w] &= ~htonl(mask); in msg_set_bits() 139 m->hdr[w] |= htonl(val); in msg_set_bits() 153 static inline u32 msg_version(struct tipc_msg *m) in msg_version() argument [all …]
|
/net/9p/ |
D | trans_fd.c | 167 static void p9_mux_poll_stop(struct p9_conn *m) in p9_mux_poll_stop() argument 172 for (i = 0; i < ARRAY_SIZE(m->poll_wait); i++) { in p9_mux_poll_stop() 173 struct p9_poll_wait *pwait = &m->poll_wait[i]; in p9_mux_poll_stop() 182 list_del_init(&m->poll_pending_link); in p9_mux_poll_stop() 193 static void p9_conn_cancel(struct p9_conn *m, int err) in p9_conn_cancel() argument 199 p9_debug(P9_DEBUG_ERROR, "mux %p err %d\n", m, err); in p9_conn_cancel() 201 spin_lock_irqsave(&m->client->lock, flags); in p9_conn_cancel() 203 if (m->err) { in p9_conn_cancel() 204 spin_unlock_irqrestore(&m->client->lock, flags); in p9_conn_cancel() 208 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 | 193 static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list, in can_print_rcvlist() argument 203 seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask, in can_print_rcvlist() 208 static void can_print_recv_banner(struct seq_file *m) in can_print_recv_banner() argument 214 seq_puts(m, " device can_id can_mask function" in can_print_recv_banner() 218 static int can_stats_proc_show(struct seq_file *m, void *v) in can_stats_proc_show() argument 220 seq_putc(m, '\n'); in can_stats_proc_show() 221 seq_printf(m, " %8ld transmitted frames (TXF)\n", can_stats.tx_frames); in can_stats_proc_show() 222 seq_printf(m, " %8ld received frames (RXF)\n", can_stats.rx_frames); in can_stats_proc_show() 223 seq_printf(m, " %8ld matched frames (RXMF)\n", can_stats.matches); in can_stats_proc_show() 225 seq_putc(m, '\n'); in can_stats_proc_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 | 156 struct xt_rateinfo m = { in limit_mt_compat_from_user() local 164 memcpy(dst, &m, sizeof(m)); in limit_mt_compat_from_user() 169 const struct xt_rateinfo *m = src; in limit_mt_compat_to_user() local 171 .avg = m->avg, in limit_mt_compat_to_user() 172 .burst = m->burst, in limit_mt_compat_to_user() 173 .prev = m->prev, in limit_mt_compat_to_user() 174 .credit = m->credit, in limit_mt_compat_to_user() 175 .credit_cap = m->credit_cap, in limit_mt_compat_to_user() 176 .cost = m->cost, in limit_mt_compat_to_user() 177 .master = m->prev >> 32, in limit_mt_compat_to_user()
|
D | nf_log.c | 273 __printf(2, 3) int nf_log_buf_add(struct nf_log_buf *m, const char *f, ...) in nf_log_buf_add() argument 278 if (likely(m->count < S_SIZE)) { in nf_log_buf_add() 280 len = vsnprintf(m->buf + m->count, S_SIZE - m->count, f, args); in nf_log_buf_add() 282 if (likely(m->count + len < S_SIZE)) { in nf_log_buf_add() 283 m->count += len; in nf_log_buf_add() 287 m->count = S_SIZE; in nf_log_buf_add() 295 struct nf_log_buf *m = kmalloc(sizeof(*m), GFP_ATOMIC); in nf_log_buf_open() local 297 if (unlikely(!m)) { in nf_log_buf_open() 300 m = xchg(&emergency_ptr, NULL); in nf_log_buf_open() 301 } while (!m); in nf_log_buf_open() [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/sched/ |
D | act_mirred.c | 38 struct tcf_mirred *m = to_mirred(a); in tcf_mirred_release() local 43 list_del(&m->tcfm_list); in tcf_mirred_release() 44 dev = rcu_dereference_protected(m->tcfm_dev, 1); in tcf_mirred_release() 64 struct tcf_mirred *m; in tcf_mirred_init() local 128 m = to_mirred(*a); in tcf_mirred_init() 131 m->tcf_action = parm->action; in tcf_mirred_init() 132 m->tcfm_eaction = parm->eaction; in tcf_mirred_init() 134 m->tcfm_ifindex = parm->ifindex; in tcf_mirred_init() 136 dev_put(rcu_dereference_protected(m->tcfm_dev, 1)); in tcf_mirred_init() 138 rcu_assign_pointer(m->tcfm_dev, dev); in tcf_mirred_init() [all …]
|
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 | 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 | 107 static void *mpc_start(struct seq_file *m, loff_t *pos) in mpc_start() argument 120 static void *mpc_next(struct seq_file *m, void *v, loff_t *pos) in mpc_next() argument 127 static void mpc_stop(struct seq_file *m, void *v) in mpc_stop() argument 134 static int mpc_show(struct seq_file *m, void *v) in mpc_show() argument 144 atm_mpoa_disp_qos(m); in mpc_show() 148 seq_printf(m, "\nInterface %d:\n\n", mpc->dev_num); in mpc_show() 149 …seq_printf(m, "Ingress Entries:\nIP address State Holding time Packets fwded VPI VCI\… in mpc_show() 154 seq_printf(m, "%-16s%s%-14lu%-12u", in mpc_show() 161 seq_printf(m, " %-3d %-3d", in mpc_show() 164 seq_printf(m, "\n"); in mpc_show() [all …]
|
/net/irda/ircomm/ |
D | ircomm_tty.c | 1157 static void ircomm_tty_line_info(struct ircomm_tty_cb *self, struct seq_file *m) in ircomm_tty_line_info() argument 1162 seq_printf(m, "State: %s\n", ircomm_tty_state[self->state]); in ircomm_tty_line_info() 1164 seq_puts(m, "Service type: "); in ircomm_tty_line_info() 1166 seq_puts(m, "9_WIRE"); in ircomm_tty_line_info() 1168 seq_puts(m, "3_WIRE"); in ircomm_tty_line_info() 1170 seq_puts(m, "3_WIRE_RAW"); in ircomm_tty_line_info() 1172 seq_puts(m, "No common service type!\n"); in ircomm_tty_line_info() 1173 seq_putc(m, '\n'); in ircomm_tty_line_info() 1175 seq_printf(m, "Port name: %s\n", self->settings.port_name); in ircomm_tty_line_info() 1177 seq_printf(m, "DTE status:"); in ircomm_tty_line_info() [all …]
|
/net/8021q/ |
D | vlan_netlink.c | 93 struct ifla_vlan_qos_mapping *m; in vlan_changelink() local 103 m = nla_data(attr); in vlan_changelink() 104 vlan_dev_set_ingress_priority(dev, m->to, m->from); in vlan_changelink() 109 m = nla_data(attr); in vlan_changelink() 110 vlan_dev_set_egress_priority(dev, m->from, m->to); in vlan_changelink() 187 struct ifla_vlan_qos_mapping m; in vlan_fill_info() local 209 m.from = i; in vlan_fill_info() 210 m.to = vlan->ingress_priority_map[i]; in vlan_fill_info() 212 sizeof(m), &m)) in vlan_fill_info() 229 m.from = pm->priority; in vlan_fill_info() [all …]
|
/net/ceph/ |
D | messenger.c | 1223 struct ceph_msg *m = con->out_msg; in prepare_write_message_footer() local 1225 m->footer.flags |= CEPH_MSG_FOOTER_COMPLETE; in prepare_write_message_footer() 1228 con_out_kvec_add(con, sizeof_footer(con), &m->footer); in prepare_write_message_footer() 1231 con->ops->sign_message(m); in prepare_write_message_footer() 1233 m->footer.sig = 0; in prepare_write_message_footer() 1235 m->old_footer.flags = m->footer.flags; in prepare_write_message_footer() 1237 con->out_more = m->more_to_follow; in prepare_write_message_footer() 1246 struct ceph_msg *m; in prepare_write_message() local 1263 m = list_first_entry(&con->out_queue, struct ceph_msg, list_head); in prepare_write_message() 1264 con->out_msg = m; in prepare_write_message() [all …]
|
D | mon_client.c | 42 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 | ceph_common.c | 525 int ceph_print_client_options(struct seq_file *m, struct ceph_client *client) in ceph_print_client_options() argument 528 size_t pos = m->count; in ceph_print_client_options() 531 seq_puts(m, "name="); in ceph_print_client_options() 532 seq_escape(m, opt->name, ", \t\n\\"); in ceph_print_client_options() 533 seq_putc(m, ','); in ceph_print_client_options() 536 seq_puts(m, "secret=<hidden>,"); in ceph_print_client_options() 539 seq_printf(m, "fsid=%pU,", &opt->fsid); in ceph_print_client_options() 541 seq_puts(m, "noshare,"); in ceph_print_client_options() 543 seq_puts(m, "nocrc,"); in ceph_print_client_options() 545 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 …]
|