Lines Matching refs:rsc_desc
786 struct fru_picmgext_carrier_p2p_record rsc_desc; in ipmi_ek_display_carrier_connectivity() local
802 rsc_desc.resource_id = record->data[offset++]; in ipmi_ek_display_carrier_connectivity()
803 rsc_desc.p2p_count = record->data[offset++]; in ipmi_ek_display_carrier_connectivity()
806 rsc_desc.resource_id, rsc_desc.p2p_count); in ipmi_ek_display_carrier_connectivity()
809 if ((rsc_desc.resource_id & AMC_MODULE) == AMC_MODULE) { in ipmi_ek_display_carrier_connectivity()
811 if (rsc_desc.resource_id == AMC_MODULE) { in ipmi_ek_display_carrier_connectivity()
820 val2str((rsc_desc.resource_id & 0x0f), in ipmi_ek_display_carrier_connectivity()
825 (rsc_desc.resource_id & 0x0f)); in ipmi_ek_display_carrier_connectivity()
827 while (rsc_desc.p2p_count > 0) { in ipmi_ek_display_carrier_connectivity()
852 rsc_desc.p2p_count--; in ipmi_ek_display_carrier_connectivity()
1367 struct fru_picmgext_carrier_p2p_record rsc_desc; in ipmi_ek_check_physical_connectivity() local
1372 rsc_desc.resource_id = record->data[index++]; in ipmi_ek_check_physical_connectivity()
1373 rsc_desc.p2p_count = record->data[index++]; in ipmi_ek_check_physical_connectivity()
1375 if ( (rsc_desc.resource_id == record1.rsc_id) in ipmi_ek_check_physical_connectivity()
1377 (rsc_desc.resource_id == record2.rsc_id) in ipmi_ek_check_physical_connectivity()
1379 if (rsc_desc.p2p_count <= 0){ in ipmi_ek_check_physical_connectivity()
1384 port_desc = malloc ( rsc_desc.p2p_count * in ipmi_ek_check_physical_connectivity()
1386 index = ipmi_ek_get_resource_descriptor( rsc_desc.p2p_count, in ipmi_ek_check_physical_connectivity()
1393 if (rsc_desc.resource_id == AMC_MODULE){ in ipmi_ek_check_physical_connectivity()
1402 amc_site = rsc_desc.resource_id & 0x0f; in ipmi_ek_check_physical_connectivity()
1406 port_desc = malloc ( rsc_desc.p2p_count * in ipmi_ek_check_physical_connectivity()
1408 index = ipmi_ek_get_resource_descriptor( rsc_desc.p2p_count, in ipmi_ek_check_physical_connectivity()
1421 rsc_desc.p2p_count ); in ipmi_ek_check_physical_connectivity()
1427 for ( j = 0; j < rsc_desc.p2p_count; j++ ){ in ipmi_ek_check_physical_connectivity()
1435 port_desc, j, rsc_desc.resource_id ); in ipmi_ek_check_physical_connectivity()
1440 (filetype1 == (rsc_desc.resource_id & 0x0f)) in ipmi_ek_check_physical_connectivity()
1446 (filetype2 == (rsc_desc.resource_id & 0x0f)) in ipmi_ek_check_physical_connectivity()
1470 if ( (record2.rsc_id == (rsc_desc.resource_id) ) in ipmi_ek_check_physical_connectivity()
1484 else if ( (filetype2 == (rsc_desc.resource_id & 0x0f) ) in ipmi_ek_check_physical_connectivity()