Lines Matching refs:buf

271 static void dump_read_message(struct dvb_frontend *fe, unsigned char *buf)
293 tuner_info("read: 0x%2x\n", buf[0]);
294 tuner_info(" after power on : %s\n", (buf[0] & 0x01) ? "yes" : "no");
295 tuner_info(" afc : %s\n", afc[(buf[0] >> 1) & 0x0f]);
296 tuner_info(" fmif level : %s\n", (buf[0] & 0x20) ? "high" : "low");
297 tuner_info(" afc window : %s\n", (buf[0] & 0x40) ? "in" : "out");
298 tuner_info(" vfi level : %s\n", (buf[0] & 0x80) ? "high" : "low");
301 static void dump_write_message(struct dvb_frontend *fe, unsigned char *buf)
343 tuner_info("write: byte B 0x%02x\n", buf[1]);
345 (buf[1] & 0x01) ? "video trap" : "sound trap");
347 (buf[1] & 0x02) ? "yes" : "no");
349 (buf[1] & 0x04) ? "QSS" : "Intercarrier");
351 sound[(buf[1] & 0x18) >> 3]);
353 (buf[1] & 0x20) ? "yes" : "no");
355 (buf[1] & 0x40) ? "high (inactive)" : "low (active)");
357 (buf[1] & 0x80) ? "high (inactive)" : "low (active)");
359 tuner_info("write: byte C 0x%02x\n", buf[2]);
361 adjust[buf[2] & 0x1f]);
363 deemph[(buf[2] & 0x60) >> 5]);
365 (buf[2] & 0x80) ? "-6" : "0");
367 tuner_info("write: byte E 0x%02x\n", buf[3]);
369 carrier[(buf[3] & 0x03)]);
371 (buf[3] & 0x40) ? "36" : "13");
373 if (buf[1] & 0x08) {
376 rif[(buf[3] & 0x0c) >> 2]);
378 (buf[3] & 0x80)
379 ? ((buf[3] & 0x10) ? "fm-agc radio" :
385 vif[(buf[3] & 0x1c) >> 2]);
387 (buf[3] & 0x80)
388 ? ((buf[3] & 0x20) ? "external" : "normal")
389 : ((buf[3] & 0x20) ? "minimum" : "normal"));
391 (buf[3] & 0x80) ? ((buf[3] & 0x20)
405 char *buf = priv->data;
427 buf[1] = norm->b;
428 buf[2] = norm->c;
429 buf[3] = norm->e;
446 char *buf = priv->data;
450 buf[1] |= cOutputPort1Inactive;
452 buf[1] &= ~cOutputPort1Inactive;
456 buf[1] |= cOutputPort2Inactive;
458 buf[1] &= ~cOutputPort2Inactive;
463 buf[1] |= cQSS;
465 buf[1] &= ~cQSS;
469 buf[2] &= ~cTopMask;
470 buf[2] |= adjust;
478 char *buf = priv->data;
481 buf[1] &= ~cOutputPort1Inactive;
483 buf[1] |= cOutputPort1Inactive;
485 buf[1] &= ~cOutputPort2Inactive;
487 buf[1] |= cOutputPort2Inactive;
490 buf[1] |= cQSS;
492 buf[1] &= ~cQSS;
495 buf[1] |= cAutoMuteFmActive;
497 buf[2] &= ~0x60;
500 buf[2] |= cDeemphasisOFF;
503 buf[2] |= cDeemphasisON | cDeemphasis50;
506 buf[2] |= cDeemphasisON | cDeemphasis75;
511 buf[2] &= ~cTopMask;
512 buf[2] |= (priv->config >> 8) & cTopMask;
516 buf[1] &= ~cQSS;
518 buf[3] &= ~cGating_36;
522 buf[3] &= ~cVideoIFMask;
523 buf[3] |= cRadioIF_41_30;
526 buf[3] &= ~cTunerGainLow;
537 unsigned char buf[1];
540 rc = tuner_i2c_xfer_recv(&priv->i2c_props, buf, 1);
543 dump_read_message(fe, buf);