tqp_vector 148 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c !ring_data->ring->tqp_vector) tqp_vector 154 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c ring_data->ring->tqp_vector->vector_irq); tqp_vector 89 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector = vector; tqp_vector 91 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c napi_schedule_irqoff(&tqp_vector->napi); tqp_vector 102 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vectors = &priv->tqp_vector[i]; tqp_vector 126 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vectors = &priv->tqp_vector[i]; tqp_vector 169 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_mask_vector_irq(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 172 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c writel(mask_en, tqp_vector->mask_addr); tqp_vector 175 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_vector_enable(struct hns3_enet_tqp_vector *tqp_vector) tqp_vector 177 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c napi_enable(&tqp_vector->napi); tqp_vector 180 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_mask_vector_irq(tqp_vector, 1); tqp_vector 183 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_vector_disable(struct hns3_enet_tqp_vector *tqp_vector) tqp_vector 186 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_mask_vector_irq(tqp_vector, 0); tqp_vector 188 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c disable_irq(tqp_vector->vector_irq); tqp_vector 189 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c napi_disable(&tqp_vector->napi); tqp_vector 192 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c void hns3_set_vector_coalesce_rl(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 202 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (rl_reg > 0 && !tqp_vector->tx_group.coal.gl_adapt_enable && tqp_vector 203 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c !tqp_vector->rx_group.coal.gl_adapt_enable) tqp_vector 209 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c writel(rl_reg, tqp_vector->mask_addr + HNS3_VECTOR_RL_OFFSET); tqp_vector 212 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c void hns3_set_vector_coalesce_rx_gl(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 217 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c writel(rx_gl_reg, tqp_vector->mask_addr + HNS3_VECTOR_GL0_OFFSET); tqp_vector 220 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c void hns3_set_vector_coalesce_tx_gl(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 225 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c writel(tx_gl_reg, tqp_vector->mask_addr + HNS3_VECTOR_GL1_OFFSET); tqp_vector 228 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_vector_gl_rl_init(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 237 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->tx_group.coal.gl_adapt_enable = 1; tqp_vector 238 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->rx_group.coal.gl_adapt_enable = 1; tqp_vector 240 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->tx_group.coal.int_gl = HNS3_INT_GL_50K; tqp_vector 241 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->rx_group.coal.int_gl = HNS3_INT_GL_50K; tqp_vector 243 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->rx_group.coal.flow_level = HNS3_FLOW_LOW; tqp_vector 244 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->tx_group.coal.flow_level = HNS3_FLOW_LOW; tqp_vector 247 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_vector_gl_rl_init_hw(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 252 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_set_vector_coalesce_tx_gl(tqp_vector, tqp_vector 253 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->tx_group.coal.int_gl); tqp_vector 254 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_set_vector_coalesce_rx_gl(tqp_vector, tqp_vector 255 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->rx_group.coal.int_gl); tqp_vector 256 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_set_vector_coalesce_rl(tqp_vector, h->kinfo.int_rl_setting); tqp_vector 344 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 354 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[i]; tqp_vector 356 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->vector_irq); tqp_vector 393 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_vector_enable(&priv->tqp_vector[i]); tqp_vector 412 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_vector_disable(&priv->tqp_vector[j]); tqp_vector 425 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector = &priv->tqp_vector[i]; tqp_vector 426 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_ring *ring = tqp_vector->tx_group.ring; tqp_vector 432 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c &tqp_vector->affinity_mask, tqp_vector 502 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_vector_disable(&priv->tqp_vector[i]); tqp_vector 1718 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c napi = &tx_ring->tqp_vector->napi; tqp_vector 1768 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c readl(tx_ring->tqp_vector->mask_addr)); tqp_vector 2358 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring->tqp_vector->tx_group.total_bytes += bytes; tqp_vector 2359 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring->tqp_vector->tx_group.total_packets += pkts; tqp_vector 2413 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_rl_err(ring->tqp_vector->napi.dev, tqp_vector 2576 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c napi_gro_flush(&ring->tqp_vector->napi, false); tqp_vector 2578 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c napi_gro_receive(&ring->tqp_vector->napi, skb); tqp_vector 2641 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring->skb = napi_alloc_skb(&ring->tqp_vector->napi, HNS3_RX_HEAD_SIZE); tqp_vector 2716 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c new_skb = napi_alloc_skb(&ring->tqp_vector->napi, tqp_vector 2719 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_rl_err(ring->tqp_vector->napi.dev, tqp_vector 2864 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ring->tqp_vector->rx_group.total_bytes += len; tqp_vector 3011 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 3015 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = ring_group->ring->tqp_vector; tqp_vector 3017 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c jiffies_to_msecs(jiffies - tqp_vector->last_jiffies); tqp_vector 3055 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c &tqp_vector->rx_group == ring_group) tqp_vector 3067 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 3073 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = ring_group->ring->tqp_vector; tqp_vector 3074 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!tqp_vector->last_jiffies) tqp_vector 3111 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_update_new_int_gl(struct hns3_enet_tqp_vector *tqp_vector) tqp_vector 3113 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_ring_group *rx_group = &tqp_vector->rx_group; tqp_vector 3114 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_ring_group *tx_group = &tqp_vector->tx_group; tqp_vector 3119 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->last_jiffies + msecs_to_jiffies(1000))) tqp_vector 3125 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_set_vector_coalesce_rx_gl(tqp_vector, tqp_vector 3132 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_set_vector_coalesce_tx_gl(tqp_vector, tqp_vector 3136 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->last_jiffies = jiffies; tqp_vector 3145 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector = tqp_vector 3158 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_for_each_ring(ring, tqp_vector->tx_group) tqp_vector 3162 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (tqp_vector->num_tqps > 1) tqp_vector 3163 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c rx_budget = max(budget / tqp_vector->num_tqps, 1); tqp_vector 3165 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_for_each_ring(ring, tqp_vector->rx_group) { tqp_vector 3175 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->rx_group.total_packets += rx_pkt_total; tqp_vector 3182 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_update_new_int_gl(tqp_vector); tqp_vector 3183 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_mask_vector_irq(tqp_vector, 1); tqp_vector 3189 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static int hns3_get_vector_ring_chain(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 3192 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct pci_dev *pdev = tqp_vector->handle->pdev; tqp_vector 3198 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tx_ring = tqp_vector->tx_group.ring; tqp_vector 3229 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c rx_ring = tqp_vector->rx_group.ring; tqp_vector 3272 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_free_vector_ring_chain(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 3275 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct pci_dev *pdev = tqp_vector->handle->pdev; tqp_vector 3299 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 3307 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[vector_i]; tqp_vector 3309 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c &tqp_vector->affinity_mask); tqp_vector 3317 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 3324 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[i]; tqp_vector 3325 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_vector_gl_rl_init_hw(tqp_vector, priv); tqp_vector 3326 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->num_tqps = 0; tqp_vector 3333 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[vector_i]; tqp_vector 3335 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_add_ring_to_group(&tqp_vector->tx_group, tqp_vector 3338 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_add_ring_to_group(&tqp_vector->rx_group, tqp_vector 3341 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i].ring->tqp_vector = tqp_vector; tqp_vector 3342 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ring_data[i + tqp_num].ring->tqp_vector = tqp_vector; tqp_vector 3343 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->num_tqps++; tqp_vector 3347 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[i]; tqp_vector 3349 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->rx_group.total_bytes = 0; tqp_vector 3350 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->rx_group.total_packets = 0; tqp_vector 3351 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->tx_group.total_bytes = 0; tqp_vector 3352 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->tx_group.total_packets = 0; tqp_vector 3353 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->handle = h; tqp_vector 3355 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = hns3_get_vector_ring_chain(tqp_vector, tqp_vector 3361 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->vector_irq, &vector_ring_chain); tqp_vector 3363 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_free_vector_ring_chain(tqp_vector, &vector_ring_chain); tqp_vector 3368 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_napi_add(priv->netdev, &tqp_vector->napi, tqp_vector 3376 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_napi_del(&priv->tqp_vector[i].napi); tqp_vector 3386 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 3408 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->tqp_vector = (struct hns3_enet_tqp_vector *) tqp_vector 3409 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c devm_kcalloc(&pdev->dev, vector_num, sizeof(*priv->tqp_vector), tqp_vector 3411 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!priv->tqp_vector) { tqp_vector 3417 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[i]; tqp_vector 3418 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->idx = i; tqp_vector 3419 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->mask_addr = vector[i].io_addr; tqp_vector 3420 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->vector_irq = vector[i].vector; tqp_vector 3421 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_vector_gl_rl_init(tqp_vector, priv); tqp_vector 3439 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 3443 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[i]; tqp_vector 3445 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!tqp_vector->rx_group.ring && !tqp_vector->tx_group.ring) tqp_vector 3448 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_get_vector_ring_chain(tqp_vector, &vector_ring_chain); tqp_vector 3451 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->vector_irq, &vector_ring_chain); tqp_vector 3453 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_free_vector_ring_chain(tqp_vector, &vector_ring_chain); tqp_vector 3455 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (tqp_vector->irq_init_flag == HNS3_VECTOR_INITED) { tqp_vector 3456 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c irq_set_affinity_hint(tqp_vector->vector_irq, NULL); tqp_vector 3457 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c free_irq(tqp_vector->vector_irq, tqp_vector); tqp_vector 3458 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector->irq_init_flag = HNS3_VECTOR_NOT_INITED; tqp_vector 3461 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_clear_ring_group(&tqp_vector->rx_group); tqp_vector 3462 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_clear_ring_group(&tqp_vector->tx_group); tqp_vector 3463 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_napi_del(&priv->tqp_vector[i].napi); tqp_vector 3474 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 3476 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tqp_vector = &priv->tqp_vector[i]; tqp_vector 3477 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = h->ae_algo->ops->put_vector(h, tqp_vector->vector_irq); tqp_vector 3482 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c devm_kfree(&pdev->dev, priv->tqp_vector); tqp_vector 4223 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c memcpy(&priv->tx_coal, &priv->tqp_vector[0].tx_group.coal, tqp_vector 4225 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c memcpy(&priv->rx_coal, &priv->tqp_vector[0].rx_group.coal, tqp_vector 4235 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c memcpy(&priv->tqp_vector[i].tx_group.coal, &priv->tx_coal, tqp_vector 4237 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c memcpy(&priv->tqp_vector[i].rx_group.coal, &priv->rx_coal, tqp_vector 406 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 522 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h struct hns3_enet_tqp_vector *tqp_vector; tqp_vector 662 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h void hns3_set_vector_coalesce_rx_gl(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 664 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h void hns3_set_vector_coalesce_tx_gl(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 666 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h void hns3_set_vector_coalesce_rl(struct hns3_enet_tqp_vector *tqp_vector, tqp_vector 175 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hns3_enet_tqp_vector *tqp_vector = ring->tqp_vector; tqp_vector 185 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c tqp_vector->rx_group.total_packets++; tqp_vector 205 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c rx_group = &ring->tqp_vector->rx_group; tqp_vector 1101 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c tx_vector = priv->ring_data[queue].ring->tqp_vector; tqp_vector 1102 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c rx_vector = priv->ring_data[queue_num + queue].ring->tqp_vector; tqp_vector 1227 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c tx_vector = priv->ring_data[queue].ring->tqp_vector; tqp_vector 1228 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c rx_vector = priv->ring_data[queue_num + queue].ring->tqp_vector;