H A D | ses.c | 71 struct enclosure_component *ecomp, init_device_slot_control() 77 if (ecomp->type == ENCLOSURE_COMPONENT_DEVICE) init_device_slot_control() 141 struct enclosure_component *ecomp, ses_set_page2_descriptor() 144 int i, j, count = 0, descriptor = ecomp->number; ses_set_page2_descriptor() 172 struct enclosure_component *ecomp) ses_get_page2_descriptor() 174 int i, j, count = 0, descriptor = ecomp->number; ses_get_page2_descriptor() 200 struct enclosure_component *ecomp) ses_get_fault() 204 desc = ses_get_page2_descriptor(edev, ecomp); ses_get_fault() 206 ecomp->fault = (desc[3] & 0x60) >> 4; ses_get_fault() 210 struct enclosure_component *ecomp, ses_set_fault() 216 desc_ptr = ses_get_page2_descriptor(edev, ecomp); ses_set_fault() 221 init_device_slot_control(desc, ecomp, desc_ptr); ses_set_fault() 235 return ses_set_page2_descriptor(edev, ecomp, desc); ses_set_fault() 239 struct enclosure_component *ecomp) ses_get_status() 243 desc = ses_get_page2_descriptor(edev, ecomp); ses_get_status() 245 ecomp->status = (desc[0] & 0x0f); ses_get_status() 249 struct enclosure_component *ecomp) ses_get_locate() 253 desc = ses_get_page2_descriptor(edev, ecomp); ses_get_locate() 255 ecomp->locate = (desc[2] & 0x02) ? 1 : 0; ses_get_locate() 259 struct enclosure_component *ecomp, ses_set_locate() 265 desc_ptr = ses_get_page2_descriptor(edev, ecomp); ses_set_locate() 270 init_device_slot_control(desc, ecomp, desc_ptr); ses_set_locate() 283 return ses_set_page2_descriptor(edev, ecomp, desc); ses_set_locate() 287 struct enclosure_component *ecomp, ses_set_active() 293 desc_ptr = ses_get_page2_descriptor(edev, ecomp); ses_set_active() 298 init_device_slot_control(desc, ecomp, desc_ptr); ses_set_active() 303 ecomp->active = 0; ses_set_active() 307 ecomp->active = 1; ses_set_active() 313 return ses_set_page2_descriptor(edev, ecomp, desc); ses_set_active() 325 struct enclosure_component *ecomp) ses_get_power_status() 329 desc = ses_get_page2_descriptor(edev, ecomp); ses_get_power_status() 331 ecomp->power_status = (desc[3] & 0x10) ? 0 : 1; ses_get_power_status() 335 struct enclosure_component *ecomp, ses_set_power_status() 341 desc_ptr = ses_get_page2_descriptor(edev, ecomp); ses_set_power_status() 346 init_device_slot_control(desc, ecomp, desc_ptr); ses_set_power_status() 359 ecomp->power_status = val; ses_set_power_status() 360 return ses_set_page2_descriptor(edev, ecomp, desc); ses_set_power_status() 399 static void ses_process_descriptor(struct enclosure_component *ecomp, ses_process_descriptor() argument 407 struct ses_component *scomp = ecomp->scratch; ses_process_descriptor() 441 ecomp->slot = slot; ses_process_descriptor() 522 struct enclosure_component *ecomp; ses_enclosure_data_process() local 540 ecomp = enclosure_component_alloc( ses_enclosure_data_process() 546 ecomp = &edev->component[components++]; ses_enclosure_data_process() 548 if (!IS_ERR(ecomp)) { ses_enclosure_data_process() 549 ses_get_power_status(edev, ecomp); ses_enclosure_data_process() 552 ecomp, ses_enclosure_data_process() 556 ecomp); ses_enclosure_data_process() 70 init_device_slot_control(unsigned char *dest_desc, struct enclosure_component *ecomp, unsigned char *status) init_device_slot_control() argument 140 ses_set_page2_descriptor(struct enclosure_device *edev, struct enclosure_component *ecomp, unsigned char *desc) ses_set_page2_descriptor() argument 171 ses_get_page2_descriptor(struct enclosure_device *edev, struct enclosure_component *ecomp) ses_get_page2_descriptor() argument 199 ses_get_fault(struct enclosure_device *edev, struct enclosure_component *ecomp) ses_get_fault() argument 209 ses_set_fault(struct enclosure_device *edev, struct enclosure_component *ecomp, enum enclosure_component_setting val) ses_set_fault() argument 238 ses_get_status(struct enclosure_device *edev, struct enclosure_component *ecomp) ses_get_status() argument 248 ses_get_locate(struct enclosure_device *edev, struct enclosure_component *ecomp) ses_get_locate() argument 258 ses_set_locate(struct enclosure_device *edev, struct enclosure_component *ecomp, enum enclosure_component_setting val) ses_set_locate() argument 286 ses_set_active(struct enclosure_device *edev, struct enclosure_component *ecomp, enum enclosure_component_setting val) ses_set_active() argument 324 ses_get_power_status(struct enclosure_device *edev, struct enclosure_component *ecomp) ses_get_power_status() argument 334 ses_set_power_status(struct enclosure_device *edev, struct enclosure_component *ecomp, int val) ses_set_power_status() argument
|