Lines Matching refs:pmlp_pl
567 u16 local_port, char *pmlp_pl, in mlxsw_sp_port_module_info_parse() argument
577 module = mlxsw_reg_pmlp_module_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_parse()
578 slot_index = mlxsw_reg_pmlp_slot_index_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_parse()
579 width = mlxsw_reg_pmlp_width_get(pmlp_pl); in mlxsw_sp_port_module_info_parse()
580 separate_rxtx = mlxsw_reg_pmlp_rxtx_get(pmlp_pl); in mlxsw_sp_port_module_info_parse()
581 first_lane = mlxsw_reg_pmlp_tx_lane_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_parse()
590 if (mlxsw_reg_pmlp_module_get(pmlp_pl, i) != module) { in mlxsw_sp_port_module_info_parse()
595 if (mlxsw_reg_pmlp_slot_index_get(pmlp_pl, i) != slot_index) { in mlxsw_sp_port_module_info_parse()
601 mlxsw_reg_pmlp_tx_lane_get(pmlp_pl, i) != in mlxsw_sp_port_module_info_parse()
602 mlxsw_reg_pmlp_rx_lane_get(pmlp_pl, i)) { in mlxsw_sp_port_module_info_parse()
607 if (mlxsw_reg_pmlp_tx_lane_get(pmlp_pl, i) != i + first_lane) { in mlxsw_sp_port_module_info_parse()
618 port_mapping->lane = mlxsw_reg_pmlp_tx_lane_get(pmlp_pl, 0); in mlxsw_sp_port_module_info_parse()
626 char pmlp_pl[MLXSW_REG_PMLP_LEN]; in mlxsw_sp_port_module_info_get() local
629 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_sp_port_module_info_get()
630 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pmlp), pmlp_pl); in mlxsw_sp_port_module_info_get()
634 pmlp_pl, port_mapping); in mlxsw_sp_port_module_info_get()
641 char pmlp_pl[MLXSW_REG_PMLP_LEN]; in mlxsw_sp_port_module_map() local
647 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_sp_port_module_map()
648 mlxsw_reg_pmlp_width_set(pmlp_pl, port_mapping->width); in mlxsw_sp_port_module_map()
650 mlxsw_reg_pmlp_slot_index_set(pmlp_pl, i, in mlxsw_sp_port_module_map()
652 mlxsw_reg_pmlp_module_set(pmlp_pl, i, port_mapping->module); in mlxsw_sp_port_module_map()
653 mlxsw_reg_pmlp_tx_lane_set(pmlp_pl, i, port_mapping->lane + i); /* Rx & Tx */ in mlxsw_sp_port_module_map()
656 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmlp), pmlp_pl); in mlxsw_sp_port_module_map()
670 char pmlp_pl[MLXSW_REG_PMLP_LEN]; in mlxsw_sp_port_module_unmap() local
672 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_sp_port_module_unmap()
673 mlxsw_reg_pmlp_width_set(pmlp_pl, 0); in mlxsw_sp_port_module_unmap()
674 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmlp), pmlp_pl); in mlxsw_sp_port_module_unmap()
1985 char pmlp_pl[MLXSW_REG_PMLP_LEN]; member
2008 local_port = mlxsw_reg_pmlp_local_port_get(event->pmlp_pl); in mlxsw_sp_port_mapping_events_work()
2010 event->pmlp_pl, &port_mapping); in mlxsw_sp_port_mapping_events_work()
2036 char *pmlp_pl, void *priv) in mlxsw_sp_port_mapping_listener_func() argument
2043 local_port = mlxsw_reg_pmlp_local_port_get(pmlp_pl); in mlxsw_sp_port_mapping_listener_func()
2051 memcpy(event->pmlp_pl, pmlp_pl, sizeof(event->pmlp_pl)); in mlxsw_sp_port_mapping_listener_func()