Home
last modified time | relevance | path

Searched refs:i2c_props (Results 1 – 18 of 18) sorted by relevance

/drivers/media/tuners/
Dtda8290.c31 struct tuner_i2c_props i2c_props; member
60 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8290_i2c_bridge()
65 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8290_i2c_bridge()
82 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8295_i2c_bridge()
87 tuner_i2c_xfer_send_recv(&priv->i2c_props, msg, 1, &msg[1], 1); in tda8295_i2c_bridge()
91 tuner_i2c_xfer_send(&priv->i2c_props, buf, 3); in tda8295_i2c_bridge()
95 tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); in tda8295_i2c_bridge()
195 tuner_i2c_xfer_send(&priv->i2c_props, easy_mode, 2); in tda8290_set_params()
196 tuner_i2c_xfer_send(&priv->i2c_props, agc_out_on, 2); in tda8290_set_params()
197 tuner_i2c_xfer_send(&priv->i2c_props, soft_reset, 2); in tda8290_set_params()
[all …]
Dtuner-i2c.h102 #define tuner_warn(fmt, arg...) __tuner_warn(priv->i2c_props, fmt, ##arg)
103 #define tuner_info(fmt, arg...) __tuner_info(priv->i2c_props, fmt, ##arg)
104 #define tuner_err(fmt, arg...) __tuner_err(priv->i2c_props, fmt, ##arg)
105 #define tuner_dbg(fmt, arg...) __tuner_dbg(priv->i2c_props, fmt, ##arg)
123 if (((i2cadap) && (state->i2c_props.adap)) && \
124 ((i2c_adapter_id(state->i2c_props.adap) == \
126 (i2caddr == state->i2c_props.addr))) { \
127 __tuner_info(state->i2c_props, \
129 state->i2c_props.count++; \
130 __ret = state->i2c_props.count; \
[all …]
Dmt20xx.c45 struct tuner_i2c_props i2c_props; member
190 tuner_i2c_xfer_send(&priv->i2c_props,buf,1); in mt2032_check_lo_lock()
191 tuner_i2c_xfer_recv(&priv->i2c_props,buf,1); in mt2032_check_lo_lock()
211 tuner_i2c_xfer_send(&priv->i2c_props,buf,1); in mt2032_optimize_vco()
212 tuner_i2c_xfer_recv(&priv->i2c_props,buf,1); in mt2032_optimize_vco()
235 tuner_i2c_xfer_send(&priv->i2c_props,buf,2); in mt2032_optimize_vco()
253 ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,1); in mt2032_set_if_freq()
254 tuner_i2c_xfer_recv(&priv->i2c_props,buf,21); in mt2032_set_if_freq()
263 ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,4); in mt2032_set_if_freq()
265 ret=tuner_i2c_xfer_send(&priv->i2c_props,buf+5,4); in mt2032_set_if_freq()
[all …]
Dtda18271-common.c116 { .addr = priv->i2c_props.addr, .flags = 0, in tda18271_read_regs()
118 { .addr = priv->i2c_props.addr, .flags = I2C_M_RD, in tda18271_read_regs()
125 ret = i2c_transfer(priv->i2c_props.adap, msg, 2); in tda18271_read_regs()
146 { .addr = priv->i2c_props.addr, .flags = 0, in tda18271_read_extended()
148 { .addr = priv->i2c_props.addr, .flags = I2C_M_RD, in tda18271_read_extended()
155 ret = i2c_transfer(priv->i2c_props.adap, msg, 2); in tda18271_read_extended()
184 struct i2c_msg msg = { .addr = priv->i2c_props.addr, .flags = 0, in __tda18271_write_regs()
216 i2c_lock_bus(priv->i2c_props.adap, I2C_LOCK_SEGMENT); in __tda18271_write_regs()
229 ret = __i2c_transfer(priv->i2c_props.adap, &msg, 1); in __tda18271_write_regs()
237 i2c_unlock_bus(priv->i2c_props.adap, I2C_LOCK_SEGMENT); in __tda18271_write_regs()
[all …]
Dtuner-simple.c111 struct tuner_i2c_props i2c_props; member
129 if (1 != tuner_i2c_xfer_recv(&priv->i2c_props, &byte, 1)) in tuner_read_status()
172 if (priv->i2c_props.adap == NULL) in simple_get_status()
194 if (priv->i2c_props.adap == NULL || !priv->radio_mode) in simple_get_rf_strength()
392 struct tuner_i2c_props i2c = priv->i2c_props; in simple_std_setup()
433 rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 2); in simple_set_aux_byte()
463 rc = tuner_i2c_xfer_recv(&priv->i2c_props, in simple_post_tune()
484 rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 4); in simple_post_tune()
649 i2c_clients_command(priv->i2c_props.adap, TUNER_SET_CONFIG, in simple_set_tv_freq()
655 rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 4); in simple_set_tv_freq()
[all …]
Dtea5767.c26 struct tuner_i2c_props i2c_props; member
269 if (5 != (rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 5))) in set_radio_freq()
273 if (5 != (rc = tuner_i2c_xfer_recv(&priv->i2c_props, buffer, 5))) in set_radio_freq()
290 if (5 != (rc = tuner_i2c_xfer_recv(&priv->i2c_props, buffer, 5))) { in tea5767_read_status()
362 if (5 != (rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 5))) in tea5767_standby()
449 priv->i2c_props.addr = i2c_addr; in tea5767_attach()
450 priv->i2c_props.adap = i2c_adap; in tea5767_attach()
451 priv->i2c_props.name = "tea5767"; in tea5767_attach()
Dtea5761.c20 struct tuner_i2c_props i2c_props; member
170 if (7 != (rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 7))) in __set_radio_freq()
204 if (16 != (rc = tuner_i2c_xfer_recv(&priv->i2c_props, buffer, 16))) { in tea5761_read_status()
323 priv->i2c_props.addr = i2c_addr; in tea5761_attach()
324 priv->i2c_props.adap = i2c_adap; in tea5761_attach()
325 priv->i2c_props.name = "tea5761"; in tea5761_attach()
Dmxl5007t.c141 struct tuner_i2c_props i2c_props; member
442 struct i2c_msg msg = { .addr = state->i2c_props.addr, .flags = 0, in mxl5007t_write_reg()
446 ret = i2c_transfer(state->i2c_props.adap, &msg, 1); in mxl5007t_write_reg()
472 { .addr = state->i2c_props.addr, .flags = 0, in mxl5007t_read_reg()
474 { .addr = state->i2c_props.addr, .flags = I2C_M_RD, in mxl5007t_read_reg()
479 ret = i2c_transfer(state->i2c_props.adap, msg, 2); in mxl5007t_read_reg()
491 .addr = state->i2c_props.addr, .flags = 0, in mxl5007t_soft_reset()
494 int ret = i2c_transfer(state->i2c_props.adap, &msg, 1); in mxl5007t_soft_reset()
824 i2c_adapter_id(state->i2c_props.adap), in mxl5007t_get_chip_id()
825 state->i2c_props.addr); in mxl5007t_get_chip_id()
[all …]
Dxc5000.c40 struct tuner_i2c_props i2c_props; member
246 struct i2c_msg msg = { .addr = priv->i2c_props.addr, in xc_send_i2c_data()
249 if (i2c_transfer(priv->i2c_props.adap, &msg, 1) != 1) { in xc_send_i2c_data()
262 struct i2c_msg msg = { .addr = priv->i2c_props.addr,
265 if (i2c_transfer(priv->i2c_props.adap, &msg, 1) != 1) {
278 { .addr = priv->i2c_props.addr, in xc5000_readreg()
280 { .addr = priv->i2c_props.addr, in xc5000_readreg()
284 if (i2c_transfer(priv->i2c_props.adap, msg, 2) != 2) { in xc5000_readreg()
303 priv->i2c_props.adap->algo_data, in xc5000_tuner_reset()
1040 if (priv->i2c_props.adap == NULL) in xc5000_set_analog_params()
[all …]
Dtda9887.c32 struct tuner_i2c_props i2c_props; member
540 rc = tuner_i2c_xfer_recv(&priv->i2c_props, buf, 1); in tda9887_status()
582 if (4 != (rc = tuner_i2c_xfer_send(&priv->i2c_props,priv->data,4))) in tda9887_configure()
613 if (1 == tuner_i2c_xfer_recv(&priv->i2c_props, &reg, 1)) in tda9887_get_afc()
Dxc4000.c74 struct tuner_i2c_props i2c_props; member
243 struct i2c_msg msg = { .addr = priv->i2c_props.addr, in xc_send_i2c_data()
245 if (i2c_transfer(priv->i2c_props.adap, &msg, 1) != 1) { in xc_send_i2c_data()
268 priv->i2c_props.adap->algo_data, in xc4000_tuner_reset()
534 { .addr = priv->i2c_props.addr, in xc4000_readreg()
536 { .addr = priv->i2c_props.addr, in xc4000_readreg()
540 if (i2c_transfer(priv->i2c_props.adap, msg, 2) != 2) { in xc4000_readreg()
718 priv->i2c_props.adap->dev.parent); in xc4000_fwupload()
723 priv->i2c_props.adap->dev.parent); in xc4000_fwupload()
728 priv->i2c_props.adap->dev.parent); in xc4000_fwupload()
Dtda18271-fe.c868 ret = fe->callback(priv->i2c_props.adap->algo_data, in tda18271_agc()
1159 i2c_adapter_id(priv->i2c_props.adap), in tda18271_get_id()
1160 priv->i2c_props.addr); in tda18271_get_id()
1175 regs[R_ID], i2c_adapter_id(priv->i2c_props.adap), in tda18271_get_id()
1176 priv->i2c_props.addr); in tda18271_get_id()
1181 i2c_adapter_id(priv->i2c_props.adap), priv->i2c_props.addr); in tda18271_get_id()
Dxc2028.c103 struct tuner_i2c_props i2c_props; member
125 _rc = tuner_i2c_xfer_send(&priv->i2c_props, buf, size); \
136 _rc = tuner_i2c_xfer_send_recv(&priv->i2c_props, obuf, osize, \
150 (_rc = tuner_i2c_xfer_send(&priv->i2c_props, \
538 fe->dvb->priv : priv->i2c_props.adap->algo_data, in do_tuner_callback()
1422 priv->i2c_props.adap->dev.parent, in xc2028_set_config()
Dtda18271-priv.h95 struct tuner_i2c_props i2c_props; member
Dr820t.c74 struct tuner_i2c_props i2c_props; member
390 rc = tuner_i2c_xfer_send(&priv->i2c_props, priv->buf, size + 1); in r820t_write()
447 rc = tuner_i2c_xfer_send_recv(&priv->i2c_props, priv->buf, 1, p, len); in r820t_read()
/drivers/input/mouse/
Delantech.c1901 struct property_entry i2c_props[11] = {}; in elantech_create_smbus() local
1908 i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-size-x", in elantech_create_smbus()
1910 i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-size-y", in elantech_create_smbus()
1912 i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-min-x", in elantech_create_smbus()
1914 i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-min-y", in elantech_create_smbus()
1917 i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-x-mm", in elantech_create_smbus()
1920 i2c_props[idx++] = PROPERTY_ENTRY_U32("touchscreen-y-mm", in elantech_create_smbus()
1924 i2c_props[idx++] = PROPERTY_ENTRY_BOOL("elan,trackpoint"); in elantech_create_smbus()
1927 i2c_props[idx++] = PROPERTY_ENTRY_BOOL("elan,middle-button"); in elantech_create_smbus()
1930 i2c_props[idx++] = PROPERTY_ENTRY_U32("elan,x_traces", in elantech_create_smbus()
[all …]
/drivers/media/dvb-frontends/
Dau8522_priv.h45 struct tuner_i2c_props i2c_props; member
Dcx24117.c192 struct tuner_i2c_props i2c_props; member