Lines Matching refs:skb
21 static int htc_issue_send(struct htc_target *target, struct sk_buff* skb, in htc_issue_send() argument
30 skb_push(skb, sizeof(struct htc_frame_hdr)); in htc_issue_send()
35 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb); in htc_issue_send()
147 struct sk_buff *skb; in htc_config_pipe_credits() local
151 skb = alloc_skb(50 + sizeof(struct htc_frame_hdr), GFP_ATOMIC); in htc_config_pipe_credits()
152 if (!skb) { in htc_config_pipe_credits()
156 skb_reserve(skb, sizeof(struct htc_frame_hdr)); in htc_config_pipe_credits()
159 skb_put(skb, sizeof(struct htc_config_pipe_msg)); in htc_config_pipe_credits()
167 ret = htc_issue_send(target, skb, skb->len, 0, ENDPOINT0); in htc_config_pipe_credits()
179 kfree_skb(skb); in htc_config_pipe_credits()
185 struct sk_buff *skb; in htc_setup_complete() local
189 skb = alloc_skb(50 + sizeof(struct htc_frame_hdr), GFP_ATOMIC); in htc_setup_complete()
190 if (!skb) { in htc_setup_complete()
194 skb_reserve(skb, sizeof(struct htc_frame_hdr)); in htc_setup_complete()
197 skb_put(skb, sizeof(struct htc_comp_msg)); in htc_setup_complete()
202 ret = htc_issue_send(target, skb, skb->len, 0, ENDPOINT0); in htc_setup_complete()
215 kfree_skb(skb); in htc_setup_complete()
236 struct sk_buff *skb; in htc_connect_service() local
255 skb = alloc_skb(sizeof(struct htc_conn_svc_msg) + in htc_connect_service()
257 if (!skb) { in htc_connect_service()
263 skb_reserve(skb, sizeof(struct htc_frame_hdr)); in htc_connect_service()
266 skb_put(skb, sizeof(struct htc_conn_svc_msg)); in htc_connect_service()
273 ret = htc_issue_send(target, skb, skb->len, 0, ENDPOINT0); in htc_connect_service()
287 kfree_skb(skb); in htc_connect_service()
291 int htc_send(struct htc_target *target, struct sk_buff *skb) in htc_send() argument
295 tx_ctl = HTC_SKB_CB(skb); in htc_send()
296 return htc_issue_send(target, skb, skb->len, 0, tx_ctl->epid); in htc_send()
299 int htc_send_epid(struct htc_target *target, struct sk_buff *skb, in htc_send_epid() argument
302 return htc_issue_send(target, skb, skb->len, 0, epid); in htc_send_epid()
321 struct sk_buff *skb, bool txok) in ath9k_htc_txcompletion_cb() argument
338 if (skb) { in ath9k_htc_txcompletion_cb()
339 htc_hdr = (struct htc_frame_hdr *) skb->data; in ath9k_htc_txcompletion_cb()
341 skb_pull(skb, sizeof(struct htc_frame_hdr)); in ath9k_htc_txcompletion_cb()
345 skb, htc_hdr->endpoint_id, in ath9k_htc_txcompletion_cb()
348 kfree_skb(skb); in ath9k_htc_txcompletion_cb()
354 kfree_skb(skb); in ath9k_htc_txcompletion_cb()
358 struct sk_buff *skb) in ath9k_htc_fw_panic_report() argument
360 uint32_t *pattern = (uint32_t *)skb->data; in ath9k_htc_fw_panic_report()
366 htc_panic = (struct htc_panic_bad_vaddr *) skb->data; in ath9k_htc_fw_panic_report()
376 htc_panic = (struct htc_panic_bad_epid *) skb->data; in ath9k_htc_fw_panic_report()
395 struct sk_buff *skb, u32 len, u8 pipe_id) in ath9k_htc_rx_msg() argument
402 if (!htc_handle || !skb) in ath9k_htc_rx_msg()
405 htc_hdr = (struct htc_frame_hdr *) skb->data; in ath9k_htc_rx_msg()
409 ath9k_htc_fw_panic_report(htc_handle, skb); in ath9k_htc_rx_msg()
410 kfree_skb(skb); in ath9k_htc_rx_msg()
416 dev_kfree_skb_any(skb); in ath9k_htc_rx_msg()
418 kfree_skb(skb); in ath9k_htc_rx_msg()
426 if (be32_to_cpu(*(__be32 *) skb->data) == 0x00C60000) in ath9k_htc_rx_msg()
428 htc_hdr = (struct htc_frame_hdr *)(skb->data + 4); in ath9k_htc_rx_msg()
447 kfree_skb(skb); in ath9k_htc_rx_msg()
451 skb_trim(skb, len - htc_hdr->control[0]); in ath9k_htc_rx_msg()
453 skb_pull(skb, sizeof(struct htc_frame_hdr)); in ath9k_htc_rx_msg()
458 skb, epid); in ath9k_htc_rx_msg()