Searched defs:ib_ah_attr (Results 1 - 3 of 3) sorted by relevance

/drivers/infiniband/hw/mlx4/
H A Dqp.c1242 static int _mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah,
3013 static void to_ib_ah_attr(struct mlx4_ib_dev *ibdev, struct ib_ah_attr *ib_ah_attr, argument
3019 memset(ib_ah_attr, 0, sizeof *ib_ah_attr);
3020 ib_ah_attr->port_num = path->sched_queue & 0x40 ? 2 : 1;
3022 if (ib_ah_attr->port_num == 0 || ib_ah_attr->port_num > dev->caps.num_ports)
3025 is_eth = rdma_port_get_link_layer(&ibdev->ib_dev, ib_ah_attr->port_num) ==
3028 ib_ah_attr
[all...]
/drivers/infiniband/hw/mthca/
H A Dmthca_qp.c396 static void to_ib_ah_attr(struct mthca_dev *dev, struct ib_ah_attr *ib_ah_attr, argument
399 memset(ib_ah_attr, 0, sizeof *ib_ah_attr);
400 ib_ah_attr->port_num = (be32_to_cpu(path->port_pkey) >> 24) & 0x3;
402 if (ib_ah_attr->port_num == 0 || ib_ah_attr->port_num > dev->limits.num_ports)
405 ib_ah_attr->dlid = be16_to_cpu(path->rlid);
406 ib_ah_attr->sl = be32_to_cpu(path->sl_tclass_flowlabel) >> 28;
407 ib_ah_attr
[all...]
/drivers/infiniband/hw/mlx5/
H A Dqp.c1302 static int mlx5_set_path(struct mlx5_ib_dev *dev, const struct ib_ah_attr *ah,
2876 static void to_ib_ah_attr(struct mlx5_ib_dev *ibdev, struct ib_ah_attr *ib_ah_attr, argument
2881 memset(ib_ah_attr, 0, sizeof(*ib_ah_attr));
2882 ib_ah_attr->port_num = path->port;
2884 if (ib_ah_attr->port_num == 0 ||
2885 ib_ah_attr->port_num > dev->caps.gen.num_ports)
2888 ib_ah_attr->sl = path->sl & 0xf;
2890 ib_ah_attr
[all...]

Completed in 3753 milliseconds