Home | History | Annotate | Download | only in ppc

Lines Matching refs:ports

325 	/* interrupt ports */
326 if (descr->callbacks->interrupt.ports != NULL) {
327 const device_interrupt_port_descriptor *ports =
328 descr->callbacks->interrupt.ports;
329 printf_filtered(" interrupt ports:");
330 while (ports->name != NULL) {
331 printf_filtered(" %s", ports->name);
332 ports++;
1713 const device_interrupt_port_descriptor *ports =
1714 me->callback->interrupt.ports;
1715 if (ports != NULL) {
1716 while (ports->name != NULL) {
1717 if (ports->direction == bidirect_port
1718 || ports->direction == direction) {
1719 if (ports->nr_ports > 0) {
1720 int len = strlen(ports->name);
1721 if (strncmp(port_name, ports->name, len) == 0) {
1723 return ports->number;
1725 int port = ports->number + strtoul(&port_name[len], NULL, 0);
1726 if (port >= ports->number + ports->nr_ports)
1733 else if (strcmp(port_name, ports->name) == 0)
1734 return ports->number;
1736 ports++;
1752 const device_interrupt_port_descriptor *ports = NULL;
1753 ports = me->callback->interrupt.ports;
1754 if (ports != NULL) {
1755 while (ports->name != NULL) {
1756 if (ports->direction == bidirect_port
1757 || ports->direction == direction) {
1758 if (ports->nr_ports > 0) {
1759 if (port_number >= ports->number
1760 && port_number < ports->number + ports->nr_ports) {
1761 strcpy(buf, ports->name);
1762 sprintf(buf + strlen(buf), "%d", port_number - ports->number);
1769 if (ports->number == port_number) {
1770 if (strlen(ports->name) >= sizeof_buf)
1772 strcpy(buf, ports->name);
1777 ports++;