Lines Matching defs:rcode
39 #define HEADER_RCODE(rcode) ((rcode) << 12)
73 static int close_transaction(struct fw_transaction *transaction, struct fw_card *card, int rcode,
96 t->callback.without_tstamp(card, rcode, NULL, 0, t->callback_data);
98 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp,
220 * rcode, so just forward that to the callback.
427 int rcode;
430 static void transaction_callback(struct fw_card *card, int rcode,
435 if (rcode == RCODE_COMPLETE)
437 d->rcode = rcode;
472 return d.rcode;
730 int rcode, void *payload, size_t length)
746 HEADER_RCODE(rcode);
865 * @rcode: response code to send.
871 struct fw_request *request, int rcode)
880 if (rcode == RCODE_COMPLETE)
882 rcode, request->data,
886 rcode, NULL, 0);
1028 int tcode, tlabel, source, rcode;
1033 rcode = HEADER_GET_RCODE(p->header[1]);
1093 t->callback.without_tstamp(card, rcode, data, data_length, t->callback_data);
1095 t->callback.with_tstamp(card, rcode, t->packet.timestamp, p->timestamp, data,
1103 * @rcode: the result code
1105 const char *fw_rcode_string(int rcode)
1120 if ((unsigned int)rcode < ARRAY_SIZE(names) && names[rcode])
1121 return names[rcode];
1183 int rcode = RCODE_COMPLETE;
1189 rcode = RCODE_ADDRESS_ERROR;
1211 rcode = RCODE_TYPE_ERROR;
1219 rcode = RCODE_TYPE_ERROR;
1231 rcode = RCODE_TYPE_ERROR;
1245 rcode = RCODE_TYPE_ERROR;
1255 rcode = RCODE_TYPE_ERROR;
1266 rcode = RCODE_TYPE_ERROR;
1284 rcode = RCODE_ADDRESS_ERROR;
1288 fw_send_response(card, request, rcode);