Lines Matching defs:dev
14 static int s921_isdb_init(struct s921_isdb_t *dev);
15 static int s921_isdb_set_parameters(struct s921_isdb_t *dev, struct s921_isdb_t_transmission_mode_params *params);
16 static int s921_isdb_tune(struct s921_isdb_t *dev, struct s921_isdb_t_tune_params *params);
17 static int s921_isdb_get_status(struct s921_isdb_t *dev, void *data);
64 int s921_isdb_cmd(struct s921_isdb_t *dev, u32 cmd, void *data) {
67 s921_isdb_init(dev);
70 s921_isdb_set_parameters(dev, data);
73 s921_isdb_tune(dev, data);
76 s921_isdb_get_status(dev, data);
85 static int s921_isdb_init(struct s921_isdb_t *dev) {
90 ret = dev->i2c_write(dev->priv_dev, init_table[i], init_table[i+1]);
99 static int s921_isdb_set_parameters(struct s921_isdb_t *dev, struct s921_isdb_t_transmission_mode_params *params) {
106 ret = dev->i2c_write(dev->priv_dev, 0xb0, 0xa0); //mod_b2);
107 ret = dev->i2c_write(dev->priv_dev, 0xb2, 0x3d); //mod_b2);
112 ret = dev->i2c_write(dev->priv_dev, 0xb3, 0x25); //mod_b3);
116 ret = dev->i2c_write(dev->priv_dev, 0xb4, 0x8b); //mod_b4);
120 ret = dev->i2c_write(dev->priv_dev, 0xb5, 0x4b); //mod_b5);
124 ret = dev->i2c_write(dev->priv_dev, 0xb6, 0x3f); //mod_b6);
128 ret = dev->i2c_write(dev->priv_dev, 0xb7, 0x3f); //mod_b7);
135 static int s921_isdb_tune(struct s921_isdb_t *dev, struct s921_isdb_t_tune_params *params) {
146 dev->i2c_write(dev->priv_dev, 0x47, 0x60);
148 ret = dev->i2c_write(dev->priv_dev, 0x68, 0x00);
152 ret = dev->i2c_write(dev->priv_dev, 0x69, 0x89);
156 ret = dev->i2c_write(dev->priv_dev, 0xf0, 0x48);
160 ret = dev->i2c_write(dev->priv_dev, 0xf1, 0x19);
164 ret = dev->i2c_write(dev->priv_dev, 0xf2, c_table[index*3]);
168 ret = dev->i2c_write(dev->priv_dev, 0xf3, c_table[index*3+1]);
172 ret = dev->i2c_write(dev->priv_dev, 0xf4, c_table[index*3+2]);
176 ret = dev->i2c_write(dev->priv_dev, 0xf5, 0xae);
180 ret = dev->i2c_write(dev->priv_dev, 0xf6, 0xb7);
184 ret = dev->i2c_write(dev->priv_dev, 0xf7, 0xba);
188 ret = dev->i2c_write(dev->priv_dev, 0xf8, 0xd7);
192 ret = dev->i2c_write(dev->priv_dev, 0x68, 0x0a);
196 ret = dev->i2c_write(dev->priv_dev, 0x69, 0x09);
200 dev->i2c_write(dev->priv_dev, 0x01, 0x40);
204 static int s921_isdb_get_status(struct s921_isdb_t *dev, void *data) {
210 ifagc_dt = dev->i2c_read(dev->priv_dev, 0x81);
211 rfagc_dt = dev->i2c_read(dev->priv_dev, 0x82);