Lines Matching refs:mac_ops
102 struct mac_ops *get_mac_ops(void *cgxd) in get_mac_ops()
107 return ((struct cgx *)cgxd)->mac_ops; in get_mac_ops()
112 writeq(val, cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_write()
118 return readq(cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_read()
239 struct mac_ops *mac_ops; in cgx_lmac_addr_set() local
244 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_set()
268 struct mac_ops *mac_ops; in cgx_read_dmac_ctrl() local
276 mac_ops = cgx->mac_ops; in cgx_read_dmac_ctrl()
283 struct mac_ops *mac_ops; in cgx_read_dmac_entry() local
290 mac_ops = cgx->mac_ops; in cgx_read_dmac_entry()
298 struct mac_ops *mac_ops; in cgx_lmac_addr_add() local
306 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_add()
341 struct mac_ops *mac_ops; in cgx_lmac_addr_reset() local
348 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_reset()
375 struct mac_ops *mac_ops; in cgx_lmac_addr_update() local
384 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_update()
409 struct mac_ops *mac_ops; in cgx_lmac_addr_del() local
417 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_del()
466 struct mac_ops *mac_ops; in cgx_lmac_addr_get() local
471 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_get()
507 fifo_len = cgx->mac_ops->fifo_len; in cgx_get_lmac_fifo_len()
508 num_lmacs = cgx->mac_ops->get_nr_lmacs(cgx); in cgx_get_lmac_fifo_len()
537 lmac_type = cgx->mac_ops->get_lmac_type(cgx, lmac_id); in cgx_lmac_internal_loopback()
561 struct mac_ops *mac_ops; in cgx_lmac_promisc_config() local
571 mac_ops = cgx->mac_ops; in cgx_lmac_promisc_config()
1309 offset = cgx->mac_ops->int_register; in cgx_fwi_event_handler()
1310 clear_bit = cgx->mac_ops->int_ena_bit; in cgx_fwi_event_handler()
1550 cgx->mac_ops->fifo_len = FIELD_GET(CGX_CONST_RXFIFO_SIZE, cfg); in cgx_lmac_get_fifolen()
1556 struct mac_ops *mac_ops = cgx->mac_ops; in cgx_configure_interrupt() local
1561 irq = pci_irq_vector(cgx->pdev, mac_ops->lmac_fwi + in cgx_configure_interrupt()
1562 cnt * mac_ops->irq_offset); in cgx_configure_interrupt()
1563 offset = mac_ops->int_set_reg; in cgx_configure_interrupt()
1564 ena_bit = mac_ops->int_ena_bit; in cgx_configure_interrupt()
1609 cgx->lmac_count = cgx->mac_ops->get_nr_lmacs(cgx); in cgx_lmac_init()
1613 if (cgx->mac_ops->non_contiguous_serdes_lane) in cgx_lmac_init()
1629 if (cgx->mac_ops->non_contiguous_serdes_lane) { in cgx_lmac_init()
1666 cgx->mac_ops->mac_pause_frm_config(cgx, lmac->lmac_id, true); in cgx_lmac_init()
1699 cgx->mac_ops->mac_pause_frm_config(cgx, lmac->lmac_id, false); in cgx_lmac_exit()
1719 static struct mac_ops cgx_mac_ops = {
1763 cgx->mac_ops = rpm_get_mac_ops(); in cgx_probe()
1765 cgx->mac_ops = &cgx_mac_ops; in cgx_probe()
1788 cgx->lmac_count = cgx->mac_ops->get_nr_lmacs(cgx); in cgx_probe()