Lines Matching refs:mcl
229 static gint cmp_dev_mcl(gconstpointer a, gconstpointer mcl)
233 if (mcl == device->mcl)
300 if (!hdp_device->mcl)
303 mcap_close_mcl(hdp_device->mcl, FALSE);
304 mcap_mcl_unref(hdp_device->mcl);
305 hdp_device->mcl = NULL;
816 if (!dev->mcl)
819 mcap_close_mcl(dev->mcl, cache);
1050 static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,
1070 * configuration is received we shall close the MCL when
1116 * configuration is received we shall close the MCL when
1179 if (!device->mcl)
1182 ret = mcap_mcl_set_cb(device->mcl, device, err,
1194 error("Can't set mcl callbacks, closing mcl");
1200 static void mcl_connected(struct mcap_mcl *mcl, gpointer data)
1206 mcap_mcl_get_addr(mcl, &addr);
1225 hdp_device->mcl = mcap_mcl_ref(mcl);
1228 DBG("New mcl connected from %s", device_get_path(hdp_device->dev));
1233 static void mcl_reconnected(struct mcap_mcl *mcl, gpointer data)
1238 l = g_slist_find_custom(devices, mcl, cmp_dev_mcl);
1245 DBG("MCL reconnected %s", device_get_path(hdp_device->dev));
1250 static void mcl_disconnected(struct mcap_mcl *mcl, gpointer data)
1255 l = g_slist_find_custom(devices, mcl, cmp_dev_mcl);
1262 DBG("Mcl disconnected %s", device_get_path(hdp_device->dev));
1265 static void mcl_uncached(struct mcap_mcl *mcl, gpointer data)
1271 l = g_slist_find_custom(devices, mcl, cmp_dev_mcl);
1287 DBG("Mcl uncached %s", path);
1431 error("Echo channel cannot be deleted: mcl closed");
1785 if (!data->dev->mcl) {
1787 "Mcl was closed");
1793 if (mcap_create_mdl(data->dev->mcl, data->mdep, data->config,
1823 if (device->mcl_conn && device->mcl) {
1824 if (mcap_create_mdl(device->mcl, data->mdep, data->config,