Home
last modified time | relevance | path

Searched refs:adf_accel_dev (Results 1 – 25 of 74) sorted by relevance

123

/Linux-v6.6/drivers/crypto/intel/qat/qat_common/
Dadf_common_drv.h44 int (*event_hld)(struct adf_accel_dev *accel_dev,
55 int adf_dev_up(struct adf_accel_dev *accel_dev, bool init_config);
56 int adf_dev_down(struct adf_accel_dev *accel_dev, bool cache_config);
57 int adf_dev_restart(struct adf_accel_dev *accel_dev);
61 int adf_devmgr_add_dev(struct adf_accel_dev *accel_dev,
62 struct adf_accel_dev *pf);
63 void adf_devmgr_rm_dev(struct adf_accel_dev *accel_dev,
64 struct adf_accel_dev *pf);
66 struct adf_accel_dev *adf_devmgr_get_dev_by_id(u32 id);
67 struct adf_accel_dev *adf_devmgr_get_first(void);
[all …]
Dadf_heartbeat.h9 struct adf_accel_dev;
42 int adf_heartbeat_init(struct adf_accel_dev *accel_dev);
43 int adf_heartbeat_start(struct adf_accel_dev *accel_dev);
44 void adf_heartbeat_shutdown(struct adf_accel_dev *accel_dev);
46 int adf_heartbeat_ms_to_ticks(struct adf_accel_dev *accel_dev, unsigned int time_ms,
48 int adf_heartbeat_save_cfg_param(struct adf_accel_dev *accel_dev,
50 void adf_heartbeat_status(struct adf_accel_dev *accel_dev,
52 void adf_heartbeat_check_ctrs(struct adf_accel_dev *accel_dev);
55 static inline int adf_heartbeat_init(struct adf_accel_dev *accel_dev) in adf_heartbeat_init()
60 static inline int adf_heartbeat_start(struct adf_accel_dev *accel_dev) in adf_heartbeat_start()
[all …]
Dadf_accel_devices.h151 struct adf_accel_dev;
156 int (*enable_comms)(struct adf_accel_dev *accel_dev);
162 int (*send_msg)(struct adf_accel_dev *accel_dev, struct pfvf_message msg,
164 struct pfvf_message (*recv_msg)(struct adf_accel_dev *accel_dev,
176 u32 (*get_accel_cap)(struct adf_accel_dev *accel_dev);
185 int (*alloc_irq)(struct adf_accel_dev *accel_dev);
186 void (*free_irq)(struct adf_accel_dev *accel_dev);
187 void (*enable_error_correction)(struct adf_accel_dev *accel_dev);
188 int (*init_admin_comms)(struct adf_accel_dev *accel_dev);
189 void (*exit_admin_comms)(struct adf_accel_dev *accel_dev);
[all …]
Dadf_dev_mgr.c22 static int adf_get_vf_id(struct adf_accel_dev *vf) in adf_get_vf_id()
29 static int adf_get_vf_num(struct adf_accel_dev *vf) in adf_get_vf_num()
104 struct adf_accel_dev *ptr = in adf_devmgr_update_class_index()
105 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_update_class_index()
139 int adf_devmgr_add_dev(struct adf_accel_dev *accel_dev, in adf_devmgr_add_dev()
140 struct adf_accel_dev *pf) in adf_devmgr_add_dev()
159 struct adf_accel_dev *ptr = in adf_devmgr_add_dev()
160 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_add_dev()
248 void adf_devmgr_rm_dev(struct adf_accel_dev *accel_dev, in adf_devmgr_rm_dev()
249 struct adf_accel_dev *pf) in adf_devmgr_rm_dev()
[all …]
Dadf_dbgfs.h8 void adf_dbgfs_init(struct adf_accel_dev *accel_dev);
9 void adf_dbgfs_add(struct adf_accel_dev *accel_dev);
10 void adf_dbgfs_rm(struct adf_accel_dev *accel_dev);
11 void adf_dbgfs_exit(struct adf_accel_dev *accel_dev);
13 static inline void adf_dbgfs_init(struct adf_accel_dev *accel_dev) in adf_dbgfs_init()
17 static inline void adf_dbgfs_add(struct adf_accel_dev *accel_dev) in adf_dbgfs_add()
21 static inline void adf_dbgfs_rm(struct adf_accel_dev *accel_dev) in adf_dbgfs_rm()
25 static inline void adf_dbgfs_exit(struct adf_accel_dev *accel_dev) in adf_dbgfs_exit()
Dadf_vf_isr.c27 struct adf_accel_dev *accel_dev;
31 void adf_enable_pf2vf_interrupts(struct adf_accel_dev *accel_dev) in adf_enable_pf2vf_interrupts()
38 void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev) in adf_disable_pf2vf_interrupts()
46 static int adf_enable_msi(struct adf_accel_dev *accel_dev) in adf_enable_msi()
60 static void adf_disable_msi(struct adf_accel_dev *accel_dev) in adf_disable_msi()
71 struct adf_accel_dev *accel_dev = stop_data->accel_dev; in adf_dev_stop_async()
81 int adf_pf2vf_handle_pf_restarting(struct adf_accel_dev *accel_dev) in adf_pf2vf_handle_pf_restarting()
102 struct adf_accel_dev *accel_dev = data; in adf_pf2vf_bh_handler()
114 static int adf_setup_pf2vf_bh(struct adf_accel_dev *accel_dev) in adf_setup_pf2vf_bh()
123 static void adf_cleanup_pf2vf_bh(struct adf_accel_dev *accel_dev) in adf_cleanup_pf2vf_bh()
[all …]
Dadf_cfg.h32 int adf_cfg_dev_add(struct adf_accel_dev *accel_dev);
33 void adf_cfg_dev_remove(struct adf_accel_dev *accel_dev);
34 void adf_cfg_dev_dbgfs_add(struct adf_accel_dev *accel_dev);
35 void adf_cfg_dev_dbgfs_rm(struct adf_accel_dev *accel_dev);
36 int adf_cfg_section_add(struct adf_accel_dev *accel_dev, const char *name);
37 void adf_cfg_del_all(struct adf_accel_dev *accel_dev);
38 int adf_cfg_add_key_value_param(struct adf_accel_dev *accel_dev,
42 int adf_cfg_get_param_value(struct adf_accel_dev *accel_dev,
Dadf_pfvf_vf_msg.h7 int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev);
8 void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev);
9 int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev);
10 int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev);
11 int adf_vf2pf_get_ring_to_svc(struct adf_accel_dev *accel_dev);
13 static inline int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev) in adf_vf2pf_notify_init()
18 static inline void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev) in adf_vf2pf_notify_shutdown()
Dadf_isr.c21 static int adf_enable_msix(struct adf_accel_dev *accel_dev) in adf_enable_msix()
59 void adf_enable_vf2pf_interrupts(struct adf_accel_dev *accel_dev, u32 vf_mask) in adf_enable_vf2pf_interrupts()
69 void adf_disable_all_vf2pf_interrupts(struct adf_accel_dev *accel_dev) in adf_disable_all_vf2pf_interrupts()
79 static u32 adf_disable_pending_vf2pf_interrupts(struct adf_accel_dev *accel_dev) in adf_disable_pending_vf2pf_interrupts()
91 static bool adf_handle_vf2pf_int(struct adf_accel_dev *accel_dev) in adf_handle_vf2pf_int()
124 static bool adf_handle_pm_int(struct adf_accel_dev *accel_dev) in adf_handle_pm_int()
137 struct adf_accel_dev *accel_dev = dev_ptr; in adf_msix_isr_ae()
154 static void adf_free_irqs(struct adf_accel_dev *accel_dev) in adf_free_irqs()
179 static int adf_request_irqs(struct adf_accel_dev *accel_dev) in adf_request_irqs()
247 static int adf_isr_alloc_msix_vectors_data(struct adf_accel_dev *accel_dev) in adf_isr_alloc_msix_vectors_data()
[all …]
Dqat_compression.c24 static int qat_compression_free_instances(struct adf_accel_dev *accel_dev) in qat_compression_free_instances()
52 struct adf_accel_dev *accel_dev = NULL; in qat_compression_get_instance_node()
57 struct adf_accel_dev *tmp_dev; in qat_compression_get_instance_node()
61 tmp_dev = list_entry(itr, struct adf_accel_dev, list); in qat_compression_get_instance_node()
78 struct adf_accel_dev *tmp_dev; in qat_compression_get_instance_node()
80 tmp_dev = list_entry(itr, struct adf_accel_dev, list); in qat_compression_get_instance_node()
114 static int qat_compression_create_instances(struct adf_accel_dev *accel_dev) in qat_compression_create_instances()
192 static int qat_compression_alloc_dc_data(struct adf_accel_dev *accel_dev) in qat_compression_alloc_dc_data()
227 static void qat_free_dc_data(struct adf_accel_dev *accel_dev) in qat_free_dc_data()
242 static int qat_compression_init(struct adf_accel_dev *accel_dev) in qat_compression_init()
[all …]
Dadf_admin.c111 static int adf_put_admin_msg_sync(struct adf_accel_dev *accel_dev, u32 ae, in adf_put_admin_msg_sync()
153 static int adf_send_admin(struct adf_accel_dev *accel_dev, in adf_send_admin()
168 static int adf_init_ae(struct adf_accel_dev *accel_dev) in adf_init_ae()
182 static int adf_set_fw_constants(struct adf_accel_dev *accel_dev) in adf_set_fw_constants()
199 int adf_get_fw_timestamp(struct adf_accel_dev *accel_dev, u64 *timestamp) in adf_get_fw_timestamp()
215 static int adf_get_dc_capabilities(struct adf_accel_dev *accel_dev, in adf_get_dc_capabilities()
244 int adf_get_ae_fw_counters(struct adf_accel_dev *accel_dev, u16 ae, u64 *reqs, u64 *resps) in adf_get_ae_fw_counters()
262 int adf_send_admin_tim_sync(struct adf_accel_dev *accel_dev, u32 cnt) in adf_send_admin_tim_sync()
274 int adf_send_admin_hb_timer(struct adf_accel_dev *accel_dev, uint32_t ticks) in adf_send_admin_hb_timer()
295 int adf_send_admin_init(struct adf_accel_dev *accel_dev) in adf_send_admin_init()
[all …]
Dadf_aer.c16 struct adf_accel_dev *accel_dev = adf_devmgr_pci_to_accel_dev(pdev); in adf_error_detected()
35 struct adf_accel_dev *accel_dev;
40 void adf_reset_sbr(struct adf_accel_dev *accel_dev) in adf_reset_sbr()
65 void adf_reset_flr(struct adf_accel_dev *accel_dev) in adf_reset_flr()
71 void adf_dev_restore(struct adf_accel_dev *accel_dev) in adf_dev_restore()
89 struct adf_accel_dev *accel_dev = reset_data->accel_dev; in adf_device_reset_worker()
109 static int adf_dev_aer_schedule_reset(struct adf_accel_dev *accel_dev, in adf_dev_aer_schedule_reset()
148 struct adf_accel_dev *accel_dev = adf_devmgr_pci_to_accel_dev(pdev); in adf_slot_reset()
Dadf_gen4_timer.h10 struct adf_accel_dev;
13 struct adf_accel_dev *accel_dev;
18 int adf_gen4_timer_start(struct adf_accel_dev *accel_dev);
19 void adf_gen4_timer_stop(struct adf_accel_dev *accel_dev);
Dadf_sysfs.c18 struct adf_accel_dev *accel_dev; in state_show()
32 struct adf_accel_dev *accel_dev; in state_store()
94 struct adf_accel_dev *accel_dev; in cfg_services_show()
109 static int adf_sysfs_update_dev_config(struct adf_accel_dev *accel_dev, in adf_sysfs_update_dev_config()
121 struct adf_accel_dev *accel_dev; in cfg_services_store()
159 struct adf_accel_dev *accel_dev; in pm_idle_enabled_show()
178 struct adf_accel_dev *accel_dev; in pm_idle_enabled_store()
222 int adf_sysfs_init(struct adf_accel_dev *accel_dev) in adf_sysfs_init()
Dadf_pfvf_vf_proto.h9 int adf_send_vf2pf_msg(struct adf_accel_dev *accel_dev, struct pfvf_message msg);
10 int adf_send_vf2pf_req(struct adf_accel_dev *accel_dev, struct pfvf_message msg,
12 int adf_send_vf2pf_blkmsg_req(struct adf_accel_dev *accel_dev, u8 type,
15 int adf_enable_vf2pf_comms(struct adf_accel_dev *accel_dev);
Dadf_pfvf_pf_msg.h8 void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev);
10 typedef int (*adf_pf2vf_blkmsg_provider)(struct adf_accel_dev *accel_dev,
13 int adf_pf_capabilities_msg_provider(struct adf_accel_dev *accel_dev,
15 int adf_pf_ring_to_svc_msg_provider(struct adf_accel_dev *accel_dev,
Dadf_heartbeat.c31 static int adf_hb_check_polling_freq(struct adf_accel_dev *accel_dev) in adf_hb_check_polling_freq()
56 static bool validate_hb_ctrs_cnt(struct adf_accel_dev *accel_dev) in validate_hb_ctrs_cnt()
83 void adf_heartbeat_check_ctrs(struct adf_accel_dev *accel_dev) in adf_heartbeat_check_ctrs()
98 static int get_timer_ticks(struct adf_accel_dev *accel_dev, unsigned int *value) in get_timer_ticks()
164 static int adf_hb_get_status(struct adf_accel_dev *accel_dev) in adf_hb_get_status()
213 void adf_heartbeat_status(struct adf_accel_dev *accel_dev, in adf_heartbeat_status()
243 int adf_heartbeat_ms_to_ticks(struct adf_accel_dev *accel_dev, unsigned int time_ms, in adf_heartbeat_ms_to_ticks()
259 int adf_heartbeat_save_cfg_param(struct adf_accel_dev *accel_dev, in adf_heartbeat_save_cfg_param()
271 int adf_heartbeat_init(struct adf_accel_dev *accel_dev) in adf_heartbeat_init()
299 int adf_heartbeat_start(struct adf_accel_dev *accel_dev) in adf_heartbeat_start()
[all …]
Dadf_pfvf_vf_proto.c33 int adf_send_vf2pf_msg(struct adf_accel_dev *accel_dev, struct pfvf_message msg) in adf_send_vf2pf_msg()
50 static struct pfvf_message adf_recv_pf2vf_msg(struct adf_accel_dev *accel_dev) in adf_recv_pf2vf_msg()
69 int adf_send_vf2pf_req(struct adf_accel_dev *accel_dev, struct pfvf_message msg, in adf_send_vf2pf_req()
106 static int adf_vf2pf_blkmsg_data_req(struct adf_accel_dev *accel_dev, bool crc, in adf_vf2pf_blkmsg_data_req()
162 static int adf_vf2pf_blkmsg_get_byte(struct adf_accel_dev *accel_dev, u8 type, in adf_vf2pf_blkmsg_get_byte()
182 static int adf_vf2pf_blkmsg_get_crc(struct adf_accel_dev *accel_dev, u8 type, in adf_vf2pf_blkmsg_get_crc()
223 int adf_send_vf2pf_blkmsg_req(struct adf_accel_dev *accel_dev, u8 type, in adf_send_vf2pf_blkmsg_req()
302 static bool adf_handle_pf2vf_msg(struct adf_accel_dev *accel_dev, in adf_handle_pf2vf_msg()
329 bool adf_recv_and_handle_pf2vf_msg(struct adf_accel_dev *accel_dev) in adf_recv_and_handle_pf2vf_msg()
349 int adf_enable_vf2pf_comms(struct adf_accel_dev *accel_dev) in adf_enable_vf2pf_comms()
Dadf_cfg.c67 int adf_cfg_dev_add(struct adf_accel_dev *accel_dev) in adf_cfg_dev_add()
81 void adf_cfg_dev_dbgfs_add(struct adf_accel_dev *accel_dev) in adf_cfg_dev_dbgfs_add()
91 void adf_cfg_dev_dbgfs_rm(struct adf_accel_dev *accel_dev) in adf_cfg_dev_dbgfs_rm()
104 void adf_cfg_del_all(struct adf_accel_dev *accel_dev) in adf_cfg_del_all()
124 void adf_cfg_dev_remove(struct adf_accel_dev *accel_dev) in adf_cfg_dev_remove()
202 static struct adf_cfg_section *adf_cfg_sec_find(struct adf_accel_dev *accel_dev, in adf_cfg_sec_find()
217 static int adf_cfg_key_val_get(struct adf_accel_dev *accel_dev, in adf_cfg_key_val_get()
249 int adf_cfg_add_key_value_param(struct adf_accel_dev *accel_dev, in adf_cfg_add_key_value_param()
320 int adf_cfg_section_add(struct adf_accel_dev *accel_dev, const char *name) in adf_cfg_section_add()
341 int adf_cfg_get_param_value(struct adf_accel_dev *accel_dev, in adf_cfg_get_param_value()
Dadf_accel_engine.c10 static int adf_ae_fw_load_images(struct adf_accel_dev *accel_dev, void *fw_addr, in adf_ae_fw_load_images()
57 int adf_ae_fw_load(struct adf_accel_dev *accel_dev) in adf_ae_fw_load()
108 void adf_ae_fw_release(struct adf_accel_dev *accel_dev) in adf_ae_fw_release()
125 int adf_ae_start(struct adf_accel_dev *accel_dev) in adf_ae_start()
141 int adf_ae_stop(struct adf_accel_dev *accel_dev) in adf_ae_stop()
162 static int adf_ae_reset(struct adf_accel_dev *accel_dev, int ae) in adf_ae_reset()
173 int adf_ae_init(struct adf_accel_dev *accel_dev) in adf_ae_init()
200 int adf_ae_shutdown(struct adf_accel_dev *accel_dev) in adf_ae_shutdown()
Dadf_dbgfs.c19 void adf_dbgfs_init(struct adf_accel_dev *accel_dev) in adf_dbgfs_init()
43 void adf_dbgfs_exit(struct adf_accel_dev *accel_dev) in adf_dbgfs_exit()
57 void adf_dbgfs_add(struct adf_accel_dev *accel_dev) in adf_dbgfs_add()
72 void adf_dbgfs_rm(struct adf_accel_dev *accel_dev) in adf_dbgfs_rm()
Dadf_heartbeat_dbgfs.h7 struct adf_accel_dev;
9 void adf_heartbeat_dbgfs_add(struct adf_accel_dev *accel_dev);
10 void adf_heartbeat_dbgfs_rm(struct adf_accel_dev *accel_dev);
Dadf_fw_counters.h6 struct adf_accel_dev;
8 void adf_fw_counters_dbgfs_add(struct adf_accel_dev *accel_dev);
9 void adf_fw_counters_dbgfs_rm(struct adf_accel_dev *accel_dev);
Dadf_pfvf_vf_msg.c18 int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev) in adf_vf2pf_notify_init()
40 void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev) in adf_vf2pf_notify_shutdown()
51 int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev) in adf_vf2pf_request_version()
96 int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev) in adf_vf2pf_get_capabilities()
142 int adf_vf2pf_get_ring_to_svc(struct adf_accel_dev *accel_dev) in adf_vf2pf_get_ring_to_svc()
Dadf_gen4_pm.c20 struct adf_accel_dev *accel_dev;
24 static int send_host_msg(struct adf_accel_dev *accel_dev) in send_host_msg()
60 struct adf_accel_dev *accel_dev = pm_data->accel_dev; in pm_bh_handler()
84 bool adf_gen4_handle_pm_interrupt(struct adf_accel_dev *accel_dev) in adf_gen4_handle_pm_interrupt()
122 int adf_gen4_enable_pm(struct adf_accel_dev *accel_dev) in adf_gen4_enable_pm()

123