Lines Matching refs:HOSTDATA

527 #define HOSTDATA(shpnt)		((struct aha152x_hostdata *) &shpnt->hostdata)  macro
531 #define CURRENT_SC (HOSTDATA(shpnt)->current_SC)
532 #define DONE_SC (HOSTDATA(shpnt)->done_SC)
533 #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC)
534 #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC)
535 #define QLOCK (HOSTDATA(shpnt)->lock)
536 #define QLOCKER (HOSTDATA(shpnt)->locker)
537 #define QLOCKERL (HOSTDATA(shpnt)->lockerl)
539 #define STATE (HOSTDATA(shpnt)->state)
540 #define PREVSTATE (HOSTDATA(shpnt)->prevstate)
541 #define LASTSTATE (HOSTDATA(shpnt)->laststate)
543 #define RECONN_TARGET (HOSTDATA(shpnt)->target)
545 #define CMD_I (HOSTDATA(shpnt)->cmd_i)
547 #define MSGO(i) (HOSTDATA(shpnt)->msgo[i])
548 #define MSGO_I (HOSTDATA(shpnt)->msgo_i)
549 #define MSGOLEN (HOSTDATA(shpnt)->msgo_len)
552 #define MSGI(i) (HOSTDATA(shpnt)->msgi[i])
553 #define MSGILEN (HOSTDATA(shpnt)->msgi_len)
556 #define DATA_LEN (HOSTDATA(shpnt)->data_len)
558 #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id])
559 #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id])
561 #define DELAY (HOSTDATA(shpnt)->delay)
562 #define EXT_TRANS (HOSTDATA(shpnt)->ext_trans)
563 #define TC1550 (HOSTDATA(shpnt)->tc1550)
564 #define RECONNECT (HOSTDATA(shpnt)->reconnect)
565 #define PARITY (HOSTDATA(shpnt)->parity)
566 #define SYNCHRONOUS (HOSTDATA(shpnt)->synchronous)
568 #define HOSTIOPORT0 (HOSTDATA(shpnt)->io_port0)
569 #define HOSTIOPORT1 (HOSTDATA(shpnt)->io_port1)
727 HOSTDATA(shpnt)->swint++; in swintr()
743 memset(HOSTDATA(shpnt), 0, sizeof *HOSTDATA(shpnt)); in aha152x_probe_one()
744 INIT_LIST_HEAD(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
747 list_add_tail(&HOSTDATA(shpnt)->host_list, &aha152x_host_list); in aha152x_probe_one()
814 HOSTDATA(shpnt)->swint = 0; in aha152x_probe_one()
823 if (!HOSTDATA(shpnt)->swint) { in aha152x_probe_one()
859 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_probe_one()
880 if (HOSTDATA(shpnt)->pnpdev) in aha152x_release()
881 pnp_device_detach(HOSTDATA(shpnt)->pnpdev); in aha152x_release()
884 list_del(&HOSTDATA(shpnt)->host_list); in aha152x_release()
917 if(!HOSTDATA(shpnt)->in_intr) in setup_expected_interrupts()
976 HOSTDATA(shpnt)->total_commands++; in aha152x_internal_queue()
980 HOSTDATA(shpnt)->commands++; in aha152x_internal_queue()
981 if (HOSTDATA(shpnt)->commands==1) in aha152x_internal_queue()
986 if(!HOSTDATA(shpnt)->in_intr) in aha152x_internal_queue()
1041 HOSTDATA(shpnt)->commands--; in aha152x_abort()
1042 if (!HOSTDATA(shpnt)->commands) in aha152x_abort()
1107 HOSTDATA(shpnt)->commands--; in aha152x_device_reset()
1108 if (!HOSTDATA(shpnt)->commands) in aha152x_device_reset()
1148 HOSTDATA(shpnt)->commands--; in free_hard_reset_SCs()
1179 if(HOSTDATA(shpnt)->commands==0) in aha152x_bus_reset_host()
1370 if( HOSTDATA(shpnt)->service==0 ) { in intr()
1371 HOSTDATA(shpnt)->service=1; in intr()
1420 HOSTDATA(shpnt)->disconnections++; in busfree_run()
1431 HOSTDATA(shpnt)->busfree_without_old_command++; in busfree_run()
1443 struct scsi_cmnd *cmd = HOSTDATA(shpnt)->done_SC; in busfree_run()
1450 HOSTDATA(shpnt)->commands--; in busfree_run()
1451 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1455 HOSTDATA(shpnt)->busfree_with_check_condition++; in busfree_run()
1479 HOSTDATA(shpnt)->commands--; in busfree_run()
1480 if (!HOSTDATA(shpnt)->commands) in busfree_run()
1496 HOSTDATA(shpnt)->busfree_without_done_command++; in busfree_run()
1521 HOSTDATA(shpnt)->busfree_without_new_command++; in busfree_run()
1528 HOSTDATA(shpnt)->busfree_without_any_action++; in busfree_run()
1657 SETRATE(HOSTDATA(shpnt)->syncrate[target]); in seldi_run()
1776 if (!HOSTDATA(shpnt)->synchronous) in msgi_run()
1831 HOSTDATA(shpnt)->syncrate[i]=0; in msgi_run()
1832 HOSTDATA(shpnt)->syncneg[i]=0; in msgi_run()
2332 if( HOSTDATA(shpnt)->service==0 ) { in is_complete()
2337 HOSTDATA(shpnt)->service = 0; in is_complete()
2339 if(HOSTDATA(shpnt)->in_intr) { in is_complete()
2344 HOSTDATA(shpnt)->in_intr++; in is_complete()
2423 HOSTDATA(shpnt)->count[STATE]++; in is_complete()
2425 HOSTDATA(shpnt)->count_trans[STATE]++; in is_complete()
2426 HOSTDATA(shpnt)->time[STATE] += jiffies-start; in is_complete()
2435 HOSTDATA(shpnt)->in_intr--; in is_complete()
2833 HOSTDATA(shpnt)->total_commands=0; in aha152x_set_info()
2834 HOSTDATA(shpnt)->disconnections=0; in aha152x_set_info()
2835 HOSTDATA(shpnt)->busfree_without_any_action=0; in aha152x_set_info()
2836 HOSTDATA(shpnt)->busfree_without_old_command=0; in aha152x_set_info()
2837 HOSTDATA(shpnt)->busfree_without_new_command=0; in aha152x_set_info()
2838 HOSTDATA(shpnt)->busfree_without_done_command=0; in aha152x_set_info()
2839 HOSTDATA(shpnt)->busfree_with_check_condition=0; in aha152x_set_info()
2841 HOSTDATA(shpnt)->count[i]=0; in aha152x_set_info()
2842 HOSTDATA(shpnt)->count_trans[i]=0; in aha152x_set_info()
2843 HOSTDATA(shpnt)->time[i]=0; in aha152x_set_info()
2875 seq_printf(m, "%d commands currently queued\n", HOSTDATA(shpnt)->commands); in aha152x_show_info()
2880 if (HOSTDATA(shpnt)->syncrate[i] & 0x7f) in aha152x_show_info()
2883 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2), in aha152x_show_info()
2884 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2) * 50, in aha152x_show_info()
2885 HOSTDATA(shpnt)->syncrate[i] & 0x0f); in aha152x_show_info()
2925 HOSTDATA(shpnt)->total_commands, in aha152x_show_info()
2926 HOSTDATA(shpnt)->disconnections, in aha152x_show_info()
2927 HOSTDATA(shpnt)->busfree_with_check_condition, in aha152x_show_info()
2928 HOSTDATA(shpnt)->busfree_without_old_command, in aha152x_show_info()
2929 HOSTDATA(shpnt)->busfree_without_new_command, in aha152x_show_info()
2930 HOSTDATA(shpnt)->busfree_without_done_command, in aha152x_show_info()
2931 HOSTDATA(shpnt)->busfree_without_any_action); in aha152x_show_info()
2935 HOSTDATA(shpnt)->count_trans[i], in aha152x_show_info()
2936 HOSTDATA(shpnt)->count[i], in aha152x_show_info()
2937 HOSTDATA(shpnt)->time[i]); in aha152x_show_info()
3371 HOSTDATA(shpnt)->pnpdev=pnpdev[i]; in aha152x_init()