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.c347 u32 *regs_buff; in igc_get_regs() local
350 regs_buff = malloc(sizeof(u32) * IGC_REGS_LEN, M_DEVBUF, M_WAITOK); in igc_get_regs()
351 memset(regs_buff, 0, IGC_REGS_LEN * sizeof(u32)); in igc_get_regs()
356 free(regs_buff, M_DEVBUF); in igc_get_regs()
363 free(regs_buff, M_DEVBUF); in igc_get_regs()
368 regs_buff[0] = IGC_READ_REG(hw, IGC_CTRL); in igc_get_regs()
369 regs_buff[1] = IGC_READ_REG(hw, IGC_STATUS); in igc_get_regs()
370 regs_buff[2] = IGC_READ_REG(hw, IGC_CTRL_EXT); in igc_get_regs()
371 regs_buff[3] = IGC_READ_REG(hw, IGC_ICR); in igc_get_regs()
372 regs_buff[4] = IGC_READ_REG(hw, IGC_RCTL); in igc_get_regs()
[all …]
/freebsd/sys/dev/e1000/
H A Dif_em.c935 u32 *regs_buff; in em_get_regs() local
946 regs_buff = malloc(sizeof(u32) * IGB_REGS_LEN, M_DEVBUF, M_WAITOK); in em_get_regs()
947 memset(regs_buff, 0, IGB_REGS_LEN * sizeof(u32)); in em_get_regs()
954 free(regs_buff, M_DEVBUF); in em_get_regs()
961 free(regs_buff, M_DEVBUF); in em_get_regs()
966 regs_buff[0] = E1000_READ_REG(hw, E1000_CTRL); in em_get_regs()
967 regs_buff[1] = E1000_READ_REG(hw, E1000_STATUS); in em_get_regs()
968 regs_buff[2] = E1000_READ_REG(hw, E1000_CTRL_EXT); in em_get_regs()
969 regs_buff[3] = E1000_READ_REG(hw, E1000_ICR); in em_get_regs()
970 regs_buff[4] = E1000_READ_REG(hw, E1000_RCTL); in em_get_regs()
[all …]