/Linux-v6.6/drivers/net/ethernet/amd/pds_core/ |
D | dev.c | 56 bool pdsc_is_fw_running(struct pdsc *pdsc) in pdsc_is_fw_running() argument 58 pdsc->fw_status = ioread8(&pdsc->info_regs->fw_status); in pdsc_is_fw_running() 59 pdsc->last_fw_time = jiffies; in pdsc_is_fw_running() 60 pdsc->last_hb = ioread32(&pdsc->info_regs->fw_heartbeat); in pdsc_is_fw_running() 65 return (pdsc->fw_status != 0xff) && in pdsc_is_fw_running() 66 (pdsc->fw_status & PDS_CORE_FW_STS_F_RUNNING); in pdsc_is_fw_running() 69 bool pdsc_is_fw_good(struct pdsc *pdsc) in pdsc_is_fw_good() argument 71 bool fw_running = pdsc_is_fw_running(pdsc); in pdsc_is_fw_good() 77 gen = pdsc->fw_status & PDS_CORE_FW_STS_F_GENERATION; in pdsc_is_fw_good() 79 return fw_running && gen == pdsc->fw_generation; in pdsc_is_fw_good() [all …]
|
D | core.c | 28 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->nintrs; index++) in pdsc_intr_alloc() 60 if (!pdsc->intr_info[index].vector) in pdsc_intr_alloc() 62 if (index >= pdsc->nintrs) { in pdsc_intr_alloc() [all …]
|
D | main.c | 26 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 37 struct pdsc_dev_bar *bars = pdsc->bars; in pdsc_unmap_bars() 42 pci_iounmap(pdsc->pdev, bars[i].vaddr); in pdsc_unmap_bars() 46 static int pdsc_map_bars(struct pdsc *pdsc) in pdsc_map_bars() argument 48 struct pdsc_dev_bar *bar = pdsc->bars; in pdsc_map_bars() [all …]
|
D | core.h | 33 struct pdsc; 37 struct pdsc *vf; 116 struct pdsc *pdsc; member 154 struct pdsc { struct 262 void __iomem *pdsc_map_dbpage(struct pdsc *pdsc, int page_num); 266 void pdsc_debugfs_add_dev(struct pdsc *pdsc); 267 void pdsc_debugfs_del_dev(struct pdsc *pdsc); 268 void pdsc_debugfs_add_ident(struct pdsc *pdsc); 269 void pdsc_debugfs_add_viftype(struct pdsc *pdsc); 270 void pdsc_debugfs_add_irqs(struct pdsc *pdsc); [all …]
|
D | devlink.c | 8 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 = devlink_priv(dl); in pdsc_dl_enable_set() local 47 vt_entry = pdsc_dl_find_viftype_by_id(pdsc, id); in pdsc_dl_enable_set() 55 for (vf_id = 0; vf_id < pdsc->num_vfs; vf_id++) { in pdsc_dl_enable_set() 56 struct pdsc *vf = pdsc->vfs[vf_id].vf; in pdsc_dl_enable_set() [all …]
|
D | adminq.c | 16 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() 70 struct pdsc *pdsc = qcq->pdsc; in pdsc_process_adminq() local 79 if (pdsc->state & BIT_ULL(PDSC_S_STOPPING_DRIVER)) { in pdsc_process_adminq() 80 dev_err(pdsc->dev, "%s: called while PDSC_S_STOPPING_DRIVER\n", in pdsc_process_adminq() [all …]
|
D | debugfs.c | 20 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->dentry = NULL; in pdsc_debugfs_del_dev() 35 struct pdsc *pdsc = seq->private; in identity_show() local 39 ident = &pdsc->dev_ident; in identity_show() 42 ioread32(&pdsc->info_regs->fw_heartbeat)); in identity_show() 58 le16_to_cpu(pdsc->dev_ident.vif_types[vt])); in identity_show() [all …]
|
D | fw.c | 17 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 57 return pdsc_devcmd(pdsc, &cmd, &comp, pdsc->devcmd_timeout); in pdsc_devcmd_fw_activate() 60 static int pdsc_fw_status_long_wait(struct pdsc *pdsc, in pdsc_fw_status_long_wait() argument 82 err = pdsc_devcmd(pdsc, &cmd, &comp, pdsc->devcmd_timeout); in pdsc_fw_status_long_wait() 89 dev_err(pdsc->dev, "DEV_CMD firmware wait %s timed out\n", in pdsc_fw_status_long_wait() 98 int pdsc_firmware_update(struct pdsc *pdsc, const struct firmware *fw, in pdsc_firmware_update() argument [all …]
|
D | auxbus.c | 17 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() 182 int pdsc_auxbus_dev_del(struct pdsc *cf, struct pdsc *pf) in pdsc_auxbus_dev_del() 202 int pdsc_auxbus_dev_add(struct pdsc *cf, struct pdsc *pf) in pdsc_auxbus_dev_add()
|
/Linux-v6.6/drivers/vfio/pci/pds/ |
D | cmds.c | 25 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() 59 return PTR_ERR(pdsc); in pds_vfio_register_client_cmd() 61 ci = pds_client_register(pdsc, devname); in pds_vfio_register_client_cmd() [all …]
|
/Linux-v6.6/include/linux/pds/ |
D | pds_common.h | 45 struct pdsc; 50 int pds_client_register(struct pdsc *pf, char *devname); 51 int pds_client_unregister(struct pdsc *pf, u16 client_id);
|
D | pds_adminq.h | 1263 struct pdsc; 1264 int pdsc_adminq_post(struct pdsc *pdsc,
|
/Linux-v6.6/arch/powerpc/platforms/pseries/ |
D | papr_scm.c | 987 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()
|