Lines Matching +full:port +full:- +full:specific
1 /* SPDX-License-Identifier: GPL-2.0 */
63 * iosf_mbi_read() - MailBox Interface read command
64 * @port: port indicating subunit being accessed
65 * @opcode: port specific read or write opcode
69 * Locking is handled by spinlock - cannot sleep.
72 int iosf_mbi_read(u8 port, u8 opcode, u32 offset, u32 *mdr);
75 * iosf_mbi_write() - MailBox unmasked write command
76 * @port: port indicating subunit being accessed
77 * @opcode: port specific read or write opcode
81 * Locking is handled by spinlock - cannot sleep.
84 int iosf_mbi_write(u8 port, u8 opcode, u32 offset, u32 mdr);
87 * iosf_mbi_modify() - MailBox masked write command
88 * @port: port indicating subunit being accessed
89 * @opcode: port specific read or write opcode
94 * Locking is handled by spinlock - cannot sleep.
97 int iosf_mbi_modify(u8 port, u8 opcode, u32 offset, u32 mdr, u32 mask);
100 * iosf_mbi_punit_acquire() - Acquire access to the P-Unit
102 * One some systems the P-Unit accesses the PMIC to change various voltages
105 * If a driver sends requests to the P-Unit which require the P-Unit to access
109 * Call this function before sending requests to the P-Unit which may make it
112 * P-Unit can safely access the PMIC over the shared I2C bus.
114 * Note on these systems the i2c-bus driver will request a sempahore from the
115 * P-Unit for exclusive access to the PMIC bus when i2c drivers are accessing
117 * certain P-Unit requests during the access window to avoid problems.
124 * iosf_mbi_punit_release() - Release access to the P-Unit
129 * iosf_mbi_block_punit_i2c_access() - Block P-Unit accesses to the PMIC bus
131 * Call this function to block P-Unit access to the PMIC I2C bus, so that the
134 * This function acquires the P-Unit bus semaphore and notifies
136 * P-Unit in a way which may cause it to access the shared I2C bus.
147 * iosf_mbi_unblock_punit_i2c_access() - Release PMIC I2C bus block
154 * iosf_mbi_register_pmic_bus_access_notifier - Register PMIC bus notifier
156 * This function can be used by drivers which may need to acquire P-Unit
171 * iosf_mbi_register_pmic_bus_access_notifier - Unregister PMIC bus notifier
178 * iosf_mbi_unregister_pmic_bus_access_notifier_unlocked - Unregister PMIC bus
190 * iosf_mbi_assert_punit_acquired - Assert that the P-Unit has been acquired.
202 int iosf_mbi_read(u8 port, u8 opcode, u32 offset, u32 *mdr) in iosf_mbi_read() argument
205 return -EPERM; in iosf_mbi_read()
209 int iosf_mbi_write(u8 port, u8 opcode, u32 offset, u32 mdr) in iosf_mbi_write() argument
212 return -EPERM; in iosf_mbi_write()
216 int iosf_mbi_modify(u8 port, u8 opcode, u32 offset, u32 mdr, u32 mask) in iosf_mbi_modify() argument
219 return -EPERM; in iosf_mbi_modify()