Home
last modified time | relevance | path

Searched refs:pdsv (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/vdpa/pds/
H A Dvdpa_dev.c30 struct pds_vdpa_device *pdsv = container_of(nb, struct pds_vdpa_device, nb); in pds_vdpa_notify_handler() local
31 struct device *dev = &pdsv->vdpa_aux->padev->aux_dev.dev; in pds_vdpa_notify_handler()
36 if (pdsv->config_cb.callback) in pds_vdpa_notify_handler()
37 pdsv->config_cb.callback(pdsv->config_cb.private); in pds_vdpa_notify_handler()
43 static int pds_vdpa_register_event_handler(struct pds_vdpa_device *pdsv) in pds_vdpa_register_event_handler() argument
45 struct device *dev = &pdsv->vdpa_aux->padev->aux_dev.dev; in pds_vdpa_register_event_handler()
46 struct notifier_block *nb = &pdsv->nb; in pds_vdpa_register_event_handler()
64 static void pds_vdpa_unregister_event_handler(struct pds_vdpa_device *pdsv) in pds_vdpa_unregister_event_handler() argument
66 if (pdsv->nb.notifier_call) { in pds_vdpa_unregister_event_handler()
67 pdsc_unregister_notify(&pdsv->nb); in pds_vdpa_unregister_event_handler()
[all …]
H A Dcmds.c16 int pds_vdpa_init_hw(struct pds_vdpa_device *pdsv) in pds_vdpa_init_hw() argument
18 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev; in pds_vdpa_init_hw()
22 .vdpa_init.vdpa_index = pdsv->vdpa_index, in pds_vdpa_init_hw()
23 .vdpa_init.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_init_hw()
38 int pds_vdpa_cmd_reset(struct pds_vdpa_device *pdsv) in pds_vdpa_cmd_reset() argument
40 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev; in pds_vdpa_cmd_reset()
44 .vdpa.vdpa_index = pdsv->vdpa_index, in pds_vdpa_cmd_reset()
45 .vdpa.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_reset()
58 int pds_vdpa_cmd_set_status(struct pds_vdpa_device *pdsv, u8 status) in pds_vdpa_cmd_set_status() argument
60 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev; in pds_vdpa_cmd_set_status()
[all …]
H A Dcmds.h7 int pds_vdpa_init_hw(struct pds_vdpa_device *pdsv);
9 int pds_vdpa_cmd_reset(struct pds_vdpa_device *pdsv);
10 int pds_vdpa_cmd_set_status(struct pds_vdpa_device *pdsv, u8 status);
11 int pds_vdpa_cmd_set_mac(struct pds_vdpa_device *pdsv, u8 *mac);
12 int pds_vdpa_cmd_set_max_vq_pairs(struct pds_vdpa_device *pdsv, u16 max_vqp);
13 int pds_vdpa_cmd_init_vq(struct pds_vdpa_device *pdsv, u16 qid, u16 invert_idx,
15 int pds_vdpa_cmd_reset_vq(struct pds_vdpa_device *pdsv, u16 qid, u16 invert_idx,
H A Ddebugfs.c203 struct pds_vdpa_device *pdsv = seq->private; in config_show() local
207 memcpy_fromio(&vc, pdsv->vdpa_aux->vd_mdev.device, in config_show()
224 status = vp_modern_get_status(&pdsv->vdpa_aux->vd_mdev); in config_show()
227 seq_printf(seq, "negotiated_features: %#llx\n", pdsv->negotiated_features); in config_show()
228 print_feature_bits_all(seq, pdsv->negotiated_features); in config_show()
229 seq_printf(seq, "vdpa_index: %d\n", pdsv->vdpa_index); in config_show()
230 seq_printf(seq, "num_vqs: %d\n", pdsv->num_vqs); in config_show()
261 debugfs_create_file("config", 0400, vdpa_aux->dentry, vdpa_aux->pdsv, &config_fops); in pds_vdpa_debugfs_add_vdpadev()
263 for (i = 0; i < vdpa_aux->pdsv->num_vqs; i++) { in pds_vdpa_debugfs_add_vdpadev()
268 &vdpa_aux->pdsv->vqs[i], &vq_fops); in pds_vdpa_debugfs_add_vdpadev()
H A Dvdpa_dev.h28 struct pds_vdpa_device *pdsv; member
49 void pds_vdpa_release_irqs(struct pds_vdpa_device *pdsv);
H A Daux_drv.h16 struct pds_vdpa_device *pdsv; member
H A Daux_drv.c96 pds_vdpa_release_irqs(vdpa_aux->pdsv); in pds_vdpa_remove()