Lines Matching refs:ucp
263 u8 *ucp, len; in scsi_set_sense_information() local
266 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 0); in scsi_set_sense_information()
267 if (!ucp) { in scsi_set_sense_information()
269 ucp = buf + 8 + len; in scsi_set_sense_information()
276 ucp[0] = 0; in scsi_set_sense_information()
277 ucp[1] = 0xa; in scsi_set_sense_information()
278 ucp[2] = 0x80; /* Valid bit */ in scsi_set_sense_information()
279 ucp[3] = 0; in scsi_set_sense_information()
280 put_unaligned_be64(info, &ucp[4]); in scsi_set_sense_information()
312 u8 *ucp, len; in scsi_set_sense_field_pointer() local
316 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 2); in scsi_set_sense_field_pointer()
317 if (!ucp) { in scsi_set_sense_field_pointer()
319 ucp = buf + 8 + len; in scsi_set_sense_field_pointer()
326 ucp[0] = 2; in scsi_set_sense_field_pointer()
327 ucp[1] = 6; in scsi_set_sense_field_pointer()
328 ucp[4] = 0x80; /* Valid bit */ in scsi_set_sense_field_pointer()
330 ucp[4] |= 0x40; in scsi_set_sense_field_pointer()
332 ucp[4] |= 0x8 | bp; in scsi_set_sense_field_pointer()
333 put_unaligned_be16(fp, &ucp[5]); in scsi_set_sense_field_pointer()