Lines Matching refs:pi
46 static int dstr_read_regr( PIA *pi, int cont, int regr )
53 if (pi->mode) { w0(0x11); } else { w0(1); }
56 switch (pi->mode) {
73 static void dstr_write_regr( PIA *pi, int cont, int regr, int val )
80 if (pi->mode >= 2) { w0(0x11); } else { w0(1); }
83 switch (pi->mode) {
100 static void dstr_connect ( PIA *pi )
102 { pi->saved_r0 = r0();
103 pi->saved_r2 = r2();
107 static void dstr_disconnect ( PIA *pi )
110 w0(pi->saved_r0);
111 w2(pi->saved_r2);
114 static void dstr_read_block( PIA *pi, char * buf, int count )
119 if (pi->mode) { w0(0x19); } else { w0(9); }
122 switch (pi->mode) {
156 static void dstr_write_block( PIA *pi, char * buf, int count )
161 if (pi->mode) { w0(0x19); } else { w0(9); }
164 switch (pi->mode) {
192 static void dstr_log_adapter( PIA *pi, char * scratch, int verbose )
198 pi->device,DSTR_VERSION,pi->port);
199 printk("mode %d (%s), delay %d\n",pi->mode,
200 mode_string[pi->mode],pi->delay);
204 static void dstr_init_proto( PIA *pi)
209 static void dstr_release_proto( PIA *pi)