Lines Matching full:device
53 #include "device.h"
65 struct btd_device **device,
80 *device = adapter_get_device(conn, *adapter, peer_addr);
82 *device = adapter_find_device(*adapter, peer_addr);
84 if (create && !*device) {
85 error("Unable to get device object!");
95 * level events(eg: device attached/dettached.
127 const char *pincode, struct btd_device *device)
129 struct btd_adapter *adapter = device_get_adapter(device);
135 device_get_address(device, &dba);
158 struct btd_device *device;
162 if (!get_adapter_and_device(sba, dba, &adapter, &device, TRUE))
172 return device_request_authentication(device, AUTH_TYPE_PINCODE, 0,
177 struct btd_device *device, gboolean success)
181 device_get_address(device, &bdaddr);
188 struct btd_device *device = user_data;
189 struct btd_adapter *adapter = device_get_adapter(device);
192 confirm_reply(adapter, device, success);
198 struct btd_device *device = user_data;
199 struct btd_adapter *adapter = device_get_adapter(device);
202 device_get_address(device, &bdaddr);
213 struct btd_device *device;
215 if (!get_adapter_and_device(sba, dba, &adapter, &device, TRUE))
218 return device_request_authentication(device, AUTH_TYPE_CONFIRM,
225 struct btd_device *device;
227 if (!get_adapter_and_device(sba, dba, &adapter, &device, TRUE))
230 return device_request_authentication(device, AUTH_TYPE_PAIRING_CONSENT,
237 struct btd_device *device;
239 if (!get_adapter_and_device(sba, dba, &adapter, &device, TRUE))
242 return device_request_authentication(device, AUTH_TYPE_PASSKEY, 0,
249 struct btd_device *device;
251 if (!get_adapter_and_device(sba, dba, &adapter, &device, TRUE))
254 return device_request_authentication(device, AUTH_TYPE_NOTIFY,
262 struct btd_device *device;
269 if (!get_adapter_and_device(local, peer, &adapter, &device, create))
272 if (device)
273 device_bonding_complete(device, status);
280 struct btd_device *device;
287 if (!get_adapter_and_device(local, peer, &adapter, &device, create))
290 if (!device)
293 device_simple_pairing_complete(device, status);
362 struct btd_device *device;
372 if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE))
375 if (!device)
378 device_set_class(device, class);
386 struct btd_device *device;
406 if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE))
425 if (device)
426 device_set_name(device, name);
444 struct btd_device *device;
447 if (!get_adapter_and_device(local, peer, &adapter, &device, TRUE))
455 device_set_bonded(device, TRUE);
457 if (device_is_temporary(device))
458 device_set_temporary(device, FALSE);
467 struct btd_device *device;
469 if (!get_adapter_and_device(local, peer, &adapter, &device, TRUE))
474 adapter_add_connection(adapter, device);
480 struct btd_device *device;
485 if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE))
488 if (!device)
491 if (device_is_temporary(device))
492 adapter_remove_device(conn, adapter, device, TRUE);
498 struct btd_device *device;
502 if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE))
505 if (!device)
508 adapter_remove_connection(adapter, device);
511 /* Section reserved to device HCI callbacks */
516 struct btd_device *device;
518 if (!get_adapter_and_device(local, peer, &adapter, &device, TRUE))
521 device_set_paired(device, TRUE);