Lines Matching defs:slot
257 struct mempool_slot *slot;
260 if (!(slot = pa_flist_pop(p->free_slots))) {
268 slot = (struct mempool_slot*) ((uint8_t*) p->memory.ptr + (p->block_size * (size_t) idx));
270 if (!slot) {
280 /* VALGRIND_MALLOCLIKE_BLOCK(slot, p->block_size, 0, 0); */
284 return slot;
288 static inline void* mempool_slot_data(struct mempool_slot *slot) {
289 return slot;
328 struct mempool_slot *slot;
348 if (!(slot = mempool_allocate_slot(p)))
351 b = mempool_slot_data(slot);
357 if (!(slot = mempool_allocate_slot(p)))
364 pa_atomic_ptr_store(&b->data, mempool_slot_data(slot));
607 struct mempool_slot *slot;
610 pa_assert_se(slot = mempool_slot_by_ptr(b->pool, pa_atomic_ptr_load(&b->data)));
616 /* VALGRIND_FREELIKE_BLOCK(slot, b->pool->block_size); */
621 * to fit in, hence try harder if pushing this slot into
623 while (pa_flist_push(b->pool->free_slots, slot) < 0)
677 struct mempool_slot *slot;
679 if ((slot = mempool_allocate_slot(b->pool))) {
683 new_data = mempool_slot_data(slot);
818 "%s, maximum usable slot size is %lu",
868 struct mempool_slot *slot;
871 slot = (struct mempool_slot*) ((uint8_t*) p->memory.ptr + (p->block_size * (size_t) i));
872 b = mempool_slot_data(slot);
924 struct mempool_slot *slot;
931 while ((slot = pa_flist_pop(p->free_slots)))
932 while (pa_flist_push(list, slot) < 0)
935 while ((slot = pa_flist_pop(list))) {
936 pa_shm_punch(&p->memory, (size_t) ((uint8_t*) slot - (uint8_t*) p->memory.ptr), p->block_size);
938 while (pa_flist_push(p->free_slots, slot))
1375 struct memexport_slot *slot, *next;
1381 for (slot = e->used_slots; slot; slot = next) {
1383 next = slot->next;
1385 if (slot->block->type != PA_MEMBLOCK_IMPORTED ||
1386 slot->block->per_type.imported.segment->import != i)
1389 idx = (uint32_t) (slot - e->slots + e->baseidx);
1422 struct memexport_slot *slot;
1440 slot = e->free_slots;
1441 PA_LLIST_REMOVE(struct memexport_slot, e->free_slots, slot);
1443 slot = &e->slots[e->n_init++];
1450 PA_LLIST_PREPEND(struct memexport_slot, e->used_slots, slot);
1451 slot->block = b;
1452 *block_id = (uint32_t) (slot - e->slots + e->baseidx);