Home
last modified time | relevance | path

Searched refs:ecomp (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/misc/
H A Denclosure.c249 struct enclosure_component *ecomp; in enclosure_component_find_by_name() local
255 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() local
294 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 …]
/openbmc/linux/drivers/scsi/
H A Dses.c64 struct enclosure_component *ecomp, in init_device_slot_control() argument
70 if (ecomp->type == ENCLOSURE_COMPONENT_DEVICE) in init_device_slot_control()
154 struct enclosure_component *ecomp, in ses_set_page2_descriptor() argument
157 int i, j, count = 0, descriptor = ecomp->number; in ses_set_page2_descriptor()
185 struct enclosure_component *ecomp) in ses_get_page2_descriptor() argument
187 int i, j, count = 0, descriptor = ecomp->number; in ses_get_page2_descriptor()
214 struct enclosure_component *ecomp) in ses_get_fault() argument
219 ecomp->fault = 0; in ses_get_fault()
222 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_fault()
224 ecomp->fault = (desc[3] & 0x60) >> 4; in ses_get_fault()
[all …]