Searched refs:me_cl (Results 1 – 8 of 8) sorted by relevance
/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 | 25 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 …]
|
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 | 59 if (!mei_me_cl_is_active(cl->me_cl)) { in __mei_cl_send() 531 return mei_me_cl_uuid(cldev->me_cl); in mei_cldev_uuid() 544 return mei_me_cl_ver(cldev->me_cl); in mei_cldev_ver() 736 if (!mei_me_cl_is_active(cldev->me_cl)) { in mei_cldev_enable() 746 ret = mei_cl_connect(cl, cldev->me_cl, NULL); in mei_cldev_enable() 847 uuid = mei_me_cl_uuid(cldev->me_cl); in mei_cl_device_find() 848 version = mei_me_cl_ver(cldev->me_cl); in mei_cl_device_find() 979 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in uuid_show() 989 u8 version = mei_me_cl_ver(cldev->me_cl); in version_show() 999 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in modalias_show() [all …]
|
D | main.c | 335 if (!mei_me_cl_is_active(cl->me_cl)) { in mei_write() 408 struct mei_me_client *me_cl; in mei_ioctl_connect_client() local 420 me_cl = mei_me_cl_by_uuid(dev, in_client_uuid); in mei_ioctl_connect_client() 421 if (!me_cl) { in mei_ioctl_connect_client() 428 if (me_cl->props.fixed_address) { in mei_ioctl_connect_client() 440 me_cl->client_id); in mei_ioctl_connect_client() 442 me_cl->props.protocol_version); in mei_ioctl_connect_client() 444 me_cl->props.max_msg_length); in mei_ioctl_connect_client() 447 client->max_msg_length = me_cl->props.max_msg_length; in mei_ioctl_connect_client() 448 client->protocol_version = me_cl->props.protocol_version; in mei_ioctl_connect_client() [all …]
|
D | bus-fixup.c | 59 if (cldev->me_cl->props.max_number_of_connections > 1) in number_of_connections() 299 cldev->me_cl->props.protocol_version = 0x2; in mei_wd() 443 struct mei_me_client *me_cl = NULL; in mei_nfc() local 460 me_cl = mei_me_cl_by_uuid(bus, &mei_nfc_info_guid); in mei_nfc() 461 if (!me_cl) { in mei_nfc() 467 ret = mei_cl_connect(cl, me_cl, NULL); in mei_nfc() 502 mei_me_cl_put(me_cl); in mei_nfc() 518 if (cldev->me_cl->props.vt_supported == 1) in vt_support() 569 const uuid_le *uuid = mei_me_cl_uuid(cldev->me_cl); in mei_cl_bus_dev_fixup()
|
D | hbm.c | 405 struct mei_me_client *me_cl; in mei_hbm_me_cl_add() local 410 me_cl = kzalloc(sizeof(*me_cl), GFP_KERNEL); in mei_hbm_me_cl_add() 411 if (!me_cl) in mei_hbm_me_cl_add() 414 mei_me_cl_init(me_cl); in mei_hbm_me_cl_add() 416 me_cl->props = res->client_properties; in mei_hbm_me_cl_add() 417 me_cl->client_id = res->me_addr; in mei_hbm_me_cl_add() 418 me_cl->tx_flow_ctrl_creds = 0; in mei_hbm_me_cl_add() 420 mei_me_cl_add(dev, me_cl); in mei_hbm_me_cl_add() 839 struct mei_me_client *me_cl; in mei_hbm_add_single_tx_flow_ctrl_creds() local 842 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 | 280 struct mei_me_client *me_cl; member
|