Lines Matching refs:index
419 return attr->index;
835 int __mlx4_ib_query_gid(struct ib_device *ibdev, u8 port, int index,
864 if (index) {
865 /* For any index > 0, return the null guid */
874 in_mad->attr_mod = cpu_to_be32(index / 8);
881 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
891 static int mlx4_ib_query_gid(struct ib_device *ibdev, u8 port, int index,
895 return __mlx4_ib_query_gid(ibdev, port, index, gid, 0);
959 int __mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index,
974 in_mad->attr_mod = cpu_to_be32(index / 32);
984 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
992 static int mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey)
994 return __mlx4_ib_query_pkey(ibdev, port, index, pkey, 0);
1297 mlx4_counter_free(ibdev->dev, counter->index);
2117 u8 port, int index)
2759 new_counter_index->index = counter_index;
2764 pr_info("counter index %d for port %d allocated %d\n",
2774 new_counter_index->index = counter_index;