tag | line | file | source code |
head | 288 | drivers/block/floppy.c | static unsigned char head = 0; |
head | 455 | drivers/block/floppy.c | count = floppy->sect*floppy->head*512; |
head | 692 | drivers/block/floppy.c | ((sector-1 + head*floppy->sect)<<9); |
head | 720 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 722 | drivers/block/floppy.c | output_byte(head); |
head | 730 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 787 | drivers/block/floppy.c | output_byte((head<<2) | current_drive); |
head | 829 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 912 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 926 | drivers/block/floppy.c | output_byte(head << 2 | current_drive); |
head | 954 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 980 | drivers/block/floppy.c | ((track_shift * track + head_shift * head) % floppy->sect); |
head | 985 | drivers/block/floppy.c | *here++ = head; |
head | 1048 | drivers/block/floppy.c | head = block % floppy->head; |
head | 1049 | drivers/block/floppy.c | track = block / floppy->head; |
head | 1065 | drivers/block/floppy.c | (format_req.head & 0xfffe) || probing) { |
head | 1069 | drivers/block/floppy.c | head = format_req.head; |
head | 1081 | drivers/block/floppy.c | ((sector + head*floppy->sect)<<9); |
head | 74 | drivers/block/hd.c | unsigned int head,sect,cyl,wpcom,lzone,ctl; |
head | 110 | drivers/block/hd.c | if (hd_info[0].head != 0) |
head | 112 | drivers/block/hd.c | hd_info[hdind].head = ints[2]; |
head | 141 | drivers/block/hd.c | static int controller_ready(unsigned int drive, unsigned int head) |
head | 148 | drivers/block/hd.c | outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); |
head | 182 | drivers/block/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
head | 187 | drivers/block/hd.c | if (drive>1 || head>15) |
head | 195 | drivers/block/hd.c | if (!controller_ready(drive, head)) { |
head | 207 | drivers/block/hd.c | outb_p(0xA0|(drive<<4)|head,++port); |
head | 256 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
head | 446 | drivers/block/hd.c | unsigned int sec,head,cyl,track; |
head | 472 | drivers/block/hd.c | head = track % hd_info[dev].head; |
head | 473 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
head | 476 | drivers/block/hd.c | dev, cyl, head, sec, CURRENT->buffer); |
head | 497 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr); |
head | 510 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_READ,&read_intr); |
head | 536 | drivers/block/hd.c | put_fs_byte(hd_info[dev].head, |
head | 647 | drivers/block/hd.c | hd_info[drive].head = *(2+BIOS); |
head | 686 | drivers/block/hd.c | if (hd_info[i].head > 16) { |
head | 692 | drivers/block/hd.c | hd_info[i].head); |
head | 697 | drivers/block/hd.c | hd[i<<6].nr_sects = hd_info[i].head* |
head | 741 | drivers/block/hd.c | #define CAPACITY (hd_info[target].head*hd_info[target].sect*hd_info[target].cyl) |
head | 282 | drivers/block/xd.c | u_char head,sector,control,mode,temp; |
head | 293 | drivers/block/xd.c | head = track % xd_info[drive].heads; |
head | 298 | drivers/block/xd.c | printk("xd_readwrite: drive = %d, head = %d, cylinder = %d, sector = %d, count = %d\n",drive,head,cylinder,sector,temp); |
head | 302 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
head | 372 | drivers/block/xd.c | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control) |
head | 375 | drivers/block/xd.c | cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); |
head | 344 | drivers/char/keyboard.c | qp->buf[qp->head] = ch; |
head | 345 | drivers/char/keyboard.c | INC(qp->head); |
head | 363 | drivers/char/keyboard.c | qp->buf[qp->head] = ch; |
head | 364 | drivers/char/keyboard.c | INC(qp->head); |
head | 95 | drivers/char/psaux.c | unsigned long head; |
head | 185 | drivers/char/psaux.c | return queue->head == queue->tail; |
head | 197 | drivers/char/psaux.c | int head = queue->head; |
head | 200 | drivers/char/psaux.c | queue->buf[head] = inb(AUX_INPUT_PORT); |
head | 201 | drivers/char/psaux.c | if (head != maxhead) { |
head | 202 | drivers/char/psaux.c | head++; |
head | 203 | drivers/char/psaux.c | head &= AUX_BUF_SIZE-1; |
head | 205 | drivers/char/psaux.c | queue->head = head; |
head | 218 | drivers/char/psaux.c | int head = queue->head; |
head | 221 | drivers/char/psaux.c | queue->buf[head] = inb(qp_data); |
head | 222 | drivers/char/psaux.c | if (head != maxhead) { |
head | 223 | drivers/char/psaux.c | head++; |
head | 224 | drivers/char/psaux.c | head &= AUX_BUF_SIZE-1; |
head | 226 | drivers/char/psaux.c | queue->head = head; |
head | 274 | drivers/char/psaux.c | queue->head = queue->tail = 0; /* Flush input queue */ |
head | 316 | drivers/char/psaux.c | queue->head = queue->tail = 0; /* Flush input queue */ |
head | 466 | drivers/char/psaux.c | queue->head = queue->tail = 0; |
head | 331 | drivers/char/serial.c | int head, tail, ch; |
head | 337 | drivers/char/serial.c | #define VLEFT ((tail-head-1)&(TTY_BUF_SIZE-1)) |
head | 340 | drivers/char/serial.c | head = queue->head; |
head | 351 | drivers/char/serial.c | set_bit(head, &info->tty->readq_flags); |
head | 353 | drivers/char/serial.c | queue->buf[head++]= TTY_BREAK; |
head | 356 | drivers/char/serial.c | queue->buf[head++]= TTY_PARITY; |
head | 358 | drivers/char/serial.c | queue->buf[head++]= TTY_FRAME; |
head | 360 | drivers/char/serial.c | queue->buf[head++]= TTY_OVERRUN; |
head | 361 | drivers/char/serial.c | head &= TTY_BUF_SIZE-1; |
head | 363 | drivers/char/serial.c | queue->buf[head++] = ch; |
head | 364 | drivers/char/serial.c | head &= TTY_BUF_SIZE-1; |
head | 366 | drivers/char/serial.c | queue->head = head; |
head | 379 | drivers/char/serial.c | int head, tail, count; |
head | 382 | drivers/char/serial.c | head = queue->head; |
head | 384 | drivers/char/serial.c | if (head==tail && !info->x_char) { |
head | 397 | drivers/char/serial.c | while (count-- && (tail != head)) { |
head | 997 | drivers/char/serial.c | int head, tail, count; |
head | 1008 | drivers/char/serial.c | head = queue->head; |
head | 1012 | drivers/char/serial.c | if (tail == head) |
head | 103 | drivers/char/tty_io.c | int head; |
head | 108 | drivers/char/tty_io.c | head = (queue->head + 1) & (TTY_BUF_SIZE-1); |
head | 109 | drivers/char/tty_io.c | if (head != queue->tail) { |
head | 110 | drivers/char/tty_io.c | queue->buf[queue->head] = c; |
head | 111 | drivers/char/tty_io.c | queue->head = head; |
head | 123 | drivers/char/tty_io.c | if (queue->tail != queue->head) { |
head | 144 | drivers/char/tty_io.c | int head, tail; |
head | 150 | drivers/char/tty_io.c | head = tty->read_q.head; |
head | 151 | drivers/char/tty_io.c | while ((result < buflen) && (tail!=head) && ok) { |
head | 528 | drivers/char/tty_io.c | if (tty->read_q.tail != tty->read_q.head) { |
head | 618 | drivers/char/tty_io.c | DEC(tty->secondary.head); |
head | 1539 | drivers/char/tty_io.c | int head, tail, count; |
head | 1543 | drivers/char/tty_io.c | #define VLEFT ((tail-head-1)&(TTY_BUF_SIZE-1)) |
head | 1552 | drivers/char/tty_io.c | head = tty->write_q.head; |
head | 1558 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
head | 1559 | drivers/char/tty_io.c | head &= TTY_BUF_SIZE-1; |
head | 1562 | drivers/char/tty_io.c | tty->write_q.head = head; |
head | 1585 | drivers/char/tty_io.c | int head, tail, count; |
head | 1600 | drivers/char/tty_io.c | head = tty->write_q.head; |
head | 1606 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
head | 1607 | drivers/char/tty_io.c | head &= TTY_BUF_SIZE-1; |
head | 1610 | drivers/char/tty_io.c | tty->write_q.head = head; |
head | 48 | drivers/char/tty_ioctl.c | queue->head = queue->tail; |
head | 411 | drivers/char/tty_ioctl.c | int nr, head, tail; |
head | 415 | drivers/char/tty_ioctl.c | head = tty->secondary.head; |
head | 417 | drivers/char/tty_ioctl.c | nr = (head - tail) & (TTY_BUF_SIZE-1); |
head | 421 | drivers/char/tty_ioctl.c | while (head != tail) { |
head | 654 | fs/buffer.c | struct buffer_head *bh, *head; |
head | 657 | fs/buffer.c | head = NULL; |
head | 663 | fs/buffer.c | bh->b_this_page = head; |
head | 664 | fs/buffer.c | head = bh; |
head | 668 | fs/buffer.c | return head; |
head | 673 | fs/buffer.c | bh = head; |
head | 675 | fs/buffer.c | head = bh; |
head | 677 | fs/buffer.c | put_unused_buffer_head(head); |
head | 29 | include/linux/fd.h | head, /* nr of heads */ |
head | 40 | include/linux/fd.h | unsigned int device,head,track; |
head | 16 | include/linux/genhd.h | unsigned char head; /* starting head */ |
head | 66 | include/linux/tty.h | unsigned long head; |
head | 138 | include/linux/tty.h | #define EMPTY(a) ((a)->head == (a)->tail) |
head | 139 | include/linux/tty.h | #define LEFT(a) (((a)->tail-(a)->head-1)&(TTY_BUF_SIZE-1)) |
head | 140 | include/linux/tty.h | #define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)]) |
head | 142 | include/linux/tty.h | #define CHARS(a) (((a)->head-(a)->tail)&(TTY_BUF_SIZE-1)) |
head | 123 | include/linux/xd.h | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); |