Home
last modified time | relevance | path

Searched refs:regs_buff (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/igc/
H A Dif_igc.c322 u32 *regs_buff; in igc_get_regs() local
325 regs_buff = malloc(sizeof(u32) * IGC_REGS_LEN, M_DEVBUF, M_WAITOK); in igc_get_regs()
326 memset(regs_buff, 0, IGC_REGS_LEN * sizeof(u32)); in igc_get_regs()
331 free(regs_buff, M_DEVBUF); in igc_get_regs()
338 free(regs_buff, M_DEVBUF); in igc_get_regs()
343 regs_buff[0] = IGC_READ_REG(hw, IGC_CTRL); in igc_get_regs()
344 regs_buff[1] = IGC_READ_REG(hw, IGC_STATUS); in igc_get_regs()
345 regs_buff[2] = IGC_READ_REG(hw, IGC_CTRL_EXT); in igc_get_regs()
346 regs_buff[3] = IGC_READ_REG(hw, IGC_ICR); in igc_get_regs()
347 regs_buff[4] = IGC_READ_REG(hw, IGC_RCTL); in igc_get_regs()
[all …]
/freebsd/sys/dev/e1000/
H A Dif_em.c773 u32 *regs_buff; in em_get_regs() local
776 regs_buff = malloc(sizeof(u32) * IGB_REGS_LEN, M_DEVBUF, M_WAITOK); in em_get_regs()
777 memset(regs_buff, 0, IGB_REGS_LEN * sizeof(u32)); in em_get_regs()
782 free(regs_buff, M_DEVBUF); in em_get_regs()
789 free(regs_buff, M_DEVBUF); in em_get_regs()
794 regs_buff[0] = E1000_READ_REG(hw, E1000_CTRL); in em_get_regs()
795 regs_buff[1] = E1000_READ_REG(hw, E1000_STATUS); in em_get_regs()
796 regs_buff[2] = E1000_READ_REG(hw, E1000_CTRL_EXT); in em_get_regs()
797 regs_buff[3] = E1000_READ_REG(hw, E1000_ICR); in em_get_regs()
798 regs_buff[4] = E1000_READ_REG(hw, E1000_RCTL); in em_get_regs()
[all …]