Lines Matching full:endpoint

26 	struct htc_endpoint *endpoint = &target->endpoint[epid];  in htc_issue_send()  local
34 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb); in htc_issue_send()
39 static struct htc_endpoint *get_next_avail_ep(struct htc_endpoint *endpoint) in get_next_avail_ep() argument
44 if (endpoint[avail_epid].service_id == 0) in get_next_avail_ep()
45 return &endpoint[avail_epid]; in get_next_avail_ep()
90 struct htc_endpoint *endpoint; in htc_process_target_rdy() local
95 endpoint = &target->endpoint[ENDPOINT0]; in htc_process_target_rdy()
96 endpoint->service_id = HTC_CTRL_RSVD_SVC; in htc_process_target_rdy()
97 endpoint->max_msglen = HTC_MAX_CONTROL_MESSAGE_LENGTH; in htc_process_target_rdy()
106 struct htc_endpoint *endpoint, *tmp_endpoint = NULL; in htc_process_conn_rsp() local
121 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp()
124 tmp_endpoint = &target->endpoint[tepid]; in htc_process_conn_rsp()
134 endpoint->service_id = service_id; in htc_process_conn_rsp()
135 endpoint->max_txqdepth = tmp_endpoint->max_txqdepth; in htc_process_conn_rsp()
136 endpoint->ep_callbacks = tmp_endpoint->ep_callbacks; in htc_process_conn_rsp()
137 endpoint->ul_pipeid = tmp_endpoint->ul_pipeid; in htc_process_conn_rsp()
138 endpoint->dl_pipeid = tmp_endpoint->dl_pipeid; in htc_process_conn_rsp()
139 endpoint->max_msglen = max_msglen; in htc_process_conn_rsp()
239 struct htc_endpoint *endpoint; in htc_connect_service() local
244 /* Find an available endpoint */ in htc_connect_service()
245 endpoint = get_next_avail_ep(target->endpoint); in htc_connect_service()
246 if (!endpoint) { in htc_connect_service()
247 dev_err(target->dev, "Endpoint is not available for service %d\n", in htc_connect_service()
252 endpoint->service_id = service_connreq->service_id; in htc_connect_service()
253 endpoint->max_txqdepth = service_connreq->max_send_qdepth; in htc_connect_service()
254 endpoint->ul_pipeid = service_to_ulpipe(service_connreq->service_id); in htc_connect_service()
255 endpoint->dl_pipeid = service_to_dlpipe(service_connreq->service_id); in htc_connect_service()
256 endpoint->ep_callbacks = service_connreq->ep_callbacks; in htc_connect_service()
272 conn_msg->dl_pipeid = endpoint->dl_pipeid; in htc_connect_service()
273 conn_msg->ul_pipeid = endpoint->ul_pipeid; in htc_connect_service()
325 struct htc_endpoint *endpoint; in ath9k_htc_txcompletion_cb() local
342 if (htc_hdr->endpoint_id >= ARRAY_SIZE(htc_handle->endpoint)) in ath9k_htc_txcompletion_cb()
344 endpoint = &htc_handle->endpoint[htc_hdr->endpoint_id]; in ath9k_htc_txcompletion_cb()
347 if (endpoint->ep_callbacks.tx) { in ath9k_htc_txcompletion_cb()
348 endpoint->ep_callbacks.tx(endpoint->ep_callbacks.priv, in ath9k_htc_txcompletion_cb()
396 * endpoint RX handlers, which have to free the SKB.
403 struct htc_endpoint *endpoint; in ath9k_htc_rx_msg() local
459 endpoint = &htc_handle->endpoint[epid]; in ath9k_htc_rx_msg()
460 if (endpoint->ep_callbacks.rx) in ath9k_htc_rx_msg()
461 endpoint->ep_callbacks.rx(endpoint->ep_callbacks.priv, in ath9k_htc_rx_msg()
470 struct htc_endpoint *endpoint; in ath9k_htc_hw_alloc() local
484 /* Assign control endpoint pipe IDs */ in ath9k_htc_hw_alloc()
485 endpoint = &target->endpoint[ENDPOINT0]; in ath9k_htc_hw_alloc()
486 endpoint->ul_pipeid = hif->control_ul_pipe; in ath9k_htc_hw_alloc()
487 endpoint->dl_pipeid = hif->control_dl_pipe; in ath9k_htc_hw_alloc()