Lines Matching +full:uuid +full:- +full:dev

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2003-2018, Intel Corporation. All rights reserved.
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);
26 struct mei_me_client *mei_me_cl_by_uuid(struct mei_device *dev,
27 const uuid_le *uuid);
28 struct mei_me_client *mei_me_cl_by_id(struct mei_device *dev, u8 client_id);
29 struct mei_me_client *mei_me_cl_by_uuid_id(struct mei_device *dev,
30 const uuid_le *uuid, u8 client_id);
31 void mei_me_cl_rm_by_uuid(struct mei_device *dev, const uuid_le *uuid);
32 void mei_me_cl_rm_by_uuid_id(struct mei_device *dev,
33 const uuid_le *uuid, u8 id);
34 void mei_me_cl_rm_all(struct mei_device *dev);
37 * mei_me_cl_is_active - check whether me client is active in the fw
45 return !list_empty_careful(&me_cl->list); in mei_me_cl_is_active()
49 * mei_me_cl_uuid - return me client protocol name (uuid)
57 return &me_cl->props.protocol_name; in mei_me_cl_uuid()
61 * mei_me_cl_ver - return me client protocol version
69 return me_cl->props.protocol_version; in mei_me_cl_ver()
73 * mei_me_cl_max_conn - return me client max number of connections
81 return me_cl->props.max_number_of_connections; in mei_me_cl_max_conn()
85 * mei_me_cl_fixed - return me client fixed address, if any
93 return me_cl->props.fixed_address; in mei_me_cl_fixed()
97 * mei_me_cl_vt - return me client vtag supported status
105 return me_cl->props.vt_supported == 1; in mei_me_cl_vt()
109 * mei_me_cl_max_len - return me client max msg length
117 return me_cl->props.max_msg_length; in mei_me_cl_max_len()
129 struct mei_cl *mei_cl_allocate(struct mei_device *dev);
134 struct mei_cl *mei_cl_alloc_linked(struct mei_device *dev);
157 * mei_cl_is_connected - host client is connected
165 return cl->state == MEI_FILE_CONNECTED; in mei_cl_is_connected()
169 * mei_cl_me_id - me client id
177 return cl->me_cl ? cl->me_cl->client_id : 0; in mei_cl_me_id()
181 * mei_cl_mtu - maximal message that client can send and receive
189 return cl->me_cl ? cl->me_cl->props.max_msg_length : 0; in mei_cl_mtu()
193 * mei_cl_is_fixed_address - check whether the me client uses fixed address
201 return cl->me_cl && cl->me_cl->props.fixed_address; in mei_cl_is_fixed_address()
205 * mei_cl_is_single_recv_buf- check whether the me client
214 return cl->me_cl->props.single_recv_buf; in mei_cl_is_single_recv_buf()
218 * mei_cl_uuid - client's uuid
222 * Return: return uuid of connected me client
226 return mei_me_cl_uuid(cl->me_cl); in mei_cl_uuid()
230 * mei_cl_host_addr - client's host address
238 return mei_cl_is_fixed_address(cl) ? 0 : cl->host_client_id; in mei_cl_host_addr()
255 void mei_host_client_init(struct mei_device *dev);
266 void mei_cl_all_disconnect(struct mei_device *dev);
277 #define MEI_CL_PRM(cl) (cl)->host_client_id, mei_cl_me_id(cl)
279 #define cl_dbg(dev, cl, format, arg...) \ argument
280 dev_dbg((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
282 #define cl_warn(dev, cl, format, arg...) \ argument
283 dev_warn((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
285 #define cl_err(dev, cl, format, arg...) \ argument
286 dev_err((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)