Fork me on GitHub
cb                942 drivers/char/console.c 	struct cblock *cb;
cb                946 drivers/char/console.c 	cb = tty->cooked_q.head;
cb                949 drivers/char/console.c 	while(cb) {
cb                950 drivers/char/console.c 		for(n = 0; n < cb->end_off; n++) {
cb                951 drivers/char/console.c 			if(n >= cb->start_off) {
cb                952 drivers/char/console.c 				ch = cb->data[n];
cb                964 drivers/char/console.c 		cb = cb->next;
cb                207 drivers/char/serial.c 	struct cblock *cb;
cb                210 drivers/char/serial.c 	cb = tty->cooked_q.head;
cb                213 drivers/char/serial.c 	while(cb) {
cb                214 drivers/char/serial.c 		for(n = 0; n < cb->end_off; n++) {
cb                215 drivers/char/serial.c 			if(n >= cb->start_off) {
cb                216 drivers/char/serial.c 				ch = cb->data[n];
cb                228 drivers/char/serial.c 		cb = cb->next;
cb                288 drivers/char/tty.c 	struct cblock *cb;
cb                353 drivers/char/tty.c 				cb = tty->cooked_q.head;
cb                354 drivers/char/tty.c 				while(cb) {
cb                355 drivers/char/tty.c 					for(n = 0; n < cb->end_off; n++) {
cb                356 drivers/char/tty.c 						if(n >= cb->start_off) {
cb                357 drivers/char/tty.c 							out_char(tty, cb->data[n]);
cb                360 drivers/char/tty.c 					cb = cb->next;
cb                 50 drivers/char/tty_queue.c 	struct cblock *cb;
cb                 55 drivers/char/tty_queue.c 	if(!(cb = get_free_cblock())) {
cb                 60 drivers/char/tty_queue.c 	cb->start_off = cb->end_off = 0;
cb                 61 drivers/char/tty_queue.c 	memset_b(cb->data, 0, CBSIZE);
cb                 62 drivers/char/tty_queue.c 	cb->prev = cb->next = NULL;
cb                 66 drivers/char/tty_queue.c 		q->head = q->tail = cb;
cb                 68 drivers/char/tty_queue.c 		cb->prev = NULL;
cb                 69 drivers/char/tty_queue.c 		cb->next = q->head;
cb                 70 drivers/char/tty_queue.c 		q->head->prev = cb;
cb                 71 drivers/char/tty_queue.c 		q->head = cb;
cb                 73 drivers/char/tty_queue.c 	return cb;
cb                 78 drivers/char/tty_queue.c 	struct cblock *cb;
cb                 83 drivers/char/tty_queue.c 	if(!(cb = get_free_cblock())) {
cb                 88 drivers/char/tty_queue.c 	cb->start_off = cb->end_off = 0;
cb                 89 drivers/char/tty_queue.c 	memset_b(cb->data, 0, CBSIZE);
cb                 90 drivers/char/tty_queue.c 	cb->prev = cb->next = NULL;
cb                 94 drivers/char/tty_queue.c 		q->head = q->tail = cb;
cb                 96 drivers/char/tty_queue.c 		cb->prev = q->tail;
cb                 97 drivers/char/tty_queue.c 		cb->next = NULL;
cb                 98 drivers/char/tty_queue.c 		q->tail->next = cb;
cb                 99 drivers/char/tty_queue.c 		q->tail = cb;
cb                101 drivers/char/tty_queue.c 	return cb;
cb                149 drivers/char/tty_queue.c 	struct cblock *cb;
cb                154 drivers/char/tty_queue.c 	cb = q->tail;
cb                155 drivers/char/tty_queue.c 	if(!cb) {
cb                156 drivers/char/tty_queue.c 		cb = insert_cblock_in_tail(q);
cb                157 drivers/char/tty_queue.c 		if(!cb) {
cb                163 drivers/char/tty_queue.c 	if(cb->end_off < CBSIZE) {
cb                164 drivers/char/tty_queue.c 		cb->data[cb->end_off] = ch;
cb                165 drivers/char/tty_queue.c 		cb->end_off++;
cb                182 drivers/char/tty_queue.c 	struct cblock *cb;
cb                188 drivers/char/tty_queue.c 	cb = q->tail;
cb                189 drivers/char/tty_queue.c 	if(cb) {
cb                190 drivers/char/tty_queue.c 		if(cb->end_off > cb->start_off) {
cb                191 drivers/char/tty_queue.c 			ch = cb->data[cb->end_off - 1];
cb                192 drivers/char/tty_queue.c 			cb->end_off--;
cb                195 drivers/char/tty_queue.c 		if(cb->end_off - cb->start_off == 0) {
cb                207 drivers/char/tty_queue.c 	struct cblock *cb;
cb                213 drivers/char/tty_queue.c 	cb = q->head;
cb                214 drivers/char/tty_queue.c 	if(cb) {
cb                215 drivers/char/tty_queue.c 		if(cb->start_off < cb->end_off) {
cb                216 drivers/char/tty_queue.c 			ch = cb->data[cb->start_off];
cb                217 drivers/char/tty_queue.c 			cb->start_off++;
cb                220 drivers/char/tty_queue.c 		if(cb->end_off - cb->start_off == 0) {
cb                250 drivers/char/tty_queue.c 	struct cblock *cb;
cb                258 drivers/char/tty_queue.c 		cb = &cblock_pool[n];
cb                259 drivers/char/tty_queue.c 		put_free_cblock(cb);