Lines Matching defs:burst
101 } burst;
605 u8 *buf = &ctx->burst.tx_buf[ctx->burst.tx_count];
608 if (ctx->burst.tx_count + size >= ARRAY_SIZE(ctx->burst.tx_buf)) {
614 ctx->burst.tx_count += size;
622 u8 *buf = &ctx->burst.rx_buf[ctx->burst.rx_count];
625 if (ctx->burst.rx_count + size >= ARRAY_SIZE(ctx->burst.rx_buf)) {
631 ctx->burst.rx_count += size;
639 int tx_left = ctx->burst.tx_count;
640 u8 *d = ctx->burst.tx_buf;
645 if (ctx->burst.r_count + len > ctx->burst.r_size)
647 d[0] = min(ctx->burst.rx_ack, 255);
648 ctx->burst.rx_ack -= d[0];
650 ctx->burst.r_count += len;
655 ctx->burst.tx_count = tx_left;
657 while (ctx->burst.rx_ack > 0) {
658 u8 b[2] = { min(ctx->burst.rx_ack, 255), 0 };
660 if (ctx->burst.r_count + 2 > ctx->burst.r_size)
662 ctx->burst.rx_ack -= b[0];
664 ctx->burst.r_count += 2;
680 ctx->burst.rx_ack += len - 1;
681 ctx->burst.r_count -= buf[1];
682 if (ctx->burst.r_count < 0)
683 ctx->burst.r_count = 0;
694 ctx->burst.rx_ack += len;
745 u8 *d = ctx->burst.rx_buf;
746 int count = ctx->burst.rx_count;
754 ctx->burst.r_size = get_unaligned_le16(&d[2]);
762 ctx->burst.rx_count = 0;
1960 ctx->burst.rx_ack = 0;
1961 ctx->burst.r_size = SII8620_BURST_BUF_LEN;