Home
last modified time | relevance | path

Searched refs:cldev (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/drivers/misc/mei/
Dbus.c272 ssize_t mei_cldev_send_vtag(struct mei_cl_device *cldev, const u8 *buf, in mei_cldev_send_vtag() argument
275 struct mei_cl *cl = cldev->cl; in mei_cldev_send_vtag()
295 ssize_t mei_cldev_send_vtag_timeout(struct mei_cl_device *cldev, const u8 *buf, in mei_cldev_send_vtag_timeout() argument
298 struct mei_cl *cl = cldev->cl; in mei_cldev_send_vtag_timeout()
317 ssize_t mei_cldev_recv_vtag(struct mei_cl_device *cldev, u8 *buf, size_t length, in mei_cldev_recv_vtag() argument
320 struct mei_cl *cl = cldev->cl; in mei_cldev_recv_vtag()
339 ssize_t mei_cldev_recv_nonblock_vtag(struct mei_cl_device *cldev, u8 *buf, in mei_cldev_recv_nonblock_vtag() argument
342 struct mei_cl *cl = cldev->cl; in mei_cldev_recv_nonblock_vtag()
360 ssize_t mei_cldev_recv_timeout(struct mei_cl_device *cldev, u8 *buf, size_t length, in mei_cldev_recv_timeout() argument
363 return mei_cldev_recv_vtag_timeout(cldev, buf, length, NULL, timeout); in mei_cldev_recv_timeout()
[all …]
Dbus-fixup.c57 static void number_of_connections(struct mei_cl_device *cldev) in number_of_connections() argument
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 cldev->do_match = 0; in blacklist()
78 static void whitelist(struct mei_cl_device *cldev) in whitelist() argument
80 cldev->do_match = 1; in whitelist()
110 static int mei_osver(struct mei_cl_device *cldev) in mei_osver() argument
133 return __mei_cl_send_timeout(cldev->cl, buf, size, 0, mode, MKHI_SEND_MAX_TIMEOUT_MSEC); in mei_osver()
140 static int mei_fwver(struct mei_cl_device *cldev) in mei_fwver() argument
[all …]
Dclient.c1328 if ((cl->cldev && mei_cldev_enabled(cl->cldev)) || in mei_cl_fp_by_vtag()
1347 if ((cl->cldev && mei_cldev_enabled(cl->cldev)) || in mei_cl_reset_read_by_vtag()
Dmei_dev.h321 struct mei_cl_device *cldev; member
/linux-6.12.1/drivers/misc/mei/pxp/
Dmei_pxp.c27 static inline int mei_pxp_reenable(const struct device *dev, struct mei_cl_device *cldev) in mei_pxp_reenable() argument
32 ret = mei_cldev_disable(cldev); in mei_pxp_reenable()
39 ret = mei_cldev_enable(cldev); in mei_pxp_reenable()
65 struct mei_cl_device *cldev; in mei_pxp_send_message() local
72 cldev = to_mei_cl_device(dev); in mei_pxp_send_message()
74 byte = mei_cldev_send_timeout(cldev, message, size, timeout_ms); in mei_pxp_send_message()
83 ret = mei_pxp_reenable(dev, cldev); in mei_pxp_send_message()
115 struct mei_cl_device *cldev; in mei_pxp_receive_message() local
123 cldev = to_mei_cl_device(dev); in mei_pxp_receive_message()
126 byte = mei_cldev_recv_timeout(cldev, buffer, size, timeout_ms); in mei_pxp_receive_message()
[all …]
/linux-6.12.1/include/linux/
Dmei_cl_bus.h16 typedef void (*mei_cldev_cb_t)(struct mei_cl_device *cldev);
70 int (*probe)(struct mei_cl_device *cldev,
72 void (*remove)(struct mei_cl_device *cldev);
95 ssize_t mei_cldev_send(struct mei_cl_device *cldev, const u8 *buf,
97 ssize_t mei_cldev_send_timeout(struct mei_cl_device *cldev, const u8 *buf,
99 ssize_t mei_cldev_recv(struct mei_cl_device *cldev, u8 *buf, size_t length);
100 ssize_t mei_cldev_recv_nonblock(struct mei_cl_device *cldev, u8 *buf,
102 ssize_t mei_cldev_recv_timeout(struct mei_cl_device *cldev, u8 *buf, size_t length,
104 ssize_t mei_cldev_send_vtag(struct mei_cl_device *cldev, const u8 *buf,
106 ssize_t mei_cldev_send_vtag_timeout(struct mei_cl_device *cldev, const u8 *buf,
[all …]
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mei/
Dmain.c177 struct mei_cl_device *cldev; member
234 static void iwl_mei_free_shared_mem(struct mei_cl_device *cldev) in iwl_mei_free_shared_mem() argument
236 struct iwl_mei *mei = mei_cldev_get_drvdata(cldev); in iwl_mei_free_shared_mem()
238 if (mei_cldev_dma_unmap(cldev)) in iwl_mei_free_shared_mem()
239 dev_err(&cldev->dev, "Couldn't unmap the shared mem properly\n"); in iwl_mei_free_shared_mem()
245 static int iwl_mei_alloc_mem_for_version(struct mei_cl_device *cldev, in iwl_mei_alloc_mem_for_version() argument
248 struct iwl_mei *mei = mei_cldev_get_drvdata(cldev); in iwl_mei_alloc_mem_for_version()
255 mem->ctrl = mei_cldev_dma_map(cldev, HBM_DMA_BUF_ID_WLAN, mem_size); in iwl_mei_alloc_mem_for_version()
269 static int iwl_mei_alloc_shared_mem(struct mei_cl_device *cldev) in iwl_mei_alloc_shared_mem() argument
280 ret = iwl_mei_alloc_mem_for_version(cldev, IWL_MEI_SAP_VERSION_4); in iwl_mei_alloc_shared_mem()
[all …]
/linux-6.12.1/drivers/misc/mei/gsc_proxy/
Dmei_gsc_proxy.c73 struct mei_cl_device *cldev = to_mei_cl_device(dev); in mei_component_master_bind() local
74 struct i915_gsc_proxy_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_component_master_bind()
83 struct mei_cl_device *cldev = to_mei_cl_device(dev); in mei_component_master_unbind() local
84 struct i915_gsc_proxy_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_component_master_unbind()
131 static int mei_gsc_proxy_probe(struct mei_cl_device *cldev, in mei_gsc_proxy_probe() argument
138 ret = mei_cldev_enable(cldev); in mei_gsc_proxy_probe()
140 dev_err(&cldev->dev, "mei_cldev_enable Failed. %d\n", ret); in mei_gsc_proxy_probe()
150 component_match_add_typed(&cldev->dev, &master_match, in mei_gsc_proxy_probe()
157 mei_cldev_set_drvdata(cldev, comp_master); in mei_gsc_proxy_probe()
158 ret = component_master_add_with_match(&cldev->dev, in mei_gsc_proxy_probe()
[all …]
/linux-6.12.1/drivers/misc/mei/hdcp/
Dmei_hdcp.c46 struct mei_cl_device *cldev; in mei_hdcp_initiate_session() local
52 cldev = to_mei_cl_device(dev); in mei_hdcp_initiate_session()
65 byte = mei_cldev_send(cldev, (u8 *)&session_init_in, in mei_hdcp_initiate_session()
72 byte = mei_cldev_recv(cldev, (u8 *)&session_init_out, in mei_hdcp_initiate_session()
116 struct mei_cl_device *cldev; in mei_hdcp_verify_receiver_cert_prepare_km() local
122 cldev = to_mei_cl_device(dev); in mei_hdcp_verify_receiver_cert_prepare_km()
138 byte = mei_cldev_send(cldev, (u8 *)&verify_rxcert_in, in mei_hdcp_verify_receiver_cert_prepare_km()
145 byte = mei_cldev_recv(cldev, (u8 *)&verify_rxcert_out, in mei_hdcp_verify_receiver_cert_prepare_km()
188 struct mei_cl_device *cldev; in mei_hdcp_verify_hprime() local
194 cldev = to_mei_cl_device(dev); in mei_hdcp_verify_hprime()
[all …]
/linux-6.12.1/drivers/watchdog/
Dmei_wdt.c95 struct mei_cl_device *cldev; member
179 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_ping()
206 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_stop()
364 if (!wdt || !wdt->cldev) in mei_wdt_register()
367 dev = &wdt->cldev->dev; in mei_wdt_register()
410 static void mei_wdt_rx(struct mei_cl_device *cldev) in mei_wdt_rx() argument
412 struct mei_wdt *wdt = mei_cldev_get_drvdata(cldev); in mei_wdt_rx()
417 ret = mei_cldev_recv(wdt->cldev, (u8 *)&res, res_len); in mei_wdt_rx()
419 dev_err(&cldev->dev, "failure in recv %d\n", ret); in mei_wdt_rx()
428 dev_err(&cldev->dev, "recv small data %d\n", ret); in mei_wdt_rx()
[all …]
/linux-6.12.1/drivers/nfc/
Dmei_phy.c107 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()
[all …]
Dmei_phy.h32 struct mei_cl_device *cldev; member
/linux-6.12.1/drivers/media/pci/intel/ivsc/
Dmei_ace.c163 struct mei_cl_device *cldev; member
237 ret = mei_cldev_send(ace->cldev, (u8 *)cmd, len); in mei_ace_send()
361 static void mei_ace_rx(struct mei_cl_device *cldev) in mei_ace_rx() argument
363 struct mei_ace *ace = mei_cldev_get_drvdata(cldev); in mei_ace_rx()
368 ret = mei_cldev_recv(cldev, (u8 *)&event, sizeof(event)); in mei_ace_rx()
370 dev_err(&cldev->dev, "recv error: %d\n", ret); in mei_ace_rx()
388 dev_dbg(&cldev->dev, "firmware ready\n"); in mei_ace_rx()
397 struct device *dev = &ace->cldev->dev; in mei_ace_setup_dev_link()
443 dev = &ace->cldev->dev; in mei_ace_post_probe_work()
458 static int mei_ace_probe(struct mei_cl_device *cldev, in mei_ace_probe() argument
[all …]
Dmei_csi.c114 struct mei_cl_device *cldev; member
177 ret = mei_cldev_send(csi->cldev, buf, len); in mei_csi_send()
257 static void mei_csi_rx(struct mei_cl_device *cldev) in mei_csi_rx() argument
259 struct mei_csi *csi = mei_cldev_get_drvdata(cldev); in mei_csi_rx()
263 ret = mei_cldev_recv(cldev, (u8 *)&notif, sizeof(notif)); in mei_csi_rx()
265 dev_err(&cldev->dev, "recv error: %d\n", ret); in mei_csi_rx()
295 dev_err(&csi->cldev->dev, in mei_csi_set_stream()
321 dev_warn(&csi->cldev->dev, in mei_csi_set_stream()
484 dev_err(&csi->cldev->dev, in mei_csi_g_volatile_ctrl()
601 struct device *dev = &csi->cldev->dev; in mei_csi_parse_firmware()
[all …]
/linux-6.12.1/drivers/nfc/pn544/
Dmei.c19 static int pn544_mei_probe(struct mei_cl_device *cldev, in pn544_mei_probe() argument
25 phy = nfc_mei_phy_alloc(cldev); in pn544_mei_probe()
41 static void pn544_mei_remove(struct mei_cl_device *cldev) in pn544_mei_remove() argument
43 struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev); in pn544_mei_remove()
/linux-6.12.1/drivers/nfc/microread/
Dmei.c20 static int microread_mei_probe(struct mei_cl_device *cldev, in microread_mei_probe() argument
26 phy = nfc_mei_phy_alloc(cldev); in microread_mei_probe()
42 static void microread_mei_remove(struct mei_cl_device *cldev) in microread_mei_remove() argument
44 struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev); in microread_mei_remove()
/linux-6.12.1/Documentation/driver-api/mei/
Dmei-client-bus.rst146 static void conntact_rx_cb(struct mei_cl_device *cldev)
148 struct contact *c = mei_cldev_get_drvdata(cldev);
152 payload_sz = mei_cldev_recv(cldev, payload, MAX_PAYLOAD)
/linux-6.12.1/net/atm/
Datm_sysfs.c12 #define to_atm_dev(cldev) container_of(cldev, struct atm_dev, class_dev) argument