Lines Matching full:foo*
24 A typical example of such struct in a driver ``foo`` is::
26 static struct dvb_frontend_ops foo_ops = {
29 .name = "foo DVB-T/T2/C driver",
53 .init = foo_init,
54 .sleep = foo_sleep,
55 .release = foo_release,
56 .set_frontend = foo_set_frontend,
57 .get_frontend = foo_get_frontend,
58 .read_status = foo_get_status_and_stats,
59 .tune = foo_tune,
60 .i2c_gate_ctrl = foo_i2c_gate_ctrl,
61 .get_frontend_algo = foo_get_algo,
279 static int foo_get_status_and_stats(struct dvb_frontend *fe)
281 struct foo_state *state = fe->demodulator_priv;
288 rc = foo_read_status(fe, &status);
292 rc = foo_read_strength(fe);
300 rc = foo_read_cnr(fe);
308 rc = foo_get_pre_ber(fe);
316 rc = foo_get_post_ber(fe);
323 .read_status = foo_get_status_and_stats,
349 static int foo_get_pre_ber(struct dvb_frontend *fe)
351 struct foo_state *state = fe->demodulator_priv;
356 rc = foo_read_u8(state, 0x54);
364 bit_error = foo_read_u32(state, 0x55);
369 rc = foo_read_u32(state, 0x51);
394 struct foo_state {
400 static int foo_get_pre_ber(struct dvb_frontend *fe)
402 struct foo_state *state = fe->demodulator_priv;
415 bit_error = foo_read_u32(state, 0x55);