Searched refs:dev_cmd_regs (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_main.c | 441 if (!idev->dev_cmd_regs) in ionic_dev_cmd_clean() 444 iowrite32(0, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_clean() 445 memset_io(&idev->dev_cmd_regs->cmd, 0, sizeof(idev->dev_cmd_regs->cmd)); in ionic_dev_cmd_clean() 515 iowrite32(0, &idev->dev_cmd_regs->done); in __ionic_dev_cmd_wait() 517 iowrite32(1, &idev->dev_cmd_regs->doorbell); in __ionic_dev_cmd_wait() 571 sz = min(sizeof(ident->drv), sizeof(idev->dev_cmd_regs->data)); in ionic_identify() 572 memcpy_toio(&idev->dev_cmd_regs->data, &ident->drv, sz); in ionic_identify() 577 sz = min(sizeof(ident->dev), sizeof(idev->dev_cmd_regs->data)); in ionic_identify() 578 memcpy_fromio(&ident->dev, &idev->dev_cmd_regs->data, sz); in ionic_identify() 654 memcpy_fromio(&ident->port, &idev->dev_cmd_regs->data, sz); in ionic_port_identify() [all …]
|
H A D | ionic_dev.c | 111 idev->dev_cmd_regs = bar->vaddr + IONIC_BAR0_DEV_CMD_REGS_OFFSET; in ionic_dev_setup() 322 if (!idev->dev_cmd_regs) in ionic_dev_cmd_status() 324 return ioread8(&idev->dev_cmd_regs->comp.comp.status); in ionic_dev_cmd_status() 329 if (!idev->dev_cmd_regs) in ionic_dev_cmd_done() 336 if (!idev->dev_cmd_regs) in ionic_dev_cmd_comp() 338 memcpy_fromio(comp, &idev->dev_cmd_regs->comp, sizeof(*comp)); in ionic_dev_cmd_comp() 345 if (!idev->dev_cmd_regs) in ionic_dev_cmd_go() 348 memcpy_toio(&idev->dev_cmd_regs->cmd, cmd, sizeof(*cmd)); in ionic_dev_cmd_go() 349 iowrite32(0, &idev->dev_cmd_regs->done); in ionic_dev_cmd_go() 350 iowrite32(1, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_go() [all …]
|
H A D | ionic_fw.c | 112 if (!idev->dev_cmd_regs) { in ionic_firmware_update() 117 buf_sz = sizeof(idev->dev_cmd_regs->data); in ionic_firmware_update() 134 memcpy_toio(&idev->dev_cmd_regs->data, fw->data + offset, copy_sz); in ionic_firmware_update()
|
H A D | ionic_dev.h | 146 union ionic_dev_cmd_regs __iomem *dev_cmd_regs; member
|
H A D | ionic_bus_pci.c | 219 ionic->idev.dev_cmd_regs = NULL; in ionic_clear_pci()
|
H A D | ionic_ethtool.c | 109 memcpy_fromio(p + offset, idev->dev_cmd_regs->words, size); in ionic_get_regs()
|
H A D | ionic_lif.c | 3776 q_ident = (union ionic_q_identity __iomem *)&idev->dev_cmd_regs->data; in ionic_lif_queue_identify() 3848 sz = min(sizeof(*lid), sizeof(idev->dev_cmd_regs->data)); in ionic_lif_identify() 3853 memcpy_fromio(lid, &idev->dev_cmd_regs->data, sz); in ionic_lif_identify()
|