• Home
  • Raw
  • Download

Lines Matching defs:shpnt

508 	struct Scsi_Host *shpnt = dev_get_drvdata(dev);  in interrupt_handler()  local
549 if (ld(shpnt)[ldn].cmd) in interrupt_handler() local
553 if (ld(shpnt)[ldn].cmd) in interrupt_handler() local
558 if (ld(shpnt)[ldn].cmd) { in interrupt_handler() local
607 last_scsi_command(shpnt)[ldn] = NO_SCSI; in interrupt_handler() local
612 if (last_scsi_type(shpnt)[ldn] == IM_IMM_CMD) { in interrupt_handler() local
626 last_scsi_command(shpnt)[ldn] = NO_SCSI; in interrupt_handler() local
627 last_scsi_type(shpnt)[ldn] = 0; in interrupt_handler() local
630 } else if (last_scsi_command(shpnt)[ldn] == IM_ABORT_IMM_CMD) { in interrupt_handler() local
638 ld(shpnt)[ldn].cmd = NULL; in interrupt_handler() local
644 last_scsi_command(shpnt)[ldn] = NO_SCSI; in interrupt_handler() local
645 last_scsi_type(shpnt)[ldn] = 0; in interrupt_handler() local
655 last_scsi_command(shpnt)[ldn] = NO_SCSI; in interrupt_handler() local
660 last_scsi_command(shpnt)[ldn] = NO_SCSI; in interrupt_handler() local
661 last_scsi_type(shpnt)[ldn] = 0; in interrupt_handler() local
663 ld(shpnt)[ldn].cmd = NULL; in interrupt_handler() local
711 static void issue_cmd(struct Scsi_Host *shpnt, unsigned long cmd_reg, in issue_cmd()
735 static int device_inquiry(struct Scsi_Host *shpnt, int ldn) in device_inquiry()
745 ld(shpnt)[ldn].tsb.dev_status = 0; /* prepare statusblock */ in device_inquiry() local
750 last_scsi_command(shpnt)[ldn] = IM_DEVICE_INQUIRY_CMD; in device_inquiry() local
751 last_scsi_type(shpnt)[ldn] = IM_SCB; in device_inquiry() local
772 static int read_capacity(struct Scsi_Host *shpnt, int ldn) in read_capacity()
782 ld(shpnt)[ldn].tsb.dev_status = 0; in read_capacity() local
787 last_scsi_command(shpnt)[ldn] = IM_READ_CAPACITY_CMD; in read_capacity() local
788 last_scsi_type(shpnt)[ldn] = IM_SCB; in read_capacity() local
809 static int get_pos_info(struct Scsi_Host *shpnt) in get_pos_info()
819 ld(shpnt)[MAX_LOG_DEV].tsb.dev_status = 0; in get_pos_info() local
824 last_scsi_command(shpnt)[MAX_LOG_DEV] = IM_GET_POS_INFO_CMD; in get_pos_info() local
825 last_scsi_type(shpnt)[MAX_LOG_DEV] = IM_SCB; in get_pos_info() local
854 static int immediate_assign(struct Scsi_Host *shpnt, unsigned int pun, in immediate_assign()
881 last_scsi_command(shpnt)[MAX_LOG_DEV] = IM_ASSIGN_IMM_CMD; in immediate_assign() local
882 last_scsi_type(shpnt)[MAX_LOG_DEV] = IM_IMM_CMD; in immediate_assign() local
898 static int immediate_feature(struct Scsi_Host *shpnt, unsigned int speed, unsigned int timeout) in immediate_feature()
908 last_scsi_command(shpnt)[MAX_LOG_DEV] = IM_FEATURE_CTR_IMM_CMD; in immediate_feature() local
909 last_scsi_type(shpnt)[MAX_LOG_DEV] = IM_IMM_CMD; in immediate_feature() local
935 static int immediate_reset(struct Scsi_Host *shpnt, unsigned int ldn) in immediate_reset()
945 last_scsi_command(shpnt)[ldn] = IM_RESET_IMM_CMD; in immediate_reset() local
946 last_scsi_type(shpnt)[ldn] = IM_IMM_CMD; in immediate_reset() local
1065 static int probe_bus_mode(struct Scsi_Host *shpnt) in probe_bus_mode()
1081 ld(shpnt)[ldn].cache_flag = 0; in probe_bus_mode() local
1084 ld(shpnt)[ldn].retry_flag = 0; in probe_bus_mode() local
1102 static void check_devices(struct Scsi_Host *shpnt, int adaptertype) in check_devices()
1120 last_scsi_command(shpnt)[ldn] = NO_SCSI; /* emptify last SCSI-command storage */ in check_devices() local
1121 last_scsi_type(shpnt)[ldn] = 0; in check_devices() local
1122 ld(shpnt)[ldn].cache_flag = 1; in check_devices() local
1123 ld(shpnt)[ldn].retry_flag = 1; in check_devices() local
1129 get_scsi(shpnt)[subsystem_pun(shpnt)][lun] = TYPE_IBM_SCSI_ADAPTER; in check_devices() local
1130 get_ldn(shpnt)[subsystem_pun(shpnt)][lun] = MAX_LOG_DEV; /* make sure, the subsystem in check_devices() local
1206 get_scsi(shpnt)[id][lun] = (unsigned char) (ld(shpnt)[PROBE_LDN].buf[0]); in check_devices() local
1208 if (ld(shpnt)[PROBE_LDN].buf[0] != TYPE_NO_LUN) in check_devices() local
1237 get_ldn(shpnt)[id][lun] = ldn; /* map ldn */ in check_devices() local
1249 get_ldn(shpnt)[id][lun] = TYPE_NO_DEVICE; in check_devices() local
1257 get_ldn(shpnt)[id][lun] = ldn; /* map ldn */ in check_devices() local
1267 if (get_scsi(shpnt)[id][lun] == TYPE_NO_LUN || get_scsi(shpnt)[id][lun] == TYPE_NO_DEVICE) { in check_devices() local
1274 get_ldn(shpnt)[id][lun] = ldn; in check_devices() local
1335 static int device_exists(struct Scsi_Host *shpnt, int ldn, int *block_length, int *device_type) in device_exists()
1507 struct Scsi_Host *shpnt; in ibmmca_probe() local
1649 get_ldn(shpnt)[i][j] = MAX_LOG_DEV; in ibmmca_probe() local
1684 struct Scsi_Host *shpnt = dev_get_drvdata(dev); in ibmmca_remove() local
1698 struct Scsi_Host *shpnt; in ibmmca_queuecommand_lck() local
1731 while (ld(shpnt)[next_ldn(shpnt)].cmd) { /* search for a occupied, but not in */ in ibmmca_queuecommand_lck() local
1752 if (get_ldn(shpnt)[id][lun] == next_ldn(shpnt)) { in ibmmca_queuecommand_lck() local
1753 get_ldn(shpnt)[id][lun] = TYPE_NO_DEVICE; in ibmmca_queuecommand_lck() local
1754 get_scsi(shpnt)[id][lun] = TYPE_NO_DEVICE; in ibmmca_queuecommand_lck() local
1761 get_ldn(shpnt)[target][cmd->device->lun] = next_ldn(shpnt); in ibmmca_queuecommand_lck() local
1770 ld(shpnt)[ldn].cmd = NULL; /* To prevent panic set 0, because in ibmmca_queuecommand_lck() local
1773 get_scsi(shpnt)[target][cmd->device->lun] = ld(shpnt)[ldn].device_type; in ibmmca_queuecommand_lck() local
1789 if (get_ldn(shpnt)[id][lun] <= MAX_LOG_DEV) in ibmmca_queuecommand_lck() local
1811 if (ld(shpnt)[ldn].cmd) in ibmmca_queuecommand_lck() local
1816 ld(shpnt)[ldn].cmd = cmd; in ibmmca_queuecommand_lck() local
1820 ld(shpnt)[ldn].tsb.dev_status = 0; in ibmmca_queuecommand_lck() local
1829 ld(shpnt)[ldn].sge[i].address = (void *) (isa_page_to_bus(sg_page(sg)) + sg->offset); in ibmmca_queuecommand_lck() local
1830 ld(shpnt)[ldn].sge[i].byte_length = sg->length; in ibmmca_queuecommand_lck() local
1868 if (ld(shpnt)[ldn].device_type == IM_DEBUG_CMD_DEVICE) in ibmmca_queuecommand_lck() local
1873 last_scsi_command(shpnt)[ldn] = scsi_cmd; in ibmmca_queuecommand_lck() local
1874 last_scsi_type(shpnt)[ldn] = IM_SCB; in ibmmca_queuecommand_lck() local
1889 switch (ld(shpnt)[ldn].device_type) { in ibmmca_queuecommand_lck() local
1909 last_scsi_logical_block(shpnt)[ldn] = scb->u1.log_blk_adr; in ibmmca_queuecommand_lck() local
1910 last_scsi_blockcount(shpnt)[ldn] = scb->u2.blk.count; in ibmmca_queuecommand_lck() local
1932 last_scsi_type(shpnt)[ldn] = IM_LONG_SCB; in ibmmca_queuecommand_lck() local
1950 last_scsi_type(shpnt)[ldn] = IM_LONG_SCB; in ibmmca_queuecommand_lck() local
1972 last_scsi_type(shpnt)[ldn] = IM_LONG_SCB; in ibmmca_queuecommand_lck() local
1981 last_scsi_type(shpnt)[ldn] = IM_LONG_SCB; in ibmmca_queuecommand_lck() local
1988 if (last_scsi_type(shpnt)[ldn] == IM_LONG_SCB) { in ibmmca_queuecommand_lck() local
2006 struct Scsi_Host *shpnt; in DEF_SCSI_QCMD() local
2045 last_scsi_command(shpnt)[ldn] = IM_ABORT_IMM_CMD; in DEF_SCSI_QCMD() local
2046 last_scsi_type(shpnt)[ldn] = IM_IMM_CMD; in DEF_SCSI_QCMD() local
2077 ld(shpnt)[ldn].cmd = NULL; in DEF_SCSI_QCMD() local
2086 ld(shpnt)[ldn].cmd = NULL; in DEF_SCSI_QCMD() local
2096 struct Scsi_Host *shpnt = cmd->device->host; in ibmmca_abort() local
2108 struct Scsi_Host *shpnt; in __ibmmca_host_reset() local
2126 last_scsi_command(shpnt)[0xf] = IM_RESET_IMM_CMD; in __ibmmca_host_reset() local
2127 last_scsi_type(shpnt)[0xf] = IM_IMM_CMD; in __ibmmca_host_reset() local
2179 ld(shpnt)[i].cmd = NULL; in __ibmmca_host_reset() local
2188 struct Scsi_Host *shpnt = cmd->device->host; in ibmmca_host_reset() local
2220 static int ldn_access_load(struct Scsi_Host *shpnt, int ldn) in ldn_access_load()
2230 static int ldn_access_total_read_write(struct Scsi_Host *shpnt) in ldn_access_total_read_write()
2241 static int ldn_access_total_inquiry(struct Scsi_Host *shpnt) in ldn_access_total_inquiry()
2252 static int ldn_access_total_modeselect(struct Scsi_Host *shpnt) in ldn_access_total_modeselect()
2264 static int ibmmca_proc_info(struct Scsi_Host *shpnt, char *buffer, char **start, off_t offset, int … in ibmmca_proc_info()