Lines Matching refs:pbd

619 	struct tpacket_block_desc *pbd;  in init_prb_bdqc()  local
625 pbd = (struct tpacket_block_desc *)pg_vec[0].buffer; in init_prb_bdqc()
645 prb_open_block(p1, pbd); in init_prb_bdqc()
687 struct tpacket_block_desc *pbd; in prb_retire_rx_blk_timer_expired() local
692 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_rx_blk_timer_expired()
706 if (BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
714 if (!BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
727 if (prb_curr_blk_in_use(pbd)) { in prb_retire_rx_blk_timer_expired()
741 prb_open_block(pkc, pbd); in prb_retire_rx_blk_timer_expired()
929 struct tpacket_block_desc *pbd; in prb_dispatch_next_block() local
934 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_dispatch_next_block()
937 if (TP_STATUS_USER & BLOCK_STATUS(pbd)) { in prb_dispatch_next_block()
947 prb_open_block(pkc, pbd); in prb_dispatch_next_block()
954 struct tpacket_block_desc *pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_current_block() local
957 if (likely(TP_STATUS_KERNEL == BLOCK_STATUS(pbd))) { in prb_retire_current_block()
972 prb_close_block(pkc, pbd, po, status); in prb_retire_current_block()
977 static int prb_curr_blk_in_use(struct tpacket_block_desc *pbd) in prb_curr_blk_in_use() argument
979 return TP_STATUS_USER & BLOCK_STATUS(pbd); in prb_curr_blk_in_use()
1035 struct tpacket_block_desc *pbd, in prb_fill_curr_block() argument
1045 BLOCK_LEN(pbd) += TOTAL_PKT_LEN_INCL_ALIGN(len); in prb_fill_curr_block()
1046 BLOCK_NUM_PKTS(pbd) += 1; in prb_fill_curr_block()
1058 struct tpacket_block_desc *pbd; in __packet_lookup_frame_in_block() local
1062 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1070 if (prb_curr_blk_in_use(pbd)) { in __packet_lookup_frame_in_block()
1080 prb_open_block(pkc, pbd); in __packet_lookup_frame_in_block()
1087 end = (char *)pbd + pkc->kblk_size; in __packet_lookup_frame_in_block()
1091 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1101 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1102 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1139 struct tpacket_block_desc *pbd = GET_PBLOCK_DESC(pkc, idx); in prb_lookup_block() local
1141 if (status != BLOCK_STATUS(pbd)) in prb_lookup_block()
1143 return pbd; in prb_lookup_block()