Lines Matching defs:lp
181 #define LDC_ABORT(lp) ldc_abort((lp), __func__) argument
210 static unsigned long rx_advance(struct ldc_channel *lp, unsigned long off) in rx_advance()
215 static unsigned long tx_advance(struct ldc_channel *lp, unsigned long off) in tx_advance()
220 static struct ldc_packet *handshake_get_tx_packet(struct ldc_channel *lp, in handshake_get_tx_packet()
243 static unsigned long head_for_data(struct ldc_channel *lp) in head_for_data()
250 static int tx_has_space_for(struct ldc_channel *lp, unsigned int size) in tx_has_space_for()
275 static struct ldc_packet *data_get_tx_packet(struct ldc_channel *lp, in data_get_tx_packet()
292 static int set_tx_tail(struct ldc_channel *lp, unsigned long tail) in set_tx_tail()
320 static int __set_rx_head(struct ldc_channel *lp, unsigned long head) in __set_rx_head()
340 static int send_tx_packet(struct ldc_channel *lp, in send_tx_packet()
349 static struct ldc_packet *handshake_compose_ctrl(struct ldc_channel *lp, in handshake_compose_ctrl()
367 static int start_handshake(struct ldc_channel *lp) in start_handshake()
389 static int send_version_nack(struct ldc_channel *lp, in send_version_nack()
410 static int send_version_ack(struct ldc_channel *lp, in send_version_ack()
427 static int send_rts(struct ldc_channel *lp) in send_rts()
447 static int send_rtr(struct ldc_channel *lp) in send_rtr()
466 static int send_rdx(struct ldc_channel *lp) in send_rdx()
486 static int send_data_nack(struct ldc_channel *lp, struct ldc_packet *data_pkt) in send_data_nack()
512 static int ldc_abort(struct ldc_channel *lp, const char *msg) in ldc_abort()
573 static int process_ver_info(struct ldc_channel *lp, struct ldc_version *vp) in process_ver_info()
607 static int process_ver_ack(struct ldc_channel *lp, struct ldc_version *vp) in process_ver_ack()
625 static int process_ver_nack(struct ldc_channel *lp, struct ldc_version *vp) in process_ver_nack()
647 static int process_version(struct ldc_channel *lp, in process_version()
669 static int process_rts(struct ldc_channel *lp, in process_rts()
689 static int process_rtr(struct ldc_channel *lp, in process_rtr()
707 static int rx_seq_ok(struct ldc_channel *lp, u32 seqid) in rx_seq_ok()
712 static int process_rdx(struct ldc_channel *lp, in process_rdx()
730 static int process_control_frame(struct ldc_channel *lp, in process_control_frame()
751 static int process_error_frame(struct ldc_channel *lp, in process_error_frame()
757 static int process_data_ack(struct ldc_channel *lp, in process_data_ack()
779 static void send_events(struct ldc_channel *lp, unsigned int event_mask) in send_events()
791 struct ldc_channel *lp = dev_id; in ldc_rx() local
914 struct ldc_channel *lp = dev_id; in ldc_tx() local
966 struct ldc_channel *lp; in __ldc_channel_exists() local
1041 static int ldc_iommu_init(const char *name, struct ldc_channel *lp) in ldc_iommu_init()
1100 static void ldc_iommu_release(struct ldc_channel *lp) in ldc_iommu_release()
1124 struct ldc_channel *lp; in ldc_alloc() local
1265 void ldc_unbind(struct ldc_channel *lp) in ldc_unbind()
1288 void ldc_free(struct ldc_channel *lp) in ldc_free()
1304 int ldc_bind(struct ldc_channel *lp) in ldc_bind()
1381 int ldc_connect(struct ldc_channel *lp) in ldc_connect()
1404 int ldc_disconnect(struct ldc_channel *lp) in ldc_disconnect()
1458 int ldc_state(struct ldc_channel *lp) in ldc_state()
1464 void ldc_set_state(struct ldc_channel *lp, u8 state) in ldc_set_state()
1474 int ldc_mode(struct ldc_channel *lp) in ldc_mode()
1480 int ldc_rx_reset(struct ldc_channel *lp) in ldc_rx_reset()
1486 void __ldc_print(struct ldc_channel *lp, const char *caller) in __ldc_print()
1500 static int write_raw(struct ldc_channel *lp, const void *buf, unsigned int size) in write_raw()
1530 static int read_raw(struct ldc_channel *lp, void *buf, unsigned int size) in read_raw()
1573 static int write_nonraw(struct ldc_channel *lp, const void *buf, in write_nonraw()
1641 static int rx_bad_seq(struct ldc_channel *lp, struct ldc_packet *p, in rx_bad_seq()
1660 static int data_ack_nack(struct ldc_channel *lp, struct ldc_packet *p) in data_ack_nack()
1673 static int rx_data_wait(struct ldc_channel *lp, unsigned long cur_head) in rx_data_wait()
1706 static int rx_set_head(struct ldc_channel *lp, unsigned long head) in rx_set_head()
1717 static void send_data_ack(struct ldc_channel *lp) in send_data_ack()
1739 static int read_nonraw(struct ldc_channel *lp, void *buf, unsigned int size) in read_nonraw()
1903 static int write_stream(struct ldc_channel *lp, const void *buf, in write_stream()
1911 static int read_stream(struct ldc_channel *lp, void *buf, unsigned int size) in read_stream()
1937 int ldc_write(struct ldc_channel *lp, const void *buf, unsigned int size) in ldc_write()
1961 int ldc_read(struct ldc_channel *lp, void *buf, unsigned int size) in ldc_read()
2147 int ldc_map_sg(struct ldc_channel *lp, in ldc_map_sg()
2193 int ldc_map_single(struct ldc_channel *lp, in ldc_map_single()
2245 void ldc_unmap(struct ldc_channel *lp, struct ldc_trans_cookie *cookies, in ldc_unmap()
2263 int ldc_copy(struct ldc_channel *lp, int copy_dir, in ldc_copy()
2353 void *ldc_alloc_exp_dring(struct ldc_channel *lp, unsigned int len, in ldc_alloc_exp_dring()
2378 void ldc_free_exp_dring(struct ldc_channel *lp, void *buf, unsigned int len, in ldc_free_exp_dring()