Lines Matching defs:rcode
101 static int close_transaction(struct fw_transaction *transaction, struct fw_card *card, int rcode,
115 t->callback.without_tstamp(card, rcode, NULL, 0, t->callback_data);
117 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp, NULL, 0,
238 * rcode, so just forward that to the callback.
454 int rcode;
457 static void transaction_callback(struct fw_card *card, int rcode,
462 if (rcode == RCODE_COMPLETE)
464 d->rcode = rcode;
499 return d.rcode;
790 int rcode, void *payload, size_t length)
804 async_header_set_rcode(response->header, rcode);
927 * @rcode: response code to send.
933 struct fw_request *request, int rcode)
945 if (rcode == RCODE_COMPLETE) {
950 fw_fill_response(&request->response, request->request_header, rcode, data, data_length);
1147 int tcode, tlabel, source, rcode;
1152 rcode = async_header_get_rcode(p->header);
1206 t->callback.without_tstamp(card, rcode, data, data_length, t->callback_data);
1208 t->callback.with_tstamp(card, rcode, t->packet.timestamp, p->timestamp, data,
1216 * @rcode: the result code
1218 const char *fw_rcode_string(int rcode)
1233 if ((unsigned int)rcode < ARRAY_SIZE(names) && names[rcode])
1234 return names[rcode];
1301 int rcode = RCODE_COMPLETE;
1306 rcode = RCODE_ADDRESS_ERROR;
1328 rcode = RCODE_TYPE_ERROR;
1336 rcode = RCODE_TYPE_ERROR;
1351 rcode = RCODE_TYPE_ERROR;
1367 rcode = RCODE_TYPE_ERROR;
1377 rcode = RCODE_TYPE_ERROR;
1388 rcode = RCODE_TYPE_ERROR;
1406 rcode = RCODE_ADDRESS_ERROR;
1410 fw_send_response(card, request, rcode);