Searched refs:pba (Results 1 – 10 of 10) sorted by relevance
/freebsd/sys/dev/e1000/ |
H A D | e1000_nvm.c | 991 struct e1000_pba *pba) in e1000_read_pba_raw() argument 996 if (pba == NULL) in e1000_read_pba_raw() 1001 &pba->word[0]); in e1000_read_pba_raw() 1006 pba->word[0] = eeprom_buf[NVM_PBA_OFFSET_0]; in e1000_read_pba_raw() 1007 pba->word[1] = eeprom_buf[NVM_PBA_OFFSET_1]; in e1000_read_pba_raw() 1013 if (pba->word[0] == NVM_PBA_PTR_GUARD) { in e1000_read_pba_raw() 1014 if (pba->pba_block == NULL) in e1000_read_pba_raw() 1027 ret_val = e1000_read_nvm(hw, pba->word[1], in e1000_read_pba_raw() 1029 pba->pba_block); in e1000_read_pba_raw() 1033 if (eeprom_buf_size > (u32)(pba->word[1] + in e1000_read_pba_raw() [all …]
|
H A D | if_em.c | 1668 if (sc->shared->isc_max_frame_size * 2 > (sc->pba << 10)) { in em_newitr() 2832 igb_init_dmac(struct e1000_softc *sc, u32 pba) in igb_init_dmac() argument 2855 hwm = 64 * pba - max_frame_size / 16; in igb_init_dmac() 2856 if (hwm < 64 * (pba - 6)) in igb_init_dmac() 2857 hwm = 64 * (pba - 6); in igb_init_dmac() 2865 dmac = pba - max_frame_size / 512; in igb_init_dmac() 2866 if (dmac < pba - 10) in igb_init_dmac() 2867 dmac = pba - 10; in igb_init_dmac() 3057 u32 pba; in em_reset() local 3084 pba = E1000_PBA_22K; /* 22K for Rx, 18K for Tx */ in em_reset() [all …]
|
H A D | e1000_nvm.h | 75 struct e1000_pba *pba); 77 u32 eeprom_buf_size, struct e1000_pba *pba);
|
H A D | if_em.h | 528 u32 pba; member
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_common.c | 794 struct ixgbe_pba *pba) in ixgbe_read_pba_raw() argument 799 if (pba == NULL) in ixgbe_read_pba_raw() 804 &pba->word[0]); in ixgbe_read_pba_raw() 809 pba->word[0] = eeprom_buf[IXGBE_PBANUM0_PTR]; in ixgbe_read_pba_raw() 810 pba->word[1] = eeprom_buf[IXGBE_PBANUM1_PTR]; in ixgbe_read_pba_raw() 816 if (pba->word[0] == IXGBE_PBANUM_PTR_GUARD) { in ixgbe_read_pba_raw() 817 if (pba->pba_block == NULL) in ixgbe_read_pba_raw() 830 ret_val = hw->eeprom.ops.read_buffer(hw, pba->word[1], in ixgbe_read_pba_raw() 832 pba->pba_block); in ixgbe_read_pba_raw() 836 if (eeprom_buf_size > (u32)(pba->word[1] + in ixgbe_read_pba_raw() [all …]
|
H A D | ixgbe_common.h | 63 struct ixgbe_pba *pba); 65 u32 eeprom_buf_size, struct ixgbe_pba *pba);
|
/freebsd/sys/dev/igc/ |
H A D | if_igc.c | 933 if (sc->shared->isc_max_frame_size * 2 > (sc->pba << 10)) { in igc_neweitr() 1702 igc_init_dmac(struct igc_softc *sc, u32 pba) in igc_init_dmac() argument 1722 hwm = 64 * pba - max_frame_size / 16; in igc_init_dmac() 1723 if (hwm < 64 * (pba - 6)) in igc_init_dmac() 1724 hwm = 64 * (pba - 6); in igc_init_dmac() 1731 dmac = pba - max_frame_size / 512; in igc_init_dmac() 1732 if (dmac < pba - 10) in igc_init_dmac() 1733 dmac = pba - 10; in igc_init_dmac() 1799 u32 pba; in igc_reset() local 1810 pba = IGC_PBA_34K; in igc_reset() [all …]
|
H A D | if_igc.h | 353 u32 pba; member
|
/freebsd/sys/dev/mgb/ |
H A D | if_mgb.c | 424 sc->pba = bus_alloc_resource_any(sc->dev, SYS_RES_MEMORY, in mgb_attach_pre() 426 if (sc->pba == NULL) { in mgb_attach_pre() 487 if (sc->pba != NULL) in mgb_detach() 489 rman_get_rid(sc->pba), sc->pba); in mgb_detach() 490 sc->pba = NULL; in mgb_detach()
|
H A D | if_mgb.h | 305 struct resource *pba; member
|