Lines Matching refs:hw_cfg_cb
183 static bt_hw_cfg_cb_t hw_cfg_cb; variable
306 if (strstr(hw_cfg_cb.local_chip_name, p_entry->chipset_name)!=NULL) in look_up_fw_settlement_delay()
573 hw_cfg_cb.state = HW_CFG_SET_BD_ADDR; in hw_config_set_bdaddr()
601 hw_cfg_cb.state = HW_CFG_READ_BD_ADDR; in hw_config_read_bdaddr()
651 switch (hw_cfg_cb.state) in hw_config_cback()
665 hw_cfg_cb.state = HW_CFG_READ_LOCAL_NAME; in hw_config_cback()
680 strncpy(hw_cfg_cb.local_chip_name, p_name, \ in hw_config_cback()
686 snprintf(hw_cfg_cb.local_chip_name, in hw_config_cback()
688 strncpy(p_name, hw_cfg_cb.local_chip_name, in hw_config_cback()
694 strncpy(hw_cfg_cb.local_chip_name, "UNKNOWN", \ in hw_config_cback()
699 hw_cfg_cb.local_chip_name[LOCAL_NAME_BUFFER_LEN-1] = 0; in hw_config_cback()
701 BTHWDBG("Chipset %s", hw_cfg_cb.local_chip_name); in hw_config_cback()
705 if ((hw_cfg_cb.fw_fd = open(p_name, O_RDONLY)) == -1) in hw_config_cback()
716 hw_cfg_cb.state = HW_CFG_DL_MINIDRIVER; in hw_config_cback()
739 hw_cfg_cb.state = HW_CFG_DL_FW_PATCH; in hw_config_cback()
742 if (hw_cfg_cb.fw_fd >= 0) in hw_config_cback()
744 int ret = read(hw_cfg_cb.fw_fd, p, HCI_CMD_PREAMBLE_SIZE); in hw_config_cback()
755 ret = read(hw_cfg_cb.fw_fd, \ in hw_config_cback()
772 close(hw_cfg_cb.fw_fd); in hw_config_cback()
773 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
785 hw_cfg_cb.f_set_baud_2 = TRUE; in hw_config_cback()
797 hw_cfg_cb.state = HW_CFG_START; in hw_config_cback()
810 hw_cfg_cb.state = HW_CFG_SET_UART_CLOCK; in hw_config_cback()
828 hw_cfg_cb.state = (hw_cfg_cb.f_set_baud_2) ? \ in hw_config_cback()
855 hw_cfg_cb.state = 0; in hw_config_cback()
857 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
859 close(hw_cfg_cb.fw_fd); in hw_config_cback()
860 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
889 hw_cfg_cb.state = 0; in hw_config_cback()
891 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
893 close(hw_cfg_cb.fw_fd); in hw_config_cback()
894 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
918 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
920 close(hw_cfg_cb.fw_fd); in hw_config_cback()
921 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
924 hw_cfg_cb.state = 0; in hw_config_cback()
1127 hw_cfg_cb.state = 0; in hw_config_start()
1128 hw_cfg_cb.fw_fd = -1; in hw_config_start()
1129 hw_cfg_cb.f_set_baud_2 = FALSE; in hw_config_start()
1150 hw_cfg_cb.state = HW_CFG_START; in hw_config_start()
1237 if (strstr(hw_cfg_cb.local_chip_name, "BCM4325") != NULL) in hw_lpm_get_idle_timeout()
1239 else if (strstr(hw_cfg_cb.local_chip_name, "BCM4358") != NULL) in hw_lpm_get_idle_timeout()
1241 else if (strstr(hw_cfg_cb.local_chip_name, "BCM43013") != NULL) in hw_lpm_get_idle_timeout()