• Home
  • Raw
  • Download

Lines Matching refs:buffer

133 				unsigned char *buffer)  in tea5767_status_dump()  argument
137 if (TEA5767_READY_FLAG_MASK & buffer[0]) in tea5767_status_dump()
142 if (TEA5767_BAND_LIMIT_MASK & buffer[0]) in tea5767_status_dump()
147 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump()
164 buffer[0] = (div >> 8) & 0x3f; in tea5767_status_dump()
165 buffer[1] = div & 0xff; in tea5767_status_dump()
170 if (TEA5767_STEREO_MASK & buffer[2]) in tea5767_status_dump()
175 tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); in tea5767_status_dump()
178 (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4); in tea5767_status_dump()
180 tuner_info("Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK)); in tea5767_status_dump()
183 (buffer[4] & TEA5767_RESERVED_MASK)); in tea5767_status_dump()
192 unsigned char buffer[5]; in set_radio_freq() local
198 buffer[2] = 0; in set_radio_freq()
201 buffer[2] |= TEA5767_PORT1_HIGH; in set_radio_freq()
205 buffer[2] |= TEA5767_MONO; in set_radio_freq()
211 buffer[3] = 0; in set_radio_freq()
214 buffer[3] |= TEA5767_PORT2_HIGH; in set_radio_freq()
217 buffer[3] |= TEA5767_HIGH_CUT_CTRL; in set_radio_freq()
220 buffer[3] |= TEA5767_ST_NOISE_CTL; in set_radio_freq()
223 buffer[3] |= TEA5767_SOFT_MUTE; in set_radio_freq()
226 buffer[3] |= TEA5767_JAPAN_BAND; in set_radio_freq()
228 buffer[4] = 0; in set_radio_freq()
231 buffer[4] |= TEA5767_DEEMPH_75; in set_radio_freq()
234 buffer[4] |= TEA5767_PLLREF_ENABLE; in set_radio_freq()
243 buffer[2] |= TEA5767_HIGH_LO_INJECT; in set_radio_freq()
253 buffer[3] |= TEA5767_XTAL_32768; in set_radio_freq()
261 buffer[2] |= TEA5767_HIGH_LO_INJECT; in set_radio_freq()
262 buffer[3] |= TEA5767_XTAL_32768; in set_radio_freq()
266 buffer[0] = (div >> 8) & 0x3f; in set_radio_freq()
267 buffer[1] = div & 0xff; in set_radio_freq()
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()
276 tea5767_status_dump(priv, buffer); in set_radio_freq()
284 static int tea5767_read_status(struct dvb_frontend *fe, char *buffer) in tea5767_read_status() argument
289 memset(buffer, 0, 5); in tea5767_read_status()
290 if (5 != (rc = tuner_i2c_xfer_recv(&priv->i2c_props, buffer, 5))) { in tea5767_read_status()
298 static inline int tea5767_signal(struct dvb_frontend *fe, const char *buffer) in tea5767_signal() argument
302 int signal = ((buffer[3] & TEA5767_ADC_LEVEL_MASK) << 8); in tea5767_signal()
309 static inline int tea5767_stereo(struct dvb_frontend *fe, const char *buffer) in tea5767_stereo() argument
313 int stereo = buffer[2] & TEA5767_STEREO_MASK; in tea5767_stereo()
322 unsigned char buffer[5]; in tea5767_get_status() local
326 if (0 == tea5767_read_status(fe, buffer)) { in tea5767_get_status()
327 if (tea5767_signal(fe, buffer)) in tea5767_get_status()
329 if (tea5767_stereo(fe, buffer)) in tea5767_get_status()
338 unsigned char buffer[5]; in tea5767_get_rf_strength() local
342 if (0 == tea5767_read_status(fe, buffer)) in tea5767_get_rf_strength()
343 *strength = tea5767_signal(fe, buffer); in tea5767_get_rf_strength()
350 unsigned char buffer[5]; in tea5767_standby() local
355 buffer[0] = (div >> 8) & 0x3f; in tea5767_standby()
356 buffer[1] = div & 0xff; in tea5767_standby()
357 buffer[2] = TEA5767_PORT1_HIGH; in tea5767_standby()
358 buffer[3] = TEA5767_PORT2_HIGH | TEA5767_HIGH_CUT_CTRL | in tea5767_standby()
360 buffer[4] = 0; in tea5767_standby()
362 if (5 != (rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 5))) in tea5767_standby()
371 unsigned char buffer[7] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; in tea5767_autodetection() local
375 if ((rc = tuner_i2c_xfer_recv(&i2c, buffer, 7))< 5) { in tea5767_autodetection()
381 if (buffer[0] == buffer[1] && buffer[0] == buffer[2] && in tea5767_autodetection()
382 buffer[0] == buffer[3] && buffer[0] == buffer[4]) { in tea5767_autodetection()
392 if (((buffer[3] & 0x0f) != 0x00) || (buffer[4] != 0x00)) { in tea5767_autodetection()