• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:HOSTDATA

288 	do { if(HOSTDATA(shpnt)->debug & (when)) printk(msgs); } while(0)
568 #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata)
572 #define CURRENT_SC (HOSTDATA(shpnt)->current_SC)
573 #define DONE_SC (HOSTDATA(shpnt)->done_SC)
574 #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC)
575 #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC)
576 #define QLOCK (HOSTDATA(shpnt)->lock)
577 #define QLOCKER (HOSTDATA(shpnt)->locker)
578 #define QLOCKERL (HOSTDATA(shpnt)->lockerl)
580 #define STATE (HOSTDATA(shpnt)->state)
581 #define PREVSTATE (HOSTDATA(shpnt)->prevstate)
582 #define LASTSTATE (HOSTDATA(shpnt)->laststate)
584 #define RECONN_TARGET (HOSTDATA(shpnt)->target)
586 #define CMD_I (HOSTDATA(shpnt)->cmd_i)
588 #define MSGO(i) (HOSTDATA(shpnt)->msgo[i])
589 #define MSGO_I (HOSTDATA(shpnt)->msgo_i)
590 #define MSGOLEN (HOSTDATA(shpnt)->msgo_len)
593 #define MSGI(i) (HOSTDATA(shpnt)->msgi[i])
594 #define MSGILEN (HOSTDATA(shpnt)->msgi_len)
597 #define DATA_LEN (HOSTDATA(shpnt)->data_len)
599 #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id])
600 #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id])
602 #define DELAY (HOSTDATA(shpnt)->delay)
603 #define EXT_TRANS (HOSTDATA(shpnt)->ext_trans)
604 #define TC1550 (HOSTDATA(shpnt)->tc1550)
605 #define RECONNECT (HOSTDATA(shpnt)->reconnect)
606 #define PARITY (HOSTDATA(shpnt)->parity)
607 #define SYNCHRONOUS (HOSTDATA(shpnt)->synchronous)
609 #define HOSTIOPORT0 (HOSTDATA(shpnt)->io_port0)
610 #define HOSTIOPORT1 (HOSTDATA(shpnt)->io_port1)
766 HOSTDATA(shpnt)->swint++;
782 memset(HOSTDATA(shpnt), 0, sizeof *HOSTDATA(shpnt));
783 INIT_LIST_HEAD(&HOSTDATA(shpnt)->host_list);
786 list_add_tail(&HOSTDATA(shpnt)->host_list, &aha152x_host_list);
808 HOSTDATA(shpnt)->debug = setup->debug;
857 HOSTDATA(shpnt)->swint = 0;
866 if (!HOSTDATA(shpnt)->swint) {
902 list_del(&HOSTDATA(shpnt)->host_list);
922 if (HOSTDATA(shpnt)->pnpdev)
923 pnp_device_detach(HOSTDATA(shpnt)->pnpdev);
927 list_del(&HOSTDATA(shpnt)->host_list);
965 if(!HOSTDATA(shpnt)->in_intr)
981 if (HOSTDATA(shpnt)->debug & debug_queue) {
1042 HOSTDATA(shpnt)->total_commands++;
1046 HOSTDATA(shpnt)->commands++;
1047 if (HOSTDATA(shpnt)->commands==1)
1052 if(!HOSTDATA(shpnt)->in_intr)
1095 if(HOSTDATA(shpnt)->debug & debug_eh) {
1108 HOSTDATA(shpnt)->commands--;
1109 if (!HOSTDATA(shpnt)->commands)
1159 if(HOSTDATA(shpnt)->debug & debug_eh) {
1198 HOSTDATA(shpnt)->commands--;
1199 if (!HOSTDATA(shpnt)->commands)
1238 HOSTDATA(shpnt)->commands--;
1258 if(HOSTDATA(shpnt)->debug & debug_eh) {
1277 if(HOSTDATA(shpnt)->commands==0)
1482 if( HOSTDATA(shpnt)->service==0 ) {
1483 HOSTDATA(shpnt)->service=1;
1536 HOSTDATA(shpnt)->disconnections++;
1547 HOSTDATA(shpnt)->busfree_without_old_command++;
1559 struct scsi_cmnd *cmd = HOSTDATA(shpnt)->done_SC;
1572 HOSTDATA(shpnt)->commands--;
1573 if (!HOSTDATA(shpnt)->commands)
1577 HOSTDATA(shpnt)->busfree_with_check_condition++;
1611 HOSTDATA(shpnt)->commands--;
1612 if (!HOSTDATA(shpnt)->commands)
1630 HOSTDATA(shpnt)->busfree_without_done_command++;
1655 HOSTDATA(shpnt)->busfree_without_new_command++;
1662 HOSTDATA(shpnt)->busfree_without_any_action++;
1793 SETRATE(HOSTDATA(shpnt)->syncrate[target]);
1815 if (HOSTDATA(shpnt)->debug & debug_msgi) {
1901 if (!HOSTDATA(shpnt)->synchronous)
1951 HOSTDATA(shpnt)->syncrate[i]=0;
1952 HOSTDATA(shpnt)->syncneg[i]=0;
1999 if(HOSTDATA(shpnt)->debug & debug_msgo) {
2073 if (HOSTDATA(shpnt)->debug & debug_cmd) {
2127 if (HOSTDATA(shpnt)->debug & debug_status) {
2493 if( HOSTDATA(shpnt)->service==0 ) {
2498 HOSTDATA(shpnt)->service = 0;
2500 if(HOSTDATA(shpnt)->in_intr) {
2505 HOSTDATA(shpnt)->in_intr++;
2585 HOSTDATA(shpnt)->count[STATE]++;
2587 HOSTDATA(shpnt)->count_trans[STATE]++;
2588 HOSTDATA(shpnt)->time[STATE] += jiffies-start;
2598 HOSTDATA(shpnt)->in_intr--;
3261 int debug = HOSTDATA(shpnt)->debug;
3263 HOSTDATA(shpnt)->debug = simple_strtoul(buffer+14, NULL, 0);
3265 printk(KERN_INFO "aha152x%d: debugging options set to 0x%04x (were 0x%04x)\n", HOSTNO, HOSTDATA(shpnt)->debug, debug);
3272 HOSTDATA(shpnt)->total_commands=0;
3273 HOSTDATA(shpnt)->disconnections=0;
3274 HOSTDATA(shpnt)->busfree_without_any_action=0;
3275 HOSTDATA(shpnt)->busfree_without_old_command=0;
3276 HOSTDATA(shpnt)->busfree_without_new_command=0;
3277 HOSTDATA(shpnt)->busfree_without_done_command=0;
3278 HOSTDATA(shpnt)->busfree_with_check_condition=0;
3280 HOSTDATA(shpnt)->count[i]=0;
3281 HOSTDATA(shpnt)->count_trans[i]=0;
3282 HOSTDATA(shpnt)->time[i]=0;
3329 SPRINTF("%d commands currently queued\n", HOSTDATA(shpnt)->commands);
3334 if (HOSTDATA(shpnt)->syncrate[i] & 0x7f)
3337 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2),
3338 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2) * 50,
3339 HOSTDATA(shpnt)->syncrate[i] & 0x0f);
3343 if(HOSTDATA(shpnt)->debug & flags) SPRINTF("(%s) ", txt);
3402 HOSTDATA(shpnt)->total_commands,
3403 HOSTDATA(shpnt)->disconnections,
3404 HOSTDATA(shpnt)->busfree_with_check_condition,
3405 HOSTDATA(shpnt)->busfree_without_old_command,
3406 HOSTDATA(shpnt)->busfree_without_new_command,
3407 HOSTDATA(shpnt)->busfree_without_done_command,
3408 HOSTDATA(shpnt)->busfree_without_any_action);
3412 HOSTDATA(shpnt)->count_trans[i],
3413 HOSTDATA(shpnt)->count[i],
3414 HOSTDATA(shpnt)->time[i]);
3876 HOSTDATA(shpnt)->pnpdev=pnpdev[i];