Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 74) sorted by relevance

123

/arch/powerpc/perf/
Dpower4-pmu.c185 int unit; member
220 int pmc, psel, unit, byte, bit; in p4_marked_instr_event() local
238 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_marked_instr_event()
240 switch (unit) { in p4_marked_instr_event()
257 int pmc, byte, unit, lower, sh; in p4_get_constraint() local
270 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_get_constraint()
272 if (unit) { in p4_get_constraint()
282 if (!p4_unitinfo[unit].unit) in p4_get_constraint()
284 mask |= p4_unitinfo[unit].mask; in p4_get_constraint()
285 value |= p4_unitinfo[unit].value; in p4_get_constraint()
[all …]
Dpower5-pmu.c143 int pmc, byte, unit, sh; in power5_get_constraint() local
161 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_get_constraint()
162 if (unit > PM_LASTUNIT) in power5_get_constraint()
164 if (unit == PM_ISU0_ALT) in power5_get_constraint()
165 unit = PM_ISU0; in power5_get_constraint()
166 mask |= unit_cons[unit][0]; in power5_get_constraint()
167 value |= unit_cons[unit][1]; in power5_get_constraint()
170 if (unit != PM_LSU1) in power5_get_constraint()
173 ++unit; in power5_get_constraint()
176 if (unit == PM_GRS) { in power5_get_constraint()
[all …]
Dppc970-pmu.c149 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local
167 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_marked_instr_event()
169 switch (unit) { in p970_marked_instr_event()
197 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local
210 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_get_constraint()
211 if (unit) { in p970_get_constraint()
212 if (unit > PM_LASTUNIT) in p970_get_constraint()
214 mask |= unit_cons[unit][0]; in p970_get_constraint()
215 value |= unit_cons[unit][1]; in p970_get_constraint()
225 value |= (unsigned long)unit << (28 - 4 * byte); in p970_get_constraint()
[all …]
Dpower5+-pmu.c139 int pmc, byte, unit, sh; in power5p_get_constraint() local
154 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_get_constraint()
155 if (unit > PM_LASTUNIT) in power5p_get_constraint()
157 if (unit == PM_ISU0_ALT) in power5p_get_constraint()
158 unit = PM_ISU0; in power5p_get_constraint()
159 mask |= unit_cons[unit][0]; in power5p_get_constraint()
160 value |= unit_cons[unit][1]; in power5p_get_constraint()
163 if (unit != PM_LSU1) in power5p_get_constraint()
166 ++unit; in power5p_get_constraint()
169 if (unit == PM_GRS) { in power5p_get_constraint()
[all …]
Dpower7-pmu.c88 int pmc, sh, unit; in power7_get_constraint() local
107 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_get_constraint()
108 if (unit == 6) { in power7_get_constraint()
218 int unit; in power7_marked_instr_event() local
221 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_marked_instr_event()
237 return unit == 0xd; in power7_marked_instr_event()
242 return unit == 0xd; in power7_marked_instr_event()
252 unsigned int pmc, unit, combine, l2sel, psel; in power7_compute_mmcr() local
271 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_compute_mmcr()
289 mmcr1 |= (unsigned long) unit in power7_compute_mmcr()
[all …]
/arch/tile/kernel/
Dusb.c30 #define USB_HOST_DEF(unit, type, dmamask) \ argument
33 hci ## unit = { \
34 .dev_index = unit, \
37 static struct platform_device tilegx_usb_ ## type ## hci ## unit = { \
39 .id = unit, \
45 unit, \
/arch/metag/kernel/
Dcore_reg.c41 void core_reg_write(int unit, int reg, int thread, unsigned int val) in core_reg_write() argument
46 if (unit == TXUCT_ID) { in core_reg_write()
62 val = UNIT_VAL(unit) | REG_VAL(reg) | THREAD_VAL(thread); in core_reg_write()
83 unsigned int core_reg_read(int unit, int reg, int thread) in core_reg_read() argument
89 if (unit == TXUCT_ID) { in core_reg_read()
102 val = (UNIT_VAL(unit) | REG_VAL(reg) | THREAD_VAL(thread) | in core_reg_read()
/arch/alpha/include/asm/
Dconsole.h7 extern long callback_puts(long unit, const char *s, long length);
8 extern long callback_getc(long unit);
12 extern long callback_close(long unit);
/arch/powerpc/boot/dts/fsl/
Dqoriq-rmu-0.dtsi42 message-unit@0 {
43 compatible = "fsl,srio-msg-unit";
49 message-unit@100 {
50 compatible = "fsl,srio-msg-unit";
56 doorbell-unit@400 {
57 compatible = "fsl,srio-dbell-unit";
63 port-write-unit@4e0 {
64 compatible = "fsl,srio-port-write-unit";
Dpq3-rmu-0.dtsi42 message-unit@0 {
43 compatible = "fsl,srio-msg-unit";
49 message-unit@100 {
50 compatible = "fsl,srio-msg-unit";
56 doorbell-unit@400 {
57 compatible = "fsl,srio-dbell-unit";
63 port-write-unit@4e0 {
64 compatible = "fsl,srio-port-write-unit";
/arch/alpha/mm/
Dextable.c18 unsigned int t = ex_a->fixup.unit; in swap_ex()
20 ex_a->fixup.unit = ex_b->fixup.unit; in swap_ex()
21 ex_b->fixup.unit = t; in swap_ex()
/arch/x86/kvm/
Dmtrr.c197 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument
202 *unit = 0; in fixed_msr_to_seg_unit()
206 *unit = array_index_nospec( in fixed_msr_to_seg_unit()
212 *unit = array_index_nospec( in fixed_msr_to_seg_unit()
223 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument
228 *start = mtrr_seg->start + unit * unit_size; in fixed_mtrr_seg_unit_range()
233 static int fixed_mtrr_seg_unit_range_index(int seg, int unit) in fixed_mtrr_seg_unit_range_index() argument
237 WARN_ON(mtrr_seg->start + unit * fixed_mtrr_seg_unit_size(seg) in fixed_mtrr_seg_unit_range_index()
241 return mtrr_seg->range_start + 8 * unit; in fixed_mtrr_seg_unit_range_index()
255 int seg, unit; in fixed_msr_to_range() local
[all …]
/arch/metag/include/asm/
Dcore_reg.h6 extern void core_reg_write(int unit, int reg, int thread, unsigned int val);
7 extern unsigned int core_reg_read(int unit, int reg, int thread);
/arch/mn10300/
DMakefile62 core-y += arch/mn10300/unit-$(UNIT)/
88 $(Q)$(MAKE) $(clean)=arch/mn10300/unit-asb2303
89 $(Q)$(MAKE) $(clean)=arch/mn10300/unit-asb2305
99 KBUILD_CPPFLAGS += -I$(srctree)/arch/mn10300/unit-$(UNIT)/include
/arch/powerpc/oprofile/
Dop_model_power4.c44 u64 psel, unit; in power7_marked_instr_event() local
57 unit = mmcr1 & (OPROFILE_PM_UNIT_MSK in power7_marked_instr_event()
60 unit = unit >> (OPROFILE_PM_UNIT_SHIFT in power7_marked_instr_event()
82 cntr_marked_events |= (unit == 0xd) << pmc; in power7_marked_instr_event()
89 cntr_marked_events |= (unit == 0xd) << pmc; in power7_marked_instr_event()
/arch/m68k/emu/
Dnfeth.c191 static struct net_device * __init nfeth_probe(int unit) in nfeth_probe() argument
198 if (!nf_call(nfEtherID + XIF_GET_MAC, unit, virt_to_phys(mac), in nfeth_probe()
212 priv->ethX = unit; in nfeth_probe()
220 nf_call(nfEtherID + XIF_GET_IPHOST, unit, in nfeth_probe()
222 nf_call(nfEtherID + XIF_GET_IPATARI, unit, in nfeth_probe()
/arch/mips/bcm63xx/
Ddev-enet.c202 int __init bcm63xx_enet_register(int unit, in bcm63xx_enet_register() argument
209 if (unit > 1) in bcm63xx_enet_register()
212 if (unit == 1 && (BCMCPU_IS_6338() || BCMCPU_IS_6345())) in bcm63xx_enet_register()
219 if (unit == 0) { in bcm63xx_enet_register()
245 if (unit == 1) in bcm63xx_enet_register()
/arch/powerpc/platforms/cell/
Dinterrupt.c64 unsigned char unit = bits.source & 0xf; in iic_pending_to_hwnum() local
72 return (node << IIC_IRQ_NODE_SHIFT) | (class << 4) | unit; in iic_pending_to_hwnum()
255 unsigned int node, ext, unit, class; in iic_host_xlate() local
270 unit = intspec[0] & 0xff; in iic_host_xlate()
278 if (unit == IIC_UNIT_IIC && class == 1) in iic_host_xlate()
282 (class << IIC_IRQ_CLASS_SHIFT) | unit; in iic_host_xlate()
/arch/ia64/mm/
Ddiscontig.c193 int node, prev_node, unit, nr_units, rc; in setup_per_cpu_areas() local
208 unit = 0; in setup_per_cpu_areas()
212 cpu_map[unit++] = cpu; in setup_per_cpu_areas()
213 nr_units = unit; in setup_per_cpu_areas()
236 for (unit = 0; unit < nr_units; unit++) { in setup_per_cpu_areas()
237 cpu = cpu_map[unit]; in setup_per_cpu_areas()
249 gi->cpu_map = &cpu_map[unit]; in setup_per_cpu_areas()
/arch/s390/mm/
Ddump_pagetables.c61 const char *unit = units; in note_page() local
86 while (!(delta & 0x3ff) && unit[1]) { in note_page()
88 unit++; in note_page()
90 seq_printf(m, "%9lu%c ", delta, *unit); in note_page()
/arch/mips/include/asm/sgi/
Dwd.h14 unsigned int unit; member
/arch/mn10300/unit-asb2303/
DMakefile6 obj-y := unit-init.o smc91111.o flash.o leds.o
/arch/mips/alchemy/common/
Dplatform.c160 int unit; in alchemy_ohci_power_on() local
162 unit = (pdev->id == 1) ? in alchemy_ohci_power_on()
165 return alchemy_usb_control(unit, 1); in alchemy_ohci_power_on()
171 int unit; in alchemy_ohci_power_off() local
173 unit = (pdev->id == 1) ? in alchemy_ohci_power_off()
176 alchemy_usb_control(unit, 0); in alchemy_ohci_power_off()
/arch/mn10300/unit-asb2364/
DMakefile10 obj-y := unit-init.o leds.o irq-fpga.o
/arch/mn10300/unit-asb2305/
DMakefile6 obj-y := unit-init.o leds.o

123