/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_dump.c | 136 struct igc_tx_buffer *buffer_info; in igc_rings_dump() local 139 buffer_info = &tx_ring->tx_buffer_info[tx_ring->next_to_clean]; in igc_rings_dump() 143 (u64)dma_unmap_addr(buffer_info, dma), in igc_rings_dump() 144 dma_unmap_len(buffer_info, len), in igc_rings_dump() 145 buffer_info->next_to_watch, in igc_rings_dump() 146 (u64)buffer_info->time_stamp); in igc_rings_dump() 176 struct igc_tx_buffer *buffer_info; in igc_rings_dump() local 179 buffer_info = &tx_ring->tx_buffer_info[i]; in igc_rings_dump() 194 (u64)dma_unmap_addr(buffer_info, dma), in igc_rings_dump() 195 dma_unmap_len(buffer_info, len), in igc_rings_dump() [all …]
|
/linux/drivers/net/ethernet/intel/igbvf/ |
H A D | netdev.c | 140 struct igbvf_buffer *buffer_info; in igbvf_alloc_rx_buffers() local 146 buffer_info = &rx_ring->buffer_info[i]; in igbvf_alloc_rx_buffers() 156 if (adapter->rx_ps_hdr_size && !buffer_info->page_dma) { in igbvf_alloc_rx_buffers() 157 if (!buffer_info->page) { in igbvf_alloc_rx_buffers() 158 buffer_info->page = alloc_page(GFP_ATOMIC); in igbvf_alloc_rx_buffers() 159 if (!buffer_info->page) { in igbvf_alloc_rx_buffers() 163 buffer_info->page_offset = 0; in igbvf_alloc_rx_buffers() 165 buffer_info->page_offset ^= PAGE_SIZE / 2; in igbvf_alloc_rx_buffers() 167 buffer_info->page_dma = in igbvf_alloc_rx_buffers() 168 dma_map_page(&pdev->dev, buffer_info->page, in igbvf_alloc_rx_buffers() [all …]
|
H A D | igbvf.h | 139 struct igbvf_buffer *buffer_info; member
|
/linux/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_main.c | 845 struct atl1c_buffer *buffer_info, in atl1c_clean_buffer() argument 849 if (buffer_info->flags & ATL1C_BUFFER_FREE) in atl1c_clean_buffer() 851 if (buffer_info->dma) { in atl1c_clean_buffer() 852 if (buffer_info->flags & ATL1C_PCIMAP_FROMDEVICE) in atl1c_clean_buffer() 857 if (buffer_info->flags & ATL1C_PCIMAP_SINGLE) in atl1c_clean_buffer() 858 dma_unmap_single(&pdev->dev, buffer_info->dma, in atl1c_clean_buffer() 859 buffer_info->length, pci_driection); in atl1c_clean_buffer() 860 else if (buffer_info->flags & ATL1C_PCIMAP_PAGE) in atl1c_clean_buffer() 861 dma_unmap_page(&pdev->dev, buffer_info->dma, in atl1c_clean_buffer() 862 buffer_info->length, pci_driection); in atl1c_clean_buffer() [all …]
|
H A D | atl1c.h | 481 struct atl1c_buffer *buffer_info; member 493 struct atl1c_buffer *buffer_info; member
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_main.c | 1502 txdr->buffer_info = vzalloc(size); in e1000_setup_tx_resources() 1503 if (!txdr->buffer_info) in e1000_setup_tx_resources() 1515 vfree(txdr->buffer_info); in e1000_setup_tx_resources() 1543 vfree(txdr->buffer_info); in e1000_setup_tx_resources() 1692 rxdr->buffer_info = vzalloc(size); in e1000_setup_rx_resources() 1693 if (!rxdr->buffer_info) in e1000_setup_rx_resources() 1707 vfree(rxdr->buffer_info); in e1000_setup_rx_resources() 1928 vfree(tx_ring->buffer_info); in e1000_free_tx_resources() 1929 tx_ring->buffer_info = NULL; in e1000_free_tx_resources() 1953 struct e1000_tx_buffer *buffer_info, in e1000_unmap_and_free_tx_resource() argument [all …]
|
H A D | e1000_ethtool.c | 934 if (txdr->desc && txdr->buffer_info) { in e1000_free_desc_rings() 936 if (txdr->buffer_info[i].dma) in e1000_free_desc_rings() 938 txdr->buffer_info[i].dma, in e1000_free_desc_rings() 939 txdr->buffer_info[i].length, in e1000_free_desc_rings() 941 dev_kfree_skb(txdr->buffer_info[i].skb); in e1000_free_desc_rings() 945 if (rxdr->desc && rxdr->buffer_info) { in e1000_free_desc_rings() 947 if (rxdr->buffer_info[i].dma) in e1000_free_desc_rings() 949 rxdr->buffer_info[i].dma, in e1000_free_desc_rings() 952 kfree(rxdr->buffer_info[i].rxbuf.data); in e1000_free_desc_rings() 967 kfree(txdr->buffer_info); in e1000_free_desc_rings() [all …]
|
H A D | e1000.h | 157 struct e1000_tx_buffer *buffer_info; member 178 struct e1000_rx_buffer *buffer_info; member
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_main.c | 863 struct pch_gbe_adapter *adapter, struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_tx_resource() argument 865 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_tx_resource() 866 dma_unmap_single(&adapter->pdev->dev, buffer_info->dma, in pch_gbe_unmap_and_free_tx_resource() 867 buffer_info->length, DMA_TO_DEVICE); in pch_gbe_unmap_and_free_tx_resource() 868 buffer_info->mapped = false; in pch_gbe_unmap_and_free_tx_resource() 870 if (buffer_info->skb) { in pch_gbe_unmap_and_free_tx_resource() 871 dev_kfree_skb_any(buffer_info->skb); in pch_gbe_unmap_and_free_tx_resource() 872 buffer_info->skb = NULL; in pch_gbe_unmap_and_free_tx_resource() 883 struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_rx_resource() argument 885 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_rx_resource() [all …]
|
H A D | pch_gbe.h | 449 struct pch_gbe_buffer *buffer_info; member 472 struct pch_gbe_buffer *buffer_info; member
|
/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | netdev.c | 206 struct e1000_buffer *buffer_info; in e1000e_dump() local 244 buffer_info = &tx_ring->buffer_info[tx_ring->next_to_clean]; in e1000e_dump() 247 (unsigned long long)buffer_info->dma, in e1000e_dump() 248 buffer_info->length, in e1000e_dump() 249 buffer_info->next_to_watch, in e1000e_dump() 250 (unsigned long long)buffer_info->time_stamp); in e1000e_dump() 291 buffer_info = &tx_ring->buffer_info[i]; in e1000e_dump() 307 (unsigned long long)buffer_info->dma, in e1000e_dump() 308 buffer_info->length, buffer_info->next_to_watch, in e1000e_dump() 309 (unsigned long long)buffer_info->time_stamp, in e1000e_dump() [all …]
|
H A D | ethtool.c | 1114 struct e1000_buffer *buffer_info; in e1000_free_desc_rings() local 1117 if (tx_ring->desc && tx_ring->buffer_info) { in e1000_free_desc_rings() 1119 buffer_info = &tx_ring->buffer_info[i]; in e1000_free_desc_rings() 1121 if (buffer_info->dma) in e1000_free_desc_rings() 1123 buffer_info->dma, in e1000_free_desc_rings() 1124 buffer_info->length, in e1000_free_desc_rings() 1126 dev_kfree_skb(buffer_info->skb); in e1000_free_desc_rings() 1130 if (rx_ring->desc && rx_ring->buffer_info) { in e1000_free_desc_rings() 1132 buffer_info = &rx_ring->buffer_info[i]; in e1000_free_desc_rings() 1134 if (buffer_info->dma) in e1000_free_desc_rings() [all …]
|
/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atl1.c | 1030 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources() 1031 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources() 1037 rfd_ring->buffer_info = in atl1_setup_ring_resources() 1038 (tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources() 1102 kfree(tpd_ring->buffer_info); in atl1_setup_ring_resources() 1130 struct atl1_buffer *buffer_info; in atl1_clean_rx_ring() local 1137 buffer_info = &rfd_ring->buffer_info[i]; in atl1_clean_rx_ring() 1138 if (buffer_info->dma) { in atl1_clean_rx_ring() 1139 dma_unmap_page(&pdev->dev, buffer_info->dma, in atl1_clean_rx_ring() 1140 buffer_info->length, DMA_FROM_DEVICE); in atl1_clean_rx_ring() [all …]
|
H A D | atl1.h | 609 struct atl1_buffer *buffer_info; member 620 struct atl1_buffer *buffer_info; member
|
/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_main.c | 1576 struct lan743x_tx_buffer_info *buffer_info = NULL; in lan743x_tx_release_desc() local 1582 buffer_info = &tx->buffer_info[descriptor_index]; in lan743x_tx_release_desc() 1583 if (!(buffer_info->flags & TX_BUFFER_INFO_FLAG_ACTIVE)) in lan743x_tx_release_desc() 1594 if (buffer_info->dma_ptr) { in lan743x_tx_release_desc() 1595 if (buffer_info->flags & in lan743x_tx_release_desc() 1598 buffer_info->dma_ptr, in lan743x_tx_release_desc() 1599 buffer_info->buffer_length, in lan743x_tx_release_desc() 1603 buffer_info->dma_ptr, in lan743x_tx_release_desc() 1604 buffer_info->buffer_length, in lan743x_tx_release_desc() 1607 buffer_info->dma_ptr = 0; in lan743x_tx_release_desc() [all …]
|
H A D | lan743x_main.h | 984 struct lan743x_tx_buffer_info *buffer_info; member 1014 struct lan743x_rx_buffer_info *buffer_info; member
|
/linux/fs/reiserfs/ |
H A D | ibalance.c | 30 struct buffer_info *dest_bi, in internal_define_dest_src_infos() 31 struct buffer_info *src_bi, in internal_define_dest_src_infos() 34 memset(dest_bi, 0, sizeof(struct buffer_info)); in internal_define_dest_src_infos() 35 memset(src_bi, 0, sizeof(struct buffer_info)); in internal_define_dest_src_infos() 126 static void internal_insert_childs(struct buffer_info *cur_bi, in internal_insert_childs() 205 static void internal_delete_pointers_items(struct buffer_info *cur_bi, in internal_delete_pointers_items() 277 static void internal_delete_childs(struct buffer_info *cur_bi, int from, int n) in internal_delete_childs() 298 static void internal_copy_pointers_items(struct buffer_info *dest_bi, in internal_copy_pointers_items() 394 static void internal_move_pointers_items(struct buffer_info *dest_bi, in internal_move_pointers_items() 395 struct buffer_info *src_bi, in internal_move_pointers_items() [all …]
|
H A D | lbalance.c | 15 static void leaf_copy_dir_entries(struct buffer_info *dest_bi, in leaf_copy_dir_entries() 134 static int leaf_copy_boundary_item(struct buffer_info *dest_bi, in leaf_copy_boundary_item() 310 static void leaf_copy_items_entirely(struct buffer_info *dest_bi, in leaf_copy_items_entirely() 414 static void leaf_item_bottle(struct buffer_info *dest_bi, in leaf_item_bottle() 521 static int leaf_copy_items(struct buffer_info *dest_bi, struct buffer_head *src, in leaf_copy_items() 630 struct buffer_info *dest_bi, in leaf_define_dest_src_infos() 631 struct buffer_info *src_bi, in leaf_define_dest_src_infos() 635 memset(dest_bi, 0, sizeof(struct buffer_info)); in leaf_define_dest_src_infos() 636 memset(src_bi, 0, sizeof(struct buffer_info)); in leaf_define_dest_src_infos() 719 struct buffer_info dest_bi, src_bi; in leaf_move_items() [all …]
|
H A D | do_balan.c | 20 struct buffer_info *bi) in buffer_info_init_left() 29 struct buffer_info *bi) in buffer_info_init_right() 38 struct buffer_info *bi) in buffer_info_init_tbS0() 47 struct buffer_info *bi, in buffer_info_init_bh() 81 struct buffer_info bi; in balance_leaf_when_delete_del() 115 struct buffer_info bi; in balance_leaf_when_delete_cut() 242 struct buffer_info bi; in balance_leaf_when_delete() 291 struct buffer_info bi; in balance_leaf_insert_left() 356 struct buffer_info bi; in balance_leaf_paste_left_shift_dirent() 419 struct buffer_info bi; in balance_leaf_paste_left_shift() [all …]
|
H A D | reiserfs.h | 2588 struct buffer_info { struct 2600 static inline struct super_block *sb_from_bi(struct buffer_info *bi) in sb_from_bi() argument 3207 void print_bi(struct buffer_info *bi, char *mes); 3227 void leaf_delete_items(struct buffer_info *cur_bi, int last_first, int first, 3229 void leaf_insert_into_buf(struct buffer_info *bi, int before, 3233 void leaf_paste_in_buffer(struct buffer_info *bi, int pasted_item_num, 3236 void leaf_cut_from_buffer(struct buffer_info *bi, int cut_item_num, 3238 void leaf_paste_entries(struct buffer_info *bi, int item_num, int before, 3260 void make_empty_node(struct buffer_info *);
|
/linux/sound/soc/mediatek/common/ |
H A D | mtk-btcvsd.c | 107 struct mtk_btcvsd_snd_hw_info buffer_info; member 334 num_valid_addr = bt->tx->buffer_info.num_valid_addr; in btcvsd_tx_clean_buffer() 343 bt->tx->buffer_info.bt_sram_addr[i]); in btcvsd_tx_clean_buffer() 345 dst = (void *)bt->tx->buffer_info.bt_sram_addr[i]; in btcvsd_tx_clean_buffer() 349 bt->tx->buffer_info.packet_length, in btcvsd_tx_clean_buffer() 350 bt->tx->buffer_info.packet_num); in btcvsd_tx_clean_buffer() 454 bt->tx->buffer_info.packet_length = packet_length; in mtk_btcvsd_write_to_bt() 455 bt->tx->buffer_info.packet_num = packet_num; in mtk_btcvsd_write_to_bt() 456 for (i = 0; i < bt->tx->buffer_info.num_valid_addr; i++) { in mtk_btcvsd_write_to_bt() 457 if (bt->tx->buffer_info.bt_sram_addr[i] == ap_addr_tx) { in mtk_btcvsd_write_to_bt() [all …]
|
/linux/drivers/media/platform/qcom/venus/ |
H A D | hfi_cmds.h | 120 u32 buffer_info[]; member 230 u32 buffer_info[] __counted_by(num_buffers);
|
H A D | hfi_cmds.c | 205 bi = (struct hfi_buffer_info *)pkt->buffer_info; in pkt_session_set_buffers() 212 pkt->shdr.hdr.size = struct_size(pkt, buffer_info, in pkt_session_set_buffers() 215 pkt->buffer_info[i] = bd->device_addr; in pkt_session_set_buffers() 240 bi = (struct hfi_buffer_info *)pkt->buffer_info; in pkt_session_unset_buffers() 250 pkt->buffer_info[i] = bd->device_addr; in pkt_session_unset_buffers() 255 buffer_info, bd->num_buffers); in pkt_session_unset_buffers()
|
H A D | hfi_msgs.h | 250 u32 buffer_info[]; member
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_main.c | 362 struct igb_tx_buffer *buffer_info; in igb_dump() local 364 buffer_info = &tx_ring->tx_buffer_info[tx_ring->next_to_clean]; in igb_dump() 367 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump() 368 dma_unmap_len(buffer_info, len), in igb_dump() 369 buffer_info->next_to_watch, in igb_dump() 370 (u64)buffer_info->time_stamp); in igb_dump() 399 struct igb_tx_buffer *buffer_info; in igb_dump() local 401 buffer_info = &tx_ring->tx_buffer_info[i]; in igb_dump() 416 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump() 417 dma_unmap_len(buffer_info, len), in igb_dump() [all …]
|