Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 139) sorted by relevance

123456

/net/tipc/
A Dmsg.h212 m->hdr[w] = htonl(val); in msg_set_word()
279 return msg_size(m) - msg_hdr_sz(m); in msg_data_sz()
364 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz); in msg_set_size()
369 return ((unchar *)m) + msg_hdr_sz(m); in msg_data()
472 msg_set_bits(m, 1, 21, 0xf, msg_reroute_cnt(m) + 1); in msg_incr_reroute_cnt()
546 int usr = msg_user(m); in msg_importance()
557 int usr = msg_user(m); in msg_set_importance()
562 msg_set_user(m, i); in msg_set_importance()
569 return msg_word(m, 3); in msg_prevnode()
580 m = msg_inner_hdr(m); in msg_origport()
[all …]
A Dgroup.c148 return m && m->state != MBR_JOINING && m->state != MBR_LEAVING; in tipc_group_is_receiver()
153 return m && m->state != MBR_JOINING && m->state != MBR_PUBLISHED; in tipc_group_is_sender()
241 nkey = (u64)m->node << 32 | m->port; in tipc_group_find_member()
258 if (m && tipc_group_is_receiver(m)) in tipc_group_find_dest()
280 u64 nkey, key = (u64)m->node << 32 | m->port; in tipc_group_add_to_tree()
309 m = kzalloc(sizeof(*m), GFP_ATOMIC); in tipc_group_create_member()
310 if (!m) in tipc_group_create_member()
467 return tipc_group_cong(grp, m->node, m->port, len, &m); in tipc_group_bc_cong()
598 if (!m) in tipc_group_update_rcv_win()
766 m->bc_rcv_nxt = m->bc_syncpt; in tipc_group_proto_rcv()
[all …]
A Dcrypto.h179 static inline u32 msg_key_gen(struct tipc_msg *m) in msg_key_gen() argument
181 return msg_bits(m, 4, 16, 0xffff); in msg_key_gen()
184 static inline void msg_set_key_gen(struct tipc_msg *m, u32 gen) in msg_set_key_gen() argument
186 msg_set_bits(m, 4, 16, 0xffff, gen); in msg_set_key_gen()
189 static inline u32 msg_key_mode(struct tipc_msg *m) in msg_key_mode() argument
191 return msg_bits(m, 4, 0, 0xf); in msg_key_mode()
194 static inline void msg_set_key_mode(struct tipc_msg *m, u32 mode) in msg_set_key_mode() argument
196 msg_set_bits(m, 4, 0, 0xf, mode); in msg_set_key_mode()
/net/9p/
A Dtrans_fd.c301 m, m->rc.offset, m->rc.capacity, in p9_read_work()
315 if ((!m->rreq) && (m->rc.offset == m->rc.capacity)) { in p9_read_work()
329 m, m->rc.size, m->rc.tag); in p9_read_work()
331 m->rreq = p9_tag_lookup(m->client, m->rc.tag); in p9_read_work()
342 m->rc.size, m->rc.tag, m->rreq->rc.capacity); in p9_read_work()
350 m->rc.tag, m->rreq); in p9_read_work()
357 memcpy(m->rc.sdata, m->tmp_buf, m->rc.capacity); in p9_read_work()
364 if ((m->rreq) && (m->rc.offset == m->rc.capacity)) { in p9_read_work()
483 m, m->wpos, m->wsize); in p9_write_work()
485 err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos); in p9_write_work()
[all …]
/net/netfilter/
A Dnf_log_syslog.c84 nf_log_dump_vlan(m, skb); in dump_arp_packet()
141 struct nf_log_buf *m; in nf_log_arp_packet() local
146 m = nf_log_buf_open(); in nf_log_arp_packet()
155 nf_log_buf_close(m); in nf_log_arp_packet()
840 struct nf_log_buf *m; in nf_log_ip_packet() local
845 m = nf_log_buf_open(); in nf_log_ip_packet()
858 nf_log_buf_close(m); in nf_log_ip_packet()
875 struct nf_log_buf *m; in nf_log_ip6_packet() local
893 nf_log_buf_close(m); in nf_log_ip6_packet()
911 struct nf_log_buf *m; in nf_log_unknown_packet() local
[all …]
A Dxt_iprange.c21 bool m; in iprange_mt4() local
24 m = ntohl(iph->saddr) < ntohl(info->src_min.ip); in iprange_mt4()
26 m ^= !!(info->flags & IPRANGE_SRC_INV); in iprange_mt4()
27 if (m) { in iprange_mt4()
39 m ^= !!(info->flags & IPRANGE_DST_INV); in iprange_mt4()
40 if (m) { in iprange_mt4()
70 bool m; in iprange_mt6() local
75 m ^= !!(info->flags & IPRANGE_SRC_INV); in iprange_mt6()
76 if (m) { in iprange_mt6()
88 m ^= !!(info->flags & IPRANGE_DST_INV); in iprange_mt6()
[all …]
A Dnft_set_pipapo.c1126 for (i = 0, f = m->f; i < m->field_count - 1; i++, f++) {
1271 if (!m)
1354 if (!*get_cpu_ptr(m->scratch) || bsize_max > m->bsize_max) {
1746 kfree(m);
1839 if (!m)
2079 for (i = 0, f = m->f; i < m->field_count - 1; i++, f++)
2120 if (!m) {
2210 m = kmalloc(struct_size(m, f, field_count), GFP_KERNEL);
2211 if (!m)
2251 kfree(m);
[all …]
A Dnf_log.c305 len = vsnprintf(m->buf + m->count, S_SIZE - m->count, f, args); in nf_log_buf_add()
308 m->count += len; in nf_log_buf_add()
312 m->count = S_SIZE; in nf_log_buf_add()
320 struct nf_log_buf *m = kmalloc(sizeof(*m), GFP_ATOMIC); in nf_log_buf_open() local
322 if (unlikely(!m)) { in nf_log_buf_open()
326 } while (!m); in nf_log_buf_open()
328 m->count = 0; in nf_log_buf_open()
329 return m; in nf_log_buf_open()
335 m->buf[m->count] = 0; in nf_log_buf_close()
339 kfree(m); in nf_log_buf_close()
[all …]
A Dxt_limit.c160 struct xt_rateinfo m = { in limit_mt_compat_from_user() local
168 memcpy(dst, &m, sizeof(m)); in limit_mt_compat_from_user()
173 const struct xt_rateinfo *m = src; in limit_mt_compat_to_user() local
175 .avg = m->avg, in limit_mt_compat_to_user()
176 .burst = m->burst, in limit_mt_compat_to_user()
177 .prev = m->prev, in limit_mt_compat_to_user()
178 .credit = m->credit, in limit_mt_compat_to_user()
179 .credit_cap = m->credit_cap, in limit_mt_compat_to_user()
180 .cost = m->cost, in limit_mt_compat_to_user()
181 .master = m->prev >> 32, in limit_mt_compat_to_user()
/net/can/
A Dproc.c221 seq_putc(m, '\n'); in can_stats_proc_show()
229 seq_putc(m, '\n'); in can_stats_proc_show()
240 seq_putc(m, '\n'); in can_stats_proc_show()
250 seq_putc(m, '\n'); in can_stats_proc_show()
260 seq_putc(m, '\n'); in can_stats_proc_show()
276 seq_putc(m, '\n'); in can_stats_proc_show()
306 can_print_recv_banner(m); in can_rcvlist_proc_show_one()
340 seq_putc(m, '\n'); in can_rcvlist_proc_show()
360 can_print_recv_banner(m); in can_rcvlist_proc_show_array()
398 seq_putc(m, '\n'); in can_rcvlist_sff_proc_show()
[all …]
/net/sched/
A Dact_mirred.c100 list_del(&m->tcfm_list); in tcf_mirred_release()
136 struct tcf_mirred *m; in tcf_mirred_init() local
207 m = to_mirred(*a); in tcf_mirred_init()
215 spin_lock_bh(&m->tcf_lock); in tcf_mirred_init()
230 m->tcfm_blockid = 0; in tcf_mirred_init()
238 spin_unlock_bh(&m->tcf_lock); in tcf_mirred_init()
500 .index = m->tcf_index, in tcf_mirred_dump()
508 spin_lock_bh(&m->tcf_lock); in tcf_mirred_dump()
509 opt.action = m->tcf_action; in tcf_mirred_dump()
518 blockid = m->tcfm_blockid; in tcf_mirred_dump()
[all …]
A Dsch_teql.c65 struct teql_master *m; member
103 if (m) { in teql_dequeue()
178 if (m->dev == dev) in teql_qdisc_init()
181 q->m = m; in teql_qdisc_init()
185 if (m->slaves) { in teql_qdisc_init()
209 m->slaves = sch; in teql_qdisc_init()
211 m->dev->flags = (m->dev->flags&~FMASK)|(dev->flags&FMASK); in teql_qdisc_init()
367 q = m->slaves; in teql_master_open()
391 m->dev->mtu = mtu; in teql_master_open()
392 m->dev->flags = (m->dev->flags&~FMASK) | flags; in teql_master_open()
[all …]
A Dem_text.c26 #define EM_TEXT_PRIV(m) ((struct text_match *) (m)->data) argument
28 static int em_text_match(struct sk_buff *skb, struct tcf_ematch *m, in em_text_match() argument
31 struct text_match *tm = EM_TEXT_PRIV(m); in em_text_match()
44 struct tcf_ematch *m) in em_text_change() argument
92 m->datalen = sizeof(*tm); in em_text_change()
93 m->data = (unsigned long) tm; in em_text_change()
98 static void em_text_destroy(struct tcf_ematch *m) in em_text_destroy() argument
100 if (EM_TEXT_PRIV(m) && EM_TEXT_PRIV(m)->config) { in em_text_destroy()
101 textsearch_destroy(EM_TEXT_PRIV(m)->config); in em_text_destroy()
102 kfree(EM_TEXT_PRIV(m)); in em_text_destroy()
[all …]
A Dem_canid.c88 static inline struct canid_match *em_canid_priv(struct tcf_ematch *m) in em_canid_priv() argument
90 return (struct canid_match *)m->data; in em_canid_priv()
93 static int em_canid_match(struct sk_buff *skb, struct tcf_ematch *m, in em_canid_match() argument
96 struct canid_match *cm = em_canid_priv(m); in em_canid_match()
121 struct tcf_ematch *m) in em_canid_change() argument
178 m->datalen = sizeof(struct canid_match) + len; in em_canid_change()
179 m->data = (unsigned long)cm; in em_canid_change()
183 static void em_canid_destroy(struct tcf_ematch *m) in em_canid_destroy() argument
185 struct canid_match *cm = em_canid_priv(m); in em_canid_destroy()
190 static int em_canid_dump(struct sk_buff *skb, struct tcf_ematch *m) in em_canid_dump() argument
[all …]
A Dact_mpls.c57 struct tcf_mpls *m = to_mpls(a); in tcf_mpls_act() local
62 tcf_lastuse_update(&m->tcf_tm); in tcf_mpls_act()
75 p = rcu_dereference_bh(m->mpls_p); in tcf_mpls_act()
170 struct tcf_mpls *m; in tcf_mpls_init() local
280 m = to_mpls(*a); in tcf_mpls_init()
299 spin_lock_bh(&m->tcf_lock); in tcf_mpls_init()
301 p = rcu_replace_pointer(m->mpls_p, p, lockdep_is_held(&m->tcf_lock)); in tcf_mpls_init()
302 spin_unlock_bh(&m->tcf_lock); in tcf_mpls_init()
335 .index = m->tcf_index, in tcf_mpls_dump()
342 p = rcu_dereference(m->mpls_p); in tcf_mpls_dump()
[all …]
/net/l2tp/
A Dl2tp_debugfs.c78 if (WARN_ON(!m->private)) { in l2tp_dfs_seq_start()
82 pd = m->private; in l2tp_dfs_seq_start()
152 seq_printf(m, " from %pI4 to %pI4\n", in l2tp_dfs_seq_tunnel_show()
201 seq_printf(m, "%02x%02x%02x%02x", in l2tp_dfs_seq_session_show()
204 seq_puts(m, "\n"); in l2tp_dfs_seq_session_show()
211 seq_printf(m, "%02x%02x%02x%02x", in l2tp_dfs_seq_session_show()
214 seq_puts(m, "\n"); in l2tp_dfs_seq_session_show()
227 session->show(m, session); in l2tp_dfs_seq_session_show()
241 seq_puts(m, " refcnt cnt\n"); in l2tp_dfs_seq_show()
243 seq_puts(m, " [ cookie ]\n"); in l2tp_dfs_seq_show()
[all …]
/net/xdp/
A Dxskmap.c66 struct xsk_map *m; in xsk_map_alloc() local
79 if (!m) in xsk_map_alloc()
83 spin_lock_init(&m->lock); in xsk_map_alloc()
85 return &m->map; in xsk_map_alloc()
101 bpf_map_area_free(m); in xsk_map_free()
188 map_entry = &m->xsk_map[i]; in xsk_map_update_elem()
195 spin_lock_bh(&m->lock); in xsk_map_update_elem()
211 spin_unlock_bh(&m->lock); in xsk_map_update_elem()
216 spin_unlock_bh(&m->lock); in xsk_map_update_elem()
232 spin_lock_bh(&m->lock); in xsk_map_delete_elem()
[all …]
/net/sunrpc/
A Dtimer.c61 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument
69 if (m < 0) in rpc_update_rtt()
72 if (m == 0) in rpc_update_rtt()
73 m = 1L; in rpc_update_rtt()
76 m -= *srtt >> 3; in rpc_update_rtt()
77 *srtt += m; in rpc_update_rtt()
79 if (m < 0) in rpc_update_rtt()
80 m = -m; in rpc_update_rtt()
83 m -= *sdrtt >> 2; in rpc_update_rtt()
84 *sdrtt += m; in rpc_update_rtt()
A Dsvc.c97 if (m->count == 0) in __param_set_pool_mode()
98 m->mode = mode; in __param_set_pool_mode()
134 switch (m->mode) in sunrpc_get_pool_mode()
211 if (!m->to_pool) in svc_pool_map_alloc_arrays()
214 if (!m->pool_to) in svc_pool_map_alloc_arrays()
220 kfree(m->to_pool); in svc_pool_map_alloc_arrays()
221 m->to_pool = NULL; in svc_pool_map_alloc_arrays()
297 if (m->count++) { in svc_pool_map_get()
299 return m->npools; in svc_pool_map_get()
340 m->npools = 0; in svc_pool_map_put()
[all …]
/net/atm/
A Dmpoa_proc.c141 atm_mpoa_disp_qos(m); in mpc_show()
153 seq_printf(m, "%-16s%s%-14lu%-12u", in mpc_show()
160 seq_printf(m, " %-3d %-3d", in mpc_show()
163 seq_printf(m, "\n"); in mpc_show()
166 seq_printf(m, "\n"); in mpc_show()
173 seq_printf(m, "%02x", p[i]); in mpc_show()
174 seq_printf(m, "\n%-16lu%s%-14lu%-15u", in mpc_show()
182 seq_printf(m, "%-16s", ip_string); in mpc_show()
185 seq_printf(m, " %-3d %-3d", in mpc_show()
188 seq_printf(m, "\n"); in mpc_show()
[all …]
/net/rxrpc/
A Drtt.c45 long m = sample_rtt_us; /* RTT */ in rxrpc_rtt_estimator() local
65 m -= (srtt >> 3); /* m is now error in rtt est */ in rxrpc_rtt_estimator()
66 srtt += m; /* rtt = 7/8 rtt + 1/8 new */ in rxrpc_rtt_estimator()
67 if (m < 0) { in rxrpc_rtt_estimator()
68 m = -m; /* m is now abs(error) */ in rxrpc_rtt_estimator()
69 m -= (call->mdev_us >> 2); /* similar update on mdev */ in rxrpc_rtt_estimator()
78 if (m > 0) in rxrpc_rtt_estimator()
79 m >>= 3; in rxrpc_rtt_estimator()
84 call->mdev_us += m; /* mdev = 3/4 mdev + 1/4 new */ in rxrpc_rtt_estimator()
92 srtt = m << 3; /* take the measured time to be rtt */ in rxrpc_rtt_estimator()
[all …]
/net/ceph/
A Dmessenger_v1.c186 m->old_footer.flags = m->footer.flags; in prepare_write_message_footer()
217 m, con->out_seq, le16_to_cpu(m->hdr.type), in prepare_write_message()
220 WARN_ON(m->front.iov_len != le32_to_cpu(m->hdr.front_len)); in prepare_write_message()
221 WARN_ON(m->data_length != le32_to_cpu(m->hdr.data_len)); in prepare_write_message()
226 con_out_kvec_add(con, m->front.iov_len, m->front.iov_base); in prepare_write_message()
228 if (m->middle) in prepare_write_message()
238 crc = crc32c(0, m->front.iov_base, m->front.iov_len); in prepare_write_message()
1275 m->footer.flags = m->old_footer.flags; in read_partial_message()
1280 m, front_len, m->footer.front_crc, middle_len, in read_partial_message()
1286 m, con->in_front_crc, m->footer.front_crc); in read_partial_message()
[all …]
A Dceph_common.c608 size_t pos = m->count; in ceph_print_client_options()
612 seq_puts(m, "name="); in ceph_print_client_options()
614 seq_putc(m, ','); in ceph_print_client_options()
631 seq_putc(m, '|'); in ceph_print_client_options()
633 seq_putc(m, ','); in ceph_print_client_options()
643 seq_puts(m, "ms_mode=crc,"); in ceph_print_client_options()
659 seq_puts(m, "noshare,"); in ceph_print_client_options()
661 seq_puts(m, "nocrc,"); in ceph_print_client_options()
669 seq_puts(m, "rxbounce,"); in ceph_print_client_options()
685 if (m->count != pos) in ceph_print_client_options()
[all …]
/net/8021q/
A Dvlan_netlink.c109 struct ifla_vlan_qos_mapping *m; in vlan_changelink() local
122 m = nla_data(attr); in vlan_changelink()
123 vlan_dev_set_ingress_priority(dev, m->to, m->from); in vlan_changelink()
129 m = nla_data(attr); in vlan_changelink()
130 err = vlan_dev_set_egress_priority(dev, m->from, m->to); in vlan_changelink()
226 struct ifla_vlan_qos_mapping m; in vlan_fill_info() local
248 m.from = i; in vlan_fill_info()
251 sizeof(m), &m)) in vlan_fill_info()
268 m.from = pm->priority; in vlan_fill_info()
269 m.to = (pm->vlan_qos >> 13) & 0x7; in vlan_fill_info()
[all …]
/net/nfc/nci/
A Dspi.c33 struct spi_message m; in __nci_spi_send() local
51 spi_message_init(&m); in __nci_spi_send()
52 spi_message_add_tail(&t, &m); in __nci_spi_send()
54 return spi_sync(nspi->spi, &m); in __nci_spi_send()
178 struct spi_message m; in __nci_spi_read() local
184 spi_message_init(&m); in __nci_spi_read()
193 spi_message_add_tail(&tx, &m); in __nci_spi_read()
200 spi_message_add_tail(&rx, &m); in __nci_spi_read()
202 ret = spi_sync(nspi->spi, &m); in __nci_spi_read()
216 spi_message_init(&m); in __nci_spi_read()
[all …]

Completed in 73 milliseconds

123456