Lines Matching refs:LDC_PACKET_SIZE
70 u8 u_data[LDC_PACKET_SIZE - 8];
74 u8 r_data[LDC_PACKET_SIZE - 8 - 8];
89 #define LDC_DEFAULT_MTU (4 * LDC_PACKET_SIZE)
90 #define LDC_DEFAULT_NUM_ENTRIES (PAGE_SIZE / LDC_PACKET_SIZE)
203 off += LDC_PACKET_SIZE; in __advance()
204 if (off == (num_entries * LDC_PACKET_SIZE)) in __advance()
233 return p + (lp->tx_tail / LDC_PACKET_SIZE); in handshake_get_tx_packet()
265 ((lp->tx_num_entries * LDC_PACKET_SIZE) - new_tail)); in tx_has_space_for()
266 diff /= LDC_PACKET_SIZE; in tx_has_space_for()
289 return p + (lp->tx_tail / LDC_PACKET_SIZE); in data_get_tx_packet()
344 BUG_ON(p != (lp->tx_base + (lp->tx_tail / LDC_PACKET_SIZE))); in send_tx_packet()
764 struct ldc_packet *p = lp->tx_base + (head / LDC_PACKET_SIZE); in process_data_ack()
863 p = lp->rx_base + (lp->rx_head / LDC_PACKET_SIZE); in ldc_rx()
890 new += LDC_PACKET_SIZE; in ldc_rx()
891 if (new == (lp->rx_num_entries * LDC_PACKET_SIZE)) in ldc_rx()
981 size = num_entries * LDC_PACKET_SIZE; in alloc_queue()
1006 size = num_entries * LDC_PACKET_SIZE; in free_queue()
1143 mss = LDC_PACKET_SIZE; in ldc_alloc()
1148 mss = LDC_PACKET_SIZE - 8; in ldc_alloc()
1153 mss = LDC_PACKET_SIZE - 8 - 8; in ldc_alloc()
1514 if (size > LDC_PACKET_SIZE) in write_raw()
1536 if (size < LDC_PACKET_SIZE) in read_raw()
1553 p = lp->rx_base + (lp->rx_head / LDC_PACKET_SIZE); in read_raw()
1554 memcpy(buf, p, LDC_PACKET_SIZE); in read_raw()
1563 err = LDC_PACKET_SIZE; in read_raw()
1596 struct ldc_packet *p = lp->tx_base + (tail / LDC_PACKET_SIZE); in write_nonraw()
1767 p = lp->rx_base + (new / LDC_PACKET_SIZE); in read_nonraw()