Lines Matching defs:state
25 static int mci_reset(struct mci *state)
27 struct ddb_link *link = state->base->link;
51 int ddb_mci_config(struct mci *state, u32 config)
53 struct ddb_link *link = state->base->link;
61 static int _mci_cmd_unlocked(struct mci *state,
65 struct ddb_link *link = state->base->link;
78 stat = wait_for_completion_timeout(&state->base->completion, HZ);
80 dev_warn(state->base->dev, "MCI-%d: MCI timeout\n", state->nr);
89 int ddb_mci_cmd(struct mci *state,
95 mutex_lock(&state->base->mci_lock);
96 stat = _mci_cmd_unlocked(state,
99 mutex_unlock(&state->base->mci_lock);
120 static int probe(struct mci *state)
122 mci_reset(state);
134 struct mci *state;
137 state = kzalloc(cfg->state_size, GFP_KERNEL);
138 if (!state)
144 state->base = base;
157 state->base = base;
158 if (probe(state) < 0) {
166 memcpy(&state->fe.ops, cfg->fe_ops, sizeof(struct dvb_frontend_ops));
167 state->fe.demodulator_priv = state;
168 state->nr = nr;
170 state->tuner = nr;
171 state->demod = nr;
173 cfg->init(state);
174 return &state->fe;
176 kfree(state);