Home
last modified time | relevance | path

Searched refs:ar (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/freebsd/sys/security/audit/
H A Daudit_arg.c72 struct kaudit_record *ar; in audit_arg_addr() local
74 ar = currecord(); in audit_arg_addr()
75 if (ar == NULL) in audit_arg_addr()
78 ar->k_ar.ar_arg_addr = addr; in audit_arg_addr()
79 ARG_SET_VALID(ar, ARG_ADDR); in audit_arg_addr()
85 struct kaudit_record *ar; in audit_arg_exit() local
87 ar = currecord(); in audit_arg_exit()
88 if (ar == NULL) in audit_arg_exit()
91 ar->k_ar.ar_arg_exitstatus = status; in audit_arg_exit()
92 ar->k_ar.ar_arg_exitretval = retval; in audit_arg_exit()
[all …]
H A Daudit_bsm.c64 static void audit_sys_auditon(struct audit_record *ar,
194 tok = au_to_arg32(argnum, "at fd 1", ar->ar_arg_atfd1); \
201 tok = au_to_arg32(argnum, "at fd 2", ar->ar_arg_atfd2); \
208 tok = au_to_path(ar->ar_arg_upath1); \
215 tok = au_to_path(ar->ar_arg_upath2); \
222 tok = au_to_arg32(1, "at fd", ar->ar_arg_atfd); \
226 tok = au_to_attr32(&ar->ar_arg_vnode1); \
234 tok = au_to_attr32(&ar->ar_arg_vnode1); \
241 tok = au_to_attr32(&ar->ar_arg_vnode2); \
249 tok = au_to_arg32(1, "fd", ar->ar_arg_fd); \
[all …]
H A Daudit.c262 struct kaudit_record *ar; in audit_record_ctor() local
267 KASSERT(sizeof(*ar) == size, ("audit_record_ctor: wrong size")); in audit_record_ctor()
270 ar = mem; in audit_record_ctor()
271 bzero(ar, sizeof(*ar)); in audit_record_ctor()
272 ar->k_ar.ar_magic = AUDIT_RECORD_MAGIC; in audit_record_ctor()
273 nanotime(&ar->k_ar.ar_starttime); in audit_record_ctor()
279 cru2x(cred, &ar->k_ar.ar_subj_cred); in audit_record_ctor()
280 ar->k_ar.ar_subj_ruid = cred->cr_ruid; in audit_record_ctor()
281 ar->k_ar.ar_subj_rgid = cred->cr_rgid; in audit_record_ctor()
282 ar->k_ar.ar_subj_egid = cred->cr_groups[0]; in audit_record_ctor()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dwmi-ops.h15 void (*rx)(struct ath10k *ar, struct sk_buff *skb);
19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb,
21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb,
23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb,
26 struct ath10k *ar, struct sk_buff *skb,
28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb,
30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb,
32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb,
34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb,
36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb,
[all …]
H A Dcore.c782 void ath10k_core_get_fw_features_str(struct ath10k *ar, in ath10k_core_get_fw_features_str() argument
790 if (test_bit(i, ar->normal_mode_fw.fw_file.fw_features)) { in ath10k_core_get_fw_features_str()
801 static void ath10k_send_suspend_complete(struct ath10k *ar) in ath10k_send_suspend_complete() argument
803 ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot suspend complete\n"); in ath10k_send_suspend_complete()
805 complete(&ar->target_suspend); in ath10k_send_suspend_complete()
808 static int ath10k_init_sdio(struct ath10k *ar, enum ath10k_firmware_mode mode) in ath10k_init_sdio() argument
810 bool mtu_workaround = ar->hw_params.credit_size_workaround; in ath10k_init_sdio()
814 ret = ath10k_bmi_write32(ar, hi_mbox_io_block_sz, 256); in ath10k_init_sdio()
818 ret = ath10k_bmi_write32(ar, hi_mbox_isr_yield_limit, 99); in ath10k_init_sdio()
822 ret = ath10k_bmi_read32(ar, hi_acs_flags, &param); in ath10k_init_sdio()
[all …]
H A Dhif.h31 int (*tx_sg)(struct ath10k *ar, u8 pipe_id,
35 int (*diag_read)(struct ath10k *ar, u32 address, void *buf,
38 int (*diag_write)(struct ath10k *ar, u32 address, const void *data,
45 int (*exchange_bmi_msg)(struct ath10k *ar,
50 int (*start)(struct ath10k *ar);
55 void (*stop)(struct ath10k *ar);
57 int (*start_post)(struct ath10k *ar);
59 int (*get_htt_tx_complete)(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);
[all …]
H A Dahb.c28 static inline struct ath10k_ahb *ath10k_ahb_priv(struct ath10k *ar) in ath10k_ahb_priv() argument
30 return &ath10k_pci_priv(ar)->ahb[0]; in ath10k_ahb_priv()
33 static void ath10k_ahb_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ahb_write32() argument
35 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_write32()
40 static u32 ath10k_ahb_read32(struct ath10k *ar, u32 offset) in ath10k_ahb_read32() argument
42 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_read32()
47 static u32 ath10k_ahb_gcc_read32(struct ath10k *ar, u32 offset) in ath10k_ahb_gcc_read32() argument
49 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_gcc_read32()
54 static void ath10k_ahb_tcsr_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ahb_tcsr_write32() argument
56 struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); in ath10k_ahb_tcsr_write32()
[all …]
H A Dtestmode.c31 bool ath10k_tm_event_wmi(struct ath10k *ar, u32 cmd_id, struct sk_buff *skb) in ath10k_tm_event_wmi() argument
37 ath10k_dbg(ar, ATH10K_DBG_TESTMODE, in ath10k_tm_event_wmi()
41 ath10k_dbg_dump(ar, ATH10K_DBG_TESTMODE, NULL, "", skb->data, skb->len); in ath10k_tm_event_wmi()
43 spin_lock_bh(&ar->data_lock); in ath10k_tm_event_wmi()
45 if (!ar->testmode.utf_monitor) { in ath10k_tm_event_wmi()
56 nl_skb = cfg80211_testmode_alloc_event_skb(ar->hw->wiphy, in ath10k_tm_event_wmi()
60 ath10k_warn(ar, in ath10k_tm_event_wmi()
67 ath10k_warn(ar, in ath10k_tm_event_wmi()
76 ath10k_warn(ar, in ath10k_tm_event_wmi()
85 ath10k_warn(ar, in ath10k_tm_event_wmi()
[all …]
H A Ddebug.c31 void ath10k_info(struct ath10k *ar, const char *fmt, ...) in ath10k_info() argument
41 dev_info(ar->dev, "%pV", &vaf); in ath10k_info()
46 dev_printk(KERN_DEBUG, ar->dev, "%s", str); in ath10k_info()
50 trace_ath10k_log_info(ar, &vaf); in ath10k_info()
55 void ath10k_debug_print_hwfw_info(struct ath10k *ar) in ath10k_debug_print_hwfw_info() argument
61 ath10k_core_get_fw_features_str(ar, fw_features, sizeof(fw_features)); in ath10k_debug_print_hwfw_info()
64 ath10k_info(ar, "%s target 0x%08x chip_id 0x%08x sub %04x:%04x", in ath10k_debug_print_hwfw_info()
66 ath10k_info(ar, "%s target 0x%08x chip_id 0x%08x sub %04x:%04x\n", in ath10k_debug_print_hwfw_info()
68 ar->hw_params.name, in ath10k_debug_print_hwfw_info()
69 ar->target_version, in ath10k_debug_print_hwfw_info()
[all …]
H A Dmac.c213 int ath10k_mac_ext_resource_config(struct ath10k *ar, u32 val) in ath10k_mac_ext_resource_config() argument
218 if (test_bit(WMI_SERVICE_TX_MODE_DYNAMIC, ar->wmi.svc_map)) in ath10k_mac_ext_resource_config()
223 ret = ath10k_wmi_ext_resource_config(ar, platform_type, val); in ath10k_mac_ext_resource_config()
226 ath10k_warn(ar, "failed to configure ext resource: %d\n", ret); in ath10k_mac_ext_resource_config()
242 struct ath10k *ar = arvif->ar; in ath10k_send_key() local
252 lockdep_assert_held(&arvif->ar->conf_mutex); in ath10k_send_key()
256 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_AES_CCM]; in ath10k_send_key()
260 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_TKIP]; in ath10k_send_key()
266 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_WEP]; in ath10k_send_key()
269 arg.key_cipher = ar->wmi_key_cipher[WMI_CIPHER_AES_CCM]; in ath10k_send_key()
[all …]
H A Dpci.c108 static void ath10k_pci_buffer_cleanup(struct ath10k *ar);
109 static int ath10k_pci_cold_reset(struct ath10k *ar);
110 static int ath10k_pci_safe_chip_reset(struct ath10k *ar);
111 static int ath10k_pci_init_irq(struct ath10k *ar);
112 static int ath10k_pci_deinit_irq(struct ath10k *ar);
113 static int ath10k_pci_request_irq(struct ath10k *ar);
114 static void ath10k_pci_free_irq(struct ath10k *ar);
115 static int ath10k_pci_bmi_wait(struct ath10k *ar,
119 static int ath10k_pci_qca99x0_chip_reset(struct ath10k *ar);
437 static bool ath10k_pci_is_awake(struct ath10k *ar) in ath10k_pci_is_awake() argument
[all …]
H A Dthermal.c28 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_throttle_state() local
30 mutex_lock(&ar->conf_mutex); in ath10k_thermal_get_cur_throttle_state()
31 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state()
32 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_get_cur_throttle_state()
41 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_throttle_state() local
44 ath10k_warn(ar, "throttle state %ld is exceeding the limit %d\n", in ath10k_thermal_set_cur_throttle_state()
48 mutex_lock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state()
49 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state()
50 ath10k_thermal_set_throttling(ar); in ath10k_thermal_set_cur_throttle_state()
51 mutex_unlock(&ar->conf_mutex); in ath10k_thermal_set_cur_throttle_state()
[all …]
H A Dsnoc.c474 static void ath10k_snoc_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_snoc_write32() argument
476 struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); in ath10k_snoc_write32()
481 static u32 ath10k_snoc_read32(struct ath10k *ar, u32 offset) in ath10k_snoc_read32() argument
483 struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); in ath10k_snoc_read32()
494 struct ath10k *ar = pipe->hif_ce_state; in __ath10k_snoc_rx_post_buf() local
495 struct ath10k_ce *ce = ath10k_ce_priv(ar); in __ath10k_snoc_rx_post_buf()
506 paddr = dma_map_single(ar->dev, skb->data, in __ath10k_snoc_rx_post_buf()
509 if (unlikely(dma_mapping_error(ar->dev, paddr))) { in __ath10k_snoc_rx_post_buf()
510 ath10k_warn(ar, "failed to dma map snoc rx buf\n"); in __ath10k_snoc_rx_post_buf()
521 dma_unmap_single(ar->dev, paddr, skb->len + skb_tailroom(skb), in __ath10k_snoc_rx_post_buf()
[all …]
H A Dce.c51 static inline u32 shadow_sr_wr_ind_addr(struct ath10k *ar, in shadow_sr_wr_ind_addr() argument
74 ath10k_warn(ar, "invalid CE id: %d", ce_id); in shadow_sr_wr_ind_addr()
87 static inline u32 ath10k_ce_read32(struct ath10k *ar, u32 offset) in ath10k_ce_read32() argument
89 struct ath10k_ce *ce = ath10k_ce_priv(ar); in ath10k_ce_read32()
91 return ce->bus_ops->read32(ar, offset); in ath10k_ce_read32()
94 static inline void ath10k_ce_write32(struct ath10k *ar, u32 offset, u32 value) in ath10k_ce_write32() argument
96 struct ath10k_ce *ce = ath10k_ce_priv(ar); in ath10k_ce_write32()
98 ce->bus_ops->write32(ar, offset, value); in ath10k_ce_write32()
101 static inline void ath10k_ce_dest_ring_write_index_set(struct ath10k *ar, in ath10k_ce_dest_ring_write_index_set() argument
105 ath10k_ce_write32(ar, ce_ctrl_addr + in ath10k_ce_dest_ring_write_index_set()
[all …]
H A Ddebug.h80 __printf(2, 3) void ath10k_info(struct ath10k *ar, const char *fmt, ...);
81 __printf(2, 3) void ath10k_err(struct ath10k *ar, const char *fmt, ...);
82 __printf(2, 3) void ath10k_warn(struct ath10k *ar, const char *fmt, ...);
84 void ath10k_debug_print_hwfw_info(struct ath10k *ar);
85 void ath10k_debug_print_board_info(struct ath10k *ar);
86 void ath10k_debug_print_boot_info(struct ath10k *ar);
87 void ath10k_print_driver_info(struct ath10k *ar);
90 int ath10k_debug_start(struct ath10k *ar);
91 void ath10k_debug_stop(struct ath10k *ar);
92 int ath10k_debug_create(struct ath10k *ar);
[all …]
H A Dsdio.c28 void ath10k_sdio_fw_crashed_dump(struct ath10k *ar);
132 static int ath10k_sdio_config(struct ath10k *ar) in ath10k_sdio_config() argument
134 struct ath10k_sdio *ar_sdio = ath10k_sdio_priv(ar); in ath10k_sdio_config()
139 ath10k_dbg(ar, ATH10K_DBG_BOOT, "sdio configuration\n"); in ath10k_sdio_config()
170 ath10k_warn(ar, "failed to enable driver strength: %d\n", ret); in ath10k_sdio_config()
185 ath10k_warn(ar, "failed to enable 4-bit async irq mode: %d\n", in ath10k_sdio_config()
207 ath10k_warn(ar, "failed to set sdio block size to %d: %d\n", in ath10k_sdio_config()
217 static int ath10k_sdio_write32(struct ath10k *ar, u32 addr, u32 val) in ath10k_sdio_write32() argument
219 struct ath10k_sdio *ar_sdio = ath10k_sdio_priv(ar); in ath10k_sdio_write32()
227 ath10k_warn(ar, "failed to write 0x%x to address 0x%x: %d\n", in ath10k_sdio_write32()
[all …]
H A Dbmi.c13 void ath10k_bmi_start(struct ath10k *ar) in ath10k_bmi_start() argument
15 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi start\n"); in ath10k_bmi_start()
17 ar->bmi.done_sent = false; in ath10k_bmi_start()
21 int ath10k_bmi_done(struct ath10k *ar) in ath10k_bmi_done() argument
27 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi done\n"); in ath10k_bmi_done()
29 if (ar->bmi.done_sent) { in ath10k_bmi_done()
30 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi skipped\n"); in ath10k_bmi_done()
34 ar->bmi.done_sent = true; in ath10k_bmi_done()
37 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen, NULL, NULL); in ath10k_bmi_done()
39 ath10k_warn(ar, "unable to write to the device: %d\n", ret); in ath10k_bmi_done()
[all …]
H A Dtrace.h50 TP_PROTO(struct ath10k *ar, struct va_format *vaf),
51 TP_ARGS(ar, vaf),
53 __string(device, dev_name(ar->dev))
54 __string(driver, dev_driver_string(ar->dev))
58 __assign_str(device, dev_name(ar->dev));
59 __assign_str(driver, dev_driver_string(ar->dev));
71 TP_PROTO(struct ath10k *ar, struct va_format *vaf),
72 TP_ARGS(ar, vaf)
76 TP_PROTO(struct ath10k *ar, struct va_format *vaf),
77 TP_ARGS(ar, vaf)
[all …]
H A Dtxrx.c14 static void ath10k_report_offchan_tx(struct ath10k *ar, struct sk_buff *skb) in ath10k_report_offchan_tx() argument
21 if (ath10k_mac_tx_frm_has_freq(ar)) in ath10k_report_offchan_tx()
29 spin_lock_bh(&ar->data_lock); in ath10k_report_offchan_tx()
30 if (ar->offchan_tx_skb != skb) { in ath10k_report_offchan_tx()
31 ath10k_warn(ar, "completed old offchannel frame\n"); in ath10k_report_offchan_tx()
35 complete(&ar->offchan_tx_completed); in ath10k_report_offchan_tx()
36 ar->offchan_tx_skb = NULL; /* just for sanity */ in ath10k_report_offchan_tx()
38 ath10k_dbg(ar, ATH10K_DBG_HTT, "completed offchannel skb %pK\n", skb); in ath10k_report_offchan_tx()
40 spin_unlock_bh(&ar->data_lock); in ath10k_report_offchan_tx()
47 struct ath10k *ar = htt->ar; in ath10k_txrx_tx_unref() local
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dmac.c575 struct ath11k_vif *ath11k_mac_get_arvif(struct ath11k *ar, u32 vdev_id) in ath11k_mac_get_arvif() argument
584 ieee80211_iterate_active_interfaces_atomic(ar->hw, in ath11k_mac_get_arvif()
589 ath11k_warn(ar->ab, "No VIF found for vdev %d\n", vdev_id); in ath11k_mac_get_arvif()
605 if (pdev && pdev->ar && in ath11k_mac_get_arvif_by_vdev_id()
606 (pdev->ar->allocated_vdev_map & (1LL << vdev_id))) { in ath11k_mac_get_arvif_by_vdev_id()
607 arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); in ath11k_mac_get_arvif_by_vdev_id()
623 if (pdev && pdev->ar) { in ath11k_mac_get_ar_by_vdev_id()
624 if (pdev->ar->allocated_vdev_map & (1LL << vdev_id)) in ath11k_mac_get_ar_by_vdev_id()
625 return pdev->ar; in ath11k_mac_get_ar_by_vdev_id()
639 return pdev ? pdev->ar : NULL; in ath11k_mac_get_ar_by_pdev_id()
[all …]
H A Dthermal.c27 struct ath11k *ar = cdev->devdata; in ath11k_thermal_get_cur_throttle_state() local
29 mutex_lock(&ar->conf_mutex); in ath11k_thermal_get_cur_throttle_state()
30 *state = ar->thermal.throttle_state; in ath11k_thermal_get_cur_throttle_state()
31 mutex_unlock(&ar->conf_mutex); in ath11k_thermal_get_cur_throttle_state()
40 struct ath11k *ar = cdev->devdata; in ath11k_thermal_set_cur_throttle_state() local
44 ath11k_warn(ar->ab, "throttle state %ld is exceeding the limit %d\n", in ath11k_thermal_set_cur_throttle_state()
48 mutex_lock(&ar->conf_mutex); in ath11k_thermal_set_cur_throttle_state()
49 ret = ath11k_thermal_set_throttling(ar, throttle_state); in ath11k_thermal_set_cur_throttle_state()
51 ar->thermal.throttle_state = throttle_state; in ath11k_thermal_set_cur_throttle_state()
52 mutex_unlock(&ar->conf_mutex); in ath11k_thermal_set_cur_throttle_state()
[all …]
H A Dwow.c31 struct ath11k *ar = ath11k_ab_to_ar(ab, 0); in ath11k_wow_enable() local
39 ret = ath11k_wmi_wow_enable(ar); in ath11k_wow_enable()
68 struct ath11k *ar = ath11k_ab_to_ar(ab, 0); in ath11k_wow_wakeup() local
80 ret = ath11k_wmi_wow_host_wakeup_ind(ar); in ath11k_wow_wakeup()
98 struct ath11k *ar = arvif->ar; in ath11k_wow_vif_cleanup() local
102 ret = ath11k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath11k_wow_vif_cleanup()
104 ath11k_warn(ar->ab, "failed to issue wow wakeup for event %s on vdev %i: %d\n", in ath11k_wow_vif_cleanup()
110 for (i = 0; i < ar->wow.max_num_patterns; i++) { in ath11k_wow_vif_cleanup()
111 ret = ath11k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath11k_wow_vif_cleanup()
113 ath11k_warn(ar->ab, "failed to delete wow pattern %d for vdev %i: %d\n", in ath11k_wow_vif_cleanup()
[all …]
H A Ddebugfs.c56 void ath11k_debugfs_add_dbring_entry(struct ath11k *ar, in ath11k_debugfs_add_dbring_entry() argument
68 dbr_debug = ar->debug.dbr_debug[id]; in ath11k_debugfs_add_dbring_entry()
95 static void ath11k_debugfs_fw_stats_reset(struct ath11k *ar) in ath11k_debugfs_fw_stats_reset() argument
97 spin_lock_bh(&ar->data_lock); in ath11k_debugfs_fw_stats_reset()
98 ar->fw_stats_done = false; in ath11k_debugfs_fw_stats_reset()
99 ath11k_fw_stats_pdevs_free(&ar->fw_stats.pdevs); in ath11k_debugfs_fw_stats_reset()
100 ath11k_fw_stats_vdevs_free(&ar->fw_stats.vdevs); in ath11k_debugfs_fw_stats_reset()
101 spin_unlock_bh(&ar->data_lock); in ath11k_debugfs_fw_stats_reset()
104 void ath11k_debugfs_fw_stats_process(struct ath11k *ar, struct ath11k_fw_stats *stats) in ath11k_debugfs_fw_stats_process() argument
106 struct ath11k_base *ab = ar->ab; in ath11k_debugfs_fw_stats_process()
[all …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dmac.c532 struct ath12k_vif *ath12k_mac_get_arvif(struct ath12k *ar, u32 vdev_id) in ath12k_mac_get_arvif() argument
540 ieee80211_iterate_active_interfaces_atomic(ar->hw, in ath12k_mac_get_arvif()
545 ath12k_warn(ar->ab, "No VIF found for vdev %d\n", vdev_id); in ath12k_mac_get_arvif()
561 if (pdev && pdev->ar) { in ath12k_mac_get_arvif_by_vdev_id()
562 arvif = ath12k_mac_get_arvif(pdev->ar, vdev_id); in ath12k_mac_get_arvif_by_vdev_id()
578 if (pdev && pdev->ar) { in ath12k_mac_get_ar_by_vdev_id()
579 if (pdev->ar->allocated_vdev_map & (1LL << vdev_id)) in ath12k_mac_get_ar_by_vdev_id()
580 return pdev->ar; in ath12k_mac_get_ar_by_vdev_id()
594 return pdev ? pdev->ar : NULL; in ath12k_mac_get_ar_by_pdev_id()
604 return (pdev->ar ? pdev->ar : NULL); in ath12k_mac_get_ar_by_pdev_id()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_ar.c51 struct ar { struct
93 static int ar_parse_common_header(struct ar *ar, struct archive_entry *,
100 struct ar *ar; in archive_read_support_format_ar() local
106 ar = calloc(1, sizeof(*ar)); in archive_read_support_format_ar()
107 if (ar == NULL) { in archive_read_support_format_ar()
112 ar->strtab = NULL; in archive_read_support_format_ar()
115 ar, in archive_read_support_format_ar()
128 free(ar); in archive_read_support_format_ar()
137 struct ar *ar; in archive_read_format_ar_cleanup() local
139 ar = (struct ar *)(a->format->data); in archive_read_format_ar_cleanup()
[all …]

12345678910>>...16