Lines Matching defs:ctx
139 int mec_hal_i2c_smb_reset(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_reset()
165 static void i2c_config(struct mec_i2c_smb_ctx *ctx, struct mec_i2c_smb_cfg *config, in i2c_config()
210 int mec_hal_i2c_smb_bus_freq_get(struct mec_i2c_smb_ctx *ctx, uint32_t *bus_freq_hz) in mec_hal_i2c_smb_bus_freq_get()
226 int mec_hal_i2c_smb_init(struct mec_i2c_smb_ctx *ctx, struct mec_i2c_smb_cfg *config, in mec_hal_i2c_smb_init()
275 static int mec_hal_i2c_smb_own_addr(struct mec_i2c_smb_ctx *ctx, uint8_t tid, in mec_hal_i2c_smb_own_addr()
316 int mec_hal_i2c_smb_get_target_addr(struct mec_i2c_smb_ctx *ctx, uint8_t target_id, in mec_hal_i2c_smb_get_target_addr()
326 int mec_hal_i2c_smb_set_target_addr(struct mec_i2c_smb_ctx *ctx, uint8_t target_id, in mec_hal_i2c_smb_set_target_addr()
332 int mec_hal_i2c_smb_clr_target_addr(struct mec_i2c_smb_ctx *ctx, uint16_t target_addr) in mec_hal_i2c_smb_clr_target_addr()
354 int mec_hal_i2c_smb_girq_status_clr(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_girq_status_clr()
366 int mec_hal_i2c_smb_girq_ctrl(struct mec_i2c_smb_ctx *ctx, int flags) in mec_hal_i2c_smb_girq_ctrl()
387 int mec_hal_i2c_smb_girq_status(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_girq_status()
396 int mec_hal_i2c_smb_girq_result(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_girq_result()
409 int mec_hal_i2c_smb_is_bus_owned(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_is_bus_owned()
425 int mec_hal_i2c_smb_ctrl_set(struct mec_i2c_smb_ctx *ctx, uint8_t ctrl) in mec_hal_i2c_smb_ctrl_set()
440 uint8_t mec_hal_i2c_smb_ctrl_get(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_ctrl_get()
449 int mec_hal_i2c_cmd_ack_ctrl(struct mec_i2c_smb_ctx *ctx, uint8_t ack_en) in mec_hal_i2c_cmd_ack_ctrl()
472 int mec_hal_i2c_smb_rearm_target_rx(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_rearm_target_rx()
480 int mec_hal_i2c_smb_auto_ack_enable(struct mec_i2c_smb_ctx *ctx, uint8_t ien) in mec_hal_i2c_smb_auto_ack_enable()
499 int mec_hal_i2c_smb_auto_ack_disable(struct mec_i2c_smb_ctx *ctx, uint8_t ien) in mec_hal_i2c_smb_auto_ack_disable()
518 int mec_hal_i2c_smb_idle_intr_enable(struct mec_i2c_smb_ctx *ctx, uint8_t enable) in mec_hal_i2c_smb_idle_intr_enable()
537 int mec_hal_i2c_smb_intr_ctrl(struct mec_i2c_smb_ctx *ctx, uint32_t mask, uint8_t enable) in mec_hal_i2c_smb_intr_ctrl()
588 uint32_t mec_hal_i2c_smb_status(struct mec_i2c_smb_ctx *ctx, uint8_t clear) in mec_hal_i2c_smb_status()
606 uint32_t mec_hal_i2c_smb_wake_status(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_wake_status()
617 void mec_hal_i2c_smb_wake_status_clr(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_wake_status_clr()
630 int mec_hal_i2c_smb_is_idle_ien(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_is_idle_ien()
646 int mec_hal_i2c_smb_is_idle_intr(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_is_idle_intr()
669 bool mec_hal_i2c_smb_is_aat_ien(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_is_aat_ien()
686 int mec_hal_i2c_smb_idle_status_clr(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_idle_status_clr()
708 int mec_hal_i2c_smb_start_gen(struct mec_i2c_smb_ctx *ctx, uint8_t target_addr, int flags) in mec_hal_i2c_smb_start_gen()
737 int mec_hal_i2c_smb_stop_gen(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_stop_gen()
765 int mec_hal_i2c_smb_xmit_byte(struct mec_i2c_smb_ctx *ctx, uint8_t msg_byte) in mec_hal_i2c_smb_xmit_byte()
789 int mec_hal_i2c_smb_read_byte(struct mec_i2c_smb_ctx *ctx, uint8_t *msg_byte) in mec_hal_i2c_smb_read_byte()
806 int mec_hal_i2c_smb_bbctrl(struct mec_i2c_smb_ctx *ctx, uint8_t enable, uint8_t pin_drive) in mec_hal_i2c_smb_bbctrl()
838 uint8_t mec_hal_i2c_smb_bbctrl_pin_states(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_smb_bbctrl_pin_states()
856 int mec_hal_i2c_nl_cm_cfg_start(struct mec_i2c_smb_ctx *ctx, uint16_t ntx, uint16_t nrx, in mec_hal_i2c_nl_cm_cfg_start()
939 uint32_t mec_hal_i2c_nl_cm_event(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_nl_cm_event()
963 int mec_hal_i2c_nl_cmd_clear(struct mec_i2c_smb_ctx *ctx, uint8_t is_tm) in mec_hal_i2c_nl_cmd_clear()
980 int mec_hal_i2c_nl_cm_proceed(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_nl_cm_proceed()
992 int mec_hal_i2c_nl_tm_proceed(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_nl_tm_proceed()
1106 uint32_t mec_hal_i2c_nl_cmd_get(struct mec_i2c_smb_ctx *ctx, uint8_t is_tm) in mec_hal_i2c_nl_cmd_get()
1165 int mec_hal_i2c_nl_tm_config(struct mec_i2c_smb_ctx *ctx, uint16_t ntx, uint16_t nrx, in mec_hal_i2c_nl_tm_config()
1224 uint32_t mec_hal_i2c_nl_tm_event(struct mec_i2c_smb_ctx *ctx) in mec_hal_i2c_nl_tm_event()
1249 uint32_t mec_hal_i2c_nl_tm_xfr_count_get(struct mec_i2c_smb_ctx *ctx, uint8_t is_rx) in mec_hal_i2c_nl_tm_xfr_count_get()
1311 uint32_t mec_hal_i2c_nl_tm_transfered(struct mec_i2c_smb_ctx *ctx, uint8_t is_rx) in mec_hal_i2c_nl_tm_transfered()