FreeBSD/sys/dev/bxe/bxe.c
/* writes FP SP data to FW - data_size in dwords */
writes FP SP data to FW - data_size in dwords
writes FP SP data to FW - data_size in dwords
static void
bxe_wr_fp_sb_data(struct bxe_softc *sc,
                  int              fw_sb_id,
                  uint32_t         *sb_data_p,
                  uint32_t         data_size)
{
    int index;
    for (index = 0; index < data_size; index++) {
        REG_WR(sc,
               (BAR_CSTRORM_INTMEM +
                CSTORM_STATUS_BLOCK_DATA_OFFSET(fw_sb_id) +
                (sizeof(uint32_t) * index)),
               *(sb_data_p + index));
    }
}
static void bxe_wr_fp_sb_data ( struct bxe_softc * sc , int fw_sb_id , uint32_t * sb_data_p , uint32_t data_size ) { int index ; for ( index = 0 ; index < data_size ; index ++ ) { REG_WR ( sc , ( BAR_CSTRORM_INTMEM + CSTORM_STATUS_BLOCK_DATA_OFFSET ( fw_sb_id ) + ( sizeof ( uint32_t ) * index ) ) , * ( sb_data_p + index ) ) ; } }
writes FP SP data to FW - data_size in dwords
writes FP SP data to FW - data_size in dwords