Home
last modified time | relevance | path

Searched refs:latch (Results 1 - 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/clk/ti/
H A Dmux.c89 ti_clk_latch(&mux->reg, mux->latch); in ti_clk_mux_set_parent()
133 s8 latch, u8 clk_mux_flags, u32 *table) in _register_mux()
154 mux->latch = latch; in _register_mux()
183 s32 latch = -EINVAL; in of_mux_clk_setup() local
202 of_property_read_u32(node, "ti,latch-bit", &latch); in of_mux_clk_setup()
219 flags, &reg, shift, mask, latch, clk_mux_flags, in of_mux_clk_setup()
243 mux->latch = -EINVAL; in ti_clk_build_component_mux()
129 _register_mux(struct device_node *node, const char *name, const char * const *parent_names, u8 num_parents, unsigned long flags, struct clk_omap_reg *reg, u8 shift, u32 mask, s8 latch, u8 clk_mux_flags, u32 *table) _register_mux() argument
H A Dclk.c299 u32 latch; in ti_clk_latch() local
304 latch = 1 << shift; in ti_clk_latch()
306 ti_clk_ll_ops->clk_rmw(latch, latch, reg); in ti_clk_latch()
307 ti_clk_ll_ops->clk_rmw(0, latch, reg); in ti_clk_latch()
H A Dclock.h24 s8 latch; member
40 s8 latch; member
H A Ddivider.c269 ti_clk_latch(&divider->reg, divider->latch); in ti_clk_divider_set_rate()
493 if (!of_property_read_u32(node, "ti,latch-bit", &val)) in ti_clk_divider_populate()
494 div->latch = val; in ti_clk_divider_populate()
496 div->latch = -EINVAL; in ti_clk_divider_populate()
/kernel/linux/linux-6.6/drivers/clk/ti/
H A Dmux.c81 ti_clk_latch(&mux->reg, mux->latch); in ti_clk_mux_set_parent()
125 s8 latch, u8 clk_mux_flags, u32 *table) in _register_mux()
146 mux->latch = latch; in _register_mux()
175 s32 latch = -EINVAL; in of_mux_clk_setup() local
194 of_property_read_u32(node, "ti,latch-bit", &latch); in of_mux_clk_setup()
211 flags, &reg, shift, mask, latch, clk_mux_flags, in of_mux_clk_setup()
235 mux->latch = -EINVAL; in ti_clk_build_component_mux()
121 _register_mux(struct device_node *node, const char *name, const char * const *parent_names, u8 num_parents, unsigned long flags, struct clk_omap_reg *reg, u8 shift, u32 mask, s8 latch, u8 clk_mux_flags, u32 *table) _register_mux() argument
H A Dclk.c338 u32 latch; in ti_clk_latch() local
343 latch = 1 << shift; in ti_clk_latch()
345 ti_clk_ll_ops->clk_rmw(latch, latch, reg); in ti_clk_latch()
346 ti_clk_ll_ops->clk_rmw(0, latch, reg); in ti_clk_latch()
H A Dclock.h16 s8 latch; member
32 s8 latch; member
H A Ddivider.c261 ti_clk_latch(&divider->reg, divider->latch); in ti_clk_divider_set_rate()
485 if (!of_property_read_u32(node, "ti,latch-bit", &val)) in ti_clk_divider_populate()
486 div->latch = val; in ti_clk_divider_populate()
488 div->latch = -EINVAL; in ti_clk_divider_populate()
/kernel/linux/linux-6.6/drivers/gpio/
H A Dgpio-latch.c3 * GPIO latch driver
37 * the number of inputs per latch is derived from the number of GPIOs given
78 int latch = offset / priv->n_latched_gpios; in gpio_latch_set_unlocked() local
85 test_bit(latch * priv->n_latched_gpios + i, priv->shadow)); in gpio_latch_set_unlocked()
88 set(priv->clk_gpios->desc[latch], 1); in gpio_latch_set_unlocked()
90 set(priv->clk_gpios->desc[latch], 0); in gpio_latch_set_unlocked()
202 .compatible = "gpio-latch",
210 .name = "gpio-latch",
219 MODULE_DESCRIPTION("GPIO latch driver");
/kernel/linux/linux-5.10/drivers/pcmcia/
H A Dtcic.c532 u_char latch, sstat; in tcic_interrupt() local
550 latch = sstat ^ socket_table[psock].last_sstat; in tcic_interrupt()
556 if (latch == 0) in tcic_interrupt()
558 events = (latch & TCIC_SSTAT_CD) ? SS_DETECT : 0; in tcic_interrupt()
559 events |= (latch & TCIC_SSTAT_WP) ? SS_WRPROT : 0; in tcic_interrupt()
561 events |= (latch & TCIC_SSTAT_LBAT1) ? SS_STSCHG : 0; in tcic_interrupt()
563 events |= (latch & TCIC_SSTAT_RDY) ? SS_READY : 0; in tcic_interrupt()
564 events |= (latch & TCIC_SSTAT_LBAT1) ? SS_BATDEAD : 0; in tcic_interrupt()
565 events |= (latch & TCIC_SSTAT_LBAT2) ? SS_BATWARN : 0; in tcic_interrupt()
/kernel/linux/linux-6.6/drivers/pcmcia/
H A Dtcic.c532 u_char latch, sstat; in tcic_interrupt() local
550 latch = sstat ^ socket_table[psock].last_sstat; in tcic_interrupt()
556 if (latch == 0) in tcic_interrupt()
558 events = (latch & TCIC_SSTAT_CD) ? SS_DETECT : 0; in tcic_interrupt()
559 events |= (latch & TCIC_SSTAT_WP) ? SS_WRPROT : 0; in tcic_interrupt()
561 events |= (latch & TCIC_SSTAT_LBAT1) ? SS_STSCHG : 0; in tcic_interrupt()
563 events |= (latch & TCIC_SSTAT_RDY) ? SS_READY : 0; in tcic_interrupt()
564 events |= (latch & TCIC_SSTAT_LBAT1) ? SS_BATDEAD : 0; in tcic_interrupt()
565 events |= (latch & TCIC_SSTAT_LBAT2) ? SS_BATWARN : 0; in tcic_interrupt()
/kernel/linux/linux-5.10/drivers/clocksource/
H A Dtimer-ixp4xx.c59 u32 latch; member
149 val = tmr->latch & ~IXP4XX_OST_RELOAD_MASK; in ixp4xx_set_periodic()
189 * So make sure the latch is the best value with the two least in ixp4xx_timer_register()
192 tmr->latch = DIV_ROUND_CLOSEST(timer_freq, in ixp4xx_timer_register()
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dtimer-ixp4xx.c48 u32 latch; member
138 val = tmr->latch & ~IXP4XX_OST_RELOAD_MASK; in ixp4xx_set_periodic()
177 * So make sure the latch is the best value with the two least in ixp4xx_timer_register()
180 tmr->latch = DIV_ROUND_CLOSEST(timer_freq, in ixp4xx_timer_register()
/kernel/linux/linux-5.10/kernel/time/
H A Dclockevents.c32 static u64 cev_delta2ns(unsigned long latch, struct clock_event_device *evt, in cev_delta2ns() argument
35 u64 clc = (u64) latch << evt->shift; in cev_delta2ns()
44 * not equal latch, we know that the above shift overflowed. in cev_delta2ns()
46 if ((clc >> evt->shift) != (u64)latch) in cev_delta2ns()
59 * than latch by up to (mult - 1) >> shift. For the min_delta in cev_delta2ns()
62 * we would end up with a latch value larger than the upper in cev_delta2ns()
79 * clockevents_delta2ns - Convert a latch value (device ticks) to nanoseconds
80 * @latch: value to convert
83 * Math helper, returns latch value converted to nanoseconds (bound checked)
85 u64 clockevent_delta2ns(unsigned long latch, struc argument
[all...]
/kernel/linux/linux-6.6/kernel/time/
H A Dclockevents.c32 static u64 cev_delta2ns(unsigned long latch, struct clock_event_device *evt, in cev_delta2ns() argument
35 u64 clc = (u64) latch << evt->shift; in cev_delta2ns()
44 * not equal latch, we know that the above shift overflowed. in cev_delta2ns()
46 if ((clc >> evt->shift) != (u64)latch) in cev_delta2ns()
59 * than latch by up to (mult - 1) >> shift. For the min_delta in cev_delta2ns()
62 * we would end up with a latch value larger than the upper in cev_delta2ns()
79 * clockevent_delta2ns - Convert a latch value (device ticks) to nanoseconds
80 * @latch: value to convert
83 * Math helper, returns latch value converted to nanoseconds (bound checked)
85 u64 clockevent_delta2ns(unsigned long latch, struc argument
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dtsc.c388 static unsigned long pit_calibrate_tsc(u32 latch, unsigned long ms, int loopmin) in pit_calibrate_tsc() argument
413 * count mode), binary count. Set the latch register to 50ms in pit_calibrate_tsc()
417 outb(latch & 0xff, 0x42); in pit_calibrate_tsc()
418 outb(latch >> 8, 0x42); in pit_calibrate_tsc()
720 unsigned long flags, latch, ms; in pit_hpet_ptimer_calibrate_cpu() local
749 latch = CAL_LATCH; in pit_hpet_ptimer_calibrate_cpu()
764 tsc_pit_khz = pit_calibrate_tsc(latch, ms, loopmin); in pit_hpet_ptimer_calibrate_cpu()
810 latch = CAL2_LATCH; in pit_hpet_ptimer_calibrate_cpu()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dtsc.c425 static unsigned long pit_calibrate_tsc(u32 latch, unsigned long ms, int loopmin) in pit_calibrate_tsc() argument
450 * count mode), binary count. Set the latch register to 50ms in pit_calibrate_tsc()
454 outb(latch & 0xff, 0x42); in pit_calibrate_tsc()
455 outb(latch >> 8, 0x42); in pit_calibrate_tsc()
757 unsigned long flags, latch, ms; in pit_hpet_ptimer_calibrate_cpu() local
786 latch = CAL_LATCH; in pit_hpet_ptimer_calibrate_cpu()
801 tsc_pit_khz = pit_calibrate_tsc(latch, ms, loopmin); in pit_hpet_ptimer_calibrate_cpu()
847 latch = CAL2_LATCH; in pit_hpet_ptimer_calibrate_cpu()
/kernel/linux/linux-6.6/drivers/platform/surface/
H A Dsurface_dtx.c249 dev_err(ddev->dev, "unknown latch status: %#04x\n", status); in sdtx_translate_latch_status()
319 u8 latch; in sdtx_ioctl_get_latch_status() local
324 status = ssam_retry(ssam_bas_get_latch_status, ddev->ctrl, &latch); in sdtx_ioctl_get_latch_status()
328 return put_user(sdtx_translate_latch_status(ddev, latch), buf); in sdtx_ioctl_get_latch_status()
879 u8 mode, latch; in sdtx_device_state_workfn() local
907 status = ssam_retry(ssam_bas_get_latch_status, ddev->ctrl, &latch); in sdtx_device_state_workfn()
909 dev_err(ddev->dev, "failed to get latch status: %d\n", status); in sdtx_device_state_workfn()
930 __sdtx_device_state_update_latch(ddev, latch); in sdtx_device_state_workfn()
/kernel/linux/linux-5.10/include/linux/
H A Dclockchips.h182 extern u64 clockevent_delta2ns(unsigned long latch, struct clock_event_device *evt);
/kernel/linux/linux-6.6/include/linux/
H A Dclockchips.h182 extern u64 clockevent_delta2ns(unsigned long latch, struct clock_event_device *evt);
/kernel/linux/linux-5.10/drivers/md/
H A Ddm.c155 int latch = READ_ONCE(swap_bios); in get_swap_bios() local
156 if (unlikely(latch <= 0)) in get_swap_bios()
157 latch = DEFAULT_SWAP_BIOS; in get_swap_bios()
158 return latch; in get_swap_bios()
1280 static noinline void __set_swap_bios_limit(struct mapped_device *md, int latch) in __set_swap_bios_limit() argument
1283 while (latch < md->swap_bios) { in __set_swap_bios_limit()
1288 while (latch > md->swap_bios) { in __set_swap_bios_limit()
1317 int latch = get_swap_bios(); in __map_bio() local
1318 if (unlikely(latch != md->swap_bios)) in __map_bio()
1319 __set_swap_bios_limit(md, latch); in __map_bio()
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Ddm.c131 int latch = READ_ONCE(swap_bios); in get_swap_bios() local
133 if (unlikely(latch <= 0)) in get_swap_bios()
134 latch = DEFAULT_SWAP_BIOS; in get_swap_bios()
135 return latch; in get_swap_bios()
1378 static noinline void __set_swap_bios_limit(struct mapped_device *md, int latch) in __set_swap_bios_limit() argument
1381 while (latch < md->swap_bios) { in __set_swap_bios_limit()
1386 while (latch > md->swap_bios) { in __set_swap_bios_limit()
1411 int latch = get_swap_bios(); in __map_bio() local
1413 if (unlikely(latch != md->swap_bios)) in __map_bio()
1414 __set_swap_bios_limit(md, latch); in __map_bio()
[all...]
/kernel/linux/linux-6.6/kernel/printk/
H A Dprintk.c456 seqcount_latch_t latch; member
466 .latch = SEQCNT_LATCH_ZERO(clear_seq.latch),
514 raw_write_seqcount_latch(&ls->latch); in latched_seq_write()
516 raw_write_seqcount_latch(&ls->latch); in latched_seq_write()
528 seq = raw_read_seqcount_latch(&ls->latch); in latched_seq_read_nolock()
531 } while (raw_read_seqcount_latch_retry(&ls->latch, seq)); in latched_seq_read_nolock()
/kernel/linux/linux-5.10/drivers/staging/fbtft/
H A Dfbtft.h174 * @gpio.latch: Bus latch signal, eg. 16->8 bit bus latch
213 struct gpio_desc *latch; member
/kernel/linux/linux-6.6/drivers/staging/fbtft/
H A Dfbtft.h174 * @gpio.latch: Bus latch signal, eg. 16->8 bit bus latch
213 struct gpio_desc *latch; member

Completed in 30 milliseconds

12