Home
last modified time | relevance | path

Searched refs:frb_cnt (Results 1 – 3 of 3) sorted by relevance

/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c2964 uint32_t frb_cnt = fsw_flow_route_buckets; in fsw_dp_ctor() local
2979 if (frb_cnt == 0) { in fsw_dp_ctor()
2980 frb_cnt = NX_FSW_FRB_HASHSZ; in fsw_dp_ctor()
2981 ASSERT(frb_cnt != 0); in fsw_dp_ctor()
3000 if ((frb_cnt & (frb_cnt - 1)) != 0) { in fsw_dp_ctor()
3001 frb_cnt--; in fsw_dp_ctor()
3002 frb_cnt |= (frb_cnt >> 1); in fsw_dp_ctor()
3003 frb_cnt |= (frb_cnt >> 2); in fsw_dp_ctor()
3004 frb_cnt |= (frb_cnt >> 4); in fsw_dp_ctor()
3005 frb_cnt |= (frb_cnt >> 8); in fsw_dp_ctor()
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_manager.c152 size_t frb_cnt, size_t frib_cnt) in flow_mgr_create() argument
160 ASSERT(frb_cnt != 0 && ((frb_cnt & (frb_cnt - 1)) == 0)); in flow_mgr_create()
194 fm->fm_route_buckets = flow_route_buckets_alloc(frb_cnt, &frb_sz, &frb_tot_sz); in flow_mgr_create()
200 *(size_t *)(uintptr_t)&fm->fm_route_buckets_cnt = frb_cnt; in flow_mgr_create()
H A Dflow_route.c130 flow_route_buckets_alloc(size_t frb_cnt, size_t *frb_sz, size_t *tot_sz) in flow_route_buckets_alloc() argument
141 *tot_sz = frb_tot_sz = (sizeof(void *) + (frb_cnt * (*frb_sz)) + cache_sz); in flow_route_buckets_alloc()
158 ASSERT(((intptr_t)frb + (frb_cnt * (*frb_sz))) <= in flow_route_buckets_alloc()
163 "(total %zu bytes, frb_buf 0x%llx) ALLOC", SK_KVA(frb), frb_cnt, in flow_route_buckets_alloc()