tag | line | file | source code |
head | 288 | drivers/block/floppy.c | static unsigned char head = 0; |
head | 458 | drivers/block/floppy.c | count = floppy->sect*floppy->head*512; |
head | 695 | drivers/block/floppy.c | ((sector-1 + head*floppy->sect)<<9); |
head | 723 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 725 | drivers/block/floppy.c | output_byte(head); |
head | 733 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 790 | drivers/block/floppy.c | output_byte((head<<2) | current_drive); |
head | 832 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 915 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 929 | drivers/block/floppy.c | output_byte(head << 2 | current_drive); |
head | 957 | drivers/block/floppy.c | output_byte(head<<2 | current_drive); |
head | 983 | drivers/block/floppy.c | ((track_shift * track + head_shift * head) % floppy->sect); |
head | 988 | drivers/block/floppy.c | *here++ = head; |
head | 1051 | drivers/block/floppy.c | head = block % floppy->head; |
head | 1052 | drivers/block/floppy.c | track = block / floppy->head; |
head | 1068 | drivers/block/floppy.c | (format_req.head & 0xfffe) || probing) { |
head | 1072 | drivers/block/floppy.c | head = format_req.head; |
head | 1084 | drivers/block/floppy.c | ((sector + head*floppy->sect)<<9); |
head | 74 | drivers/block/hd.c | unsigned int head,sect,cyl,wpcom,lzone,ctl; |
head | 116 | drivers/block/hd.c | if (hd_info[0].head != 0) |
head | 118 | drivers/block/hd.c | hd_info[hdind].head = ints[2]; |
head | 147 | drivers/block/hd.c | static int controller_ready(unsigned int drive, unsigned int head) |
head | 154 | drivers/block/hd.c | outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); |
head | 188 | drivers/block/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
head | 193 | drivers/block/hd.c | if (drive>1 || head>15) |
head | 201 | drivers/block/hd.c | if (!controller_ready(drive, head)) { |
head | 213 | drivers/block/hd.c | outb_p(0xA0|(drive<<4)|head,++port); |
head | 262 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
head | 452 | drivers/block/hd.c | unsigned int sec,head,cyl,track; |
head | 478 | drivers/block/hd.c | head = track % hd_info[dev].head; |
head | 479 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
head | 482 | drivers/block/hd.c | dev, cyl, head, sec, CURRENT->buffer); |
head | 503 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr); |
head | 516 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_READ,&read_intr); |
head | 542 | drivers/block/hd.c | put_fs_byte(hd_info[dev].head, |
head | 653 | drivers/block/hd.c | hd_info[drive].head = *(2+BIOS); |
head | 692 | drivers/block/hd.c | if (hd_info[i].head > 16) { |
head | 698 | drivers/block/hd.c | hd_info[i].head); |
head | 703 | drivers/block/hd.c | hd[i<<6].nr_sects = hd_info[i].head* |
head | 747 | 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 | 292 | drivers/char/keyboard.c | qp->buf[qp->head] = ch; |
head | 293 | drivers/char/keyboard.c | INC(qp->head); |
head | 311 | drivers/char/keyboard.c | qp->buf[qp->head] = ch; |
head | 312 | 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 | 325 | drivers/char/serial.c | int head, tail, ch; |
head | 331 | drivers/char/serial.c | #define VLEFT ((tail-head-1)&(TTY_BUF_SIZE-1)) |
head | 334 | drivers/char/serial.c | head = queue->head; |
head | 345 | drivers/char/serial.c | set_bit(head, &info->tty->readq_flags); |
head | 347 | drivers/char/serial.c | queue->buf[head++]= TTY_BREAK; |
head | 350 | drivers/char/serial.c | queue->buf[head++]= TTY_PARITY; |
head | 352 | drivers/char/serial.c | queue->buf[head++]= TTY_FRAME; |
head | 353 | drivers/char/serial.c | head &= TTY_BUF_SIZE-1; |
head | 355 | drivers/char/serial.c | queue->buf[head++] = ch; |
head | 356 | drivers/char/serial.c | head &= TTY_BUF_SIZE-1; |
head | 358 | drivers/char/serial.c | queue->head = head; |
head | 371 | drivers/char/serial.c | int head, tail, count; |
head | 374 | drivers/char/serial.c | head = queue->head; |
head | 376 | drivers/char/serial.c | if (head==tail && !info->x_char) { |
head | 389 | drivers/char/serial.c | while (count-- && (tail != head)) { |
head | 920 | drivers/char/serial.c | int head, tail, count; |
head | 931 | drivers/char/serial.c | head = queue->head; |
head | 935 | drivers/char/serial.c | if (tail == head) |
head | 101 | drivers/char/tty_io.c | int head; |
head | 106 | drivers/char/tty_io.c | head = (queue->head + 1) & (TTY_BUF_SIZE-1); |
head | 107 | drivers/char/tty_io.c | if (head != queue->tail) { |
head | 108 | drivers/char/tty_io.c | queue->buf[queue->head] = c; |
head | 109 | drivers/char/tty_io.c | queue->head = head; |
head | 121 | drivers/char/tty_io.c | if (queue->tail != queue->head) { |
head | 142 | drivers/char/tty_io.c | int head, tail; |
head | 148 | drivers/char/tty_io.c | head = tty->read_q.head; |
head | 149 | drivers/char/tty_io.c | while ((result < buflen) && (tail!=head) && ok) { |
head | 505 | drivers/char/tty_io.c | if (tty->read_q.tail != tty->read_q.head) { |
head | 589 | drivers/char/tty_io.c | DEC(tty->secondary.head); |
head | 609 | drivers/char/tty_io.c | DEC(tty->secondary.head); |
head | 1501 | drivers/char/tty_io.c | int head, tail, count; |
head | 1505 | drivers/char/tty_io.c | #define VLEFT ((tail-head-1)&(TTY_BUF_SIZE-1)) |
head | 1514 | drivers/char/tty_io.c | head = tty->write_q.head; |
head | 1520 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
head | 1521 | drivers/char/tty_io.c | head &= TTY_BUF_SIZE-1; |
head | 1524 | drivers/char/tty_io.c | tty->write_q.head = head; |
head | 1547 | drivers/char/tty_io.c | int head, tail, count; |
head | 1562 | drivers/char/tty_io.c | head = tty->write_q.head; |
head | 1568 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
head | 1569 | drivers/char/tty_io.c | head &= TTY_BUF_SIZE-1; |
head | 1572 | drivers/char/tty_io.c | tty->write_q.head = head; |
head | 47 | drivers/char/tty_ioctl.c | queue->head = queue->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); |