Lines Matching refs:ctx

136 int mec_hal_i2c_smb_reset(struct mec_i2c_smb_ctx *ctx);
138 int mec_hal_i2c_smb_init(struct mec_i2c_smb_ctx *ctx, struct mec_i2c_smb_cfg *config,
141 int mec_hal_i2c_smb_bus_freq_get(struct mec_i2c_smb_ctx *ctx, uint32_t *bus_freq_hz);
143 int mec_hal_i2c_smb_ctrl_set(struct mec_i2c_smb_ctx *ctx, uint8_t ctrl);
144 uint8_t mec_hal_i2c_smb_ctrl_get(struct mec_i2c_smb_ctx *ctx);
146 int mec_hal_i2c_cmd_ack_ctrl(struct mec_i2c_smb_ctx *ctx, uint8_t ack_en);
148 int mec_hal_i2c_smb_is_bus_owned(struct mec_i2c_smb_ctx *ctx);
150 int mec_hal_i2c_smb_get_target_addr(struct mec_i2c_smb_ctx *ctx, uint8_t target_id,
152 int mec_hal_i2c_smb_set_target_addr(struct mec_i2c_smb_ctx *ctx, uint8_t target_id,
154 int mec_hal_i2c_smb_clr_target_addr(struct mec_i2c_smb_ctx *ctx, uint16_t target_addr);
156 int mec_hal_i2c_smb_auto_ack_enable(struct mec_i2c_smb_ctx *ctx, uint8_t ien);
157 int mec_hal_i2c_smb_auto_ack_disable(struct mec_i2c_smb_ctx *ctx, uint8_t ien);
163 int mec_hal_i2c_smb_girq_ctrl(struct mec_i2c_smb_ctx *ctx, int flags);
164 int mec_hal_i2c_smb_girq_status_clr(struct mec_i2c_smb_ctx *ctx);
165 int mec_hal_i2c_smb_girq_status(struct mec_i2c_smb_ctx *ctx);
166 int mec_hal_i2c_smb_girq_result(struct mec_i2c_smb_ctx *ctx);
168 uint32_t mec_hal_i2c_smb_wake_status(struct mec_i2c_smb_ctx *ctx);
169 void mec_hal_i2c_smb_wake_status_clr(struct mec_i2c_smb_ctx *ctx);
171 int mec_hal_i2c_smb_idle_intr_enable(struct mec_i2c_smb_ctx *ctx, uint8_t enable);
174 int mec_hal_i2c_smb_intr_ctrl(struct mec_i2c_smb_ctx *ctx, uint32_t mask, uint8_t en);
176 uint32_t mec_hal_i2c_smb_status(struct mec_i2c_smb_ctx *ctx, uint8_t clear);
177 int mec_hal_i2c_smb_is_idle_intr(struct mec_i2c_smb_ctx *ctx);
178 int mec_hal_i2c_smb_is_idle_ien(struct mec_i2c_smb_ctx *ctx);
179 int mec_hal_i2c_smb_idle_status_clr(struct mec_i2c_smb_ctx *ctx);
181 bool mec_hal_i2c_smb_is_aat_ien(struct mec_i2c_smb_ctx *ctx);
186 int mec_hal_i2c_smb_start_gen(struct mec_i2c_smb_ctx *ctx, uint8_t target_addr, int flags);
189 int mec_hal_i2c_smb_stop_gen(struct mec_i2c_smb_ctx *ctx);
191 int mec_hal_i2c_smb_rearm_target_rx(struct mec_i2c_smb_ctx *ctx);
193 int mec_hal_i2c_smb_xmit_byte(struct mec_i2c_smb_ctx *ctx, uint8_t msg_byte);
195 int mec_hal_i2c_smb_read_byte(struct mec_i2c_smb_ctx *ctx, uint8_t *msg_byte);
200 int mec_hal_i2c_smb_bbctrl(struct mec_i2c_smb_ctx *ctx, uint8_t enable, uint8_t pin_drive);
201 uint8_t mec_hal_i2c_smb_bbctrl_pin_states(struct mec_i2c_smb_ctx *ctx);
216 int mec_hal_i2c_nl_cm_cfg_start(struct mec_i2c_smb_ctx *ctx, uint16_t ntx, uint16_t nrx,
222 int mec_hal_i2c_nl_cmd_clear(struct mec_i2c_smb_ctx *ctx, uint8_t is_tm);
223 int mec_hal_i2c_nl_cm_proceed(struct mec_i2c_smb_ctx *ctx);
224 int mec_hal_i2c_nl_tm_proceed(struct mec_i2c_smb_ctx *ctx);
226 uint32_t mec_hal_i2c_nl_cmd_get(struct mec_i2c_smb_ctx *ctx, uint8_t is_tm);
231 uint32_t mec_hal_i2c_nl_cm_event(struct mec_i2c_smb_ctx *ctx);
272 int mec_hal_i2c_nl_tm_config(struct mec_i2c_smb_ctx *ctx, uint16_t ntx, uint16_t nrx,
275 uint32_t mec_hal_i2c_nl_tm_event(struct mec_i2c_smb_ctx *ctx);
280 uint32_t mec_hal_i2c_nl_tm_xfr_count_get(struct mec_i2c_smb_ctx *ctx, uint8_t is_rx);
282 uint32_t mec_hal_i2c_nl_tm_transfered(struct mec_i2c_smb_ctx *ctx, uint8_t is_rx);