Lines Matching defs:index
92 /* The location of the specific index starts from bit number 4
111 static __be64 get_cached_alias_guid(struct mlx4_ib_dev *dev, int port, int index)
113 if (index >= NUM_ALIAS_GUID_PER_PORT) {
114 pr_err("%s: ERROR: asked for index:%d\n", __func__, index);
117 return *(__be64 *)&dev->sriov.demux[port - 1].guid_cache[index];
121 ib_sa_comp_mask mlx4_ib_get_aguid_comp_mask_from_ix(int index)
123 return IB_SA_COMP_MASK(4 + index);
131 int index = slave % 8;
144 all_recs[GUID_REC_SIZE * index];
156 all_recs[GUID_REC_SIZE * index] = required_guid;
159 |= mlx4_ib_get_aguid_comp_mask_from_ix(index);
168 guids_retry_schedule[index] = 0;
183 * block_number - the index of the block (16 blocks available)
213 /* the location of the specific index runs from bits 4..11 */
452 static void invalidate_guid_record(struct mlx4_ib_dev *dev, u8 port, int index)
458 dev->sriov.alias_guid.ports_guid[port - 1].all_rec_per_port[index].status
465 all_rec_per_port[index].all_recs[GUID_REC_SIZE * i];
473 (!index && !i))
478 all_rec_per_port[index].guid_indexes |= comp_mask;
480 all_rec_per_port[index].guid_indexes)
482 all_rec_per_port[index].status = MLX4_GUID_INFO_STATUS_IDLE;
497 int index = rec->block_num;
525 callback_context->block_num = index;
532 guid_info_rec.block_num = index;
569 invalidate_guid_record(dev, port, index);
688 /* return index of record that should be updated based on lowest