Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 144) sorted by relevance

123456

/arch/x86/include/asm/
Dinat.h112 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument
114 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
115 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
118 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument
120 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix()
123 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument
125 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix()
128 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument
130 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
133 static inline int inat_last_prefix_id(insn_attr_t attr) in inat_last_prefix_id() argument
[all …]
/arch/sparc/kernel/
Dsysfs.c20 struct device_attribute *attr, char *buf) \
61 &dev_attr_immu_tsb_hits_ctx0_8k_tte.attr,
62 &dev_attr_immu_tsb_ticks_ctx0_8k_tte.attr,
63 &dev_attr_immu_tsb_hits_ctx0_64k_tte.attr,
64 &dev_attr_immu_tsb_ticks_ctx0_64k_tte.attr,
65 &dev_attr_immu_tsb_hits_ctx0_4mb_tte.attr,
66 &dev_attr_immu_tsb_ticks_ctx0_4mb_tte.attr,
67 &dev_attr_immu_tsb_hits_ctx0_256mb_tte.attr,
68 &dev_attr_immu_tsb_ticks_ctx0_256mb_tte.attr,
69 &dev_attr_immu_tsb_hits_ctxnon0_8k_tte.attr,
[all …]
/arch/tile/kernel/
Dsysfs.c36 struct device_attribute *attr, in chip_width_show() argument
44 struct device_attribute *attr, in chip_height_show() argument
52 struct device_attribute *attr, in chip_serial_show() argument
60 struct device_attribute *attr, in chip_revision_show() argument
69 struct device_attribute *attr, in type_show() argument
78 struct device_attribute *attr, \
103 &dev_attr_board_part.attr,
104 &dev_attr_board_serial.attr,
105 &dev_attr_board_revision.attr,
106 &dev_attr_board_description.attr,
[all …]
/arch/powerpc/platforms/cell/
Dcbe_thermal.c64 .attr = { .name = __stringify(_name), .mode = _mode }, \
100 static ssize_t spu_show_temp(struct device *dev, struct device_attribute *attr, in spu_show_temp() argument
151 struct device_attribute *attr, char *buf) in spu_show_throttle_end() argument
157 struct device_attribute *attr, char *buf) in spu_show_throttle_begin() argument
163 struct device_attribute *attr, char *buf) in spu_show_throttle_full_stop() argument
169 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_end() argument
175 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_begin() argument
181 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_full_stop() argument
203 struct device_attribute *attr, char *buf) in ppe_show_temp0() argument
210 struct device_attribute *attr, char *buf) in ppe_show_temp1() argument
[all …]
/arch/x86/lib/
Dinsn.c77 insn_attr_t attr; in insn_get_prefixes() local
87 attr = inat_get_opcode_attribute(b); in insn_get_prefixes()
88 while (inat_is_legacy_prefix(attr)) { in insn_get_prefixes()
97 if (inat_is_address_size_prefix(attr)) { in insn_get_prefixes()
103 } else if (inat_is_operand_size_prefix(attr)) { in insn_get_prefixes()
112 attr = inat_get_opcode_attribute(b); in insn_get_prefixes()
129 attr = inat_get_opcode_attribute(b); in insn_get_prefixes()
130 if (inat_is_rex_prefix(attr)) { in insn_get_prefixes()
143 attr = inat_get_opcode_attribute(b); in insn_get_prefixes()
144 if (inat_is_vex_prefix(attr)) { in insn_get_prefixes()
[all …]
/arch/alpha/kernel/
Dpci-sysfs.c65 struct bin_attribute *attr, in pci_mmap_resource() argument
70 struct resource *res = attr->private; in pci_mmap_resource()
95 struct bin_attribute *attr, in pci_mmap_resource_sparse() argument
98 return pci_mmap_resource(kobj, attr, vma, 1); in pci_mmap_resource_sparse()
102 struct bin_attribute *attr, in pci_mmap_resource_dense() argument
105 return pci_mmap_resource(kobj, attr, vma, 0); in pci_mmap_resource_dense()
164 res_attr->attr.name = name; in pci_create_one_attr()
165 res_attr->attr.mode = S_IRUSR | S_IWUSR; in pci_create_one_attr()
176 struct bin_attribute *attr; in pci_create_attr() local
205 attr = kzalloc(sizeof(*attr) * res_count + nlen1 + nlen2, GFP_ATOMIC); in pci_create_attr()
[all …]
/arch/ia64/kernel/
Derr_inject.c58 show_##name(struct device *dev, struct device_attribute *attr, \
67 store_##name(struct device *dev, struct device_attribute *attr, \
81 store_call_start(struct device *dev, struct device_attribute *attr, in show()
130 show_virtual_to_phys(struct device *dev, struct device_attribute *attr, in store()
138 store_virtual_to_phys(struct device *dev, struct device_attribute *attr, in store_virtual_to_phys() argument
163 struct device_attribute *attr, char *buf) in store()
175 struct device_attribute *attr, in store_err_data_buffer() argument
212 &dev_attr_call_start.attr,
213 &dev_attr_virtual_to_phys.attr,
214 &dev_attr_err_type_info.attr,
[all …]
/arch/powerpc/kernel/
Dhw_breakpoint.c152 if (bp->attr.bp_type & HW_BREAKPOINT_R) in arch_validate_hwbkpt_settings()
154 if (bp->attr.bp_type & HW_BREAKPOINT_W) in arch_validate_hwbkpt_settings()
159 if (!(bp->attr.exclude_user)) in arch_validate_hwbkpt_settings()
161 if (!(bp->attr.exclude_kernel)) in arch_validate_hwbkpt_settings()
163 if (!(bp->attr.exclude_hv)) in arch_validate_hwbkpt_settings()
165 info->address = bp->attr.bp_addr; in arch_validate_hwbkpt_settings()
166 info->len = bp->attr.bp_len; in arch_validate_hwbkpt_settings()
178 if ((bp->attr.bp_addr >> 10) != in arch_validate_hwbkpt_settings()
179 ((bp->attr.bp_addr + bp->attr.bp_len) >> 10)) in arch_validate_hwbkpt_settings()
253 if (!((bp->attr.bp_addr <= dar) && in hw_breakpoint_handler()
[all …]
Dcacheinfo.c494 static ssize_t cache_index_show(struct kobject *k, struct attribute *attr, char *buf) in cache_index_show() argument
498 kobj_attr = container_of(attr, struct kobj_attribute, attr); in cache_index_show()
512 static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in size_show() argument
529 static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in line_size_show() argument
545 static ssize_t nr_sets_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in nr_sets_show() argument
561 static ssize_t associativity_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in associativity_show() argument
577 static ssize_t type_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in type_show() argument
589 static ssize_t level_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in level_show() argument
603 static ssize_t shared_cpu_map_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in shared_cpu_map_show() argument
630 &cache_type_attr.attr,
[all …]
/arch/s390/kernel/
Dipl.c187 struct kobj_attribute *attr, \
197 struct kobj_attribute *attr, \
204 struct kobj_attribute *attr, \
220 struct kobj_attribute *attr, \
226 struct kobj_attribute *attr, \
272 static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr, in ipl_type_show() argument
326 struct kobj_attribute *attr, char *page) in ipl_vm_parm_show() argument
393 struct kobj_attribute *attr, char *page) in sys_ipl_device_show() argument
412 struct bin_attribute *attr, char *buf, in ipl_parameter_read() argument
420 .attr = {
[all …]
Dtime.c1143 struct device_attribute *attr, in etr_stepping_port_show() argument
1152 struct device_attribute *attr, in etr_stepping_mode_show() argument
1180 struct device_attribute *attr, in etr_online_show() argument
1190 struct device_attribute *attr, in etr_online_store() argument
1230 struct device_attribute *attr, in etr_stepping_control_show() argument
1240 struct device_attribute *attr, char *buf) in etr_mode_code_show() argument
1252 struct device_attribute *attr, char *buf) in etr_untuned_show() argument
1264 struct device_attribute *attr, char *buf) in etr_network_id_show() argument
1276 struct device_attribute *attr, char *buf) in etr_id_show() argument
1288 struct device_attribute *attr, char *buf) in etr_port_number_show() argument
[all …]
Dcache.c213 struct attribute *attr, char *buf) in cache_index_show() argument
217 kobj_attr = container_of(attr, struct kobj_attribute, attr); in cache_index_show()
223 struct kobj_attribute *attr, \
255 struct kobj_attribute *attr, char *buf) in shared_cpu_map_show() argument
263 struct kobj_attribute *attr, char *buf) in shared_cpu_list_show() argument
271 &cache_type_attr.attr,
272 &cache_size_attr.attr,
273 &cache_number_of_sets_attr.attr,
274 &cache_ways_of_associativity_attr.attr,
275 &cache_level_attr.attr,
[all …]
/arch/ia64/mm/
Dioremap.c27 u64 attr; in early_ioremap() local
28 attr = kern_mem_attribute(phys_addr, size); in early_ioremap()
29 if (attr & EFI_MEMORY_WB) in early_ioremap()
41 u64 attr; in ioremap() local
50 attr = kern_mem_attribute(phys_addr, size); in ioremap()
51 if (attr & EFI_MEMORY_WB) in ioremap()
53 else if (attr & EFI_MEMORY_UC) in ioremap()
/arch/x86/kernel/cpu/
Dperf_event_intel_uncore.c252 &format_attr_event.attr,
253 &format_attr_umask.attr,
254 &format_attr_edge.attr,
255 &format_attr_inv.attr,
256 &format_attr_thresh8.attr,
261 &format_attr_event.attr,
262 &format_attr_umask.attr,
263 &format_attr_edge.attr,
264 &format_attr_inv.attr,
265 &format_attr_thresh5.attr,
[all …]
/arch/powerpc/platforms/pseries/
Dpower.c32 struct kobj_attribute *attr, char *buf) in auto_poweron_show() argument
38 struct kobj_attribute *attr, in auto_poweron_store() argument
59 &auto_poweron_attr.attr,
78 return (sysfs_create_file(power_kobj, &auto_poweron_attr.attr)); in apo_pm_init()
/arch/x86/platform/uv/
Duv_sysfs.c29 struct kobj_attribute *attr, char *buf) in partition_id_show() argument
35 struct kobj_attribute *attr, char *buf) in coherence_id_show() argument
61 ret = sysfs_create_file(sgi_uv_kobj, &partition_id_attr.attr); in sgi_uv_sysfs_init()
67 ret = sysfs_create_file(sgi_uv_kobj, &coherence_id_attr.attr); in sgi_uv_sysfs_init()
/arch/mips/alchemy/devboards/
Dpm.c120 #define ATTRCMP(x) (0 == strcmp(attr->attr.name, #x))
123 struct kobj_attribute *attr, in db1x_pmattr_show() argument
141 idx = (attr->attr.name)[4] - '0'; in db1x_pmattr_show()
153 struct kobj_attribute *attr, in db1x_pmattr_store() argument
176 tmp = (attr->attr.name)[4] - '0'; in db1x_pmattr_store()
214 #define ATTR_LIST(x) & x ## _attribute.attr
/arch/x86/platform/ts5500/
Dts5500.c151 struct device_attribute *attr, char *buf) in ts5500_show_id() argument
159 struct device_attribute *attr, in ts5500_show_jumpers() argument
169 struct device_attribute *attr, \
191 &dev_attr_id.attr,
192 &dev_attr_jumpers.attr,
193 &dev_attr_sram.attr,
194 &dev_attr_rs485.attr,
195 &dev_attr_adc.attr,
196 &dev_attr_ereset.attr,
197 &dev_attr_itr.attr,
/arch/sh/kernel/
Dptrace_32.c68 struct perf_event_attr attr; in ptrace_triggered() local
74 attr = bp->attr; in ptrace_triggered()
75 attr.disabled = true; in ptrace_triggered()
76 modify_user_hw_breakpoint(bp, &attr); in ptrace_triggered()
83 struct perf_event_attr attr; in set_single_step() local
87 ptrace_breakpoint_init(&attr); in set_single_step()
89 attr.bp_addr = addr; in set_single_step()
90 attr.bp_len = HW_BREAKPOINT_LEN_2; in set_single_step()
91 attr.bp_type = HW_BREAKPOINT_R; in set_single_step()
93 bp = register_user_hw_breakpoint(&attr, ptrace_triggered, in set_single_step()
[all …]
/arch/powerpc/perf/
Dpower8-pmu.c489 &format_attr_event.attr,
490 &format_attr_pmcxsel.attr,
491 &format_attr_mark.attr,
492 &format_attr_combine.attr,
493 &format_attr_unit.attr,
494 &format_attr_pmc.attr,
495 &format_attr_cache_sel.attr,
496 &format_attr_sample_mode.attr,
497 &format_attr_thresh_sel.attr,
498 &format_attr_thresh_stop.attr,
[all …]
/arch/sh/drivers/dma/
Ddma-sysfs.c27 struct device_attribute *attr, char *buf) in dma_show_devices() argument
62 struct device_attribute *attr, char *buf) in dma_show_dev_id() argument
69 struct device_attribute *attr, in dma_store_dev_id() argument
80 struct device_attribute *attr, in dma_store_config() argument
95 struct device_attribute *attr, char *buf) in dma_show_mode() argument
102 struct device_attribute *attr, in dma_store_mode() argument
114 struct device_attribute *attr, char *buf)\
/arch/arm/kernel/
Detm.c544 struct kobj_attribute *attr, in trace_running_show() argument
551 struct kobj_attribute *attr, in trace_running_store() argument
574 struct kobj_attribute *attr, in trace_info_show() argument
629 struct kobj_attribute *attr, in trace_mode_show() argument
638 struct kobj_attribute *attr, in trace_mode_store() argument
662 struct kobj_attribute *attr, in trace_contextid_size_show() argument
670 struct kobj_attribute *attr, in trace_contextid_size_store() argument
693 struct kobj_attribute *attr, in trace_branch_output_show() argument
700 struct kobj_attribute *attr, in trace_branch_output_store() argument
726 struct kobj_attribute *attr, in trace_return_stack_show() argument
[all …]
/arch/blackfin/kernel/
Dperf_event.c384 struct perf_event_attr *attr = &event->attr; in bfin_pmu_event_init() local
389 if (attr->exclude_hv || attr->exclude_idle) in bfin_pmu_event_init()
401 switch (attr->type) { in bfin_pmu_event_init()
403 config = PFMON(0, attr->config & PFMON_MASK) | in bfin_pmu_event_init()
404 PFCNT(0, !(attr->config & 0x100)); in bfin_pmu_event_init()
407 ret = hw_perf_cache_event(attr->config, &config); in bfin_pmu_event_init()
410 if (attr->config >= ARRAY_SIZE(event_map)) in bfin_pmu_event_init()
413 config = event_map[attr->config]; in bfin_pmu_event_init()
420 if (!attr->exclude_kernel) in bfin_pmu_event_init()
422 if (!attr->exclude_user) in bfin_pmu_event_init()
/arch/s390/pci/
Dpci_sysfs.c15 static ssize_t show_fid(struct device *dev, struct device_attribute *attr, in show_fid() argument
25 static ssize_t show_fh(struct device *dev, struct device_attribute *attr, in show_fh() argument
35 static ssize_t show_pchid(struct device *dev, struct device_attribute *attr, in show_pchid() argument
45 static ssize_t show_pfgid(struct device *dev, struct device_attribute *attr, in show_pfgid() argument
/arch/mips/txx9/generic/
D7segled.c41 struct device_attribute *attr, in ascii_store() argument
50 struct device_attribute *attr, in raw_store() argument
62 struct device_attribute *attr, in map_seg7_show() argument
70 struct device_attribute *attr, in map_seg7_store() argument

123456