Lines Matching refs:tlabel
36 #define HEADER_TLABEL(tlabel) ((tlabel) << 10) argument
87 card->tlabel_mask &= ~(1ULL << iter->tlabel); in close_transaction()
140 card->tlabel_mask &= ~(1ULL << t->tlabel); in split_transaction_timeout_callback()
199 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, in fw_fill_request() argument
225 HEADER_TLABEL(tlabel) | in fw_fill_request()
275 int tlabel; in allocate_tlabel() local
277 tlabel = card->current_tlabel; in allocate_tlabel()
278 while (card->tlabel_mask & (1ULL << tlabel)) { in allocate_tlabel()
279 tlabel = (tlabel + 1) & 0x3f; in allocate_tlabel()
280 if (tlabel == card->current_tlabel) in allocate_tlabel()
284 card->current_tlabel = (tlabel + 1) & 0x3f; in allocate_tlabel()
285 card->tlabel_mask |= 1ULL << tlabel; in allocate_tlabel()
287 return tlabel; in allocate_tlabel()
344 int tlabel; in fw_send_request() local
353 tlabel = allocate_tlabel(card); in fw_send_request()
354 if (tlabel < 0) { in fw_send_request()
361 t->tlabel = tlabel; in fw_send_request()
369 fw_fill_request(&t->packet, tcode, t->tlabel, in fw_send_request()
674 int tcode, tlabel, extended_tcode, source, destination; in fw_fill_response() local
677 tlabel = HEADER_GET_TLABEL(request_header[0]); in fw_fill_response()
684 HEADER_TLABEL(tlabel) | in fw_fill_response()
943 int tcode, tlabel, source, rcode; in fw_core_handle_response() local
946 tlabel = HEADER_GET_TLABEL(p->header[0]); in fw_core_handle_response()
952 if (iter->node_id == source && iter->tlabel == tlabel) { in fw_core_handle_response()
958 card->tlabel_mask &= ~(1ULL << iter->tlabel); in fw_core_handle_response()
968 source, tlabel); in fw_core_handle_response()