Lines Matching defs:offset
50 // Winnipeg Store Type commands (Add this commands to the register offset)
122 void __iomem *wpg_addr; // base addr + offset
167 // 2020 : [20] OR operation at [20] offset 0x20
229 void __iomem *wpg_addr; // base addr + offset
278 // 2020 : [20] OR operation at [20] offset 0x20
325 static u8 isa_ctrl_read(struct controller *ctlr_ptr, u8 offset)
331 data = inb(start_address + offset);
338 static void isa_ctrl_write(struct controller *ctlr_ptr, u8 offset, u8 data)
344 port_address = start_address + (u16) offset;
348 static u8 pci_ctrl_read(struct controller *ctrl, u8 offset)
353 pci_read_config_byte(ctrl->ctrl_dev, HPC_PCI_OFFSET + offset, &data);
357 static u8 pci_ctrl_write(struct controller *ctrl, u8 offset, u8 data)
362 pci_write_config_byte(ctrl->ctrl_dev, HPC_PCI_OFFSET + offset, data);
368 static u8 ctrl_read(struct controller *ctlr, void __iomem *base, u8 offset)
373 rc = isa_ctrl_read(ctlr, offset);
376 rc = pci_ctrl_read(ctlr, offset);
380 rc = i2c_ctrl_read(ctlr, base, offset);
388 static u8 ctrl_write(struct controller *ctlr, void __iomem *base, u8 offset, u8 data)
393 isa_ctrl_write(ctlr, offset, data);
396 rc = pci_ctrl_write(ctlr, offset, data);
400 rc = i2c_ctrl_write(ctlr, base, offset, data);