Searched refs:unit_khz_dds_val (Results 1 – 2 of 2) sorted by relevance
2700 s16 unit_khz_dds_val; in dib8000_set_dds() local2708 unit_khz_dds_val = (1<<26) / (dib8000_read32(state, 23) / 1000); in dib8000_set_dds()2710 dds = (1 << 26) - (abs_offset_khz * unit_khz_dds_val); in dib8000_set_dds()2712 dds = (abs_offset_khz * unit_khz_dds_val); in dib8000_set_dds()2718 unit_khz_dds_val = (u16) (67108864 / state->cfg.pll->internal); in dib8000_set_dds()2721 unit_khz_dds_val *= -1; in dib8000_set_dds()2725 dds -= abs_offset_khz * unit_khz_dds_val; in dib8000_set_dds()2727 dds += abs_offset_khz * unit_khz_dds_val; in dib8000_set_dds()2730 dprintk("setting a DDS frequency offset of %c%dkHz\n", invert ? '-' : ' ', dds / unit_khz_dds_val); in dib8000_set_dds()
811 s32 unit_khz_dds_val; in dib7000p_set_dds() local820 unit_khz_dds_val = 67108864 / (internal); in dib7000p_set_dds()825 unit_khz_dds_val *= -1; in dib7000p_set_dds()829 …dds -= (abs_offset_khz * unit_khz_dds_val); /* /100 because of /100 on the unit_khz_dds_val line c… in dib7000p_set_dds()831 dds += (abs_offset_khz * unit_khz_dds_val); in dib7000p_set_dds()