Home
last modified time | relevance | path

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

/linux-6.6.21/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()
160 if (unlikely(!i2c_dev->common.mp2_dev)) in i2c_amd_xfer()
163 amd_mp2_pm_runtime_get(i2c_dev->common.mp2_dev); in i2c_amd_xfer()
172 amd_mp2_pm_runtime_put(i2c_dev->common.mp2_dev); in i2c_amd_xfer()
250 struct amd_mp2_dev *mp2_dev; in i2c_amd_probe() local
264 mp2_dev = amd_mp2_find_device(); in i2c_amd_probe()
265 if (!mp2_dev || !mp2_dev->probed) in i2c_amd_probe()
274 i2c_dev->common.mp2_dev = mp2_dev; in i2c_amd_probe()
285 amd_mp2_pm_runtime_get(mp2_dev); in i2c_amd_probe()
[all …]
Di2c-amd-mp2.h154 struct amd_mp2_dev *mp2_dev; member
203 static inline void amd_mp2_pm_runtime_get(struct amd_mp2_dev *mp2_dev) in amd_mp2_pm_runtime_get() argument
205 pm_runtime_get_sync(&mp2_dev->pci_dev->dev); in amd_mp2_pm_runtime_get()
208 static inline void amd_mp2_pm_runtime_put(struct amd_mp2_dev *mp2_dev) in amd_mp2_pm_runtime_put() argument
210 pm_runtime_mark_last_busy(&mp2_dev->pci_dev->dev); in amd_mp2_pm_runtime_put()
211 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()
88 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_rw()
112 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_pci_check_rw_event()
136 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in __amd_mp2_process_event()
185 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_process_event()
250 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_register_cb()
269 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_unregister_cb()