Lines Matching refs:cpu
363 int cpu = smp_processor_id(); in iucv_allow_cpu() local
375 parm = iucv_param_irq[cpu]; in iucv_allow_cpu()
393 cpumask_set_cpu(cpu, &iucv_irq_cpumask); in iucv_allow_cpu()
404 int cpu = smp_processor_id(); in iucv_block_cpu() local
408 parm = iucv_param_irq[cpu]; in iucv_block_cpu()
413 cpumask_clear_cpu(cpu, &iucv_irq_cpumask); in iucv_block_cpu()
424 int cpu = smp_processor_id(); in iucv_declare_cpu() local
428 if (cpumask_test_cpu(cpu, &iucv_buffer_cpumask)) in iucv_declare_cpu()
432 parm = iucv_param_irq[cpu]; in iucv_declare_cpu()
434 parm->db.ipbfadr1 = virt_to_phys(iucv_irq_data[cpu]); in iucv_declare_cpu()
456 cpu, rc, err); in iucv_declare_cpu()
461 cpumask_set_cpu(cpu, &iucv_buffer_cpumask); in iucv_declare_cpu()
479 int cpu = smp_processor_id(); in iucv_retrieve_cpu() local
482 if (!cpumask_test_cpu(cpu, &iucv_buffer_cpumask)) in iucv_retrieve_cpu()
489 parm = iucv_param_irq[cpu]; in iucv_retrieve_cpu()
493 cpumask_clear_cpu(cpu, &iucv_buffer_cpumask); in iucv_retrieve_cpu()
503 int cpu; in iucv_setmask_mp() local
506 for_each_online_cpu(cpu) in iucv_setmask_mp()
508 if (cpumask_test_cpu(cpu, &iucv_buffer_cpumask) && in iucv_setmask_mp()
509 !cpumask_test_cpu(cpu, &iucv_irq_cpumask)) in iucv_setmask_mp()
510 smp_call_function_single(cpu, iucv_allow_cpu, in iucv_setmask_mp()
523 int cpu; in iucv_setmask_up() local
528 for_each_cpu(cpu, &cpumask) in iucv_setmask_up()
529 smp_call_function_single(cpu, iucv_block_cpu, NULL, 1); in iucv_setmask_up()
543 int cpu, rc; in iucv_enable() local
553 for_each_online_cpu(cpu) in iucv_enable()
554 smp_call_function_single(cpu, iucv_declare_cpu, NULL, 1); in iucv_enable()
583 static int iucv_cpu_dead(unsigned int cpu) in iucv_cpu_dead() argument
585 kfree(iucv_param_irq[cpu]); in iucv_cpu_dead()
586 iucv_param_irq[cpu] = NULL; in iucv_cpu_dead()
587 kfree(iucv_param[cpu]); in iucv_cpu_dead()
588 iucv_param[cpu] = NULL; in iucv_cpu_dead()
589 kfree(iucv_irq_data[cpu]); in iucv_cpu_dead()
590 iucv_irq_data[cpu] = NULL; in iucv_cpu_dead()
594 static int iucv_cpu_prepare(unsigned int cpu) in iucv_cpu_prepare() argument
597 iucv_irq_data[cpu] = kmalloc_node(sizeof(struct iucv_irq_data), in iucv_cpu_prepare()
598 GFP_KERNEL|GFP_DMA, cpu_to_node(cpu)); in iucv_cpu_prepare()
599 if (!iucv_irq_data[cpu]) in iucv_cpu_prepare()
603 iucv_param[cpu] = kmalloc_node(sizeof(union iucv_param), in iucv_cpu_prepare()
604 GFP_KERNEL|GFP_DMA, cpu_to_node(cpu)); in iucv_cpu_prepare()
605 if (!iucv_param[cpu]) in iucv_cpu_prepare()
608 iucv_param_irq[cpu] = kmalloc_node(sizeof(union iucv_param), in iucv_cpu_prepare()
609 GFP_KERNEL|GFP_DMA, cpu_to_node(cpu)); in iucv_cpu_prepare()
610 if (!iucv_param_irq[cpu]) in iucv_cpu_prepare()
616 iucv_cpu_dead(cpu); in iucv_cpu_prepare()
620 static int iucv_cpu_online(unsigned int cpu) in iucv_cpu_online() argument
628 static int iucv_cpu_down_prep(unsigned int cpu) in iucv_cpu_down_prep() argument
636 cpumask_clear_cpu(cpu, &cpumask); in iucv_cpu_down_prep()