Lines Matching refs:HOSTDATA
509 #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) macro
513 #define CURRENT_SC (HOSTDATA(shpnt)->current_SC)
514 #define DONE_SC (HOSTDATA(shpnt)->done_SC)
515 #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC)
516 #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC)
517 #define QLOCK (HOSTDATA(shpnt)->lock)
518 #define QLOCKER (HOSTDATA(shpnt)->locker)
519 #define QLOCKERL (HOSTDATA(shpnt)->lockerl)
521 #define STATE (HOSTDATA(shpnt)->state)
522 #define PREVSTATE (HOSTDATA(shpnt)->prevstate)
523 #define LASTSTATE (HOSTDATA(shpnt)->laststate)
525 #define RECONN_TARGET (HOSTDATA(shpnt)->target)
527 #define CMD_I (HOSTDATA(shpnt)->cmd_i)
529 #define MSGO(i) (HOSTDATA(shpnt)->msgo[i])
530 #define MSGO_I (HOSTDATA(shpnt)->msgo_i)
531 #define MSGOLEN (HOSTDATA(shpnt)->msgo_len)
534 #define MSGI(i) (HOSTDATA(shpnt)->msgi[i])
535 #define MSGILEN (HOSTDATA(shpnt)->msgi_len)
538 #define DATA_LEN (HOSTDATA(shpnt)->data_len)
540 #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id])
541 #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id])
543 #define DELAY (HOSTDATA(shpnt)->delay)
544 #define EXT_TRANS (HOSTDATA(shpnt)->ext_trans)
545 #define TC1550 (HOSTDATA(shpnt)->tc1550)
546 #define RECONNECT (HOSTDATA(shpnt)->reconnect)
547 #define PARITY (HOSTDATA(shpnt)->parity)
548 #define SYNCHRONOUS (HOSTDATA(shpnt)->synchronous)
550 #define HOSTIOPORT0 (HOSTDATA(shpnt)->io_port0)
551 #define HOSTIOPORT1 (HOSTDATA(shpnt)->io_port1)
708 HOSTDATA(shpnt)->swint++; in swintr()
724 memset(HOSTDATA(shpnt), 0, sizeof *HOSTDATA(shpnt)); in aha152x_probe_one()
725 INIT_LIST_HEAD(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
728 list_add_tail(&HOSTDATA(shpnt)->host_list, &aha152x_host_list); in aha152x_probe_one()
795 HOSTDATA(shpnt)->swint = 0; in aha152x_probe_one()
804 if (!HOSTDATA(shpnt)->swint) { in aha152x_probe_one()
840 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
861 if (HOSTDATA(shpnt)->pnpdev) in aha152x_release()
862 pnp_device_detach(HOSTDATA(shpnt)->pnpdev); in aha152x_release()
865 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_release()
896 if(!HOSTDATA(shpnt)->in_intr) in setup_expected_interrupts()
957 HOSTDATA(shpnt)->total_commands++; in aha152x_internal_queue()
961 HOSTDATA(shpnt)->commands++; in aha152x_internal_queue()
962 if (HOSTDATA(shpnt)->commands==1) in aha152x_internal_queue()
967 if(!HOSTDATA(shpnt)->in_intr) in aha152x_internal_queue()
1015 HOSTDATA(shpnt)->commands--; in aha152x_abort()
1016 if (!HOSTDATA(shpnt)->commands) in aha152x_abort()
1081 HOSTDATA(shpnt)->commands--; in aha152x_device_reset()
1082 if (!HOSTDATA(shpnt)->commands) in aha152x_device_reset()
1122 HOSTDATA(shpnt)->commands--; in free_hard_reset_SCs()
1153 if(HOSTDATA(shpnt)->commands==0) in aha152x_bus_reset_host()
1342 if( HOSTDATA(shpnt)->service==0 ) { in intr()
1343 HOSTDATA(shpnt)->service=1; in intr()
1390 HOSTDATA(shpnt)->disconnections++; in busfree_run()
1401 HOSTDATA(shpnt)->busfree_without_old_command++; in busfree_run()
1413 struct scsi_cmnd *cmd = HOSTDATA(shpnt)->done_SC; in busfree_run()
1420 HOSTDATA(shpnt)->commands--; in busfree_run()
1421 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1425 HOSTDATA(shpnt)->busfree_with_check_condition++; in busfree_run()
1449 HOSTDATA(shpnt)->commands--; in busfree_run()
1450 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1466 HOSTDATA(shpnt)->busfree_without_done_command++; in busfree_run()
1489 HOSTDATA(shpnt)->busfree_without_new_command++; in busfree_run()
1496 HOSTDATA(shpnt)->busfree_without_any_action++; in busfree_run()
1618 SETRATE(HOSTDATA(shpnt)->syncrate[target]); in seldi_run()
1734 if (!HOSTDATA(shpnt)->synchronous) in msgi_run()
1789 HOSTDATA(shpnt)->syncrate[i]=0; in msgi_run()
1790 HOSTDATA(shpnt)->syncneg[i]=0; in msgi_run()
2284 if( HOSTDATA(shpnt)->service==0 ) { in is_complete()
2289 HOSTDATA(shpnt)->service = 0; in is_complete()
2291 if(HOSTDATA(shpnt)->in_intr) { in is_complete()
2296 HOSTDATA(shpnt)->in_intr++; in is_complete()
2375 HOSTDATA(shpnt)->count[STATE]++; in is_complete()
2377 HOSTDATA(shpnt)->count_trans[STATE]++; in is_complete()
2378 HOSTDATA(shpnt)->time[STATE] += jiffies-start; in is_complete()
2387 HOSTDATA(shpnt)->in_intr--; in is_complete()
2781 HOSTDATA(shpnt)->total_commands=0; in aha152x_set_info()
2782 HOSTDATA(shpnt)->disconnections=0; in aha152x_set_info()
2783 HOSTDATA(shpnt)->busfree_without_any_action=0; in aha152x_set_info()
2784 HOSTDATA(shpnt)->busfree_without_old_command=0; in aha152x_set_info()
2785 HOSTDATA(shpnt)->busfree_without_new_command=0; in aha152x_set_info()
2786 HOSTDATA(shpnt)->busfree_without_done_command=0; in aha152x_set_info()
2787 HOSTDATA(shpnt)->busfree_with_check_condition=0; in aha152x_set_info()
2789 HOSTDATA(shpnt)->count[i]=0; in aha152x_set_info()
2790 HOSTDATA(shpnt)->count_trans[i]=0; in aha152x_set_info()
2791 HOSTDATA(shpnt)->time[i]=0; in aha152x_set_info()
2823 seq_printf(m, "%d commands currently queued\n", HOSTDATA(shpnt)->commands); in aha152x_show_info()
2828 if (HOSTDATA(shpnt)->syncrate[i] & 0x7f) in aha152x_show_info()
2831 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2), in aha152x_show_info()
2832 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2) * 50, in aha152x_show_info()
2833 HOSTDATA(shpnt)->syncrate[i] & 0x0f); in aha152x_show_info()
2873 HOSTDATA(shpnt)->total_commands, in aha152x_show_info()
2874 HOSTDATA(shpnt)->disconnections, in aha152x_show_info()
2875 HOSTDATA(shpnt)->busfree_with_check_condition, in aha152x_show_info()
2876 HOSTDATA(shpnt)->busfree_without_old_command, in aha152x_show_info()
2877 HOSTDATA(shpnt)->busfree_without_new_command, in aha152x_show_info()
2878 HOSTDATA(shpnt)->busfree_without_done_command, in aha152x_show_info()
2879 HOSTDATA(shpnt)->busfree_without_any_action); in aha152x_show_info()
2883 HOSTDATA(shpnt)->count_trans[i], in aha152x_show_info()
2884 HOSTDATA(shpnt)->count[i], in aha152x_show_info()
2885 HOSTDATA(shpnt)->time[i]); in aha152x_show_info()
3318 HOSTDATA(shpnt)->pnpdev=pnpdev[i]; in aha152x_init()