Lines Matching refs:tlabel

36 #define HEADER_TLABEL(tlabel)		((tlabel) << 10)  argument
87 card->tlabel_mask &= ~(1ULL << t->tlabel); in close_transaction()
139 card->tlabel_mask &= ~(1ULL << t->tlabel); in split_transaction_timeout_callback()
198 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, in fw_fill_request() argument
224 HEADER_TLABEL(tlabel) | in fw_fill_request()
274 int tlabel; in allocate_tlabel() local
276 tlabel = card->current_tlabel; in allocate_tlabel()
277 while (card->tlabel_mask & (1ULL << tlabel)) { in allocate_tlabel()
278 tlabel = (tlabel + 1) & 0x3f; in allocate_tlabel()
279 if (tlabel == card->current_tlabel) in allocate_tlabel()
283 card->current_tlabel = (tlabel + 1) & 0x3f; in allocate_tlabel()
284 card->tlabel_mask |= 1ULL << tlabel; in allocate_tlabel()
286 return tlabel; in allocate_tlabel()
343 int tlabel; in fw_send_request() local
352 tlabel = allocate_tlabel(card); in fw_send_request()
353 if (tlabel < 0) { in fw_send_request()
360 t->tlabel = tlabel; in fw_send_request()
368 fw_fill_request(&t->packet, tcode, t->tlabel, in fw_send_request()
673 int tcode, tlabel, extended_tcode, source, destination; in fw_fill_response() local
676 tlabel = HEADER_GET_TLABEL(request_header[0]); in fw_fill_response()
683 HEADER_TLABEL(tlabel) | in fw_fill_response()
942 int tcode, tlabel, source, rcode; in fw_core_handle_response() local
945 tlabel = HEADER_GET_TLABEL(p->header[0]); in fw_core_handle_response()
951 if (t->node_id == source && t->tlabel == tlabel) { in fw_core_handle_response()
957 card->tlabel_mask &= ~(1ULL << t->tlabel); in fw_core_handle_response()
966 source, tlabel); in fw_core_handle_response()