Lines Matching refs:entry_count
223 uint32_t entry_count; /*>> number of entries added to the array */
296 if (va->entry_count < va->array_count) {
297 va->array[va->entry_count++] = entry;
363 if (++va->next_index >= va->entry_count) {
414 rc = va->entry_count;
421 uint32_t entry_count; /*<< entry count */
437 * @param entry_count count of entries
442 ocs_cbuf_alloc(ocs_os_handle_t os, uint32_t entry_count)
452 cbuf->entry_count = entry_count;
459 ocs_sem_init(&cbuf->cbuf_psem, cbuf->entry_count, "cbuf:%p", cbuf);
461 cbuf->array = ocs_malloc(os, entry_count * sizeof(*cbuf->array), OCS_M_NOWAIT | OCS_M_ZERO);
484 ocs_free(cbuf->os, cbuf->array, sizeof(*cbuf->array) * cbuf->entry_count);
510 if (unlikely(++cbuf->cidx >= cbuf->entry_count)) {
537 if (unlikely(++cbuf->pidx >= cbuf->entry_count)) {
562 uint32_t count = MIN(ocs_array_get_count(array), cbuf->entry_count);
726 uint32_t entry_count = 0;
731 entry_count = length;
734 entry_count = qentries;
743 for (i = 0; i < entry_count; i++){