Lines Matching refs:ae_handle
83 struct hnae_handle *ae_handle; in hns_ae_get_handle() local
97 ae_handle = ERR_PTR(-ENOMEM); in hns_ae_get_handle()
100 ae_handle = &vf_cb->ae_handle; in hns_ae_get_handle()
102 ae_handle->owner_dev = dsaf_dev->dev; in hns_ae_get_handle()
103 ae_handle->dev = dev; in hns_ae_get_handle()
104 ae_handle->q_num = qnum_per_vf; in hns_ae_get_handle()
107 for (ae_handle->vf_id = 0; in hns_ae_get_handle()
108 ae_handle->vf_id < vfnum_per_port; ae_handle->vf_id++) { in hns_ae_get_handle()
113 if (ae_handle->vf_id >= vfnum_per_port) { in hns_ae_get_handle()
115 ae_handle = ERR_PTR(-EINVAL); in hns_ae_get_handle()
119 ae_handle->qs = (struct hnae_queue **)(&ae_handle->qs + 1); in hns_ae_get_handle()
121 ae_handle->qs[i] = &ring_pair_cb->q; in hns_ae_get_handle()
122 ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
123 ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
133 ae_handle->phy_if = vf_cb->mac_cb->phy_if; in hns_ae_get_handle()
134 ae_handle->phy_dev = vf_cb->mac_cb->phy_dev; in hns_ae_get_handle()
135 ae_handle->if_support = vf_cb->mac_cb->if_support; in hns_ae_get_handle()
136 ae_handle->port_type = vf_cb->mac_cb->mac_type; in hns_ae_get_handle()
137 ae_handle->media_type = vf_cb->mac_cb->media_type; in hns_ae_get_handle()
138 ae_handle->dport_id = port_id; in hns_ae_get_handle()
140 return ae_handle; in hns_ae_get_handle()
144 return ae_handle; in hns_ae_get_handle()