Lines Matching refs:target
809 qla1280_wait_for_pending_commands(struct scsi_qla_host *ha, int bus, int target) in qla1280_wait_for_pending_commands() argument
829 if (target >= 0 && SCSI_TCN_32(cmd) != target) in qla1280_wait_for_pending_commands()
858 int bus, target, lun; in qla1280_error_action() local
871 target = SCSI_TCN_32(cmd); in qla1280_error_action()
907 target, lun); in qla1280_error_action()
928 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
929 if (qla1280_device_reset(ha, bus, target) == 0) { in qla1280_error_action()
932 wait_for_target = target; in qla1280_error_action()
980 ha->host_no, bus, target, lun); in qla1280_error_action()
1150 qla1280_set_target_parameters(struct scsi_qla_host *ha, int bus, int target) in qla1280_set_target_parameters() argument
1163 mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); in qla1280_set_target_parameters()
1164 mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; in qla1280_set_target_parameters()
1165 mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; in qla1280_set_target_parameters()
1166 mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; in qla1280_set_target_parameters()
1167 mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; in qla1280_set_target_parameters()
1168 mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; in qla1280_set_target_parameters()
1169 mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; in qla1280_set_target_parameters()
1170 mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; in qla1280_set_target_parameters()
1171 mb[2] |= nv->bus[bus].target[target].parameter.disconnect_allowed << 15; in qla1280_set_target_parameters()
1174 mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; in qla1280_set_target_parameters()
1175 mb[3] = (nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8); in qla1280_set_target_parameters()
1176 mb[6] = (nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8) | in qla1280_set_target_parameters()
1177 nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; in qla1280_set_target_parameters()
1180 mb[3] = (nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8); in qla1280_set_target_parameters()
1182 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_set_target_parameters()
1189 mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); in qla1280_set_target_parameters()
1192 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_set_target_parameters()
1199 ha->host_no, bus, target); in qla1280_set_target_parameters()
1221 int target = device->id; in qla1280_slave_configure() local
1233 (ha->bus_settings[bus].qtag_enables & (BIT_0 << target))) { in qla1280_slave_configure()
1240 nv->bus[bus].target[target].parameter.enable_sync = device->sdtr; in qla1280_slave_configure()
1241 nv->bus[bus].target[target].parameter.enable_wide = device->wdtr; in qla1280_slave_configure()
1242 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = device->ppr; in qla1280_slave_configure()
1246 (~driver_setup.sync_mask & (1 << target)))) in qla1280_slave_configure()
1247 nv->bus[bus].target[target].parameter.enable_sync = 0; in qla1280_slave_configure()
1250 (~driver_setup.wide_mask & (1 << target)))) in qla1280_slave_configure()
1251 nv->bus[bus].target[target].parameter.enable_wide = 0; in qla1280_slave_configure()
1255 (~driver_setup.ppr_mask & (1 << target)))) in qla1280_slave_configure()
1256 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 0; in qla1280_slave_configure()
1260 if (nv->bus[bus].target[target].parameter.enable_sync) in qla1280_slave_configure()
1261 status = qla1280_set_target_parameters(ha, bus, target); in qla1280_slave_configure()
1280 int bus, target, lun; in qla1280_done() local
1294 target = SCSI_TCN_32(cmd); in qla1280_done()
1301 qla1280_marker(ha, bus, target, 0, MK_SYNC_ID); in qla1280_done()
2023 qla1280_set_target_defaults(struct scsi_qla_host *ha, int bus, int target) in qla1280_set_target_defaults() argument
2027 nv->bus[bus].target[target].parameter.renegotiate_on_error = 1; in qla1280_set_target_defaults()
2028 nv->bus[bus].target[target].parameter.auto_request_sense = 1; in qla1280_set_target_defaults()
2029 nv->bus[bus].target[target].parameter.tag_queuing = 1; in qla1280_set_target_defaults()
2030 nv->bus[bus].target[target].parameter.enable_sync = 1; in qla1280_set_target_defaults()
2032 nv->bus[bus].target[target].parameter.enable_wide = 1; in qla1280_set_target_defaults()
2034 nv->bus[bus].target[target].execution_throttle = in qla1280_set_target_defaults()
2036 nv->bus[bus].target[target].parameter.parity_checking = 1; in qla1280_set_target_defaults()
2037 nv->bus[bus].target[target].parameter.disconnect_allowed = 1; in qla1280_set_target_defaults()
2040 nv->bus[bus].target[target].flags.flags1x160.device_enable = 1; in qla1280_set_target_defaults()
2041 nv->bus[bus].target[target].flags.flags1x160.sync_offset = 0x0e; in qla1280_set_target_defaults()
2042 nv->bus[bus].target[target].sync_period = 9; in qla1280_set_target_defaults()
2043 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 1; in qla1280_set_target_defaults()
2044 nv->bus[bus].target[target].ppr_1x160.flags.ppr_options = 2; in qla1280_set_target_defaults()
2045 nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width = 1; in qla1280_set_target_defaults()
2047 nv->bus[bus].target[target].flags.flags1x80.device_enable = 1; in qla1280_set_target_defaults()
2048 nv->bus[bus].target[target].flags.flags1x80.sync_offset = 12; in qla1280_set_target_defaults()
2049 nv->bus[bus].target[target].sync_period = 10; in qla1280_set_target_defaults()
2057 int bus, target; in qla1280_set_defaults() local
2102 for (target = 0; target < MAX_TARGETS; target++) in qla1280_set_defaults()
2103 qla1280_set_target_defaults(ha, bus, target); in qla1280_set_defaults()
2108 qla1280_config_target(struct scsi_qla_host *ha, int bus, int target) in qla1280_config_target() argument
2117 mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); in qla1280_config_target()
2128 mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; in qla1280_config_target()
2130 mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; in qla1280_config_target()
2131 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_config_target()
2135 flag = (BIT_0 << target); in qla1280_config_target()
2136 if (nv->bus[bus].target[target].parameter.tag_queuing) in qla1280_config_target()
2141 if (nv->bus[bus].target[target].flags.flags1x160.device_enable) in qla1280_config_target()
2145 if (nv->bus[bus].target[target].flags.flags1x80.device_enable) in qla1280_config_target()
2148 if (nv->bus[bus].target[target].flags.flags1x80.lun_disable) in qla1280_config_target()
2155 mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); in qla1280_config_target()
2158 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_config_target()
2170 int target, status; in qla1280_config_bus() local
2191 for (target = 0; target < MAX_TARGETS; target++) in qla1280_config_bus()
2192 status |= qla1280_config_target(ha, bus, target); in qla1280_config_bus()
2202 int bus, target, status = 0; in qla1280_nvram_config() local
2210 for (target = 0; target < MAX_TARGETS; target++) { in qla1280_nvram_config()
2211 nv->bus[bus].target[target].parameter. in qla1280_nvram_config()
2658 qla1280_device_reset(struct scsi_qla_host *ha, int bus, int target) in qla1280_device_reset() argument
2666 mb[1] = (bus ? (target | BIT_7) : target) << 8; in qla1280_device_reset()
2671 qla1280_marker(ha, bus, target, 0, MK_SYNC_ID); in qla1280_device_reset()
2695 unsigned int bus, target, lun; in qla1280_abort_command() local
2701 target = SCSI_TCN_32(sp->cmd); in qla1280_abort_command()
2707 mb[1] = (bus ? target | BIT_7 : target) << 8 | lun; in qla1280_abort_command()
2768 pkt->target = (uint8_t) (bus ? (id | BIT_7) : id); in qla1280_marker()
2885 pkt->target = SCSI_BUS_32(cmd) ? in qla1280_64bit_start_scsi()
3154 pkt->target = SCSI_BUS_32(cmd) ? in qla1280_32bit_start_scsi()
3682 unsigned int bus, target, lun; in qla1280_status_entry() local
3710 target = SCSI_TCN_32(cmd); in qla1280_status_entry()
3751 "l %i\n", bus, target, lun); in qla1280_status_entry()
3976 int bus, target, lun; in qla1280_get_target_parameters() local
3979 target = device->id; in qla1280_get_target_parameters()
3984 mb[1] = (uint16_t) (bus ? target | BIT_7 : target); in qla1280_get_target_parameters()
3989 printk(KERN_INFO "scsi(%li:%d:%d:%d):", ha->host_no, bus, target, lun); in qla1280_get_target_parameters()