Lines Matching refs:mmio_cfg
175 struct sb800_mmio_cfg mmio_cfg; member
179 struct sb800_mmio_cfg *mmio_cfg) in piix4_sb800_region_request() argument
181 if (mmio_cfg->use_mmio) { in piix4_sb800_region_request()
202 mmio_cfg->addr = addr; in piix4_sb800_region_request()
219 struct sb800_mmio_cfg *mmio_cfg) in piix4_sb800_region_release() argument
221 if (mmio_cfg->use_mmio) { in piix4_sb800_region_release()
222 iounmap(mmio_cfg->addr); in piix4_sb800_region_release()
348 struct sb800_mmio_cfg mmio_cfg; in piix4_setup_sb800_smba() local
353 mmio_cfg.use_mmio = piix4_sb800_use_mmio(PIIX4_dev); in piix4_setup_sb800_smba()
354 retval = piix4_sb800_region_request(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800_smba()
358 if (mmio_cfg.use_mmio) { in piix4_setup_sb800_smba()
359 smba_en_lo = ioread8(mmio_cfg.addr); in piix4_setup_sb800_smba()
360 smba_en_hi = ioread8(mmio_cfg.addr + 1); in piix4_setup_sb800_smba()
368 piix4_sb800_region_release(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800_smba()
395 struct sb800_mmio_cfg mmio_cfg; in piix4_setup_sb800() local
475 mmio_cfg.use_mmio = piix4_sb800_use_mmio(PIIX4_dev); in piix4_setup_sb800()
476 retval = piix4_sb800_region_request(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800()
489 piix4_sb800_region_release(&PIIX4_dev->dev, &mmio_cfg); in piix4_setup_sb800()
767 static int piix4_sb800_port_sel(u8 port, struct sb800_mmio_cfg *mmio_cfg) in piix4_sb800_port_sel() argument
771 if (mmio_cfg->use_mmio) { in piix4_sb800_port_sel()
772 smba_en_lo = ioread8(mmio_cfg->addr + piix4_port_sel_sb800); in piix4_sb800_port_sel()
775 iowrite8(val, mmio_cfg->addr + piix4_port_sel_sb800); in piix4_sb800_port_sel()
809 retval = piix4_sb800_region_request(&adap->dev, &adapdata->mmio_cfg); in piix4_access_sb800()
866 prev_port = piix4_sb800_port_sel(adapdata->port, &adapdata->mmio_cfg); in piix4_access_sb800()
871 piix4_sb800_port_sel(prev_port, &adapdata->mmio_cfg); in piix4_access_sb800()
880 piix4_sb800_region_release(&adap->dev, &adapdata->mmio_cfg); in piix4_access_sb800()
958 adapdata->mmio_cfg.use_mmio = piix4_sb800_use_mmio(dev); in piix4_add_adapter()