Lines Matching refs:cl

107 	struct mei_cl *cl;  member
142 if (ndev->cl) { in mei_nfc_free()
143 list_del(&ndev->cl->device_link); in mei_nfc_free()
144 mei_cl_unlink(ndev->cl); in mei_nfc_free()
145 kfree(ndev->cl); in mei_nfc_free()
161 if (!ndev->cl) in mei_nfc_build_bus_name()
164 dev = ndev->cl->dev; in mei_nfc_build_bus_name()
205 struct mei_cl *cl; in mei_nfc_connect() local
212 cl = ndev->cl; in mei_nfc_connect()
213 dev = cl->dev; in mei_nfc_connect()
240 ret = __mei_cl_send(cl, (u8 *)cmd, connect_length); in mei_nfc_connect()
246 bytes_recv = __mei_cl_recv(cl, (u8 *)reply, connect_resp_length); in mei_nfc_connect()
272 struct mei_cl *cl; in mei_nfc_if_version() local
280 cl = ndev->cl_info; in mei_nfc_if_version()
281 dev = cl->dev; in mei_nfc_if_version()
288 ret = __mei_cl_send(cl, (u8 *)&cmd, sizeof(struct mei_nfc_cmd)); in mei_nfc_if_version()
302 bytes_recv = __mei_cl_recv(cl, (u8 *)reply, if_version_length); in mei_nfc_if_version()
327 dev = ndev->cl->dev; in mei_nfc_enable()
352 dev = ndev->cl->dev; in mei_nfc_send()
367 err = __mei_cl_send(ndev->cl, mei_buf, length + MEI_NFC_HEADER_SIZE); in mei_nfc_send()
391 received_length = __mei_cl_recv(ndev->cl, buf, length); in mei_nfc_recv()
485 struct mei_cl *cl_info, *cl; in mei_nfc_host_init() local
493 cl = mei_cl_bus_find_cl_by_uuid(dev, mei_nfc_guid); in mei_nfc_host_init()
494 if (cl) in mei_nfc_host_init()
534 cl = mei_cl_alloc_linked(dev, MEI_HOST_CLIENT_ID_ANY); in mei_nfc_host_init()
535 if (IS_ERR(cl)) { in mei_nfc_host_init()
536 ret = PTR_ERR(cl); in mei_nfc_host_init()
540 cl->me_client_id = me_cl->client_id; in mei_nfc_host_init()
541 cl->cl_uuid = me_cl->props.protocol_name; in mei_nfc_host_init()
545 list_add_tail(&cl->device_link, &dev->device_list); in mei_nfc_host_init()
547 ndev->cl = cl; in mei_nfc_host_init()
567 struct mei_cl *cl; in mei_nfc_host_exit() local
570 cl = mei_cl_bus_find_cl_by_uuid(dev, mei_nfc_guid); in mei_nfc_host_exit()
571 if (!cl) in mei_nfc_host_exit()
574 cldev = cl->device; in mei_nfc_host_exit()