Lines Matching refs:hw_feat
95 DMA_BIT_MASK(pdata->hw_feat.dma_width)); in xlgmac_init()
126 pdata->hw_feat.tx_ch_cnt); in xlgmac_init()
128 pdata->hw_feat.tx_q_cnt); in xlgmac_init()
138 pdata->hw_feat.rx_ch_cnt); in xlgmac_init()
140 pdata->hw_feat.rx_q_cnt); in xlgmac_init()
179 if (pdata->hw_feat.tso) { in xlgmac_init()
185 } else if (pdata->hw_feat.tx_coe) { in xlgmac_init()
190 if (pdata->hw_feat.rx_coe) { in xlgmac_init()
195 if (pdata->hw_feat.rss) in xlgmac_init()
201 if (pdata->hw_feat.sa_vlan_ins) in xlgmac_init()
203 if (pdata->hw_feat.vlhash) in xlgmac_init()
359 struct xlgmac_hw_features *hw_feat = &pdata->hw_feat; in xlgmac_get_all_hw_features() local
366 memset(hw_feat, 0, sizeof(*hw_feat)); in xlgmac_get_all_hw_features()
368 hw_feat->version = readl(pdata->mac_regs + MAC_VR); in xlgmac_get_all_hw_features()
371 hw_feat->phyifsel = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
374 hw_feat->vlhash = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
377 hw_feat->sma = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
380 hw_feat->rwk = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
383 hw_feat->mgk = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
386 hw_feat->mmc = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
389 hw_feat->aoe = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
392 hw_feat->ts = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
395 hw_feat->eee = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
398 hw_feat->tx_coe = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
401 hw_feat->rx_coe = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
404 hw_feat->addn_mac = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
407 hw_feat->ts_src = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
410 hw_feat->sa_vlan_ins = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
415 hw_feat->rx_fifo_size = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
418 hw_feat->tx_fifo_size = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
421 hw_feat->adv_ts_hi = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
424 hw_feat->dma_width = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
427 hw_feat->dcb = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
430 hw_feat->sph = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
433 hw_feat->tso = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
436 hw_feat->dma_debug = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
439 hw_feat->rss = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
442 hw_feat->tc_cnt = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
445 hw_feat->hash_table_size = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
448 hw_feat->l3l4_filter_num = XLGMAC_GET_REG_BITS(mac_hfr1, in xlgmac_get_all_hw_features()
453 hw_feat->rx_q_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
456 hw_feat->tx_q_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
459 hw_feat->rx_ch_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
462 hw_feat->tx_ch_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
465 hw_feat->pps_out_num = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
468 hw_feat->aux_snap_num = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
473 switch (hw_feat->hash_table_size) { in xlgmac_get_all_hw_features()
477 hw_feat->hash_table_size = 64; in xlgmac_get_all_hw_features()
480 hw_feat->hash_table_size = 128; in xlgmac_get_all_hw_features()
483 hw_feat->hash_table_size = 256; in xlgmac_get_all_hw_features()
488 switch (hw_feat->dma_width) { in xlgmac_get_all_hw_features()
490 hw_feat->dma_width = 32; in xlgmac_get_all_hw_features()
493 hw_feat->dma_width = 40; in xlgmac_get_all_hw_features()
496 hw_feat->dma_width = 48; in xlgmac_get_all_hw_features()
499 hw_feat->dma_width = 32; in xlgmac_get_all_hw_features()
505 hw_feat->rx_q_cnt++; in xlgmac_get_all_hw_features()
506 hw_feat->tx_q_cnt++; in xlgmac_get_all_hw_features()
507 hw_feat->rx_ch_cnt++; in xlgmac_get_all_hw_features()
508 hw_feat->tx_ch_cnt++; in xlgmac_get_all_hw_features()
509 hw_feat->tc_cnt++; in xlgmac_get_all_hw_features()
523 pdata->hw_feat.vlhash ? "YES" : "NO"); in xlgmac_print_all_hw_features()
525 pdata->hw_feat.sma ? "YES" : "NO"); in xlgmac_print_all_hw_features()
527 pdata->hw_feat.rwk ? "YES" : "NO"); in xlgmac_print_all_hw_features()
529 pdata->hw_feat.mgk ? "YES" : "NO"); in xlgmac_print_all_hw_features()
531 pdata->hw_feat.mmc ? "YES" : "NO"); in xlgmac_print_all_hw_features()
533 pdata->hw_feat.aoe ? "YES" : "NO"); in xlgmac_print_all_hw_features()
535 pdata->hw_feat.ts ? "YES" : "NO"); in xlgmac_print_all_hw_features()
537 pdata->hw_feat.eee ? "YES" : "NO"); in xlgmac_print_all_hw_features()
539 pdata->hw_feat.tx_coe ? "YES" : "NO"); in xlgmac_print_all_hw_features()
541 pdata->hw_feat.rx_coe ? "YES" : "NO"); in xlgmac_print_all_hw_features()
543 pdata->hw_feat.addn_mac ? "YES" : "NO"); in xlgmac_print_all_hw_features()
545 switch (pdata->hw_feat.ts_src) { in xlgmac_print_all_hw_features()
562 pdata->hw_feat.sa_vlan_ins ? "YES" : "NO"); in xlgmac_print_all_hw_features()
565 switch (pdata->hw_feat.rx_fifo_size) { in xlgmac_print_all_hw_features()
607 switch (pdata->hw_feat.tx_fifo_size) { in xlgmac_print_all_hw_features()
650 pdata->hw_feat.adv_ts_hi ? "YES" : "NO"); in xlgmac_print_all_hw_features()
652 pdata->hw_feat.dma_width); in xlgmac_print_all_hw_features()
654 pdata->hw_feat.dcb ? "YES" : "NO"); in xlgmac_print_all_hw_features()
656 pdata->hw_feat.sph ? "YES" : "NO"); in xlgmac_print_all_hw_features()
658 pdata->hw_feat.tso ? "YES" : "NO"); in xlgmac_print_all_hw_features()
660 pdata->hw_feat.dma_debug ? "YES" : "NO"); in xlgmac_print_all_hw_features()
662 pdata->hw_feat.rss ? "YES" : "NO"); in xlgmac_print_all_hw_features()
664 (pdata->hw_feat.tc_cnt)); in xlgmac_print_all_hw_features()
666 pdata->hw_feat.hash_table_size); in xlgmac_print_all_hw_features()
668 pdata->hw_feat.l3l4_filter_num); in xlgmac_print_all_hw_features()
672 pdata->hw_feat.rx_q_cnt); in xlgmac_print_all_hw_features()
674 pdata->hw_feat.tx_q_cnt); in xlgmac_print_all_hw_features()
676 pdata->hw_feat.rx_ch_cnt); in xlgmac_print_all_hw_features()
678 pdata->hw_feat.tx_ch_cnt); in xlgmac_print_all_hw_features()
680 switch (pdata->hw_feat.pps_out_num) { in xlgmac_print_all_hw_features()
701 switch (pdata->hw_feat.aux_snap_num) { in xlgmac_print_all_hw_features()