/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 18 mlx5_esw_devlink_port_supported(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_devlink_port_supported() argument 20 return vport_num == MLX5_VPORT_UPLINK || in mlx5_esw_devlink_port_supported() 21 (mlx5_core_is_ecpf(esw->dev) && vport_num == MLX5_VPORT_PF) || in mlx5_esw_devlink_port_supported() 22 mlx5_eswitch_is_vf_vport(esw, vport_num); in mlx5_esw_devlink_port_supported() 25 static struct devlink_port *mlx5_esw_dl_port_alloc(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_dl_port_alloc() argument 45 if (vport_num == MLX5_VPORT_UPLINK) { in mlx5_esw_dl_port_alloc() 51 } else if (vport_num == MLX5_VPORT_PF) { in mlx5_esw_dl_port_alloc() 55 } else if (mlx5_eswitch_is_vf_vport(esw, vport_num)) { in mlx5_esw_dl_port_alloc() 59 vport_num - 1, external); in mlx5_esw_dl_port_alloc() 69 int mlx5_esw_offloads_devlink_port_register(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port_register() argument [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | ib_rep.h | 17 u16 vport_num); 20 u16 vport_num); 27 u16 vport_num); 36 u16 vport_num) in mlx5_ib_get_rep_ibdev() argument 49 u16 vport_num) in mlx5_ib_vport_rep() argument 66 u16 vport_num) in mlx5_ib_get_rep_netdev() argument
|
D | ib_rep.c | 117 u16 vport_num) in mlx5_ib_get_rep_ibdev() argument 119 return mlx5_eswitch_get_proto_dev(esw, vport_num, REP_IB); in mlx5_ib_get_rep_ibdev() 123 u16 vport_num) in mlx5_ib_get_rep_netdev() argument 125 return mlx5_eswitch_get_proto_dev(esw, vport_num, REP_ETH); in mlx5_ib_get_rep_netdev() 134 u16 vport_num) in mlx5_ib_vport_rep() argument 136 return mlx5_eswitch_vport_rep(esw, vport_num); in mlx5_ib_vport_rep()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.h | 290 int mlx5_esw_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, 311 u16 vport_num, bool setting); 491 mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_is_manager_vport() argument 493 return esw->manager_vport == vport_num; in mlx5_esw_is_manager_vport() 519 u16 vport_num) in mlx5_eswitch_vport_num_to_index() argument 521 if (vport_num == MLX5_VPORT_ECPF) { in mlx5_eswitch_vport_num_to_index() 527 if (vport_num == MLX5_VPORT_UPLINK) in mlx5_eswitch_vport_num_to_index() 530 return vport_num; in mlx5_eswitch_vport_num_to_index() 548 u16 vport_num) in mlx5_esw_vport_to_devlink_port_index() argument 550 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index() [all …]
|
D | eswitch.c | 92 mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport() argument 99 idx = mlx5_eswitch_vport_num_to_index(esw, vport_num); in mlx5_eswitch_get_vport() 103 vport_num, idx); in mlx5_eswitch_get_vport() 569 u16 i, vport_num; in update_allmulti_vports() local 577 vport_num = vport->vport; in update_allmulti_vports() 579 vaddr->vport == vport_num) in update_allmulti_vports() 591 mac, vport_num); in update_allmulti_vports() 594 iter_vaddr->vport = vport_num; in update_allmulti_vports() 598 vport_num); in update_allmulti_vports() 1139 int mlx5_esw_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_modify_vport_rate() argument [all …]
|
D | eswitch_offloads.c | 236 u16 vport_num) in mlx5_eswitch_get_rep() argument 238 int idx = mlx5_eswitch_vport_num_to_index(esw, vport_num); in mlx5_eswitch_get_rep() 1826 static int mlx5_esw_offloads_rep_load(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_rep_load() argument 1832 rep = mlx5_eswitch_get_rep(esw, vport_num); in mlx5_esw_offloads_rep_load() 1850 static void mlx5_esw_offloads_rep_unload(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_rep_unload() argument 1855 rep = mlx5_eswitch_get_rep(esw, vport_num); in mlx5_esw_offloads_rep_unload() 1860 int esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num) in esw_offloads_load_rep() argument 1867 err = mlx5_esw_offloads_devlink_port_register(esw, vport_num); in esw_offloads_load_rep() 1871 err = mlx5_esw_offloads_rep_load(esw, vport_num); in esw_offloads_load_rep() 1877 mlx5_esw_offloads_devlink_port_unregister(esw, vport_num); in esw_offloads_load_rep() [all …]
|
D | en_tc.c | 5103 u16 vport_num; in apply_police_params() local 5106 vport_num = rpriv->rep->vport; in apply_police_params() 5107 if (vport_num >= MLX5_VPORT_ECPF) { in apply_police_params() 5125 err = mlx5_esw_modify_vport_rate(esw, vport_num, rate_mbps); in apply_police_params()
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
D | eswitch.h | 58 u16 vport_num, 61 u16 vport_num); 65 u16 vport_num, u32 sqn); 98 u16 vport_num); 127 int vport_num) in mlx5_eswitch_get_vport_metadata_for_match() argument
|
D | device.h | 668 __be16 vport_num; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | helper.c | 9 esw_acl_table_create(struct mlx5_eswitch *esw, u16 vport_num, int ns, int size) in esw_acl_table_create() argument 25 esw_debug(dev, "Create vport[%d] %s ACL table\n", vport_num, in esw_acl_table_create() 28 vport_index = mlx5_eswitch_vport_num_to_index(esw, vport_num); in esw_acl_table_create() 32 vport_num); in esw_acl_table_create() 36 acl = mlx5_create_vport_flow_table(root_ns, 0, size, 0, vport_num); in esw_acl_table_create() 39 esw_warn(dev, "vport[%d] create %s ACL table, err(%d)\n", vport_num, in esw_acl_table_create()
|
D | ofld.h | 14 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num); 26 int mlx5_esw_acl_ingress_vport_bond_update(struct mlx5_eswitch *esw, u16 vport_num,
|
D | egress_ofld.c | 151 static bool esw_acl_egress_needed(const struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed() argument 153 return mlx5_eswitch_is_vf_vport(esw, vport_num); in esw_acl_egress_needed() 234 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond() argument 236 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_egress_vport_unbond()
|
D | ingress_ofld.c | 296 int mlx5_esw_acl_ingress_vport_bond_update(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_acl_ingress_vport_bond_update() argument 299 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_bond_update() 303 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_bond_update()
|
D | helper.h | 11 esw_acl_table_create(struct mlx5_eswitch *esw, u16 vport_num, int ns, int size);
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 148 u8 vport_num = vema_get_vport_num(recvd_mad); in vema_get_vport_adapter() local 150 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter() 199 u8 vport_num) in vema_add_vport() argument 204 adapter = opa_vnic_add_netdev(cport->ibdev, port->port_num, vport_num); in vema_add_vport() 209 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport() 313 u8 vport_num; in vema_set_veswport_info() local 315 vport_num = vema_get_vport_num(recvd_mad); in vema_set_veswport_info() 319 adapter = vema_add_vport(port, vport_num); in vema_set_veswport_info() 322 vport_num, PTR_ERR(adapter)); in vema_set_veswport_info()
|
D | opa_vnic_netdev.c | 324 u8 port_num, u8 vport_num) in opa_vnic_add_netdev() argument 353 adapter->vport_num = vport_num; in opa_vnic_add_netdev()
|
D | opa_vnic_internal.h | 203 u8 vport_num; member 297 u8 port_num, u8 vport_num);
|
D | opa_vnic_vema_iface.c | 70 trap_data.veswportindex = adapter->vport_num; in opa_vnic_vema_report_event() 96 cntrs->vp_instance = cpu_to_be16(adapter->vport_num); in opa_vnic_get_summary_counters() 135 cntrs->vp_instance = cpu_to_be16(adapter->vport_num); in opa_vnic_get_error_counters()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_domain.c | 42 u32 vport_num, in mlx5dr_domain_cache_get_recalc_cs_ft_addr() argument 47 recalc_cs_ft = dmn->cache.recalc_cs_ft[vport_num]; in mlx5dr_domain_cache_get_recalc_cs_ft_addr() 50 recalc_cs_ft = mlx5dr_fw_create_recalc_cs_ft(dmn, vport_num); in mlx5dr_domain_cache_get_recalc_cs_ft_addr() 54 dmn->cache.recalc_cs_ft[vport_num] = recalc_cs_ft; in mlx5dr_domain_cache_get_recalc_cs_ft_addr()
|
D | dr_fw.c | 8 mlx5dr_fw_create_recalc_cs_ft(struct mlx5dr_domain *dmn, u32 vport_num) in mlx5dr_fw_create_recalc_cs_ft() argument 57 vport_num); in mlx5dr_fw_create_recalc_cs_ft()
|
D | dr_types.h | 1143 mlx5dr_fw_create_recalc_cs_ft(struct mlx5dr_domain *dmn, u32 vport_num); 1147 u32 vport_num,
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_vport.h | 112 int vport_num; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 8534 u16 vport_idx, vport_num = 0; in hclge_set_vlan_filter_hw() local 8570 vport_num++; in hclge_set_vlan_filter_hw() 8572 if ((is_kill && vport_num == 0) || (!is_kill && vport_num == 1)) in hclge_set_vlan_filter_hw()
|