Lines Matching defs:in
14 * This program is distributed in the hope that it will be useful,
22 * The Linux IN2000 driver distributed in the Linux kernels through
33 * in the Linux-m68k distribution; it gave me a good initial
37 * _This_ driver is (I feel) an improvement over the old one in
71 * idea in that the CPU is relieved of a lot of interrupt
81 * keep it in mind, but have no way to test...
93 * might want to change the define of 'SD_EXTRA_DEVS' in the
147 * - period:ns -ns is the minimum # of nanoseconds in a SCSI data transfer
154 * defines in in2000.h
157 * does - see the PR_xxx defines in in2000.h
163 * - Keywords are separated by commas, no spaces, in the standard kernel
165 * - A keyword in the 'nth' comma-separated command-line member will overwrite
166 * the 'nth' element of setup_args[]. A blank command-line member (in
181 /* filled in by 'insmod' */
330 /* Set up a few fields in the Scsi_Cmnd structure for our own use:
331 * - host_scribble is the pointer to the next cmd in the input queue
355 /* We don't set SCp.phase here - that's done in in2000_execute() */
363 * to receiving the status byte, in which case the driver does a
400 /* We know that there's at least one command in 'input_Q' now.
500 * + Disconnect should be allowed if there are commands in input_Q
558 /* Every target has its own synchronous transfer setting, kept in
559 * the sync_xfer array, and a corresponding status byte in sync_stat[].
611 * put them in there too - that'll avoid a fifo interrupt. Reads are
614 * This results in the IO_FIFO_COUNT register rolling over to zero,
620 * about "don't fill completely" in an analogous place - must be the
621 * same deal.) This results in CDROM, swap partitions, and tape drives
635 cmd->SCp.have_data_in = i; /* this much data in fifo */
668 write1_io(0, IO_FIFO_READ); /* put fifo in read mode */
699 DB(DB_TRANSFER,printk("(%p,%d,%s)",buf,cnt,data_in_dir?"in":"out"))
814 /* We need to use spin_lock_irqsave() & spin_unlock_irqrestore() in this
815 * function in order to work in an SMP environment. (I'd be surprised
817 * but it _does_ need to be able to compile and run in an SMP kernel.)
874 * least 32 additional bytes to the fifo after an interrupt in order
876 * than 32 will result in another fifo int.
905 * (Big thanks to Bill Earnest for getting me out of the mud in here.)
917 i <<= 2; /* # of words waiting in the fifo */
946 * More thanks due him for help in this section.
955 /* If there are still bytes left in the SCSI buffer, write as many as we
1007 * guaranteed to be in response to the completion of the transfer.
1008 * If we were reading, there's probably data in the fifo that needs
1011 * TRANSFER_COUNT register, in case the device decided to do an
1025 /* bytes remaining in fifo = (total-wanted - #-not-got) - #-already-read */
1087 /* Note: this interrupt should not occur in a LEVEL2 command */
1144 /* Note: this interrupt should not occur in a LEVEL2 command */
1255 * synchronous fifo depth of 0. This will result in asynchronous
1377 * already put the correct bytes in outgoing_msg[] and filled
1378 * in outgoing_len. We simply send them out to the SCSI bus.
1385 * NOP messages in these situations results in no harm and
1403 /* I think I've seen this after a request-sense that was in response
1407 * in a legal manner (like a command that provokes a request-sense),
1556 printk("---TROUBLE: target %d.%d not in disconnect queue---",id,lun);
1630 write1_io(0,IO_FIFO_READ); /* start fifo out in read mode */
1738 * and handling them cleanly in this situation would make the common
1808 * Case 4 : If we reached this point, the command was not found in any of
1813 * so we won't panic, but we will notify the user in case something really
1895 * special macros declared in 'asm/io.h'. We use readb() and readl()
1896 * when reading from the card's BIOS area in in2000_detect().
1936 * possible locations for the IN2000 EPROM in memory space - if we
1938 * the byte at BIOS+32 (shadowed in by logic on the card). From 2
1939 * of the switch bits we get the card's address in IO space. There's
1975 /* Check for the IN2000 signature in IO space. */
2025 write1_io(0,IO_FIFO_READ); /* start fifo out in read mode */
2035 request_region(base, 13, "in2000"); /* lock in this IO space for our use */
2179 int in2000_proc_info(char *buf, char **start, off_t off, int len, int hn, int in)
2203 /* If 'in' is TRUE we need to _read_ the proc file. We accept the following
2212 if (in) {