Lines Matching full:mac_ops
116 struct mac_ops *get_mac_ops(void *cgxd) in get_mac_ops()
121 return ((struct cgx *)cgxd)->mac_ops; in get_mac_ops()
131 writeq(val, cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_write()
137 return readq(cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_read()
265 struct mac_ops *mac_ops; in cgx_lmac_addr_set() local
272 /* access mac_ops to know csr_offset */ in cgx_lmac_addr_set()
273 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_set()
297 struct mac_ops *mac_ops; in cgx_read_dmac_ctrl() local
304 /* Get mac_ops to know csr offset */ in cgx_read_dmac_ctrl()
305 mac_ops = cgx->mac_ops; in cgx_read_dmac_ctrl()
312 struct mac_ops *mac_ops; in cgx_read_dmac_entry() local
319 mac_ops = cgx->mac_ops; in cgx_read_dmac_entry()
327 struct mac_ops *mac_ops; in cgx_lmac_addr_add() local
335 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_add()
370 struct mac_ops *mac_ops; in cgx_lmac_addr_reset() local
377 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_reset()
404 struct mac_ops *mac_ops; in cgx_lmac_addr_update() local
413 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_update()
438 struct mac_ops *mac_ops; in cgx_lmac_addr_del() local
446 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_del()
495 struct mac_ops *mac_ops; in cgx_lmac_addr_get() local
500 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_get()
517 cgx_write(cgx, lmac_id, cgx->mac_ops->rxid_map_offset, (pkind & 0x3F)); in cgx_set_pkind()
537 num_lmacs = cgx->mac_ops->get_nr_lmacs(cgx); in cgx_get_lmac_fifo_len()
590 struct mac_ops *mac_ops; in cgx_lmac_promisc_config() local
602 mac_ops = cgx->mac_ops; in cgx_lmac_promisc_config()
1392 offset = cgx->mac_ops->int_register; in cgx_fwi_event_handler()
1393 clear_bit = cgx->mac_ops->int_ena_bit; in cgx_fwi_event_handler()
1659 struct mac_ops *mac_ops = cgx->mac_ops; in cgx_configure_interrupt() local
1664 irq = pci_irq_vector(cgx->pdev, mac_ops->lmac_fwi + in cgx_configure_interrupt()
1665 cnt * mac_ops->irq_offset); in cgx_configure_interrupt()
1666 offset = mac_ops->int_set_reg; in cgx_configure_interrupt()
1667 ena_bit = mac_ops->int_ena_bit; in cgx_configure_interrupt()
1715 if (cgx->mac_ops->non_contiguous_serdes_lane) { in cgx_lmac_init()
1737 if (cgx->mac_ops->non_contiguous_serdes_lane) { in cgx_lmac_init()
1746 cgx->mac_ops->dmac_filter_count / in cgx_lmac_init()
1778 cgx->mac_ops->mac_pause_frm_config(cgx, lmac->lmac_id, true); in cgx_lmac_init()
1779 lmac->lmac_type = cgx->mac_ops->get_lmac_type(cgx, lmac->lmac_id); in cgx_lmac_init()
1792 cgx->mac_ops->mac_x2p_reset(cgx, true); in cgx_lmac_init()
1823 cgx->mac_ops->mac_pause_frm_config(cgx, lmac->lmac_id, false); in cgx_lmac_exit()
1866 cgx->mac_ops->mac_enadis_rx(cgx, lmac_id, false); in cgx_x2p_reset()
1897 static struct mac_ops cgx_mac_ops = {
1945 /* Use mac_ops to get MAC specific features */ in cgx_probe()
1947 cgx->mac_ops = rpm_get_mac_ops(cgx); in cgx_probe()
1949 cgx->mac_ops = &cgx_mac_ops; in cgx_probe()
1951 cgx->mac_ops->rxid_map_offset = cgx_get_rxid_mapoffset(cgx); in cgx_probe()
1988 cgx->lmac_count = cgx->mac_ops->get_nr_lmacs(cgx); in cgx_probe()