Lines Matching refs:endpoint

26 	struct htc_endpoint *endpoint = &target->endpoint[epid];
35 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb);
40 static struct htc_endpoint *get_next_avail_ep(struct htc_endpoint *endpoint)
45 if (endpoint[avail_epid].service_id == 0)
46 return &endpoint[avail_epid];
91 struct htc_endpoint *endpoint;
96 endpoint = &target->endpoint[ENDPOINT0];
97 endpoint->service_id = HTC_CTRL_RSVD_SVC;
98 endpoint->max_msglen = HTC_MAX_CONTROL_MESSAGE_LENGTH;
107 struct htc_endpoint *endpoint, *tmp_endpoint = NULL;
118 /* Check that the received epid for the endpoint to attach
128 endpoint = &target->endpoint[epid];
131 tmp_endpoint = &target->endpoint[tepid];
141 endpoint->service_id = service_id;
142 endpoint->max_txqdepth = tmp_endpoint->max_txqdepth;
143 endpoint->ep_callbacks = tmp_endpoint->ep_callbacks;
144 endpoint->ul_pipeid = tmp_endpoint->ul_pipeid;
145 endpoint->dl_pipeid = tmp_endpoint->dl_pipeid;
146 endpoint->max_msglen = max_msglen;
246 struct htc_endpoint *endpoint;
251 /* Find an available endpoint */
252 endpoint = get_next_avail_ep(target->endpoint);
253 if (!endpoint) {
259 endpoint->service_id = service_connreq->service_id;
260 endpoint->max_txqdepth = service_connreq->max_send_qdepth;
261 endpoint->ul_pipeid = service_to_ulpipe(service_connreq->service_id);
262 endpoint->dl_pipeid = service_to_dlpipe(service_connreq->service_id);
263 endpoint->ep_callbacks = service_connreq->ep_callbacks;
279 conn_msg->dl_pipeid = endpoint->dl_pipeid;
280 conn_msg->ul_pipeid = endpoint->ul_pipeid;
336 struct htc_endpoint *endpoint;
353 if (htc_hdr->endpoint_id >= ARRAY_SIZE(htc_handle->endpoint))
355 endpoint = &htc_handle->endpoint[htc_hdr->endpoint_id];
358 if (endpoint->ep_callbacks.tx) {
359 endpoint->ep_callbacks.tx(endpoint->ep_callbacks.priv,
401 * endpoint RX handlers, which have to free the SKB.
408 struct htc_endpoint *endpoint;
483 endpoint = &htc_handle->endpoint[epid];
484 if (endpoint->ep_callbacks.rx)
485 endpoint->ep_callbacks.rx(endpoint->ep_callbacks.priv,
496 struct htc_endpoint *endpoint;
510 /* Assign control endpoint pipe IDs */
511 endpoint = &target->endpoint[ENDPOINT0];
512 endpoint->ul_pipeid = hif->control_ul_pipe;
513 endpoint->dl_pipeid = hif->control_dl_pipe;