Lines Matching refs:desc
155 unsigned char *desc) in ses_set_page2_descriptor() argument
172 memcpy(desc_ptr, desc, 4); in ses_set_page2_descriptor()
216 unsigned char *desc; in ses_get_fault() local
222 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_fault()
223 if (desc) in ses_get_fault()
224 ecomp->fault = (desc[3] & 0x60) >> 4; in ses_get_fault()
231 unsigned char desc[4]; in ses_set_fault() local
242 init_device_slot_control(desc, ecomp, desc_ptr); in ses_set_fault()
246 desc[3] &= 0xdf; in ses_set_fault()
249 desc[3] |= 0x20; in ses_set_fault()
256 return ses_set_page2_descriptor(edev, ecomp, desc); in ses_set_fault()
262 unsigned char *desc; in ses_get_status() local
268 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_status()
269 if (desc) in ses_get_status()
270 ecomp->status = (desc[0] & 0x0f); in ses_get_status()
276 unsigned char *desc; in ses_get_locate() local
282 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_locate()
283 if (desc) in ses_get_locate()
284 ecomp->locate = (desc[2] & 0x02) ? 1 : 0; in ses_get_locate()
291 unsigned char desc[4]; in ses_set_locate() local
302 init_device_slot_control(desc, ecomp, desc_ptr); in ses_set_locate()
306 desc[2] &= 0xfd; in ses_set_locate()
309 desc[2] |= 0x02; in ses_set_locate()
315 return ses_set_page2_descriptor(edev, ecomp, desc); in ses_set_locate()
322 unsigned char desc[4]; in ses_set_active() local
333 init_device_slot_control(desc, ecomp, desc_ptr); in ses_set_active()
337 desc[2] &= 0x7f; in ses_set_active()
341 desc[2] |= 0x80; in ses_set_active()
348 return ses_set_page2_descriptor(edev, ecomp, desc); in ses_set_active()
362 unsigned char *desc; in ses_get_power_status() local
369 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_power_status()
370 if (desc) in ses_get_power_status()
371 ecomp->power_status = (desc[3] & 0x10) ? 0 : 1; in ses_get_power_status()
378 unsigned char desc[4]; in ses_set_power_status() local
389 init_device_slot_control(desc, ecomp, desc_ptr); in ses_set_power_status()
394 desc[3] |= 0x10; in ses_set_power_status()
397 desc[3] &= 0xef; in ses_set_power_status()
403 return ses_set_page2_descriptor(edev, ecomp, desc); in ses_set_power_status()
443 unsigned char *desc, int max_desc_len) in ses_process_descriptor() argument
445 int eip = desc[0] & 0x10; in ses_process_descriptor()
446 int invalid = desc[0] & 0x80; in ses_process_descriptor()
447 enum scsi_protocol proto = desc[0] & 0x0f; in ses_process_descriptor()
461 d = desc + 4; in ses_process_descriptor()
470 d = desc + 4; in ses_process_descriptor()
472 d = desc + 8; in ses_process_descriptor()
476 d = desc + 4; in ses_process_descriptor()