Searched refs:nslots (Results 1 - 7 of 7) sorted by relevance

/barrelfish-2018-10-04/lib/barrelfish/slot_alloc/
H A Drange_slot_alloc.c21 * \param nslots Number of slots to allocate
24 errval_t range_slot_alloc(struct range_slot_allocator *alloc, cslot_t nslots, argument
41 if (walk->space >= nslots && walk->slot + nslots <= L2_CNODE_SLOTS) {
66 walk->slot += nslots;
67 walk->space -= nslots;
87 * \param nslots Number of slots to insert
91 static errval_t insert_after(struct range_slot_allocator *alloc, size_t nslots, argument
97 walk->space += nslots;
107 walk->next->space = nslots;
121 insert_before(struct range_slot_allocator *alloc, size_t nslots, cslot_t slot, struct cnode_meta *prev, struct cnode_meta *walk) argument
173 range_slot_free(struct range_slot_allocator *alloc, struct capref cap, cslot_t nslots) argument
232 range_slot_alloc_init(struct range_slot_allocator *ret, cslot_t nslots, cslot_t *retslots) argument
[all...]
H A Dsingle_slot_alloc.c173 if (newslotcount <= this->a.nslots) {
175 __FUNCTION__, newslotcount, this->a.nslots);
179 assert(newslotcount > this->a.nslots);
181 cslot_t grow = newslotcount - this->a.nslots;
192 err = free_slots(this, this->a.nslots, grow, &this->a.mutex);
198 this->a.nslots = newslotcount;
205 cslot_t nslots, void *buf, size_t buflen)
210 ret->a.space = nslots;
211 ret->a.nslots = nslots;
203 single_slot_alloc_init_raw(struct single_slot_allocator *ret, struct capref cap, struct cnoderef cnode, cslot_t nslots, void *buf, size_t buflen) argument
246 single_slot_alloc_init(struct single_slot_allocator *ret, cslot_t nslots, cslot_t *retslots) argument
[all...]
H A Dslot_alloc.c88 cslot_t nslots = sca->a.nslots; local
89 uint8_t rootbits = log2ceil(nslots);
90 assert((1UL << rootbits) == nslots);
91 assert(nslots >= L2_CNODE_SLOTS);
109 NULL, nslots * 2);
134 return single_slot_alloc_resize(sca, nslots * 2);
190 def->a.nslots = SLOT_ALLOC_CNODE_SLOTS;
H A Dtwolevel_slot_alloc.c53 ca->space = ca->nslots;
80 err = cnode_create_raw(cap, &cnode, ObjType_L2CNode, ca->nslots, NULL);
123 mca->a.nslots, buf, bufsize);
173 * needs to be >= sizeof(struct cnode_meta) * nslots / 2. Don't ask me why! -AB
188 ret->a.nslots = L2_CNODE_SLOTS;
/barrelfish-2018-10-04/lib/mm/
H A Dslot_alloc.c71 errval_t slot_alloc_prealloc(void *inst, uint64_t nslots, struct capref *ret) argument
74 assert(nslots <= (1UL << this->maxslotbits));
77 if (this->meta[this->current].free < nslots) {
82 if (this->meta[this->current].free < nslots) {
88 this->meta[this->current].cap.slot += nslots;
89 this->meta[this->current].free -= nslots;
136 errval_t slot_alloc_basecn(void *inst, uint64_t nslots, struct capref *ret) argument
141 if (nslots > this->free) {
169 assert(nslots <= this->free);
171 this->cap.slot += nslots;
178 slot_alloc_dynamic(void *alloc, uint64_t nslots, struct capref *ret) argument
[all...]
/barrelfish-2018-10-04/include/barrelfish/
H A Dslot_alloc.h30 cslot_t nslots; ///< Slots to grow allocator by member in struct:slot_allocator
76 #define SINGLE_SLOT_ALLOC_BUFLEN(nslots) \
77 (SLAB_STATIC_SIZE(nslots / 2, sizeof(struct cnode_meta)))
80 cslot_t nslots, cslot_t *retslots);
83 cslot_t nslots, void *buf, size_t buflen);
108 errval_t range_slot_alloc(struct range_slot_allocator *alloc, cslot_t nslots,
111 cslot_t nslots);
113 cslot_t nslots, cslot_t *retslots);
/barrelfish-2018-10-04/include/mm/
H A Dslot_alloc.h25 typedef errval_t (*slot_alloc_t)(void *inst, uint64_t nslots, struct capref *ret);
29 errval_t slot_alloc_prealloc(void *inst, uint64_t nslots, struct capref *ret);
30 errval_t slot_alloc_basecn(void *inst, uint64_t nslots, struct capref *ret);
31 errval_t slot_alloc_dynamic(void *inst, uint64_t nslots, struct capref *ret);

Completed in 59 milliseconds