Home
last modified time | relevance | path

Searched refs:parport (Results 1 – 25 of 60) sorted by relevance

123

/drivers/parport/
Dparport_gsc.h85 static inline void parport_gsc_write_data(struct parport *p, unsigned char d) in parport_gsc_write_data()
93 static inline unsigned char parport_gsc_read_data(struct parport *p) in parport_gsc_read_data()
105 static inline unsigned char __parport_gsc_frob_control(struct parport *p, in __parport_gsc_frob_control()
123 static inline void parport_gsc_data_reverse(struct parport *p) in parport_gsc_data_reverse()
128 static inline void parport_gsc_data_forward(struct parport *p) in parport_gsc_data_forward()
133 static inline void parport_gsc_write_control(struct parport *p, in parport_gsc_write_control()
151 static inline unsigned char parport_gsc_read_control(struct parport *p) in parport_gsc_read_control()
161 static inline unsigned char parport_gsc_frob_control(struct parport *p, in parport_gsc_frob_control()
188 static inline unsigned char parport_gsc_read_status(struct parport *p) in parport_gsc_read_status()
193 static inline void parport_gsc_disable_irq(struct parport *p) in parport_gsc_disable_irq()
[all …]
Dparport_atari.c21 static struct parport *this_port = NULL;
24 parport_atari_read_data(struct parport *p) in parport_atari_read_data()
37 parport_atari_write_data(struct parport *p, unsigned char data) in parport_atari_write_data()
48 parport_atari_read_control(struct parport *p) in parport_atari_read_control()
62 parport_atari_write_control(struct parport *p, unsigned char control) in parport_atari_write_control()
76 parport_atari_frob_control(struct parport *p, unsigned char mask, in parport_atari_frob_control()
85 parport_atari_read_status(struct parport *p) in parport_atari_read_status()
97 parport_atari_save_state(struct parport *p, struct parport_state *s) in parport_atari_save_state()
102 parport_atari_restore_state(struct parport *p, struct parport_state *s) in parport_atari_restore_state()
107 parport_atari_enable_irq(struct parport *p) in parport_atari_enable_irq()
[all …]
Ddaisy.c41 struct parport *port;
50 static int mux_present(struct parport *port);
51 static int num_mux_ports(struct parport *port);
52 static int select_port(struct parport *port);
53 static int assign_addrs(struct parport *port);
56 static void add_dev(int devnum, struct parport *port, int daisy) in add_dev()
74 static struct parport *clone_parport(struct parport *real, int muxport) in clone_parport()
76 struct parport *extra = parport_register_port(real->base, in clone_parport()
92 int parport_daisy_init(struct parport *port) in parport_daisy_init()
117 struct parport *extra = clone_parport(port, i); in parport_daisy_init()
[all …]
Dshare.c56 static void dead_write_lines (struct parport *p, unsigned char b){} in dead_write_lines()
57 static unsigned char dead_read_lines (struct parport *p) { return 0; } in dead_read_lines()
58 static unsigned char dead_frob_lines (struct parport *p, unsigned char b, in dead_frob_lines()
60 static void dead_onearg (struct parport *p){} in dead_onearg()
62 static void dead_state (struct parport *p, struct parport_state *s) { } in dead_state()
63 static size_t dead_write (struct parport *p, const void *b, size_t l, int f) in dead_write()
65 static size_t dead_read (struct parport *p, void *b, size_t l, int f) in dead_read()
104 static void attach_driver_chain(struct parport *port) in attach_driver_chain()
113 static void detach_driver_chain(struct parport *port) in detach_driver_chain()
156 struct parport *port; in parport_register_driver()
[all …]
Dparport_amiga.c37 static void amiga_write_data(struct parport *p, unsigned char data) in amiga_write_data()
45 static unsigned char amiga_read_data(struct parport *p) in amiga_read_data()
59 static void amiga_write_control(struct parport *p, unsigned char control) in amiga_write_control()
65 static unsigned char amiga_read_control( struct parport *p) in amiga_read_control()
71 static unsigned char amiga_frob_control( struct parport *p, unsigned char mask, unsigned char val) in amiga_frob_control()
96 static unsigned char amiga_read_status(struct parport *p) in amiga_read_status()
105 static void amiga_enable_irq(struct parport *p) in amiga_enable_irq()
110 static void amiga_disable_irq(struct parport *p) in amiga_disable_irq()
115 static void amiga_data_forward(struct parport *p) in amiga_data_forward()
122 static void amiga_data_reverse(struct parport *p) in amiga_data_reverse()
[all …]
Dparport_ax88796.c36 struct parport *parport; member
50 static inline struct ax_drvdata *pp_to_drv(struct parport *p) in pp_to_drv()
56 parport_ax88796_read_data(struct parport *p) in parport_ax88796_read_data()
64 parport_ax88796_write_data(struct parport *p, unsigned char data) in parport_ax88796_write_data()
72 parport_ax88796_read_control(struct parport *p) in parport_ax88796_read_control()
94 parport_ax88796_write_control(struct parport *p, unsigned char control) in parport_ax88796_write_control()
123 parport_ax88796_read_status(struct parport *p) in parport_ax88796_read_status()
148 parport_ax88796_frob_control(struct parport *p, unsigned char mask, in parport_ax88796_frob_control()
162 parport_ax88796_enable_irq(struct parport *p) in parport_ax88796_enable_irq()
176 parport_ax88796_disable_irq(struct parport *p) in parport_ax88796_disable_irq()
[all …]
Dparport_ip32.c141 static struct parport *this_port = NULL;
300 ({ const struct parport *__p = (p); \
331 static void parport_ip32_dump_state(struct parport *p, char *str, in parport_ip32_dump_state()
507 &mace->perif.ctrl.parport.context_a : in parport_ip32_dma_setup_context()
508 &mace->perif.ctrl.parport.context_b; in parport_ip32_dma_setup_context()
592 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
612 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
621 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
657 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop()
659 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop()
[all …]
Dparport_sunbpp.c50 static void parport_sunbpp_disable_irq(struct parport *p) in parport_sunbpp_disable_irq()
60 static void parport_sunbpp_enable_irq(struct parport *p) in parport_sunbpp_enable_irq()
70 static void parport_sunbpp_write_data(struct parport *p, unsigned char d) in parport_sunbpp_write_data()
78 static unsigned char parport_sunbpp_read_data(struct parport *p) in parport_sunbpp_read_data()
85 static unsigned char status_sunbpp_to_pc(struct parport *p) in status_sunbpp_to_pc()
108 static unsigned char control_sunbpp_to_pc(struct parport *p) in control_sunbpp_to_pc()
129 static unsigned char parport_sunbpp_read_control(struct parport *p) in parport_sunbpp_read_control()
134 static unsigned char parport_sunbpp_frob_control(struct parport *p, in parport_sunbpp_frob_control()
180 static void parport_sunbpp_write_control(struct parport *p, unsigned char d) in parport_sunbpp_write_control()
190 static unsigned char parport_sunbpp_read_status(struct parport *p) in parport_sunbpp_read_status()
[all …]
Dparport_mfc3.c78 static struct parport *this_port[MAX_MFC] = {NULL, };
84 static void mfc3_write_data(struct parport *p, unsigned char data) in mfc3_write_data()
93 static unsigned char mfc3_read_data(struct parport *p) in mfc3_read_data()
128 static void mfc3_write_control(struct parport *p, unsigned char control) in mfc3_write_control()
134 static unsigned char mfc3_read_control( struct parport *p) in mfc3_read_control()
140 static unsigned char mfc3_frob_control( struct parport *p, unsigned char mask, unsigned char val) in mfc3_frob_control()
168 static unsigned char mfc3_read_status(struct parport *p) in mfc3_read_status()
192 static void mfc3_enable_irq(struct parport *p) in mfc3_enable_irq()
197 static void mfc3_disable_irq(struct parport *p) in mfc3_disable_irq()
202 static void mfc3_data_forward(struct parport *p) in mfc3_data_forward()
[all …]
Dprocfs.c37 struct parport *port = (struct parport *)table->extra1; in do_active_device()
117 struct parport *port = (struct parport *)table->extra1; in do_hardware_base_addr()
145 struct parport *port = (struct parport *)table->extra1; in do_hardware_irq()
173 struct parport *port = (struct parport *)table->extra1; in do_hardware_dma()
201 struct parport *port = (struct parport *)table->extra1; in do_hardware_modes()
474 int parport_proc_register(struct parport *port) in parport_proc_register()
509 int parport_proc_unregister(struct parport *port) in parport_proc_unregister()
523 struct parport * port = device->port; in parport_device_proc_register()
577 int parport_proc_register(struct parport *pp) in parport_proc_register()
582 int parport_proc_unregister(struct parport *pp) in parport_proc_unregister()
Dieee1284.c42 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup()
47 static struct parport *port_from_cookie[PARPORT_MAX];
69 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event()
120 int parport_poll_peripheral(struct parport *port, in parport_poll_peripheral()
169 int parport_wait_peripheral(struct parport *port, in parport_wait_peripheral()
227 static void parport_ieee1284_terminate (struct parport *port) in parport_ieee1284_terminate()
334 int parport_negotiate (struct parport *port, int mode) in parport_negotiate()
560 static int parport_ieee1284_ack_data_avail (struct parport *port) in parport_ieee1284_ack_data_avail()
576 struct parport *port = handle; in parport_ieee1284_interrupt()
607 ssize_t parport_write (struct parport *port, const void *buffer, size_t len) in parport_write()
[all …]
Dparport_gsc.c58 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout()
88 void parport_gsc_save_state(struct parport *p, struct parport_state *s) in parport_gsc_save_state()
93 void parport_gsc_restore_state(struct parport *p, struct parport_state *s) in parport_gsc_restore_state()
140 static int parport_SPP_supported(struct parport *pb) in parport_SPP_supported()
204 static int parport_PS2_supported(struct parport *pb) in parport_PS2_supported()
235 struct parport *parport_gsc_probe_port(unsigned long base, in parport_gsc_probe_port()
241 struct parport tmp; in parport_gsc_probe_port()
242 struct parport *p = &tmp; in parport_gsc_probe_port()
351 struct parport *p; in parport_init_chip()
386 struct parport *p = dev_get_drvdata(&dev->dev); in parport_remove_chip()
Dparport_pc.c112 static void frob_econtrol(struct parport *pb, unsigned char m, in frob_econtrol()
126 static inline void frob_set_mode(struct parport *p, int mode) in frob_set_mode()
138 static int change_mode(struct parport *p, int m) in change_mode()
207 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout()
245 static void parport_pc_save_state(struct parport *p, struct parport_state *s) in parport_pc_save_state()
253 static void parport_pc_restore_state(struct parport *p, in parport_pc_restore_state()
265 static size_t parport_pc_epp_read_data(struct parport *port, void *buf, in parport_pc_epp_read_data()
331 static size_t parport_pc_epp_write_data(struct parport *port, const void *buf, in parport_pc_epp_write_data()
359 static size_t parport_pc_epp_read_addr(struct parport *port, void *buf, in parport_pc_epp_read_addr()
384 static size_t parport_pc_epp_write_addr(struct parport *port, in parport_pc_epp_write_addr()
[all …]
Dieee1284_ops.c40 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat()
149 size_t parport_ieee1284_read_nibble (struct parport *port, in parport_ieee1284_read_nibble()
240 size_t parport_ieee1284_read_byte (struct parport *port, in parport_ieee1284_read_byte()
334 int ecp_forward_to_reverse (struct parport *port) in ecp_forward_to_reverse()
368 int ecp_reverse_to_forward (struct parport *port) in ecp_reverse_to_forward()
403 size_t parport_ieee1284_ecp_write_data (struct parport *port, in parport_ieee1284_ecp_write_data()
490 size_t parport_ieee1284_ecp_read_data (struct parport *port, in parport_ieee1284_ecp_read_data()
638 size_t parport_ieee1284_ecp_write_addr (struct parport *port, in parport_ieee1284_ecp_write_addr()
730 size_t parport_ieee1284_epp_write_data (struct parport *port, in parport_ieee1284_epp_write_data()
774 size_t parport_ieee1284_epp_read_data (struct parport *port, in parport_ieee1284_epp_read_data()
[all …]
DBUGS-parport1 Currently known (or at least suspected) bugs in parport:
6 o parport_pc_ecp_read_block_pio() is broken. parport will revert to the
9 See <URL:http://people.redhat.com/twaugh/parport/>.
DMakefile5 parport-objs := share.o ieee1284.o ieee1284_ops.o procfs.o
8 parport-objs += daisy.o probe.o
11 obj-$(CONFIG_PARPORT) += parport.o
/drivers/i2c/busses/
Di2c-parport.c52 static void port_write_data(struct parport *p, unsigned char d) in port_write_data()
57 static void port_write_control(struct parport *p, unsigned char d) in port_write_control()
62 static unsigned char port_read_data(struct parport *p) in port_read_data()
67 static unsigned char port_read_status(struct parport *p) in port_read_status()
72 static unsigned char port_read_control(struct parport *p) in port_read_control()
77 static void (* const port_write[])(struct parport *, unsigned char) = {
83 static unsigned char (* const port_read[])(struct parport *) = {
91 static inline void line_set(struct parport *data, int state, in line_set()
103 static inline int line_get(struct parport *data, in line_get()
116 line_set((struct parport *) data, state, &adapter_parm[type].setscl); in parport_setscl()
[all …]
/drivers/input/joystick/
Dwalkera0701.c60 struct parport *parport; member
189 parport_enable_irq(w->parport); in walkera0701_open()
197 parport_disable_irq(w->parport); in walkera0701_close()
203 static int walkera0701_connect(struct walkera_dev *w, int parport) in walkera0701_connect() argument
207 w->parport = parport_find_number(parport); in walkera0701_connect()
208 if (!w->parport) { in walkera0701_connect()
209 pr_err("parport %d does not exist\n", parport); in walkera0701_connect()
213 if (w->parport->irq == -1) { in walkera0701_connect()
215 parport); in walkera0701_connect()
220 w->pardevice = parport_register_device(w->parport, "walkera0701", in walkera0701_connect()
[all …]
Ddb9.c146 static void db9_saturn_write_sub(struct parport *port, int type, unsigned char data, int powered, i… in db9_saturn_write_sub()
169 static unsigned char db9_saturn_read_sub(struct parport *port, int type) in db9_saturn_read_sub()
189 static unsigned char db9_saturn_read_analog(struct parport *port, int type, int powered) in db9_saturn_read_analog()
206 static unsigned char db9_saturn_read_packet(struct parport *port, unsigned char *data, int type, in… in db9_saturn_read_packet()
336 static int db9_saturn(int mode, struct parport *port, struct input_dev *devs[]) in db9_saturn()
369 struct parport *port = db9->pd->port; in db9_timer()
520 struct parport *port = db9->pd->port; in db9_open()
544 struct parport *port = db9->pd->port; in db9_close()
556 static struct db9 __init *db9_probe(int parport, int mode) in db9_probe() argument
560 struct parport *pp; in db9_probe()
[all …]
/drivers/usb/misc/
Duss720.c65 struct parport *pp;
114 struct parport *pp; in async_complete()
215 static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_f… in get_1284_register()
251 static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_fl… in set_1284_register()
279 static int change_mode(struct parport *pp, int m) in change_mode()
329 static int clear_epp_timeout(struct parport *pp) in clear_epp_timeout()
344 struct parport *pp = (struct parport *)dev_id;
357 static void parport_uss720_write_data(struct parport *pp, unsigned char d) in parport_uss720_write_data()
362 static unsigned char parport_uss720_read_data(struct parport *pp) in parport_uss720_read_data()
371 static void parport_uss720_write_control(struct parport *pp, unsigned char d) in parport_uss720_write_control()
[all …]
/drivers/char/
Dlp.c149 static struct parport *console_registered;
195 static int lp_negotiate(struct parport * port, int mode) in lp_negotiate()
298 struct parport *port = lp_table[minor].dev->port; in lp_write()
417 struct parport *port = lp_table[minor].dev->port; in lp_read()
773 struct parport *port = dev->port; in lp_console_write()
832 static char *parport[LP_NO]; variable
835 module_param_array(parport, charp, NULL, 0);
874 static int lp_register(int nr, struct parport *port) in lp_register()
907 static void lp_attach (struct parport *port) in lp_attach()
937 static void lp_detach (struct parport *port) in lp_detach()
[all …]
/drivers/media/parport/
Dbw-qcam.c113 struct parport *pport;
926 static struct qcam *qcam_init(struct parport *port) in qcam_init()
1044 static int init_bwqcam(struct parport *port) in init_bwqcam()
1097 static char *parport[MAX_CAMS] = { NULL, }; variable
1098 module_param_array(parport, charp, NULL, 0);
1101 static int accept_bwqcam(struct parport *port) in accept_bwqcam()
1106 if (parport[0] && strncmp(parport[0], "auto", 4) != 0) { in accept_bwqcam()
1108 for (n = 0; n < MAX_CAMS && parport[n]; n++) { in accept_bwqcam()
1111 r = simple_strtoul(parport[n], &ep, 0); in accept_bwqcam()
1112 if (ep == parport[n]) { in accept_bwqcam()
[all …]
Dc-qcam.c52 struct parport *pport;
77 static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 }; variable
83 MODULE_PARM_DESC(parport, "parport=<auto|n[,n]...> for port detection method\n"
86 module_param_array(parport, int, NULL, 0);
713 static struct qcam *qcam_init(struct parport *port) in qcam_init()
778 static int init_cqcam(struct parport *port) in init_cqcam()
783 if (parport[0] != -1) { in init_cqcam()
787 for (i = 0; i < MAX_CAMS && parport[i] != -1; i++) { in init_cqcam()
788 if (parport[0] == port->number) in init_cqcam()
843 static void cq_attach(struct parport *port) in cq_attach()
[all …]
/drivers/pps/clients/
Dpps_parport.c61 static inline int signal_is_set(struct parport *port) in signal_is_set()
71 struct parport *port = dev->pardev->port; in parport_irq()
137 static void parport_attach(struct parport *port) in parport_attach()
192 static void parport_detach(struct parport *port) in parport_detach()
/drivers/net/plip/
Dplip.c231 struct parport *port = in enable_parport_interrupts()
241 struct parport *port = in disable_parport_interrupts()
249 struct parport *port = in write_data()
257 struct parport *port = in read_status()
1225 static int parport[PLIP_MAX] = { [0 ... PLIP_MAX-1] = -1 }; variable
1228 module_param_array(parport, int, NULL, 0);
1230 MODULE_PARM_DESC(parport, "List of parport device numbers to use by plip");
1246 static void plip_attach (struct parport *port) in plip_attach()
1253 if ((parport[0] == -1 && (!timid || !port->devices)) || in plip_attach()
1254 plip_searchfor(parport, port->number)) { in plip_attach()
[all …]

123