Lines Matching refs:state
101 struct altera_ci_state *state[2];
261 struct altera_ci_state *state = en50221->data;
262 struct fpga_internal *inter = state->internal;
277 store |= ((state->nr << 7) | (flag << 6));
319 struct altera_ci_state *state = en50221->data;
320 struct fpga_internal *inter = state->internal;
334 (ret & 0xcf) | (1 << (5 - state->nr)), 0);
347 if ((ret & (1 << (5 - state->nr))) == 0)
368 struct altera_ci_state *state = en50221->data;
369 struct fpga_internal *inter = state->internal;
381 (ret & 0x0f) | (1 << (3 - state->nr)), 0);
404 if (inter->state[1] != NULL) {
405 inter->state[1]->status =
410 __func__, inter->state[1]->status);
413 if (inter->state[0] != NULL) {
414 inter->state[0]->status =
419 __func__, inter->state[0]->status);
446 struct altera_ci_state *state = en50221->data;
451 return state->status;
485 struct altera_ci_state *state = NULL;
490 state = temp_int->internal->state[ci_nr - 1];
500 kfree(state->internal);
503 if (state != NULL) {
504 if (state->ca.data != NULL)
505 dvb_ca_en50221_release(&state->ca);
507 kfree(state);
703 struct altera_ci_state *state;
709 state = kzalloc(sizeof(struct altera_ci_state), GFP_KERNEL);
713 if (!state) {
743 ci_dbg_print("%s: setting state = %p for ci = %d\n", __func__,
744 state, ci_nr - 1);
745 state->internal = inter;
746 state->nr = ci_nr - 1;
748 state->ca.owner = THIS_MODULE;
749 state->ca.read_attribute_mem = altera_ci_read_attribute_mem;
750 state->ca.write_attribute_mem = altera_ci_write_attribute_mem;
751 state->ca.read_cam_control = altera_ci_read_cam_ctl;
752 state->ca.write_cam_control = altera_ci_write_cam_ctl;
753 state->ca.slot_reset = altera_ci_slot_reset;
754 state->ca.slot_shutdown = altera_ci_slot_shutdown;
755 state->ca.slot_ts_enable = altera_ci_slot_ts_ctl;
756 state->ca.poll_slot_status = altera_poll_ci_slot_status;
757 state->ca.data = state;
760 &state->ca,
766 inter->state[ci_nr - 1] = state;
802 kfree(state);