Lines Matching refs:result

164     whd_result_t result;  in whd_device_core_is_up()  local
169result = whd_bus_read_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, &regdata); in whd_device_core_is_up()
170 if (result != WHD_SUCCESS) in whd_device_core_is_up()
173 return result; in whd_device_core_is_up()
183result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, &regdata… in whd_device_core_is_up()
184 if (result != WHD_SUCCESS) in whd_device_core_is_up()
187 return result; in whd_device_core_is_up()
203 whd_result_t result; in whd_reset_core() local
207 …SPINWAIT( ( ( (result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETSTATUS_OFFSET, (ui… in whd_reset_core()
211result = whd_bus_write_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, ( uint3… in whd_reset_core()
215 …SPINWAIT( ( ( (result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETSTATUS_OFFSET, (ui… in whd_reset_core()
218 result = whd_bus_write_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, in whd_reset_core()
222 …SPINWAIT( ( ( (result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETSTATUS_OFFSET, (ui… in whd_reset_core()
225 …while ( ( (result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)… in whd_reset_core()
230 …SPINWAIT( ( ( (result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETSTATUS_OFFSET, (ui… in whd_reset_core()
233result = whd_bus_write_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, (uint32… in whd_reset_core()
234 if (result != WHD_SUCCESS) in whd_reset_core()
237 return result; in whd_reset_core()
241 …SPINWAIT( ( ( (result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETSTATUS_OFFSET, (ui… in whd_reset_core()
245result = whd_bus_write_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, (bits | SI… in whd_reset_core()
249 if (result != WHD_SUCCESS) in whd_reset_core()
252 return result; in whd_reset_core()
263 whd_result_t result; in whd_disable_device_core() local
268result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, &junk); in whd_disable_device_core()
269 if (result != WHD_SUCCESS) in whd_disable_device_core()
272 return result; in whd_disable_device_core()
276result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, &regdata… in whd_disable_device_core()
277 if (result != WHD_SUCCESS) in whd_disable_device_core()
280 return result; in whd_disable_device_core()
289 result = in whd_disable_device_core()
292 if (result != WHD_SUCCESS) in whd_disable_device_core()
295 return result; in whd_disable_device_core()
298 result = whd_bus_read_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, &junk); in whd_disable_device_core()
299 if (result != WHD_SUCCESS) in whd_disable_device_core()
302 return result; in whd_disable_device_core()
307result = whd_bus_write_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, ( uint3… in whd_disable_device_core()
308 if (result != WHD_SUCCESS) in whd_disable_device_core()
311 return result; in whd_disable_device_core()
316 return result; in whd_disable_device_core()
325 whd_result_t result; in whd_reset_device_core() local
328 result = whd_disable_device_core(whd_driver, core_id, core_flag); in whd_reset_device_core()
329 if (result != WHD_SUCCESS) in whd_reset_device_core()
331 return result; in whd_reset_device_core()
334 result = in whd_reset_device_core()
338 if (result != WHD_SUCCESS) in whd_reset_device_core()
341 return result; in whd_reset_device_core()
344 result = whd_bus_read_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, &junk); in whd_reset_device_core()
345 if (result != WHD_SUCCESS) in whd_reset_device_core()
348 return result; in whd_reset_device_core()
351 result = whd_bus_write_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, 0); in whd_reset_device_core()
352 if (result != WHD_SUCCESS) in whd_reset_device_core()
355 return result; in whd_reset_device_core()
360 result = in whd_reset_device_core()
364 if (result != WHD_SUCCESS) in whd_reset_device_core()
367 return result; in whd_reset_device_core()
370 result = whd_bus_read_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, &junk); in whd_reset_device_core()
371 if (result != WHD_SUCCESS) in whd_reset_device_core()
374 return result; in whd_reset_device_core()
379 return result; in whd_reset_device_core()
388 whd_result_t result; in whd_wlan_armcore_run() local
397 result = in whd_wlan_armcore_run()
401 if (result != WHD_SUCCESS) in whd_wlan_armcore_run()
404 return result; in whd_wlan_armcore_run()
407 result = whd_bus_read_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, &junk); in whd_wlan_armcore_run()
408 if (result != WHD_SUCCESS) in whd_wlan_armcore_run()
411 return result; in whd_wlan_armcore_run()
414 result = whd_bus_write_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, 0); in whd_wlan_armcore_run()
415 if (result != WHD_SUCCESS) in whd_wlan_armcore_run()
418 return result; in whd_wlan_armcore_run()
423 result = in whd_wlan_armcore_run()
427 if (result != WHD_SUCCESS) in whd_wlan_armcore_run()
430 return result; in whd_wlan_armcore_run()
433 result = whd_bus_read_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, &junk); in whd_wlan_armcore_run()
434 if (result != WHD_SUCCESS) in whd_wlan_armcore_run()
437 return result; in whd_wlan_armcore_run()
442 return result; in whd_wlan_armcore_run()
452 whd_result_t result = WHD_WLAN_ERROR; in whd_wifi_read_wlan_log_unsafe() local
463 result = whd_bus_read_backplane_value(whd_driver, address, 4, (uint8_t *)&shared_addr); in whd_wifi_read_wlan_log_unsafe()
464 if (result != WHD_SUCCESS) in whd_wifi_read_wlan_log_unsafe()
470result = whd_bus_transfer_backplane_bytes(whd_driver, BUS_READ, shared_addr, sizeof(wlan_shared_t), in whd_wifi_read_wlan_log_unsafe()
472 if (result != WHD_SUCCESS) in whd_wifi_read_wlan_log_unsafe()
490 result = WHD_WLAN_INVALID; in whd_wifi_read_wlan_log_unsafe()
498result = whd_bus_transfer_backplane_bytes(whd_driver, BUS_READ, address, sizeof(c->log), (uint8_t … in whd_wifi_read_wlan_log_unsafe()
499 if (result != WHD_SUCCESS) in whd_wifi_read_wlan_log_unsafe()
513 result = WHD_WLAN_NOMEM; in whd_wifi_read_wlan_log_unsafe()
527 result = WHD_WLAN_BUFTOOSHORT; in whd_wifi_read_wlan_log_unsafe()
534 result = WHD_SUCCESS; in whd_wifi_read_wlan_log_unsafe()
543result = whd_bus_transfer_backplane_bytes(whd_driver, BUS_READ, address, c->bufsize, (uint8_t *)c-… in whd_wifi_read_wlan_log_unsafe()
544 if (result != WHD_SUCCESS) in whd_wifi_read_wlan_log_unsafe()
570 result = WHD_SUCCESS; in whd_wifi_read_wlan_log_unsafe()
591 result = WHD_SUCCESS; in whd_wifi_read_wlan_log_unsafe()
593 done: return result; in whd_wifi_read_wlan_log_unsafe()
741 whd_result_t result; in whd_wifi_set_custom_country_code() local
751 result = whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_CUSTOM_COUNTRY, buffer, NULL); in whd_wifi_set_custom_country_code()
752 return result; in whd_wifi_set_custom_country_code()
841 whd_result_t result; in whd_wifi_read_wlan_log() local
857 result = whd_ensure_wlan_bus_is_up(whd_driver); in whd_wifi_read_wlan_log()
858 if (result != WHD_SUCCESS) in whd_wifi_read_wlan_log()
860 return result; in whd_wifi_read_wlan_log()
862 result = whd_wifi_read_wlan_log_unsafe(whd_driver, ( (GET_C_VAR(whd_driver, CHIP_RAM_SIZE) + in whd_wifi_read_wlan_log()
867 return result; in whd_wifi_read_wlan_log()
884result = whd_wifi_read_wlan_log_unsafe(whd_driver, wlan_shared_address, buffer, buffer_size); in whd_wifi_read_wlan_log()
886 return result; in whd_wifi_read_wlan_log()
893 whd_result_t result; in whd_wifi_print_whd_log() local
906 result = whd_wifi_read_wlan_log(whd_driver, buffer, WLAN_LOG_BUF_LEN); in whd_wifi_print_whd_log()
907 if (result == WHD_SUCCESS) in whd_wifi_print_whd_log()
912 CHECK_RETURN(result); in whd_wifi_print_whd_log()
913 return result; in whd_wifi_print_whd_log()
918 whd_result_t result; in whd_wifi_read_fw_capabilities() local
925 result = whd_wifi_get_iovar_buffer(ifp, IOVAR_STR_CAP, (uint8_t *)caps, sizeof(caps) ); in whd_wifi_read_fw_capabilities()
926 CHECK_RETURN(result); in whd_wifi_read_fw_capabilities()
1031 whd_result_t result = WHD_SUCCESS; in whd_is_fw_sr_capable() local
1056result = whd_bus_read_backplane_value(whd_driver, (uint32_t)CHIPCOMMON_CORE_CAPEXT_ADDR, (uint8_t)… in whd_is_fw_sr_capable()
1058 if (result != WHD_SUCCESS) in whd_is_fw_sr_capable()
1065result = whd_bus_read_backplane_value(whd_driver, (uint32_t)CHIPCOMMON_CORE_RETENTION_CTL, (uint8_… in whd_is_fw_sr_capable()
1067 if (result != WHD_SUCCESS) in whd_is_fw_sr_capable()
1081 result = in whd_is_fw_sr_capable()
1085 if (result != WHD_SUCCESS) in whd_is_fw_sr_capable()
1196 whd_result_t result; in whd_kso_enable() local
1266result = whd_bus_read_register_value(whd_driver, BACKPLANE_FUNCTION, (uint32_t)SDIO_SLEEP_CSR, (ui… in whd_kso_enable()
1268 …if ( ( (read_value & bmask) == compare_value ) && (result == WHD_SUCCESS) && (read_value != 0xFF) ) in whd_kso_enable()
1296 whd_result_t result; in whd_wlan_wake_from_host() local
1298result = whd_bus_read_backplane_value(whd_driver, D11_MACCONTROL_REG, D11_MACCONTROL_REG_SIZE, (ui… in whd_wlan_wake_from_host()
1299 if (result != WHD_SUCCESS) in whd_wlan_wake_from_host()
1306result = whd_bus_write_backplane_value(whd_driver, D11_MACCONTROL_REG, D11_MACCONTROL_REG_SIZE, va… in whd_wlan_wake_from_host()
1307 if (result != WHD_SUCCESS) in whd_wlan_wake_from_host()
1311result = whd_bus_read_backplane_value(whd_driver, D11_MACCONTROL_REG, D11_MACCONTROL_REG_SIZE, (ui… in whd_wlan_wake_from_host()
1312 if (result != WHD_SUCCESS) in whd_wlan_wake_from_host()