• Home
  • Raw
  • Download

Lines Matching refs:lun

334 	int target, lun;  in init_tags()  local
341 for (lun = 0; lun < 8; ++lun) { in init_tags()
342 ta = &TagAlloc[target][lun]; in init_tags()
364 u8 lun = cmd->device->lun; in is_lun_busy() local
367 if (hostdata->busy[cmd->device->id] & (1 << lun)) in is_lun_busy()
372 if (TagAlloc[cmd->device->id][lun].nr_allocated >= in is_lun_busy()
373 TagAlloc[cmd->device->id][lun].queue_size) { in is_lun_busy()
375 H_NO(cmd), cmd->device->id, lun); in is_lun_busy()
389 u8 lun = cmd->device->lun; in cmd_get_tag() local
398 hostdata->busy[cmd->device->id] |= (1 << lun); in cmd_get_tag()
400 "command\n", H_NO(cmd), cmd->device->id, lun); in cmd_get_tag()
402 TAG_ALLOC *ta = &TagAlloc[cmd->device->id][lun]; in cmd_get_tag()
410 lun, ta->nr_allocated); in cmd_get_tag()
421 u8 lun = cmd->device->lun; in cmd_free_tag() local
425 hostdata->busy[cmd->device->id] &= ~(1 << lun); in cmd_free_tag()
427 H_NO(cmd), cmd->device->id, lun); in cmd_free_tag()
432 TAG_ALLOC *ta = &TagAlloc[cmd->device->id][lun]; in cmd_free_tag()
436 H_NO(cmd), cmd->tag, cmd->device->id, lun); in cmd_free_tag()
443 int target, lun; in free_all_tags() local
450 for (lun = 0; lun < 8; ++lun) { in free_all_tags()
451 ta = &TagAlloc[target][lun]; in free_all_tags()
720 H_NO(cmd), cmd->device->id, cmd->device->lun); in lprint_Scsi_Cmnd()
766 H_NO(cmd), cmd->device->id, cmd->device->lun); in show_Scsi_Cmnd()
1066 u8 lun = tmp->device->lun; in DEF_SCSI_QCMD() local
1072 lun); in DEF_SCSI_QCMD()
1080 !(hostdata->busy[tmp->device->id] & (1 << lun)) in DEF_SCSI_QCMD()
1106 HOSTNO, tmp->device->id, lun); in DEF_SCSI_QCMD()
1655 tmp[0] = IDENTIFY(1, cmd->device->lun); in NCR5380_select()
1677 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun); in NCR5380_select()
2069 cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2121 "complete.\n", HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2134 HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2147 HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2163 "completed\n", HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2175 TAG_ALLOC *ta = &TagAlloc[cmd->device->id][cmd->device->lun]; in NCR5380_information_transfer()
2178 HOSTNO, cmd->device->id, cmd->device->lun, in NCR5380_information_transfer()
2184 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_information_transfer()
2272 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun); in NCR5380_information_transfer()
2277 HOSTNO, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2294 cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2393 HOSTNO, tmp, cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2399 cmd->device->id, cmd->device->lun); in NCR5380_information_transfer()
2416 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_information_transfer()
2470 unsigned char lun, phase; in NCR5380_reselect() local
2525 lun = (msg[0] & 0x07); in NCR5380_reselect()
2542 "reselection\n", HOSTNO, target_mask, lun, tag); in NCR5380_reselect()
2553 if ((target_mask == (1 << tmp->device->id)) && (lun == tmp->device->lun) in NCR5380_reselect()
2578 HOSTNO, target_mask, lun in NCR5380_reselect()
2596 HOSTNO, tmp->device->id, tmp->device->lun, tmp->tag); in NCR5380_reselect()
2675 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_abort()
2783 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); in NCR5380_abort()