Lines Matching defs:index
91 /* The location of the specific index starts from bit number 4
110 static __be64 get_cached_alias_guid(struct mlx4_ib_dev *dev, int port, int index)
112 if (index >= NUM_ALIAS_GUID_PER_PORT) {
113 pr_err("%s: ERROR: asked for index:%d\n", __func__, index);
116 return *(__be64 *)&dev->sriov.demux[port - 1].guid_cache[index];
120 ib_sa_comp_mask mlx4_ib_get_aguid_comp_mask_from_ix(int index)
122 return IB_SA_COMP_MASK(4 + index);
130 int index = slave % 8;
143 all_recs[GUID_REC_SIZE * index];
155 all_recs[GUID_REC_SIZE * index] = required_guid;
158 |= mlx4_ib_get_aguid_comp_mask_from_ix(index);
167 guids_retry_schedule[index] = 0;
182 * block_number - the index of the block (16 blocks available)
212 /* the location of the specific index runs from bits 4..11 */
451 static void invalidate_guid_record(struct mlx4_ib_dev *dev, u8 port, int index)
457 dev->sriov.alias_guid.ports_guid[port - 1].all_rec_per_port[index].status
464 all_rec_per_port[index].all_recs[GUID_REC_SIZE * i];
472 (!index && !i))
477 all_rec_per_port[index].guid_indexes |= comp_mask;
479 all_rec_per_port[index].guid_indexes)
481 all_rec_per_port[index].status = MLX4_GUID_INFO_STATUS_IDLE;
496 int index = rec->block_num;
524 callback_context->block_num = index;
531 guid_info_rec.block_num = index;
568 invalidate_guid_record(dev, port, index);
687 /* return index of record that should be updated based on lowest