Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/i2c/busses/
Di2c-amd-mp2-plat.c43 struct device *dev_pci = &i2c_common->mp2_dev->pci_dev->dev; in i2c_amd_dma_map()
66 struct device *dev_pci = &i2c_common->mp2_dev->pci_dev->dev; in i2c_amd_dma_unmap()
161 if (unlikely(!i2c_dev->common.mp2_dev)) in i2c_amd_xfer()
164 amd_mp2_pm_runtime_get(i2c_dev->common.mp2_dev); in i2c_amd_xfer()
173 amd_mp2_pm_runtime_put(i2c_dev->common.mp2_dev); in i2c_amd_xfer()
247 struct amd_mp2_dev *mp2_dev; in i2c_amd_probe() local
257 mp2_dev = amd_mp2_find_device(); in i2c_amd_probe()
258 if (!mp2_dev || !mp2_dev->probed) in i2c_amd_probe()
266 i2c_dev->common.mp2_dev = mp2_dev; in i2c_amd_probe()
291 amd_mp2_pm_runtime_get(mp2_dev); in i2c_amd_probe()
[all …]
Di2c-amd-mp2.h154 struct amd_mp2_dev *mp2_dev; member
208 static inline void amd_mp2_pm_runtime_get(struct amd_mp2_dev *mp2_dev) in amd_mp2_pm_runtime_get() argument
210 pm_runtime_get_sync(&mp2_dev->pci_dev->dev); in amd_mp2_pm_runtime_get()
213 static inline void amd_mp2_pm_runtime_put(struct amd_mp2_dev *mp2_dev) in amd_mp2_pm_runtime_put() argument
215 pm_runtime_mark_last_busy(&mp2_dev->pci_dev->dev); in amd_mp2_pm_runtime_put()
216 pm_runtime_put_autosuspend(&mp2_dev->pci_dev->dev); in amd_mp2_pm_runtime_put()
Di2c-amd-mp2-pci.c21 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_c2p_mutex_lock()
30 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_c2p_mutex_unlock()
45 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_cmd()
59 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_bus_enable_set()
89 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_rw()
113 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_pci_check_rw_event()
138 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in __amd_mp2_process_event()
192 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_process_event()
257 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_register_cb()
276 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_unregister_cb()