Lines Matching defs:sport_device
42 struct sport_device { struct
43 int num;
44 int dma_rx_chan;
45 int dma_tx_chan;
46 int err_irq;
47 const unsigned short *pin_req;
48 struct sport_register *regs;
50 unsigned char *rx_buf;
51 unsigned char *tx_buf;
52 unsigned int rx_fragsize;
53 unsigned int tx_fragsize;
54 unsigned int rx_frags;
55 unsigned int tx_frags;
56 unsigned int wdsize;
59 void *dummy_buf;
60 unsigned int dummy_count;
63 struct dmasg *dma_rx_desc;
64 struct dmasg *dma_tx_desc;
65 unsigned int rx_desc_bytes;
66 unsigned int tx_desc_bytes;
68 unsigned int rx_run:1; /* rx is running */
69 unsigned int tx_run:1; /* tx is running */
71 struct dmasg *dummy_rx_desc;
72 struct dmasg *dummy_tx_desc;
74 struct dmasg *curr_rx_desc;
75 struct dmasg *curr_tx_desc;
77 int rx_curr_frag;
78 int tx_curr_frag;
80 unsigned int rcr1;
81 unsigned int rcr2;
82 int rx_tdm_count;
84 unsigned int tcr1;
85 unsigned int tcr2;
86 int tx_tdm_count;
88 void (*rx_callback)(void *data);
89 void *rx_data;
90 void (*tx_callback)(void *data);
91 void *tx_data;
92 void (*err_callback)(void *data);
93 void *err_data;
94 unsigned char *tx_dma_buf;
95 unsigned char *rx_dma_buf;
97 dma_addr_t tx_dma_phy;
121 struct sport_device *sport_init(struct platform_device *pdev, argument