Lines Matching refs:evt
53 void (*handler)(struct net_buf *buf, struct net_buf **evt, uint8_t len, uint16_t opcode);
57 static void evt_create(struct net_buf *buf, uint8_t evt, uint8_t len) in evt_create() argument
62 hdr->evt = evt; in evt_create()
66 static void le_meta_evt_create(struct bt_hci_evt_le_meta_event *evt, uint8_t subevent) in le_meta_evt_create() argument
68 evt->subevent = subevent; in le_meta_evt_create()
71 static void adv_info_create(struct bt_hci_evt_le_ext_advertising_info *evt, uint16_t evt_type, in adv_info_create() argument
74 evt->evt_type = evt_type; in adv_info_create()
75 bt_addr_le_copy(&evt->addr, addr); in adv_info_create()
76 evt->prim_phy = 0; in adv_info_create()
77 evt->sec_phy = 0; in adv_info_create()
78 evt->sid = 0; in adv_info_create()
79 evt->tx_power = 0; in adv_info_create()
80 evt->rssi = 0; in adv_info_create()
81 evt->interval = 0; in adv_info_create()
82 bt_addr_le_copy(&evt->direct_addr, BT_ADDR_LE_NONE); in adv_info_create()
83 evt->length = length; in adv_info_create()
101 static int cmd_handle_helper(uint16_t opcode, struct net_buf *cmd, struct net_buf **evt, in cmd_handle_helper() argument
112 handler->handler(cmd, evt, handler->len, opcode); in cmd_handle_helper()
128 struct net_buf *evt = NULL; in cmd_handle() local
137 err = cmd_handle_helper(opcode, cmd, &evt, handlers, num_handlers); in cmd_handle()
140 ccst = cmd_complete(&evt, sizeof(*ccst), opcode); in cmd_handle()
144 if (evt) { in cmd_handle()
145 drv->recv(dev, evt); in cmd_handle()
152 static void generic_success(struct net_buf *buf, struct net_buf **evt, uint8_t len, uint16_t opcode) in generic_success() argument
156 ccst = cmd_complete(evt, len, opcode); in generic_success()
165 static void read_local_features(struct net_buf *buf, struct net_buf **evt, uint8_t len, in read_local_features() argument
170 rp = cmd_complete(evt, sizeof(*rp), opcode); in read_local_features()
176 static void read_supported_commands(struct net_buf *buf, struct net_buf **evt, uint8_t len, in read_supported_commands() argument
181 rp = cmd_complete(evt, sizeof(*rp), opcode); in read_supported_commands()
187 static void le_read_local_features(struct net_buf *buf, struct net_buf **evt, uint8_t len, in le_read_local_features() argument
192 rp = cmd_complete(evt, sizeof(*rp), opcode); in le_read_local_features()
198 static void le_read_supp_states(struct net_buf *buf, struct net_buf **evt, uint8_t len, in le_read_supp_states() argument
203 rp = cmd_complete(evt, sizeof(*rp), opcode); in le_read_supp_states()
320 struct bt_hci_evt_le_ext_advertising_info *evt; in adv_report_evt() local
322 evt_create(buf, BT_HCI_EVT_LE_META_EVENT, sizeof(*meta_evt) + sizeof(*evt) + data_len + 1); in adv_report_evt()
326 evt = net_buf_add(buf, sizeof(*evt)); in adv_report_evt()
327 adv_info_create(evt, evt_type, addr, data_len); in adv_report_evt()