Lines Matching refs:cldev
107 r = mei_cldev_send(phy->cldev, (u8 *)&cmd, sizeof(struct mei_nfc_cmd)); in mei_nfc_if_version()
121 bytes_recv = mei_cldev_recv(phy->cldev, (u8 *)reply, if_version_length); in mei_nfc_if_version()
173 r = mei_cldev_send(phy->cldev, (u8 *)cmd, connect_length); in mei_nfc_connect()
179 bytes_recv = mei_cldev_recv(phy->cldev, (u8 *)reply, in mei_nfc_connect()
226 err = mei_cldev_send(phy->cldev, mei_buf, length + MEI_NFC_HEADER_SIZE); in mei_nfc_send()
266 received_length = mei_cldev_recv(phy->cldev, buf, length); in mei_nfc_recv()
284 static void nfc_mei_rx_cb(struct mei_cl_device *cldev) in nfc_mei_rx_cb() argument
286 struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev); in nfc_mei_rx_cb()
322 r = mei_cldev_enable(phy->cldev); in nfc_mei_phy_enable()
340 r = mei_cldev_register_rx_cb(phy->cldev, nfc_mei_rx_cb); in nfc_mei_phy_enable()
352 mei_cldev_disable(phy->cldev); in nfc_mei_phy_enable()
360 mei_cldev_disable(phy->cldev); in nfc_mei_phy_disable()
372 struct nfc_mei_phy *nfc_mei_phy_alloc(struct mei_cl_device *cldev) in nfc_mei_phy_alloc() argument
380 phy->cldev = cldev; in nfc_mei_phy_alloc()
382 mei_cldev_set_drvdata(cldev, phy); in nfc_mei_phy_alloc()
390 mei_cldev_disable(phy->cldev); in nfc_mei_phy_free()