Home
last modified time | relevance | path

Searched refs:pcc_chan (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/acpi/
H A Dacpi_pcc.c33 struct pcc_mbox_chan *pcc_chan; member
54 struct pcc_mbox_chan *pcc_chan; in acpi_pcc_address_space_setup() local
68 data->pcc_chan = pcc_mbox_request_channel(&data->cl, ctx->subspace_id); in acpi_pcc_address_space_setup()
69 if (IS_ERR(data->pcc_chan)) { in acpi_pcc_address_space_setup()
76 pcc_chan = data->pcc_chan; in acpi_pcc_address_space_setup()
77 if (!pcc_chan->mchan->mbox->txdone_irq) { in acpi_pcc_address_space_setup()
88 pcc_mbox_free_channel(data->pcc_chan); in acpi_pcc_address_space_setup()
107 memcpy_toio(data->pcc_chan->shmem, (void *)value, data->ctx.length); in acpi_pcc_address_space_handler()
109 ret = mbox_send_message(data->pcc_chan->mchan, NULL); in acpi_pcc_address_space_handler()
118 usecs_lat = PCC_CMD_WAIT_RETRIES_NUM * data->pcc_chan->latency; in acpi_pcc_address_space_handler()
[all …]
H A Dcppc_acpi.c646 struct pcc_mbox_chan *pcc_chan; in register_pcc_channel() local
650 pcc_chan = pcc_mbox_request_channel(&cppc_mbox_cl, pcc_ss_idx); in register_pcc_channel()
652 if (IS_ERR(pcc_chan)) { in register_pcc_channel()
658 pcc_data[pcc_ss_idx]->pcc_channel = pcc_chan; in register_pcc_channel()
664 usecs_lat = NUM_RETRIES * pcc_chan->latency; in register_pcc_channel()
666 pcc_data[pcc_ss_idx]->pcc_mrtt = pcc_chan->min_turnaround_time; in register_pcc_channel()
667 pcc_data[pcc_ss_idx]->pcc_mpar = pcc_chan->max_access_rate; in register_pcc_channel()
668 pcc_data[pcc_ss_idx]->pcc_nominal = pcc_chan->latency; in register_pcc_channel()
/linux/drivers/i2c/busses/
H A Di2c-xgene-slimpro.c98 struct pcc_mbox_chan *pcc_chan; member
150 ctx->pcc_chan->shmem; in slimpro_i2c_pcc_rx_cb()
172 ctx->pcc_chan->shmem; in slimpro_i2c_pcc_tx_prepare()
464 struct pcc_mbox_chan *pcc_chan; in xgene_slimpro_i2c_probe() local
478 pcc_chan = pcc_mbox_request_channel(cl, ctx->mbox_idx); in xgene_slimpro_i2c_probe()
479 if (IS_ERR(pcc_chan)) in xgene_slimpro_i2c_probe()
480 return dev_err_probe(&pdev->dev, PTR_ERR(pcc_chan), in xgene_slimpro_i2c_probe()
483 ctx->pcc_chan = pcc_chan; in xgene_slimpro_i2c_probe()
484 ctx->mbox_chan = pcc_chan->mchan; in xgene_slimpro_i2c_probe()
517 pcc_mbox_free_channel(ctx->pcc_chan); in xgene_slimpro_i2c_probe()
[all …]
/linux/drivers/devfreq/
H A Dhisi_uncore_freq.c109 struct pcc_mbox_chan *pcc_chan; in hisi_uncore_request_pcc_chan() local
117 pcc_chan = pcc_mbox_request_channel(&uncore->cl, uncore->chan_id); in hisi_uncore_request_pcc_chan()
118 if (IS_ERR(pcc_chan)) in hisi_uncore_request_pcc_chan()
119 return dev_err_probe(dev, PTR_ERR(pcc_chan), in hisi_uncore_request_pcc_chan()
122 if (!pcc_chan->shmem_base_addr) { in hisi_uncore_request_pcc_chan()
123 pcc_mbox_free_channel(pcc_chan); in hisi_uncore_request_pcc_chan()
128 if (pcc_chan->shmem_size < sizeof(struct hisi_uncore_pcc_shmem)) { in hisi_uncore_request_pcc_chan()
129 pcc_mbox_free_channel(pcc_chan); in hisi_uncore_request_pcc_chan()
132 pcc_chan->shmem_size); in hisi_uncore_request_pcc_chan()
135 uncore->pchan = pcc_chan; in hisi_uncore_request_pcc_chan()
/linux/drivers/soc/hisilicon/
H A Dkunpeng_hccs.h63 struct pcc_mbox_chan *pcc_chan; member