Lines Matching refs:index
417 return attr->index;
833 int __mlx4_ib_query_gid(struct ib_device *ibdev, u32 port, int index,
862 if (index) {
863 /* For any index > 0, return the null guid */
872 in_mad->attr_mod = cpu_to_be32(index / 8);
879 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
889 static int mlx4_ib_query_gid(struct ib_device *ibdev, u32 port, int index,
893 return __mlx4_ib_query_gid(ibdev, port, index, gid, 0);
958 int __mlx4_ib_query_pkey(struct ib_device *ibdev, u32 port, u16 index,
973 in_mad->attr_mod = cpu_to_be32(index / 32);
983 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
991 static int mlx4_ib_query_pkey(struct ib_device *ibdev, u32 port, u16 index,
994 return __mlx4_ib_query_pkey(ibdev, port, index, pkey, 0);
1297 mlx4_counter_free(ibdev->dev, counter->index);
2124 u32 port, int index)
2741 new_counter_index->index = counter_index;
2746 pr_info("counter index %d for port %d allocated %d\n",
2758 new_counter_index->index = counter_index;