Lines Matching refs:pt
187 struct packet_type *pt = NULL; in ptype_get_idx() local
191 list_for_each_entry_rcu(pt, &ptype_all, list) { in ptype_get_idx()
193 return pt; in ptype_get_idx()
198 list_for_each_entry_rcu(pt, &ptype_base[t], list) { in ptype_get_idx()
200 return pt; in ptype_get_idx()
216 struct packet_type *pt; in ptype_seq_next() local
224 pt = v; in ptype_seq_next()
225 nxt = pt->list.next; in ptype_seq_next()
226 if (pt->type == htons(ETH_P_ALL)) { in ptype_seq_next()
232 hash = ntohs(pt->type) & PTYPE_HASH_MASK; in ptype_seq_next()
251 struct packet_type *pt = v; in ptype_seq_show() local
255 else if (pt->dev == NULL || dev_net(pt->dev) == seq_file_net(seq)) { in ptype_seq_show()
256 if (pt->type == htons(ETH_P_ALL)) in ptype_seq_show()
259 seq_printf(seq, "%04x", ntohs(pt->type)); in ptype_seq_show()
262 pt->dev ? pt->dev->name : "", pt->func); in ptype_seq_show()