Lines Matching refs:hw_cfg_cb

178 static bt_hw_cfg_cb_t hw_cfg_cb;  variable
300 if (strstr(hw_cfg_cb.local_chip_name, p_entry->chipset_name)!=NULL) in look_up_fw_settlement_delay()
567 hw_cfg_cb.state = HW_CFG_SET_BD_ADDR; in hw_config_set_bdaddr()
595 hw_cfg_cb.state = HW_CFG_READ_BD_ADDR; in hw_config_read_bdaddr()
645 switch (hw_cfg_cb.state) in hw_config_cback()
659 hw_cfg_cb.state = HW_CFG_READ_LOCAL_NAME; in hw_config_cback()
674 strncpy(hw_cfg_cb.local_chip_name, p_name, \ in hw_config_cback()
679 strncpy(hw_cfg_cb.local_chip_name, "UNKNOWN", \ in hw_config_cback()
684 hw_cfg_cb.local_chip_name[LOCAL_NAME_BUFFER_LEN-1] = 0; in hw_config_cback()
686 BTHWDBG("Chipset %s", hw_cfg_cb.local_chip_name); in hw_config_cback()
690 if ((hw_cfg_cb.fw_fd = open(p_name, O_RDONLY)) == -1) in hw_config_cback()
701 hw_cfg_cb.state = HW_CFG_DL_MINIDRIVER; in hw_config_cback()
724 hw_cfg_cb.state = HW_CFG_DL_FW_PATCH; in hw_config_cback()
727 p_buf->len = read(hw_cfg_cb.fw_fd, p, HCI_CMD_PREAMBLE_SIZE); in hw_config_cback()
737 p_buf->len += read(hw_cfg_cb.fw_fd, \ in hw_config_cback()
747 close(hw_cfg_cb.fw_fd); in hw_config_cback()
748 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
760 hw_cfg_cb.f_set_baud_2 = TRUE; in hw_config_cback()
772 hw_cfg_cb.state = HW_CFG_START; in hw_config_cback()
785 hw_cfg_cb.state = HW_CFG_SET_UART_CLOCK; in hw_config_cback()
803 hw_cfg_cb.state = (hw_cfg_cb.f_set_baud_2) ? \ in hw_config_cback()
830 hw_cfg_cb.state = 0; in hw_config_cback()
832 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
834 close(hw_cfg_cb.fw_fd); in hw_config_cback()
835 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
864 hw_cfg_cb.state = 0; in hw_config_cback()
866 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
868 close(hw_cfg_cb.fw_fd); in hw_config_cback()
869 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
893 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
895 close(hw_cfg_cb.fw_fd); in hw_config_cback()
896 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
899 hw_cfg_cb.state = 0; in hw_config_cback()
1102 hw_cfg_cb.state = 0; in hw_config_start()
1103 hw_cfg_cb.fw_fd = -1; in hw_config_start()
1104 hw_cfg_cb.f_set_baud_2 = FALSE; in hw_config_start()
1125 hw_cfg_cb.state = HW_CFG_START; in hw_config_start()
1213 if (strstr(hw_cfg_cb.local_chip_name, "BCM4325") != NULL) in hw_lpm_get_idle_timeout()