Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 165) sorted by relevance

1234567

/components/drivers/pci/host/dw/
A Dpcie-dw_host.c198 rt_pic_detach_irq(port->msi_irq, port); in dw_pcie_free_msi()
238 port->cfg0_base = rt_ioremap((void *)port->cfg0_addr, port->cfg0_size); in dw_pcie_host_init()
297 if (!port->cfg0_base && port->cfg0_addr) in dw_pcie_host_init()
299 port->cfg0_base = rt_ioremap((void *)port->cfg0_addr, port->cfg0_size); in dw_pcie_host_init()
328 port->ops->set_irq_count(port); in dw_pcie_host_init()
347 port->msi_pic->priv_data = port; in dw_pcie_host_init()
349 rt_pic_linear_irq(port->msi_pic, port->irq_count); in dw_pcie_host_init()
369 if ((err = port->ops->msi_host_init(port))) in dw_pcie_host_init()
379 if (port->ops->host_init && (err = port->ops->host_init(port))) in dw_pcie_host_init()
482 port->io_addr, port->io_bus_addr, port->io_size); in dw_pcie_other_read_conf()
[all …]
A Dpcie-dw_platfrom.c36 dw_pcie_setup_rc(port); in dw_platform_pcie_host_init()
38 dw_pcie_msi_init(port); in dw_platform_pcie_host_init()
108 struct dw_pcie_port *port = &pci->port; in dw_platform_add_pcie_port() local
110 port->sys_irq = rt_dm_dev_get_irq(dev, 1); in dw_platform_add_pcie_port()
112 if (port->sys_irq < 0) in dw_platform_add_pcie_port()
114 return port->sys_irq; in dw_platform_add_pcie_port()
118 port->msi_irq = rt_dm_dev_get_irq(dev, 0); in dw_platform_add_pcie_port()
120 if (port->msi_irq < 0) in dw_platform_add_pcie_port()
122 return port->msi_irq; in dw_platform_add_pcie_port()
126 port->ops = &dw_platform_pcie_host_ops; in dw_platform_add_pcie_port()
[all …]
A Dpcie-dw.h208 rt_err_t (*host_init)(struct dw_pcie_port *port);
209 rt_err_t (*msi_host_init)(struct dw_pcie_port *port);
210 void (*set_irq_count)(struct dw_pcie_port *port);
270 struct dw_pcie_port port; member
409 HOST_API rt_err_t dw_handle_msi_irq(struct dw_pcie_port *port) HOST_RET(-RT_ENOSYS)
410 HOST_API void dw_pcie_msi_init(struct dw_pcie_port *port) HOST_RET()
411 HOST_API void dw_pcie_free_msi(struct dw_pcie_port *port) HOST_RET()
413 HOST_API void dw_pcie_setup_rc(struct dw_pcie_port *port) HOST_RET()
415 HOST_API rt_err_t dw_pcie_host_init(struct dw_pcie_port *port) HOST_RET(-RT_ENOSYS)
416 HOST_API void dw_pcie_host_deinit(struct dw_pcie_port *port) HOST_RET()
[all …]
/components/drivers/usb/cherryusb/
A DSConscript42 src += Glob('port/dwc2/usb_dc_dwc2.c')
43 src += Glob('port/dwc2/usb_glue_st.c')
79 path += [cwd + '/port/chipidea']
83 path += [cwd + '/port/chipidea']
93 path += [cwd + '/port/hpmicro']
108 LIBPATH = [cwd + '/port/pusb2']
111 LIBPATH = [cwd + '/port/pusb2']
188 path += [cwd + '/port/hpmicro']
193 path += [cwd + '/port/ehci']
194 path += [cwd + '/port/ohci']
[all …]
A Dcherryusb.cmake134 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/chipidea)
137 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/chipidea)
141 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/hpmicro)
274 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/ehci)
280 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/hpmicro)
281 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/ehci)
287 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/ehci)
288 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/ohci)
293 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/ehci)
294 list(APPEND cherryusb_incs ${CMAKE_CURRENT_LIST_DIR}/port/chipidea)
[all …]
/components/drivers/ata/
A Dahci.c162 ataid = port->ataid; in ahci_scsi_synchronize_cache()
223 if (!port->ataid) in ahci_scsi_cmd_read_capacity()
249 if (!port->link) in ahci_scsi_cmd_inquiry()
254 if (!port->ataid && !(port->ataid = rt_malloc(RT_AHCI_ATA_ID_WORDS * 2))) in ahci_scsi_cmd_inquiry()
258 ataid = port->ataid; in ahci_scsi_cmd_inquiry()
525 if (port->link) in ahci_isr()
743 if (!port->link) in rt_ahci_host_register()
754 if (!port->dma) in rt_ahci_host_register()
759 dma = port->dma; in rt_ahci_host_register()
824 HWREG32(port->regs + RT_AHCI_PORT_INTE) = port->int_enabled; in rt_ahci_host_register()
[all …]
/components/drivers/usb/cherryusb/class/hub/
A Dusbh_hub.c114 setup->wIndex = port; in _usbh_hub_get_portstatus()
134 setup->wIndex = port; in _usbh_hub_set_feature()
149 setup->wIndex = port; in _usbh_hub_clear_feature()
376 for (uint8_t port = 0; port < hub->nports; port++) { in usbh_hub_connect() local
377 hub->child[port].port = port + 1; in usbh_hub_connect()
395 for (uint8_t port = 0; port < hub->nports; port++) { in usbh_hub_connect() local
404 for (uint8_t port = 0; port < hub->nports; port++) { in usbh_hub_connect() local
444 for (uint8_t port = 0; port < hub->nports; port++) { in usbh_hub_disconnect() local
481 for (uint8_t port = 0; port < hub->nports; port++) { in usbh_hub_events() local
618 child->port = port + 1; in usbh_hub_events()
[all …]
/components/net/lwip/lwip-2.1.2/src/apps/tftp/
A Dtftp_server.c85 u16_t port; member
100 tftp_state.port = 0; in close_handle()
134 udp_sendto(tftp_state.upcb, p, addr, port); in send_error()
152 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port); in send_ack()
169 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port); in resend_data()
212 if (((tftp_state.port != 0) && (port != tftp_state.port)) || in recv()
269 tftp_state.port = port; in recv()
287 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection"); in recv()
327 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection"); in recv()
359 send_error(addr, port, TFTP_ERROR_ILLEGAL_OPERATION, "Unknown operation"); in recv()
[all …]
/components/net/lwip/lwip-2.0.3/src/apps/tftp/
A Dtftp_server.c85 u16_t port; member
100 tftp_state.port = 0; in close_handle()
134 udp_sendto(tftp_state.upcb, p, addr, port); in send_error()
152 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port); in send_ack()
169 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port); in resend_data()
212 if (((tftp_state.port != 0) && (port != tftp_state.port)) || in recv()
270 tftp_state.port = port; in recv()
289 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection"); in recv()
321 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection"); in recv()
353 send_error(addr, port, TFTP_ERROR_ILLEGAL_OPERATION, "Unknown operation"); in recv()
[all …]
/components/legacy/usb/usbhost/core/
A Dhub.c40 hcd->roothub->port_status[port-1] &= ~PORT_CCSC; in root_hub_ctrl()
43 hcd->roothub->port_status[port-1] &= ~PORT_PESC; in root_hub_ctrl()
60 hcd->roothub->port_status[port-1] |= PORT_CCSC; in root_hub_ctrl()
72 hcd->ops->reset_port(port); in root_hub_ctrl()
99 hcd->roothub->port_status[port - 1] |= PORT_LSDA; in rt_usbh_root_hub_connect_handler()
109 hcd->roothub->port_status[port - 1] |= PORT_CCSC; in rt_usbh_root_hub_disconnect_handler()
110 hcd->roothub->port_status[port - 1] &= ~PORT_CCS; in rt_usbh_root_hub_disconnect_handler()
208 setup.wIndex = port; in rt_usbh_hub_get_port_status()
251 setup.wIndex = port; in rt_usbh_hub_clear_port_feature()
292 setup.wIndex = port; in rt_usbh_hub_set_port_feature()
[all …]
/components/drivers/usb/cherryusb/port/template/
A Dusb_hc.c27 uint8_t port; in usbh_roothub_control() local
31 port = setup->wIndex; in usbh_roothub_control()
65 if (!port || port > nports) { in usbh_roothub_control()
91 if (!port || port > nports) { in usbh_roothub_control()
108 if (!port || port > nports) { in usbh_roothub_control()
/components/drivers/usb/cherryusb/port/ohci/
A Dusb_hc_ohci.c141 uint8_t port; in ohci_roothub_control() local
146 port = setup->wIndex; in ohci_roothub_control()
180 if (!port || port > nports) { in ohci_roothub_control()
225 OHCI_HCOR->hcrhportsts[port - 1] = temp; in ohci_roothub_control()
228 if (!port || port > nports) { in ohci_roothub_control()
244 OHCI_HCOR->hcrhportsts[port - 1] = OHCI_RHPORTST_PRS; in ohci_roothub_control()
255 if (!port || port > nports) { in ohci_roothub_control()
258 temp = OHCI_HCOR->hcrhportsts[port - 1]; in ohci_roothub_control()
289 for (int port = 0; port < CONFIG_USBHOST_MAX_RHPORTS; port++) { in OHCI_IRQHandler() local
290 uint32_t portsc = OHCI_HCOR->hcrhportsts[port]; in OHCI_IRQHandler()
[all …]
/components/drivers/usb/cherryusb/port/ehci/
A Dusb_hc_ehci.c355 urb->hport->port); in ehci_control_urb_init()
450 urb->hport->port); in ehci_bulk_urb_init()
546 urb->hport->port); in ehci_intr_urb_init()
904 for (uint8_t port = 0; port < g_ehci_hcd[bus->hcd.hcd_id].n_ports; port++) { in usb_hc_init() local
959 for (uint8_t port = 0; port < g_ehci_hcd[bus->hcd.hcd_id].n_ports; port++) { in usb_hc_deinit() local
1000 uint8_t port; in usbh_roothub_control() local
1005 port = setup->wIndex; in usbh_roothub_control()
1056 if (!port || port > nports) { in usbh_roothub_control()
1101 if (!port || port > nports) { in usbh_roothub_control()
1143 if (!port || port > nports) { in usbh_roothub_control()
[all …]
/components/net/lwip/lwip-2.1.2/test/unit/udp/
A Dtest_udp.c153 const ip_addr_t *addr, u16_t port) in test_recv() argument
158 LWIP_UNUSED_ARG(port); in test_recv()
195 uh->dest = uh->src = lwip_htons(port); in test_udp_create_test_packet()
216 const u16_t port = 12345; in START_TEST() local
238 err = udp_bind(pcb_any, NULL, port); in START_TEST()
245 err = udp_bind(pcb1, &test_netif1.ip_addr, port); in START_TEST()
247 err = udp_bind(pcb2, &test_netif2.ip_addr, port); in START_TEST()
259 p = test_udp_create_test_packet(16, port, test_ipaddr1.addr); in START_TEST()
272 p = test_udp_create_test_packet(16, port, test_ipaddr2.addr); in START_TEST()
311 p = test_udp_create_test_packet(16, port, 0xffffffff); in START_TEST()
[all …]
/components/net/lwip/lwip-2.0.3/src/apps/snmp/
A Dsnmp_raw.c46 snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) in snmp_recv() argument
50 snmp_receive(pcb, p, addr, port); in snmp_recv()
56 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument
58 return udp_sendto((struct udp_pcb*)handle, p, dst, port); in snmp_sendto()
/components/net/lwip/lwip-2.1.2/src/apps/snmp/
A Dsnmp_raw.c47 snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) in snmp_recv() argument
51 snmp_receive(pcb, p, addr, port); in snmp_recv()
57 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument
59 return udp_sendto((struct udp_pcb *)handle, p, dst, port); in snmp_sendto()
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A DPPPD_FOLLOWUP57 of the port.
82 in our port.
112 Not in the port.
181 Radius plugin, not in the port.
254 Radius plugin, not in the port.
284 Radius plugin, not in the port.
308 Solaris port, don't care.
320 Low level serial port, not in the port.
332 Not in the port.
376 Linux plugin, not in the port.
[all …]
/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A DPPPD_FOLLOWUP57 of the port.
82 in our port.
112 Not in the port.
181 Radius plugin, not in the port.
254 Radius plugin, not in the port.
284 Radius plugin, not in the port.
308 Solaris port, don't care.
320 Low level serial port, not in the port.
332 Not in the port.
376 Linux plugin, not in the port.
[all …]
/components/net/lwip/lwip-2.1.2/src/include/lwip/apps/
A Dhttp_client.h142 err_t httpc_get_file(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connect…
144 err_t httpc_get_file_dns(const char* server_name, u16_t port, const char* uri, const httpc_connecti…
148 err_t httpc_get_file_to_disk(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc…
150 err_t httpc_get_file_dns_to_disk(const char* server_name, u16_t port, const char* uri, const httpc_…
/components/net/lwip/lwip-2.1.2/src/netif/
A Dbridgeif.c332 bridgeif_port_t *port; in bridgeif_input() local
337 LWIP_ASSERT("port data not set", port != NULL); in bridgeif_input()
338 if (port == NULL || port->bridge == NULL) { in bridgeif_input()
341 br = (bridgeif_private_t *)port->bridge; in bridgeif_input()
351 bridgeif_fdb_update_src(br->fdbd, src, port->port_num); in bridgeif_input()
527 bridgeif_port_t *port; in bridgeif_add_port() local
543 port = &br->ports[br->num_ports]; in bridgeif_add_port()
544 port->port_netif = portif; in bridgeif_add_port()
545 port->port_num = br->num_ports; in bridgeif_add_port()
546 port->bridge = br; in bridgeif_add_port()
[all …]
/components/drivers/include/drivers/
A Dusb_host.h84 rt_uint8_t port; member
129 rt_err_t (*reset_port) (rt_uint8_t port);
201 rt_err_t rt_usbh_hub_get_port_status(uhub_t uhub, rt_uint16_t port,
203 rt_err_t rt_usbh_hub_clear_port_feature(uhub_t uhub, rt_uint16_t port,
205 rt_err_t rt_usbh_hub_set_port_feature(uhub_t uhub, rt_uint16_t port,
207 rt_err_t rt_usbh_hub_reset_port(uhub_t uhub, rt_uint16_t port);
211 void rt_usbh_root_hub_connect_handler(struct uhcd *hcd, rt_uint8_t port, rt_bool_t isHS);
212 void rt_usbh_root_hub_disconnect_handler(struct uhcd *hcd, rt_uint8_t port);
/components/net/lwip/lwip-1.4.1/src/api/
A Dapi_lib.c135 netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local) in netconn_getaddr() argument
142 LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;); in netconn_getaddr()
147 msg.msg.msg.ad.port = port; in netconn_getaddr()
166 netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port) in netconn_bind() argument
176 msg.msg.msg.bc.port = port; in netconn_bind()
192 netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port) in netconn_connect() argument
202 msg.msg.msg.bc.port = port; in netconn_connect()
489 buf->port = 0; in netconn_recv()
549 netconn_sendto(struct netconn *conn, struct netbuf *buf, ip_addr_t *addr, u16_t port) in netconn_sendto() argument
553 buf->port = port; in netconn_sendto()
/components/net/lwip/lwip-2.1.2/src/include/lwip/priv/
A Daltcp_priv.h61 typedef err_t (*altcp_bind_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port);
62 typedef err_t (*altcp_connect_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altc…
84 …rr_t (*altcp_get_tcp_addrinfo_fn)(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port);
121 err_t altcp_default_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port);
133 …_t altcp_default_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port);
/components/net/lwip/lwip-2.1.2/src/core/
A Daltcp.c303 altcp_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port) in altcp_bind() argument
306 return conn->fns->bind(conn, ipaddr, port); in altcp_bind()
316 altcp_connect(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altcp_connected_fn conne… in altcp_connect() argument
319 return conn->fns->connect(conn, ipaddr, port, connected); in altcp_connect()
478 altcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port) in altcp_get_tcp_addrinfo() argument
481 return conn->fns->addrinfo(conn, local, addr, port); in altcp_get_tcp_addrinfo()
534 altcp_default_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port) in altcp_default_bind() argument
537 return altcp_bind(conn->inner_conn, ipaddr, port); in altcp_default_bind()
643 altcp_default_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port) in altcp_default_get_tcp_addrinfo() argument
646 return altcp_get_tcp_addrinfo(conn->inner_conn, local, addr, port); in altcp_default_get_tcp_addrinfo()
/components/dfs/dfs_v1/filesystems/nfs/rpc/
A Dpmap.c33 unsigned short port = 0; in pmap_getport() local
51 (xdrproc_t)xdr_u_short, (char*)&port, tottimeout) != RPC_SUCCESS) in pmap_getport()
61 return (port); in pmap_getport()

Completed in 65 milliseconds

1234567