/linux-3.4.99/drivers/media/rc/ |
D | ite-cir.c | 78 static long sample_period; variable 79 module_param(sample_period, long, S_IRUGO | S_IWUSR); 80 MODULE_PARM_DESC(sample_period, "Override carrier sample period, us"); 180 u32 sample_period; in ite_decode_bytes() local 188 sample_period = dev->params.sample_period; in ite_decode_bytes() 195 ITE_BITS_TO_NS(next_one, sample_period); in ite_decode_bytes() 202 ev.duration = ITE_BITS_TO_NS(next_zero - next_one, sample_period); in ite_decode_bytes() 213 sample_period); in ite_decode_bytes() 411 (ITE_BAUDRATE_DIVISOR * dev->params.sample_period * in ite_tx_ir() 1348 .sample_period = (u32) (1000000000ULL / 115200), [all …]
|
D | ene_ir.c | 45 static int sample_period; variable 118 if (sample_period != ENE_DEFAULT_SAMPLE_PERIOD) in ene_hw_detect() 407 if (sample_period == ENE_DEFAULT_SAMPLE_PERIOD) in ene_rx_setup() 412 (sample_period + sample_period_adjust) | in ene_rx_setup() 458 dev->rdev->rx_resolution = US_TO_NS(sample_period); in ene_rx_setup() 465 dev->rdev->min_timeout = US_TO_NS(127 * sample_period); in ene_rx_setup() 470 dev->rdev->tx_resolution = US_TO_NS(sample_period); in ene_rx_setup() 642 dev->tx_sample = DIV_ROUND_CLOSEST(sample, sample_period); in ene_tx_sample() 651 dbg("TX: sample %8d (%s)", raw_tx * sample_period, in ene_tx_sample() 790 hw_sample = hw_value * sample_period; in ene_isr() [all …]
|
D | ite-cir.h | 67 u32 sample_period; member 170 #define ITE_BITS_TO_NS(bits, sample_period) \ argument 171 ((u32) ((bits) * ITE_BAUDRATE_DIVISOR * sample_period))
|
/linux-3.4.99/arch/powerpc/perf/ |
D | core-fsl-emb.c | 302 if (event->hw.sample_period) { in fsl_emb_pmu_add() 370 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_start() 395 if (event->hw.idx < 0 || !event->hw.sample_period) in fsl_emb_pmu_stop() 527 event->hw.last_period = event->hw.sample_period; in fsl_emb_pmu_event_init() 573 u64 period = event->hw.sample_period; in record_and_restart() 599 event->hw.last_period = event->hw.sample_period; in record_and_restart()
|
D | core-book3s.c | 740 if (event->hw.sample_period) { in power_pmu_enable() 916 if (!event->hw.idx || !event->hw.sample_period) in power_pmu_start() 946 if (!event->hw.idx || !event->hw.sample_period) in power_pmu_stop() 1035 || event->attr.sample_period) in can_go_on_limited_pmc() 1222 event->hw.last_period = event->hw.sample_period; in power_pmu_event_init() 1274 u64 period = event->hw.sample_period; in record_and_restart() 1300 event->hw.last_period = event->hw.sample_period; in record_and_restart()
|
/linux-3.4.99/arch/alpha/kernel/ |
D | perf_event.c | 246 long period = hwc->sample_period; in alpha_perf_event_set_period() 672 if (!hwc->sample_period) { in __hw_perf_event_init() 673 hwc->sample_period = alpha_pmu->pmc_max_period[0]; in __hw_perf_event_init() 674 hwc->last_period = hwc->sample_period; in __hw_perf_event_init() 675 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
|
/linux-3.4.99/arch/arm/kernel/ |
D | perf_event.c | 156 s64 period = hwc->sample_period; in armpmu_event_set_period() 525 if (!hwc->sample_period) { in __hw_perf_event_init() 532 hwc->sample_period = armpmu->max_period >> 1; in __hw_perf_event_init() 533 hwc->last_period = hwc->sample_period; in __hw_perf_event_init() 534 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
|
/linux-3.4.99/kernel/events/ |
D | core.c | 2433 s64 period, sample_period; in perf_adjust_period() local 2438 delta = (s64)(period - hwc->sample_period); in perf_adjust_period() 2441 sample_period = hwc->sample_period + delta; in perf_adjust_period() 2443 if (!sample_period) in perf_adjust_period() 2444 sample_period = 1; in perf_adjust_period() 2446 hwc->sample_period = sample_period; in perf_adjust_period() 2448 if (local64_read(&hwc->period_left) > 8*sample_period) { in perf_adjust_period() 3262 event->attr.sample_period = value; in perf_event_period() 3263 event->hw.sample_period = value; in perf_event_period() 4889 hwc->last_period = hwc->sample_period; in perf_swevent_set_period() [all …]
|
/linux-3.4.99/tools/perf/util/ |
D | python.c | 49 sample_member_def(sample_period, period, T_ULONGLONG, "event period"), \ 533 u64 sample_period = 0; in pyrf_evsel__init() local 557 &sample_period, &attr.sample_type, in pyrf_evsel__init() 569 if (sample_period != 0) { in pyrf_evsel__init() 572 attr.sample_period = sample_period; in pyrf_evsel__init()
|
D | top.c | 64 (uint64_t)first->attr.sample_period, in perf_top__header_snprintf()
|
D | evsel.c | 84 if (!attr->sample_period || (opts->user_freq != UINT_MAX && in perf_evsel__config() 91 attr->sample_period = opts->default_interval; in perf_evsel__config()
|
D | parse-events.c | 485 attr.sample_period = 1; in add_tracepoint() 607 attr->sample_period = term->val.num; in config_term()
|
/linux-3.4.99/include/linux/ |
D | hw_breakpoint.h | 49 attr->sample_period = 1; in hw_breakpoint_init()
|
D | perf_event.h | 219 __u64 sample_period; member 706 u64 sample_period; member 1158 return event->attr.sample_period != 0; in is_sampling_event()
|
/linux-3.4.99/drivers/oprofile/ |
D | nmi_timer_int.c | 133 nmi_timer_attr.sample_period = period; in nmi_timer_setup()
|
D | oprofile_perf.c | 68 attr->sample_period = counter_config[i].count; in op_perf_setup()
|
/linux-3.4.99/arch/sparc/kernel/ |
D | perf_event.c | 642 s64 period = hwc->sample_period; in sparc_perf_event_set_period() 1182 if (!hwc->sample_period) { in sparc_pmu_event_init() 1183 hwc->sample_period = MAX_PERIOD; in sparc_pmu_event_init() 1184 hwc->last_period = hwc->sample_period; in sparc_pmu_event_init() 1185 local64_set(&hwc->period_left, hwc->sample_period); in sparc_pmu_event_init()
|
/linux-3.4.99/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 372 u64 period = hwc->sample_period; in mipspmu_event_set_period() 1258 if (!hwc->sample_period) { in __hw_perf_event_init() 1259 hwc->sample_period = mipspmu.max_period; in __hw_perf_event_init() 1260 hwc->last_period = hwc->sample_period; in __hw_perf_event_init() 1261 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
|
/linux-3.4.99/tools/perf/ |
D | builtin-test.c | 525 attr.sample_period = 1; in test__basic_mmap() 625 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_tracepoint() 642 1 == evsel->attr.sample_period); in test__checkevent_tracepoint_multi() 691 100000 == evsel->attr.sample_period); in test__checkevent_symbolic_name_config() 965 TEST_ASSERT_VAL("wrong period", 1000 == evsel->attr.sample_period); in test__checkevent_pmu() 993 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_list()
|
D | builtin-top.c | 1301 if (!pos->attr.sample_period) in cmd_top() 1302 pos->attr.sample_period = top.default_interval; in cmd_top()
|
/linux-3.4.99/arch/x86/kernel/cpu/ |
D | perf_event.c | 302 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr() 303 hwc->last_period = hwc->sample_period; in x86_setup_perfctr() 304 local64_set(&hwc->period_left, hwc->sample_period); in x86_setup_perfctr() 340 !attr->freq && hwc->sample_period == 1) { in x86_setup_perfctr() 933 s64 period = hwc->sample_period; in x86_perf_event_set_period()
|
/linux-3.4.99/arch/sh/kernel/ |
D | perf_event.c | 136 if (hwc->sample_period) in __hw_perf_event_init()
|
/linux-3.4.99/kernel/ |
D | watchdog.c | 377 wd_attr->sample_period = hw_nmi_get_sample_period(watchdog_thresh); in watchdog_nmi_enable()
|
/linux-3.4.99/arch/blackfin/kernel/ |
D | perf_event.c | 397 if (hwc->sample_period) in bfin_pmu_event_init()
|
/linux-3.4.99/arch/s390/kernel/ |
D | perf_cpum_cf.c | 370 if (hwc->sample_period) in __hw_perf_event_init()
|