Lines Matching refs:hwsq
372 struct nv50_clk_hwsq *hwsq = &clk->hwsq; in nv50_clk_calc() local
385 out = clk_init(hwsq, subdev); in nv50_clk_calc()
389 clk_wr32(hwsq, fifo, 0x00000001); /* block fifo */ in nv50_clk_calc()
390 clk_nsec(hwsq, 8000); in nv50_clk_calc()
391 clk_setf(hwsq, 0x10, 0x00); /* disable fb */ in nv50_clk_calc()
392 clk_wait(hwsq, 0x00, 0x01); /* wait for fb disabled */ in nv50_clk_calc()
447 clk_mask(hwsq, mast, mastm, 0x00000000); in nv50_clk_calc()
448 clk_mask(hwsq, divs, divsm, divsv); in nv50_clk_calc()
449 clk_mask(hwsq, mast, mastm, mastv); in nv50_clk_calc()
455 clk_mask(hwsq, mast, 0x001000b0, 0x00100080); in nv50_clk_calc()
457 clk_mask(hwsq, mast, 0x000000b3, 0x00000081); in nv50_clk_calc()
464 clk_mask(hwsq, nvpll[0], 0xc03f0100, in nv50_clk_calc()
466 clk_mask(hwsq, nvpll[1], 0x0000ffff, (N << 8) | M); in nv50_clk_calc()
475 clk_mask(hwsq, spll[0], 0xc03f0100, (P1 << 19) | (P1 << 16)); in nv50_clk_calc()
476 clk_mask(hwsq, mast, 0x00100033, 0x00000023); in nv50_clk_calc()
482 clk_mask(hwsq, spll[0], 0xc03f0100, in nv50_clk_calc()
484 clk_mask(hwsq, spll[1], 0x0000ffff, (N << 8) | M); in nv50_clk_calc()
485 clk_mask(hwsq, mast, 0x00100033, 0x00000033); in nv50_clk_calc()
489 clk_setf(hwsq, 0x10, 0x01); /* enable fb */ in nv50_clk_calc()
490 clk_wait(hwsq, 0x00, 0x00); /* wait for fb enabled */ in nv50_clk_calc()
491 clk_wr32(hwsq, fifo, 0x00000000); /* un-block fifo */ in nv50_clk_calc()
499 return clk_exec(&clk->hwsq, true); in nv50_clk_prog()
506 clk_exec(&clk->hwsq, false); in nv50_clk_tidy()
523 clk->hwsq.r_fifo = hwsq_reg(0x002504); in nv50_clk_new_()
524 clk->hwsq.r_spll[0] = hwsq_reg(0x004020); in nv50_clk_new_()
525 clk->hwsq.r_spll[1] = hwsq_reg(0x004024); in nv50_clk_new_()
526 clk->hwsq.r_nvpll[0] = hwsq_reg(0x004028); in nv50_clk_new_()
527 clk->hwsq.r_nvpll[1] = hwsq_reg(0x00402c); in nv50_clk_new_()
532 clk->hwsq.r_divs = hwsq_reg(0x004800); in nv50_clk_new_()
535 clk->hwsq.r_divs = hwsq_reg(0x004700); in nv50_clk_new_()
538 clk->hwsq.r_mast = hwsq_reg(0x00c040); in nv50_clk_new_()