Lines Matching refs:pbd

610 	struct tpacket_block_desc *pbd;  in init_prb_bdqc()  local
616 pbd = (struct tpacket_block_desc *)pg_vec[0].buffer; in init_prb_bdqc()
635 prb_open_block(p1, pbd); in init_prb_bdqc()
676 struct tpacket_block_desc *pbd; in prb_retire_rx_blk_timer_expired() local
681 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_rx_blk_timer_expired()
695 if (BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
704 if (!BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
717 if (prb_curr_blk_in_use(pkc, pbd)) { in prb_retire_rx_blk_timer_expired()
731 prb_open_block(pkc, pbd); in prb_retire_rx_blk_timer_expired()
919 struct tpacket_block_desc *pbd; in prb_dispatch_next_block() local
924 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_dispatch_next_block()
927 if (TP_STATUS_USER & BLOCK_STATUS(pbd)) { in prb_dispatch_next_block()
937 prb_open_block(pkc, pbd); in prb_dispatch_next_block()
944 struct tpacket_block_desc *pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_current_block() local
947 if (likely(TP_STATUS_KERNEL == BLOCK_STATUS(pbd))) { in prb_retire_current_block()
963 prb_close_block(pkc, pbd, po, status); in prb_retire_current_block()
969 struct tpacket_block_desc *pbd) in prb_curr_blk_in_use() argument
971 return TP_STATUS_USER & BLOCK_STATUS(pbd); in prb_curr_blk_in_use()
1025 struct tpacket_block_desc *pbd, in prb_fill_curr_block() argument
1034 BLOCK_LEN(pbd) += TOTAL_PKT_LEN_INCL_ALIGN(len); in prb_fill_curr_block()
1035 BLOCK_NUM_PKTS(pbd) += 1; in prb_fill_curr_block()
1048 struct tpacket_block_desc *pbd; in __packet_lookup_frame_in_block() local
1052 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1060 if (prb_curr_blk_in_use(pkc, pbd)) { in __packet_lookup_frame_in_block()
1070 prb_open_block(pkc, pbd); in __packet_lookup_frame_in_block()
1077 end = (char *)pbd + pkc->kblk_size; in __packet_lookup_frame_in_block()
1081 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1091 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1092 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1129 struct tpacket_block_desc *pbd = GET_PBLOCK_DESC(pkc, idx); in prb_lookup_block() local
1131 if (status != BLOCK_STATUS(pbd)) in prb_lookup_block()
1133 return pbd; in prb_lookup_block()