Lines Matching refs:vector_id
3736 static void hclge_free_vector(struct hclge_dev *hdev, int vector_id) in hclge_free_vector() argument
3738 if (hdev->vector_status[vector_id] == HCLGE_INVALID_VPORT) { in hclge_free_vector()
3740 "vector(vector_id %d) has been freed.\n", vector_id); in hclge_free_vector()
3744 hdev->vector_status[vector_id] = HCLGE_INVALID_VPORT; in hclge_free_vector()
4805 int vector_id; in hclge_put_vector() local
4807 vector_id = hclge_get_vector_index(hdev, vector); in hclge_put_vector()
4808 if (vector_id < 0) { in hclge_put_vector()
4811 return vector_id; in hclge_put_vector()
4814 hclge_free_vector(hdev, vector_id); in hclge_put_vector()
4971 int vector_id, bool en, in hclge_bind_ring_with_vector() argument
4986 req->int_vector_id_l = hnae3_get_field(vector_id, in hclge_bind_ring_with_vector()
4989 req->int_vector_id_h = hnae3_get_field(vector_id, in hclge_bind_ring_with_vector()
5024 hnae3_get_field(vector_id, in hclge_bind_ring_with_vector()
5028 hnae3_get_field(vector_id, in hclge_bind_ring_with_vector()
5053 int vector_id; in hclge_map_ring_to_vector() local
5055 vector_id = hclge_get_vector_index(hdev, vector); in hclge_map_ring_to_vector()
5056 if (vector_id < 0) { in hclge_map_ring_to_vector()
5059 return vector_id; in hclge_map_ring_to_vector()
5062 return hclge_bind_ring_with_vector(vport, vector_id, true, ring_chain); in hclge_map_ring_to_vector()
5070 int vector_id, ret; in hclge_unmap_ring_frm_vector() local
5075 vector_id = hclge_get_vector_index(hdev, vector); in hclge_unmap_ring_frm_vector()
5076 if (vector_id < 0) { in hclge_unmap_ring_frm_vector()
5078 "Get vector index fail. ret =%d\n", vector_id); in hclge_unmap_ring_frm_vector()
5079 return vector_id; in hclge_unmap_ring_frm_vector()
5082 ret = hclge_bind_ring_with_vector(vport, vector_id, false, ring_chain); in hclge_unmap_ring_frm_vector()
5086 vector_id, ret); in hclge_unmap_ring_frm_vector()