Lines Matching refs:phy
54 struct nfc_mei_phy *phy = phy_id; in nfc_mei_phy_enable() local
58 if (phy->powered == 1) in nfc_mei_phy_enable()
61 r = mei_cl_enable_device(phy->device); in nfc_mei_phy_enable()
67 r = mei_cl_register_event_cb(phy->device, nfc_mei_event_cb, phy); in nfc_mei_phy_enable()
70 mei_cl_disable_device(phy->device); in nfc_mei_phy_enable()
71 phy->powered = 0; in nfc_mei_phy_enable()
76 phy->powered = 1; in nfc_mei_phy_enable()
84 struct nfc_mei_phy *phy = phy_id; in nfc_mei_phy_disable() local
88 mei_cl_disable_device(phy->device); in nfc_mei_phy_disable()
90 phy->powered = 0; in nfc_mei_phy_disable()
101 struct nfc_mei_phy *phy = phy_id; in nfc_mei_phy_write() local
106 r = mei_cl_send(phy->device, skb->data, skb->len); in nfc_mei_phy_write()
115 struct nfc_mei_phy *phy = context; in nfc_mei_event_cb() local
117 if (phy->hard_fault != 0) in nfc_mei_event_cb()
139 nfc_hci_recv_frame(phy->hdev, skb); in nfc_mei_event_cb()
153 struct nfc_mei_phy *phy; in nfc_mei_phy_alloc() local
155 phy = kzalloc(sizeof(struct nfc_mei_phy), GFP_KERNEL); in nfc_mei_phy_alloc()
156 if (!phy) in nfc_mei_phy_alloc()
159 phy->device = device; in nfc_mei_phy_alloc()
160 mei_cl_set_drvdata(device, phy); in nfc_mei_phy_alloc()
162 return phy; in nfc_mei_phy_alloc()
166 void nfc_mei_phy_free(struct nfc_mei_phy *phy) in nfc_mei_phy_free() argument
168 kfree(phy); in nfc_mei_phy_free()