Lines Matching refs:cl

154 static inline void hsi_client_set_drvdata(struct hsi_client *cl, void *data)  in hsi_client_set_drvdata()  argument
156 dev_set_drvdata(&cl->device, data); in hsi_client_set_drvdata()
159 static inline void *hsi_client_drvdata(struct hsi_client *cl) in hsi_client_drvdata() argument
161 return dev_get_drvdata(&cl->device); in hsi_client_drvdata()
164 int hsi_register_port_event(struct hsi_client *cl,
166 int hsi_unregister_port_event(struct hsi_client *cl);
203 struct hsi_client *cl; member
246 int (*setup)(struct hsi_client *cl);
247 int (*flush)(struct hsi_client *cl);
248 int (*start_tx)(struct hsi_client *cl);
249 int (*stop_tx)(struct hsi_client *cl);
250 int (*release)(struct hsi_client *cl);
256 #define hsi_get_port(cl) to_hsi_port((cl)->device.parent) argument
259 int hsi_claim_port(struct hsi_client *cl, unsigned int share);
260 void hsi_release_port(struct hsi_client *cl);
262 static inline int hsi_port_claimed(struct hsi_client *cl) in hsi_port_claimed() argument
264 return cl->pclaimed; in hsi_port_claimed()
335 int hsi_async(struct hsi_client *cl, struct hsi_msg *msg);
337 int hsi_get_channel_id_by_name(struct hsi_client *cl, char *name);
345 static inline unsigned int hsi_id(struct hsi_client *cl) in hsi_id() argument
347 return to_hsi_controller(cl->device.parent->parent)->id; in hsi_id()
356 static inline unsigned int hsi_port_id(struct hsi_client *cl) in hsi_port_id() argument
358 return to_hsi_port(cl->device.parent)->num; in hsi_port_id()
370 static inline int hsi_setup(struct hsi_client *cl) in hsi_setup() argument
372 if (!hsi_port_claimed(cl)) in hsi_setup()
374 return hsi_get_port(cl)->setup(cl); in hsi_setup()
386 static inline int hsi_flush(struct hsi_client *cl) in hsi_flush() argument
388 if (!hsi_port_claimed(cl)) in hsi_flush()
390 return hsi_get_port(cl)->flush(cl); in hsi_flush()
400 static inline int hsi_async_read(struct hsi_client *cl, struct hsi_msg *msg) in hsi_async_read() argument
403 return hsi_async(cl, msg); in hsi_async_read()
413 static inline int hsi_async_write(struct hsi_client *cl, struct hsi_msg *msg) in hsi_async_write() argument
416 return hsi_async(cl, msg); in hsi_async_write()
425 static inline int hsi_start_tx(struct hsi_client *cl) in hsi_start_tx() argument
427 if (!hsi_port_claimed(cl)) in hsi_start_tx()
429 return hsi_get_port(cl)->start_tx(cl); in hsi_start_tx()
438 static inline int hsi_stop_tx(struct hsi_client *cl) in hsi_stop_tx() argument
440 if (!hsi_port_claimed(cl)) in hsi_stop_tx()
442 return hsi_get_port(cl)->stop_tx(cl); in hsi_stop_tx()