Lines Matching refs:rio_detail_ptr
457 struct rio_detail *rio_detail_ptr; in ebda_rio_table() local
464 rio_detail_ptr = kmalloc (sizeof (struct rio_detail), GFP_KERNEL); in ebda_rio_table()
465 if (!rio_detail_ptr) in ebda_rio_table()
467 memset (rio_detail_ptr, 0, sizeof (struct rio_detail)); in ebda_rio_table()
468 rio_detail_ptr->rio_node_id = readb (io_mem + offset); in ebda_rio_table()
469 rio_detail_ptr->bbar = readl (io_mem + offset + 1); in ebda_rio_table()
470 rio_detail_ptr->rio_type = readb (io_mem + offset + 5); in ebda_rio_table()
471 rio_detail_ptr->owner_id = readb (io_mem + offset + 6); in ebda_rio_table()
472 rio_detail_ptr->port0_node_connect = readb (io_mem + offset + 7); in ebda_rio_table()
473 rio_detail_ptr->port0_port_connect = readb (io_mem + offset + 8); in ebda_rio_table()
474 rio_detail_ptr->port1_node_connect = readb (io_mem + offset + 9); in ebda_rio_table()
475 rio_detail_ptr->port1_port_connect = readb (io_mem + offset + 10); in ebda_rio_table()
476 rio_detail_ptr->first_slot_num = readb (io_mem + offset + 11); in ebda_rio_table()
477 rio_detail_ptr->status = readb (io_mem + offset + 12); in ebda_rio_table()
478 rio_detail_ptr->wpindex = readb (io_mem + offset + 13); in ebda_rio_table()
479 rio_detail_ptr->chassis_num = readb (io_mem + offset + 14); in ebda_rio_table()
482 if (rio_detail_ptr->rio_type == 4 || rio_detail_ptr->rio_type == 5) in ebda_rio_table()
483 list_add (&rio_detail_ptr->rio_detail_list, &rio_vg_head); in ebda_rio_table()
485 else if (rio_detail_ptr->rio_type == 6 || rio_detail_ptr->rio_type == 7) in ebda_rio_table()
486 list_add (&rio_detail_ptr->rio_detail_list, &rio_lo_head); in ebda_rio_table()
489 kfree (rio_detail_ptr); in ebda_rio_table()
515 struct rio_detail *rio_detail_ptr = NULL; in combine_wpg_for_chassis() local
519 rio_detail_ptr = list_entry (list_head_ptr, struct rio_detail, rio_detail_list); in combine_wpg_for_chassis()
520 opt_rio_ptr = search_opt_vg (rio_detail_ptr->chassis_num); in combine_wpg_for_chassis()
526 opt_rio_ptr->rio_type = rio_detail_ptr->rio_type; in combine_wpg_for_chassis()
527 opt_rio_ptr->chassis_num = rio_detail_ptr->chassis_num; in combine_wpg_for_chassis()
528 opt_rio_ptr->first_slot_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_chassis()
529 opt_rio_ptr->middle_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_chassis()
532 opt_rio_ptr->first_slot_num = min (opt_rio_ptr->first_slot_num, rio_detail_ptr->first_slot_num); in combine_wpg_for_chassis()
533 opt_rio_ptr->middle_num = max (opt_rio_ptr->middle_num, rio_detail_ptr->first_slot_num); in combine_wpg_for_chassis()
558 struct rio_detail *rio_detail_ptr = NULL; in combine_wpg_for_expansion() local
562 rio_detail_ptr = list_entry (list_head_ptr, struct rio_detail, rio_detail_list); in combine_wpg_for_expansion()
563 opt_rio_lo_ptr = search_opt_lo (rio_detail_ptr->chassis_num); in combine_wpg_for_expansion()
569 opt_rio_lo_ptr->rio_type = rio_detail_ptr->rio_type; in combine_wpg_for_expansion()
570 opt_rio_lo_ptr->chassis_num = rio_detail_ptr->chassis_num; in combine_wpg_for_expansion()
571 opt_rio_lo_ptr->first_slot_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_expansion()
572 opt_rio_lo_ptr->middle_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_expansion()
577 …opt_rio_lo_ptr->first_slot_num = min (opt_rio_lo_ptr->first_slot_num, rio_detail_ptr->first_slot_n… in combine_wpg_for_expansion()
578 opt_rio_lo_ptr->middle_num = max (opt_rio_lo_ptr->middle_num, rio_detail_ptr->first_slot_num); in combine_wpg_for_expansion()