Lines Matching refs:bonding
124 struct bonding_req *bonding; member
717 static void bonding_request_cancel(struct bonding_req *bonding) in bonding_request_cancel() argument
719 struct btd_device *device = bonding->device; in bonding_request_cancel()
729 if (device->bonding) in device_request_disconnect()
730 bonding_request_cancel(device->bonding); in device_request_disconnect()
1082 if (device->bonding) { in device_remove()
1961 static void bonding_request_free(struct bonding_req *bonding) in bonding_request_free() argument
1965 if (!bonding) in bonding_request_free()
1968 if (bonding->listener_id) in bonding_request_free()
1969 g_dbus_remove_watch(bonding->conn, bonding->listener_id); in bonding_request_free()
1971 if (bonding->msg) in bonding_request_free()
1972 dbus_message_unref(bonding->msg); in bonding_request_free()
1974 if (bonding->conn) in bonding_request_free()
1975 dbus_connection_unref(bonding->conn); in bonding_request_free()
1977 if (bonding->io) in bonding_request_free()
1978 g_io_channel_unref(bonding->io); in bonding_request_free()
1980 device = bonding->device; in bonding_request_free()
1981 g_free(bonding); in bonding_request_free()
1986 device->bonding = NULL; in bonding_request_free()
2027 struct bonding_req *bonding; in bonding_request_new() local
2053 bonding = g_new0(struct bonding_req, 1); in bonding_request_new()
2055 bonding->conn = dbus_connection_ref(conn); in bonding_request_new()
2056 bonding->msg = dbus_message_ref(msg); in bonding_request_new()
2060 return bonding; in bonding_request_new()
2074 if (device->bonding) { in create_bond_req_exit()
2075 device->bonding->listener_id = 0; in create_bond_req_exit()
2089 struct bonding_req *bonding; in device_create_bonding() local
2097 if (device->bonding) in device_create_bonding()
2114 bonding = bonding_request_new(conn, msg, device, agent_path, in device_create_bonding()
2116 if (!bonding) { in device_create_bonding()
2121 bonding->listener_id = g_dbus_add_disconnect_watch(conn, in device_create_bonding()
2126 device->bonding = bonding; in device_create_bonding()
2127 bonding->device = device; in device_create_bonding()
2148 struct bonding_req *bonding = device->bonding; in device_bonding_complete() local
2152 DBG("bonding %p status 0x%02x", bonding, status); in device_bonding_complete()
2181 if (bonding) { in device_bonding_complete()
2190 device_browse_sdp(device, bonding->conn, bonding->msg, in device_bonding_complete()
2193 bonding_request_free(bonding); in device_bonding_complete()
2213 if (device->bonding && device->bonding->msg) in device_is_creating()
2214 msg = device->bonding->msg; in device_is_creating()
2234 struct bonding_req *bonding = device->bonding; in device_is_bonding() local
2236 if (!device->bonding) in device_is_bonding()
2242 return g_str_equal(sender, dbus_message_get_sender(bonding->msg)); in device_is_bonding()
2247 struct bonding_req *bonding = device->bonding; in device_cancel_bonding() local
2251 if (!bonding) in device_cancel_bonding()
2260 reply = new_authentication_return(bonding->msg, status); in device_cancel_bonding()
2261 g_dbus_send_message(bonding->conn, reply); in device_cancel_bonding()
2263 bonding_request_cancel(bonding); in device_cancel_bonding()
2264 bonding_request_free(bonding); in device_cancel_bonding()