Searched refs:rz_mtu3_channel (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/include/linux/mfd/ |
H A D | rz-mtu3.h | 133 struct rz_mtu3_channel { struct 149 struct rz_mtu3_channel channels[RZ_MTU_NUM_CHANNELS]; 154 static inline bool rz_mtu3_request_channel(struct rz_mtu3_channel *ch) in rz_mtu3_request_channel() 168 static inline void rz_mtu3_release_channel(struct rz_mtu3_channel *ch) in rz_mtu3_release_channel() 175 bool rz_mtu3_is_enabled(struct rz_mtu3_channel *ch); 176 void rz_mtu3_disable(struct rz_mtu3_channel *ch); 177 int rz_mtu3_enable(struct rz_mtu3_channel *ch); 179 u8 rz_mtu3_8bit_ch_read(struct rz_mtu3_channel *ch, u16 off); 180 u16 rz_mtu3_16bit_ch_read(struct rz_mtu3_channel *ch, u16 off); 181 u32 rz_mtu3_32bit_ch_read(struct rz_mtu3_channel *ch, u16 off); [all …]
|
/openbmc/linux/drivers/counter/ |
H A D | rz-mtu3-cnt.c | 78 struct rz_mtu3_channel *ch; 97 static inline struct rz_mtu3_channel *rz_mtu3_get_ch(struct counter_device *counter, int id) in rz_mtu3_get_ch() 124 struct rz_mtu3_channel *const ch, in rz_mtu3_lock_if_counter_is_valid() 143 static int rz_mtu3_lock_if_count_is_enabled(struct rz_mtu3_channel *const ch, in rz_mtu3_lock_if_count_is_enabled() 160 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_read() 182 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_write() 201 static int rz_mtu3_count_function_read_helper(struct rz_mtu3_channel *const ch, in rz_mtu3_count_function_read_helper() 235 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_function_read() 253 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_function_write() 294 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_direction_read() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | rz-mtu3.c | 65 u16 rz_mtu3_shared_reg_read(struct rz_mtu3_channel *ch, u16 offset) in rz_mtu3_shared_reg_read() 77 u8 rz_mtu3_8bit_ch_read(struct rz_mtu3_channel *ch, u16 offset) in rz_mtu3_8bit_ch_read() 89 u16 rz_mtu3_16bit_ch_read(struct rz_mtu3_channel *ch, u16 offset) in rz_mtu3_16bit_ch_read() 105 u32 rz_mtu3_32bit_ch_read(struct rz_mtu3_channel *ch, u16 offset) in rz_mtu3_32bit_ch_read() 120 void rz_mtu3_8bit_ch_write(struct rz_mtu3_channel *ch, u16 offset, u8 val) in rz_mtu3_8bit_ch_write() 131 void rz_mtu3_16bit_ch_write(struct rz_mtu3_channel *ch, u16 offset, u16 val) in rz_mtu3_16bit_ch_write() 146 void rz_mtu3_32bit_ch_write(struct rz_mtu3_channel *ch, u16 offset, u32 val) in rz_mtu3_32bit_ch_write() 160 void rz_mtu3_shared_reg_write(struct rz_mtu3_channel *ch, u16 offset, u16 value) in rz_mtu3_shared_reg_write() 172 void rz_mtu3_shared_reg_update_bit(struct rz_mtu3_channel *ch, u16 offset, in rz_mtu3_shared_reg_update_bit() 187 static u16 rz_mtu3_get_tstr_offset(struct rz_mtu3_channel *ch) in rz_mtu3_get_tstr_offset() [all …]
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-rz-mtu3.c | 57 struct rz_mtu3_channel *mtu;
|