Searched refs:me_cl (Results 1 – 9 of 9) sorted by relevance
/linux-4.1.27/drivers/misc/mei/ |
D | client.c | 34 void mei_me_cl_init(struct mei_me_client *me_cl) in mei_me_cl_init() argument 36 INIT_LIST_HEAD(&me_cl->list); in mei_me_cl_init() 37 kref_init(&me_cl->refcnt); in mei_me_cl_init() 49 struct mei_me_client *mei_me_cl_get(struct mei_me_client *me_cl) in mei_me_cl_get() argument 51 if (me_cl && kref_get_unless_zero(&me_cl->refcnt)) in mei_me_cl_get() 52 return me_cl; in mei_me_cl_get() 66 struct mei_me_client *me_cl = in mei_me_cl_release() local 69 kfree(me_cl); in mei_me_cl_release() 79 void mei_me_cl_put(struct mei_me_client *me_cl) in mei_me_cl_put() argument 81 if (me_cl) in mei_me_cl_put() [all …]
|
D | debugfs.c | 31 struct mei_me_client *me_cl; in mei_dbgfs_read_meclients() local 42 list_for_each_entry(me_cl, &dev->me_clients, list) in mei_dbgfs_read_meclients() 58 list_for_each_entry(me_cl, &dev->me_clients, list) { in mei_dbgfs_read_meclients() 60 if (mei_me_cl_get(me_cl)) { in mei_dbgfs_read_meclients() 63 i++, me_cl->client_id, in mei_dbgfs_read_meclients() 64 me_cl->props.fixed_address, in mei_dbgfs_read_meclients() 65 &me_cl->props.protocol_name, in mei_dbgfs_read_meclients() 66 me_cl->props.max_number_of_connections, in mei_dbgfs_read_meclients() 67 me_cl->props.max_msg_length, in mei_dbgfs_read_meclients() 68 me_cl->props.single_recv_buf, in mei_dbgfs_read_meclients() [all …]
|
D | main.c | 277 struct mei_me_client *me_cl = NULL; in mei_write() local 295 me_cl = mei_me_cl_by_uuid_id(dev, &cl->cl_uuid, cl->me_client_id); in mei_write() 296 if (!me_cl) { in mei_write() 306 if (length > me_cl->props.max_msg_length) { in mei_write() 353 mei_me_cl_put(me_cl); in mei_write() 360 mei_me_cl_put(me_cl); in mei_write() 382 struct mei_me_client *me_cl; in mei_ioctl_connect_client() local 397 me_cl = mei_me_cl_by_uuid(dev, &data->in_client_uuid); in mei_ioctl_connect_client() 398 if (!me_cl || me_cl->props.fixed_address) { in mei_ioctl_connect_client() 404 cl->me_client_id = me_cl->client_id; in mei_ioctl_connect_client() [all …]
|
D | nfc.c | 486 struct mei_me_client *me_cl = NULL; in mei_nfc_host_init() local 504 me_cl = mei_me_cl_by_uuid(dev, &mei_nfc_info_guid); in mei_nfc_host_init() 505 if (!me_cl) { in mei_nfc_host_init() 517 cl_info->me_client_id = me_cl->client_id; in mei_nfc_host_init() 518 cl_info->cl_uuid = me_cl->props.protocol_name; in mei_nfc_host_init() 519 mei_me_cl_put(me_cl); in mei_nfc_host_init() 520 me_cl = NULL; in mei_nfc_host_init() 527 me_cl = mei_me_cl_by_uuid(dev, &mei_nfc_guid); in mei_nfc_host_init() 528 if (!me_cl) { in mei_nfc_host_init() 540 cl->me_client_id = me_cl->client_id; in mei_nfc_host_init() [all …]
|
D | client.h | 30 void mei_me_cl_init(struct mei_me_client *me_cl); 31 void mei_me_cl_put(struct mei_me_client *me_cl); 32 struct mei_me_client *mei_me_cl_get(struct mei_me_client *me_cl); 34 void mei_me_cl_add(struct mei_device *dev, struct mei_me_client *me_cl); 35 void mei_me_cl_del(struct mei_device *dev, struct mei_me_client *me_cl);
|
D | hbm.c | 326 struct mei_me_client *me_cl; in mei_hbm_me_cl_add() local 331 me_cl = kzalloc(sizeof(struct mei_me_client), GFP_KERNEL); in mei_hbm_me_cl_add() 332 if (!me_cl) in mei_hbm_me_cl_add() 335 mei_me_cl_init(me_cl); in mei_hbm_me_cl_add() 337 me_cl->props = res->client_properties; in mei_hbm_me_cl_add() 338 me_cl->client_id = res->me_addr; in mei_hbm_me_cl_add() 339 me_cl->mei_flow_ctrl_creds = 0; in mei_hbm_me_cl_add() 341 mei_me_cl_add(dev, me_cl); in mei_hbm_me_cl_add() 477 struct mei_me_client *me_cl; in mei_hbm_add_single_flow_creds() local 480 me_cl = mei_me_cl_by_id(dev, flow->me_addr); in mei_hbm_add_single_flow_creds() [all …]
|
D | wd.c | 61 struct mei_me_client *me_cl; in mei_wd_host_init() local 71 me_cl = mei_me_cl_by_uuid(dev, &mei_wd_guid); in mei_wd_host_init() 72 if (!me_cl) { in mei_wd_host_init() 77 cl->me_client_id = me_cl->client_id; in mei_wd_host_init() 78 cl->cl_uuid = me_cl->props.protocol_name; in mei_wd_host_init() 79 mei_me_cl_put(me_cl); in mei_wd_host_init()
|
D | amthif.c | 68 struct mei_me_client *me_cl; in mei_amthif_host_init() local 75 me_cl = mei_me_cl_by_uuid(dev, &mei_amthif_guid); in mei_amthif_host_init() 76 if (!me_cl) { in mei_amthif_host_init() 81 cl->me_client_id = me_cl->client_id; in mei_amthif_host_init() 82 cl->cl_uuid = me_cl->props.protocol_name; in mei_amthif_host_init() 86 dev->iamthif_mtu = me_cl->props.max_msg_length; in mei_amthif_host_init() 101 mei_me_cl_put(me_cl); in mei_amthif_host_init()
|
D | bus.c | 231 struct mei_me_client *me_cl = NULL; in ___mei_cl_send() local 247 me_cl = mei_me_cl_by_uuid_id(dev, &cl->cl_uuid, cl->me_client_id); in ___mei_cl_send() 248 if (!me_cl) { in ___mei_cl_send() 253 if (length > me_cl->props.max_msg_length) { in ___mei_cl_send() 269 mei_me_cl_put(me_cl); in ___mei_cl_send()
|