Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 25 of 68) sorted by relevance

123

/arch/x86/kernel/cpu/
Dperf_event_amd.c181 struct amd_nb *nb = cpuc->amd_nb; in amd_has_nb() local
183 return nb && nb->nb_id != -1; in amd_has_nb()
190 struct amd_nb *nb = cpuc->amd_nb; in amd_put_event_constraints() local
208 if (nb->owners[i] == event) { in amd_put_event_constraints()
209 cmpxchg(nb->owners+i, event, NULL); in amd_put_event_constraints()
255 struct amd_nb *nb = cpuc->amd_nb; in amd_get_event_constraints() local
280 if (k == -1 && !nb->owners[i]) in amd_get_event_constraints()
284 if (nb->owners[i] == event) in amd_get_event_constraints()
307 old = cmpxchg(nb->owners+i, NULL, event); in amd_get_event_constraints()
315 return &nb->event_constraints[i]; in amd_get_event_constraints()
[all …]
Dintel_cacheinfo.c159 struct amd_northbridge *nb; member
306 static void __cpuinit amd_calc_l3_indices(struct amd_northbridge *nb) in amd_calc_l3_indices() argument
308 struct amd_l3_cache *l3 = &nb->l3_cache; in amd_calc_l3_indices()
312 pci_read_config_dword(nb->misc, 0x1C4, &val); in amd_calc_l3_indices()
338 this_leaf->nb = node_to_amd_nb(node); in amd_init_l3_cache()
339 if (this_leaf->nb && !this_leaf->nb->l3_cache.indices) in amd_init_l3_cache()
340 amd_calc_l3_indices(this_leaf->nb); in amd_init_l3_cache()
350 int amd_get_l3_disable_slot(struct amd_northbridge *nb, unsigned slot) in amd_get_l3_disable_slot() argument
354 pci_read_config_dword(nb->misc, 0x1BC + slot * 4, &reg); in amd_get_l3_disable_slot()
368 if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_INDEX_DISABLE)) in show_cache_disable()
[all …]
/arch/x86/kernel/
Damd_nb.c52 struct amd_northbridge *nb; in amd_cache_northbridges() local
65 nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL); in amd_cache_northbridges()
66 if (!nb) in amd_cache_northbridges()
69 amd_northbridges.nb = nb; in amd_cache_northbridges()
171 struct amd_northbridge *nb = node_to_amd_nb(amd_get_nb_id(cpu)); in amd_set_subcaches() local
180 pci_read_config_dword(nb->link, 0x1d4, &reset); in amd_set_subcaches()
181 pci_read_config_dword(nb->misc, 0x1b8, &ban); in amd_set_subcaches()
187 pci_read_config_dword(nb->misc, 0x1b8, &reg); in amd_set_subcaches()
188 pci_write_config_dword(nb->misc, 0x1b8, reg & ~0x180000); in amd_set_subcaches()
195 pci_write_config_dword(nb->link, 0x1d4, mask); in amd_set_subcaches()
[all …]
/arch/x86/mm/
Damdtopology.c77 int i, j, nb; in amd_numa_init() local
84 nb = find_northbridge(); in amd_numa_init()
85 if (nb < 0) in amd_numa_init()
86 return nb; in amd_numa_init()
88 pr_info("Scanning NUMA topology in Northbridge %d\n", nb); in amd_numa_init()
90 reg = read_pci_config(0, nb, 0, 0x60); in amd_numa_init()
101 base = read_pci_config(0, nb, 1, 0x40 + i*8); in amd_numa_init()
102 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init()
/arch/powerpc/kernel/
Dalign.c268 unsigned int reg, unsigned int nb, in emulate_multiple() argument
282 if (unlikely((nb > 4) || !user_mode(regs))) in emulate_multiple()
289 nb = regs->xer & 127; in emulate_multiple()
290 if (nb == 0) in emulate_multiple()
300 nb = (instr >> 11) & 0x1f; in emulate_multiple()
301 if (nb == 0) in emulate_multiple()
302 nb = 32; in emulate_multiple()
304 if (nb + reg * 4 > 128) { in emulate_multiple()
305 nb0 = nb + reg * 4 - 128; in emulate_multiple()
306 nb = 128 - reg * 4; in emulate_multiple()
[all …]
/arch/x86/include/asm/
Dintel_scu_ipc.h55 static inline void intel_scu_notifier_add(struct notifier_block *nb) in intel_scu_notifier_add() argument
57 blocking_notifier_chain_register(&intel_scu_notifier, nb); in intel_scu_notifier_add()
60 static inline void intel_scu_notifier_remove(struct notifier_block *nb) in intel_scu_notifier_remove() argument
62 blocking_notifier_chain_unregister(&intel_scu_notifier, nb); in intel_scu_notifier_remove()
Damd_nb.h38 struct amd_northbridge *nb; member
60 return (node < amd_northbridges.num) ? &amd_northbridges.nb[node] : NULL; in node_to_amd_nb()
Dmce.h124 extern void mce_register_decode_chain(struct notifier_block *nb);
125 extern void mce_unregister_decode_chain(struct notifier_block *nb);
/arch/powerpc/xmon/
Dstart.c17 int xmon_write(const void *ptr, int nb) in xmon_write() argument
19 return udbg_write(ptr, nb); in xmon_write()
Dnonstdio.c104 char *xmon_gets(char *str, int nb) in xmon_gets() argument
109 for (p = str; p < str + nb - 1; ) { in xmon_gets()
Dnonstdio.h13 extern int xmon_write(const void *ptr, int nb);
/arch/powerpc/include/asm/
DpSeries_reconfig.h25 static inline int pSeries_reconfig_notifier_register(struct notifier_block *nb) in pSeries_reconfig_notifier_register() argument
29 static inline void pSeries_reconfig_notifier_unregister(struct notifier_block *nb) { } in pSeries_reconfig_notifier_unregister() argument
Dcache.h60 extern void cacheable_memzero(void *p, unsigned int nb);
/arch/arm/mach-tegra/
Dboard-pinmux.c57 static int tegra_board_pinmux_bus_notify(struct notifier_block *nb, in tegra_board_pinmux_bus_notify() argument
85 static struct notifier_block nb = { variable
100 bus_register_notifier(&platform_bus_type, &nb); in tegra_board_pinmux_init()
/arch/powerpc/lib/
Dsstep.c84 static long __kprobes address_ok(struct pt_regs *regs, unsigned long ea, int nb) in address_ok() argument
88 return __access_ok(ea, nb, USER_DS); in address_ok()
182 int nb) in read_mem_aligned() argument
187 switch (nb) { in read_mem_aligned()
209 int nb, struct pt_regs *regs) in read_mem_unaligned() argument
216 for (; nb > 0; nb -= c) { in read_mem_unaligned()
218 if (c > nb) in read_mem_unaligned()
219 c = max_align(nb); in read_mem_unaligned()
234 static int __kprobes read_mem(unsigned long *dest, unsigned long ea, int nb, in read_mem() argument
237 if (!address_ok(regs, ea, nb)) in read_mem()
[all …]
/arch/x86/tools/
Dtest_get_len.c123 int nb = 0; in main() local
146 insn_buf[nb++] = (unsigned char) b; in main()
154 if (insn.length != nb) { in main()
160 "insn_get_length() says %d\n", nb, in main()
/arch/mips/include/asm/
Dcop2.h22 extern int register_cu2_notifier(struct notifier_block *nb);
Dtraps.h29 extern int register_nmi_notifier(struct notifier_block *nb);
/arch/arm/plat-omap/include/plat/
Dmailbox.h67 struct omap_mbox *omap_mbox_get(const char *, struct notifier_block *nb);
68 void omap_mbox_put(struct omap_mbox *mbox, struct notifier_block *nb);
/arch/cris/arch-v32/mach-fs/
Dcpufreq.c10 cris_sdram_freq_notifier(struct notifier_block *nb, unsigned long val,
128 cris_sdram_freq_notifier(struct notifier_block *nb, unsigned long val, in cris_sdram_freq_notifier() argument
/arch/cris/arch-v32/mach-a3/
Dcpufreq.c10 cris_sdram_freq_notifier(struct notifier_block *nb, unsigned long val,
134 cris_sdram_freq_notifier(struct notifier_block *nb, unsigned long val, in cris_sdram_freq_notifier() argument
/arch/arm/plat-omap/
Dmailbox.c323 struct omap_mbox *omap_mbox_get(const char *name, struct notifier_block *nb) in omap_mbox_get() argument
345 if (nb) in omap_mbox_get()
346 blocking_notifier_chain_register(&mbox->notifier, nb); in omap_mbox_get()
352 void omap_mbox_put(struct omap_mbox *mbox, struct notifier_block *nb) in omap_mbox_put() argument
354 blocking_notifier_chain_unregister(&mbox->notifier, nb); in omap_mbox_put()
/arch/x86/lib/
Dinsn.c75 int i, nb; in insn_get_prefixes() local
80 nb = 0; in insn_get_prefixes()
86 for (i = 0; i < nb; i++) in insn_get_prefixes()
89 if (nb == 4) in insn_get_prefixes()
92 prefixes->bytes[nb++] = b; in insn_get_prefixes()
115 for (i = 0; i < nb; i++) in insn_get_prefixes()
/arch/mips/kernel/cpufreq/
Dloongson2_cpufreq.c30 static int loongson2_cpu_freq_notifier(struct notifier_block *nb,
37 static int loongson2_cpu_freq_notifier(struct notifier_block *nb, in loongson2_cpu_freq_notifier() argument
/arch/powerpc/platforms/512x/
Dpdm360ng.c76 static int pdm360ng_touchscreen_notifier_call(struct notifier_block *nb, in pdm360ng_touchscreen_notifier_call() argument

123