Home
last modified time | relevance | path

Searched refs:pms (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/hid/ !
Dhid-prodikeys.c240 struct pcmidi_sustain *pms = from_timer(pms, t, timer); in pcmidi_sustained_note_release() local
242 pcmidi_send_note(pms->pm, pms->status, pms->note, pms->velocity); in pcmidi_sustained_note_release()
243 pms->in_use = 0; in pcmidi_sustained_note_release()
248 struct pcmidi_sustain *pms; in init_sustain_timers() local
252 pms = &pm->sustained_notes[i]; in init_sustain_timers()
253 pms->in_use = 0; in init_sustain_timers()
254 pms->pm = pm; in init_sustain_timers()
255 timer_setup(&pms->timer, pcmidi_sustained_note_release, 0); in init_sustain_timers()
261 struct pcmidi_sustain *pms; in stop_sustain_timers() local
265 pms = &pm->sustained_notes[i]; in stop_sustain_timers()
[all …]
/linux-6.1.9/drivers/clk/at91/ !
Dclk-programmable.c27 struct at91_clk_pms pms; member
186 prog->pms.parent = clk_programmable_get_parent(hw); in clk_programmable_save_context()
187 prog->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_programmable_save_context()
188 prog->pms.rate = clk_programmable_recalc_rate(hw, prog->pms.parent_rate); in clk_programmable_save_context()
198 ret = clk_programmable_set_parent(hw, prog->pms.parent); in clk_programmable_restore_context()
202 clk_programmable_set_rate(hw, prog->pms.rate, prog->pms.parent_rate); in clk_programmable_restore_context()
Dclk-master.c33 struct at91_clk_pms pms; member
128 master->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_master_div_save_context()
129 master->pms.rate = DIV_ROUND_CLOSEST(master->pms.parent_rate, div); in clk_master_div_save_context()
149 if (div != DIV_ROUND_CLOSEST(master->pms.parent_rate, master->pms.rate)) in clk_master_div_restore_context()
232 ret = clk_master_div_set(master, master->pms.parent_rate, in clk_master_div_restore_context_chg()
233 DIV_ROUND_CLOSEST(master->pms.parent_rate, in clk_master_div_restore_context_chg()
234 master->pms.rate)); in clk_master_div_restore_context_chg()
433 master->pms.parent = val & AT91_PMC_CSS; in clk_master_pres_save_context()
434 master->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_master_pres_save_context()
435 master->pms.rate = DIV_ROUND_CLOSEST_ULL(master->pms.parent_rate, pres); in clk_master_pres_save_context()
[all …]
Dclk-main.c31 struct at91_clk_pms pms; member
41 struct at91_clk_pms pms; member
56 struct at91_clk_pms pms; member
130 osc->pms.status = clk_main_osc_is_prepared(hw); in clk_main_osc_save_context()
139 if (osc->pms.status) in clk_main_osc_restore_context()
269 osc->pms.status = clk_main_rc_osc_is_prepared(hw); in clk_main_rc_osc_save_context()
278 if (osc->pms.status) in clk_main_rc_osc_restore_context()
513 clkmain->pms.status = clk_main_rc_osc_is_prepared(&clkmain->hw); in clk_sam9x5_main_save_context()
514 clkmain->pms.parent = clk_sam9x5_main_get_parent(&clkmain->hw); in clk_sam9x5_main_save_context()
524 ret = clk_sam9x5_main_set_parent(hw, clkmain->pms.parent); in clk_sam9x5_main_restore_context()
[all …]
Dclk-pll.c43 struct at91_clk_pms pms; member
269 pll->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_pll_save_context()
270 pll->pms.rate = clk_pll_recalc_rate(&pll->hw, pll->pms.parent_rate); in clk_pll_save_context()
271 pll->pms.status = clk_pll_ready(pll->regmap, PLL_REG(pll->id)); in clk_pll_save_context()
288 calc_rate = (pll->pms.parent_rate / PLL_DIV(pllr)) * in clk_pll_restore_context()
293 if (pll->pms.rate != calc_rate || in clk_pll_restore_context()
294 pll->pms.status != clk_pll_ready(pll->regmap, PLL_REG(pll->id)) || in clk_pll_restore_context()
Dclk-utmi.c26 struct at91_clk_pms pms; member
121 utmi->pms.status = clk_utmi_is_prepared(hw); in clk_utmi_save_context()
130 if (utmi->pms.status) in clk_utmi_restore_context()
259 utmi->pms.status = clk_utmi_sama7g5_is_prepared(hw); in clk_utmi_sama7g5_save_context()
268 if (utmi->pms.status) in clk_utmi_sama7g5_restore_context()
Dclk-usb.c27 struct at91_clk_pms pms; member
157 usb->pms.parent = at91sam9x5_clk_usb_get_parent(hw); in at91sam9x5_usb_save_context()
158 usb->pms.parent_rate = clk_hw_get_rate(parent_hw); in at91sam9x5_usb_save_context()
159 usb->pms.rate = at91sam9x5_clk_usb_recalc_rate(hw, usb->pms.parent_rate); in at91sam9x5_usb_save_context()
169 ret = at91sam9x5_clk_usb_set_parent(hw, usb->pms.parent); in at91sam9x5_usb_restore_context()
173 at91sam9x5_clk_usb_set_rate(hw, usb->pms.rate, usb->pms.parent_rate); in at91sam9x5_usb_restore_context()
Dclk-system.c23 struct at91_clk_pms pms; member
85 sys->pms.status = clk_system_is_prepared(hw); in clk_system_save_context()
94 if (sys->pms.status) in clk_system_restore_context()
Dclk-generated.c30 struct at91_clk_pms pms; member
268 gck->pms.status = clk_generated_is_enabled(&gck->hw); in clk_generated_save_context()
277 if (gck->pms.status) in clk_generated_restore_context()
278 clk_generated_set(gck, gck->pms.status); in clk_generated_restore_context()
Dclk-peripheral.c40 struct at91_clk_pms pms; member
408 periph->pms.status = clk_sam9x5_peripheral_is_enabled(hw); in clk_sam9x5_peripheral_save_context()
417 if (periph->pms.status) in clk_sam9x5_peripheral_restore_context()
418 clk_sam9x5_peripheral_set(periph, periph->pms.status); in clk_sam9x5_peripheral_restore_context()
Dclk-sam9x60-pll.c42 struct at91_clk_pms pms; member
49 struct at91_clk_pms pms; member
300 frac->pms.status = sam9x60_pll_ready(core->regmap, core->id); in sam9x60_frac_pll_save_context()
310 if (frac->pms.status) in sam9x60_frac_pll_restore_context()
532 div->pms.status = sam9x60_div_pll_is_prepared(hw); in sam9x60_div_pll_save_context()
542 if (div->pms.status) in sam9x60_div_pll_restore_context()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ !
Dspectrum_buffers.c97 struct mlxsw_sp_sb_pm *pms; member
111 const struct mlxsw_sp_sb_pm *pms; member
178 return &mlxsw_sp->sb->ports[local_port].pms[pool_index]; in mlxsw_sp_sb_pm_get()
625 struct mlxsw_sp_sb_pm *pms; in mlxsw_sp_sb_port_init() local
627 pms = kcalloc(mlxsw_sp->sb_vals->pool_count, sizeof(*pms), in mlxsw_sp_sb_port_init()
629 if (!pms) in mlxsw_sp_sb_port_init()
631 sb_port->pms = pms; in mlxsw_sp_sb_port_init()
637 kfree(sb_port->pms); in mlxsw_sp_sb_port_fini()
1067 const struct mlxsw_sp_sb_pm *pms, in mlxsw_sp_sb_pms_init() argument
1073 const struct mlxsw_sp_sb_pm *pm = &pms[i]; in mlxsw_sp_sb_pms_init()
[all …]
/linux-6.1.9/arch/powerpc/sysdev/ !
Dfsl_pci.c1176 u16 pms; in fsl_pci_pme_probe() local
1182 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pms); in fsl_pci_pme_probe()
1183 pms &= ~PCI_PM_CTRL_PME_ENABLE; in fsl_pci_pme_probe()
1184 pci_write_config_word(dev, dev->pm_cap + PCI_PM_CTRL, pms); in fsl_pci_pme_probe()
1215 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pms); in fsl_pci_pme_probe()
1216 pms |= PCI_PM_CTRL_PME_ENABLE; in fsl_pci_pme_probe()
1217 pci_write_config_word(dev, dev->pm_cap + PCI_PM_CTRL, pms); in fsl_pci_pme_probe()
/linux-6.1.9/arch/arm64/boot/dts/apple/ !
Dt8103-pmgr.dtsi83 label = "pms";