Lines Matching refs:pbd

613 	struct tpacket_block_desc *pbd;  in init_prb_bdqc()  local
619 pbd = (struct tpacket_block_desc *)pg_vec[0].buffer; in init_prb_bdqc()
638 prb_open_block(p1, pbd); in init_prb_bdqc()
679 struct tpacket_block_desc *pbd; in prb_retire_rx_blk_timer_expired() local
684 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_rx_blk_timer_expired()
698 if (BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
707 if (!BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
720 if (prb_curr_blk_in_use(pkc, pbd)) { in prb_retire_rx_blk_timer_expired()
734 prb_open_block(pkc, pbd); in prb_retire_rx_blk_timer_expired()
922 struct tpacket_block_desc *pbd; in prb_dispatch_next_block() local
927 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_dispatch_next_block()
930 if (TP_STATUS_USER & BLOCK_STATUS(pbd)) { in prb_dispatch_next_block()
940 prb_open_block(pkc, pbd); in prb_dispatch_next_block()
947 struct tpacket_block_desc *pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_current_block() local
950 if (likely(TP_STATUS_KERNEL == BLOCK_STATUS(pbd))) { in prb_retire_current_block()
966 prb_close_block(pkc, pbd, po, status); in prb_retire_current_block()
972 struct tpacket_block_desc *pbd) in prb_curr_blk_in_use() argument
974 return TP_STATUS_USER & BLOCK_STATUS(pbd); in prb_curr_blk_in_use()
1028 struct tpacket_block_desc *pbd, in prb_fill_curr_block() argument
1037 BLOCK_LEN(pbd) += TOTAL_PKT_LEN_INCL_ALIGN(len); in prb_fill_curr_block()
1038 BLOCK_NUM_PKTS(pbd) += 1; in prb_fill_curr_block()
1051 struct tpacket_block_desc *pbd; in __packet_lookup_frame_in_block() local
1055 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1063 if (prb_curr_blk_in_use(pkc, pbd)) { in __packet_lookup_frame_in_block()
1073 prb_open_block(pkc, pbd); in __packet_lookup_frame_in_block()
1080 end = (char *)pbd + pkc->kblk_size; in __packet_lookup_frame_in_block()
1084 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1094 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in __packet_lookup_frame_in_block()
1095 prb_fill_curr_block(curr, pkc, pbd, len); in __packet_lookup_frame_in_block()
1132 struct tpacket_block_desc *pbd = GET_PBLOCK_DESC(pkc, idx); in prb_lookup_block() local
1134 if (status != BLOCK_STATUS(pbd)) in prb_lookup_block()
1136 return pbd; in prb_lookup_block()