Lines Matching defs:port
66 /* Dummy port used when green LED and red LED is on the same bit */
134 unsigned int port, unsigned int pin)
136 if (port > NBR_OF_PORTS)
138 if (port > crisv32_ioports[port].pin_count)
142 iopin->port = &crisv32_ioports[port];
144 /* Only allocate pinmux gpiopins if port != PORT_A (port 0) */
145 /* NOTE! crisv32_pinmux_alloc thinks PORT_B is port 0 */
146 if (port != 0 && crisv32_pinmux_alloc(port - 1, pin, pin, pinmux_gpio))
148 DEBUG(printk(KERN_DEBUG "crisv32_io_get: Allocated pin %d on port %d\n",
149 pin, port));
156 int port;
165 port = toupper(*name) - 'A';
169 if (pin < 0 || pin > crisv32_ioports[port].pin_count)
173 iopin->port = &crisv32_ioports[port];
175 /* Only allocate pinmux gpiopins if port != PORT_A (port 0) */
176 /* NOTE! crisv32_pinmux_alloc thinks PORT_B is port 0 */
177 if (port != 0 && crisv32_pinmux_alloc(port - 1, pin, pin, pinmux_gpio))
181 "crisv32_io_get_name: Allocated pin %d on port %d\n",
182 pin, port));