/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum.c | 444 struct mlxsw_sp_port_mapping *port_mapping) in mlxsw_sp_port_module_info_get() 487 port_mapping->module = module; in mlxsw_sp_port_module_info_get() 488 port_mapping->width = width; in mlxsw_sp_port_module_info_get() 489 port_mapping->lane = mlxsw_reg_pmlp_tx_lane_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_get() 495 struct mlxsw_sp_port_mapping *port_mapping = &mlxsw_sp_port->mapping; in mlxsw_sp_port_module_map() local 501 mlxsw_reg_pmlp_width_set(pmlp_pl, port_mapping->width); in mlxsw_sp_port_module_map() 502 for (i = 0; i < port_mapping->width; i++) { in mlxsw_sp_port_module_map() 503 mlxsw_reg_pmlp_module_set(pmlp_pl, i, port_mapping->module); in mlxsw_sp_port_module_map() 504 mlxsw_reg_pmlp_tx_lane_set(pmlp_pl, i, port_mapping->lane + i); /* Rx & Tx */ in mlxsw_sp_port_module_map() 1391 struct mlxsw_sp_port_mapping *port_mapping) in mlxsw_sp_port_create() 443 mlxsw_sp_port_module_info_get(struct mlxsw_sp *mlxsw_sp, u8 local_port, struct mlxsw_sp_port_mapping *port_mapping) mlxsw_sp_port_module_info_get() argument 1389 mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port, u8 split_base_local_port, struct mlxsw_sp_port_mapping *port_mapping) mlxsw_sp_port_create() argument 1742 struct mlxsw_sp_port_mapping *port_mapping; mlxsw_sp_ports_create() local 1780 struct mlxsw_sp_port_mapping port_mapping; mlxsw_sp_port_module_info_init() local 1832 mlxsw_sp_port_split_create(struct mlxsw_sp *mlxsw_sp, u8 base_port, struct mlxsw_sp_port_mapping *port_mapping, unsigned int count, u8 offset) mlxsw_sp_port_split_create() argument 1862 struct mlxsw_sp_port_mapping *port_mapping; mlxsw_sp_port_unsplit_create() local 1908 struct mlxsw_sp_port_mapping port_mapping; mlxsw_sp_port_split() local [all...] |
H A D | spectrum_ethtool.c | 564 struct mlxsw_sp_port_mapping port_mapping = mlxsw_sp_port->mapping; in mlxsw_sp_port_get_transceiver_overheat_stats() local 570 port_mapping.module, in mlxsw_sp_port_get_transceiver_overheat_stats()
|
H A D | spectrum.h | 150 struct mlxsw_sp_port_mapping **port_mapping; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum.c | 586 struct mlxsw_sp_port_mapping *port_mapping) in mlxsw_sp_port_module_info_parse() 632 port_mapping->module = module; in mlxsw_sp_port_module_info_parse() 633 port_mapping->slot_index = slot_index; in mlxsw_sp_port_module_info_parse() 634 port_mapping->width = width; in mlxsw_sp_port_module_info_parse() 635 port_mapping->module_width = width; in mlxsw_sp_port_module_info_parse() 636 port_mapping->lane = mlxsw_reg_pmlp_tx_lane_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_parse() 642 struct mlxsw_sp_port_mapping *port_mapping) in mlxsw_sp_port_module_info_get() 652 pmlp_pl, port_mapping); in mlxsw_sp_port_module_info_get() 657 const struct mlxsw_sp_port_mapping *port_mapping) in mlxsw_sp_port_module_map() 662 mlxsw_env_module_port_map(mlxsw_sp->core, port_mapping in mlxsw_sp_port_module_map() 584 mlxsw_sp_port_module_info_parse(struct mlxsw_sp *mlxsw_sp, u16 local_port, char *pmlp_pl, struct mlxsw_sp_port_mapping *port_mapping) mlxsw_sp_port_module_info_parse() argument 641 mlxsw_sp_port_module_info_get(struct mlxsw_sp *mlxsw_sp, u16 local_port, struct mlxsw_sp_port_mapping *port_mapping) mlxsw_sp_port_module_info_get() argument 656 mlxsw_sp_port_module_map(struct mlxsw_sp *mlxsw_sp, u16 local_port, const struct mlxsw_sp_port_mapping *port_mapping) mlxsw_sp_port_module_map() argument 1606 mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u16 local_port, bool split, struct mlxsw_sp_port_mapping *port_mapping) mlxsw_sp_port_create() argument 1998 struct mlxsw_sp_port_mapping port_mapping; mlxsw_sp_port_mapping_events_work() local 2116 struct mlxsw_sp_port_mapping *port_mapping; mlxsw_sp_ports_create() local 2171 struct mlxsw_sp_port_mapping *port_mapping; mlxsw_sp_port_module_info_init() local 2200 mlxsw_sp_port_split_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_port_mapping *port_mapping, unsigned int count, const char *pmtdb_pl) mlxsw_sp_port_split_create() argument 2238 struct mlxsw_sp_port_mapping *port_mapping; mlxsw_sp_port_unsplit_create() local 2266 struct mlxsw_sp_port_mapping port_mapping; mlxsw_sp_port_split() local [all...] |
H A D | spectrum.h | 168 struct mlxsw_sp_port_mapping *port_mapping; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_bios.c | 1626 const int port_mapping[][3], u8 dvo_port) in __dvo_port_to_port() 1633 if (port_mapping[port][i] == -1) in __dvo_port_to_port() 1636 if (dvo_port == port_mapping[port][i]) in __dvo_port_to_port() 1651 static const int port_mapping[][3] = { in dvo_port_to_port() local 1682 return __dvo_port_to_port(ARRAY_SIZE(port_mapping), in dvo_port_to_port() 1683 ARRAY_SIZE(port_mapping[0]), in dvo_port_to_port() 1684 port_mapping, in dvo_port_to_port() 2327 } port_mapping[] = { in intel_bios_is_port_present() local 2344 port == PORT_A) || port >= ARRAY_SIZE(port_mapping)) in intel_bios_is_port_present() 2350 if ((child->dvo_port == port_mapping[por in intel_bios_is_port_present() 1625 __dvo_port_to_port(int n_ports, int n_dvo, const int port_mapping[][3], u8 dvo_port) __dvo_port_to_port() argument 2371 static const short port_mapping[] = { intel_bios_is_port_edp() local 2399 } port_mapping[] = { child_dev_is_dp_dual_mode() local [all...] |
/kernel/linux/linux-5.10/sound/soc/fsl/ |
H A D | imx-audmux.c | 193 static const uint8_t port_mapping[] = { variable 205 if (port >= ARRAY_SIZE(port_mapping)) in imx_audmux_v1_configure_port() 208 writel(pcr, audmux_base + port_mapping[port]); in imx_audmux_v1_configure_port()
|
/kernel/linux/linux-6.6/sound/soc/fsl/ |
H A D | imx-audmux.c | 176 static const uint8_t port_mapping[] = { variable 188 if (port >= ARRAY_SIZE(port_mapping)) in imx_audmux_v1_configure_port() 191 writel(pcr, audmux_base + port_mapping[port]); in imx_audmux_v1_configure_port()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_bios.c | 2267 const int port_mapping[][3], u8 dvo_port) in __dvo_port_to_port() 2274 if (port_mapping[port][i] == -1) in __dvo_port_to_port() 2277 if (dvo_port == port_mapping[port][i]) in __dvo_port_to_port() 2292 static const int port_mapping[][3] = { in dvo_port_to_port() local 2355 return __dvo_port_to_port(ARRAY_SIZE(port_mapping), in dvo_port_to_port() 2356 ARRAY_SIZE(port_mapping[0]), in dvo_port_to_port() 2357 port_mapping, in dvo_port_to_port() 2266 __dvo_port_to_port(int n_ports, int n_dvo, const int port_mapping[][3], u8 dvo_port) __dvo_port_to_port() argument
|