Home
last modified time | relevance | path

Searched refs:vsi (Results 1 – 25 of 135) sorted by relevance

123456

/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_lib.c179 vsi->num_txq = vsi->req_txq; in ice_vsi_set_num_qs()
194 vsi->num_rxq = vsi->req_rxq; in ice_vsi_set_num_qs()
443 if (!vsi || !vsi->back) in ice_vsi_free()
449 if (!pf->vsi[vsi->idx] || pf->vsi[vsi->idx] != vsi) { in ice_vsi_free()
457 pf->vsi[vsi->idx] = NULL; in ice_vsi_free()
1427 ring->vsi = vsi; in ice_vsi_alloc_rings()
1450 ring->vsi = vsi; in ice_vsi_alloc_rings()
2360 vsi->idx, vsi->tc_cfg.ena_tc, vsi->agg_node->agg_id, in ice_set_agg_vsi()
3421 vsi->all_numtc, vsi->all_enatc, vsi->tc_cfg.numtc); in ice_vsi_setup_q_map_mqprio()
3704 vsi->idx, vsi->type); in ice_set_min_bw_limit()
[all …]
H A Dice_vsi_vlan_lib.c12 ice_vsi_type_str(vsi->type), vsi->idx, tpid); in print_invalid_tpid()
49 vsi->num_vlan++; in ice_vsi_add_vlan()
77 vsi->num_vlan--; in ice_vsi_del_vlan()
246 ice_save_vlan_info(&vsi->info, &vsi->vlan_info); in __ice_vsi_set_inner_port_vlan()
299 ice_restore_vlan_info(&vsi->info, &vsi->vlan_info); in ice_vsi_clear_inner_port_vlan()
328 if (!vsi) in ice_cfg_vlan_pruning()
335 if (vsi->netdev && vsi->netdev->flags & IFF_PROMISC && ena) in ice_cfg_vlan_pruning()
355 ena ? "En" : "Dis", vsi->idx, vsi->vsi_num, status, in ice_cfg_vlan_pruning()
399 err = ice_update_vsi(&vsi->back->hw, vsi->idx, ctx, NULL); in ice_cfg_vlan_antispoof()
703 ice_save_vlan_info(&vsi->info, &vsi->vlan_info); in __ice_vsi_set_outer_port_vlan()
[all …]
H A Dice_lib.h43 params.pi = vsi->port_info; in ice_vsi_to_params()
44 params.ch = vsi->ch; in ice_vsi_to_params()
45 params.vf = vsi->vf; in ice_vsi_to_params()
46 params.type = vsi->type; in ice_vsi_to_params()
61 int ice_vsi_cfg_rxqs(struct ice_vsi *vsi);
65 void ice_vsi_cfg_msix(struct ice_vsi *vsi);
83 void ice_vsi_delete(struct ice_vsi *vsi);
94 int ice_vsi_release(struct ice_vsi *vsi);
96 void ice_vsi_close(struct ice_vsi *vsi);
100 void ice_vsi_decfg(struct ice_vsi *vsi);
[all …]
H A Dice_fltr.c68 vsi->vsi_num, result); in ice_fltr_set_vlan_vsi_promisc()
92 vsi->vsi_num, result); in ice_fltr_clear_vlan_vsi_promisc()
210 ice_remove_vsi_fltr(&vsi->back->hw, vsi->idx); in ice_fltr_remove_all()
212 if (vsi->netdev) { in ice_fltr_remove_all()
213 __dev_uc_unsync(vsi->netdev, NULL); in ice_fltr_remove_all()
214 __dev_mc_unsync(vsi->netdev, NULL); in ice_fltr_remove_all()
235 info.vsi_handle = vsi->idx; in ice_fltr_add_mac_to_list()
259 info.vsi_handle = vsi->idx; in ice_fltr_add_vlan_to_list()
286 info.vsi_handle = vsi->idx; in ice_fltr_add_eth_to_list()
318 result = mac_action(vsi, &tmp_list); in ice_fltr_prepare_mac()
[all …]
H A Dice_vf_vsi_vlan_ops.c27 struct ice_pf *pf = vsi->back; in ice_port_vlan_on()
30 vlan_ops = &vsi->inner_vlan_ops; in ice_port_vlan_on()
100 if (WARN_ON_ONCE(!vsi->vf)) in ice_vf_vsi_enable_port_vlan()
103 ice_port_vlan_on(vsi); in ice_vf_vsi_enable_port_vlan()
115 if (WARN_ON_ONCE(!vsi->vf)) in ice_vf_vsi_disable_port_vlan()
118 ice_port_vlan_off(vsi); in ice_vf_vsi_disable_port_vlan()
134 struct ice_vf *vf = vsi->vf; in ice_vf_vsi_init_vlan_ops()
140 ice_port_vlan_on(vsi); in ice_vf_vsi_init_vlan_ops()
142 ice_port_vlan_off(vsi); in ice_vf_vsi_init_vlan_ops()
145 &vsi->outer_vlan_ops : &vsi->inner_vlan_ops; in ice_vf_vsi_init_vlan_ops()
[all …]
H A Dice_arfs.c28 struct ice_vsi *vsi; in ice_is_arfs_using_perfect_flow() local
31 if (!vsi) in ice_is_arfs_using_perfect_flow()
401 struct ice_vsi *vsi = np->vsi; in ice_rx_flow_steer() local
413 pf = vsi->back; in ice_rx_flow_steer()
485 if (!vsi || vsi->type != ICE_VSI_PF) in ice_init_arfs_cntrs()
488 vsi->arfs_fltr_cntrs = kzalloc(sizeof(*vsi->arfs_fltr_cntrs), in ice_init_arfs_cntrs()
513 if (!vsi || vsi->type != ICE_VSI_PF) in ice_init_arfs()
546 if (!vsi || vsi->type != ICE_VSI_PF || !vsi->back || in ice_clear_arfs()
580 if (!vsi || vsi->type != ICE_VSI_PF) in ice_free_cpu_rx_rmap()
601 if (!vsi || vsi->type != ICE_VSI_PF) in ice_set_cpu_rx_rmap()
[all …]
H A Dice_main.c122 vsi = pf->vsi[v]; in ice_check_for_hang_subtask()
206 struct ice_vsi *vsi = np->vsi; in ice_add_mac_to_sync_list() local
228 struct ice_vsi *vsi = np->vsi; in ice_add_mac_to_unsync_list() local
1889 if (!vsi || !vsi->port_info || !vsi->back) in ice_force_phys_link_state()
2599 xdp_ring->vsi = vsi; in ice_xdp_alloc_setup_rings()
3757 if (!vsi || !vsi->netdev) in ice_tc_indir_block_register()
4389 if (!vsi || !vsi->netdev) in ice_register_netdev()
4405 if (!vsi || !vsi->netdev) in ice_unregister_netdev()
4432 np->vsi = vsi; in ice_cfg_netdev()
7449 if (vsi && vsi->netdev) in ice_rebuild()
[all …]
H A Dice_vf_lib.c223 if (vsi) in ice_vf_clear_counters()
289 if (WARN_ON(!vsi)) in ice_vf_rebuild_vsi()
300 vsi->vsi_num = ice_get_hw_vsi_num(&pf->hw, vsi->idx); in ice_vf_rebuild_vsi()
461 vsi->agg_node->agg_id, vsi->agg_node->num_vsis); in ice_vf_rebuild_aggregator_node_cfg()
466 vsi->idx, vsi->tc_cfg.ena_tc); in ice_vf_rebuild_aggregator_node_cfg()
469 vsi->idx, vsi->agg_node->agg_id); in ice_vf_rebuild_aggregator_node_cfg()
868 if (!vsi) { in ice_reset_vf()
898 ice_dis_vsi_txq(vsi->port_info, vsi->idx, 0, 0, NULL, NULL, in ice_reset_vf()
1091 err = ice_update_vsi(&vsi->back->hw, vsi->idx, ctx, NULL); in ice_cfg_mac_antispoof()
1239 if (!vsi) { in ice_vf_ctrl_vsi_setup()
[all …]
H A Dice_base.c113 q_vector->vsi = vsi; in ice_vsi_alloc_q_vector()
126 } else if (vsi->type == ICE_VSI_CTRL && vsi->vf) { in ice_vsi_alloc_q_vector()
157 if (vsi->netdev) in ice_vsi_alloc_q_vector()
198 if (vsi->netdev) in ice_free_q_vector()
206 if (vsi->type == ICE_VSI_CTRL && vsi->vf && in ice_free_q_vector()
281 struct ice_vsi *vsi = ring->vsi; in ice_eswitch_calc_txq_handle() local
323 struct ice_vsi *vsi = ring->vsi; in ice_setup_tx_ctx() local
411 struct ice_vsi *vsi = ring->vsi; in ice_setup_rx_ctx() local
751 vsi->num_q_vectors, vsi->vsi_num, err); in ice_vsi_alloc_q_vectors()
886 status = ice_ena_vsi_txq(vsi->port_info, vsi->idx, tc, in ice_vsi_cfg_txq()
[all …]
H A Dice_vsi_vlan_lib.h21 int ice_vsi_ena_inner_stripping(struct ice_vsi *vsi, u16 tpid);
22 int ice_vsi_dis_inner_stripping(struct ice_vsi *vsi);
24 int ice_vsi_dis_inner_insertion(struct ice_vsi *vsi);
26 int ice_vsi_clear_inner_port_vlan(struct ice_vsi *vsi);
28 int ice_vsi_ena_rx_vlan_filtering(struct ice_vsi *vsi);
29 int ice_vsi_dis_rx_vlan_filtering(struct ice_vsi *vsi);
30 int ice_vsi_ena_tx_vlan_filtering(struct ice_vsi *vsi);
31 int ice_vsi_dis_tx_vlan_filtering(struct ice_vsi *vsi);
34 int ice_vsi_dis_outer_stripping(struct ice_vsi *vsi);
36 int ice_vsi_dis_outer_insertion(struct ice_vsi *vsi);
[all …]
H A Dice_vsi_vlan_ops.c56 vsi->outer_vlan_ops = ops_unsupported; in ice_vsi_init_unsupported_vlan_ops()
57 vsi->inner_vlan_ops = ops_unsupported; in ice_vsi_init_unsupported_vlan_ops()
68 void ice_vsi_init_vlan_ops(struct ice_vsi *vsi) in ice_vsi_init_vlan_ops() argument
71 ice_vsi_init_unsupported_vlan_ops(vsi); in ice_vsi_init_vlan_ops()
73 switch (vsi->type) { in ice_vsi_init_vlan_ops()
76 ice_pf_vsi_init_vlan_ops(vsi); in ice_vsi_init_vlan_ops()
79 ice_vf_vsi_init_vlan_ops(vsi); in ice_vsi_init_vlan_ops()
83 ice_vsi_type_str(vsi->type)); in ice_vsi_init_vlan_ops()
99 if (ice_is_dvm_ena(&vsi->back->hw)) in ice_get_compat_vsi_vlan_ops()
100 return &vsi->outer_vlan_ops; in ice_get_compat_vsi_vlan_ops()
[all …]
H A Dice_vsi_vlan_ops.h13 int (*add_vlan)(struct ice_vsi *vsi, struct ice_vlan *vlan);
15 int (*ena_stripping)(struct ice_vsi *vsi, const u16 tpid);
16 int (*dis_stripping)(struct ice_vsi *vsi);
17 int (*ena_insertion)(struct ice_vsi *vsi, const u16 tpid);
18 int (*dis_insertion)(struct ice_vsi *vsi);
19 int (*ena_rx_filtering)(struct ice_vsi *vsi);
20 int (*dis_rx_filtering)(struct ice_vsi *vsi);
21 int (*ena_tx_filtering)(struct ice_vsi *vsi);
22 int (*dis_tx_filtering)(struct ice_vsi *vsi);
24 int (*clear_port_vlan)(struct ice_vsi *vsi);
[all …]
H A Dice_virtchnl.c447 if (!vsi) { in ice_vc_get_vf_res_msg()
793 if (!vsi) { in ice_vc_handle_rss_cfg()
1612 if (!vsi) in ice_vc_cfg_qs_msg()
1673 vsi->rx_rings[i]->rx_buf_len = vsi->rx_buf_len; in ice_vc_cfg_qs_msg()
2333 if (vsi->inner_vlan_ops.ena_rx_filtering(vsi)) { in ice_vc_process_vlan_msg()
2379 vsi->inner_vlan_ops.dis_tx_filtering(vsi); in ice_vc_process_vlan_msg()
2380 vsi->inner_vlan_ops.dis_rx_filtering(vsi); in ice_vc_process_vlan_msg()
2484 if (vsi->inner_vlan_ops.dis_stripping(vsi)) in ice_vc_dis_vlan_stripping()
2663 if (!vsi) in ice_vf_init_vlan_stripping()
2675 return vsi->inner_vlan_ops.dis_stripping(vsi); in ice_vf_init_vlan_stripping()
[all …]
H A Dice_xsk.c30 pf = vsi->back; in ice_qp_reset_stats()
42 if (ice_is_xdp_ena_vsi(vsi)) in ice_qp_reset_stats()
55 if (ice_is_xdp_ena_vsi(vsi)) in ice_qp_clean_rings()
70 if (!vsi->netdev || !q_vector) in ice_qvec_toggle_napi()
89 struct ice_pf *pf = vsi->back; in ice_qvec_dis_irq()
167 if (q_idx >= vsi->num_rxq || q_idx >= vsi->num_txq) in ice_qp_dis()
225 if (q_idx >= vsi->num_rxq || q_idx >= vsi->num_txq) in ice_qp_ena()
368 ice_for_each_rxq(vsi, i) { in ice_realloc_zc_buf()
393 if (qid >= vsi->num_rxq || qid >= vsi->num_txq) { in ice_xsk_pool_setup()
1113 struct ice_vsi *vsi = np->vsi; in ice_xsk_wakeup() local
[all …]
H A Dice.h454 struct ice_vsi *vsi; member
649 struct ice_vsi *vsi; member
691 if (vsi) in ice_irq_dynamic_ena()
705 return np->vsi->back; in ice_netdev_to_pf()
746 struct ice_vsi *vsi = ring->vsi; in ice_xsk_pool() local
785 if (pf->vsi) in ice_get_main_vsi()
786 return pf->vsi[0]; in ice_get_main_vsi()
801 return np->vsi; in ice_get_netdev_priv_vsi()
827 if (pf->vsi[i] && pf->vsi[i]->vsi_num == vsi_num) in ice_find_vsi()
862 struct ice_vsi *vsi; in ice_is_adq_active() local
[all …]
H A Dice_ethtool.c444 struct ice_vsi *vsi = np->vsi; in ice_get_eeprom() local
1146 struct ice_vsi *vsi = np->vsi; in ice_set_fec_cfg() local
1190 struct ice_vsi *vsi = np->vsi; in ice_set_fecparam() local
1227 struct ice_vsi *vsi = np->vsi; in ice_get_fecparam() local
1287 struct ice_vsi *vsi = np->vsi; in ice_nway_reset() local
1312 struct ice_vsi *vsi = np->vsi; in ice_get_priv_flags() local
1338 struct ice_vsi *vsi = np->vsi; in ice_set_priv_flags() local
1693 struct ice_vsi *vsi = np->vsi; in ice_phy_type_to_ethtool() local
1791 struct ice_vsi *vsi = np->vsi; in ice_get_settings_link_up() local
1898 struct ice_vsi *vsi = np->vsi; in ice_get_link_ksettings() local
[all …]
H A Dice_fltr.h11 ice_fltr_set_vlan_vsi_promisc(struct ice_hw *hw, struct ice_vsi *vsi,
14 ice_fltr_clear_vlan_vsi_promisc(struct ice_hw *hw, struct ice_vsi *vsi,
23 ice_fltr_add_mac_to_list(struct ice_vsi *vsi, struct list_head *list,
26 ice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac,
29 ice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac,
33 ice_fltr_remove_mac(struct ice_vsi *vsi, const u8 *mac,
37 int ice_fltr_add_vlan(struct ice_vsi *vsi, struct ice_vlan *vlan);
38 int ice_fltr_remove_vlan(struct ice_vsi *vsi, struct ice_vlan *vlan);
41 ice_fltr_add_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
44 ice_fltr_remove_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
[all …]
H A Dice_dcb_lib.c35 struct ice_vsi *vsi; in ice_is_pfc_causing_hung_q() local
39 if (!vsi) in ice_is_pfc_causing_hung_q()
184 switch (vsi->type) { in ice_vsi_set_dcb_tc_cfg()
190 vsi->tc_cfg.ena_tc = BIT(ice_get_first_droptc(vsi)); in ice_vsi_set_dcb_tc_cfg()
251 if (vsi->all_enatc) { in ice_vsi_cfg_dcb_rings()
287 struct ice_vsi *vsi = pf->vsi[i]; in ice_dcb_ena_dis_vsi() local
289 if (!vsi) in ice_dcb_ena_dis_vsi()
292 switch (vsi->type) { in ice_dcb_ena_dis_vsi()
749 struct ice_vsi *vsi = pf->vsi[v]; in ice_pf_dcb_recfg() local
751 if (!vsi) in ice_pf_dcb_recfg()
[all …]
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dws.c42 node->vsi_index = vsi->vsi_idx; in irdma_alloc_node()
170 if (vsi->qos[i].traffic_class == vsi->qos[user_pri].traffic_class && in irdma_tc_in_use()
195 vsi->qos[i].valid = false; in irdma_remove_leaf()
213 vsi->unregister_qset(vsi, tc_node); in irdma_remove_leaf()
246 if (vsi->tc_change_pending) { in irdma_ws_add()
251 if (vsi->qos[user_pri].valid) in irdma_ws_add()
281 vsi->vsi_idx); in irdma_ws_add()
326 ret = vsi->register_qset(vsi, tc_node); in irdma_ws_add()
333 vsi->unregister_qset(vsi, tc_node); in irdma_ws_add()
349 vsi->qos[i].valid = true; in irdma_ws_add()
[all …]
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_vp9_if.c209 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_is_sf_ref_fb() local
265 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_ref_cnt_fb() local
292 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_free_all_sf_ref_fb() local
315 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_get_sf_ref_fb() local
362 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_alloc_work_buf() local
387 vsi->pic_h, vsi->buf_w, vsi->buf_h); in vp9_alloc_work_buf()
456 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_swap_frm_bufs() local
529 if (vsi->sf_frm_cnt > 0 && vsi->sf_frm_idx != vsi->sf_frm_cnt - 1) in vp9_swap_frm_bufs()
576 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_decode_end_proc() local
592 vsi->pic_w, vsi->pic_h); in vp9_decode_end_proc()
[all …]
H A Dvdec_vp9_req_lat_if.c513 vsi = instance->vpu.vsi; in vdec_vp9_slice_init_default_frame_ctx()
685 memcpy(remote_vsi, vsi, sizeof(*vsi)); in vdec_vp9_slice_vsi_to_remote()
929 memset(&vsi->state, 0, sizeof(vsi->state)); in vdec_vp9_slice_setup_state()
955 vsi = &pfc->vsi; in vdec_vp9_slice_setup_pfc()
1155 struct vdec_vp9_slice_vsi *vsi = &pfc->vsi; in vdec_vp9_slice_setup_lat() local
1593 vsi = &pfc->vsi; in vdec_vp9_slice_update_single()
1619 vsi = &pfc->vsi; in vdec_vp9_slice_update_lat()
1839 vsi = &pfc->vsi; in vdec_vp9_slice_update_core()
1876 vsi = instance->vpu.vsi; in vdec_vp9_slice_init()
2001 vsi = &pfc->vsi; in vdec_vp9_slice_single_decode()
[all …]
H A Dvdec_vp8_req_if.c105 struct vdec_vp8_slice_vsi *vsi; member
197 inst->vsi->dec.seg_id_buf_dma = 0; in vdec_vp8_slice_free_working_buf()
202 inst->vsi->dec.wrap_y_dma = 0; in vdec_vp8_slice_free_working_buf()
207 inst->vsi->dec.wrap_c_dma = 0; in vdec_vp8_slice_free_working_buf()
212 inst->vsi->dec.vld_wrapper_dma = 0; in vdec_vp8_slice_free_working_buf()
297 inst->vsi = inst->vpu.vsi; in vdec_vp8_slice_init()
352 inst->vsi->dec.bs_sz = bs->size; in vdec_vp8_slice_decode()
391 inst->vsi->dec.crc[0], inst->vsi->dec.crc[1], in vdec_vp8_slice_decode()
392 inst->vsi->dec.crc[2], inst->vsi->dec.crc[3], in vdec_vp8_slice_decode()
393 inst->vsi->dec.crc[4], inst->vsi->dec.crc[5], in vdec_vp8_slice_decode()
[all …]
H A Dvdec_av1_req_lat_if.c776 vsi = instance->vpu.vsi; in vdec_av1_slice_init_cdf_table()
807 vsi = instance->vpu.vsi; in vdec_av1_slice_init_iq_table()
1060 memcpy(remote_vsi, vsi, sizeof(*vsi)); in vdec_av1_slice_vsi_to_remote()
1431 memset(&vsi->state, 0, sizeof(vsi->state)); in vdec_av1_slice_setup_state()
1494 struct vdec_av1_slice_vsi *vsi = &pfc->vsi; in vdec_av1_slice_setup_ref() local
1560 struct vdec_av1_slice_vsi *vsi = &pfc->vsi; in vdec_av1_slice_setup_pfc() local
1723 struct vdec_av1_slice_vsi *vsi = &pfc->vsi; in vdec_av1_slice_setup_lat() local
1755 vsi = &pfc->vsi; in vdec_av1_slice_update_lat()
1762 if (vsi->trans.dma_addr_end - vsi->trans.dma_addr == vsi->ube.size) in vdec_av1_slice_update_lat()
1901 vsi = instance->vpu.vsi; in vdec_av1_slice_init()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c11633 vsi->idx, vsi->idx, vsi->type); in i40e_vsi_clear()
11637 if (pf->vsi[vsi->idx] != vsi) { in i40e_vsi_clear()
11705 ring->vsi = vsi; in i40e_alloc_rings()
11722 ring->vsi = vsi; in i40e_alloc_rings()
11738 ring->vsi = vsi; in i40e_alloc_rings()
12021 q_vector->vsi = vsi; in i40e_vsi_alloc_q_vector()
13783 np->vsi = vsi; in i40e_config_netdev()
13939 if (vsi == vsi->back->vsi[vsi->back->lan_vsi]) in i40e_vsi_delete()
14501 vsi = pf->vsi[i]; in i40e_vsi_setup()
14550 vsi = pf->vsi[v_idx]; in i40e_vsi_setup()
[all …]
H A Di40e_debugfs.c33 if (pf->vsi[i] && (pf->vsi[i]->seid == seid)) in i40e_dbg_find_vsi()
145 vsi->flags, vsi->netdev_registered, vsi->current_netdev_flags); in i40e_dbg_dump_vsi_seid()
150 if (vsi == pf->vsi[pf->lan_vsi]) in i40e_dbg_dump_vsi_seid()
246 vsi->tx_restart, vsi->tx_busy, in i40e_dbg_dump_vsi_seid()
377 vsi->max_frame, vsi->rx_buf_len, 0); in i40e_dbg_dump_vsi_seid()
383 vsi->seid, vsi->id, vsi->uplink_seid); in i40e_dbg_dump_vsi_seid()
386 vsi->base_queue, vsi->num_queue_pairs, vsi->num_tx_desc, in i40e_dbg_dump_vsi_seid()
481 vsi->bw_limit, vsi->bw_max_quanta); in i40e_dbg_dump_vsi_seid()
744 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_dbg_dump_vf()
832 vsi->seid, vsi->uplink_seid); in i40e_dbg_command_write()
[all …]

123456