/drivers/net/wireless/ath/ath10k/ |
D | core.c | 398 void ath10k_core_get_fw_features_str(struct ath10k *ar, in ath10k_core_get_fw_features_str() argument 406 if (test_bit(i, ar->normal_mode_fw.fw_file.fw_features)) { in ath10k_core_get_fw_features_str() 417 static void ath10k_send_suspend_complete(struct ath10k *ar) in ath10k_send_suspend_complete() argument 419 ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot suspend complete\n"); in ath10k_send_suspend_complete() 421 complete(&ar->target_suspend); in ath10k_send_suspend_complete() 424 static void ath10k_init_sdio(struct ath10k *ar) in ath10k_init_sdio() argument 428 ath10k_bmi_write32(ar, hi_mbox_io_block_sz, 256); in ath10k_init_sdio() 429 ath10k_bmi_write32(ar, hi_mbox_isr_yield_limit, 99); in ath10k_init_sdio() 430 ath10k_bmi_read32(ar, hi_acs_flags, ¶m); in ath10k_init_sdio() 436 ath10k_bmi_write32(ar, hi_acs_flags, param); in ath10k_init_sdio() [all …]
|
D | wmi-ops.h | 25 void (*rx)(struct ath10k *ar, struct sk_buff *skb); 28 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb, 30 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb, 32 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb, 34 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb, 36 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb, 38 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb, 40 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb, 42 int (*pull_phyerr)(struct ath10k *ar, const void *phyerr_buf, 44 int (*pull_svc_rdy)(struct ath10k *ar, struct sk_buff *skb, [all …]
|
D | hif.h | 35 int (*tx_sg)(struct ath10k *ar, u8 pipe_id, 39 int (*diag_read)(struct ath10k *ar, u32 address, void *buf, 42 int (*diag_write)(struct ath10k *ar, u32 address, const void *data, 49 int (*exchange_bmi_msg)(struct ath10k *ar, 54 int (*start)(struct ath10k *ar); 59 void (*stop)(struct ath10k *ar); 61 int (*map_service_to_pipe)(struct ath10k *ar, u16 service_id, 64 void (*get_default_pipe)(struct ath10k *ar, u8 *ul_pipe, u8 *dl_pipe); 74 void (*send_complete_check)(struct ath10k *ar, u8 pipe_id, int force); 76 u16 (*get_free_queue_number)(struct ath10k *ar, u8 pipe_id); [all …]
|
D | ahb.c | 39 static inline struct ath10k_ahb *ath10k_ahb_priv(struct ath10k *ar) in ath10k_ahb_priv() argument 41 return &((struct ath10k_pci *)ar->drv_priv)->ahb[0]; in ath10k_ahb_priv() 44 static void ath10k_ahb_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ahb_write32() argument 46 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_write32() 51 static u32 ath10k_ahb_read32(struct ath10k *ar, u32 offset) in ath10k_ahb_read32() argument 53 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_read32() 58 static u32 ath10k_ahb_gcc_read32(struct ath10k *ar, u32 offset) in ath10k_ahb_gcc_read32() argument 60 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_gcc_read32() 65 static void ath10k_ahb_tcsr_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ahb_tcsr_write32() argument 67 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_tcsr_write32() [all …]
|
D | mac.c | 191 int ath10k_mac_ext_resource_config(struct ath10k *ar, u32 val) in ath10k_mac_ext_resource_config() argument 196 if (test_bit(WMI_SERVICE_TX_MODE_DYNAMIC, ar->wmi.svc_map)) in ath10k_mac_ext_resource_config() 201 ret = ath10k_wmi_ext_resource_config(ar, platform_type, val); in ath10k_mac_ext_resource_config() 204 ath10k_warn(ar, "failed to configure ext resource: %d\n", ret); in ath10k_mac_ext_resource_config() 220 struct ath10k *ar = arvif->ar; in ath10k_send_key() local 230 lockdep_assert_held(&arvif->ar->conf_mutex); in ath10k_send_key() 250 ath10k_warn(ar, "cipher %d is not supported\n", key->cipher); in ath10k_send_key() 254 if (test_bit(ATH10K_FLAG_RAW_MODE, &ar->dev_flags)) in ath10k_send_key() 262 return ath10k_wmi_vdev_install_key(arvif->ar, &arg); in ath10k_send_key() 270 struct ath10k *ar = arvif->ar; in ath10k_install_key() local [all …]
|
D | pci.c | 97 static void ath10k_pci_buffer_cleanup(struct ath10k *ar); 98 static int ath10k_pci_cold_reset(struct ath10k *ar); 99 static int ath10k_pci_safe_chip_reset(struct ath10k *ar); 100 static int ath10k_pci_init_irq(struct ath10k *ar); 101 static int ath10k_pci_deinit_irq(struct ath10k *ar); 102 static int ath10k_pci_request_irq(struct ath10k *ar); 103 static void ath10k_pci_free_irq(struct ath10k *ar); 104 static int ath10k_pci_bmi_wait(struct ath10k *ar, 108 static int ath10k_pci_qca99x0_chip_reset(struct ath10k *ar); 426 static bool ath10k_pci_is_awake(struct ath10k *ar) in ath10k_pci_is_awake() argument [all …]
|
D | testmode.c | 42 bool ath10k_tm_event_wmi(struct ath10k *ar, u32 cmd_id, struct sk_buff *skb) in ath10k_tm_event_wmi() argument 48 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, in ath10k_tm_event_wmi() 52 ath10k_dbg_dump(ar, ATH10K_DBG_TESTMODE, NULL, "", skb->data, skb->len); in ath10k_tm_event_wmi() 54 spin_lock_bh(&ar->data_lock); in ath10k_tm_event_wmi() 56 if (!ar->testmode.utf_monitor) { in ath10k_tm_event_wmi() 67 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath10k_tm_event_wmi() 71 ath10k_warn(ar, in ath10k_tm_event_wmi() 78 ath10k_warn(ar, in ath10k_tm_event_wmi() 87 ath10k_warn(ar, in ath10k_tm_event_wmi() 96 ath10k_warn(ar, in ath10k_tm_event_wmi() [all …]
|
D | debug.c | 117 void ath10k_info(struct ath10k *ar, const char *fmt, ...) in ath10k_info() argument 126 dev_info(ar->dev, "%pV", &vaf); in ath10k_info() 127 trace_ath10k_log_info(ar, &vaf); in ath10k_info() 132 void ath10k_debug_print_hwfw_info(struct ath10k *ar) in ath10k_debug_print_hwfw_info() argument 138 ath10k_core_get_fw_features_str(ar, fw_features, sizeof(fw_features)); in ath10k_debug_print_hwfw_info() 140 ath10k_info(ar, "%s target 0x%08x chip_id 0x%08x sub %04x:%04x", in ath10k_debug_print_hwfw_info() 141 ar->hw_params.name, in ath10k_debug_print_hwfw_info() 142 ar->target_version, in ath10k_debug_print_hwfw_info() 143 ar->chip_id, in ath10k_debug_print_hwfw_info() 144 ar->id.subsystem_vendor, ar->id.subsystem_device); in ath10k_debug_print_hwfw_info() [all …]
|
D | ce.c | 75 static inline u32 ath10k_ce_read32(struct ath10k *ar, u32 offset) in ath10k_ce_read32() argument 77 struct ath10k_ce *ce = ath10k_ce_priv(ar); in ath10k_ce_read32() 79 return ce->bus_ops->read32(ar, offset); in ath10k_ce_read32() 82 static inline void ath10k_ce_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ce_write32() argument 84 struct ath10k_ce *ce = ath10k_ce_priv(ar); in ath10k_ce_write32() 86 ce->bus_ops->write32(ar, offset, value); in ath10k_ce_write32() 89 static inline void ath10k_ce_dest_ring_write_index_set(struct ath10k *ar, in ath10k_ce_dest_ring_write_index_set() argument 93 ath10k_ce_write32(ar, ce_ctrl_addr + in ath10k_ce_dest_ring_write_index_set() 94 ar->hw_ce_regs->dst_wr_index_addr, n); in ath10k_ce_dest_ring_write_index_set() 97 static inline u32 ath10k_ce_dest_ring_write_index_get(struct ath10k *ar, in ath10k_ce_dest_ring_write_index_get() argument [all …]
|
D | wow.c | 36 struct ath10k *ar = arvif->ar; in ath10k_wow_vif_cleanup() local 40 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath10k_wow_vif_cleanup() 42 ath10k_warn(ar, "failed to issue wow wakeup for event %s on vdev %i: %d\n", in ath10k_wow_vif_cleanup() 48 for (i = 0; i < ar->wow.max_num_patterns; i++) { in ath10k_wow_vif_cleanup() 49 ret = ath10k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath10k_wow_vif_cleanup() 51 ath10k_warn(ar, "failed to delete wow pattern %d for vdev %i: %d\n", in ath10k_wow_vif_cleanup() 60 static int ath10k_wow_cleanup(struct ath10k *ar) in ath10k_wow_cleanup() argument 65 lockdep_assert_held(&ar->conf_mutex); in ath10k_wow_cleanup() 67 list_for_each_entry(arvif, &ar->arvifs, list) { in ath10k_wow_cleanup() 70 ath10k_warn(ar, "failed to clean wow wakeups on vdev %i: %d\n", in ath10k_wow_cleanup() [all …]
|
D | thermal.c | 39 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_throttle_state() local 41 mutex_lock(&ar->conf_mutex); in ath10k_thermal_get_cur_throttle_state() 42 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state() 43 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_get_cur_throttle_state() 52 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_throttle_state() local 55 ath10k_warn(ar, "throttle state %ld is exceeding the limit %d\n", in ath10k_thermal_set_cur_throttle_state() 59 mutex_lock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state() 60 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state() 61 ath10k_thermal_set_throttling(ar); in ath10k_thermal_set_cur_throttle_state() 62 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state() [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | usb.c | 133 static void carl9170_usb_submit_data_urb(struct ar9170 *ar) in carl9170_usb_submit_data_urb() argument 138 if (atomic_inc_return(&ar->tx_anch_urbs) > AR9170_NUM_TX_URBS) in carl9170_usb_submit_data_urb() 141 urb = usb_get_from_anchor(&ar->tx_wait); in carl9170_usb_submit_data_urb() 145 usb_anchor_urb(urb, &ar->tx_anch); in carl9170_usb_submit_data_urb() 150 dev_err(&ar->udev->dev, "tx submit failed (%d)\n", in carl9170_usb_submit_data_urb() 155 usb_anchor_urb(urb, &ar->tx_err); in carl9170_usb_submit_data_urb() 164 atomic_dec(&ar->tx_anch_urbs); in carl9170_usb_submit_data_urb() 169 struct ar9170 *ar = usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0)); in carl9170_usb_tx_data_complete() local 171 if (WARN_ON_ONCE(!ar)) { in carl9170_usb_tx_data_complete() 176 atomic_dec(&ar->tx_anch_urbs); in carl9170_usb_tx_data_complete() [all …]
|
D | main.c | 184 static void carl9170_ampdu_gc(struct ar9170 *ar) in carl9170_ampdu_gc() argument 190 list_for_each_entry_rcu(tid_info, &ar->tx_ampdu_list, list) { in carl9170_ampdu_gc() 191 spin_lock_bh(&ar->tx_ampdu_list_lock); in carl9170_ampdu_gc() 195 ar->tx_ampdu_list_len--; in carl9170_ampdu_gc() 198 spin_unlock_bh(&ar->tx_ampdu_list_lock); in carl9170_ampdu_gc() 201 rcu_assign_pointer(ar->tx_ampdu_iter, tid_info); in carl9170_ampdu_gc() 212 carl9170_tx_status(ar, skb, false); in carl9170_ampdu_gc() 219 static void carl9170_flush(struct ar9170 *ar, bool drop_queued) in carl9170_flush() argument 229 for (i = 0; i < ar->hw->queues; i++) { in carl9170_flush() 232 while ((skb = skb_dequeue(&ar->tx_pending[i]))) { in carl9170_flush() [all …]
|
D | fw.c | 33 static const void *carl9170_fw_find_desc(struct ar9170 *ar, const u8 descid[4], in carl9170_fw_find_desc() argument 38 carl9170fw_for_each_hdr(iter, ar->fw.desc) { in carl9170_fw_find_desc() 52 static int carl9170_fw_verify_descs(struct ar9170 *ar, in carl9170_fw_verify_descs() argument 95 static void carl9170_fw_info(struct ar9170 *ar) in carl9170_fw_info() argument 101 dev_info(&ar->udev->dev, "driver API: %s 2%03d-%02d-%02d [%d-%d]\n", in carl9170_fw_info() 106 motd_desc = carl9170_fw_find_desc(ar, MOTD_MAGIC, in carl9170_fw_info() 115 dev_info(&ar->udev->dev, "firmware API: %.*s 2%03d-%02d-%02d\n", in carl9170_fw_info() 121 strlcpy(ar->hw->wiphy->fw_version, motd_desc->release, in carl9170_fw_info() 122 sizeof(ar->hw->wiphy->fw_version)); in carl9170_fw_info() 144 static int carl9170_fw_checksum(struct ar9170 *ar, const __u8 *data, in carl9170_fw_checksum() argument [all …]
|
D | rx.c | 49 static void carl9170_dbg_message(struct ar9170 *ar, const char *buf, u32 len) in carl9170_dbg_message() argument 56 ar->fw.err_counter++; in carl9170_dbg_message() 57 if (ar->fw.err_counter > 3) { in carl9170_dbg_message() 64 ar->fw.bug_counter++; in carl9170_dbg_message() 70 wiphy_info(ar->hw->wiphy, "FW: %.*s\n", len, buf); in carl9170_dbg_message() 73 carl9170_restart(ar, reason); in carl9170_dbg_message() 76 static void carl9170_handle_ps(struct ar9170 *ar, struct carl9170_rsp *rsp) in carl9170_handle_ps() argument 84 if (ar->ps.state != new_ps) { in carl9170_handle_ps() 86 ar->ps.sleep_ms = jiffies_to_msecs(jiffies - in carl9170_handle_ps() 87 ar->ps.last_action); in carl9170_handle_ps() [all …]
|
D | led.c | 43 int carl9170_led_set_state(struct ar9170 *ar, const u32 led_state) in carl9170_led_set_state() argument 45 return carl9170_write_reg(ar, AR9170_GPIO_REG_PORT_DATA, led_state); in carl9170_led_set_state() 48 int carl9170_led_init(struct ar9170 *ar) in carl9170_led_init() argument 54 err = carl9170_write_reg(ar, AR9170_GPIO_REG_PORT_TYPE, 3); in carl9170_led_init() 59 err = carl9170_led_set_state(ar, 0); in carl9170_led_init() 68 struct ar9170 *ar = container_of(work, struct ar9170, led_work.work); in carl9170_led_update() local 73 if (!IS_ACCEPTING_CMD(ar)) in carl9170_led_update() 76 mutex_lock(&ar->mutex); in carl9170_led_update() 78 if (ar->leds[i].registered) { in carl9170_led_update() 79 if (ar->leds[i].last_state || in carl9170_led_update() [all …]
|
D | debug.c | 54 char *(*read)(struct ar9170 *ar, char *buf, size_t bufsize, 66 struct ar9170 *ar; in carl9170_debugfs_read() local 74 ar = file->private_data; in carl9170_debugfs_read() 76 if (!ar) in carl9170_debugfs_read() 90 mutex_lock(&ar->mutex); in carl9170_debugfs_read() 91 if (!CHK_DEV_STATE(ar, dfops->req_dev_state)) { in carl9170_debugfs_read() 97 res_buf = dfops->read(ar, buf, dfops->read_bufsize, &ret); in carl9170_debugfs_read() 109 mutex_unlock(&ar->mutex); in carl9170_debugfs_read() 117 struct ar9170 *ar; in carl9170_debugfs_write() local 127 ar = file->private_data; in carl9170_debugfs_write() [all …]
|
D | mac.c | 44 int carl9170_set_dyn_sifs_ack(struct ar9170 *ar) in carl9170_set_dyn_sifs_ack() argument 48 if (conf_is_ht40(&ar->hw->conf)) in carl9170_set_dyn_sifs_ack() 51 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) in carl9170_set_dyn_sifs_ack() 57 return carl9170_write_reg(ar, AR9170_MAC_REG_DYNAMIC_SIFS_ACK, val); in carl9170_set_dyn_sifs_ack() 60 int carl9170_set_rts_cts_rate(struct ar9170 *ar) in carl9170_set_rts_cts_rate() argument 64 if (conf_is_ht(&ar->hw->conf)) { in carl9170_set_rts_cts_rate() 69 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) { in carl9170_set_rts_cts_rate() 80 return carl9170_write_reg(ar, AR9170_MAC_REG_RTS_CTS_RATE, in carl9170_set_rts_cts_rate() 84 int carl9170_set_slot_time(struct ar9170 *ar) in carl9170_set_slot_time() argument 90 vif = carl9170_get_main_vif(ar); in carl9170_set_slot_time() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | core.c | 54 void ath6kl_core_tx_complete(struct ath6kl *ar, struct sk_buff *skb) in ath6kl_core_tx_complete() argument 56 ath6kl_htc_tx_complete(ar, skb); in ath6kl_core_tx_complete() 60 void ath6kl_core_rx_complete(struct ath6kl *ar, struct sk_buff *skb, u8 pipe) in ath6kl_core_rx_complete() argument 62 ath6kl_htc_rx_complete(ar, skb, pipe); in ath6kl_core_rx_complete() 66 int ath6kl_core_init(struct ath6kl *ar, enum ath6kl_htc_type htc_type) in ath6kl_core_init() argument 74 ath6kl_htc_mbox_attach(ar); in ath6kl_core_init() 77 ath6kl_htc_pipe_attach(ar); in ath6kl_core_init() 84 ar->ath6kl_wq = create_singlethread_workqueue("ath6kl"); in ath6kl_core_init() 85 if (!ar->ath6kl_wq) in ath6kl_core_init() 88 ret = ath6kl_bmi_init(ar); in ath6kl_core_init() [all …]
|
D | init.c | 251 static int ath6kl_set_host_app_area(struct ath6kl *ar) in ath6kl_set_host_app_area() argument 258 address = ath6kl_get_hi_item_addr(ar, HI_ITEM(hi_app_host_interest)); in ath6kl_set_host_app_area() 259 address = TARG_VTOP(ar->target_type, address); in ath6kl_set_host_app_area() 261 if (ath6kl_diag_read32(ar, address, &data)) in ath6kl_set_host_app_area() 264 address = TARG_VTOP(ar->target_type, data); in ath6kl_set_host_app_area() 266 if (ath6kl_diag_write(ar, address, (u8 *) &host_app_area, in ath6kl_set_host_app_area() 273 static inline void set_ac2_ep_map(struct ath6kl *ar, in set_ac2_ep_map() argument 277 ar->ac2ep_map[ac] = ep; in set_ac2_ep_map() 278 ar->ep2ac_map[ep] = ac; in set_ac2_ep_map() 282 static int ath6kl_connectservice(struct ath6kl *ar, in ath6kl_connectservice() argument [all …]
|
D | recovery.c | 23 struct ath6kl *ar = container_of(work, struct ath6kl, in ath6kl_recovery_work() local 26 ar->state = ATH6KL_STATE_RECOVERY; in ath6kl_recovery_work() 28 del_timer_sync(&ar->fw_recovery.hb_timer); in ath6kl_recovery_work() 30 ath6kl_init_hw_restart(ar); in ath6kl_recovery_work() 32 ar->state = ATH6KL_STATE_ON; in ath6kl_recovery_work() 33 clear_bit(WMI_CTRL_EP_FULL, &ar->flag); in ath6kl_recovery_work() 35 ar->fw_recovery.err_reason = 0; in ath6kl_recovery_work() 37 if (ar->fw_recovery.hb_poll) in ath6kl_recovery_work() 38 mod_timer(&ar->fw_recovery.hb_timer, jiffies + in ath6kl_recovery_work() 39 msecs_to_jiffies(ar->fw_recovery.hb_poll)); in ath6kl_recovery_work() [all …]
|
D | hif-ops.h | 24 static inline int hif_read_write_sync(struct ath6kl *ar, u32 addr, u8 *buf, in hif_read_write_sync() argument 32 return ar->hif_ops->read_write_sync(ar, addr, buf, len, request); in hif_read_write_sync() 35 static inline int hif_write_async(struct ath6kl *ar, u32 address, u8 *buffer, in hif_write_async() argument 43 return ar->hif_ops->write_async(ar, address, buffer, length, in hif_write_async() 46 static inline void ath6kl_hif_irq_enable(struct ath6kl *ar) in ath6kl_hif_irq_enable() argument 50 return ar->hif_ops->irq_enable(ar); in ath6kl_hif_irq_enable() 53 static inline void ath6kl_hif_irq_disable(struct ath6kl *ar) in ath6kl_hif_irq_disable() argument 57 return ar->hif_ops->irq_disable(ar); in ath6kl_hif_irq_disable() 60 static inline struct hif_scatter_req *hif_scatter_req_get(struct ath6kl *ar) in hif_scatter_req_get() argument 62 return ar->hif_ops->scatter_req_get(ar); in hif_scatter_req_get() [all …]
|
D | bmi.c | 23 int ath6kl_bmi_done(struct ath6kl *ar) in ath6kl_bmi_done() argument 28 if (ar->bmi.done_sent) { in ath6kl_bmi_done() 33 ar->bmi.done_sent = true; in ath6kl_bmi_done() 35 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); in ath6kl_bmi_done() 44 int ath6kl_bmi_get_target_info(struct ath6kl *ar, in ath6kl_bmi_get_target_info() argument 50 if (ar->bmi.done_sent) { in ath6kl_bmi_get_target_info() 55 ret = ath6kl_hif_bmi_write(ar, (u8 *)&cid, sizeof(cid)); in ath6kl_bmi_get_target_info() 61 if (ar->hif_type == ATH6KL_HIF_TYPE_USB) { in ath6kl_bmi_get_target_info() 62 ret = ath6kl_hif_bmi_read(ar, (u8 *)targ_info, in ath6kl_bmi_get_target_info() 65 ret = ath6kl_hif_bmi_read(ar, (u8 *)&targ_info->version, in ath6kl_bmi_get_target_info() [all …]
|
/drivers/net/wireless/ath/ar5523/ |
D | ar5523.c | 45 static int ar5523_submit_rx_cmd(struct ar5523 *ar); 46 static void ar5523_data_tx_pkt_put(struct ar5523 *ar); 48 static void ar5523_read_reply(struct ar5523 *ar, struct ar5523_cmd_hdr *hdr, in ar5523_read_reply() argument 61 ar5523_dbg(ar, "Code = %d len = %d\n", be32_to_cpu(hdr->code) & 0xff, in ar5523_read_reply() 77 ar5523_err(ar, "olen to small %d < %d\n", in ar5523_read_reply() 94 struct ar5523 *ar = urb->context; in ar5523_cmd_rx_cb() local 95 struct ar5523_tx_cmd *cmd = &ar->tx_cmd; in ar5523_cmd_rx_cb() 96 struct ar5523_cmd_hdr *hdr = ar->rx_cmd_buf; in ar5523_cmd_rx_cb() 102 ar5523_err(ar, "RX USB error %d.\n", urb->status); in ar5523_cmd_rx_cb() 107 ar5523_err(ar, "RX USB to short.\n"); in ar5523_cmd_rx_cb() [all …]
|
/drivers/media/platform/ |
D | arv.c | 109 struct ar { struct 125 static struct ar ardev; argument 249 static void wait_for_vertical_sync(struct ar *ar, int exp_line) in wait_for_vertical_sync() argument 264 v4l2_err(&ar->v4l2_dev, "lost %d -> %d\n", exp_line, l); in wait_for_vertical_sync() 273 struct ar *ar = video_drvdata(file); in ar_read() local 274 long ret = ar->frame_bytes; /* return read bytes */ in ar_read() 286 if (ar->size == AR_SIZE_QVGA) in ar_read() 288 if (ar->mode == AR_MODE_NORMAL) in ar_read() 291 mutex_lock(&ar->lock); in ar_read() 302 ar_outl(ar->line_buff, M32R_DMA0CDA_PORTL); /* destination addr. */ in ar_read() [all …]
|