/linux-4.4.14/arch/parisc/include/asm/ |
H A D | parport.h | 3 * parport.h: ia32-compatible parport initialisation 5 * This file should only be included by drivers/parport/parport_pc.c.
|
/linux-4.4.14/drivers/parport/ |
H A D | Makefile | 5 parport-objs := share.o ieee1284.o ieee1284_ops.o procfs.o 8 parport-objs += daisy.o probe.o 11 obj-$(CONFIG_PARPORT) += parport.o
|
H A D | parport_atari.c | 14 #include <linux/parport.h> 21 static struct parport *this_port = NULL; 24 parport_atari_read_data(struct parport *p) parport_atari_read_data() 37 parport_atari_write_data(struct parport *p, unsigned char data) parport_atari_write_data() 48 parport_atari_read_control(struct parport *p) parport_atari_read_control() 62 parport_atari_write_control(struct parport *p, unsigned char control) parport_atari_write_control() 76 parport_atari_frob_control(struct parport *p, unsigned char mask, parport_atari_frob_control() 85 parport_atari_read_status(struct parport *p) parport_atari_read_status() 97 parport_atari_save_state(struct parport *p, struct parport_state *s) parport_atari_save_state() 102 parport_atari_restore_state(struct parport *p, struct parport_state *s) parport_atari_restore_state() 107 parport_atari_enable_irq(struct parport *p) parport_atari_enable_irq() 113 parport_atari_disable_irq(struct parport *p) parport_atari_disable_irq() 119 parport_atari_data_forward(struct parport *p) parport_atari_data_forward() 131 parport_atari_data_reverse(struct parport *p) parport_atari_data_reverse() 174 struct parport *p; parport_atari_init()
|
H A D | parport_gsc.h | 85 static inline void parport_gsc_write_data(struct parport *p, unsigned char d) parport_gsc_write_data() 93 static inline unsigned char parport_gsc_read_data(struct parport *p) parport_gsc_read_data() 105 static inline unsigned char __parport_gsc_frob_control(struct parport *p, __parport_gsc_frob_control() 123 static inline void parport_gsc_data_reverse(struct parport *p) parport_gsc_data_reverse() 128 static inline void parport_gsc_data_forward(struct parport *p) parport_gsc_data_forward() 133 static inline void parport_gsc_write_control(struct parport *p, parport_gsc_write_control() 151 static inline unsigned char parport_gsc_read_control(struct parport *p) parport_gsc_read_control() 161 static inline unsigned char parport_gsc_frob_control(struct parport *p, parport_gsc_frob_control() 188 static inline unsigned char parport_gsc_read_status(struct parport *p) parport_gsc_read_status() 193 static inline void parport_gsc_disable_irq(struct parport *p) parport_gsc_disable_irq() 198 static inline void parport_gsc_enable_irq(struct parport *p) parport_gsc_enable_irq() 203 extern void parport_gsc_release_resources(struct parport *p); 205 extern int parport_gsc_claim_resources(struct parport *p); 209 extern void parport_gsc_save_state(struct parport *p, struct parport_state *s); 211 extern void parport_gsc_restore_state(struct parport *p, struct parport_state *s); 217 extern struct parport *parport_gsc_probe_port(unsigned long base,
|
H A D | parport_amiga.c | 18 #include <linux/parport.h> 37 static void amiga_write_data(struct parport *p, unsigned char data) amiga_write_data() 45 static unsigned char amiga_read_data(struct parport *p) amiga_read_data() 59 static void amiga_write_control(struct parport *p, unsigned char control) amiga_write_control() 65 static unsigned char amiga_read_control( struct parport *p) amiga_read_control() 71 static unsigned char amiga_frob_control( struct parport *p, unsigned char mask, unsigned char val) amiga_frob_control() 96 static unsigned char amiga_read_status(struct parport *p) amiga_read_status() 105 static void amiga_enable_irq(struct parport *p) amiga_enable_irq() 110 static void amiga_disable_irq(struct parport *p) amiga_disable_irq() 115 static void amiga_data_forward(struct parport *p) amiga_data_forward() 122 static void amiga_data_reverse(struct parport *p) amiga_data_reverse() 137 static void amiga_save_state(struct parport *p, struct parport_state *s) amiga_save_state() 147 static void amiga_restore_state(struct parport *p, struct parport_state *s) amiga_restore_state() 197 struct parport *p; amiga_parallel_probe() 229 struct parport *port = platform_get_drvdata(pdev); amiga_parallel_remove()
|
H A D | parport_ax88796.c | 1 /* linux/drivers/parport/parport_ax88796.c 14 #include <linux/parport.h> 36 struct parport *parport; member in struct:ax_drvdata 50 static inline struct ax_drvdata *pp_to_drv(struct parport *p) pp_to_drv() 56 parport_ax88796_read_data(struct parport *p) parport_ax88796_read_data() 64 parport_ax88796_write_data(struct parport *p, unsigned char data) parport_ax88796_write_data() 72 parport_ax88796_read_control(struct parport *p) parport_ax88796_read_control() 94 parport_ax88796_write_control(struct parport *p, unsigned char control) parport_ax88796_write_control() 123 parport_ax88796_read_status(struct parport *p) parport_ax88796_read_status() 148 parport_ax88796_frob_control(struct parport *p, unsigned char mask, parport_ax88796_frob_control() 162 parport_ax88796_enable_irq(struct parport *p) parport_ax88796_enable_irq() 176 parport_ax88796_disable_irq(struct parport *p) parport_ax88796_disable_irq() 190 parport_ax88796_data_forward(struct parport *p) parport_ax88796_data_forward() 199 parport_ax88796_data_reverse(struct parport *p) parport_ax88796_data_reverse() 219 parport_ax88796_save_state(struct parport *p, struct parport_state *s) parport_ax88796_save_state() 228 parport_ax88796_restore_state(struct parport *p, struct parport_state *s) parport_ax88796_restore_state() 276 struct parport *pp = NULL; parport_ax88796_probe() 328 dd->parport = pp; parport_ax88796_probe() 370 struct parport *p = platform_get_drvdata(pdev); parport_ax88796_remove() 388 struct parport *p = platform_get_drvdata(dev); parport_ax88796_suspend() 398 struct parport *p = platform_get_drvdata(dev); parport_ax88796_resume()
|
H A D | daisy.c | 23 #include <linux/parport.h> 41 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) add_dev() 73 /* Clone a parport (actually, make an alias). */ clone_parport() 74 static struct parport *clone_parport(struct parport *real, int muxport) clone_parport() 76 struct parport *extra = parport_register_port(real->base, clone_parport() 92 int parport_daisy_init(struct parport *port) parport_daisy_init() 117 struct parport *extra = clone_parport(port, i); parport_daisy_init() 175 void parport_daisy_fini(struct parport *port) parport_daisy_fini() 216 struct parport *port; parport_open() 271 static int cpp_daisy(struct parport *port, int cmd) cpp_daisy() 319 static int cpp_mux(struct parport *port, int cmd) cpp_mux() 348 void parport_daisy_deselect_all(struct parport *port) parport_daisy_deselect_all() 353 int parport_daisy_select(struct parport *port, int daisy, int mode) parport_daisy_select() 384 static int mux_present(struct parport *port) mux_present() 389 static int num_mux_ports(struct parport *port) num_mux_ports() 394 static int select_port(struct parport *port) select_port() 400 static int assign_addrs(struct parport *port) assign_addrs()
|
H A D | parport_ip32.c | 104 #include <linux/parport.h> 141 static struct parport *this_port = NULL; 243 * @PARPORT_IP32_IRQ_FWD: forward interrupt to the upper parport layer 249 * struct parport_ip32_private - private stuff for &struct parport 289 * @p: pointer to &struct parport 300 ({ const struct parport *__p = (p); \ 308 * @p: pointer to &struct parport 320 * parport_ip32_dump_state - print register status of parport 321 * @p: pointer to &struct parport 331 static void parport_ip32_dump_state(struct parport *p, char *str, parport_ip32_dump_state() 444 * @p: pointer to &struct parport 504 * mace->perif.ctrl.parport.context_a and context_b are parport_ip32_dma_setup_context() 507 &mace->perif.ctrl.parport.context_a : parport_ip32_dma_setup_context() 508 &mace->perif.ctrl.parport.context_b; parport_ip32_dma_setup_context() 592 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_start() 612 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_start() 621 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_start() 657 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_stop() 659 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_stop() 662 ctx_a = readq(&mace->perif.ctrl.parport.context_a); parport_ip32_dma_stop() 663 ctx_b = readq(&mace->perif.ctrl.parport.context_b); parport_ip32_dma_stop() 664 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_stop() 665 diag = readq(&mace->perif.ctrl.parport.diagnostic); parport_ip32_dma_stop() 682 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_stop() 715 writeq(MACEPAR_CTLSTAT_RESET, &mace->perif.ctrl.parport.cntlstat); parport_ip32_dma_register() 761 * @p: pointer to &struct parport 763 static inline void parport_ip32_wakeup(struct parport *p) parport_ip32_wakeup() 772 * @dev_id: pointer to &struct parport 774 * Caught interrupts are forwarded to the upper parport layer if IRQ_mode is 779 struct parport * const p = dev_id; parport_ip32_interrupt() 799 * @p: pointer to &struct parport 801 static inline unsigned int parport_ip32_read_econtrol(struct parport *p) parport_ip32_read_econtrol() 809 * @p: pointer to &struct parport 812 static inline void parport_ip32_write_econtrol(struct parport *p, parport_ip32_write_econtrol() 821 * @p: pointer to &struct parport 828 static inline void parport_ip32_frob_econtrol(struct parport *p, parport_ip32_frob_econtrol() 839 * @p: pointer to &struct parport 845 static void parport_ip32_set_mode(struct parport *p, unsigned int mode) parport_ip32_set_mode() 861 /*--- Basic functions needed for parport -------------------------------*/ 865 * @p: pointer to &struct parport 867 static inline unsigned char parport_ip32_read_data(struct parport *p) parport_ip32_read_data() 875 * @p: pointer to &struct parport 878 static inline void parport_ip32_write_data(struct parport *p, unsigned char d) parport_ip32_write_data() 886 * @p: pointer to &struct parport 888 static inline unsigned char parport_ip32_read_status(struct parport *p) parport_ip32_read_status() 896 * @p: pointer to &struct parport 898 static inline unsigned int __parport_ip32_read_control(struct parport *p) __parport_ip32_read_control() 906 * @p: pointer to &struct parport 909 static inline void __parport_ip32_write_control(struct parport *p, __parport_ip32_write_control() 921 * @p: pointer to &struct parport 929 static inline void __parport_ip32_frob_control(struct parport *p, __parport_ip32_frob_control() 940 * @p: pointer to &struct parport 945 static inline unsigned char parport_ip32_read_control(struct parport *p) parport_ip32_read_control() 954 * @p: pointer to &struct parport 960 static inline void parport_ip32_write_control(struct parport *p, parport_ip32_write_control() 971 * @p: pointer to &struct parport 978 static inline unsigned char parport_ip32_frob_control(struct parport *p, parport_ip32_frob_control() 992 * @p: pointer to &struct parport 994 static inline void parport_ip32_disable_irq(struct parport *p) parport_ip32_disable_irq() 1001 * @p: pointer to &struct parport 1003 static inline void parport_ip32_enable_irq(struct parport *p) parport_ip32_enable_irq() 1010 * @p: pointer to &struct parport 1014 static inline void parport_ip32_data_forward(struct parport *p) parport_ip32_data_forward() 1021 * @p: pointer to &struct parport 1026 static inline void parport_ip32_data_reverse(struct parport *p) parport_ip32_data_reverse() 1032 * parport_ip32_init_state - for core parport code 1044 * parport_ip32_save_state - for core parport code 1045 * @p: pointer to &struct parport 1048 static void parport_ip32_save_state(struct parport *p, parport_ip32_save_state() 1056 * parport_ip32_restore_state - for core parport code 1057 * @p: pointer to &struct parport 1060 static void parport_ip32_restore_state(struct parport *p, parport_ip32_restore_state() 1072 * @p: pointer to &struct parport 1076 static unsigned int parport_ip32_clear_epp_timeout(struct parport *p) parport_ip32_clear_epp_timeout() 1104 * @p: pointer to &struct parport 1110 struct parport *p, void *buf, parport_ip32_epp_read() 1143 * @p: pointer to &struct parport 1149 struct parport *p, const void *buf, parport_ip32_epp_write() 1180 * @p: pointer to &struct parport 1185 static size_t parport_ip32_epp_read_data(struct parport *p, void *buf, parport_ip32_epp_read_data() 1194 * @p: pointer to &struct parport 1199 static size_t parport_ip32_epp_write_data(struct parport *p, const void *buf, parport_ip32_epp_write_data() 1208 * @p: pointer to &struct parport 1213 static size_t parport_ip32_epp_read_addr(struct parport *p, void *buf, parport_ip32_epp_read_addr() 1222 * @p: pointer to &struct parport 1227 static size_t parport_ip32_epp_write_addr(struct parport *p, const void *buf, parport_ip32_epp_write_addr() 1238 * @p: pointer to &struct parport 1248 static unsigned int parport_ip32_fifo_wait_break(struct parport *p, parport_ip32_fifo_wait_break() 1269 * @p: pointer to &struct parport 1275 static unsigned int parport_ip32_fwp_wait_polling(struct parport *p) parport_ip32_fwp_wait_polling() 1278 struct parport * const physport = p->physport; parport_ip32_fwp_wait_polling() 1309 * @p: pointer to &struct parport 1315 static unsigned int parport_ip32_fwp_wait_interrupt(struct parport *p) parport_ip32_fwp_wait_interrupt() 1319 struct parport * const physport = p->physport; parport_ip32_fwp_wait_interrupt() 1383 * @p: pointer to &struct parport 1392 static size_t parport_ip32_fifo_write_block_pio(struct parport *p, parport_ip32_fifo_write_block_pio() 1427 * @p: pointer to &struct parport 1436 static size_t parport_ip32_fifo_write_block_dma(struct parport *p, parport_ip32_fifo_write_block_dma() 1440 struct parport * const physport = p->physport; parport_ip32_fifo_write_block_dma() 1474 * @p: pointer to &struct parport 1481 static size_t parport_ip32_fifo_write_block(struct parport *p, parport_ip32_fifo_write_block() 1496 * @p: pointer to &struct parport 1502 static unsigned int parport_ip32_drain_fifo(struct parport *p, parport_ip32_drain_fifo() 1537 * @p: pointer to &struct parport 1542 static unsigned int parport_ip32_get_fifo_residue(struct parport *p, parport_ip32_get_fifo_residue() 1625 * @p: pointer to &struct parport 1630 static size_t parport_ip32_compat_write_data(struct parport *p, parport_ip32_compat_write_data() 1636 struct parport * const physport = p->physport; parport_ip32_compat_write_data() 1691 * @p: pointer to &struct parport 1696 static size_t parport_ip32_ecp_write_data(struct parport *p, parport_ip32_ecp_write_data() 1702 struct parport * const physport = p->physport; parport_ip32_ecp_write_data() 1770 /*--- Default parport operations ---------------------------------------*/ 1812 * @p: pointer to the &parport structure 1818 static __init unsigned int parport_ip32_ecp_supported(struct parport *p) parport_ip32_ecp_supported() 1840 * @p: pointer to the &parport structure 1843 * success, and 0 otherwise. Adjust FIFO parameters in the parport structure. 1846 static __init unsigned int parport_ip32_fifo_supported(struct parport *p) parport_ip32_fifo_supported() 2031 * Returns the new allocated &parport structure. On error, an error code is 2034 static __init struct parport *parport_ip32_probe_port(void) parport_ip32_probe_port() 2039 struct parport *p = NULL; parport_ip32_probe_port() 2180 * @p: pointer to the &struct parport 2185 static __exit void parport_ip32_unregister_port(struct parport *p) parport_ip32_unregister_port()
|
H A D | parport_sunbpp.c | 32 #include <linux/parport.h> 50 static void parport_sunbpp_disable_irq(struct parport *p) parport_sunbpp_disable_irq() 60 static void parport_sunbpp_enable_irq(struct parport *p) parport_sunbpp_enable_irq() 70 static void parport_sunbpp_write_data(struct parport *p, unsigned char d) parport_sunbpp_write_data() 78 static unsigned char parport_sunbpp_read_data(struct parport *p) parport_sunbpp_read_data() 85 static unsigned char status_sunbpp_to_pc(struct parport *p) status_sunbpp_to_pc() 108 static unsigned char control_sunbpp_to_pc(struct parport *p) control_sunbpp_to_pc() 129 static unsigned char parport_sunbpp_read_control(struct parport *p) parport_sunbpp_read_control() 134 static unsigned char parport_sunbpp_frob_control(struct parport *p, parport_sunbpp_frob_control() 180 static void parport_sunbpp_write_control(struct parport *p, unsigned char d) parport_sunbpp_write_control() 190 static unsigned char parport_sunbpp_read_status(struct parport *p) parport_sunbpp_read_status() 195 static void parport_sunbpp_data_forward (struct parport *p) parport_sunbpp_data_forward() 205 static void parport_sunbpp_data_reverse (struct parport *p) parport_sunbpp_data_reverse() 221 static void parport_sunbpp_save_state(struct parport *p, struct parport_state *s) parport_sunbpp_save_state() 226 static void parport_sunbpp_restore_state(struct parport *p, struct parport_state *s) parport_sunbpp_restore_state() 275 struct parport *p; bpp_probe() 334 struct parport *p = dev_get_drvdata(&op->dev); bpp_remove()
|
H A D | parport_mfc3.c | 58 #include <linux/parport.h> 78 static struct parport *this_port[MAX_MFC] = {NULL, }; 84 static void mfc3_write_data(struct parport *p, unsigned char data) mfc3_write_data() 93 static unsigned char mfc3_read_data(struct parport *p) mfc3_read_data() 128 static void mfc3_write_control(struct parport *p, unsigned char control) mfc3_write_control() 134 static unsigned char mfc3_read_control( struct parport *p) mfc3_read_control() 140 static unsigned char mfc3_frob_control( struct parport *p, unsigned char mask, unsigned char val) mfc3_frob_control() 168 static unsigned char mfc3_read_status(struct parport *p) mfc3_read_status() 192 static void mfc3_enable_irq(struct parport *p) mfc3_enable_irq() 197 static void mfc3_disable_irq(struct parport *p) mfc3_disable_irq() 202 static void mfc3_data_forward(struct parport *p) mfc3_data_forward() 210 static void mfc3_data_reverse(struct parport *p) mfc3_data_reverse() 226 static void mfc3_save_state(struct parport *p, struct parport_state *s) mfc3_save_state() 238 static void mfc3_restore_state(struct parport *p, struct parport_state *s) mfc3_restore_state() 290 struct parport *p; parport_mfc3_init()
|
H A D | procfs.c | 1 /* Sysctl interface for parport devices. 21 #include <linux/parport.h> 38 struct parport *port = (struct parport *)table->extra1; do_active_device() 118 struct parport *port = (struct parport *)table->extra1; do_hardware_base_addr() 146 struct parport *port = (struct parport *)table->extra1; do_hardware_irq() 174 struct parport *port = (struct parport *)table->extra1; do_hardware_dma() 202 struct parport *port = (struct parport *)table->extra1; do_hardware_modes() 238 #define PARPORT_PARPORT_DIR(CHILD) { .procname = "parport", \ 475 int parport_proc_register(struct parport *port) parport_proc_register() 510 int parport_proc_unregister(struct parport *port) parport_proc_unregister() 524 struct parport * port = device->port; parport_device_proc_register() 589 int parport_proc_register(struct parport *pp) parport_proc_register() 594 int parport_proc_unregister(struct parport *pp) parport_proc_unregister()
|
H A D | parport_gsc.c | 40 #include <linux/parport.h> 58 static int clear_epp_timeout(struct parport *pb) clear_epp_timeout() 88 void parport_gsc_save_state(struct parport *p, struct parport_state *s) parport_gsc_save_state() 93 void parport_gsc_restore_state(struct parport *p, struct parport_state *s) parport_gsc_restore_state() 140 static int parport_SPP_supported(struct parport *pb) parport_SPP_supported() 204 static int parport_PS2_supported(struct parport *pb) parport_PS2_supported() 235 struct parport *parport_gsc_probe_port(unsigned long base, parport_gsc_probe_port() 241 struct parport tmp; parport_gsc_probe_port() 242 struct parport *p = &tmp; parport_gsc_probe_port() 246 printk (KERN_DEBUG "parport (0x%lx): no memory!\n", base); parport_gsc_probe_port() 252 printk (KERN_DEBUG "parport (0x%lx): no memory for ops!\n", parport_gsc_probe_port() 351 struct parport *p; parport_init_chip() 363 * the enhanced parport modes. parport_init_chip() 372 printk("%s: enhanced parport-modes not supported.\n", __func__); parport_init_chip() 386 struct parport *p = dev_get_drvdata(&dev->dev); parport_remove_chip()
|
H A D | share.c | 23 #include <linux/parport.h> 57 static void dead_write_lines (struct parport *p, unsigned char b){} dead_read_lines() 58 static unsigned char dead_read_lines (struct parport *p) { return 0; } dead_frob_lines() 59 static unsigned char dead_frob_lines (struct parport *p, unsigned char b, dead_frob_lines() 61 static void dead_onearg (struct parport *p){} dead_initstate() 63 static void dead_state (struct parport *p, struct parport_state *s) { } dead_write() 64 static size_t dead_write (struct parport *p, const void *b, size_t l, int f) dead_write() 66 static size_t dead_read (struct parport *p, void *b, size_t l, int f) dead_read() 105 .name = "parport", 134 .name = "parport", 156 struct parport *port = _port; driver_check() 165 static void attach_driver_chain(struct parport *port) attach_driver_chain() 183 struct parport *port = _port; driver_detach() 192 static void detach_driver_chain(struct parport *port) detach_driver_chain() 289 struct parport *port; __parport_register_driver() 333 struct parport *port; parport_unregister_driver() 350 struct parport *port = to_parport_dev(dev); free_port() 371 * This ensures that a struct parport pointer remains valid 375 struct parport *parport_get_port (struct parport *port) parport_get_port() 382 void parport_del_port(struct parport *port) parport_del_port() 397 void parport_put_port (struct parport *port) parport_put_port() 415 * the relevant members of the parport structure that is returned 427 * If there is no memory to allocate a new parport structure, 431 struct parport *parport_register_port(unsigned long base, int irq, int dma, parport_register_port() 435 struct parport *tmp; parport_register_port() 441 tmp = kzalloc(sizeof(struct parport), GFP_KERNEL); parport_register_port() 443 printk(KERN_WARNING "parport: memory squeeze\n"); parport_register_port() 471 printk(KERN_ERR "parport: memory squeeze\n"); parport_register_port() 475 /* Search for the lowest free parport number. */ parport_register_port() 479 struct parport *p = list_entry(l, struct parport, full_list); parport_register_port() 490 sprintf(name, "parport%d", tmp->portnum = tmp->number); parport_register_port() 524 void parport_announce_port (struct parport *port) parport_announce_port() 543 struct parport *slave = port->slaves[i-1]; parport_announce_port() 552 struct parport *slave = port->slaves[i-1]; parport_announce_port() 568 * The parport structure associated with the port has its 578 void parport_remove_port(struct parport *port) parport_remove_port() 591 struct parport *slave = port->slaves[i-1]; parport_remove_port() 603 struct parport *slave = port->slaves[i-1]; parport_remove_port() 614 struct parport *slave = port->slaves[i-1]; parport_remove_port() 666 * and can also check the irq member of the parport structure 690 parport_register_device(struct parport *port, const char *name, parport_register_device() 823 parport_register_dev_model(struct parport *port, const char *name, parport_register_dev_model() 968 struct parport *port; parport_unregister_device() 1041 struct parport *parport_find_number (int number) parport_find_number() 1043 struct parport *port, *result = NULL; parport_find_number() 1071 struct parport *parport_find_base (unsigned long base) parport_find_base() 1073 struct parport *port, *result = NULL; parport_find_base() 1104 struct parport *port = dev->port->physport; parport_claim() 1274 struct parport *port = dev->port->physport; parport_release() 1282 printk(KERN_WARNING "%s: %s tried to release parport " parport_release() 1336 struct parport *port = dev_id; parport_irq_handler()
|
H A D | ieee1284.c | 2 * IEEE-1284 implementation for parport. 21 #include <linux/parport.h> 42 static void parport_ieee1284_wakeup (struct parport *port) parport_ieee1284_wakeup() 47 static struct parport *port_from_cookie[PARPORT_MAX]; timeout_waiting_on_port() 69 int parport_wait_event (struct parport *port, signed long timeout) parport_wait_event() 106 * defined by the constants in parport.h: %PARPORT_STATUS_BUSY, 120 int parport_poll_peripheral(struct parport *port, parport_poll_peripheral() 154 * defined by the constants in parport.h: %PARPORT_STATUS_BUSY, 169 int parport_wait_peripheral(struct parport *port, parport_wait_peripheral() 227 static void parport_ieee1284_terminate (struct parport *port) parport_ieee1284_terminate() 326 * parport.h starting %IEEE1284_MODE_xxx. 334 int parport_negotiate (struct parport *port, int mode) parport_negotiate() 339 printk (KERN_ERR "parport: IEEE1284 not supported in this kernel\n"); parport_negotiate() 560 static int parport_ieee1284_ack_data_avail (struct parport *port) parport_ieee1284_ack_data_avail() 576 struct parport *port = handle; parport_ieee1284_interrupt() 607 ssize_t parport_write (struct parport *port, const void *buffer, size_t len) parport_write() 615 size_t (*fn) (struct parport *, const void *, size_t, int); parport_write() 700 ssize_t parport_read (struct parport *port, void *buffer, size_t len) parport_read() 703 printk (KERN_ERR "parport: IEEE1284 not supported in this kernel\n"); parport_read() 708 size_t (*fn) (struct parport *, void *, size_t, int); parport_read()
|
H A D | parport_cs.c | 48 #include <linux/parport.h> 76 struct parport *port; 89 /* Create new parport device */ parport_probe() 122 struct parport *p; parport_config() 172 struct parport *p = info->port; parport_cs_release()
|
H A D | parport_pc.c | 64 #include <linux/parport.h> 67 #include <asm/parport.h> 112 static void frob_econtrol(struct parport *pb, unsigned char m, frob_econtrol() 126 static inline void frob_set_mode(struct parport *p, int mode) frob_set_mode() 138 static int change_mode(struct parport *p, int m) change_mode() 144 DPRINTK(KERN_INFO "parport change_mode ECP-ISA to mode 0x%02x\n", m); change_mode() 207 static int clear_epp_timeout(struct parport *pb) clear_epp_timeout() 245 static void parport_pc_save_state(struct parport *p, struct parport_state *s) parport_pc_save_state() 253 static void parport_pc_restore_state(struct parport *p, parport_pc_restore_state() 265 static size_t parport_pc_epp_read_data(struct parport *port, void *buf, parport_pc_epp_read_data() 331 static size_t parport_pc_epp_write_data(struct parport *port, const void *buf, parport_pc_epp_write_data() 359 static size_t parport_pc_epp_read_addr(struct parport *port, void *buf, parport_pc_epp_read_addr() 384 static size_t parport_pc_epp_write_addr(struct parport *port, parport_pc_epp_write_addr() 410 static size_t parport_pc_ecpepp_read_data(struct parport *port, void *buf, parport_pc_ecpepp_read_data() 424 static size_t parport_pc_ecpepp_write_data(struct parport *port, parport_pc_ecpepp_write_data() 439 static size_t parport_pc_ecpepp_read_addr(struct parport *port, void *buf, parport_pc_ecpepp_read_addr() 453 static size_t parport_pc_ecpepp_write_addr(struct parport *port, parport_pc_ecpepp_write_addr() 470 static size_t parport_pc_fifo_write_block_pio(struct parport *port, parport_pc_fifo_write_block_pio() 568 static size_t parport_pc_fifo_write_block_dma(struct parport *port, parport_pc_fifo_write_block_dma() 697 static inline size_t parport_pc_fifo_write_block(struct parport *port, parport_pc_fifo_write_block() 708 static size_t parport_pc_compat_write_block_pio(struct parport *port, parport_pc_compat_write_block_pio() 783 static size_t parport_pc_ecp_write_block_pio(struct parport *port, parport_pc_ecp_write_block_pio() 1376 static struct superio_struct *find_superio(struct parport *p) find_superio() 1385 static int get_superio_dma(struct parport *p) get_superio_dma() 1393 static int get_superio_irq(struct parport *p) get_superio_irq() 1413 static int parport_SPP_supported(struct parport *pb) parport_SPP_supported() 1447 printk(KERN_INFO "parport 0x%lx (WARNING): CTR: " parport_SPP_supported() 1466 printk(KERN_INFO "parport 0x%lx (WARNING): DATA: " parport_SPP_supported() 1468 printk(KERN_INFO "parport 0x%lx: You gave this address, " parport_SPP_supported() 1494 static int parport_ECR_present(struct parport *pb) parport_ECR_present() 1546 static int parport_PS2_supported(struct parport *pb) parport_PS2_supported() 1577 static int parport_ECP_supported(struct parport *pb) parport_ECP_supported() 1706 static int intel_bug_present_check_epp(struct parport *pb) intel_bug_present_check_epp() 1729 static int intel_bug_present(struct parport *pb) intel_bug_present() 1739 static int intel_bug_present(struct parport *pb) intel_bug_present() 1745 static int parport_ECPPS2_supported(struct parport *pb) parport_ECPPS2_supported() 1763 static int parport_EPP_supported(struct parport *pb) parport_EPP_supported() 1797 static int parport_ECPEPP_supported(struct parport *pb) parport_ECPEPP_supported() 1828 static int parport_PS2_supported(struct parport *pb) { return 0; } parport_PS2_supported() 1830 static int parport_ECP_supported(struct parport *pb) parport_ECP_supported() 1835 static int parport_EPP_supported(struct parport *pb) parport_EPP_supported() 1840 static int parport_ECPEPP_supported(struct parport *pb) parport_ECPEPP_supported() 1845 static int parport_ECPPS2_supported(struct parport *pb) parport_ECPPS2_supported() 1855 static int programmable_irq_support(struct parport *pb) programmable_irq_support() 1872 static int irq_probe_ECP(struct parport *pb) irq_probe_ECP() 1900 static int irq_probe_EPP(struct parport *pb) irq_probe_EPP() 1939 static int irq_probe_SPP(struct parport *pb) irq_probe_SPP() 1952 static int parport_irq_probe(struct parport *pb) parport_irq_probe() 1986 static int programmable_dma_support(struct parport *p) programmable_dma_support() 2003 static int parport_dma_probe(struct parport *p) parport_dma_probe() 2023 struct parport *parport_pc_probe_port(unsigned long int base, parport_pc_probe_port() 2031 struct parport *p; parport_pc_probe_port() 2063 /* a misnomer, actually - it's allocate and reserve parport number */ parport_pc_probe_port() 2270 void parport_pc_unregister_port(struct parport *p) parport_pc_unregister_port() 2561 "parport_pc: Weird VIA parport base 0x%X, ignoring\n", sio_via_probe() 2806 struct parport *ports[2]; 2947 struct parport *pdata; parport_pc_pnp_probe() 2986 struct parport *pdata = (struct parport *)pnp_get_drvdata(dev); parport_pc_pnp_remove() 3019 /* This is called by parport_pc_find_nonpci_ports (in asm/parport.h) */ 3065 /* ISA ports and whatever (see asm/parport.h). */ parport_pc_find_ports() 3109 printk(KERN_ERR "parport: bad specifier `%s'\n", s); parport_parse_param() 3228 * parport=0 3229 * parport=auto 3230 * parport=0xBASE[,IRQ[,DMA]] 3241 /* Disable parport if "parport=0" in cmdline */ parport_setup() 3254 printk(KERN_WARNING "parport=%s not understood\n", str); parport_setup() 3259 printk(KERN_ERR "parport=%s ignored, too many ports\n", str); parport_setup() 3288 __setup("parport=", parport_setup); 3341 struct parport *port; parport_pc_exit()
|
H A D | ieee1284_ops.c | 1 /* IEEE-1284 operations for parport. 18 #include <linux/parport.h> 40 size_t parport_ieee1284_write_compat (struct parport *port, parport_ieee1284_write_compat() 149 size_t parport_ieee1284_read_nibble (struct parport *port, parport_ieee1284_read_nibble() 240 size_t parport_ieee1284_read_byte (struct parport *port, parport_ieee1284_read_byte() 334 int ecp_forward_to_reverse (struct parport *port) ecp_forward_to_reverse() 368 int ecp_reverse_to_forward (struct parport *port) ecp_reverse_to_forward() 403 size_t parport_ieee1284_ecp_write_data (struct parport *port, parport_ieee1284_ecp_write_data() 490 size_t parport_ieee1284_ecp_read_data (struct parport *port, parport_ieee1284_ecp_read_data() 638 size_t parport_ieee1284_ecp_write_addr (struct parport *port, parport_ieee1284_ecp_write_addr() 730 size_t parport_ieee1284_epp_write_data (struct parport *port, parport_ieee1284_epp_write_data() 774 size_t parport_ieee1284_epp_read_data (struct parport *port, parport_ieee1284_epp_read_data() 818 size_t parport_ieee1284_epp_write_addr (struct parport *port, parport_ieee1284_epp_write_addr() 862 size_t parport_ieee1284_epp_read_addr (struct parport *port, parport_ieee1284_epp_read_addr()
|
H A D | probe.c | 9 #include <linux/parport.h> 36 static void pretty_print(struct parport *port, int device) pretty_print() 52 static void parse_data(struct parport *port, int device, char *str) parse_data() 135 static ssize_t parport_read_device_id (struct parport *port, char *buffer, parport_read_device_id()
|
H A D | parport_serial.c | 26 #include <linux/parport.h> 518 struct parport *port[PARPORT_MAX]; 557 struct parport *port; parport_register() 663 /* FIXME: What about parport? */ parport_serial_pci_suspend() 691 /* FIXME: What about parport? */ parport_serial_pci_resume()
|
/linux-4.4.14/arch/alpha/include/asm/ |
H A D | parport.h | 2 * parport.h: platform-specific PC-style parport initialisation 6 * This file should only be included by drivers/parport/parport_pc.c.
|
/linux-4.4.14/arch/ia64/include/asm/ |
H A D | parport.h | 2 * parport.h: platform-specific PC-style parport initialisation 6 * This file should only be included by drivers/parport/parport_pc.c.
|
/linux-4.4.14/drivers/i2c/busses/ |
H A D | i2c-parport.c | 2 * i2c-parport.c I2C bus over parallel port * 23 #define pr_fmt(fmt) "i2c-parport: " fmt 29 #include <linux/parport.h> 36 #include "i2c-parport.h" 52 static int parport[MAX_DEVICE] = {0, -1, -1, -1}; variable 57 static void port_write_data(struct parport *p, unsigned char d) port_write_data() 62 static void port_write_control(struct parport *p, unsigned char d) port_write_control() 67 static unsigned char port_read_data(struct parport *p) port_read_data() 72 static unsigned char port_read_status(struct parport *p) port_read_status() 77 static unsigned char port_read_control(struct parport *p) port_read_control() 82 static void (* const port_write[])(struct parport *, unsigned char) = { 88 static unsigned char (* const port_read[])(struct parport *) = { 96 static inline void line_set(struct parport *data, int state, line_set() 108 static inline int line_get(struct parport *data, line_get() 121 line_set((struct parport *) data, state, &adapter_parm[type].setscl); parport_setscl() 126 line_set((struct parport *) data, state, &adapter_parm[type].setsda); parport_setsda() 131 return line_get((struct parport *) data, &adapter_parm[type].getscl); parport_getscl() 136 return line_get((struct parport *) data, &adapter_parm[type].getsda); parport_getsda() 168 static void i2c_parport_attach(struct parport *port) i2c_parport_attach() 175 if (parport[i] == -1) i2c_parport_attach() 177 if (port->number == parport[i]) i2c_parport_attach() 181 pr_debug("Not using parport%d.\n", port->number); i2c_parport_attach() 195 adapter->pdev = parport_register_dev_model(port, "i2c-parport", i2c_parport_attach() 198 pr_err("Unable to register with parport\n"); i2c_parport_attach() 263 static void i2c_parport_detach(struct parport *port) i2c_parport_detach() 291 .name = "i2c-parport", 323 module_param_array(parport, int, NULL, 0); 324 MODULE_PARM_DESC(parport,
|
H A D | Makefile | 103 obj-$(CONFIG_I2C_PARPORT) += i2c-parport.o 104 obj-$(CONFIG_I2C_PARPORT_LIGHT) += i2c-parport-light.o
|
H A D | i2c-parport.h | 2 * i2c-parport.h I2C bus over parallel port *
|
H A D | i2c-parport-light.c | 2 * i2c-parport-light.c I2C bus over parallel port * 33 #include "i2c-parport.h" 36 #define DRVNAME "i2c-parport-light"
|
/linux-4.4.14/arch/powerpc/include/asm/ |
H A D | parport.h | 2 * parport.h: platform-specific PC-style parport initialisation 6 * This file should only be included by drivers/parport/parport_pc.c.
|
/linux-4.4.14/arch/m68k/include/asm/ |
H A D | parport.h | 2 * parport.h: platform-specific PC-style parport initialisation 6 * This file should only be included by drivers/parport/parport_pc.c.
|
/linux-4.4.14/include/linux/ |
H A D | parport.h | 18 #include <uapi/linux/parport.h> 21 struct parport; 67 void (*write_data)(struct parport *, unsigned char); 68 unsigned char (*read_data)(struct parport *); 70 void (*write_control)(struct parport *, unsigned char); 71 unsigned char (*read_control)(struct parport *); 72 unsigned char (*frob_control)(struct parport *, unsigned char mask, 75 unsigned char (*read_status)(struct parport *); 78 void (*enable_irq)(struct parport *); 79 void (*disable_irq)(struct parport *); 82 void (*data_forward) (struct parport *); 83 void (*data_reverse) (struct parport *); 85 /* For core parport code. */ 87 void (*save_state)(struct parport *, struct parport_state *); 88 void (*restore_state)(struct parport *, struct parport_state *); 91 size_t (*epp_write_data) (struct parport *port, const void *buf, 93 size_t (*epp_read_data) (struct parport *port, void *buf, size_t len, 95 size_t (*epp_write_addr) (struct parport *port, const void *buf, 97 size_t (*epp_read_addr) (struct parport *port, void *buf, size_t len, 100 size_t (*ecp_write_data) (struct parport *port, const void *buf, 102 size_t (*ecp_read_data) (struct parport *port, void *buf, size_t len, 104 size_t (*ecp_write_addr) (struct parport *port, const void *buf, 107 size_t (*compat_write_data) (struct parport *port, const void *buf, 109 size_t (*nibble_read_data) (struct parport *port, void *buf, 111 size_t (*byte_read_data) (struct parport *port, void *buf, 140 struct parport *port; 189 struct parport { struct 204 struct parport *physport; 206 parport, i.e. we're a clone of a real 215 It this is a default mux parport, or 250 struct parport *slaves[3]; 253 #define to_parport_dev(n) container_of(n, struct parport, bus_dev) 259 void (*attach) (struct parport *); 260 void (*detach) (struct parport *); 261 void (*match_port)(struct parport *); 277 struct parport *parport_register_port(unsigned long base, int irq, int dma, 285 void parport_announce_port (struct parport *port); 288 extern void parport_remove_port(struct parport *port); 308 extern struct parport *parport_find_number (int); 309 extern struct parport *parport_find_base (unsigned long); 315 extern struct parport *parport_get_port (struct parport *); 316 extern void parport_put_port (struct parport *); 317 void parport_del_port(struct parport *); 333 struct pardevice *parport_register_device(struct parport *port, 340 parport_register_dev_model(struct parport *port, const char *name, 423 extern int parport_negotiate (struct parport *, int mode); 424 extern ssize_t parport_write (struct parport *, const void *buf, size_t len); 425 extern ssize_t parport_read (struct parport *, void *buf, size_t len); 430 extern int parport_wait_event (struct parport *, long timeout); 431 extern int parport_wait_peripheral (struct parport *port, 434 extern int parport_poll_peripheral (struct parport *port, 440 extern size_t parport_ieee1284_write_compat (struct parport *, 442 extern size_t parport_ieee1284_read_nibble (struct parport *, 444 extern size_t parport_ieee1284_read_byte (struct parport *, 446 extern size_t parport_ieee1284_ecp_read_data (struct parport *, 448 extern size_t parport_ieee1284_ecp_write_data (struct parport *, 450 extern size_t parport_ieee1284_ecp_write_addr (struct parport *, 452 extern size_t parport_ieee1284_epp_write_data (struct parport *, 454 extern size_t parport_ieee1284_epp_read_data (struct parport *, 456 extern size_t parport_ieee1284_epp_write_addr (struct parport *, 458 extern size_t parport_ieee1284_epp_read_addr (struct parport *, 462 extern int parport_daisy_init (struct parport *port); 463 extern void parport_daisy_fini (struct parport *port); 467 extern void parport_daisy_deselect_all (struct parport *port); 468 extern int parport_daisy_select (struct parport *port, int daisy, int mode); 471 static inline void parport_generic_irq(struct parport *port) parport_generic_irq() 481 extern int parport_proc_register(struct parport *pp); 482 extern int parport_proc_unregister(struct parport *pp);
|
H A D | parport_pc.h | 42 struct parport *port; 62 static __inline__ void parport_pc_write_data(struct parport *p, unsigned char d) parport_pc_write_data() 70 static __inline__ unsigned char parport_pc_read_data(struct parport *p) parport_pc_read_data() 81 static inline void dump_parport_state (char *str, struct parport *p) dump_parport_state() 91 printk (KERN_DEBUG "*** parport state (%s): ecr=[%s", str, ecr_modes[(ecr & 0xe0) >> 5]); dump_parport_state() 127 static __inline__ unsigned char __parport_pc_frob_control (struct parport *p, __parport_pc_frob_control() 145 static __inline__ void parport_pc_data_reverse (struct parport *p) parport_pc_data_reverse() 150 static __inline__ void parport_pc_data_forward (struct parport *p) parport_pc_data_forward() 155 static __inline__ void parport_pc_write_control (struct parport *p, parport_pc_write_control() 173 static __inline__ unsigned char parport_pc_read_control(struct parport *p) parport_pc_read_control() 183 static __inline__ unsigned char parport_pc_frob_control (struct parport *p, parport_pc_frob_control() 210 static __inline__ unsigned char parport_pc_read_status(struct parport *p) parport_pc_read_status() 216 static __inline__ void parport_pc_disable_irq(struct parport *p) parport_pc_disable_irq() 221 static __inline__ void parport_pc_enable_irq(struct parport *p) parport_pc_enable_irq() 226 extern void parport_pc_release_resources(struct parport *p); 228 extern int parport_pc_claim_resources(struct parport *p); 231 extern struct parport *parport_pc_probe_port(unsigned long base, 236 extern void parport_pc_unregister_port(struct parport *p);
|
H A D | via.h | 2 Currently used only by drivers/parport/parport_pc.c */
|
/linux-4.4.14/drivers/input/joystick/ |
H A D | walkera0701.c | 32 #include <linux/parport.h> 60 struct parport *parport; member in struct:walkera_dev 189 parport_enable_irq(w->parport); walkera0701_open() 197 parport_disable_irq(w->parport); walkera0701_close() 203 static void walkera0701_attach(struct parport *pp) walkera0701_attach() 209 pr_debug("Not using parport%d.\n", pp->number); walkera0701_attach() 214 pr_err("parport %d does not have interrupt assigned\n", walkera0701_attach() 219 w->parport = pp; walkera0701_attach() 230 pr_err("failed to register parport device\n"); walkera0701_attach() 235 pr_err("failed to negotiate parport mode\n"); walkera0701_attach() 250 w->input_dev->phys = w->parport->name; walkera0701_attach() 257 w->input_dev->dev.parent = w->parport->dev; walkera0701_attach() 284 static void walkera0701_detach(struct parport *port) walkera0701_detach() 288 if (!w->pardevice || w->parport->number != port->number) walkera0701_detach() 293 w->parport = NULL; walkera0701_detach()
|
H A D | turbografx.c | 33 #include <linux/parport.h> 55 MODULE_PARM_DESC(map, "Describes first set of devices (<parport#>,<js1>,<js2>,..<js7>"); 105 data2 = parport_read_control(tgfx->pd->port) ^ 0x04; /* CAVEAT parport */ tgfx_timer() 160 static void tgfx_attach(struct parport *pp) tgfx_attach() 178 pr_debug("Not using parport%d.\n", pp->number); tgfx_attach() 190 pr_err("parport busy already - lp.o loaded?\n"); tgfx_attach() 271 static void tgfx_detach(struct parport *port) tgfx_detach()
|
H A D | db9.c | 36 #include <linux/parport.h> 54 MODULE_PARM_DESC(dev, "Describes first attached device (<parport#>,<type>)"); 56 MODULE_PARM_DESC(dev2, "Describes second attached device (<parport#>,<type>)"); 58 MODULE_PARM_DESC(dev3, "Describes third attached device (<parport#>,<type>)"); 147 static void db9_saturn_write_sub(struct parport *port, int type, unsigned char data, int powered, int pwr_sub) db9_saturn_write_sub() 170 static unsigned char db9_saturn_read_sub(struct parport *port, int type) db9_saturn_read_sub() 190 static unsigned char db9_saturn_read_analog(struct parport *port, int type, int powered) db9_saturn_read_analog() 207 static unsigned char db9_saturn_read_packet(struct parport *port, unsigned char *data, int type, int powered) db9_saturn_read_packet() 337 static int db9_saturn(int mode, struct parport *port, struct input_dev *devs[]) db9_saturn() 370 struct parport *port = db9->pd->port; db9_timer() 521 struct parport *port = db9->pd->port; db9_open() 545 struct parport *port = db9->pd->port; db9_close() 557 static void db9_attach(struct parport *pp) db9_attach() 577 pr_debug("Not using parport%d.\n", pp->number); db9_attach() 591 printk(KERN_ERR "db9.c: specified parport is not bidirectional\n"); db9_attach() 600 printk(KERN_ERR "db9.c: parport busy already - lp.o loaded?\n"); db9_attach() 666 static void db9_detach(struct parport *port) db9_detach()
|
H A D | gamecon.c | 39 #include <linux/parport.h> 59 MODULE_PARM_DESC(map, "Describes first set of devices (<parport#>,<pad1>,<pad2>,..<pad5>)"); 152 struct parport *port = gc->pd->port; gc_n64_send_command() 165 struct parport *port = gc->pd->port; gc_n64_send_stop_bit() 568 struct parport *port = gc->pd->port; gc_psx_command() 930 static void gc_attach(struct parport *pp) gc_attach() 948 pr_debug("Not using parport%d.\n", pp->number); gc_attach() 960 pr_err("parport busy already - lp.o loaded?\n"); gc_attach() 1003 static void gc_detach(struct parport *port) gc_detach()
|
/linux-4.4.14/sound/drivers/ |
H A D | mts64.c | 23 #include <linux/parport.h> 143 static void mts64_enable_readout(struct parport *p); 144 static void mts64_disable_readout(struct parport *p); 145 static int mts64_device_ready(struct parport *p); 146 static int mts64_device_init(struct parport *p); 150 static int mts64_probe(struct parport *p); 151 static u16 mts64_read(struct parport *p); 152 static u8 mts64_read_char(struct parport *p); 153 static void mts64_smpte_start(struct parport *p, 157 static void mts64_smpte_stop(struct parport *p); 158 static void mts64_write_command(struct parport *p, u8 c); 159 static void mts64_write_data(struct parport *p, u8 c); 168 static void mts64_enable_readout(struct parport *p) mts64_enable_readout() 181 static void mts64_disable_readout(struct parport *p) mts64_disable_readout() 196 static int mts64_device_ready(struct parport *p) mts64_device_ready() 217 static int mts64_device_init(struct parport *p) mts64_device_init() 243 struct parport *p = mts->pardev->port; mts64_device_open() 257 struct parport *p = mts->pardev->port; mts64_device_close() 286 /* Probe parport for device 288 * Do we have a Miditerminal 4140 on parport? 293 static int mts64_probe(struct parport *p) mts64_probe() 317 static u16 mts64_read(struct parport *p) mts64_read() 341 static u8 mts64_read_char(struct parport *p) mts64_read_char() 367 static void mts64_smpte_start(struct parport *p, mts64_smpte_start() 390 static void mts64_smpte_stop(struct parport *p) mts64_smpte_stop() 397 static void mts64_write_command(struct parport *p, u8 c) mts64_write_command() 410 static void mts64_write_data(struct parport *p, u8 c) mts64_write_data() 429 struct parport *p = mts->pardev->port; mts64_write_midi() 826 * parport stuff 853 static int snd_mts64_probe_port(struct parport *p) snd_mts64_probe_port() 877 static void snd_mts64_attach(struct parport *p) snd_mts64_attach() 885 /* Temporary assignment to forward the parport */ snd_mts64_attach() 905 static void snd_mts64_detach(struct parport *p) snd_mts64_detach() 936 struct parport *p; snd_mts64_probe() 989 /* claim parport */ snd_mts64_probe() 991 snd_printd("Cannot claim parport 0x%lx\n", pardev->port->base); snd_mts64_probe()
|
H A D | portman2x4.c | 42 #include <linux/parport.h> 447 static int portman_probe(struct parport *p) portman_probe() 613 * parport stuff 651 static int snd_portman_probe_port(struct parport *p) snd_portman_probe_port() 675 static void snd_portman_attach(struct parport *p) snd_portman_attach() 683 /* Temporary assignment to forward the parport */ snd_portman_attach() 703 static void snd_portman_detach(struct parport *p) snd_portman_detach() 734 struct parport *p; snd_portman_probe() 788 /* claim parport */ snd_portman_probe() 790 snd_printd("Cannot claim parport 0x%lx\n", pardev->port->base); snd_portman_probe()
|
/linux-4.4.14/drivers/usb/misc/ |
H A D | uss720.c | 46 #include <linux/parport.h> 65 struct parport *pp; 114 struct parport *pp; async_complete() 211 static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_flags) get_1284_register() 247 static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_flags) set_1284_register() 275 static int change_mode(struct parport *pp, int m) change_mode() 325 static int clear_epp_timeout(struct parport *pp) clear_epp_timeout() 340 struct parport *pp = (struct parport *)dev_id; 353 static void parport_uss720_write_data(struct parport *pp, unsigned char d) parport_uss720_write_data() 358 static unsigned char parport_uss720_read_data(struct parport *pp) parport_uss720_read_data() 367 static void parport_uss720_write_control(struct parport *pp, unsigned char d) parport_uss720_write_control() 377 static unsigned char parport_uss720_read_control(struct parport *pp) parport_uss720_read_control() 383 static unsigned char parport_uss720_frob_control(struct parport *pp, unsigned char mask, unsigned char val) parport_uss720_frob_control() 397 static unsigned char parport_uss720_read_status(struct parport *pp) parport_uss720_read_status() 406 static void parport_uss720_disable_irq(struct parport *pp) parport_uss720_disable_irq() 417 static void parport_uss720_enable_irq(struct parport *pp) parport_uss720_enable_irq() 428 static void parport_uss720_data_forward (struct parport *pp) parport_uss720_data_forward() 439 static void parport_uss720_data_reverse (struct parport *pp) parport_uss720_data_reverse() 456 static void parport_uss720_save_state(struct parport *pp, struct parport_state *s) parport_uss720_save_state() 468 static void parport_uss720_restore_state(struct parport *pp, struct parport_state *s) parport_uss720_restore_state() 479 static size_t parport_uss720_epp_read_data(struct parport *pp, void *buf, size_t length, int flags) parport_uss720_epp_read_data() 499 static size_t parport_uss720_epp_write_data(struct parport *pp, const void *buf, size_t length, int flags) parport_uss720_epp_write_data() 538 static size_t parport_uss720_epp_read_addr(struct parport *pp, void *buf, size_t length, int flags) parport_uss720_epp_read_addr() 558 static size_t parport_uss720_epp_write_addr(struct parport *pp, const void *buf, size_t length, int flags) parport_uss720_epp_write_addr() 580 static size_t parport_uss720_ecp_write_data(struct parport *pp, const void *buffer, size_t len, int flags) parport_uss720_ecp_write_data() 598 static size_t parport_uss720_ecp_read_data(struct parport *pp, void *buffer, size_t len, int flags) parport_uss720_ecp_read_data() 616 static size_t parport_uss720_ecp_write_addr(struct parport *pp, const void *buffer, size_t len, int flags) parport_uss720_ecp_write_addr() 631 static size_t parport_uss720_write_compat(struct parport *pp, const void *buffer, size_t len, int flags) parport_uss720_write_compat() 696 struct parport *pp; uss720_probe() 715 * Allocate parport interface uss720_probe() 729 printk(KERN_WARNING "uss720: could not register parport\n"); uss720_probe() 761 struct parport *pp = usb_get_intfdata(intf); uss720_disconnect()
|
/linux-4.4.14/drivers/auxdisplay/ |
H A D | ks0108.c | 6 * Depends: parport 34 #include <linux/parport.h> 56 static struct parport *ks0108_parport; 128 static void ks0108_parport_attach(struct parport *port) ks0108_parport_attach() 140 pr_err("ERROR: parport didn't register new device\n"); ks0108_parport_attach() 144 pr_err("could not claim access to parport %i. Aborting.\n", ks0108_parport_attach() 158 static void ks0108_parport_detach(struct parport *port) ks0108_parport_detach()
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | parport.h | 0 /* parport.h: sparc64 specific parport initialization and dma. 40 struct parport *port; 113 struct parport *p; ecpp_probe() 148 strcpy(sparc_ebus_dmas[slot].info.name, "parport"); ecpp_probe() 197 struct parport *p = dev_get_drvdata(&op->dev); ecpp_remove()
|
/linux-4.4.14/arch/arm/mach-rpc/include/mach/ |
H A D | io.h | 23 * - parport (at 0x278-0x27a, 0x27b-0x27f, 0x778-0x77a)
|
/linux-4.4.14/drivers/pps/clients/ |
H A D | pps_parport.c | 36 #include <linux/parport.h> 55 struct pardevice *pardev; /* parport device */ 61 static inline int signal_is_set(struct parport *port) signal_is_set() 66 /* parport interrupt handler */ parport_irq() 71 struct parport *port = dev->pardev->port; parport_irq() 137 static void parport_attach(struct parport *port) parport_attach() 192 static void parport_detach(struct parport *port) parport_detach() 233 pr_err("unable to register with parport\n"); pps_parport_init()
|
/linux-4.4.14/drivers/input/serio/ |
H A D | parkbd.c | 48 #include <linux/parport.h> 144 static int parkbd_getport(struct parport *pp) parkbd_getport() 183 static void parkbd_attach(struct parport *pp) parkbd_attach() 186 pr_debug("Not using parport%d.\n", pp->number); parkbd_attach() 210 static void parkbd_detach(struct parport *port) parkbd_detach()
|
/linux-4.4.14/drivers/spi/ |
H A D | spi-lm70llp.c | 22 #include <linux/parport.h> 35 * port to bitbang an SPI-parport bridge. Accordingly, this is an SPI 46 * Also see Documentation/spi/spi-lm70llp. The SPI<->parport code here is 65 * Note that parport pin 13 actually gets inverted by the transistor 66 * arrangement which lets either the parport or the LM70 drive the 81 struct parport *port; 102 * still be what we wrote before. Plus, going through parport builds in 164 * switches it to low reflecting this on the parport (pin 13), and vice-versa. 193 static void spi_lm70llp_attach(struct parport *p) spi_lm70llp_attach() 301 static void spi_lm70llp_detach(struct parport *p) spi_lm70llp_detach()
|
H A D | spi-butterfly.c | 2 * parport-to-butterfly adapter 21 #include <linux/parport.h> 67 struct parport *port; 193 static void butterfly_attach(struct parport *p) butterfly_attach() 229 * parport hookup butterfly_attach() 305 static void butterfly_detach(struct parport *p) butterfly_detach() 310 * the parport to the "struct butterfly" associated with it? butterfly_detach()
|
H A D | spi-bitbang-txrx.h | 5 * - GPIO/parport bitbangers. Provide chipselect() and txrx_word[](),
|
H A D | spi.c | 565 * this is exported so that for example a USB or parport based adapter
|
/linux-4.4.14/drivers/net/hamradio/ |
H A D | baycom_par.c | 63 * 0.7 10.08.1999 Check if parport can do SPP and is safe to access during interrupt contexts 65 * removed direct parport access, uses parport driver methods 85 #include <linux/parport.h> 199 struct parport *pp = bc->pdev->port; par96_tx() 223 struct parport *pp = bc->pdev->port; par96_rx() 314 struct parport *pp; par96_open() 320 printk(KERN_ERR "baycom_par: parport at 0x%lx unknown\n", dev->base_addr); par96_open() 324 printk(KERN_ERR "baycom_par: parport at 0x%lx has no irq\n", pp->base); par96_open() 329 printk(KERN_ERR "baycom_par: parport at 0x%lx cannot be used\n", pp->base); par96_open() 339 printk(KERN_ERR "baycom_par: cannot register parport at 0x%lx\n", dev->base_addr); par96_open() 343 printk(KERN_ERR "baycom_par: parport at 0x%lx busy\n", pp->base); par96_open() 363 struct parport *pp; par96_close()
|
H A D | baycom_epp.c | 33 * 0.4 26.07.1999 Adapted to new lowlevel parport driver interface 36 * 0.6 10.08.1999 Check if parport can do SPP and is safe to access during interrupt contexts 51 #include <linux/parport.h> 433 struct parport *pp = bc->pdev->port; transmit() 564 struct parport *pp = bc->pdev->port; receive() 651 struct parport *pp; epp_bh() 832 struct parport *pp = parport_find_base(dev->base_addr); epp_open() 839 printk(KERN_ERR "%s: parport at 0x%lx unknown\n", bc_drvname, dev->base_addr); epp_open() 844 printk(KERN_ERR "%s: parport at 0x%lx has no irq\n", bc_drvname, pp->base); epp_open() 850 printk(KERN_ERR "%s: parport at 0x%lx cannot be used\n", epp_open() 860 printk(KERN_ERR "%s: cannot register parport at 0x%lx\n", bc_drvname, pp->base); epp_open() 864 printk(KERN_ERR "%s: parport at 0x%lx busy\n", bc_drvname, pp->base); epp_open() 947 struct parport *pp = bc->pdev->port; epp_close()
|
/linux-4.4.14/drivers/char/ |
H A D | lp.c | 15 * Support for parport by Philip Blundell <philb@gnu.org> 37 * appropriate low-level driver; all I/O is done through the parport 58 * # insmod lp.o parport=1,none,2 60 * # insmod lp.o parport=auto 74 * The new driver, by default, binds lp devices to parport devices as it 132 #include <linux/parport.h> 149 static struct parport *console_registered; 154 /* Bits used to manage claiming the parport device */ 165 /* Claim the parport or block trying unless we've already claimed it */ lp_claim_parport_or_block() 173 /* Claim the parport or block trying unless we've already claimed it */ lp_release_parport() 195 static int lp_negotiate(struct parport * port, int mode) lp_negotiate() 298 struct parport *port = lp_table[minor].dev->port; lp_write() 397 printk(KERN_INFO "lp%d releasing parport\n", minor); lp_write() 417 struct parport *port = lp_table[minor].dev->port; lp_read() 773 struct parport *port = dev->port; lp_console_write() 832 static char *parport[LP_NO]; variable 835 module_param_array(parport, charp, NULL, 0); 852 } else if (!strncmp(str, "parport", 7)) { lp_setup() 870 static int lp_register(int nr, struct parport *port) lp_register() 903 static void lp_attach (struct parport *port) lp_attach() 933 static void lp_detach (struct parport *port) lp_detach() 988 printk (KERN_ERR "lp: unable to register with parport\n"); lp_init() 1012 if (parport[0]) { lp_init_module() 1014 if (!strncmp(parport[0], "auto", 4)) lp_init_module() 1018 for (n = 0; n < LP_NO && parport[n]; n++) { lp_init_module() 1019 if (!strncmp(parport[n], "none", 4)) lp_init_module() 1023 unsigned long r = simple_strtoul(parport[n], &ep, 0); lp_init_module() 1024 if (ep != parport[n]) lp_init_module() 1027 printk(KERN_ERR "lp: bad port specifier `%s'\n", parport[n]); lp_init_module()
|
H A D | ppdev.c | 4 * This is the code behind /dev/parport* -- it allows a user-space 5 * application to use the parport subsystem. 64 #include <linux/parport.h> 103 struct parport *port = pp->pdev->port; pp_enable_irq() 114 struct parport *pport; pp_read() 145 size_t (*fn)(struct parport *, void *, size_t, int); pp_read() 198 struct parport *pport; pp_write() 282 struct parport *port; register_device() 329 struct parport * port; pp_do_ioctl() 678 /* parport released, but not in compatibility mode */ pp_release() 751 static void pp_attach(struct parport *port) pp_attach() 754 NULL, "parport%d", port->number); pp_attach() 757 static void pp_detach(struct parport *port) pp_detach() 784 printk (KERN_WARNING CHRDEV ": unable to register with parport\n"); ppdev_init() 801 /* Clean up all parport stuff */ ppdev_cleanup()
|
/linux-4.4.14/drivers/pps/generators/ |
H A D | pps_gen_parport.c | 35 #include <linux/parport.h> 56 struct pardevice *pardev; /* parport device */ 75 struct parport *port; hrtimer_event() 159 struct parport *port = dev->pardev->port; calibrate_port() 193 static void parport_attach(struct parport *port) parport_attach() 227 static void parport_detach(struct parport *port) parport_detach() 259 pr_err("unable to register with parport\n"); pps_gen_parport_init()
|
/linux-4.4.14/drivers/block/paride/ |
H A D | paride.h | 50 wait_queue_head_t parq; /* semaphore for parport sharing */ 52 char *parname; /* parport name */ 53 int claimed; /* parport has already been claimed */ 54 void (*claim_cont)(void); /* continuation for parport wait */
|
H A D | paride.c | 18 1.06 TMW 2001.03.26 more sane parport-or-not resource management 32 #include <linux/parport.h> 250 struct parport *port; pi_register_parport()
|
H A D | bpck6.c | 31 #include <linux/parport.h> 138 /* look at the parport device to see if what modes we can use */ bpck6_test_port()
|
H A D | pcd.c | 224 static void *par_drv; /* reference of parport driver */
|
H A D | pg.c | 230 static void *par_drv; /* reference of parport driver */
|
H A D | pt.c | 235 static void *par_drv; /* reference of parport driver */
|
H A D | pd.c | 250 static void *par_drv; /* reference of parport driver */
|
H A D | pf.c | 267 static void *par_drv; /* reference of parport driver */
|
/linux-4.4.14/drivers/net/plip/ |
H A D | plip.c | 16 * parport-sharing awareness code by Philip Blundell. 57 static const char version[] = "NET3 PLIP version 2.4-parport gniibe@mri.co.jp\n"; 111 #include <linux/parport.h> 231 struct parport *port = enable_parport_interrupts() 241 struct parport *port = disable_parport_interrupts() 249 struct parport *port = write_data() 257 struct parport *port = read_status() 281 PLIP is rather weird, because of the way it interacts with the parport 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"); 1244 /* plip_attach() is called (by the parport code) when a port is 1246 static void plip_attach (struct parport *port) plip_attach() 1253 if ((parport[0] == -1 && (!timid || !port->devices)) || plip_attach() 1254 plip_searchfor(parport, port->number)) { plip_attach() 1311 /* plip_detach() is called (by the parport code) when a port is 1313 static void plip_detach (struct parport *port) plip_detach() 1355 if (!strncmp(str, "parport", 7)) { plip_setup() 1358 parport[parport_ptr++] = n; plip_setup() 1367 parport[0] = -2; plip_setup() 1382 if (parport[0] == -2) plip_init() 1385 if (parport[0] != -1 && timid) { plip_init()
|
/linux-4.4.14/arch/alpha/kernel/ |
H A D | sys_jensen.c | 67 /* the parport is really hw IRQ 1, silly Jensen. */ jensen_local_enable() 75 /* the parport is really hw IRQ 1, silly Jensen. */ jensen_local_disable() 83 /* the parport is really hw IRQ 1, silly Jensen. */ jensen_local_mask_ack()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | sysctl.h | 864 /* /proc/sys/dev/parport */ 875 /* /proc/sys/dev/parport/default */ 881 /* /proc/sys/dev/parport/parport n */ 892 /* /proc/sys/dev/parport/parport n/devices/ */ 897 /* /proc/sys/dev/parport/parport n/devices/device n */
|
H A D | parport.h | 54 /* The "modes" entry in parport is a bit field representing the
|
H A D | lp.h | 90 #define LPSETTIMEOUT 0x060f /* set parport timeout */
|
/linux-4.4.14/drivers/scsi/ |
H A D | imm.h | 43 * I have decided to code the parport support into imm. 47 * Support for parport has been added.
|
H A D | imm.c | 15 #include <linux/parport.h> 222 * A fair chunk of this is based on the Linux parport implementation imm_negotiate() 787 case 0: /* Phase 0 - Waiting for parport */ imm_engine() 791 * for parport to call us imm_engine() 796 return 1; /* wait until imm_wakeup claims parport */ imm_engine() 964 case 0: /* Do not have access to parport */ imm_abort() 1123 static int __imm_attach(struct parport *pb) __imm_attach() 1160 printk(KERN_ERR "imm%d: failed to claim parport because " __imm_attach() 1227 static void imm_attach(struct parport *pb) imm_attach() 1232 static void imm_detach(struct parport *pb) imm_detach()
|
H A D | ppa.c | 16 #include <linux/parport.h> 683 case 0: /* Phase 0 - Waiting for parport */ ppa_engine() 687 * for parport to call us ppa_engine() 692 return 1; /* wait until ppa_wakeup claims parport */ ppa_engine() 840 case 0: /* Do not have access to parport */ ppa_abort() 988 static int __ppa_attach(struct parport *pb) __ppa_attach() 1020 printk(KERN_ERR "ppa%d: failed to claim parport because " __ppa_attach() 1092 static void ppa_attach(struct parport *pb) ppa_attach() 1097 static void ppa_detach(struct parport *pb) ppa_detach()
|
/linux-4.4.14/drivers/usb/serial/ |
H A D | mos7720.c | 36 #include <linux/parport.h> 83 /* initial values for parport regs */ 102 struct parport *pp; /* back to containing struct */ 116 /* lock guards against dereferencing NULL ptr in parport ops callbacks */ 444 static int parport_prologue(struct parport *pp) parport_prologue() 475 static inline void parport_epilogue(struct parport *pp) parport_epilogue() 483 static void parport_mos7715_write_data(struct parport *pp, unsigned char d) parport_mos7715_write_data() 494 static unsigned char parport_mos7715_read_data(struct parport *pp) parport_mos7715_read_data() 506 static void parport_mos7715_write_control(struct parport *pp, unsigned char d) parport_mos7715_write_control() 519 static unsigned char parport_mos7715_read_control(struct parport *pp) parport_mos7715_read_control() 535 static unsigned char parport_mos7715_frob_control(struct parport *pp, parport_mos7715_frob_control() 554 static unsigned char parport_mos7715_read_status(struct parport *pp) parport_mos7715_read_status() 570 static void parport_mos7715_enable_irq(struct parport *pp) parport_mos7715_enable_irq() 574 static void parport_mos7715_disable_irq(struct parport *pp) parport_mos7715_disable_irq() 578 static void parport_mos7715_data_forward(struct parport *pp) parport_mos7715_data_forward() 591 static void parport_mos7715_data_reverse(struct parport *pp) parport_mos7715_data_reverse() 612 static void parport_mos7715_save_state(struct parport *pp, parport_mos7715_save_state() 629 static void parport_mos7715_restore_state(struct parport *pp, parport_mos7715_restore_state() 647 static size_t parport_mos7715_write_compat(struct parport *pp, parport_mos7715_write_compat() 700 * the parallel port hardware device, and register with the parport subsystem. 734 /* register with parport core */ mos7715_parport_init() 740 "Could not register parport\n"); mos7715_parport_init()
|
/linux-4.4.14/drivers/staging/panel/ |
H A D | panel.c | 55 #include <linux/parport.h> 485 static int parport = DEFAULT_PARPORT; variable 486 module_param(parport, int, 0000); 487 MODULE_PARM_DESC(parport, "Parallel port index (0=lpt1, 1=lpt2, ...)"); 2000 /* no need for the parport anymore */ panel_scan_timer() 2213 static void panel_attach(struct parport *port) panel_attach() 2217 if (port->number != parport) panel_attach() 2221 pr_err("%s: port->number=%d parport=%d, already registered!\n", panel_attach() 2222 __func__, port->number, parport); panel_attach() 2232 pr_err("%s: port->number=%d parport=%d, parport_register_device() failed\n", panel_attach() 2233 __func__, port->number, parport); panel_attach() 2238 pr_err("could not claim access to parport%d. Aborting.\n", panel_attach() 2239 parport); panel_attach() 2268 static void panel_detach(struct parport *port) panel_detach() 2270 if (port->number != parport) panel_detach() 2274 pr_err("%s: port->number=%d parport=%d, nothing to unregister.\n", panel_detach() 2275 __func__, port->number, parport); panel_detach() 2417 pr_err("could not register with parport. Aborting.\n"); panel_init_module() 2423 " registered on parport%d (io=0x%lx).\n", parport, panel_init_module()
|
/linux-4.4.14/drivers/staging/media/lirc/ |
H A D | lirc_parallel.c | 46 #include <linux/parport.h> 89 static struct parport *pport;
|
/linux-4.4.14/arch/mips/include/asm/ip32/ |
H A D | mace.h | 232 struct mace_parport parport; member in struct:mace_isactrl
|
/linux-4.4.14/arch/mips/include/asm/sgi/ |
H A D | ioc.h | 158 #define SGIOC_RESET_PPORT 0x01 /* 0=parport reset, 1=nornal */
|
/linux-4.4.14/drivers/parisc/ |
H A D | superio.c | 71 #include <linux/parport.h>
|
/linux-4.4.14/drivers/net/can/sja1000/ |
H A D | peak_pci.c | 612 /* Leave parport mux mode */ peak_pci_probe()
|
/linux-4.4.14/include/linux/spi/ |
H A D | spi.h | 1015 * parport adapters, or microcontrollers acting as USB-to-SPI bridges. 1098 /* If you're hotplugging an adapter with devices (parport, usb, etc)
|
/linux-4.4.14/drivers/net/ethernet/realtek/ |
H A D | atp.c | 218 FIXME: we should use the parport layer for this
|
/linux-4.4.14/kernel/ |
H A D | sysctl_binary.c | 854 /* DEV_PARPORT "parport" no longer used */
|
/linux-4.4.14/drivers/tty/serial/8250/ |
H A D | 8250_pci.c | 5482 * parport_serial driver, check drivers/parport/parport_serial.c
|