Lines Matching refs:cl

138 static inline void hsi_client_set_drvdata(struct hsi_client *cl, void *data)  in hsi_client_set_drvdata()  argument
140 dev_set_drvdata(&cl->device, data); in hsi_client_set_drvdata()
143 static inline void *hsi_client_drvdata(struct hsi_client *cl) in hsi_client_drvdata() argument
145 return dev_get_drvdata(&cl->device); in hsi_client_drvdata()
148 int hsi_register_port_event(struct hsi_client *cl,
150 int hsi_unregister_port_event(struct hsi_client *cl);
187 struct hsi_client *cl; member
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) argument
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) in hsi_port_claimed() argument
248 return cl->pclaimed; in hsi_port_claimed()
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);
329 static inline unsigned int hsi_id(struct hsi_client *cl) in hsi_id() argument
331 return to_hsi_controller(cl->device.parent->parent)->id; in hsi_id()
340 static inline unsigned int hsi_port_id(struct hsi_client *cl) in hsi_port_id() argument
342 return to_hsi_port(cl->device.parent)->num; in hsi_port_id()
354 static inline int hsi_setup(struct hsi_client *cl) in hsi_setup() argument
356 if (!hsi_port_claimed(cl)) in hsi_setup()
358 return hsi_get_port(cl)->setup(cl); in hsi_setup()
370 static inline int hsi_flush(struct hsi_client *cl) in hsi_flush() argument
372 if (!hsi_port_claimed(cl)) in hsi_flush()
374 return hsi_get_port(cl)->flush(cl); in hsi_flush()
384 static inline int hsi_async_read(struct hsi_client *cl, struct hsi_msg *msg) in hsi_async_read() argument
387 return hsi_async(cl, msg); in hsi_async_read()
397 static inline int hsi_async_write(struct hsi_client *cl, struct hsi_msg *msg) in hsi_async_write() argument
400 return hsi_async(cl, msg); in hsi_async_write()
409 static inline int hsi_start_tx(struct hsi_client *cl) in hsi_start_tx() argument
411 if (!hsi_port_claimed(cl)) in hsi_start_tx()
413 return hsi_get_port(cl)->start_tx(cl); in hsi_start_tx()
422 static inline int hsi_stop_tx(struct hsi_client *cl) in hsi_stop_tx() argument
424 if (!hsi_port_claimed(cl)) in hsi_stop_tx()
426 return hsi_get_port(cl)->stop_tx(cl); in hsi_stop_tx()