Home
last modified time | relevance | path

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

/linux/drivers/i2c/busses/
H A Di2c-xgene-slimpro.c151 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in slimpro_i2c_pcc_rx_cb() local
154 if (!xgene_word_tst_and_clr(&generic_comm_base->status, in slimpro_i2c_pcc_rx_cb()
158 if (xgene_word_tst_and_clr(&generic_comm_base->status, in slimpro_i2c_pcc_rx_cb()
160 msg = generic_comm_base + 1; in slimpro_i2c_pcc_rx_cb()
172 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in slimpro_i2c_pcc_tx_prepare() local
173 u32 *ptr = (void *)(generic_comm_base + 1); in slimpro_i2c_pcc_tx_prepare()
177 WRITE_ONCE(generic_comm_base->signature, in slimpro_i2c_pcc_tx_prepare()
180 WRITE_ONCE(generic_comm_base->command, in slimpro_i2c_pcc_tx_prepare()
183 status = le16_to_cpu(READ_ONCE(generic_comm_base->status)); in slimpro_i2c_pcc_tx_prepare()
185 WRITE_ONCE(generic_comm_base->status, cpu_to_le16(status)); in slimpro_i2c_pcc_tx_prepare()
/linux/drivers/hwmon/
H A Dxgene-hwmon.c128 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in xgene_hwmon_pcc_rd() local
129 u32 *ptr = (void *)(generic_comm_base + 1); in xgene_hwmon_pcc_rd()
138 WRITE_ONCE(generic_comm_base->signature, in xgene_hwmon_pcc_rd()
142 WRITE_ONCE(generic_comm_base->command, in xgene_hwmon_pcc_rd()
146 val = le16_to_cpu(READ_ONCE(generic_comm_base->status)); in xgene_hwmon_pcc_rd()
148 WRITE_ONCE(generic_comm_base->status, cpu_to_le16(val)); in xgene_hwmon_pcc_rd()
526 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in xgene_hwmon_pcc_rx_cb() local
538 msg = generic_comm_base + 1; in xgene_hwmon_pcc_rx_cb()
540 if (!xgene_word_tst_and_clr(&generic_comm_base->status, in xgene_hwmon_pcc_rx_cb()
562 if (xgene_word_tst_and_clr(&generic_comm_base->status, in xgene_hwmon_pcc_rx_cb()