Lines Matching refs:LDC_PACKET_SIZE
32 #define LDC_PACKET_SIZE 64 macro
65 u8 u_data[LDC_PACKET_SIZE - 8];
69 u8 r_data[LDC_PACKET_SIZE - 8 - 8];
84 #define LDC_DEFAULT_MTU (4 * LDC_PACKET_SIZE)
85 #define LDC_DEFAULT_NUM_ENTRIES (PAGE_SIZE / LDC_PACKET_SIZE)
205 off += LDC_PACKET_SIZE; in __advance()
206 if (off == (num_entries * LDC_PACKET_SIZE)) in __advance()
235 return p + (lp->tx_tail / LDC_PACKET_SIZE); in handshake_get_tx_packet()
267 ((lp->tx_num_entries * LDC_PACKET_SIZE) - new_tail)); in tx_has_space_for()
268 diff /= LDC_PACKET_SIZE; in tx_has_space_for()
291 return p + (lp->tx_tail / LDC_PACKET_SIZE); in data_get_tx_packet()
346 BUG_ON(p != (lp->tx_base + (lp->tx_tail / LDC_PACKET_SIZE))); in send_tx_packet()
765 struct ldc_packet *p = lp->tx_base + (head / LDC_PACKET_SIZE); in process_data_ack()
859 p = lp->rx_base + (lp->rx_head / LDC_PACKET_SIZE); in ldc_rx()
886 new += LDC_PACKET_SIZE; in ldc_rx()
887 if (new == (lp->rx_num_entries * LDC_PACKET_SIZE)) in ldc_rx()
971 size = num_entries * LDC_PACKET_SIZE; in alloc_queue()
996 size = num_entries * LDC_PACKET_SIZE; in free_queue()
1101 mss = LDC_PACKET_SIZE; in ldc_alloc()
1106 mss = LDC_PACKET_SIZE - 8; in ldc_alloc()
1111 mss = LDC_PACKET_SIZE - 8 - 8; in ldc_alloc()
1418 if (size > LDC_PACKET_SIZE) in write_raw()
1440 if (size < LDC_PACKET_SIZE) in read_raw()
1457 p = lp->rx_base + (lp->rx_head / LDC_PACKET_SIZE); in read_raw()
1458 memcpy(buf, p, LDC_PACKET_SIZE); in read_raw()
1467 err = LDC_PACKET_SIZE; in read_raw()
1500 struct ldc_packet *p = lp->tx_base + (tail / LDC_PACKET_SIZE); in write_nonraw()
1671 p = lp->rx_base + (new / LDC_PACKET_SIZE); in read_nonraw()