Home
last modified time | relevance | path

Searched refs:pbd (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/tools/testing/selftests/net/
Dpsock_tpacket.c510 void __v3_test_block_seq_num(struct block_desc *pbd) in __v3_test_block_seq_num() argument
512 if (__v3_prev_block_seq_num + 1 != pbd->h1.seq_num) { in __v3_test_block_seq_num()
516 (uint64_t) pbd->h1.seq_num); in __v3_test_block_seq_num()
520 __v3_prev_block_seq_num = pbd->h1.seq_num; in __v3_test_block_seq_num()
523 static void __v3_test_block_len(struct block_desc *pbd, uint32_t bytes, int block_num) in __v3_test_block_len() argument
525 if (pbd->h1.num_pkts && bytes != pbd->h1.blk_len) { in __v3_test_block_len()
528 pbd->h1.num_pkts, bytes, pbd->h1.blk_len); in __v3_test_block_len()
533 static void __v3_test_block_header(struct block_desc *pbd, const int block_num) in __v3_test_block_header() argument
535 if ((pbd->h1.block_status & TP_STATUS_USER) == 0) { in __v3_test_block_header()
540 __v3_test_block_seq_num(pbd); in __v3_test_block_header()
[all …]
/Linux-v5.4/net/packet/
Daf_packet.c573 struct tpacket_block_desc *pbd; in init_prb_bdqc() local
579 pbd = (struct tpacket_block_desc *)pg_vec[0].buffer; in init_prb_bdqc()
598 prb_open_block(p1, pbd); in init_prb_bdqc()
640 struct tpacket_block_desc *pbd; in prb_retire_rx_blk_timer_expired() local
645 pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); in prb_retire_rx_blk_timer_expired()
659 if (BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
668 if (!BLOCK_NUM_PKTS(pbd)) { in prb_retire_rx_blk_timer_expired()
681 if (prb_curr_blk_in_use(pbd)) { in prb_retire_rx_blk_timer_expired()
695 prb_open_block(pkc, pbd); in prb_retire_rx_blk_timer_expired()
883 struct tpacket_block_desc *pbd; in prb_dispatch_next_block() local
[all …]
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dtrx.h266 static inline void set_txbuffer_desc_add_high_with_offset(__le32 *pbd, u8 off, in set_txbuffer_desc_add_high_with_offset() argument
270 *(pbd + 4 * off + 2) = cpu_to_le32(val); in set_txbuffer_desc_add_high_with_offset()
272 *(pbd + 4 * off + 2) = 0; in set_txbuffer_desc_add_high_with_offset()
280 static inline u32 get_txbuffer_desc_addr_high(__le32 *pbd, u32 off, bool dma64) in get_txbuffer_desc_addr_high() argument
283 return le32_to_cpu(*((pbd + 4 * off + 2))); in get_txbuffer_desc_addr_high()
/Linux-v5.4/Documentation/networking/
Dpacket_mmap.txt892 static void walk_block(struct block_desc *pbd, const int block_num)
894 int num_pkts = pbd->h1.num_pkts, i;
898 ppd = (struct tpacket3_hdr *) ((uint8_t *) pbd +
899 pbd->h1.offset_to_first_pkt);
912 static void flush_block(struct block_desc *pbd)
914 pbd->h1.block_status = TP_STATUS_KERNEL;
931 struct block_desc *pbd;
951 pbd = (struct block_desc *) ring.rd[block_num].iov_base;
953 if ((pbd->h1.block_status & TP_STATUS_USER) == 0) {
958 walk_block(pbd, block_num);
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3481 struct eth_tx_parse_bd_e1x *pbd, in bnx2x_set_pbd_gso() argument
3484 pbd->lso_mss = cpu_to_le16(skb_shinfo(skb)->gso_size); in bnx2x_set_pbd_gso()
3485 pbd->tcp_send_seq = bswab32(tcp_hdr(skb)->seq); in bnx2x_set_pbd_gso()
3486 pbd->tcp_flags = pbd_tcp_flags(tcp_hdr(skb)); in bnx2x_set_pbd_gso()
3489 pbd->ip_id = bswab16(ip_hdr(skb)->id); in bnx2x_set_pbd_gso()
3490 pbd->tcp_pseudo_csum = in bnx2x_set_pbd_gso()
3495 pbd->tcp_pseudo_csum = in bnx2x_set_pbd_gso()
3501 pbd->global_data |= in bnx2x_set_pbd_gso()
3593 struct eth_tx_parse_bd_e1x *pbd, in bnx2x_set_pbd_csum() argument
3599 pbd->global_data = in bnx2x_set_pbd_csum()
[all …]
/Linux-v5.4/drivers/md/
Ddm-thin.c2107 #define thin_bio(pbd) dm_bio_from_per_bio_data((pbd), sizeof(struct dm_thin_endio_hook)) argument
2112 struct dm_thin_endio_hook *pbd; in __thin_bio_rb_add() local
2119 pbd = thin_pbd(parent); in __thin_bio_rb_add()
2121 if (bi_sector < thin_bio(pbd)->bi_iter.bi_sector) in __thin_bio_rb_add()
2127 pbd = dm_per_bio_data(bio, sizeof(struct dm_thin_endio_hook)); in __thin_bio_rb_add()
2128 rb_link_node(&pbd->rb_node, parent, rbp); in __thin_bio_rb_add()
2129 rb_insert_color(&pbd->rb_node, &tc->sort_bio_list); in __thin_bio_rb_add()
2135 struct dm_thin_endio_hook *pbd; in __extract_sorted_bios() local
2139 pbd = thin_pbd(node); in __extract_sorted_bios()
2140 bio = thin_bio(pbd); in __extract_sorted_bios()
[all …]
/Linux-v5.4/
DCREDITS259 E: pbd@op.net