ar_usb 42 drivers/net/wireless/ath/ath10k/usb.c if (!pipe->ar_usb) ar_usb 45 drivers/net/wireless/ath/ath10k/usb.c spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); ar_usb 52 drivers/net/wireless/ath/ath10k/usb.c spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); ar_usb 63 drivers/net/wireless/ath/ath10k/usb.c if (!pipe->ar_usb) ar_usb 66 drivers/net/wireless/ath/ath10k/usb.c spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); ar_usb 71 drivers/net/wireless/ath/ath10k/usb.c spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); ar_usb 87 drivers/net/wireless/ath/ath10k/usb.c if (!pipe->ar_usb) { ar_usb 116 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 120 drivers/net/wireless/ath/ath10k/usb.c ath10k_usb_free_pipe_resources(ar, &ar_usb->pipes[i]); ar_usb 129 drivers/net/wireless/ath/ath10k/usb.c struct ath10k *ar = pipe->ar_usb->ar; ar_usb 186 drivers/net/wireless/ath/ath10k/usb.c struct ath10k *ar = pipe->ar_usb->ar; ar_usb 226 drivers/net/wireless/ath/ath10k/usb.c recv_pipe->ar_usb->udev, ar_usb 260 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 264 drivers/net/wireless/ath/ath10k/usb.c if (ar_usb->pipes[i].ar_usb) { ar_usb 265 drivers/net/wireless/ath/ath10k/usb.c usb_kill_anchored_urbs(&ar_usb->pipes[i].urb_submitted); ar_usb 266 drivers/net/wireless/ath/ath10k/usb.c cancel_work_sync(&ar_usb->pipes[i].io_complete_work); ar_usb 273 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 275 drivers/net/wireless/ath/ath10k/usb.c ar_usb->pipes[ATH10K_USB_PIPE_RX_DATA].urb_cnt_thresh = 1; ar_usb 278 drivers/net/wireless/ath/ath10k/usb.c &ar_usb->pipes[ATH10K_USB_PIPE_RX_DATA]); ar_usb 359 drivers/net/wireless/ath/ath10k/usb.c struct ath10k *ar = pipe->ar_usb->ar; ar_usb 375 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 379 drivers/net/wireless/ath/ath10k/usb.c usb_set_intfdata(ar_usb->interface, NULL); ar_usb 381 drivers/net/wireless/ath/ath10k/usb.c kfree(ar_usb->diag_cmd_buffer); ar_usb 382 drivers/net/wireless/ath/ath10k/usb.c kfree(ar_usb->diag_resp_buffer); ar_usb 388 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 395 drivers/net/wireless/ath/ath10k/usb.c ar_usb->pipes[i].urb_cnt_thresh = ar_usb 396 drivers/net/wireless/ath/ath10k/usb.c ar_usb->pipes[i].urb_alloc / 2; ar_usb 405 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 406 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb_pipe *pipe = &ar_usb->pipes[pipe_id]; ar_usb 429 drivers/net/wireless/ath/ath10k/usb.c ar_usb->udev, ar_usb 469 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 471 drivers/net/wireless/ath/ath10k/usb.c return ar_usb->pipes[pipe_id].urb_cnt; ar_usb 478 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 489 drivers/net/wireless/ath/ath10k/usb.c ret = usb_control_msg(ar_usb->udev, ar_usb 490 drivers/net/wireless/ath/ath10k/usb.c usb_sndctrlpipe(ar_usb->udev, 0), ar_usb 512 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 523 drivers/net/wireless/ath/ath10k/usb.c ret = usb_control_msg(ar_usb->udev, ar_usb 524 drivers/net/wireless/ath/ath10k/usb.c usb_rcvctrlpipe(ar_usb->udev, 0), ar_usb 573 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 581 drivers/net/wireless/ath/ath10k/usb.c cmd = (struct ath10k_usb_ctrl_diag_cmd_read *)ar_usb->diag_cmd_buffer; ar_usb 592 drivers/net/wireless/ath/ath10k/usb.c ar_usb->diag_resp_buffer, &resp_len); ar_usb 599 drivers/net/wireless/ath/ath10k/usb.c memcpy(buf, ar_usb->diag_resp_buffer, ar_usb 608 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 615 drivers/net/wireless/ath/ath10k/usb.c cmd = (struct ath10k_usb_ctrl_diag_cmd_write *)ar_usb->diag_cmd_buffer; ar_usb 830 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 876 drivers/net/wireless/ath/ath10k/usb.c pipe = &ar_usb->pipes[pipe_num]; ar_usb 877 drivers/net/wireless/ath/ath10k/usb.c if (pipe->ar_usb) ar_usb 881 drivers/net/wireless/ath/ath10k/usb.c pipe->ar_usb = ar_usb; ar_usb 889 drivers/net/wireless/ath/ath10k/usb.c usb_rcvbulkpipe(ar_usb->udev, ar_usb 893 drivers/net/wireless/ath/ath10k/usb.c usb_sndbulkpipe(ar_usb->udev, ar_usb 899 drivers/net/wireless/ath/ath10k/usb.c usb_rcvintpipe(ar_usb->udev, ar_usb 903 drivers/net/wireless/ath/ath10k/usb.c usb_sndintpipe(ar_usb->udev, ar_usb 910 drivers/net/wireless/ath/ath10k/usb.c usb_rcvisocpipe(ar_usb->udev, ar_usb 914 drivers/net/wireless/ath/ath10k/usb.c usb_sndisocpipe(ar_usb->udev, ar_usb 935 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); ar_usb 940 drivers/net/wireless/ath/ath10k/usb.c usb_set_intfdata(interface, ar_usb); ar_usb 941 drivers/net/wireless/ath/ath10k/usb.c spin_lock_init(&ar_usb->cs_lock); ar_usb 942 drivers/net/wireless/ath/ath10k/usb.c ar_usb->udev = dev; ar_usb 943 drivers/net/wireless/ath/ath10k/usb.c ar_usb->interface = interface; ar_usb 946 drivers/net/wireless/ath/ath10k/usb.c pipe = &ar_usb->pipes[i]; ar_usb 952 drivers/net/wireless/ath/ath10k/usb.c ar_usb->diag_cmd_buffer = kzalloc(ATH10K_USB_MAX_DIAG_CMD, GFP_KERNEL); ar_usb 953 drivers/net/wireless/ath/ath10k/usb.c if (!ar_usb->diag_cmd_buffer) { ar_usb 958 drivers/net/wireless/ath/ath10k/usb.c ar_usb->diag_resp_buffer = kzalloc(ATH10K_USB_MAX_DIAG_RESP, ar_usb 960 drivers/net/wireless/ath/ath10k/usb.c if (!ar_usb->diag_resp_buffer) { ar_usb 981 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb; ar_usb 995 drivers/net/wireless/ath/ath10k/usb.c ar = ath10k_core_create(sizeof(*ar_usb), &dev->dev, ATH10K_BUS_USB, ar_usb 1010 drivers/net/wireless/ath/ath10k/usb.c ar_usb = ath10k_usb_priv(ar); ar_usb 1012 drivers/net/wireless/ath/ath10k/usb.c ar_usb->ar = ar; ar_usb 1042 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb; ar_usb 1044 drivers/net/wireless/ath/ath10k/usb.c ar_usb = usb_get_intfdata(interface); ar_usb 1045 drivers/net/wireless/ath/ath10k/usb.c if (!ar_usb) ar_usb 1048 drivers/net/wireless/ath/ath10k/usb.c ath10k_core_unregister(ar_usb->ar); ar_usb 1049 drivers/net/wireless/ath/ath10k/usb.c ath10k_usb_destroy(ar_usb->ar); ar_usb 1051 drivers/net/wireless/ath/ath10k/usb.c ath10k_core_destroy(ar_usb->ar); ar_usb 1059 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = usb_get_intfdata(interface); ar_usb 1061 drivers/net/wireless/ath/ath10k/usb.c ath10k_usb_flush_all(ar_usb->ar); ar_usb 1067 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_usb *ar_usb = usb_get_intfdata(interface); ar_usb 1068 drivers/net/wireless/ath/ath10k/usb.c struct ath10k *ar = ar_usb->ar; ar_usb 1071 drivers/net/wireless/ath/ath10k/usb.c &ar_usb->pipes[ATH10K_USB_PIPE_RX_DATA]); ar_usb 82 drivers/net/wireless/ath/ath10k/usb.h struct ath10k_usb *ar_usb; ar_usb 54 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb; ar_usb 136 drivers/net/wireless/ath/ath6kl/usb.c if (!pipe->ar_usb) ar_usb 139 drivers/net/wireless/ath/ath6kl/usb.c spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); ar_usb 147 drivers/net/wireless/ath/ath6kl/usb.c spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); ar_usb 158 drivers/net/wireless/ath/ath6kl/usb.c if (!pipe->ar_usb) ar_usb 161 drivers/net/wireless/ath/ath6kl/usb.c spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); ar_usb 165 drivers/net/wireless/ath/ath6kl/usb.c spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); ar_usb 222 drivers/net/wireless/ath/ath6kl/usb.c if (pipe->ar_usb == NULL) { ar_usb 249 drivers/net/wireless/ath/ath6kl/usb.c static void ath6kl_usb_cleanup_pipe_resources(struct ath6kl_usb *ar_usb) ar_usb 254 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_free_pipe_resources(&ar_usb->pipes[i]); ar_usb 257 drivers/net/wireless/ath/ath6kl/usb.c static u8 ath6kl_usb_get_logical_pipe_num(struct ath6kl_usb *ar_usb, ar_usb 303 drivers/net/wireless/ath/ath6kl/usb.c static int ath6kl_usb_setup_pipe_resources(struct ath6kl_usb *ar_usb) ar_usb 305 drivers/net/wireless/ath/ath6kl/usb.c struct usb_interface *interface = ar_usb->interface; ar_usb 346 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_get_logical_pipe_num(ar_usb, ar_usb 352 drivers/net/wireless/ath/ath6kl/usb.c pipe = &ar_usb->pipes[pipe_num]; ar_usb 353 drivers/net/wireless/ath/ath6kl/usb.c if (pipe->ar_usb != NULL) { ar_usb 358 drivers/net/wireless/ath/ath6kl/usb.c pipe->ar_usb = ar_usb; ar_usb 366 drivers/net/wireless/ath/ath6kl/usb.c usb_rcvbulkpipe(ar_usb->udev, ar_usb 370 drivers/net/wireless/ath/ath6kl/usb.c usb_sndbulkpipe(ar_usb->udev, ar_usb 376 drivers/net/wireless/ath/ath6kl/usb.c usb_rcvintpipe(ar_usb->udev, ar_usb 380 drivers/net/wireless/ath/ath6kl/usb.c usb_sndintpipe(ar_usb->udev, ar_usb 387 drivers/net/wireless/ath/ath6kl/usb.c usb_rcvisocpipe(ar_usb->udev, ar_usb 391 drivers/net/wireless/ath/ath6kl/usb.c usb_sndisocpipe(ar_usb->udev, ar_usb 431 drivers/net/wireless/ath/ath6kl/usb.c recv_pipe->ar_usb->udev, ar_usb 463 drivers/net/wireless/ath/ath6kl/usb.c static void ath6kl_usb_flush_all(struct ath6kl_usb *ar_usb) ar_usb 468 drivers/net/wireless/ath/ath6kl/usb.c if (ar_usb->pipes[i].ar_usb != NULL) ar_usb 469 drivers/net/wireless/ath/ath6kl/usb.c usb_kill_anchored_urbs(&ar_usb->pipes[i].urb_submitted); ar_usb 479 drivers/net/wireless/ath/ath6kl/usb.c static void ath6kl_usb_start_recv_pipes(struct ath6kl_usb *ar_usb) ar_usb 490 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->pipes[ATH6KL_USB_PIPE_RX_DATA].urb_cnt_thresh = 1; ar_usb 492 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_post_recv_transfers(&ar_usb->pipes[ATH6KL_USB_PIPE_RX_DATA], ar_usb 585 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb; ar_usb 588 drivers/net/wireless/ath/ath6kl/usb.c ar_usb = pipe->ar_usb; ar_usb 594 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_core_tx_complete(ar_usb->ar, skb); ar_usb 598 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_core_rx_complete(ar_usb->ar, skb, ar_usb 607 drivers/net/wireless/ath/ath6kl/usb.c static void ath6kl_usb_destroy(struct ath6kl_usb *ar_usb) ar_usb 609 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_flush_all(ar_usb); ar_usb 611 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_cleanup_pipe_resources(ar_usb); ar_usb 613 drivers/net/wireless/ath/ath6kl/usb.c usb_set_intfdata(ar_usb->interface, NULL); ar_usb 615 drivers/net/wireless/ath/ath6kl/usb.c kfree(ar_usb->diag_cmd_buffer); ar_usb 616 drivers/net/wireless/ath/ath6kl/usb.c kfree(ar_usb->diag_resp_buffer); ar_usb 618 drivers/net/wireless/ath/ath6kl/usb.c kfree(ar_usb); ar_usb 624 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb; ar_usb 629 drivers/net/wireless/ath/ath6kl/usb.c ar_usb = kzalloc(sizeof(struct ath6kl_usb), GFP_KERNEL); ar_usb 630 drivers/net/wireless/ath/ath6kl/usb.c if (ar_usb == NULL) ar_usb 633 drivers/net/wireless/ath/ath6kl/usb.c usb_set_intfdata(interface, ar_usb); ar_usb 634 drivers/net/wireless/ath/ath6kl/usb.c spin_lock_init(&(ar_usb->cs_lock)); ar_usb 635 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->udev = dev; ar_usb 636 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->interface = interface; ar_usb 639 drivers/net/wireless/ath/ath6kl/usb.c pipe = &ar_usb->pipes[i]; ar_usb 645 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->diag_cmd_buffer = kzalloc(ATH6KL_USB_MAX_DIAG_CMD, GFP_KERNEL); ar_usb 646 drivers/net/wireless/ath/ath6kl/usb.c if (ar_usb->diag_cmd_buffer == NULL) { ar_usb 651 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->diag_resp_buffer = kzalloc(ATH6KL_USB_MAX_DIAG_RESP, ar_usb 653 drivers/net/wireless/ath/ath6kl/usb.c if (ar_usb->diag_resp_buffer == NULL) { ar_usb 658 drivers/net/wireless/ath/ath6kl/usb.c status = ath6kl_usb_setup_pipe_resources(ar_usb); ar_usb 662 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_destroy(ar_usb); ar_usb 663 drivers/net/wireless/ath/ath6kl/usb.c ar_usb = NULL; ar_usb 665 drivers/net/wireless/ath/ath6kl/usb.c return ar_usb; ar_usb 670 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb; ar_usb 672 drivers/net/wireless/ath/ath6kl/usb.c ar_usb = usb_get_intfdata(interface); ar_usb 673 drivers/net/wireless/ath/ath6kl/usb.c if (ar_usb == NULL) ar_usb 676 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_stop_txrx(ar_usb->ar); ar_usb 680 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_core_cleanup(ar_usb->ar); ar_usb 681 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_destroy(ar_usb); ar_usb 859 drivers/net/wireless/ath/ath6kl/usb.c static int ath6kl_usb_submit_ctrl_out(struct ath6kl_usb *ar_usb, ar_usb 873 drivers/net/wireless/ath/ath6kl/usb.c ret = usb_control_msg(ar_usb->udev, ar_usb 874 drivers/net/wireless/ath/ath6kl/usb.c usb_sndctrlpipe(ar_usb->udev, 0), ar_usb 891 drivers/net/wireless/ath/ath6kl/usb.c static int ath6kl_usb_submit_ctrl_in(struct ath6kl_usb *ar_usb, ar_usb 905 drivers/net/wireless/ath/ath6kl/usb.c ret = usb_control_msg(ar_usb->udev, ar_usb 906 drivers/net/wireless/ath/ath6kl/usb.c usb_rcvctrlpipe(ar_usb->udev, 0), ar_usb 925 drivers/net/wireless/ath/ath6kl/usb.c static int ath6kl_usb_ctrl_msg_exchange(struct ath6kl_usb *ar_usb, ar_usb 932 drivers/net/wireless/ath/ath6kl/usb.c ret = ath6kl_usb_submit_ctrl_out(ar_usb, req_val, 0, 0, ar_usb 944 drivers/net/wireless/ath/ath6kl/usb.c ret = ath6kl_usb_submit_ctrl_in(ar_usb, resp_val, 0, 0, ar_usb 952 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb = ar->hif_priv; ar_usb 958 drivers/net/wireless/ath/ath6kl/usb.c cmd = (struct ath6kl_usb_ctrl_diag_cmd_read *) ar_usb->diag_cmd_buffer; ar_usb 965 drivers/net/wireless/ath/ath6kl/usb.c ret = ath6kl_usb_ctrl_msg_exchange(ar_usb, ar_usb 970 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->diag_resp_buffer, &resp_len); ar_usb 978 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->diag_resp_buffer; ar_usb 987 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb = ar->hif_priv; ar_usb 991 drivers/net/wireless/ath/ath6kl/usb.c cmd = (struct ath6kl_usb_ctrl_diag_cmd_write *) ar_usb->diag_cmd_buffer; ar_usb 998 drivers/net/wireless/ath/ath6kl/usb.c ret = ath6kl_usb_ctrl_msg_exchange(ar_usb, ar_usb 1013 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb = ar->hif_priv; ar_usb 1017 drivers/net/wireless/ath/ath6kl/usb.c ret = ath6kl_usb_submit_ctrl_in(ar_usb, ar_usb 1031 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb = ar->hif_priv; ar_usb 1035 drivers/net/wireless/ath/ath6kl/usb.c ret = ath6kl_usb_submit_ctrl_out(ar_usb, ar_usb 1111 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_usb *ar_usb = NULL; ar_usb 1133 drivers/net/wireless/ath/ath6kl/usb.c ar_usb = ath6kl_usb_create(interface); ar_usb 1135 drivers/net/wireless/ath/ath6kl/usb.c if (ar_usb == NULL) { ar_usb 1140 drivers/net/wireless/ath/ath6kl/usb.c ar = ath6kl_core_create(&ar_usb->udev->dev); ar_usb 1147 drivers/net/wireless/ath/ath6kl/usb.c ar->hif_priv = ar_usb; ar_usb 1153 drivers/net/wireless/ath/ath6kl/usb.c ar_usb->ar = ar; ar_usb 1166 drivers/net/wireless/ath/ath6kl/usb.c ath6kl_usb_destroy(ar_usb);