Lines Matching refs:start

164 ccp_bitmap_set(unsigned long *map, unsigned int start, int len)  in ccp_bitmap_set()  argument
166 unsigned long *p = map + WORD_OFFSET(start); in ccp_bitmap_set()
167 const unsigned int size = start + len; in ccp_bitmap_set()
168 int bits_to_set = BITS_PER_WORD - (start % BITS_PER_WORD); in ccp_bitmap_set()
169 unsigned long mask_to_set = CCP_BITMAP_FIRST_WORD_MASK(start); in ccp_bitmap_set()
185 ccp_bitmap_clear(unsigned long *map, unsigned int start, int len) in ccp_bitmap_clear() argument
187 unsigned long *p = map + WORD_OFFSET(start); in ccp_bitmap_clear()
188 const unsigned int size = start + len; in ccp_bitmap_clear()
189 int bits_to_clear = BITS_PER_WORD - (start % BITS_PER_WORD); in ccp_bitmap_clear()
190 unsigned long mask_to_clear = CCP_BITMAP_FIRST_WORD_MASK(start); in ccp_bitmap_clear()
209 unsigned long start, in _ccp_find_next_bit() argument
214 if (!nbits || start >= nbits) in _ccp_find_next_bit()
217 tmp = addr[start / BITS_PER_WORD] ^ invert; in _ccp_find_next_bit()
220 tmp &= CCP_BITMAP_FIRST_WORD_MASK(start); in _ccp_find_next_bit()
221 start = ccp_round_down(start, BITS_PER_WORD); in _ccp_find_next_bit()
224 start += BITS_PER_WORD; in _ccp_find_next_bit()
225 if (start >= nbits) in _ccp_find_next_bit()
228 tmp = addr[start / BITS_PER_WORD] ^ invert; in _ccp_find_next_bit()
231 return RTE_MIN(start + (ffs(tmp) - 1), nbits); in _ccp_find_next_bit()
260 unsigned long start, in ccp_bitmap_find_next_zero_area() argument
266 index = ccp_find_next_zero_bit(map, size, start); in ccp_bitmap_find_next_zero_area()
273 start = i + 1; in ccp_bitmap_find_next_zero_area()
283 int start; in ccp_lsb_alloc() local
287 start = (uint32_t)ccp_bitmap_find_next_zero_area(cmd_q->lsbmap, in ccp_lsb_alloc()
290 if (start < LSB_SIZE) { in ccp_lsb_alloc()
291 ccp_bitmap_set(cmd_q->lsbmap, start, count); in ccp_lsb_alloc()
292 return start + cmd_q->lsb * LSB_SIZE; in ccp_lsb_alloc()
301 start = (uint32_t)ccp_bitmap_find_next_zero_area(ccp->lsbmap, in ccp_lsb_alloc()
304 if (start <= MAX_LSB_CNT * LSB_SIZE) { in ccp_lsb_alloc()
305 ccp_bitmap_set(ccp->lsbmap, start, count); in ccp_lsb_alloc()
307 return start * LSB_ITEM_SIZE; in ccp_lsb_alloc()
318 unsigned int start, in ccp_lsb_free() argument
321 int lsbno = start / LSB_SIZE; in ccp_lsb_free()
323 if (!start) in ccp_lsb_free()
328 ccp_bitmap_clear(cmd_q->lsbmap, start % LSB_SIZE, count); in ccp_lsb_free()
334 ccp_bitmap_clear(ccp->lsbmap, start, count); in ccp_lsb_free()