Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/misc/
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 …]
/kernel/linux/linux-5.10/drivers/scsi/
Dses.c64 struct enclosure_component *ecomp, in init_device_slot_control() argument
70 if (ecomp->type == ENCLOSURE_COMPONENT_DEVICE) in init_device_slot_control()
148 struct enclosure_component *ecomp, in ses_set_page2_descriptor() argument
151 int i, j, count = 0, descriptor = ecomp->number; in ses_set_page2_descriptor()
179 struct enclosure_component *ecomp) in ses_get_page2_descriptor() argument
181 int i, j, count = 0, descriptor = ecomp->number; in ses_get_page2_descriptor()
208 struct enclosure_component *ecomp) in ses_get_fault() argument
213 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 …]