Home
last modified time | relevance | path

Searched full:box (Results 1 – 25 of 1002) sorted by relevance

12345678910>>...41

/kernel/linux/linux-5.10/arch/x86/events/intel/
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->pmu->type->box_ctl; in uncore_pci_box_ctl()
249 static inline unsigned uncore_pci_fixed_ctl(struct intel_uncore_box *box) in uncore_pci_fixed_ctl() argument
[all …]
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 we in uncore_get_constraint()
[all …]
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()
[all …]
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->pmu->pmu_idx == 7) in skl_uncore_msr_init_box()
[all …]
/kernel/linux/linux-6.6/arch/x86/events/intel/
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
278 return box->pmu->type->box_ctl; in uncore_pci_box_ctl()
[all …]
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 we in uncore_get_constraint()
[all …]
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), 0); in intel_generic_uncore_msr_enable_box()
[all …]
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 */
127 unsigned int *ids; /* Box IDs */
128 unsigned int *box_offset; /* Box offset */
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);
[all …]
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->pmu->pmu_idx == 7) in skl_uncore_msr_init_box()
[all …]
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()
[all …]
Duncore_snbep.c10 /* SNB-EP Box level control */
553 static void snbep_uncore_pci_disable_box(struct intel_uncore_box *box) in snbep_uncore_pci_disable_box() argument
555 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_disable_box()
556 int box_ctl = uncore_pci_box_ctl(box); in snbep_uncore_pci_disable_box()
565 static void snbep_uncore_pci_enable_box(struct intel_uncore_box *box) in snbep_uncore_pci_enable_box() argument
567 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_enable_box()
568 int box_ctl = uncore_pci_box_ctl(box); in snbep_uncore_pci_enable_box()
577 static void snbep_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_enable_event() argument
579 struct pci_dev *pdev = box->pci_dev; in snbep_uncore_pci_enable_event()
585 static void snbep_uncore_pci_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_disable_event() argument
[all …]
/kernel/linux/linux-6.6/rust/alloc/
Dboxed.rs3 //! The `Box<T>` type for heap allocation.
5 //! [`Box<T>`], casually referred to as a 'box', provides the simplest form of
12 //! Move a value from the stack to the heap by creating a [`Box`]:
16 //! let boxed: Box<u8> = Box::new(val);
19 //! Move a value from a [`Box`] back to the stack by [dereferencing]:
22 //! let boxed: Box<u8> = Box::new(5);
31 //! Cons(T, Box<List<T>>),
35 //! let list: List<i32> = List::Cons(1, Box::new(List::Cons(2, Box::new(List::Nil))));
52 //! for a `Cons`. By introducing a [`Box<T>`], which has a defined size, we know how
57 //! For non-zero-sized values, a [`Box`] will use the [`Global`] allocator for
[all …]
/kernel/linux/linux-5.10/tools/testing/ktest/examples/include/
Ddefaults.conf10 # box (usually different if it was 64 bit or 32 bit) but the
11 # BOX here is defined as a variable that will be the name of the box
13 # the box, as only one script needs to be created to power cycle
14 # even though the box itself has multiple operating systems on it.
15 # By default, BOX and MACHINE are the same.
17 DEFAULTS IF NOT DEFINED BOX
18 BOX := ${MACHINE}
21 # Consider each box as 64 bit box, unless the config including this file
52 # Update this. The default here is ktest will ssh to the target box
53 # and run a script called 'run-test' located on that box.
[all …]
/kernel/linux/linux-6.6/tools/testing/ktest/examples/include/
Ddefaults.conf10 # box (usually different if it was 64 bit or 32 bit) but the
11 # BOX here is defined as a variable that will be the name of the box
13 # the box, as only one script needs to be created to power cycle
14 # even though the box itself has multiple operating systems on it.
15 # By default, BOX and MACHINE are the same.
17 DEFAULTS IF NOT DEFINED BOX
18 BOX := ${MACHINE}
21 # Consider each box as 64 bit box, unless the config including this file
52 # Update this. The default here is ktest will ssh to the target box
53 # and run a script called 'run-test' located on that box.
[all …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-driver-intel_sdsi4 Contact: "David E. Box" <david.e.box@linux.intel.com>
33 Contact: "David E. Box" <david.e.box@linux.intel.com>
43 Contact: "David E. Box" <david.e.box@linux.intel.com>
54 Contact: "David E. Box" <david.e.box@linux.intel.com>
63 Contact: "David E. Box" <david.e.box@linux.intel.com>
75 Contact: "David E. Box" <david.e.box@linux.intel.com>
85 Contact: "David E. Box" <david.e.box@linux.intel.com>
Dsysfs-class-intel_pmt4 Contact: David Box <david.e.box@linux.intel.com>
13 Contact: David Box <david.e.box@linux.intel.com>
26 Contact: David Box <david.e.box@linux.intel.com>
34 Contact: David Box <david.e.box@linux.intel.com>
43 Contact: David Box <david.e.box@linux.intel.com>
51 Contact: David Box <david.e.box@linux.intel.com>
72 Contact: David Box <david.e.box@linux.intel.com>
/kernel/linux/linux-6.6/Documentation/RCU/Design/Memory-Ordering/
Drcu_node-lock.svg80 <!-- Line: box -->
81 <!-- Line: box -->
82 <!-- Line: box -->
91 <!-- Line: box -->
92 <!-- Line: box -->
120 <!-- Line: box -->
121 <!-- Line: box -->
122 <!-- Line: box -->
123 <!-- Line: box -->
124 <!-- Line: box -->
[all …]
/kernel/linux/linux-5.10/Documentation/RCU/Design/Memory-Ordering/
Drcu_node-lock.svg80 <!-- Line: box -->
81 <!-- Line: box -->
82 <!-- Line: box -->
91 <!-- Line: box -->
92 <!-- Line: box -->
120 <!-- Line: box -->
121 <!-- Line: box -->
122 <!-- Line: box -->
123 <!-- Line: box -->
124 <!-- Line: box -->
[all …]
/kernel/linux/linux-6.6/scripts/kconfig/lxdialog/
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, dlg.dialog.atr & A_COLOR); in dialog_textbox()
[all …]
/kernel/linux/linux-5.10/scripts/kconfig/lxdialog/
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, dlg.dialog.atr & A_COLOR); in dialog_textbox()
[all …]
/kernel/linux/linux-6.6/lib/
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 would fit in packing()
143 * in the unpacked (CPU-readable) u64 - the u8 box's in packing()
145 * box is u8, the projection is u64 because it may fall in packing()
[all …]
/kernel/linux/linux-5.10/lib/
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 would fit in packing()
155 * in the unpacked (CPU-readable) u64 - the u8 box's in packing()
157 * box is u8, the projection is u64 because it may fall in packing()
[all …]
/kernel/liteos_m/components/security/box/
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->boxStackSize); in OsBoxStart()
96 PRINT_ERR("Box(%u) resume task %u failed, Error 0x%x\n", i, taskID, ret); in OsBoxStart()
109 PRINT_ERR("Box init failed! Error 0x%x\n", ret); in LOS_BoxStart()
/kernel/linux/linux-6.6/sound/pci/ice1712/
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/sound/pci/ice1712/
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 …]

12345678910>>...41