| /linux-4.4.14/drivers/net/ethernet/sfc/ |
| D | siena_sriov.c | 193 static unsigned abs_index(struct siena_vf *vf, unsigned index) in abs_index() argument 195 return EFX_VI_BASE + vf->index * efx_vf_size(vf->efx) + index; in abs_index() 303 static void efx_siena_sriov_reset_tx_filter(struct siena_vf *vf) in efx_siena_sriov_reset_tx_filter() argument 305 struct efx_nic *efx = vf->efx; in efx_siena_sriov_reset_tx_filter() 310 if (vf->tx_filter_id != -1) { in efx_siena_sriov_reset_tx_filter() 312 vf->tx_filter_id); in efx_siena_sriov_reset_tx_filter() 314 vf->pci_name, vf->tx_filter_id); in efx_siena_sriov_reset_tx_filter() 315 vf->tx_filter_id = -1; in efx_siena_sriov_reset_tx_filter() 318 if (is_zero_ether_addr(vf->addr.mac_addr)) in efx_siena_sriov_reset_tx_filter() 324 if (vf->tx_filter_mode == VF_TX_FILTER_AUTO && vf_max_tx_channels <= 2) in efx_siena_sriov_reset_tx_filter() [all …]
|
| D | ef10_sriov.c | 120 if (!nic_data->vf) in efx_ef10_sriov_free_vf_vports() 124 struct ef10_vf *vf = nic_data->vf + i; in efx_ef10_sriov_free_vf_vports() local 127 if (vf->pci_dev && in efx_ef10_sriov_free_vf_vports() 128 vf->pci_dev->dev_flags & PCI_DEV_FLAGS_ASSIGNED) in efx_ef10_sriov_free_vf_vports() 131 if (vf->vport_assigned) { in efx_ef10_sriov_free_vf_vports() 133 vf->vport_assigned = 0; in efx_ef10_sriov_free_vf_vports() 136 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_free_vf_vports() 137 efx_ef10_vport_del_mac(efx, vf->vport_id, vf->mac); in efx_ef10_sriov_free_vf_vports() 138 eth_zero_addr(vf->mac); in efx_ef10_sriov_free_vf_vports() 141 if (vf->vport_id) { in efx_ef10_sriov_free_vf_vports() [all …]
|
| D | siena_sriov.h | 52 int efx_siena_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac); 53 int efx_siena_sriov_set_vf_vlan(struct efx_nic *efx, int vf, 55 int efx_siena_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf, 57 int efx_siena_sriov_get_vf_config(struct efx_nic *efx, int vf,
|
| D | ef10_sriov.h | 45 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac); 50 int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
|
| D | nic.h | 398 struct siena_vf *vf; member 550 struct ef10_vf *vf; member
|
| D | ef10.c | 664 struct ef10_vf *vf; in efx_ef10_remove() local 671 vf = nic_data_pf->vf + nic_data->vf_index; in efx_ef10_remove() 672 vf->efx = NULL; in efx_ef10_remove() 764 if (!nic_data_pf->vf) { in efx_ef10_probe_vf() 787 nic_data_p->vf[nic_data->vf_index].efx = efx; in efx_ef10_probe_vf() 788 nic_data_p->vf[nic_data->vf_index].pci_dev = in efx_ef10_probe_vf() 1043 if (nic_data->vf) in efx_ef10_reset_mc_allocations() 1045 nic_data->vf[i].vport_id = 0; in efx_ef10_reset_mc_allocations() 4288 struct ef10_vf *vf = nic_data->vf + i; in efx_ef10_set_mac_address() local 4290 if (vf->efx == efx) { in efx_ef10_set_mac_address() [all …]
|
| /linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
| D | i40e_virtchnl_pf.c | 47 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast() local 50 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast() 51 int abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast() 53 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states) && in i40e_vc_vf_broadcast() 54 !test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) in i40e_vc_vf_broadcast() 71 static void i40e_vc_notify_vf_link_state(struct i40e_vf *vf) in i40e_vc_notify_vf_link_state() argument 74 struct i40e_pf *pf = vf->pf; in i40e_vc_notify_vf_link_state() 77 int abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state() 81 if (vf->link_forced) { in i40e_vc_notify_vf_link_state() 82 pfe.event_data.link_event.link_status = vf->link_up; in i40e_vc_notify_vf_link_state() [all …]
|
| D | i40e_virtchnl_pf.h | 117 void i40e_reset_vf(struct i40e_vf *vf, bool flr); 118 void i40e_vc_notify_vf_reset(struct i40e_vf *vf);
|
| D | i40e_main.c | 5715 struct i40e_vf *vf; in i40e_handle_lan_overflow_event() local 5727 vf = &pf->vf[vf_id]; in i40e_handle_lan_overflow_event() 5728 i40e_vc_notify_vf_reset(vf); in i40e_handle_lan_overflow_event() 5731 i40e_reset_vf(vf, false); in i40e_handle_lan_overflow_event() 6048 if (pf->vf) in i40e_link_event() 6854 i40e_reset_vf(&pf->vf[v], true); in i40e_reset_and_rebuild() 6890 struct i40e_vf *vf; in i40e_handle_mdd_event() local 6953 vf = &(pf->vf[i]); in i40e_handle_mdd_event() 6957 vf->num_mdd_events++; in i40e_handle_mdd_event() 6965 vf->num_mdd_events++; in i40e_handle_mdd_event() [all …]
|
| D | i40e.h | 387 struct i40e_vf *vf; member
|
| D | i40e_ethtool.c | 1652 struct i40e_vf *vfs = pf->vf; in i40e_active_vfs() 2454 input->dest_vsi = pf->vf[vf_id].lan_vsi_id; in i40e_add_fdir_ethtool() 2455 if (input->q_index >= pf->vf[vf_id].num_queue_pairs) { in i40e_add_fdir_ethtool()
|
| /linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_sriov.c | 74 mv_list->vf = -1; in __ixgbe_enable_sriov() 328 u32 *msgbuf, u32 vf) in ixgbe_set_vf_multicasts() argument 333 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_set_vf_multicasts() 339 u32 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(vf)); in ixgbe_set_vf_multicasts() 367 IXGBE_WRITE_REG(hw, IXGBE_VMOLR(vf), vmolr); in ixgbe_set_vf_multicasts() 407 u32 vf) in ixgbe_set_vf_vlan() argument 413 return adapter->hw.mac.ops.set_vfta(&adapter->hw, vid, vf, (bool)add); in ixgbe_set_vf_vlan() 416 static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_set_vf_lpe() argument 441 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_set_vf_lpe() 464 vf_shift = vf % 32; in ixgbe_set_vf_lpe() [all …]
|
| D | ixgbe_sriov.h | 47 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate, 49 int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting); 50 int ixgbe_ndo_set_vf_rss_query_en(struct net_device *netdev, int vf, 52 int ixgbe_ndo_set_vf_trust(struct net_device *netdev, int vf, bool setting); 54 int vf, struct ifla_vf_info *ivi); 63 u16 vid, u16 qos, u32 vf) in ixgbe_set_vmvir() argument 68 IXGBE_WRITE_REG(hw, IXGBE_VMVIR(vf), vmvir); in ixgbe_set_vmvir()
|
| D | ixgbe_dcb_nl.c | 671 int vf; in ixgbe_dcbnl_ieee_setapp() local 675 for (vf = 0; vf < adapter->num_vfs; vf++) { in ixgbe_dcbnl_ieee_setapp() 676 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_setapp() 680 app->priority, vf); in ixgbe_dcbnl_ieee_setapp() 714 int vf; in ixgbe_dcbnl_ieee_delapp() local 720 for (vf = 0; vf < adapter->num_vfs; vf++) { in ixgbe_dcbnl_ieee_delapp() 721 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_delapp() 725 qos, vf); in ixgbe_dcbnl_ieee_delapp()
|
| D | ixgbe_common.h | 109 void ixgbe_set_vlan_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf);
|
| D | ixgbe_ethtool.c | 2615 u8 vf = ethtool_get_flow_spec_ring_vf(fsp->ring_cookie); in ixgbe_add_ethtool_fdir_entry() local 2617 if (!vf && (ring >= adapter->num_rx_queues)) in ixgbe_add_ethtool_fdir_entry() 2619 else if (vf && in ixgbe_add_ethtool_fdir_entry() 2620 ((vf > adapter->num_vfs) || in ixgbe_add_ethtool_fdir_entry() 2625 if (!vf) in ixgbe_add_ethtool_fdir_entry() 2628 queue = ((vf - 1) * in ixgbe_add_ethtool_fdir_entry()
|
| D | ixgbe_x550.c | 2233 bool enable, int vf) in ixgbe_set_ethertype_anti_spoofing_X550() argument 2235 int vf_target_reg = vf >> 3; in ixgbe_set_ethertype_anti_spoofing_X550() 2236 int vf_target_shift = vf % 8 + IXGBE_SPOOF_ETHERTYPEAS_SHIFT; in ixgbe_set_ethertype_anti_spoofing_X550()
|
| D | ixgbe.h | 168 int vf; member
|
| D | ixgbe_common.c | 3363 void ixgbe_set_vlan_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf) in ixgbe_set_vlan_anti_spoofing() argument 3365 int vf_target_reg = vf >> 3; in ixgbe_set_vlan_anti_spoofing() 3366 int vf_target_shift = vf % 8 + IXGBE_SPOOF_VLANAS_SHIFT; in ixgbe_set_vlan_anti_spoofing()
|
| D | ixgbe_main.c | 9120 int vf, pos; in ixgbe_io_error_detected() local 9154 vf = (req_id & 0x7F) >> 1; in ixgbe_io_error_detected() 9155 e_dev_err("VF %d has caused a PCIe error\n", vf); in ixgbe_io_error_detected()
|
| /linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
| D | bnx2x_sriov.c | 30 struct bnx2x_virtf **vf, 78 static void bnx2x_vf_igu_ack_sb(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vf_igu_ack_sb() argument 86 u32 func_encode = vf->abs_vfid; in bnx2x_vf_igu_ack_sb() 114 struct bnx2x_virtf *vf, in bnx2x_validate_vf_sp_objs() argument 117 if (!bnx2x_leading_vfq(vf, sp_initialized)) { in bnx2x_validate_vf_sp_objs() 128 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_tx() argument 135 vf->abs_vfid, in bnx2x_vfop_qctor_dump_tx() 144 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_rx() argument 153 vf->abs_vfid, in bnx2x_vfop_qctor_dump_rx() 169 struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_prep() argument [all …]
|
| D | bnx2x_sriov.h | 161 #define vf_rxq_count(vf) ((vf)->alloc_resc.num_rxqs) argument 162 #define vf_txq_count(vf) ((vf)->alloc_resc.num_txqs) argument 163 #define vf_sb_count(vf) ((vf)->alloc_resc.num_sbs) argument 164 #define vf_mac_rules_cnt(vf) ((vf)->alloc_resc.num_mac_filters) argument 165 #define vf_vlan_rules_cnt(vf) ((vf)->alloc_resc.num_vlan_filters) argument 166 #define vf_mc_rules_cnt(vf) ((vf)->alloc_resc.num_mc_filters) argument 174 #define bnx2x_vfq(vf, nr, var) ((vf)->vfqs[(nr)].var) argument 175 #define bnx2x_leading_vfq(vf, var) ((vf)->vfqs[LEADING_IDX].var) argument 219 #define for_each_vfq(vf, var) \ argument 220 for ((var) = 0; (var) < vf_rxq_count(vf); (var)++) [all …]
|
| D | bnx2x_vfpf.c | 542 static void bnx2x_leading_vfq_init(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_leading_vfq_init() argument 545 u8 cl_id = vfq_cl_id(vf, q); in bnx2x_leading_vfq_init() 546 u8 func_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_leading_vfq_init() 551 bnx2x_vf_sp(bp, vf, mac_rdata), in bnx2x_leading_vfq_init() 552 bnx2x_vf_sp_map(bp, vf, mac_rdata), in bnx2x_leading_vfq_init() 554 &vf->filter_state, in bnx2x_leading_vfq_init() 556 &vf->vf_macs_pool); in bnx2x_leading_vfq_init() 560 bnx2x_vf_sp(bp, vf, vlan_rdata), in bnx2x_leading_vfq_init() 561 bnx2x_vf_sp_map(bp, vf, vlan_rdata), in bnx2x_leading_vfq_init() 563 &vf->filter_state, in bnx2x_leading_vfq_init() [all …]
|
| D | bnx2x_cmn.h | 490 int bnx2x_get_vf_config(struct net_device *dev, int vf, 493 int bnx2x_set_vf_vlan(struct net_device *netdev, int vf, u16 vlan, u8 qos);
|
| /linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
| D | qlcnic_sriov_pf.c | 742 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_channel_cfg_cmd() local 743 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_channel_cfg_cmd() 746 u16 func = vf->pci_func; in qlcnic_sriov_pf_channel_cfg_cmd() 750 adapter = vf->adapter; in qlcnic_sriov_pf_channel_cfg_cmd() 762 size = sizeof(*vf->sriov_vlans); in qlcnic_sriov_pf_channel_cfg_cmd() 764 memset(vf->sriov_vlans, 0, size); in qlcnic_sriov_pf_channel_cfg_cmd() 776 set_bit(QLC_BC_VF_STATE, &vf->state); in qlcnic_sriov_pf_channel_cfg_cmd() 778 clear_bit(QLC_BC_VF_STATE, &vf->state); in qlcnic_sriov_pf_channel_cfg_cmd() 788 struct qlcnic_vf_info *vf, in qlcnic_sriov_cfg_vf_def_mac() argument 799 vp = vf->vp; in qlcnic_sriov_cfg_vf_def_mac() [all …]
|
| D | qlcnic_sriov_common.c | 142 struct qlcnic_vf_info *vf; in qlcnic_sriov_init() local 183 vf = &sriov->vf_info[i]; in qlcnic_sriov_init() 184 vf->adapter = adapter; in qlcnic_sriov_init() 185 vf->pci_func = qlcnic_sriov_virtid_fn(adapter, i); in qlcnic_sriov_init() 186 mutex_init(&vf->send_cmd_lock); in qlcnic_sriov_init() 187 spin_lock_init(&vf->vlan_list_lock); in qlcnic_sriov_init() 188 INIT_LIST_HEAD(&vf->rcv_act.wait_list); in qlcnic_sriov_init() 189 INIT_LIST_HEAD(&vf->rcv_pend.wait_list); in qlcnic_sriov_init() 190 spin_lock_init(&vf->rcv_act.lock); in qlcnic_sriov_init() 191 spin_lock_init(&vf->rcv_pend.lock); in qlcnic_sriov_init() [all …]
|
| D | qlcnic_sriov.h | 90 struct qlcnic_vf_info *vf; member 267 struct qlcnic_vf_info *vf) {} in qlcnic_sriov_pf_handle_flr() argument 270 struct qlcnic_vf_info *vf) in qlcnic_sriov_soft_flr_check() argument
|
| /linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
| D | enic_pp.c | 38 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err) in enic_is_valid_pp_vf() argument 40 if (vf != PORT_SELF_VF) { in enic_is_valid_pp_vf() 43 if (vf < 0 || vf >= enic->num_vfs) { in enic_is_valid_pp_vf() 57 if (vf == PORT_SELF_VF && !enic_is_dynamic(enic)) { in enic_is_valid_pp_vf() 69 static int enic_set_port_profile(struct enic *enic, int vf) in enic_set_port_profile() argument 81 ENIC_PP_BY_INDEX(enic, vf, pp, &err); in enic_set_port_profile() 99 } else if (vf == PORT_SELF_VF) { in enic_set_port_profile() 103 "for VF %d\n", vf); in enic_set_port_profile() 135 ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_init_prov2, (u8 *)vp, in enic_set_port_profile() 145 static int enic_unset_port_profile(struct enic *enic, int vf) in enic_unset_port_profile() argument [all …]
|
| D | enic_pp.h | 22 #define ENIC_PP_BY_INDEX(enic, vf, pp, err) \ argument 24 if (enic_is_valid_pp_vf(enic, vf, err)) \ 25 pp = (vf == PORT_SELF_VF) ? enic->pp : enic->pp + vf; \ 30 int enic_process_set_pp_request(struct enic *enic, int vf, 32 int enic_process_get_pp_request(struct enic *enic, int vf, 34 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err);
|
| D | enic_dev.h | 29 #define ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnicdevcmdfn, ...) \ argument 32 if (enic_is_valid_vf(enic, vf)) { \ 33 vnic_dev_cmd_proxy_by_index_start(enic->vdev, vf); \
|
| D | enic_api.c | 29 int enic_api_devcmd_proxy_by_index(struct net_device *netdev, int vf, in enic_api_devcmd_proxy_by_index() argument 39 vnic_dev_cmd_proxy_by_index_start(vdev, vf); in enic_api_devcmd_proxy_by_index()
|
| D | enic_api.h | 27 int enic_api_devcmd_proxy_by_index(struct net_device *netdev, int vf,
|
| D | enic_main.c | 196 int enic_is_valid_vf(struct enic *enic, int vf) in enic_is_valid_vf() argument 199 return vf >= 0 && vf < enic->num_vfs; in enic_is_valid_vf() 880 static int enic_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in enic_set_vf_mac() argument 886 ENIC_PP_BY_INDEX(enic, vf, pp, &err); in enic_set_vf_mac() 891 if (vf == PORT_SELF_VF) { in enic_set_vf_mac() 898 ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, in enic_set_vf_mac() 906 static int enic_set_vf_port(struct net_device *netdev, int vf, in enic_set_vf_port() argument 914 ENIC_PP_BY_INDEX(enic, vf, pp, &err); in enic_set_vf_port() 945 if (vf == PORT_SELF_VF) { in enic_set_vf_port() 954 ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, in enic_set_vf_port() [all …]
|
| D | enic.h | 308 int enic_is_valid_vf(struct enic *enic, int vf);
|
| /linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
| D | bnxt_sriov.c | 43 struct bnxt_vf_info *vf; in bnxt_set_vf_spoofchk() local 52 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk() 53 if (vf->flags & BNXT_VF_SPOOFCHK) in bnxt_set_vf_spoofchk() 58 func_flags = vf->func_flags; in bnxt_set_vf_spoofchk() 67 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_spoofchk() 71 vf->func_flags = func_flags; in bnxt_set_vf_spoofchk() 73 vf->flags |= BNXT_VF_SPOOFCHK; in bnxt_set_vf_spoofchk() 75 vf->flags &= ~BNXT_VF_SPOOFCHK; in bnxt_set_vf_spoofchk() 84 struct bnxt_vf_info *vf; in bnxt_get_vf_config() local 91 ivi->vf = vf_id; in bnxt_get_vf_config() [all …]
|
| D | bnxt.c | 3647 struct bnxt_vf_info *vf = &bp->vf; in bnxt_hwrm_func_qcaps() local 3649 vf->fw_fid = le16_to_cpu(resp->fid); in bnxt_hwrm_func_qcaps() 3650 memcpy(vf->mac_addr, resp->perm_mac_address, ETH_ALEN); in bnxt_hwrm_func_qcaps() 3651 if (is_valid_ether_addr(vf->mac_addr)) in bnxt_hwrm_func_qcaps() 3653 memcpy(bp->dev->dev_addr, vf->mac_addr, ETH_ALEN); in bnxt_hwrm_func_qcaps() 3657 vf->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx); in bnxt_hwrm_func_qcaps() 3658 vf->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings); in bnxt_hwrm_func_qcaps() 3659 vf->max_tx_rings = le16_to_cpu(resp->max_tx_rings); in bnxt_hwrm_func_qcaps() 3660 vf->max_rx_rings = le16_to_cpu(resp->max_rx_rings); in bnxt_hwrm_func_qcaps() 3661 vf->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs); in bnxt_hwrm_func_qcaps() [all …]
|
| D | bnxt.h | 745 struct bnxt_vf_info *vf; member 977 struct bnxt_vf_info vf; member
|
| /linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
| D | nic_main.c | 102 static void nic_clear_mbx_intr(struct nicpf *nic, int vf, int mbx_reg) in nic_clear_mbx_intr() argument 104 nic_reg_write(nic, NIC_PF_MAILBOX_INT + (mbx_reg << 3), BIT_ULL(vf)); in nic_clear_mbx_intr() 107 static u64 nic_get_mbx_addr(int vf) in nic_get_mbx_addr() argument 109 return NIC_PF_VF_0_127_MAILBOX_0_1 + (vf << NIC_VF_NUM_SHIFT); in nic_get_mbx_addr() 116 static void nic_send_msg_to_vf(struct nicpf *nic, int vf, union nic_mbx *mbx) in nic_send_msg_to_vf() argument 118 void __iomem *mbx_addr = nic->reg_base + nic_get_mbx_addr(vf); in nic_send_msg_to_vf() 141 static void nic_mbx_send_ready(struct nicpf *nic, int vf) in nic_mbx_send_ready() argument 148 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready() 152 if (vf < MAX_LMAC) { in nic_mbx_send_ready() 153 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready() [all …]
|
| D | nic.h | 496 int nicvf_send_msg_to_pf(struct nicvf *vf, union nic_mbx *mbx);
|
| /linux-4.4.14/drivers/crypto/qat/qat_dh895xccvf/ |
| D | adf_isr.c | 76 accel_dev->vf.irq_name = kzalloc(ADF_MAX_MSIX_VECTOR_NAME, GFP_KERNEL); in adf_enable_msi() 77 if (!accel_dev->vf.irq_name) in adf_enable_msi() 87 kfree(accel_dev->vf.irq_name); in adf_disable_msi() 114 accel_dev->vf.pf_version = in adf_pf2vf_bh_handler() 117 accel_dev->vf.compatible = in adf_pf2vf_bh_handler() 120 complete(&accel_dev->vf.iov_msg_completion); in adf_pf2vf_bh_handler() 141 tasklet_init(&accel_dev->vf.pf2vf_bh_tasklet, in adf_setup_pf2vf_bh() 144 mutex_init(&accel_dev->vf.vf2pf_lock); in adf_setup_pf2vf_bh() 150 tasklet_disable(&accel_dev->vf.pf2vf_bh_tasklet); in adf_cleanup_pf2vf_bh() 151 tasklet_kill(&accel_dev->vf.pf2vf_bh_tasklet); in adf_cleanup_pf2vf_bh() [all …]
|
| D | adf_drv.c | 323 init_completion(&accel_dev->vf.iov_msg_completion); in adf_probe()
|
| /linux-4.4.14/drivers/infiniband/hw/usnic/ |
| D | usnic_ib_verbs.c | 70 us_ibdev = qp_grp->vf->pf; in usnic_ib_fill_create_qp_resp() 71 pdev = usnic_vnic_get_pdev(qp_grp->vf->vnic); in usnic_ib_fill_create_qp_resp() 78 bar = usnic_vnic_get_bar(qp_grp->vf->vnic, 0); in usnic_ib_fill_create_qp_resp() 85 resp.vfid = usnic_vnic_get_index(qp_grp->vf->vnic); in usnic_ib_fill_create_qp_resp() 150 struct usnic_ib_vf *vf; in find_free_vf_and_create_qp_grp() local 168 vf = pci_get_drvdata(to_pci_dev(dev)); in find_free_vf_and_create_qp_grp() 169 spin_lock(&vf->lock); in find_free_vf_and_create_qp_grp() 170 vnic = vf->vnic; in find_free_vf_and_create_qp_grp() 179 spin_unlock(&vf->lock); in find_free_vf_and_create_qp_grp() 187 list_for_each_entry(vf, &us_ibdev->vf_dev_list, link) { in find_free_vf_and_create_qp_grp() [all …]
|
| D | usnic_ib_main.c | 78 struct usnic_ib_vf *vf = obj; in usnic_ib_dump_vf_hdr() local 79 return scnprintf(buf, buf_sz, "PF: %s ", vf->pf->ib_dev.name); in usnic_ib_dump_vf_hdr() 83 static void usnic_ib_dump_vf(struct usnic_ib_vf *vf, char *buf, int buf_sz) in usnic_ib_dump_vf() argument 85 usnic_vnic_dump(vf->vnic, buf, buf_sz, vf, in usnic_ib_dump_vf() 90 void usnic_ib_log_vf(struct usnic_ib_vf *vf) in usnic_ib_log_vf() argument 93 usnic_ib_dump_vf(vf, buf, sizeof(buf)); in usnic_ib_log_vf() 534 struct usnic_ib_vf *vf; in usnic_ib_pci_probe() local 537 vf = kzalloc(sizeof(*vf), GFP_KERNEL); in usnic_ib_pci_probe() 538 if (!vf) in usnic_ib_pci_probe() 556 pci_set_drvdata(pdev, vf); in usnic_ib_pci_probe() [all …]
|
| D | usnic_ib_qp_grp.c | 89 usnic_vnic_get_index(qp_grp->vf->vnic), in usnic_ib_qp_grp_dump_rows() 117 vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in enable_qp_grp() 158 vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in disable_qp_grp() 196 uaction->vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in init_filter_action() 406 vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in usnic_ib_qp_grp_modify() 492 ib_event.device = &qp_grp->vf->pf->ib_dev; in usnic_ib_qp_grp_modify() 592 static int qp_grp_and_vf_bind(struct usnic_ib_vf *vf, in qp_grp_and_vf_bind() argument 599 lockdep_assert_held(&vf->lock); in qp_grp_and_vf_bind() 601 pdev = usnic_vnic_get_pdev(vf->vnic); in qp_grp_and_vf_bind() 602 if (vf->qp_grp_ref_cnt == 0) { in qp_grp_and_vf_bind() [all …]
|
| D | usnic_ib_qp_grp.h | 60 struct usnic_ib_vf *vf; member 116 usnic_ib_qp_grp_create(struct usnic_fwd_dev *ufdev, struct usnic_ib_vf *vf,
|
| D | usnic_ib_sysfs.c | 261 usnic_vnic_get_index(qp_grp->vf->vnic)); in summary_show() 337 us_ibdev = qp_grp->vf->pf; in usnic_ib_sysfs_qpn_add() 352 us_ibdev = qp_grp->vf->pf; in usnic_ib_sysfs_qpn_remove()
|
| D | usnic_ib.h | 125 void usnic_ib_log_vf(struct usnic_ib_vf *vf);
|
| /linux-4.4.14/drivers/media/platform/vivid/ |
| D | vivid-radio-common.c | 153 int vivid_radio_g_frequency(struct file *file, const unsigned *pfreq, struct v4l2_frequency *vf) in vivid_radio_g_frequency() argument 155 if (vf->tuner != 0) in vivid_radio_g_frequency() 157 vf->frequency = *pfreq; in vivid_radio_g_frequency() 161 int vivid_radio_s_frequency(struct file *file, unsigned *pfreq, const struct v4l2_frequency *vf) in vivid_radio_s_frequency() argument 167 if (vf->tuner != 0) in vivid_radio_s_frequency() 170 if (vf->frequency >= (FM_FREQ_RANGE_LOW + SW_FREQ_RANGE_HIGH) / 2) in vivid_radio_s_frequency() 172 else if (vf->frequency <= (AM_FREQ_RANGE_HIGH + SW_FREQ_RANGE_LOW) / 2) in vivid_radio_s_frequency() 177 freq = clamp_t(u32, vf->frequency, vivid_radio_bands[band].rangelow, in vivid_radio_s_frequency()
|
| D | vivid-sdr-cap.c | 350 struct v4l2_frequency *vf) in vivid_sdr_g_frequency() argument 354 switch (vf->tuner) { in vivid_sdr_g_frequency() 356 vf->frequency = dev->sdr_adc_freq; in vivid_sdr_g_frequency() 357 vf->type = V4L2_TUNER_ADC; in vivid_sdr_g_frequency() 360 vf->frequency = dev->sdr_fm_freq; in vivid_sdr_g_frequency() 361 vf->type = V4L2_TUNER_RF; in vivid_sdr_g_frequency() 369 const struct v4l2_frequency *vf) in vivid_sdr_s_frequency() argument 372 unsigned freq = vf->frequency; in vivid_sdr_s_frequency() 375 switch (vf->tuner) { in vivid_sdr_s_frequency() 377 if (vf->type != V4L2_TUNER_ADC) in vivid_sdr_s_frequency() [all …]
|
| D | vivid-radio-common.h | 35 int vivid_radio_g_frequency(struct file *file, const unsigned *freq, struct v4l2_frequency *vf); 36 int vivid_radio_s_frequency(struct file *file, unsigned *freq, const struct v4l2_frequency *vf);
|
| D | vivid-sdr-cap.h | 24 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); 25 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
|
| D | vivid-vid-cap.h | 57 int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); 58 int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
|
| D | vivid-core.c | 273 static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) in vidioc_g_frequency() argument 281 &dev->radio_rx_freq : &dev->radio_tx_freq, vf); in vidioc_g_frequency() 283 return vivid_sdr_g_frequency(file, fh, vf); in vidioc_g_frequency() 284 return vivid_video_g_frequency(file, fh, vf); in vidioc_g_frequency() 287 static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) in vidioc_s_frequency() argument 295 &dev->radio_rx_freq : &dev->radio_tx_freq, vf); in vidioc_s_frequency() 297 return vivid_sdr_s_frequency(file, fh, vf); in vidioc_s_frequency() 298 return vivid_video_s_frequency(file, fh, vf); in vidioc_s_frequency()
|
| D | vivid-vid-cap.c | 1429 int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) in vivid_video_g_frequency() argument 1433 if (vf->tuner != 0) in vivid_video_g_frequency() 1435 vf->frequency = dev->tv_freq; in vivid_video_g_frequency() 1439 int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) in vivid_video_s_frequency() argument 1443 if (vf->tuner != 0) in vivid_video_s_frequency() 1445 dev->tv_freq = clamp_t(unsigned, vf->frequency, MIN_TV_FREQ, MAX_TV_FREQ); in vivid_video_s_frequency()
|
| /linux-4.4.14/drivers/crypto/qat/qat_common/ |
| D | adf_dev_mgr.c | 65 static int adf_get_vf_id(struct adf_accel_dev *vf) in adf_get_vf_id() argument 67 return ((7 * (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)) + in adf_get_vf_id() 68 PCI_FUNC(accel_to_pci_dev(vf)->devfn) + in adf_get_vf_id() 69 (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)); in adf_get_vf_id() 72 static int adf_get_vf_num(struct adf_accel_dev *vf) in adf_get_vf_num() argument 74 return (accel_to_pci_dev(vf)->bus->number << 8) | adf_get_vf_id(vf); in adf_get_vf_num() 111 void adf_clean_vf_map(bool vf) in adf_clean_vf_map() argument 122 if (vf && map->bdf == -1) in adf_clean_vf_map()
|
| D | adf_pf2vf_msg.c | 164 lock = &accel_dev->vf.vf2pf_lock; in __adf_iov_putmsg() 363 struct adf_accel_vf_info *vf; in adf_pf2vf_notify_restarting() local 368 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) { in adf_pf2vf_notify_restarting() 369 if (vf->init && adf_iov_putmsg(accel_dev, msg, i)) in adf_pf2vf_notify_restarting() 396 if (!wait_for_completion_timeout(&accel_dev->vf.iov_msg_completion, in adf_vf2pf_request_version() 404 switch (accel_dev->vf.compatible) { in adf_vf2pf_request_version() 409 if (accel_dev->vf.pf_version >= hw_data->min_iov_compat_ver) in adf_vf2pf_request_version() 415 accel_dev->vf.pf_version, in adf_vf2pf_request_version()
|
| D | adf_sriov.c | 178 struct adf_accel_vf_info *vf; in adf_disable_sriov() local 206 for (i = 0, vf = accel_dev->pf.vf_info; i < totalvfs; i++, vf++) { in adf_disable_sriov() 207 tasklet_disable(&vf->vf2pf_bh_tasklet); in adf_disable_sriov() 208 tasklet_kill(&vf->vf2pf_bh_tasklet); in adf_disable_sriov() 209 mutex_destroy(&vf->pf2vf_lock); in adf_disable_sriov()
|
| D | adf_accel_devices.h | 239 } vf; member
|
| /linux-4.4.14/include/linux/mlx4/ |
| D | cmd.h | 310 int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); 311 int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos); 312 int mlx4_set_vf_rate(struct mlx4_dev *dev, int port, int vf, int min_tx_rate, 314 int mlx4_set_vf_spoofchk(struct mlx4_dev *dev, int port, int vf, bool setting); 315 int mlx4_get_vf_config(struct mlx4_dev *dev, int port, int vf, struct ifla_vf_info *ivf); 316 int mlx4_set_vf_link_state(struct mlx4_dev *dev, int port, int vf, int link_state);
|
| /linux-4.4.14/drivers/net/ethernet/intel/igb/ |
| D | igb_main.c | 169 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac); 171 int vf, u16 vlan, u8 qos); 173 static int igb_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, 175 static int igb_ndo_get_vf_config(struct net_device *netdev, int vf, 180 static int igb_vf_configure(struct igb_adapter *adapter, int vf); 5664 static int igb_vf_configure(struct igb_adapter *adapter, int vf) in igb_vf_configure() argument 5669 igb_set_vf_mac(adapter, vf, mac_addr); in igb_vf_configure() 5672 adapter->vf_data[vf].spoofchk_enabled = true; in igb_vf_configure() 5692 static int igb_set_vf_promisc(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_promisc() argument 5695 u32 vmolr = rd32(E1000_VMOLR(vf)); in igb_set_vf_promisc() [all …]
|
| /linux-4.4.14/include/uapi/linux/ |
| D | if_link.h | 561 __u32 vf; member 566 __u32 vf; member 572 __u32 vf; member 577 __u32 vf; member 583 __u32 vf; member 595 __u32 vf; member 600 __u32 vf; member 617 __u32 vf; member
|
| /linux-4.4.14/drivers/media/usb/pvrusb2/ |
| D | pvrusb2-v4l2.c | 347 static int pvr2_s_frequency(struct file *file, void *priv, const struct v4l2_frequency *vf) in pvr2_s_frequency() argument 364 if (vf->type == V4L2_TUNER_RADIO) { in pvr2_s_frequency() 371 fv = vf->frequency; in pvr2_s_frequency() 380 static int pvr2_g_frequency(struct file *file, void *priv, struct v4l2_frequency *vf) in pvr2_g_frequency() argument 401 vf->type = V4L2_TUNER_RADIO; in pvr2_g_frequency() 403 vf->type = V4L2_TUNER_ANALOG_TV; in pvr2_g_frequency() 408 vf->frequency = val; in pvr2_g_frequency() 422 static int pvr2_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *vf) in pvr2_g_fmt_vid_cap() argument 428 memcpy(vf, &pvr_format[PVR_FORMAT_PIX], sizeof(struct v4l2_format)); in pvr2_g_fmt_vid_cap() 433 vf->fmt.pix.width = val; in pvr2_g_fmt_vid_cap() [all …]
|
| /linux-4.4.14/drivers/media/usb/usbvision/ |
| D | usbvision-video.c | 845 struct v4l2_format *vf) in vidioc_g_fmt_vid_cap() argument 848 vf->fmt.pix.width = usbvision->curwidth; in vidioc_g_fmt_vid_cap() 849 vf->fmt.pix.height = usbvision->curheight; in vidioc_g_fmt_vid_cap() 850 vf->fmt.pix.pixelformat = usbvision->palette.format; in vidioc_g_fmt_vid_cap() 851 vf->fmt.pix.bytesperline = in vidioc_g_fmt_vid_cap() 853 vf->fmt.pix.sizeimage = vf->fmt.pix.bytesperline * usbvision->curheight; in vidioc_g_fmt_vid_cap() 854 vf->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap() 855 vf->fmt.pix.field = V4L2_FIELD_NONE; /* Always progressive image */ in vidioc_g_fmt_vid_cap() 861 struct v4l2_format *vf) in vidioc_try_fmt_vid_cap() argument 868 if (vf->fmt.pix.pixelformat == in vidioc_try_fmt_vid_cap() [all …]
|
| /linux-4.4.14/drivers/media/radio/si4713/ |
| D | radio-platform-si4713.c | 109 struct v4l2_frequency *vf) in radio_si4713_g_frequency() argument 112 g_frequency, vf); in radio_si4713_g_frequency() 116 const struct v4l2_frequency *vf) in radio_si4713_s_frequency() argument 119 s_frequency, vf); in radio_si4713_s_frequency()
|
| D | radio-usb-si4713.c | 108 const struct v4l2_frequency *vf) in vidioc_s_frequency() argument 112 return v4l2_subdev_call(radio->v4l2_subdev, tuner, s_frequency, vf); in vidioc_s_frequency() 116 struct v4l2_frequency *vf) in vidioc_g_frequency() argument 120 return v4l2_subdev_call(radio->v4l2_subdev, tuner, g_frequency, vf); in vidioc_g_frequency()
|
| /linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
| D | be_main.c | 1567 static int be_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in be_set_vf_mac() argument 1570 struct be_vf_cfg *vf_cfg = &adapter->vf_cfg[vf]; in be_set_vf_mac() 1576 if (!is_valid_ether_addr(mac) || vf >= adapter->num_vfs) in be_set_vf_mac() 1587 vf + 1); in be_set_vf_mac() 1590 &vf_cfg->pmac_id, vf + 1); in be_set_vf_mac() 1593 vf + 1); in be_set_vf_mac() 1598 mac, vf, status); in be_set_vf_mac() 1607 static int be_get_vf_config(struct net_device *netdev, int vf, in be_get_vf_config() argument 1611 struct be_vf_cfg *vf_cfg = &adapter->vf_cfg[vf]; in be_get_vf_config() 1616 if (vf >= adapter->num_vfs) in be_get_vf_config() [all …]
|
| /linux-4.4.14/tools/perf/util/ |
| D | probe-finder.c | 1121 struct local_vars_finder *vf = data; in copy_variables_cb() local 1122 struct probe_finder *pf = vf->pf; in copy_variables_cb() 1127 (tag == DW_TAG_variable && vf->vars)) { in copy_variables_cb() 1128 if (convert_variable_location(die_mem, vf->pf->addr, in copy_variables_cb() 1129 vf->pf->fb_ops, &pf->sp_die, in copy_variables_cb() 1131 vf->args[vf->nargs].var = (char *)dwarf_diename(die_mem); in copy_variables_cb() 1132 if (vf->args[vf->nargs].var == NULL) { in copy_variables_cb() 1133 vf->ret = -ENOMEM; in copy_variables_cb() 1136 pr_debug(" %s", vf->args[vf->nargs].var); in copy_variables_cb() 1137 vf->nargs++; in copy_variables_cb() [all …]
|
| /linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
| D | cxgb4.h | 811 uint32_t vf:VF_BITWIDTH; /* PCI-E VF ID */ member 1282 int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); 1358 unsigned int vf, unsigned int nparams, const u32 *params, 1361 unsigned int vf, unsigned int nparams, const u32 *params, 1364 unsigned int pf, unsigned int vf, 1368 unsigned int vf, unsigned int nparams, const u32 *params, 1371 unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl, 1376 unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac, 1379 unsigned int pf, unsigned int vf, 1402 unsigned int vf, unsigned int iqtype, unsigned int iqid, [all …]
|
| D | t4_hw.c | 6240 unsigned int vf, unsigned int nparams, const u32 *params, in t4_query_params_rw() argument 6254 FW_PARAMS_CMD_VFN_V(vf)); in t4_query_params_rw() 6272 unsigned int vf, unsigned int nparams, const u32 *params, in t4_query_params() argument 6275 return t4_query_params_rw(adap, mbox, pf, vf, nparams, params, val, 0); in t4_query_params() 6293 unsigned int pf, unsigned int vf, in t4_set_params_timeout() argument 6307 FW_PARAMS_CMD_VFN_V(vf)); in t4_set_params_timeout() 6332 unsigned int vf, unsigned int nparams, const u32 *params, in t4_set_params() argument 6335 return t4_set_params_timeout(adap, mbox, pf, vf, nparams, params, val, in t4_set_params() 6361 unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl, in t4_cfg_pfvf() argument 6371 FW_PFVF_CMD_VFN_V(vf)); in t4_cfg_pfvf() [all …]
|
| D | l2t.c | 442 u32 vf = FW_VIID_VIN_G(viid); in cxgb4_select_ntuple() local 446 ntuple |= (u64)(FT_VNID_ID_VF_V(vf) | in cxgb4_select_ntuple()
|
| D | cxgb4_debugfs.c | 2200 int vf, vfcount = adapter->params.arch.vfcount; in rss_vf_config_open() local 2207 for (vf = 0; vf < vfcount; vf++) { in rss_vf_config_open() 2208 t4_read_rss_vf_config(adapter, vf, &vfconf[vf].rss_vf_vfl, in rss_vf_config_open() 2209 &vfconf[vf].rss_vf_vfh); in rss_vf_config_open()
|
| D | t4fw_api.h | 2181 } vf; member
|
| /linux-4.4.14/drivers/net/ethernet/intel/igbvf/ |
| D | mbx.c | 146 v2p_mailbox |= hw->dev_spec.vf.v2p_mailbox; in e1000_read_v2p_mailbox() 147 hw->dev_spec.vf.v2p_mailbox |= v2p_mailbox & E1000_V2PMAILBOX_R2C_BITS; in e1000_read_v2p_mailbox() 168 hw->dev_spec.vf.v2p_mailbox &= ~mask; in e1000_check_for_bit_vf()
|
| D | Makefile | 34 igbvf-objs := vf.o \
|
| D | vf.h | 248 struct e1000_dev_spec_vf vf; member
|
| /linux-4.4.14/net/core/ |
| D | rtnetlink.c | 917 int vf; in rtnl_vf_ports_fill() local 924 for (vf = 0; vf < dev_num_vf(dev->dev.parent); vf++) { in rtnl_vf_ports_fill() 928 if (nla_put_u32(skb, IFLA_PORT_VF, vf)) in rtnl_vf_ports_fill() 930 err = dev->netdev_ops->ndo_get_vf_port(dev, vf, skb); in rtnl_vf_ports_fill() 1088 struct nlattr *vf, *vfstats; in rtnl_fill_vfinfo() local 1108 vf_mac.vf = in rtnl_fill_vfinfo() 1109 vf_vlan.vf = in rtnl_fill_vfinfo() 1110 vf_rate.vf = in rtnl_fill_vfinfo() 1111 vf_tx_rate.vf = in rtnl_fill_vfinfo() 1112 vf_spoofchk.vf = in rtnl_fill_vfinfo() [all …]
|
| /linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
| D | cmd.c | 883 static enum ib_port_state vf_port_state(struct mlx4_dev *dev, int port, int vf) in vf_port_state() argument 885 if (mlx4_get_slave_port_state(dev, vf, port) == SLAVE_PORT_UP) in vf_port_state() 2669 static int mlx4_get_slave_indx(struct mlx4_dev *dev, int vf) in mlx4_get_slave_indx() argument 2671 if ((vf < 0) || (vf >= dev->persist->num_vfs)) { in mlx4_get_slave_indx() 2673 vf, dev->persist->num_vfs); in mlx4_get_slave_indx() 2677 return vf+1; in mlx4_get_slave_indx() 2713 int vf; in mlx4_get_active_ports() local 2722 vf = mlx4_get_vf_indx(dev, slave); in mlx4_get_active_ports() 2723 if (vf < 0) in mlx4_get_active_ports() 2726 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports() [all …]
|
| D | en_netdev.c | 2291 static int mlx4_en_set_vf_vlan(struct net_device *dev, int vf, u16 vlan, u8 qos) in mlx4_en_set_vf_vlan() argument 2296 return mlx4_set_vf_vlan(mdev->dev, en_priv->port, vf, vlan, qos); in mlx4_en_set_vf_vlan() 2299 static int mlx4_en_set_vf_rate(struct net_device *dev, int vf, int min_tx_rate, in mlx4_en_set_vf_rate() argument 2305 return mlx4_set_vf_rate(mdev->dev, en_priv->port, vf, min_tx_rate, in mlx4_en_set_vf_rate() 2309 static int mlx4_en_set_vf_spoofchk(struct net_device *dev, int vf, bool setting) in mlx4_en_set_vf_spoofchk() argument 2314 return mlx4_set_vf_spoofchk(mdev->dev, en_priv->port, vf, setting); in mlx4_en_set_vf_spoofchk() 2317 static int mlx4_en_get_vf_config(struct net_device *dev, int vf, struct ifla_vf_info *ivf) in mlx4_en_get_vf_config() argument 2322 return mlx4_get_vf_config(mdev->dev, en_priv->port, vf, ivf); in mlx4_en_get_vf_config() 2325 static int mlx4_en_set_vf_link_state(struct net_device *dev, int vf, int link_state) in mlx4_en_set_vf_link_state() argument 2330 return mlx4_set_vf_link_state(mdev->dev, en_priv->port, vf, link_state); in mlx4_en_set_vf_link_state() [all …]
|
| D | resource_tracker.c | 418 int vf, int num_instances) in initialize_res_quotas() argument 420 res_alloc->guaranteed[vf] = num_instances / in initialize_res_quotas() 422 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; in initialize_res_quotas() 423 if (vf == mlx4_master_func_num(dev)) { in initialize_res_quotas() 428 res_alloc->guaranteed[vf] += dev->caps.reserved_mtts; in initialize_res_quotas() 429 res_alloc->quota[vf] += dev->caps.reserved_mtts; in initialize_res_quotas()
|
| /linux-4.4.14/drivers/gpu/ipu-v3/ |
| D | ipu-common.c | 189 u32 r90, vf, hf; in ipu_degrees_to_rot_mode() local 193 vf = hf = r90 = 0; in ipu_degrees_to_rot_mode() 196 vf = hf = 0; in ipu_degrees_to_rot_mode() 200 vf = hf = 1; in ipu_degrees_to_rot_mode() 204 vf = hf = r90 = 1; in ipu_degrees_to_rot_mode() 211 vf ^= (u32)vflip; in ipu_degrees_to_rot_mode() 213 *mode = (enum ipu_rotate_mode)((r90 << 2) | (hf << 1) | vf); in ipu_degrees_to_rot_mode() 221 u32 r90, vf, hf; in ipu_rot_mode_to_degrees() local 225 vf = ((u32)mode >> 0) & 0x1; in ipu_rot_mode_to_degrees() 227 vf ^= (u32)vflip; in ipu_rot_mode_to_degrees() [all …]
|
| /linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/ |
| D | Makefile | 34 ixgbevf-objs := vf.o \
|
| /linux-4.4.14/Documentation/devicetree/bindings/net/ |
| D | hisilicon-hns-dsaf.txt | 10 "2port-64vf", 12 "6port-16vf".
|
| /linux-4.4.14/drivers/media/pci/cx18/ |
| D | cx18-ioctl.h | 30 int cx18_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
|
| D | cx18-ioctl.c | 548 struct v4l2_frequency *vf) in cx18_g_frequency() argument 552 if (vf->tuner != 0) in cx18_g_frequency() 555 cx18_call_all(cx, tuner, g_frequency, vf); in cx18_g_frequency() 559 int cx18_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) in cx18_s_frequency() argument 564 if (vf->tuner != 0) in cx18_s_frequency() 568 CX18_DEBUG_INFO("v4l2 ioctl: set frequency %d\n", vf->frequency); in cx18_s_frequency() 569 cx18_call_all(cx, tuner, s_frequency, vf); in cx18_s_frequency()
|
| D | cx18-driver.c | 1162 struct v4l2_frequency vf; in cx18_init_on_first_open() local 1234 vf.tuner = 0; in cx18_init_on_first_open() 1235 vf.type = V4L2_TUNER_ANALOG_TV; in cx18_init_on_first_open() 1236 vf.frequency = 6400; /* the tuner 'baseline' frequency */ in cx18_init_on_first_open() 1241 vf.frequency = 1460; /* ch. 1 91250*16/1000 */ in cx18_init_on_first_open() 1243 vf.frequency = 1076; /* ch. 4 67250*16/1000 */ in cx18_init_on_first_open() 1254 cx18_s_frequency(NULL, &fh, &vf); in cx18_init_on_first_open()
|
| /linux-4.4.14/drivers/misc/genwqe/ |
| D | card_base.c | 346 unsigned int vf; in genwqe_setup_vf_jtimer() local 355 for (vf = 0; vf < totalvfs; vf++) { in genwqe_setup_vf_jtimer() 357 if (cd->vf_jobtimeout_msec[vf] == 0) in genwqe_setup_vf_jtimer() 360 x = ilog2(cd->vf_jobtimeout_msec[vf] * in genwqe_setup_vf_jtimer() 364 0xff00 | (x & 0xff), vf + 1); in genwqe_setup_vf_jtimer()
|
| /linux-4.4.14/include/linux/ |
| D | if_link.h | 18 __u32 vf; member
|
| D | netdevice.h | 1114 int vf, int min_tx_rate, 1117 int vf, bool setting); 1119 int vf, bool setting); 1121 int vf, 1124 int vf, int link_state); 1126 int vf, 1130 int vf, 1133 int vf, struct sk_buff *skb); 1136 int vf, bool setting);
|
| /linux-4.4.14/drivers/media/pci/ivtv/ |
| D | ivtv-ioctl.h | 32 int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
|
| D | ivtv-driver.c | 1314 struct v4l2_frequency vf; in ivtv_init_on_first_open() local 1349 vf.tuner = 0; in ivtv_init_on_first_open() 1350 vf.type = V4L2_TUNER_ANALOG_TV; in ivtv_init_on_first_open() 1351 vf.frequency = 6400; /* the tuner 'baseline' frequency */ in ivtv_init_on_first_open() 1356 vf.frequency = 1460; /* ch. 1 91250*16/1000 */ in ivtv_init_on_first_open() 1359 vf.frequency = 1076; /* ch. 4 67250*16/1000 */ in ivtv_init_on_first_open() 1370 ivtv_s_frequency(NULL, &fh, &vf); in ivtv_init_on_first_open()
|
| D | ivtv-ioctl.c | 1072 static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) in ivtv_g_frequency() argument 1079 if (vf->tuner != 0) in ivtv_g_frequency() 1082 ivtv_call_all(itv, tuner, g_frequency, vf); in ivtv_g_frequency() 1086 int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) in ivtv_s_frequency() argument 1093 if (vf->tuner != 0) in ivtv_s_frequency() 1097 IVTV_DEBUG_INFO("v4l2 ioctl: set frequency %d\n", vf->frequency); in ivtv_s_frequency() 1098 ivtv_call_all(itv, tuner, s_frequency, vf); in ivtv_s_frequency()
|
| /linux-4.4.14/arch/arm/boot/dts/ |
| D | vf610-colibri.dtsi | 11 #include "vf-colibri.dtsi"
|
| D | vf610-colibri-eval-v3.dts | 12 #include "vf-colibri-eval-v3.dtsi"
|
| D | vf500-colibri-eval-v3.dts | 12 #include "vf-colibri-eval-v3.dtsi"
|
| D | vf500-colibri.dtsi | 11 #include "vf-colibri.dtsi"
|
| /linux-4.4.14/arch/ia64/kernel/ |
| D | palinfo.c | 521 const char *const *vf, *const *v; in feature_set_info() local 524 vf = v = proc_features[set]; in feature_set_info() 531 if (vf) in feature_set_info() 532 v = vf + i; in feature_set_info()
|
| /linux-4.4.14/drivers/infiniband/hw/mlx4/ |
| D | mcg.c | 1166 static void clear_pending_reqs(struct mcast_group *group, int vf) in clear_pending_reqs() argument 1175 list_for_each_entry_safe(req, tmp, &group->func[vf].pending, func_list) { in clear_pending_reqs() 1185 --group->func[vf].num_pend_reqs; in clear_pending_reqs() 1193 if (!pend && (!list_empty(&group->func[vf].pending) || group->func[vf].num_pend_reqs)) { in clear_pending_reqs() 1195 list_empty(&group->func[vf].pending), group->func[vf].num_pend_reqs); in clear_pending_reqs()
|
| /linux-4.4.14/drivers/video/fbdev/ |
| D | acornfb.h | 87 u_int vf; member
|
| /linux-4.4.14/drivers/scsi/bfa/ |
| D | bfa_fcs.c | 1582 bfa_fcs_vf_get_ports(bfa_fcs_vf_t *vf, wwn_t lpwwn[], int *nlports) in bfa_fcs_vf_get_ports() argument 1589 if (vf == NULL || lpwwn == NULL || *nlports == 0) in bfa_fcs_vf_get_ports() 1592 fcs = vf->fcs; in bfa_fcs_vf_get_ports() 1594 bfa_trc(fcs, vf->vf_id); in bfa_fcs_vf_get_ports() 1597 lpwwn[i++] = vf->bport.port_cfg.pwwn; in bfa_fcs_vf_get_ports() 1599 list_for_each(qe, &vf->vport_q) { in bfa_fcs_vf_get_ports()
|
| D | bfa_fcs.h | 805 void bfa_fcs_vf_get_ports(bfa_fcs_vf_t *vf, wwn_t vpwwn[], int *nports);
|
| D | bfa_fcs_lport.c | 5879 bfa_fcs_vf_t *vf; in bfa_fcs_lookup_port() local 5883 vf = bfa_fcs_vf_lookup(fcs, vf_id); in bfa_fcs_lookup_port() 5884 if (vf == NULL) { in bfa_fcs_lookup_port() 5889 if (!lpwwn || (vf->bport.port_cfg.pwwn == lpwwn)) in bfa_fcs_lookup_port() 5890 return &vf->bport; in bfa_fcs_lookup_port() 5892 vport = bfa_fcs_fabric_vport_lookup(vf, lpwwn); in bfa_fcs_lookup_port()
|
| /linux-4.4.14/Documentation/ABI/testing/ |
| D | debugfs-driver-genwqe | 67 What: /sys/kernel/debug/genwqe/genwqe<n>_card/vf<0..14>_jobtimeout_msec
|
| /linux-4.4.14/drivers/s390/cio/ |
| D | chsc.c | 278 u8 vf; /* validity flags */ member 464 if ((sei_area->vf & 0xc0) != 0) { in chsc_process_sei_res_acc() 466 if ((sei_area->vf & 0xc0) == 0xc0) in chsc_process_sei_res_acc()
|
| /linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
| D | fm10k_iov.c | 517 ivi->vf = vf_idx; in fm10k_ndo_get_vf_config()
|
| D | fm10k_pci.c | 969 int vf = fault->func - 1; in fm10k_handle_fault() local 970 struct fm10k_vf_info *vf_info = &iov_data->vf_info[vf]; in fm10k_handle_fault() 976 hw->iov.ops.set_lport(hw, vf_info, vf, in fm10k_handle_fault()
|
| /linux-4.4.14/drivers/scsi/csiostor/ |
| D | csio_mb.c | 194 unsigned int pf, unsigned int vf, unsigned int nparams, in csio_mb_params() argument 209 FW_PARAMS_CMD_VFN_V(vf)); in csio_mb_params()
|
| /linux-4.4.14/Documentation/DocBook/media/ |
| D | dvbstb.png.b64 | 259 UlNTsXPnTsyePRuzZ8+WXv/vf/+r1vlFVRBCQKlUlmm6kirL/IkKI5fL8fHHH0vP165dC4VCUej4
|
| /linux-4.4.14/Documentation/input/ |
| D | elantech.txt | 447 n4 vf w1 w0 . . . b2 450 vf = a kind of flag ? (only on EF123, 0 when finger is over one
|
| /linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
| D | dispc.c | 2208 unsigned int hf, vf; in calc_core_clk_34xx() local 2224 vf = 2; in calc_core_clk_34xx() 2226 vf = 1; in calc_core_clk_34xx() 2228 return pclk * vf * hf; in calc_core_clk_34xx()
|
| /linux-4.4.14/kernel/trace/ |
| D | trace_events_filter.c | 2323 #define DATA_REC(m, va, vb, vc, vd, ve, vf, vg, vh, nvisit) \ argument 2327 .e = ve, .f = vf, .g = vg, .h = vh }, \
|
| /linux-4.4.14/drivers/scsi/lpfc/ |
| D | lpfc_init.c | 6707 lpfc_sli4_bar2_register_memmap(struct lpfc_hba *phba, uint32_t vf) in lpfc_sli4_bar2_register_memmap() argument 6709 if (vf > LPFC_VIR_FUNC_MAX) in lpfc_sli4_bar2_register_memmap() 6713 vf * LPFC_VFR_PAGE_SIZE + in lpfc_sli4_bar2_register_memmap() 6716 vf * LPFC_VFR_PAGE_SIZE + in lpfc_sli4_bar2_register_memmap() 6719 vf * LPFC_VFR_PAGE_SIZE + LPFC_EQCQ_DOORBELL); in lpfc_sli4_bar2_register_memmap() 6721 vf * LPFC_VFR_PAGE_SIZE + LPFC_MQ_DOORBELL); in lpfc_sli4_bar2_register_memmap() 6723 vf * LPFC_VFR_PAGE_SIZE + LPFC_BMBX); in lpfc_sli4_bar2_register_memmap()
|
| /linux-4.4.14/Documentation/DocBook/ |
| D | kernel-api.xml.db | 522 API-pci-num-vf
|
| /linux-4.4.14/arch/arm/ |
| D | Kconfig.debug | 1347 default "debug/vf.S" if DEBUG_VF_UART
|
| /linux-4.4.14/ |
| D | MAINTAINERS | 1101 F: arch/arm/boot/dts/vf*
|