Home
last modified time | relevance | path

Searched refs:box (Results 1 - 25 of 78) sorted by relevance

1234

/kernel/linux/linux-5.10/arch/x86/events/intel/
H A Duncore.h142 u64 hrtimer_duration; /* hrtimer timeout for this box */
225 static inline bool uncore_mmio_is_valid_offset(struct intel_uncore_box *box, in uncore_mmio_is_valid_offset() argument
228 if (offset < box->pmu->type->mmio_map_size) in uncore_mmio_is_valid_offset()
232 offset, box->pmu->type->name); in uncore_mmio_is_valid_offset()
238 unsigned int uncore_mmio_box_ctl(struct intel_uncore_box *box) in uncore_mmio_box_ctl() argument
240 return box->pmu->type->box_ctl + in uncore_mmio_box_ctl()
241 box->pmu->type->mmio_offset * box->pmu->pmu_idx; in uncore_mmio_box_ctl()
244 static inline unsigned uncore_pci_box_ctl(struct intel_uncore_box *box) in uncore_pci_box_ctl() argument
246 return box in uncore_pci_box_ctl()
249 uncore_pci_fixed_ctl(struct intel_uncore_box *box) uncore_pci_fixed_ctl() argument
254 uncore_pci_fixed_ctr(struct intel_uncore_box *box) uncore_pci_fixed_ctr() argument
260 uncore_pci_event_ctl(struct intel_uncore_box *box, int idx) uncore_pci_event_ctl() argument
269 uncore_pci_perf_ctr(struct intel_uncore_box *box, int idx) uncore_pci_perf_ctr() argument
274 uncore_msr_box_offset(struct intel_uncore_box *box) uncore_msr_box_offset() argument
282 uncore_msr_box_ctl(struct intel_uncore_box *box) uncore_msr_box_ctl() argument
289 uncore_msr_fixed_ctl(struct intel_uncore_box *box) uncore_msr_fixed_ctl() argument
296 uncore_msr_fixed_ctr(struct intel_uncore_box *box) uncore_msr_fixed_ctr() argument
343 uncore_freerunning_counter(struct intel_uncore_box *box, struct perf_event *event) uncore_freerunning_counter() argument
358 uncore_msr_event_ctl(struct intel_uncore_box *box, int idx) uncore_msr_event_ctl() argument
371 uncore_msr_perf_ctr(struct intel_uncore_box *box, int idx) uncore_msr_perf_ctr() argument
384 uncore_fixed_ctl(struct intel_uncore_box *box) uncore_fixed_ctl() argument
393 uncore_fixed_ctr(struct intel_uncore_box *box) uncore_fixed_ctr() argument
402 uncore_event_ctl(struct intel_uncore_box *box, int idx) uncore_event_ctl() argument
411 uncore_perf_ctr(struct intel_uncore_box *box, int idx) uncore_perf_ctr() argument
419 uncore_perf_ctr_bits(struct intel_uncore_box *box) uncore_perf_ctr_bits() argument
424 uncore_fixed_ctr_bits(struct intel_uncore_box *box) uncore_fixed_ctr_bits() argument
430 uncore_freerunning_bits(struct intel_uncore_box *box, struct perf_event *event) uncore_freerunning_bits() argument
438 uncore_num_freerunning(struct intel_uncore_box *box, struct perf_event *event) uncore_num_freerunning() argument
446 uncore_num_freerunning_types(struct intel_uncore_box *box, struct perf_event *event) uncore_num_freerunning_types() argument
452 check_valid_freerunning_event(struct intel_uncore_box *box, struct perf_event *event) check_valid_freerunning_event() argument
462 uncore_num_counters(struct intel_uncore_box *box) uncore_num_counters() argument
476 uncore_freerunning_hw_config(struct intel_uncore_box *box, struct perf_event *event) uncore_freerunning_hw_config() argument
485 uncore_disable_event(struct intel_uncore_box *box, struct perf_event *event) uncore_disable_event() argument
491 uncore_enable_event(struct intel_uncore_box *box, struct perf_event *event) uncore_enable_event() argument
497 uncore_read_counter(struct intel_uncore_box *box, struct perf_event *event) uncore_read_counter() argument
503 uncore_box_init(struct intel_uncore_box *box) uncore_box_init() argument
511 uncore_box_exit(struct intel_uncore_box *box) uncore_box_exit() argument
519 uncore_box_is_fake(struct intel_uncore_box *box) uncore_box_is_fake() argument
[all...]
H A Duncore.c116 u64 uncore_msr_read_counter(struct intel_uncore_box *box, struct perf_event *event) in uncore_msr_read_counter() argument
125 void uncore_mmio_exit_box(struct intel_uncore_box *box) in uncore_mmio_exit_box() argument
127 if (box->io_addr) in uncore_mmio_exit_box()
128 iounmap(box->io_addr); in uncore_mmio_exit_box()
131 u64 uncore_mmio_read_counter(struct intel_uncore_box *box, in uncore_mmio_read_counter() argument
134 if (!box->io_addr) in uncore_mmio_read_counter()
137 if (!uncore_mmio_is_valid_offset(box, event->hw.event_base)) in uncore_mmio_read_counter()
140 return readq(box->io_addr + event->hw.event_base); in uncore_mmio_read_counter()
147 uncore_get_constraint(struct intel_uncore_box *box, struct perf_event *event) in uncore_get_constraint() argument
156 * reg->alloc can be set due to existing state, so for fake box w in uncore_get_constraint()
184 uncore_put_constraint(struct intel_uncore_box *box, struct perf_event *event) uncore_put_constraint() argument
205 uncore_shared_reg_config(struct intel_uncore_box *box, int idx) uncore_shared_reg_config() argument
220 uncore_assign_hw_event(struct intel_uncore_box *box, struct perf_event *event, int idx) uncore_assign_hw_event() argument
238 uncore_perf_event_update(struct intel_uncore_box *box, struct perf_event *event) uncore_perf_event_update() argument
270 struct intel_uncore_box *box; uncore_pmu_hrtimer() local
301 uncore_pmu_start_hrtimer(struct intel_uncore_box *box) uncore_pmu_start_hrtimer() argument
307 uncore_pmu_cancel_hrtimer(struct intel_uncore_box *box) uncore_pmu_cancel_hrtimer() argument
312 uncore_pmu_init_hrtimer(struct intel_uncore_box *box) uncore_pmu_init_hrtimer() argument
322 struct intel_uncore_box *box; uncore_alloc_box() local
352 is_box_event(struct intel_uncore_box *box, struct perf_event *event) is_box_event() argument
358 uncore_collect_events(struct intel_uncore_box *box, struct perf_event *leader, bool dogrp) uncore_collect_events() argument
396 uncore_get_event_constraint(struct intel_uncore_box *box, struct perf_event *event) uncore_get_event_constraint() argument
420 uncore_put_event_constraint(struct intel_uncore_box *box, struct perf_event *event) uncore_put_event_constraint() argument
427 uncore_assign_events(struct intel_uncore_box *box, int assign[], int n) uncore_assign_events() argument
478 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_start() local
516 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_stop() local
551 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_add() local
623 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_del() local
654 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_read() local
704 struct intel_uncore_box *box; uncore_pmu_event_init() local
785 struct intel_uncore_box *box; uncore_pmu_enable() local
802 struct intel_uncore_box *box; uncore_pmu_disable() local
1057 struct intel_uncore_box *box; uncore_pci_pmu_register() local
1151 struct intel_uncore_box *box = pmu->boxes[die]; uncore_pci_pmu_unregister() local
1165 struct intel_uncore_box *box; uncore_pci_remove() local
1321 struct intel_uncore_box *box; uncore_change_type_ctx() local
1358 struct intel_uncore_box *box; uncore_box_unref() local
1403 struct intel_uncore_box *box, *tmp; allocate_boxes() local
1444 struct intel_uncore_box *box; uncore_box_ref() local
[all...]
H A Duncore_nhmex.c200 static void nhmex_uncore_msr_init_box(struct intel_uncore_box *box) in nhmex_uncore_msr_init_box() argument
205 static void nhmex_uncore_msr_exit_box(struct intel_uncore_box *box) in nhmex_uncore_msr_exit_box() argument
210 static void nhmex_uncore_msr_disable_box(struct intel_uncore_box *box) in nhmex_uncore_msr_disable_box() argument
212 unsigned msr = uncore_msr_box_ctl(box); in nhmex_uncore_msr_disable_box()
217 config &= ~((1ULL << uncore_num_counters(box)) - 1); in nhmex_uncore_msr_disable_box()
219 if (uncore_msr_fixed_ctl(box)) in nhmex_uncore_msr_disable_box()
225 static void nhmex_uncore_msr_enable_box(struct intel_uncore_box *box) in nhmex_uncore_msr_enable_box() argument
227 unsigned msr = uncore_msr_box_ctl(box); in nhmex_uncore_msr_enable_box()
232 config |= (1ULL << uncore_num_counters(box)) - 1; in nhmex_uncore_msr_enable_box()
234 if (uncore_msr_fixed_ctl(box)) in nhmex_uncore_msr_enable_box()
240 nhmex_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_uncore_msr_disable_event() argument
245 nhmex_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_uncore_msr_enable_event() argument
350 nhmex_bbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_bbox_hw_config() argument
377 nhmex_bbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_bbox_msr_enable_event() argument
441 nhmex_sbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_sbox_hw_config() argument
462 nhmex_sbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_sbox_msr_enable_event() argument
553 nhmex_mbox_get_shared_reg(struct intel_uncore_box *box, int idx, u64 config) nhmex_mbox_get_shared_reg() argument
614 nhmex_mbox_put_shared_reg(struct intel_uncore_box *box, int idx) nhmex_mbox_put_shared_reg() argument
669 nhmex_mbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_get_constraint() argument
738 nhmex_mbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_put_constraint() argument
765 nhmex_mbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_hw_config() argument
819 nhmex_mbox_shared_reg_config(struct intel_uncore_box *box, int idx) nhmex_mbox_shared_reg_config() argument
835 nhmex_mbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_msr_enable_event() argument
944 nhmex_rbox_alter_er(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_alter_er() argument
978 nhmex_rbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_get_constraint() argument
1062 nhmex_rbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_put_constraint() argument
1086 nhmex_rbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_hw_config() argument
1111 nhmex_rbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_msr_enable_event() argument
[all...]
H A Duncore_snb.c141 static void snb_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_enable_event() argument
151 static void snb_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_disable_event() argument
156 static void snb_uncore_msr_init_box(struct intel_uncore_box *box) in snb_uncore_msr_init_box() argument
158 if (box->pmu->pmu_idx == 0) { in snb_uncore_msr_init_box()
164 static void snb_uncore_msr_enable_box(struct intel_uncore_box *box) in snb_uncore_msr_enable_box() argument
170 static void snb_uncore_msr_exit_box(struct intel_uncore_box *box) in snb_uncore_msr_exit_box() argument
172 if (box->pmu->pmu_idx == 0) in snb_uncore_msr_exit_box()
255 static void skl_uncore_msr_init_box(struct intel_uncore_box *box) in skl_uncore_msr_init_box() argument
257 if (box->pmu->pmu_idx == 0) { in skl_uncore_msr_init_box()
263 if (box in skl_uncore_msr_init_box()
267 skl_uncore_msr_enable_box(struct intel_uncore_box *box) skl_uncore_msr_enable_box() argument
273 skl_uncore_msr_exit_box(struct intel_uncore_box *box) skl_uncore_msr_exit_box() argument
498 snb_uncore_imc_init_box(struct intel_uncore_box *box) snb_uncore_imc_init_box() argument
523 snb_uncore_imc_enable_box(struct intel_uncore_box *box) snb_uncore_imc_enable_box() argument
526 snb_uncore_imc_disable_box(struct intel_uncore_box *box) snb_uncore_imc_disable_box() argument
529 snb_uncore_imc_enable_event(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_enable_event() argument
532 snb_uncore_imc_disable_event(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_disable_event() argument
542 struct intel_uncore_box *box; snb_uncore_imc_event_init() local
627 snb_uncore_imc_hw_config(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_hw_config() argument
660 snb_uncore_imc_read_counter(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_read_counter() argument
1098 nhm_uncore_msr_disable_box(struct intel_uncore_box *box) nhm_uncore_msr_disable_box() argument
1103 nhm_uncore_msr_enable_box(struct intel_uncore_box *box) nhm_uncore_msr_enable_box() argument
1108 nhm_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhm_uncore_msr_enable_event() argument
1260 tgl_uncore_imc_freerunning_init_box(struct intel_uncore_box *box) tgl_uncore_imc_freerunning_init_box() argument
[all...]
H A Duncore_snbep.c529 static void snbep_uncore_pci_disable_box(struct intel_uncore_box *box) in snbep_uncore_pci_disable_box() argument
531 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_disable_box()
532 int box_ctl = uncore_pci_box_ctl(box); in snbep_uncore_pci_disable_box()
541 static void snbep_uncore_pci_enable_box(struct intel_uncore_box *box) in snbep_uncore_pci_enable_box() argument
543 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_enable_box()
544 int box_ctl = uncore_pci_box_ctl(box); in snbep_uncore_pci_enable_box()
553 static void snbep_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_enable_event() argument
555 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_enable_event()
561 static void snbep_uncore_pci_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_disable_event() argument
563 struct pci_dev *pdev = box in snbep_uncore_pci_disable_event()
569 snbep_uncore_pci_read_counter(struct intel_uncore_box *box, struct perf_event *event) snbep_uncore_pci_read_counter() argument
581 snbep_uncore_pci_init_box(struct intel_uncore_box *box) snbep_uncore_pci_init_box() argument
589 snbep_uncore_msr_disable_box(struct intel_uncore_box *box) snbep_uncore_msr_disable_box() argument
602 snbep_uncore_msr_enable_box(struct intel_uncore_box *box) snbep_uncore_msr_enable_box() argument
615 snbep_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) snbep_uncore_msr_enable_event() argument
626 snbep_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) snbep_uncore_msr_disable_event() argument
634 snbep_uncore_msr_init_box(struct intel_uncore_box *box) snbep_uncore_msr_init_box() argument
907 snbep_cbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_cbox_put_constraint() argument
924 __snbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event, u64 (*cbox_filter_mask)(int fields)) __snbep_cbox_get_constraint() argument
987 snbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_cbox_get_constraint() argument
992 snbep_cbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) snbep_cbox_hw_config() argument
1056 snbep_pcu_get_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_pcu_get_constraint() argument
1097 snbep_pcu_put_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_pcu_put_constraint() argument
1109 snbep_pcu_hw_config(struct intel_uncore_box *box, struct perf_event *event) snbep_pcu_hw_config() argument
1164 snbep_qpi_hw_config(struct intel_uncore_box *box, struct perf_event *event) snbep_qpi_hw_config() argument
1180 snbep_qpi_enable_event(struct intel_uncore_box *box, struct perf_event *event) snbep_qpi_enable_event() argument
1448 ivbep_uncore_msr_init_box(struct intel_uncore_box *box) ivbep_uncore_msr_init_box() argument
1455 ivbep_uncore_pci_init_box(struct intel_uncore_box *box) ivbep_uncore_pci_init_box() argument
1670 ivbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) ivbep_cbox_get_constraint() argument
1675 ivbep_cbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) ivbep_cbox_hw_config() argument
1696 ivbep_cbox_enable_event(struct intel_uncore_box *box, struct perf_event *event) ivbep_cbox_enable_event() argument
1797 ivbep_uncore_irp_enable_event(struct intel_uncore_box *box, struct perf_event *event) ivbep_uncore_irp_enable_event() argument
1806 ivbep_uncore_irp_disable_event(struct intel_uncore_box *box, struct perf_event *event) ivbep_uncore_irp_disable_event() argument
1814 ivbep_uncore_irp_read_counter(struct intel_uncore_box *box, struct perf_event *event) ivbep_uncore_irp_read_counter() argument
2097 knl_cha_get_constraint(struct intel_uncore_box *box, struct perf_event *event) knl_cha_get_constraint() argument
2102 knl_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) knl_cha_hw_config() argument
2202 knl_uncore_imc_enable_box(struct intel_uncore_box *box) knl_uncore_imc_enable_box() argument
2210 knl_uncore_imc_enable_event(struct intel_uncore_box *box, struct perf_event *event) knl_uncore_imc_enable_event() argument
2525 hswep_ubox_hw_config(struct intel_uncore_box *box, struct perf_event *event) hswep_ubox_hw_config() argument
2653 hswep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) hswep_cbox_get_constraint() argument
2658 hswep_cbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) hswep_cbox_hw_config() argument
2679 hswep_cbox_enable_event(struct intel_uncore_box *box, struct perf_event *event) hswep_cbox_enable_event() argument
2725 hswep_uncore_sbox_msr_init_box(struct intel_uncore_box *box) hswep_uncore_sbox_msr_init_box() argument
2775 hswep_pcu_hw_config(struct intel_uncore_box *box, struct perf_event *event) hswep_pcu_hw_config() argument
2883 hswep_uncore_irp_read_counter(struct intel_uncore_box *box, struct perf_event *event) hswep_uncore_irp_read_counter() argument
3539 skx_cha_get_constraint(struct intel_uncore_box *box, struct perf_event *event) skx_cha_get_constraint() argument
3544 skx_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) skx_cha_hw_config() argument
3623 skx_iio_enable_event(struct intel_uncore_box *box, struct perf_event *event) skx_iio_enable_event() argument
4078 skx_upi_uncore_pci_init_box(struct intel_uncore_box *box) skx_upi_uncore_pci_init_box() argument
4109 skx_m2m_uncore_pci_init_box(struct intel_uncore_box *box) skx_m2m_uncore_pci_init_box() argument
4330 snr_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) snr_cha_hw_config() argument
4342 snr_cha_enable_event(struct intel_uncore_box *box, struct perf_event *event) snr_cha_enable_event() argument
4438 snr_pcu_hw_config(struct intel_uncore_box *box, struct perf_event *event) snr_pcu_hw_config() argument
4543 snr_m2m_uncore_pci_init_box(struct intel_uncore_box *box) snr_m2m_uncore_pci_init_box() argument
4589 snr_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) snr_uncore_pci_enable_event() argument
4694 __snr_uncore_mmio_init_box(struct intel_uncore_box *box, unsigned int box_ctl, int mem_offset) __snr_uncore_mmio_init_box() argument
4724 snr_uncore_mmio_init_box(struct intel_uncore_box *box) snr_uncore_mmio_init_box() argument
4730 snr_uncore_mmio_disable_box(struct intel_uncore_box *box) snr_uncore_mmio_disable_box() argument
4742 snr_uncore_mmio_enable_box(struct intel_uncore_box *box) snr_uncore_mmio_enable_box() argument
4754 snr_uncore_mmio_enable_event(struct intel_uncore_box *box, struct perf_event *event) snr_uncore_mmio_enable_event() argument
4769 snr_uncore_mmio_disable_event(struct intel_uncore_box *box, struct perf_event *event) snr_uncore_mmio_disable_event() argument
4889 icx_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) icx_cha_hw_config() argument
5246 icx_uncore_imc_init_box(struct intel_uncore_box *box) icx_uncore_imc_init_box() argument
5318 icx_uncore_imc_freerunning_init_box(struct intel_uncore_box *box) icx_uncore_imc_freerunning_init_box() argument
[all...]
/kernel/linux/linux-6.6/arch/x86/events/intel/
H A Duncore.h65 u64 *box_ctls; /* Unit ctrl addr of the first box of each die */
152 u64 hrtimer_duration; /* hrtimer timeout for this box */
257 static inline bool uncore_mmio_is_valid_offset(struct intel_uncore_box *box, in uncore_mmio_is_valid_offset() argument
260 if (offset < box->pmu->type->mmio_map_size) in uncore_mmio_is_valid_offset()
264 offset, box->pmu->type->name); in uncore_mmio_is_valid_offset()
270 unsigned int uncore_mmio_box_ctl(struct intel_uncore_box *box) in uncore_mmio_box_ctl() argument
272 return box->pmu->type->box_ctl + in uncore_mmio_box_ctl()
273 box->pmu->type->mmio_offset * box->pmu->pmu_idx; in uncore_mmio_box_ctl()
276 static inline unsigned uncore_pci_box_ctl(struct intel_uncore_box *box) in uncore_pci_box_ctl() argument
281 uncore_pci_fixed_ctl(struct intel_uncore_box *box) uncore_pci_fixed_ctl() argument
286 uncore_pci_fixed_ctr(struct intel_uncore_box *box) uncore_pci_fixed_ctr() argument
292 uncore_pci_event_ctl(struct intel_uncore_box *box, int idx) uncore_pci_event_ctl() argument
301 uncore_pci_perf_ctr(struct intel_uncore_box *box, int idx) uncore_pci_perf_ctr() argument
306 uncore_msr_box_offset(struct intel_uncore_box *box) uncore_msr_box_offset() argument
314 uncore_msr_box_ctl(struct intel_uncore_box *box) uncore_msr_box_ctl() argument
321 uncore_msr_fixed_ctl(struct intel_uncore_box *box) uncore_msr_fixed_ctl() argument
328 uncore_msr_fixed_ctr(struct intel_uncore_box *box) uncore_msr_fixed_ctr() argument
375 uncore_freerunning_counter(struct intel_uncore_box *box, struct perf_event *event) uncore_freerunning_counter() argument
390 uncore_msr_event_ctl(struct intel_uncore_box *box, int idx) uncore_msr_event_ctl() argument
403 uncore_msr_perf_ctr(struct intel_uncore_box *box, int idx) uncore_msr_perf_ctr() argument
416 uncore_fixed_ctl(struct intel_uncore_box *box) uncore_fixed_ctl() argument
425 uncore_fixed_ctr(struct intel_uncore_box *box) uncore_fixed_ctr() argument
434 uncore_event_ctl(struct intel_uncore_box *box, int idx) uncore_event_ctl() argument
443 uncore_perf_ctr(struct intel_uncore_box *box, int idx) uncore_perf_ctr() argument
451 uncore_perf_ctr_bits(struct intel_uncore_box *box) uncore_perf_ctr_bits() argument
456 uncore_fixed_ctr_bits(struct intel_uncore_box *box) uncore_fixed_ctr_bits() argument
462 uncore_freerunning_bits(struct intel_uncore_box *box, struct perf_event *event) uncore_freerunning_bits() argument
470 uncore_num_freerunning(struct intel_uncore_box *box, struct perf_event *event) uncore_num_freerunning() argument
478 uncore_num_freerunning_types(struct intel_uncore_box *box, struct perf_event *event) uncore_num_freerunning_types() argument
484 check_valid_freerunning_event(struct intel_uncore_box *box, struct perf_event *event) check_valid_freerunning_event() argument
494 uncore_num_counters(struct intel_uncore_box *box) uncore_num_counters() argument
508 uncore_freerunning_hw_config(struct intel_uncore_box *box, struct perf_event *event) uncore_freerunning_hw_config() argument
517 uncore_disable_event(struct intel_uncore_box *box, struct perf_event *event) uncore_disable_event() argument
523 uncore_enable_event(struct intel_uncore_box *box, struct perf_event *event) uncore_enable_event() argument
529 uncore_read_counter(struct intel_uncore_box *box, struct perf_event *event) uncore_read_counter() argument
535 uncore_box_init(struct intel_uncore_box *box) uncore_box_init() argument
543 uncore_box_exit(struct intel_uncore_box *box) uncore_box_exit() argument
551 uncore_box_is_fake(struct intel_uncore_box *box) uncore_box_is_fake() argument
[all...]
H A Duncore.c148 u64 uncore_msr_read_counter(struct intel_uncore_box *box, struct perf_event *event) in uncore_msr_read_counter() argument
157 void uncore_mmio_exit_box(struct intel_uncore_box *box) in uncore_mmio_exit_box() argument
159 if (box->io_addr) in uncore_mmio_exit_box()
160 iounmap(box->io_addr); in uncore_mmio_exit_box()
163 u64 uncore_mmio_read_counter(struct intel_uncore_box *box, in uncore_mmio_read_counter() argument
166 if (!box->io_addr) in uncore_mmio_read_counter()
169 if (!uncore_mmio_is_valid_offset(box, event->hw.event_base)) in uncore_mmio_read_counter()
172 return readq(box->io_addr + event->hw.event_base); in uncore_mmio_read_counter()
179 uncore_get_constraint(struct intel_uncore_box *box, struct perf_event *event) in uncore_get_constraint() argument
188 * reg->alloc can be set due to existing state, so for fake box w in uncore_get_constraint()
216 uncore_put_constraint(struct intel_uncore_box *box, struct perf_event *event) uncore_put_constraint() argument
237 uncore_shared_reg_config(struct intel_uncore_box *box, int idx) uncore_shared_reg_config() argument
252 uncore_assign_hw_event(struct intel_uncore_box *box, struct perf_event *event, int idx) uncore_assign_hw_event() argument
270 uncore_perf_event_update(struct intel_uncore_box *box, struct perf_event *event) uncore_perf_event_update() argument
302 struct intel_uncore_box *box; uncore_pmu_hrtimer() local
333 uncore_pmu_start_hrtimer(struct intel_uncore_box *box) uncore_pmu_start_hrtimer() argument
339 uncore_pmu_cancel_hrtimer(struct intel_uncore_box *box) uncore_pmu_cancel_hrtimer() argument
344 uncore_pmu_init_hrtimer(struct intel_uncore_box *box) uncore_pmu_init_hrtimer() argument
354 struct intel_uncore_box *box; uncore_alloc_box() local
383 is_box_event(struct intel_uncore_box *box, struct perf_event *event) is_box_event() argument
389 uncore_collect_events(struct intel_uncore_box *box, struct perf_event *leader, bool dogrp) uncore_collect_events() argument
427 uncore_get_event_constraint(struct intel_uncore_box *box, struct perf_event *event) uncore_get_event_constraint() argument
451 uncore_put_event_constraint(struct intel_uncore_box *box, struct perf_event *event) uncore_put_event_constraint() argument
458 uncore_assign_events(struct intel_uncore_box *box, int assign[], int n) uncore_assign_events() argument
509 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_start() local
547 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_stop() local
582 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_add() local
654 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_del() local
685 struct intel_uncore_box *box = uncore_event_to_box(event); uncore_pmu_event_read() local
735 struct intel_uncore_box *box; uncore_pmu_event_init() local
816 struct intel_uncore_box *box; uncore_pmu_enable() local
831 struct intel_uncore_box *box; uncore_pmu_disable() local
1147 struct intel_uncore_box *box; uncore_pci_pmu_register() local
1238 struct intel_uncore_box *box = pmu->boxes[die]; uncore_pci_pmu_unregister() local
1249 struct intel_uncore_box *box; uncore_pci_remove() local
1460 struct intel_uncore_box *box; uncore_change_type_ctx() local
1497 struct intel_uncore_box *box; uncore_box_unref() local
1542 struct intel_uncore_box *box, *tmp; allocate_boxes() local
1583 struct intel_uncore_box *box; uncore_box_ref() local
[all...]
H A Duncore_discovery.c132 pr_info("Invalid address is detected for uncore type %d box %d, " in uncore_insert_box_info()
146 /* Store the first box of each die */ in uncore_insert_box_info()
164 /* Store generic information for the first box */ in uncore_insert_box_info()
181 pr_info("Duplicate uncore type %d box ID %d is detected, " in uncore_insert_box_info()
368 void intel_generic_uncore_msr_init_box(struct intel_uncore_box *box) in intel_generic_uncore_msr_init_box() argument
370 wrmsrl(uncore_msr_box_ctl(box), GENERIC_PMON_BOX_CTL_INT); in intel_generic_uncore_msr_init_box()
373 void intel_generic_uncore_msr_disable_box(struct intel_uncore_box *box) in intel_generic_uncore_msr_disable_box() argument
375 wrmsrl(uncore_msr_box_ctl(box), GENERIC_PMON_BOX_CTL_FRZ); in intel_generic_uncore_msr_disable_box()
378 void intel_generic_uncore_msr_enable_box(struct intel_uncore_box *box) in intel_generic_uncore_msr_enable_box() argument
380 wrmsrl(uncore_msr_box_ctl(box), in intel_generic_uncore_msr_enable_box()
383 intel_generic_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) intel_generic_uncore_msr_enable_event() argument
391 intel_generic_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) intel_generic_uncore_msr_disable_event() argument
408 intel_generic_uncore_pci_init_box(struct intel_uncore_box *box) intel_generic_uncore_pci_init_box() argument
417 intel_generic_uncore_pci_disable_box(struct intel_uncore_box *box) intel_generic_uncore_pci_disable_box() argument
425 intel_generic_uncore_pci_enable_box(struct intel_uncore_box *box) intel_generic_uncore_pci_enable_box() argument
433 intel_generic_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) intel_generic_uncore_pci_enable_event() argument
442 intel_generic_uncore_pci_disable_event(struct intel_uncore_box *box, struct perf_event *event) intel_generic_uncore_pci_disable_event() argument
451 intel_generic_uncore_pci_read_counter(struct intel_uncore_box *box, struct perf_event *event) intel_generic_uncore_pci_read_counter() argument
475 generic_uncore_mmio_box_ctl(struct intel_uncore_box *box) generic_uncore_mmio_box_ctl() argument
485 intel_generic_uncore_mmio_init_box(struct intel_uncore_box *box) intel_generic_uncore_mmio_init_box() argument
509 intel_generic_uncore_mmio_disable_box(struct intel_uncore_box *box) intel_generic_uncore_mmio_disable_box() argument
517 intel_generic_uncore_mmio_enable_box(struct intel_uncore_box *box) intel_generic_uncore_mmio_enable_box() argument
525 intel_generic_uncore_mmio_enable_event(struct intel_uncore_box *box, struct perf_event *event) intel_generic_uncore_mmio_enable_event() argument
536 intel_generic_uncore_mmio_disable_event(struct intel_uncore_box *box, struct perf_event *event) intel_generic_uncore_mmio_disable_event() argument
[all...]
H A Duncore_discovery.h119 u64 box_ctrl; /* Unit ctrl addr of the first box */
120 u64 *box_ctrl_die; /* Unit ctrl addr of the first box of each die */
137 void intel_generic_uncore_msr_init_box(struct intel_uncore_box *box);
138 void intel_generic_uncore_msr_disable_box(struct intel_uncore_box *box);
139 void intel_generic_uncore_msr_enable_box(struct intel_uncore_box *box);
141 void intel_generic_uncore_mmio_init_box(struct intel_uncore_box *box);
142 void intel_generic_uncore_mmio_disable_box(struct intel_uncore_box *box);
143 void intel_generic_uncore_mmio_enable_box(struct intel_uncore_box *box);
144 void intel_generic_uncore_mmio_disable_event(struct intel_uncore_box *box,
146 void intel_generic_uncore_mmio_enable_event(struct intel_uncore_box *box,
[all...]
H A Duncore_snb.c257 static void snb_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_enable_event() argument
267 static void snb_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_disable_event() argument
272 static void snb_uncore_msr_init_box(struct intel_uncore_box *box) in snb_uncore_msr_init_box() argument
274 if (box->pmu->pmu_idx == 0) { in snb_uncore_msr_init_box()
280 static void snb_uncore_msr_enable_box(struct intel_uncore_box *box) in snb_uncore_msr_enable_box() argument
286 static void snb_uncore_msr_exit_box(struct intel_uncore_box *box) in snb_uncore_msr_exit_box() argument
288 if (box->pmu->pmu_idx == 0) in snb_uncore_msr_exit_box()
371 static void skl_uncore_msr_init_box(struct intel_uncore_box *box) in skl_uncore_msr_init_box() argument
373 if (box->pmu->pmu_idx == 0) { in skl_uncore_msr_init_box()
379 if (box in skl_uncore_msr_init_box()
383 skl_uncore_msr_enable_box(struct intel_uncore_box *box) skl_uncore_msr_enable_box() argument
389 skl_uncore_msr_exit_box(struct intel_uncore_box *box) skl_uncore_msr_exit_box() argument
524 rkl_uncore_msr_init_box(struct intel_uncore_box *box) rkl_uncore_msr_init_box() argument
540 adl_uncore_msr_init_box(struct intel_uncore_box *box) adl_uncore_msr_init_box() argument
546 adl_uncore_msr_enable_box(struct intel_uncore_box *box) adl_uncore_msr_enable_box() argument
551 adl_uncore_msr_disable_box(struct intel_uncore_box *box) adl_uncore_msr_disable_box() argument
557 adl_uncore_msr_exit_box(struct intel_uncore_box *box) adl_uncore_msr_exit_box() argument
691 mtl_uncore_msr_init_box(struct intel_uncore_box *box) mtl_uncore_msr_init_box() argument
830 snb_uncore_imc_init_box(struct intel_uncore_box *box) snb_uncore_imc_init_box() argument
855 snb_uncore_imc_enable_box(struct intel_uncore_box *box) snb_uncore_imc_enable_box() argument
858 snb_uncore_imc_disable_box(struct intel_uncore_box *box) snb_uncore_imc_disable_box() argument
861 snb_uncore_imc_enable_event(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_enable_event() argument
864 snb_uncore_imc_disable_event(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_disable_event() argument
874 struct intel_uncore_box *box; snb_uncore_imc_event_init() local
959 snb_uncore_imc_hw_config(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_hw_config() argument
992 snb_uncore_imc_read_counter(struct intel_uncore_box *box, struct perf_event *event) snb_uncore_imc_read_counter() argument
1278 nhm_uncore_msr_disable_box(struct intel_uncore_box *box) nhm_uncore_msr_disable_box() argument
1283 nhm_uncore_msr_enable_box(struct intel_uncore_box *box) nhm_uncore_msr_enable_box() argument
1288 nhm_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhm_uncore_msr_enable_event() argument
1484 __uncore_imc_init_box(struct intel_uncore_box *box, unsigned int base_offset) __uncore_imc_init_box() argument
1521 tgl_uncore_imc_freerunning_init_box(struct intel_uncore_box *box) tgl_uncore_imc_freerunning_init_box() argument
1590 adl_uncore_imc_init_box(struct intel_uncore_box *box) adl_uncore_imc_init_box() argument
1599 adl_uncore_mmio_disable_box(struct intel_uncore_box *box) adl_uncore_mmio_disable_box() argument
1607 adl_uncore_mmio_enable_box(struct intel_uncore_box *box) adl_uncore_mmio_enable_box() argument
1670 adl_uncore_imc_freerunning_init_box(struct intel_uncore_box *box) adl_uncore_imc_freerunning_init_box() argument
[all...]
H A Duncore_nhmex.c200 static void nhmex_uncore_msr_init_box(struct intel_uncore_box *box) in nhmex_uncore_msr_init_box() argument
205 static void nhmex_uncore_msr_exit_box(struct intel_uncore_box *box) in nhmex_uncore_msr_exit_box() argument
210 static void nhmex_uncore_msr_disable_box(struct intel_uncore_box *box) in nhmex_uncore_msr_disable_box() argument
212 unsigned msr = uncore_msr_box_ctl(box); in nhmex_uncore_msr_disable_box()
217 config &= ~((1ULL << uncore_num_counters(box)) - 1); in nhmex_uncore_msr_disable_box()
219 if (uncore_msr_fixed_ctl(box)) in nhmex_uncore_msr_disable_box()
225 static void nhmex_uncore_msr_enable_box(struct intel_uncore_box *box) in nhmex_uncore_msr_enable_box() argument
227 unsigned msr = uncore_msr_box_ctl(box); in nhmex_uncore_msr_enable_box()
232 config |= (1ULL << uncore_num_counters(box)) - 1; in nhmex_uncore_msr_enable_box()
234 if (uncore_msr_fixed_ctl(box)) in nhmex_uncore_msr_enable_box()
240 nhmex_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_uncore_msr_disable_event() argument
245 nhmex_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_uncore_msr_enable_event() argument
350 nhmex_bbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_bbox_hw_config() argument
377 nhmex_bbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_bbox_msr_enable_event() argument
441 nhmex_sbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_sbox_hw_config() argument
462 nhmex_sbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_sbox_msr_enable_event() argument
553 nhmex_mbox_get_shared_reg(struct intel_uncore_box *box, int idx, u64 config) nhmex_mbox_get_shared_reg() argument
614 nhmex_mbox_put_shared_reg(struct intel_uncore_box *box, int idx) nhmex_mbox_put_shared_reg() argument
669 nhmex_mbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_get_constraint() argument
738 nhmex_mbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_put_constraint() argument
765 nhmex_mbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_hw_config() argument
819 nhmex_mbox_shared_reg_config(struct intel_uncore_box *box, int idx) nhmex_mbox_shared_reg_config() argument
835 nhmex_mbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_mbox_msr_enable_event() argument
944 nhmex_rbox_alter_er(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_alter_er() argument
978 nhmex_rbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_get_constraint() argument
1062 nhmex_rbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_put_constraint() argument
1086 nhmex_rbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_hw_config() argument
1111 nhmex_rbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) nhmex_rbox_msr_enable_event() argument
[all...]
H A Duncore_snbep.c551 static void snbep_uncore_pci_disable_box(struct intel_uncore_box *box) in snbep_uncore_pci_disable_box() argument
553 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_disable_box()
554 int box_ctl = uncore_pci_box_ctl(box); in snbep_uncore_pci_disable_box()
563 static void snbep_uncore_pci_enable_box(struct intel_uncore_box *box) in snbep_uncore_pci_enable_box() argument
565 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_enable_box()
566 int box_ctl = uncore_pci_box_ctl(box); in snbep_uncore_pci_enable_box()
575 static void snbep_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_enable_event() argument
577 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_enable_event()
583 static void snbep_uncore_pci_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_disable_event() argument
585 struct pci_dev *pdev = box in snbep_uncore_pci_disable_event()
591 snbep_uncore_pci_read_counter(struct intel_uncore_box *box, struct perf_event *event) snbep_uncore_pci_read_counter() argument
603 snbep_uncore_pci_init_box(struct intel_uncore_box *box) snbep_uncore_pci_init_box() argument
611 snbep_uncore_msr_disable_box(struct intel_uncore_box *box) snbep_uncore_msr_disable_box() argument
624 snbep_uncore_msr_enable_box(struct intel_uncore_box *box) snbep_uncore_msr_enable_box() argument
637 snbep_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) snbep_uncore_msr_enable_event() argument
648 snbep_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) snbep_uncore_msr_disable_event() argument
656 snbep_uncore_msr_init_box(struct intel_uncore_box *box) snbep_uncore_msr_init_box() argument
929 snbep_cbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_cbox_put_constraint() argument
946 __snbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event, u64 (*cbox_filter_mask)(int fields)) __snbep_cbox_get_constraint() argument
1009 snbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_cbox_get_constraint() argument
1014 snbep_cbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) snbep_cbox_hw_config() argument
1078 snbep_pcu_get_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_pcu_get_constraint() argument
1119 snbep_pcu_put_constraint(struct intel_uncore_box *box, struct perf_event *event) snbep_pcu_put_constraint() argument
1131 snbep_pcu_hw_config(struct intel_uncore_box *box, struct perf_event *event) snbep_pcu_hw_config() argument
1186 snbep_qpi_hw_config(struct intel_uncore_box *box, struct perf_event *event) snbep_qpi_hw_config() argument
1202 snbep_qpi_enable_event(struct intel_uncore_box *box, struct perf_event *event) snbep_qpi_enable_event() argument
1520 ivbep_uncore_msr_init_box(struct intel_uncore_box *box) ivbep_uncore_msr_init_box() argument
1527 ivbep_uncore_pci_init_box(struct intel_uncore_box *box) ivbep_uncore_pci_init_box() argument
1742 ivbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) ivbep_cbox_get_constraint() argument
1747 ivbep_cbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) ivbep_cbox_hw_config() argument
1768 ivbep_cbox_enable_event(struct intel_uncore_box *box, struct perf_event *event) ivbep_cbox_enable_event() argument
1869 ivbep_uncore_irp_enable_event(struct intel_uncore_box *box, struct perf_event *event) ivbep_uncore_irp_enable_event() argument
1878 ivbep_uncore_irp_disable_event(struct intel_uncore_box *box, struct perf_event *event) ivbep_uncore_irp_disable_event() argument
1886 ivbep_uncore_irp_read_counter(struct intel_uncore_box *box, struct perf_event *event) ivbep_uncore_irp_read_counter() argument
2169 knl_cha_get_constraint(struct intel_uncore_box *box, struct perf_event *event) knl_cha_get_constraint() argument
2174 knl_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) knl_cha_hw_config() argument
2274 knl_uncore_imc_enable_box(struct intel_uncore_box *box) knl_uncore_imc_enable_box() argument
2282 knl_uncore_imc_enable_event(struct intel_uncore_box *box, struct perf_event *event) knl_uncore_imc_enable_event() argument
2597 hswep_ubox_hw_config(struct intel_uncore_box *box, struct perf_event *event) hswep_ubox_hw_config() argument
2725 hswep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) hswep_cbox_get_constraint() argument
2730 hswep_cbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) hswep_cbox_hw_config() argument
2751 hswep_cbox_enable_event(struct intel_uncore_box *box, struct perf_event *event) hswep_cbox_enable_event() argument
2797 hswep_uncore_sbox_msr_init_box(struct intel_uncore_box *box) hswep_uncore_sbox_msr_init_box() argument
2847 hswep_pcu_hw_config(struct intel_uncore_box *box, struct perf_event *event) hswep_pcu_hw_config() argument
2955 hswep_uncore_irp_read_counter(struct intel_uncore_box *box, struct perf_event *event) hswep_uncore_irp_read_counter() argument
3611 skx_cha_get_constraint(struct intel_uncore_box *box, struct perf_event *event) skx_cha_get_constraint() argument
3616 skx_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) skx_cha_hw_config() argument
3695 skx_iio_enable_event(struct intel_uncore_box *box, struct perf_event *event) skx_iio_enable_event() argument
4246 skx_upi_uncore_pci_init_box(struct intel_uncore_box *box) skx_upi_uncore_pci_init_box() argument
4407 skx_m2m_uncore_pci_init_box(struct intel_uncore_box *box) skx_m2m_uncore_pci_init_box() argument
4628 snr_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) snr_cha_hw_config() argument
4640 snr_cha_enable_event(struct intel_uncore_box *box, struct perf_event *event) snr_cha_enable_event() argument
4831 snr_pcu_hw_config(struct intel_uncore_box *box, struct perf_event *event) snr_pcu_hw_config() argument
4936 snr_m2m_uncore_pci_init_box(struct intel_uncore_box *box) snr_m2m_uncore_pci_init_box() argument
4982 snr_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) snr_uncore_pci_enable_event() argument
5084 snr_uncore_mmio_map(struct intel_uncore_box *box, unsigned int box_ctl, int mem_offset, unsigned int device) snr_uncore_mmio_map() argument
5115 __snr_uncore_mmio_init_box(struct intel_uncore_box *box, unsigned int box_ctl, int mem_offset, unsigned int device) __snr_uncore_mmio_init_box() argument
5123 snr_uncore_mmio_init_box(struct intel_uncore_box *box) snr_uncore_mmio_init_box() argument
5130 snr_uncore_mmio_disable_box(struct intel_uncore_box *box) snr_uncore_mmio_disable_box() argument
5142 snr_uncore_mmio_enable_box(struct intel_uncore_box *box) snr_uncore_mmio_enable_box() argument
5154 snr_uncore_mmio_enable_event(struct intel_uncore_box *box, struct perf_event *event) snr_uncore_mmio_enable_event() argument
5169 snr_uncore_mmio_disable_event(struct intel_uncore_box *box, struct perf_event *event) snr_uncore_mmio_disable_event() argument
5289 icx_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) icx_cha_hw_config() argument
5787 icx_uncore_imc_init_box(struct intel_uncore_box *box) icx_uncore_imc_init_box() argument
5860 icx_uncore_imc_freerunning_init_box(struct intel_uncore_box *box) icx_uncore_imc_freerunning_init_box() argument
5903 spr_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) spr_uncore_msr_enable_event() argument
5915 spr_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) spr_uncore_msr_disable_event() argument
5927 spr_cha_hw_config(struct intel_uncore_box *box, struct perf_event *event) spr_cha_hw_config() argument
6053 spr_uncore_mmio_enable_event(struct intel_uncore_box *box, struct perf_event *event) spr_uncore_mmio_enable_event() argument
6098 spr_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) spr_uncore_pci_enable_event() argument
6330 spr_uncore_imc_freerunning_init_box(struct intel_uncore_box *box) spr_uncore_imc_freerunning_init_box() argument
[all...]
/kernel/linux/linux-5.10/scripts/kconfig/lxdialog/
H A Dtextbox.c3 * textbox.c -- implements the text box
26 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, in refresh_text_box() argument
30 print_page(box, boxh, boxw, update_text, data); in refresh_text_box()
38 * Display text from a file in a dialog box.
49 WINDOW *dialog, *box; in dialog_textbox() local
87 /* center dialog box on screen */ in dialog_textbox()
96 /* Create window for box region, used for scrolling text */ in dialog_textbox()
99 box = subwin(dialog, boxh, boxw, y + 1, x + 1); in dialog_textbox()
100 wattrset(box, dlg.dialog.atr); in dialog_textbox()
101 wbkgdset(box, dl in dialog_textbox()
[all...]
/kernel/linux/linux-6.6/scripts/kconfig/lxdialog/
H A Dtextbox.c3 * textbox.c -- implements the text box
133 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, in refresh_text_box() argument
138 print_page(box, boxh, boxw); in refresh_text_box()
147 * Display text from a file in a dialog box.
157 WINDOW *dialog, *box; in dialog_textbox() local
195 /* center dialog box on screen */ in dialog_textbox()
204 /* Create window for box region, used for scrolling text */ in dialog_textbox()
207 box = subwin(dialog, boxh, boxw, y + 1, x + 1); in dialog_textbox()
208 wattrset(box, dlg.dialog.atr); in dialog_textbox()
209 wbkgdset(box, dl in dialog_textbox()
[all...]
/kernel/linux/linux-5.10/lib/
H A Dpacking.c99 int plogical_first_u8, plogical_last_u8, box; in packing() local
127 * logical bit significance. "box" denotes the current logical u8. in packing()
132 for (box = plogical_first_u8; box >= plogical_last_u8; box--) { in packing()
133 /* Bit indices into the currently accessed 8-bit box */ in packing()
144 if (box == plogical_first_u8) in packing()
148 if (box == plogical_last_u8) in packing()
153 /* We have determined the box bit start and end. in packing()
154 * Now we calculate where this (masked) u8 box woul in packing()
[all...]
/kernel/liteos_m/components/security/box/
H A Dlos_box.c65 LosBoxCB *box = &g_boxCB[i]; in BoxInit() local
66 box->boxStackAddr = box->boxStartAddr + box->boxSize - box->boxStackSize; in BoxInit()
79 LosBoxCB *box = &g_boxCB[i]; in OsBoxStart() local
80 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)box->boxStartAddr; in OsBoxStart()
87 PRINT_ERR("Create box %u main task failed, Error 0x%x\n", i, ret); in OsBoxStart()
91 OsUserTaskInit(taskID, (UINTPTR)_ulibc_start, 0, box->boxStackAddr + box in OsBoxStart()
[all...]
/kernel/linux/linux-6.6/lib/
H A Dpacking.c87 int plogical_first_u8, plogical_last_u8, box; in packing() local
115 * logical bit significance. "box" denotes the current logical u8. in packing()
120 for (box = plogical_first_u8; box >= plogical_last_u8; box--) { in packing()
121 /* Bit indices into the currently accessed 8-bit box */ in packing()
132 if (box == plogical_first_u8) in packing()
136 if (box == plogical_last_u8) in packing()
141 /* We have determined the box bit start and end. in packing()
142 * Now we calculate where this (masked) u8 box woul in packing()
[all...]
/kernel/linux/linux-5.10/sound/pci/ice1712/
H A Dhoontech.c68 static void snd_ice1712_stdsp24_box_channel(struct snd_ice1712 *ice, int box, int chn, int activate) in snd_ice1712_stdsp24_box_channel() argument
74 /* select box */ in snd_ice1712_stdsp24_box_channel()
75 ICE1712_STDSP24_0_BOX(spec->boxbits, box); in snd_ice1712_stdsp24_box_channel()
118 static void snd_ice1712_stdsp24_box_midi(struct snd_ice1712 *ice, int box, int master) in snd_ice1712_stdsp24_box_midi() argument
124 /* select box */ in snd_ice1712_stdsp24_box_midi()
125 ICE1712_STDSP24_0_BOX(spec->boxbits, box); in snd_ice1712_stdsp24_box_midi()
158 int box, chn; in hoontech_init() local
191 /* let's go - activate only functions in first box */ in hoontech_init()
202 * ** MIDI IN can only be configured on one box ** in hoontech_init()
203 * ICE1712_STDSP24_BOX_MIDI1 needs to be set for that box in hoontech_init()
[all...]
/kernel/linux/linux-6.6/sound/pci/ice1712/
H A Dhoontech.c68 static void snd_ice1712_stdsp24_box_channel(struct snd_ice1712 *ice, int box, int chn, int activate) in snd_ice1712_stdsp24_box_channel() argument
74 /* select box */ in snd_ice1712_stdsp24_box_channel()
75 ICE1712_STDSP24_0_BOX(spec->boxbits, box); in snd_ice1712_stdsp24_box_channel()
118 static void snd_ice1712_stdsp24_box_midi(struct snd_ice1712 *ice, int box, int master) in snd_ice1712_stdsp24_box_midi() argument
124 /* select box */ in snd_ice1712_stdsp24_box_midi()
125 ICE1712_STDSP24_0_BOX(spec->boxbits, box); in snd_ice1712_stdsp24_box_midi()
158 int box, chn; in hoontech_init() local
191 /* let's go - activate only functions in first box */ in hoontech_init()
202 * ** MIDI IN can only be configured on one box ** in hoontech_init()
203 * ICE1712_STDSP24_BOX_MIDI1 needs to be set for that box in hoontech_init()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c1727 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource]; in vmw_subres_dirty_add() local
1730 u32 box_c2 = box->z + box->d; in vmw_subres_dirty_add()
1735 if (box->d == 0 || box->z > loc_start->z) in vmw_subres_dirty_add()
1736 box->z = loc_start->z; in vmw_subres_dirty_add()
1738 box->d = loc_end->z - box->z; in vmw_subres_dirty_add()
1741 box_c2 = box->y + box in vmw_subres_dirty_add()
1775 SVGA3dBox *box = &dirty->boxes[subres]; vmw_subres_dirty_full() local
1847 SVGA3dBox *box = &dirty->boxes[0]; vmw_surface_buf_dirty_range_add() local
1902 const SVGA3dBox *box = &dirty->boxes[i]; vmw_surface_dirty_sync() local
1920 const SVGA3dBox *box = &dirty->boxes[i]; vmw_surface_dirty_sync() local
[all...]
H A Dvmwgfx_stdu.c58 * @left: Left side of bounding box.
59 * @right: Right side of bounding box.
60 * @top: Top side of bounding box.
61 * @bottom: Bottom side of bounding box.
62 * @fb_left: Left side of the framebuffer/content bounding box
63 * @fb_top: Top of the framebuffer/content bounding box
249 * bounding box.
253 * @left: Left side of bounding box.
254 * @right: Right side of bounding box.
255 * @top: Top side of bounding box
1215 struct SVGA3dCopyBox *box = cmd; vmw_stdu_bo_populate_clip() local
1312 SVGA3dBox *box = &cmd_img->body.box; vmw_stdu_bo_populate_update_cpu() local
1441 SVGA3dBox *box = &cmd_update->body.box; vmw_stdu_surface_update_proxy() local
1488 struct SVGA3dCopyBox *box = cmd; vmw_stdu_surface_populate_clip() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c1674 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource]; in vmw_subres_dirty_add() local
1677 u32 box_c2 = box->z + box->d; in vmw_subres_dirty_add()
1682 if (box->d == 0 || box->z > loc_start->z) in vmw_subres_dirty_add()
1683 box->z = loc_start->z; in vmw_subres_dirty_add()
1685 box->d = loc_end->z - box->z; in vmw_subres_dirty_add()
1688 box_c2 = box->y + box in vmw_subres_dirty_add()
1722 SVGA3dBox *box = &dirty->boxes[subres]; vmw_subres_dirty_full() local
1794 SVGA3dBox *box = &dirty->boxes[0]; vmw_surface_buf_dirty_range_add() local
1848 const SVGA3dBox *box = &dirty->boxes[i]; vmw_surface_dirty_sync() local
1866 const SVGA3dBox *box = &dirty->boxes[i]; vmw_surface_dirty_sync() local
[all...]
H A Dvmwgfx_stdu.c57 * @left: Left side of bounding box.
58 * @right: Right side of bounding box.
59 * @top: Top side of bounding box.
60 * @bottom: Bottom side of bounding box.
61 * @fb_left: Left side of the framebuffer/content bounding box
62 * @fb_top: Top of the framebuffer/content bounding box
250 * bounding box.
254 * @left: Left side of bounding box.
255 * @right: Right side of bounding box.
256 * @top: Top side of bounding box
1097 SVGA3dBox *box = &cmd_img->body.box; vmw_stdu_bo_populate_update_cpu() local
1214 SVGA3dBox *box = &cmd_update->body.box; vmw_stdu_surface_update_proxy() local
1261 struct SVGA3dCopyBox *box = cmd; vmw_stdu_surface_populate_clip() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/mga/
H A Dmga_state.c42 struct drm_clip_rect *box) in mga_emit_clip_rect()
60 MGA_CXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_emit_clip_rect()
61 MGA_YTOP, box->y1 * pitch, MGA_YBOT, (box->y2 - 1) * pitch); in mga_emit_clip_rect()
500 struct drm_clip_rect *box = &pbox[i]; in mga_dma_dispatch_clear() local
501 u32 height = box->y2 - box->y1; in mga_dma_dispatch_clear()
504 box->x1, box in mga_dma_dispatch_clear()
41 mga_emit_clip_rect(drm_mga_private_t *dev_priv, struct drm_clip_rect *box) mga_emit_clip_rect() argument
598 struct drm_clip_rect *box = &pbox[i]; mga_dma_dispatch_swap() local
[all...]
/kernel/liteos_a/kernel/base/mem/membox/
H A Dlos_membox.c144 LITE_OS_SEC_TEXT UINT32 LOS_MemboxFree(VOID *pool, VOID *box) in LOS_MemboxFree() argument
150 if ((pool == NULL) || (box == NULL)) { in LOS_MemboxFree()
156 LOS_MEMBOX_NODE *node = OS_MEMBOX_NODE_ADDR(box); in LOS_MemboxFree()
171 LITE_OS_SEC_TEXT_MINOR VOID LOS_MemboxClr(VOID *pool, VOID *box) in LOS_MemboxClr() argument
175 if ((pool == NULL) || (box == NULL)) { in LOS_MemboxClr()
179 (VOID)memset_s(box, (boxInfo->uwBlkSize - OS_MEMBOX_NODE_HEAD_SIZE), 0, in LOS_MemboxClr()

Completed in 37 milliseconds

1234