Lines Matching refs:ucp
272 u8 *ucp, len; in scsi_set_sense_information() local
275 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 0); in scsi_set_sense_information()
276 if (!ucp) { in scsi_set_sense_information()
278 ucp = buf + 8 + len; in scsi_set_sense_information()
285 ucp[0] = 0; in scsi_set_sense_information()
286 ucp[1] = 0xa; in scsi_set_sense_information()
287 ucp[2] = 0x80; /* Valid bit */ in scsi_set_sense_information()
288 ucp[3] = 0; in scsi_set_sense_information()
289 put_unaligned_be64(info, &ucp[4]); in scsi_set_sense_information()
321 u8 *ucp, len; in scsi_set_sense_field_pointer() local
325 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 2); in scsi_set_sense_field_pointer()
326 if (!ucp) { in scsi_set_sense_field_pointer()
328 ucp = buf + 8 + len; in scsi_set_sense_field_pointer()
335 ucp[0] = 2; in scsi_set_sense_field_pointer()
336 ucp[1] = 6; in scsi_set_sense_field_pointer()
337 ucp[4] = 0x80; /* Valid bit */ in scsi_set_sense_field_pointer()
339 ucp[4] |= 0x40; in scsi_set_sense_field_pointer()
341 ucp[4] |= 0x8 | bp; in scsi_set_sense_field_pointer()
342 put_unaligned_be16(fp, &ucp[5]); in scsi_set_sense_field_pointer()