/Linux-v5.10/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 158 static int liquidio_set_vf_link_state(struct net_device *netdev, int vfidx, 2796 static int __liquidio_set_vf_mac(struct net_device *netdev, int vfidx, in __liquidio_set_vf_mac() argument 2807 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac() 2815 nctrl.ncmd.s.param1 = vfidx + 1; in __liquidio_set_vf_mac() 2828 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac() 2837 static int liquidio_set_vf_mac(struct net_device *netdev, int vfidx, u8 *mac) in liquidio_set_vf_mac() argument 2843 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_mac() 2846 retval = __liquidio_set_vf_mac(netdev, vfidx, mac, true); in liquidio_set_vf_mac() 2848 cn23xx_tell_vf_its_macaddr_changed(oct, vfidx, mac); in liquidio_set_vf_mac() 2853 static int liquidio_set_vf_spoofchk(struct net_device *netdev, int vfidx, in liquidio_set_vf_spoofchk() argument [all …]
|
D | cn23xx_pf_device.h | 68 void cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx,
|
D | cn23xx_pf_device.c | 1439 void cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx, in cn23xx_tell_vf_its_macaddr_changed() argument 1442 if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vfidx)) { in cn23xx_tell_vf_its_macaddr_changed() 1455 mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf; in cn23xx_tell_vf_its_macaddr_changed() 1470 int cn23xx_get_vf_stats(struct octeon_device *oct, int vfidx, in cn23xx_get_vf_stats() argument 1478 if (!(oct->sriov_info.vf_drv_loaded_mask & (1ULL << vfidx))) in cn23xx_get_vf_stats() 1489 mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf; in cn23xx_get_vf_stats() 1507 vfidx); in cn23xx_get_vf_stats()
|
D | lio_core.c | 272 int vfidx = nctrl->ncmd.s.param1 - 1; in liquidio_link_ctrl_cmd_completion() local 278 mac, vfidx); in liquidio_link_ctrl_cmd_completion()
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 29 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx, 2529 int vfidx; in bnx2x_pf_set_vfs_vlan() local 2533 for_each_vf(bp, vfidx) { in bnx2x_pf_set_vfs_vlan() 2534 bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_pf_set_vfs_vlan() 2536 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0, in bnx2x_pf_set_vfs_vlan() 2552 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx, in bnx2x_vf_op_prep() argument 2567 if (vfidx >= BNX2X_NR_VIRTFN(bp)) { in bnx2x_vf_op_prep() 2569 vfidx, BNX2X_NR_VIRTFN(bp)); in bnx2x_vf_op_prep() 2574 *vf = BP_VF(bp, vfidx); in bnx2x_vf_op_prep() 2575 *bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_vf_op_prep() [all …]
|
/Linux-v5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede_main.c | 143 static int qede_set_vf_mac(struct net_device *ndev, int vfidx, u8 *mac) in qede_set_vf_mac() argument 147 DP_VERBOSE(edev, QED_MSG_IOV, "Setting MAC %pM to VF [%d]\n", mac, vfidx); in qede_set_vf_mac() 154 return edev->ops->iov->set_mac(edev->cdev, mac, vfidx); in qede_set_vf_mac() 446 static int qede_get_vf_config(struct net_device *dev, int vfidx, in qede_get_vf_config() argument 454 return edev->ops->iov->get_config(edev->cdev, vfidx, ivi); in qede_get_vf_config() 457 static int qede_set_vf_rate(struct net_device *dev, int vfidx, in qede_set_vf_rate() argument 462 return edev->ops->iov->set_rate(edev->cdev, vfidx, min_tx_rate, in qede_set_vf_rate() 466 static int qede_set_vf_spoofchk(struct net_device *dev, int vfidx, bool val) in qede_set_vf_spoofchk() argument 473 return edev->ops->iov->set_spoof(edev->cdev, vfidx, val); in qede_set_vf_spoofchk() 476 static int qede_set_vf_link_state(struct net_device *dev, int vfidx, in qede_set_vf_link_state() argument [all …]
|