Lines Matching refs:cldev

55 static void number_of_connections(struct mei_cl_device *cldev)  in number_of_connections()  argument
57 dev_dbg(&cldev->dev, "running hook %s\n", __func__); in number_of_connections()
59 if (cldev->me_cl->props.max_number_of_connections > 1) in number_of_connections()
60 cldev->do_match = 0; in number_of_connections()
68 static void blacklist(struct mei_cl_device *cldev) in blacklist() argument
70 dev_dbg(&cldev->dev, "running hook %s\n", __func__); in blacklist()
72 cldev->do_match = 0; in blacklist()
130 static int mei_osver(struct mei_cl_device *cldev) in mei_osver() argument
153 return __mei_cl_send(cldev->cl, buf, size, mode); in mei_osver()
161 static int mei_fwver(struct mei_cl_device *cldev) in mei_fwver() argument
174 ret = __mei_cl_send(cldev->cl, buf, sizeof(struct mkhi_msg_hdr), in mei_fwver()
177 dev_err(&cldev->dev, "Could not send ReqFWVersion cmd\n"); in mei_fwver()
182 bytes_recv = __mei_cl_recv(cldev->cl, buf, sizeof(buf), 0, in mei_fwver()
189 dev_err(&cldev->dev, "Could not read FW version\n"); in mei_fwver()
194 memset(cldev->bus->fw_ver, 0, sizeof(cldev->bus->fw_ver)); in mei_fwver()
198 dev_dbg(&cldev->dev, "FW version%d %d:%d.%d.%d.%d\n", in mei_fwver()
203 cldev->bus->fw_ver[i].platform = fwver->ver[i].platform; in mei_fwver()
204 cldev->bus->fw_ver[i].major = fwver->ver[i].major; in mei_fwver()
205 cldev->bus->fw_ver[i].minor = fwver->ver[i].minor; in mei_fwver()
206 cldev->bus->fw_ver[i].hotfix = fwver->ver[i].hotfix; in mei_fwver()
207 cldev->bus->fw_ver[i].buildno = fwver->ver[i].buildno; in mei_fwver()
213 static void mei_mkhi_fix(struct mei_cl_device *cldev) in mei_mkhi_fix() argument
217 ret = mei_cldev_enable(cldev); in mei_mkhi_fix()
221 ret = mei_fwver(cldev); in mei_mkhi_fix()
223 dev_err(&cldev->dev, "FW version command failed %d\n", ret); in mei_mkhi_fix()
225 if (cldev->bus->hbm_f_os_supported) { in mei_mkhi_fix()
226 ret = mei_osver(cldev); in mei_mkhi_fix()
228 dev_err(&cldev->dev, "OS version command failed %d\n", in mei_mkhi_fix()
231 mei_cldev_disable(cldev); in mei_mkhi_fix()
243 static void mei_wd(struct mei_cl_device *cldev) in mei_wd() argument
245 struct pci_dev *pdev = to_pci_dev(cldev->dev.parent); in mei_wd()
247 dev_dbg(&cldev->dev, "running hook %s\n", __func__); in mei_wd()
251 cldev->me_cl->props.protocol_version = 0x2; in mei_wd()
253 cldev->do_match = 1; in mei_wd()
256 static inline void mei_wd(struct mei_cl_device *cldev) {} in mei_wd() argument
390 static void mei_nfc(struct mei_cl_device *cldev) in mei_nfc() argument
399 bus = cldev->bus; in mei_nfc()
401 dev_dbg(&cldev->dev, "running hook %s\n", __func__); in mei_nfc()
422 dev_err(&cldev->dev, "Can't connect to the NFC INFO ME ret = %d\n", in mei_nfc()
437 dev_err(&cldev->dev, "Can't get the NFC interface version ret = %d\n", in mei_nfc()
443 strlcpy(cldev->name, radio_name, sizeof(cldev->name)); in mei_nfc()
459 cldev->do_match = 0; in mei_nfc()
461 dev_dbg(bus->dev, "end of fixup match = %d\n", cldev->do_match); in mei_nfc()
469 void (*hook)(struct mei_cl_device *cldev);
483 void mei_cl_bus_dev_fixup(struct mei_cl_device *cldev) in mei_cl_bus_dev_fixup() argument
486 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in mei_cl_bus_dev_fixup()
494 f->hook(cldev); in mei_cl_bus_dev_fixup()