• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:HOSTDATA

287 	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);
923 if (HOSTDATA(shpnt)->pnpdev)
924 pnp_device_detach(HOSTDATA(shpnt)->pnpdev);
927 list_del(&HOSTDATA(shpnt)->host_list);
965 if(!HOSTDATA(shpnt)->in_intr)
982 if (HOSTDATA(shpnt)->debug & debug_queue) {
1037 HOSTDATA(shpnt)->total_commands++;
1041 HOSTDATA(shpnt)->commands++;
1042 if (HOSTDATA(shpnt)->commands==1)
1047 if(!HOSTDATA(shpnt)->in_intr)
1090 if(HOSTDATA(shpnt)->debug & debug_eh) {
1103 HOSTDATA(shpnt)->commands--;
1104 if (!HOSTDATA(shpnt)->commands)
1136 if(HOSTDATA(shpnt)->debug & debug_eh) {
1169 HOSTDATA(shpnt)->commands--;
1170 if (!HOSTDATA(shpnt)->commands)
1209 HOSTDATA(shpnt)->commands--;
1229 if(HOSTDATA(shpnt)->debug & debug_eh) {
1248 if(HOSTDATA(shpnt)->commands==0)
1448 if( HOSTDATA(shpnt)->service==0 ) {
1449 HOSTDATA(shpnt)->service=1;
1502 HOSTDATA(shpnt)->disconnections++;
1513 HOSTDATA(shpnt)->busfree_without_old_command++;
1525 struct scsi_cmnd *cmd = HOSTDATA(shpnt)->done_SC;
1533 HOSTDATA(shpnt)->commands--;
1534 if (!HOSTDATA(shpnt)->commands)
1538 HOSTDATA(shpnt)->busfree_with_check_condition++;
1567 HOSTDATA(shpnt)->commands--;
1568 if (!HOSTDATA(shpnt)->commands)
1586 HOSTDATA(shpnt)->busfree_without_done_command++;
1611 HOSTDATA(shpnt)->busfree_without_new_command++;
1618 HOSTDATA(shpnt)->busfree_without_any_action++;
1749 SETRATE(HOSTDATA(shpnt)->syncrate[target]);
1771 if (HOSTDATA(shpnt)->debug & debug_msgi) {
1857 if (!HOSTDATA(shpnt)->synchronous)
1907 HOSTDATA(shpnt)->syncrate[i]=0;
1908 HOSTDATA(shpnt)->syncneg[i]=0;
1955 if(HOSTDATA(shpnt)->debug & debug_msgo) {
2029 if (HOSTDATA(shpnt)->debug & debug_cmd) {
2083 if (HOSTDATA(shpnt)->debug & debug_status) {
2451 if( HOSTDATA(shpnt)->service==0 ) {
2456 HOSTDATA(shpnt)->service = 0;
2458 if(HOSTDATA(shpnt)->in_intr) {
2463 HOSTDATA(shpnt)->in_intr++;
2543 HOSTDATA(shpnt)->count[STATE]++;
2545 HOSTDATA(shpnt)->count_trans[STATE]++;
2546 HOSTDATA(shpnt)->time[STATE] += jiffies-start;
2556 HOSTDATA(shpnt)->in_intr--;
3220 int debug = HOSTDATA(shpnt)->debug;
3222 HOSTDATA(shpnt)->debug = simple_strtoul(buffer+14, NULL, 0);
3224 printk(KERN_INFO "aha152x%d: debugging options set to 0x%04x (were 0x%04x)\n", HOSTNO, HOSTDATA(shpnt)->debug, debug);
3231 HOSTDATA(shpnt)->total_commands=0;
3232 HOSTDATA(shpnt)->disconnections=0;
3233 HOSTDATA(shpnt)->busfree_without_any_action=0;
3234 HOSTDATA(shpnt)->busfree_without_old_command=0;
3235 HOSTDATA(shpnt)->busfree_without_new_command=0;
3236 HOSTDATA(shpnt)->busfree_without_done_command=0;
3237 HOSTDATA(shpnt)->busfree_with_check_condition=0;
3239 HOSTDATA(shpnt)->count[i]=0;
3240 HOSTDATA(shpnt)->count_trans[i]=0;
3241 HOSTDATA(shpnt)->time[i]=0;
3288 SPRINTF("%d commands currently queued\n", HOSTDATA(shpnt)->commands);
3293 if (HOSTDATA(shpnt)->syncrate[i] & 0x7f)
3296 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2),
3297 (((HOSTDATA(shpnt)->syncrate[i] & 0x70) >> 4) + 2) * 50,
3298 HOSTDATA(shpnt)->syncrate[i] & 0x0f);
3302 if(HOSTDATA(shpnt)->debug & flags) SPRINTF("(%s) ", txt);
3361 HOSTDATA(shpnt)->total_commands,
3362 HOSTDATA(shpnt)->disconnections,
3363 HOSTDATA(shpnt)->busfree_with_check_condition,
3364 HOSTDATA(shpnt)->busfree_without_old_command,
3365 HOSTDATA(shpnt)->busfree_without_new_command,
3366 HOSTDATA(shpnt)->busfree_without_done_command,
3367 HOSTDATA(shpnt)->busfree_without_any_action);
3371 HOSTDATA(shpnt)->count_trans[i],
3372 HOSTDATA(shpnt)->count[i],
3373 HOSTDATA(shpnt)->time[i]);
3842 HOSTDATA(shpnt)->pnpdev=pnpdev[i];