Lines Matching refs:cl
131 int mei_cl_link(struct mei_cl *cl);
132 int mei_cl_unlink(struct mei_cl *cl);
136 struct mei_cl_cb *mei_cl_read_cb(struct mei_cl *cl, const struct file *fp);
138 void mei_cl_add_rd_completed(struct mei_cl *cl, struct mei_cl_cb *cb);
139 void mei_cl_del_rd_completed(struct mei_cl *cl, struct mei_cl_cb *cb);
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,
147 int mei_cl_flush_queues(struct mei_cl *cl, const struct file *fp);
150 const struct file *mei_cl_fp_by_vtag(const struct mei_cl *cl, u8 vtag);
151 int mei_cl_vt_support_check(const struct mei_cl *cl);
163 static inline bool mei_cl_is_connected(const struct mei_cl *cl) in mei_cl_is_connected() argument
165 return cl->state == MEI_FILE_CONNECTED; in mei_cl_is_connected()
175 static inline u8 mei_cl_me_id(const struct mei_cl *cl) in mei_cl_me_id() argument
177 return cl->me_cl ? cl->me_cl->client_id : 0; in mei_cl_me_id()
187 static inline size_t mei_cl_mtu(const struct mei_cl *cl) in mei_cl_mtu() argument
189 return cl->me_cl ? cl->me_cl->props.max_msg_length : 0; in mei_cl_mtu()
199 static inline bool mei_cl_is_fixed_address(const struct mei_cl *cl) in mei_cl_is_fixed_address() argument
201 return cl->me_cl && cl->me_cl->props.fixed_address; in mei_cl_is_fixed_address()
212 static inline bool mei_cl_is_single_recv_buf(const struct mei_cl *cl) in mei_cl_is_single_recv_buf() argument
214 return cl->me_cl->props.single_recv_buf; in mei_cl_is_single_recv_buf()
224 static inline const uuid_le *mei_cl_uuid(const struct mei_cl *cl) in mei_cl_uuid() argument
226 return mei_me_cl_uuid(cl->me_cl); in mei_cl_uuid()
236 static inline u8 mei_cl_host_addr(const struct mei_cl *cl) in mei_cl_host_addr() argument
238 return mei_cl_is_fixed_address(cl) ? 0 : cl->host_client_id; in mei_cl_host_addr()
241 int mei_cl_disconnect(struct mei_cl *cl);
242 int mei_cl_irq_disconnect(struct mei_cl *cl, struct mei_cl_cb *cb,
244 int mei_cl_connect(struct mei_cl *cl, struct mei_me_client *me_cl,
246 int mei_cl_irq_connect(struct mei_cl *cl, struct mei_cl_cb *cb,
248 int mei_cl_read_start(struct mei_cl *cl, size_t length, const struct file *fp);
249 ssize_t mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, unsigned long timeout);
250 int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb,
253 void mei_cl_complete(struct mei_cl *cl, struct mei_cl_cb *cb);
259 int mei_cl_notify_request(struct mei_cl *cl,
261 int mei_cl_irq_notify(struct mei_cl *cl, struct mei_cl_cb *cb,
263 int mei_cl_notify_get(struct mei_cl *cl, bool block, bool *notify_ev);
264 void mei_cl_notify(struct mei_cl *cl);
268 int mei_cl_irq_dma_map(struct mei_cl *cl, struct mei_cl_cb *cb,
270 int mei_cl_irq_dma_unmap(struct mei_cl *cl, struct mei_cl_cb *cb,
272 int mei_cl_dma_alloc_and_map(struct mei_cl *cl, const struct file *fp,
274 int mei_cl_dma_unmap(struct mei_cl *cl, const struct file *fp);
277 #define MEI_CL_PRM(cl) (cl)->host_client_id, mei_cl_me_id(cl) argument
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)