Home
last modified time | relevance | path

Searched refs:SERIAL_XMIT_SIZE (Results 1 – 19 of 19) sorted by relevance

/linux-2.6.39/arch/ia64/hp/sim/
Dsimserial.c211 if (CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE) == 0) { in rs_put_char()
216 info->xmit.head = (info->xmit.head + 1) & (SERIAL_XMIT_SIZE-1); in rs_put_char()
255 count = min(CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE), in transmit_chars()
256 SERIAL_XMIT_SIZE - info->xmit.tail); in transmit_chars()
259 info->xmit.tail = (info->xmit.tail+count) & (SERIAL_XMIT_SIZE-1); in transmit_chars()
264 count = CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in transmit_chars()
296 c = CIRC_SPACE_TO_END(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_write()
304 (SERIAL_XMIT_SIZE-1)); in rs_write()
313 if (CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE) in rs_write()
324 return CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_write_room()
[all …]
/linux-2.6.39/drivers/staging/generic_serial/
Dgeneric_serial.c68 if (port->xmit_cnt >= SERIAL_XMIT_SIZE - 1) { in gs_put_char()
75 port->xmit_head &= SERIAL_XMIT_SIZE - 1; in gs_put_char()
119 t = SERIAL_XMIT_SIZE - port->xmit_head; in gs_write()
125 t = SERIAL_XMIT_SIZE - 1 - port->xmit_cnt; in gs_write()
134 port -> xmit_head = (port->xmit_head + c) & (SERIAL_XMIT_SIZE -1); in gs_write()
163 ret = SERIAL_XMIT_SIZE - port->xmit_cnt - 1; in gs_write_room()
671 if (tmp >= SERIAL_XMIT_SIZE) tmp = SERIAL_XMIT_SIZE-1; in gs_set_termios()
Dsx.c1073 if (c > SERIAL_XMIT_SIZE - port->gs.xmit_tail) in sx_transmit_chars()
1074 c = SERIAL_XMIT_SIZE - port->gs.xmit_tail; in sx_transmit_chars()
1077 c, SERIAL_XMIT_SIZE - port->gs.xmit_tail); in sx_transmit_chars()
1092 (SERIAL_XMIT_SIZE - 1); in sx_transmit_chars()
Dser_a2232.c585 …port->gs.xmit_tail = (port->gs.xmit_tail+1) & (SERIAL_XMIT_SIZE-1); /* modulo-addition for the gs.… in a2232_vbl_inter()
Dvme_scc.c631 port->gs.xmit_tail = port->gs.xmit_tail & (SERIAL_XMIT_SIZE-1); in scc_tx_int()
/linux-2.6.39/drivers/tty/serial/
D68328serial.c340 info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1); in transmit_chars()
596 info->xmit_tail = (info->xmit_tail+1) & (SERIAL_XMIT_SIZE-1); in rs_fair_output()
678 info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1);
708 c = min_t(int, count, min(SERIAL_XMIT_SIZE - info->xmit_cnt - 1,
709 SERIAL_XMIT_SIZE - info->xmit_head));
718 info->xmit_head = (info->xmit_head + c) & (SERIAL_XMIT_SIZE-1);
741 info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1);
761 ret = SERIAL_XMIT_SIZE - info->xmit_cnt - 1;
D68328serial.h172 #define SERIAL_XMIT_SIZE 4096 macro
Dcrisv10.c1484 info->xmit.tail,SERIAL_XMIT_SIZE))); in rs_stop()
1509 info->xmit.tail,SERIAL_XMIT_SIZE))); in rs_start()
1587 SERIAL_XMIT_SIZE)); in transmit_chars_dma()
1626 info->xmit.tail = (info->xmit.tail + sentl) & (SERIAL_XMIT_SIZE - 1); in transmit_chars_dma()
1632 SERIAL_XMIT_SIZE) < WAKEUP_CHARS) in transmit_chars_dma()
1637 c = CIRC_CNT_TO_END(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in transmit_chars_dma()
2577 info->xmit.tail = (info->xmit.tail + 1) & (SERIAL_XMIT_SIZE-1); in handle_ser_tx_interrupt()
2603 SERIAL_XMIT_SIZE) < WAKEUP_CHARS) in handle_ser_tx_interrupt()
3183 SERIAL_XMIT_SIZE); in rs_raw_write()
3192 (SERIAL_XMIT_SIZE-1); in rs_raw_write()
[all …]
/linux-2.6.39/drivers/tty/
Disicom.c460 cnt = min_t(int, txcount, (SERIAL_XMIT_SIZE in isicom_tx()
468 & (SERIAL_XMIT_SIZE - 1); in isicom_tx()
483 + (word_count << 1)) & (SERIAL_XMIT_SIZE - 1); in isicom_tx()
490 & (SERIAL_XMIT_SIZE - 1); in isicom_tx()
963 cnt = min_t(int, count, min(SERIAL_XMIT_SIZE - port->xmit_cnt in isicom_write()
964 - 1, SERIAL_XMIT_SIZE - port->xmit_head)); in isicom_write()
969 port->xmit_head = (port->xmit_head + cnt) & (SERIAL_XMIT_SIZE in isicom_write()
993 if (port->xmit_cnt >= SERIAL_XMIT_SIZE - 1) { in isicom_put_char()
999 port->xmit_head &= (SERIAL_XMIT_SIZE - 1); in isicom_put_char()
1031 free = SERIAL_XMIT_SIZE - port->xmit_cnt - 1; in isicom_write_room()
Damiserial.c358 info->xmit.tail = info->xmit.tail & (SERIAL_XMIT_SIZE-1); in transmit_chars()
363 SERIAL_XMIT_SIZE) < WAKEUP_CHARS) in transmit_chars()
853 SERIAL_XMIT_SIZE) == 0) { in rs_put_char()
859 info->xmit.head &= SERIAL_XMIT_SIZE-1; in rs_put_char()
906 SERIAL_XMIT_SIZE); in rs_write()
914 (SERIAL_XMIT_SIZE-1)); in rs_write()
943 return CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_write_room()
952 return CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_chars_in_buffer()
Dcyclades.c95 #ifndef SERIAL_XMIT_SIZE
96 #define SERIAL_XMIT_SIZE (min(PAGE_SIZE, 4096)) macro
666 (SERIAL_XMIT_SIZE - 1); in cyy_chip_tx()
673 (SERIAL_XMIT_SIZE - 1); in cyy_chip_tx()
1062 (SERIAL_XMIT_SIZE - info->xmit_tail), in cyz_handle_tx()
1076 (SERIAL_XMIT_SIZE - 1); in cyz_handle_tx()
1083 (SERIAL_XMIT_SIZE - 1); in cyz_handle_tx()
1831 c = min(count, (int)(SERIAL_XMIT_SIZE - info->xmit_cnt - 1)); in cy_write()
1832 c = min(c, (int)(SERIAL_XMIT_SIZE - info->xmit_head)); in cy_write()
1839 (SERIAL_XMIT_SIZE - 1); in cy_write()
[all …]
Dmxser.c1108 c = min_t(int, count, min(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, in mxser_write()
1109 SERIAL_XMIT_SIZE - info->xmit_head)); in mxser_write()
1116 (SERIAL_XMIT_SIZE - 1); in mxser_write()
1148 if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1) in mxser_put_char()
1153 info->xmit_head &= SERIAL_XMIT_SIZE - 1; in mxser_put_char()
1195 ret = SERIAL_XMIT_SIZE - info->xmit_cnt - 1; in mxser_write_room()
2197 port->xmit_tail = port->xmit_tail & (SERIAL_XMIT_SIZE - 1); in mxser_transmit_chars()
Dsynclink.c320 #ifndef SERIAL_XMIT_SIZE
321 #define SERIAL_XMIT_SIZE 4096 macro
2039 if (info->xmit_cnt < SERIAL_XMIT_SIZE - 1) { in mgsl_put_char()
2041 info->xmit_head &= SERIAL_XMIT_SIZE-1; in mgsl_put_char()
2195 min(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, in mgsl_write()
2196 SERIAL_XMIT_SIZE - info->xmit_head)); in mgsl_write()
2203 (SERIAL_XMIT_SIZE-1)); in mgsl_write()
2241 ret = SERIAL_XMIT_SIZE - info->xmit_cnt - 1; in mgsl_write_room()
5726 info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1); in usc_load_txfifo()
5728 info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1); in usc_load_txfifo()
[all …]
/linux-2.6.39/drivers/staging/tty/
Driscom8.c475 port->xmit_tail = port->xmit_tail & (SERIAL_XMIT_SIZE-1); in rc_transmit()
691 port->wakeup_chars = (tmp < 0) ? 0 : ((tmp >= SERIAL_XMIT_SIZE) ? in rc_change_speed()
692 SERIAL_XMIT_SIZE - 1 : tmp); in rc_change_speed()
993 c = min_t(int, count, min(SERIAL_XMIT_SIZE - port->xmit_cnt - 1, in rc_write()
994 SERIAL_XMIT_SIZE - port->xmit_head)); in rc_write()
999 port->xmit_head = (port->xmit_head + c) & (SERIAL_XMIT_SIZE-1); in rc_write()
1032 if (port->xmit_cnt >= SERIAL_XMIT_SIZE - 1) in rc_put_char()
1036 port->xmit_head &= SERIAL_XMIT_SIZE - 1; in rc_put_char()
1073 ret = SERIAL_XMIT_SIZE - port->xmit_cnt - 1; in rc_write_room()
Dspecialix.c719 port->xmit_tail = port->xmit_tail & (SERIAL_XMIT_SIZE-1); in sx_transmit()
812 SERIAL_XMIT_SIZE - sx_get_port(bp, "ITN")->xmit_cnt - 1); in sx_interrupt()
1057 port->wakeup_chars = (tmp < 0) ? 0 : ((tmp >= SERIAL_XMIT_SIZE) ? in sx_change_speed()
1058 SERIAL_XMIT_SIZE - 1 : tmp); in sx_change_speed()
1609 c = min_t(int, count, min(SERIAL_XMIT_SIZE - port->xmit_cnt - 1, in sx_write()
1610 SERIAL_XMIT_SIZE - port->xmit_head)); in sx_write()
1616 port->xmit_head = (port->xmit_head + c) & (SERIAL_XMIT_SIZE-1); in sx_write()
1661 if (port->xmit_cnt >= SERIAL_XMIT_SIZE - 1 || !port->xmit_buf) { in sx_put_char()
1669 port->xmit_head &= SERIAL_XMIT_SIZE - 1; in sx_put_char()
1717 ret = SERIAL_XMIT_SIZE - port->xmit_cnt - 1; in sx_write_room()
Dserial167.c1108 c = min_t(int, count, min(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, in cy_write()
1109 SERIAL_XMIT_SIZE - info->xmit_head)); in cy_write()
1117 (info->xmit_head + c) & (SERIAL_XMIT_SIZE - 1); in cy_write()
/linux-2.6.39/drivers/staging/generic_serial/rio/
Driointr.c127 if (c > SERIAL_XMIT_SIZE - PortP->gs.xmit_tail) in RIOTxEnable()
128 c = SERIAL_XMIT_SIZE - PortP->gs.xmit_tail; in RIOTxEnable()
153 PortP->gs.xmit_tail = (PortP->gs.xmit_tail + c) & (SERIAL_XMIT_SIZE - 1); in RIOTxEnable()
/linux-2.6.39/include/linux/
Dserial.h31 #define SERIAL_XMIT_SIZE PAGE_SIZE macro
/linux-2.6.39/drivers/net/wan/
Dz85230.h430 #define SERIAL_XMIT_SIZE 4096 macro