/linux-6.12.1/include/linux/ |
D | parport.h | 21 struct parport; 62 void (*write_data)(struct parport *, unsigned char); 63 unsigned char (*read_data)(struct parport *); 65 void (*write_control)(struct parport *, unsigned char); 66 unsigned char (*read_control)(struct parport *); 67 unsigned char (*frob_control)(struct parport *, unsigned char mask, 70 unsigned char (*read_status)(struct parport *); 73 void (*enable_irq)(struct parport *); 74 void (*disable_irq)(struct parport *); 77 void (*data_forward) (struct parport *); [all …]
|
D | parport_pc.h | 46 struct parport *port; 66 static __inline__ void parport_pc_write_data(struct parport *p, unsigned char d) in parport_pc_write_data() 74 static __inline__ unsigned char parport_pc_read_data(struct parport *p) in parport_pc_read_data() 85 static inline void dump_parport_state (char *str, struct parport *p) in dump_parport_state() 131 static __inline__ unsigned char __parport_pc_frob_control (struct parport *p, in __parport_pc_frob_control() 149 static __inline__ void parport_pc_data_reverse (struct parport *p) in parport_pc_data_reverse() 154 static __inline__ void parport_pc_data_forward (struct parport *p) in parport_pc_data_forward() 159 static __inline__ void parport_pc_write_control (struct parport *p, in parport_pc_write_control() 177 static __inline__ unsigned char parport_pc_read_control(struct parport *p) in parport_pc_read_control() 187 static __inline__ unsigned char parport_pc_frob_control (struct parport *p, in parport_pc_frob_control() [all …]
|
/linux-6.12.1/drivers/parport/ |
D | parport_gsc.h | 69 static inline void parport_gsc_write_data(struct parport *p, unsigned char d) in parport_gsc_write_data() 77 static inline unsigned char parport_gsc_read_data(struct parport *p) in parport_gsc_read_data() 88 static inline unsigned char __parport_gsc_frob_control(struct parport *p, in __parport_gsc_frob_control() 106 static inline void parport_gsc_data_reverse(struct parport *p) in parport_gsc_data_reverse() 111 static inline void parport_gsc_data_forward(struct parport *p) in parport_gsc_data_forward() 116 static inline void parport_gsc_write_control(struct parport *p, in parport_gsc_write_control() 134 static inline unsigned char parport_gsc_read_control(struct parport *p) in parport_gsc_read_control() 144 static inline unsigned char parport_gsc_frob_control(struct parport *p, in parport_gsc_frob_control() 171 static inline unsigned char parport_gsc_read_status(struct parport *p) in parport_gsc_read_status() 176 static inline void parport_gsc_disable_irq(struct parport *p) in parport_gsc_disable_irq() [all …]
|
D | parport_atari.c | 22 static struct parport *this_port; 25 parport_atari_read_data(struct parport *p) in parport_atari_read_data() 38 parport_atari_write_data(struct parport *p, unsigned char data) in parport_atari_write_data() 49 parport_atari_read_control(struct parport *p) in parport_atari_read_control() 63 parport_atari_write_control(struct parport *p, unsigned char control) in parport_atari_write_control() 77 parport_atari_frob_control(struct parport *p, unsigned char mask, in parport_atari_frob_control() 86 parport_atari_read_status(struct parport *p) in parport_atari_read_status() 98 parport_atari_save_state(struct parport *p, struct parport_state *s) in parport_atari_save_state() 103 parport_atari_restore_state(struct parport *p, struct parport_state *s) in parport_atari_restore_state() 108 parport_atari_enable_irq(struct parport *p) in parport_atari_enable_irq() [all …]
|
D | parport_amiga.c | 32 static void amiga_write_data(struct parport *p, unsigned char data) in amiga_write_data() 40 static unsigned char amiga_read_data(struct parport *p) in amiga_read_data() 54 static void amiga_write_control(struct parport *p, unsigned char control) in amiga_write_control() 60 static unsigned char amiga_read_control( struct parport *p) in amiga_read_control() 66 static unsigned char amiga_frob_control( struct parport *p, unsigned char mask, unsigned char val) in amiga_frob_control() 91 static unsigned char amiga_read_status(struct parport *p) in amiga_read_status() 100 static void amiga_enable_irq(struct parport *p) in amiga_enable_irq() 105 static void amiga_disable_irq(struct parport *p) in amiga_disable_irq() 110 static void amiga_data_forward(struct parport *p) in amiga_data_forward() 117 static void amiga_data_reverse(struct parport *p) in amiga_data_reverse() [all …]
|
D | daisy.c | 35 struct parport *port; 45 static int mux_present(struct parport *port); 46 static int num_mux_ports(struct parport *port); 47 static int select_port(struct parport *port); 48 static int assign_addrs(struct parport *port); 51 static void add_dev(int devnum, struct parport *port, int daisy) in add_dev() 69 static struct parport *clone_parport(struct parport *real, int muxport) in clone_parport() 71 struct parport *extra = parport_register_port(real->base, in clone_parport() 104 int parport_daisy_init(struct parport *port) in parport_daisy_init() 145 struct parport *extra = clone_parport(port, i); in parport_daisy_init() [all …]
|
D | share.c | 55 static void dead_write_lines(struct parport *p, unsigned char b){} in dead_write_lines() 56 static unsigned char dead_read_lines(struct parport *p) { return 0; } in dead_read_lines() 57 static unsigned char dead_frob_lines(struct parport *p, unsigned char b, in dead_frob_lines() 59 static void dead_onearg(struct parport *p){} in dead_onearg() 61 static void dead_state(struct parport *p, struct parport_state *s) { } in dead_state() 62 static size_t dead_write(struct parport *p, const void *b, size_t l, int f) in dead_write() 64 static size_t dead_read(struct parport *p, void *b, size_t l, int f) in dead_read() 154 struct parport *port = _port; in driver_check() 163 static void attach_driver_chain(struct parport *port) in attach_driver_chain() 177 struct parport *port = _port; in driver_detach() [all …]
|
D | parport_ip32.c | 128 static struct parport *this_port; 287 ({ const struct parport *__p = (p); \ 318 static void parport_ip32_dump_state(struct parport *p, char *str, in parport_ip32_dump_state() 495 &mace->perif.ctrl.parport.context_a : in parport_ip32_dma_setup_context() 496 &mace->perif.ctrl.parport.context_b; in parport_ip32_dma_setup_context() 567 static int parport_ip32_dma_start(struct parport *p, in parport_ip32_dma_start() 581 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start() 601 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start() 610 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start() 622 static void parport_ip32_dma_stop(struct parport *p) in parport_ip32_dma_stop() [all …]
|
D | parport_sunbpp.c | 51 static void parport_sunbpp_disable_irq(struct parport *p) in parport_sunbpp_disable_irq() 61 static void parport_sunbpp_enable_irq(struct parport *p) in parport_sunbpp_enable_irq() 71 static void parport_sunbpp_write_data(struct parport *p, unsigned char d) in parport_sunbpp_write_data() 79 static unsigned char parport_sunbpp_read_data(struct parport *p) in parport_sunbpp_read_data() 86 static unsigned char status_sunbpp_to_pc(struct parport *p) in status_sunbpp_to_pc() 109 static unsigned char control_sunbpp_to_pc(struct parport *p) in control_sunbpp_to_pc() 130 static unsigned char parport_sunbpp_read_control(struct parport *p) in parport_sunbpp_read_control() 135 static unsigned char parport_sunbpp_frob_control(struct parport *p, in parport_sunbpp_frob_control() 181 static void parport_sunbpp_write_control(struct parport *p, unsigned char d) in parport_sunbpp_write_control() 191 static unsigned char parport_sunbpp_read_status(struct parport *p) in parport_sunbpp_read_status() [all …]
|
D | parport_mfc3.c | 74 static struct parport *this_port[MAX_MFC] = {NULL, }; 80 static void mfc3_write_data(struct parport *p, unsigned char data) in mfc3_write_data() 89 static unsigned char mfc3_read_data(struct parport *p) in mfc3_read_data() 123 static void mfc3_write_control(struct parport *p, unsigned char control) in mfc3_write_control() 129 static unsigned char mfc3_read_control( struct parport *p) in mfc3_read_control() 135 static unsigned char mfc3_frob_control( struct parport *p, unsigned char mask, unsigned char val) in mfc3_frob_control() 163 static unsigned char mfc3_read_status(struct parport *p) in mfc3_read_status() 187 static void mfc3_enable_irq(struct parport *p) in mfc3_enable_irq() 192 static void mfc3_disable_irq(struct parport *p) in mfc3_disable_irq() 197 static void mfc3_data_forward(struct parport *p) in mfc3_data_forward() [all …]
|
D | procfs.c | 39 struct parport *port = (struct parport *)table->extra1; in do_active_device() 119 struct parport *port = (struct parport *)table->extra1; in do_hardware_base_addr() 146 struct parport *port = (struct parport *)table->extra1; in do_hardware_irq() 173 struct parport *port = (struct parport *)table->extra1; in do_hardware_dma() 200 struct parport *port = (struct parport *)table->extra1; in do_hardware_modes() 415 int parport_proc_register(struct parport *port) in parport_proc_register() 477 int parport_proc_unregister(struct parport *port) in parport_proc_unregister() 492 struct parport * port = device->port; in parport_device_proc_register() 565 int parport_proc_register(struct parport *pp) in parport_proc_register() 570 int parport_proc_unregister(struct parport *pp) in parport_proc_unregister()
|
D | parport_gsc.c | 51 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() 81 void parport_gsc_save_state(struct parport *p, struct parport_state *s) in parport_gsc_save_state() 86 void parport_gsc_restore_state(struct parport *p, struct parport_state *s) in parport_gsc_restore_state() 133 static int parport_SPP_supported(struct parport *pb) in parport_SPP_supported() 197 static int parport_PS2_supported(struct parport *pb) in parport_PS2_supported() 228 static struct parport *parport_gsc_probe_port(unsigned long base, in parport_gsc_probe_port() 234 struct parport tmp; in parport_gsc_probe_port() 235 struct parport *p = &tmp; in parport_gsc_probe_port() 335 struct parport *p; in parport_init_chip() 369 struct parport *p = dev_get_drvdata(&dev->dev); in parport_remove_chip()
|
D | ieee1284.c | 36 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup() 43 struct parport *port = from_timer(port, t, timer); in timeout_waiting_on_port() 64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() 107 int parport_poll_peripheral(struct parport *port, in parport_poll_peripheral() 156 int parport_wait_peripheral(struct parport *port, in parport_wait_peripheral() 214 static void parport_ieee1284_terminate (struct parport *port) in parport_ieee1284_terminate() 317 int parport_negotiate (struct parport *port, int mode) in parport_negotiate() 536 static int parport_ieee1284_ack_data_avail (struct parport *port) in parport_ieee1284_ack_data_avail() 552 struct parport *port = handle; in parport_ieee1284_interrupt() 583 ssize_t parport_write (struct parport *port, const void *buffer, size_t len) in parport_write() [all …]
|
D | parport_pc.c | 106 static void frob_econtrol(struct parport *pb, unsigned char m, in frob_econtrol() 127 static inline void frob_set_mode(struct parport *p, int mode) in frob_set_mode() 139 static int change_mode(struct parport *p, int m) in change_mode() 208 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() 246 static void parport_pc_save_state(struct parport *p, struct parport_state *s) in parport_pc_save_state() 254 static void parport_pc_restore_state(struct parport *p, in parport_pc_restore_state() 266 static size_t parport_pc_epp_read_data(struct parport *port, void *buf, in parport_pc_epp_read_data() 338 static size_t parport_pc_epp_write_data(struct parport *port, const void *buf, in parport_pc_epp_write_data() 372 static size_t parport_pc_epp_read_addr(struct parport *port, void *buf, in parport_pc_epp_read_addr() 397 static size_t parport_pc_epp_write_addr(struct parport *port, in parport_pc_epp_write_addr() [all …]
|
D | BUGS-parport | 1 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/>.
|
D | ieee1284_ops.c | 35 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() 144 size_t parport_ieee1284_read_nibble (struct parport *port, in parport_ieee1284_read_nibble() 232 size_t parport_ieee1284_read_byte (struct parport *port, in parport_ieee1284_read_byte() 323 int ecp_forward_to_reverse (struct parport *port) in ecp_forward_to_reverse() 355 int ecp_reverse_to_forward (struct parport *port) in ecp_reverse_to_forward() 388 size_t parport_ieee1284_ecp_write_data (struct parport *port, in parport_ieee1284_ecp_write_data() 474 size_t parport_ieee1284_ecp_read_data (struct parport *port, in parport_ieee1284_ecp_read_data() 618 size_t parport_ieee1284_ecp_write_addr (struct parport *port, in parport_ieee1284_ecp_write_addr() 709 size_t parport_ieee1284_epp_write_data (struct parport *port, in parport_ieee1284_epp_write_data() 753 size_t parport_ieee1284_epp_read_data (struct parport *port, in parport_ieee1284_epp_read_data() [all …]
|
D | Makefile | 6 parport-objs := share.o ieee1284.o ieee1284_ops.o procfs.o 9 parport-objs += daisy.o probe.o 12 obj-$(CONFIG_PARPORT) += parport.o
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-parport.c | 128 static int parport[MAX_DEVICE] = {0, -1, -1, -1}; variable 129 module_param_array(parport, int, NULL, 0); 130 MODULE_PARM_DESC(parport, 153 static void port_write_data(struct parport *p, unsigned char d) in port_write_data() 158 static void port_write_control(struct parport *p, unsigned char d) in port_write_control() 163 static unsigned char port_read_data(struct parport *p) in port_read_data() 168 static unsigned char port_read_status(struct parport *p) in port_read_status() 173 static unsigned char port_read_control(struct parport *p) in port_read_control() 178 static void (* const port_write[])(struct parport *, unsigned char) = { 184 static unsigned char (* const port_read[])(struct parport *) = { [all …]
|
/linux-6.12.1/Documentation/driver-api/ |
D | parport-lowlevel.rst | 64 The parport subsystem comprises ``parport`` (the core port-sharing 69 The parport interface to the device driver author can be broken down 73 driver and the parport subsystem: acquiring a list of available ports, 79 core parport module provides generic ``defaults`` for some routines. 103 parport_register_driver - register a device driver with parport 111 #include <linux/parport.h> 115 void (*attach) (struct parport *); 116 void (*detach) (struct parport *); 135 The visible parts of the ``struct parport *`` argument given to 138 struct parport [all …]
|
/linux-6.12.1/drivers/usb/misc/ |
D | uss720.c | 49 struct parport *pp; 99 struct parport *pp; in async_complete() 193 static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_f… in get_1284_register() 229 static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_fl… in set_1284_register() 257 static int change_mode(struct parport *pp, int m) in change_mode() 307 static int clear_epp_timeout(struct parport *pp) in clear_epp_timeout() 322 struct parport *pp = (struct parport *)dev_id; 335 static void parport_uss720_write_data(struct parport *pp, unsigned char d) in parport_uss720_write_data() 340 static unsigned char parport_uss720_read_data(struct parport *pp) in parport_uss720_read_data() 349 static void parport_uss720_write_control(struct parport *pp, unsigned char d) in parport_uss720_write_control() [all …]
|
/linux-6.12.1/sound/drivers/ |
D | mts64.c | 126 static void mts64_enable_readout(struct parport *p); 127 static void mts64_disable_readout(struct parport *p); 128 static int mts64_device_ready(struct parport *p); 129 static int mts64_device_init(struct parport *p); 133 static int mts64_probe(struct parport *p); 134 static u16 mts64_read(struct parport *p); 135 static u8 mts64_read_char(struct parport *p); 136 static void mts64_smpte_start(struct parport *p, 140 static void mts64_smpte_stop(struct parport *p); 141 static void mts64_write_command(struct parport *p, u8 c); [all …]
|
/linux-6.12.1/Documentation/admin-guide/ |
D | parport.rst | 4 The ``parport`` code provides parallel-port support under Linux. This 8 You can pass parameters to the ``parport`` code to override its automatic 15 The ``parport`` code is split into two parts: generic (which deals with 23 If you load the `parport`` code as a module, say:: 25 # insmod parport 27 to load the generic ``parport`` code. You then must load the 32 to tell the ``parport`` code that you want three PC-style ports, one at 70 The probe information is available from files in ``/proc/sys/dev/parport/``. 76 If you compile the ``parport`` code into the kernel, then you can use 80 parport=0x3bc parport=0x378,7 parport=0x278,auto,nofifo [all …]
|
/linux-6.12.1/drivers/input/joystick/ |
D | walkera0701.c | 56 struct parport *parport; member 185 parport_enable_irq(w->parport); in walkera0701_open() 193 parport_disable_irq(w->parport); in walkera0701_close() 199 static void walkera0701_attach(struct parport *pp) in walkera0701_attach() 215 w->parport = pp; in walkera0701_attach() 246 w->input_dev->phys = w->parport->name; in walkera0701_attach() 253 w->input_dev->dev.parent = w->parport->dev; in walkera0701_attach() 280 static void walkera0701_detach(struct parport *port) in walkera0701_detach() 284 if (!w->pardevice || w->parport->number != port->number) in walkera0701_detach() 289 w->parport = NULL; in walkera0701_detach()
|
/linux-6.12.1/drivers/ata/pata_parport/ |
D | pata_parport.c | 481 struct parport *parport; member 490 return pi->pardev->port == match->parport && pi->proto == match->proto; in pi_find_dev() 493 static struct pi_adapter *pi_init_one(struct parport *parport, in pi_init_one() argument 500 struct pi_device_match match = { .parport = parport, .proto = pr }; in pi_init_one() 542 pi->port = parport->base; in pi_init_one() 545 pi->pardev = parport_register_dev_model(parport, DRV_NAME, &par_cb, id); in pi_init_one() 588 struct parport *parport; in pata_parport_register_driver() local 609 idr_for_each_entry(&parport_list, parport, port_num) in pata_parport_register_driver() 610 pi_init_one(parport, pr, -1, -1, -1); in pata_parport_register_driver() 641 struct parport *parport; in new_device_store() local [all …]
|
/linux-6.12.1/drivers/char/ |
D | lp.c | 153 static struct parport *console_registered; 199 static int lp_negotiate(struct parport *port, int mode) in lp_negotiate() 305 struct parport *port = lp_table[minor].dev->port; in lp_write() 424 struct parport *port = lp_table[minor].dev->port; in lp_read() 818 struct parport *port = dev->port; in lp_console_write() 879 static char *parport[LP_NO]; variable 882 module_param_array(parport, charp, NULL, 0); 921 static int lp_register(int nr, struct parport *port) in lp_register() 959 static void lp_attach(struct parport *port) in lp_attach() 993 static void lp_detach(struct parport *port) in lp_detach() [all …]
|