Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/platform/x86/intel/speed_select_if/
Disst_if_mmio.c43 struct isst_if_device *punit_dev; in isst_if_mmio_rd_wr() local
59 punit_dev = pci_get_drvdata(pdev); in isst_if_mmio_rd_wr()
60 if (!punit_dev) in isst_if_mmio_rd_wr()
63 if (io_reg->reg < punit_dev->mmio_range[0].beg || in isst_if_mmio_rd_wr()
64 io_reg->reg > punit_dev->mmio_range[1].end) in isst_if_mmio_rd_wr()
71 mutex_lock(&punit_dev->mutex); in isst_if_mmio_rd_wr()
73 writel(io_reg->value, punit_dev->punit_mmio+io_reg->reg); in isst_if_mmio_rd_wr()
76 io_reg->value = readl(punit_dev->punit_mmio+io_reg->reg); in isst_if_mmio_rd_wr()
79 mutex_unlock(&punit_dev->mutex); in isst_if_mmio_rd_wr()
93 struct isst_if_device *punit_dev; in isst_if_probe() local
[all …]
Disst_if_mbox_pci.c120 struct isst_if_device *punit_dev; in isst_if_mbox_proc_cmd() local
136 punit_dev = pci_get_drvdata(pdev); in isst_if_mbox_proc_cmd()
137 if (!punit_dev) in isst_if_mbox_proc_cmd()
144 mutex_lock(&punit_dev->mutex); in isst_if_mbox_proc_cmd()
152 mutex_unlock(&punit_dev->mutex); in isst_if_mbox_proc_cmd()
171 struct isst_if_device *punit_dev; in isst_if_mbox_probe() local
175 punit_dev = devm_kzalloc(&pdev->dev, sizeof(*punit_dev), GFP_KERNEL); in isst_if_mbox_probe()
176 if (!punit_dev) in isst_if_mbox_probe()
183 mutex_init(&punit_dev->mutex); in isst_if_mbox_probe()
184 pci_set_drvdata(pdev, punit_dev); in isst_if_mbox_probe()
[all …]