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()
297 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_pkt_recv() local
316 vf_rep = netdev_priv(vf_ndev); in lio_vf_rep_pkt_recv()
317 if (!(atomic_read(&vf_rep->ifstate) & LIO_IFSTATE_RUNNING) || in lio_vf_rep_pkt_recv()
372 struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); in lio_vf_rep_pkt_xmit() local
373 struct net_device *parent_ndev = vf_rep->parent_ndev; in lio_vf_rep_pkt_xmit()
374 struct octeon_device *oct = vf_rep->oct; in lio_vf_rep_pkt_xmit()
382 if (!(atomic_read(&vf_rep->ifstate) & LIO_IFSTATE_RUNNING) || in lio_vf_rep_pkt_xmit()
386 if (octnet_iq_is_full(vf_rep->oct, parent_lio->txq)) { in lio_vf_rep_pkt_xmit()
420 vf_rep->ifidx, 0, 0); in lio_vf_rep_pkt_xmit()
451 struct lio_vf_rep_desc *vf_rep = netdev_priv(dev); in lio_vf_get_port_parent_id() local
452 struct net_device *parent_ndev = vf_rep->parent_ndev; in lio_vf_get_port_parent_id()
465 struct lio_vf_rep_desc *vf_rep = wk->ctxptr; in lio_vf_rep_fetch_stats() local
471 oct = vf_rep->oct; in lio_vf_rep_fetch_stats()
475 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_fetch_stats()
482 memcpy(&vf_rep->stats, &stats, sizeof(stats)); in lio_vf_rep_fetch_stats()
485 schedule_delayed_work(&vf_rep->stats_wk.work, in lio_vf_rep_fetch_stats()
492 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_create() local
518 vf_rep = netdev_priv(ndev); in lio_vf_rep_create()
519 memset(vf_rep, 0, sizeof(*vf_rep)); in lio_vf_rep_create()
521 vf_rep->ndev = ndev; in lio_vf_rep_create()
522 vf_rep->oct = oct; in lio_vf_rep_create()
523 vf_rep->parent_ndev = oct->props[0].netdev; in lio_vf_rep_create()
524 vf_rep->ifidx = (oct->pf_num * 64) + i + 1; in lio_vf_rep_create()
537 INIT_DELAYED_WORK(&vf_rep->stats_wk.work, in lio_vf_rep_create()
539 vf_rep->stats_wk.ctxptr = (void *)vf_rep; in lio_vf_rep_create()
540 schedule_delayed_work(&vf_rep->stats_wk.work, in lio_vf_rep_create()
562 vf_rep = netdev_priv(ndev); in lio_vf_rep_create()
564 (&vf_rep->stats_wk.work); in lio_vf_rep_create()
578 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_destroy() local
592 vf_rep = netdev_priv(ndev); in lio_vf_rep_destroy()
594 (&vf_rep->stats_wk.work); in lio_vf_rep_destroy()
611 struct lio_vf_rep_desc *vf_rep; in lio_vf_rep_netdev_event() local
628 vf_rep = netdev_priv(ndev); in lio_vf_rep_netdev_event()
629 oct = vf_rep->oct; in lio_vf_rep_netdev_event()
640 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_netdev_event()