Lines Matching refs:cldev

45  * @cldev: me clients device
47 static void number_of_connections(struct mei_cl_device *cldev)
49 if (cldev->me_cl->props.max_number_of_connections > 1)
50 cldev->do_match = 0;
56 * @cldev: me clients device
58 static void blacklist(struct mei_cl_device *cldev)
60 cldev->do_match = 0;
66 * @cldev: me clients device
68 static void whitelist(struct mei_cl_device *cldev)
70 cldev->do_match = 1;
128 static int mei_osver(struct mei_cl_device *cldev)
151 return __mei_cl_send(cldev->cl, buf, size, mode);
159 static int mei_fwver(struct mei_cl_device *cldev)
172 ret = __mei_cl_send(cldev->cl, (u8 *)&req, sizeof(req),
175 dev_err(&cldev->dev, "Could not send ReqFWVersion cmd ret = %d\n", ret);
180 bytes_recv = __mei_cl_recv(cldev->cl, buf, sizeof(buf), 0,
187 dev_err(&cldev->dev, "Could not read FW version ret = %d\n", bytes_recv);
193 memset(cldev->bus->fw_ver, 0, sizeof(cldev->bus->fw_ver));
197 dev_dbg(&cldev->dev, "FW version%d %d:%d.%d.%d.%d\n",
202 cldev->bus->fw_ver[i].platform = fwver->ver[i].platform;
203 cldev->bus->fw_ver[i].major = fwver->ver[i].major;
204 cldev->bus->fw_ver[i].minor = fwver->ver[i].minor;
205 cldev->bus->fw_ver[i].hotfix = fwver->ver[i].hotfix;
206 cldev->bus->fw_ver[i].buildno = fwver->ver[i].buildno;
212 static void mei_mkhi_fix(struct mei_cl_device *cldev)
217 if (!cldev->bus->fw_f_fw_ver_supported &&
218 !cldev->bus->hbm_f_os_supported)
221 ret = mei_cldev_enable(cldev);
225 if (cldev->bus->fw_f_fw_ver_supported) {
226 ret = mei_fwver(cldev);
228 dev_err(&cldev->dev, "FW version command failed %d\n",
232 if (cldev->bus->hbm_f_os_supported) {
233 ret = mei_osver(cldev);
235 dev_err(&cldev->dev, "OS version command failed %d\n",
238 mei_cldev_disable(cldev);
245 * @cldev: me clients device
250 static void mei_wd(struct mei_cl_device *cldev)
252 struct pci_dev *pdev = to_pci_dev(cldev->dev.parent);
257 cldev->me_cl->props.protocol_version = 0x2;
259 cldev->do_match = 1;
262 static inline void mei_wd(struct mei_cl_device *cldev) {}
392 * @cldev: me client device (nfc)
394 static void mei_nfc(struct mei_cl_device *cldev)
403 bus = cldev->bus;
424 dev_err(&cldev->dev, "Can't connect to the NFC INFO ME ret = %d\n",
439 dev_err(&cldev->dev, "Can't get the NFC interface version ret = %d\n",
445 strlcpy(cldev->name, radio_name, sizeof(cldev->name));
461 cldev->do_match = 0;
463 dev_dbg(bus->dev, "end of fixup match = %d\n", cldev->do_match);
469 * @cldev: me clients device
471 static void vt_support(struct mei_cl_device *cldev)
473 if (cldev->me_cl->props.vt_supported == 1)
474 cldev->do_match = 1;
482 void (*hook)(struct mei_cl_device *cldev);
496 * @cldev: me client device
498 void mei_cl_bus_dev_fixup(struct mei_cl_device *cldev)
501 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl);
509 f->hook(cldev);