Home
last modified time | relevance | path

Searched refs:desc_data (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-desc.c22 struct xlgmac_desc_data *desc_data) in xlgmac_unmap_desc_data() argument
24 if (desc_data->skb_dma) { in xlgmac_unmap_desc_data()
25 if (desc_data->mapped_as_page) { in xlgmac_unmap_desc_data()
26 dma_unmap_page(pdata->dev, desc_data->skb_dma, in xlgmac_unmap_desc_data()
27 desc_data->skb_dma_len, DMA_TO_DEVICE); in xlgmac_unmap_desc_data()
29 dma_unmap_single(pdata->dev, desc_data->skb_dma, in xlgmac_unmap_desc_data()
30 desc_data->skb_dma_len, DMA_TO_DEVICE); in xlgmac_unmap_desc_data()
32 desc_data->skb_dma = 0; in xlgmac_unmap_desc_data()
33 desc_data->skb_dma_len = 0; in xlgmac_unmap_desc_data()
36 if (desc_data->skb) { in xlgmac_unmap_desc_data()
[all …]
Ddwc-xlgmac-net.c521 struct xlgmac_desc_data *desc_data; in xlgmac_free_tx_data() local
533 desc_data = XLGMAC_GET_DESC_DATA(ring, j); in xlgmac_free_tx_data()
534 desc_ops->unmap_desc_data(pdata, desc_data); in xlgmac_free_tx_data()
542 struct xlgmac_desc_data *desc_data; in xlgmac_free_rx_data() local
554 desc_data = XLGMAC_GET_DESC_DATA(ring, j); in xlgmac_free_rx_data()
555 desc_ops->unmap_desc_data(pdata, desc_data); in xlgmac_free_rx_data()
954 struct xlgmac_desc_data *desc_data; in xlgmac_rx_refresh() local
962 desc_data = XLGMAC_GET_DESC_DATA(ring, ring->dirty); in xlgmac_rx_refresh()
965 desc_ops->unmap_desc_data(pdata, desc_data); in xlgmac_rx_refresh()
967 if (desc_ops->map_rx_buffer(pdata, ring, desc_data)) in xlgmac_rx_refresh()
[all …]
Ddwc-xlgmac-hw.c680 struct xlgmac_desc_data *desc_data; in xlgmac_tx_start_xmit() local
688 desc_data = XLGMAC_GET_DESC_DATA(ring, ring->cur); in xlgmac_tx_start_xmit()
689 writel(lower_32_bits(desc_data->dma_desc_addr), in xlgmac_tx_start_xmit()
707 struct xlgmac_desc_data *desc_data; in xlgmac_dev_xmit() local
758 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_dev_xmit()
759 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
822 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_dev_xmit()
823 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
827 dma_desc->desc0 = cpu_to_le32(lower_32_bits(desc_data->skb_dma)); in xlgmac_dev_xmit()
828 dma_desc->desc1 = cpu_to_le32(upper_32_bits(desc_data->skb_dma)); in xlgmac_dev_xmit()
[all …]
Ddwc-xlgmac-common.c290 struct xlgmac_desc_data *desc_data; in xlgmac_dump_tx_desc() local
294 desc_data = XLGMAC_GET_DESC_DATA(ring, idx); in xlgmac_dump_tx_desc()
295 dma_desc = desc_data->dma_desc; in xlgmac_dump_tx_desc()
298 desc_data->dma_desc, &desc_data->dma_desc_addr); in xlgmac_dump_tx_desc()
315 struct xlgmac_desc_data *desc_data; in xlgmac_dump_rx_desc() local
318 desc_data = XLGMAC_GET_DESC_DATA(ring, idx); in xlgmac_dump_rx_desc()
319 dma_desc = desc_data->dma_desc; in xlgmac_dump_rx_desc()
322 desc_data->dma_desc, &desc_data->dma_desc_addr); in xlgmac_dump_rx_desc()
Ddwc-xlgmac.h389 struct xlgmac_desc_data *desc_data);
391 struct xlgmac_desc_data *desc_data);
428 void (*tx_desc_reset)(struct xlgmac_desc_data *desc_data);
430 struct xlgmac_desc_data *desc_data,
/linux-6.1.9/drivers/net/ethernet/mediatek/
Dmtk_star_emac.c312 struct mtk_star_ring_desc_data *desc_data) in mtk_star_ring_pop_tail() argument
323 desc_data->len = status & MTK_STAR_DESC_MSK_LEN; in mtk_star_ring_pop_tail()
324 desc_data->flags = status & ~MTK_STAR_DESC_MSK_LEN; in mtk_star_ring_pop_tail()
325 desc_data->dma_addr = ring->dma_addrs[ring->tail]; in mtk_star_ring_pop_tail()
326 desc_data->skb = ring->skbs[ring->tail]; in mtk_star_ring_pop_tail()
342 struct mtk_star_ring_desc_data *desc_data, in mtk_star_ring_push_head() argument
350 ring->skbs[ring->head] = desc_data->skb; in mtk_star_ring_push_head()
351 ring->dma_addrs[ring->head] = desc_data->dma_addr; in mtk_star_ring_push_head()
353 status |= desc_data->len; in mtk_star_ring_push_head()
357 WRITE_ONCE(desc->data_ptr, desc_data->dma_addr); in mtk_star_ring_push_head()
[all …]
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_err.c1830 __le32 *desc_data; in hclge_handle_mpf_ras_error() local
1872 desc_data = (__le32 *)&desc[2]; in hclge_handle_mpf_ras_error()
1873 status = le32_to_cpu(*(desc_data + 2)); in hclge_handle_mpf_ras_error()
1879 status = le32_to_cpu(*(desc_data + 3)) & BIT(0); in hclge_handle_mpf_ras_error()
1886 status = le32_to_cpu(*(desc_data + 4)) & HCLGE_SSU_COMMON_ERR_INT_MASK; in hclge_handle_mpf_ras_error()
1893 desc_data = (__le32 *)&desc[3]; in hclge_handle_mpf_ras_error()
1894 status = le32_to_cpu(*desc_data) & HCLGE_IGU_INT_MASK; in hclge_handle_mpf_ras_error()
1901 desc_data = (__le32 *)&desc[4]; in hclge_handle_mpf_ras_error()
1902 status = le32_to_cpu(*(desc_data + 1)); in hclge_handle_mpf_ras_error()
1908 status = le32_to_cpu(*(desc_data + 3)) & HCLGE_PPP_MPF_INT_ST3_MASK; in hclge_handle_mpf_ras_error()
[all …]
Dhclge_main.c496 __le64 *desc_data; in hclge_mac_update_stats_defective() local
513 desc_data = (__le64 *)(&desc[0].data[0]); in hclge_mac_update_stats_defective()
518 *data += le64_to_cpu(*desc_data); in hclge_mac_update_stats_defective()
520 desc_data++; in hclge_mac_update_stats_defective()
533 __le64 *desc_data; in hclge_mac_update_stats_complete() local
558 desc_data = (__le64 *)(&desc[0].data[0]); in hclge_mac_update_stats_complete()
563 *data += le64_to_cpu(*desc_data); in hclge_mac_update_stats_complete()
565 desc_data++; in hclge_mac_update_stats_complete()
12285 __le32 *desc_data; in hclge_get_32_bit_regs() local
12312 desc_data = (__le32 *)(&desc[i].data[0]); in hclge_get_32_bit_regs()
[all …]
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dcounters.c711 struct mlx5_ib_flow_counters_desc *desc_data, u32 ncounters) in counters_set_description() argument
727 if (desc_data[i].description > IB_COUNTER_BYTES) in counters_set_description()
730 if (cntrs_max_index <= desc_data[i].index) in counters_set_description()
731 cntrs_max_index = desc_data[i].index + 1; in counters_set_description()
735 mcounters->counters_data = desc_data; in counters_set_description()
748 struct mlx5_ib_flow_counters_desc *desc_data = NULL; in mlx5_ib_flow_counters_set_data() local
757 desc_data = kcalloc(cntrs_data->ncounters, in mlx5_ib_flow_counters_set_data()
758 sizeof(*desc_data), in mlx5_ib_flow_counters_set_data()
760 if (!desc_data) in mlx5_ib_flow_counters_set_data()
763 if (copy_from_user(desc_data, in mlx5_ib_flow_counters_set_data()
[all …]
/linux-6.1.9/drivers/mtd/nand/raw/
Dstm32_fmc2_nand.c840 struct dma_async_tx_descriptor *desc_data, *desc_ecc; in stm32_fmc2_nfc_xfer() local
868 desc_data = dmaengine_prep_slave_sg(dma_ch, nfc->dma_data_sg.sgl, in stm32_fmc2_nfc_xfer()
871 if (!desc_data) { in stm32_fmc2_nfc_xfer()
878 desc_data->callback = stm32_fmc2_nfc_dma_callback; in stm32_fmc2_nfc_xfer()
879 desc_data->callback_param = &nfc->dma_data_complete; in stm32_fmc2_nfc_xfer()
880 ret = dma_submit_error(dmaengine_submit(desc_data)); in stm32_fmc2_nfc_xfer()