Lines Matching +full:mac +full:- +full:only
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2014-2015 Hisilicon Limited.
37 /* check mac addr broadcast */
42 /* check mac addr is 01-00-5e-xx-xx-xx*/
47 /*check the mac addr is 0 in all bit*/
52 /*check mac addr multicast*/
56 void *mac; member
67 /*mac interface keyword */
82 /*mac mode */
122 /*mac communicate mode*/
125 MAC_COMM_MODE_RX = 1, /**< Only receive communication */
126 MAC_COMM_MODE_TX = 2, /**< Only transmit communication */
130 /*mac statistics */
132 u64 stat_pkts64; /* r-10G tr-DT 64 byte frame counter */
133 u64 stat_pkts65to127; /* r-10G 65 to 127 byte frame counter */
134 u64 stat_pkts128to255; /* r-10G 128 to 255 byte frame counter */
135 u64 stat_pkts256to511; /*r-10G 256 to 511 byte frame counter */
136 u64 stat_pkts512to1023;/* r-10G 512 to 1023 byte frame counter */
137 u64 stat_pkts1024to1518; /* r-10G 1024 to 1518 byte frame counter */
138 u64 stat_pkts1519to1522; /* r-10G 1519 to 1522 byte good frame count*/
145 /* the MAC Client. */
155 u64 stat_rx_pause; /**< Pause MAC Control received */
156 u64 stat_tx_pause; /**< Pause MAC Control sent */
163 /* problems within the MAC RX. */
166 /* - FIFO Overflow Error */
167 /* - CRC Error */
168 /* - Frame Too Long Error */
169 /* - Alignment Error */
175 /* the MAC TX N/A!.*/
178 /* - FIFO Overflow Error */
179 /* - FIFO Underflow Error */
180 /* - Other */
183 /*mac para struct ,mac get param from nic or dsaf when initialize*/
189 /**< Ethernet operation mode (MAC-PHY interface and speed) */
217 u64 rx_good_pkts; /* only for xgmac */
219 u64 rx_total_pkts; /* only for xgmac */
220 u64 rx_total_bytes; /* only for xgmac */
221 u64 rx_bad_bytes; /* only for gmac */
225 u64 rx_fragment_err; /* only for xgmac */
226 u64 rx_undersize; /* only for xgmac */
228 u64 rx_minto64; /* only for gmac */
236 u64 rx_1519tomax_good; /* only for xgmac */
240 u64 rx_vlan_pkts; /* only for gmac */
241 u64 rx_data_err; /* only for gmac */
242 u64 rx_align_err; /* only for gmac */
243 u64 rx_long_err; /* only for gmac */
245 u64 rx_pfc_tc1; /* only for xgmac */
246 u64 rx_pfc_tc2; /* only for xgmac */
247 u64 rx_pfc_tc3; /* only for xgmac */
248 u64 rx_pfc_tc4; /* only for xgmac */
249 u64 rx_pfc_tc5; /* only for xgmac */
250 u64 rx_pfc_tc6; /* only for xgmac */
251 u64 rx_pfc_tc7; /* only for xgmac */
253 u64 rx_filter_pkts; /* only for gmac */
254 u64 rx_filter_bytes; /* only for gmac */
255 u64 rx_fifo_overrun_err;/* only for gmac */
256 u64 rx_len_err; /* only for gmac */
257 u64 rx_comma_err; /* only for gmac */
258 u64 rx_symbol_err; /* only for xgmac */
259 u64 tx_good_to_sw; /* only for xgmac */
260 u64 tx_bad_to_sw; /* only for xgmac */
261 u64 rx_1731_pkts; /* only for xgmac */
264 u64 tx_good_pkts; /* only for xgmac */
265 u64 tx_total_bytes; /* only for xgmac */
266 u64 tx_total_pkts; /* only for xgmac */
267 u64 tx_bad_bytes; /* only for gmac */
268 u64 tx_bad_pkts; /* only for xgmac */
272 u64 tx_undersize; /* only for xgmac */
273 u64 tx_fragment_err; /* only for xgmac */
274 u64 tx_under_min_pkts; /* only for gmac */
282 u64 tx_1519tomax_good; /* only for xgmac */
283 u64 tx_oversize; /* only for xgmac */
285 u64 tx_underrun_err; /* only for gmac */
286 u64 tx_vlan; /* only for gmac */
287 u64 tx_crc_err; /* only for gmac */
289 u64 tx_pfc_tc1; /* only for xgmac */
290 u64 tx_pfc_tc2; /* only for xgmac */
291 u64 tx_pfc_tc3; /* only for xgmac */
292 u64 tx_pfc_tc4; /* only for xgmac */
293 u64 tx_pfc_tc5; /* only for xgmac */
294 u64 tx_pfc_tc6; /* only for xgmac */
295 u64 tx_pfc_tc7; /* only for xgmac */
296 u64 tx_ctrl; /* only for xgmac */
297 u64 tx_1731_pkts; /* only for xgmac */
298 u64 tx_1588_pkts; /* only for xgmac */
299 u64 rx_good_from_sw; /* only for xgmac */
300 u64 rx_bad_from_sw; /* only for xgmac */
342 /*init Mac when init nic or dsaf*/
344 /*remove mac when remove nic or dsaf*/
346 /*enable mac when enable nic or dsaf*/
348 /*disable mac when disable nic or dsaf*/
350 /* config mac address*/
352 /*adjust mac mode of port,include speed and duplex*/
388 /* get mac information */
398 unsigned int mac_en_flg;/*you'd better don't enable mac twice*/
416 return (struct mac_driver *)(mac_cb->priv.mac); in hns_mac_get_drv()