/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 153 static int liquidio_set_vf_link_state(struct net_device *netdev, int vfidx, 2814 static int __liquidio_set_vf_mac(struct net_device *netdev, int vfidx, in __liquidio_set_vf_mac() argument 2825 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac() 2833 nctrl.ncmd.s.param1 = vfidx + 1; in __liquidio_set_vf_mac() 2846 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac() 2855 static int liquidio_set_vf_mac(struct net_device *netdev, int vfidx, u8 *mac) in liquidio_set_vf_mac() argument 2861 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_mac() 2864 retval = __liquidio_set_vf_mac(netdev, vfidx, mac, true); in liquidio_set_vf_mac() 2866 cn23xx_tell_vf_its_macaddr_changed(oct, vfidx, mac); in liquidio_set_vf_mac() 2871 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()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 29 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx, 2537 int vfidx; in bnx2x_pf_set_vfs_vlan() local 2541 for_each_vf(bp, vfidx) { in bnx2x_pf_set_vfs_vlan() 2542 bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_pf_set_vfs_vlan() 2544 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0, in bnx2x_pf_set_vfs_vlan() 2560 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx, in bnx2x_vf_op_prep() argument 2575 if (vfidx >= BNX2X_NR_VIRTFN(bp)) { in bnx2x_vf_op_prep() 2577 vfidx, BNX2X_NR_VIRTFN(bp)); in bnx2x_vf_op_prep() 2582 *vf = BP_VF(bp, vfidx); in bnx2x_vf_op_prep() 2583 *bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_vf_op_prep() [all …]
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_main.c | 138 static int qede_set_vf_mac(struct net_device *ndev, int vfidx, u8 *mac) in qede_set_vf_mac() argument 142 DP_VERBOSE(edev, QED_MSG_IOV, "Setting MAC %pM to VF [%d]\n", mac, vfidx); in qede_set_vf_mac() 149 return edev->ops->iov->set_mac(edev->cdev, mac, vfidx); in qede_set_vf_mac() 458 static int qede_get_vf_config(struct net_device *dev, int vfidx, in qede_get_vf_config() argument 466 return edev->ops->iov->get_config(edev->cdev, vfidx, ivi); in qede_get_vf_config() 469 static int qede_set_vf_rate(struct net_device *dev, int vfidx, in qede_set_vf_rate() argument 474 return edev->ops->iov->set_rate(edev->cdev, vfidx, min_tx_rate, in qede_set_vf_rate() 478 static int qede_set_vf_spoofchk(struct net_device *dev, int vfidx, bool val) in qede_set_vf_spoofchk() argument 485 return edev->ops->iov->set_spoof(edev->cdev, vfidx, val); in qede_set_vf_spoofchk() 488 static int qede_set_vf_link_state(struct net_device *dev, int vfidx, in qede_set_vf_link_state() argument [all …]
|