Lines Matching +full:com +full:- +full:seq

1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com>
101 return (((e) == 0)? 0 : -1); \
120 int32_t i, control_psm = -1, interrupt_psm = -1,
121 reconnect_initiate = -1,
123 hid_descriptor_length = -1, type;
135 if ((ss = sdp_open(local, &hd->bdaddr)) == NULL)
219 if (control_psm == -1 || interrupt_psm == -1 ||
220 reconnect_initiate == -1 ||
221 hid_descriptor == NULL || hid_descriptor_length == -1)
223 hd->name = bt_devremote_name_gen(devname, &hd->bdaddr);
224 hd->vendor_id = vendor_id;
225 hd->product_id = product_id;
226 hd->version = version;
227 hd->control_psm = control_psm;
228 hd->interrupt_psm = interrupt_psm;
229 hd->reconnect_initiate = reconnect_initiate? 1 : 0;
230 hd->battery_power = battery_power? 1 : 0;
231 hd->normally_connectable = normally_connectable? 1 : 0;
232 hd->desc = hid_use_report_desc(hid_descriptor, hid_descriptor_length);
233 if (hd->desc == NULL)
240 * seq len 2
241 * seq len 2
244 * seq len 2
251 uint8_t *ptr = a->value;
252 uint8_t *end = a->value + a->vlen;
255 if (end - ptr < 15)
256 return (-1);
258 if (a->attr == SDP_ATTR_ADDITIONAL_PROTOCOL_DESCRIPTOR_LISTS) {
274 return (-1);
277 return (-1);
295 return (-1);
298 return (-1);
316 return (-1);
319 return (-1);
323 return (-1);
329 return (-1);
332 case SDP_DATA_UUID32: /* XXX FIXME can we have 32-bit UUID */
333 case SDP_DATA_UUID128: /* XXX FIXME can we have 128-bit UUID */
335 return (-1);
340 return (-1);
343 return (-1);
350 * seq len 2
351 * seq len 2
359 uint8_t *ptr = a->value;
360 uint8_t *end = a->value + a->vlen;
363 if (end - ptr < 9)
364 return (-1);
381 return (-1);
384 return (-1);
392 return (-1);
398 return (-1);
404 return (-1);
409 return (-1);
414 return (-1);
417 return (-1);
422 return (-1);
427 return (-1);
433 return (-1);
439 return (-1);
444 return (-1);
447 return (-1);
450 a->value = ptr;
451 a->vlen = len;
459 return (-1);
466 if (a->vlen != 2 || a->value[0] != SDP_DATA_BOOL)
467 return (-1);
469 return (a->value[1]);