Home
last modified time | relevance | path

Searched refs:cycle (Results 1 - 25 of 181) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/ide/
H A Dide-timings.c72 u16 cycle = 0; in ide_pio_cycle_time() local
76 cycle = id[ATA_ID_EIDE_PIO_IORDY]; in ide_pio_cycle_time()
78 cycle = id[ATA_ID_EIDE_PIO]; in ide_pio_cycle_time()
81 if (pio < 3 && cycle < t->cycle) in ide_pio_cycle_time()
82 cycle = 0; /* use standard timing */ in ide_pio_cycle_time()
86 cycle = 0; in ide_pio_cycle_time()
89 return cycle ? cycle : t->cycle; in ide_pio_cycle_time()
[all...]
/kernel/linux/linux-5.10/drivers/vme/bridges/
H A Dvme_fake.c49 u32 cycle; member
57 u32 cycle; member
156 dma_addr_t buf_base, u32 aspace, u32 cycle) in fake_slave_set()
213 bridge->slaves[i].cycle = cycle; in fake_slave_set()
225 dma_addr_t *buf_base, u32 *aspace, u32 *cycle) in fake_slave_get()
241 *cycle = bridge->slaves[i].cycle; in fake_slave_get()
253 u32 aspace, u32 cycle, u32 dwidth) in fake_master_set()
321 bridge->masters[i].cycle in fake_master_set()
154 fake_slave_set(struct vme_slave_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, dma_addr_t buf_base, u32 aspace, u32 cycle) fake_slave_set() argument
223 fake_slave_get(struct vme_slave_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, dma_addr_t *buf_base, u32 *aspace, u32 *cycle) fake_slave_get() argument
251 fake_master_set(struct vme_master_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, u32 aspace, u32 cycle, u32 dwidth) fake_master_set() argument
338 __fake_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) __fake_master_get() argument
360 fake_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) fake_master_get() argument
377 fake_lm_check(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_lm_check() argument
417 fake_vmeread8(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_vmeread8() argument
450 fake_vmeread16(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_vmeread16() argument
483 fake_vmeread32(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_vmeread32() argument
520 u32 aspace, cycle, dwidth; fake_master_read() local
615 fake_vmewrite8(struct fake_driver *bridge, u8 *buf, unsigned long long addr, u32 aspace, u32 cycle) fake_vmewrite8() argument
646 fake_vmewrite16(struct fake_driver *bridge, u16 *buf, unsigned long long addr, u32 aspace, u32 cycle) fake_vmewrite16() argument
677 fake_vmewrite32(struct fake_driver *bridge, u32 *buf, unsigned long long addr, u32 aspace, u32 cycle) fake_vmewrite32() argument
712 u32 aspace, cycle, dwidth; fake_master_write() local
748 addr + done, aspace, cycle); fake_master_write() local
753 addr + done, aspace, cycle); fake_master_write() local
763 addr + done, aspace, cycle); fake_master_write() local
770 addr + done, aspace, cycle); fake_master_write() local
777 aspace, cycle); fake_master_write() local
786 addr + done, aspace, cycle); fake_master_write() local
793 cycle); fake_master_write() local
815 u32 aspace, cycle; fake_master_rmw() local
856 fake_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, u32 aspace, u32 cycle) fake_lm_set() argument
902 fake_lm_get(struct vme_lm_resource *lm, unsigned long long *lm_base, u32 *aspace, u32 *cycle) fake_lm_get() argument
[all...]
H A Dvme_tsi148.c473 dma_addr_t pci_base, u32 aspace, u32 cycle) in tsi148_slave_set()
561 switch (cycle & (VME_2eSST160 | VME_2eSST267 | VME_2eSST320)) { in tsi148_slave_set()
573 /* Setup cycle types */ in tsi148_slave_set()
575 if (cycle & VME_BLT) in tsi148_slave_set()
577 if (cycle & VME_MBLT) in tsi148_slave_set()
579 if (cycle & VME_2eVME) in tsi148_slave_set()
581 if (cycle & VME_2eSST) in tsi148_slave_set()
583 if (cycle & VME_2eSSTB) in tsi148_slave_set()
591 if (cycle & VME_SUPER) in tsi148_slave_set()
593 if (cycle in tsi148_slave_set()
471 tsi148_slave_set(struct vme_slave_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, dma_addr_t pci_base, u32 aspace, u32 cycle) tsi148_slave_set() argument
616 tsi148_slave_get(struct vme_slave_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, dma_addr_t *pci_base, u32 *aspace, u32 *cycle) tsi148_slave_get() argument
807 tsi148_master_set(struct vme_master_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, u32 aspace, u32 cycle, u32 dwidth) tsi148_master_set() argument
1049 __tsi148_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) __tsi148_master_get() argument
1159 tsi148_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) tsi148_master_get() argument
1180 u32 aspace, cycle, dwidth; tsi148_master_read() local
1266 u32 aspace, cycle, dwidth; tsi148_master_write() local
1419 tsi148_dma_set_vme_src_attributes(struct device *dev, __be32 *attr, u32 aspace, u32 cycle, u32 dwidth) tsi148_dma_set_vme_src_attributes() argument
1519 tsi148_dma_set_vme_dest_attributes(struct device *dev, __be32 *attr, u32 aspace, u32 cycle, u32 dwidth) tsi148_dma_set_vme_dest_attributes() argument
1927 tsi148_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, u32 aspace, u32 cycle) tsi148_lm_set() argument
1994 tsi148_lm_get(struct vme_lm_resource *lm, unsigned long long *lm_base, u32 *aspace, u32 *cycle) tsi148_lm_get() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/vme_user/
H A Dvme_fake.c49 u32 cycle; member
57 u32 cycle; member
156 dma_addr_t buf_base, u32 aspace, u32 cycle) in fake_slave_set()
213 bridge->slaves[i].cycle = cycle; in fake_slave_set()
225 dma_addr_t *buf_base, u32 *aspace, u32 *cycle) in fake_slave_get()
241 *cycle = bridge->slaves[i].cycle; in fake_slave_get()
253 u32 aspace, u32 cycle, u32 dwidth) in fake_master_set()
321 bridge->masters[i].cycle in fake_master_set()
154 fake_slave_set(struct vme_slave_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, dma_addr_t buf_base, u32 aspace, u32 cycle) fake_slave_set() argument
223 fake_slave_get(struct vme_slave_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, dma_addr_t *buf_base, u32 *aspace, u32 *cycle) fake_slave_get() argument
251 fake_master_set(struct vme_master_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, u32 aspace, u32 cycle, u32 dwidth) fake_master_set() argument
337 __fake_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) __fake_master_get() argument
358 fake_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) fake_master_get() argument
374 fake_lm_check(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_lm_check() argument
414 fake_vmeread8(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_vmeread8() argument
447 fake_vmeread16(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_vmeread16() argument
480 fake_vmeread32(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) fake_vmeread32() argument
517 u32 aspace, cycle, dwidth; fake_master_read() local
612 fake_vmewrite8(struct fake_driver *bridge, u8 *buf, unsigned long long addr, u32 aspace, u32 cycle) fake_vmewrite8() argument
642 fake_vmewrite16(struct fake_driver *bridge, u16 *buf, unsigned long long addr, u32 aspace, u32 cycle) fake_vmewrite16() argument
672 fake_vmewrite32(struct fake_driver *bridge, u32 *buf, unsigned long long addr, u32 aspace, u32 cycle) fake_vmewrite32() argument
706 u32 aspace, cycle, dwidth; fake_master_write() local
742 addr + done, aspace, cycle); fake_master_write() local
747 addr + done, aspace, cycle); fake_master_write() local
757 addr + done, aspace, cycle); fake_master_write() local
764 addr + done, aspace, cycle); fake_master_write() local
771 aspace, cycle); fake_master_write() local
780 addr + done, aspace, cycle); fake_master_write() local
787 cycle); fake_master_write() local
809 u32 aspace, cycle; fake_master_rmw() local
850 fake_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, u32 aspace, u32 cycle) fake_lm_set() argument
896 fake_lm_get(struct vme_lm_resource *lm, unsigned long long *lm_base, u32 *aspace, u32 *cycle) fake_lm_get() argument
[all...]
H A Dvme_tsi148.c468 dma_addr_t pci_base, u32 aspace, u32 cycle) in tsi148_slave_set()
554 switch (cycle & (VME_2eSST160 | VME_2eSST267 | VME_2eSST320)) { in tsi148_slave_set()
566 /* Setup cycle types */ in tsi148_slave_set()
568 if (cycle & VME_BLT) in tsi148_slave_set()
570 if (cycle & VME_MBLT) in tsi148_slave_set()
572 if (cycle & VME_2eVME) in tsi148_slave_set()
574 if (cycle & VME_2eSST) in tsi148_slave_set()
576 if (cycle & VME_2eSSTB) in tsi148_slave_set()
584 if (cycle & VME_SUPER) in tsi148_slave_set()
586 if (cycle in tsi148_slave_set()
466 tsi148_slave_set(struct vme_slave_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, dma_addr_t pci_base, u32 aspace, u32 cycle) tsi148_slave_set() argument
609 tsi148_slave_get(struct vme_slave_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, dma_addr_t *pci_base, u32 *aspace, u32 *cycle) tsi148_slave_get() argument
798 tsi148_master_set(struct vme_master_resource *image, int enabled, unsigned long long vme_base, unsigned long long size, u32 aspace, u32 cycle, u32 dwidth) tsi148_master_set() argument
1033 __tsi148_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) __tsi148_master_get() argument
1142 tsi148_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) tsi148_master_get() argument
1163 u32 aspace, cycle, dwidth; tsi148_master_read() local
1248 u32 aspace, cycle, dwidth; tsi148_master_write() local
1401 tsi148_dma_set_vme_src_attributes(struct device *dev, __be32 *attr, u32 aspace, u32 cycle, u32 dwidth) tsi148_dma_set_vme_src_attributes() argument
1499 tsi148_dma_set_vme_dest_attributes(struct device *dev, __be32 *attr, u32 aspace, u32 cycle, u32 dwidth) tsi148_dma_set_vme_dest_attributes() argument
1900 tsi148_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, u32 aspace, u32 cycle) tsi148_lm_set() argument
1965 tsi148_lm_get(struct vme_lm_resource *lm, unsigned long long *lm_base, u32 *aspace, u32 *cycle) tsi148_lm_get() argument
[all...]
/kernel/liteos_a/arch/arm/arm/src/
H A Dlos_hw_tick.c55 UINT64 cycle = HalClockGetCycles(); in LOS_GetCpuCycle() local
57 *highCnt = cycle >> 32; /* 32: offset 32 bits and retain high bits */ in LOS_GetCpuCycle()
58 *lowCnt = cycle & 0xFFFFFFFFU; in LOS_GetCpuCycle()
63 UINT64 cycle = HalClockGetCycles(); in LOS_CurrNanosec() local
64 return (cycle / g_sysClock) * OS_SYS_NS_PER_SECOND + (cycle % g_sysClock) * OS_SYS_NS_PER_SECOND / g_sysClock; in LOS_CurrNanosec()
/kernel/linux/linux-5.10/arch/alpha/lib/
H A Dev6-csum_ipv6_magic.S36 * (we can't hide the 3-cycle latency of the unpkbw in the 6-instruction sequence)
116 cmpult $20,$3,$3 # E : (1 cycle stall on $20)
117 addq $20,$18,$20 # E : U L U L (1 cycle stall on $20)
120 addq $20,$19,$20 # E : (1 cycle stall on $20)
125 addq $18,$19,$18 # E : (1 cycle stall on $19)
128 /* (1 cycle stall on $18, 2 cycles on $20) */
131 zapnot $0,15,$1 # U : Start folding output (1 cycle stall on $0)
133 srl $0,32,$0 # U : U L U L : (1 cycle stall on $0)
136 extwl $1,2,$2 # U : ushort[1] (1 cycle stall on $1)
137 zapnot $1,3,$0 # U : ushort[0] (1 cycle stal
[all...]
/kernel/linux/linux-6.6/arch/alpha/lib/
H A Dev6-csum_ipv6_magic.S36 * (we can't hide the 3-cycle latency of the unpkbw in the 6-instruction sequence)
116 cmpult $20,$3,$3 # E : (1 cycle stall on $20)
117 addq $20,$18,$20 # E : U L U L (1 cycle stall on $20)
120 addq $20,$19,$20 # E : (1 cycle stall on $20)
125 addq $18,$19,$18 # E : (1 cycle stall on $19)
128 /* (1 cycle stall on $18, 2 cycles on $20) */
131 zapnot $0,15,$1 # U : Start folding output (1 cycle stall on $0)
133 srl $0,32,$0 # U : U L U L : (1 cycle stall on $0)
136 extwl $1,2,$2 # U : ushort[1] (1 cycle stall on $1)
137 zapnot $1,3,$0 # U : ushort[0] (1 cycle stal
[all...]
/kernel/linux/linux-5.10/drivers/ata/
H A Dlibata-pata-timings.c70 q->cycle = EZ(t->cycle, T); in ata_timing_quantize()
92 m->cycle = max(a->cycle, b->cycle); in ata_timing_merge()
133 * PIO/MW_DMA cycle timing. in ata_timing_compute()
141 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; in ata_timing_compute()
144 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO_IORDY]; in ata_timing_compute()
146 p.cycle = id[ATA_ID_EIDE_DMA_MIN]; in ata_timing_compute()
160 * DMA cycle timin in ata_timing_compute()
[all...]
/kernel/linux/linux-6.6/drivers/ata/
H A Dlibata-pata-timings.c70 q->cycle = EZ(t->cycle, T); in ata_timing_quantize()
92 m->cycle = max(a->cycle, b->cycle); in ata_timing_merge()
133 * PIO/MW_DMA cycle timing. in ata_timing_compute()
141 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; in ata_timing_compute()
144 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO_IORDY]; in ata_timing_compute()
146 p.cycle = id[ATA_ID_EIDE_DMA_MIN]; in ata_timing_compute()
160 * DMA cycle timin in ata_timing_compute()
[all...]
/kernel/liteos_a/kernel/base/include/
H A Dlos_sys_pri.h82 * Number of cycle in one tick.
88 * Number of nanoseconds in one cycle.
109 #define OS_CYCLE_TO_US(cycle, freq) ((((cycle) / (freq)) * OS_SYS_US_PER_SECOND) + \
110 ((cycle) % (freq) * OS_SYS_US_PER_SECOND / (freq)))
112 #define OS_SYS_CYCLE_TO_US(cycle) OS_CYCLE_TO_US((cycle), OS_SYS_CLOCK)
/kernel/liteos_m/kernel/include/
H A Dlos_tick.h154 #define OS_SYS_CYCLE_TO_NS(cycle, freq) ((cycle) / (freq)) * OS_SYS_NS_PER_SECOND + \
155 ((cycle) % (freq) * OS_SYS_NS_PER_SECOND / (freq))
162 #define OS_SYS_CYCLE_TO_TICK(cycle) ((((UINT64)(cycle)) * LOSCFG_BASE_CORE_TICK_PER_SECOND) / g_sysClock)
602 * @param cycle [IN] Number of cycles.
609 STATIC_INLINE UINT64 OsCycle2MS(UINT64 cycle) in OsCycle2MS() argument
611 return (UINT64)((cycle / (g_sysClock / OS_SYS_MS_PER_SECOND))); in OsCycle2MS()
625 * @param cycle [IN] Number of cycles.
632 STATIC_INLINE UINT64 OsCycle2US(UINT64 cycle) in OsCycle2US() argument
[all...]
/kernel/linux/linux-5.10/kernel/locking/
H A Dtest-ww_mutex.c248 struct test_cycle *cycle = container_of(work, typeof(*cycle), work); in test_cycle_work() local
253 ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
255 complete(cycle->a_signal); in test_cycle_work()
256 wait_for_completion(&cycle->b_signal); in test_cycle_work()
258 err = ww_mutex_lock(cycle->b_mutex, &ctx); in test_cycle_work()
261 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
262 ww_mutex_lock_slow(cycle->b_mutex, &ctx); in test_cycle_work()
263 erra = ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
267 ww_mutex_unlock(cycle in test_cycle_work()
286 struct test_cycle *cycle = &cycles[n]; __test_cycle() local
311 struct test_cycle *cycle = &cycles[n]; __test_cycle() local
[all...]
/kernel/linux/linux-6.6/kernel/locking/
H A Dtest-ww_mutex.c288 struct test_cycle *cycle = container_of(work, typeof(*cycle), work); in test_cycle_work() local
293 ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
295 complete(cycle->a_signal); in test_cycle_work()
296 wait_for_completion(&cycle->b_signal); in test_cycle_work()
298 err = ww_mutex_lock(cycle->b_mutex, &ctx); in test_cycle_work()
301 ww_mutex_unlock(&cycle->a_mutex); in test_cycle_work()
302 ww_mutex_lock_slow(cycle->b_mutex, &ctx); in test_cycle_work()
303 erra = ww_mutex_lock(&cycle->a_mutex, &ctx); in test_cycle_work()
307 ww_mutex_unlock(cycle in test_cycle_work()
326 struct test_cycle *cycle = &cycles[n]; __test_cycle() local
351 struct test_cycle *cycle = &cycles[n]; __test_cycle() local
[all...]
/kernel/linux/linux-5.10/drivers/clocksource/
H A Dtimer-atmel-pit.c43 u32 cycle; member
85 elapsed += PIT_PICNT(t) * data->cycle; in read_pit_clk()
95 pit_write(data->base, AT91_PIT_MR, (data->cycle - 1) | AT91_PIT_PITEN); in pit_clkevt_shutdown()
107 data->cnt += data->cycle * PIT_PICNT(pit_read(data->base, AT91_PIT_PIVR)); in pit_clkevt_set_periodic()
109 (data->cycle - 1) | AT91_PIT_PITEN | AT91_PIT_PITIEN); in pit_clkevt_set_periodic()
132 (data->cycle - 1) | AT91_PIT_PITEN); in at91sam926x_pit_reset()
153 data->cnt += data->cycle * PIT_PICNT(pit_read(data->base, in at91sam926x_pit_interrupt()
210 data->cycle = DIV_ROUND_CLOSEST(pit_rate, HZ); in at91sam926x_pit_dt_init()
211 WARN_ON(((data->cycle - 1) & ~AT91_PIT_PIV) != 0); in at91sam926x_pit_dt_init()
220 bits = 12 /* PICNT */ + ilog2(data->cycle) /* PI in at91sam926x_pit_dt_init()
[all...]
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dtimer-atmel-pit.c43 u32 cycle; member
85 elapsed += PIT_PICNT(t) * data->cycle; in read_pit_clk()
95 pit_write(data->base, AT91_PIT_MR, (data->cycle - 1) | AT91_PIT_PITEN); in pit_clkevt_shutdown()
107 data->cnt += data->cycle * PIT_PICNT(pit_read(data->base, AT91_PIT_PIVR)); in pit_clkevt_set_periodic()
109 (data->cycle - 1) | AT91_PIT_PITEN | AT91_PIT_PITIEN); in pit_clkevt_set_periodic()
132 (data->cycle - 1) | AT91_PIT_PITEN); in at91sam926x_pit_reset()
153 data->cnt += data->cycle * PIT_PICNT(pit_read(data->base, in at91sam926x_pit_interrupt()
210 data->cycle = DIV_ROUND_CLOSEST(pit_rate, HZ); in at91sam926x_pit_dt_init()
211 WARN_ON(((data->cycle - 1) & ~AT91_PIT_PIV) != 0); in at91sam926x_pit_dt_init()
220 bits = 12 /* PICNT */ + ilog2(data->cycle) /* PI in at91sam926x_pit_dt_init()
[all...]
/kernel/linux/linux-5.10/scripts/
H A Dheaderdep.pl114 # $cycle[n] includes $cycle[n + 1];
115 # $cycle[-1] will be the culprit
116 my $cycle = shift;
119 for my $i (0 .. $#$cycle - 1) {
120 $cycle->[$i]->[0] = $cycle->[$i + 1]->[0];
122 $cycle->[-1]->[0] = 0;
124 my $first = shift @$cycle;
125 my $last = pop @$cycle;
[all...]
/kernel/linux/linux-5.10/tools/power/cpupower/bench/
H A Dbenchmark.c80 unsigned int _round, cycle; in start_benchmark() local
125 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark()
132 printf("performance cycle took %lius, " in start_benchmark()
151 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark()
158 printf("powersave cycle took %lius, " in start_benchmark()
/kernel/linux/linux-6.6/scripts/
H A Dheaderdep.pl114 # $cycle[n] includes $cycle[n + 1];
115 # $cycle[-1] will be the culprit
116 my $cycle = shift;
119 for my $i (0 .. $#$cycle - 1) {
120 $cycle->[$i]->[0] = $cycle->[$i + 1]->[0];
122 $cycle->[-1]->[0] = 0;
124 my $first = shift @$cycle;
125 my $last = pop @$cycle;
[all...]
/kernel/linux/linux-6.6/tools/power/cpupower/bench/
H A Dbenchmark.c80 unsigned int _round, cycle; in start_benchmark() local
125 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark()
132 printf("performance cycle took %lius, " in start_benchmark()
151 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark()
158 printf("powersave cycle took %lius, " in start_benchmark()
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-sl28cpld.c25 * - The hardware cannot generate a 100% duty cycle if the prescaler is 0.
30 * - The duty cycle will switch immediately and not after a complete cycle.
60 * We calculate the duty cycle like this:
130 unsigned int cycle, prescaler; in sl28cpld_pwm_apply() local
153 cycle = SL28CPLD_PWM_FROM_DUTY_CYCLE(state->duty_cycle); in sl28cpld_pwm_apply()
154 cycle = min_t(unsigned int, cycle, SL28CPLD_PWM_MAX_DUTY_CYCLE(prescaler)); in sl28cpld_pwm_apply()
158 * cycle if the prescaler is 0. Set prescaler to 1 instead. We don't in sl28cpld_pwm_apply()
164 if (cycle in sl28cpld_pwm_apply()
[all...]
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_log_priv.h177 * - ic_size is the full size of the log buffer, minus the cycle headers.
379 * The reservation head lsn is not made up of a cycle number and block number.
380 * Instead, it uses a cycle number and byte number. Logs don't expect to
496 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
500 *cycle = CYCLE_LSN(val); in xlog_crack_atomic_lsn()
508 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
510 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
519 xlog_crack_grant_head_val(int64_t val, int *cycle, int *space) in xlog_crack_grant_head_val() argument
521 *cycle = val >> 32; in xlog_crack_grant_head_val()
526 xlog_crack_grant_head(atomic64_t *head, int *cycle, in argument
528 xlog_crack_grant_head_val(atomic64_read(head), cycle, space); xlog_crack_grant_head() local
532 xlog_assign_grant_head_val(int cycle, int space) xlog_assign_grant_head_val() argument
538 xlog_assign_grant_head(atomic64_t *head, int cycle, int space) xlog_assign_grant_head() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_log_priv.h168 * - ic_size is the full size of the log buffer, minus the cycle headers.
394 * The reservation head lsn is not made up of a cycle number and block number.
395 * Instead, it uses a cycle number and byte number. Logs don't expect to
533 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
537 *cycle = CYCLE_LSN(val); in xlog_crack_atomic_lsn()
545 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
547 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
556 xlog_crack_grant_head_val(int64_t val, int *cycle, int *space) in xlog_crack_grant_head_val() argument
558 *cycle = val >> 32; in xlog_crack_grant_head_val()
563 xlog_crack_grant_head(atomic64_t *head, int *cycle, in argument
565 xlog_crack_grant_head_val(atomic64_read(head), cycle, space); xlog_crack_grant_head() local
569 xlog_assign_grant_head_val(int cycle, int space) xlog_assign_grant_head_val() argument
575 xlog_assign_grant_head(atomic64_t *head, int cycle, int space) xlog_assign_grant_head() argument
[all...]
/kernel/uniproton/src/core/kernel/sys/
H A Dprt_sys_init.c60 OS_SEC_L4_TEXT U64 PRT_ClkCycle2Ms(U64 cycle) in PRT_ClkCycle2Ms() argument
62 return DIV64(cycle, g_systemClock / OS_SYS_MS_PER_SECOND); in PRT_ClkCycle2Ms()
65 OS_SEC_L4_TEXT U64 PRT_ClkCycle2Us(U64 cycle) in PRT_ClkCycle2Us() argument
67 return DIV64(cycle, g_systemClock / OS_SYS_US_PER_SECOND); in PRT_ClkCycle2Us()
/kernel/linux/linux-5.10/sound/firewire/
H A Damdtp-stream.c220 // of syt interval. This comes from the interval of isoc cycle. As 1394 in amdtp_stream_add_pcm_hw_constraints()
507 static void build_it_pkt_header(struct amdtp_stream *s, unsigned int cycle, in build_it_pkt_header() argument
528 trace_amdtp_packet(s, cycle, cip_header, payload_length, data_blocks, in build_it_pkt_header()
628 static int parse_ir_ctx_header(struct amdtp_stream *s, unsigned int cycle, in parse_ir_ctx_header() argument
670 trace_amdtp_packet(s, cycle, cip_header, *payload_length, *data_blocks, in parse_ir_ctx_header()
685 static inline u32 increment_cycle_count(u32 cycle, unsigned int addend) in increment_cycle_count() argument
687 cycle += addend; in increment_cycle_count()
688 if (cycle >= OHCI_MAX_SECOND * CYCLES_PER_SECOND) in increment_cycle_count()
689 cycle -= OHCI_MAX_SECOND * CYCLES_PER_SECOND; in increment_cycle_count()
690 return cycle; in increment_cycle_count()
700 u32 cycle = compute_cycle_count(ctx_header_tstamp); compute_it_cycle() local
717 unsigned int cycle; generate_device_pkt_descs() local
749 compute_syt(unsigned int syt_offset, unsigned int cycle, unsigned int transfer_delay) compute_syt() argument
1006 u32 cycle; amdtp_stream_first_callback() local
1406 int cycle; amdtp_domain_start() local
[all...]

Completed in 17 milliseconds

12345678