Lines Matching refs:vf_cb

18 	struct  hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
20 return vf_cb->mac_cb;
32 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
34 ppe_comm = vf_cb->dsaf_dev->ppe_common[0];
35 ppe_index = vf_cb->port_index;
76 struct hnae_vf_cb *vf_cb;
84 vf_cb = kzalloc(struct_size(vf_cb, ae_handle.qs, qnum_per_vf),
86 if (unlikely(!vf_cb)) {
87 dev_err(dsaf_dev->dev, "malloc vf_cb fail!\n");
91 ae_handle = &vf_cb->ae_handle;
120 vf_cb->dsaf_dev = dsaf_dev;
121 vf_cb->port_index = port_id;
122 vf_cb->mac_cb = dsaf_dev->mac_cb[port_id];
124 ae_handle->phy_if = vf_cb->mac_cb->phy_if;
125 ae_handle->phy_dev = vf_cb->mac_cb->phy_dev;
126 ae_handle->if_support = vf_cb->mac_cb->if_support;
127 ae_handle->port_type = vf_cb->mac_cb->mac_type;
128 ae_handle->media_type = vf_cb->mac_cb->media_type;
133 kfree(vf_cb);
140 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
146 kfree(vf_cb);
153 struct hnae_vf_cb *vf_cb;
175 vf_cb = hns_ae_get_vf_cb(handle);
176 ret = hns_mac_wait_fifo_clean(vf_cb->mac_cb);
203 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(q->handle);
205 if (vf_cb->mac_cb->mac_type == HNAE_PORT_SERVICE)
381 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
383 if (vf_cb->mac_cb->mac_type == HNAE_PORT_DEBUG) {
384 hns_mac_reset(vf_cb->mac_cb);
385 hns_ppe_reset_common(vf_cb->dsaf_dev, 0);
627 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
635 port = vf_cb->port_index;
707 struct hnae_vf_cb *vf_cb;
714 vf_cb = hns_ae_get_vf_cb(handle);
730 hns_dsaf_get_stats(vf_cb->dsaf_dev, p, vf_cb->port_index);
742 struct hnae_vf_cb *vf_cb;
746 vf_cb = hns_ae_get_vf_cb(handle);
747 port = vf_cb->port_index;
790 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
799 ret = dsaf_dev->misc_op->cfg_serdes_loopback(vf_cb->mac_cb,
803 ret = hns_mac_config_mac_loopback(vf_cb->mac_cb, loop, en);
840 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
846 hns_rcb_get_common_regs(vf_cb->dsaf_dev->rcb_common[0], p);
854 hns_mac_get_regs(vf_cb->mac_cb, p);
855 p += hns_mac_get_regs_count(vf_cb->mac_cb);
857 if (vf_cb->mac_cb->mac_type == HNAE_PORT_SERVICE)
858 hns_dsaf_get_regs(vf_cb->dsaf_dev, vf_cb->port_index, p);
864 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle);
869 total_num += hns_mac_get_regs_count(vf_cb->mac_cb);
871 if (vf_cb->mac_cb->mac_type == HNAE_PORT_SERVICE)