Lines Matching refs:tqp_vectors

395 	struct hns3_enet_tqp_vector *tqp_vectors;  in hns3_nic_uninit_irq()  local
399 tqp_vectors = &priv->tqp_vector[i]; in hns3_nic_uninit_irq()
401 if (tqp_vectors->irq_init_flag != HNS3_VECTOR_INITED) in hns3_nic_uninit_irq()
405 irq_set_affinity_hint(tqp_vectors->vector_irq, NULL); in hns3_nic_uninit_irq()
408 free_irq(tqp_vectors->vector_irq, tqp_vectors); in hns3_nic_uninit_irq()
409 tqp_vectors->irq_init_flag = HNS3_VECTOR_NOT_INITED; in hns3_nic_uninit_irq()
415 struct hns3_enet_tqp_vector *tqp_vectors; in hns3_nic_init_irq() local
423 tqp_vectors = &priv->tqp_vector[i]; in hns3_nic_init_irq()
425 if (tqp_vectors->irq_init_flag == HNS3_VECTOR_INITED) in hns3_nic_init_irq()
428 if (tqp_vectors->tx_group.ring && tqp_vectors->rx_group.ring) { in hns3_nic_init_irq()
429 snprintf(tqp_vectors->name, HNAE3_INT_NAME_LEN, in hns3_nic_init_irq()
434 } else if (tqp_vectors->rx_group.ring) { in hns3_nic_init_irq()
435 snprintf(tqp_vectors->name, HNAE3_INT_NAME_LEN, in hns3_nic_init_irq()
439 } else if (tqp_vectors->tx_group.ring) { in hns3_nic_init_irq()
440 snprintf(tqp_vectors->name, HNAE3_INT_NAME_LEN, in hns3_nic_init_irq()
449 tqp_vectors->name[HNAE3_INT_NAME_LEN - 1] = '\0'; in hns3_nic_init_irq()
451 irq_set_status_flags(tqp_vectors->vector_irq, IRQ_NOAUTOEN); in hns3_nic_init_irq()
452 ret = request_irq(tqp_vectors->vector_irq, hns3_irq_handle, 0, in hns3_nic_init_irq()
453 tqp_vectors->name, tqp_vectors); in hns3_nic_init_irq()
456 tqp_vectors->vector_irq); in hns3_nic_init_irq()
461 irq_set_affinity_hint(tqp_vectors->vector_irq, in hns3_nic_init_irq()
462 &tqp_vectors->affinity_mask); in hns3_nic_init_irq()
464 tqp_vectors->irq_init_flag = HNS3_VECTOR_INITED; in hns3_nic_init_irq()