Lines Matching refs:ar
73 struct ath6kl *ar; member
81 struct ath6kl *ar; member
168 static inline struct ath6kl_usb *ath6kl_usb_priv(struct ath6kl *ar) in ath6kl_usb_priv() argument
170 return ar->hif_priv; in ath6kl_usb_priv()
586 ath6kl_core_tx_complete(ar_usb->ar, skb); in ath6kl_usb_io_comp_work()
590 ath6kl_core_rx_complete(ar_usb->ar, skb, in ath6kl_usb_io_comp_work()
668 ath6kl_stop_txrx(ar_usb->ar); in ath6kl_usb_device_detached()
672 ath6kl_core_cleanup(ar_usb->ar); in ath6kl_usb_device_detached()
677 static void hif_start(struct ath6kl *ar) in hif_start() argument
679 struct ath6kl_usb *device = ath6kl_usb_priv(ar); in hif_start()
692 static int ath6kl_usb_send(struct ath6kl *ar, u8 PipeID, in ath6kl_usb_send() argument
695 struct ath6kl_usb *device = ath6kl_usb_priv(ar); in ath6kl_usb_send()
768 static void hif_stop(struct ath6kl *ar) in hif_stop() argument
770 struct ath6kl_usb *device = ath6kl_usb_priv(ar); in hif_stop()
775 static void ath6kl_usb_get_default_pipe(struct ath6kl *ar, in ath6kl_usb_get_default_pipe() argument
782 static int ath6kl_usb_map_service_pipe(struct ath6kl *ar, u16 svc_id, in ath6kl_usb_map_service_pipe() argument
806 ar->fw_capabilities)) in ath6kl_usb_map_service_pipe()
819 ar->fw_capabilities)) in ath6kl_usb_map_service_pipe()
837 static u16 ath6kl_usb_get_free_queue_number(struct ath6kl *ar, u8 pipe_id) in ath6kl_usb_get_free_queue_number() argument
839 struct ath6kl_usb *device = ath6kl_usb_priv(ar); in ath6kl_usb_get_free_queue_number()
844 static void hif_detach_htc(struct ath6kl *ar) in hif_detach_htc() argument
846 struct ath6kl_usb *device = ath6kl_usb_priv(ar); in hif_detach_htc()
942 static int ath6kl_usb_diag_read32(struct ath6kl *ar, u32 address, u32 *data) in ath6kl_usb_diag_read32() argument
944 struct ath6kl_usb *ar_usb = ar->hif_priv; in ath6kl_usb_diag_read32()
977 static int ath6kl_usb_diag_write32(struct ath6kl *ar, u32 address, __le32 data) in ath6kl_usb_diag_write32() argument
979 struct ath6kl_usb *ar_usb = ar->hif_priv; in ath6kl_usb_diag_write32()
1003 static int ath6kl_usb_bmi_read(struct ath6kl *ar, u8 *buf, u32 len) in ath6kl_usb_bmi_read() argument
1005 struct ath6kl_usb *ar_usb = ar->hif_priv; in ath6kl_usb_bmi_read()
1021 static int ath6kl_usb_bmi_write(struct ath6kl *ar, u8 *buf, u32 len) in ath6kl_usb_bmi_write() argument
1023 struct ath6kl_usb *ar_usb = ar->hif_priv; in ath6kl_usb_bmi_write()
1039 static int ath6kl_usb_power_on(struct ath6kl *ar) in ath6kl_usb_power_on() argument
1041 hif_start(ar); in ath6kl_usb_power_on()
1045 static int ath6kl_usb_power_off(struct ath6kl *ar) in ath6kl_usb_power_off() argument
1047 hif_detach_htc(ar); in ath6kl_usb_power_off()
1051 static void ath6kl_usb_stop(struct ath6kl *ar) in ath6kl_usb_stop() argument
1053 hif_stop(ar); in ath6kl_usb_stop()
1056 static void ath6kl_usb_cleanup_scatter(struct ath6kl *ar) in ath6kl_usb_cleanup_scatter() argument
1064 static int ath6kl_usb_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow) in ath6kl_usb_suspend() argument
1072 static int ath6kl_usb_resume(struct ath6kl *ar) in ath6kl_usb_resume() argument
1102 struct ath6kl *ar; in ath6kl_usb_probe() local
1132 ar = ath6kl_core_create(&ar_usb->udev->dev); in ath6kl_usb_probe()
1133 if (ar == NULL) { in ath6kl_usb_probe()
1139 ar->hif_priv = ar_usb; in ath6kl_usb_probe()
1140 ar->hif_type = ATH6KL_HIF_TYPE_USB; in ath6kl_usb_probe()
1141 ar->hif_ops = &ath6kl_usb_ops; in ath6kl_usb_probe()
1142 ar->mbox_info.block_size = 16; in ath6kl_usb_probe()
1143 ar->bmi.max_data_size = 252; in ath6kl_usb_probe()
1145 ar_usb->ar = ar; in ath6kl_usb_probe()
1147 ret = ath6kl_core_init(ar, ATH6KL_HTC_TYPE_PIPE); in ath6kl_usb_probe()
1156 ath6kl_core_destroy(ar); in ath6kl_usb_probe()