Home
last modified time | relevance | path

Searched refs:dev_cmd_regs (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/pensando/ionic/
Dionic_main.c333 iowrite32(0, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_clean()
334 memset_io(&idev->dev_cmd_regs->cmd, 0, sizeof(idev->dev_cmd_regs->cmd)); in ionic_dev_cmd_clean()
398 iowrite32(0, &idev->dev_cmd_regs->done); in ionic_dev_cmd_wait()
400 iowrite32(1, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_wait()
444 sz = min(sizeof(ident->drv), sizeof(idev->dev_cmd_regs->data)); in ionic_identify()
445 memcpy_toio(&idev->dev_cmd_regs->data, &ident->drv, sz); in ionic_identify()
450 sz = min(sizeof(ident->dev), sizeof(idev->dev_cmd_regs->data)); in ionic_identify()
451 memcpy_fromio(&ident->dev, &idev->dev_cmd_regs->data, sz); in ionic_identify()
516 sz = min(sizeof(ident->port), sizeof(idev->dev_cmd_regs->data)); in ionic_port_identify()
517 memcpy_fromio(&ident->port, &idev->dev_cmd_regs->data, sz); in ionic_port_identify()
[all …]
Dionic_dev.c91 idev->dev_cmd_regs = bar->vaddr + IONIC_BAR0_DEV_CMD_REGS_OFFSET; in ionic_dev_setup()
256 return ioread8(&idev->dev_cmd_regs->comp.comp.status); in ionic_dev_cmd_status()
261 return ioread32(&idev->dev_cmd_regs->done) & IONIC_DEV_CMD_DONE; in ionic_dev_cmd_done()
266 memcpy_fromio(comp, &idev->dev_cmd_regs->comp, sizeof(*comp)); in ionic_dev_cmd_comp()
272 memcpy_toio(&idev->dev_cmd_regs->cmd, cmd, sizeof(*cmd)); in ionic_dev_cmd_go()
273 iowrite32(0, &idev->dev_cmd_regs->done); in ionic_dev_cmd_go()
274 iowrite32(1, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_go()
Dionic_fw.c112 buf_sz = sizeof(idev->dev_cmd_regs->data); in ionic_firmware_update()
129 memcpy_toio(&idev->dev_cmd_regs->data, fw->data + offset, copy_sz); in ionic_firmware_update()
Dionic_dev.h138 union ionic_dev_cmd_regs __iomem *dev_cmd_regs; member
Dionic_ethtool.c118 memcpy_fromio(p + offset, lif->ionic->idev.dev_cmd_regs->words, size); in ionic_get_regs()
Dionic_lif.c3553 q_ident = (union ionic_q_identity __iomem *)&idev->dev_cmd_regs->data; in ionic_lif_queue_identify()
3625 sz = min(sizeof(*lid), sizeof(idev->dev_cmd_regs->data)); in ionic_lif_identify()
3630 memcpy_fromio(lid, &idev->dev_cmd_regs->data, sz); in ionic_lif_identify()