Lines Matching defs:pin
47 void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin, int dir,
55 /* calculate pin location for single and 2 bits information */
56 pin_mask1bit = (u32) (1 << (QE_PIO_PINS - (pin + 1)));
66 tmp_val = (pin > (QE_PIO_PINS / 2) - 1) ?
72 (pin % (QE_PIO_PINS / 2) + 1) * 2));
76 (pin % (QE_PIO_PINS / 2) + 1) * 2));
79 if (pin > (QE_PIO_PINS / 2) - 1) {
88 /* define pin assignment */
89 tmp_val = (pin > (QE_PIO_PINS / 2) - 1) ?
94 (pin % (QE_PIO_PINS / 2) + 1) * 2));
96 if (pin > (QE_PIO_PINS / 2) - 1) {
108 int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain,
114 __par_io_config_pin(&par_io[port], pin, dir, open_drain, assignment,
120 int par_io_data_set(u8 port, u8 pin, u8 val)
126 if (pin >= QE_PIO_PINS)
128 /* calculate pin location */
129 pin_mask = (u32) (1 << (QE_PIO_PINS - 1 - pin));
172 u8 pin = be32_to_cpu(pio_map[1]);
178 par_io_config_pin(port, pin, dir, open_drain,