Searched refs:me_cl (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.10/drivers/misc/mei/ |
D | client.h | 19 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 …]
|
D | client.c | 24 void mei_me_cl_init(struct mei_me_client *me_cl) in mei_me_cl_init() argument 26 INIT_LIST_HEAD(&me_cl->list); in mei_me_cl_init() 27 kref_init(&me_cl->refcnt); in mei_me_cl_init() 39 struct mei_me_client *mei_me_cl_get(struct mei_me_client *me_cl) in mei_me_cl_get() argument 41 if (me_cl && kref_get_unless_zero(&me_cl->refcnt)) in mei_me_cl_get() 42 return me_cl; in mei_me_cl_get() 56 struct mei_me_client *me_cl = in mei_me_cl_release() local 59 kfree(me_cl); in mei_me_cl_release() 69 void mei_me_cl_put(struct mei_me_client *me_cl) in mei_me_cl_put() argument 71 if (me_cl) in mei_me_cl_put() [all …]
|
D | debugfs.c | 22 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 …]
|
D | bus.c | 57 if (!mei_me_cl_is_active(cl->me_cl)) { in __mei_cl_send() 445 return mei_me_cl_uuid(cldev->me_cl); in mei_cldev_uuid() 458 return mei_me_cl_ver(cldev->me_cl); in mei_cldev_ver() 590 if (!mei_me_cl_is_active(cldev->me_cl)) { in mei_cldev_enable() 600 ret = mei_cl_connect(cl, cldev->me_cl, NULL); in mei_cldev_enable() 696 uuid = mei_me_cl_uuid(cldev->me_cl); in mei_cl_device_find() 697 version = mei_me_cl_ver(cldev->me_cl); in mei_cl_device_find() 835 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in uuid_show() 845 u8 version = mei_me_cl_ver(cldev->me_cl); in version_show() 855 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in modalias_show() [all …]
|
D | main.c | 337 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 …]
|
D | bus-fixup.c | 49 if (cldev->me_cl->props.max_number_of_connections > 1) in number_of_connections() 257 cldev->me_cl->props.protocol_version = 0x2; in mei_wd() 398 struct mei_me_client *me_cl = NULL; in mei_nfc() local 415 me_cl = mei_me_cl_by_uuid(bus, &mei_nfc_info_guid); in mei_nfc() 416 if (!me_cl) { in mei_nfc() 422 ret = mei_cl_connect(cl, me_cl, NULL); in mei_nfc() 457 mei_me_cl_put(me_cl); in mei_nfc() 473 if (cldev->me_cl->props.vt_supported == 1) in vt_support() 501 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in mei_cl_bus_dev_fixup()
|
D | hbm.c | 403 struct mei_me_client *me_cl; in mei_hbm_me_cl_add() local 408 me_cl = kzalloc(sizeof(*me_cl), GFP_KERNEL); in mei_hbm_me_cl_add() 409 if (!me_cl) in mei_hbm_me_cl_add() 412 mei_me_cl_init(me_cl); in mei_hbm_me_cl_add() 414 me_cl->props = res->client_properties; in mei_hbm_me_cl_add() 415 me_cl->client_id = res->me_addr; in mei_hbm_me_cl_add() 416 me_cl->tx_flow_ctrl_creds = 0; in mei_hbm_me_cl_add() 418 mei_me_cl_add(dev, me_cl); in mei_hbm_me_cl_add() 718 struct mei_me_client *me_cl; in mei_hbm_add_single_tx_flow_ctrl_creds() local 721 me_cl = mei_me_cl_by_id(dev, fctrl->me_addr); in mei_hbm_add_single_tx_flow_ctrl_creds() [all …]
|
D | mei_dev.h | 251 struct mei_me_client *me_cl; member
|
/Linux-v5.10/include/linux/ |
D | mei_cl_bus.h | 46 struct mei_me_client *me_cl; member
|