Lines Matching refs:lun

276 	int target, lun;  in init_tags()  local
283 for (lun = 0; lun < 8; ++lun) { in init_tags()
284 ta = &hostdata->TagAlloc[target][lun]; in init_tags()
306 u8 lun = cmd->device->lun; in is_lun_busy() local
309 if (hostdata->busy[cmd->device->id] & (1 << lun)) in is_lun_busy()
315 if (hostdata->TagAlloc[scmd_id(cmd)][lun].nr_allocated >= in is_lun_busy()
316 hostdata->TagAlloc[scmd_id(cmd)][lun].queue_size) { in is_lun_busy()
318 H_NO(cmd), cmd->device->id, lun); in is_lun_busy()
332 u8 lun = cmd->device->lun; in cmd_get_tag() local
342 hostdata->busy[cmd->device->id] |= (1 << lun); in cmd_get_tag()
344 "command\n", H_NO(cmd), cmd->device->id, lun); in cmd_get_tag()
346 struct tag_alloc *ta = &hostdata->TagAlloc[scmd_id(cmd)][lun]; in cmd_get_tag()
354 lun, ta->nr_allocated); in cmd_get_tag()
365 u8 lun = cmd->device->lun; in cmd_free_tag() local
369 hostdata->busy[cmd->device->id] &= ~(1 << lun); in cmd_free_tag()
371 H_NO(cmd), cmd->device->id, lun); in cmd_free_tag()
376 struct tag_alloc *ta = &hostdata->TagAlloc[scmd_id(cmd)][lun]; in cmd_free_tag()
380 H_NO(cmd), cmd->tag, cmd->device->id, lun); in cmd_free_tag()
387 int target, lun; in free_all_tags() local
394 for (lun = 0; lun < 8; ++lun) { in free_all_tags()
395 ta = &hostdata->TagAlloc[target][lun]; in free_all_tags()
668 H_NO(cmd), cmd->device->id, cmd->device->lun); in lprint_Scsi_Cmnd()
713 H_NO(cmd), cmd->device->id, cmd->device->lun); in show_Scsi_Cmnd()
994 u8 lun = tmp->device->lun; in NCR5380_main() local
999 lun); in NCR5380_main()
1006 !(hostdata->busy[tmp->device->id] & (1 << lun)) in NCR5380_main()
1032 HOSTNO, tmp->device->id, lun); in NCR5380_main()
1576 tmp[0] = IDENTIFY(1, cmd->device->lun); in NCR5380_select()
1598 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun); in NCR5380_select()
2130 "complete.\n", HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2143 HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2156 HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2166 "completed\n", HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2182 struct tag_alloc *ta = &hostdata->TagAlloc[scmd_id(cmd)][cmd->device->lun]; in NCR5380_information_transfer()
2185 HOSTNO, cmd->device->id, cmd->device->lun, in NCR5380_information_transfer()
2191 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_information_transfer()
2275 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun); in NCR5380_information_transfer()
2280 HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2297 cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2421 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_information_transfer()
2476 unsigned char lun; in NCR5380_reselect() local
2538 lun = (msg[0] & 0x07); in NCR5380_reselect()
2555 "reselection\n", HOSTNO, target_mask, lun, tag); in NCR5380_reselect()
2566 if ((target_mask == (1 << tmp->device->id)) && (lun == tmp->device->lun) in NCR5380_reselect()
2589 HOSTNO, target_mask, lun in NCR5380_reselect()
2643 HOSTNO, target_mask, lun, tag); in NCR5380_reselect()
2649 HOSTNO, tmp->device->id, tmp->device->lun, tmp->tag); in NCR5380_reselect()
2722 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_abort()
2830 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_abort()