Lines Matching refs:target
581 #define SCSI_TCN_32(Cmnd) Cmnd->target
1260 int bus, target, lun; in qla1280_queuecommand() local
1280 target = SCSI_TCN_32(cmd); in qla1280_queuecommand()
1345 int bus, target, lun; in qla1280_error_action() local
1404 target = SCSI_TCN_32(cmd); in qla1280_error_action()
1442 ha->host_no, bus, target, lun); in qla1280_error_action()
1453 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
1454 if (qla1280_abort_device(ha, bus, target, lun) == 0) in qla1280_error_action()
1462 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
1464 if (qla1280_device_reset(ha, bus, target) == 0) in qla1280_error_action()
1654 qla12160_set_target_parameters(struct scsi_qla_host *ha, int bus, int target) in qla12160_set_target_parameters() argument
1673 mb[1] = (uint16_t) (bus ? target | BIT_7 : target); in qla12160_set_target_parameters()
1676 mb[2] = (nv->bus[bus].target[target].parameter.c << 8); in qla12160_set_target_parameters()
1679 mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; in qla12160_set_target_parameters()
1681 mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; in qla12160_set_target_parameters()
1682 mb[3] |= nv->bus[bus].target[target].sync_period; in qla12160_set_target_parameters()
1685 mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; in qla12160_set_target_parameters()
1686 mb[6] = nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8; in qla12160_set_target_parameters()
1687 mb[6] |= nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; in qla12160_set_target_parameters()
1696 ha->host_no, bus, target); in qla12160_set_target_parameters()
1718 int target = device->id; in qla1280_slave_configure() local
1730 (ha->bus_settings[bus].qtag_enables & (BIT_0 << target))) { in qla1280_slave_configure()
1738 nv->bus[bus].target[target].parameter.f.enable_sync = device->sdtr; in qla1280_slave_configure()
1739 nv->bus[bus].target[target].parameter.f.enable_wide = device->wdtr; in qla1280_slave_configure()
1740 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = device->ppr; in qla1280_slave_configure()
1745 (~driver_setup.sync_mask & (1 << target)))) in qla1280_slave_configure()
1746 nv->bus[bus].target[target].parameter.f.enable_sync = 0; in qla1280_slave_configure()
1749 (~driver_setup.wide_mask & (1 << target)))) in qla1280_slave_configure()
1750 nv->bus[bus].target[target].parameter.f.enable_wide = 0; in qla1280_slave_configure()
1755 (~driver_setup.ppr_mask & (1 << target)))) in qla1280_slave_configure()
1756 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 0; in qla1280_slave_configure()
1760 if (nv->bus[bus].target[target].parameter.f.enable_sync) { in qla1280_slave_configure()
1761 status = qla12160_set_target_parameters(ha, bus, target); in qla1280_slave_configure()
1814 int bus, target, lun; in qla1280_done() local
1829 target = SCSI_TCN_32(cmd); in qla1280_done()
1835 qla1280_marker(ha, bus, target, 0, MK_SYNC_ID); in qla1280_done()
2714 int bus, target, lun; in qla1280_nvram_config() local
2762 for (target = 0; target < MAX_TARGETS; target++) { in qla1280_nvram_config()
2763 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2765 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2767 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2769 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2772 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2775 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2777 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2779 nv->bus[bus].target[target].execution_throttle= in qla1280_nvram_config()
2782 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2784 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2786 nv->bus[bus].target[target]. in qla1280_nvram_config()
2788 nv->bus[bus].target[target]. in qla1280_nvram_config()
2790 nv->bus[bus].target[target].ppr_1x160. in qla1280_nvram_config()
2792 nv->bus[bus].target[target].ppr_1x160. in qla1280_nvram_config()
2795 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2797 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2799 nv->bus[bus].target[target]. in qla1280_nvram_config()
2807 for (target = 0; target < MAX_TARGETS; target++) { in qla1280_nvram_config()
2808 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2982 for (target = 0; target < MAX_TARGETS; target++) { in qla1280_nvram_config()
2987 mb[1] = (uint16_t) (bus ? target | BIT_7 : target); in qla1280_nvram_config()
2994 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2996 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
3000 nv->bus[bus].target[target].ppr_1x160. in qla1280_nvram_config()
3005 mb[2] = (nv->bus[bus].target[target].parameter.c << 8)& in qla1280_nvram_config()
3009 mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; in qla1280_nvram_config()
3011 mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; in qla1280_nvram_config()
3012 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_nvram_config()
3021 mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; in qla1280_nvram_config()
3023 mb[6] = nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8; in qla1280_nvram_config()
3024 mb[6] |= nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; in qla1280_nvram_config()
3032 mb[0] = BIT_0 << target; in qla1280_nvram_config()
3033 if (nv->bus[bus].target[target].parameter.f.tag_queuing) in qla1280_nvram_config()
3038 if (nv->bus[bus].target[target].flags.flags1x160.device_enable) in qla1280_nvram_config()
3042 if (nv->bus[bus].target[target].flags.flags1x80.device_enable) in qla1280_nvram_config()
3045 if (nv->bus[bus].target[target].flags.flags1x80.lun_disable) in qla1280_nvram_config()
3053 mb[1] = (uint16_t)(bus ? target | BIT_7 : target); in qla1280_nvram_config()
3056 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_nvram_config()
3396 qla1280_device_reset(struct scsi_qla_host *ha, int bus, int target) in qla1280_device_reset() argument
3404 mb[1] = (bus ? (target | BIT_7) : target) << 8; in qla1280_device_reset()
3409 qla1280_marker(ha, bus, target, 0, MK_SYNC_ID); in qla1280_device_reset()
3432 qla1280_abort_device(struct scsi_qla_host *ha, int bus, int target, int lun) in qla1280_abort_device() argument
3440 mb[1] = (bus ? target | BIT_7 : target) << 8 | lun; in qla1280_abort_device()
3444 qla1280_marker(ha, bus, target, lun, MK_SYNC_ID_LUN); in qla1280_abort_device()
3468 unsigned int bus, target, lun; in qla1280_abort_command() local
3474 target = SCSI_TCN_32(sp->cmd); in qla1280_abort_command()
3480 mb[1] = (bus ? target | BIT_7 : target) << 8 | lun; in qla1280_abort_command()
3541 pkt->target = (uint8_t) (bus ? (id | BIT_7) : id); in qla1280_marker()
3658 pkt->target = SCSI_BUS_32(cmd) ? in qla1280_64bit_start_scsi()
3958 pkt->target = SCSI_BUS_32(cmd) ? in qla1280_32bit_start_scsi()
4529 int bus, target, lun; in qla1280_get_target_options() local
4532 target = SCSI_TCN_32(cmd); in qla1280_get_target_options()
4545 n->bus[bus].target[target].parameter.f.enable_wide = 0; in qla1280_get_target_options()
4546 n->bus[bus].target[target].parameter.f.enable_sync = 0; in qla1280_get_target_options()
4547 n->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 0; in qla1280_get_target_options()
4550 n->bus[bus].target[target].parameter.f.enable_wide = 1; in qla1280_get_target_options()
4552 n->bus[bus].target[target].parameter.f.enable_sync = 1; in qla1280_get_target_options()
4555 n->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 1; in qla1280_get_target_options()
4558 n->bus[bus].target[target].parameter.f.enable_wide, in qla1280_get_target_options()
4559 n->bus[bus].target[target].parameter.f.enable_sync, in qla1280_get_target_options()
4560 n->bus[bus].target[target].ppr_1x160.flags.enable_ppr); in qla1280_get_target_options()
4578 unsigned int bus, target, lun; in qla1280_status_entry() local
4606 target = SCSI_TCN_32(cmd); in qla1280_status_entry()
4648 "l %i\n", bus, target, lun); in qla1280_status_entry()
4893 int bus, target, lun; in qla12160_get_target_parameters() local
4896 target = device->id; in qla12160_get_target_parameters()
4901 mb[1] = (uint16_t) (bus ? target | BIT_7 : target); in qla12160_get_target_parameters()
4906 printk(KERN_INFO "scsi(%li:%d:%d:%d):", ha->host_no, bus, target, lun); in qla12160_get_target_parameters()