Lines Matching refs:scfcp
247 struct scf_check *scfcp = scfc_in; in scf_handler() local
249 if (likely(scfcp)) { in scf_handler()
250 WRITE_ONCE(scfcp->scfc_out, false); // For multiple receivers. in scf_handler()
251 if (WARN_ON_ONCE(unlikely(!READ_ONCE(scfcp->scfc_in)))) in scf_handler()
275 if (unlikely(!scfcp)) in scf_handler()
277 if (scfcp->scfc_wait) in scf_handler()
278 WRITE_ONCE(scfcp->scfc_out, true); in scf_handler()
280 kfree(scfcp); in scf_handler()
286 struct scf_check *scfcp = scfc_in; in scf_handler_1() local
288 …if (likely(scfcp) && WARN_ONCE(smp_processor_id() != scfcp->scfc_cpu, "%s: Wanted CPU %d got CPU %… in scf_handler_1()
291 scf_handler(scfcp); in scf_handler_1()
299 struct scf_check *scfcp = NULL; in scftorture_invoke_one() local
307 scfcp = kmalloc(sizeof(*scfcp), GFP_ATOMIC); in scftorture_invoke_one()
308 if (WARN_ON_ONCE(!scfcp)) { in scftorture_invoke_one()
311 scfcp->scfc_cpu = -1; in scftorture_invoke_one()
312 scfcp->scfc_wait = scfsp->scfs_wait; in scftorture_invoke_one()
313 scfcp->scfc_out = false; in scftorture_invoke_one()
323 if (scfcp) { in scftorture_invoke_one()
324 scfcp->scfc_cpu = cpu; in scftorture_invoke_one()
326 scfcp->scfc_in = true; in scftorture_invoke_one()
328 ret = smp_call_function_single(cpu, scf_handler_1, (void *)scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
334 kfree(scfcp); in scftorture_invoke_one()
335 scfcp = NULL; in scftorture_invoke_one()
343 if (scfcp) { in scftorture_invoke_one()
345 scfcp->scfc_in = true; in scftorture_invoke_one()
347 smp_call_function_many(cpu_online_mask, scf_handler, scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
354 if (scfcp) { in scftorture_invoke_one()
356 scfcp->scfc_in = true; in scftorture_invoke_one()
358 smp_call_function(scf_handler, scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
362 if (scfcp) in scftorture_invoke_one()
363 scfcp->scfc_out = true; in scftorture_invoke_one()
365 if (scfcp && scfsp->scfs_wait) { in scftorture_invoke_one()
367 !scfcp->scfc_out)) in scftorture_invoke_one()
370 kfree(scfcp); in scftorture_invoke_one()