Lines Matching refs:cid
407 static void add_cid_event(struct cardstate *cs, int cid, int type, in add_cid_event() argument
414 gig_dbg(DEBUG_EVENT, "queueing event %d for cid %d", type, cid); in add_cid_event()
426 event->cid = cid; in add_cid_event()
450 int cid, parameter; in gigaset_handle_modem_response() local
485 !kstrtoint(psep + 1, 10, &cid) && in gigaset_handle_modem_response()
486 cid >= 1 && cid <= 65535) { in gigaset_handle_modem_response()
491 cid = 0; in gigaset_handle_modem_response()
495 if (cid) in gigaset_handle_modem_response()
496 gig_dbg(DEBUG_EVENT, "CID: %d", cid); in gigaset_handle_modem_response()
504 add_cid_event(cs, cid, rt->resp_code, NULL, 0); in gigaset_handle_modem_response()
514 add_cid_event(cs, 0, rt->resp_code, NULL, cid); in gigaset_handle_modem_response()
547 add_cid_event(cs, cid, rt->resp_code, ptr, 0); in gigaset_handle_modem_response()
555 add_cid_event(cs, cid, rt->resp_code, NULL, ZSAU_NONE); in gigaset_handle_modem_response()
568 add_cid_event(cs, cid, rt->resp_code, NULL, zr->code); in gigaset_handle_modem_response()
580 add_cid_event(cs, cid, rt->resp_code, ptr, 0); in gigaset_handle_modem_response()
599 add_cid_event(cs, cid, rt->resp_code, NULL, parameter); in gigaset_handle_modem_response()
615 add_cid_event(cs, cid, rt->resp_code, NULL, parameter); in gigaset_handle_modem_response()
622 add_cid_event(cs, cid, rt->resp_code, NULL, -1); in gigaset_handle_modem_response()
698 int cid) in get_free_channel() argument
711 ret->cid = cid; in get_free_channel()
718 gigaset_at_init(ret, NULL, cs, cid); in get_free_channel()
764 int cid = at_state->cid; in send_command() local
774 if (cid > 0 && cid <= 65535) in send_command()
777 cid, cmd); in send_command()
788 static struct at_state_t *at_state_from_cid(struct cardstate *cs, int cid) in at_state_from_cid() argument
794 if (cid == 0) in at_state_from_cid()
798 if (cid == cs->bcs[i].at_state.cid) in at_state_from_cid()
804 if (cid == at_state->cid) { in at_state_from_cid()
986 if (cs->bcs[i].at_state.cid > 0) in reinit_and_retry()
1261 at_state->cid = -1; in do_action()
1286 at_state->cid = -1; in do_action()
1316 cs->bcs[channel].at_state.cid = ev->parameter; in do_action()
1541 if (ev->cid >= 0) { in process_event()
1542 at_state = at_state_from_cid(cs, ev->cid); in process_event()
1545 ev->type, ev->cid); in process_event()
1697 if (at_state->cid > 0) in process_command_flags()
1714 if (at_state->cid > 0) in process_command_flags()
1737 bcs->at_state.cid > 0) { in process_command_flags()