Lines Matching refs:USHORT

216 typedef unsigned short  USHORT;  typedef
272 #define BITW(x) ((USHORT)(1<<(x))) /* single-bit mask in bit position x */
451 USHORT si_fw_revision;
452 USHORT si_per_targ_init_sync;
453 USHORT si_per_targ_fast_nego;
454 USHORT si_per_targ_ultra_nego;
455 USHORT si_per_targ_no_disc;
456 USHORT si_per_targ_wide_nego;
457 USHORT si_flags;
536 USHORT SccbOSFlags;
543 USHORT Sccb_MGRFlags;
544 USHORT Sccb_sgseg;
681 USHORT SccbMgr_config_adapter(PSCCBMGR_INFO pCardInfo);
682 void SccbMgr_start_sccb(USHORT pCurrCard, PSCCB p_SCCB);
683 int SccbMgr_abort_sccb(USHORT pCurrCard, PSCCB p_SCCB);
684 UCHAR SccbMgr_my_int(USHORT pCurrCard);
685 int SccbMgr_isr(USHORT pCurrCard);
686 void SccbMgr_scsi_reset(USHORT pCurrCard);
687 void SccbMgr_timer_expired(USHORT pCurrCard);
688 USHORT SccbMgr_status(USHORT pCurrCard);
689 void SccbMgr_unload_card(USHORT pCurrCard);
823 #define WRW_HARPOON(ioport,val) OS_OutPortWord((ULONG)ioport,(USHORT)val)
832 #define WRW_HARPOON(ioport,val) OS_OutPortWord((ULONG)ioport,(USHORT)val)
850 #define WRW_HARPOON(ioport,val) OS_OutPortWord((ULONG)ioport,(USHORT)val)
860 #define WRW_HARPOON(ioport,val) OS_OutPortWord((ULONG)ioport,(USHORT)val)
953 USHORT niBaseAddr; /* Port Address of card */
988 USHORT ioPort;
993 USHORT cmdCounter;
1581 extern USHORT default_intena;
1976 #define HP_SETUP_ADDR_CNT(port,addr,count) (WRW_HARPOON((USHORT)(port+hp_host_addr_lo), (USHORT)(ad…
1978 WRW_HARPOON((USHORT)(port+hp_host_addr_hmi), (USHORT)(addr & 0x0000FFFFL)),\
1980 WRW_HARPOON((USHORT)(port+hp_xfer_cnt_lo), (USHORT)(count & 0x0000FFFFL)),\
1984 #define HP_SETUP_ADDR_CNT(port,addr,count) (WRW_HARPOON((port+hp_host_addr_lo), (USHORT)(addr & 0x0…
1986 WRW_HARPOON((port+hp_host_addr_hmi), (USHORT)(addr & 0x0000FFFFL)),\
1988 WRW_HARPOON((port+hp_xfer_cnt_lo), (USHORT)(count & 0x0000FFFFL)),\
2033 UCHAR sfm(USHORT port, PSCCB pcurrSCCB);
2034 void scsiStartAuto(USHORT port);
2035 UCHAR sisyncn(USHORT port, UCHAR p_card, UCHAR syncFlag);
2036 void ssel(USHORT port, UCHAR p_card);
2037 void sres(USHORT port, UCHAR p_card, PSCCBcard pCurrCard);
2038 void sdecm(UCHAR message, USHORT port, UCHAR p_card);
2039 void shandem(USHORT port, UCHAR p_card,PSCCB pCurrSCCB);
2040 void stsyncn(USHORT port, UCHAR p_card);
2041 void sisyncr(USHORT port,UCHAR sync_pulse, UCHAR offset);
2042 void sssyncv(USHORT p_port, UCHAR p_id, UCHAR p_sync_value, PSCCBMgr_tar_info currTar_Info);
2043 void sresb(USHORT port, UCHAR p_card);
2044 void sxfrp(USHORT p_port, UCHAR p_card);
2045 void schkdd(USHORT port, UCHAR p_card);
2046 UCHAR RdStack(USHORT port, UCHAR index);
2047 void WrStack(USHORT portBase, UCHAR index, UCHAR data);
2048 UCHAR ChkIfChipInitialized(USHORT ioPort);
2051 UCHAR GetTarLun(USHORT port, UCHAR p_card, UCHAR our_target, PSCCBcard pCurrCard, PUCHAR tag, PUCHA…
2054 void SendMsg(USHORT port, UCHAR message);
2056 UCHAR scsellDOS(USHORT p_port, UCHAR targ_id);
2089 UCHAR siwidn(USHORT port, UCHAR p_card);
2090 void stwidn(USHORT port, UCHAR p_card);
2091 void siwidr(USHORT port, UCHAR width);
2108 USHORT CalcCrc16(UCHAR buffer[]);
2113 void Wait1Second(USHORT p_port);
2114 void Wait(USHORT p_port, UCHAR p_delay);
2115 void utilEEWriteOnOff(USHORT p_port,UCHAR p_mode);
2116 void utilEEWrite(USHORT p_port, USHORT ee_data, USHORT ee_addr);
2117 USHORT utilEERead(USHORT p_port, USHORT ee_addr);
2118 USHORT utilEEReadOrg(USHORT p_port, USHORT ee_addr);
2119 void utilEESendCmdAddr(USHORT p_port, UCHAR ee_cmd, USHORT ee_addr);
2124 void utilEEWrite(ULONG p_port, USHORT ee_data, USHORT ee_addr);
2125 USHORT utilEERead(ULONG p_port, USHORT ee_addr);
2126 USHORT utilEEReadOrg(ULONG p_port, USHORT ee_addr);
2127 void utilEESendCmdAddr(ULONG p_port, UCHAR ee_cmd, USHORT ee_addr);
2142 void phaseDataOut(USHORT port, UCHAR p_card);
2143 void phaseDataIn(USHORT port, UCHAR p_card);
2144 void phaseCommand(USHORT port, UCHAR p_card);
2145 void phaseStatus(USHORT port, UCHAR p_card);
2146 void phaseMsgOut(USHORT port, UCHAR p_card);
2147 void phaseMsgIn(USHORT port, UCHAR p_card);
2148 void phaseIllegal(USHORT port, UCHAR p_card);
2161 void phaseDecode(USHORT port, UCHAR p_card);
2162 void phaseChkFifo(USHORT port, UCHAR p_card);
2163 void phaseBusFree(USHORT p_port, UCHAR p_card);
2174 void XbowInit(USHORT port, UCHAR scamFlg);
2175 void BusMasterInit(USHORT p_port);
2176 int DiagXbow(USHORT port);
2177 int DiagBusMaster(USHORT port);
2178 void DiagEEPROM(USHORT p_port);
2191 void busMstrAbort(USHORT port);
2192 UCHAR busMstrTimeOut(USHORT port);
2193 void dataXferProcessor(USHORT port, PSCCBcard pCurrCard);
2194 void busMstrSGDataXferStart(USHORT port, PSCCB pCurrSCCB);
2195 void busMstrDataXferStart(USHORT port, PSCCB pCurrSCCB);
2196 void hostDataXferAbort(USHORT port, UCHAR p_card, PSCCB pCurrSCCB);
2209 UCHAR SccbMgr_bad_isr(USHORT p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int);
2211 UCHAR SccbMgr_bad_isr(ULONG p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int);
2224 int scarb(USHORT p_port, UCHAR p_sel_type);
2225 void scbusf(USHORT p_port);
2226 void scsel(USHORT p_port);
2227 void scasid(UCHAR p_card, USHORT p_port);
2228 UCHAR scxferc(USHORT p_port, UCHAR p_data);
2229 UCHAR scsendi(USHORT p_port, UCHAR p_id_string[]);
2230 UCHAR sciso(USHORT p_port, UCHAR p_id_string[]);
2231 void scwirod(USHORT p_port, UCHAR p_data_bit);
2232 void scwiros(USHORT p_port, UCHAR p_data_bit);
2234 UCHAR scsell(USHORT p_port, UCHAR targ_id);
2235 void scwtsel(USHORT p_port);
2236 void inisci(UCHAR p_card, USHORT p_port, UCHAR p_our_id);
2237 void scsavdi(UCHAR p_card, USHORT p_port);
2258 void autoCmdCmplt(USHORT p_port, UCHAR p_card);
2259 void autoLoadDefaultMap(USHORT p_port);
2289 extern void (*s_PhaseTbl[8]) (USHORT, UCHAR);
2417 USHORT temp,temp2,temp3,temp4,temp5,temp6; in SccbMgr_sense_adapter()
2419 USHORT ioport; in SccbMgr_sense_adapter()
2426 ioport = (USHORT)pCardInfo->si_baseaddr; in SccbMgr_sense_adapter()
2509 temp = (USHORT) pCurrNvRam->niSyncTbl[id]; in SccbMgr_sense_adapter()
2513 temp = utilEERead(ioport, (USHORT)((SYNC_RATE_TBL/2)+id)); in SccbMgr_sense_adapter()
2716 USHORT SccbMgr_config_adapter(PSCCBMGR_INFO pCardInfo) in SccbMgr_config_adapter()
2724 USHORT temp,sync_bit_map,id; in SccbMgr_config_adapter()
2726 USHORT ioport; in SccbMgr_config_adapter()
2732 ioport = (USHORT)pCardInfo->si_baseaddr; in SccbMgr_config_adapter()
2870 temp = (USHORT) pCurrNvRam->niSyncTbl[id]; in SccbMgr_config_adapter()
2874 temp = utilEERead(ioport, (USHORT)((SYNC_RATE_TBL/2)+id)); in SccbMgr_config_adapter()
2919 return((USHORT)CurrCard); in SccbMgr_config_adapter()
3073 temp = (USHORT) pCurrNvRam->niSyncTbl[id]; in probe_adapter()
3470 temp = (USHORT) pCurrNvRam->niSyncTbl[id]; in init_adapter()
4019 USHORT i,sum_data, eeprom_end; in UpdateCheckSum()
4062 void SccbMgr_unload_card(USHORT pCurrCard) in SccbMgr_unload_card()
4070 USHORT portBase; in SccbMgr_unload_card()
4071 USHORT regOffset; in SccbMgr_unload_card()
4120 USHORT portBase; in RNVRamData()
4121 USHORT regOffset; in RNVRamData()
4158 UCHAR RdStack(USHORT portBase, UCHAR index) in RdStack()
4168 void WrStack(USHORT portBase, UCHAR index, UCHAR data) in WrStack()
4182 UCHAR ChkIfChipInitialized(USHORT ioPort) in ChkIfChipInitialized()
4212 void SccbMgr_start_sccb(USHORT pCurrCard, PSCCB p_Sccb) in SccbMgr_start_sccb()
4219 USHORT ioport; in SccbMgr_start_sccb()
4452 ssel((USHORT)p_Sccb->SccbIOPort,thisCard); in SccbMgr_start_sccb()
4495 int SccbMgr_abort_sccb(USHORT pCurrCard, PSCCB p_Sccb) in SccbMgr_abort_sccb()
4503 USHORT ioport; in SccbMgr_abort_sccb()
4633 UCHAR SccbMgr_my_int(USHORT pCurrCard) in SccbMgr_my_int()
4640 USHORT ioport; in SccbMgr_my_int()
4677 int SccbMgr_isr(USHORT pCurrCard) in SccbMgr_isr()
4685 USHORT hp_int; in SccbMgr_isr()
4688 USHORT ioport; in SccbMgr_isr()
4954 UCHAR SccbMgr_bad_isr(USHORT p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int) in SccbMgr_bad_isr()
4956 UCHAR SccbMgr_bad_isr(ULONG p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int) in SccbMgr_bad_isr()
5144 void SccbMgr_scsi_reset(USHORT pCurrCard) in SccbMgr_scsi_reset()
5208 void SccbMgr_timer_expired(USHORT pCurrCard) in SccbMgr_timer_expired()
5227 USHORT SccbMgr_status(USHORT pCurrCard) in SccbMgr_status()
5420 USHORT default_intena = 0;
5480 UCHAR sfm(USHORT port, PSCCB pCurrSCCB) in sfm()
5486 USHORT TimeOutLoop; in sfm()
5557 void ssel(USHORT port, UCHAR p_card) in ssel()
5573 USHORT cdb_reg; in ssel()
5871 WRW_HARPOON((port+hp_fiforead), (USHORT) 0x00); in ssel()
5909 void sres(USHORT port, UCHAR p_card, PSCCBcard pCurrCard) in sres()
5989 WRW_HARPOON((port+hp_fiforead), (USHORT) 0x00); in sres()
6198 UCHAR GetTarLun(USHORT port, UCHAR p_card, UCHAR our_target, PSCCBcard pCurrCard, PUCHAR tag, PUCHA… in GetTarLun()
6291 void SendMsg(USHORT port, UCHAR message) in SendMsg()
6344 void sdecm(UCHAR message, USHORT port, UCHAR p_card) in sdecm()
6529 void shandem(USHORT port, UCHAR p_card, PSCCB pCurrSCCB) in shandem()
6614 UCHAR sisyncn(USHORT port, UCHAR p_card, UCHAR syncFlag) in sisyncn()
6693 void stsyncn(USHORT port, UCHAR p_card) in stsyncn()
6834 void sisyncr(USHORT port,UCHAR sync_pulse, UCHAR offset) in sisyncr()
6871 UCHAR siwidn(USHORT port, UCHAR p_card) in siwidn()
6927 void stwidn(USHORT port, UCHAR p_card) in stwidn()
7011 void siwidr(USHORT port, UCHAR width) in siwidr()
7046 void sssyncv(USHORT p_port, UCHAR p_id, UCHAR p_sync_value,PSCCBMgr_tar_info currTar_Info) in sssyncv()
7121 void sresb(USHORT port, UCHAR p_card) in sresb()
7247 void sxfrp(USHORT p_port, UCHAR p_card) in sxfrp()
7333 void schkdd(USHORT port, UCHAR p_card) in schkdd()
7338 USHORT TimeOutLoop; in schkdd()
7361 WRW_HARPOON((port+hp_fiforead), (USHORT) 0x00); in schkdd()
7579 void phaseDecode(USHORT p_port, UCHAR p_card) in phaseDecode()
7589 void (*phase) (USHORT, UCHAR); in phaseDecode()
7619 void phaseDataOut(USHORT port, UCHAR p_card) in phaseDataOut()
7678 void phaseDataIn(USHORT port, UCHAR p_card) in phaseDataIn()
7733 void phaseCommand(USHORT p_port, UCHAR p_card) in phaseCommand()
7741 USHORT cdb_reg; in phaseCommand()
7797 void phaseStatus(USHORT port, UCHAR p_card) in phaseStatus()
7827 void phaseMsgOut(USHORT port, UCHAR p_card) in phaseMsgOut()
7983 void phaseMsgIn(USHORT port, UCHAR p_card) in phaseMsgIn()
8044 void phaseIllegal(USHORT port, UCHAR p_card) in phaseIllegal()
8077 void phaseChkFifo(USHORT port, UCHAR p_card) in phaseChkFifo()
8174 void phaseBusFree(USHORT port, UCHAR p_card) in phaseBusFree()
8316 void autoLoadDefaultMap(USHORT p_port) in autoLoadDefaultMap()
8322 USHORT map_addr; in autoLoadDefaultMap()
8432 void autoCmdCmplt(USHORT p_port, UCHAR p_card) in autoCmdCmplt()
8725 void dataXferProcessor(USHORT port, PSCCBcard pCurrCard) in dataXferProcessor()
8767 void busMstrSGDataXferStart(USHORT p_port, PSCCB pcurrSCCB) in busMstrSGDataXferStart()
8776 USHORT reg_offset; in busMstrSGDataXferStart()
8892 void busMstrDataXferStart(USHORT p_port, PSCCB pcurrSCCB) in busMstrDataXferStart()
8979 UCHAR busMstrTimeOut(USHORT p_port) in busMstrTimeOut()
9021 void hostDataXferAbort(USHORT port, UCHAR p_card, PSCCB pCurrSCCB) in hostDataXferAbort()
9125 pCurrSCCB->Sccb_sgseg = (USHORT)sg_ptr; in hostDataXferAbort()
9282 pCurrSCCB->Sccb_sgseg = (USHORT)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE); in hostDataXferAbort()
9347 currSCCB->Sccb_sgseg = (USHORT)sg_index; in hostDataXferRestart()
9416 USHORT p_port; in scini()
9630 int scarb(USHORT p_port, UCHAR p_sel_type) in scarb()
9697 void scbusf(USHORT p_port) in scbusf()
9741 void scasid(UCHAR p_card, USHORT p_port) in scasid()
9840 void scsel(USHORT p_port) in scsel()
9878 UCHAR scxferc(USHORT p_port, UCHAR p_data) in scxferc()
9933 UCHAR scsendi(USHORT p_port, UCHAR p_id_string[]) in scsendi()
9990 UCHAR sciso(USHORT p_port, UCHAR p_id_string[]) in sciso()
10055 void scwirod(USHORT p_port, UCHAR p_data_bit) in scwirod()
10088 void scwiros(USHORT p_port, UCHAR p_data_bit) in scwiros()
10146 UCHAR scsell(USHORT p_port, UCHAR targ_id) in scsell()
10152 USHORT i; in scsell()
10237 UCHAR scsellDOS(USHORT p_port, UCHAR targ_id) in scsellDOS()
10239 USHORT i; in scsellDOS()
10318 void scwtsel(USHORT p_port) in scwtsel()
10336 void inisci(UCHAR p_card, USHORT p_port, UCHAR p_our_id) in inisci()
10342 USHORT ee_data; in inisci()
10372 ee_data = utilEERead(p_port, (USHORT)((EE_SCAMBASE/2) + in inisci()
10373 (USHORT) (i*((USHORT)ID_STRING_LENGTH/2)) + (USHORT)(k/2))); in inisci()
10541 void scsavdi(UCHAR p_card, USHORT p_port) in scsavdi()
10547 USHORT ee_data,sum_data; in scsavdi()
10575 utilEEWrite(p_port, ee_data, (USHORT)((EE_SCAMBASE/2) + in scsavdi()
10576 (USHORT)(i*((USHORT)ID_STRING_LENGTH/2)) + (USHORT)(k/2))); in scsavdi()
10625 void XbowInit(USHORT port, UCHAR ScamFlg) in XbowInit()
10704 void BusMasterInit(USHORT p_port) in BusMasterInit()
10745 int DiagXbow(USHORT port) in DiagXbow()
10831 int DiagBusMaster(USHORT port) in DiagBusMaster()
10874 void DiagEEPROM(USHORT p_port) in DiagEEPROM()
10880 USHORT index,temp,max_wd_cnt; in DiagEEPROM()
11698 void Wait1Second(USHORT p_port) in Wait1Second()
11727 void Wait(USHORT p_port, UCHAR p_delay) in Wait()
11779 void utilEEWriteOnOff(USHORT p_port,UCHAR p_mode) in utilEEWriteOnOff()
11812 void utilEEWrite(USHORT p_port, USHORT ee_data, USHORT ee_addr) in utilEEWrite()
11814 void utilEEWrite(ULONG p_port, USHORT ee_data, USHORT ee_addr) in utilEEWrite()
11819 USHORT i; in utilEEWrite()
11867 USHORT utilEERead(USHORT p_port, USHORT ee_addr) in utilEERead()
11869 USHORT utilEERead(ULONG p_port, USHORT ee_addr) in utilEERead()
11872 USHORT i, ee_data1, ee_data2; in utilEERead()
11901 USHORT utilEEReadOrg(USHORT p_port, USHORT ee_addr) in utilEEReadOrg()
11903 USHORT utilEEReadOrg(ULONG p_port, USHORT ee_addr) in utilEEReadOrg()
11908 USHORT i, ee_data; in utilEEReadOrg()
11953 void utilEESendCmdAddr(USHORT p_port, UCHAR ee_cmd, USHORT ee_addr) in utilEESendCmdAddr()
11955 void utilEESendCmdAddr(ULONG p_port, UCHAR ee_cmd, USHORT ee_addr) in utilEESendCmdAddr()
11961 USHORT i; in utilEESendCmdAddr()
12019 USHORT CalcCrc16(UCHAR buffer[]) in CalcCrc16()
12021 USHORT crc=0; in CalcCrc16()
12023 USHORT ch; in CalcCrc16()
12026 ch = (USHORT) buffer[i]; in CalcCrc16()