Lines Matching refs:ppa_hosts
55 static ppa_struct ppa_hosts[NO_HOSTS] = variable
58 #define PPA_BASE(x) ppa_hosts[(x)].base
83 parport_unregister_device(ppa_hosts[host_no].dev); in ppa_release()
89 if (parport_claim(ppa_hosts[host_no].dev)) { in ppa_pb_claim()
90 ppa_hosts[host_no].p_busy = 1; in ppa_pb_claim()
93 if (ppa_hosts[host_no].cur_cmd) in ppa_pb_claim()
94 ppa_hosts[host_no].cur_cmd->SCp.phase++; in ppa_pb_claim()
98 #define ppa_pb_release(x) parport_release(ppa_hosts[(x)].dev)
138 ppa_hosts[i].dev = in ppa_detect()
140 NULL, 0, (void *) &ppa_hosts[i]); in ppa_detect()
142 if (!ppa_hosts[i].dev) in ppa_detect()
150 while (ppa_hosts[i].p_busy) { in ppa_detect()
156 parport_unregister_device(ppa_hosts[i].dev); in ppa_detect()
162 ppb = PPA_BASE(i) = ppa_hosts[i].dev->port->base; in ppa_detect()
163 ppb_hi = ppa_hosts[i].dev->port->base_hi; in ppa_detect()
165 modes = ppa_hosts[i].dev->port->modes; in ppa_detect()
170 ppa_hosts[i].mode = PPA_NIBBLE; in ppa_detect()
173 ppa_hosts[i].mode = PPA_PS2; in ppa_detect()
177 ppa_hosts[i].mode = PPA_PS2; in ppa_detect()
186 parport_unregister_device(ppa_hosts[i].dev); in ppa_detect()
190 switch (ppa_hosts[i].mode) { in ppa_detect()
215 ppa_hosts[i].host = hreg->host_no; in ppa_detect()
251 ppa_hosts[hostno].mode = x; in ppa_proc_write()
256 ppa_hosts[hostno].recon_tmo = x; in ppa_proc_write()
271 if (ppa_hosts[i].host == hostno) in ppa_proc_info()
278 len += sprintf(buffer + len, "Parport : %s\n", ppa_hosts[i].dev->port->name); in ppa_proc_info()
279 len += sprintf(buffer + len, "Mode : %s\n", PPA_MODE_STRING[ppa_hosts[i].mode]); in ppa_proc_info()
281 len += sprintf(buffer + len, "recon_tmo : %lu\n", ppa_hosts[i].recon_tmo); in ppa_proc_info()
306 if (ppa_hosts[host_no].cur_cmd) { in ppa_fail_func()
307 ppa_hosts[host_no].cur_cmd->result = error_code << 16; in ppa_fail_func()
308 ppa_hosts[host_no].failed = 1; in ppa_fail_func()
365 int i, ppb_hi=ppa_hosts[hostno].dev->port->base_hi; in ecp_sync()
427 switch (ppa_hosts[host_no].mode) { in ppa_out()
472 switch (ppa_hosts[host_no].mode) { in ppa_in()
553 IN_EPP_MODE(ppa_hosts[host_no].mode)) in ppa_connect()
610 while (ppa_hosts[host_no].p_busy) in ppa_init()
714 unsigned long k = ppa_hosts[host_no].recon_tmo; in ppa_completion()
765 if (ppa_hosts[host_no].cur_cmd) { in ppa_command()
769 ppa_hosts[host_no].failed = 0; in ppa_command()
770 ppa_hosts[host_no].jstart = jiffies; in ppa_command()
771 ppa_hosts[host_no].cur_cmd = cmd; in ppa_command()
777 while (ppa_engine(&ppa_hosts[host_no], cmd)) in ppa_command()
784 ppa_hosts[host_no].cur_cmd = 0; in ppa_command()
976 if (ppa_hosts[host_no].cur_cmd) { in ppa_queuecommand()
980 ppa_hosts[host_no].failed = 0; in ppa_queuecommand()
981 ppa_hosts[host_no].jstart = jiffies; in ppa_queuecommand()
982 ppa_hosts[host_no].cur_cmd = cmd; in ppa_queuecommand()
989 ppa_hosts[host_no].ppa_tq.data = ppa_hosts + host_no; in ppa_queuecommand()
990 ppa_hosts[host_no].ppa_tq.sync = 0; in ppa_queuecommand()
991 queue_task(&ppa_hosts[host_no].ppa_tq, &tq_immediate); in ppa_queuecommand()
1029 ppa_hosts[host_no].cur_cmd = NULL; /* Forget the problem */ in ppa_abort()
1052 ppa_hosts[host_no].cur_cmd = NULL; /* Forget the problem */ in ppa_reset()
1072 old_mode = ppa_hosts[host_no].mode; in device_check()
1076 ppa_hosts[host_no].mode = PPA_EPP_32; in device_check()
1086 PPA_MODE_STRING[ppa_hosts[host_no].mode]); in device_check()
1104 if (ppa_hosts[host_no].mode == PPA_EPP_32) { in device_check()
1105 ppa_hosts[host_no].mode = old_mode; in device_check()
1128 if (ppa_hosts[host_no].mode == PPA_EPP_32) { in device_check()
1129 ppa_hosts[host_no].mode = old_mode; in device_check()
1137 PPA_MODE_STRING[ppa_hosts[host_no].mode]); in device_check()