Home
last modified time | relevance | path

Searched refs:local_port (Results 1 – 25 of 70) sorted by relevance

123

/drivers/net/ethernet/mellanox/mlxsw/
Dswitchib.c38 u8 local_port; member
102 mlxsw_tx_v1_hdr_port_mid_set(txhdr, tx_info->local_port); in mlxsw_sib_tx_v1_hdr_construct()
125 mlxsw_reg_paos_pack(paos_pl, mlxsw_sib_port->local_port, in mlxsw_sib_port_admin_status_set()
139 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sib_port->local_port, 0); in mlxsw_sib_port_mtu_set()
148 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sib_port->local_port, mtu); in mlxsw_sib_port_mtu_set()
158 mlxsw_reg_plib_local_port_set(plib_pl, mlxsw_sib_port->local_port); in mlxsw_sib_port_set()
170 mlxsw_reg_pspa_pack(pspa_pl, swid, mlxsw_sib_port->local_port); in mlxsw_sib_port_swid_set()
175 u8 local_port, u8 *p_module, in mlxsw_sib_port_module_info_get() argument
181 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_sib_port_module_info_get()
196 mlxsw_reg_ptys_ib_pack(ptys_pl, mlxsw_sib_port->local_port, speed, in mlxsw_sib_port_speed_set()
[all …]
Dspectrum_buffers.c153 u8 local_port, u8 pg_buff, in mlxsw_sp_sb_cm_get() argument
156 struct mlxsw_sp_sb_port *sb_port = &mlxsw_sp->sb->ports[local_port]; in mlxsw_sp_sb_cm_get()
166 u8 local_port, u16 pool_index) in mlxsw_sp_sb_pm_get() argument
168 return &mlxsw_sp->sb->ports[local_port].pms[pool_index]; in mlxsw_sp_sb_pm_get()
195 static int mlxsw_sp_sb_cm_write(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_sb_cm_write() argument
205 mlxsw_reg_sbcm_pack(sbcm_pl, local_port, pg_buff, des->dir, in mlxsw_sp_sb_cm_write()
216 cm = mlxsw_sp_sb_cm_get(mlxsw_sp, local_port, pg_buff, in mlxsw_sp_sb_cm_write()
225 static int mlxsw_sp_sb_pm_write(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_sb_pm_write() argument
234 mlxsw_reg_sbpm_pack(sbpm_pl, local_port, des->pool, des->dir, false, in mlxsw_sp_sb_pm_write()
240 pm = mlxsw_sp_sb_pm_get(mlxsw_sp, local_port, pool_index); in mlxsw_sp_sb_pm_write()
[all …]
Dswitchx2.c48 u8 local_port; member
146 mlxsw_tx_hdr_port_mid_set(txhdr, tx_info->local_port); in mlxsw_sx_txhdr_construct()
164 mlxsw_reg_paos_pack(paos_pl, mlxsw_sx_port->local_port, in mlxsw_sx_port_admin_status_set()
178 mlxsw_reg_paos_pack(paos_pl, mlxsw_sx_port->local_port, 0); in mlxsw_sx_port_oper_status_get()
195 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sx_port->local_port, 0); in __mlxsw_sx_port_mtu_set()
204 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sx_port->local_port, mtu); in __mlxsw_sx_port_mtu_set()
228 mlxsw_reg_plib_local_port_set(plib_pl, mlxsw_sx_port->local_port); in mlxsw_sx_port_ib_port_set()
239 mlxsw_reg_pspa_pack(pspa_pl, swid, mlxsw_sx_port->local_port); in mlxsw_sx_port_swid_set()
249 mlxsw_reg_sspr_pack(sspr_pl, mlxsw_sx_port->local_port); in mlxsw_sx_port_system_port_mapping_set()
254 u8 local_port, u8 *p_module, in mlxsw_sx_port_module_info_get() argument
[all …]
Dminimal.c33 u8 local_port; member
61 mlxsw_m_port->local_port); in mlxsw_m_port_get_devlink_port()
114 mlxsw_m_port_module_info_get(struct mlxsw_m *mlxsw_m, u8 local_port, in mlxsw_m_port_module_info_get() argument
120 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_m_port_module_info_get()
152 mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u8 local_port, u8 module) in mlxsw_m_port_create() argument
158 err = mlxsw_core_port_init(mlxsw_m->core, local_port, in mlxsw_m_port_create()
164 local_port); in mlxsw_m_port_create()
178 mlxsw_m_port->local_port = local_port; in mlxsw_m_port_create()
187 mlxsw_m_port->local_port); in mlxsw_m_port_create()
192 mlxsw_m->ports[local_port] = mlxsw_m_port; in mlxsw_m_port_create()
[all …]
Dspectrum_ptp.h41 u8 local_port);
44 struct sk_buff *skb, u8 local_port);
47 u8 local_port, u8 message_type,
90 struct sk_buff *skb, u8 local_port) in mlxsw_sp1_ptp_receive() argument
92 mlxsw_sp_rx_listener_no_mark_func(skb, local_port, mlxsw_sp); in mlxsw_sp1_ptp_receive()
96 struct sk_buff *skb, u8 local_port) in mlxsw_sp1_ptp_transmitted() argument
103 u8 local_port, u8 message_type, in mlxsw_sp1_ptp_got_timestamp() argument
169 struct sk_buff *skb, u8 local_port) in mlxsw_sp2_ptp_receive() argument
171 mlxsw_sp_rx_listener_no_mark_func(skb, local_port, mlxsw_sp); in mlxsw_sp2_ptp_receive()
175 struct sk_buff *skb, u8 local_port) in mlxsw_sp2_ptp_transmitted() argument
Dcore.h43 u8 local_port; member
52 struct sk_buff *skb, u8 local_port);
55 void (*func)(struct sk_buff *skb, u8 local_port, void *priv);
56 u8 local_port; member
87 .local_port = MLXSW_PORT_DONT_CARE, \
167 u16 lag_id, u8 port_index, u8 local_port);
171 u16 lag_id, u8 local_port);
174 int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u8 local_port,
179 void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port);
185 void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u8 local_port,
[all …]
Dspectrum_fid.c319 enum mlxsw_sp_flood_type packet_type, u8 local_port, in mlxsw_sp_fid_flood_set() argument
341 local_port, member); in mlxsw_sp_fid_flood_set()
451 u8 local_port, u16 vid, bool valid) in __mlxsw_sp_fid_port_vid_map() argument
456 mlxsw_reg_svfa_pack(svfa_pl, local_port, mt, valid, fid_index, vid); in __mlxsw_sp_fid_port_vid_map()
525 u8 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_fid_8021q_port_vid_map() local
531 if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 0) in mlxsw_sp_fid_8021q_port_vid_map()
533 return __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, local_port, in mlxsw_sp_fid_8021q_port_vid_map()
542 u8 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_fid_8021q_port_vid_unmap() local
544 if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 0) in mlxsw_sp_fid_8021q_port_vid_unmap()
546 __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, local_port, vid, in mlxsw_sp_fid_8021q_port_vid_unmap()
[all …]
Dreg.h144 MLXSW_ITEM32(reg, sspr, local_port, 0x00, 16, 8);
164 static inline void mlxsw_reg_sspr_pack(char *payload, u8 local_port) in mlxsw_reg_sspr_pack() argument
168 mlxsw_reg_sspr_local_port_set(payload, local_port); in mlxsw_reg_sspr_pack()
170 mlxsw_reg_sspr_system_port_set(payload, local_port); in mlxsw_reg_sspr_pack()
410 u8 local_port) in mlxsw_reg_sfd_uc_pack() argument
417 mlxsw_reg_sfd_uc_system_port_set(payload, rec_index, local_port); in mlxsw_reg_sfd_uc_pack()
784 MLXSW_ITEM32(reg, spms, local_port, 0x00, 16, 8);
803 static inline void mlxsw_reg_spms_pack(char *payload, u8 local_port) in mlxsw_reg_spms_pack() argument
806 mlxsw_reg_spms_local_port_set(payload, local_port); in mlxsw_reg_spms_pack()
828 MLXSW_ITEM32(reg, spvid, local_port, 0x00, 16, 8);
[all …]
Dspectrum_span.c68 u8 local_port = dest_port->local_port; in mlxsw_sp_span_entry_phys_configure() local
73 mlxsw_reg_mpat_pack(mpat_pl, pa_id, local_port, true, in mlxsw_sp_span_entry_phys_configure()
85 u8 local_port = dest_port->local_port; in mlxsw_sp_span_entry_deconfigure_common() local
89 mlxsw_reg_mpat_pack(mpat_pl, pa_id, local_port, false, span_type); in mlxsw_sp_span_entry_deconfigure_common()
363 u8 local_port = dest_port->local_port; in mlxsw_sp_span_entry_gretap4_configure() local
368 mlxsw_reg_mpat_pack(mpat_pl, pa_id, local_port, true, in mlxsw_sp_span_entry_gretap4_configure()
464 u8 local_port = dest_port->local_port; in mlxsw_sp_span_entry_gretap6_configure() local
469 mlxsw_reg_mpat_pack(mpat_pl, pa_id, local_port, true, in mlxsw_sp_span_entry_gretap6_configure()
527 u8 local_port = dest_port->local_port; in mlxsw_sp_span_entry_vlan_configure() local
531 mlxsw_reg_mpat_pack(mpat_pl, pa_id, local_port, true, in mlxsw_sp_span_entry_vlan_configure()
[all …]
Dcore.c47 u8 local_port; member
540 static void mlxsw_emad_rx_listener_func(struct sk_buff *skb, u8 local_port, in mlxsw_emad_rx_listener_func() argument
667 trans->tx_info.local_port = MLXSW_PORT_CPU_PORT; in mlxsw_emad_reg_access()
818 mlxsw_core_port->local_port, in mlxsw_devlink_port_type_set()
1312 struct sk_buff *skb, u8 local_port) in mlxsw_core_ptp_transmitted() argument
1316 local_port); in mlxsw_core_ptp_transmitted()
1324 rxl_a->local_port == rxl_b->local_port && in __is_rx_listener_equal()
1378 static void mlxsw_core_event_listener_func(struct sk_buff *skb, u8 local_port, in mlxsw_core_event_listener_func() argument
1424 .local_port = MLXSW_PORT_DONT_CARE, in mlxsw_core_event_listener_register()
1461 .local_port = MLXSW_PORT_DONT_CARE, in mlxsw_core_event_listener_unregister()
[all …]
Dspectrum.c163 u8 local_port);
169 u8 local_port);
533 mlxsw_tx_hdr_port_mid_set(txhdr, tx_info->local_port); in mlxsw_sp_txhdr_construct()
564 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_vid_stp_set()
590 mlxsw_reg_mpsc_pack(mpsc_pl, mlxsw_sp_port->local_port, enable, rate); in mlxsw_sp_port_sample_set()
600 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_admin_status_set()
612 mlxsw_reg_ppad_pack(ppad_pl, true, mlxsw_sp_port->local_port); in mlxsw_sp_port_dev_addr_set()
623 addr[ETH_ALEN - 1] += mlxsw_sp_port->local_port; in mlxsw_sp_port_dev_addr_init()
635 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_mtu_set()
644 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, mtu); in mlxsw_sp_port_mtu_set()
[all …]
Dspectrum_ptp.c39 u8 local_port; member
427 struct sk_buff *skb, u8 local_port, in mlxsw_sp1_ptp_packet_finish() argument
437 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_packet_finish()
446 mlxsw_sp_rx_listener_no_mark_func(skb, local_port, mlxsw_sp); in mlxsw_sp1_ptp_packet_finish()
468 key.local_port, key.ingress, &hwtstamps); in mlxsw_sp1_packet_timestamp()
481 unmatched->key.local_port, in mlxsw_sp1_ptp_unmatched_finish()
526 key.local_port, in mlxsw_sp1_ptp_got_piece()
545 struct sk_buff *skb, u8 local_port, in mlxsw_sp1_ptp_got_packet() argument
553 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_got_packet()
563 key.local_port = local_port; in mlxsw_sp1_ptp_got_packet()
[all …]
Dspectrum_trap.c14 static void mlxsw_sp_rx_drop_listener(struct sk_buff *skb, u8 local_port,
60 u8 local_port, in mlxsw_sp_rx_listener() argument
67 local_port); in mlxsw_sp_rx_listener()
85 static void mlxsw_sp_rx_drop_listener(struct sk_buff *skb, u8 local_port, in mlxsw_sp_rx_drop_listener() argument
94 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_drop_listener()
96 if (mlxsw_sp_rx_listener(mlxsw_sp, skb, local_port, mlxsw_sp_port)) in mlxsw_sp_rx_drop_listener()
101 local_port); in mlxsw_sp_rx_drop_listener()
Dcore_acl_flex_actions.c107 u8 local_port; member
466 mlxsw_afa_fwd_entry_create(struct mlxsw_afa *mlxsw_afa, u8 local_port) in mlxsw_afa_fwd_entry_create() argument
474 fwd_entry->ht_key.local_port = local_port; in mlxsw_afa_fwd_entry_create()
485 local_port); in mlxsw_afa_fwd_entry_create()
509 mlxsw_afa_fwd_entry_get(struct mlxsw_afa *mlxsw_afa, u8 local_port) in mlxsw_afa_fwd_entry_get() argument
514 ht_key.local_port = local_port; in mlxsw_afa_fwd_entry_get()
521 return mlxsw_afa_fwd_entry_create(mlxsw_afa, local_port); in mlxsw_afa_fwd_entry_get()
558 mlxsw_afa_fwd_entry_ref_create(struct mlxsw_afa_block *block, u8 local_port) in mlxsw_afa_fwd_entry_ref_create() argument
567 fwd_entry = mlxsw_afa_fwd_entry_get(block->afa, local_port); in mlxsw_afa_fwd_entry_ref_create()
1001 u8 local_port, bool in_port, in mlxsw_afa_block_append_fwd() argument
[all …]
Dspectrum_dcb.c73 mlxsw_reg_pptb_pack(pptb_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_pg_prio_map()
98 mlxsw_reg_pbmc_pack(pbmc_pl, mlxsw_sp_port->local_port, 0, 0); in mlxsw_sp_port_pg_destroy()
328 mlxsw_reg_qpts_pack(qpts_pl, mlxsw_sp_port->local_port, ts); in mlxsw_sp_port_dcb_app_update_qpts()
339 mlxsw_reg_qrwe_pack(qrwe_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_dcb_app_update_qrwe()
379 mlxsw_reg_qpdpm_pack(qpdpm_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_dcb_app_update_qpdpm()
393 mlxsw_reg_qpdsm_pack(qpdsm_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_dcb_app_update_qpdsm()
539 mlxsw_reg_ppcnt_pack(ppcnt_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_pfc_cnt_get()
576 mlxsw_reg_pfcc_pack(pfcc_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_pfc_set()
Dspectrum_switchdev.c272 bridge_port->system_port = mlxsw_sp_port->local_port; in mlxsw_sp_bridge_port_create()
505 mlxsw_sp_port->local_port, in mlxsw_sp_port_bridge_vlan_flood_set()
892 u8 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_port_vlan_fid_join() local
902 err = mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_UC, local_port, in mlxsw_sp_port_vlan_fid_join()
907 err = mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_MC, local_port, in mlxsw_sp_port_vlan_fid_join()
912 err = mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_BC, local_port, in mlxsw_sp_port_vlan_fid_join()
926 mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_BC, local_port, false); in mlxsw_sp_port_vlan_fid_join()
928 mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_MC, local_port, false); in mlxsw_sp_port_vlan_fid_join()
930 mlxsw_sp_fid_flood_set(fid, MLXSW_SP_FLOOD_TYPE_UC, local_port, false); in mlxsw_sp_port_vlan_fid_join()
941 u8 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_port_vlan_fid_leave() local
[all …]
Dcore_acl_flex_actions.h19 int (*kvdl_fwd_entry_add)(void *priv, u32 *p_kvdl_index, u8 local_port);
55 u8 local_port, bool in_port,
Dspectrum.h242 u8 local_port; member
302 int (*port_speed_base)(struct mlxsw_sp *mlxsw_sp, u8 local_port,
305 u8 local_port, u32 proto_admin, bool autoneg);
361 u8 local_port; in mlxsw_sp_port_lagged_get() local
363 local_port = mlxsw_core_lag_mapping_get(mlxsw_sp->core, in mlxsw_sp_port_lagged_get()
365 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_lagged_get()
464 u8 local_port, void *priv);
868 enum mlxsw_sp_flood_type packet_type, u8 local_port,
/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c135 int ptys_size, int proto_mask, u8 local_port) in mlx5_query_port_ptys() argument
139 MLX5_SET(ptys_reg, in, local_port, local_port); in mlx5_query_port_ptys()
151 MLX5_SET(mlcr_reg, in, local_port, 1); in mlx5_set_port_beacon()
158 u8 *link_width_oper, u8 local_port) in mlx5_query_port_link_width_oper() argument
163 err = mlx5_query_port_ptys(dev, out, sizeof(out), MLX5_PTYS_IB, local_port); in mlx5_query_port_link_width_oper()
174 u8 *proto_oper, u8 local_port) in mlx5_query_port_ib_proto_oper() argument
180 local_port); in mlx5_query_port_ib_proto_oper()
208 MLX5_SET(paos_reg, in, local_port, 1); in mlx5_set_port_admin_status()
223 MLX5_SET(paos_reg, in, local_port, 1); in mlx5_query_port_admin_status()
239 MLX5_SET(pmtu_reg, in, local_port, port); in mlx5_query_port_mtu()
[all …]
/drivers/staging/media/imx/
Dimx-media-of.c92 if (link->local_port >= sd->entity.num_pads) in create_of_link()
99 if (sd->entity.pads[link->local_port].flags & MEDIA_PAD_FL_SINK) { in create_of_link()
103 sink_pad = link->local_port; in create_of_link()
106 src_pad = link->local_port; in create_of_link()
166 link.local_port = CSI_SINK_PAD; in imx_media_create_csi_of_links()
/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_cm.c43 __be16 *local_port, __be16 *peer_port) in cxgb_get_4tuple() argument
72 *local_port = tcp->dest; in cxgb_get_4tuple()
93 __be32 local_ip, __be32 peer_ip, __be16 local_port, in cxgb_find_route() argument
101 peer_port, local_port, IPPROTO_TCP, in cxgb_find_route()
122 __u8 *local_ip, __u8 *peer_ip, __be16 local_port, in cxgb_find_route6() argument
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport.c145 MLX5_SET(ptys_reg, in, local_port, 1); in mlx5_port_set_eth_ptys()
248 MLX5_SET(pbmc_reg, in, local_port, 1); in mlx5e_port_query_pbmc()
265 MLX5_SET(pbmc_reg, in, local_port, 1); in mlx5e_port_set_pbmc()
289 MLX5_SET(pptb_reg, in, local_port, 1); in mlx5e_port_query_priority2buffer()
322 MLX5_SET(pptb_reg, in, local_port, 1); in mlx5e_port_set_priority2buffer()
328 MLX5_SET(pptb_reg, in, local_port, 1); in mlx5e_port_set_priority2buffer()
458 MLX5_SET(pplm_reg, in, local_port, 1); in mlx5e_get_fec_caps()
485 MLX5_SET(pplm_reg, in, local_port, 1); in mlx5e_get_fec_mode()
520 MLX5_SET(pplm_reg, in, local_port, 1); in mlx5e_set_fec_mode()
525 MLX5_SET(pplm_reg, out, local_port, 1); in mlx5e_set_fec_mode()
/drivers/net/ethernet/chelsio/cxgb/
Dcpl5_cmd.h196 u16 local_port; member
208 u16 local_port; member
218 u16 local_port; member
231 u16 local_port; member
262 u16 local_port; member
274 u16 local_port; member
285 u16 local_port; member
/drivers/scsi/libfc/
Dfc_rport.c152 rdata->local_port = lport; in fc_rport_create()
263 struct fc_lport *lport = rdata->local_port; in fc_rport_work()
303 rpriv->local_port = lport; in fc_rport_work()
502 struct fc_lport *lport = rdata->local_port; in fc_rport_logoff()
612 struct fc_lport *lport = rdata->local_port; in fc_rport_error()
666 if (rdata->retries < rdata->local_port->max_rport_retry_count) { in fc_rport_error_retry()
696 struct fc_lport *lport = rdata->local_port; in fc_rport_login_complete()
737 struct fc_lport *lport = rdata->local_port; in fc_rport_flogi_resp()
817 struct fc_lport *lport = rdata->local_port; in fc_rport_enter_flogi()
981 struct fc_lport *lport = rdata->local_port; in fc_rport_plogi_resp()
[all …]
/drivers/media/platform/xilinx/
Dxilinx-vipp.c102 if (link.local_port >= local->num_pads) { in xvip_graph_build_one()
104 link.local_port, link.local_node); in xvip_graph_build_one()
110 local_pad = &local->pads[link.local_port]; in xvip_graph_build_one()
114 link.local_node, link.local_port); in xvip_graph_build_one()
122 link.local_node, link.local_port); in xvip_graph_build_one()
217 dma = xvip_graph_find_dma(xdev, link.local_port); in xvip_graph_build_dma()
220 link.local_port); in xvip_graph_build_dma()

123