#include <linux/mlx5/port.h>
#include "mlx5_core.h"
int mlx5_access_reg(struct mlx5_core_dev *dev, void *data_in, int size_in,
void *data_out, int size_out, u16 reg_id, int arg,
int write, bool verbose)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
int size_in, void *data_out, int size_out,
u16 reg_id, int arg, int write)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_pcam_reg(struct mlx5_core_dev *dev, u32 *pcam, u8 feature_group,
u8 access_reg_group)
{ … }
int mlx5_query_mcam_reg(struct mlx5_core_dev *dev, u32 *mcam, u8 feature_group,
u8 access_reg_group)
{ … }
int mlx5_query_qcam_reg(struct mlx5_core_dev *mdev, u32 *qcam,
u8 feature_group, u8 access_reg_group)
{ … }
struct mlx5_reg_pcap { … };
int mlx5_set_port_caps(struct mlx5_core_dev *dev, u8 port_num, u32 caps)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_ptys(struct mlx5_core_dev *dev, u32 *ptys,
int ptys_size, int proto_mask,
u8 local_port, u8 plane_index)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_set_port_beacon(struct mlx5_core_dev *dev, u16 beacon_duration)
{ … }
int mlx5_query_ib_port_oper(struct mlx5_core_dev *dev, u16 *link_width_oper,
u16 *proto_oper, u8 local_port, u8 plane_index)
{ … }
EXPORT_SYMBOL(…);
void mlx5_toggle_port_link(struct mlx5_core_dev *dev)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_set_port_admin_status(struct mlx5_core_dev *dev,
enum mlx5_port_status status)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_admin_status(struct mlx5_core_dev *dev,
enum mlx5_port_status *status)
{ … }
EXPORT_SYMBOL_GPL(…);
static void mlx5_query_port_mtu(struct mlx5_core_dev *dev, u16 *admin_mtu,
u16 *max_mtu, u16 *oper_mtu, u8 port)
{ … }
int mlx5_set_port_mtu(struct mlx5_core_dev *dev, u16 mtu, u8 port)
{ … }
EXPORT_SYMBOL_GPL(…);
void mlx5_query_port_max_mtu(struct mlx5_core_dev *dev, u16 *max_mtu,
u8 port)
{ … }
EXPORT_SYMBOL_GPL(…);
void mlx5_query_port_oper_mtu(struct mlx5_core_dev *dev, u16 *oper_mtu,
u8 port)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_module_num(struct mlx5_core_dev *dev, int *module_num)
{ … }
static int mlx5_query_module_id(struct mlx5_core_dev *dev, int module_num,
u8 *module_id)
{ … }
static int mlx5_qsfp_eeprom_page(u16 offset)
{ … }
static int mlx5_qsfp_eeprom_high_page_offset(int page_num)
{ … }
static void mlx5_qsfp_eeprom_params_set(u16 *i2c_addr, int *page_num, u16 *offset)
{ … }
static void mlx5_sfp_eeprom_params_set(u16 *i2c_addr, int *page_num, u16 *offset)
{ … }
static int mlx5_mcia_max_bytes(struct mlx5_core_dev *dev)
{ … }
static int mlx5_query_mcia(struct mlx5_core_dev *dev,
struct mlx5_module_eeprom_query_params *params, u8 *data)
{ … }
int mlx5_query_module_eeprom(struct mlx5_core_dev *dev,
u16 offset, u16 size, u8 *data)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_module_eeprom_by_page(struct mlx5_core_dev *dev,
struct mlx5_module_eeprom_query_params *params,
u8 *data)
{ … }
EXPORT_SYMBOL_GPL(…);
static int mlx5_query_port_pvlc(struct mlx5_core_dev *dev, u32 *pvlc,
int pvlc_size, u8 local_port)
{ … }
int mlx5_query_port_vl_hw_cap(struct mlx5_core_dev *dev,
u8 *vl_hw_cap, u8 local_port)
{ … }
EXPORT_SYMBOL_GPL(…);
static int mlx5_query_pfcc_reg(struct mlx5_core_dev *dev, u32 *out,
u32 out_size)
{ … }
int mlx5_set_port_pause(struct mlx5_core_dev *dev, u32 rx_pause, u32 tx_pause)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_pause(struct mlx5_core_dev *dev,
u32 *rx_pause, u32 *tx_pause)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_set_port_stall_watermark(struct mlx5_core_dev *dev,
u16 stall_critical_watermark,
u16 stall_minor_watermark)
{ … }
int mlx5_query_port_stall_watermark(struct mlx5_core_dev *dev,
u16 *stall_critical_watermark,
u16 *stall_minor_watermark)
{ … }
int mlx5_set_port_pfc(struct mlx5_core_dev *dev, u8 pfc_en_tx, u8 pfc_en_rx)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_pfc(struct mlx5_core_dev *dev, u8 *pfc_en_tx, u8 *pfc_en_rx)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_max_tc(struct mlx5_core_dev *mdev)
{ … }
int mlx5_query_port_dcbx_param(struct mlx5_core_dev *mdev, u32 *out)
{ … }
int mlx5_set_port_dcbx_param(struct mlx5_core_dev *mdev, u32 *in)
{ … }
int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_prio_tc(struct mlx5_core_dev *mdev,
u8 prio, u8 *tc)
{ … }
EXPORT_SYMBOL_GPL(…);
static int mlx5_set_port_qetcr_reg(struct mlx5_core_dev *mdev, u32 *in,
int inlen)
{ … }
static int mlx5_query_port_qetcr_reg(struct mlx5_core_dev *mdev, u32 *out,
int outlen)
{ … }
int mlx5_set_port_tc_group(struct mlx5_core_dev *mdev, u8 *tc_group)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_tc_group(struct mlx5_core_dev *mdev,
u8 tc, u8 *tc_group)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_tc_bw_alloc(struct mlx5_core_dev *mdev,
u8 tc, u8 *bw_pct)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_modify_port_ets_rate_limit(struct mlx5_core_dev *mdev,
u8 *max_bw_value,
u8 *max_bw_units)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_ets_rate_limit(struct mlx5_core_dev *mdev,
u8 *max_bw_value,
u8 *max_bw_units)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_set_port_wol(struct mlx5_core_dev *mdev, u8 wol_mode)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_port_wol(struct mlx5_core_dev *mdev, u8 *wol_mode)
{ … }
EXPORT_SYMBOL_GPL(…);
int mlx5_query_ports_check(struct mlx5_core_dev *mdev, u32 *out, int outlen)
{ … }
int mlx5_set_ports_check(struct mlx5_core_dev *mdev, u32 *in, int inlen)
{ … }
int mlx5_set_port_fcs(struct mlx5_core_dev *mdev, u8 enable)
{ … }
void mlx5_query_port_fcs(struct mlx5_core_dev *mdev, bool *supported,
bool *enabled)
{ … }
int mlx5_query_mtpps(struct mlx5_core_dev *mdev, u32 *mtpps, u32 mtpps_size)
{ … }
int mlx5_set_mtpps(struct mlx5_core_dev *mdev, u32 *mtpps, u32 mtpps_size)
{ … }
int mlx5_query_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 *arm, u8 *mode)
{ … }
int mlx5_set_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 arm, u8 mode)
{ … }
int mlx5_set_trust_state(struct mlx5_core_dev *mdev, u8 trust_state)
{ … }
int mlx5_query_trust_state(struct mlx5_core_dev *mdev, u8 *trust_state)
{ … }
int mlx5_set_dscp2prio(struct mlx5_core_dev *mdev, u8 dscp, u8 prio)
{ … }
#define MLX5E_SUPPORTED_DSCP …
int mlx5_query_dscp2prio(struct mlx5_core_dev *mdev, u8 *dscp2prio)
{ … }
static const u32 mlx5e_link_speed[MLX5E_LINK_MODES_NUMBER] = …;
static const u32 mlx5e_ext_link_speed[MLX5E_EXT_LINK_MODES_NUMBER] = …;
int mlx5_port_query_eth_proto(struct mlx5_core_dev *dev, u8 port, bool ext,
struct mlx5_port_eth_proto *eproto)
{ … }
bool mlx5_ptys_ext_supported(struct mlx5_core_dev *mdev)
{ … }
static void mlx5e_port_get_speed_arr(struct mlx5_core_dev *mdev,
const u32 **arr, u32 *size,
bool force_legacy)
{ … }
u32 mlx5_port_ptys2speed(struct mlx5_core_dev *mdev, u32 eth_proto_oper,
bool force_legacy)
{ … }
u32 mlx5_port_speed2linkmodes(struct mlx5_core_dev *mdev, u32 speed,
bool force_legacy)
{ … }
int mlx5_port_max_linkspeed(struct mlx5_core_dev *mdev, u32 *speed)
{ … }
int mlx5_query_mpir_reg(struct mlx5_core_dev *dev, u32 *mpir)
{ … }