Lines Matching refs:index
307 int si_idx; /* sdeb_store_info (per host) xarray index */
330 int sqa_idx; /* index of sdebug_queue array */
331 int qc_idx; /* index of sdebug_queued_cmd array within sqa_idx */
332 int hc_idx; /* hostwide tag index */
502 * The following are overflow arrays for cdbs that "hit" the same index in
811 static int sdeb_first_idx = -1; /* invalid index ==> none created */
3366 static sector_t map_index_to_lba(unsigned long index)
3368 sector_t lba = index * sdebug_unmap_granularity;
3380 unsigned long index;
3383 index = lba_to_map_index(lba);
3384 mapped = test_bit(index, sip->map_storep);
3387 next = find_next_zero_bit(sip->map_storep, map_size, index);
3389 next = find_next_bit(sip->map_storep, map_size, index);
3402 unsigned long index = lba_to_map_index(lba);
3404 if (index < map_size)
3405 set_bit(index, sip->map_storep);
3407 lba = map_index_to_lba(index + 1);
3418 unsigned long index = lba_to_map_index(lba);
3420 if (lba == map_index_to_lba(index) &&
3422 index < map_size) {
3423 clear_bit(index, sip->map_storep);
3436 lba = map_index_to_lba(index + 1);
4815 pr_err("index %d too large\n", retval);
6973 * Returns store xarray new element index (idx) if >=0 else negated errno.