Lines Matching defs:state
33 "Unexpected packet (%d) for state (%d). ", \
34 hci_dmp_cb(skb)->pkt_type, hdev->dump.state)
38 static int hci_devcd_update_hdr_state(char *buf, size_t size, int state)
45 len = scnprintf(buf, size, "Bluetooth devcoredump\nState: %d\n", state);
47 return len + 1; /* scnprintf adds \0 at the end upon state rewrite */
51 static int hci_devcd_update_state(struct hci_dev *hdev, int state)
53 bt_dev_dbg(hdev, "Updating devcoredump state from %d to %d.",
54 hdev->dump.state, state);
56 hdev->dump.state = state;
59 hdev->dump.alloc_size, state);
81 static void hci_devcd_notify(struct hci_dev *hdev, int state)
84 hdev->dump.notify_change(hdev, state);
185 if (hdev->dump.state != HCI_DEVCOREDUMP_IDLE) {
213 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) {
227 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) {
248 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) {
267 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) {
282 /* Bluetooth devcoredump state machine.
286 * HCI_DEVCOREDUMP_IDLE: The default state.
288 * HCI_DEVCOREDUMP_ACTIVE: A devcoredump will be in this state once it has
296 * then the state machine is reset to the default state.
301 * event and then the state machine is reset to the default state.
307 * state machine is reset to the default state.
322 if (hdev->dump.state == HCI_DEVCOREDUMP_TIMEOUT) {
328 start_state = hdev->dump.state;
352 bt_dev_dbg(hdev, "Unknown packet (%d) for state (%d). ",
353 hci_dmp_cb(skb)->pkt_type, hdev->dump.state);
360 /* Notify the driver about any state changes before resetting
361 * the state machine
363 if (start_state != hdev->dump.state)
364 hci_devcd_notify(hdev, hdev->dump.state);
366 /* Reset the state machine if the devcoredump is complete */
368 if (hdev->dump.state == HCI_DEVCOREDUMP_DONE ||
369 hdev->dump.state == HCI_DEVCOREDUMP_ABORT)