Home
last modified time | relevance | path

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

/src/sys/dev/igc/
H A Dif_igc.c321 u32 *regs_buff; in igc_get_regs() local
324 regs_buff = malloc(sizeof(u32) * IGC_REGS_LEN, M_DEVBUF, M_WAITOK); in igc_get_regs()
325 memset(regs_buff, 0, IGC_REGS_LEN * sizeof(u32)); in igc_get_regs()
330 free(regs_buff, M_DEVBUF); in igc_get_regs()
337 free(regs_buff, M_DEVBUF); in igc_get_regs()
342 regs_buff[0] = IGC_READ_REG(hw, IGC_CTRL); in igc_get_regs()
343 regs_buff[1] = IGC_READ_REG(hw, IGC_STATUS); in igc_get_regs()
344 regs_buff[2] = IGC_READ_REG(hw, IGC_CTRL_EXT); in igc_get_regs()
345 regs_buff[3] = IGC_READ_REG(hw, IGC_ICR); in igc_get_regs()
346 regs_buff[4] = IGC_READ_REG(hw, IGC_RCTL); in igc_get_regs()
[all …]
/src/sys/dev/e1000/
H A Dif_em.c775 u32 *regs_buff; in em_get_regs() local
778 regs_buff = malloc(sizeof(u32) * IGB_REGS_LEN, M_DEVBUF, M_WAITOK); in em_get_regs()
779 memset(regs_buff, 0, IGB_REGS_LEN * sizeof(u32)); in em_get_regs()
784 free(regs_buff, M_DEVBUF); in em_get_regs()
791 free(regs_buff, M_DEVBUF); in em_get_regs()
796 regs_buff[0] = E1000_READ_REG(hw, E1000_CTRL); in em_get_regs()
797 regs_buff[1] = E1000_READ_REG(hw, E1000_STATUS); in em_get_regs()
798 regs_buff[2] = E1000_READ_REG(hw, E1000_CTRL_EXT); in em_get_regs()
799 regs_buff[3] = E1000_READ_REG(hw, E1000_ICR); in em_get_regs()
800 regs_buff[4] = E1000_READ_REG(hw, E1000_RCTL); in em_get_regs()
[all …]