Searched refs:type_ptr (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/scsi/
H A Dses.c147 unsigned char *type_ptr = ses_dev->page1_types; ses_set_page2_descriptor() local
152 for (i = 0; i < ses_dev->page1_num_types; i++, type_ptr += 4) { ses_set_page2_descriptor()
153 for (j = 0; j < type_ptr[1]; j++) { ses_set_page2_descriptor()
155 if (type_ptr[0] != ENCLOSURE_COMPONENT_DEVICE && ses_set_page2_descriptor()
156 type_ptr[0] != ENCLOSURE_COMPONENT_ARRAY_DEVICE) ses_set_page2_descriptor()
177 unsigned char *type_ptr = ses_dev->page1_types; ses_get_page2_descriptor() local
182 for (i = 0; i < ses_dev->page1_num_types; i++, type_ptr += 4) { ses_get_page2_descriptor()
183 for (j = 0; j < type_ptr[1]; j++) { ses_get_page2_descriptor()
185 if (type_ptr[0] != ENCLOSURE_COMPONENT_DEVICE && ses_get_page2_descriptor()
186 type_ptr[0] != ENCLOSURE_COMPONENT_ARRAY_DEVICE) ses_get_page2_descriptor()
479 unsigned char *buf = NULL, *type_ptr, *desc_ptr, *addl_desc_ptr = NULL; ses_enclosure_data_process() local
517 type_ptr = ses_dev->page1_types; ses_enclosure_data_process()
519 for (i = 0; i < types; i++, type_ptr += 4) { ses_enclosure_data_process()
520 for (j = 0; j < type_ptr[1]; j++) { ses_enclosure_data_process()
536 if (type_ptr[0] == ENCLOSURE_COMPONENT_DEVICE || ses_enclosure_data_process()
537 type_ptr[0] == ENCLOSURE_COMPONENT_ARRAY_DEVICE) { ses_enclosure_data_process()
543 type_ptr[0], ses_enclosure_data_process()
564 (type_ptr[0] == ENCLOSURE_COMPONENT_DEVICE || ses_enclosure_data_process()
565 type_ptr[0] == ENCLOSURE_COMPONENT_ARRAY_DEVICE || ses_enclosure_data_process()
566 type_ptr[0] == ENCLOSURE_COMPONENT_SAS_EXPANDER || ses_enclosure_data_process()
568 type_ptr[0] == ENCLOSURE_COMPONENT_SCSI_TARGET_PORT || ses_enclosure_data_process()
569 type_ptr[0] == ENCLOSURE_COMPONENT_SCSI_INITIATOR_PORT || ses_enclosure_data_process()
570 type_ptr[0] == ENCLOSURE_COMPONENT_CONTROLLER_ELECTRONICS)) ses_enclosure_data_process()
619 unsigned char *buf = NULL, *hdr_buf, *type_ptr; ses_intf_add() local
668 type_ptr = buf + 8; ses_intf_add()
670 for (i = 0; i < num_enclosures && type_ptr < buf + len; i++) { ses_intf_add()
671 types += type_ptr[2]; ses_intf_add()
672 type_ptr += type_ptr[3] + 4; ses_intf_add()
675 ses_dev->page1_types = type_ptr; ses_intf_add()
678 for (i = 0; i < types && type_ptr < buf + len; i++, type_ptr += 4) { ses_intf_add()
679 if (type_ptr[0] == ENCLOSURE_COMPONENT_DEVICE || ses_intf_add()
680 type_ptr[0] == ENCLOSURE_COMPONENT_ARRAY_DEVICE) ses_intf_add()
681 components += type_ptr[1]; ses_intf_add()

Completed in 50 milliseconds