Lines Matching refs:pi
47 static int dstr_read_regr( PIA *pi, int cont, int regr )
54 if (pi->mode) { w0(0x11); } else { w0(1); }
57 switch (pi->mode) {
74 static void dstr_write_regr( PIA *pi, int cont, int regr, int val )
81 if (pi->mode >= 2) { w0(0x11); } else { w0(1); }
84 switch (pi->mode) {
101 static void dstr_connect ( PIA *pi )
103 { pi->saved_r0 = r0();
104 pi->saved_r2 = r2();
108 static void dstr_disconnect ( PIA *pi )
111 w0(pi->saved_r0);
112 w2(pi->saved_r2);
115 static void dstr_read_block( PIA *pi, char * buf, int count )
120 if (pi->mode) { w0(0x19); } else { w0(9); }
123 switch (pi->mode) {
157 static void dstr_write_block( PIA *pi, char * buf, int count )
162 if (pi->mode) { w0(0x19); } else { w0(9); }
165 switch (pi->mode) {
193 static void dstr_log_adapter( PIA *pi, char * scratch, int verbose )
199 pi->device,DSTR_VERSION,pi->port);
200 printk("mode %d (%s), delay %d\n",pi->mode,
201 mode_string[pi->mode],pi->delay);