Lines Matching refs:entry_count
221 uint32_t entry_count; /*>> number of entries added to the array */ member
294 if (va->entry_count < va->array_count) { in ocs_varray_add()
295 va->array[va->entry_count++] = entry; in ocs_varray_add()
361 if (++va->next_index >= va->entry_count) { in _ocs_varray_iter_next()
412 rc = va->entry_count; in ocs_varray_get_count()
419 uint32_t entry_count; /*<< entry count */ member
440 ocs_cbuf_alloc(ocs_os_handle_t os, uint32_t entry_count) in ocs_cbuf_alloc() argument
450 cbuf->entry_count = entry_count; in ocs_cbuf_alloc()
457 ocs_sem_init(&cbuf->cbuf_psem, cbuf->entry_count, "cbuf:%p", cbuf); in ocs_cbuf_alloc()
459 cbuf->array = ocs_malloc(os, entry_count * sizeof(*cbuf->array), OCS_M_NOWAIT | OCS_M_ZERO); in ocs_cbuf_alloc()
482 ocs_free(cbuf->os, cbuf->array, sizeof(*cbuf->array) * cbuf->entry_count); in ocs_cbuf_free()
508 if (unlikely(++cbuf->cidx >= cbuf->entry_count)) { in ocs_cbuf_get()
535 if (unlikely(++cbuf->pidx >= cbuf->entry_count)) { in ocs_cbuf_put()
560 uint32_t count = MIN(ocs_array_get_count(array), cbuf->entry_count); in ocs_cbuf_prime()
724 uint32_t entry_count = 0; in ocs_ddump_queue_entries() local
729 entry_count = length; in ocs_ddump_queue_entries()
732 entry_count = qentries; in ocs_ddump_queue_entries()
741 for (i = 0; i < entry_count; i++){ in ocs_ddump_queue_entries()