Lines Matching refs:cl
86 struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, enum mei_cb_file_ops type,
101 void mei_io_list_flush(struct mei_cl_cb *list, struct mei_cl *cl);
108 void mei_cl_init(struct mei_cl *cl, struct mei_device *dev);
111 int mei_cl_link(struct mei_cl *cl, int id);
112 int mei_cl_unlink(struct mei_cl *cl);
116 struct mei_cl_cb *mei_cl_read_cb(const struct mei_cl *cl,
118 void mei_cl_read_cb_flush(const struct mei_cl *cl, const struct file *fp);
119 struct mei_cl_cb *mei_cl_alloc_cb(struct mei_cl *cl, size_t length,
121 int mei_cl_flush_queues(struct mei_cl *cl, const struct file *fp);
123 int mei_cl_flow_ctrl_creds(struct mei_cl *cl);
125 int mei_cl_flow_ctrl_reduce(struct mei_cl *cl);
137 static inline bool mei_cl_is_connected(struct mei_cl *cl) in mei_cl_is_connected() argument
139 return cl->state == MEI_FILE_CONNECTED; in mei_cl_is_connected()
149 static inline u8 mei_cl_me_id(const struct mei_cl *cl) in mei_cl_me_id() argument
151 return cl->me_cl ? cl->me_cl->client_id : 0; in mei_cl_me_id()
161 static inline size_t mei_cl_mtu(const struct mei_cl *cl) in mei_cl_mtu() argument
163 return cl->me_cl->props.max_msg_length; in mei_cl_mtu()
173 static inline bool mei_cl_is_fixed_address(const struct mei_cl *cl) in mei_cl_is_fixed_address() argument
175 return cl->me_cl && cl->me_cl->props.fixed_address; in mei_cl_is_fixed_address()
186 static inline bool mei_cl_is_single_recv_buf(const struct mei_cl *cl) in mei_cl_is_single_recv_buf() argument
188 return cl->me_cl->props.single_recv_buf; in mei_cl_is_single_recv_buf()
198 static inline const uuid_le *mei_cl_uuid(const struct mei_cl *cl) in mei_cl_uuid() argument
200 return mei_me_cl_uuid(cl->me_cl); in mei_cl_uuid()
210 static inline u8 mei_cl_host_addr(const struct mei_cl *cl) in mei_cl_host_addr() argument
212 return mei_cl_is_fixed_address(cl) ? 0 : cl->host_client_id; in mei_cl_host_addr()
215 int mei_cl_disconnect(struct mei_cl *cl);
216 void mei_cl_set_disconnected(struct mei_cl *cl);
217 int mei_cl_irq_disconnect(struct mei_cl *cl, struct mei_cl_cb *cb,
219 int mei_cl_connect(struct mei_cl *cl, struct mei_me_client *me_cl,
221 int mei_cl_irq_connect(struct mei_cl *cl, struct mei_cl_cb *cb,
223 int mei_cl_read_start(struct mei_cl *cl, size_t length, struct file *fp);
224 int mei_cl_irq_read_msg(struct mei_cl *cl, struct mei_msg_hdr *hdr,
226 int mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, bool blocking);
227 int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb,
230 void mei_cl_complete(struct mei_cl *cl, struct mei_cl_cb *cb);
236 int mei_cl_notify_request(struct mei_cl *cl, struct file *file, u8 request);
237 int mei_cl_irq_notify(struct mei_cl *cl, struct mei_cl_cb *cb,
239 int mei_cl_notify_get(struct mei_cl *cl, bool block, bool *notify_ev);
240 void mei_cl_notify(struct mei_cl *cl);
247 #define MEI_CL_PRM(cl) (cl)->host_client_id, mei_cl_me_id(cl) argument
249 #define cl_dbg(dev, cl, format, arg...) \ argument
250 dev_dbg((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
252 #define cl_err(dev, cl, format, arg...) \ argument
253 dev_err((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)