Searched refs:plh (Results 1 – 1 of 1) sorted by relevance
258 #define plh_lock(plh) while(!os_atomic_cmpxchg(&(plh)->plh_lock, 0, 1, acquire)) { loop_wait(); } argument259 #define plh_unlock(plh) os_atomic_store(&(plh)->plh_lock, 0, release); argument2962 struct port_label_hash *plh = &stackshot_ctx.sc_plh; in stackshot_plh_est_size() local2969 return SIZE_EST(size * sizeof(*plh->plh_array)) + in stackshot_plh_est_size()2970 SIZE_EST(size * sizeof(*plh->plh_chains)) + in stackshot_plh_est_size()2972 SIZE_EST((1ul << STACKSHOT_PLH_SHIFT) * sizeof(*plh->plh_hash)); in stackshot_plh_est_size()2988 struct port_label_hash plh = { in stackshot_plh_setup() local3005 size = plh.plh_size; in stackshot_plh_setup()3009 plh.plh_array = stackshot_alloc_with_size(size * sizeof(*plh.plh_array), &error); in stackshot_plh_setup()3010 plh.plh_chains = stackshot_alloc_with_size(size * sizeof(*plh.plh_chains), &error); in stackshot_plh_setup()[all …]