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.c345 u32 *regs_buff; in igc_get_regs() local
348 regs_buff = malloc(sizeof(u32) * IGC_REGS_LEN, M_DEVBUF, M_WAITOK); in igc_get_regs()
349 memset(regs_buff, 0, IGC_REGS_LEN * sizeof(u32)); in igc_get_regs()
354 free(regs_buff, M_DEVBUF); in igc_get_regs()
361 free(regs_buff, M_DEVBUF); in igc_get_regs()
366 regs_buff[0] = IGC_READ_REG(hw, IGC_CTRL); in igc_get_regs()
367 regs_buff[1] = IGC_READ_REG(hw, IGC_STATUS); in igc_get_regs()
368 regs_buff[2] = IGC_READ_REG(hw, IGC_CTRL_EXT); in igc_get_regs()
369 regs_buff[3] = IGC_READ_REG(hw, IGC_ICR); in igc_get_regs()
370 regs_buff[4] = IGC_READ_REG(hw, IGC_RCTL); in igc_get_regs()
[all …]
/freebsd/sys/dev/e1000/
H A Dif_em.c913 u32 *regs_buff; in em_get_regs() local
924 regs_buff = malloc(sizeof(u32) * IGB_REGS_LEN, M_DEVBUF, M_WAITOK); in em_get_regs()
925 memset(regs_buff, 0, IGB_REGS_LEN * sizeof(u32)); in em_get_regs()
932 free(regs_buff, M_DEVBUF); in em_get_regs()
939 free(regs_buff, M_DEVBUF); in em_get_regs()
944 regs_buff[0] = E1000_READ_REG(hw, E1000_CTRL); in em_get_regs()
945 regs_buff[1] = E1000_READ_REG(hw, E1000_STATUS); in em_get_regs()
946 regs_buff[2] = E1000_READ_REG(hw, E1000_CTRL_EXT); in em_get_regs()
947 regs_buff[3] = E1000_READ_REG(hw, E1000_ICR); in em_get_regs()
948 regs_buff[4] = E1000_READ_REG(hw, E1000_RCTL); in em_get_regs()
[all …]