/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_main.c | 39 * @pf: NFP PF handle 47 nfp_net_get_mac_addr(struct nfp_pf *pf, struct net_device *netdev, in nfp_net_get_mac_addr() argument 74 static int nfp_net_pf_get_num_ports(struct nfp_pf *pf) in nfp_net_pf_get_num_ports() argument 76 return nfp_pf_rtsym_read_optional(pf, "nfd_cfg_pf%u_num_ports", 1); in nfp_net_pf_get_num_ports() 79 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() argument 82 nfp_app_vnic_free(pf->app, nn); in nfp_net_pf_free_vnic() 85 pf->num_vnics--; in nfp_net_pf_free_vnic() 89 static void nfp_net_pf_free_vnics(struct nfp_pf *pf) in nfp_net_pf_free_vnics() argument 93 list_for_each_entry_safe(nn, next, &pf->vnics, vnic_list) in nfp_net_pf_free_vnics() 95 nfp_net_pf_free_vnic(pf, nn); in nfp_net_pf_free_vnics() [all …]
|
H A D | nfp_main.c | 72 int nfp_pf_rtsym_read_optional(struct nfp_pf *pf, const char *format, in nfp_pf_rtsym_read_optional() argument 79 snprintf(name, sizeof(name), format, nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_rtsym_read_optional() 81 val = nfp_rtsym_read_le(pf->rtbl, name, &err); in nfp_pf_rtsym_read_optional() 85 nfp_err(pf->cpp, "Unable to read symbol %s\n", name); in nfp_pf_rtsym_read_optional() 93 nfp_pf_map_rtsym(struct nfp_pf *pf, const char *name, const char *sym_fmt, in nfp_pf_map_rtsym() argument 99 nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_map_rtsym() 101 return nfp_rtsym_map(pf->rtbl, pf_symbol, name, min_size, area); in nfp_pf_map_rtsym() 105 int nfp_mbox_cmd(struct nfp_pf *pf, u32 cmd, void *in_data, u64 in_length, in nfp_mbox_cmd() argument 113 if (!pf->mbox) in nfp_mbox_cmd() 116 max_data_sz = nfp_rtsym_size(pf->mbox) - NFP_MBOX_SYM_MIN_SIZE; in nfp_mbox_cmd() [all …]
|
H A D | nfp_shared_buf.c | 13 static u32 nfp_shared_buf_pool_unit(struct nfp_pf *pf, unsigned int sb) in nfp_shared_buf_pool_unit() argument 18 for (i = 0; i < pf->num_shared_bufs; i++) in nfp_shared_buf_pool_unit() 19 if (pf->shared_bufs[i].id == sb_id) in nfp_shared_buf_pool_unit() 20 return le32_to_cpu(pf->shared_bufs[i].pool_size_unit); in nfp_shared_buf_pool_unit() 26 int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index, in nfp_shared_buf_pool_get() argument 37 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_get() 41 n = nfp_mbox_cmd(pf, NFP_MBOX_POOL_GET, &id, sizeof(id), in nfp_shared_buf_pool_get() 56 int nfp_shared_buf_pool_set(struct nfp_pf *pf, unsigned int sb, in nfp_shared_buf_pool_set() argument 69 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_set() 74 return nfp_mbox_cmd(pf, NFP_MBOX_POOL_SET, &set_data, sizeof(set_data), in nfp_shared_buf_pool_set() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_pf.c | 56 struct otx2_nic *pf = netdev_priv(netdev); in otx2_change_mtu() local 60 if (pf->xdp_prog && new_mtu > MAX_XDP_MTU) { in otx2_change_mtu() 78 static void otx2_disable_flr_me_intr(struct otx2_nic *pf) in otx2_disable_flr_me_intr() argument 80 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr() 83 otx2_write64(pf, RVU_PF_VFME_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 84 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFME0); in otx2_disable_flr_me_intr() 85 free_irq(irq, pf); in otx2_disable_flr_me_intr() 88 otx2_write64(pf, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in otx2_disable_flr_me_intr() 89 irq = pci_irq_vector(pf->pdev, RVU_PF_INT_VEC_VFFLR0); in otx2_disable_flr_me_intr() 90 free_irq(irq, pf); in otx2_disable_flr_me_intr() [all …]
|
H A D | otx2_dmac_flt.c | 10 static int otx2_dmacflt_do_add(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_do_add() argument 17 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_do_add() 19 req = otx2_mbox_alloc_msg_cgx_mac_addr_add(&pf->mbox); in otx2_dmacflt_do_add() 21 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add() 26 err = otx2_sync_mbox_msg(&pf->mbox); in otx2_dmacflt_do_add() 30 otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &req->hdr); in otx2_dmacflt_do_add() 32 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add() 39 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add() 43 static int otx2_dmacflt_add_pfmac(struct otx2_nic *pf, u32 *dmac_index) in otx2_dmacflt_add_pfmac() argument 49 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_idc.c | 13 * @pf: pointer to PF struct 16 * pf->adev.dev to avoid race conditions. 18 static struct iidc_auxiliary_drv *ice_get_auxiliary_drv(struct ice_pf *pf) in ice_get_auxiliary_drv() argument 22 adev = pf->adev; in ice_get_auxiliary_drv() 32 * @pf: pointer to PF struct 35 void ice_send_event_to_aux(struct ice_pf *pf, struct iidc_event *event) in ice_send_event_to_aux() argument 42 mutex_lock(&pf->adev_mutex); in ice_send_event_to_aux() 43 if (!pf->adev) in ice_send_event_to_aux() 46 device_lock(&pf->adev->dev); in ice_send_event_to_aux() 47 iadrv = ice_get_auxiliary_drv(pf); in ice_send_event_to_aux() [all …]
|
H A D | ice_eswitch.c | 15 * @pf: pointer to PF struct 22 ice_eswitch_add_vf_sp_rule(struct ice_pf *pf, struct ice_vf *vf) in ice_eswitch_add_vf_sp_rule() argument 24 struct ice_vsi *ctrl_vsi = pf->eswitch.control_vsi; in ice_eswitch_add_vf_sp_rule() 27 struct ice_hw *hw = &pf->hw; in ice_eswitch_add_vf_sp_rule() 50 dev_err(ice_pf_to_dev(pf), "Unable to add VF slow-path rule in switchdev mode for VF %d", in ice_eswitch_add_vf_sp_rule() 69 ice_rem_adv_rule_by_id(&vf->pf->hw, &vf->repr->sp_rule); in ice_eswitch_del_vf_sp_rule() 74 * @pf: pointer to PF struct 79 static int ice_eswitch_setup_env(struct ice_pf *pf) in ice_eswitch_setup_env() argument 81 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_env() 82 struct ice_vsi *ctrl_vsi = pf->eswitch.control_vsi; in ice_eswitch_setup_env() [all …]
|
H A D | ice_irq.c | 10 * @pf: board private structure 15 ice_init_irq_tracker(struct ice_pf *pf, unsigned int max_vectors, in ice_init_irq_tracker() argument 18 pf->irq_tracker.num_entries = max_vectors; in ice_init_irq_tracker() 19 pf->irq_tracker.num_static = num_static; in ice_init_irq_tracker() 20 xa_init_flags(&pf->irq_tracker.entries, XA_FLAGS_ALLOC); in ice_init_irq_tracker() 25 * @pf: board private structure 27 static void ice_deinit_irq_tracker(struct ice_pf *pf) in ice_deinit_irq_tracker() argument 29 xa_destroy(&pf->irq_tracker.entries); in ice_deinit_irq_tracker() 34 * @pf: board private structure 37 static void ice_free_irq_res(struct ice_pf *pf, u16 index) in ice_free_irq_res() argument [all …]
|
H A D | ice_main.c | 62 struct ice_pf *pf = container_of(hw, struct ice_pf, hw); in ice_hw_to_dev() local 64 return &pf->pdev->dev; in ice_hw_to_dev() 72 static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type); 74 static void ice_vsi_release_all(struct ice_pf *pf); 76 static int ice_rebuild_channels(struct ice_pf *pf); 110 * @pf: pointer to PF struct 112 static void ice_check_for_hang_subtask(struct ice_pf *pf) in ice_check_for_hang_subtask() argument 120 ice_for_each_vsi(pf, v) in ice_check_for_hang_subtask() 121 if (pf in ice_check_for_hang_subtask() 180 ice_init_mac_fltr(struct ice_pf * pf) ice_init_mac_fltr() argument 325 struct ice_pf *pf = vsi->back; ice_vsi_sync_fltr() local 482 ice_sync_fltr_subtask(struct ice_pf * pf) ice_sync_fltr_subtask() argument 505 ice_pf_dis_all_vsi(struct ice_pf * pf,bool locked) ice_pf_dis_all_vsi() argument 529 ice_prepare_for_reset(struct ice_pf * pf,enum ice_reset_req reset_type) ice_prepare_for_reset() argument 622 ice_do_reset(struct ice_pf * pf,enum ice_reset_req reset_type) ice_do_reset() argument 667 ice_reset_subtask(struct ice_pf * pf) ice_reset_subtask() argument 937 ice_set_dflt_mib(struct ice_pf * pf) ice_set_dflt_mib() argument 1021 ice_check_phy_fw_load(struct ice_pf * pf,u8 link_cfg_err) ice_check_phy_fw_load() argument 1045 ice_check_module_power(struct ice_pf * pf,u8 link_cfg_err) ice_check_module_power() argument 1077 ice_check_link_cfg_err(struct ice_pf * pf,u8 link_cfg_err) ice_check_link_cfg_err() argument 1093 ice_link_event(struct ice_pf * pf,struct ice_port_info * pi,bool link_up,u16 link_speed) ice_link_event() argument 1162 ice_watchdog_subtask(struct ice_pf * pf) ice_watchdog_subtask() argument 1222 ice_handle_link_event(struct ice_pf * pf,struct ice_rq_event_info * event) ice_handle_link_event() argument 1259 ice_aq_prep_for_event(struct ice_pf * pf,struct ice_aq_task * task,u16 opcode) ice_aq_prep_for_event() argument 1283 ice_aq_wait_for_event(struct ice_pf * pf,struct ice_aq_task * task,unsigned long timeout) ice_aq_wait_for_event() argument 1345 ice_aq_check_events(struct ice_pf * pf,u16 opcode,struct ice_rq_event_info * event) ice_aq_check_events() argument 1386 ice_aq_cancel_waiting_tasks(struct ice_pf * pf) ice_aq_cancel_waiting_tasks() argument 1405 __ice_clean_ctrlq(struct ice_pf * pf,enum ice_ctl_q q_type) __ice_clean_ctrlq() argument 1561 ice_clean_adminq_subtask(struct ice_pf * pf) ice_clean_adminq_subtask() argument 1588 ice_clean_mailboxq_subtask(struct ice_pf * pf) ice_clean_mailboxq_subtask() argument 1610 ice_clean_sbq_subtask(struct ice_pf * pf) ice_clean_sbq_subtask() argument 1640 ice_service_task_schedule(struct ice_pf * pf) ice_service_task_schedule() argument 1652 ice_service_task_complete(struct ice_pf * pf) ice_service_task_complete() argument 1668 ice_service_task_stop(struct ice_pf * pf) ice_service_task_stop() argument 1689 ice_service_task_restart(struct ice_pf * pf) ice_service_task_restart() argument 1701 struct ice_pf *pf = from_timer(pf, t, serv_tmr); ice_service_timer() local 1717 ice_handle_mdd_event(struct ice_pf * pf) ice_handle_mdd_event() argument 1954 struct ice_pf *pf = pi->hw->back; ice_init_nvm_phy_type() local 1986 struct ice_pf *pf = pi->hw->back; ice_init_link_dflt_override() local 2024 struct ice_pf *pf = pi->hw->back; ice_init_phy_cfg_dflt_override() local 2063 struct ice_pf *pf = pi->hw->back; ice_init_phy_user_cfg() local 2133 struct ice_pf *pf = vsi->back; ice_configure_phy() local 2250 ice_check_media_subtask(struct ice_pf * pf) ice_check_media_subtask() argument 2299 struct ice_pf *pf = container_of(work, struct ice_pf, serv_task); ice_service_task() local 2409 ice_schedule_reset(struct ice_pf * pf,enum ice_reset_req reset) ice_schedule_reset() argument 2494 struct ice_pf *pf = vsi->back; ice_vsi_req_irq_msix() local 2658 struct ice_pf *pf = vsi->back; ice_prepare_xdp_rings() local 2790 struct ice_pf *pf = vsi->back; ice_destroy_xdp_rings() local 3033 ice_ena_misc_vector(struct ice_pf * pf) ice_ena_misc_vector() argument 3073 struct ice_pf *pf = (struct ice_pf *)data; ice_misc_intr() local 3206 struct ice_pf *pf = data; ice_misc_intr_thread_fn() local 3262 ice_free_irq_msix_misc(struct ice_pf * pf) ice_free_irq_msix_misc() argument 3318 ice_req_irq_msix_misc(struct ice_pf * pf) ice_req_irq_msix_misc() argument 3392 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_ops() local 3419 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_netdev_features() local 3526 ice_pf_vsi_setup(struct ice_pf * pf,struct ice_port_info * pi) ice_pf_vsi_setup() argument 3538 ice_chnl_vsi_setup(struct ice_pf * pf,struct ice_port_info * pi,struct ice_channel * ch) ice_chnl_vsi_setup() argument 3560 ice_ctrl_vsi_setup(struct ice_pf * pf,struct ice_port_info * pi) ice_ctrl_vsi_setup() argument 3580 ice_lb_vsi_setup(struct ice_pf * pf,struct ice_port_info * pi) ice_lb_vsi_setup() argument 3790 ice_get_avail_txq_count(struct ice_pf * pf) ice_get_avail_txq_count() argument 3800 ice_get_avail_rxq_count(struct ice_pf * pf) ice_get_avail_rxq_count() argument 3810 ice_deinit_pf(struct ice_pf * pf) ice_deinit_pf() argument 3838 ice_set_pf_caps(struct ice_pf * pf) ice_set_pf_caps() argument 3887 ice_init_pf(struct ice_pf * pf) ice_init_pf() argument 3960 struct ice_pf *pf = vsi->back; ice_vsi_recfg_qs() local 4018 ice_set_safe_mode_vlan_cfg(struct ice_pf * pf) ice_set_safe_mode_vlan_cfg() argument 4071 struct ice_pf *pf = hw->back; ice_log_pkg_init() local 4154 ice_load_pkg(const struct firmware * firmware,struct ice_pf * pf) ice_load_pkg() argument 4193 ice_verify_cacheline_size(struct ice_pf * pf) ice_verify_cacheline_size() argument 4206 ice_send_version(struct ice_pf * pf) ice_send_version() argument 4225 ice_init_fdir(struct ice_pf * pf) ice_init_fdir() argument 4266 ice_deinit_fdir(struct ice_pf * pf) ice_deinit_fdir() argument 4287 ice_get_opt_fw_name(struct ice_pf * pf) ice_get_opt_fw_name() argument 4317 ice_request_fw(struct ice_pf * pf) ice_request_fw() argument 4358 ice_print_wake_reason(struct ice_pf * pf) ice_print_wake_reason() argument 4481 ice_init_eth(struct ice_pf * pf) ice_init_eth() argument 4530 ice_deinit_eth(struct ice_pf * pf) ice_deinit_eth() argument 4569 ice_init_dev(struct ice_pf * pf) ice_init_dev() argument 4662 ice_deinit_dev(struct ice_pf * pf) ice_deinit_dev() argument 4674 ice_init_features(struct ice_pf * pf) ice_init_features() argument 4704 ice_deinit_features(struct ice_pf * pf) ice_deinit_features() argument 4719 ice_init_wakeup(struct ice_pf * pf) ice_init_wakeup() argument 4734 ice_init_link(struct ice_pf * pf) ice_init_link() argument 4781 ice_init_pf_sw(struct ice_pf * pf) ice_init_pf_sw() argument 4820 ice_deinit_pf_sw(struct ice_pf * pf) ice_deinit_pf_sw() argument 4831 ice_alloc_vsis(struct ice_pf * pf) ice_alloc_vsis() argument 4861 ice_dealloc_vsis(struct ice_pf * pf) ice_dealloc_vsis() argument 4871 ice_init_devlink(struct ice_pf * pf) ice_init_devlink() argument 4885 ice_deinit_devlink(struct ice_pf * pf) ice_deinit_devlink() argument 4892 ice_init(struct ice_pf * pf) ice_init() argument 4944 ice_deinit(struct ice_pf * pf) ice_deinit() argument 4958 ice_load(struct ice_pf * pf) ice_load() argument 5009 ice_unload(struct ice_pf * pf) ice_unload() argument 5031 struct ice_pf *pf; ice_probe() local 5148 ice_set_wake(struct ice_pf * pf) ice_set_wake() argument 5171 ice_setup_mc_magic_wake(struct ice_pf * pf) ice_setup_mc_magic_wake() argument 5209 struct ice_pf *pf = pci_get_drvdata(pdev); ice_remove() local 5249 struct ice_pf *pf = pci_get_drvdata(pdev); ice_shutdown() local 5266 ice_prepare_for_shutdown(struct ice_pf * pf) ice_prepare_for_shutdown() argument 5297 ice_reinit_interrupt_scheme(struct ice_pf * pf) ice_reinit_interrupt_scheme() argument 5350 struct ice_pf *pf; ice_suspend() local 5418 struct ice_pf *pf; ice_resume() local 5483 struct ice_pf *pf = pci_get_drvdata(pdev); ice_pci_err_detected() local 5512 struct ice_pf *pf = pci_get_drvdata(pdev); ice_pci_err_slot_reset() local 5548 struct ice_pf *pf = pci_get_drvdata(pdev); ice_pci_err_resume() local 5575 struct ice_pf *pf = pci_get_drvdata(pdev); ice_pci_err_reset_prepare() local 5726 struct ice_pf *pf = vsi->back; ice_set_mac_address() local 6203 struct ice_pf *pf = vsi->back; ice_set_features() local 6469 struct ice_pf *pf = vsi->back; ice_up_complete() local 6584 struct ice_pf *pf = vsi->back; ice_update_vsi_ring_stats() local 6658 struct ice_pf *pf = vsi->back; ice_update_vsi_stats() local 6696 ice_update_pf_stats(struct ice_pf * pf) ice_update_pf_stats() argument 7070 struct ice_pf *pf = vsi->back; ice_vsi_open_ctrl() local 7126 struct ice_pf *pf = vsi->back; ice_vsi_open() local 7183 ice_vsi_release_all(struct ice_pf * pf) ice_vsi_release_all() argument 7211 ice_vsi_rebuild_by_type(struct ice_pf * pf,enum ice_vsi_type type) ice_vsi_rebuild_by_type() argument 7262 ice_update_pf_netdev_link(struct ice_pf * pf) ice_update_pf_netdev_link() argument 7294 ice_rebuild(struct ice_pf * pf,enum ice_reset_req reset_type) ice_rebuild() argument 7495 struct ice_pf *pf = vsi->back; ice_change_mtu() local 7558 struct ice_pf *pf = np->vsi->back; ice_eth_ioctl() local 7735 struct ice_pf *pf = vsi->back; ice_bridge_getlink() local 7806 struct ice_pf *pf = np->vsi->back; ice_bridge_setlink() local 7870 struct ice_pf *pf = vsi->back; ice_tx_timeout() local 8002 struct ice_pf *pf = vsi->back; ice_validate_mqprio_qopt() local 8133 ice_add_vsi_to_fdir(struct ice_pf * pf,struct ice_vsi * vsi) ice_add_vsi_to_fdir() argument 8197 ice_add_channel(struct ice_pf * pf,u16 sw_id,struct ice_channel * ch) ice_add_channel() argument 8315 ice_setup_hw_channel(struct ice_pf * pf,struct ice_vsi * vsi,struct ice_channel * ch,u16 sw_id,u8 type) ice_setup_hw_channel() argument 8353 ice_setup_channel(struct ice_pf * pf,struct ice_vsi * vsi,struct ice_channel * ch) ice_setup_channel() argument 8406 struct ice_pf *pf = vsi->back; ice_create_q_channel() local 8454 ice_rem_all_chnl_fltrs(struct ice_pf * pf) ice_rem_all_chnl_fltrs() argument 8508 struct ice_pf *pf = vsi->back; ice_remove_q_channels() local 8582 ice_rebuild_channels(struct ice_pf * pf) ice_rebuild_channels() argument 8698 struct ice_pf *pf = vsi->back; ice_create_q_channels() local 8756 struct ice_pf *pf = vsi->back; ice_setup_tc_mqprio_qdisc() local 8928 struct ice_pf *pf = np->vsi->back; ice_setup_tc() local 9102 struct ice_pf *pf = np->vsi->back; ice_open() local 9125 struct ice_pf *pf = vsi->back; ice_open_internal() local 9193 struct ice_pf *pf = vsi->back; ice_stop() local [all...] |
H A D | ice_sriov.c | 19 * @pf: pointer to the PF structure 24 static void ice_free_vf_entries(struct ice_pf *pf) in ice_free_vf_entries() argument 26 struct ice_vfs *vfs = &pf->vfs; in ice_free_vf_entries() 50 struct ice_pf *pf = vf->pf; in ice_free_vf_res() 68 last_vector_idx = vf->first_vector_idx + pf->vfs.num_msix_per - 1; in ice_free_vf_res() 76 wr32(&pf->hw, GLINT_DYN_CTL(i), GLINT_DYN_CTL_CLEARPBA_M); in ice_free_vf_res() 77 ice_flush(&pf->hw); in ice_free_vf_res() 90 struct ice_pf *pf in ice_dis_vf_mappings() 49 struct ice_pf *pf = vf->pf; ice_free_vf_res() local 89 struct ice_pf *pf = vf->pf; ice_dis_vf_mappings() local 136 ice_sriov_free_msix_res(struct ice_pf * pf) ice_sriov_free_msix_res() argument 150 ice_free_vfs(struct ice_pf * pf) ice_free_vfs() argument 225 struct ice_pf *pf = vf->pf; ice_vf_vsi_setup() local 259 ice_calc_vf_first_vector_idx(struct ice_pf * pf,struct ice_vf * vf) ice_calc_vf_first_vector_idx() argument 276 struct ice_pf *pf = vf->pf; ice_ena_vf_msix_mappings() local 391 struct ice_pf *pf; ice_calc_vf_reg_idx() local 418 ice_sriov_set_msix_res(struct ice_pf * pf,u16 num_msix_needed) ice_sriov_set_msix_res() argument 459 ice_set_per_vf_res(struct ice_pf * pf,u16 num_vfs) ice_set_per_vf_res() argument 538 struct ice_pf *pf = vf->pf; ice_init_vf_vsi_res() local 563 ice_start_vfs(struct ice_pf * pf) ice_start_vfs() argument 640 struct ice_pf *pf = vf->pf; ice_sriov_clear_mbx_register() local 655 struct ice_pf *pf = vf->pf; ice_sriov_trigger_reset_register() local 702 struct ice_pf *pf = vf->pf; ice_sriov_poll_reset_status() local 790 ice_create_vf_entries(struct ice_pf * pf,u16 num_vfs) ice_create_vf_entries() argument 832 ice_ena_vfs(struct ice_pf * pf,u16 num_vfs) ice_ena_vfs() argument 906 ice_pci_sriov_ena(struct ice_pf * pf,int num_vfs) ice_pci_sriov_ena() argument 937 ice_check_sriov_allowed(struct ice_pf * pf) ice_check_sriov_allowed() argument 970 struct ice_pf *pf = pci_get_drvdata(pdev); ice_sriov_configure() local 1002 ice_process_vflr_event(struct ice_pf * pf) ice_process_vflr_event() argument 1040 ice_get_vf_from_pfq(struct ice_pf * pf,u16 pfq) ice_get_vf_from_pfq() argument 1076 ice_globalq_to_pfq(struct ice_pf * pf,u32 globalq) ice_globalq_to_pfq() argument 1091 ice_vf_lan_overflow_event(struct ice_pf * pf,struct ice_rq_event_info * event) ice_vf_lan_overflow_event() argument 1122 struct ice_pf *pf = np->vsi->back; ice_set_vf_spoofchk() local 1182 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_get_vf_cfg() local 1229 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_mac() local 1290 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_trust() local 1337 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_link_state() local 1377 ice_calc_all_vfs_min_tx_rate(struct ice_pf * pf) ice_calc_all_vfs_min_tx_rate() argument 1441 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_bw() local 1510 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_get_vf_stats() local 1592 struct ice_pf *pf = ice_netdev_to_pf(netdev); ice_set_vf_port_vlan() local 1653 struct ice_pf *pf = vf->pf; ice_print_vf_rx_mdd_event() local 1671 ice_print_vfs_mdd_events(struct ice_pf * pf) ice_print_vfs_mdd_events() argument [all...] |
H A D | ice_dcb_nl.c | 16 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_devreset() local 18 while (ice_is_reset_in_progress(pf->state)) in ice_dcbnl_devreset() 35 struct ice_pf *pf; in ice_dcbnl_getets() local 37 pf = ice_netdev_to_pf(netdev); in ice_dcbnl_getets() 38 dcbxcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_dcbnl_getets() 64 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_setets() local 69 if ((pf->dcbx_cap & DCB_CAP_DCBX_LLD_MANAGED) || in ice_dcbnl_setets() 70 !(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in ice_dcbnl_setets() 73 if (pf->lag && pf->lag->bonded) { in ice_dcbnl_setets() 78 new_cfg = &pf->hw.port_info->qos_cfg.desired_dcbx_cfg; in ice_dcbnl_setets() [all …]
|
H A D | ice_ptp.c | 192 struct ice_pf *pf = ptp_info_to_pf(info); in ice_ptp_set_sma_e810t() local 193 struct ice_hw *hw = &pf->hw; in ice_ptp_set_sma_e810t() 260 * @pf: The PF pointer to search in 263 static void ice_set_tx_tstamp(struct ice_pf *pf, bool on) in ice_set_tx_tstamp() argument 269 vsi = ice_get_main_vsi(pf); in ice_set_tx_tstamp() 281 val = rd32(&pf->hw, PFINT_OICR_ENA); in ice_set_tx_tstamp() 286 wr32(&pf->hw, PFINT_OICR_ENA, val); in ice_set_tx_tstamp() 288 pf->ptp.tstamp_config.tx_type = on ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in ice_set_tx_tstamp() 293 * @pf: The PF pointer to search in 296 static void ice_set_rx_tstamp(struct ice_pf *pf, bool on) in ice_set_rx_tstamp() argument [all …]
|
H A D | ice_gnss.c | 9 * @pf: board private structure 20 ice_gnss_do_write(struct ice_pf *pf, const unsigned char *buf, unsigned int size) in ice_gnss_do_write() argument 23 struct ice_hw *hw = &pf->hw; in ice_gnss_do_write() 72 dev_err(ice_pf_to_dev(pf), "GNSS failed to write, offset=%u, size=%u, err=%d\n", in ice_gnss_do_write() 91 struct ice_pf *pf; in ice_gnss_read() local 98 pf = gnss->back; in ice_gnss_read() 99 if (!pf || !test_bit(ICE_FLAG_GNSS, pf->flags)) in ice_gnss_read() 102 hw = &pf->hw; in ice_gnss_read() 147 count = gnss_insert_raw(pf->gnss_dev, buf, i); in ice_gnss_read() 149 dev_warn(ice_pf_to_dev(pf), in ice_gnss_read() [all …]
|
H A D | ice_devlink.c | 34 static void ice_info_get_dsn(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_get_dsn() argument 39 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in ice_info_get_dsn() 44 static void ice_info_pba(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_pba() argument 46 struct ice_hw *hw = &pf->hw; in ice_info_pba() 52 dev_dbg(ice_pf_to_dev(pf), "Failed to read Product Board Assembly string, status %d\n", in ice_info_pba() 56 static void ice_info_fw_mgmt(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_mgmt() argument 58 struct ice_hw *hw = &pf->hw; in ice_info_fw_mgmt() 64 static void ice_info_fw_api(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_api() argument 66 struct ice_hw *hw = &pf->hw; in ice_info_fw_api() 72 static void ice_info_fw_build(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_build() argument [all …]
|
H A D | ice_dcb_lib.c | 26 * @pf: pointer to PF structure 31 bool ice_is_pfc_causing_hung_q(struct ice_pf *pf, unsigned int txqueue) in ice_is_pfc_causing_hung_q() argument 38 vsi = ice_get_main_vsi(pf); in ice_is_pfc_causing_hung_q() 56 up2tc = rd32(&pf->hw, PRTDCB_TUP2TC); in ice_is_pfc_causing_hung_q() 70 ref_prio_xoff[i] = pf->stats.priority_xoff_rx[i]; in ice_is_pfc_causing_hung_q() 72 ice_update_dcb_stats(pf); in ice_is_pfc_causing_hung_q() 76 if (pf->stats.priority_xoff_rx[i] > ref_prio_xoff[i]) in ice_is_pfc_causing_hung_q() 255 * PF queues) should be the first drop TC of the main VSI in ice_vsi_cfg_dcb_rings() 273 * @pf: pointer to the PF instance 277 * Before a new DCB configuration can be applied, VSIs of type PF, SWITCHDEV [all …]
|
/openbmc/qemu/ui/ |
H A D | qemu-pixman.c | 15 PixelFormat pf; in qemu_pixelformat_from_pixman() local 18 bpp = pf.bits_per_pixel = PIXMAN_FORMAT_BPP(format); in qemu_pixelformat_from_pixman() 19 pf.bytes_per_pixel = PIXMAN_FORMAT_BPP(format) / 8; in qemu_pixelformat_from_pixman() 20 pf.depth = PIXMAN_FORMAT_DEPTH(format); in qemu_pixelformat_from_pixman() 22 pf.abits = PIXMAN_FORMAT_A(format); in qemu_pixelformat_from_pixman() 23 pf.rbits = PIXMAN_FORMAT_R(format); in qemu_pixelformat_from_pixman() 24 pf.gbits = PIXMAN_FORMAT_G(format); in qemu_pixelformat_from_pixman() 25 pf.bbits = PIXMAN_FORMAT_B(format); in qemu_pixelformat_from_pixman() 29 pf.ashift = pf.bbits + pf.gbits + pf.rbits; in qemu_pixelformat_from_pixman() 30 pf.rshift = pf.bbits + pf.gbits; in qemu_pixelformat_from_pixman() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb_nl.c | 38 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getets() local 41 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getets() 44 dcbxcfg = &pf->hw.local_dcbx_config; in i40e_dcbnl_ieee_getets() 76 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getpfc() local 78 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_ieee_getpfc() 81 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getpfc() 92 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc() 93 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc() 109 struct i40e_pf *pf = i40e_netdev_to_pf(netdev); in i40e_dcbnl_ieee_setets() local 113 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE) || in i40e_dcbnl_ieee_setets() [all …]
|
H A D | i40e_ptp.c | 141 static int i40e_ptp_set_pins(struct i40e_pf *pf, 152 struct i40e_pf *pf = container_of(work, struct i40e_pf, in i40e_ptp_extts0_work() local 154 struct i40e_hw *hw = &pf->hw; in i40e_ptp_extts0_work() 172 ptp_clock_event(pf->ptp_clock, &event); in i40e_ptp_extts0_work() 189 * @pf: board private structure 192 * Return CAN_SET_PINS if pins can be set on a specific PF or 196 static enum i40e_can_set_pins i40e_can_set_pins(struct i40e_pf *pf) in i40e_can_set_pins() argument 198 if (!i40e_is_ptp_pin_dev(&pf->hw)) { in i40e_can_set_pins() 199 dev_warn(&pf->pdev->dev, in i40e_can_set_pins() 204 if (!pf->ptp_pins) { in i40e_can_set_pins() [all …]
|
H A D | i40e_client.c | 84 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_vf_msg() local 85 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_vf_msg() 90 dev_dbg(&pf->pdev->dev, in i40e_notify_client_of_vf_msg() 95 dev_dbg(&pf->pdev->dev, "Client is not open, abort virtchnl_receive\n"); in i40e_notify_client_of_vf_msg() 110 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_l2_param_changes() local 111 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_l2_param_changes() 146 struct i40e_pf *pf = ldev->pf; in i40e_client_release_qvlist() local 154 wr32(&pf->hw, reg_idx, I40E_PFINT_LNKLSTN_FIRSTQ_INDX_MASK); in i40e_client_release_qvlist() 169 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_netdev_close() local 170 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_netdev_close() [all …]
|
H A D | i40e_debugfs.c | 22 * @pf: the PF structure to search for the vsi 25 static struct i40e_vsi *i40e_dbg_find_vsi(struct i40e_pf *pf, int seid) in i40e_dbg_find_vsi() argument 30 dev_info(&pf->pdev->dev, "%d: bad seid\n", seid); in i40e_dbg_find_vsi() 32 for (i = 0; i < pf->num_alloc_vsi; i++) in i40e_dbg_find_vsi() 33 if (pf->vsi[i] && (pf->vsi[i]->seid == seid)) in i40e_dbg_find_vsi() 34 return pf->vsi[i]; in i40e_dbg_find_vsi() 41 * @pf: the PF structure to search for the veb 44 static struct i40e_veb *i40e_dbg_find_veb(struct i40e_pf *pf, int seid) in i40e_dbg_find_veb() argument 49 if (pf->veb[i] && pf->veb[i]->seid == seid) in i40e_dbg_find_veb() 50 return pf->veb[i]; in i40e_dbg_find_veb() [all …]
|
H A D | i40e_main.c | 35 static void i40e_handle_reset_warning(struct i40e_pf *pf, bool lock_acquired); 38 static int i40e_setup_pf_switch(struct i40e_pf *pf, bool reinit, bool lock_acquired); 39 static int i40e_setup_misc_vector(struct i40e_pf *pf); 40 static void i40e_determine_queue_usage(struct i40e_pf *pf); 41 static int i40e_setup_pf_filter_control(struct i40e_pf *pf); 42 static void i40e_prep_for_reset(struct i40e_pf *pf); 43 static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit, 45 static int i40e_reset(struct i40e_pf *pf); 46 static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired); 47 static int i40e_setup_misc_vector_for_recovery_mode(struct i40e_pf *pf); [all …]
|
H A D | i40e_virtchnl_pf.c | 12 * @pf: pointer to the PF structure 18 * send a message to all VFs on a given PF 20 static void i40e_vc_vf_broadcast(struct i40e_pf *pf, in i40e_vc_vf_broadcast() argument 25 struct i40e_hw *hw = &pf->hw; in i40e_vc_vf_broadcast() 26 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast() 29 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast() 80 * @pfe: pointer to PF event structure 113 struct i40e_pf *pf = vf->pf; in i40e_vc_notify_vf_link_state() local 114 struct i40e_hw *hw = &pf->hw; in i40e_vc_notify_vf_link_state() 115 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_vc_notify_vf_link_state() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hclge_mbx.h | 11 HCLGE_MBX_RESET = 0x01, /* (VF -> PF) assert reset */ 12 HCLGE_MBX_ASSERTING_RESET, /* (PF -> VF) PF is asserting reset */ 13 HCLGE_MBX_SET_UNICAST, /* (VF -> PF) set UC addr */ 14 HCLGE_MBX_SET_MULTICAST, /* (VF -> PF) set MC addr */ 15 HCLGE_MBX_SET_VLAN, /* (VF -> PF) set VLAN */ 16 HCLGE_MBX_MAP_RING_TO_VECTOR, /* (VF -> PF) map ring-to-vector */ 17 HCLGE_MBX_UNMAP_RING_TO_VECTOR, /* (VF -> PF) unamp ring-to-vector */ 18 HCLGE_MBX_SET_PROMISC_MODE, /* (VF -> PF) set promiscuous mode */ 19 HCLGE_MBX_SET_MACVLAN, /* (VF -> PF) set unicast filter */ 20 HCLGE_MBX_API_NEGOTIATE, /* (VF -> PF) negotiate API version */ [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_pf.c | 15 #define ENETC_DRV_NAME_STR "ENETC PF driver" 58 static void enetc_enable_si_vlan_promisc(struct enetc_pf *pf, int si_idx) in enetc_enable_si_vlan_promisc() argument 60 pf->vlan_promisc_simap |= BIT(si_idx); in enetc_enable_si_vlan_promisc() 61 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_enable_si_vlan_promisc() 64 static void enetc_disable_si_vlan_promisc(struct enetc_pf *pf, int si_idx) in enetc_disable_si_vlan_promisc() argument 66 pf->vlan_promisc_simap &= ~BIT(si_idx); in enetc_disable_si_vlan_promisc() 67 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_disable_si_vlan_promisc() 153 static void enetc_sync_mac_filters(struct enetc_pf *pf) in enetc_sync_mac_filters() argument 155 struct enetc_mac_filter *f = pf->mac_filter; in enetc_sync_mac_filters() 156 struct enetc_si *si = pf->si; in enetc_sync_mac_filters() [all …]
|
/openbmc/linux/net/lapb/ |
H A D | lapb_in.c | 44 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine() 47 lapb->dev, frame->pf); in lapb_state0_machine() 48 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine() 52 lapb->dev, frame->pf); in lapb_state0_machine() 54 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine() 69 lapb_dbg(1, "(%p) S0 RX SABME(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine() 72 lapb->dev, frame->pf); in lapb_state0_machine() 74 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine() 87 lapb->dev, frame->pf); in lapb_state0_machine() 88 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine() [all …]
|