/hal_infineon-3.4.0/wifi-host-driver/WiFi_Host_Driver/src/ |
D | whd_chip_constants.c | 48 CHECK_RETURN(get_arm_core_base_address(wlan_chip_id, &val) ); in get_whd_var() 51 CHECK_RETURN(get_socsram_base_address(wlan_chip_id, &val, false) ); in get_whd_var() 54 CHECK_RETURN(get_socsram_base_address(wlan_chip_id, &val, true) ); in get_whd_var() 57 CHECK_RETURN(get_sdiod_core_base_address(wlan_chip_id, &val) ); in get_whd_var() 60 CHECK_RETURN(get_pmu_base_address(wlan_chip_id, &val) ); in get_whd_var() 63 CHECK_RETURN(get_chip_ram_size(wlan_chip_id, &val) ); in get_whd_var() 66 CHECK_RETURN(get_atcm_ram_base_address(wlan_chip_id, &val) ); in get_whd_var() 69 CHECK_RETURN(get_socsram_srmem_size(wlan_chip_id, &val) ); in get_whd_var() 72 CHECK_RETURN(get_wl_chanspec_band_mask(wlan_chip_id, &val) ); in get_whd_var() 75 CHECK_RETURN(get_wl_chanspec_band_2G(wlan_chip_id, &val) ); in get_whd_var() [all …]
|
D | whd_chip.c | 635 …CHECK_RETURN(cy_rtos_get_semaphore(&whd_driver->whd_log_mutex, CY_RTOS_NEVER_TIMEOUT, WHD_FALSE) ); in whd_ioctl_log_add() 648 CHECK_RETURN(cy_rtos_set_semaphore(&whd_driver->whd_log_mutex, WHD_FALSE) ); in whd_ioctl_log_add() 654 …CHECK_RETURN(cy_rtos_get_semaphore(&whd_driver->whd_log_mutex, CY_RTOS_NEVER_TIMEOUT, WHD_FALSE) ); in whd_ioctl_log_add_event() 661 CHECK_RETURN(cy_rtos_set_semaphore(&whd_driver->whd_log_mutex, WHD_FALSE) ); in whd_ioctl_log_add_event() 671 …CHECK_RETURN(cy_rtos_get_semaphore(&whd_driver->whd_log_mutex, CY_RTOS_NEVER_TIMEOUT, WHD_FALSE) ); in whd_ioctl_print() 723 CHECK_RETURN(cy_rtos_set_semaphore(&whd_driver->whd_log_mutex, WHD_FALSE) ); in whd_ioctl_print() 767 … CHECK_RETURN(whd_bus_write_backplane_value(whd_driver, SOCSRAM_BANKX_INDEX(whd_driver), 4, 0x3) ); in whd_chip_specific_socsram_init() 768 … CHECK_RETURN(whd_bus_write_backplane_value(whd_driver, SOCSRAM_BANKX_PDA(whd_driver), 4, 0) ); in whd_chip_specific_socsram_init() 802 …CHECK_RETURN(whd_bus_write_register_value(whd_driver, BACKPLANE_FUNCTION, (uint32_t)SDIO_CHIP_CLOC… in whd_allow_wlan_bus_to_sleep() 912 CHECK_RETURN(result); in whd_wifi_print_whd_log() [all …]
|
D | whd_ap.c | 115 CHECK_RETURN(whd_wifi_set_iovar_value(ifp, IOVAR_STR_AMPDU_BA_WINDOW_SIZE, ba_window_size) ); in whd_wifi_set_ampdu_parameters_common() 118 CHECK_RETURN(whd_wifi_set_iovar_value(ifp, IOVAR_STR_AMPDU_MPDU, ( uint32_t )ampdu_mpdu) ); in whd_wifi_set_ampdu_parameters_common() 122 CHECK_RETURN(whd_wifi_set_iovar_value(ifp, IOVAR_STR_AMPDU_RX_FACTOR, rx_factor) ); in whd_wifi_set_ampdu_parameters_common() 239 CHECK_RETURN(whd_wifi_set_ioctl_buffer(prim_ifp, WLC_DOWN, NULL, 0) ); in whd_wifi_init_ap() 249 CHECK_RETURN(whd_wifi_set_ioctl_buffer(prim_ifp, WLC_UP, NULL, 0) ); in whd_wifi_init_ap() 299 CHECK_RETURN(whd_buffer_release(whd_driver, response, WHD_NETWORK_RX) ); in whd_wifi_init_ap() 306 CHECK_RETURN(whd_buffer_release(whd_driver, response, WHD_NETWORK_RX) ); in whd_wifi_init_ap() 324 CHECK_RETURN(whd_buffer_release(whd_driver, response, WHD_NETWORK_RX) ); in whd_wifi_init_ap() 331 CHECK_RETURN(whd_buffer_release(whd_driver, response, WHD_NETWORK_RX) ); in whd_wifi_init_ap() 335 CHECK_RETURN(cy_rtos_init_semaphore(&ap->whd_wifi_sleep_flag, 1, 0) ); in whd_wifi_init_ap() [all …]
|
D | whd_wifi_api.c | 361 CHECK_RETURN(whd_wifi_set_ioctl_buffer(ifp, WLC_UP, NULL, 0) ); in whd_wifi_set_up() 410 CHECK_RETURN(whd_wifi_set_ioctl_buffer(ifp, WLC_DOWN, NULL, 0) ); in whd_wifi_set_down() 472 CHECK_RETURN(whd_cdc_send_ioctl(ifp, CDC_GET, WLC_SET_CHANNEL, buffer, NULL) ); in whd_wifi_set_channel() 487 CHECK_RETURN(whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0) ); in whd_wifi_set_channel() 517 CHECK_RETURN(whd_cdc_send_ioctl(ifp, CDC_GET, WLC_GET_CHANNEL, buffer, &response) ); in whd_wifi_get_channel() 522 CHECK_RETURN(whd_buffer_release(whd_driver, response, WHD_NETWORK_RX) ); in whd_wifi_get_channel() 568 CHECK_RETURN(whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0) ); in whd_wifi_set_supplicant_key_timeout() 598 CHECK_RETURN(cy_rtos_delay_milliseconds(1) ); in whd_wifi_set_passphrase() 600 CHECK_RETURN(whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_WSEC_PMK, buffer, 0) ); in whd_wifi_set_passphrase() 630 CHECK_RETURN(whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0) ); in whd_wifi_sae_password() [all …]
|
D | whd_cdc_bdc.c | 220 CHECK_RETURN(whd_buffer_release(whd_driver, send_buffer_hnd, WHD_NETWORK_TX) ); in whd_cdc_send_ioctl() 252 CHECK_RETURN(whd_buffer_set_size(whd_driver, send_buffer_hnd, in whd_cdc_send_ioctl() 272 CHECK_RETURN(whd_buffer_set_size(whd_driver, send_buffer_hnd, WHD_IOCTL_MAX_TX_PKT_LEN) ); in whd_cdc_send_ioctl() 276 CHECK_RETURN(whd_send_to_bus(whd_driver, send_buffer_hnd, CONTROL_HEADER, 8) ); in whd_cdc_send_ioctl() 284 CHECK_RETURN(cy_rtos_set_semaphore(&cdc_bdc_info->ioctl_mutex, WHD_FALSE) ); in whd_cdc_send_ioctl() 296 …CHECK_RETURN(whd_buffer_add_remove_at_front(whd_driver, response_buffer_hnd, sizeof(cdc_header_t) … in whd_cdc_send_ioctl() 300 CHECK_RETURN(whd_buffer_release(whd_driver, cdc_bdc_info->ioctl_response, WHD_NETWORK_RX) ); in whd_cdc_send_ioctl() 306 CHECK_RETURN(cy_rtos_set_semaphore(&cdc_bdc_info->ioctl_mutex, WHD_FALSE) ); in whd_cdc_send_ioctl() 313 CHECK_RETURN(whd_buffer_release(whd_driver, *response_buffer_hnd, WHD_NETWORK_RX) ); in whd_cdc_send_ioctl()
|
D | whd_wifi.c | 89 CHECK_RETURN(whd_cdc_send_iovar(ifp, CDC_SET, buffer, NULL) ); in whd_wifi_set_mac_address() 106 CHECK_RETURN(whd_cdc_send_iovar(ifp, CDC_SET, buffer, NULL) ); in whd_wifi_set_mac_address()
|
D | whd_events.c | 218 CHECK_RETURN(cy_rtos_set_semaphore(&error_info->event_list_mutex, WHD_FALSE) ); in whd_set_error_handler_locally() 431 CHECK_RETURN(cy_rtos_set_semaphore(&cdc_bdc_info->event_list_mutex, WHD_FALSE) ); in whd_management_set_event_handler() 438 CHECK_RETURN(cy_rtos_set_semaphore(&cdc_bdc_info->event_list_mutex, WHD_FALSE) ); in whd_management_set_event_handler() 527 CHECK_RETURN(cy_rtos_set_semaphore(&cdc_bdc_info->event_list_mutex, WHD_FALSE) ); in whd_wifi_set_event_handler() 534 CHECK_RETURN(cy_rtos_set_semaphore(&cdc_bdc_info->event_list_mutex, WHD_FALSE) ); in whd_wifi_set_event_handler()
|
D | whd_clm.c | 63 CHECK_RETURN(whd_cdc_send_iovar(ifp, CDC_SET, buffer, NULL) ); in whd_download_wifi_clm_image() 160 CHECK_RETURN(whd_buffer_release(whd_driver, response, WHD_NETWORK_RX) ); in whd_process_clm_data()
|
D | whd_debug.c | 59 CHECK_RETURN(whd_bus_print_stats(whd_driver, reset_after_print) ); in whd_print_stats()
|
D | whd_management.c | 438 CHECK_RETURN(whd_wifi_set_up(ifp) ); in whd_wifi_on() 506 CHECK_RETURN(whd_wifi_set_ioctl_buffer(ifp, WLC_DOWN, NULL, 0) ); in whd_wifi_off()
|
D | whd_thread.c | 139 CHECK_RETURN(whd_buffer_release(whd_driver, tmp_buf_hnd, WHD_NETWORK_TX) ); in whd_thread_send_one_packet()
|
/hal_infineon-3.4.0/wifi-host-driver/WiFi_Host_Driver/src/bus_protocols/ |
D | whd_bus_sdio_protocol.c | 284 CHECK_RETURN(whd_buffer_release(whd_driver, buffer, WHD_NETWORK_TX) ); in whd_bus_sdio_send_buffer() 289 CHECK_RETURN (retval); in whd_bus_sdio_send_buffer() 313 … CHECK_RETURN(whd_bus_write_register_value(whd_driver, BUS_FUNCTION, SDIOD_CCCR_IOEN, (uint8_t)1, in whd_bus_sdio_init() 319 …CHECK_RETURN(whd_bus_read_register_value (whd_driver, BUS_FUNCTION, SDIOD_CCCR_IOEN, (uint8_t)1, &… in whd_bus_sdio_init() 331 … CHECK_RETURN(whd_bus_read_register_value (whd_driver, BUS_FUNCTION, SDIOD_CCCR_BICTRL, (uint8_t)1, in whd_bus_sdio_init() 333 … CHECK_RETURN(whd_bus_write_register_value(whd_driver, BUS_FUNCTION, SDIOD_CCCR_BICTRL, (uint8_t)1, in whd_bus_sdio_init() 361 CHECK_RETURN(result); in whd_bus_sdio_init() 363 …CHECK_RETURN(whd_bus_write_register_value(whd_driver, BUS_FUNCTION, SDIOD_CCCR_BLKSIZE_0, (uint8… in whd_bus_sdio_init() 365 …CHECK_RETURN(whd_bus_write_register_value(whd_driver, BUS_FUNCTION, SDIOD_CCCR_F1BLKSIZE_0, (uint8… in whd_bus_sdio_init() 367 …CHECK_RETURN(whd_bus_write_register_value(whd_driver, BUS_FUNCTION, SDIOD_CCCR_F2BLKSIZE_0, (uint8… in whd_bus_sdio_init() [all …]
|
D | whd_bus_spi_protocol.c | 256 CHECK_RETURN(whd_buffer_release(whd_driver, buffer, WHD_NETWORK_TX) ); in whd_bus_spi_send_buffer() 261 CHECK_RETURN(result); in whd_bus_spi_send_buffer() 412 CHECK_RETURN(whd_ensure_wlan_bus_is_up(whd_driver) ); in whd_bus_spi_packet_available_to_read() 469 CHECK_RETURN(whd_ensure_wlan_bus_is_up(whd_driver) ); in whd_bus_spi_read_frame() 488 …CHECK_RETURN(whd_bus_spi_write_register_value(whd_driver, BACKPLANE_FUNCTION, SPI_FRAME_CONTROL, 1, in whd_bus_spi_read_frame() 515 CHECK_RETURN(whd_bus_spi_transfer_bytes(whd_driver, BUS_READ, WLAN_FUNCTION, 0, 12, in whd_bus_spi_read_frame() 521 …CHECK_RETURN(whd_bus_spi_write_register_value(whd_driver, BACKPLANE_FUNCTION, SPI_FRAME_CONTROL, 1, in whd_bus_spi_read_frame() 534 CHECK_RETURN(whd_buffer_release(whd_driver, *buffer, WHD_NETWORK_RX) ); in whd_bus_spi_read_frame() 585 …CHECK_RETURN(cyhal_spi_transfer(whd_driver->bus_priv->spi_obj, NULL, sizeof(whd_bus_gspi_header_t), in whd_bus_spi_init() 603 …CHECK_RETURN(whd_bus_spi_write_register_value(whd_driver, BUS_FUNCTION, SPI_BUS_CONTROL, (uint8_t)… in whd_bus_spi_init() [all …]
|
D | whd_bus_m2m_protocol.c | 225 CHECK_RETURN(whd_disable_device_core(whd_driver, WLAN_ARM_CORE, WLAN_CORE_FLAG_CPU_HALT) ); in whd_bus_m2m_deinit() 236 CHECK_RETURN(whd_allow_wlan_bus_to_sleep(whd_driver) ); in whd_bus_m2m_deinit() 287 …CHECK_RETURN(whd_bus_write_backplane_value(whd_driver, GET_C_VAR(whd_driver, PMU_BASE_ADDRESS) + 0… in whd_bus_m2m_read_frame() 404 …CHECK_RETURN(whd_bus_write_backplane_value(whd_driver, GET_C_VAR(whd_driver, PMU_BASE_ADDRESS) + 0… in whd_bus_m2m_transfer_bytes() 408 …CHECK_RETURN(whd_bus_write_backplane_value(whd_driver, GET_C_VAR(whd_driver, PMU_BASE_ADDRESS) + 0… in whd_bus_m2m_transfer_bytes() 559 CHECK_RETURN(whd_resource_read(whd_driver, resource, 0, in whd_bus_m2m_download_resource() 563 CHECK_RETURN(whd_resource_read(whd_driver, resource, 0, 4, &size_out, &reset_instr) ); in whd_bus_m2m_download_resource() 566 …CHECK_RETURN(whd_bus_write_backplane_value(whd_driver, GET_C_VAR(whd_driver, PMU_BASE_ADDRESS) + 0… in whd_bus_m2m_download_resource() 570 …CHECK_RETURN(whd_bus_write_backplane_value(whd_driver, GET_C_VAR(whd_driver, PMU_BASE_ADDRESS) + 0… in whd_bus_m2m_download_resource() 585 CHECK_RETURN(whd_resource_size(whd_driver, WHD_RESOURCE_WLAN_NVRAM, &image_size) ); in whd_bus_m2m_write_wifi_nvram_image() [all …]
|
D | whd_bus_common.c | 286 CHECK_RETURN(whd_ensure_wlan_bus_is_up(whd_driver) ); in whd_bus_mem_bytes() 376 CHECK_RETURN(whd_buffer_release(whd_driver, pkt_buffer, in whd_bus_transfer_backplane_bytes() 379 CHECK_RETURN(result); in whd_bus_transfer_backplane_bytes()
|
D | whd_bus.c | 32 CHECK_RETURN(whd_ensure_wlan_bus_is_up(whd_driver) ); in whd_bus_write_reg_value() 40 CHECK_RETURN(whd_ensure_wlan_bus_is_up(whd_driver) ); in whd_bus_read_reg_value()
|
/hal_infineon-3.4.0/wifi-host-driver/WiFi_Host_Driver/src/include/ |
D | whd_types_int.h | 85 #define CHECK_RETURN(expr) { \ macro
|