hdlctx            190 drivers/net/hamradio/baycom_epp.c         } hdlctx;
hdlctx            367 drivers/net/hamradio/baycom_epp.c 	if (bc->hdlctx.bufcnt > 0)
hdlctx            374 drivers/net/hamradio/baycom_epp.c 	wp = bc->hdlctx.buf;
hdlctx            412 drivers/net/hamradio/baycom_epp.c 	bc->hdlctx.bufptr = bc->hdlctx.buf;
hdlctx            413 drivers/net/hamradio/baycom_epp.c 	bc->hdlctx.bufcnt = wp - bc->hdlctx.buf;
hdlctx            426 drivers/net/hamradio/baycom_epp.c 	if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT))
hdlctx            427 drivers/net/hamradio/baycom_epp.c 		bc->hdlctx.state = tx_idle;
hdlctx            428 drivers/net/hamradio/baycom_epp.c 	if (bc->hdlctx.state == tx_idle && bc->hdlctx.calibrate <= 0) {
hdlctx            429 drivers/net/hamradio/baycom_epp.c 		if (bc->hdlctx.bufcnt <= 0)
hdlctx            431 drivers/net/hamradio/baycom_epp.c 		if (bc->hdlctx.bufcnt <= 0)
hdlctx            435 drivers/net/hamradio/baycom_epp.c 				bc->hdlctx.slotcnt = bc->ch_params.slottime;
hdlctx            438 drivers/net/hamradio/baycom_epp.c 			if ((--bc->hdlctx.slotcnt) > 0)
hdlctx            440 drivers/net/hamradio/baycom_epp.c 			bc->hdlctx.slotcnt = bc->ch_params.slottime;
hdlctx            445 drivers/net/hamradio/baycom_epp.c 	if (bc->hdlctx.state == tx_idle && bc->hdlctx.bufcnt > 0) {
hdlctx            446 drivers/net/hamradio/baycom_epp.c 		bc->hdlctx.state = tx_keyup;
hdlctx            447 drivers/net/hamradio/baycom_epp.c 		bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_delay);
hdlctx            451 drivers/net/hamradio/baycom_epp.c 		switch (bc->hdlctx.state) {
hdlctx            453 drivers/net/hamradio/baycom_epp.c 			i = min_t(int, cnt, bc->hdlctx.flags);
hdlctx            455 drivers/net/hamradio/baycom_epp.c 			bc->hdlctx.flags -= i;
hdlctx            456 drivers/net/hamradio/baycom_epp.c 			if (bc->hdlctx.flags <= 0)
hdlctx            457 drivers/net/hamradio/baycom_epp.c 				bc->hdlctx.state = tx_data;
hdlctx            468 drivers/net/hamradio/baycom_epp.c 			if (bc->hdlctx.bufcnt <= 0) {
hdlctx            470 drivers/net/hamradio/baycom_epp.c 				if (bc->hdlctx.bufcnt <= 0) {
hdlctx            471 drivers/net/hamradio/baycom_epp.c 					bc->hdlctx.state = tx_tail;
hdlctx            472 drivers/net/hamradio/baycom_epp.c 					bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail);
hdlctx            476 drivers/net/hamradio/baycom_epp.c 			i = min_t(int, cnt, bc->hdlctx.bufcnt);
hdlctx            477 drivers/net/hamradio/baycom_epp.c 			bc->hdlctx.bufcnt -= i;
hdlctx            479 drivers/net/hamradio/baycom_epp.c 			if (i != pp->ops->epp_write_data(pp, bc->hdlctx.bufptr, i, 0))
hdlctx            481 drivers/net/hamradio/baycom_epp.c 			bc->hdlctx.bufptr += i;
hdlctx            486 drivers/net/hamradio/baycom_epp.c 			if (bc->hdlctx.bufcnt > 0) {
hdlctx            487 drivers/net/hamradio/baycom_epp.c 				bc->hdlctx.state = tx_data;
hdlctx            490 drivers/net/hamradio/baycom_epp.c 			i = min_t(int, cnt, bc->hdlctx.flags);
hdlctx            493 drivers/net/hamradio/baycom_epp.c 				bc->hdlctx.flags -= i;
hdlctx            506 drivers/net/hamradio/baycom_epp.c 			if (bc->hdlctx.calibrate <= 0)
hdlctx            508 drivers/net/hamradio/baycom_epp.c 			i = min_t(int, cnt, bc->hdlctx.calibrate);
hdlctx            510 drivers/net/hamradio/baycom_epp.c 			bc->hdlctx.calibrate -= i;
hdlctx            931 drivers/net/hamradio/baycom_epp.c 	bc->hdlctx.state = tx_idle;
hdlctx            932 drivers/net/hamradio/baycom_epp.c 	bc->hdlctx.bufcnt = 0;
hdlctx            933 drivers/net/hamradio/baycom_epp.c 	bc->hdlctx.slotcnt = bc->ch_params.slottime;
hdlctx            934 drivers/net/hamradio/baycom_epp.c 	bc->hdlctx.calibrate = 0;
hdlctx           1038 drivers/net/hamradio/baycom_epp.c 		bc->hdlctx.slotcnt = 1;
hdlctx           1078 drivers/net/hamradio/baycom_epp.c 		bc->hdlctx.calibrate = hi.data.calibrate * bc->bitrate / 8;
hdlctx            261 drivers/net/hamradio/hdlcdrv.c 	if (test_and_set_bit(0, &s->hdlctx.in_hdlc_tx))
hdlctx            264 drivers/net/hamradio/hdlcdrv.c 		if (s->hdlctx.numbits >= 16) {
hdlctx            265 drivers/net/hamradio/hdlcdrv.c 			if (hdlcdrv_hbuf_full(&s->hdlctx.hbuf)) {
hdlctx            266 drivers/net/hamradio/hdlcdrv.c 				clear_bit(0, &s->hdlctx.in_hdlc_tx);
hdlctx            269 drivers/net/hamradio/hdlcdrv.c 			hdlcdrv_hbuf_put(&s->hdlctx.hbuf, s->hdlctx.bitbuf);
hdlctx            270 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.bitbuf >>= 16;
hdlctx            271 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.numbits -= 16;
hdlctx            273 drivers/net/hamradio/hdlcdrv.c 		switch (s->hdlctx.tx_state) {
hdlctx            275 drivers/net/hamradio/hdlcdrv.c 			clear_bit(0, &s->hdlctx.in_hdlc_tx);
hdlctx            279 drivers/net/hamradio/hdlcdrv.c 			if (s->hdlctx.numflags) {
hdlctx            280 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.numflags--;
hdlctx            281 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.bitbuf |= 
hdlctx            282 drivers/net/hamradio/hdlcdrv.c 					0x7e7e << s->hdlctx.numbits;
hdlctx            283 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.numbits += 16;
hdlctx            286 drivers/net/hamradio/hdlcdrv.c 			if (s->hdlctx.tx_state == 1) {
hdlctx            287 drivers/net/hamradio/hdlcdrv.c 				clear_bit(0, &s->hdlctx.in_hdlc_tx);
hdlctx            294 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.tx_state = 1;
hdlctx            295 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.numflags = flgs;
hdlctx            302 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.tx_state = 0;
hdlctx            303 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.numflags = 1;
hdlctx            308 drivers/net/hamradio/hdlcdrv.c 							 s->hdlctx.buffer,
hdlctx            311 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.bp = s->hdlctx.buffer;
hdlctx            312 drivers/net/hamradio/hdlcdrv.c 			append_crc_ccitt(s->hdlctx.buffer, pkt_len);
hdlctx            313 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.len = pkt_len+2; /* the appended CRC */
hdlctx            314 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.tx_state = 2;
hdlctx            315 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.bitstream = 0;
hdlctx            319 drivers/net/hamradio/hdlcdrv.c 			if (!s->hdlctx.len) {
hdlctx            320 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.tx_state = 0;
hdlctx            321 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.numflags = 1;
hdlctx            324 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.len--;
hdlctx            325 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.bitbuf |= *s->hdlctx.bp <<
hdlctx            326 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.numbits;
hdlctx            327 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.bitstream >>= 8;
hdlctx            328 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.bitstream |= (*s->hdlctx.bp++) << 16;
hdlctx            331 drivers/net/hamradio/hdlcdrv.c 			mask3 = 0xffffffff >> (31-s->hdlctx.numbits);
hdlctx            332 drivers/net/hamradio/hdlcdrv.c 			s->hdlctx.numbits += 8;
hdlctx            335 drivers/net/hamradio/hdlcdrv.c 				if ((s->hdlctx.bitstream & mask1) != mask1) 
hdlctx            337 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.bitstream &= ~mask2;
hdlctx            338 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.bitbuf = 
hdlctx            339 drivers/net/hamradio/hdlcdrv.c 					(s->hdlctx.bitbuf & mask3) |
hdlctx            340 drivers/net/hamradio/hdlcdrv.c 						((s->hdlctx.bitbuf & 
hdlctx            342 drivers/net/hamradio/hdlcdrv.c 				s->hdlctx.numbits++;
hdlctx            354 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.tx_state = 0;
hdlctx            355 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.numflags = tenms_to_2flags(s, s->ch_params.tx_delay);
hdlctx            356 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.bitbuf = s->hdlctx.bitstream = s->hdlctx.numbits = 0;
hdlctx            358 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.ptt = 1;
hdlctx            366 drivers/net/hamradio/hdlcdrv.c 	if (!s || s->magic != HDLCDRV_MAGIC || s->hdlctx.ptt || !s->skb) 
hdlctx            373 drivers/net/hamradio/hdlcdrv.c 		s->hdlctx.slotcnt = s->ch_params.slottime;
hdlctx            376 drivers/net/hamradio/hdlcdrv.c 	if ((--s->hdlctx.slotcnt) > 0)
hdlctx            378 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.slotcnt = s->ch_params.slottime;
hdlctx            448 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.hbuf.rd = s->hdlctx.hbuf.wr = 0;
hdlctx            449 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.in_hdlc_tx = 0;
hdlctx            450 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.tx_state = 1;
hdlctx            451 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.numflags = 0;
hdlctx            452 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.bitstream = s->hdlctx.bitbuf = s->hdlctx.numbits = 0;
hdlctx            453 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.ptt = 0;
hdlctx            454 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.slotcnt = s->ch_params.slottime;
hdlctx            455 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.calibrate = 0;
hdlctx            521 drivers/net/hamradio/hdlcdrv.c 		s->hdlctx.slotcnt = 1;
hdlctx            569 drivers/net/hamradio/hdlcdrv.c 		s->hdlctx.calibrate = bi.data.calibrate * s->par.bitrate / 16;
hdlctx            645 drivers/net/hamradio/hdlcdrv.c 	spin_lock_init(&s->hdlctx.hbuf.lock);
hdlctx            646 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.hbuf.rd = s->hdlctx.hbuf.wr = 0;
hdlctx            647 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.in_hdlc_tx = 0;
hdlctx            648 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.tx_state = 1;
hdlctx            649 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.numflags = 0;
hdlctx            650 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.bitstream = s->hdlctx.bitbuf = s->hdlctx.numbits = 0;
hdlctx            651 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.ptt = 0;
hdlctx            652 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.slotcnt = s->ch_params.slottime;
hdlctx            653 drivers/net/hamradio/hdlcdrv.c 	s->hdlctx.calibrate = 0;
hdlctx            142 include/linux/hdlcdrv.h 	} hdlctx;
hdlctx            230 include/linux/hdlcdrv.h 	if (hdlcdrv_hbuf_empty(&s->hdlctx.hbuf)) {
hdlctx            231 include/linux/hdlcdrv.h 		if (s->hdlctx.calibrate > 0)
hdlctx            232 include/linux/hdlcdrv.h 			s->hdlctx.calibrate--;
hdlctx            234 include/linux/hdlcdrv.h 			s->hdlctx.ptt = 0;
hdlctx            237 include/linux/hdlcdrv.h 		ret = hdlcdrv_hbuf_get(&s->hdlctx.hbuf);
hdlctx            258 include/linux/hdlcdrv.h 	return s->hdlctx.ptt || (s->hdlctx.calibrate > 0);