Lines Matching defs:evt
114 struct ubt_hci_event_command_compl *evt;
120 evt = malloc(offsetof(struct ubt_hci_event_command_compl, data) +
122 evt->header.event = NG_HCI_EVENT_COMMAND_COMPL;
123 evt->header.length = resp_len + UBT_HCI_EVENT_COMPL_HEAD_SIZE;
125 error = ubt_do_hci_request(udev, &cmd, evt, UBT_INTEL_HCICMD_TIMEOUT);
129 if (evt->header.length == resp_len + UBT_HCI_EVENT_COMPL_HEAD_SIZE)
130 memcpy(resp, evt->data, resp_len);
134 free(evt, M_TEMP);
147 struct ubt_hci_event_command_compl *evt;
152 evt = malloc(UBT_INTEL_MAX_EVT_SIZE, M_TEMP, M_ZERO | M_WAITOK);
153 evt->header.event = NG_HCI_EVENT_COMMAND_COMPL;
154 evt->header.length =
157 error = ubt_do_hci_request(udev, &cmd, evt, UBT_INTEL_HCICMD_TIMEOUT);
161 datalen = evt->header.length - UBT_HCI_EVENT_COMPL_HEAD_SIZE;
162 data = evt->data;
182 free(evt, M_TEMP);