Lines Matching defs:hd
48 static int32_t hid_sdp_query (bdaddr_t const *local, struct hid_device *hd, int32_t *error);
116 hid_sdp_query(bdaddr_t const *local, struct hid_device *hd, int32_t *error)
130 if (hd == NULL)
135 if ((ss = sdp_open(local, &hd->bdaddr)) == NULL)
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)
476 struct hid_device hd;
479 memcpy(&hd.bdaddr, bdaddr, sizeof(hd.bdaddr));
480 if (hid_sdp_query(NULL, &hd, &e) < 0) {
487 print_hid_device(&hd, stdout);