Lines Matching refs:lun
799 static int device_queue_depth(int unit, int target, int lun) in device_queue_depth() argument
822 if (u != lun) in device_queue_depth()
823 u = (lun == v) ? v : NO_LUN; in device_queue_depth()
828 (u == ALL_LUNS || u == lun)) in device_queue_depth()
1139 u_long lun; member
1579 u_char lun; member
4123 struct lcb *lp = tp->lp[sdev->lun]; in ncr_queue_command()
4140 (sdev->lun >= MAX_LUN )) { in ncr_queue_command()
4192 idmsg = IDENTIFY(0, sdev->lun); in ncr_queue_command()
4709 int target, lun; in ncr_detach() local
4782 for (lun = 0 ; lun < MAX_LUN ; lun++) { in ncr_detach()
4783 lp = tp->lp[lun]; in ncr_detach()
4844 lp = tp->lp[cmd->device->lun]; in ncr_complete()
4938 ncr_alloc_lcb (np, cmd->device->id, cmd->device->lun); in ncr_complete()
5095 struct lcb *lp = tp->lp[cp->lun]; in ncr_ccb_skipped()
5634 unsigned char tn = sdev->id, ln = sdev->lun; in ncr_setup_tags()
6545 struct lcb *lp = tp->lp[cmd->device->lun]; in ncr_sir_to_redo()
6622 cp->scsi_smsg2[0] = IDENTIFY(0, cmd->device->lun); in ncr_sir_to_redo()
6636 cp->sensecmd[1] = (cmd->device->lun & 0x7) << 5; in ncr_sir_to_redo()
7146 u_char ln = cmd->device->lun; in ncr_get_ccb()
7236 cp->lun = ln; in ncr_get_ccb()
7257 struct lcb *lp = tp->lp[cp->lun]; in ncr_free_ccb()
7583 unsigned char tn = sdev->id, ln = sdev->lun; in ncr_setup_lcb()
7978 struct lcb *lp = tp->lp[device->lun];
7989 numtags = device_queue_depth(np->unit, device->id, device->lun);
8019 np->unit, device->id, device->lun, depth_to_use);