Searched refs:comparator (Results 1 - 75 of 75) sorted by relevance

/linux-4.4.14/arch/avr32/kernel/
H A Dtime.c114 static struct clock_event_device comparator = { variable in typeref:struct:clock_event_device
143 comparator.mult = div_sc(counter_hz, NSEC_PER_SEC, comparator.shift); time_init()
144 comparator.max_delta_ns = clockevent_delta2ns((u32)~0, &comparator); time_init()
145 comparator.min_delta_ns = clockevent_delta2ns(50, &comparator) + 1; time_init()
146 comparator.cpumask = cpumask_of(0); time_init()
149 timer_irqaction.dev_id = &comparator; time_init()
155 clockevents_register_device(&comparator); time_init()
157 pr_info("%s: irq 0, %lu.%03lu MHz\n", comparator.name, time_init()
/linux-4.4.14/drivers/mfd/
H A Dtps65911-comparator.c37 struct comparator { struct
44 static struct comparator tps_comparators[] = {
61 struct comparator tps_comp = tps_comparators[id]; comp_threshold_set()
88 struct comparator tps_comp = tps_comparators[id]; comp_threshold_get()
168 .name = "tps65911-comparator",
187 MODULE_DESCRIPTION("TPS65911 comparator driver");
189 MODULE_ALIAS("platform:tps65911-comparator");
H A Dwm8350-regmap.c191 { 0xFFFF, 0xFFFF, 0x0000 }, /* R164 - Generic comparator 1 */
192 { 0xFFFF, 0xFFFF, 0x0000 }, /* R165 - Generic comparator 2 */
193 { 0xFFFF, 0xFFFF, 0x0000 }, /* R166 - Generic comparator 3 */
194 { 0xFFFF, 0xFFFF, 0x0000 }, /* R167 - Generic comparator 4 */
206 { 0x5177, 0x5177, 0x8000 }, /* R179 - Power-check comparator */
H A DMakefile164 obj-$(CONFIG_TPS65911_COMPARATOR) += tps65911-comparator.o
H A Dwm8350-core.c27 #include <linux/mfd/wm8350/comparator.h>
H A Dwm8350-irq.c24 #include <linux/mfd/wm8350/comparator.h>
H A Dmenelaus.c561 /* HW mode, turn OFF byte comparator */ menelaus_set_vcore_hw()
/linux-4.4.14/drivers/hwtracing/coresight/
H A Dcoresight-etm4x.h79 /* Single-shot comparator registers */
195 * @nr_pe_cmp: The number of processing entity comparator inputs that are
206 * @nr_ss_cmp: Number of single-shot comparator controls that are available.
247 * @vipcssctlr: Set, or read, which PE comparator inputs can control the
259 * @ss_ctrl: Controls the corresponding single-shot comparator resource.
260 * @ss_status: The status of the corresponding single-shot comparator.
261 * @ss_pe_cmp: Selects the PE comparator inputs for Single-shot control.
262 * @addr_idx: Address comparator index selector.
263 * @addr_val: Value for address comparator.
264 * @addr_acc: Address comparator access type.
265 * @addr_type: Current status of the comparator register.
268 * @ctxid_pid: Value of the context ID comparator.
271 * @ctxid_mask0:Context ID comparator mask for comparator 0-3.
272 * @ctxid_mask1:Context ID comparator mask for comparator 4-7.
274 * @vmid_size: Size of the VM ID comparator to consider.
275 * @vmid_val: Value of the VM ID comparator.
276 * @vmid_mask0: VM ID comparator mask for comparator 0-3.
277 * @vmid_mask1: VM ID comparator mask for comparator 4-7.
371 /* Address comparator access types */
379 /* Address comparator context types */
H A Dcoresight-etm.h129 #define ETM_ADD_COMP_0 /* Single addr comparator 1 */ \
169 * @addr_idx: index for the address comparator selection.
170 * @addr_val: value for address comparator register.
171 * @addr_acctype: access type for address comparator register.
172 * @addr_type: current status of the comparator register.
H A Dcoresight-etm4x.c289 * for corresponding address comparator pair. etm4_set_mode_exclude()
298 * corresponding to comparator pair etm4_set_mode_exclude()
305 * corresponding to comparator pair etm4_set_mode_exclude()
931 * Bit[7:0] selects which address range comparator is used for bb_ctrl_store()
1199 /* lower address comparator cannot have a higher address value */ addr_range_store()
1420 /* context ID comparator bits[6:4] */ addr_context_show()
1444 /* clear context ID comparator bits[6:4] */ addr_context_store()
1849 * ctxid comparator is implemented and ctxid is greater than 0 bits ctxid_pid_store()
1892 * ctxid comparator is implemented and ctxid is greater than 0 bits ctxid_masks_store()
1903 * comparator[0..3] ctxid_masks_store()
1947 * of ctxid comparator value 0x0, otherwise behavior is unpredictable. ctxid_masks_store()
1953 /* mask value of corresponding ctxid comparator */ ctxid_masks_store()
1956 * each bit corresponds to a byte of respective ctxid comparator ctxid_masks_store()
1964 /* Select the next ctxid comparator mask value */ ctxid_masks_store()
2031 * vmid comparator is implemented and at least 8 bit vmid size vmid_val_store()
2067 * vmid comparator is implemented and at least 8 bit vmid size vmid_masks_store()
2078 * comparator[0..3] vmid_masks_store()
2123 * of vmid comparator value 0x0, otherwise behavior is unpredictable. vmid_masks_store()
2129 /* mask value of corresponding vmid comparator */ vmid_masks_store()
2132 * each bit corresponds to a byte of respective vmid comparator vmid_masks_store()
2140 /* Select the next vmid comparator mask value */ vmid_masks_store()
2418 /* NUMACPAIRS, bits[0:3] number of addr comparator pairs for tracing */ etm4_init_arch_data()
2420 /* NUMPC, bits[15:12] number of PE comparator inputs for tracing */ etm4_init_arch_data()
2431 * comparator control for tracing etm4_init_arch_data()
H A Dcoresight-etm3x.c306 /* No VMID comparator value selected */ etm_enable_hw()
797 /* Lower address comparator cannot have a higher address value */ addr_range_store()
/linux-4.4.14/include/uapi/linux/
H A Dhpet.h14 #define HPET_INFO_PERIODIC 0x0010 /* periodic-capable comparator */
H A Delf.h387 #define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */
/linux-4.4.14/drivers/phy/
H A Dphy-omap-usb2.c38 * omap_usb2_set_comparator - links the comparator present in the sytem with
40 * @comparator - the companion phy(comparator) for this phy
47 int omap_usb2_set_comparator(struct phy_companion *comparator) omap_usb2_set_comparator() argument
56 phy->comparator = comparator; omap_usb2_set_comparator()
65 if (!phy->comparator) omap_usb_set_vbus()
68 return phy->comparator->set_vbus(phy->comparator, enabled); omap_usb_set_vbus()
75 if (!phy->comparator) omap_usb_start_srp()
78 return phy->comparator->start_srp(phy->comparator); omap_usb_start_srp()
/linux-4.4.14/include/linux/phy/
H A Domap_usb.h35 struct phy_companion *comparator; member in struct:omap_usb
58 extern int omap_usb2_set_comparator(struct phy_companion *comparator);
60 static inline int omap_usb2_set_comparator(struct phy_companion *comparator) omap_usb2_set_comparator() argument
/linux-4.4.14/include/linux/mfd/wm8350/
H A Dcomparator.h2 * comparator.h -- Comparator Aux ADC for Wolfson WM8350 PMIC
113 * R164 (0xA4) - Generic comparator 1
120 * R165 (0xA5) - Generic comparator 2
127 * R166 (0xA6) - Generic comparator 3
134 * R167 (0xA7) - Generic comparator 4
H A Dpmic.h150 * R179 (0xB3) - Power-check comparator
/linux-4.4.14/include/linux/can/platform/
H A Dsja1000.h8 #define CDR_CBP 0x40 /* CAN input comparator bypass */
/linux-4.4.14/include/linux/i2c/
H A Dadp8870.h89 * L2 comparator current 0..1106uA
94 * L3 comparator current 0..551uA
99 * L4 comparator current 0..275uA
104 * L5 comparator current 0..138uA
H A Dadp8860.h92 * L2 comparator current 0..1106uA
97 * L3 comparator current 0..138uA
/linux-4.4.14/include/linux/platform_data/
H A Dusb-davinci.h30 #define CFGCHIP2_SESENDEN (1 << 5) /* Vsess_end comparator */
31 #define CFGCHIP2_VBDTCTEN (1 << 4) /* Vbus comparator */
/linux-4.4.14/drivers/char/
H A Dmmtimer.c86 static int mmtimer_int_pending(int comparator) mmtimer_int_pending() argument
89 SH_EVENT_OCCURRED_RTC1_INT_MASK << comparator) mmtimer_int_pending()
96 static void mmtimer_clr_int_pending(int comparator) mmtimer_clr_int_pending() argument
99 SH_EVENT_OCCURRED_RTC1_INT_MASK << comparator); mmtimer_clr_int_pending()
102 /* Setup timer on comparator RTC1 */ mmtimer_setup_int_0()
110 /* Initialize comparator value */ mmtimer_setup_int_0()
126 /* Initialize comparator value */ mmtimer_setup_int_0()
132 /* Setup timer on comparator RTC2 */ mmtimer_setup_int_1()
154 /* Setup timer on comparator RTC3 */ mmtimer_setup_int_2()
181 static int mmtimer_setup(int cpu, int comparator, unsigned long expires, mmtimer_setup() argument
184 switch (comparator) { mmtimer_setup()
204 return mmtimer_int_pending(comparator); mmtimer_setup()
207 static int mmtimer_disable_int(long nasid, int comparator) mmtimer_disable_int() argument
209 switch (comparator) { mmtimer_disable_int()
228 #define COMPARATOR 1 /* The comparator to use */
294 * Set the comparator for the next timer.
590 /* Set comparator for next timer, if there is one */ mmtimer_tasklet()
723 * We are allocating a local SHub comparator. If we would be moved to another sgi_timer_set()
748 /* No need to reprogram comparator for now */ sgi_timer_set()
754 /* We need to reprogram the comparator */ sgi_timer_set()
H A Dhpet.c180 * comparator. hpet_interrupt()
545 * Then we modify the comparator, indicating the period hpet_ioctl_ieon()
/linux-4.4.14/drivers/usb/phy/
H A Dphy-twl6030-usb.c92 struct phy_companion comparator; member in struct:twl6030_usb
111 #define comparator_to_twl(x) container_of((x), struct twl6030_usb, comparator)
142 static int twl6030_start_srp(struct phy_companion *comparator) twl6030_start_srp() argument
144 struct twl6030_usb *twl = comparator_to_twl(comparator); twl6030_start_srp()
311 static int twl6030_set_vbus(struct phy_companion *comparator, bool enabled) twl6030_set_vbus() argument
313 struct twl6030_usb *twl = comparator_to_twl(comparator); twl6030_set_vbus()
339 twl->comparator.set_vbus = twl6030_set_vbus; twl6030_usb_probe()
340 twl->comparator.start_srp = twl6030_start_srp; twl6030_usb_probe()
342 ret = omap_usb2_set_comparator(&twl->comparator); twl6030_usb_probe()
H A Dphy-isp1301-omap.c405 * We translate isp1301 outputs (mostly voltage comparator status) into
/linux-4.4.14/include/linux/usb/
H A Dphy_companion.h2 * phy-companion.h -- phy companion to indicate the comparator part of PHY
/linux-4.4.14/drivers/usb/musb/
H A Ddavinci.h21 #define USBPHY_SESNDEN BIT(7) /* v(sess_end) comparator */
22 #define USBPHY_VBDTCTEN BIT(6) /* v(bus) comparator */
H A Dtusb6010.c411 /* issue 4: when driving vbus, use hipower (vbus_det) comparator */ tusb_allow_idle()
/linux-4.4.14/arch/s390/lib/
H A Ddelay.c42 cr0_new |= (1UL << (63 - 52)); /* enable clock comparator irq */ __udelay_disabled()
71 * Waits for 'usecs' microseconds using the TOD clock comparator.
/linux-4.4.14/drivers/staging/iio/frequency/
H A Dad9834.h87 * the on-board comparator is connected to SIGN BIT OUT
/linux-4.4.14/drivers/hwmon/
H A Dwm8350-hwmon.c29 #include <linux/mfd/wm8350/comparator.h>
H A Dlm77.c8 * is a temperature sensor and thermal window comparator with 0.5 deg
H A Dadt7x10.c407 * Set to 16 bit resolution, continous conversion and comparator mode. adt7x10_probe()
H A Dgl520sm.c857 /* If IRQ# is disabled, we can safely force comparator mode */ gl520_init_client()
H A Dvia686a.c102 * 10 comparator mode- like 00, but ignores hysteresis
/linux-4.4.14/include/linux/ceph/
H A Dceph_frag.h104 * comparator to sort frags logically, as when traversing the
H A Dmsgr.h29 * Rollover-safe type and comparator for 32-bit sequence numbers.
/linux-4.4.14/arch/s390/include/asm/
H A Dnmi.h67 u64 cc : 1; /* 47 clock comparator validity */
/linux-4.4.14/drivers/input/touchscreen/
H A Dwm9705.c73 * Pen detect comparator threshold.
75 * 0 to Vmid in 15 steps, 0 = use zero power comparator with Vmid threshold
84 MODULE_PARM_DESC(pdd, "Set pen detect comparator threshold");
/linux-4.4.14/arch/mn10300/mm/
H A Dcache-dbg-inv-by-tag.S53 and ~(L1_CACHE_DISPARITY-1),a1 # determine comparator base
H A Dcache-inv-by-tag.S166 and ~(L1_CACHE_DISPARITY-1),a1 # determine comparator base
/linux-4.4.14/arch/s390/kernel/
H A Dswsusp.S59 stckc 0x330(%r1) /* store clock comparator */
233 //sckc 0x330(%r13) /* set clock comparator */
H A Dtime.c104 * Fixup the clock comparator.
125 * enable TOD clock and clock comparator interrupts.
137 cd->name = "comparator"; init_cpu_timer()
149 /* Enable clock comparator timer interrupt. */ init_cpu_timer()
275 /* request the clock comparator external interrupt */ time_init()
745 * This round of TOD syncing is done. Set the clock comparator clock_sync_cpu()
H A Dnmi.c223 /* Validate clock comparator register */ s390_validate_registers()
H A Dcrash_dump.c319 * Initialize TOD clock comparator note
/linux-4.4.14/include/linux/mfd/
H A Dadp5520.h245 * L2 comparator current 0..1000uA
250 * L3 comparator current 0..127uA
H A Dpalmas.h337 /* Do we enable the wakeup comparator on probe */
567 #define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator)
/linux-4.4.14/drivers/video/backlight/
H A Dadp8870_bl.c63 #define ADP8870_ALS1_EN 0x2E /* Main ALS comparator level enable */
64 #define ADP8870_ALS2_EN 0x2F /* Second ALS comparator level enable */
67 #define ADP8870_L2TRP 0x32 /* L2 comparator reference */
69 #define ADP8870_L3TRP 0x34 /* L3 comparator reference */
71 #define ADP8870_L4TRP 0x36 /* L4 comparator reference */
73 #define ADP8870_L5TRP 0x38 /* L5 comparator reference */
94 /* ADP8870_ALS1_EN Main ALS comparator level enable */
H A Dadp8860_bl.c53 #define ADP8860_CCFG2 0x1C /* Second comparator configuration */
54 #define ADP8860_L2_TRP 0x1D /* L2 comparator reference */
56 #define ADP8860_L3_TRP 0x1F /* L3 comparator reference */
79 /* ADP8860_CCFG Main ALS comparator level enable */
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dkvm.h162 __u64 ckc; /* clock comparator [ARCH0] */
/linux-4.4.14/arch/s390/kvm/
H A Dtrace-s390.h111 {KVM_S390_INT_CLOCK_COMP, "clock comparator"}, \
H A Dintercept.c264 /* We can not handle clock comparator or timer interrupt with bad PSW */ handle_external_interrupt()
H A Dguestdbg.c158 /* disable timer (clock-comparator) interrupts */ kvm_s390_patch_guest_per_regs()
H A Dinterrupt.c858 VCPU_EVENT(vcpu, 4, "enabled wait via clock comparator: %llu ns", sltime); kvm_s390_handle_wait()
1157 VCPU_EVENT(vcpu, 3, "%s", "inject: clock comparator external"); __inject_ckc()
/linux-4.4.14/arch/mips/loongson64/loongson-3/
H A Dhpet.c101 /* set the comparator */ hpet_set_state_periodic()
/linux-4.4.14/arch/arm/mach-mmp/
H A Dtime.c14 * the clock source, and match comparator #1 used as clock event device.
/linux-4.4.14/drivers/watchdog/
H A Dgeodewdt.c233 /* Set up comparator 2 to reset when the event fires */ geodewdt_probe()
/linux-4.4.14/fs/afs/
H A Dinode.c97 * iget5() comparator
108 * iget5() comparator for inode created by autocell operations
/linux-4.4.14/arch/mips/include/asm/sn/sn0/
H A Dhubpi.h125 #define PI_GFX_INT_CMP_A 0x000320 /* Graphics interrupt comparator A */
130 #define PI_GFX_INT_CMP_B 0x000348 /* Graphics interrupt comparator B */
/linux-4.4.14/drivers/net/can/sja1000/
H A Dsja1000_platform.c153 if (!of_property_read_bool(of, "nxp,no-comparator-bypass")) sp_populate_of()
/linux-4.4.14/drivers/power/
H A Dab8500_btemp.c295 /* Enable Pull-Up and comparator */ ab8500_btemp_curr_source_enable()
313 /* Disable 'force comparator' */ ab8500_btemp_curr_source_enable()
356 /* Enable Pull-Up and comparator */ ab8500_btemp_curr_source_enable()
375 /* Disable 'force comparator' */ ab8500_btemp_curr_source_enable()
H A Dpm2301_charger.h247 /* Battery low level comparator control register */
H A Dwm8350_power.c21 #include <linux/mfd/wm8350/comparator.h>
/linux-4.4.14/drivers/clocksource/
H A Darm_global_timer.c88 * To ensure that updates to comparator value register do not set the
/linux-4.4.14/arch/x86/kernel/
H A Dhpet.c205 * don't bother configuring *any* comparator interrupts. hpet_reserve_platform_timers()
379 * mode. Further the write to the comparator register is hpet_next_event()
387 * between the counter readout and the comparator write can hpet_next_event()
1220 * Increment the comparator value until we are ahead of the hpet_rtc_timer_reinit()
/linux-4.4.14/arch/x86/platform/uv/
H A Duv_time.c133 /* Initialize comparator value */ uv_setup_intr()
/linux-4.4.14/include/linux/
H A Dirqdesc.h30 * @threads_handled_last: comparator field for deferred spurious detection of theraded handlers
H A Dwm97xx.h95 #define WM9705_PDD(i) (i & 0x000f) /* pen detect comparator threshold */
/linux-4.4.14/drivers/thermal/
H A Drcar_thermal.c163 * we need to wait 300us after changing comparator offset rcar_thermal_update_temp()
/linux-4.4.14/drivers/rtc/
H A Drtc-ds1374.c184 /* The ds1374 has a decrementer for an alarm, rather than a comparator.
/linux-4.4.14/drivers/gpu/drm/udl/
H A Dudl_modeset.c115 * the value that needs to be set in the hardware comparator to get the
/linux-4.4.14/drivers/media/usb/dvb-usb/
H A Ddib0700_devices.c2027 u16 fcp_min = 1900; /* PLL, Minimum Frequency of phase comparator (KHz) */ dib8096p_get_best_sampling()
2028 u16 fcp_max = 20000; /* PLL, Maximum Frequency of phase comparator (KHz) */ dib8096p_get_best_sampling()
2533 u32 fcp_min = 1900; /* PLL Minimum Frequency comparator KHz */ dib7090p_get_best_sampling()
2534 u32 fcp_max = 20000; /* PLL Maximum Frequency comparator KHz */ dib7090p_get_best_sampling()
/linux-4.4.14/sound/soc/codecs/
H A Dda7219-aad.c199 /* Grab comparator reading */ da7219_aad_hptest_work()
/linux-4.4.14/drivers/video/fbdev/
H A Dudlfb.c188 * the value that needs to be set in the hardware comparator to get the
/linux-4.4.14/include/sound/
H A Demu10k1.h365 #define JOYSTICK_COMPARATOR 0xf0 /* Joystick comparator data */

Completed in 2188 milliseconds