Lines Matching refs:mmio_cfg
157 struct sb800_mmio_cfg mmio_cfg; member
160 int piix4_sb800_region_request(struct device *dev, struct sb800_mmio_cfg *mmio_cfg) in piix4_sb800_region_request() argument
162 if (mmio_cfg->use_mmio) { in piix4_sb800_region_request()
183 mmio_cfg->addr = addr; in piix4_sb800_region_request()
200 void piix4_sb800_region_release(struct device *dev, struct sb800_mmio_cfg *mmio_cfg) in piix4_sb800_region_release() argument
202 if (mmio_cfg->use_mmio) { in piix4_sb800_region_release()
203 iounmap(mmio_cfg->addr); in piix4_sb800_region_release()
330 struct sb800_mmio_cfg mmio_cfg; in piix4_setup_sb800_smba() local
335 mmio_cfg.use_mmio = piix4_sb800_use_mmio(PIIX4_dev); in piix4_setup_sb800_smba()
336 retval = piix4_sb800_region_request(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800_smba()
340 if (mmio_cfg.use_mmio) { in piix4_setup_sb800_smba()
341 smba_en_lo = ioread8(mmio_cfg.addr); in piix4_setup_sb800_smba()
342 smba_en_hi = ioread8(mmio_cfg.addr + 1); in piix4_setup_sb800_smba()
350 piix4_sb800_region_release(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800_smba()
377 struct sb800_mmio_cfg mmio_cfg; in piix4_setup_sb800() local
457 mmio_cfg.use_mmio = piix4_sb800_use_mmio(PIIX4_dev); in piix4_setup_sb800()
458 retval = piix4_sb800_region_request(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800()
471 piix4_sb800_region_release(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800()
748 int piix4_sb800_port_sel(u8 port, struct sb800_mmio_cfg *mmio_cfg) in piix4_sb800_port_sel() argument
752 if (mmio_cfg->use_mmio) { in piix4_sb800_port_sel()
753 smba_en_lo = ioread8(mmio_cfg->addr + piix4_port_sel_sb800); in piix4_sb800_port_sel()
756 iowrite8(val, mmio_cfg->addr + piix4_port_sel_sb800); in piix4_sb800_port_sel()
791 retval = piix4_sb800_region_request(&adap->dev, &adapdata->mmio_cfg); in piix4_access_sb800()
848 prev_port = piix4_sb800_port_sel(adapdata->port, &adapdata->mmio_cfg); in piix4_access_sb800()
853 piix4_sb800_port_sel(prev_port, &adapdata->mmio_cfg); in piix4_access_sb800()
862 piix4_sb800_region_release(&adap->dev, &adapdata->mmio_cfg); in piix4_access_sb800()
940 adapdata->mmio_cfg.use_mmio = piix4_sb800_use_mmio(dev); in piix4_add_adapter()