ring_data 1783 drivers/gpu/drm/radeon/radeon_device.c uint32_t *ring_data[RADEON_NUM_RINGS]; ring_data 1807 drivers/gpu/drm/radeon/radeon_device.c &ring_data[i]); ring_data 1824 drivers/gpu/drm/radeon/radeon_device.c if (!r && ring_data[i]) { ring_data 1826 drivers/gpu/drm/radeon/radeon_device.c ring_sizes[i], ring_data[i]); ring_data 1829 drivers/gpu/drm/radeon/radeon_device.c kfree(ring_data[i]); ring_data 306 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_ring_data *ring_data) ring_data 309 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 473 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_rx_checksum(struct hns_nic_ring_data *ring_data, ring_data 476 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *netdev = ring_data->napi.dev; ring_data 538 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_poll_rx_skb(struct hns_nic_ring_data *ring_data, ring_data 541 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 542 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ring_data 565 drivers/net/ethernet/hisilicon/hns/hns_enet.c skb = *out_skb = napi_alloc_skb(&ring_data->napi, ring_data 658 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_rx_checksum(ring_data, skb, bnum_flag); ring_data 664 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_alloc_rx_buffers(struct hns_nic_ring_data *ring_data, int cleand_count) ring_data 669 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 670 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ring_data 696 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_rx_up_pro(struct hns_nic_ring_data *ring_data, ring_data 699 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ring_data 702 drivers/net/ethernet/hisilicon/hns/hns_enet.c (void)napi_gro_receive(&ring_data->napi, skb); ring_data 776 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_adpt_coalesce(struct hns_nic_ring_data *ring_data) ring_data 778 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 806 drivers/net/ethernet/hisilicon/hns/hns_enet.c handle->coal_ring_idx = ring_data->queue_index; ring_data 808 drivers/net/ethernet/hisilicon/hns/hns_enet.c handle->coal_ring_idx == ring_data->queue_index || ring_data 815 drivers/net/ethernet/hisilicon/hns/hns_enet.c handle->coal_ring_idx = ring_data->queue_index; ring_data 820 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_rx_poll_one(struct hns_nic_ring_data *ring_data, ring_data 823 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 839 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_alloc_rx_buffers(ring_data, ring_data 846 drivers/net/ethernet/hisilicon/hns/hns_enet.c err = hns_nic_poll_rx_skb(ring_data, &skb, &bnum); ring_data 859 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data, skb); ring_data 866 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_alloc_rx_buffers(ring_data, ring_data 872 drivers/net/ethernet/hisilicon/hns/hns_enet.c static bool hns_nic_rx_fini_pro(struct hns_nic_ring_data *ring_data) ring_data 874 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 881 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring->q->handle->dev->ops->toggle_ring_irq(ring, 0); ring_data 886 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_adpt_coalesce(ring_data); ring_data 890 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring->q->handle->dev->ops->toggle_ring_irq( ring_data 891 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring, 1); ring_data 899 drivers/net/ethernet/hisilicon/hns/hns_enet.c static bool hns_nic_rx_fini_pro_v2(struct hns_nic_ring_data *ring_data) ring_data 901 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 909 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_adpt_coalesce(ring_data); ring_data 948 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_tx_poll_one(struct hns_nic_ring_data *ring_data, ring_data 951 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 952 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ring_data 982 drivers/net/ethernet/hisilicon/hns/hns_enet.c dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); ring_data 1003 drivers/net/ethernet/hisilicon/hns/hns_enet.c static bool hns_nic_tx_fini_pro(struct hns_nic_ring_data *ring_data) ring_data 1005 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 1008 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring->q->handle->dev->ops->toggle_ring_irq(ring, 0); ring_data 1013 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring->q->handle->dev->ops->toggle_ring_irq( ring_data 1014 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring, 1); ring_data 1022 drivers/net/ethernet/hisilicon/hns/hns_enet.c static bool hns_nic_tx_fini_pro_v2(struct hns_nic_ring_data *ring_data) ring_data 1024 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 1033 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_tx_clr_all_bufs(struct hns_nic_ring_data *ring_data) ring_data 1035 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 1036 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ring_data 1047 drivers/net/ethernet/hisilicon/hns/hns_enet.c dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); ring_data 1054 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_ring_data *ring_data = ring_data 1056 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_ring *ring = ring_data->ring; ring_data 1058 drivers/net/ethernet/hisilicon/hns/hns_enet.c clean_complete += ring_data->poll_one( ring_data 1059 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data, budget - clean_complete, ring_data 1060 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ex_process); ring_data 1063 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ring_data->fini_process(ring_data)) { ring_data 1076 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_ring_data *ring_data = (struct hns_nic_ring_data *)dev; ring_data 1078 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring->q->handle->dev->ops->toggle_ring_irq( ring_data 1079 drivers/net/ethernet/hisilicon/hns/hns_enet.c ring_data->ring, 1); ring_data 1080 drivers/net/ethernet/hisilicon/hns/hns_enet.c napi_schedule(&ring_data->napi); ring_data 1173 drivers/net/ethernet/hisilicon/hns/hns_enet.c napi_enable(&priv->ring_data[idx].napi); ring_data 1175 drivers/net/ethernet/hisilicon/hns/hns_enet.c enable_irq(priv->ring_data[idx].ring->irq); ring_data 1176 drivers/net/ethernet/hisilicon/hns/hns_enet.c h->dev->ops->toggle_ring_irq(priv->ring_data[idx].ring, 0); ring_data 1227 drivers/net/ethernet/hisilicon/hns/hns_enet.c h->dev->ops->toggle_ring_irq(priv->ring_data[idx].ring, 1); ring_data 1228 drivers/net/ethernet/hisilicon/hns/hns_enet.c disable_irq(priv->ring_data[idx].ring->irq); ring_data 1230 drivers/net/ethernet/hisilicon/hns/hns_enet.c napi_disable(&priv->ring_data[idx].napi); ring_data 1265 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (priv->ring_data[i].ring->irq_init_flag == RCB_IRQ_INITED) { ring_data 1266 drivers/net/ethernet/hisilicon/hns/hns_enet.c irq_set_affinity_hint(priv->ring_data[i].ring->irq, ring_data 1268 drivers/net/ethernet/hisilicon/hns/hns_enet.c free_irq(priv->ring_data[i].ring->irq, ring_data 1269 drivers/net/ethernet/hisilicon/hns/hns_enet.c &priv->ring_data[i]); ring_data 1270 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ring_data[i].ring->irq_init_flag = ring_data 1285 drivers/net/ethernet/hisilicon/hns/hns_enet.c rd = &priv->ring_data[i]; ring_data 1403 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_tx_clr_all_bufs(priv->ring_data + i); ring_data 1525 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_drop_rx_fetch(struct hns_nic_ring_data *ring_data, ring_data 2113 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ring_data = kzalloc(array3_size(h->q_num, ring_data 2114 drivers/net/ethernet/hisilicon/hns/hns_enet.c sizeof(*priv->ring_data), 2), ring_data 2116 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (!priv->ring_data) ring_data 2120 drivers/net/ethernet/hisilicon/hns/hns_enet.c rd = &priv->ring_data[i]; ring_data 2132 drivers/net/ethernet/hisilicon/hns/hns_enet.c rd = &priv->ring_data[i]; ring_data 2154 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_napi_del(&priv->ring_data[i].napi); ring_data 2155 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (priv->ring_data[i].ring->irq_init_flag == RCB_IRQ_INITED) { ring_data 2157 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ring_data[i].ring->irq, ring_data 2159 drivers/net/ethernet/hisilicon/hns/hns_enet.c free_irq(priv->ring_data[i].ring->irq, ring_data 2160 drivers/net/ethernet/hisilicon/hns/hns_enet.c &priv->ring_data[i]); ring_data 2163 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ring_data[i].ring->irq_init_flag = RCB_IRQ_NOT_INITED; ring_data 2165 drivers/net/ethernet/hisilicon/hns/hns_enet.c kfree(priv->ring_data); ring_data 2234 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ring_data = NULL; ring_data 2409 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (priv->ring_data) ring_data 2411 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ring_data = NULL; ring_data 68 drivers/net/ethernet/hisilicon/hns/hns_enet.h struct hns_nic_ring_data *ring_data; ring_data 83 drivers/net/ethernet/hisilicon/hns/hns_enet.h #define tx_ring_data(priv, idx) ((priv)->ring_data[idx]) ring_data 85 drivers/net/ethernet/hisilicon/hns/hns_enet.h ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)]) ring_data 93 drivers/net/ethernet/hisilicon/hns/hns_enet.h struct hns_nic_ring_data *ring_data); ring_data 371 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c static void __lb_other_process(struct hns_nic_ring_data *ring_data, ring_data 384 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (!ring_data) { /* Just for doing create frame*/ ring_data 405 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ring = ring_data->ring; ring_data 406 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev = ring_data->napi.dev; ring_data 408 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); ring_data 446 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hns_nic_ring_data *ring_data; ring_data 453 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ring_data = &priv->ring_data[i]; ring_data 454 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (void)ring_data->poll_one(ring_data, ring_data 19 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c struct hns3_nic_ring_data *ring_data; ring_data 26 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c if (!priv->ring_data) { ring_data 47 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring_data = priv->ring_data; ring_data 57 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring = ring_data[(u32)(i + h->kinfo.num_tqps)].ring; ring_data 89 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring = ring_data[i].ring; ring_data 133 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c struct hns3_nic_ring_data *ring_data; ring_data 146 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring_data = &priv->ring_data[i]; ring_data 147 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c if (!ring_data || !ring_data->ring || ring_data 148 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c !ring_data->ring->tqp_vector) ring_data 154 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring_data->ring->tqp_vector->vector_irq); ring_data 163 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c struct hns3_nic_ring_data *ring_data; ring_data 186 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring_data = priv->ring_data; ring_data 187 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring = ring_data[q_num].ring; ring_data 217 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring = ring_data[q_num + h->kinfo.num_tqps].ring; ring_data 488 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i].queue_index); ring_data 1322 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_ring_data *ring_data = ring_data 1324 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_ring *ring = ring_data->ring; ring_data 1384 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c dev_queue = netdev_get_tx_queue(netdev, ring_data->queue_index); ring_data 1401 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_stop_subqueue(netdev, ring_data->queue_index); ring_data 1514 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring = priv->ring_data[idx].ring; ring_data 1532 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring = priv->ring_data[idx + queue_num].ring; ring_data 1717 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tx_ring = priv->ring_data[timeout_queue].ring; ring_data 3336 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i].ring); ring_data 3339 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i + tqp_num].ring); ring_data 3341 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i].ring->tqp_vector = tqp_vector; ring_data 3342 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i + tqp_num].ring->tqp_vector = tqp_vector; ring_data 3489 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_ring_data *ring_data = priv->ring_data; ring_data 3501 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring_data[q->tqp_index].ring = ring; ring_data 3502 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring_data[q->tqp_index].queue_index = q->tqp_index; ring_data 3506 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring_data[q->tqp_index + queue_num].ring = ring; ring_data 3507 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring_data[q->tqp_index + queue_num].queue_index = q->tqp_index; ring_data 3537 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c devm_kfree(priv->dev, priv->ring_data[tqp->tqp_index].ring); ring_data 3550 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data = devm_kzalloc(&pdev->dev, ring_data 3552 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c sizeof(*priv->ring_data), ring_data 3555 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!priv->ring_data) ring_data 3567 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c devm_kfree(priv->dev, priv->ring_data[i].ring); ring_data 3569 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i + h->kinfo.num_tqps].ring); ring_data 3572 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c devm_kfree(&pdev->dev, priv->ring_data); ring_data 3573 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data = NULL; ring_data 3582 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!priv->ring_data) ring_data 3586 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c devm_kfree(priv->dev, priv->ring_data[i].ring); ring_data 3588 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i + h->kinfo.num_tqps].ring); ring_data 3590 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c devm_kfree(priv->dev, priv->ring_data); ring_data 3591 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data = NULL; ring_data 3708 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c q = priv->ring_data[tc_info->tqp_offset + j].ring->tqp; ring_data 3723 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = hns3_alloc_ring_memory(priv->ring_data[i].ring); ring_data 3730 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c u64_stats_init(&priv->ring_data[i].ring->syncp); ring_data 3737 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_fini_ring(priv->ring_data[j].ring); ring_data 3748 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_fini_ring(priv->ring_data[i].ring); ring_data 3749 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_fini_ring(priv->ring_data[i + h->kinfo.num_tqps].ring); ring_data 3953 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data = NULL; ring_data 4160 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring = priv->ring_data[i].ring; ring_data 4163 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring = priv->ring_data[i + h->kinfo.num_tqps].ring; ring_data 4187 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_init_ring_hw(priv->ring_data[i].ring); ring_data 4192 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_clear_tx_ring(priv->ring_data[i].ring); ring_data 4193 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i].ring->next_to_clean = 0; ring_data 4194 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i].ring->next_to_use = 0; ring_data 4196 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c rx_ring = priv->ring_data[i + h->kinfo.num_tqps].ring; ring_data 521 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h struct hns3_nic_ring_data *ring_data; ring_data 619 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h #define tx_ring_data(priv, idx) ((priv)->ring_data[idx]) ring_data 201 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hns3_enet_ring *ring = priv->ring_data[i].ring; ring_data 224 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hns3_enet_ring *ring = priv->ring_data[i].ring; ring_data 489 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ring = nic_priv->ring_data[i].ring; ring_data 498 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ring = nic_priv->ring_data[i + kinfo->num_tqps].ring; ring_data 601 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c param->tx_pending = priv->ring_data[0].ring->desc_num; ring_data 602 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c param->rx_pending = priv->ring_data[queue_num].ring->desc_num; ring_data 904 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c priv->ring_data[i].ring->desc_num = tx_desc_num; ring_data 905 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c priv->ring_data[i + h->kinfo.num_tqps].ring->desc_num = ring_data 922 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c memcpy(&tmp_rings[i], priv->ring_data[i].ring, ring_data 970 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c old_tx_desc_num = priv->ring_data[0].ring->desc_num; ring_data 971 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c old_rx_desc_num = priv->ring_data[queue_num].ring->desc_num; ring_data 1000 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c memcpy(priv->ring_data[i].ring, &tmp_rings[i], ring_data 1101 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c tx_vector = priv->ring_data[queue].ring->tqp_vector; ring_data 1102 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c rx_vector = priv->ring_data[queue_num + queue].ring->tqp_vector; ring_data 1227 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c tx_vector = priv->ring_data[queue].ring->tqp_vector; ring_data 1228 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c rx_vector = priv->ring_data[queue_num + queue].ring->tqp_vector; ring_data 2883 drivers/net/ethernet/neterion/s2io.c static int rx_intr_handler(struct ring_info *ring_data, int budget) ring_data 2897 drivers/net/ethernet/neterion/s2io.c get_info = ring_data->rx_curr_get_info; ring_data 2899 drivers/net/ethernet/neterion/s2io.c memcpy(&put_info, &ring_data->rx_curr_put_info, sizeof(put_info)); ring_data 2901 drivers/net/ethernet/neterion/s2io.c rxdp = ring_data->rx_blocks[get_block].rxds[get_info.offset].virt_addr; ring_data 2911 drivers/net/ethernet/neterion/s2io.c ring_data->dev->name); ring_data 2917 drivers/net/ethernet/neterion/s2io.c ring_data->dev->name); ring_data 2920 drivers/net/ethernet/neterion/s2io.c if (ring_data->rxd_mode == RXD_MODE_1) { ring_data 2922 drivers/net/ethernet/neterion/s2io.c pci_unmap_single(ring_data->pdev, (dma_addr_t) ring_data 2924 drivers/net/ethernet/neterion/s2io.c ring_data->mtu + ring_data 2929 drivers/net/ethernet/neterion/s2io.c } else if (ring_data->rxd_mode == RXD_MODE_3B) { ring_data 2931 drivers/net/ethernet/neterion/s2io.c pci_dma_sync_single_for_cpu(ring_data->pdev, ring_data 2935 drivers/net/ethernet/neterion/s2io.c pci_unmap_single(ring_data->pdev, ring_data 2937 drivers/net/ethernet/neterion/s2io.c ring_data->mtu + 4, ring_data 2941 drivers/net/ethernet/neterion/s2io.c rx_osm_handler(ring_data, rxdp); ring_data 2943 drivers/net/ethernet/neterion/s2io.c ring_data->rx_curr_get_info.offset = get_info.offset; ring_data 2944 drivers/net/ethernet/neterion/s2io.c rxdp = ring_data->rx_blocks[get_block]. ring_data 2946 drivers/net/ethernet/neterion/s2io.c if (get_info.offset == rxd_count[ring_data->rxd_mode]) { ring_data 2948 drivers/net/ethernet/neterion/s2io.c ring_data->rx_curr_get_info.offset = get_info.offset; ring_data 2950 drivers/net/ethernet/neterion/s2io.c if (get_block == ring_data->block_count) ring_data 2952 drivers/net/ethernet/neterion/s2io.c ring_data->rx_curr_get_info.block_index = get_block; ring_data 2953 drivers/net/ethernet/neterion/s2io.c rxdp = ring_data->rx_blocks[get_block].block_virt_addr; ring_data 2956 drivers/net/ethernet/neterion/s2io.c if (ring_data->nic->config.napi) { ring_data 2966 drivers/net/ethernet/neterion/s2io.c if (ring_data->lro) { ring_data 2969 drivers/net/ethernet/neterion/s2io.c struct lro *lro = &ring_data->lro0_n[i]; ring_data 2971 drivers/net/ethernet/neterion/s2io.c update_L3L4_header(ring_data->nic, lro); ring_data 7270 drivers/net/ethernet/neterion/s2io.c static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp) ring_data 7272 drivers/net/ethernet/neterion/s2io.c struct s2io_nic *sp = ring_data->nic; ring_data 7273 drivers/net/ethernet/neterion/s2io.c struct net_device *dev = ring_data->dev; ring_data 7276 drivers/net/ethernet/neterion/s2io.c int ring_no = ring_data->ring_no; ring_data 7342 drivers/net/ethernet/neterion/s2io.c ring_data->rx_bufs_left -= 1; ring_data 7354 drivers/net/ethernet/neterion/s2io.c int get_block = ring_data->rx_curr_get_info.block_index; ring_data 7355 drivers/net/ethernet/neterion/s2io.c int get_off = ring_data->rx_curr_get_info.offset; ring_data 7360 drivers/net/ethernet/neterion/s2io.c struct buffAdd *ba = &ring_data->ba[get_block][get_off]; ring_data 7366 drivers/net/ethernet/neterion/s2io.c ((!ring_data->lro) || ring_data 7378 drivers/net/ethernet/neterion/s2io.c if (ring_data->lro) { ring_data 7383 drivers/net/ethernet/neterion/s2io.c ret = s2io_club_tcp_session(ring_data, ring_data 8360 drivers/net/ethernet/neterion/s2io.c static int s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer, ring_data 8381 drivers/net/ethernet/neterion/s2io.c struct lro *l_lro = &ring_data->lro0_n[i]; ring_data 8419 drivers/net/ethernet/neterion/s2io.c struct lro *l_lro = &ring_data->lro0_n[i]; ring_data 1063 drivers/net/ethernet/neterion/s2io.h static int rx_intr_handler(struct ring_info *ring_data, int budget); ring_data 1070 drivers/net/ethernet/neterion/s2io.h static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp); ring_data 1102 drivers/net/ethernet/neterion/s2io.h static int s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer,