Lines Matching refs:target
112 unsigned target; /* target number */ member
367 static void acsi_prevent_removal( int target, int flag );
368 static int acsi_change_blk_size( int target, int lun);
369 static int acsi_mode_sense( int target, int lun, SENSE_DATA *sd );
384 extern int attach_slm( int target, int lun );
789 if (!acsi_reqsense( acsi_buffer, acsi_info[dev].target, in read_intr()
820 if (!acsi_reqsense( acsi_buffer, acsi_info[dev].target, in write_intr()
951 { unsigned block, dev, target, lun, nsect; in redo_acsi_request() local
1017 target = acsi_info[DEVICE_NR(dev)].target; in redo_acsi_request()
1067 CMDSET_TARG_LUN( write_cmd, target, lun ); in redo_acsi_request()
1084 CMDSET_TARG_LUN( read_cmd, target, lun ); in redo_acsi_request()
1134 put_user( acsi_info[dev].target | (acsi_info[dev].lun << 8), in acsi_ioctl()
1230 CMDSET_TARG_LUN(pa_med_rem_cmd, acsi_info[device].target, in acsi_prevent_removal()
1261 CMDSET_TARG_LUN(read_cmd, aip->target, aip->lun); in acsi_media_change()
1267 if (acsi_reqsense(acsi_buffer, aip->target, aip->lun)) { in acsi_media_change()
1291 static int acsi_change_blk_size( int target, int lun) in acsi_change_blk_size() argument
1300 CMDSET_TARG_LUN( modeselect_cmd, target, lun); in acsi_change_blk_size()
1311 static int acsi_mode_sense( int target, int lun, SENSE_DATA *sd ) in acsi_mode_sense() argument
1316 CMDSET_TARG_LUN( modesense_cmd, target, lun ); in acsi_mode_sense()
1356 "sense data\n", target, lun ); in acsi_mode_sense()
1363 target, lun ); in acsi_mode_sense()
1485 CMDSET_TARG_LUN(tur_cmd, aip->target, aip->lun); in acsi_devinit()
1489 printk("target %d lun %d: timeout\n", aip->target, aip->lun); in acsi_devinit()
1506 aip->target, aip->lun); in acsi_devinit()
1514 aip->target, aip->lun, status); in acsi_devinit()
1524 if (!acsi_reqsense(acsi_buffer, aip->target, aip->lun)) { in acsi_devinit()
1537 aip->target, aip->lun, extsense); in acsi_devinit()
1546 aip->target, aip->lun, reqsense); in acsi_devinit()
1556 aip->target, aip->lun); in acsi_devinit()
1575 CMDSET_TARG_LUN(inquiry_cmd, aip->target, aip->lun); in acsi_devinit()
1601 if (!acsi_mode_sense(aip->target, aip->lun, &sense)) { in acsi_devinit()
1607 !acsi_change_blk_size(aip->target, aip->lun) || in acsi_devinit()
1608 !acsi_mode_sense(aip->target, aip->lun, &sense) || in acsi_devinit()
1664 int i, target, lun; in acsi_geninit() local
1678 for (target = 0; target < 8 && NDevices < MAX_DEV; ++target) { in acsi_geninit()
1683 aip->target = target; in acsi_geninit()
1699 'a' + NDevices, target, lun); in acsi_geninit()
1712 n_slm += attach_slm( target, lun ); in acsi_geninit()
1716 SLM_devices[target] = lun; in acsi_geninit()
1722 "id %d lun %d\n", target, lun); in acsi_geninit()
1887 aip->target, aip->lun); in revalidate_acsidisk()