Lines Matching refs:mlp

1677 mlxcx_cmd_query_nic_vport_ctx(mlxcx_t *mlxp, mlxcx_port_t *mlp)  in mlxcx_cmd_query_nic_vport_ctx()  argument
1688 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_query_nic_vport_ctx()
1693 in.mlxi_query_nic_vport_ctx_vport_number = to_be16(mlp->mlp_num); in mlxcx_cmd_query_nic_vport_ctx()
1704 mlp->mlp_guid = from_be64(ctx->mlnvc_port_guid); in mlxcx_cmd_query_nic_vport_ctx()
1705 mlp->mlp_mtu = from_be16(ctx->mlnvc_mtu); in mlxcx_cmd_query_nic_vport_ctx()
1706 bcopy(ctx->mlnvc_permanent_address, mlp->mlp_mac_address, in mlxcx_cmd_query_nic_vport_ctx()
1707 sizeof (mlp->mlp_mac_address)); in mlxcx_cmd_query_nic_vport_ctx()
1708 mlp->mlp_wqe_min_inline = get_bits64(ctx->mlnvc_flags, in mlxcx_cmd_query_nic_vport_ctx()
1831 mlxcx_cmd_query_port_mtu(mlxcx_t *mlxp, mlxcx_port_t *mlp) in mlxcx_cmd_query_port_mtu() argument
1840 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_query_port_mtu()
1842 data.mlrd_pmtu.mlrd_pmtu_local_port = mlp->mlp_num + 1; in mlxcx_cmd_query_port_mtu()
1848 mlp->mlp_mtu = from_be16(data.mlrd_pmtu.mlrd_pmtu_admin_mtu); in mlxcx_cmd_query_port_mtu()
1849 mlp->mlp_max_mtu = from_be16(data.mlrd_pmtu.mlrd_pmtu_max_mtu); in mlxcx_cmd_query_port_mtu()
1880 mlxcx_cmd_set_port_mtu(mlxcx_t *mlxp, mlxcx_port_t *mlp) in mlxcx_cmd_set_port_mtu() argument
1885 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_set_port_mtu()
1887 data.mlrd_pmtu.mlrd_pmtu_local_port = mlp->mlp_num + 1; in mlxcx_cmd_set_port_mtu()
1888 data.mlrd_pmtu.mlrd_pmtu_admin_mtu = to_be16(mlp->mlp_mtu); in mlxcx_cmd_set_port_mtu()
1897 mlxcx_cmd_set_port_led(mlxcx_t *mlxp, mlxcx_port_t *mlp, uint16_t sec) in mlxcx_cmd_set_port_led() argument
1902 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_set_port_led()
1904 data.mlrd_mlcr.mlrd_mlcr_local_port = mlp->mlp_num + 1; in mlxcx_cmd_set_port_led()
1916 mlxcx_cmd_query_port_status(mlxcx_t *mlxp, mlxcx_port_t *mlp) in mlxcx_cmd_query_port_status() argument
1921 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_query_port_status()
1923 data.mlrd_paos.mlrd_paos_local_port = mlp->mlp_num + 1; in mlxcx_cmd_query_port_status()
1929 mlp->mlp_admin_status = data.mlrd_paos.mlrd_paos_admin_status; in mlxcx_cmd_query_port_status()
1930 mlp->mlp_oper_status = data.mlrd_paos.mlrd_paos_oper_status; in mlxcx_cmd_query_port_status()
1937 mlxcx_cmd_modify_port_status(mlxcx_t *mlxp, mlxcx_port_t *mlp, in mlxcx_cmd_modify_port_status() argument
1943 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_modify_port_status()
1945 data.mlrd_paos.mlrd_paos_local_port = mlp->mlp_num + 1; in mlxcx_cmd_modify_port_status()
1956 mlxcx_cmd_query_port_speed(mlxcx_t *mlxp, mlxcx_port_t *mlp) in mlxcx_cmd_query_port_speed() argument
1961 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_query_port_speed()
1963 data.mlrd_ptys.mlrd_ptys_local_port = mlp->mlp_num + 1; in mlxcx_cmd_query_port_speed()
1973 mlp->mlp_autoneg = B_FALSE; in mlxcx_cmd_query_port_speed()
1975 mlp->mlp_autoneg = B_TRUE; in mlxcx_cmd_query_port_speed()
1977 mlp->mlp_max_proto = in mlxcx_cmd_query_port_speed()
1979 mlp->mlp_admin_proto = in mlxcx_cmd_query_port_speed()
1981 mlp->mlp_oper_proto = in mlxcx_cmd_query_port_speed()
1990 mlp->mlp_ext_max_proto = from_bits32( in mlxcx_cmd_query_port_speed()
1992 mlp->mlp_ext_admin_proto = from_bits32( in mlxcx_cmd_query_port_speed()
1994 mlp->mlp_ext_oper_proto = from_bits32( in mlxcx_cmd_query_port_speed()
2003 mlxcx_cmd_query_port_fec(mlxcx_t *mlxp, mlxcx_port_t *mlp) in mlxcx_cmd_query_port_fec() argument
2008 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_query_port_fec()
2010 data.mlrd_pplm.mlrd_pplm_local_port = mlp->mlp_num + 1; in mlxcx_cmd_query_port_fec()
2016 mlp->mlp_fec_active = in mlxcx_cmd_query_port_fec()
2024 mlxcx_cmd_modify_port_fec(mlxcx_t *mlxp, mlxcx_port_t *mlp, in mlxcx_cmd_modify_port_fec() argument
2032 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_modify_port_fec()
2035 pplm_in->mlrd_pplm_local_port = mlp->mlp_num + 1; in mlxcx_cmd_modify_port_fec()
2045 pplm_out->mlrd_pplm_local_port = mlp->mlp_num + 1; in mlxcx_cmd_modify_port_fec()
2079 mlxcx_cmd_modify_nic_vport_ctx(mlxcx_t *mlxp, mlxcx_port_t *mlp, in mlxcx_cmd_modify_nic_vport_ctx() argument
2088 ASSERT(mutex_owned(&mlp->mlp_mtx)); in mlxcx_cmd_modify_nic_vport_ctx()
2096 in.mlxi_modify_nic_vport_ctx_vport_number = to_be16(mlp->mlp_num); in mlxcx_cmd_modify_nic_vport_ctx()
2105 ctx->mlnvc_mtu = to_be16(mlp->mlp_mtu); in mlxcx_cmd_modify_nic_vport_ctx()
2117 mlp->mlp_flags |= MLXCX_PORT_VPORT_PROMISC; in mlxcx_cmd_modify_nic_vport_ctx()