Home
last modified time | relevance | path

Searched refs:me_cl (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/drivers/misc/mei/
Dclient.h19 void mei_me_cl_init(struct mei_me_client *me_cl);
20 void mei_me_cl_put(struct mei_me_client *me_cl);
21 struct mei_me_client *mei_me_cl_get(struct mei_me_client *me_cl);
23 void mei_me_cl_add(struct mei_device *dev, struct mei_me_client *me_cl);
24 void mei_me_cl_del(struct mei_device *dev, struct mei_me_client *me_cl);
43 static inline bool mei_me_cl_is_active(const struct mei_me_client *me_cl) in mei_me_cl_is_active() argument
45 return !list_empty_careful(&me_cl->list); in mei_me_cl_is_active()
55 static inline const uuid_le *mei_me_cl_uuid(const struct mei_me_client *me_cl) in mei_me_cl_uuid() argument
57 return &me_cl->props.protocol_name; in mei_me_cl_uuid()
67 static inline u8 mei_me_cl_ver(const struct mei_me_client *me_cl) in mei_me_cl_ver() argument
[all …]
Ddebugfs.c22 struct mei_me_client *me_cl; in mei_dbgfs_meclients_show() local
36 list_for_each_entry(me_cl, &dev->me_clients, list) { in mei_dbgfs_meclients_show()
37 if (!mei_me_cl_get(me_cl)) in mei_dbgfs_meclients_show()
41 i++, me_cl->client_id, in mei_dbgfs_meclients_show()
42 me_cl->props.fixed_address, in mei_dbgfs_meclients_show()
43 &me_cl->props.protocol_name, in mei_dbgfs_meclients_show()
44 me_cl->props.max_number_of_connections, in mei_dbgfs_meclients_show()
45 me_cl->props.max_msg_length, in mei_dbgfs_meclients_show()
46 me_cl->props.single_recv_buf, in mei_dbgfs_meclients_show()
47 kref_read(&me_cl->refcnt), in mei_dbgfs_meclients_show()
[all …]
Dclient.c25 void mei_me_cl_init(struct mei_me_client *me_cl) in mei_me_cl_init() argument
27 INIT_LIST_HEAD(&me_cl->list); in mei_me_cl_init()
28 kref_init(&me_cl->refcnt); in mei_me_cl_init()
40 struct mei_me_client *mei_me_cl_get(struct mei_me_client *me_cl) in mei_me_cl_get() argument
42 if (me_cl && kref_get_unless_zero(&me_cl->refcnt)) in mei_me_cl_get()
43 return me_cl; in mei_me_cl_get()
57 struct mei_me_client *me_cl = in mei_me_cl_release() local
60 kfree(me_cl); in mei_me_cl_release()
70 void mei_me_cl_put(struct mei_me_client *me_cl) in mei_me_cl_put() argument
72 if (me_cl) in mei_me_cl_put()
[all …]
Dbus.c80 if (!mei_me_cl_is_active(cl->me_cl)) { in __mei_cl_send_timeout()
568 return mei_me_cl_uuid(cldev->me_cl); in mei_cldev_uuid()
581 return mei_me_cl_ver(cldev->me_cl); in mei_cldev_ver()
773 if (!mei_me_cl_is_active(cldev->me_cl)) { in mei_cldev_enable()
783 ret = mei_cl_connect(cl, cldev->me_cl, NULL); in mei_cldev_enable()
1009 uuid = mei_me_cl_uuid(cldev->me_cl); in mei_cl_device_find()
1010 version = mei_me_cl_ver(cldev->me_cl); in mei_cl_device_find()
1135 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in uuid_show()
1145 u8 version = mei_me_cl_ver(cldev->me_cl); in version_show()
1155 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in modalias_show()
[all …]
Dmain.c337 if (!mei_me_cl_is_active(cl->me_cl)) { in mei_write()
410 struct mei_me_client *me_cl; in mei_ioctl_connect_client() local
422 me_cl = mei_me_cl_by_uuid(dev, in_client_uuid); in mei_ioctl_connect_client()
423 if (!me_cl) { in mei_ioctl_connect_client()
430 if (me_cl->props.fixed_address) { in mei_ioctl_connect_client()
442 me_cl->client_id); in mei_ioctl_connect_client()
444 me_cl->props.protocol_version); in mei_ioctl_connect_client()
446 me_cl->props.max_msg_length); in mei_ioctl_connect_client()
449 client->max_msg_length = me_cl->props.max_msg_length; in mei_ioctl_connect_client()
450 client->protocol_version = me_cl->props.protocol_version; in mei_ioctl_connect_client()
[all …]
Dbus-fixup.c59 if (cldev->me_cl->props.max_number_of_connections > 1) in number_of_connections()
307 cldev->me_cl->props.protocol_version = 0x2; in mei_wd()
451 struct mei_me_client *me_cl = NULL; in mei_nfc() local
468 me_cl = mei_me_cl_by_uuid(bus, &mei_nfc_info_guid); in mei_nfc()
469 if (!me_cl) { in mei_nfc()
475 ret = mei_cl_connect(cl, me_cl, NULL); in mei_nfc()
510 mei_me_cl_put(me_cl); in mei_nfc()
526 if (cldev->me_cl->props.vt_supported == 1) in vt_support()
577 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in mei_cl_bus_dev_fixup()
Dhbm.c409 struct mei_me_client *me_cl; in mei_hbm_me_cl_add() local
414 me_cl = kzalloc(sizeof(*me_cl), GFP_KERNEL); in mei_hbm_me_cl_add()
415 if (!me_cl) in mei_hbm_me_cl_add()
418 mei_me_cl_init(me_cl); in mei_hbm_me_cl_add()
420 me_cl->props = res->client_properties; in mei_hbm_me_cl_add()
421 me_cl->client_id = res->me_addr; in mei_hbm_me_cl_add()
422 me_cl->tx_flow_ctrl_creds = 0; in mei_hbm_me_cl_add()
424 mei_me_cl_add(dev, me_cl); in mei_hbm_me_cl_add()
843 struct mei_me_client *me_cl; in mei_hbm_add_single_tx_flow_ctrl_creds() local
846 me_cl = mei_me_cl_by_id(dev, fctrl->me_addr); in mei_hbm_add_single_tx_flow_ctrl_creds()
[all …]
Dmei_dev.h291 struct mei_me_client *me_cl; member
/Linux-v6.6/include/linux/
Dmei_cl_bus.h47 struct mei_me_client *me_cl; member