Lines Matching defs:ctx
30 #define mxm_dbg(ctx, fmt, arg...) dev_dbg(&ctx->client->dev, fmt, ## arg) argument
31 #define mxm_err(ctx, fmt, arg...) dev_err(&ctx->client->dev, fmt, ## arg) argument
316 static int max2175_read(struct max2175 *ctx, u8 idx, u8 *val) in max2175_read()
330 static int max2175_write(struct max2175 *ctx, u8 idx, u8 val) in max2175_write()
342 static u8 max2175_read_bits(struct max2175 *ctx, u8 idx, u8 msb, u8 lsb) in max2175_read_bits()
352 static int max2175_write_bits(struct max2175 *ctx, u8 idx, in max2175_write_bits()
364 static int max2175_write_bit(struct max2175 *ctx, u8 idx, u8 bit, u8 newval) in max2175_write_bit()
370 static int max2175_poll_timeout(struct max2175 *ctx, u8 idx, u8 msb, u8 lsb, in max2175_poll_timeout()
380 static int max2175_poll_csm_ready(struct max2175 *ctx) in max2175_poll_csm_ready()
391 #define MAX2175_IS_BAND_AM(ctx) \ argument
394 #define MAX2175_IS_BAND_VHF(ctx) \ argument
397 #define MAX2175_IS_FM_MODE(ctx) \ argument
400 #define MAX2175_IS_FMHD_MODE(ctx) \ argument
403 #define MAX2175_IS_DAB_MODE(ctx) \ argument
416 static void max2175_i2s_enable(struct max2175 *ctx, bool enable) in max2175_i2s_enable()
427 static void max2175_set_filter_coeffs(struct max2175 *ctx, u8 m_sel, in max2175_set_filter_coeffs()
448 static void max2175_load_fmeu_1p2(struct max2175 *ctx) in max2175_load_fmeu_1p2()
463 static void max2175_load_dab_1p2(struct max2175 *ctx) in max2175_load_dab_1p2()
476 static void max2175_load_fmna_1p0(struct max2175 *ctx) in max2175_load_fmna_1p0()
484 static void max2175_load_fmna_2p0(struct max2175 *ctx) in max2175_load_fmna_2p0()
492 static void max2175_set_bbfilter(struct max2175 *ctx) in max2175_set_bbfilter()
506 static int max2175_set_csm_mode(struct max2175 *ctx, in max2175_set_csm_mode()
533 static int max2175_csm_action(struct max2175 *ctx, in max2175_csm_action()
548 static int max2175_set_lo_freq(struct max2175 *ctx, u32 lo_freq) in max2175_set_lo_freq()
628 static int max2175_set_nco_freq(struct max2175 *ctx, s32 nco_freq) in max2175_set_nco_freq()
664 static int max2175_set_rf_freq_non_am_bands(struct max2175 *ctx, u64 freq, in max2175_set_rf_freq_non_am_bands()
691 static int max2175_set_rf_freq(struct max2175 *ctx, u64 freq, u32 lo_pos) in max2175_set_rf_freq()
705 static int max2175_tune_rf_freq(struct max2175 *ctx, u64 freq, u32 hsls) in max2175_tune_rf_freq()
723 static void max2175_set_hsls(struct max2175 *ctx, u32 lo_pos) in max2175_set_hsls()
733 static void max2175_set_eu_rx_mode(struct max2175 *ctx, u32 rx_mode) in max2175_set_eu_rx_mode()
749 static void max2175_set_na_rx_mode(struct max2175 *ctx, u32 rx_mode) in max2175_set_na_rx_mode()
771 static int max2175_set_rx_mode(struct max2175 *ctx, u32 rx_mode) in max2175_set_rx_mode()
801 static int max2175_rx_mode_from_freq(struct max2175 *ctx, u32 freq, u32 *mode) in max2175_rx_mode_from_freq()
819 static bool max2175_freq_rx_mode_valid(struct max2175 *ctx, in max2175_freq_rx_mode_valid()
827 static void max2175_load_adc_presets(struct max2175 *ctx) in max2175_load_adc_presets()
836 static int max2175_init_power_manager(struct max2175 *ctx) in max2175_init_power_manager()
853 static int max2175_recalibrate_adc(struct max2175 *ctx) in max2175_recalibrate_adc()
872 static u8 max2175_read_rom(struct max2175 *ctx, u8 row) in max2175_read_rom()
889 static void max2175_load_from_rom(struct max2175 *ctx) in max2175_load_from_rom()
923 static void max2175_load_full_fm_eu_1p0(struct max2175 *ctx) in max2175_load_full_fm_eu_1p0()
934 static void max2175_load_full_fm_na_1p0(struct max2175 *ctx) in max2175_load_full_fm_na_1p0()
945 static int max2175_core_init(struct max2175 *ctx, u32 refout_bits) in max2175_core_init()
1003 static void max2175_s_ctrl_rx_mode(struct max2175 *ctx, u32 rx_mode) in max2175_s_ctrl_rx_mode()
1021 struct max2175 *ctx = max2175_from_ctrl_hdl(ctrl->handler); in max2175_s_ctrl() local
1039 static u32 max2175_get_lna_gain(struct max2175 *ctx) in max2175_get_lna_gain()
1057 struct max2175 *ctx = max2175_from_ctrl_hdl(ctrl->handler); in max2175_g_volatile_ctrl() local
1074 static int max2175_set_freq_and_mode(struct max2175 *ctx, u32 freq) in max2175_set_freq_and_mode()
1097 struct max2175 *ctx = max2175_from_sd(sd); in max2175_s_frequency() local
1127 struct max2175 *ctx = max2175_from_sd(sd); in max2175_g_frequency() local
1142 struct max2175 *ctx = max2175_from_sd(sd); in max2175_enum_freq_bands() local
1154 struct max2175 *ctx = max2175_from_sd(sd); in max2175_g_tuner() local
1282 struct max2175 *ctx; in max2175_probe() local
1409 struct max2175 *ctx = max2175_from_sd(sd); in max2175_remove() local