Lines Matching defs:idx
39 const int idx = u_bit_scan(&cache->bucket_mask);
40 struct vn_renderer_shmem_bucket *bucket = &cache->buckets[idx];
59 const uint32_t idx = ffsll(size) - 1;
60 if (unlikely(idx >= ARRAY_SIZE(cache->buckets)))
63 *out_idx = idx;
64 return &cache->buckets[idx];
73 const int idx = u_bit_scan(&bucket_mask);
74 struct vn_renderer_shmem_bucket *bucket = &cache->buckets[idx];
99 int idx;
101 choose_bucket(cache, shmem->mmap_size, &idx);
113 cache->bucket_mask |= 1 << idx;
124 int idx;
125 struct vn_renderer_shmem_bucket *bucket = choose_bucket(cache, size, &idx);
137 if (cache->bucket_mask & (1 << idx)) {
144 cache->bucket_mask &= ~(1 << idx);
169 const int idx = u_bit_scan(&bucket_mask);
170 const struct vn_renderer_shmem_bucket *bucket = &cache->buckets[idx];
176 vn_log(NULL, " buckets[%d]: %d shmems", idx, count);