• Home
  • Raw
  • Download

Lines Matching refs:p

9 #define ECONTROL(p) ((p)->base_hi + 0x2)  argument
10 #define CONFIGB(p) ((p)->base_hi + 0x1) argument
11 #define CONFIGA(p) ((p)->base_hi + 0x0) argument
12 #define FIFO(p) ((p)->base_hi + 0x0) argument
13 #define EPPDATA(p) ((p)->base + 0x4) argument
14 #define EPPADDR(p) ((p)->base + 0x3) argument
15 #define CONTROL(p) ((p)->base + 0x2) argument
16 #define STATUS(p) ((p)->base + 0x1) argument
17 #define DATA(p) ((p)->base + 0x0) argument
63 static __inline__ void parport_pc_write_data(struct parport *p, unsigned char d) in parport_pc_write_data() argument
66 printk (KERN_DEBUG "parport_pc_write_data(%p,0x%02x)\n", p, d); in parport_pc_write_data()
68 outb(d, DATA(p)); in parport_pc_write_data()
71 static __inline__ unsigned char parport_pc_read_data(struct parport *p) in parport_pc_read_data() argument
73 unsigned char val = inb (DATA (p)); in parport_pc_read_data()
76 p, val); in parport_pc_read_data()
82 static inline void dump_parport_state (char *str, struct parport *p) in dump_parport_state() argument
85 unsigned char ecr = inb (ECONTROL (p)); in dump_parport_state()
86 unsigned char dcr = inb (CONTROL (p)); in dump_parport_state()
87 unsigned char dsr = inb (STATUS (p)); in dump_parport_state()
89 const struct parport_pc_private *priv = p->physport->private_data; in dump_parport_state()
100 dcr = i ? priv->ctr : inb (CONTROL (p)); in dump_parport_state()
128 static __inline__ unsigned char __parport_pc_frob_control (struct parport *p, in __parport_pc_frob_control() argument
132 struct parport_pc_private *priv = p->physport->private_data; in __parport_pc_frob_control()
141 outb (ctr, CONTROL (p)); in __parport_pc_frob_control()
146 static __inline__ void parport_pc_data_reverse (struct parport *p) in parport_pc_data_reverse() argument
148 __parport_pc_frob_control (p, 0x20, 0x20); in parport_pc_data_reverse()
151 static __inline__ void parport_pc_data_forward (struct parport *p) in parport_pc_data_forward() argument
153 __parport_pc_frob_control (p, 0x20, 0x00); in parport_pc_data_forward()
156 static __inline__ void parport_pc_write_control (struct parport *p, in parport_pc_write_control() argument
167 p->name, p->cad->name); in parport_pc_write_control()
168 parport_pc_data_reverse (p); in parport_pc_write_control()
171 __parport_pc_frob_control (p, wm, d & wm); in parport_pc_write_control()
174 static __inline__ unsigned char parport_pc_read_control(struct parport *p) in parport_pc_read_control() argument
180 const struct parport_pc_private *priv = p->physport->private_data; in parport_pc_read_control()
184 static __inline__ unsigned char parport_pc_frob_control (struct parport *p, in parport_pc_frob_control() argument
196 p->name, p->cad->name, in parport_pc_frob_control()
199 parport_pc_data_reverse (p); in parport_pc_frob_control()
201 parport_pc_data_forward (p); in parport_pc_frob_control()
208 return __parport_pc_frob_control (p, mask, val); in parport_pc_frob_control()
211 static __inline__ unsigned char parport_pc_read_status(struct parport *p) in parport_pc_read_status() argument
213 return inb(STATUS(p)); in parport_pc_read_status()
217 static __inline__ void parport_pc_disable_irq(struct parport *p) in parport_pc_disable_irq() argument
219 __parport_pc_frob_control (p, 0x10, 0x00); in parport_pc_disable_irq()
222 static __inline__ void parport_pc_enable_irq(struct parport *p) in parport_pc_enable_irq() argument
224 __parport_pc_frob_control (p, 0x10, 0x10); in parport_pc_enable_irq()
227 extern void parport_pc_release_resources(struct parport *p);
229 extern int parport_pc_claim_resources(struct parport *p);
237 extern void parport_pc_unregister_port(struct parport *p);