Lines Matching refs:err

68 	int err;  in bt_hci_uart_set_baudrate()  local
71 err = uart_config_get(bt_uart_dev, &uart_cfg); in bt_hci_uart_set_baudrate()
72 if (err) { in bt_hci_uart_set_baudrate()
73 return err; in bt_hci_uart_set_baudrate()
79 err = uart_configure(bt_uart_dev, &uart_cfg); in bt_hci_uart_set_baudrate()
80 if (err) { in bt_hci_uart_set_baudrate()
81 return err; in bt_hci_uart_set_baudrate()
107 int err; in bt_update_controller_baudrate() local
132 err = bt_hci_cmd_send_sync(BT_HCI_VND_OP_UPDATE_BAUDRATE, buf, NULL); in bt_update_controller_baudrate()
133 if (err) { in bt_update_controller_baudrate()
134 return err; in bt_update_controller_baudrate()
138 err = bt_hci_uart_set_baudrate(bt_uart_dev, baudrate); in bt_update_controller_baudrate()
139 if (err) { in bt_update_controller_baudrate()
140 return err; in bt_update_controller_baudrate()
151 int err; in bt_firmware_download() local
156 err = bt_hci_cmd_send_sync(BT_HCI_VND_OP_DOWNLOAD_MINIDRIVER, NULL, NULL); in bt_firmware_download()
157 if (err) { in bt_firmware_download()
158 return err; in bt_firmware_download()
174 return err; in bt_firmware_download()
181 err = bt_hci_cmd_send_sync(op_code, buf, NULL); in bt_firmware_download()
182 if (err) { in bt_firmware_download()
183 return err; in bt_firmware_download()
210 int err; in bt_h4_vnd_setup() local
231 err = gpio_pin_configure_dt(&bt_reg_on, GPIO_OUTPUT); in bt_h4_vnd_setup()
232 if (err) { in bt_h4_vnd_setup()
234 err, bt_reg_on.port->name, bt_reg_on.pin); in bt_h4_vnd_setup()
235 return err; in bt_h4_vnd_setup()
237 err = gpio_pin_set_dt(&bt_reg_on, 1); in bt_h4_vnd_setup()
238 if (err) { in bt_h4_vnd_setup()
239 return err; in bt_h4_vnd_setup()
247 err = bt_hci_cmd_send_sync(BT_HCI_OP_RESET, NULL, NULL); in bt_h4_vnd_setup()
248 if (err) { in bt_h4_vnd_setup()
249 return err; in bt_h4_vnd_setup()
254 err = bt_update_controller_baudrate(dev, fw_download_speed); in bt_h4_vnd_setup()
255 if (err) { in bt_h4_vnd_setup()
256 return err; in bt_h4_vnd_setup()
261 err = bt_firmware_download(brcm_patchram_buf, (uint32_t) brcm_patch_ram_length); in bt_h4_vnd_setup()
262 if (err) { in bt_h4_vnd_setup()
263 return err; in bt_h4_vnd_setup()
271 err = bt_hci_uart_set_baudrate(dev, default_uart_speed); in bt_h4_vnd_setup()
272 if (err) { in bt_h4_vnd_setup()
273 return err; in bt_h4_vnd_setup()
278 err = bt_hci_cmd_send_sync(BT_HCI_OP_RESET, NULL, NULL); in bt_h4_vnd_setup()
279 if (err) { in bt_h4_vnd_setup()
280 return err; in bt_h4_vnd_setup()
287 err = bt_update_controller_baudrate(dev, hci_operation_speed); in bt_h4_vnd_setup()
288 if (err) { in bt_h4_vnd_setup()
289 return err; in bt_h4_vnd_setup()