Lines Matching defs:mbhc

78 static inline int wcd_mbhc_write_field(const struct wcd_mbhc *mbhc,  in wcd_mbhc_write_field()
89 static inline int wcd_mbhc_read_field(const struct wcd_mbhc *mbhc, int field) in wcd_mbhc_read_field()
99 static void wcd_program_hs_vref(struct wcd_mbhc *mbhc) in wcd_program_hs_vref()
106 static void wcd_program_btn_threshold(const struct wcd_mbhc *mbhc, bool micbias) in wcd_program_btn_threshold()
115 static void wcd_mbhc_curr_micbias_control(const struct wcd_mbhc *mbhc, in wcd_mbhc_curr_micbias_control()
161 int wcd_mbhc_event_notify(struct wcd_mbhc *mbhc, unsigned long event) in wcd_mbhc_event_notify()
267 static int wcd_cancel_btn_work(struct wcd_mbhc *mbhc) in wcd_cancel_btn_work()
272 static void wcd_micbias_disable(struct wcd_mbhc *mbhc) in wcd_micbias_disable()
288 static void wcd_mbhc_report_plug_removal(struct wcd_mbhc *mbhc, in wcd_mbhc_report_plug_removal()
309 static void wcd_mbhc_compute_impedance(struct wcd_mbhc *mbhc) in wcd_mbhc_compute_impedance()
327 static void wcd_mbhc_report_plug_insertion(struct wcd_mbhc *mbhc, in wcd_mbhc_report_plug_insertion()
401 static void wcd_mbhc_report_plug(struct wcd_mbhc *mbhc, int insertion, in wcd_mbhc_report_plug()
414 static void wcd_cancel_hs_detect_plug(struct wcd_mbhc *mbhc, in wcd_cancel_hs_detect_plug()
423 static void wcd_mbhc_cancel_pending_work(struct wcd_mbhc *mbhc) in wcd_mbhc_cancel_pending_work()
431 static void wcd_mbhc_elec_hs_report_unplug(struct wcd_mbhc *mbhc) in wcd_mbhc_elec_hs_report_unplug()
451 static void wcd_mbhc_find_plug_and_report(struct wcd_mbhc *mbhc, in wcd_mbhc_find_plug_and_report()
483 static void wcd_schedule_hs_detect_plug(struct wcd_mbhc *mbhc, in wcd_schedule_hs_detect_plug()
491 static void wcd_mbhc_adc_detect_plug_type(struct wcd_mbhc *mbhc) in wcd_mbhc_adc_detect_plug_type()
513 struct wcd_mbhc *mbhc = data; in wcd_mbhc_mech_plug_detect_irq() local
582 static int wcd_mbhc_get_button_mask(struct wcd_mbhc *mbhc) in wcd_mbhc_get_button_mask()
618 struct wcd_mbhc *mbhc = container_of(dwork, struct wcd_mbhc, mbhc_btn_dwork); in wcd_btn_long_press_fn() local
627 struct wcd_mbhc *mbhc = data; in wcd_mbhc_btn_press_handler() local
659 struct wcd_mbhc *mbhc = data; in wcd_mbhc_btn_release_handler() local
689 static irqreturn_t wcd_mbhc_hph_ocp_irq(struct wcd_mbhc *mbhc, bool hphr) in wcd_mbhc_hph_ocp_irq()
712 static int wcd_mbhc_initialise(struct wcd_mbhc *mbhc) in wcd_mbhc_initialise()
771 static int wcd_mbhc_get_micbias(struct wcd_mbhc *mbhc) in wcd_mbhc_get_micbias()
797 static int wcd_measure_adc_continuous(struct wcd_mbhc *mbhc) in wcd_measure_adc_continuous()
836 static int wcd_measure_adc_once(struct wcd_mbhc *mbhc, int mux_ctl) in wcd_measure_adc_once()
896 static int wcd_check_cross_conn(struct wcd_mbhc *mbhc) in wcd_check_cross_conn()
947 static int wcd_mbhc_adc_get_hs_thres(struct wcd_mbhc *mbhc) in wcd_mbhc_adc_get_hs_thres()
965 static int wcd_mbhc_adc_get_hph_thres(struct wcd_mbhc *mbhc) in wcd_mbhc_adc_get_hph_thres()
983 static void wcd_mbhc_adc_update_fsm_source(struct wcd_mbhc *mbhc, in wcd_mbhc_adc_update_fsm_source()
1007 static void wcd_mbhc_bcs_enable(struct wcd_mbhc *mbhc, int plug_type, bool enable) in wcd_mbhc_bcs_enable()
1020 static int wcd_mbhc_get_plug_from_adc(struct wcd_mbhc *mbhc, int adc_result) in wcd_mbhc_get_plug_from_adc()
1039 static int wcd_mbhc_get_spl_hs_thres(struct wcd_mbhc *mbhc) in wcd_mbhc_get_spl_hs_thres()
1056 static bool wcd_mbhc_check_for_spl_headset(struct wcd_mbhc *mbhc) in wcd_mbhc_check_for_spl_headset()
1087 struct wcd_mbhc *mbhc; in wcd_correct_swch_plug() local
1265 struct wcd_mbhc *mbhc = data; in wcd_mbhc_adc_hs_rem_irq() local
1308 struct wcd_mbhc *mbhc = data; in wcd_mbhc_adc_hs_ins_irq() local
1348 int wcd_mbhc_get_impedance(struct wcd_mbhc *mbhc, uint32_t *zl, uint32_t *zr) in wcd_mbhc_get_impedance()
1360 void wcd_mbhc_set_hph_type(struct wcd_mbhc *mbhc, int hph_type) in wcd_mbhc_set_hph_type()
1366 int wcd_mbhc_get_hph_type(struct wcd_mbhc *mbhc) in wcd_mbhc_get_hph_type()
1372 int wcd_mbhc_start(struct wcd_mbhc *mbhc, struct wcd_mbhc_config *cfg, in wcd_mbhc_start()
1385 void wcd_mbhc_stop(struct wcd_mbhc *mbhc) in wcd_mbhc_stop()
1449 struct wcd_mbhc *mbhc; in wcd_mbhc_init() local
1553 void wcd_mbhc_deinit(struct wcd_mbhc *mbhc) in wcd_mbhc_deinit()