Lines Matching refs:port_cap
1103 err = mlx4_QUERY_PORT(dev, i, dev_cap->port_cap + i); in mlx4_QUERY_DEV_CAP()
1154 dev_cap->local_ca_ack_delay, 128 << dev_cap->port_cap[1].ib_mtu, in mlx4_dev_cap_dump()
1155 dev_cap->port_cap[1].max_port_width); in mlx4_dev_cap_dump()
1180 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) in mlx4_QUERY_PORT() argument
1202 port_cap->max_vl = field >> 4; in mlx4_QUERY_PORT()
1204 port_cap->ib_mtu = field >> 4; in mlx4_QUERY_PORT()
1205 port_cap->max_port_width = field & 0xf; in mlx4_QUERY_PORT()
1207 port_cap->max_gids = 1 << (field & 0xf); in mlx4_QUERY_PORT()
1209 port_cap->max_pkeys = 1 << (field & 0xf); in mlx4_QUERY_PORT()
1229 port_cap->link_state = (field & 0x80) >> 7; in mlx4_QUERY_PORT()
1230 port_cap->supported_port_types = field & 3; in mlx4_QUERY_PORT()
1231 port_cap->suggested_type = (field >> 3) & 1; in mlx4_QUERY_PORT()
1232 port_cap->default_sense = (field >> 4) & 1; in mlx4_QUERY_PORT()
1233 port_cap->dmfs_optimized_state = (field >> 5) & 1; in mlx4_QUERY_PORT()
1235 port_cap->ib_mtu = field & 0xf; in mlx4_QUERY_PORT()
1237 port_cap->max_port_width = field & 0xf; in mlx4_QUERY_PORT()
1239 port_cap->max_gids = 1 << (field >> 4); in mlx4_QUERY_PORT()
1240 port_cap->max_pkeys = 1 << (field & 0xf); in mlx4_QUERY_PORT()
1242 port_cap->max_vl = field & 0xf; in mlx4_QUERY_PORT()
1243 port_cap->max_tc_eth = field >> 4; in mlx4_QUERY_PORT()
1245 port_cap->log_max_macs = field & 0xf; in mlx4_QUERY_PORT()
1246 port_cap->log_max_vlans = field >> 4; in mlx4_QUERY_PORT()
1247 MLX4_GET(port_cap->eth_mtu, outbox, QUERY_PORT_ETH_MTU_OFFSET); in mlx4_QUERY_PORT()
1248 MLX4_GET(port_cap->def_mac, outbox, QUERY_PORT_MAC_OFFSET); in mlx4_QUERY_PORT()
1250 port_cap->trans_type = field32 >> 24; in mlx4_QUERY_PORT()
1251 port_cap->vendor_oui = field32 & 0xffffff; in mlx4_QUERY_PORT()
1252 MLX4_GET(port_cap->wavelength, outbox, QUERY_PORT_WAVELENGTH_OFFSET); in mlx4_QUERY_PORT()
1253 MLX4_GET(port_cap->trans_code, outbox, QUERY_PORT_TRANS_CODE_OFFSET); in mlx4_QUERY_PORT()
1455 struct mlx4_port_cap port_cap; in mlx4_QUERY_PORT_wrapper() local
1457 err = mlx4_QUERY_PORT(dev, other_port, &port_cap); in mlx4_QUERY_PORT_wrapper()
1460 port_type |= (port_cap.link_state << 7); in mlx4_QUERY_PORT_wrapper()