• Home
  • Raw
  • Download

Lines Matching refs:HOSTDATA

286 	do { if(HOSTDATA(shpnt)->debug & (when)) printk(msgs); } while(0)
576 #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) macro
580 #define CURRENT_SC (HOSTDATA(shpnt)->current_SC)
581 #define DONE_SC (HOSTDATA(shpnt)->done_SC)
582 #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC)
583 #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC)
584 #define QLOCK (HOSTDATA(shpnt)->lock)
585 #define QLOCKER (HOSTDATA(shpnt)->locker)
586 #define QLOCKERL (HOSTDATA(shpnt)->lockerl)
588 #define STATE (HOSTDATA(shpnt)->state)
589 #define PREVSTATE (HOSTDATA(shpnt)->prevstate)
590 #define LASTSTATE (HOSTDATA(shpnt)->laststate)
592 #define RECONN_TARGET (HOSTDATA(shpnt)->target)
594 #define CMD_I (HOSTDATA(shpnt)->cmd_i)
596 #define MSGO(i) (HOSTDATA(shpnt)->msgo[i])
597 #define MSGO_I (HOSTDATA(shpnt)->msgo_i)
598 #define MSGOLEN (HOSTDATA(shpnt)->msgo_len)
601 #define MSGI(i) (HOSTDATA(shpnt)->msgi[i])
602 #define MSGILEN (HOSTDATA(shpnt)->msgi_len)
605 #define DATA_LEN (HOSTDATA(shpnt)->data_len)
607 #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id])
608 #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id])
610 #define DELAY (HOSTDATA(shpnt)->delay)
611 #define EXT_TRANS (HOSTDATA(shpnt)->ext_trans)
612 #define TC1550 (HOSTDATA(shpnt)->tc1550)
613 #define RECONNECT (HOSTDATA(shpnt)->reconnect)
614 #define PARITY (HOSTDATA(shpnt)->parity)
615 #define SYNCHRONOUS (HOSTDATA(shpnt)->synchronous)
617 #define HOSTIOPORT0 (HOSTDATA(shpnt)->io_port0)
618 #define HOSTIOPORT1 (HOSTDATA(shpnt)->io_port1)
774 HOSTDATA(shpnt)->swint++; in swintr()
790 memset(HOSTDATA(shpnt), 0, sizeof *HOSTDATA(shpnt)); in aha152x_probe_one()
791 INIT_LIST_HEAD(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
794 list_add_tail(&HOSTDATA(shpnt)->host_list, &aha152x_host_list); in aha152x_probe_one()
816 HOSTDATA(shpnt)->debug = setup->debug; in aha152x_probe_one()
865 HOSTDATA(shpnt)->swint = 0; in aha152x_probe_one()
874 if (!HOSTDATA(shpnt)->swint) { in aha152x_probe_one()
910 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
931 if (HOSTDATA(shpnt)->pnpdev) in aha152x_release()
932 pnp_device_detach(HOSTDATA(shpnt)->pnpdev); in aha152x_release()
935 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_release()
973 if(!HOSTDATA(shpnt)->in_intr) in setup_expected_interrupts()
990 if (HOSTDATA(shpnt)->debug & debug_queue) { in aha152x_internal_queue()
1045 HOSTDATA(shpnt)->total_commands++; in aha152x_internal_queue()
1049 HOSTDATA(shpnt)->commands++; in aha152x_internal_queue()
1050 if (HOSTDATA(shpnt)->commands==1) in aha152x_internal_queue()
1055 if(!HOSTDATA(shpnt)->in_intr) in aha152x_internal_queue()
1112 if(HOSTDATA(shpnt)->debug & debug_eh) { in aha152x_abort()
1125 HOSTDATA(shpnt)->commands--; in aha152x_abort()
1126 if (!HOSTDATA(shpnt)->commands) in aha152x_abort()
1164 if(HOSTDATA(shpnt)->debug & debug_eh) { in aha152x_device_reset()
1197 HOSTDATA(shpnt)->commands--; in aha152x_device_reset()
1198 if (!HOSTDATA(shpnt)->commands) in aha152x_device_reset()
1237 HOSTDATA(shpnt)->commands--; in free_hard_reset_SCs()
1257 if(HOSTDATA(shpnt)->debug & debug_eh) { in aha152x_bus_reset_host()
1276 if(HOSTDATA(shpnt)->commands==0) in aha152x_bus_reset_host()
1476 if( HOSTDATA(shpnt)->service==0 ) { in intr()
1477 HOSTDATA(shpnt)->service=1; in intr()
1530 HOSTDATA(shpnt)->disconnections++; in busfree_run()
1541 HOSTDATA(shpnt)->busfree_without_old_command++; in busfree_run()
1553 struct scsi_cmnd *cmd = HOSTDATA(shpnt)->done_SC; in busfree_run()
1557 if(HOSTDATA(shpnt)->debug & debug_eh) { in busfree_run()
1567 HOSTDATA(shpnt)->commands--; in busfree_run()
1568 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1572 HOSTDATA(shpnt)->busfree_with_check_condition++; in busfree_run()
1611 HOSTDATA(shpnt)->commands--; in busfree_run()
1612 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1630 HOSTDATA(shpnt)->busfree_without_done_command++; in busfree_run()
1655 HOSTDATA(shpnt)->busfree_without_new_command++; in busfree_run()
1662 HOSTDATA(shpnt)->busfree_without_any_action++; in busfree_run()
1793 SETRATE(HOSTDATA(shpnt)->syncrate[target]); in seldi_run()
1828 if (HOSTDATA(shpnt)->debug & debug_msgi) { in msgi_run()
1914 if (!HOSTDATA(shpnt)->synchronous) in msgi_run()
1964 HOSTDATA(shpnt)->syncrate[i]=0; in msgi_run()
1965 HOSTDATA(shpnt)->syncneg[i]=0; in msgi_run()
2012 if(HOSTDATA(shpnt)->debug & debug_msgo) { in msgo_init()
2086 if (HOSTDATA(shpnt)->debug & debug_cmd) { in cmd_init()
2140 if (HOSTDATA(shpnt)->debug & debug_status) { in status_run()
2518 if( HOSTDATA(shpnt)->service==0 ) { in is_complete()
2523 HOSTDATA(shpnt)->service = 0; in is_complete()
2525 if(HOSTDATA(shpnt)->in_intr) { in is_complete()
2530 HOSTDATA(shpnt)->in_intr++; in is_complete()
2610 HOSTDATA(shpnt)->count[STATE]++; in is_complete()
2612 HOSTDATA(shpnt)->count_trans[STATE]++; in is_complete()
2613 HOSTDATA(shpnt)->time[STATE] += jiffies-start; in is_complete()
2623 HOSTDATA(shpnt)->in_intr--; in is_complete()
3287 int debug = HOSTDATA(shpnt)->debug; in aha152x_set_info()
3289 HOSTDATA(shpnt)->debug = simple_strtoul(buffer+14, NULL, 0); in aha152x_set_info()
3291 …printk(KERN_INFO "aha152x%d: debugging options set to 0x%04x (were 0x%04x)\n", HOSTNO, HOSTDATA(sh… in aha152x_set_info()
3298 HOSTDATA(shpnt)->total_commands=0; in aha152x_set_info()
3299 HOSTDATA(shpnt)->disconnections=0; in aha152x_set_info()
3300 HOSTDATA(shpnt)->busfree_without_any_action=0; in aha152x_set_info()
3301 HOSTDATA(shpnt)->busfree_without_old_command=0; in aha152x_set_info()
3302 HOSTDATA(shpnt)->busfree_without_new_command=0; in aha152x_set_info()
3303 HOSTDATA(shpnt)->busfree_without_done_command=0; in aha152x_set_info()
3304 HOSTDATA(shpnt)->busfree_with_check_condition=0; in aha152x_set_info()
3306 HOSTDATA(shpnt)->count[i]=0; in aha152x_set_info()
3307 HOSTDATA(shpnt)->count_trans[i]=0; in aha152x_set_info()
3308 HOSTDATA(shpnt)->time[i]=0; in aha152x_set_info()
3355 SPRINTF("%d commands currently queued\n", HOSTDATA(shpnt)->commands); in aha152x_proc_info()
3360 if (HOSTDATA(shpnt)->syncrate[i] & 0x7f) in aha152x_proc_info()
3363 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2), in aha152x_proc_info()
3364 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2) * 50, in aha152x_proc_info()
3365 HOSTDATA(shpnt)->syncrate[i] & 0x0f); in aha152x_proc_info()
3369 if(HOSTDATA(shpnt)->debug & flags) SPRINTF("(%s) ", txt); in aha152x_proc_info()
3428 HOSTDATA(shpnt)->total_commands, in aha152x_proc_info()
3429 HOSTDATA(shpnt)->disconnections, in aha152x_proc_info()
3430 HOSTDATA(shpnt)->busfree_with_check_condition, in aha152x_proc_info()
3431 HOSTDATA(shpnt)->busfree_without_old_command, in aha152x_proc_info()
3432 HOSTDATA(shpnt)->busfree_without_new_command, in aha152x_proc_info()
3433 HOSTDATA(shpnt)->busfree_without_done_command, in aha152x_proc_info()
3434 HOSTDATA(shpnt)->busfree_without_any_action); in aha152x_proc_info()
3438 HOSTDATA(shpnt)->count_trans[i], in aha152x_proc_info()
3439 HOSTDATA(shpnt)->count[i], in aha152x_proc_info()
3440 HOSTDATA(shpnt)->time[i]); in aha152x_proc_info()
3909 HOSTDATA(shpnt)->pnpdev=pnpdev[i]; in aha152x_init()