Lines Matching +full:short +full:- +full:descriptor
5 * This program is dual-licensed; you may select either version 2 of
21 #include <linux/dma-mapping.h>
29 #define XLGMAC_DRV_NAME "dwc-xlgmac"
33 /* Descriptor related parameters */
46 #define XLGMAC_TX_MAX_BUF_SIZE (0x3fff & ~(64 - 1))
91 /* Helper macro for descriptor handling
92 * Always use XLGMAC_GET_DESC_DATA to access the descriptor data
96 ((_ring)->desc_data_head + \
97 ((idx) & ((_ring)->dma_desc_count - 1))); \
103 ((var) & GENMASK(_pos + _len - 1, _pos)) >> (_pos); \
110 ((_var) & GENMASK(_pos + _len - 1, _pos)) >> (_pos); \
118 _val = (_val << _pos) & GENMASK(_pos + _len - 1, _pos); \
119 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \
127 _val = (_val << _pos) & GENMASK(_pos + _len - 1, _pos); \
128 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \
212 /* Common Tx and Rx DMA hardware descriptor */
239 /* Tx-related desc data */
245 /* Rx-related desc data */
250 unsigned short hdr_len; /* Length of received header */
251 unsigned short len; /* Length of received packet */
271 unsigned short mss;
273 unsigned short vlan_ctag;
282 /* dma_desc: Virtual address of descriptor
283 * dma_desc_addr: DMA address of descriptor
296 /* Tx/Rx -related data */
303 * or the last descriptor (last normal descriptor or a following
304 * context descriptor) has not been DMA'd yet the current state
319 /* Virtual/DMA addresses of DMA descriptor list and the total count */
324 /* Array of descriptor data corresponding the DMA descriptor
334 * cur - Tx: index of descriptor to be used for current transfer
335 * Rx: index of descriptor to check for packet availability
336 * dirty - Tx: index of descriptor to check for transfer complete
337 * Rx: index of descriptor to check for buffer reallocation
349 unsigned short cur_mss;
350 unsigned short cur_vlan_ctag;
424 /* For descriptor related operation */
502 unsigned int rwk; /* PMT remote wake-up packet */
506 unsigned int ts; /* IEEE 1588-2008 Advanced Timestamp */
526 unsigned int l3l4_filter_num; /* Number of L3-L4 Filters */