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

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2003-2018, Intel Corporation. All rights reserved.
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
89 * Return: me client fixed address
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
113 * Return: me client max msg length
117 return me_cl->props.max_msg_length; in mei_me_cl_max_len()
141 struct mei_cl_cb *mei_cl_alloc_cb(struct mei_cl *cl, size_t length,
144 struct mei_cl_cb *mei_cl_enqueue_ctrl_wr_cb(struct mei_cl *cl, size_t length,
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
197 * Return: true if the client is connected and it has fixed me 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
226 return mei_me_cl_uuid(cl->me_cl); in mei_cl_uuid()
230 * mei_cl_host_addr - client's host address
234 * Return: 0 for fixed address client, host address for dynamic client
238 return mei_cl_is_fixed_address(cl) ? 0 : cl->host_client_id; in mei_cl_host_addr()
248 int mei_cl_read_start(struct mei_cl *cl, size_t length, const struct file *fp);
277 #define MEI_CL_PRM(cl) (cl)->host_client_id, mei_cl_me_id(cl)
280 dev_dbg((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
283 dev_warn((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
286 dev_err((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)