Lines Matching refs:index
317 int si_idx; /* sdeb_store_info (per host) xarray index */
511 * The following are overflow arrays for cdbs that "hit" the same index in
820 static int sdeb_first_idx = -1; /* invalid index ==> none created */
3505 static sector_t map_index_to_lba(unsigned long index)
3507 sector_t lba = index * sdebug_unmap_granularity;
3519 unsigned long index;
3522 index = lba_to_map_index(lba);
3523 mapped = test_bit(index, sip->map_storep);
3526 next = find_next_zero_bit(sip->map_storep, map_size, index);
3528 next = find_next_bit(sip->map_storep, map_size, index);
3541 unsigned long index = lba_to_map_index(lba);
3543 if (index < map_size)
3544 set_bit(index, sip->map_storep);
3546 lba = map_index_to_lba(index + 1);
3557 unsigned long index = lba_to_map_index(lba);
3559 if (lba == map_index_to_lba(index) &&
3561 index < map_size) {
3562 clear_bit(index, sip->map_storep);
3575 lba = map_index_to_lba(index + 1);
7109 * Returns store xarray new element index (idx) if >=0 else negated errno.