Lines Matching refs:vf_rep

111 	struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev);  in lio_vf_rep_open()  local
116 oct = vf_rep->oct; in lio_vf_rep_open()
120 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_open()
132 atomic_set(&vf_rep->ifstate, (atomic_read(&vf_rep->ifstate) | in lio_vf_rep_open()
144 struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); in lio_vf_rep_stop() local
149 oct = vf_rep->oct; in lio_vf_rep_stop()
153 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_stop()
165 atomic_set(&vf_rep->ifstate, (atomic_read(&vf_rep->ifstate) & in lio_vf_rep_stop()
186 struct lio_vf_rep_desc *vf_rep = netdev_priv(dev); in lio_vf_rep_get_stats64() local
189 stats64->tx_packets = vf_rep->stats.rx_packets; in lio_vf_rep_get_stats64()
190 stats64->tx_bytes = vf_rep->stats.rx_bytes; in lio_vf_rep_get_stats64()
191 stats64->tx_dropped = vf_rep->stats.rx_dropped; in lio_vf_rep_get_stats64()
193 stats64->rx_packets = vf_rep->stats.tx_packets; in lio_vf_rep_get_stats64()
194 stats64->rx_bytes = vf_rep->stats.tx_bytes; in lio_vf_rep_get_stats64()
195 stats64->rx_dropped = vf_rep->stats.tx_dropped; in lio_vf_rep_get_stats64()
201 struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); in lio_vf_rep_change_mtu() local
206 oct = vf_rep->oct; in lio_vf_rep_change_mtu()
210 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_change_mtu()
230 struct lio_vf_rep_desc *vf_rep = netdev_priv(dev); in lio_vf_rep_phys_port_name() local
231 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_phys_port_name()
235 vf_rep->ifidx - oct->pf_num * 64 - 1); in lio_vf_rep_phys_port_name()
296 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_pkt_recv() local
315 vf_rep = netdev_priv(vf_ndev); in lio_vf_rep_pkt_recv()
316 if (!(atomic_read(&vf_rep->ifstate) & LIO_IFSTATE_RUNNING) || in lio_vf_rep_pkt_recv()
371 struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); in lio_vf_rep_pkt_xmit() local
372 struct net_device *parent_ndev = vf_rep->parent_ndev; in lio_vf_rep_pkt_xmit()
373 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_pkt_xmit()
381 if (!(atomic_read(&vf_rep->ifstate) & LIO_IFSTATE_RUNNING) || in lio_vf_rep_pkt_xmit()
385 if (octnet_iq_is_full(vf_rep->oct, parent_lio->txq)) { in lio_vf_rep_pkt_xmit()
419 vf_rep->ifidx, 0, 0); in lio_vf_rep_pkt_xmit()
450 struct lio_vf_rep_desc *vf_rep = netdev_priv(dev); in lio_vf_get_port_parent_id() local
451 struct net_device *parent_ndev = vf_rep->parent_ndev; in lio_vf_get_port_parent_id()
464 struct lio_vf_rep_desc *vf_rep = wk->ctxptr; in lio_vf_rep_fetch_stats() local
470 oct = vf_rep->oct; in lio_vf_rep_fetch_stats()
474 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_fetch_stats()
481 memcpy(&vf_rep->stats, &stats, sizeof(stats)); in lio_vf_rep_fetch_stats()
484 schedule_delayed_work(&vf_rep->stats_wk.work, in lio_vf_rep_fetch_stats()
491 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_create() local
517 vf_rep = netdev_priv(ndev); in lio_vf_rep_create()
518 memset(vf_rep, 0, sizeof(*vf_rep)); in lio_vf_rep_create()
520 vf_rep->ndev = ndev; in lio_vf_rep_create()
521 vf_rep->oct = oct; in lio_vf_rep_create()
522 vf_rep->parent_ndev = oct->props[0].netdev; in lio_vf_rep_create()
523 vf_rep->ifidx = (oct->pf_num * 64) + i + 1; in lio_vf_rep_create()
536 INIT_DELAYED_WORK(&vf_rep->stats_wk.work, in lio_vf_rep_create()
538 vf_rep->stats_wk.ctxptr = (void *)vf_rep; in lio_vf_rep_create()
539 schedule_delayed_work(&vf_rep->stats_wk.work, in lio_vf_rep_create()
561 vf_rep = netdev_priv(ndev); in lio_vf_rep_create()
563 (&vf_rep->stats_wk.work); in lio_vf_rep_create()
577 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_destroy() local
591 vf_rep = netdev_priv(ndev); in lio_vf_rep_destroy()
593 (&vf_rep->stats_wk.work); in lio_vf_rep_destroy()
610 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_netdev_event() local
627 vf_rep = netdev_priv(ndev); in lio_vf_rep_netdev_event()
628 oct = vf_rep->oct; in lio_vf_rep_netdev_event()
639 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_netdev_event()