Lines Matching refs:MAX_LOG_DEV
310 #define MAX_LOG_DEV 15 macro
329 int ldn_access[MAX_LOG_DEV + 1]; /* total accesses on a ldn */
330 int ldn_read_access[MAX_LOG_DEV + 1]; /* total read-access on a ldn */
331 int ldn_write_access[MAX_LOG_DEV + 1]; /* total write-access on a ldn */
332 int ldn_inquiry_access[MAX_LOG_DEV + 1]; /* total inquiries on a ldn */
333 int ldn_modeselect_access[MAX_LOG_DEV + 1]; /* total mode selects on ldn */
344 int ldn_assignments[MAX_LOG_DEV + 1]; /* number of remappings of each
351 struct logical_device _ld[MAX_LOG_DEV + 1];
366 int _last_scsi_command[MAX_LOG_DEV + 1];
368 int _last_scsi_type[MAX_LOG_DEV + 1];
370 int _last_scsi_blockcount[MAX_LOG_DEV + 1];
372 unsigned long _last_scsi_logical_block[MAX_LOG_DEV + 1];
817 scb = &(ld(shpnt)[MAX_LOG_DEV].scb); in get_pos_info()
818 tsb = &(ld(shpnt)[MAX_LOG_DEV].tsb); in get_pos_info()
819 buf = (unsigned char *) (&(ld(shpnt)[MAX_LOG_DEV].buf)); in get_pos_info()
820 ld(shpnt)[MAX_LOG_DEV].tsb.dev_status = 0; in get_pos_info()
825 last_scsi_command(shpnt)[MAX_LOG_DEV] = IM_GET_POS_INFO_CMD; in get_pos_info()
826 last_scsi_type(shpnt)[MAX_LOG_DEV] = IM_SCB; in get_pos_info()
835 issue_cmd(shpnt, isa_virt_to_bus(scb), IM_SCB | MAX_LOG_DEV); in get_pos_info()
882 last_scsi_command(shpnt)[MAX_LOG_DEV] = IM_ASSIGN_IMM_CMD; in immediate_assign()
883 last_scsi_type(shpnt)[MAX_LOG_DEV] = IM_IMM_CMD; in immediate_assign()
885 issue_cmd(shpnt, (unsigned long) (imm_cmd), IM_IMM_CMD | MAX_LOG_DEV); in immediate_assign()
909 last_scsi_command(shpnt)[MAX_LOG_DEV] = IM_FEATURE_CTR_IMM_CMD; in immediate_feature()
910 last_scsi_type(shpnt)[MAX_LOG_DEV] = IM_IMM_CMD; in immediate_feature()
915 issue_cmd(shpnt, (unsigned long) (imm_cmd), IM_IMM_CMD | MAX_LOG_DEV); in immediate_feature()
1009 if (val <= MAX_LOG_DEV) in ti_l()
1072 info = (struct im_pos_info *) (&(ld(shpnt)[MAX_LOG_DEV].buf)); in probe_bus_mode()
1079 for (ldn = 0; ldn <= MAX_LOG_DEV; ldn++) { in probe_bus_mode()
1089 for (ldn = 0; ldn <= MAX_LOG_DEV; ldn++) { in probe_bus_mode()
1093 for (ldn = 0; ldn <= MAX_LOG_DEV; ldn++) { in probe_bus_mode()
1120 for (ldn = 0; ldn <= MAX_LOG_DEV; ldn++) { in check_devices()
1131 get_ldn(shpnt)[subsystem_pun(shpnt)][lun] = MAX_LOG_DEV; /* make sure, the subsystem in check_devices()
1178 for (ldn = 0; ldn < MAX_LOG_DEV; ldn++) { in check_devices()
1226 for (lun = 0; lun < 8 && ldn < MAX_LOG_DEV; lun++) in check_devices()
1228 for (id = 0; id < max_pun && ldn < MAX_LOG_DEV; id++) { in check_devices()
1266 for (lun = 1; lun < 8 && ldn < MAX_LOG_DEV; lun++) in check_devices()
1267 for (id = 0; id < max_pun && ldn < MAX_LOG_DEV; id++) { in check_devices()
1311 if (count_devices >= MAX_LOG_DEV) in check_devices()
1650 get_ldn(shpnt)[i][j] = MAX_LOG_DEV; in ibmmca_probe()
1729 if (ldn >= MAX_LOG_DEV) { /* on invalid ldn do special stuff */ in ibmmca_queuecommand_lck()
1730 if (ldn > MAX_LOG_DEV) { /* dynamical remapping if ldn unassigned */ in ibmmca_queuecommand_lck()
1735 if (next_ldn(shpnt) >= MAX_LOG_DEV) in ibmmca_queuecommand_lck()
1790 if (get_ldn(shpnt)[id][lun] <= MAX_LOG_DEV) in ibmmca_queuecommand_lck()
1801 if (next_ldn(shpnt) >= MAX_LOG_DEV) in ibmmca_queuecommand_lck()
2177 for (i = 0; i < MAX_LOG_DEV; i++) { in __ibmmca_host_reset()
2237 for (i = 0; i <= MAX_LOG_DEV; i++) in ldn_access_total_read_write()
2248 for (i = 0; i <= MAX_LOG_DEV; i++) in ldn_access_total_inquiry()
2259 for (i = 0; i <= MAX_LOG_DEV; i++) in ldn_access_total_modeselect()
2302 for (i = 0; i <= MAX_LOG_DEV; i++) in ibmmca_proc_info()