Lines Matching refs:hw_cfg_cb

181 static bt_hw_cfg_cb_t hw_cfg_cb;  variable
304 if (strstr(hw_cfg_cb.local_chip_name, p_entry->chipset_name)!=NULL) in look_up_fw_settlement_delay()
571 hw_cfg_cb.state = HW_CFG_SET_BD_ADDR; in hw_config_set_bdaddr()
599 hw_cfg_cb.state = HW_CFG_READ_BD_ADDR; in hw_config_read_bdaddr()
649 switch (hw_cfg_cb.state) in hw_config_cback()
663 hw_cfg_cb.state = HW_CFG_READ_LOCAL_NAME; in hw_config_cback()
678 strncpy(hw_cfg_cb.local_chip_name, p_name, \ in hw_config_cback()
684 snprintf(hw_cfg_cb.local_chip_name, in hw_config_cback()
686 strncpy(p_name, hw_cfg_cb.local_chip_name, in hw_config_cback()
692 strncpy(hw_cfg_cb.local_chip_name, "UNKNOWN", \ in hw_config_cback()
697 hw_cfg_cb.local_chip_name[LOCAL_NAME_BUFFER_LEN-1] = 0; in hw_config_cback()
699 BTHWDBG("Chipset %s", hw_cfg_cb.local_chip_name); in hw_config_cback()
703 if ((hw_cfg_cb.fw_fd = open(p_name, O_RDONLY)) == -1) in hw_config_cback()
714 hw_cfg_cb.state = HW_CFG_DL_MINIDRIVER; in hw_config_cback()
737 hw_cfg_cb.state = HW_CFG_DL_FW_PATCH; in hw_config_cback()
740 p_buf->len = read(hw_cfg_cb.fw_fd, p, HCI_CMD_PREAMBLE_SIZE); in hw_config_cback()
750 p_buf->len += read(hw_cfg_cb.fw_fd, \ in hw_config_cback()
760 close(hw_cfg_cb.fw_fd); in hw_config_cback()
761 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
773 hw_cfg_cb.f_set_baud_2 = TRUE; in hw_config_cback()
785 hw_cfg_cb.state = HW_CFG_START; in hw_config_cback()
798 hw_cfg_cb.state = HW_CFG_SET_UART_CLOCK; in hw_config_cback()
816 hw_cfg_cb.state = (hw_cfg_cb.f_set_baud_2) ? \ in hw_config_cback()
843 hw_cfg_cb.state = 0; in hw_config_cback()
845 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
847 close(hw_cfg_cb.fw_fd); in hw_config_cback()
848 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
877 hw_cfg_cb.state = 0; in hw_config_cback()
879 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
881 close(hw_cfg_cb.fw_fd); in hw_config_cback()
882 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
906 if (hw_cfg_cb.fw_fd != -1) in hw_config_cback()
908 close(hw_cfg_cb.fw_fd); in hw_config_cback()
909 hw_cfg_cb.fw_fd = -1; in hw_config_cback()
912 hw_cfg_cb.state = 0; in hw_config_cback()
1115 hw_cfg_cb.state = 0; in hw_config_start()
1116 hw_cfg_cb.fw_fd = -1; in hw_config_start()
1117 hw_cfg_cb.f_set_baud_2 = FALSE; in hw_config_start()
1138 hw_cfg_cb.state = HW_CFG_START; in hw_config_start()
1225 if (strstr(hw_cfg_cb.local_chip_name, "BCM4325") != NULL) in hw_lpm_get_idle_timeout()
1227 else if (strstr(hw_cfg_cb.local_chip_name, "BCM4358") != NULL) in hw_lpm_get_idle_timeout()