/linux-master/drivers/media/dvb-frontends/ |
H A D | lgs8gl5.c | 60 lgs8gl5_write_reg(struct lgs8gl5_state *state, u8 reg, u8 data) argument 65 .addr = state->config->demod_address, 71 ret = i2c_transfer(state->i2c, &msg, 1); 81 lgs8gl5_read_reg(struct lgs8gl5_state *state, u8 reg) argument 88 .addr = state->config->demod_address, 94 .addr = state->config->demod_address, 101 ret = i2c_transfer(state->i2c, msg, 2); 110 lgs8gl5_update_reg(struct lgs8gl5_state *state, u8 reg, u8 data) argument 112 lgs8gl5_read_reg(state, reg); 113 lgs8gl5_write_reg(state, re 121 lgs8gl5_update_alt_reg(struct lgs8gl5_state *state, u8 reg, u8 data) argument 154 lgs8gl5_soft_reset(struct lgs8gl5_state *state) argument 169 lgs8gl5_start_demod(struct lgs8gl5_state *state) argument 222 struct lgs8gl5_state *state = fe->demodulator_priv; local 242 struct lgs8gl5_state *state = fe->demodulator_priv; local 273 struct lgs8gl5_state *state = fe->demodulator_priv; local 284 struct lgs8gl5_state *state = fe->demodulator_priv; local 305 struct lgs8gl5_state *state = fe->demodulator_priv; local 330 struct lgs8gl5_state *state = fe->demodulator_priv; local 362 struct lgs8gl5_state *state = fe->demodulator_priv; local 373 struct lgs8gl5_state *state = NULL; local [all...] |
H A D | stb0899_algo.c | 48 static u32 stb0899_get_srate(struct stb0899_state *state) 50 struct stb0899_internal *internal = &state->internal; 53 stb0899_read_regs(state, STB0899_SFRH, sfr, 3); 66 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate) argument 71 dprintk(state->verbose, FE_DEBUG, 1, "-->"); 96 stb0899_write_regs(state, STB0899_SFRH, sfr, 3); 120 long stb0899_carr_width(struct stb0899_state *state) argument 122 struct stb0899_internal *internal = &state->internal; 131 static void stb0899_first_subrange(struct stb0899_state *state) argument 133 struct stb0899_internal *internal = &state 162 stb0899_check_tmg(struct stb0899_state *state) argument 195 stb0899_search_tmg(struct stb0899_state *state) argument 238 stb0899_check_carrier(struct stb0899_state *state) argument 266 stb0899_search_carrier(struct stb0899_state *state) argument 322 stb0899_check_data(struct stb0899_state *state) argument 377 stb0899_search_data(struct stb0899_state *state) argument 436 stb0899_check_range(struct stb0899_state *state) argument 461 next_sub_range(struct stb0899_state *state) argument 489 stb0899_dvbs_algo(struct stb0899_state *state) argument 726 stb0899_dvbs2_config_uwp(struct stb0899_state *state) argument 760 stb0899_dvbs2_config_csm_auto(struct stb0899_state *state) argument 787 stb0899_dvbs2_calc_srate(struct stb0899_state *state) argument 818 stb0899_dvbs2_calc_dev(struct stb0899_state *state) argument 837 stb0899_dvbs2_set_srate(struct stb0899_state *state) argument 891 stb0899_dvbs2_set_btr_loopbw(struct stb0899_state *state) argument 950 stb0899_dvbs2_set_carr_freq(struct stb0899_state *state, s32 carr_freq, u32 master_clk) argument 967 stb0899_dvbs2_init_calc(struct stb0899_state *state) argument 1013 stb0899_dvbs2_btr_init(struct stb0899_state *state) argument 1036 stb0899_dvbs2_reacquire(struct stb0899_state *state) argument 1084 stb0899_dvbs2_get_dmd_status(struct stb0899_state *state, int timeout) argument 1118 stb0899_dvbs2_get_data_lock(struct stb0899_state *state, int timeout) argument 1137 stb0899_dvbs2_get_fec_status(struct stb0899_state *state, int timeout) argument 1161 stb0899_dvbs2_init_csm(struct stb0899_state *state, int pilots, enum stb0899_modcod modcod) argument 1268 stb0899_dvbs2_get_srate(struct stb0899_state *state) argument 1302 stb0899_dvbs2_algo(struct stb0899_state *state) argument [all...] |
H A D | stb0899_priv.h | 176 u32 lock; /* Demod internal lock state */ 214 extern int stb0899_read_reg(struct stb0899_state *state, 217 extern u32 _stb0899_read_s2reg(struct stb0899_state *state, 222 extern int stb0899_read_regs(struct stb0899_state *state, 226 extern int stb0899_write_regs(struct stb0899_state *state, 230 extern int stb0899_write_reg(struct stb0899_state *state, 234 extern int stb0899_write_s2reg(struct stb0899_state *state, 243 #define STB0899_READ_S2REG(DEVICE, REG) (_stb0899_read_s2reg(state, DEVICE, STB0899_BASE_##REG, STB0899_OFF0_##REG)) 244 //#define STB0899_WRITE_S2REG(DEVICE, REG, DATA) (_stb0899_write_s2reg(state, DEVICE, STB0899_BASE_##REG, STB0899_OFF0_##REG, DATA)) 247 extern enum stb0899_status stb0899_dvbs_algo(struct stb0899_state *state); [all...] |
H A D | stv0900_sw.c | 504 struct stv0900_state *state = fe->demodulator_priv; local 505 struct stv0900_internal *intp = state->internal; 506 enum fe_stv0900_demod_num demod = state->demod; 809 struct stv0900_state *state = fe->demodulator_priv; local 810 struct stv0900_internal *intp = state->internal; 811 enum fe_stv0900_demod_num demod = state->demod; 1099 struct stv0900_state *state = fe->demodulator_priv; local 1100 struct stv0900_internal *intp = state->internal; 1173 struct stv0900_state *state = fe->demodulator_priv; local 1174 struct stv0900_internal *intp = state 1266 struct stv0900_state *state = fe->demodulator_priv; local 1387 struct stv0900_state *state = fe->demodulator_priv; local 1507 struct stv0900_state *state = fe->demodulator_priv; local 1585 struct stv0900_state *state = fe->demodulator_priv; local 1806 struct stv0900_state *state = fe->demodulator_priv; local [all...] |
/linux-master/drivers/media/i2c/cx25840/ |
H A D | cx25840-audio.c | 33 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 35 if (state->aud_input != CX25840_AUDIO_SERIAL) { 65 if (is_cx2583x(state)) 102 if (is_cx2583x(state)) 139 if (is_cx2583x(state)) 178 if (is_cx2583x(state)) 219 if (is_cx2583x(state)) 260 if (is_cx2583x(state)) 276 state->audclk_freq = freq; 288 struct cx25840_state *state local 330 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 406 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 425 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 507 struct cx25840_state *state = to_state(sd); local 527 struct cx25840_state *state = to_state(sd); local [all...] |
H A D | cx25840-core.h | 112 static inline bool is_cx2583x(struct cx25840_state *state) argument 114 return state->id == CX25836 || 115 state->id == CX25837; 118 static inline bool is_cx2584x(struct cx25840_state *state) argument 120 return state->id == CX25840 || 121 state->id == CX25841 || 122 state->id == CX25842 || 123 state->id == CX25843; 126 static inline bool is_cx231xx(struct cx25840_state *state) argument 128 return state 131 is_cx2388x(struct cx25840_state *state) argument 138 is_cx23885(struct cx25840_state *state) argument 143 is_cx23887(struct cx25840_state *state) argument 148 is_cx23888(struct cx25840_state *state) argument [all...] |
H A D | cx25840-firmware.c | 57 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 61 if (is_cx2388x(state)) 63 if (is_cx231xx(state)) 97 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); local 106 if (is_cx2388x(state)) { 113 if (is_cx231xx(state) && max_buf_size > 16) 149 if (is_cx2388x(state)) {
|
H A D | cx25840-vbi.c | 75 struct cx25840_state *state = to_state(sd); local 83 int is_pal = !(state->std & V4L2_STD_525_60); 96 state->vbi_regs_offset + 0x424 + i - 7); 106 state->vbi_regs_offset + 0x424 + i - 10); 120 struct cx25840_state *state = to_state(sd); local 121 int is_pal = !(state->std & V4L2_STD_525_60); 128 if (is_cx23888(state)) 140 struct cx25840_state *state = to_state(sd); local 141 int is_pal = !(state->std & V4L2_STD_525_60); 156 if (is_cx23888(state)) 218 struct cx25840_state *state = to_state(sd); local [all...] |
/linux-master/drivers/media/pci/bt8xx/ |
H A D | bttv-i2c.c | 46 static void bttv_bit_setscl(void *data, int state) argument 50 if (state) 58 static void bttv_bit_setsda(void *data, int state) argument 62 if (state) 73 int state; local 75 state = btread(BT848_I2C) & 0x02 ? 1 : 0; 76 return state; 82 int state; local 84 state = btread(BT848_I2C) & 0x01; 85 return state; [all...] |
H A D | dst_common.h | 155 int rdc_reset_state(struct dst_state *state); 157 int dst_wait_dst_ready(struct dst_state *state, u8 delay_mode); 158 int dst_pio_disable(struct dst_state *state); 159 int dst_error_recovery(struct dst_state* state); 160 int dst_error_bailout(struct dst_state *state); 161 int dst_comm_init(struct dst_state* state); 163 int write_dst(struct dst_state *state, u8 * data, u8 len); 164 int read_dst(struct dst_state *state, u8 * ret, u8 len); 166 struct dst_state* dst_attach(struct dst_state* state, struct dvb_adapter *dvb_adapter); 167 struct dvb_device *dst_ca_attach(struct dst_state *state, struc [all...] |
/linux-master/drivers/media/pci/cx23885/ |
H A D | altera-ci.c | 101 struct altera_ci_state *state[2]; member in struct:fpga_internal 261 struct altera_ci_state *state = en50221->data; local 262 struct fpga_internal *inter = state->internal; 277 store |= ((state->nr << 7) | (flag << 6)); 319 struct altera_ci_state *state = en50221->data; local 320 struct fpga_internal *inter = state->internal; 334 (ret & 0xcf) | (1 << (5 - state->nr)), 0); 347 if ((ret & (1 << (5 - state->nr))) == 0) 368 struct altera_ci_state *state = en50221->data; local 369 struct fpga_internal *inter = state 446 struct altera_ci_state *state = en50221->data; local 485 struct altera_ci_state *state = NULL; local 703 struct altera_ci_state *state; local [all...] |
H A D | cimax2.c | 170 struct netup_ci_state *state = en50221->data; local 171 struct cx23885_tsport *port = state->priv; 181 if (state->current_ci_flag != flag) { 182 ret = netup_read_i2c(state->i2c_adap, state->ci_i2c_addr, 190 ret = netup_write_i2c(state->i2c_adap, state->ci_i2c_addr, 195 state->current_ci_flag = flag; 215 (state->ci_i2c_addr == 0x40) ? NETUP_CS0 : NETUP_CS1); 227 (read) ? "read" : "write", state 264 struct netup_ci_state *state = en50221->data; local 299 struct netup_ci_state *state = en50221->data; local 320 struct netup_ci_state *state = en50221->data; local 337 struct netup_ci_state *state = local 374 struct netup_ci_state *state = NULL; local 401 struct netup_ci_state *state = en50221->data; local 414 struct netup_ci_state *state; local 519 struct netup_ci_state *state; local [all...] |
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-i2c.c | 44 static void cx8800_bit_setscl(void *data, int state) argument 48 if (state) 56 static void cx8800_bit_setsda(void *data, int state) argument 60 if (state) 71 u32 state; local 73 state = cx_read(MO_I2C); 74 return state & 0x02 ? 1 : 0; 80 u32 state; local 82 state = cx_read(MO_I2C); 83 return state [all...] |
H A D | cx88-vp3054-i2c.c | 24 static void vp3054_bit_setscl(void *data, int state) argument 30 if (state) { 31 vp3054_i2c->state |= 0x0001; /* SCL high */ 32 vp3054_i2c->state &= ~0x0100; /* external pullup */ 34 vp3054_i2c->state &= ~0x0001; /* SCL low */ 35 vp3054_i2c->state |= 0x0100; /* drive pin */ 37 cx_write(MO_GP0_IO, 0x010000 | vp3054_i2c->state); 41 static void vp3054_bit_setsda(void *data, int state) argument 47 if (state) { 48 vp3054_i2c->state | 62 u32 state; local 72 u32 state; local [all...] |
H A D | cx88-vp3054-i2c.h | 14 u32 state; member in struct:vp3054_i2c_state
|
/linux-master/drivers/media/pci/netup_unidvb/ |
H A D | netup_unidvb.h | 87 enum netup_i2c_state state; member in struct:netup_i2c
|
H A D | netup_unidvb_ci.c | 55 struct netup_ci_state *state = en50221->data; local 56 struct netup_unidvb_dev *dev = state->dev; 57 u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0; 73 struct netup_ci_state *state = en50221->data; local 74 struct netup_unidvb_dev *dev = state->dev; 83 struct netup_ci_state *state = en50221->data; local 84 struct netup_unidvb_dev *dev = state->dev; 86 u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0; 117 struct netup_ci_state *state = en50221->data; local 118 struct netup_unidvb_dev *dev = state 139 struct netup_ci_state *state = en50221->data; local 151 struct netup_ci_state *state = en50221->data; local 163 struct netup_ci_state *state = en50221->data; local 175 struct netup_ci_state *state = en50221->data; local 188 struct netup_ci_state *state; local 228 struct netup_ci_state *state; local [all...] |
/linux-master/drivers/media/tuners/ |
H A D | tda18271-common.c | 705 void _tda_printk(struct tda18271_priv *state, const char *level, argument 716 if (state) 718 level, func, i2c_adapter_id(state->i2c_props.adap), 719 state->i2c_props.addr, 720 (state->role == TDA18271_MASTER) ? 'M' : 'S',
|
H A D | tda18271-priv.h | 132 void _tda_printk(struct tda18271_priv *state, const char *level,
|
/linux-master/drivers/media/usb/dvb-usb-v2/ |
H A D | af9035.h | 45 struct state { struct
|
H A D | mxl111sf-demod.c | 32 static int mxl111sf_demod_read_reg(struct mxl111sf_demod_state *state, argument 35 return (state->cfg->read_reg) ? 36 state->cfg->read_reg(state->mxl_state, addr, data) : 40 static int mxl111sf_demod_write_reg(struct mxl111sf_demod_state *state, argument 43 return (state->cfg->write_reg) ? 44 state->cfg->write_reg(state->mxl_state, addr, data) : 49 int mxl111sf_demod_program_regs(struct mxl111sf_demod_state *state, argument 52 return (state 61 mxl1x1sf_demod_get_tps_code_rate(struct mxl111sf_demod_state *state, enum fe_code_rate *code_rate) argument 92 mxl1x1sf_demod_get_tps_modulation(struct mxl111sf_demod_state *state, enum fe_modulation *modulation) argument 117 mxl1x1sf_demod_get_tps_guard_fft_mode(struct mxl111sf_demod_state *state, enum fe_transmit_mode *fft_mode) argument 142 mxl1x1sf_demod_get_tps_guard_interval(struct mxl111sf_demod_state *state, enum fe_guard_interval *guard) argument 170 mxl1x1sf_demod_get_tps_hierarchy(struct mxl111sf_demod_state *state, enum fe_hierarchy *hierarchy) argument 201 mxl1x1sf_demod_get_sync_lock_status(struct mxl111sf_demod_state *state, int *sync_lock) argument 214 mxl1x1sf_demod_get_rs_lock_status(struct mxl111sf_demod_state *state, int *rs_lock) argument 227 mxl1x1sf_demod_get_tps_lock_status(struct mxl111sf_demod_state *state, int *tps_lock) argument 240 mxl1x1sf_demod_get_fec_lock_status(struct mxl111sf_demod_state *state, int *fec_lock) argument 267 mxl1x1sf_demod_reset_irq_status(struct mxl111sf_demod_state *state) argument 276 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 328 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 376 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 397 mxl111sf_demod_calc_snr(struct mxl111sf_demod_state *state, u16 *snr) argument 419 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 433 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 469 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 505 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 538 struct mxl111sf_demod_state *state = fe->demodulator_priv; local 576 struct mxl111sf_demod_state *state = NULL; local [all...] |
H A D | mxl111sf-demod.h | 15 int (*read_reg)(struct mxl111sf_state *state, u8 addr, u8 *data); 16 int (*write_reg)(struct mxl111sf_state *state, u8 addr, u8 data); 17 int (*program_regs)(struct mxl111sf_state *state,
|
H A D | mxl111sf-gpio.h | 13 int mxl111sf_set_gpio(struct mxl111sf_state *state, int gpio, int val); 14 int mxl111sf_init_port_expander(struct mxl111sf_state *state); 19 int mxl111sf_gpio_mode_switch(struct mxl111sf_state *state, unsigned int mode); 34 int mxl111sf_config_pin_mux_modes(struct mxl111sf_state *state,
|
H A D | mxl111sf-i2c.c | 22 static int mxl111sf_i2c_bitbang_sendbyte(struct mxl111sf_state *state, argument 30 ret = mxl111sf_read_reg(state, SW_I2C_BUSY_ADDR, &data); 38 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, 43 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, 48 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, 56 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, 63 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, 68 ret = mxl111sf_read_reg(state, SW_I2C_BUSY_ADDR, &data); 73 ret = mxl111sf_write_reg(state, SW_I2C_ADDR, 84 static int mxl111sf_i2c_bitbang_recvbyte(struct mxl111sf_state *state, argument 124 mxl111sf_i2c_start(struct mxl111sf_state *state) argument 147 mxl111sf_i2c_stop(struct mxl111sf_state *state) argument 175 mxl111sf_i2c_ack(struct mxl111sf_state *state) argument 204 mxl111sf_i2c_nack(struct mxl111sf_state *state) argument 225 mxl111sf_i2c_sw_xfer_msg(struct mxl111sf_state *state, struct i2c_msg *msg) argument 307 mxl111sf_i2c_send_data(struct mxl111sf_state *state, u8 index, u8 *wdata) argument 317 mxl111sf_i2c_get_data(struct mxl111sf_state *state, u8 index, u8 *wdata, u8 *rdata) argument 327 mxl111sf_i2c_check_status(struct mxl111sf_state *state) argument 351 mxl111sf_i2c_check_fifo(struct mxl111sf_state *state) argument 381 mxl111sf_i2c_readagain(struct mxl111sf_state *state, u8 count, u8 *rbuf) argument 427 mxl111sf_i2c_hw_xfer_msg(struct mxl111sf_state *state, struct i2c_msg *msg) argument 803 struct mxl111sf_state *state = d->priv; local [all...] |
H A D | mxl111sf-phy.c | 11 int mxl111sf_init_tuner_demod(struct mxl111sf_state *state) argument 39 return mxl111sf_ctrl_program_regs(state, mxl_111_overwrite_default); 42 int mxl1x1sf_soft_reset(struct mxl111sf_state *state) argument 47 ret = mxl111sf_write_reg(state, 0xff, 0x00); /* AIC */ 50 ret = mxl111sf_write_reg(state, 0x02, 0x01); /* get out of reset */ 56 int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode) argument 64 ret = mxl111sf_write_reg(state, 0x03, 69 ret = mxl111sf_write_reg_mask(state, 78 state->device_mode = mode; 84 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, in argument 91 mxl111sf_disable_656_port(struct mxl111sf_state *state) argument 98 mxl111sf_enable_usb_output(struct mxl111sf_state *state) argument 106 mxl111sf_config_mpeg_in(struct mxl111sf_state *state, unsigned int parallel_serial, unsigned int msb_lsb_1st, unsigned int clock_phase, unsigned int mpeg_valid_pol, unsigned int mpeg_sync_pol) argument 189 mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size) argument 219 mxl111sf_disable_i2s_port(struct mxl111sf_state *state) argument 231 mxl111sf_config_i2s(struct mxl111sf_state *state, u8 msb_start_pos, u8 data_width) argument 261 mxl111sf_config_spi(struct mxl111sf_state *state, int onoff) argument 291 mxl111sf_idac_config(struct mxl111sf_state *state, u8 control_mode, u8 current_setting, u8 current_value, u8 hysteresis_value) argument [all...] |