Lines Matching refs:ldc_channel
87 struct ldc_channel;
90 int (*write)(struct ldc_channel *, const void *, unsigned int);
91 int (*read)(struct ldc_channel *, void *, unsigned int);
107 struct ldc_channel { struct
194 static void ldc_set_state(struct ldc_channel *lp, u8 state) in ldc_set_state()
212 static unsigned long rx_advance(struct ldc_channel *lp, unsigned long off) in rx_advance()
217 static unsigned long tx_advance(struct ldc_channel *lp, unsigned long off) in tx_advance()
222 static struct ldc_packet *handshake_get_tx_packet(struct ldc_channel *lp, in handshake_get_tx_packet()
245 static unsigned long head_for_data(struct ldc_channel *lp) in head_for_data()
252 static int tx_has_space_for(struct ldc_channel *lp, unsigned int size) in tx_has_space_for()
277 static struct ldc_packet *data_get_tx_packet(struct ldc_channel *lp, in data_get_tx_packet()
294 static int set_tx_tail(struct ldc_channel *lp, unsigned long tail) in set_tx_tail()
322 static int __set_rx_head(struct ldc_channel *lp, unsigned long head) in __set_rx_head()
342 static int send_tx_packet(struct ldc_channel *lp, in send_tx_packet()
351 static struct ldc_packet *handshake_compose_ctrl(struct ldc_channel *lp, in handshake_compose_ctrl()
369 static int start_handshake(struct ldc_channel *lp) in start_handshake()
391 static int send_version_nack(struct ldc_channel *lp, in send_version_nack()
412 static int send_version_ack(struct ldc_channel *lp, in send_version_ack()
429 static int send_rts(struct ldc_channel *lp) in send_rts()
449 static int send_rtr(struct ldc_channel *lp) in send_rtr()
468 static int send_rdx(struct ldc_channel *lp) in send_rdx()
488 static int send_data_nack(struct ldc_channel *lp, struct ldc_packet *data_pkt) in send_data_nack()
514 static int ldc_abort(struct ldc_channel *lp) in ldc_abort()
574 static int process_ver_info(struct ldc_channel *lp, struct ldc_version *vp) in process_ver_info()
608 static int process_ver_ack(struct ldc_channel *lp, struct ldc_version *vp) in process_ver_ack()
626 static int process_ver_nack(struct ldc_channel *lp, struct ldc_version *vp) in process_ver_nack()
648 static int process_version(struct ldc_channel *lp, in process_version()
670 static int process_rts(struct ldc_channel *lp, in process_rts()
690 static int process_rtr(struct ldc_channel *lp, in process_rtr()
708 static int rx_seq_ok(struct ldc_channel *lp, u32 seqid) in rx_seq_ok()
713 static int process_rdx(struct ldc_channel *lp, in process_rdx()
731 static int process_control_frame(struct ldc_channel *lp, in process_control_frame()
752 static int process_error_frame(struct ldc_channel *lp, in process_error_frame()
758 static int process_data_ack(struct ldc_channel *lp, in process_data_ack()
780 static void send_events(struct ldc_channel *lp, unsigned int event_mask) in send_events()
792 struct ldc_channel *lp = dev_id; in ldc_rx()
910 struct ldc_channel *lp = dev_id; in ldc_tx()
955 struct ldc_channel *lp; in __ldc_channel_exists()
1005 static int ldc_iommu_init(struct ldc_channel *lp) in ldc_iommu_init()
1062 static void ldc_iommu_release(struct ldc_channel *lp) in ldc_iommu_release()
1080 struct ldc_channel *ldc_alloc(unsigned long id, in ldc_alloc()
1084 struct ldc_channel *lp; in ldc_alloc()
1208 void ldc_free(struct ldc_channel *lp) in ldc_free()
1241 int ldc_bind(struct ldc_channel *lp, const char *name) in ldc_bind()
1329 int ldc_connect(struct ldc_channel *lp) in ldc_connect()
1352 int ldc_disconnect(struct ldc_channel *lp) in ldc_disconnect()
1406 int ldc_state(struct ldc_channel *lp) in ldc_state()
1412 static int write_raw(struct ldc_channel *lp, const void *buf, unsigned int size) in write_raw()
1434 static int read_raw(struct ldc_channel *lp, void *buf, unsigned int size) in read_raw()
1477 static int write_nonraw(struct ldc_channel *lp, const void *buf, in write_nonraw()
1545 static int rx_bad_seq(struct ldc_channel *lp, struct ldc_packet *p, in rx_bad_seq()
1564 static int data_ack_nack(struct ldc_channel *lp, struct ldc_packet *p) in data_ack_nack()
1577 static int rx_data_wait(struct ldc_channel *lp, unsigned long cur_head) in rx_data_wait()
1610 static int rx_set_head(struct ldc_channel *lp, unsigned long head) in rx_set_head()
1621 static void send_data_ack(struct ldc_channel *lp) in send_data_ack()
1643 static int read_nonraw(struct ldc_channel *lp, void *buf, unsigned int size) in read_nonraw()
1802 static int write_stream(struct ldc_channel *lp, const void *buf, in write_stream()
1810 static int read_stream(struct ldc_channel *lp, void *buf, unsigned int size) in read_stream()
1836 int ldc_write(struct ldc_channel *lp, const void *buf, unsigned int size) in ldc_write()
1860 int ldc_read(struct ldc_channel *lp, void *buf, unsigned int size) in ldc_read()
2084 int ldc_map_sg(struct ldc_channel *lp, in ldc_map_sg()
2130 int ldc_map_single(struct ldc_channel *lp, in ldc_map_single()
2194 void ldc_unmap(struct ldc_channel *lp, struct ldc_trans_cookie *cookies, in ldc_unmap()
2212 int ldc_copy(struct ldc_channel *lp, int copy_dir, in ldc_copy()
2302 void *ldc_alloc_exp_dring(struct ldc_channel *lp, unsigned int len, in ldc_alloc_exp_dring()
2327 void ldc_free_exp_dring(struct ldc_channel *lp, void *buf, unsigned int len, in ldc_free_exp_dring()