Lines Matching +full:fixed +full:- +full:length

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2003-2018, Intel Corporation. All rights reserved.
35 * mei_me_cl_is_active - check whether me client is active in the fw
43 return !list_empty_careful(&me_cl->list); in mei_me_cl_is_active()
47 * mei_me_cl_uuid - return me client protocol name (uuid)
55 return &me_cl->props.protocol_name; in mei_me_cl_uuid()
59 * mei_me_cl_ver - return me client protocol version
67 return me_cl->props.protocol_version; in mei_me_cl_ver()
71 * mei_me_cl_max_conn - return me client max number of connections
79 return me_cl->props.max_number_of_connections; in mei_me_cl_max_conn()
83 * mei_me_cl_fixed - return me client fixed address, if any
87 * Return: me client fixed address
91 return me_cl->props.fixed_address; in mei_me_cl_fixed()
95 * mei_me_cl_vt - return me client vtag supported status
103 return me_cl->props.vt_supported == 1; in mei_me_cl_vt()
107 * mei_me_cl_max_len - return me client max msg length
111 * Return: me client max msg length
115 return me_cl->props.max_msg_length; in mei_me_cl_max_len()
139 struct mei_cl_cb *mei_cl_alloc_cb(struct mei_cl *cl, size_t length,
142 struct mei_cl_cb *mei_cl_enqueue_ctrl_wr_cb(struct mei_cl *cl, size_t length,
155 * mei_cl_is_connected - host client is connected
163 return cl->state == MEI_FILE_CONNECTED; in mei_cl_is_connected()
167 * mei_cl_me_id - me client id
175 return cl->me_cl ? cl->me_cl->client_id : 0; in mei_cl_me_id()
179 * mei_cl_mtu - maximal message that client can send and receive
187 return cl->me_cl ? cl->me_cl->props.max_msg_length : 0; in mei_cl_mtu()
191 * mei_cl_is_fixed_address - check whether the me client uses fixed address
195 * Return: true if the client is connected and it has fixed me address
199 return cl->me_cl && cl->me_cl->props.fixed_address; in mei_cl_is_fixed_address()
203 * mei_cl_is_single_recv_buf- check whether the me client
212 return cl->me_cl->props.single_recv_buf; in mei_cl_is_single_recv_buf()
216 * mei_cl_uuid - client's uuid
224 return mei_me_cl_uuid(cl->me_cl); in mei_cl_uuid()
228 * mei_cl_host_addr - client's host address
232 * Return: 0 for fixed address client, host address for dynamic client
236 return mei_cl_is_fixed_address(cl) ? 0 : cl->host_client_id; in mei_cl_host_addr()
246 int mei_cl_read_start(struct mei_cl *cl, size_t length, const struct file *fp);
275 #define MEI_CL_PRM(cl) (cl)->host_client_id, mei_cl_me_id(cl)
278 dev_dbg((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
281 dev_warn((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
284 dev_err((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)