Lines Matching refs:ucp
314 u8 *ucp, len; in scsi_set_sense_information() local
317 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 0); in scsi_set_sense_information()
318 if (!ucp) { in scsi_set_sense_information()
320 ucp = buf + 8 + len; in scsi_set_sense_information()
327 ucp[0] = 0; in scsi_set_sense_information()
328 ucp[1] = 0xa; in scsi_set_sense_information()
329 ucp[2] = 0x80; /* Valid bit */ in scsi_set_sense_information()
330 ucp[3] = 0; in scsi_set_sense_information()
331 put_unaligned_be64(info, &ucp[4]); in scsi_set_sense_information()
363 u8 *ucp, len; in scsi_set_sense_field_pointer() local
367 ucp = (char *)scsi_sense_desc_find(buf, len + 8, 2); in scsi_set_sense_field_pointer()
368 if (!ucp) { in scsi_set_sense_field_pointer()
370 ucp = buf + 8 + len; in scsi_set_sense_field_pointer()
377 ucp[0] = 2; in scsi_set_sense_field_pointer()
378 ucp[1] = 6; in scsi_set_sense_field_pointer()
379 ucp[4] = 0x80; /* Valid bit */ in scsi_set_sense_field_pointer()
381 ucp[4] |= 0x40; in scsi_set_sense_field_pointer()
383 ucp[4] |= 0x8 | bp; in scsi_set_sense_field_pointer()
384 put_unaligned_be16(fp, &ucp[5]); in scsi_set_sense_field_pointer()