Lines Matching defs:desc
47 unsigned char *desc;
108 unsigned char *desc)
125 memcpy(desc_ptr, desc, 4);
164 unsigned char *desc;
166 desc = ses_get_page2_descriptor(edev, ecomp);
167 if (desc)
168 ecomp->fault = (desc[3] & 0x60) >> 4;
175 unsigned char desc[4] = {0 };
182 desc[2] = 0x02;
189 return ses_set_page2_descriptor(edev, ecomp, desc);
195 unsigned char *desc;
197 desc = ses_get_page2_descriptor(edev, ecomp);
198 if (desc)
199 ecomp->status = (desc[0] & 0x0f);
205 unsigned char *desc;
207 desc = ses_get_page2_descriptor(edev, ecomp);
208 if (desc)
209 ecomp->locate = (desc[2] & 0x02) ? 1 : 0;
216 unsigned char desc[4] = {0 };
223 desc[2] = 0x02;
229 return ses_set_page2_descriptor(edev, ecomp, desc);
236 unsigned char desc[4] = {0 };
244 desc[2] = 0x80;
251 return ses_set_page2_descriptor(edev, ecomp, desc);
270 unsigned char *desc)
272 int eip = desc[0] & 0x10;
273 int invalid = desc[0] & 0x80;
274 enum scsi_protocol proto = desc[0] & 0x0f;
279 scomp->desc = desc;
287 d = desc + 8;
289 d = desc + 4;
427 unsigned char *desc;
445 desc = buf + 4;
446 while (desc < buf + vpd_len) {
447 enum scsi_protocol proto = desc[0] >> 4;
448 u8 code_set = desc[0] & 0x0f;
449 u8 piv = desc[1] & 0x80;
450 u8 assoc = (desc[1] & 0x30) >> 4;
451 u8 type = desc[1] & 0x0f;
452 u8 len = desc[3];
456 efd.addr = (u64)desc[4] << 56 |
457 (u64)desc[5] << 48 |
458 (u64)desc[6] << 40 |
459 (u64)desc[7] << 32 |
460 (u64)desc[8] << 24 |
461 (u64)desc[9] << 16 |
462 (u64)desc[10] << 8 |
463 (u64)desc[11];
465 desc += len + 4;