Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 61) sorted by relevance

123

/linux-2.4.37.9/drivers/block/paride/
Dparide.c49 void pi_write_regr( PIA *pi, int cont, int regr, int val) in pi_write_regr() argument
51 { pi->proto->write_regr(pi,cont,regr,val); in pi_write_regr()
54 int pi_read_regr( PIA *pi, int cont, int regr) in pi_read_regr() argument
56 { return pi->proto->read_regr(pi,cont,regr); in pi_read_regr()
59 void pi_write_block( PIA *pi, char * buf, int count) in pi_write_block() argument
61 { pi->proto->write_block(pi,buf,count); in pi_write_block()
64 void pi_read_block( PIA *pi, char * buf, int count) in pi_read_block() argument
66 { pi->proto->read_block(pi,buf,count); in pi_read_block()
73 { PIA *pi = (PIA *) p; in pi_wake_up() local
79 if (pi->claim_cont && !parport_claim(pi->pardev)) { in pi_wake_up()
[all …]
Dbpck6.c45 #define PPCSTRUCT(pi) ((PPC_STORAGE *)(pi->privptr)) argument
64 static int bpck6_read_regr(PIA *pi, int cont, int reg) in bpck6_read_regr() argument
73 out=ppc6_rd_port(PPCSTRUCT(pi),cont?reg|8:reg); in bpck6_read_regr()
77 static void bpck6_write_regr(PIA *pi, int cont, int reg, int val) in bpck6_write_regr() argument
82 ppc6_wr_port(PPCSTRUCT(pi),cont?reg|8:reg,(u8)val); in bpck6_write_regr()
86 static void bpck6_write_block( PIA *pi, char * buf, int len ) in bpck6_write_block() argument
88 ppc6_wr_port16_blk(PPCSTRUCT(pi),ATAPI_DATA,buf,(u32)len>>1); in bpck6_write_block()
91 static void bpck6_read_block( PIA *pi, char * buf, int len ) in bpck6_read_block() argument
93 ppc6_rd_port16_blk(PPCSTRUCT(pi),ATAPI_DATA,buf,(u32)len>>1); in bpck6_read_block()
96 static void bpck6_connect ( PIA *pi ) in bpck6_connect() argument
[all …]
Dfrpw.c46 static int frpw_read_regr( PIA *pi, int cont, int regr ) in frpw_read_regr() argument
62 static void frpw_write_regr( PIA *pi, int cont, int regr, int val) in frpw_write_regr() argument
73 static void frpw_read_block_int( PIA *pi, char * buf, int count, int regr ) in frpw_read_block_int() argument
77 switch(pi->mode) { in frpw_read_block_int()
134 static void frpw_read_block( PIA *pi, char * buf, int count) in frpw_read_block() argument
136 { frpw_read_block_int(pi,buf,count,0x08); in frpw_read_block()
139 static void frpw_write_block( PIA *pi, char * buf, int count ) in frpw_write_block() argument
143 switch(pi->mode) { in frpw_write_block()
172 static void frpw_connect ( PIA *pi ) in frpw_connect() argument
174 { pi->saved_r0 = r0(); in frpw_connect()
[all …]
Dfriq.c50 static int friq_read_regr( PIA *pi, int cont, int regr ) in friq_read_regr() argument
65 static void friq_write_regr( PIA *pi, int cont, int regr, int val) in friq_write_regr() argument
76 static void friq_read_block_int( PIA *pi, char * buf, int count, int regr ) in friq_read_block_int() argument
80 switch(pi->mode) { in friq_read_block_int()
131 static void friq_read_block( PIA *pi, char * buf, int count) in friq_read_block() argument
133 { friq_read_block_int(pi,buf,count,0x08); in friq_read_block()
136 static void friq_write_block( PIA *pi, char * buf, int count ) in friq_write_block() argument
140 switch(pi->mode) { in friq_write_block()
168 static void friq_connect ( PIA *pi ) in friq_connect() argument
170 { pi->saved_r0 = r0(); in friq_connect()
[all …]
Dbpck.c31 #define PC pi->private
47 static int bpck_read_regr( PIA *pi, int cont, int regr ) in bpck_read_regr() argument
53 switch (pi->mode) { in bpck_read_regr()
78 static void bpck_write_regr( PIA *pi, int cont, int regr, int val ) in bpck_write_regr() argument
84 switch (pi->mode) { in bpck_write_regr()
104 #define WR(r,v) bpck_write_regr(pi,2,r,v)
105 #define RR(r) (bpck_read_regr(pi,2,r))
107 static void bpck_write_block( PIA *pi, char * buf, int count ) in bpck_write_block() argument
111 switch (pi->mode) { in bpck_write_block()
148 static void bpck_read_block( PIA *pi, char * buf, int count ) in bpck_read_block() argument
[all …]
Don26.c46 static int on26_read_regr( PIA *pi, int cont, int regr ) in on26_read_regr() argument
52 switch (pi->mode) { in on26_read_regr()
75 static void on26_write_regr( PIA *pi, int cont, int regr, int val ) in on26_write_regr() argument
81 switch (pi->mode) { in on26_write_regr()
101 static void on26_connect ( PIA *pi ) in on26_connect() argument
105 pi->saved_r0 = r0(); in on26_connect()
106 pi->saved_r2 = r2(); in on26_connect()
109 x = 8; if (pi->mode) x = 9; in on26_connect()
115 static void on26_disconnect ( PIA *pi ) in on26_disconnect() argument
117 { if (pi->mode >= 2) { w3(4); w3(4); w3(4); w3(4); } in on26_disconnect()
[all …]
Depat.c40 static void epat_write_regr( PIA *pi, int cont, int regr, int val) in epat_write_regr() argument
46 switch (pi->mode) { in epat_write_regr()
61 static int epat_read_regr( PIA *pi, int cont, int regr ) in epat_read_regr() argument
67 switch (pi->mode) { in epat_read_regr()
90 static void epat_read_block( PIA *pi, char * buf, int count ) in epat_read_block() argument
94 switch (pi->mode) { in epat_read_block()
155 static void epat_write_block( PIA *pi, char * buf, int count ) in epat_write_block() argument
159 switch (pi->mode) { in epat_write_block()
193 #define WR(r,v) epat_write_regr(pi,2,r,v)
194 #define RR(r) (epat_read_regr(pi,2,r))
[all …]
Depia.c48 static int epia_read_regr( PIA *pi, int cont, int regr ) in epia_read_regr() argument
54 switch (pi->mode) { in epia_read_regr()
81 static void epia_write_regr( PIA *pi, int cont, int regr, int val) in epia_write_regr() argument
87 switch (pi->mode) { in epia_write_regr()
103 #define WR(r,v) epia_write_regr(pi,0,r,v)
104 #define RR(r) (epia_read_regr(pi,0,r))
112 static void epia_connect ( PIA *pi ) in epia_connect() argument
114 { pi->saved_r0 = r0(); in epia_connect()
115 pi->saved_r2 = r2(); in epia_connect()
119 if (pi->mode >= 3) { in epia_connect()
[all …]
Ddstr.c46 static int dstr_read_regr( PIA *pi, int cont, int regr ) in dstr_read_regr() argument
53 if (pi->mode) { w0(0x11); } else { w0(1); } in dstr_read_regr()
56 switch (pi->mode) { in dstr_read_regr()
73 static void dstr_write_regr( PIA *pi, int cont, int regr, int val ) in dstr_write_regr() argument
80 if (pi->mode >= 2) { w0(0x11); } else { w0(1); } in dstr_write_regr()
83 switch (pi->mode) { in dstr_write_regr()
100 static void dstr_connect ( PIA *pi ) in dstr_connect() argument
102 { pi->saved_r0 = r0(); in dstr_connect()
103 pi->saved_r2 = r2(); in dstr_connect()
107 static void dstr_disconnect ( PIA *pi ) in dstr_disconnect() argument
[all …]
Don20.c35 static int on20_read_regr( PIA *pi, int cont, int regr ) in on20_read_regr() argument
43 switch (pi->mode) { in on20_read_regr()
58 static void on20_write_regr( PIA *pi, int cont, int regr, int val ) in on20_write_regr() argument
69 static void on20_connect ( PIA *pi) in on20_connect() argument
71 { pi->saved_r0 = r0(); in on20_connect()
72 pi->saved_r2 = r2(); in on20_connect()
75 if (pi->mode) { op(2); vl(8); op(2); vl(9); } in on20_connect()
79 static void on20_disconnect ( PIA *pi ) in on20_disconnect() argument
82 w0(pi->saved_r0); in on20_disconnect()
83 w2(pi->saved_r2); in on20_disconnect()
[all …]
Dkbic.c32 #define r12w() (delay_p,inw(pi->port+1)&0xffff)
44 static int kbic_read_regr( PIA *pi, int cont, int regr ) in kbic_read_regr() argument
50 switch (pi->mode) { in kbic_read_regr()
74 static void kbic_write_regr( PIA *pi, int cont, int regr, int val) in kbic_write_regr() argument
80 switch (pi->mode) { in kbic_write_regr()
98 static void k951_connect ( PIA *pi ) in k951_connect() argument
100 { pi->saved_r0 = r0(); in k951_connect()
101 pi->saved_r2 = r2(); in k951_connect()
105 static void k951_disconnect ( PIA *pi ) in k951_disconnect() argument
107 { w0(pi->saved_r0); in k951_disconnect()
[all …]
Dfit3.c41 static void fit3_write_regr( PIA *pi, int cont, int regr, int val) in fit3_write_regr() argument
45 switch (pi->mode) { in fit3_write_regr()
61 static int fit3_read_regr( PIA *pi, int cont, int regr ) in fit3_read_regr() argument
70 switch (pi->mode) { in fit3_read_regr()
94 static void fit3_read_block( PIA *pi, char * buf, int count ) in fit3_read_block() argument
98 switch (pi->mode) { in fit3_read_block()
133 static void fit3_write_block( PIA *pi, char * buf, int count ) in fit3_write_block() argument
137 switch (pi->mode) { in fit3_write_block()
154 static void fit3_connect ( PIA *pi ) in fit3_connect() argument
156 { pi->saved_r0 = r0(); in fit3_connect()
[all …]
Daten.c37 static void aten_write_regr( PIA *pi, int cont, int regr, int val) in aten_write_regr() argument
46 static int aten_read_regr( PIA *pi, int cont, int regr ) in aten_read_regr() argument
52 switch (pi->mode) { in aten_read_regr()
69 static void aten_read_block( PIA *pi, char * buf, int count ) in aten_read_block() argument
73 switch (pi->mode) { in aten_read_block()
97 static void aten_write_block( PIA *pi, char * buf, int count ) in aten_write_block() argument
109 static void aten_connect ( PIA *pi ) in aten_connect() argument
111 { pi->saved_r0 = r0(); in aten_connect()
112 pi->saved_r2 = r2(); in aten_connect()
116 static void aten_disconnect ( PIA *pi ) in aten_disconnect() argument
[all …]
Dcomm.c44 static int comm_read_regr( PIA *pi, int cont, int regr ) in comm_read_regr() argument
50 switch (pi->mode) { in comm_read_regr()
70 static void comm_write_regr( PIA *pi, int cont, int regr, int val ) in comm_write_regr() argument
76 switch (pi->mode) { in comm_write_regr()
89 static void comm_connect ( PIA *pi ) in comm_connect() argument
91 { pi->saved_r0 = r0(); in comm_connect()
92 pi->saved_r2 = r2(); in comm_connect()
100 static void comm_disconnect ( PIA *pi ) in comm_disconnect() argument
103 w0(pi->saved_r0); in comm_disconnect()
104 w2(pi->saved_r2); in comm_disconnect()
[all …]
Dfit2.c39 static void fit2_write_regr( PIA *pi, int cont, int regr, int val) in fit2_write_regr() argument
45 static int fit2_read_regr( PIA *pi, int cont, int regr ) in fit2_read_regr() argument
63 static void fit2_read_block( PIA *pi, char * buf, int count ) in fit2_read_block() argument
89 static void fit2_write_block( PIA *pi, char * buf, int count ) in fit2_write_block() argument
102 static void fit2_connect ( PIA *pi ) in fit2_connect() argument
104 { pi->saved_r0 = r0(); in fit2_connect()
105 pi->saved_r2 = r2(); in fit2_connect()
109 static void fit2_disconnect ( PIA *pi ) in fit2_disconnect() argument
111 { w0(pi->saved_r0); in fit2_disconnect()
112 w2(pi->saved_r2); in fit2_disconnect()
[all …]
Dktti.c31 static void ktti_write_regr( PIA *pi, int cont, int regr, int val) in ktti_write_regr() argument
41 static int ktti_read_regr( PIA *pi, int cont, int regr ) in ktti_read_regr() argument
53 static void ktti_read_block( PIA *pi, char * buf, int count ) in ktti_read_block() argument
66 static void ktti_write_block( PIA *pi, char * buf, int count ) in ktti_write_block() argument
78 static void ktti_connect ( PIA *pi ) in ktti_connect() argument
80 { pi->saved_r0 = r0(); in ktti_connect()
81 pi->saved_r2 = r2(); in ktti_connect()
85 static void ktti_disconnect ( PIA *pi ) in ktti_disconnect() argument
88 w0(pi->saved_r0); in ktti_disconnect()
89 w2(pi->saved_r2); in ktti_disconnect()
[all …]
Dparide.h64 extern int pi_init(PIA *pi,
77 extern void pi_release(PIA *pi);
86 extern void pi_write_regr(PIA *pi, int cont, int regr, int val);
88 extern int pi_read_regr(PIA *pi, int cont, int regr);
90 extern void pi_write_block(PIA *pi, char * buf, int count);
92 extern void pi_read_block(PIA *pi, char * buf, int count);
94 extern void pi_connect(PIA *pi);
96 extern void pi_disconnect(PIA *pi);
98 extern void pi_do_claimed(PIA *pi, void (*cont)(void));
102 #define delay_p (pi->delay?udelay(pi->delay):0)
[all …]
/linux-2.4.37.9/arch/sparc64/lib/
DPeeCeeI.c26 u32 *pi; in outsw() local
34 pi = (u32 *)ps; in outsw()
36 u32 w = le32_to_cpup(pi); in outsw()
38 pi++; in outsw()
43 ps = (u16 *)pi; in outsw()
65 u32 *pi; in outsl() local
72 pi = (u32 *)ps; in outsl()
74 l2 = cpu_to_le32p(pi); in outsl()
75 pi++; in outsl()
79 ps = (u16 *)pi; in outsl()
[all …]
/linux-2.4.37.9/fs/partitions/
Datari.c30 #define VALID_PARTITION(pi,hdsiz) \ argument
31 (((pi)->flg & 1) && \
32 isalnum((pi)->id[0]) && isalnum((pi)->id[1]) && isalnum((pi)->id[2]) && \
33 be32_to_cpu((pi)->st) <= (hdsiz) && \
34 be32_to_cpu((pi)->st) + be32_to_cpu((pi)->siz) <= (hdsiz))
49 struct partition_info *pi; in atari_partition() local
75 pi = &rs->part[0]; in atari_partition()
77 for (; pi < &rs->part[4] && minor < m_lim; minor++, pi++) { in atari_partition()
82 if ( !(pi->flg & 1) ) in atari_partition()
85 if (memcmp (pi->id, "XGM", 3) != 0) { in atari_partition()
[all …]
/linux-2.4.37.9/net/irda/
Dparameters.c38 static int irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi,
40 static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi,
42 static int irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi,
44 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi,
47 static int irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi,
49 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi,
79 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi, in irda_insert_no_value() argument
85 p.pi = pi; in irda_insert_no_value()
92 irda_param_pack(buf, "bb", p.pi, p.pl); in irda_insert_no_value()
106 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi, in irda_extract_no_value() argument
[all …]
/linux-2.4.37.9/include/asm-sparc/
Dide.h111 u32 *pi; in ide_insw() local
119 pi = (u32 *)ps; in ide_insw()
125 *pi++ = w; in ide_insw()
128 ps = (u16 *)pi; in ide_insw()
142 const u32 *pi; in ide_outsw() local
150 pi = (const u32 *)ps; in ide_outsw()
154 w = *pi++; in ide_outsw()
159 ps = (const u16 *)pi; in ide_outsw()
/linux-2.4.37.9/include/asm-sparc64/
Dide.h114 u32 *pi; in __ide_insw() local
120 pi = (u32 *)ps; in __ide_insw()
126 *pi++ = w; in __ide_insw()
129 ps = (u16 *)pi; in __ide_insw()
153 const u32 *pi; in __ide_outsw() local
159 pi = (const u32 *)ps; in __ide_outsw()
163 w = *pi++; in __ide_outsw()
168 ps = (const u16 *)pi; in __ide_outsw()
/linux-2.4.37.9/include/net/irda/
Dparameters.h66 __u8 pi; member
72 typedef int (*PV_HANDLER)(void *self, __u8 *buf, int len, __u8 pi,
95 int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
101 #define irda_param_insert_byte(buf,pi,pv) irda_param_pack(buf,"bbb",pi,1,pv) argument
/linux-2.4.37.9/drivers/video/matrox/
Dg450_pll.c52 static unsigned int g450_nextpll(CPMINFO const struct matrox_pll_limits* pi, unsigned int* fvco, un… in g450_nextpll() argument
71 if (tvco < pi->vcomin) { in g450_nextpll()
98 static unsigned int g450_firstpll(CPMINFO const struct matrox_pll_limits* pi, unsigned int* vco, un… in g450_firstpll() argument
102 vcomax = pi->vcomax; in g450_firstpll()
119 if (tvco < pi->vcomin) { in g450_firstpll()
120 tvco = pi->vcomin; in g450_firstpll()
124 return g450_nextpll(PMINFO pi, vco, 0xFF0000 | p); in g450_firstpll()
310 const struct matrox_pll_limits* pi; in __g450_setclk() local
345 pi = &ACCESS_FBINFO(limits.pixel); in __g450_setclk()
357 pi = &ACCESS_FBINFO(limits.system); in __g450_setclk()
[all …]
/linux-2.4.37.9/drivers/net/wan/
Dfarsync.c864 int pi; in fst_rx_dma_complete() local
868 pi = port->index; in fst_rx_dma_complete()
872 FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); in fst_rx_dma_complete()
1031 int pi; in fst_rx_config() local
1036 pi = port->index; in fst_rx_config()
1040 offset = BUF_OFFSET(rxBuffer[pi][i][0]); in fst_rx_config()
1042 FST_WRW(card, rxDescrRing[pi][i].ladr, (u16) offset); in fst_rx_config()
1043 FST_WRB(card, rxDescrRing[pi][i].hadr, (u8) (offset >> 16)); in fst_rx_config()
1044 FST_WRW(card, rxDescrRing[pi][i].bcnt, cnv_bcnt(LEN_RX_BUFFER)); in fst_rx_config()
1045 FST_WRW(card, rxDescrRing[pi][i].mcnt, LEN_RX_BUFFER); in fst_rx_config()
[all …]

123