Lines Matching defs:rc
35 static int process_idi_rc(divas_um_idi_entity_t * e, byte rc);
37 static int write_return_code(divas_um_idi_entity_t * e, byte rc);
201 diva_data_q_finit(&e->rc);
230 if ((diva_data_q_init(&e->rc, sizeof(diva_um_idi_ind_hdr_t), 2))) {
330 data = diva_data_q_get_segment4read(&e->rc);
331 q = &e->rc;
344 DBG_TRC(("A(%d) E(%08x) read rc", a->adapter_nr, e));
413 DBG_ERR(("A: A(%d) E(%08x) rc pending", a->adapter_nr, e));
624 static int process_idi_rc(divas_um_idi_entity_t * e, byte rc)
626 DBG_TRC(("A(%d) E(%08x) rc(%02x-%02x-%02x)",
627 e->adapter->adapter_nr, e, e->e.Id, rc, e->e.RcCh));
631 if (rc != ASSIGN_OK) {
648 if ((e->e.Req == REMOVE) && e->e.Id && (rc == 0xff)) {
668 if ((e->e.Req == REMOVE) && (rc != 0xff)) { /* REMOVE FAILED */
672 write_return_code(e, rc);
723 if ((e->status & DIVA_UM_IDI_RC_PENDING) && !e->rc.count) {
733 static int write_return_code(divas_um_idi_entity_t * e, byte rc)
738 (diva_um_idi_ind_hdr_t *) diva_data_q_get_segment4write(&e->rc)))
740 DBG_ERR(("A: A(%d) E(%08x) rc(%02x) lost",
741 e->adapter->adapter_nr, e, rc));
747 prc->hdr.rc.Rc = rc;
748 prc->hdr.rc.RcCh = e->e.RcCh;
750 diva_data_q_ack_segment4write(&e->rc, sizeof(*prc));
788 ret = e->rc.count + e->data.count;
790 if ((e->status & DIVA_UM_IDI_RC_PENDING) && !e->rc.count) {