Home
last modified time | relevance | path

Searched refs:list_size (Results 1 – 8 of 8) sorted by relevance

/openbsd/src/usr.sbin/npppd/common/
Dslist.c76 (((_list)->first_idx + (_idx)) % (_list)->list_size)
81 : (_list)->list_size - (_list)->first_idx + (_idx))
85 (_list)->_memb = ((_list)->list_size + --((_list)->_memb)) \
86 % (_list)->list_size
89 (_list)->_memb = (++((_list)->_memb)) % (_list)->list_size
114 if (size > list->list_size) in slist_set_size()
115 return slist_grow0(list, size - list->list_size); in slist_set_size()
135 : (list->list_size - list->first_idx + list->last_idx); in slist_length()
146 if (slist_length(list) + 1 < list->list_size) in slist_grow0()
150 size_new = list->list_size + grow_sz; in slist_grow0()
[all …]
Dslist_test.c67 , l->list_size); in dump()
92 ASSERT(sl.list_size == 256); in test_01a()
195 ASSERT(sl.list_size == 512); /* The physical size is 512. */ in test_02()
199 ASSERT(sl.list_size == 768); /* The physical size is extended. */ in test_02()
223 ASSERT(sl.last_idx >= 0 && sl.last_idx < sl.list_size); in test_03()
225 ASSERT(sl.last_idx >= 0 && sl.last_idx < sl.list_size); in test_03()
303 sl.last_idx %= sl.list_size; in test_04()
Dslist.h34 int list_size; member
/openbsd/src/gnu/llvm/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp507 PythonList::PythonList(int list_size) { in PythonList() argument
508 *this = Take<PythonList>(PyList_New(list_size)); in PythonList()
DPythonDataObjects.h506 explicit PythonList(int list_size);
/openbsd/src/sys/dev/pci/drm/amd/amdgpu/
Dgfx_v8_0.c3876 int list_size, in gfx_v8_0_parse_ind_reg_list() argument
3887 for (; ind_offset < list_size; ind_offset++) { in gfx_v8_0_parse_ind_reg_list()
3932 int list_size; in gfx_v8_0_init_save_restore_list() local
3961 list_size = adev->gfx.rlc.reg_list_size_bytes >> 2; in gfx_v8_0_init_save_restore_list()
3962 list_size = list_size >> 1; in gfx_v8_0_init_save_restore_list()
3964 WREG32(mmRLC_GPM_SCRATCH_DATA, list_size); in gfx_v8_0_init_save_restore_list()
Dgfx_v9_0.c2738 int list_size, in gfx_v9_1_parse_ind_reg_list() argument
2747 for (; indirect_offset < list_size; indirect_offset++) { in gfx_v9_1_parse_ind_reg_list()
2781 int list_size = 0; in gfx_v9_1_init_rlc_save_restore_list() local
2846 list_size = adev->gfx.rlc.reg_list_size_bytes >> 2; in gfx_v9_1_init_rlc_save_restore_list()
2847 list_size = list_size >> 1; in gfx_v9_1_init_rlc_save_restore_list()
2850 WREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_GPM_SCRATCH_DATA), list_size); in gfx_v9_1_init_rlc_save_restore_list()
/openbsd/src/sys/dev/ic/
Daic79xx.c5182 bus_size_t list_size; in ahd_sglist_size() local
5184 list_size = sizeof(struct ahd_dma_seg) * AHD_NSEG; in ahd_sglist_size()
5186 list_size = sizeof(struct ahd_dma64_seg) * AHD_NSEG; in ahd_sglist_size()
5187 return (list_size); in ahd_sglist_size()