Home
last modified time | relevance | path

Searched refs:pdsc (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/amd/pds_core/
H A Ddev.c56 bool pdsc_is_fw_running(struct pdsc *pdsc) in pdsc_is_fw_running() argument
58 if (!pdsc->info_regs) in pdsc_is_fw_running()
61 pdsc->fw_status = ioread8(&pdsc->info_regs->fw_status); in pdsc_is_fw_running()
62 pdsc->last_fw_time = jiffies; in pdsc_is_fw_running()
63 pdsc->last_hb = ioread32(&pdsc->info_regs->fw_heartbeat); in pdsc_is_fw_running()
68 return (pdsc->fw_status != 0xff) && in pdsc_is_fw_running()
69 (pdsc in pdsc_is_fw_running()
72 pdsc_is_fw_good(struct pdsc *pdsc) pdsc_is_fw_good() argument
85 pdsc_devcmd_status(struct pdsc *pdsc) pdsc_devcmd_status() argument
90 pdsc_devcmd_done(struct pdsc *pdsc) pdsc_devcmd_done() argument
95 pdsc_devcmd_dbell(struct pdsc *pdsc) pdsc_devcmd_dbell() argument
101 pdsc_devcmd_clean(struct pdsc *pdsc) pdsc_devcmd_clean() argument
127 pdsc_devcmd_wait(struct pdsc *pdsc, u8 opcode, int max_seconds) pdsc_devcmd_wait() argument
176 pdsc_devcmd_locked(struct pdsc *pdsc, union pds_core_dev_cmd *cmd, union pds_core_dev_comp *comp, int max_seconds) pdsc_devcmd_locked() argument
196 pdsc_devcmd(struct pdsc *pdsc, union pds_core_dev_cmd *cmd, union pds_core_dev_comp *comp, int max_seconds) pdsc_devcmd() argument
208 pdsc_devcmd_init(struct pdsc *pdsc) pdsc_devcmd_init() argument
218 pdsc_devcmd_reset(struct pdsc *pdsc) pdsc_devcmd_reset() argument
228 pdsc_devcmd_identify_locked(struct pdsc *pdsc) pdsc_devcmd_identify_locked() argument
239 pdsc_init_devinfo(struct pdsc *pdsc) pdsc_init_devinfo() argument
259 pdsc_identify(struct pdsc *pdsc) pdsc_identify() argument
312 pdsc_dev_init(struct pdsc *pdsc) pdsc_dev_init() argument
[all...]
H A Dmain.c26 struct pdsc *pdsc = from_timer(pdsc, t, wdtimer); in pdsc_wdtimer_cb() local
28 dev_dbg(pdsc->dev, "%s: jiffies %ld\n", __func__, jiffies); in pdsc_wdtimer_cb()
29 mod_timer(&pdsc->wdtimer, in pdsc_wdtimer_cb()
30 round_jiffies(jiffies + pdsc->wdtimer_period)); in pdsc_wdtimer_cb()
32 queue_work(pdsc->wq, &pdsc->health_work); in pdsc_wdtimer_cb()
35 static void pdsc_unmap_bars(struct pdsc *pdsc) in pdsc_unmap_bars() argument
51 pdsc_map_bars(struct pdsc *pdsc) pdsc_map_bars() argument
134 pdsc_map_dbpage(struct pdsc *pdsc, int page_num) pdsc_map_dbpage() argument
143 struct pdsc *pdsc = pci_get_drvdata(pdev); pdsc_sriov_configure() local
217 pdsc_init_pf(struct pdsc *pdsc) pdsc_init_pf() argument
329 struct pdsc *pdsc; pdsc_probe() local
394 struct pdsc *pdsc = pci_get_drvdata(pdev); pdsc_remove() local
452 pdsc_stop_health_thread(struct pdsc *pdsc) pdsc_stop_health_thread() argument
459 pdsc_restart_health_thread(struct pdsc *pdsc) pdsc_restart_health_thread() argument
467 struct pdsc *pdsc = pci_get_drvdata(pdev); pdsc_reset_prepare() local
479 struct pdsc *pdsc = pci_get_drvdata(pdev); pdsc_reset_done() local
[all...]
H A Dcore.c28 void pdsc_intr_free(struct pdsc *pdsc, int index) in pdsc_intr_free() argument
32 if (index >= pdsc->nintrs || index < 0) { in pdsc_intr_free()
37 intr_info = &pdsc->intr_info[index]; in pdsc_intr_free()
40 dev_dbg(pdsc->dev, "%s: idx %d vec %d name %s\n", in pdsc_intr_free()
43 pds_core_intr_mask(&pdsc->intr_ctrl[index], PDS_CORE_INTR_MASK_SET); in pdsc_intr_free()
44 pds_core_intr_clean(&pdsc->intr_ctrl[index]); in pdsc_intr_free()
51 int pdsc_intr_alloc(struct pdsc *pdsc, char *name, in pdsc_intr_alloc() argument
59 for (index = 0; index < pdsc in pdsc_intr_alloc()
106 pdsc_qcq_intr_free(struct pdsc *pdsc, struct pdsc_qcq *qcq) pdsc_qcq_intr_free() argument
116 pdsc_qcq_intr_alloc(struct pdsc *pdsc, struct pdsc_qcq *qcq) pdsc_qcq_intr_alloc() argument
136 pdsc_qcq_free(struct pdsc *pdsc, struct pdsc_qcq *qcq) pdsc_qcq_free() argument
188 pdsc_qcq_alloc(struct pdsc *pdsc, unsigned int type, unsigned int index, const char *name, unsigned int flags, unsigned int num_descs, unsigned int desc_size, unsigned int cq_desc_size, unsigned int pid, struct pdsc_qcq *qcq) pdsc_qcq_alloc() argument
306 pdsc_core_init(struct pdsc *pdsc) pdsc_core_init() argument
375 pdsc_viftypes_init(struct pdsc *pdsc) pdsc_viftypes_init() argument
405 pdsc_setup(struct pdsc *pdsc, bool init) pdsc_setup() argument
461 pdsc_teardown(struct pdsc *pdsc, bool removing) pdsc_teardown() argument
493 pdsc_start(struct pdsc *pdsc) pdsc_start() argument
501 pdsc_stop(struct pdsc *pdsc) pdsc_stop() argument
515 pdsc_adminq_wait_and_dec_once_unused(struct pdsc *pdsc) pdsc_adminq_wait_and_dec_once_unused() argument
533 pdsc_fw_down(struct pdsc *pdsc) pdsc_fw_down() argument
559 pdsc_fw_up(struct pdsc *pdsc) pdsc_fw_up() argument
600 struct pdsc *pdsc = container_of(work, struct pdsc, health_work); pdsc_health_thread() local
[all...]
H A Ddevlink.c8 pdsc_viftype *pdsc_dl_find_viftype_by_id(struct pdsc *pdsc, in pdsc_dl_find_viftype_by_id() argument
13 if (!pdsc->viftype_status) in pdsc_dl_find_viftype_by_id()
17 if (pdsc->viftype_status[vt].dl_id == dl_id) in pdsc_dl_find_viftype_by_id()
18 return &pdsc->viftype_status[vt]; in pdsc_dl_find_viftype_by_id()
27 struct pdsc *pdsc = devlink_priv(dl); in pdsc_dl_enable_get() local
30 vt_entry = pdsc_dl_find_viftype_by_id(pdsc, id); in pdsc_dl_enable_get()
42 struct pdsc *pdsc in pdsc_dl_enable_set() local
69 struct pdsc *pdsc = devlink_priv(dl); pdsc_dl_enable_validate() local
86 struct pdsc *pdsc = devlink_priv(dl); pdsc_dl_flash_update() local
105 struct pdsc *pdsc = devlink_priv(dl); pdsc_dl_info_get() local
157 struct pdsc *pdsc = devlink_health_reporter_priv(reporter); pdsc_fw_reporter_diagnose() local
[all...]
H A Dadminq.c16 struct pdsc *pdsc = qcq->pdsc; in pdsc_process_notifyq() local
25 while (eid > pdsc->last_eid) { in pdsc_process_notifyq()
30 dev_info(pdsc->dev, "NotifyQ LINK_CHANGE ecode %d eid %lld\n", in pdsc_process_notifyq()
36 dev_info(pdsc->dev, "NotifyQ RESET ecode %d eid %lld\n", in pdsc_process_notifyq()
42 dev_info(pdsc->dev, "NotifyQ XCVR ecode %d eid %lld\n", in pdsc_process_notifyq()
47 dev_info(pdsc->dev, "NotifyQ ecode %d eid %lld\n", in pdsc_process_notifyq()
52 pdsc->last_eid = eid; in pdsc_process_notifyq()
66 static bool pdsc_adminq_inc_if_up(struct pdsc *pds argument
79 struct pdsc *pdsc = qcq->pdsc; pdsc_process_adminq() local
148 struct pdsc *pdsc = data; pdsc_adminq_isr() local
166 __pdsc_adminq_post(struct pdsc *pdsc, struct pdsc_qcq *qcq, union pds_core_adminq_cmd *cmd, union pds_core_adminq_comp *comp, struct pdsc_wait_context *wc) __pdsc_adminq_post() argument
233 pdsc_adminq_post(struct pdsc *pdsc, union pds_core_adminq_cmd *cmd, union pds_core_adminq_comp *comp, bool fast_poll) pdsc_adminq_post() argument
[all...]
H A Dcore.h33 struct pdsc;
37 struct pdsc *vf;
116 struct pdsc *pdsc; member
154 struct pdsc { struct
263 void __iomem *pdsc_map_dbpage(struct pdsc *pdsc, int page_num);
267 void pdsc_debugfs_add_dev(struct pdsc *pdsc);
268 void pdsc_debugfs_del_dev(struct pdsc *pds
[all...]
H A Ddebugfs.c20 void pdsc_debugfs_add_dev(struct pdsc *pdsc) in pdsc_debugfs_add_dev() argument
22 pdsc->dentry = debugfs_create_dir(pci_name(pdsc->pdev), pdsc_dir); in pdsc_debugfs_add_dev()
24 debugfs_create_ulong("state", 0400, pdsc->dentry, &pdsc->state); in pdsc_debugfs_add_dev()
27 void pdsc_debugfs_del_dev(struct pdsc *pdsc) in pdsc_debugfs_del_dev() argument
29 debugfs_remove_recursive(pdsc->dentry); in pdsc_debugfs_del_dev()
30 pdsc in pdsc_debugfs_del_dev()
35 struct pdsc *pdsc = seq->private; identity_show() local
65 pdsc_debugfs_add_ident(struct pdsc *pdsc) pdsc_debugfs_add_ident() argument
77 struct pdsc *pdsc = seq->private; viftype_show() local
93 pdsc_debugfs_add_viftype(struct pdsc *pdsc) pdsc_debugfs_add_viftype() argument
107 pdsc_debugfs_add_qcq(struct pdsc *pdsc, struct pdsc_qcq *qcq) pdsc_debugfs_add_qcq() argument
[all...]
H A Dfw.c17 static int pdsc_devcmd_fw_download_locked(struct pdsc *pdsc, u64 addr, in pdsc_devcmd_fw_download_locked() argument
28 return pdsc_devcmd_locked(pdsc, &cmd, &comp, pdsc->devcmd_timeout); in pdsc_devcmd_fw_download_locked()
31 static int pdsc_devcmd_fw_install(struct pdsc *pdsc) in pdsc_devcmd_fw_install() argument
40 err = pdsc_devcmd(pdsc, &cmd, &comp, pdsc->devcmd_timeout); in pdsc_devcmd_fw_install()
47 static int pdsc_devcmd_fw_activate(struct pdsc *pdsc, in pdsc_devcmd_fw_activate() argument
60 pdsc_fw_status_long_wait(struct pdsc *pdsc, const char *label, unsigned long timeout, u8 fw_cmd, struct netlink_ext_ack *extack) pdsc_fw_status_long_wait() argument
98 pdsc_firmware_update(struct pdsc *pdsc, const struct firmware *fw, struct netlink_ext_ack *extack) pdsc_firmware_update() argument
[all...]
H A Dauxbus.c17 int pds_client_register(struct pdsc *pf, char *devname) in pds_client_register()
57 int pds_client_unregister(struct pdsc *pf, u16 client_id) in pds_client_unregister()
100 struct pdsc *pf; in pds_client_adminq_cmd()
137 static struct pds_auxiliary_dev *pdsc_auxbus_dev_register(struct pdsc *cf, in pdsc_auxbus_dev_register()
138 struct pdsc *pf, in pdsc_auxbus_dev_register()
178 int pdsc_auxbus_dev_del(struct pdsc *cf, struct pdsc *pf) in pdsc_auxbus_dev_del()
198 int pdsc_auxbus_dev_add(struct pdsc *cf, struct pdsc *pf) in pdsc_auxbus_dev_add()
/kernel/linux/linux-6.6/drivers/vfio/pci/pds/
H A Dcmds.c25 struct pdsc *pdsc; in pds_vfio_client_adminq_cmd() local
34 pdsc = pdsc_get_pf_struct(pdev); in pds_vfio_client_adminq_cmd()
35 if (IS_ERR(pdsc)) in pds_vfio_client_adminq_cmd()
36 return PTR_ERR(pdsc); in pds_vfio_client_adminq_cmd()
38 err = pdsc_adminq_post(pdsc, &cmd, resp, fast_poll); in pds_vfio_client_adminq_cmd()
50 struct pdsc *pdsc; in pds_vfio_register_client_cmd() local
57 pdsc = pdsc_get_pf_struct(pdev); in pds_vfio_register_client_cmd()
58 if (IS_ERR(pdsc)) in pds_vfio_register_client_cmd()
73 struct pdsc *pdsc; pds_vfio_unregister_client_cmd() local
[all...]
/kernel/linux/linux-6.6/include/linux/pds/
H A Dpds_common.h45 struct pdsc;
50 int pds_client_register(struct pdsc *pf, char *devname);
51 int pds_client_unregister(struct pdsc *pf, u16 client_id);
H A Dpds_adminq.h1263 struct pdsc;
1264 int pdsc_adminq_post(struct pdsc *pdsc,
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c677 const struct pdsm_cmd_desc *pdsc; in papr_scm_service_pdsm() local
681 pdsc = pdsm_cmd_desc(pdsm); in papr_scm_service_pdsm()
692 if (pdsc->size_in && in papr_scm_service_pdsm()
693 pkg->nd_size_in != (pdsc->size_in + ND_PDSM_HDR_SIZE)) { in papr_scm_service_pdsm()
700 if (pdsc->size_out && in papr_scm_service_pdsm()
701 pkg->nd_size_out != (pdsc->size_out + ND_PDSM_HDR_SIZE)) { in papr_scm_service_pdsm()
708 if (pdsc->service) { in papr_scm_service_pdsm()
711 rc = pdsc->service(p, &pdsm_pkg->payload); in papr_scm_service_pdsm()
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c987 const struct pdsm_cmd_desc *pdsc; in papr_scm_service_pdsm() local
991 pdsc = pdsm_cmd_desc(pdsm); in papr_scm_service_pdsm()
1002 if (pdsc->size_in && in papr_scm_service_pdsm()
1003 pkg->nd_size_in != (pdsc->size_in + ND_PDSM_HDR_SIZE)) { in papr_scm_service_pdsm()
1010 if (pdsc->size_out && in papr_scm_service_pdsm()
1011 pkg->nd_size_out != (pdsc->size_out + ND_PDSM_HDR_SIZE)) { in papr_scm_service_pdsm()
1018 if (pdsc->service) { in papr_scm_service_pdsm()
1021 rc = pdsc->service(p, &pdsm_pkg->payload); in papr_scm_service_pdsm()

Completed in 13 milliseconds