Lines Matching refs:hp_cpu
159 struct hp_cpu { struct
174 static DEFINE_PER_CPU(struct hp_cpu, hp_cpus); argument
321 struct hp_cpu *hp_cpu = this_cpu_ptr(&hp_cpus); in create_per_cpu_handlers() local
323 hp_cpu->processor_id = smp_processor_id(); in create_per_cpu_handlers()
325 list_add_tail(&hp_cpu->node, &hp_cpu_list); in create_per_cpu_handlers()
328 INIT_LIST_HEAD(&hp_cpu->handlers); in create_per_cpu_handlers()
336 handler->processor_id = hp_cpu->processor_id; in create_per_cpu_handlers()
339 list_add_tail(&handler->node, &hp_cpu->handlers); in create_per_cpu_handlers()
347 struct hp_cpu *hp_cpu = this_cpu_ptr(&hp_cpus); in destroy_per_cpu_handlers() local
350 list_del(&hp_cpu->node); in destroy_per_cpu_handlers()
352 list_for_each_safe(loop, tmp, &hp_cpu->handlers) { in destroy_per_cpu_handlers()
446 struct hp_cpu *hp_cpu; in init_phase2() local
450 list_for_each_entry(hp_cpu, &hp_cpu_list, node) { in init_phase2()
454 hp_cpu->iterator = list_first_entry( in init_phase2()
455 &hp_cpu->handlers, in init_phase2()
458 hp_cpu->iterator = list_entry( in init_phase2()
459 hp_cpu->iterator->node.next, in init_phase2()
462 hp_cpu->iterator->fqid_rx = fqid; in init_phase2()
469 hp_cpu->iterator->fqid_tx = fqid; in init_phase2()
471 hp_cpu->iterator->rx_mixer = lfsr; in init_phase2()
474 hp_cpu->iterator->tx_mixer = lfsr; in init_phase2()
478 hp_cpu = list_first_entry(&hp_cpu_list, struct hp_cpu, node); in init_phase2()
479 handler = list_first_entry(&hp_cpu->handlers, struct hp_handler, node); in init_phase2()
492 struct hp_cpu *hp_cpu; in init_phase3() local
495 list_for_each_entry(hp_cpu, &hp_cpu_list, node) { in init_phase3()
497 hp_cpu->iterator = list_first_entry( in init_phase3()
498 &hp_cpu->handlers, in init_phase3()
501 hp_cpu->iterator = list_entry( in init_phase3()
502 hp_cpu->iterator->node.next, in init_phase3()
505 if (hp_cpu->processor_id == smp_processor_id()) { in init_phase3()
506 err = init_handler(hp_cpu->iterator); in init_phase3()
510 smp_call_function_single(hp_cpu->processor_id, in init_phase3()
511 init_handler_cb, hp_cpu->iterator, 1); in init_phase3()