Searched refs:pSettings (Results 1 - 6 of 6) sorted by relevance
/linux-4.4.14/drivers/char/mwave/ |
H A D | tp3780i.c | 70 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; EnableSRAM() local 71 unsigned short usDspBaseIO = pSettings->usDspBaseIO; EnableSRAM() 106 DSP_3780I_CONFIG_SETTINGS *pSettings = &pDrvData->rBDData.rDspSettings; DspInterrupt() local 107 unsigned short usDspBaseIO = pSettings->usDspBaseIO; DspInterrupt() 158 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_InitializeBoardData() local 164 pSettings->bInterruptClaimed = FALSE; tp3780I_InitializeBoardData() 193 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_CalcResources() local 214 pSettings->bDSPEnabled = (rSmapiInfo.bDSPEnabled && rSmapiInfo.bDSPPresent); tp3780I_CalcResources() 215 pSettings->bModemEnabled = rSmapiInfo.bModemEnabled; tp3780I_CalcResources() 216 pSettings->usDspIrq = rSmapiInfo.usDspIRQ; tp3780I_CalcResources() 217 pSettings->usDspDma = rSmapiInfo.usDspDMA; tp3780I_CalcResources() 218 pSettings->usDspBaseIO = rSmapiInfo.usDspBaseIO; tp3780I_CalcResources() 219 pSettings->usUartIrq = rSmapiInfo.usUartIRQ; tp3780I_CalcResources() 220 pSettings->usUartBaseIO = rSmapiInfo.usUartBaseIO; tp3780I_CalcResources() 222 pSettings->uDStoreSize = TP_ABILITIES_DATA_SIZE; tp3780I_CalcResources() 223 pSettings->uIStoreSize = TP_ABILITIES_INST_SIZE; tp3780I_CalcResources() 224 pSettings->uIps = TP_ABILITIES_INTS_PER_SEC; tp3780I_CalcResources() 226 if (pSettings->bDSPEnabled && pSettings->bModemEnabled && pSettings->usDspIrq == pSettings->usUartIrq) { tp3780I_CalcResources() 241 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_ClaimResources() local 247 pres = request_region(pSettings->usDspBaseIO, 16, "mwave_3780i"); tp3780I_ClaimResources() 251 PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_ClaimResources: Error: Could not claim I/O region starting at %x\n", pSettings->usDspBaseIO); tp3780I_ClaimResources() 263 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_ReleaseResources() local 268 release_region(pSettings->usDspBaseIO & (~3), 16); tp3780I_ReleaseResources() 270 if (pSettings->bInterruptClaimed) { tp3780I_ReleaseResources() 271 free_irq(pSettings->usDspIrq, NULL); tp3780I_ReleaseResources() 272 pSettings->bInterruptClaimed = FALSE; tp3780I_ReleaseResources() 285 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_EnableDSP() local 295 if (!pSettings->bDSPEnabled) { tp3780I_EnableDSP() 296 PRINTK_ERROR(KERN_ERR_MWAVE "tp3780::tp3780I_EnableDSP: Error: pSettings->bDSPEnabled not set\n"); tp3780I_EnableDSP() 301 (pSettings->usDspIrq >= s_numIrqs) tp3780I_EnableDSP() 302 || (pSettings->usDspDma >= s_numDmas) tp3780I_EnableDSP() 303 || (s_ausThinkpadIrqToField[pSettings->usDspIrq] == 0xFFFF) tp3780I_EnableDSP() 304 || (s_ausThinkpadDmaToField[pSettings->usDspDma] == 0xFFFF) tp3780I_EnableDSP() 306 PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_EnableDSP: Error: invalid irq %x\n", pSettings->usDspIrq); tp3780I_EnableDSP() 311 ((pSettings->usDspBaseIO & 0xF00F) != 0) tp3780I_EnableDSP() 312 || (pSettings->usDspBaseIO & 0x0FF0) == 0 tp3780I_EnableDSP() 314 PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_EnableDSP: Error: Invalid DSP base I/O address %x\n", pSettings->usDspBaseIO); tp3780I_EnableDSP() 318 if (pSettings->bModemEnabled) { tp3780I_EnableDSP() 320 pSettings->usUartIrq >= s_numIrqs tp3780I_EnableDSP() 321 || s_ausThinkpadIrqToField[pSettings->usUartIrq] == 0xFFFF tp3780I_EnableDSP() 323 PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_EnableDSP: Error: Invalid UART IRQ %x\n", pSettings->usUartIrq); tp3780I_EnableDSP() 326 switch (pSettings->usUartBaseIO) { tp3780I_EnableDSP() 334 PRINTK_ERROR("tp3780i::tp3780I_EnableDSP: Error: Invalid UART base I/O address %x\n", pSettings->usUartBaseIO); tp3780I_EnableDSP() 339 pSettings->bDspIrqActiveLow = pSettings->bDspIrqPulse = TRUE; tp3780I_EnableDSP() 340 pSettings->bUartIrqActiveLow = pSettings->bUartIrqPulse = TRUE; tp3780I_EnableDSP() 343 pSettings->bDspIrqActiveLow = FALSE; tp3780I_EnableDSP() 346 pSettings->bUartIrqActiveLow = FALSE; tp3780I_EnableDSP() 349 pSettings->usNumTransfers = TP_CFG_NumTransfers; tp3780I_EnableDSP() 350 pSettings->usReRequest = TP_CFG_RerequestTimer; tp3780I_EnableDSP() 351 pSettings->bEnableMEMCS16 = TP_CFG_MEMCS16; tp3780I_EnableDSP() 352 pSettings->usIsaMemCmdWidth = TP_CFG_IsaMemCmdWidth; tp3780I_EnableDSP() 353 pSettings->bGateIOCHRDY = TP_CFG_GateIOCHRDY; tp3780I_EnableDSP() 354 pSettings->bEnablePwrMgmt = TP_CFG_EnablePwrMgmt; tp3780I_EnableDSP() 355 pSettings->usHBusTimerLoadValue = TP_CFG_HBusTimerValue; tp3780I_EnableDSP() 356 pSettings->bDisableLBusTimeout = TP_CFG_DisableLBusTimeout; tp3780I_EnableDSP() 357 pSettings->usN_Divisor = TP_CFG_N_Divisor; tp3780I_EnableDSP() 358 pSettings->usM_Multiplier = TP_CFG_M_Multiplier; tp3780I_EnableDSP() 359 pSettings->bPllBypass = TP_CFG_PllBypass; tp3780I_EnableDSP() 360 pSettings->usChipletEnable = TP_CFG_ChipletEnable; tp3780I_EnableDSP() 362 if (request_irq(pSettings->usUartIrq, &UartInterrupt, 0, "mwave_uart", NULL)) { tp3780I_EnableDSP() 363 PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_EnableDSP: Error: Could not get UART IRQ %x\n", pSettings->usUartIrq); tp3780I_EnableDSP() 366 free_irq(pSettings->usUartIrq, NULL); tp3780I_EnableDSP() 369 if (request_irq(pSettings->usDspIrq, &DspInterrupt, 0, "mwave_3780i", NULL)) { tp3780I_EnableDSP() 370 PRINTK_ERROR("tp3780i::tp3780I_EnableDSP: Error: Could not get 3780i IRQ %x\n", pSettings->usDspIrq); tp3780I_EnableDSP() 375 pSettings->usDspIrq, pBDData->bShareDspIrq); tp3780I_EnableDSP() 377 pSettings->bInterruptClaimed = TRUE; tp3780I_EnableDSP() 388 if (dsp3780I_EnableDSP(pSettings, s_ausThinkpadIrqToField, s_ausThinkpadDmaToField)) { tp3780I_EnableDSP() 406 free_irq(pSettings->usDspIrq, NULL); tp3780I_EnableDSP() 407 pSettings->bInterruptClaimed = FALSE; tp3780I_EnableDSP() 416 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_DisableDSP() local 422 if (pSettings->bInterruptClaimed) { tp3780I_DisableDSP() 423 free_irq(pSettings->usDspIrq, NULL); tp3780I_DisableDSP() 424 pSettings->bInterruptClaimed = FALSE; tp3780I_DisableDSP() 439 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_ResetDSP() local 444 if (dsp3780I_Reset(pSettings) == 0) { tp3780I_ResetDSP() 459 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_StartDSP() local 463 if (dsp3780I_Run(pSettings) == 0) { tp3780I_StartDSP() 517 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_ReadWriteDspDStore() local 518 unsigned short usDspBaseIO = pSettings->usDspBaseIO; tp3780I_ReadWriteDspDStore() 553 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; tp3780I_ReadWriteDspIStore() local 554 unsigned short usDspBaseIO = pSettings->usDspBaseIO; tp3780I_ReadWriteDspIStore()
|
H A D | 3780i.c | 172 int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, dsp3780I_EnableDSP() argument 177 unsigned short usDspBaseIO = pSettings->usDspBaseIO; dsp3780I_EnableDSP() 199 "3780i::dsp3780I_EnableDSP entry pSettings->bDSPEnabled %x\n", dsp3780I_EnableDSP() 200 pSettings->bDSPEnabled); dsp3780I_EnableDSP() 203 if (!pSettings->bDSPEnabled) { dsp3780I_EnableDSP() 210 "3780i::dsp3780i_EnableDSP entry pSettings->bModemEnabled %x\n", dsp3780I_EnableDSP() 211 pSettings->bModemEnabled); dsp3780I_EnableDSP() 213 if (pSettings->bModemEnabled) { dsp3780I_EnableDSP() 215 rUartCfg1.IrqActiveLow = pSettings->bUartIrqActiveLow; dsp3780I_EnableDSP() 216 rUartCfg1.IrqPulse = pSettings->bUartIrqPulse; dsp3780I_EnableDSP() 218 (unsigned char) pIrqMap[pSettings->usUartIrq]; dsp3780I_EnableDSP() 219 switch (pSettings->usUartBaseIO) { dsp3780I_EnableDSP() 237 rHBridgeCfg1.IrqActiveLow = pSettings->bDspIrqActiveLow; dsp3780I_EnableDSP() 238 rHBridgeCfg1.IrqPulse = pSettings->bDspIrqPulse; dsp3780I_EnableDSP() 239 rHBridgeCfg1.Irq = (unsigned char) pIrqMap[pSettings->usDspIrq]; dsp3780I_EnableDSP() 245 rBusmasterCfg1.Dma = (unsigned char) pDmaMap[pSettings->usDspDma]; dsp3780I_EnableDSP() 247 (unsigned char) pSettings->usNumTransfers; dsp3780I_EnableDSP() 248 rBusmasterCfg1.ReRequest = (unsigned char) pSettings->usReRequest; dsp3780I_EnableDSP() 249 rBusmasterCfg1.MEMCS16 = pSettings->bEnableMEMCS16; dsp3780I_EnableDSP() 251 (unsigned char) pSettings->usIsaMemCmdWidth; dsp3780I_EnableDSP() 255 rIsaProtCfg.GateIOCHRDY = pSettings->bGateIOCHRDY; dsp3780I_EnableDSP() 258 rPowerMgmtCfg.Enable = pSettings->bEnablePwrMgmt; dsp3780I_EnableDSP() 261 (unsigned char) pSettings->usHBusTimerLoadValue; dsp3780I_EnableDSP() 265 pSettings->bDisableLBusTimeout; dsp3780I_EnableDSP() 267 MKWORD(rChipReset) = ~pSettings->usChipletEnable; dsp3780I_EnableDSP() 270 rClockControl1.N_Divisor = pSettings->usN_Divisor; dsp3780I_EnableDSP() 271 rClockControl1.M_Multiplier = pSettings->usM_Multiplier; dsp3780I_EnableDSP() 274 rClockControl2.PllBypass = pSettings->bPllBypass; dsp3780I_EnableDSP() 323 if (pSettings->bModemEnabled) { dsp3780I_EnableDSP() 354 int dsp3780I_DisableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings) dsp3780I_DisableDSP() argument 357 unsigned short usDspBaseIO = pSettings->usDspBaseIO; dsp3780I_DisableDSP() 384 int dsp3780I_Reset(DSP_3780I_CONFIG_SETTINGS * pSettings) dsp3780I_Reset() argument 387 unsigned short usDspBaseIO = pSettings->usDspBaseIO; dsp3780I_Reset() 420 (unsigned short) (~pSettings->usChipletEnable)); dsp3780I_Reset() 429 int dsp3780I_Run(DSP_3780I_CONFIG_SETTINGS * pSettings) dsp3780I_Run() argument 432 unsigned short usDspBaseIO = pSettings->usDspBaseIO; dsp3780I_Run()
|
H A D | smapi.c | 127 int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings) smapi_query_DSP_cfg() argument 147 pSettings->bDSPPresent = ((usBX & 0x0100) != 0); smapi_query_DSP_cfg() 148 pSettings->bDSPEnabled = ((usCX & 0x0001) != 0); smapi_query_DSP_cfg() 149 pSettings->usDspIRQ = usSI & 0x00FF; smapi_query_DSP_cfg() 150 pSettings->usDspDMA = (usSI & 0xFF00) >> 8; smapi_query_DSP_cfg() 152 pSettings->usDspBaseIO = ausDspBases[usDI & 0x00FF]; smapi_query_DSP_cfg() 154 pSettings->usDspBaseIO = 0; smapi_query_DSP_cfg() 158 pSettings->bDSPPresent, pSettings->bDSPEnabled, smapi_query_DSP_cfg() 159 pSettings->usDspIRQ, pSettings->usDspDMA, smapi_query_DSP_cfg() 160 pSettings->usDspBaseIO); smapi_query_DSP_cfg() 163 if ( pSettings->usDspBaseIO == 0 ) smapi_query_DSP_cfg() 165 if ( pSettings->usDspIRQ == 0 ) smapi_query_DSP_cfg() 177 pSettings->bModemEnabled = ((usCX & 0x0001) != 0); smapi_query_DSP_cfg() 178 pSettings->usUartIRQ = usSI & 0x000F; smapi_query_DSP_cfg() 180 pSettings->usUartBaseIO = ausUartBases[(usSI & 0xFF00) >> 8]; smapi_query_DSP_cfg() 182 pSettings->usUartBaseIO = 0; smapi_query_DSP_cfg() 187 pSettings->bModemEnabled, smapi_query_DSP_cfg() 188 pSettings->usUartIRQ, smapi_query_DSP_cfg() 189 pSettings->usUartBaseIO); smapi_query_DSP_cfg() 192 if ( pSettings->usUartBaseIO == 0 ) smapi_query_DSP_cfg() 194 if ( pSettings->usUartIRQ == 0 ) smapi_query_DSP_cfg()
|
H A D | 3780i.h | 320 int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, 323 int dsp3780I_DisableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings); 324 int dsp3780I_Reset(DSP_3780I_CONFIG_SETTINGS * pSettings); 325 int dsp3780I_Run(DSP_3780I_CONFIG_SETTINGS * pSettings);
|
H A D | smapi.h | 75 int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings);
|
H A D | mwavedd.c | 500 DSP_3780I_CONFIG_SETTINGS *pSettings = \ 502 return sprintf(buf, format_string, pSettings->field); \
|
Completed in 93 milliseconds