Home
last modified time | relevance | path

Searched refs:hw_device (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/sys/dev/qat/qat_common/
H A Dadf_accel_engine.c45 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_ae_fw_load() local
54 if (!hw_device->fw_name) in adf_ae_fw_load()
57 if (request_firmware(&loader_data->uof_fw, hw_device->fw_name)) { in adf_ae_fw_load()
60 hw_device->fw_name); in adf_ae_fw_load()
64 if (request_firmware(&loader_data->mmp_fw, hw_device->fw_mmp_name)) { in adf_ae_fw_load()
67 hw_device->fw_mmp_name); in adf_ae_fw_load()
82 if (hw_device->accel_capabilities_mask & in adf_ae_fw_load()
92 if (hw_device->get_objs_num) in adf_ae_fw_load()
93 max_objs = hw_device->get_objs_num(accel_dev); in adf_ae_fw_load()
99 if (hw_device->get_obj_name && hw_device->get_obj_cfg_ae_mask) { in adf_ae_fw_load()
[all …]
H A Dadf_aer.c122 struct adf_hw_device_data *hw_device = accel_dev->hw_device;
139 if (hw_device->disable_arb) { in adf_dev_pre_reset()
141 hw_device->disable_arb(accel_dev); in adf_dev_pre_reset()
148 struct adf_hw_device_data *hw_device = accel_dev->hw_device;
155 hw_device->aerucm_mask, in adf_dev_post_reset()
166 struct adf_hw_device_data *hw_device = accel_dev->hw_device;
169 if (hw_device in adf_dev_restore()
126 struct adf_hw_device_data *hw_device = accel_dev->hw_device; adf_dev_pre_reset() local
152 struct adf_hw_device_data *hw_device = accel_dev->hw_device; adf_dev_post_reset() local
170 struct adf_hw_device_data *hw_device = accel_dev->hw_device; adf_dev_restore() local
[all...]
H A Dadf_heartbeat.c65 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_get_hb_timer()
109 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_get_heartbeat_status() local
110 const size_t max_aes = hw_device->get_num_aes(hw_device); in adf_get_heartbeat_status()
111 const size_t hb_ctrs = hw_device->heartbeat_ctr_num; in adf_get_heartbeat_status()
145 ae_mask = hw_device->ae_mask; in adf_get_heartbeat_status()
186 if (!accel_dev || !accel_dev->hw_device || in adf_heartbeat_status()
187 !accel_dev->hw_device->get_heartbeat_status || in adf_heartbeat_status()
206 if (unlikely(accel_dev->hw_device->get_heartbeat_status(accel_dev))) { in adf_heartbeat_status()
H A Dadf_freebsd_cnvnr_ctrs_dbg.c39 struct adf_hw_device_data *hw_device; in qat_cnvnr_ctrs_dbg_read() local
57 hw_device = accel_dev->hw_device; in qat_cnvnr_ctrs_dbg_read()
58 if (!hw_device) { in qat_cnvnr_ctrs_dbg_read()
91 num_aes = hw_device->get_num_aes(hw_device); in qat_cnvnr_ctrs_dbg_read()
H A Dadf_freebsd_admin.c138 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_put_admin_msg_sync()
228 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_init_me() local
229 u32 ae_mask = hw_device->ae_mask; in adf_init_me()
252 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_set_heartbeat_timer() local
253 u32 ae_mask = hw_device->ae_mask; in adf_set_heartbeat_timer()
292 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_set_fw_constants() local
293 u32 ae_mask = hw_device->admin_ae_mask; in adf_set_fw_constants()
404 accel_dev->hw_device->extended_dc_capabilities = in adf_send_admin_init()
470 hw_data = accel_dev->hw_device; in adf_init_admin_comms()
H A Dadf_fw_counters.c41 struct adf_hw_device_data *hw_device; in adf_get_fw_counters() local
53 hw_device = accel_dev->hw_device; in adf_get_fw_counters()
54 if (!hw_device) { in adf_get_fw_counters()
62 ae_mask = hw_device->ae_mask; in adf_get_fw_counters()
105 if (hw_device->count_ras_event && in adf_get_fw_counters()
106 hw_device->count_ras_event(accel_dev, in adf_get_fw_counters()
H A Dadf_freebsd_uio_cleanup.c115 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in get_orphan_bundle()
132 tx_mask = accel_dev->hw_device->tx_rings_mask; in get_orphan_bundle()
133 asym_mask = accel_dev->hw_device->asym_rings_mask; in get_orphan_bundle()
193 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in cleanup_all_ring()
270 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in bundle_need_cleanup()
291 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in cleanup_orphan_ring()
329 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_uio_do_cleanup_orphan()
H A Dadf_hw_arbiter.c51 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_arb()
71 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_gen2_arb()
102 struct adf_hw_csr_info *csr_info = &accel_dev->hw_device->csr_info; in adf_update_ring_arb()
122 struct adf_hw_csr_info *csr_info = &accel_dev->hw_device->csr_info; in adf_update_uio_ring_arb()
179 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_exit_arb()
H A Dadf_init.c83 hw_data = accel_dev->hw_device; in adf_cfg_add_device_params()
169 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_cfg_add_ext_params()
207 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_set_ssm_wdtimer()
266 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_dev_init()
413 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_dev_start()
532 if (accel_dev->hw_device->int_timer_exit) in adf_dev_stop()
533 accel_dev->hw_device->int_timer_exit(accel_dev); in adf_dev_stop()
569 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_dev_shutdown()
H A Dadf_transport.c212 num_rings_per_bank = accel_dev->hw_device->num_rings_per_bank; in adf_poll_bank()
314 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_ring()
387 u8 num_rings_per_bank = accel_dev->hw_device->num_rings_per_bank; in adf_create_ring()
493 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_ring_response_handler()
547 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_get_coalesc_timer()
576 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_bank()
665 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_etr_data()
722 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in cleanup_bank()
727 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in cleanup_bank()
/freebsd/sys/dev/qat/qat_hw/qat_c4xxx/
H A Dadf_c4xxx_reset.c26 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_c4xxx_dev_reset() local
33 hw_device->reset_device(accel_dev); in adf_c4xxx_dev_reset()
56 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_c4xxx_dev_restore() local
63 if (hw_device->reset_device) { in adf_c4xxx_dev_restore()
89 if (hw_device->post_reset) { in adf_c4xxx_dev_restore()
91 hw_device->post_reset(accel_dev); in adf_c4xxx_dev_restore()
H A Dadf_c4xxx_hw_data.c206 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in c4xxx_set_ssm_wdtimer() local
208 &GET_BARS(accel_dev)[hw_device->get_misc_bar_id(hw_device)]; in c4xxx_set_ssm_wdtimer()
210 unsigned long accel_mask = hw_device->accel_mask; in c4xxx_set_ssm_wdtimer()
249 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in c4xxx_check_slice_hang() local
251 &GET_BARS(accel_dev)[hw_device->get_misc_bar_id(hw_device)]; in c4xxx_check_slice_hang()
262 accel_mask = hw_device->accel_mask; in c4xxx_check_slice_hang()
319 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in get_eth_doorbell_msg() local
328 hw_device->reset_ack = false; in get_eth_doorbell_msg()
348 hw_device->reset_ack = true; in get_eth_doorbell_msg()
425 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_enable_slice_hang_detection() local
[all …]
H A Dadf_drv.c65 if (accel_dev->hw_device) { in adf_cleanup_accel()
68 adf_clean_hw_data_c4xxx(accel_dev->hw_device); in adf_cleanup_accel()
73 free(accel_dev->hw_device, M_QAT_C4XXX); in adf_cleanup_accel()
74 accel_dev->hw_device = NULL; in adf_cleanup_accel()
119 accel_dev->hw_device = hw_data; in adf_attach()
120 adf_init_hw_data_c4xxx(accel_dev->hw_device); in adf_attach()
206 if (!accel_dev->hw_device->config_device) { in adf_attach()
211 ret = accel_dev->hw_device->config_device(accel_dev); in adf_attach()
/freebsd/sys/dev/qat/qat_hw/qat_4xxx/
H A Dadf_drv.c67 if (accel_dev->hw_device) { in adf_cleanup_accel()
71 adf_clean_hw_data_4xxx(accel_dev->hw_device); in adf_cleanup_accel()
76 free(accel_dev->hw_device, M_QAT_4XXX); in adf_cleanup_accel()
77 accel_dev->hw_device = NULL; in adf_cleanup_accel()
120 accel_dev->hw_device = hw_data; in adf_attach()
121 adf_init_hw_data_4xxx(accel_dev->hw_device, pci_get_device(dev)); in adf_attach()
208 if (!accel_dev->hw_device->config_device) { in adf_attach()
213 ret = accel_dev->hw_device->config_device(accel_dev); in adf_attach()
H A Dadf_4xxx_hw_data.c116 u32 fusectl4 = accel_dev->hw_device->fuses; in get_ae_mask()
124 accel_dev->hw_device->asym_rings_mask = ADF_4XXX_DEF_ASYM_MASK; in adf_set_asym_rings_mask()
299 accel_dev->hw_device->clock_frequency = frequency; in measure_clock()
357 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in get_accel_unit_config()
433 accel_dev->hw_device->extended_dc_capabilities = 0; in get_accel_unit_config()
435 accel_dev->hw_device->accel_capabilities_mask = in get_accel_unit_config()
448 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_accel_unit_services()
547 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in get_obj_cfg_ae_mask()
567 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_4xxx_get_service_type()
617 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_get_dc_extcapabilities()
[all …]
/freebsd/sys/dev/qat/qat_hw/qat_c3xxx/
H A Dadf_drv.c65 if (accel_dev->hw_device) { in adf_cleanup_accel()
68 adf_clean_hw_data_c3xxx(accel_dev->hw_device); in adf_cleanup_accel()
73 free(accel_dev->hw_device, M_QAT_C3XXX); in adf_cleanup_accel()
74 accel_dev->hw_device = NULL; in adf_cleanup_accel()
117 accel_dev->hw_device = hw_data; in adf_attach()
118 adf_init_hw_data_c3xxx(accel_dev->hw_device); in adf_attach()
207 if (!accel_dev->hw_device->config_device) { in adf_attach()
212 ret = accel_dev->hw_device->config_device(accel_dev); in adf_attach()
H A Dadf_c3xxx_hw_data.c131 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_get_arbiter_mapping() local
135 if (hw_device->ae_mask & (1 << i)) in adf_get_arbiter_mapping()
179 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_enable_error_correction() local
186 mask = hw_device->ae_mask; in adf_enable_error_correction()
199 mask = hw_device->accel_mask; in adf_enable_error_correction()
260 accel_dev->hw_device->clock_frequency = frequency; in measure_clock()
271 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in c3xxx_get_hw_cap()
327 return accel_dev->hw_device->ae_mask; in get_obj_cfg_ae_mask()
/freebsd/sys/dev/qat/qat_hw/qat_dh895xcc/
H A Dadf_drv.c65 if (accel_dev->hw_device) { in adf_cleanup_accel()
68 adf_clean_hw_data_dh895xcc(accel_dev->hw_device); in adf_cleanup_accel()
73 free(accel_dev->hw_device, M_QAT_DH895XCC); in adf_cleanup_accel()
74 accel_dev->hw_device = NULL; in adf_cleanup_accel()
115 accel_dev->hw_device = hw_data; in adf_attach()
116 adf_init_hw_data_dh895xcc(accel_dev->hw_device); in adf_attach()
196 if (!accel_dev->hw_device->config_device) { in adf_attach()
201 ret = accel_dev->hw_device->config_device(accel_dev); in adf_attach()
H A Dadf_dh895xcc_hw_data.c196 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_enable_error_correction() local
203 mask = hw_device->ae_mask; in adf_enable_error_correction()
216 mask = hw_device->accel_mask; in adf_enable_error_correction()
320 return accel_dev->hw_device->ae_mask; in get_obj_cfg_ae_mask()
/freebsd/sys/dev/qat/qat_hw/qat_200xx/
H A Dadf_drv.c65 if (accel_dev->hw_device) { in adf_cleanup_accel()
68 adf_clean_hw_data_200xx(accel_dev->hw_device); in adf_cleanup_accel()
73 free(accel_dev->hw_device, M_QAT_200XX); in adf_cleanup_accel()
74 accel_dev->hw_device = NULL; in adf_cleanup_accel()
119 accel_dev->hw_device = hw_data; in adf_attach()
120 adf_init_hw_data_200xx(accel_dev->hw_device); in adf_attach()
218 if (!accel_dev->hw_device->config_device) { in adf_attach()
223 ret = accel_dev->hw_device->config_device(accel_dev); in adf_attach()
H A Dadf_200xx_hw_data.c132 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_get_arbiter_mapping() local
136 if (hw_device->ae_mask & (1 << i)) in adf_get_arbiter_mapping()
299 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_enable_error_correction() local
306 mask = hw_device->ae_mask; in adf_enable_error_correction()
319 mask = hw_device->accel_mask; in adf_enable_error_correction()
335 adf_enable_mmp_error_correction(csr, hw_device); in adf_enable_error_correction()
386 accel_dev->hw_device->clock_frequency = frequency; in measure_clock()
397 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_200xx_get_hw_cap()
452 return accel_dev->hw_device->ae_mask; in get_obj_cfg_ae_mask()
/freebsd/sys/dev/qat/qat_hw/qat_c62x/
H A Dadf_drv.c65 if (accel_dev->hw_device) { in adf_cleanup_accel()
68 adf_clean_hw_data_c62x(accel_dev->hw_device); in adf_cleanup_accel()
73 free(accel_dev->hw_device, M_QAT_C62X); in adf_cleanup_accel()
74 accel_dev->hw_device = NULL; in adf_cleanup_accel()
117 accel_dev->hw_device = hw_data; in adf_attach()
118 adf_init_hw_data_c62x(accel_dev->hw_device); in adf_attach()
208 if (!accel_dev->hw_device->config_device) { in adf_attach()
213 ret = accel_dev->hw_device->config_device(accel_dev); in adf_attach()
H A Dadf_c62x_hw_data.c135 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_get_arbiter_mapping() local
139 if (hw_device->ae_mask & (1 << i)) in adf_get_arbiter_mapping()
183 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_enable_error_correction() local
190 mask = hw_device->ae_mask; in adf_enable_error_correction()
203 mask = hw_device->accel_mask; in adf_enable_error_correction()
264 accel_dev->hw_device->clock_frequency = frequency; in measure_clock()
275 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in c62x_get_hw_cap()
332 return accel_dev->hw_device->ae_mask; in get_obj_cfg_ae_mask()
/freebsd/sys/dev/qat/qat_hw/qat_4xxxvf/
H A Dadf_drv.c74 if (accel_dev->hw_device) { in adf_cleanup_accel()
78 adf_clean_hw_data_4xxxiov(accel_dev->hw_device); in adf_cleanup_accel()
83 free(accel_dev->hw_device, M_QAT_4XXXVF); in adf_cleanup_accel()
84 accel_dev->hw_device = NULL; in adf_cleanup_accel()
120 accel_dev->hw_device = hw_data; in adf_attach()
121 adf_init_hw_data_4xxxiov(accel_dev->hw_device); in adf_attach()
H A Dadf_4xxxvf_hw_data.c180 accel_dev->hw_device->asym_rings_mask = ADF_4XXX_DEF_ASYM_MASK; in adf_set_asym_rings_mask()
190 hw_data = accel_dev->hw_device; in enable_pf2vm_interrupt()
204 hw_data = accel_dev->hw_device; in disable_pf2vm_interrupt()
219 hw_data = accel_dev->hw_device; in interrupt_active_pf2vm()
237 hw_data = accel_dev->hw_device; in get_int_active_bundles()
301 if (bank_number >= accel_dev->hw_device->num_banks) in adf_4xxxvf_ring_pair_reset()

12