Home
last modified time | relevance | path

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

/openbmc/qemu/hw/block/
H A Dfdc.c77 static FDrive *get_drv(FDCtrl *fdctrl, int unit);
159 #define GET_CUR_DRV(fdctrl) ((fdctrl)->cur_drv) argument
160 #define SET_CUR_DRV(fdctrl, drive) ((fdctrl)->cur_drv = (drive)) argument
544 drive->fdctrl = bus->fdc; in floppy_drive_realize()
577 static void fdctrl_to_command_phase(FDCtrl *fdctrl);
578 static void fdctrl_raise_irq(FDCtrl *fdctrl);
579 static FDrive *get_cur_drv(FDCtrl *fdctrl);
581 static uint32_t fdctrl_read_statusA(FDCtrl *fdctrl);
582 static uint32_t fdctrl_read_statusB(FDCtrl *fdctrl);
583 static uint32_t fdctrl_read_dor(FDCtrl *fdctrl);
[all …]
H A Dfdc-isa.c93 FDCtrl *fdctrl = &isa->state; in isabus_fdc_realize() local
97 isa->iobase, fdc_portio_list, fdctrl, in isabus_fdc_realize()
100 fdctrl->irq = isa_bus_get_irq(bus, isa->irq); in isabus_fdc_realize()
101 fdctrl->dma_chann = isa->dma; in isabus_fdc_realize()
102 if (fdctrl->dma_chann != -1) { in isabus_fdc_realize()
104 fdctrl->dma = isa_bus_get_dma(bus, isa->dma); in isabus_fdc_realize()
105 if (!fdctrl->dma) { in isabus_fdc_realize()
109 k = ISADMA_GET_CLASS(fdctrl->dma); in isabus_fdc_realize()
110 k->register_channel(fdctrl->dma, fdctrl->dma_chann, in isabus_fdc_realize()
111 &fdctrl_transfer_handler, fdctrl); in isabus_fdc_realize()
[all …]
H A Dfdc-sysbus.c137 FDCtrl *fdctrl = &sys->state; in sysbus_fdc_common_instance_init() local
147 fdctrl->dma_chann = -1; in sysbus_fdc_common_instance_init()
154 fdctrl, "fdc", 0x08); in sysbus_fdc_common_instance_init()
157 sysbus_init_irq(sbd, &fdctrl->irq); in sysbus_fdc_common_instance_init()
164 FDCtrl *fdctrl = &sys->state; in sysbus_fdc_realize() local
166 fdctrl_realize_common(dev, fdctrl, errp); in sysbus_fdc_realize()
H A Dfdc-internal.h69 FDCtrl *fdctrl; member
147 void fdctrl_reset(FDCtrl *fdctrl, int do_irq);
148 void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl, Error **errp);
/openbmc/linux/drivers/net/can/flexcan/
H A Dflexcan-core.c282 u32 fdctrl; /* 0xc00 - Not affected by Soft Reset */ member
1268 reg_fdctrl = priv->read(&regs->fdctrl); in flexcan_set_bittiming_cbt()
1288 priv->write(reg_fdctrl, &regs->fdctrl); in flexcan_set_bittiming_cbt()
1293 priv->read(&regs->ctrl2), priv->read(&regs->fdctrl), in flexcan_set_bittiming_cbt()
1545 reg_fdctrl = priv->read(&regs->fdctrl); in flexcan_chip_start()
1565 priv->write(reg_fdctrl, &regs->fdctrl); in flexcan_chip_start()