Home
last modified time | relevance | path

Searched refs:regr (Results 1 – 16 of 16) sorted by relevance

/drivers/block/paride/
Dfit3.c42 static void fit3_write_regr( PIA *pi, int cont, int regr, int val) in fit3_write_regr() argument
49 case 1: w2(0xc); w0(regr); w2(0x8); w2(0xc); in fit3_write_regr()
54 case 2: w2(0xc); w0(regr); w2(0x8); w2(0xc); in fit3_write_regr()
62 static int fit3_read_regr( PIA *pi, int cont, int regr ) in fit3_read_regr() argument
67 if (regr != 6) return 0xff; in fit3_read_regr()
68 regr = 7; in fit3_read_regr()
73 case 0: w2(0xc); w0(regr + 0x10); w2(0x8); w2(0xc); in fit3_read_regr()
79 case 1: w2(0xc); w0(regr + 0x90); w2(0x8); w2(0xc); in fit3_read_regr()
84 case 2: w2(0xc); w0(regr + 0x90); w2(0x8); w2(0xc); in fit3_read_regr()
Dfrpw.c47 static int frpw_read_regr( PIA *pi, int cont, int regr ) in frpw_read_regr() argument
51 r = regr + cont_map[cont]; in frpw_read_regr()
63 static void frpw_write_regr( PIA *pi, int cont, int regr, int val) in frpw_write_regr() argument
67 r = regr + cont_map[cont]; in frpw_write_regr()
74 static void frpw_read_block_int( PIA *pi, char * buf, int count, int regr ) in frpw_read_block_int() argument
80 case 0: w2(4); w0(regr); cec4; in frpw_read_block_int()
90 w2(4); w0(regr + 0xc0); cec4; in frpw_read_block_int()
100 case 2: w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
106 case 3: w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
114 case 4: w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
[all …]
Dfriq.c51 static int friq_read_regr( PIA *pi, int cont, int regr ) in friq_read_regr() argument
55 r = regr + cont_map[cont]; in friq_read_regr()
66 static void friq_write_regr( PIA *pi, int cont, int regr, int val) in friq_write_regr() argument
70 r = regr + cont_map[cont]; in friq_write_regr()
77 static void friq_read_block_int( PIA *pi, char * buf, int count, int regr ) in friq_read_block_int() argument
83 case 0: CMD(regr); in friq_read_block_int()
93 CMD(regr+0xc0); in friq_read_block_int()
103 case 2: CMD(regr+0x80); in friq_read_block_int()
111 case 3: CMD(regr+0x80); in friq_read_block_int()
119 case 4: CMD(regr+0x80); in friq_read_block_int()
Depia.c49 static int epia_read_regr( PIA *pi, int cont, int regr ) in epia_read_regr() argument
53 regr += cont_map[cont]; in epia_read_regr()
57 case 0: r = regr^0x39; in epia_read_regr()
62 case 1: r = regr^0x31; in epia_read_regr()
68 case 2: r = regr^0x29; in epia_read_regr()
75 case 5: w3(regr); w2(0x24); a = r4(); w2(4); in epia_read_regr()
82 static void epia_write_regr( PIA *pi, int cont, int regr, int val) in epia_write_regr() argument
86 regr += cont_map[cont]; in epia_write_regr()
92 case 2: r = regr^0x19; in epia_write_regr()
98 case 5: r = regr^0x40; in epia_write_regr()
Dkbic.c45 static int kbic_read_regr( PIA *pi, int cont, int regr ) in kbic_read_regr() argument
53 case 0: w0(regr|0x18|s); w2(4); w2(6); w2(4); w2(1); w0(8); in kbic_read_regr()
57 case 1: w0(regr|0x38|s); w2(4); w2(6); w2(4); w2(5); w0(8); in kbic_read_regr()
61 case 2: w0(regr|0x08|s); w2(4); w2(6); w2(4); w2(0xa5); w2(0xa1); in kbic_read_regr()
67 case 5: w0(0x20|s); w2(4); w2(6); w2(4); w3(regr); in kbic_read_regr()
75 static void kbic_write_regr( PIA *pi, int cont, int regr, int val) in kbic_write_regr() argument
85 case 2: w0(regr|0x10|s); w2(4); w2(6); w2(4); in kbic_write_regr()
91 case 5: w0(0x20|s); w2(4); w2(6); w2(4); w3(regr); in kbic_write_regr()
Dfit2.c40 static void fit2_write_regr( PIA *pi, int cont, int regr, int val) in fit2_write_regr() argument
43 w2(0xc); w0(regr); w2(4); w0(val); w2(5); w0(0); w2(4); in fit2_write_regr()
46 static int fit2_read_regr( PIA *pi, int cont, int regr ) in fit2_read_regr() argument
51 if (regr != 6) return 0xff; in fit2_read_regr()
53 } else r = regr + 0x10; in fit2_read_regr()
Dktti.c32 static void ktti_write_regr( PIA *pi, int cont, int regr, int val) in ktti_write_regr() argument
36 r = regr + cont_map[cont]; in ktti_write_regr()
42 static int ktti_read_regr( PIA *pi, int cont, int regr ) in ktti_read_regr() argument
46 r = regr + cont_map[cont]; in ktti_read_regr()
Don20.c36 static int on20_read_regr( PIA *pi, int cont, int regr ) in on20_read_regr() argument
40 r = (regr<<2) + 1 + cont; in on20_read_regr()
59 static void on20_write_regr( PIA *pi, int cont, int regr, int val ) in on20_write_regr() argument
63 r = (regr<<2) + 1 + cont; in on20_write_regr()
Daten.c38 static void aten_write_regr( PIA *pi, int cont, int regr, int val) in aten_write_regr() argument
42 r = regr + cont_map[cont] + 0x80; in aten_write_regr()
47 static int aten_read_regr( PIA *pi, int cont, int regr ) in aten_read_regr() argument
51 r = regr + cont_map[cont] + 0x40; in aten_read_regr()
Dcomm.c45 static int comm_read_regr( PIA *pi, int cont, int regr ) in comm_read_regr() argument
49 r = regr + cont_map[cont]; in comm_read_regr()
71 static void comm_write_regr( PIA *pi, int cont, int regr, int val ) in comm_write_regr() argument
75 r = regr + cont_map[cont]; in comm_write_regr()
Ddstr.c47 static int dstr_read_regr( PIA *pi, int cont, int regr ) in dstr_read_regr() argument
51 r = regr + cont_map[cont]; in dstr_read_regr()
74 static void dstr_write_regr( PIA *pi, int cont, int regr, int val ) in dstr_write_regr() argument
78 r = regr + cont_map[cont]; in dstr_write_regr()
Depat.c47 static void epat_write_regr( PIA *pi, int cont, int regr, int val) in epat_write_regr() argument
51 r = regr + cont_map[cont]; in epat_write_regr()
68 static int epat_read_regr( PIA *pi, int cont, int regr ) in epat_read_regr() argument
72 r = regr + cont_map[cont]; in epat_read_regr()
Don26.c47 static int on26_read_regr( PIA *pi, int cont, int regr ) in on26_read_regr() argument
51 r = (regr<<2) + 1 + cont; in on26_read_regr()
76 static void on26_write_regr( PIA *pi, int cont, int regr, int val ) in on26_write_regr() argument
80 r = (regr<<2) + 1 + cont; in on26_write_regr()
Dparide.c44 void pi_write_regr(PIA * pi, int cont, int regr, int val) in pi_write_regr() argument
46 pi->proto->write_regr(pi, cont, regr, val); in pi_write_regr()
51 int pi_read_regr(PIA * pi, int cont, int regr) in pi_read_regr() argument
53 return pi->proto->read_regr(pi, cont, regr); in pi_read_regr()
Dparide.h83 extern void pi_write_regr(PIA *pi, int cont, int regr, int val);
85 extern int pi_read_regr(PIA *pi, int cont, int regr);
Dbpck.c48 static int bpck_read_regr( PIA *pi, int cont, int regr ) in bpck_read_regr() argument
52 r = regr + cont_map[cont]; in bpck_read_regr()
79 static void bpck_write_regr( PIA *pi, int cont, int regr, int val ) in bpck_write_regr() argument
83 r = regr + cont_map[cont]; in bpck_write_regr()