Lines Matching refs:pt
174 struct packet_type *pt = NULL; in ptype_get_idx() local
181 list_for_each_entry_rcu(pt, ptype_list, list) { in ptype_get_idx()
183 return pt; in ptype_get_idx()
188 list_for_each_entry_rcu(pt, &net_hotdata.ptype_all, list) { in ptype_get_idx()
190 return pt; in ptype_get_idx()
195 list_for_each_entry_rcu(pt, &ptype_base[t], list) { in ptype_get_idx()
197 return pt; in ptype_get_idx()
214 struct packet_type *pt; in ptype_seq_next() local
222 pt = v; in ptype_seq_next()
223 nxt = pt->list.next; in ptype_seq_next()
224 if (pt->dev) { in ptype_seq_next()
225 if (nxt != &pt->dev->ptype_all) in ptype_seq_next()
228 dev = pt->dev; in ptype_seq_next()
240 if (pt->type == htons(ETH_P_ALL)) { in ptype_seq_next()
247 hash = ntohs(pt->type) & PTYPE_HASH_MASK; in ptype_seq_next()
266 struct packet_type *pt = v; in ptype_seq_show() local
270 else if ((!pt->af_packet_net || net_eq(pt->af_packet_net, seq_file_net(seq))) && in ptype_seq_show()
271 (!pt->dev || net_eq(dev_net(pt->dev), seq_file_net(seq)))) { in ptype_seq_show()
272 if (pt->type == htons(ETH_P_ALL)) in ptype_seq_show()
275 seq_printf(seq, "%04x", ntohs(pt->type)); in ptype_seq_show()
278 pt->dev ? pt->dev->name : "", pt->func); in ptype_seq_show()