Home
last modified time | relevance | path

Searched refs:ptys_pl (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dswitchx2.c733 char ptys_pl[MLXSW_REG_PTYS_LEN]; in mlxsw_sx_port_get_settings() local
739 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sx_port->local_port, 0); in mlxsw_sx_port_get_settings()
740 err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl); in mlxsw_sx_port_get_settings()
745 mlxsw_reg_ptys_unpack(ptys_pl, &eth_proto_cap, in mlxsw_sx_port_get_settings()
792 char ptys_pl[MLXSW_REG_PTYS_LEN]; in mlxsw_sx_port_set_settings() local
806 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sx_port->local_port, 0); in mlxsw_sx_port_set_settings()
807 err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl); in mlxsw_sx_port_set_settings()
812 mlxsw_reg_ptys_unpack(ptys_pl, &eth_proto_cap, &eth_proto_admin, NULL); in mlxsw_sx_port_set_settings()
822 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sx_port->local_port, eth_proto_new); in mlxsw_sx_port_set_settings()
823 err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl); in mlxsw_sx_port_set_settings()
[all …]
Dspectrum.c1085 char ptys_pl[MLXSW_REG_PTYS_LEN]; in mlxsw_sp_port_get_settings() local
1091 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_get_settings()
1092 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl); in mlxsw_sp_port_get_settings()
1097 mlxsw_reg_ptys_unpack(ptys_pl, &eth_proto_cap, in mlxsw_sp_port_get_settings()
1144 char ptys_pl[MLXSW_REG_PTYS_LEN]; in mlxsw_sp_port_set_settings() local
1158 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_set_settings()
1159 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl); in mlxsw_sp_port_set_settings()
1164 mlxsw_reg_ptys_unpack(ptys_pl, &eth_proto_cap, &eth_proto_admin, NULL); in mlxsw_sp_port_set_settings()
1174 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sp_port->local_port, eth_proto_new); in mlxsw_sp_port_set_settings()
1175 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl); in mlxsw_sp_port_set_settings()