Lines Matching refs:bus
124 struct mei_device *bus; in mei_nfc_if_version() local
134 bus = cl->dev; in mei_nfc_if_version()
136 WARN_ON(mutex_is_locked(&bus->device_lock)); in mei_nfc_if_version()
140 dev_err(bus->dev, "Could not send IF version cmd\n"); in mei_nfc_if_version()
155 dev_err(bus->dev, "Could not read IF version\n"); in mei_nfc_if_version()
162 dev_info(bus->dev, "NFC MEI VERSION: IVN 0x%x Vendor ID 0x%x Type 0x%x\n", in mei_nfc_if_version()
202 struct mei_device *bus; in mei_nfc() local
209 bus = cldev->bus; in mei_nfc()
211 dev_dbg(bus->dev, "running hook %s: %pUl match=%d\n", in mei_nfc()
214 mutex_lock(&bus->device_lock); in mei_nfc()
216 cl = mei_cl_alloc_linked(bus, MEI_HOST_CLIENT_ID_ANY); in mei_nfc()
220 dev_err(bus->dev, "nfc hook alloc failed %d\n", ret); in mei_nfc()
224 me_cl = mei_me_cl_by_uuid(bus, &mei_nfc_info_guid); in mei_nfc()
227 dev_err(bus->dev, "Cannot find nfc info %d\n", ret); in mei_nfc()
238 mutex_unlock(&bus->device_lock); in mei_nfc()
253 dev_dbg(bus->dev, "nfc radio %s\n", radio_name); in mei_nfc()
257 mutex_lock(&bus->device_lock); in mei_nfc()
259 dev_err(bus->dev, "Can't disconnect the NFC INFO ME\n"); in mei_nfc()
265 mutex_unlock(&bus->device_lock); in mei_nfc()
272 dev_dbg(bus->dev, "end of fixup match = %d\n", cldev->do_match); in mei_nfc()