• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:word

110 #define outpw(port, word)        outw((word), (port))
947 #define ADV_MEM_WRITEW(addr, word) writew(word, addr)
1053 ushort serial_number_word1; /* 18 Board serial number word 1 */
1054 ushort serial_number_word2; /* 19 Board serial number word 2 */
1055 ushort serial_number_word3; /* 20 Board serial number word 3 */
1126 ushort serial_number_word1; /* 18 Board serial number word 1 */
1127 ushort serial_number_word2; /* 19 Board serial number word 2 */
1128 ushort serial_number_word3; /* 20 Board serial number word 3 */
1228 ushort serial_number_word1; /* 18 Board serial number word 1 */
1229 ushort serial_number_word2; /* 19 Board serial number word 2 */
1230 ushort serial_number_word3; /* 20 Board serial number word 3 */
1786 ushort serial1; /* EEPROM serial number word 1 */
1787 ushort serial2; /* EEPROM serial number word 2 */
1788 ushort serial3; /* EEPROM serial number word 3 */
1848 uchar pad[2]; /* Pad out to a word boundary. */
1895 ushort bios_ctrl; /* BIOS control word, EEPROM word 12 */
1971 /* Read word (2 bytes) from a register. */
1975 /* Write word (2 bytes) to a register. */
1976 #define AdvWriteWordRegister(iop_base, reg_off, word) \
1977 (ADV_MEM_WRITEW((iop_base) + (reg_off), (word)))
1995 /* Read word (2 bytes) from LRAM. */
1996 #define AdvReadWordLram(iop_base, addr, word) \
1999 (word) = (ADV_MEM_READW((iop_base) + IOPW_RAM_DATA)); \
2002 /* Write word (2 bytes) to LRAM. */
2003 #define AdvWriteWordLram(iop_base, addr, word) \
2005 ADV_MEM_WRITEW((iop_base) + IOPW_RAM_DATA, (word)))
2007 /* Write little-endian double word (4 bytes) to LRAM */
2017 /* Read word (2 bytes) from LRAM assuming that the address is already set. */
2021 /* Write word (2 bytes) to LRAM assuming that the address is already set. */
2022 #define AdvWriteWordAutoIncLram(iop_base, word) \
2023 (ADV_MEM_WRITEW((iop_base) + IOPW_RAM_DATA, (word)))
2986 * is found in at bit 15-9 (7 bits) of word 1.
3015 * First word - 6 digits.
3039 * Second word
3046 * If bit 15 of third word is set, then the
3062 * Third word
3239 ushort word;
3301 word = ep_3550->termination;
3303 word = ep_38C0800->termination_lvd;
3305 word = ep_38C1600->termination_lvd;
3307 switch (word) {
3353 word = ep_3550->disc_enable;
3355 word = ep_38C0800->disc_enable;
3357 word = ep_38C1600->disc_enable;
3363 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3370 word = ep_3550->tagqng_able;
3372 word = ep_38C0800->tagqng_able;
3374 word = ep_38C1600->tagqng_able;
3380 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3387 word = ep_3550->start_motor;
3389 word = ep_38C0800->start_motor;
3391 word = ep_38C1600->start_motor;
3397 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
3432 word = ep_3550->wdtr_able;
3434 word = ep_38C0800->wdtr_able;
3436 word = ep_38C1600->wdtr_able;
3442 (word & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N');
4540 ushort word;
4544 word = inpw(iop_base + IOP_RAM_DATA);
4545 d_buffer[i] = word & 0xff;
4546 d_buffer[i + 1] = (word >> 8) & 0xff;
4799 * 254 word (508 byte) table indexed by byte code followed
4803 * 00: Emit word 0 in table.
4804 * 01: Emit word 1 in table.
4806 * FD: Emit word 253 in table.
4809 * FE WW WW: (3 byte code) Word to emit is the next word WW WW.
4810 * FF BB WW WW: (4 byte code) Emit BB count times next word WW WW.
4824 unsigned short word = (buf[i + 3] << 8) | buf[i + 2];
4826 AdvWriteWordAutoIncLram(iop_base, word);
4831 unsigned short word = (buf[i + 2] << 8) | buf[i + 1];
4832 AdvWriteWordAutoIncLram(iop_base, word);
4837 unsigned short word = (buf[off + 1] << 8) | buf[off];
4838 AdvWriteWordAutoIncLram(iop_base, word);
5031 int word;
5132 for (word = begin_addr; word < end_addr; word += 2) {
5157 AdvReadWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
5158 word |= CONTROL_FLAG_IGNORE_PERR;
5159 AdvWriteWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
5210 word = 0;
5214 word |= (0x3 << (4 * (tid % 4)));
5217 word |= (0x2 << (4 * (tid % 4)));
5220 AdvWriteWordLram(iop_base, ASC_MC_SDTR_SPEED1, word);
5221 word = 0;
5223 AdvWriteWordLram(iop_base, ASC_MC_SDTR_SPEED2, word);
5224 word = 0;
5226 AdvWriteWordLram(iop_base, ASC_MC_SDTR_SPEED3, word);
5227 word = 0;
5229 AdvWriteWordLram(iop_base, ASC_MC_SDTR_SPEED4, word);
5361 * MEM_CFG may be accessed as a word or byte, but only bits 0-7
5430 AdvReadWordLram(iop_base, ASC_MC_CODE_BEGIN_ADDR, word);
5431 AdvWriteWordRegister(iop_base, IOPW_PC, word);
5490 int word;
5648 for (word = begin_addr; word < end_addr; word += 2) {
5685 AdvReadWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
5686 word |= CONTROL_FLAG_IGNORE_PERR;
5687 AdvWriteWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
5858 * MEM_CFG may be accessed as a word or byte, but only bits 0-7
5930 AdvReadWordLram(iop_base, ASC_MC_CODE_BEGIN_ADDR, word);
5931 AdvWriteWordRegister(iop_base, IOPW_PC, word);
5990 long word;
6150 for (word = begin_addr; word < end_addr; word += 2) {
6187 AdvReadWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
6188 word |= CONTROL_FLAG_IGNORE_PERR;
6189 AdvWriteWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
6199 AdvReadWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
6200 word |= CONTROL_FLAG_ENABLE_AIPP;
6201 AdvWriteWordLram(iop_base, ASC_MC_CONTROL_FLAG, word);
6421 AdvReadWordLram(iop_base, ASC_MC_CODE_BEGIN_ADDR, word);
6422 AdvWriteWordRegister(iop_base, IOPW_PC, word);
6496 * perform a SCSI Bus Reset by clearing the BIOS signature word.
6498 * needed if the BIOS signature word is present.
6533 * Restore the BIOS signature word.
7489 ushort word;
7496 word = inpw(iop_base + IOP_RAM_DATA);
7497 inbuf[i] = word & 0xff;
7498 inbuf[i + 1] = (word >> 8) & 0xff;
7531 * Read high word of remain bytes from alternate location.
7539 * Read low word of remain bytes from original location.
9805 /* Don't swap word field at the end - cntl field. */
9811 * Read the checksum word which will be compared against 'sum'
9890 ushort word;
9920 word = cpu_to_le16(*wbuf);
9921 if (word !=
9922 AscWriteEEPWord(iop_base, (uchar)s_addr, word)) {
9926 /* Don't swap word field at the end - cntl field. */
9932 sum += *wbuf; /* Checksum calculated from word values. */
9934 /* Write checksum word. It will be swapped by AscWriteEEPWord(). */
9963 word =
9967 /* Don't swap word field at the end - cntl field. */
9968 word = AscReadEEPWord(iop_base, (uchar)s_addr);
9970 if (*wbuf != word) {
10718 * Write EEPROM from word 0 to word 20.
10722 ushort word;
10725 word = cpu_to_le16(*wbuf);
10727 word = *wbuf;
10729 chksum += *wbuf; /* Checksum is calculated from word values. */
10730 AdvWriteWordRegister(iop_base, IOPW_EE_DATA, word);
10738 * Write EEPROM checksum at word 21.
10751 ushort word;
10754 word = cpu_to_le16(*wbuf);
10756 word = *wbuf;
10758 AdvWriteWordRegister(iop_base, IOPW_EE_DATA, word);
10785 * Write EEPROM from word 0 to word 20.
10789 ushort word;
10792 word = cpu_to_le16(*wbuf);
10794 word = *wbuf;
10796 chksum += *wbuf; /* Checksum is calculated from word values. */
10797 AdvWriteWordRegister(iop_base, IOPW_EE_DATA, word);
10805 * Write EEPROM checksum at word 21.
10818 ushort word;
10821 word = cpu_to_le16(*wbuf);
10823 word = *wbuf;
10825 AdvWriteWordRegister(iop_base, IOPW_EE_DATA, word);
10852 * Write EEPROM from word 0 to word 20.
10856 ushort word;
10859 word = cpu_to_le16(*wbuf);
10861 word = *wbuf;
10863 chksum += *wbuf; /* Checksum is calculated from word values. */
10864 AdvWriteWordRegister(iop_base, IOPW_EE_DATA, word);
10872 * Write EEPROM checksum at word 21.
10885 ushort word;
10888 word = cpu_to_le16(*wbuf);
10890 word = *wbuf;
10892 AdvWriteWordRegister(iop_base, IOPW_EE_DATA, word);
10921 chksum += wval; /* Checksum is calculated from word values. */
10928 /* Read checksum word. */
10964 chksum += wval; /* Checksum is calculated from word values. */
10971 /* Read checksum word. */
11007 chksum += wval; /* Checksum is calculated from word values. */
11014 /* Read checksum word. */