Lines Matching refs:scfsp
206 struct scf_selector *scfsp = &scf_sel_array[scf_sel_array_len]; in scf_sel_add() local
217 scfsp->scfs_weight = scf_sel_totweight; in scf_sel_add()
218 scfsp->scfs_prim = prim; in scf_sel_add()
219 scfsp->scfs_wait = wait; in scf_sel_add()
228 struct scf_selector *scfsp; in scf_sel_dump() local
232 scfsp = &scf_sel_array[i]; in scf_sel_dump()
233 w = (scfsp->scfs_weight - oldw) * 100000 / scf_sel_totweight; in scf_sel_dump()
235 scf_prim_name[scfsp->scfs_prim], in scf_sel_dump()
236 scfsp->scfs_wait ? "wait" : "nowait"); in scf_sel_dump()
237 oldw = scfsp->scfs_weight; in scf_sel_dump()
319 struct scf_selector *scfsp = scf_sel_rand(trsp); in scftorture_invoke_one() local
325 if (scfsp->scfs_prim == SCF_PRIM_SINGLE || scfsp->scfs_wait) { in scftorture_invoke_one()
332 scfcp->scfc_wait = scfsp->scfs_wait; in scftorture_invoke_one()
337 switch (scfsp->scfs_prim) { in scftorture_invoke_one()
348 if (scfsp->scfs_wait) in scftorture_invoke_one()
357 ret = smp_call_function_single(cpu, scf_handler_1, (void *)scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
359 if (scfsp->scfs_wait) in scftorture_invoke_one()
396 if (scfsp->scfs_wait) in scftorture_invoke_one()
404 smp_call_function_many(cpu_online_mask, scf_handler, scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
407 if (scfsp->scfs_wait) in scftorture_invoke_one()
415 smp_call_function(scf_handler, scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
422 if (scfcp && scfsp->scfs_wait) { in scftorture_invoke_one()
423 if (WARN_ON_ONCE((num_online_cpus() > 1 || scfsp->scfs_prim == SCF_PRIM_SINGLE) && in scftorture_invoke_one()
425 pr_warn("%s: Memory-ordering failure, scfs_prim: %d.\n", __func__, scfsp->scfs_prim); in scftorture_invoke_one()