Lines Matching refs:FAR
120 FAR struct usbdev_s *usbdev; /* usbdev driver pointer */
121 FAR struct usbdev_ep_s *epintin; /* Interrupt IN endpoint structure */
122 FAR struct usbdev_ep_s *epbulkin; /* Bulk IN endpoint structure */
123 FAR struct usbdev_ep_s *epbulkout; /* Bulk OUT endpoint structure */
124 FAR struct usbdev_req_s *ctrlreq; /* Pointer to preallocated control request */
125 FAR struct usbdev_req_s *epintin_req; /* Pointer to preallocated interrupt in endpoint request */
126 FAR struct usbdev_req_s *rdreq; /* Pointer to Preallocated control endpoint read request */
139 …FAR struct usbdev_req_s *net_req; /* Pointer to request whose buffer is assigned to network */
140 FAR struct usbdev_req_s *rx_req; /* Pointer request container that holds RX buffer */
163 FAR struct rndis_dev_s *dev;
181 FAR const void *data; /* Data pointer overrides value if non-NULL. */
190 static int rndis_txavail(FAR struct rndis_dev_s *dev);
191 static int rndis_transmit(FAR struct rndis_dev_s *priv);
192 static int rndis_txpoll(FAR struct rndis_dev_s *priv);
196 static int usbclass_setup(FAR struct usbdevclass_driver_s *driver,
197 FAR struct usbdev_s *dev,
198 FAR const struct usb_device_request *ctrl,
199 FAR uint8_t *dataout, size_t outlen);
200 static int usbclass_bind(FAR struct usbdevclass_driver_s *driver,
201 FAR struct usbdev_s *dev);
202 static int usbclass_unbind(FAR struct usbdevclass_driver_s *driver,
203 FAR struct usbdev_s *dev);
204 static void usbclass_disconnect(FAR struct usbdevclass_driver_s *driver,
205 FAR struct usbdev_s *dev);
206 static int usbclass_setconfig(FAR struct rndis_dev_s *priv, uint8_t config);
207 static void usbclass_resetconfig(FAR struct rndis_dev_s *priv);
208 static FAR struct usbdev_req_s *usbclass_allocreq(FAR struct usbdev_ep_s *ep,
210 static void usbclass_freereq(FAR struct usbdev_ep_s *ep,
211 FAR struct usbdev_req_s *req);
516 static int rndis_submit_rdreq(FAR struct rndis_dev_s *priv) in rndis_submit_rdreq()
550 static void rndis_cancel_rdreq(FAR struct rndis_dev_s *priv) in rndis_cancel_rdreq()
570 static void rndis_block_rx(FAR struct rndis_dev_s *priv) in rndis_block_rx()
590 static void rndis_unblock_rx(FAR struct rndis_dev_s *priv) in rndis_unblock_rx()
613 static FAR struct usbdev_req_s *rndis_allocwrreq(FAR struct rndis_dev_s *priv) in rndis_allocwrreq()
643 static bool rndis_hasfreereqs(FAR struct rndis_dev_s *priv) in rndis_hasfreereqs()
663 static void rndis_freewrreq(FAR struct rndis_dev_s *priv, in rndis_freewrreq()
664 FAR struct usbdev_req_s *req) in rndis_freewrreq()
689 static bool rndis_allocnetreq(FAR struct rndis_dev_s *priv) in rndis_allocnetreq()
727 static void rndis_sendnetreq(FAR struct rndis_dev_s *priv) in rndis_sendnetreq()
756 static void rndis_freenetreq(FAR struct rndis_dev_s *priv) in rndis_freenetreq()
783 static bool rndis_allocrxreq(FAR struct rndis_dev_s *priv) in rndis_allocrxreq()
808 static void rndis_giverxreq(FAR struct rndis_dev_s *priv) in rndis_giverxreq()
835 static uint16_t rndis_fillrequest(FAR struct rndis_dev_s *priv, in rndis_fillrequest()
836 FAR struct usbdev_req_s *req) in rndis_fillrequest()
844 FAR struct rndis_packet_msg *msg = (FAR struct rndis_packet_msg *)req->buf; in rndis_fillrequest()
869 static void rndis_rxdispatch(FAR struct work_struct *arg) in rndis_rxdispatch()
871 FAR struct rndis_dev_s *priv = (FAR struct rndis_dev_s *)arg->data; in rndis_rxdispatch()
908 static int rndis_txpoll(FAR struct rndis_dev_s *priv) in rndis_txpoll()
937 static int rndis_transmit(FAR struct rndis_dev_s *priv) in rndis_transmit()
955 static void rndis_txavail_work(FAR struct work_struct *arg) in rndis_txavail_work()
957 FAR struct rndis_dev_s *priv = (FAR struct rndis_dev_s *)arg->data; in rndis_txavail_work()
979 static int rndis_txavail(FAR struct rndis_dev_s *priv) in rndis_txavail()
1005 static inline int rndis_recvpacket(FAR struct rndis_dev_s *priv, in rndis_recvpacket()
1006 FAR uint8_t *reqbuf, uint16_t reqlen) in rndis_recvpacket()
1030 FAR struct rndis_packet_msg *msg = (FAR struct rndis_packet_msg *)reqbuf; in rndis_recvpacket()
1141 static bool rndis_prepare_response(FAR struct rndis_dev_s *priv, size_t size, in rndis_prepare_response()
1142 FAR struct rndis_command_header *request_hdr) in rndis_prepare_response()
1144 FAR struct rndis_response_header *hdr; in rndis_prepare_response()
1152 hdr = (FAR struct rndis_response_header *)priv->resp_buf; in rndis_prepare_response()
1179 static int rndis_send_encapsulated_response(FAR struct rndis_dev_s *priv) in rndis_send_encapsulated_response()
1181 FAR struct rndis_notification *notif = in rndis_send_encapsulated_response()
1182 (FAR struct rndis_notification *)priv->epintin_req->buf; in rndis_send_encapsulated_response()
1210 FAR struct rndis_dev_s *priv = (struct rndis_dev_s *)ctrlreq->priv; in rndis_handle_control_message()
1211 FAR struct rndis_command_header *cmd_hdr = in rndis_handle_control_message()
1212 (FAR struct rndis_command_header *)ctrlreq->buf; in rndis_handle_control_message()
1223 FAR struct rndis_initialize_cmplt *resp; in rndis_handle_control_message()
1231 resp = (FAR struct rndis_initialize_cmplt *)priv->resp_buf; in rndis_handle_control_message()
1257 FAR struct rndis_query_msg req; in rndis_handle_control_message()
1271 FAR struct rndis_query_cmplt *resp = in rndis_handle_control_message()
1272 (FAR struct rndis_query_cmplt *)priv->resp_buf; in rndis_handle_control_message()
1362 FAR struct rndis_set_msg *req; in rndis_handle_control_message()
1363 FAR struct rndis_response_header *resp; in rndis_handle_control_message()
1381 resp = (FAR struct rndis_response_header *)priv->resp_buf; in rndis_handle_control_message()
1415 FAR struct rndis_reset_cmplt *resp; in rndis_handle_control_message()
1424 resp = (FAR struct rndis_reset_cmplt *)priv->resp_buf; in rndis_handle_control_message()
1459 static void rndis_rdcomplete(FAR struct usbdev_ep_s *ep, in rndis_rdcomplete()
1460 FAR struct usbdev_req_s *req) in rndis_rdcomplete()
1462 FAR struct rndis_dev_s *priv; in rndis_rdcomplete()
1477 priv = (FAR struct rndis_dev_s *)ep->priv; in rndis_rdcomplete()
1518 static void rndis_wrcomplete(FAR struct usbdev_ep_s *ep, in rndis_wrcomplete()
1519 FAR struct usbdev_req_s *req) in rndis_wrcomplete()
1521 FAR struct rndis_dev_s *priv; in rndis_wrcomplete()
1522 FAR struct usbdev_req_s *req_wr; in rndis_wrcomplete()
1536 priv = (FAR struct rndis_dev_s *)ep->priv; in rndis_wrcomplete()
1537 req_wr = (FAR struct usbdev_req_s *)req->priv; in rndis_wrcomplete()
1575 static void usbclass_ep0incomplete(FAR struct usbdev_ep_s *ep, in usbclass_ep0incomplete()
1576 FAR struct usbdev_req_s *req) in usbclass_ep0incomplete()
1586 struct rndis_dev_s *priv = (FAR struct rndis_dev_s *)req->priv; in usbclass_ep0incomplete()
1599 static void usbclass_epintin_complete(FAR struct usbdev_ep_s *ep, in usbclass_epintin_complete()
1600 FAR struct usbdev_req_s *req) in usbclass_epintin_complete()
1616 static void usbclass_freereq(FAR struct usbdev_ep_s *ep, in usbclass_freereq()
1617 FAR struct usbdev_req_s *req) in usbclass_freereq()
1638 static FAR struct usbdev_req_s *usbclass_allocreq(FAR struct usbdev_ep_s *ep, in usbclass_allocreq()
1641 FAR struct usbdev_req_s *req; in usbclass_allocreq()
1667 static int usbclass_bind(FAR struct usbdevclass_driver_s *driver, in usbclass_bind()
1668 FAR struct usbdev_s *dev) in usbclass_bind()
1670 FAR struct rndis_dev_s *priv = ((FAR struct rndis_driver_s *)driver)->dev; in usbclass_bind()
1818 static int usbclass_unbind(FAR struct usbdevclass_driver_s *driver, in usbclass_unbind()
1819 FAR struct usbdev_s *dev) in usbclass_unbind()
1821 FAR struct rndis_dev_s *priv; in usbclass_unbind()
1832 priv = ((FAR struct rndis_driver_s *)driver)->dev; in usbclass_unbind()
1922 static int usbclass_setup(FAR struct usbdevclass_driver_s *driver, in usbclass_setup()
1923 FAR struct usbdev_s *dev, in usbclass_setup()
1924 FAR const struct usb_device_request *ctrl, in usbclass_setup()
1925 FAR uint8_t *dataout, size_t outlen) in usbclass_setup()
1927 FAR struct rndis_dev_s *priv; in usbclass_setup()
1928 FAR struct usbdev_req_s *ctrlreq; in usbclass_setup()
1945 priv = ((FAR struct rndis_driver_s *)driver)->dev; in usbclass_setup()
2008 FAR struct rndis_response_header *hdr = in usbclass_setup()
2009 (FAR struct rndis_response_header *)priv->resp_buf; in usbclass_setup()
2067 static void usbclass_disconnect(FAR struct usbdevclass_driver_s *driver, in usbclass_disconnect()
2068 FAR struct usbdev_s *dev) in usbclass_disconnect()
2070 FAR struct rndis_dev_s *priv; in usbclass_disconnect()
2081 priv = ((FAR struct rndis_driver_s *)driver)->dev; in usbclass_disconnect()
2109 static void usbclass_resetconfig(FAR struct rndis_dev_s *priv) in usbclass_resetconfig()
2202 static int usbclass_setconfig(FAR struct rndis_dev_s *priv, uint8_t config) in usbclass_setconfig()
2350 FAR struct rndis_alloc_s *alloc; in rndis_classobject()
2351 FAR struct rndis_dev_s *priv; in rndis_classobject()
2352 FAR struct rndis_driver_s *drvr; in rndis_classobject()
2359 alloc = (FAR struct rndis_alloc_s *)malloc(sizeof(struct rndis_alloc_s)); in rndis_classobject()