Lines Matching full:pcb
44 const char *teq1_pcb_to_name(uint8_t pcb) {
45 switch (pcb) {
120 teq1_trace_transmit(frame->header.PCB, frame->header.LEN);
165 teq1_trace_receive(frame->header.PCB, frame->header.LEN);
185 switch (bs_get(PCB.type, frame->header.PCB)) {
209 bs_assign(&frame->header.PCB, PCB.I.more_data, 0);
211 frame->header.PCB |= bs_mask(PCB.I.more_data, 1);
224 switch (bs_get(PCB.type, frame->header.PCB)) {
255 if (rx_frame->header.PCB == 255) {
267 switch (bs_get(PCB.type, tx_frame->header.PCB)) {
270 chained = bs_get(PCB.I.more_data, tx_frame->header.PCB);
272 bs_get(PCB.I.send_seq, tx_frame->header.PCB);
279 switch (bs_get(PCB.type, rx_frame->header.PCB)) {
281 if (rx_frame->header.PCB != S(RESYNC, RESPONSE) &&
296 if ((bs_get(PCB.I.send_seq, rx_frame->header.PCB)) ==
299 bs_get(PCB.I.send_seq, rx_frame->header.PCB),
305 state->card_state->seq.card = bs_get(PCB.I.send_seq, rx_frame->header.PCB);
317 /* msb = tx pcb, lsb = rx pcb */
319 uint16_t txrx = TEQ1_RULE(tx_frame->header.PCB, rx_frame->header.PCB);
328 txrx = TEQ1_RULE(tx_frame->header.PCB, 255);
337 if (tx_frame->header.PCB != S(RESYNC, REQUEST)) {
338 next_tx->header.PCB = S(RESYNC, REQUEST);
362 next_tx->header.PCB =
363 TEQ1_R(!bs_get(PCB.I.send_seq, rx_frame->header.PCB), 0, 0);
371 next_tx->header.PCB =
372 TEQ1_I(bs_get(PCB.R.next_seq, rx_frame->header.PCB), 0);
385 next_tx->header.PCB = S(WTX, RESPONSE);
404 next_tx->header.PCB = S(IFS, RESPONSE);
421 next_tx->header.PCB =
422 TEQ1_R(!bs_get(PCB.I.send_seq, rx_frame->header.PCB), 0, 0);
443 next_tx->header.PCB = R_err;
444 bs_assign(&next_tx->header.PCB, PCB.R.next_seq,
445 bs_get(PCB.I.send_seq, tx_frame->header.PCB));
447 next_tx->header.PCB, teq1_pcb_to_name(next_tx->header.PCB));
460 next_tx->header.PCB =
461 TEQ1_R(bs_get(PCB.I.send_seq, tx_frame->header.PCB), 0, 0);
463 next_tx->header.PCB, teq1_pcb_to_name(next_tx->header.PCB));
529 next_tx->header.PCB = S(ABORT, REQUEST);
545 if (rx_frame->header.PCB != 255) {
547 rx_frame->header.PCB = 255;
589 tx->header.PCB = TEQ1_I(!card_state->seq.interface, 0);
610 rx_frame.header.PCB = 255;
630 if (tx->header.PCB == S(RESYNC, REQUEST)) {
637 tx_frame[!active].header.PCB = S(RESYNC, REQUEST);
684 tx->header.PCB = I(0, 0);