Lines Matching refs:command

42 	NetBufferHeaderReader<l2cap_connection_req> command(buffer);
43 if (command.Status() != B_OK)
46 const uint16 psm = le16toh(command->psm);
47 const uint16 scid = le16toh(command->scid);
65 NetBufferHeaderReader<l2cap_connection_rsp> command(buffer);
66 if (command.Status() != B_OK)
70 response.dcid = le16toh(command->dcid);
71 response.scid = le16toh(command->scid);
72 response.result = le16toh(command->result);
73 response.status = le16toh(command->status);
142 NetBufferHeaderReader<l2cap_configuration_req> command(buffer);
143 if (command.Status() != B_OK)
146 const uint16 dcid = le16toh(command->dcid);
155 const uint16 flags = le16toh(command->flags);
185 NetBufferHeaderReader<l2cap_configuration_rsp> command(buffer);
186 if (command.Status() != B_OK)
189 const uint16 scid = le16toh(command->scid);
190 const uint16 flags = le16toh(command->flags);
191 const uint16 result = le16toh(command->result);
216 NetBufferHeaderReader<l2cap_disconnection_req> command(buffer);
217 if (command.Status() != B_OK)
220 const uint16 dcid = le16toh(command->dcid);
229 const uint16 scid = le16toh(command->scid);
239 NetBufferHeaderReader<l2cap_disconnection_rsp> command(buffer);
240 if (command.Status() != B_OK)
243 const uint16 dcid = le16toh(command->dcid);
244 const uint16 scid = le16toh(command->scid);
274 NetBufferHeaderReader<l2cap_information_req> command(buffer);
275 if (command.Status() != B_OK)
278 const uint16 type = le16toh(command->type);
311 ERROR("l2cap: unexpected command rejected: ident %d unknown\n", ident);
315 NetBufferHeaderReader<l2cap_command_reject> command(buffer);
316 if (command.Status() != B_OK)
319 const uint16 reason = le16toh(command->reason);
320 TRACE("%s: reason=%d\n", __func__, command->reason);
336 send_l2cap_command(HciConnection* conn, uint8 code, uint8 ident, net_buffer* command)
340 NetBufferPrepend<l2cap_command_header> header(command);
343 header->length = htole16(command->size - sizeof(l2cap_command_header));
345 NetBufferPrepend<l2cap_basic_header> basicHeader(command);
346 basicHeader->length = htole16(command->size - sizeof(l2cap_basic_header));
349 command->type = conn->handle;
350 status_t status = btDevices->PostACL(conn->Hid, command);
352 gBufferModule->free(command);
474 ERROR("%s: invalid L2CAP signaling command packet, code=%#x, "
530 ERROR("l2cap: unknown L2CAP signaling command, "
541 // Advance to the next command (if any.)