Lines Matching refs:pt
212 struct packet_type *pt = NULL; in ptype_get_idx() local
216 list_for_each_entry_rcu(pt, &ptype_all, list) { in ptype_get_idx()
218 return pt; in ptype_get_idx()
223 list_for_each_entry_rcu(pt, &ptype_base[t], list) { in ptype_get_idx()
225 return pt; in ptype_get_idx()
241 struct packet_type *pt; in ptype_seq_next() local
249 pt = v; in ptype_seq_next()
250 nxt = pt->list.next; in ptype_seq_next()
251 if (pt->type == htons(ETH_P_ALL)) { in ptype_seq_next()
257 hash = ntohs(pt->type) & PTYPE_HASH_MASK; in ptype_seq_next()
276 struct packet_type *pt = v; in ptype_seq_show() local
280 else if (pt->dev == NULL || dev_net(pt->dev) == seq_file_net(seq)) { in ptype_seq_show()
281 if (pt->type == htons(ETH_P_ALL)) in ptype_seq_show()
284 seq_printf(seq, "%04x", ntohs(pt->type)); in ptype_seq_show()
287 pt->dev ? pt->dev->name : "", pt->func); in ptype_seq_show()