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);
159 * @cl: host client
163 static inline bool mei_cl_is_connected(const struct mei_cl *cl)
165 return cl->state == MEI_FILE_CONNECTED;
171 * @cl: host client
175 static inline u8 mei_cl_me_id(const struct mei_cl *cl)
177 return cl->me_cl ? cl->me_cl->client_id : 0;
183 * @cl: host client
187 static inline size_t mei_cl_mtu(const struct mei_cl *cl)
189 return cl->me_cl ? cl->me_cl->props.max_msg_length : 0;
195 * @cl: host client
199 static inline bool mei_cl_is_fixed_address(const struct mei_cl *cl)
201 return cl->me_cl && cl->me_cl->props.fixed_address;
208 * @cl: host client
212 static inline bool mei_cl_is_single_recv_buf(const struct mei_cl *cl)
214 return cl->me_cl->props.single_recv_buf;
220 * @cl: host client
224 static inline const uuid_le *mei_cl_uuid(const struct mei_cl *cl)
226 return mei_me_cl_uuid(cl->me_cl);
232 * @cl: host client
236 static inline u8 mei_cl_host_addr(const struct mei_cl *cl)
238 return mei_cl_is_fixed_address(cl) ? 0 : cl->host_client_id;
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);
276 #define MEI_CL_FMT "cl:host=%02d me=%02d "
277 #define MEI_CL_PRM(cl) (cl)->host_client_id, mei_cl_me_id(cl)
279 #define cl_dbg(dev, cl, format, arg...) \
280 dev_dbg((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
282 #define cl_warn(dev, cl, format, arg...) \
283 dev_warn((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)
285 #define cl_err(dev, cl, format, arg...) \
286 dev_err((dev)->dev, MEI_CL_FMT format, MEI_CL_PRM(cl), ##arg)