Lines Matching refs:pbd

581 	struct tpacket_block_desc *pbd;  in init_prb_bdqc()  local
587 pbd = (struct tpacket_block_desc *)pg_vec[0].buffer; in init_prb_bdqc()
607 prb_open_block(p1, pbd); in init_prb_bdqc()
649 struct tpacket_block_desc *pbd; in prb_retire_rx_blk_timer_expired() local
654 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_rx_blk_timer_expired()
668 if (BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
676 if (!BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
689 if (prb_curr_blk_in_use(pbd)) { in prb_retire_rx_blk_timer_expired()
703 prb_open_block(pkc, pbd); in prb_retire_rx_blk_timer_expired()
891 struct tpacket_block_desc *pbd; in prb_dispatch_next_block() local
896 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_dispatch_next_block()
899 if (TP_STATUS_USER & BLOCK_STATUS(pbd)) { in prb_dispatch_next_block()
909 prb_open_block(pkc, pbd); in prb_dispatch_next_block()
916 struct tpacket_block_desc *pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_current_block() local
919 if (likely(TP_STATUS_KERNEL == BLOCK_STATUS(pbd))) { in prb_retire_current_block()
934 prb_close_block(pkc, pbd, po, status); in prb_retire_current_block()
939 static int prb_curr_blk_in_use(struct tpacket_block_desc *pbd) in prb_curr_blk_in_use() argument
941 return TP_STATUS_USER & BLOCK_STATUS(pbd); in prb_curr_blk_in_use()
997 struct tpacket_block_desc *pbd, in prb_fill_curr_block() argument
1007 BLOCK_LEN(pbd) += TOTAL_PKT_LEN_INCL_ALIGN(len); in prb_fill_curr_block()
1008 BLOCK_NUM_PKTS(pbd) += 1; in prb_fill_curr_block()
1020 struct tpacket_block_desc *pbd; in __packet_lookup_frame_in_block() local
1024 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1032 if (prb_curr_blk_in_use(pbd)) { in __packet_lookup_frame_in_block()
1042 prb_open_block(pkc, pbd); in __packet_lookup_frame_in_block()
1049 end = (char *)pbd + pkc->kblk_size; in __packet_lookup_frame_in_block()
1053 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1063 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1064 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1101 struct tpacket_block_desc *pbd = GET_PBLOCK_DESC(pkc, idx); in prb_lookup_block() local
1103 if (status != BLOCK_STATUS(pbd)) in prb_lookup_block()
1105 return pbd; in prb_lookup_block()