/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | pllgt215.c | 34 int M, lM, hM, N, fN; in gt215_pll_calc() local 51 fN = tmp % info->refclk; in gt215_pll_calc() 54 if (fN >= info->refclk / 2) in gt215_pll_calc() 57 if (fN < info->refclk / 2) in gt215_pll_calc() 59 fN = tmp - (N * info->refclk); in gt215_pll_calc() 75 *pfN = ((fN << 13) + info->refclk / 2) / info->refclk; in gt215_pll_calc()
|
D | pll.h | 11 int *N, int *fN, int *M, int *P);
|
D | gk104.c | 69 u16 fN = 0xf000; in read_pll() local 86 fN = nvkm_rd32(device, pll + 0x10) >> 16; in read_pll() 101 sclk = (sclk * N) + (((u16)(fN + 4096) * sclk) >> 13); in read_pll()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
D | ga100.c | 35 int N, fN, M, P; in ga100_devinit_pll_set() local 42 ret = gt215_pll_calc(subdev, &info, freq, &N, &fN, &M, &P); in ga100_devinit_pll_set() 52 nvkm_wr32(device, 0x00ef18 + (head * 0x40), (N << 16) | fN); in ga100_devinit_pll_set()
|
D | gv100.c | 35 int N, fN, M, P; in gv100_devinit_pll_set() local 42 ret = gt215_pll_calc(subdev, &info, freq, &N, &fN, &M, &P); in gv100_devinit_pll_set() 51 nvkm_wr32(device, 0x00ef10 + (head * 0x40), fN << 16); in gv100_devinit_pll_set()
|
D | tu102.c | 35 int N, fN, M, P; in tu102_devinit_pll_set() local 42 ret = gt215_pll_calc(subdev, &info, freq, &N, &fN, &M, &P); in tu102_devinit_pll_set() 51 nvkm_wr32(device, 0x00ef10 + (head * 0x40), fN << 16); in tu102_devinit_pll_set()
|
D | gf100.c | 37 int N, fN, M, P; in gf100_devinit_pll_set() local 44 ret = gt215_pll_calc(subdev, &info, freq, &N, &fN, &M, &P); in gf100_devinit_pll_set() 55 nvkm_wr32(device, info.reg + 0x10, fN << 16); in gf100_devinit_pll_set()
|
D | gt215.c | 37 int N, fN, M, P; in gt215_devinit_pll_set() local 44 ret = gt215_pll_calc(subdev, &info, freq, &N, &fN, &M, &P); in gt215_devinit_pll_set() 54 nvkm_wr32(device, info.reg + 8, fN); in gt215_devinit_pll_set()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | ramgk104.c | 982 gk104_calc_pll_output(int fN, int M, int N, int P, int clk) in gk104_calc_pll_output() argument 984 return ((clk * N) + (((u16)(fN + 4096) * clk) >> 13)) / (M * P); in gk104_calc_pll_output()
|