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
152 skb = alloc_skb(50 + sizeof(struct htc_frame_hdr), GFP_ATOMIC); in htc_config_pipe_credits()
153 if (!skb) { in htc_config_pipe_credits()
157 skb_reserve(skb, sizeof(struct htc_frame_hdr)); in htc_config_pipe_credits()
160 skb_put(skb, sizeof(struct htc_config_pipe_msg)); in htc_config_pipe_credits()
168 ret = htc_issue_send(target, skb, skb->len, 0, ENDPOINT0); in htc_config_pipe_credits()
180 kfree_skb(skb); in htc_config_pipe_credits()
186 struct sk_buff *skb; in htc_setup_complete() local
191 skb = alloc_skb(50 + sizeof(struct htc_frame_hdr), GFP_ATOMIC); in htc_setup_complete()
192 if (!skb) { in htc_setup_complete()
196 skb_reserve(skb, sizeof(struct htc_frame_hdr)); in htc_setup_complete()
199 skb_put(skb, sizeof(struct htc_comp_msg)); in htc_setup_complete()
204 ret = htc_issue_send(target, skb, skb->len, 0, ENDPOINT0); in htc_setup_complete()
217 kfree_skb(skb); in htc_setup_complete()
238 struct sk_buff *skb; in htc_connect_service() local
258 skb = alloc_skb(sizeof(struct htc_conn_svc_msg) + in htc_connect_service()
260 if (!skb) { in htc_connect_service()
266 skb_reserve(skb, sizeof(struct htc_frame_hdr)); in htc_connect_service()
269 skb_put(skb, sizeof(struct htc_conn_svc_msg)); in htc_connect_service()
276 ret = htc_issue_send(target, skb, skb->len, 0, ENDPOINT0); in htc_connect_service()
290 kfree_skb(skb); in htc_connect_service()
294 int htc_send(struct htc_target *target, struct sk_buff *skb) in htc_send() argument
298 tx_ctl = HTC_SKB_CB(skb); in htc_send()
299 return htc_issue_send(target, skb, skb->len, 0, tx_ctl->epid); in htc_send()
302 int htc_send_epid(struct htc_target *target, struct sk_buff *skb, in htc_send_epid() argument
305 return htc_issue_send(target, skb, skb->len, 0, epid); in htc_send_epid()
324 struct sk_buff *skb, bool txok) in ath9k_htc_txcompletion_cb() argument
341 if (skb) { in ath9k_htc_txcompletion_cb()
342 htc_hdr = (struct htc_frame_hdr *) skb->data; in ath9k_htc_txcompletion_cb()
344 skb_pull(skb, sizeof(struct htc_frame_hdr)); in ath9k_htc_txcompletion_cb()
348 skb, htc_hdr->endpoint_id, in ath9k_htc_txcompletion_cb()
351 kfree_skb(skb); in ath9k_htc_txcompletion_cb()
357 kfree_skb(skb); in ath9k_htc_txcompletion_cb()
361 struct sk_buff *skb) in ath9k_htc_fw_panic_report() argument
363 uint32_t *pattern = (uint32_t *)skb->data; in ath9k_htc_fw_panic_report()
369 htc_panic = (struct htc_panic_bad_vaddr *) skb->data; in ath9k_htc_fw_panic_report()
379 htc_panic = (struct htc_panic_bad_epid *) skb->data; in ath9k_htc_fw_panic_report()
398 struct sk_buff *skb, u32 len, u8 pipe_id) in ath9k_htc_rx_msg() argument
405 if (!htc_handle || !skb) in ath9k_htc_rx_msg()
408 htc_hdr = (struct htc_frame_hdr *) skb->data; in ath9k_htc_rx_msg()
412 ath9k_htc_fw_panic_report(htc_handle, skb); in ath9k_htc_rx_msg()
413 kfree_skb(skb); in ath9k_htc_rx_msg()
419 dev_kfree_skb_any(skb); in ath9k_htc_rx_msg()
421 kfree_skb(skb); in ath9k_htc_rx_msg()
429 if (be32_to_cpu(*(__be32 *) skb->data) == 0x00C60000) in ath9k_htc_rx_msg()
431 htc_hdr = (struct htc_frame_hdr *)(skb->data + 4); in ath9k_htc_rx_msg()
450 kfree_skb(skb); in ath9k_htc_rx_msg()
454 skb_trim(skb, len - htc_hdr->control[0]); in ath9k_htc_rx_msg()
456 skb_pull(skb, sizeof(struct htc_frame_hdr)); in ath9k_htc_rx_msg()
461 skb, epid); in ath9k_htc_rx_msg()