Lines Matching defs:port

150 /* used for INIT/CLOSE port logic */
265 to_mibqp(qp)->port = to_mibqp(qp)->alt_port;
543 mutex_lock(&dev->counters_table[qp->port - 1].mutex);
546 mutex_unlock(&dev->counters_table[qp->port - 1].mutex);
1034 tnl_init->port))
1041 + tnl_init->proxy_qp_type * 2 + tnl_init->port - 1;
1610 qp->port = init_attr->port_num;
1666 mlx4_CLOSE_PORT(dev->dev, mqp->port);
1669 dev->qp1_proxy[mqp->port - 1] == mqp) {
1670 mutex_lock(&dev->qp1_proxy_lock[mqp->port - 1]);
1671 dev->qp1_proxy[mqp->port - 1] = NULL;
1672 mutex_unlock(&dev->qp1_proxy_lock[mqp->port - 1]);
1767 static void mlx4_set_sched(struct mlx4_qp_path *path, u8 port)
1769 path->sched_queue = (path->sched_queue & 0xbf) | ((port - 1) << 6);
1775 struct mlx4_roce_smac_vlan_info *smac_info, u8 port)
1799 if (real_sgid_index >= dev->dev->caps.gid_table_len[port]) {
1801 real_sgid_index, dev->dev->caps.gid_table_len[port] - 1);
1819 ((port - 1) << 6) | ((rdma_ah_get_sl(ah) & 7) << 3);
1827 err = mlx4_register_vlan(dev->dev, port, vlan_tag, &vidx);
1832 smac_info->candidate_vlan_port = port;
1840 err = mlx4_register_vlan(dev->dev, port, vlan_tag, &vidx);
1845 smac_info->candidate_vlan_port = port;
1867 smac_index = mlx4_register_mac(dev->dev, port, smac);
1871 smac_info->candidate_smac_port = port;
1884 ((port - 1) << 6) | ((rdma_ah_get_sl(ah) & 0xf) << 2);
1893 struct mlx4_qp_path *path, u8 port,
1899 path, &mqp->pri, port);
1906 struct mlx4_qp_path *path, u8 port)
1911 path, &mqp->alt, port);
1921 ge->port = qp->port;
1933 u64_mac = atomic64_read(&dev->iboe.mac[qp->port - 1]);
1935 context->pri_path.sched_queue = MLX4_IB_DEFAULT_SCHED_QUEUE | ((qp->port - 1) << 6);
1937 smac_index = mlx4_register_mac(dev->dev, qp->port, u64_mac);
1941 qp->pri.candidate_smac_port = qp->port;
1956 if (rdma_port_get_link_layer(&dev->ib_dev, qp->port) !=
1976 mutex_lock(&dev->counters_table[qp->port - 1].mutex);
1978 &dev->counters_table[qp->port - 1].counters_list);
1979 mutex_unlock(&dev->counters_table[qp->port - 1].mutex);
2019 * WQ's is associated to a port according to the RSS QP it is
2021 * In case the WQ is associated to a different port by another
2024 if ((wq->rss_usecnt > 0) && (wq->port != port_num)) {
2029 wq->port = port_num;
2155 rdma_port_get_link_layer(&dev->ib_dev, qp->port) ==
2253 dev->counters_table[qp->port - 1].default_counter;
2293 attr_mask & IB_QP_PORT ? attr->port_num : qp->port;
2444 context->pri_path.sched_queue = (qp->port - 1) << 6;
2456 if (rdma_port_get_link_layer(&dev->ib_dev, qp->port) ==
2471 dev->qp1_proxy[qp->port - 1] = qp;
2488 &dev->ib_dev, qp->port) ==
2548 qp->port = attr->port_num;
2563 if (mlx4_INIT_PORT(dev->dev, qp->port))
2564 pr_warn("INIT_PORT failed for port %d\n",
2565 qp->port);
2569 mlx4_CLOSE_PORT(dev->dev, qp->port);
2756 pr_debug("qpn 0x%x: invalid port number (%d) specified "
2769 int p = attr_mask & IB_QP_PORT ? attr->port_num : qp->port;
2910 err = ib_get_cached_pkey(ib_dev, qp->port, 0, &pkey);
2918 cpu_to_be32(mdev->dev->caps.spec_qps[qp->port - 1].qp0_tunnel);
3041 is_eth = rdma_port_get_link_layer(qp->ibqp.device, qp->port) == IB_LINK_LAYER_ETHERNET;
3055 err = fill_gid_by_hw_index(ibdev, qp->port,
3107 .demux[qp->port - 1]
3112 ->sriov.demux[qp->port - 1]
3199 qp->port);
3207 err = ib_get_cached_pkey(ib_dev, qp->port, sqp->pkey_index,
3210 err = ib_get_cached_pkey(ib_dev, qp->port, wr->pkey_index,
3379 int port = *((u8 *) &av->ib.port_pd) & 0x3;
3389 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp1_tunnel);
3391 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp0_tunnel);
3550 if (!fill_gid_by_hw_index(mdev, qp->port,
4061 qp_attr->port_num = qp->port;
4225 attr.port_num = qp->port;
4303 * WQ, so we can apply its port on the WQ.