Lines Matching defs:length
83 parse_configuration_options(net_buffer* buffer, size_t offset, uint16 length,
86 while (offset < length) {
93 min_c(sizeof(value), option.length)) != B_OK) {
130 sizeof(option) + option.length);
134 offset += sizeof(option) + option.length;
140 l2cap_handle_configuration_req(HciConnection* conn, uint8 ident, net_buffer* buffer, uint16 length)
159 parse_configuration_options(buffer, sizeof(l2cap_configuration_req), length, options);
178 uint8 ident, net_buffer* buffer, uint16 length, bool& releaseIdent)
196 parse_configuration_options(buffer, sizeof(l2cap_configuration_rsp), length, options);
252 l2cap_handle_echo_req(HciConnection *conn, uint8 ident, net_buffer* buffer, uint16 length)
258 gBufferModule->trim(reply, length);
264 l2cap_handle_echo_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer, uint16 length)
343 header->length = htole16(command->size - sizeof(l2cap_command_header));
346 basicHeader->length = htole16(command->size - sizeof(l2cap_basic_header));
463 const uint16 length = le16toh(commandHeader->length);
473 if (buffer->size < length) {
475 "ident=%d, length=%d, buffer size=%" B_PRIu32 "\n", __func__,
476 code, ident, length, buffer->size);
497 buffer, length);
502 buffer, length, releaseIdent);
514 l2cap_handle_echo_req(connection, ident, buffer, length);
518 l2cap_handle_echo_rsp(endpoint, ident, buffer, length);
542 gBufferModule->remove_header(buffer, length);