Searched refs:port_cap (Results 1 – 8 of 8) sorted by relevance
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_port.c | 358 struct hinic_port_cap *port_cap) in hinic_port_get_cap() argument 366 port_cap->func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_cap() 369 port_cap, sizeof(*port_cap), in hinic_port_get_cap() 370 port_cap, &out_size); in hinic_port_get_cap() 371 if (err || (out_size != sizeof(*port_cap)) || port_cap->status) { in hinic_port_get_cap() 374 port_cap->status); in hinic_port_get_cap()
|
D | hinic_main.c | 116 struct hinic_port_cap port_cap; in hinic_get_link_ksettings() local 127 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_get_link_ksettings() 146 set_link_speed(link_ksettings, port_cap.speed); in hinic_get_link_ksettings() 148 if (!!(port_cap.autoneg_cap & HINIC_AUTONEG_SUPPORTED)) in hinic_get_link_ksettings() 152 if (port_cap.autoneg_state == HINIC_AUTONEG_ACTIVE) in hinic_get_link_ksettings() 155 link_ksettings->base.duplex = (port_cap.duplex == HINIC_DUPLEX_FULL) ? in hinic_get_link_ksettings()
|
D | hinic_port.h | 196 struct hinic_port_cap *port_cap);
|
/drivers/gpu/drm/ |
D | drm_dp_helper.c | 454 const u8 port_cap[4]) in drm_dp_downstream_max_clock() 456 int type = port_cap[0] & DP_DS_PORT_TYPE_MASK; in drm_dp_downstream_max_clock() 465 return port_cap[1] * 8 * 1000; in drm_dp_downstream_max_clock() 469 return port_cap[1] * 2500; in drm_dp_downstream_max_clock() 485 const u8 port_cap[4]) in drm_dp_downstream_max_bpc() 487 int type = port_cap[0] & DP_DS_PORT_TYPE_MASK; in drm_dp_downstream_max_bpc() 500 bpc = port_cap[2] & DP_DS_MAX_BPC_MASK; in drm_dp_downstream_max_bpc() 541 const u8 port_cap[4], struct drm_dp_aux *aux) in drm_dp_downstream_debug() 550 int type = port_cap[0] & DP_DS_PORT_TYPE_MASK; in drm_dp_downstream_debug() 600 clk = drm_dp_downstream_max_clock(dpcd, port_cap); in drm_dp_downstream_debug() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | fw.c | 1096 err = mlx4_QUERY_PORT(dev, i, dev_cap->port_cap + i); in mlx4_QUERY_DEV_CAP() 1147 dev_cap->local_ca_ack_delay, 128 << dev_cap->port_cap[1].ib_mtu, in mlx4_dev_cap_dump() 1148 dev_cap->port_cap[1].max_port_width); in mlx4_dev_cap_dump() 1173 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) in mlx4_QUERY_PORT() argument 1195 port_cap->max_vl = field >> 4; in mlx4_QUERY_PORT() 1197 port_cap->ib_mtu = field >> 4; in mlx4_QUERY_PORT() 1198 port_cap->max_port_width = field & 0xf; in mlx4_QUERY_PORT() 1200 port_cap->max_gids = 1 << (field & 0xf); in mlx4_QUERY_PORT() 1202 port_cap->max_pkeys = 1 << (field & 0xf); in mlx4_QUERY_PORT() 1222 port_cap->link_state = (field & 0x80) >> 7; in mlx4_QUERY_PORT() [all …]
|
D | main.c | 284 struct mlx4_port_cap *port_cap) in _mlx4_dev_port() argument 286 dev->caps.vl_cap[port] = port_cap->max_vl; in _mlx4_dev_port() 287 dev->caps.ib_mtu_cap[port] = port_cap->ib_mtu; in _mlx4_dev_port() 288 dev->phys_caps.gid_phys_table_len[port] = port_cap->max_gids; in _mlx4_dev_port() 289 dev->phys_caps.pkey_phys_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port() 293 dev->caps.gid_table_len[port] = port_cap->max_gids; in _mlx4_dev_port() 294 dev->caps.pkey_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port() 295 dev->caps.port_width_cap[port] = port_cap->max_port_width; in _mlx4_dev_port() 296 dev->caps.eth_mtu_cap[port] = port_cap->eth_mtu; in _mlx4_dev_port() 297 dev->caps.max_tc_eth = port_cap->max_tc_eth; in _mlx4_dev_port() [all …]
|
D | fw.h | 131 struct mlx4_port_cap port_cap[MLX4_MAX_PORTS + 1]; member 230 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap);
|
D | eq.c | 157 struct mlx4_port_cap port_cap; in mlx4_gen_slave_eqe() local 159 if (!mlx4_QUERY_PORT(dev, 1, &port_cap) && port_cap.link_state) in mlx4_gen_slave_eqe() 162 if (!mlx4_QUERY_PORT(dev, 2, &port_cap) && port_cap.link_state) in mlx4_gen_slave_eqe()
|