Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/pensando/ionic/
Dionic_main.c336 opcode = idev->dev_cmd_regs->cmd.cmd.opcode; in ionic_dev_cmd_wait()
355 iowrite32(0, &idev->dev_cmd_regs->done); in ionic_dev_cmd_wait()
356 iowrite32(1, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_wait()
396 sz = min(sizeof(ident->drv), sizeof(idev->dev_cmd_regs->data)); in ionic_identify()
397 memcpy_toio(&idev->dev_cmd_regs->data, &ident->drv, sz); in ionic_identify()
402 sz = min(sizeof(ident->dev), sizeof(idev->dev_cmd_regs->data)); in ionic_identify()
403 memcpy_fromio(&ident->dev, &idev->dev_cmd_regs->data, sz); in ionic_identify()
457 sz = min(sizeof(ident->port), sizeof(idev->dev_cmd_regs->data)); in ionic_port_identify()
458 memcpy_fromio(&ident->port, &idev->dev_cmd_regs->data, sz); in ionic_port_identify()
485 sz = min(sizeof(ident->port.config), sizeof(idev->dev_cmd_regs->data)); in ionic_port_init()
[all …]
Dionic_dev.c56 idev->dev_cmd_regs = bar->vaddr + IONIC_BAR0_DEV_CMD_REGS_OFFSET; in ionic_dev_setup()
89 return ioread8(&idev->dev_cmd_regs->comp.comp.status); in ionic_dev_cmd_status()
94 return ioread32(&idev->dev_cmd_regs->done) & IONIC_DEV_CMD_DONE; in ionic_dev_cmd_done()
99 memcpy_fromio(comp, &idev->dev_cmd_regs->comp, sizeof(*comp)); in ionic_dev_cmd_comp()
104 memcpy_toio(&idev->dev_cmd_regs->cmd, cmd, sizeof(*cmd)); in ionic_dev_cmd_go()
105 iowrite32(0, &idev->dev_cmd_regs->done); in ionic_dev_cmd_go()
106 iowrite32(1, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_go()
Dionic_dev.h124 union ionic_dev_cmd_regs __iomem *dev_cmd_regs; member
Dionic_ethtool.c113 memcpy_fromio(p, lif->ionic->idev.dev_cmd_regs->words, size); in ionic_get_regs()
Dionic_lif.c2168 sz = min(sizeof(*lid), sizeof(idev->dev_cmd_regs->data)); in ionic_lif_identify()
2173 memcpy_fromio(lid, &idev->dev_cmd_regs->data, sz); in ionic_lif_identify()