Lines Matching refs:ap

158     whd_ap_int_info_t *ap;  in whd_handle_apsta_event()  local
164 ap = &whd_driver->ap_info; in whd_handle_apsta_event()
166 if (ap->is_waiting_event == WHD_TRUE) in whd_handle_apsta_event()
172 result = cy_rtos_set_semaphore(&ap->whd_wifi_sleep_flag, WHD_FALSE); in whd_handle_apsta_event()
190 whd_ap_int_info_t *ap; in whd_wifi_init_ap() local
221 ap = &whd_driver->ap_info; in whd_wifi_init_ap()
301 ap->is_waiting_event = WHD_FALSE; in whd_wifi_init_ap()
326 ap->is_waiting_event = WHD_FALSE; in whd_wifi_init_ap()
335 CHECK_RETURN(cy_rtos_init_semaphore(&ap->whd_wifi_sleep_flag, 1, 0) ); in whd_wifi_init_ap()
337 ap->is_waiting_event = WHD_TRUE; in whd_wifi_init_ap()
340 … NULL, &event_entry), &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
351 CHECK_RETURN_WITH_SEMAPHORE(cy_rtos_get_semaphore(&ap->whd_wifi_sleep_flag, (uint32_t)10000, in whd_wifi_init_ap()
352 WHD_FALSE), &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
354 ap->is_waiting_event = WHD_FALSE; in whd_wifi_init_ap()
360 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
363 &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
388 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
401 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
405 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(prim_ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_… in whd_wifi_init_ap()
410 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
413 &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
416 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
433 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(prim_ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_… in whd_wifi_init_ap()
454 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
458 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(prim_ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_… in whd_wifi_init_ap()
462 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(psk, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
469 &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
481 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
505 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
510 &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
525 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(psk, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
532 0), &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
560 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(ifp, CDC_SET, buffer, NULL), &ap->whd_wifi_sleep_fl… in whd_wifi_init_ap()
570 whd_ap_int_info_t *ap; in whd_wifi_start_ap() local
587 ap = &whd_driver->ap_info; in whd_wifi_start_ap()
588 ap->is_waiting_event = WHD_TRUE; in whd_wifi_start_ap()
590 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_start_ap()
593 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(prim_ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_… in whd_wifi_start_ap()
596 CHECK_RETURN_WITH_SEMAPHORE(cy_rtos_get_semaphore(&ap->whd_wifi_sleep_flag, (uint32_t)10000, in whd_wifi_start_ap()
597 WHD_FALSE), &ap->whd_wifi_sleep_flag); in whd_wifi_start_ap()
598 ap->is_waiting_event = WHD_FALSE; in whd_wifi_start_ap()
613 whd_ap_int_info_t *ap; in whd_wifi_stop_ap() local
621 ap = &whd_driver->ap_info; in whd_wifi_stop_ap()
659 ap->is_waiting_event = WHD_TRUE; in whd_wifi_stop_ap()
668 result = cy_rtos_get_semaphore(&ap->whd_wifi_sleep_flag, (uint32_t)10000, WHD_FALSE); in whd_wifi_stop_ap()
686 result = cy_rtos_get_semaphore(&ap->whd_wifi_sleep_flag, (uint32_t)10000, WHD_FALSE); in whd_wifi_stop_ap()
696 ap->is_waiting_event = WHD_FALSE; in whd_wifi_stop_ap()
697 result2 = cy_rtos_deinit_semaphore(&ap->whd_wifi_sleep_flag); in whd_wifi_stop_ap()