Lines Matching refs:HOSTDATA
520 #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) macro
524 #define CURRENT_SC (HOSTDATA(shpnt)->current_SC)
525 #define DONE_SC (HOSTDATA(shpnt)->done_SC)
526 #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC)
527 #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC)
528 #define QLOCK (HOSTDATA(shpnt)->lock)
529 #define QLOCKER (HOSTDATA(shpnt)->locker)
530 #define QLOCKERL (HOSTDATA(shpnt)->lockerl)
532 #define STATE (HOSTDATA(shpnt)->state)
533 #define PREVSTATE (HOSTDATA(shpnt)->prevstate)
534 #define LASTSTATE (HOSTDATA(shpnt)->laststate)
536 #define RECONN_TARGET (HOSTDATA(shpnt)->target)
538 #define CMD_I (HOSTDATA(shpnt)->cmd_i)
540 #define MSGO(i) (HOSTDATA(shpnt)->msgo[i])
541 #define MSGO_I (HOSTDATA(shpnt)->msgo_i)
542 #define MSGOLEN (HOSTDATA(shpnt)->msgo_len)
545 #define MSGI(i) (HOSTDATA(shpnt)->msgi[i])
546 #define MSGILEN (HOSTDATA(shpnt)->msgi_len)
549 #define DATA_LEN (HOSTDATA(shpnt)->data_len)
551 #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id])
552 #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id])
554 #define DELAY (HOSTDATA(shpnt)->delay)
555 #define EXT_TRANS (HOSTDATA(shpnt)->ext_trans)
556 #define TC1550 (HOSTDATA(shpnt)->tc1550)
557 #define RECONNECT (HOSTDATA(shpnt)->reconnect)
558 #define PARITY (HOSTDATA(shpnt)->parity)
559 #define SYNCHRONOUS (HOSTDATA(shpnt)->synchronous)
561 #define HOSTIOPORT0 (HOSTDATA(shpnt)->io_port0)
562 #define HOSTIOPORT1 (HOSTDATA(shpnt)->io_port1)
717 HOSTDATA(shpnt)->swint++; in swintr()
733 memset(HOSTDATA(shpnt), 0, sizeof *HOSTDATA(shpnt)); in aha152x_probe_one()
734 INIT_LIST_HEAD(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
737 list_add_tail(&HOSTDATA(shpnt)->host_list, &aha152x_host_list); in aha152x_probe_one()
804 HOSTDATA(shpnt)->swint = 0; in aha152x_probe_one()
813 if (!HOSTDATA(shpnt)->swint) { in aha152x_probe_one()
849 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
870 if (HOSTDATA(shpnt)->pnpdev) in aha152x_release()
871 pnp_device_detach(HOSTDATA(shpnt)->pnpdev); in aha152x_release()
874 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_release()
905 if(!HOSTDATA(shpnt)->in_intr) in setup_expected_interrupts()
968 HOSTDATA(shpnt)->total_commands++; in aha152x_internal_queue()
972 HOSTDATA(shpnt)->commands++; in aha152x_internal_queue()
973 if (HOSTDATA(shpnt)->commands==1) in aha152x_internal_queue()
978 if(!HOSTDATA(shpnt)->in_intr) in aha152x_internal_queue()
1025 HOSTDATA(shpnt)->commands--; in aha152x_abort()
1026 if (!HOSTDATA(shpnt)->commands) in aha152x_abort()
1091 HOSTDATA(shpnt)->commands--; in aha152x_device_reset()
1092 if (!HOSTDATA(shpnt)->commands) in aha152x_device_reset()
1131 HOSTDATA(shpnt)->commands--; in free_hard_reset_SCs()
1159 if(HOSTDATA(shpnt)->commands==0) in aha152x_bus_reset_host()
1357 if( HOSTDATA(shpnt)->service==0 ) { in intr()
1358 HOSTDATA(shpnt)->service=1; in intr()
1405 HOSTDATA(shpnt)->disconnections++; in busfree_run()
1416 HOSTDATA(shpnt)->busfree_without_old_command++; in busfree_run()
1428 struct scsi_cmnd *cmd = HOSTDATA(shpnt)->done_SC; in busfree_run()
1435 HOSTDATA(shpnt)->commands--; in busfree_run()
1436 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1440 HOSTDATA(shpnt)->busfree_with_check_condition++; in busfree_run()
1464 HOSTDATA(shpnt)->commands--; in busfree_run()
1465 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1481 HOSTDATA(shpnt)->busfree_without_done_command++; in busfree_run()
1504 HOSTDATA(shpnt)->busfree_without_new_command++; in busfree_run()
1511 HOSTDATA(shpnt)->busfree_without_any_action++; in busfree_run()
1633 SETRATE(HOSTDATA(shpnt)->syncrate[target]); in seldi_run()
1749 if (!HOSTDATA(shpnt)->synchronous) in msgi_run()
1804 HOSTDATA(shpnt)->syncrate[i]=0; in msgi_run()
1805 HOSTDATA(shpnt)->syncneg[i]=0; in msgi_run()
2297 if( HOSTDATA(shpnt)->service==0 ) { in is_complete()
2302 HOSTDATA(shpnt)->service = 0; in is_complete()
2304 if(HOSTDATA(shpnt)->in_intr) { in is_complete()
2309 HOSTDATA(shpnt)->in_intr++; in is_complete()
2388 HOSTDATA(shpnt)->count[STATE]++; in is_complete()
2390 HOSTDATA(shpnt)->count_trans[STATE]++; in is_complete()
2391 HOSTDATA(shpnt)->time[STATE] += jiffies-start; in is_complete()
2400 HOSTDATA(shpnt)->in_intr--; in is_complete()
2794 HOSTDATA(shpnt)->total_commands=0; in aha152x_set_info()
2795 HOSTDATA(shpnt)->disconnections=0; in aha152x_set_info()
2796 HOSTDATA(shpnt)->busfree_without_any_action=0; in aha152x_set_info()
2797 HOSTDATA(shpnt)->busfree_without_old_command=0; in aha152x_set_info()
2798 HOSTDATA(shpnt)->busfree_without_new_command=0; in aha152x_set_info()
2799 HOSTDATA(shpnt)->busfree_without_done_command=0; in aha152x_set_info()
2800 HOSTDATA(shpnt)->busfree_with_check_condition=0; in aha152x_set_info()
2802 HOSTDATA(shpnt)->count[i]=0; in aha152x_set_info()
2803 HOSTDATA(shpnt)->count_trans[i]=0; in aha152x_set_info()
2804 HOSTDATA(shpnt)->time[i]=0; in aha152x_set_info()
2836 seq_printf(m, "%d commands currently queued\n", HOSTDATA(shpnt)->commands); in aha152x_show_info()
2841 if (HOSTDATA(shpnt)->syncrate[i] & 0x7f) in aha152x_show_info()
2844 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2), in aha152x_show_info()
2845 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2) * 50, in aha152x_show_info()
2846 HOSTDATA(shpnt)->syncrate[i] & 0x0f); in aha152x_show_info()
2886 HOSTDATA(shpnt)->total_commands, in aha152x_show_info()
2887 HOSTDATA(shpnt)->disconnections, in aha152x_show_info()
2888 HOSTDATA(shpnt)->busfree_with_check_condition, in aha152x_show_info()
2889 HOSTDATA(shpnt)->busfree_without_old_command, in aha152x_show_info()
2890 HOSTDATA(shpnt)->busfree_without_new_command, in aha152x_show_info()
2891 HOSTDATA(shpnt)->busfree_without_done_command, in aha152x_show_info()
2892 HOSTDATA(shpnt)->busfree_without_any_action); in aha152x_show_info()
2896 HOSTDATA(shpnt)->count_trans[i], in aha152x_show_info()
2897 HOSTDATA(shpnt)->count[i], in aha152x_show_info()
2898 HOSTDATA(shpnt)->time[i]); in aha152x_show_info()
3332 HOSTDATA(shpnt)->pnpdev=pnpdev[i]; in aha152x_init()