Lines Matching refs:rio_detail_ptr
404 struct rio_detail *rio_detail_ptr; in ebda_rio_table() local
411 rio_detail_ptr = kzalloc(sizeof(struct rio_detail), GFP_KERNEL); in ebda_rio_table()
412 if (!rio_detail_ptr) in ebda_rio_table()
414 rio_detail_ptr->rio_node_id = readb(io_mem + offset); in ebda_rio_table()
415 rio_detail_ptr->bbar = readl(io_mem + offset + 1); in ebda_rio_table()
416 rio_detail_ptr->rio_type = readb(io_mem + offset + 5); in ebda_rio_table()
417 rio_detail_ptr->owner_id = readb(io_mem + offset + 6); in ebda_rio_table()
418 rio_detail_ptr->port0_node_connect = readb(io_mem + offset + 7); in ebda_rio_table()
419 rio_detail_ptr->port0_port_connect = readb(io_mem + offset + 8); in ebda_rio_table()
420 rio_detail_ptr->port1_node_connect = readb(io_mem + offset + 9); in ebda_rio_table()
421 rio_detail_ptr->port1_port_connect = readb(io_mem + offset + 10); in ebda_rio_table()
422 rio_detail_ptr->first_slot_num = readb(io_mem + offset + 11); in ebda_rio_table()
423 rio_detail_ptr->status = readb(io_mem + offset + 12); in ebda_rio_table()
424 rio_detail_ptr->wpindex = readb(io_mem + offset + 13); in ebda_rio_table()
425 rio_detail_ptr->chassis_num = readb(io_mem + offset + 14); in ebda_rio_table()
428 if (rio_detail_ptr->rio_type == 4 || rio_detail_ptr->rio_type == 5) in ebda_rio_table()
429 list_add(&rio_detail_ptr->rio_detail_list, &rio_vg_head); in ebda_rio_table()
431 else if (rio_detail_ptr->rio_type == 6 || rio_detail_ptr->rio_type == 7) in ebda_rio_table()
432 list_add(&rio_detail_ptr->rio_detail_list, &rio_lo_head); in ebda_rio_table()
435 kfree(rio_detail_ptr); in ebda_rio_table()
459 struct rio_detail *rio_detail_ptr = NULL; in combine_wpg_for_chassis() local
461 list_for_each_entry(rio_detail_ptr, &rio_vg_head, rio_detail_list) { in combine_wpg_for_chassis()
462 opt_rio_ptr = search_opt_vg(rio_detail_ptr->chassis_num); in combine_wpg_for_chassis()
467 opt_rio_ptr->rio_type = rio_detail_ptr->rio_type; in combine_wpg_for_chassis()
468 opt_rio_ptr->chassis_num = rio_detail_ptr->chassis_num; in combine_wpg_for_chassis()
469 opt_rio_ptr->first_slot_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_chassis()
470 opt_rio_ptr->middle_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_chassis()
473 opt_rio_ptr->first_slot_num = min(opt_rio_ptr->first_slot_num, rio_detail_ptr->first_slot_num); in combine_wpg_for_chassis()
474 opt_rio_ptr->middle_num = max(opt_rio_ptr->middle_num, rio_detail_ptr->first_slot_num); in combine_wpg_for_chassis()
497 struct rio_detail *rio_detail_ptr = NULL; in combine_wpg_for_expansion() local
499 list_for_each_entry(rio_detail_ptr, &rio_lo_head, rio_detail_list) { in combine_wpg_for_expansion()
500 opt_rio_lo_ptr = search_opt_lo(rio_detail_ptr->chassis_num); in combine_wpg_for_expansion()
505 opt_rio_lo_ptr->rio_type = rio_detail_ptr->rio_type; in combine_wpg_for_expansion()
506 opt_rio_lo_ptr->chassis_num = rio_detail_ptr->chassis_num; in combine_wpg_for_expansion()
507 opt_rio_lo_ptr->first_slot_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_expansion()
508 opt_rio_lo_ptr->middle_num = rio_detail_ptr->first_slot_num; in combine_wpg_for_expansion()
513 …opt_rio_lo_ptr->first_slot_num = min(opt_rio_lo_ptr->first_slot_num, rio_detail_ptr->first_slot_nu… in combine_wpg_for_expansion()
514 opt_rio_lo_ptr->middle_num = max(opt_rio_lo_ptr->middle_num, rio_detail_ptr->first_slot_num); in combine_wpg_for_expansion()