/arch/mips/include/asm/ |
D | mips-cps.h | 16 #define CPS_ACCESSOR_A(unit, off, name) \ argument 17 static inline void *addr_##unit##_##name(void) \ 19 return mips_##unit##_base + (off); \ 22 #define CPS_ACCESSOR_R(unit, sz, name) \ argument 23 static inline uint##sz##_t read_##unit##_##name(void) \ 29 return __raw_readl(addr_##unit##_##name()); \ 33 return __raw_readq(addr_##unit##_##name()); \ 35 val64 = __raw_readl(addr_##unit##_##name() + 4); \ 37 val64 |= __raw_readl(addr_##unit##_##name()); \ 45 #define CPS_ACCESSOR_W(unit, sz, name) \ argument [all …]
|
/arch/powerpc/perf/ |
D | power5-pmu.c | 141 int pmc, byte, unit, sh; in power5_get_constraint() local 159 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_get_constraint() 160 if (unit > PM_LASTUNIT) in power5_get_constraint() 162 if (unit == PM_ISU0_ALT) in power5_get_constraint() 163 unit = PM_ISU0; in power5_get_constraint() 164 mask |= unit_cons[unit][0]; in power5_get_constraint() 165 value |= unit_cons[unit][1]; in power5_get_constraint() 168 if (unit != PM_LSU1) in power5_get_constraint() 171 ++unit; in power5_get_constraint() 174 if (unit == PM_GRS) { in power5_get_constraint() [all …]
|
D | ppc970-pmu.c | 147 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local 165 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_marked_instr_event() 167 switch (unit) { in p970_marked_instr_event() 195 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local 208 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_get_constraint() 209 if (unit) { in p970_get_constraint() 210 if (unit > PM_LASTUNIT) in p970_get_constraint() 212 mask |= unit_cons[unit][0]; in p970_get_constraint() 213 value |= unit_cons[unit][1]; in p970_get_constraint() 223 value |= (unsigned long)unit << (28 - 4 * byte); in p970_get_constraint() [all …]
|
D | power5+-pmu.c | 137 int pmc, byte, unit, sh; in power5p_get_constraint() local 152 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_get_constraint() 153 if (unit > PM_LASTUNIT) in power5p_get_constraint() 155 if (unit == PM_ISU0_ALT) in power5p_get_constraint() 156 unit = PM_ISU0; in power5p_get_constraint() 157 mask |= unit_cons[unit][0]; in power5p_get_constraint() 158 value |= unit_cons[unit][1]; in power5p_get_constraint() 161 if (unit != PM_LSU1) in power5p_get_constraint() 164 ++unit; in power5p_get_constraint() 167 if (unit == PM_GRS) { in power5p_get_constraint() [all …]
|
D | power7-pmu.c | 86 int pmc, sh, unit; in power7_get_constraint() local 105 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_get_constraint() 106 if (unit == 6) { in power7_get_constraint() 216 int unit; in power7_marked_instr_event() local 219 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_marked_instr_event() 235 return unit == 0xd; in power7_marked_instr_event() 241 return unit == 0xd; in power7_marked_instr_event() 253 unsigned int pmc, unit, combine, l2sel, psel; in power7_compute_mmcr() local 272 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_compute_mmcr() 290 mmcr1 |= (unsigned long) unit in power7_compute_mmcr() [all …]
|
D | isa207-common.c | 15 PMU_FORMAT_ATTR(unit, "config:12-15"); 357 unsigned int unit, pmc, cache, ebb; in isa207_get_constraint() local 366 unit = (event >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; in isa207_get_constraint() 412 if (unit >= 6 && unit <= 9) { in isa207_get_constraint() 414 if (unit == 6) { in isa207_get_constraint() 516 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local 542 unit = (event[i] >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; in isa207_compute_mmcr() 556 mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); in isa207_compute_mmcr() 614 if (cpu_has_feature(CPU_FTR_ARCH_31) && (unit == 6)) { in isa207_compute_mmcr()
|
/arch/x86/events/intel/ |
D | uncore_discovery.c | 91 add_uncore_discovery_type(struct uncore_unit_discovery *unit) in add_uncore_discovery_type() argument 95 if (unit->access_type >= UNCORE_ACCESS_MAX) { in add_uncore_discovery_type() 96 pr_warn("Unsupported access type %d\n", unit->access_type); in add_uncore_discovery_type() 108 type->access_type = unit->access_type; in add_uncore_discovery_type() 110 type->type = unit->box_type; in add_uncore_discovery_type() 124 get_uncore_discovery_type(struct uncore_unit_discovery *unit) in get_uncore_discovery_type() argument 128 type = search_uncore_discovery_type(unit->box_type); in get_uncore_discovery_type() 132 return add_uncore_discovery_type(unit); in get_uncore_discovery_type() 136 uncore_insert_box_info(struct uncore_unit_discovery *unit, in uncore_insert_box_info() argument 143 if (!unit->ctl || !unit->ctl_offset || !unit->ctr_offset) { in uncore_insert_box_info() [all …]
|
D | uncore_discovery.h | 32 #define uncore_discovery_invalid_unit(unit) \ argument 33 (!unit.table1 || !unit.ctl || \ 34 unit.table1 == -1ULL || unit.ctl == -1ULL || \ 35 unit.table3 == -1ULL)
|
D | uncore_snbep.c | 740 INTEL_UNCORE_EVENT_DESC(cas_count_read.unit, "MiB"), 743 INTEL_UNCORE_EVENT_DESC(cas_count_write.unit, "MiB"), 2925 INTEL_UNCORE_EVENT_DESC(cas_count_read.unit, "MiB"), 2928 INTEL_UNCORE_EVENT_DESC(cas_count_write.unit, "MiB"), 3941 INTEL_UNCORE_EVENT_DESC(bw_in_port0.unit, "MiB"), 3944 INTEL_UNCORE_EVENT_DESC(bw_in_port1.unit, "MiB"), 3947 INTEL_UNCORE_EVENT_DESC(bw_in_port2.unit, "MiB"), 3950 INTEL_UNCORE_EVENT_DESC(bw_in_port3.unit, "MiB"), 3953 INTEL_UNCORE_EVENT_DESC(bw_out_port0.unit, "MiB"), 3956 INTEL_UNCORE_EVENT_DESC(bw_out_port1.unit, "MiB"), [all …]
|
/arch/alpha/include/asm/ |
D | extable.h | 29 unsigned unit; member 52 (a)->fixup.unit = (b)->fixup.unit; \ 53 (b)->fixup.unit = (tmp).fixup.unit; \
|
D | console.h | 8 extern long callback_puts(long unit, const char *s, long length); 9 extern long callback_getc(long unit); 13 extern long callback_close(long unit);
|
/arch/powerpc/boot/dts/fsl/ |
D | pq3-rmu-0.dtsi | 42 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";
|
D | qoriq-rmu-0.dtsi | 42 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";
|
D | mpc8641_hpcn.dts | 132 message-unit@0 { 133 compatible = "fsl,srio-msg-unit"; 139 message-unit@100 { 140 compatible = "fsl,srio-msg-unit"; 146 doorbell-unit@400 { 147 compatible = "fsl,srio-dbell-unit"; 153 port-write-unit@4e0 { 154 compatible = "fsl,srio-port-write-unit";
|
/arch/x86/kvm/ |
D | mtrr.c | 182 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument 187 *unit = 0; in fixed_msr_to_seg_unit() 191 *unit = array_index_nospec( in fixed_msr_to_seg_unit() 197 *unit = array_index_nospec( in fixed_msr_to_seg_unit() 208 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument 213 *start = mtrr_seg->start + unit * unit_size; in fixed_mtrr_seg_unit_range() 218 static int fixed_mtrr_seg_unit_range_index(int seg, int unit) in fixed_mtrr_seg_unit_range_index() argument 222 WARN_ON(mtrr_seg->start + unit * fixed_mtrr_seg_unit_size(seg) in fixed_mtrr_seg_unit_range_index() 226 return mtrr_seg->range_start + 8 * unit; in fixed_mtrr_seg_unit_range_index() 240 int seg, unit; in fixed_msr_to_range() local [all …]
|
/arch/ia64/mm/ |
D | discontig.c | 189 int node, prev_node, unit, nr_units; in setup_per_cpu_areas() local 204 unit = 0; in setup_per_cpu_areas() 208 cpu_map[unit++] = cpu; in setup_per_cpu_areas() 209 nr_units = unit; in setup_per_cpu_areas() 232 for (unit = 0; unit < nr_units; unit++) { in setup_per_cpu_areas() 233 cpu = cpu_map[unit]; in setup_per_cpu_areas() 245 gi->cpu_map = &cpu_map[unit]; in setup_per_cpu_areas()
|
/arch/mips/bcm63xx/ |
D | dev-enet.c | 210 int __init bcm63xx_enet_register(int unit, in bcm63xx_enet_register() argument 217 if (unit > 1) in bcm63xx_enet_register() 220 if (unit == 1 && (BCMCPU_IS_6338() || BCMCPU_IS_6345())) in bcm63xx_enet_register() 227 if (unit == 0) { in bcm63xx_enet_register() 253 if (unit == 1) in bcm63xx_enet_register() 276 if (unit == 0) { in bcm63xx_enet_register()
|
/arch/m68k/emu/ |
D | nfeth.c | 185 static struct net_device * __init nfeth_probe(int unit) in nfeth_probe() argument 192 if (!nf_call(nfEtherID + XIF_GET_MAC, unit, virt_to_phys(mac), in nfeth_probe() 206 priv->ethX = unit; in nfeth_probe() 214 nf_call(nfEtherID + XIF_GET_IPHOST, unit, in nfeth_probe() 216 nf_call(nfEtherID + XIF_GET_IPATARI, unit, in nfeth_probe()
|
/arch/powerpc/platforms/cell/ |
D | interrupt.c | 51 unsigned char unit = bits.source & 0xf; in iic_pending_to_hwnum() local 59 return (node << IIC_IRQ_NODE_SHIFT) | (class << 4) | unit; in iic_pending_to_hwnum() 232 unsigned int node, ext, unit, class; in iic_host_xlate() local 247 unit = intspec[0] & 0xff; in iic_host_xlate() 255 if (unit == IIC_UNIT_IIC && class == 1) in iic_host_xlate() 259 (class << IIC_IRQ_CLASS_SHIFT) | unit; in iic_host_xlate()
|
/arch/mips/alchemy/common/ |
D | platform.c | 158 int unit; in alchemy_ohci_power_on() local 160 unit = (pdev->id == 1) ? in alchemy_ohci_power_on() 163 return alchemy_usb_control(unit, 1); in alchemy_ohci_power_on() 169 int unit; in alchemy_ohci_power_off() local 171 unit = (pdev->id == 1) ? in alchemy_ohci_power_off() 174 alchemy_usb_control(unit, 0); in alchemy_ohci_power_off()
|
/arch/s390/mm/ |
D | dump_pagetables.c | 132 const char *unit = units; in note_page() local 161 while (!(delta & 0x3ff) && unit[1]) { in note_page() 163 unit++; in note_page() 165 pt_dump_seq_printf(m, "%9lu%c ", delta, *unit); in note_page()
|
/arch/mips/include/asm/sgi/ |
D | wd.h | 14 unsigned int unit; member
|
/arch/powerpc/mm/ptdump/ |
D | ptdump.c | 127 const char *unit = units; in pt_dump_size() local 130 while (!(size & 1023) && unit[1]) { in pt_dump_size() 132 unit++; in pt_dump_size() 134 pt_dump_seq_printf(m, "%9lu%c ", size, *unit); in pt_dump_size()
|
/arch/arm64/mm/ |
D | ptdump.c | 268 const char *unit = units; in note_page() local 280 while (!(delta & 1023) && unit[1]) { in note_page() 282 unit++; in note_page() 284 pt_dump_seq_printf(st->seq, "%9lu%c %s", delta, *unit, in note_page()
|
/arch/riscv/mm/ |
D | ptdump.c | 231 const char *unit = units; in dump_addr() local 240 while (!(delta & 1023) && unit[1]) { in dump_addr() 242 unit++; in dump_addr() 245 pt_dump_seq_printf(st->seq, "%9lu%c %s", delta, *unit, in dump_addr()
|