Lines Matching refs:blade_id
140 static void gru_load_kernel_context(struct gru_blade_state *bs, int blade_id) in gru_load_kernel_context() argument
157 bs->bs_kgts->ts_user_blade_id = blade_id; in gru_load_kernel_context()
163 ncpus = uv_blade_nr_possible_cpus(blade_id); in gru_load_kernel_context()
216 static struct gru_blade_state *gru_lock_kernel_context(int blade_id) in gru_lock_kernel_context() argument
223 bid = blade_id < 0 ? uv_numa_blade_id() : blade_id; in gru_lock_kernel_context()
228 if (blade_id < 0 && bid != uv_numa_blade_id()) { in gru_lock_kernel_context()
242 static void gru_unlock_kernel_context(int blade_id) in gru_unlock_kernel_context() argument
246 bs = gru_base[blade_id]; in gru_unlock_kernel_context()
290 unsigned long gru_reserve_async_resources(int blade_id, int cbrs, int dsr_bytes, in gru_reserve_async_resources() argument
297 bs = gru_base[blade_id]; in gru_reserve_async_resources()
312 ret = ASYNC_BID_TO_HAN(blade_id); in gru_reserve_async_resources()
362 int blade_id = ASYNC_HAN_TO_BID(han); in gru_lock_async_resource() local
365 gru_lock_kernel_context(blade_id); in gru_lock_async_resource()
366 ncpus = uv_blade_nr_possible_cpus(blade_id); in gru_lock_async_resource()
381 int blade_id = ASYNC_HAN_TO_BID(han); in gru_unlock_async_resource() local
383 gru_unlock_kernel_context(blade_id); in gru_unlock_async_resource()
1046 int blade_id = 0; in quicktest2() local
1060 han = gru_reserve_async_resources(blade_id, numcb, 0, &cmp); in quicktest2()