Home
last modified time | relevance | path

Searched refs:generic_comm_base (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/i2c/busses/
Di2c-xgene-slimpro.c159 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in slimpro_i2c_pcc_rx_cb() local
162 if (!xgene_word_tst_and_clr(&generic_comm_base->status, in slimpro_i2c_pcc_rx_cb()
166 if (xgene_word_tst_and_clr(&generic_comm_base->status, in slimpro_i2c_pcc_rx_cb()
168 msg = generic_comm_base + 1; in slimpro_i2c_pcc_rx_cb()
180 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in slimpro_i2c_pcc_tx_prepare() local
181 u32 *ptr = (void *)(generic_comm_base + 1); in slimpro_i2c_pcc_tx_prepare()
185 WRITE_ONCE(generic_comm_base->signature, in slimpro_i2c_pcc_tx_prepare()
188 WRITE_ONCE(generic_comm_base->command, in slimpro_i2c_pcc_tx_prepare()
191 status = le16_to_cpu(READ_ONCE(generic_comm_base->status)); in slimpro_i2c_pcc_tx_prepare()
193 WRITE_ONCE(generic_comm_base->status, cpu_to_le16(status)); in slimpro_i2c_pcc_tx_prepare()
/Linux-v5.4/drivers/hwmon/
Dxgene-hwmon.c133 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in xgene_hwmon_pcc_rd() local
134 u32 *ptr = (void *)(generic_comm_base + 1); in xgene_hwmon_pcc_rd()
143 WRITE_ONCE(generic_comm_base->signature, in xgene_hwmon_pcc_rd()
147 WRITE_ONCE(generic_comm_base->command, in xgene_hwmon_pcc_rd()
151 val = le16_to_cpu(READ_ONCE(generic_comm_base->status)); in xgene_hwmon_pcc_rd()
153 WRITE_ONCE(generic_comm_base->status, cpu_to_le16(val)); in xgene_hwmon_pcc_rd()
531 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in xgene_hwmon_pcc_rx_cb() local
543 msg = generic_comm_base + 1; in xgene_hwmon_pcc_rx_cb()
545 if (!xgene_word_tst_and_clr(&generic_comm_base->status, in xgene_hwmon_pcc_rx_cb()
567 if (xgene_word_tst_and_clr(&generic_comm_base->status, in xgene_hwmon_pcc_rx_cb()
/Linux-v5.4/drivers/acpi/
Dcppc_acpi.c200 struct acpi_pcct_shared_memory __iomem *generic_comm_base = in check_pcc_chan() local
210 ret = readw_relaxed_poll_timeout(&generic_comm_base->status, status, in check_pcc_chan()
235 struct acpi_pcct_shared_memory *generic_comm_base = in send_pcc_cmd() local
298 writew_relaxed(cmd, &generic_comm_base->command); in send_pcc_cmd()
301 writew_relaxed(0, &generic_comm_base->status); in send_pcc_cmd()