Home
last modified time | relevance | path

Searched refs:vf (Results 1 – 25 of 114) sorted by relevance

12345

/drivers/net/ethernet/sfc/
Dsiena_sriov.c193 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 …]
Def10_sriov.c120 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 …]
/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c47 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 + (int)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 + (int)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 …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c74 mv_list->vf = -1; in __ixgbe_enable_sriov()
142 int vf = 0; in ixgbe_get_vfs() local
157 if (vf >= adapter->num_vfs) in ixgbe_get_vfs()
160 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs()
161 ++vf; in ixgbe_get_vfs()
221 unsigned int num_vfs = adapter->num_vfs, vf; in ixgbe_disable_sriov() local
231 for (vf = 0; vf < num_vfs; ++vf) { in ixgbe_disable_sriov()
232 struct pci_dev *vfdev = adapter->vfinfo[vf].vfdev; in ixgbe_disable_sriov()
236 adapter->vfinfo[vf].vfdev = NULL; in ixgbe_disable_sriov()
376 u32 *msgbuf, u32 vf) in ixgbe_set_vf_multicasts() argument
[all …]
Dixgbe_sriov.h48 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate,
50 int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting);
51 int ixgbe_ndo_set_vf_rss_query_en(struct net_device *netdev, int vf,
53 int ixgbe_ndo_set_vf_trust(struct net_device *netdev, int vf, bool setting);
55 int vf, struct ifla_vf_info *ivi);
64 u16 vid, u16 qos, u32 vf) in ixgbe_set_vmvir() argument
69 IXGBE_WRITE_REG(hw, IXGBE_VMVIR(vf), vmvir); in ixgbe_set_vmvir()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c30 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 …]
Dbnx2x_sriov.h162 #define vf_rxq_count(vf) ((vf)->alloc_resc.num_rxqs) argument
163 #define vf_txq_count(vf) ((vf)->alloc_resc.num_txqs) argument
164 #define vf_sb_count(vf) ((vf)->alloc_resc.num_sbs) argument
165 #define vf_mac_rules_cnt(vf) ((vf)->alloc_resc.num_mac_filters) argument
166 #define vf_vlan_rules_cnt(vf) ((vf)->alloc_resc.num_vlan_filters) argument
167 #define vf_mc_rules_cnt(vf) ((vf)->alloc_resc.num_mc_filters) argument
175 #define bnx2x_vfq(vf, nr, var) ((vf)->vfqs[(nr)].var) argument
176 #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 …]
Dbnx2x_vfpf.c542 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 …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c742 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 …]
Dqlcnic_sriov_common.c145 struct qlcnic_vf_info *vf; in qlcnic_sriov_init() local
189 vf = &sriov->vf_info[i]; in qlcnic_sriov_init()
190 vf->adapter = adapter; in qlcnic_sriov_init()
191 vf->pci_func = qlcnic_sriov_virtid_fn(adapter, i); in qlcnic_sriov_init()
192 mutex_init(&vf->send_cmd_lock); in qlcnic_sriov_init()
193 spin_lock_init(&vf->vlan_list_lock); in qlcnic_sriov_init()
194 INIT_LIST_HEAD(&vf->rcv_act.wait_list); in qlcnic_sriov_init()
195 INIT_LIST_HEAD(&vf->rcv_pend.wait_list); in qlcnic_sriov_init()
196 spin_lock_init(&vf->rcv_act.lock); in qlcnic_sriov_init()
197 spin_lock_init(&vf->rcv_pend.lock); in qlcnic_sriov_init()
[all …]
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c23 struct bnxt_vf_info *vf, u16 event_id) in bnxt_hwrm_fwd_async_event_cmpl() argument
31 if (vf) in bnxt_hwrm_fwd_async_event_cmpl()
32 req.encap_async_event_target_id = cpu_to_le16(vf->fw_fid); in bnxt_hwrm_fwd_async_event_cmpl()
82 struct bnxt_vf_info *vf; in bnxt_set_vf_spoofchk() local
91 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk()
92 if (vf->flags & BNXT_VF_SPOOFCHK) in bnxt_set_vf_spoofchk()
97 func_flags = vf->func_flags; in bnxt_set_vf_spoofchk()
106 req.fid = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_spoofchk()
110 vf->func_flags = func_flags; in bnxt_set_vf_spoofchk()
112 vf->flags |= BNXT_VF_SPOOFCHK; in bnxt_set_vf_spoofchk()
[all …]
/drivers/net/ethernet/cisco/enic/
Denic_pp.c38 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 …]
Denic_pp.h22 #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);
/drivers/net/ethernet/qlogic/qed/
Dqed_sriov.c134 struct qed_vf_info *vf = NULL; in qed_iov_get_vf_info() local
142 vf = &p_hwfn->pf_iov_info->vfs_array[relative_vf_id]; in qed_iov_get_vf_info()
147 return vf; in qed_iov_get_vf_info()
341 struct qed_vf_info *vf = &p_iov_info->vfs_array[idx]; in qed_iov_setup_vfdb() local
344 vf->vf_mbx.req_virt = p_req_virt_addr + idx; in qed_iov_setup_vfdb()
345 vf->vf_mbx.req_phys = req_p + idx * sizeof(union vfpf_tlvs); in qed_iov_setup_vfdb()
346 vf->vf_mbx.reply_virt = p_reply_virt_addr + idx; in qed_iov_setup_vfdb()
347 vf->vf_mbx.reply_phys = rply_p + idx * sizeof(union pfvf_tlvs); in qed_iov_setup_vfdb()
349 vf->state = VF_STOPPED; in qed_iov_setup_vfdb()
350 vf->b_init = false; in qed_iov_setup_vfdb()
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnic_main.c128 static void nic_clear_mbx_intr(struct nicpf *nic, int vf, int mbx_reg) in nic_clear_mbx_intr() argument
130 nic_reg_write(nic, NIC_PF_MAILBOX_INT + (mbx_reg << 3), BIT_ULL(vf)); in nic_clear_mbx_intr()
133 static u64 nic_get_mbx_addr(int vf) in nic_get_mbx_addr() argument
135 return NIC_PF_VF_0_127_MAILBOX_0_1 + (vf << NIC_VF_NUM_SHIFT); in nic_get_mbx_addr()
142 static void nic_send_msg_to_vf(struct nicpf *nic, int vf, union nic_mbx *mbx) in nic_send_msg_to_vf() argument
144 void __iomem *mbx_addr = nic->reg_base + nic_get_mbx_addr(vf); in nic_send_msg_to_vf()
167 static void nic_mbx_send_ready(struct nicpf *nic, int vf) in nic_mbx_send_ready() argument
174 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready()
178 if (vf < nic->num_vf_en) { in nic_mbx_send_ready()
179 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Dsriov.c51 int vf; in mlx5_device_enable_sriov() local
69 for (vf = 0; vf < num_vfs; vf++) { in mlx5_device_enable_sriov()
70 err = mlx5_core_enable_hca(dev, vf + 1); in mlx5_device_enable_sriov()
72 mlx5_core_warn(dev, "failed to enable VF %d (%d)\n", vf, err); in mlx5_device_enable_sriov()
75 sriov->vfs_ctx[vf].enabled = 1; in mlx5_device_enable_sriov()
77 mlx5_core_dbg(dev, "successfully enabled VF* %d\n", vf); in mlx5_device_enable_sriov()
88 int vf; in mlx5_device_disable_sriov() local
93 for (vf = 0; vf < sriov->num_vfs; vf++) { in mlx5_device_disable_sriov()
94 if (!sriov->vfs_ctx[vf].enabled) in mlx5_device_disable_sriov()
96 err = mlx5_core_disable_hca(dev, vf + 1); in mlx5_device_disable_sriov()
[all …]
/drivers/infiniband/hw/mlx5/
Dib_virt.c51 int mlx5_ib_get_vf_config(struct ib_device *device, int vf, u8 port, in mlx5_ib_get_vf_config() argument
63 err = mlx5_query_hca_vport_context(mdev, 1, 1, vf + 1, rep); in mlx5_ib_get_vf_config()
66 vf, err); in mlx5_ib_get_vf_config()
93 int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf, in mlx5_ib_set_vf_link_state() argument
111 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in mlx5_ib_set_vf_link_state()
118 int mlx5_ib_get_vf_stats(struct ib_device *device, int vf, in mlx5_ib_get_vf_stats() argument
134 err = mlx5_core_query_vport_counter(mdev, true, vf, port, out, out_sz); in mlx5_ib_get_vf_stats()
149 static int set_vf_node_guid(struct ib_device *device, int vf, u8 port, u64 guid) in set_vf_node_guid() argument
162 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in set_vf_node_guid()
167 static int set_vf_port_guid(struct ib_device *device, int vf, u8 port, u64 guid) in set_vf_port_guid() argument
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c70 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 …]
Dusnic_ib_main.c78 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()
550 struct usnic_ib_vf *vf; in usnic_ib_pci_probe() local
553 vf = kzalloc(sizeof(*vf), GFP_KERNEL); in usnic_ib_pci_probe()
554 if (!vf) in usnic_ib_pci_probe()
572 pci_set_drvdata(pdev, vf); in usnic_ib_pci_probe()
[all …]
Dusnic_ib_qp_grp.c89 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 …]
/drivers/crypto/qat/qat_common/
Dadf_vf_isr.c86 accel_dev->vf.irq_name = kzalloc(ADF_MAX_MSIX_VECTOR_NAME, GFP_KERNEL); in adf_enable_msi()
87 if (!accel_dev->vf.irq_name) in adf_enable_msi()
97 kfree(accel_dev->vf.irq_name); in adf_disable_msi()
158 accel_dev->vf.pf_version = in adf_pf2vf_bh_handler()
161 accel_dev->vf.compatible = in adf_pf2vf_bh_handler()
164 complete(&accel_dev->vf.iov_msg_completion); in adf_pf2vf_bh_handler()
185 tasklet_init(&accel_dev->vf.pf2vf_bh_tasklet, in adf_setup_pf2vf_bh()
188 mutex_init(&accel_dev->vf.vf2pf_lock); in adf_setup_pf2vf_bh()
194 tasklet_disable(&accel_dev->vf.pf2vf_bh_tasklet); in adf_cleanup_pf2vf_bh()
195 tasklet_kill(&accel_dev->vf.pf2vf_bh_tasklet); in adf_cleanup_pf2vf_bh()
[all …]
Dadf_pf2vf_msg.c141 lock = &accel_dev->vf.vf2pf_lock; in __adf_iov_putmsg()
340 struct adf_accel_vf_info *vf; in adf_pf2vf_notify_restarting() local
345 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) { in adf_pf2vf_notify_restarting()
346 if (vf->init && adf_iov_putmsg(accel_dev, msg, i)) in adf_pf2vf_notify_restarting()
373 if (!wait_for_completion_timeout(&accel_dev->vf.iov_msg_completion, in adf_vf2pf_request_version()
381 switch (accel_dev->vf.compatible) { in adf_vf2pf_request_version()
386 if (accel_dev->vf.pf_version >= hw_data->min_iov_compat_ver) in adf_vf2pf_request_version()
392 accel_dev->vf.pf_version, in adf_vf2pf_request_version()
Dadf_dev_mgr.c66 static int adf_get_vf_id(struct adf_accel_dev *vf) in adf_get_vf_id() argument
68 return ((7 * (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)) + in adf_get_vf_id()
69 PCI_FUNC(accel_to_pci_dev(vf)->devfn) + in adf_get_vf_id()
70 (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)); in adf_get_vf_id()
73 static int adf_get_vf_num(struct adf_accel_dev *vf) in adf_get_vf_num() argument
75 return (accel_to_pci_dev(vf)->bus->number << 8) | adf_get_vf_id(vf); in adf_get_vf_num()
112 void adf_clean_vf_map(bool vf) in adf_clean_vf_map() argument
125 if (vf && map->bdf == -1) in adf_clean_vf_map()
/drivers/media/platform/vivid/
Dvivid-radio-common.c153 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()
/drivers/net/ethernet/intel/igb/
Digb_main.c170 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac);
172 int vf, u16 vlan, u8 qos, __be16 vlan_proto);
174 static int igb_ndo_set_vf_spoofchk(struct net_device *netdev, int vf,
176 static int igb_ndo_get_vf_config(struct net_device *netdev, int vf,
183 static int igb_vf_configure(struct igb_adapter *adapter, int vf);
5920 static int igb_vf_configure(struct igb_adapter *adapter, int vf) in igb_vf_configure() argument
5925 igb_set_vf_mac(adapter, vf, mac_addr); in igb_vf_configure()
5928 adapter->vf_data[vf].spoofchk_enabled = true; in igb_vf_configure()
5948 static int igb_set_vf_promisc(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_promisc() argument
5951 u32 vmolr = rd32(E1000_VMOLR(vf)); in igb_set_vf_promisc()
[all …]

12345