Searched refs:ecomp (Results 1 – 2 of 2) sorted by relevance
/drivers/misc/ |
D | enclosure.c | 263 struct enclosure_component *ecomp; in enclosure_component_register() local 270 ecomp = &edev->component[number]; in enclosure_component_register() 272 if (ecomp->number != -1) in enclosure_component_register() 275 ecomp->type = type; in enclosure_component_register() 276 ecomp->number = number; in enclosure_component_register() 277 cdev = &ecomp->cdev; in enclosure_component_register() 289 ecomp->number = -1; in enclosure_component_register() 294 return ecomp; in enclosure_component_register() 410 struct enclosure_component *ecomp = to_enclosure_component(cdev); in get_component_fault() local 413 edev->cb->get_fault(edev, ecomp); in get_component_fault() [all …]
|
/drivers/scsi/ |
D | ses.c | 109 struct enclosure_component *ecomp, in ses_set_page2_descriptor() argument 112 int i, j, count = 0, descriptor = ecomp->number; in ses_set_page2_descriptor() 140 struct enclosure_component *ecomp) in ses_get_page2_descriptor() argument 142 int i, j, count = 0, descriptor = ecomp->number; in ses_get_page2_descriptor() 168 struct enclosure_component *ecomp) in ses_get_fault() argument 172 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_fault() 174 ecomp->fault = (desc[3] & 0x60) >> 4; in ses_get_fault() 178 struct enclosure_component *ecomp, in ses_set_fault() argument 195 return ses_set_page2_descriptor(edev, ecomp, desc); in ses_set_fault() 199 struct enclosure_component *ecomp) in ses_get_status() argument [all …]
|