Lines Matching refs:gas
77 struct acpi_generic_address *gas; member
157 if (!reg->gas) { in pcc_chan_reg_read()
163 read_register(reg->vaddr, val, reg->gas->bit_width); in pcc_chan_reg_read()
165 ret = acpi_read(val, reg->gas); in pcc_chan_reg_read()
174 if (!reg->gas) in pcc_chan_reg_write()
178 write_register(reg->vaddr, val, reg->gas->bit_width); in pcc_chan_reg_write()
180 ret = acpi_write(val, reg->gas); in pcc_chan_reg_write()
406 pcc_chan_reg_init(struct pcc_chan_reg *reg, struct acpi_generic_address *gas, in pcc_chan_reg_init() argument
409 if (gas->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) { in pcc_chan_reg_init()
410 if (!(gas->bit_width >= 8 && gas->bit_width <= 64 && in pcc_chan_reg_init()
411 is_power_of_2(gas->bit_width))) { in pcc_chan_reg_init()
413 gas->bit_width); in pcc_chan_reg_init()
417 reg->vaddr = acpi_os_ioremap(gas->address, gas->bit_width / 8); in pcc_chan_reg_init()
423 reg->gas = gas; in pcc_chan_reg_init()