Lines Matching refs:hdr
187 static inline int __v1_rx_kernel_ready(struct tpacket_hdr *hdr)
189 return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER);
192 static inline void __v1_rx_user_ready(struct tpacket_hdr *hdr)
194 hdr->tp_status = TP_STATUS_KERNEL;
198 static inline int __v2_rx_kernel_ready(struct tpacket2_hdr *hdr)
200 return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER);
203 static inline void __v2_rx_user_ready(struct tpacket2_hdr *hdr)
205 hdr->tp_status = TP_STATUS_KERNEL;
294 static inline int __v1_tx_kernel_ready(struct tpacket_hdr *hdr)
296 return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING));
299 static inline void __v1_tx_user_ready(struct tpacket_hdr *hdr)
301 hdr->tp_status = TP_STATUS_SEND_REQUEST;
305 static inline int __v2_tx_kernel_ready(struct tpacket2_hdr *hdr)
307 return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING));
310 static inline void __v2_tx_user_ready(struct tpacket2_hdr *hdr)
312 hdr->tp_status = TP_STATUS_SEND_REQUEST;