Lines Matching defs:pBDData

68 static void EnableSRAM(THINKPAD_BD_DATA * pBDData)
70 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
155 int tp3780I_InitializeBoardData(THINKPAD_BD_DATA * pBDData)
158 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
161 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_InitializeBoardData entry pBDData %p\n", pBDData);
163 pBDData->bDSPEnabled = false;
180 void tp3780I_Cleanup(THINKPAD_BD_DATA *pBDData)
183 "tp3780i::tp3780I_Cleanup entry and exit pBDData %p\n", pBDData);
186 int tp3780I_CalcResources(THINKPAD_BD_DATA * pBDData)
189 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
192 "tp3780i::tp3780I_CalcResources entry pBDData %p\n", pBDData);
223 pBDData->bShareDspIrq = pBDData->bShareUartIrq = 1;
225 pBDData->bShareDspIrq = pBDData->bShareUartIrq = 0;
234 int tp3780I_ClaimResources(THINKPAD_BD_DATA * pBDData)
237 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
241 "tp3780i::tp3780I_ClaimResources entry pBDData %p\n", pBDData);
256 int tp3780I_ReleaseResources(THINKPAD_BD_DATA * pBDData)
259 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
262 "tp3780i::tp3780I_ReleaseResources entry pBDData %p\n", pBDData);
279 int tp3780I_EnableDSP(THINKPAD_BD_DATA * pBDData)
281 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
284 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_EnableDSP entry pBDData %p\n", pBDData);
286 if (pBDData->bDSPEnabled) {
338 if (pBDData->bShareDspIrq) {
341 if (pBDData->bShareUartIrq) {
371 pSettings->usDspIrq, pBDData->bShareDspIrq);
389 EnableSRAM(pBDData);
391 pBDData->bDSPEnabled = true;
409 int tp3780I_DisableDSP(THINKPAD_BD_DATA * pBDData)
412 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
414 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_DisableDSP entry pBDData %p\n", pBDData);
416 if (pBDData->bDSPEnabled) {
417 dsp3780I_DisableDSP(&pBDData->rDspSettings);
423 pBDData->bDSPEnabled = false;
432 int tp3780I_ResetDSP(THINKPAD_BD_DATA * pBDData)
435 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
437 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_ResetDSP entry pBDData %p\n",
438 pBDData);
441 EnableSRAM(pBDData);
452 int tp3780I_StartDSP(THINKPAD_BD_DATA * pBDData)
455 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
457 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_StartDSP entry pBDData %p\n", pBDData);
460 // @BUG @TBD EnableSRAM(pBDData);
471 int tp3780I_QueryAbilities(THINKPAD_BD_DATA * pBDData, MW_ABILITIES * pAbilities)
474 "tp3780i::tp3780I_QueryAbilities entry pBDData %p\n", pBDData);
478 pAbilities->instr_per_sec = pBDData->rDspSettings.uIps;
479 pAbilities->data_size = pBDData->rDspSettings.uDStoreSize;
480 pAbilities->inst_size = pBDData->rDspSettings.uIStoreSize;
481 pAbilities->bus_dma_bw = pBDData->rDspSettings.uDmaBandwidth;
506 int tp3780I_ReadWriteDspDStore(THINKPAD_BD_DATA * pBDData, unsigned int uOpcode,
511 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
516 "tp3780i::tp3780I_ReadWriteDspDStore entry pBDData %p, uOpcode %x, pvBuffer %p, uCount %x, ulDSPAddr %lx\n",
517 pBDData, uOpcode, pvBuffer, uCount, ulDSPAddr);
519 if (pBDData->bDSPEnabled) {
542 int tp3780I_ReadWriteDspIStore(THINKPAD_BD_DATA * pBDData, unsigned int uOpcode,
547 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
552 "tp3780i::tp3780I_ReadWriteDspIStore entry pBDData %p, uOpcode %x, pvBuffer %p, uCount %x, ulDSPAddr %lx\n",
553 pBDData, uOpcode, pvBuffer, uCount, ulDSPAddr);
555 if (pBDData->bDSPEnabled) {