Home
last modified time | relevance | path

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

/linux/drivers/platform/x86/intel/
H A Dpunit_ipc.c51 static inline u32 ipc_read_status(IPC_DEV *ipcdev, IPC_TYPE type) in ipc_read_status() argument
53 return readl(ipcdev->base[type][BASE_IFACE]); in ipc_read_status()
56 static inline void ipc_write_cmd(IPC_DEV *ipcdev, IPC_TYPE type, u32 cmd) in ipc_write_cmd() argument
58 writel(cmd, ipcdev->base[type][BASE_IFACE]); in ipc_write_cmd()
61 static inline u32 ipc_read_data_low(IPC_DEV *ipcdev, IPC_TYPE type) in ipc_read_data_low() argument
63 return readl(ipcdev->base[type][BASE_DATA] + OFFSET_DATA_LOW); in ipc_read_data_low()
66 static inline u32 ipc_read_data_high(IPC_DEV *ipcdev, IPC_TYPE type) in ipc_read_data_high() argument
68 return readl(ipcdev->base[type][BASE_DATA] + OFFSET_DATA_HIGH); in ipc_read_data_high()
71 static inline void ipc_write_data_low(IPC_DEV *ipcdev, IPC_TYPE type, u32 data) in ipc_write_data_low() argument
73 writel(data, ipcdev->base[type][BASE_DATA] + OFFSET_DATA_LOW); in ipc_write_data_low()
[all …]
/linux/drivers/platform/x86/
H A Dintel_scu_ipc.c82 static struct intel_scu_ipc_dev *ipcdev; /* Only one for now */ variable
105 if (ipcdev) { in intel_scu_ipc_dev_get()
106 get_device(&ipcdev->dev); in intel_scu_ipc_dev_get()
111 if (try_module_get(ipcdev->owner)) in intel_scu_ipc_dev_get()
112 return ipcdev; in intel_scu_ipc_dev_get()
114 put_device(&ipcdev->dev); in intel_scu_ipc_dev_get()
266 scu = ipcdev; in intel_scu_ipc_get()
573 if (ipcdev) in __intel_scu_ipc_register()
620 ipcdev = scu; in __intel_scu_ipc_register()
644 if (!WARN_ON(!ipcdev)) { in intel_scu_ipc_unregister()
[all …]