H A D | smapi.c | 129 int bRC = -EIO; smapi_query_DSP_cfg() local 138 bRC = smapi_request(0x1802, 0x0000, 0, 0, smapi_query_DSP_cfg() 140 if (bRC) { smapi_query_DSP_cfg() 142 return bRC; smapi_query_DSP_cfg() 168 bRC = smapi_request(0x1804, 0x0000, 0, 0, smapi_query_DSP_cfg() 170 if (bRC) { smapi_query_DSP_cfg() 172 return bRC; smapi_query_DSP_cfg() 197 PRINTK_2(TRACE_SMAPI, "smapi::smapi_query_DSP_cfg exit bRC %x\n", bRC); smapi_query_DSP_cfg() 199 return bRC; smapi_query_DSP_cfg() 205 int bRC = -EIO; smapi_set_DSP_cfg() local 230 return bRC; smapi_set_DSP_cfg() 242 return bRC; smapi_set_DSP_cfg() 253 return bRC; smapi_set_DSP_cfg() 266 return bRC; smapi_set_DSP_cfg() 273 bRC = smapi_request(0x1402, 0x0000, 0, 0, smapi_set_DSP_cfg() 275 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 276 /* bRC == 0 */ smapi_set_DSP_cfg() 290 bRC = smapi_request(0x1403, 0x0100, 0, usSI, smapi_set_DSP_cfg() 292 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 293 bRC = smapi_request(0x1402, 0x0000, 0, 0, smapi_set_DSP_cfg() 295 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 311 bRC = smapi_request (0x1403, 0x0100, 0, usSI, smapi_set_DSP_cfg() 313 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 314 bRC = smapi_request (0x1402, 0x0000, 0, 0, smapi_set_DSP_cfg() 316 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 326 bRC = smapi_request(0x1404, 0x0000, 0, 0, smapi_set_DSP_cfg() 328 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 329 /* bRC == 0 */ smapi_set_DSP_cfg() 343 bRC = smapi_request(0x1405, 0x0100, 0, usSI, smapi_set_DSP_cfg() 345 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 346 bRC = smapi_request(0x1404, 0x0000, 0, 0, smapi_set_DSP_cfg() 348 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 364 bRC = smapi_request (0x1405, 0x0100, 0, usSI, smapi_set_DSP_cfg() 366 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 367 bRC = smapi_request (0x1404, 0x0000, 0, 0, smapi_set_DSP_cfg() 369 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 379 bRC = smapi_request(0x1700, 0x0000, 0, 0, smapi_set_DSP_cfg() 381 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 382 bRC = smapi_request(0x1704, 0x0000, 0, 0, smapi_set_DSP_cfg() 384 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 385 /* bRC == 0 */ smapi_set_DSP_cfg() 398 bRC = smapi_request(0x1701, 0x0100, 0, 0, smapi_set_DSP_cfg() 400 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 401 bRC = smapi_request(0x1700, 0, 0, 0, smapi_set_DSP_cfg() 403 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 404 bRC = smapi_request(0x1705, 0x01ff, 0, usSI, smapi_set_DSP_cfg() 406 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 407 bRC = smapi_request(0x1704, 0x0000, 0, 0, smapi_set_DSP_cfg() 409 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 425 bRC = smapi_request(0x1701, 0x0100, 0, 0, smapi_set_DSP_cfg() 427 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 428 bRC = smapi_request(0x1700, 0, 0, 0, smapi_set_DSP_cfg() 430 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 431 bRC = smapi_request(0x1705, 0x01ff, 0, usSI, smapi_set_DSP_cfg() 433 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 434 bRC = smapi_request(0x1704, 0x0000, 0, 0, smapi_set_DSP_cfg() 436 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 445 bRC = smapi_request(0x1802, 0x0000, 0, 0, smapi_set_DSP_cfg() 447 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 456 bRC = smapi_request(0x1803, 0x0101, usDI, usSI, smapi_set_DSP_cfg() 458 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 460 bRC = smapi_request(0x1804, 0x0000, 0, 0, smapi_set_DSP_cfg() 462 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 470 bRC = smapi_request(0x1805, 0x0101, 0, usSI, smapi_set_DSP_cfg() 472 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 474 bRC = smapi_request(0x1802, 0x0000, 0, 0, smapi_set_DSP_cfg() 476 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 478 bRC = smapi_request(0x1804, 0x0000, 0, 0, smapi_set_DSP_cfg() 480 if (bRC) goto exit_smapi_request_error; smapi_set_DSP_cfg() 491 PRINTK_ERROR(KERN_ERR_MWAVE "smapi::smapi_set_DSP_cfg exit on smapi_request error bRC %x\n", bRC); smapi_set_DSP_cfg() 492 return bRC; smapi_set_DSP_cfg() 498 int bRC = -EIO; smapi_set_DSP_power_state() local 506 bRC = smapi_request(0x4901, 0x0000, 0, usPowerFunction, smapi_set_DSP_power_state() 509 PRINTK_2(TRACE_SMAPI, "smapi::smapi_set_DSP_power_state exit bRC %x\n", bRC); smapi_set_DSP_power_state() 511 return bRC; smapi_set_DSP_power_state() 517 int bRC = -EIO; 522 bRC = smapi_request(0x0000, 0, 0, 0, 525 if (bRC == 0) { 532 return bRC;
|