Lines Matching refs:ev
55 struct btp_l2cap_data_received_ev *ev; in seg_recv_cb() local
60 ev = (void *)chan->recv_cb_buf; in seg_recv_cb()
61 memcpy(&ev->data[seg_offset], seg->data, seg->len); in seg_recv_cb()
65 ev->chan_id = chan->chan_id; in seg_recv_cb()
66 ev->data_length = sys_cpu_to_le16(sdu_len); in seg_recv_cb()
69 sizeof(*ev) + sdu_len); in seg_recv_cb()
88 struct btp_l2cap_data_received_ev *ev = (void *) recv_cb_buf; in recv_cb() local
93 ev->chan_id = chan->chan_id; in recv_cb()
94 ev->data_length = sys_cpu_to_le16(buf->len); in recv_cb()
95 memcpy(ev->data, buf->data, buf->len); in recv_cb()
98 recv_cb_buf, sizeof(*ev) + buf->len); in recv_cb()
114 struct btp_l2cap_connected_ev ev; in connected_cb() local
120 ev.chan_id = chan->chan_id; in connected_cb()
125 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in connected_cb()
126 ev.mps_remote = sys_cpu_to_le16(chan->le.tx.mps); in connected_cb()
127 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in connected_cb()
128 ev.mps_local = sys_cpu_to_le16(chan->le.rx.mps); in connected_cb()
129 bt_addr_le_copy(&ev.address, info.le.dst); in connected_cb()
138 tester_event(BTP_SERVICE_ID_L2CAP, BTP_L2CAP_EV_CONNECTED, &ev, sizeof(ev)); in connected_cb()
143 struct btp_l2cap_disconnected_ev ev; in disconnected_cb() local
157 (void)memset(&ev, 0, sizeof(struct btp_l2cap_disconnected_ev)); in disconnected_cb()
160 ev.chan_id = chan->chan_id; in disconnected_cb()
165 bt_addr_le_copy(&ev.address, info.le.dst); in disconnected_cb()
176 tester_event(BTP_SERVICE_ID_L2CAP, BTP_L2CAP_EV_DISCONNECTED, &ev, sizeof(ev)); in disconnected_cb()
182 struct btp_l2cap_reconfigured_ev ev; in reconfigured_cb() local
187 (void)memset(&ev, 0, sizeof(ev)); in reconfigured_cb()
189 ev.chan_id = chan->chan_id; in reconfigured_cb()
190 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in reconfigured_cb()
191 ev.mps_remote = sys_cpu_to_le16(chan->le.tx.mps); in reconfigured_cb()
192 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in reconfigured_cb()
193 ev.mps_local = sys_cpu_to_le16(chan->le.rx.mps); in reconfigured_cb()
195 tester_event(BTP_SERVICE_ID_L2CAP, BTP_L2CAP_EV_RECONFIGURED, &ev, sizeof(ev)); in reconfigured_cb()