Lines Matching refs:cl

138 static inline void hsi_client_set_drvdata(struct hsi_client *cl, void *data)
140 dev_set_drvdata(&cl->device, data);
143 static inline void *hsi_client_drvdata(struct hsi_client *cl)
145 return dev_get_drvdata(&cl->device);
148 int hsi_register_port_event(struct hsi_client *cl,
150 int hsi_unregister_port_event(struct hsi_client *cl);
173 * @cl: HSI device client that issues the transfer
187 struct hsi_client *cl;
230 int (*setup)(struct hsi_client *cl);
231 int (*flush)(struct hsi_client *cl);
232 int (*start_tx)(struct hsi_client *cl);
233 int (*stop_tx)(struct hsi_client *cl);
234 int (*release)(struct hsi_client *cl);
240 #define hsi_get_port(cl) to_hsi_port((cl)->device.parent)
243 int hsi_claim_port(struct hsi_client *cl, unsigned int share);
244 void hsi_release_port(struct hsi_client *cl);
246 static inline int hsi_port_claimed(struct hsi_client *cl)
248 return cl->pclaimed;
319 int hsi_async(struct hsi_client *cl, struct hsi_msg *msg);
321 int hsi_get_channel_id_by_name(struct hsi_client *cl, char *name);
325 * @cl: Pointer to a HSI client
329 static inline unsigned int hsi_id(struct hsi_client *cl)
331 return to_hsi_controller(cl->device.parent->parent)->id;
336 * @cl: Pointer to HSI client
340 static inline unsigned int hsi_port_id(struct hsi_client *cl)
342 return to_hsi_port(cl->device.parent)->num;
347 * @cl: Pointer to the HSI client
354 static inline int hsi_setup(struct hsi_client *cl)
356 if (!hsi_port_claimed(cl))
358 return hsi_get_port(cl)->setup(cl);
363 * @cl: Pointer to the HSI client
370 static inline int hsi_flush(struct hsi_client *cl)
372 if (!hsi_port_claimed(cl))
374 return hsi_get_port(cl)->flush(cl);
379 * @cl: Pointer to the HSI client
384 static inline int hsi_async_read(struct hsi_client *cl, struct hsi_msg *msg)
387 return hsi_async(cl, msg);
392 * @cl: Pointer to the HSI client
397 static inline int hsi_async_write(struct hsi_client *cl, struct hsi_msg *msg)
400 return hsi_async(cl, msg);
405 * @cl: Pointer to the HSI client
409 static inline int hsi_start_tx(struct hsi_client *cl)
411 if (!hsi_port_claimed(cl))
413 return hsi_get_port(cl)->start_tx(cl);
418 * @cl: Pointer to the HSI client
422 static inline int hsi_stop_tx(struct hsi_client *cl)
424 if (!hsi_port_claimed(cl))
426 return hsi_get_port(cl)->stop_tx(cl);