Lines Matching refs:result

162         int result = request.create(GOOGLE_OUI, LOGGER_START_LOGGING);  in createRingRequest()  local
163 if (result != WIFI_SUCCESS) { in createRingRequest()
164 ALOGE("Failed to create start ring logger request; result = %d", result); in createRingRequest()
165 return result; in createRingRequest()
170 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_LEVEL, mVerboseLevel); in createRingRequest()
171 if (result != WIFI_SUCCESS) { in createRingRequest()
172 ALOGE("Failed to put log level; result = %d", result); in createRingRequest()
173 return result; in createRingRequest()
175 result = request.put_u32(LOGGER_ATTRIBUTE_RING_FLAGS, mFlags); in createRingRequest()
176 if (result != WIFI_SUCCESS) { in createRingRequest()
177 ALOGE("Failed to put ring flags; result = %d", result); in createRingRequest()
178 return result; in createRingRequest()
180 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_TIME_INTVAL, mMaxIntervalSec); in createRingRequest()
181 if (result != WIFI_SUCCESS) { in createRingRequest()
182 ALOGE("Failed to put log time interval; result = %d", result); in createRingRequest()
183 return result; in createRingRequest()
185 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_MIN_DATA_SIZE, mMinDataSize); in createRingRequest()
186 if (result != WIFI_SUCCESS) { in createRingRequest()
187 ALOGE("Failed to put min data size; result = %d", result); in createRingRequest()
188 return result; in createRingRequest()
190 result = request.put_string(LOGGER_ATTRIBUTE_RING_NAME, mRingName); in createRingRequest()
191 if (result != WIFI_SUCCESS) { in createRingRequest()
192 ALOGE("Failed to put ringbuffer name; result = %d", result); in createRingRequest()
193 return result; in createRingRequest()
201 int result; in createRequest() local
206 result = request.create(GOOGLE_OUI, LOGGER_GET_VER); in createRequest()
207 if (result != WIFI_SUCCESS) { in createRequest()
208 ALOGE("Failed to create get fw version request; result = %d", result); in createRequest()
209 return result; in createRequest()
216 result = request.put(LOGGER_ATTRIBUTE_FW_VER, mBuff, 0); in createRequest()
217 if (result != WIFI_SUCCESS) { in createRequest()
218 ALOGE("Failed to put get fw version request; result = %d", result); in createRequest()
219 return result; in createRequest()
227 result = request.create(GOOGLE_OUI, LOGGER_GET_VER); in createRequest()
228 if (result != WIFI_SUCCESS) { in createRequest()
229 ALOGE("Failed to create get drv version request; result = %d", result); in createRequest()
230 return result; in createRequest()
237 result = request.put(LOGGER_ATTRIBUTE_DRIVER_VER, mBuff, 0); in createRequest()
239 if (result != WIFI_SUCCESS) { in createRequest()
240 ALOGE("Failed to put get drv version request; result = %d", result); in createRequest()
241 return result; in createRequest()
249 result = request.create(GOOGLE_OUI, LOGGER_GET_RING_DATA); in createRequest()
250 if (result != WIFI_SUCCESS) { in createRequest()
251 ALOGE("Failed to create get ring data request; result = %d", result); in createRequest()
252 return result; in createRequest()
256 result = request.put_string(LOGGER_ATTRIBUTE_RING_NAME, mRingName); in createRequest()
257 if (result != WIFI_SUCCESS) { in createRequest()
258 ALOGE("Failed to put ring data request; result = %d", result); in createRequest()
259 return result; in createRequest()
267 result = request.create(GOOGLE_OUI, LOGGER_GET_RING_STATUS); in createRequest()
268 if (result != WIFI_SUCCESS) { in createRequest()
269 ALOGE("Failed to create get ring status request; result = %d", result); in createRequest()
270 return result; in createRequest()
277 result = request.create(GOOGLE_OUI, LOGGER_GET_FEATURE); in createRequest()
278 if (result != WIFI_SUCCESS) { in createRequest()
279 ALOGE("Failed to create get feature request; result = %d", result); in createRequest()
280 return result; in createRequest()
286 result = createRingRequest(request); in createRequest()
291 result = WIFI_ERROR_UNKNOWN; in createRequest()
293 return result; in createRequest()
299 int result = createRequest(request); in start() local
300 if (result != WIFI_SUCCESS) { in start()
301 ALOGE("Failed to create debug request; result = %d", result); in start()
302 return result; in start()
305 result = requestResponse(request); in start()
306 if (result != WIFI_SUCCESS) { in start()
307 ALOGE("Failed to register debug response; result = %d", result); in start()
309 return result; in start()
408 wifi_error result = (wifi_error)cmd->start(); in wifi_get_firmware_version() local
410 return result; in wifi_get_firmware_version()
423 wifi_error result = (wifi_error)cmd->start(); in wifi_get_driver_version() local
425 return result; in wifi_get_driver_version()
437 wifi_error result = (wifi_error)cmd->start(); in wifi_get_ring_data() local
439 return result; in wifi_get_ring_data()
449 wifi_error result = (wifi_error)cmd->start(); in wifi_get_ring_buffers_status() local
451 return result; in wifi_get_ring_buffers_status()
465 wifi_error result = (wifi_error)cmd->start(); in wifi_get_logger_supported_feature_set() local
467 return result; in wifi_get_logger_supported_feature_set()
481 wifi_error result = (wifi_error)cmd->start(); in wifi_start_logging() local
483 return result; in wifi_start_logging()
515 int result = request.create(GOOGLE_OUI, LOGGER_RESET_LOGGING); in cancel() local
516 if (result != WIFI_SUCCESS) { in cancel()
517 ALOGE("failed to create reset request; result = %d", result); in cancel()
518 return result; in cancel()
521 result = requestResponse(request); in cancel()
522 if (result != WIFI_SUCCESS) { in cancel()
523 ALOGE("failed to request reset; result = %d", result); in cancel()
524 return result; in cancel()
583 wifi_error result = wifi_register_cmd(handle, id, cmd); in wifi_set_log_handler() local
584 if (result != WIFI_SUCCESS) { in wifi_set_log_handler()
586 return result; in wifi_set_log_handler()
588 result = (wifi_error)cmd->start(); in wifi_set_log_handler()
589 if (result != WIFI_SUCCESS) { in wifi_set_log_handler()
592 return result; in wifi_set_log_handler()
594 return result; in wifi_set_log_handler()
721 int result = request.create(GOOGLE_OUI, LOGGER_GET_MEM_DUMP); in handleEvent() local
722 if (result != WIFI_SUCCESS) { in handleEvent()
723 ALOGE("Failed to create get memory dump request; result = %d", result); in handleEvent()
728 result = request.put_u32(LOGGER_ATTRIBUTE_FW_DUMP_LEN, mBuffSize); in handleEvent()
729 if (result != WIFI_SUCCESS) { in handleEvent()
730 ALOGE("Failed to put get memory dump request; result = %d", result); in handleEvent()
731 return result; in handleEvent()
734 result = request.put_u64(LOGGER_ATTRIBUTE_FW_DUMP_DATA, in handleEvent()
736 if (result != WIFI_SUCCESS) { in handleEvent()
737 ALOGE("Failed to put get memory dump request; result = %d", result); in handleEvent()
738 return result; in handleEvent()
744 result = requestResponse(request); in handleEvent()
746 if (result != WIFI_SUCCESS) { in handleEvent()
747 ALOGE("Failed to register get momory dump response; result = %d", result); in handleEvent()
766 wifi_error result = wifi_register_cmd(handle, id, cmd); in wifi_set_alert_handler() local
767 if (result != WIFI_SUCCESS) { in wifi_set_alert_handler()
769 return result; in wifi_set_alert_handler()
771 result = (wifi_error)cmd->start(); in wifi_set_alert_handler()
772 if (result != WIFI_SUCCESS) { in wifi_set_alert_handler()
775 return result; in wifi_set_alert_handler()
777 return result; in wifi_set_alert_handler()
815 int result = request.create(GOOGLE_OUI, LOGGER_TRIGGER_MEM_DUMP); in start() local
816 if (result != WIFI_SUCCESS) { in start()
817 ALOGE("Failed to create trigger fw memory dump request; result = %d", result); in start()
818 return result; in start()
821 result = requestResponse(request); in start()
822 if (result != WIFI_SUCCESS) { in start()
823 ALOGE("Failed to register trigger memory dump response; result = %d", result); in start()
825 return result; in start()
857 int result = request.create(GOOGLE_OUI, LOGGER_GET_MEM_DUMP); in handleResponse() local
858 if (result != WIFI_SUCCESS) { in handleResponse()
859 ALOGE("Failed to create get memory dump request; result = %d", result); in handleResponse()
865 result = request.put_u32(LOGGER_ATTRIBUTE_FW_DUMP_LEN, mBuffSize); in handleResponse()
866 if (result != WIFI_SUCCESS) { in handleResponse()
867 ALOGE("Failed to put get memory dump request; result = %d", result); in handleResponse()
868 return result; in handleResponse()
871 result = request.put_u64(LOGGER_ATTRIBUTE_FW_DUMP_DATA, (uint64_t)mBuff); in handleResponse()
872 if (result != WIFI_SUCCESS) { in handleResponse()
873 ALOGE("Failed to put get memory dump request; result = %d", result); in handleResponse()
874 return result; in handleResponse()
878 result = requestResponse(request); in handleResponse()
879 if (result != WIFI_SUCCESS) { in handleResponse()
880 ALOGE("Failed to register get momory dump response; result = %d", result); in handleResponse()
911 wifi_error result = (wifi_error)cmd->start(); in wifi_get_firmware_memory_dump() local
913 return result; in wifi_get_firmware_memory_dump()
960 int result = request.create(GOOGLE_OUI, LOGGER_START_PKT_FATE_MONITORING); in createMonitorPktFateRequest() local
961 if (result < 0) { in createMonitorPktFateRequest()
962 return result; in createMonitorPktFateRequest()
967 return result; in createMonitorPktFateRequest()
971 int result = request.create(GOOGLE_OUI, LOGGER_GET_TX_PKT_FATES); in createTxPktFateRequest() local
972 if (result < 0) { in createTxPktFateRequest()
973 return result; in createTxPktFateRequest()
978 result = request.put_u32(LOGGER_ATTRIBUTE_PKT_FATE_NUM, mNoReqFates); in createTxPktFateRequest()
979 if (result < 0) { in createTxPktFateRequest()
980 return result; in createTxPktFateRequest()
982 result = request.put_u64(LOGGER_ATTRIBUTE_PKT_FATE_DATA, (uint64_t)mReportBufs); in createTxPktFateRequest()
983 if (result < 0) { in createTxPktFateRequest()
984 return result; in createTxPktFateRequest()
987 return result; in createTxPktFateRequest()
991 int result = request.create(GOOGLE_OUI, LOGGER_GET_RX_PKT_FATES); in createRxPktFateRequest() local
992 if (result < 0) { in createRxPktFateRequest()
993 return result; in createRxPktFateRequest()
998 result = request.put_u32(LOGGER_ATTRIBUTE_PKT_FATE_NUM, mNoReqFates); in createRxPktFateRequest()
999 if (result < 0) { in createRxPktFateRequest()
1000 return result; in createRxPktFateRequest()
1002 result = request.put_u64(LOGGER_ATTRIBUTE_PKT_FATE_DATA, (uint64_t)mReportBufs); in createRxPktFateRequest()
1003 if (result < 0) { in createRxPktFateRequest()
1004 return result; in createRxPktFateRequest()
1007 return result; in createRxPktFateRequest()
1014 int result = createRequest(request); in start() local
1015 if (result < 0) { in start()
1016 ALOGE("Failed to create get pkt fate request; result = %d\n", result); in start()
1017 return result; in start()
1020 result = requestResponse(request); in start()
1021 if (result != WIFI_SUCCESS) { in start()
1022 ALOGE("Failed to register get pkt fate response; result = %d\n", result); in start()
1024 return result; in start()
1082 wifi_error result = (wifi_error)cmd->start(); in wifi_start_pkt_fate_monitoring() local
1084 return result; in wifi_start_pkt_fate_monitoring()
1094 wifi_error result = (wifi_error)cmd->start(); in wifi_get_tx_pkt_fates() local
1096 return result; in wifi_get_tx_pkt_fates()
1106 wifi_error result = (wifi_error)cmd->start(); in wifi_get_rx_pkt_fates() local
1108 return result; in wifi_get_rx_pkt_fates()