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()
276 if (unlikely(!scfcp)) in scf_handler()
278 if (scfcp->scfc_wait) in scf_handler()
279 WRITE_ONCE(scfcp->scfc_out, true); in scf_handler()
281 kfree(scfcp); in scf_handler()
287 struct scf_check *scfcp = scfc_in; in scf_handler_1() local
289 …if (likely(scfcp) && WARN_ONCE(smp_processor_id() != scfcp->scfc_cpu, "%s: Wanted CPU %d got CPU %… in scf_handler_1()
292 scf_handler(scfcp); in scf_handler_1()
300 struct scf_check *scfcp = NULL; in scftorture_invoke_one() local
308 scfcp = kmalloc(sizeof(*scfcp), GFP_ATOMIC); in scftorture_invoke_one()
309 if (WARN_ON_ONCE(!scfcp)) { in scftorture_invoke_one()
312 scfcp->scfc_cpu = -1; in scftorture_invoke_one()
313 scfcp->scfc_wait = scfsp->scfs_wait; in scftorture_invoke_one()
314 scfcp->scfc_out = false; in scftorture_invoke_one()
324 if (scfcp) { in scftorture_invoke_one()
325 scfcp->scfc_cpu = cpu; in scftorture_invoke_one()
327 scfcp->scfc_in = true; in scftorture_invoke_one()
329 ret = smp_call_function_single(cpu, scf_handler_1, (void *)scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
335 kfree(scfcp); in scftorture_invoke_one()
336 scfcp = NULL; in scftorture_invoke_one()
344 if (scfcp) { in scftorture_invoke_one()
346 scfcp->scfc_in = true; in scftorture_invoke_one()
348 smp_call_function_many(cpu_online_mask, scf_handler, scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
355 if (scfcp) { in scftorture_invoke_one()
357 scfcp->scfc_in = true; in scftorture_invoke_one()
359 smp_call_function(scf_handler, scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
363 if (scfcp) in scftorture_invoke_one()
364 scfcp->scfc_out = true; in scftorture_invoke_one()
366 if (scfcp && scfsp->scfs_wait) { in scftorture_invoke_one()
368 !scfcp->scfc_out)) in scftorture_invoke_one()
371 kfree(scfcp); in scftorture_invoke_one()