Searched refs:ecomp (Results 1 – 2 of 2) sorted by relevance
249 struct enclosure_component *ecomp; in enclosure_component_find_by_name() local255 ecomp = &edev->component[i]; in enclosure_component_find_by_name()256 cname = dev_name(&ecomp->cdev); in enclosure_component_find_by_name()257 if (ecomp->number != -1 && in enclosure_component_find_by_name()260 return ecomp; in enclosure_component_find_by_name()286 struct enclosure_component *ecomp; in enclosure_component_alloc() local294 ecomp = &edev->component[number]; in enclosure_component_alloc()296 if (ecomp->number != -1) in enclosure_component_alloc()299 ecomp->type = type; in enclosure_component_alloc()300 ecomp->number = number; in enclosure_component_alloc()[all …]
64 struct enclosure_component *ecomp, in init_device_slot_control() argument70 if (ecomp->type == ENCLOSURE_COMPONENT_DEVICE) in init_device_slot_control()148 struct enclosure_component *ecomp, in ses_set_page2_descriptor() argument151 int i, j, count = 0, descriptor = ecomp->number; in ses_set_page2_descriptor()179 struct enclosure_component *ecomp) in ses_get_page2_descriptor() argument181 int i, j, count = 0, descriptor = ecomp->number; in ses_get_page2_descriptor()208 struct enclosure_component *ecomp) in ses_get_fault() argument213 ecomp->fault = 0; in ses_get_fault()216 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_fault()218 ecomp->fault = (desc[3] & 0x60) >> 4; in ses_get_fault()[all …]