attr 20 arch/alpha/kernel/bugs.c struct device_attribute *attr, char *buf) attr 29 arch/alpha/kernel/bugs.c struct device_attribute *attr, char *buf) attr 38 arch/alpha/kernel/bugs.c struct device_attribute *attr, char *buf) attr 65 arch/alpha/kernel/pci-sysfs.c struct bin_attribute *attr, attr 69 arch/alpha/kernel/pci-sysfs.c struct resource *res = attr->private; attr 94 arch/alpha/kernel/pci-sysfs.c struct bin_attribute *attr, attr 97 arch/alpha/kernel/pci-sysfs.c return pci_mmap_resource(kobj, attr, vma, 1); attr 101 arch/alpha/kernel/pci-sysfs.c struct bin_attribute *attr, attr 104 arch/alpha/kernel/pci-sysfs.c return pci_mmap_resource(kobj, attr, vma, 0); attr 163 arch/alpha/kernel/pci-sysfs.c res_attr->attr.name = name; attr 164 arch/alpha/kernel/pci-sysfs.c res_attr->attr.mode = S_IRUSR | S_IWUSR; attr 175 arch/alpha/kernel/pci-sysfs.c struct bin_attribute *attr; attr 204 arch/alpha/kernel/pci-sysfs.c attr = kzalloc(sizeof(*attr) * res_count + nlen1 + nlen2, GFP_ATOMIC); attr 205 arch/alpha/kernel/pci-sysfs.c if (!attr) attr 209 arch/alpha/kernel/pci-sysfs.c attr_name = (char *)(attr + res_count); attr 210 arch/alpha/kernel/pci-sysfs.c pdev->res_attr[num] = attr; attr 211 arch/alpha/kernel/pci-sysfs.c retval = pci_create_one_attr(pdev, num, attr_name, suffix, attr, attr 218 arch/alpha/kernel/pci-sysfs.c attr++; attr 219 arch/alpha/kernel/pci-sysfs.c pdev->res_attr_wc[num] = attr; attr 220 arch/alpha/kernel/pci-sysfs.c return pci_create_one_attr(pdev, num, attr_name, "_dense", attr, 0); attr 312 arch/alpha/kernel/pci-sysfs.c bus->legacy_mem->attr.name = "legacy_mem_sparse"; attr 315 arch/alpha/kernel/pci-sysfs.c bus->legacy_io->attr.name = "legacy_io_sparse"; attr 604 arch/alpha/kernel/perf_event.c struct perf_event_attr *attr = &event->attr; attr 615 arch/alpha/kernel/perf_event.c if (attr->type == PERF_TYPE_HARDWARE) { attr 616 arch/alpha/kernel/perf_event.c if (attr->config >= alpha_pmu->max_events) attr 618 arch/alpha/kernel/perf_event.c ev = alpha_pmu->event_map[attr->config]; attr 619 arch/alpha/kernel/perf_event.c } else if (attr->type == PERF_TYPE_HW_CACHE) { attr 621 arch/alpha/kernel/perf_event.c } else if (attr->type == PERF_TYPE_RAW) { attr 622 arch/alpha/kernel/perf_event.c if (!alpha_pmu->raw_event_valid(attr->config)) attr 624 arch/alpha/kernel/perf_event.c ev = attr->config; attr 698 arch/alpha/kernel/perf_event.c switch (event->attr.type) { attr 2334 arch/alpha/kernel/smc37c669.c ip->attr = ATTR$M_WRITE | ATTR$M_READ; attr 40 arch/arc/kernel/perf_event.c struct perf_pmu_events_attr *attr; attr 182 arch/arc/kernel/perf_event.c if (event->attr.exclude_user) attr 186 arch/arc/kernel/perf_event.c if (event->attr.exclude_kernel) attr 190 arch/arc/kernel/perf_event.c switch (event->attr.type) { attr 192 arch/arc/kernel/perf_event.c if (event->attr.config >= PERF_COUNT_HW_MAX) attr 194 arch/arc/kernel/perf_event.c if (arc_pmu->ev_hw_idx[event->attr.config] < 0) attr 196 arch/arc/kernel/perf_event.c hwc->config |= arc_pmu->ev_hw_idx[event->attr.config]; attr 198 arch/arc/kernel/perf_event.c (int)event->attr.config, (int)hwc->config, attr 199 arch/arc/kernel/perf_event.c arc_pmu_ev_hw_map[event->attr.config]); attr 203 arch/arc/kernel/perf_event.c ret = arc_pmu_cache_event(event->attr.config); attr 212 arch/arc/kernel/perf_event.c if (event->attr.config >= arc_pmu->n_events) attr 215 arch/arc/kernel/perf_event.c hwc->config |= event->attr.config; attr 217 arch/arc/kernel/perf_event.c event->attr.config, attr 218 arch/arc/kernel/perf_event.c arc_pmu->raw_entry[event->attr.config].name); attr 475 arch/arc/kernel/perf_event.c &format_attr_event.attr, attr 485 arch/arc/kernel/perf_event.c struct device_attribute *attr, attr 490 arch/arc/kernel/perf_event.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 506 arch/arc/kernel/perf_event.c arc_pmu->attr[j].attr.attr.name = arc_pmu->raw_entry[j].name; attr 507 arch/arc/kernel/perf_event.c arc_pmu->attr[j].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(0444); attr 508 arch/arc/kernel/perf_event.c arc_pmu->attr[j].attr.show = arc_pmu_events_sysfs_show; attr 509 arch/arc/kernel/perf_event.c arc_pmu->attr[j].id = j; attr 510 arch/arc/kernel/perf_event.c arc_pmu->attrs[j] = &(arc_pmu->attr[j].attr.attr); attr 515 arch/arc/kernel/perf_event.c arc_pmu->attr = devm_kmalloc_array(dev, arc_pmu->n_events + 1, attr 516 arch/arc/kernel/perf_event.c sizeof(*arc_pmu->attr), GFP_KERNEL | __GFP_ZERO); attr 517 arch/arc/kernel/perf_event.c if (!arc_pmu->attr) attr 671 arch/arm/common/bL_switcher.c struct kobj_attribute *attr, char *buf) attr 677 arch/arm/common/bL_switcher.c struct kobj_attribute *attr, const char *buf, size_t count) attr 697 arch/arm/common/bL_switcher.c struct kobj_attribute *attr, const char *buf, size_t count) attr 711 arch/arm/common/bL_switcher.c &bL_switcher_active_attr.attr, attr 712 arch/arm/common/bL_switcher.c &bL_switcher_trace_trigger_attr.attr, attr 85 arch/arm/common/dmabounce.c static ssize_t dmabounce_show(struct device *dev, struct device_attribute *attr, attr 58 arch/arm/include/asm/efi.h #define efi_table_attr(table, attr, instance) \ attr 59 arch/arm/include/asm/efi.h ((table##_t *)instance)->attr attr 123 arch/arm/include/asm/hw_breakpoint.h const struct perf_event_attr *attr, attr 343 arch/arm/include/asm/kvm_host.h struct kvm_device_attr *attr); attr 345 arch/arm/include/asm/kvm_host.h struct kvm_device_attr *attr); attr 347 arch/arm/include/asm/kvm_host.h struct kvm_device_attr *attr); attr 70 arch/arm/include/asm/mpu.h #define PMSAv8_MAIR(attr, mt) ((attr) << ((mt) * 8)) attr 510 arch/arm/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 514 arch/arm/kernel/hw_breakpoint.c switch (attr->bp_type) { attr 532 arch/arm/kernel/hw_breakpoint.c switch (attr->bp_len) { attr 564 arch/arm/kernel/hw_breakpoint.c hw->address = attr->bp_addr; attr 572 arch/arm/kernel/hw_breakpoint.c hw->ctrl.enabled = !attr->disabled; attr 584 arch/arm/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 595 arch/arm/kernel/hw_breakpoint.c ret = arch_build_bp_info(bp, attr, hw); attr 711 arch/arm/kernel/hw_breakpoint.c info->trigger = wp->attr.bp_addr; attr 538 arch/arm/kernel/perf_event_v7.c &format_attr_event.attr, attr 573 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_sw_incr.attr.attr, attr 574 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1i_cache_refill.attr.attr, attr 575 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1i_tlb_refill.attr.attr, attr 576 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1d_cache_refill.attr.attr, attr 577 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1d_cache.attr.attr, attr 578 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1d_tlb_refill.attr.attr, attr 579 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_ld_retired.attr.attr, attr 580 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_st_retired.attr.attr, attr 581 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_inst_retired.attr.attr, attr 582 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_exc_taken.attr.attr, attr 583 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_exc_return.attr.attr, attr 584 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_cid_write_retired.attr.attr, attr 585 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_pc_write_retired.attr.attr, attr 586 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_immed_retired.attr.attr, attr 587 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_return_retired.attr.attr, attr 588 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_unaligned_ldst_retired.attr.attr, attr 589 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_mis_pred.attr.attr, attr 590 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_cpu_cycles.attr.attr, attr 591 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_pred.attr.attr, attr 613 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_sw_incr.attr.attr, attr 614 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1i_cache_refill.attr.attr, attr 615 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1i_tlb_refill.attr.attr, attr 616 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1d_cache_refill.attr.attr, attr 617 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1d_cache.attr.attr, attr 618 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1d_tlb_refill.attr.attr, attr 619 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_ld_retired.attr.attr, attr 620 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_st_retired.attr.attr, attr 621 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_inst_retired.attr.attr, attr 622 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_exc_taken.attr.attr, attr 623 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_exc_return.attr.attr, attr 624 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_cid_write_retired.attr.attr, attr 625 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_pc_write_retired.attr.attr, attr 626 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_immed_retired.attr.attr, attr 627 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_return_retired.attr.attr, attr 628 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_unaligned_ldst_retired.attr.attr, attr 629 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_mis_pred.attr.attr, attr 630 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_cpu_cycles.attr.attr, attr 631 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_br_pred.attr.attr, attr 632 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_mem_access.attr.attr, attr 633 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1i_cache.attr.attr, attr 634 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l1d_cache_wb.attr.attr, attr 635 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l2d_cache.attr.attr, attr 636 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l2d_cache_refill.attr.attr, attr 637 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_l2d_cache_wb.attr.attr, attr 638 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_bus_access.attr.attr, attr 639 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_memory_error.attr.attr, attr 640 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_inst_spec.attr.attr, attr 641 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_ttbr_write_retired.attr.attr, attr 642 arch/arm/kernel/perf_event_v7.c &armv7_event_attr_bus_cycles.attr.attr, attr 1071 arch/arm/kernel/perf_event_v7.c struct perf_event_attr *attr) attr 1075 arch/arm/kernel/perf_event_v7.c if (attr->exclude_idle) attr 1077 arch/arm/kernel/perf_event_v7.c if (attr->exclude_user) attr 1079 arch/arm/kernel/perf_event_v7.c if (attr->exclude_kernel) attr 1081 arch/arm/kernel/perf_event_v7.c if (!attr->exclude_hv) attr 444 arch/arm/kernel/ptrace.c struct perf_event_attr attr; attr 446 arch/arm/kernel/ptrace.c ptrace_breakpoint_init(&attr); attr 449 arch/arm/kernel/ptrace.c attr.bp_addr = 0; attr 450 arch/arm/kernel/ptrace.c attr.bp_len = HW_BREAKPOINT_LEN_4; attr 451 arch/arm/kernel/ptrace.c attr.bp_type = type; attr 452 arch/arm/kernel/ptrace.c attr.disabled = 1; attr 454 arch/arm/kernel/ptrace.c return register_user_hw_breakpoint(&attr, ptrace_hbptriggered, NULL, attr 491 arch/arm/kernel/ptrace.c reg = bp->attr.bp_addr; attr 511 arch/arm/kernel/ptrace.c struct perf_event_attr attr; attr 541 arch/arm/kernel/ptrace.c attr = bp->attr; attr 545 arch/arm/kernel/ptrace.c attr.bp_addr = user_val; attr 558 arch/arm/kernel/ptrace.c attr.bp_len = gen_len; attr 559 arch/arm/kernel/ptrace.c attr.bp_type = gen_type; attr 560 arch/arm/kernel/ptrace.c attr.disabled = !ctrl.enabled; attr 563 arch/arm/kernel/ptrace.c ret = modify_user_hw_breakpoint(bp, &attr); attr 330 arch/arm/kvm/guest.c struct kvm_device_attr *attr) attr 334 arch/arm/kvm/guest.c switch (attr->group) { attr 336 arch/arm/kvm/guest.c ret = kvm_arm_timer_set_attr(vcpu, attr); attr 347 arch/arm/kvm/guest.c struct kvm_device_attr *attr) attr 351 arch/arm/kvm/guest.c switch (attr->group) { attr 353 arch/arm/kvm/guest.c ret = kvm_arm_timer_get_attr(vcpu, attr); attr 364 arch/arm/kvm/guest.c struct kvm_device_attr *attr) attr 368 arch/arm/kvm/guest.c switch (attr->group) { attr 370 arch/arm/kvm/guest.c ret = kvm_arm_timer_has_attr(vcpu, attr); attr 123 arch/arm/mach-imx/mmdc.c struct device_attribute *attr, char *buf) attr 134 arch/arm/mach-imx/mmdc.c &mmdc_pmu_cpumask_attr.attr, attr 143 arch/arm/mach-imx/mmdc.c &mmdc_pmu_total_cycles.attr.attr, attr 144 arch/arm/mach-imx/mmdc.c &mmdc_pmu_busy_cycles.attr.attr, attr 145 arch/arm/mach-imx/mmdc.c &mmdc_pmu_read_accesses.attr.attr, attr 146 arch/arm/mach-imx/mmdc.c &mmdc_pmu_write_accesses.attr.attr, attr 147 arch/arm/mach-imx/mmdc.c &mmdc_pmu_read_bytes.attr.attr, attr 148 arch/arm/mach-imx/mmdc.c &mmdc_pmu_read_bytes_unit.attr.attr, attr 149 arch/arm/mach-imx/mmdc.c &mmdc_pmu_read_bytes_scale.attr.attr, attr 150 arch/arm/mach-imx/mmdc.c &mmdc_pmu_write_bytes.attr.attr, attr 151 arch/arm/mach-imx/mmdc.c &mmdc_pmu_write_bytes_unit.attr.attr, attr 152 arch/arm/mach-imx/mmdc.c &mmdc_pmu_write_bytes_scale.attr.attr, attr 165 arch/arm/mach-imx/mmdc.c &format_attr_event.attr, attr 166 arch/arm/mach-imx/mmdc.c &format_attr_axi_id.attr, attr 236 arch/arm/mach-imx/mmdc.c int cfg = event->attr.config; attr 260 arch/arm/mach-imx/mmdc.c set_bit(leader->attr.config, &counter_mask); attr 278 arch/arm/mach-imx/mmdc.c int cfg = event->attr.config; attr 280 arch/arm/mach-imx/mmdc.c if (event->attr.type != event->pmu->type) attr 291 arch/arm/mach-imx/mmdc.c if (event->attr.sample_period) attr 313 arch/arm/mach-imx/mmdc.c event->attr.config); attr 346 arch/arm/mach-imx/mmdc.c val = event->attr.config1; attr 363 arch/arm/mach-imx/mmdc.c int cfg = event->attr.config; attr 398 arch/arm/mach-imx/mmdc.c int cfg = event->attr.config; attr 77 arch/arm/mach-omap1/pm.c static ssize_t idle_show(struct kobject *kobj, struct kobj_attribute *attr, attr 83 arch/arm/mach-omap1/pm.c static ssize_t idle_store(struct kobject *kobj, struct kobj_attribute *attr, attr 683 arch/arm/mach-omap1/pm.c error = sysfs_create_file(power_kobj, &sleep_while_idle_attr.attr); attr 779 arch/arm/mach-omap2/id.c struct device_attribute *attr, attr 462 arch/arm/mach-orion5x/ts78xx-setup.c struct kobj_attribute *attr, char *buf) attr 471 arch/arm/mach-orion5x/ts78xx-setup.c struct kobj_attribute *attr, const char *buf, size_t n) attr 563 arch/arm/mach-orion5x/ts78xx-setup.c ret = sysfs_create_file(firmware_kobj, &ts78xx_fpga_attr.attr); attr 791 arch/arm/mach-pxa/sharpsl_pm.c static ssize_t battery_percentage_show(struct device *dev, struct device_attribute *attr, char *buf) attr 796 arch/arm/mach-pxa/sharpsl_pm.c static ssize_t battery_voltage_show(struct device *dev, struct device_attribute *attr, char *buf) attr 753 arch/arm/mach-rpc/ecard.c static ssize_t irq_show(struct device *dev, struct device_attribute *attr, char *buf) attr 760 arch/arm/mach-rpc/ecard.c static ssize_t dma_show(struct device *dev, struct device_attribute *attr, char *buf) attr 767 arch/arm/mach-rpc/ecard.c static ssize_t resource_show(struct device *dev, struct device_attribute *attr, char *buf) attr 783 arch/arm/mach-rpc/ecard.c static ssize_t vendor_show(struct device *dev, struct device_attribute *attr, char *buf) attr 790 arch/arm/mach-rpc/ecard.c static ssize_t device_show(struct device *dev, struct device_attribute *attr, char *buf) attr 797 arch/arm/mach-rpc/ecard.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 805 arch/arm/mach-rpc/ecard.c &dev_attr_device.attr, attr 806 arch/arm/mach-rpc/ecard.c &dev_attr_dma.attr, attr 807 arch/arm/mach-rpc/ecard.c &dev_attr_irq.attr, attr 808 arch/arm/mach-rpc/ecard.c &dev_attr_resource.attr, attr 809 arch/arm/mach-rpc/ecard.c &dev_attr_type.attr, attr 810 arch/arm/mach-rpc/ecard.c &dev_attr_vendor.attr, attr 298 arch/arm/mm/cache-l2x0-pmu.c if (event->attr.type != l2x0_pmu->type) attr 308 arch/arm/mm/cache-l2x0-pmu.c if (event->attr.config & ~L2X0_EVENT_CNT_CFG_SRC_MASK) attr 311 arch/arm/mm/cache-l2x0-pmu.c hw->config_base = event->attr.config; attr 322 arch/arm/mm/cache-l2x0-pmu.c struct device_attribute attr; attr 329 arch/arm/mm/cache-l2x0-pmu.c .attr = __ATTR(_name, S_IRUGO, l2x0_pmu_event_show, NULL), \ attr 332 arch/arm/mm/cache-l2x0-pmu.c }})[0].attr.attr) attr 341 arch/arm/mm/cache-l2x0-pmu.c struct device_attribute *attr, char *buf) attr 345 arch/arm/mm/cache-l2x0-pmu.c lattr = container_of(attr, typeof(*lattr), attr); attr 350 arch/arm/mm/cache-l2x0-pmu.c struct attribute *attr, attr 357 arch/arm/mm/cache-l2x0-pmu.c lattr = container_of(attr, typeof(*lattr), attr.attr); attr 360 arch/arm/mm/cache-l2x0-pmu.c return attr->mode; attr 391 arch/arm/mm/cache-l2x0-pmu.c struct device_attribute *attr, char *buf) attr 400 arch/arm/mm/cache-l2x0-pmu.c &l2x0_pmu_cpumask_attr.attr, attr 40 arch/arm/plat-orion/include/plat/addr-map.h const u8 attr; attr 50 arch/arm/plat-orion/include/plat/addr-map.h const u8 attr, const int remap); attr 101 arch/arm64/include/asm/efi.h #define efi_table_attr(table, attr, instance) \ attr 102 arch/arm64/include/asm/efi.h ((table##_t *)instance)->attr attr 117 arch/arm64/include/asm/hw_breakpoint.h const struct perf_event_attr *attr, attr 557 arch/arm64/include/asm/kvm_host.h struct kvm_device_attr *attr); attr 559 arch/arm64/include/asm/kvm_host.h struct kvm_device_attr *attr); attr 561 arch/arm64/include/asm/kvm_host.h struct kvm_device_attr *attr); attr 571 arch/arm64/include/asm/kvm_host.h static inline bool kvm_pmu_counter_deferred(struct perf_event_attr *attr) attr 573 arch/arm64/include/asm/kvm_host.h return (!has_vhe() && attr->exclude_host); attr 582 arch/arm64/include/asm/kvm_host.h void kvm_set_pmu_events(u32 set, struct perf_event_attr *attr); attr 588 arch/arm64/include/asm/kvm_host.h static inline void kvm_set_pmu_events(u32 set, struct perf_event_attr *attr) {} attr 59 arch/arm64/include/asm/pgtable-prot.h #define PAGE_S2_MEMATTR(attr) \ attr 63 arch/arm64/include/asm/pgtable-prot.h __val = PTE_S2_MEMATTR(MT_S2_FWB_ ## attr); \ attr 65 arch/arm64/include/asm/pgtable-prot.h __val = PTE_S2_MEMATTR(MT_S2_ ## attr); \ attr 251 arch/arm64/kernel/acpi.c u64 attr; attr 253 arch/arm64/kernel/acpi.c attr = efi_mem_attributes(addr); attr 254 arch/arm64/kernel/acpi.c if (attr & EFI_MEMORY_WB) attr 256 arch/arm64/kernel/acpi.c if (attr & EFI_MEMORY_WT) attr 258 arch/arm64/kernel/acpi.c if (attr & EFI_MEMORY_WC) attr 965 arch/arm64/kernel/cpu_errata.c ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, attr 971 arch/arm64/kernel/cpu_errata.c ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, attr 986 arch/arm64/kernel/cpu_errata.c struct device_attribute *attr, char *buf) attr 2225 arch/arm64/kernel/cpufeature.c ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, attr 226 arch/arm64/kernel/cpuinfo.c struct kobj_attribute *attr, char *buf) \ attr 241 arch/arm64/kernel/cpuinfo.c &cpuregs_attr_midr_el1.attr, attr 242 arch/arm64/kernel/cpuinfo.c &cpuregs_attr_revidr_el1.attr, attr 22 arch/arm64/kernel/efi.c u64 attr = md->attribute; attr 38 arch/arm64/kernel/efi.c if ((attr & (EFI_MEMORY_XP | EFI_MEMORY_RO)) == attr 43 arch/arm64/kernel/efi.c if (attr & EFI_MEMORY_RO) attr 47 arch/arm64/kernel/efi.c if (((attr & (EFI_MEMORY_RP | EFI_MEMORY_WP | EFI_MEMORY_XP)) == attr 413 arch/arm64/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 417 arch/arm64/kernel/hw_breakpoint.c switch (attr->bp_type) { attr 435 arch/arm64/kernel/hw_breakpoint.c switch (attr->bp_len) { attr 486 arch/arm64/kernel/hw_breakpoint.c hw->address = attr->bp_addr; attr 499 arch/arm64/kernel/hw_breakpoint.c hw->ctrl.enabled = !attr->disabled; attr 508 arch/arm64/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 515 arch/arm64/kernel/hw_breakpoint.c ret = arch_build_bp_info(bp, attr, hw); attr 152 arch/arm64/kernel/perf_event.c struct device_attribute *attr, char *page) attr 156 arch/arm64/kernel/perf_event.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 228 arch/arm64/kernel/perf_event.c &armv8_event_attr_sw_incr.attr.attr, attr 229 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1i_cache_refill.attr.attr, attr 230 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1i_tlb_refill.attr.attr, attr 231 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1d_cache_refill.attr.attr, attr 232 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1d_cache.attr.attr, attr 233 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1d_tlb_refill.attr.attr, attr 234 arch/arm64/kernel/perf_event.c &armv8_event_attr_ld_retired.attr.attr, attr 235 arch/arm64/kernel/perf_event.c &armv8_event_attr_st_retired.attr.attr, attr 236 arch/arm64/kernel/perf_event.c &armv8_event_attr_inst_retired.attr.attr, attr 237 arch/arm64/kernel/perf_event.c &armv8_event_attr_exc_taken.attr.attr, attr 238 arch/arm64/kernel/perf_event.c &armv8_event_attr_exc_return.attr.attr, attr 239 arch/arm64/kernel/perf_event.c &armv8_event_attr_cid_write_retired.attr.attr, attr 240 arch/arm64/kernel/perf_event.c &armv8_event_attr_pc_write_retired.attr.attr, attr 241 arch/arm64/kernel/perf_event.c &armv8_event_attr_br_immed_retired.attr.attr, attr 242 arch/arm64/kernel/perf_event.c &armv8_event_attr_br_return_retired.attr.attr, attr 243 arch/arm64/kernel/perf_event.c &armv8_event_attr_unaligned_ldst_retired.attr.attr, attr 244 arch/arm64/kernel/perf_event.c &armv8_event_attr_br_mis_pred.attr.attr, attr 245 arch/arm64/kernel/perf_event.c &armv8_event_attr_cpu_cycles.attr.attr, attr 246 arch/arm64/kernel/perf_event.c &armv8_event_attr_br_pred.attr.attr, attr 247 arch/arm64/kernel/perf_event.c &armv8_event_attr_mem_access.attr.attr, attr 248 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1i_cache.attr.attr, attr 249 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1d_cache_wb.attr.attr, attr 250 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2d_cache.attr.attr, attr 251 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2d_cache_refill.attr.attr, attr 252 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2d_cache_wb.attr.attr, attr 253 arch/arm64/kernel/perf_event.c &armv8_event_attr_bus_access.attr.attr, attr 254 arch/arm64/kernel/perf_event.c &armv8_event_attr_memory_error.attr.attr, attr 255 arch/arm64/kernel/perf_event.c &armv8_event_attr_inst_spec.attr.attr, attr 256 arch/arm64/kernel/perf_event.c &armv8_event_attr_ttbr_write_retired.attr.attr, attr 257 arch/arm64/kernel/perf_event.c &armv8_event_attr_bus_cycles.attr.attr, attr 258 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1d_cache_allocate.attr.attr, attr 259 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2d_cache_allocate.attr.attr, attr 260 arch/arm64/kernel/perf_event.c &armv8_event_attr_br_retired.attr.attr, attr 261 arch/arm64/kernel/perf_event.c &armv8_event_attr_br_mis_pred_retired.attr.attr, attr 262 arch/arm64/kernel/perf_event.c &armv8_event_attr_stall_frontend.attr.attr, attr 263 arch/arm64/kernel/perf_event.c &armv8_event_attr_stall_backend.attr.attr, attr 264 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1d_tlb.attr.attr, attr 265 arch/arm64/kernel/perf_event.c &armv8_event_attr_l1i_tlb.attr.attr, attr 266 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2i_cache.attr.attr, attr 267 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2i_cache_refill.attr.attr, attr 268 arch/arm64/kernel/perf_event.c &armv8_event_attr_l3d_cache_allocate.attr.attr, attr 269 arch/arm64/kernel/perf_event.c &armv8_event_attr_l3d_cache_refill.attr.attr, attr 270 arch/arm64/kernel/perf_event.c &armv8_event_attr_l3d_cache.attr.attr, attr 271 arch/arm64/kernel/perf_event.c &armv8_event_attr_l3d_cache_wb.attr.attr, attr 272 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2d_tlb_refill.attr.attr, attr 273 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2i_tlb_refill.attr.attr, attr 274 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2d_tlb.attr.attr, attr 275 arch/arm64/kernel/perf_event.c &armv8_event_attr_l2i_tlb.attr.attr, attr 276 arch/arm64/kernel/perf_event.c &armv8_event_attr_remote_access.attr.attr, attr 277 arch/arm64/kernel/perf_event.c &armv8_event_attr_ll_cache.attr.attr, attr 278 arch/arm64/kernel/perf_event.c &armv8_event_attr_ll_cache_miss.attr.attr, attr 279 arch/arm64/kernel/perf_event.c &armv8_event_attr_dtlb_walk.attr.attr, attr 280 arch/arm64/kernel/perf_event.c &armv8_event_attr_itlb_walk.attr.attr, attr 281 arch/arm64/kernel/perf_event.c &armv8_event_attr_ll_cache_rd.attr.attr, attr 282 arch/arm64/kernel/perf_event.c &armv8_event_attr_ll_cache_miss_rd.attr.attr, attr 283 arch/arm64/kernel/perf_event.c &armv8_event_attr_remote_access_rd.attr.attr, attr 284 arch/arm64/kernel/perf_event.c &armv8_event_attr_sample_pop.attr.attr, attr 285 arch/arm64/kernel/perf_event.c &armv8_event_attr_sample_feed.attr.attr, attr 286 arch/arm64/kernel/perf_event.c &armv8_event_attr_sample_filtrate.attr.attr, attr 287 arch/arm64/kernel/perf_event.c &armv8_event_attr_sample_collision.attr.attr, attr 293 arch/arm64/kernel/perf_event.c struct attribute *attr, int unused) attr 300 arch/arm64/kernel/perf_event.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); attr 304 arch/arm64/kernel/perf_event.c return attr->mode; attr 309 arch/arm64/kernel/perf_event.c return attr->mode; attr 325 arch/arm64/kernel/perf_event.c return event->attr.config1 & 0x1; attr 329 arch/arm64/kernel/perf_event.c &format_attr_event.attr, attr 330 arch/arm64/kernel/perf_event.c &format_attr_long.attr, attr 521 arch/arm64/kernel/perf_event.c struct perf_event_attr *attr = &event->attr; attr 528 arch/arm64/kernel/perf_event.c kvm_set_pmu_events(counter_bits, attr); attr 531 arch/arm64/kernel/perf_event.c if (!kvm_pmu_counter_deferred(attr)) { attr 548 arch/arm64/kernel/perf_event.c struct perf_event_attr *attr = &event->attr; attr 558 arch/arm64/kernel/perf_event.c if (!kvm_pmu_counter_deferred(attr)) { attr 825 arch/arm64/kernel/perf_event.c struct perf_event_attr *attr) attr 829 arch/arm64/kernel/perf_event.c if (attr->exclude_idle) attr 839 arch/arm64/kernel/perf_event.c if (!attr->exclude_kernel && !attr->exclude_host) attr 841 arch/arm64/kernel/perf_event.c if (attr->exclude_guest) attr 843 arch/arm64/kernel/perf_event.c if (attr->exclude_host) attr 846 arch/arm64/kernel/perf_event.c if (!attr->exclude_hv && !attr->exclude_host) attr 853 arch/arm64/kernel/perf_event.c if (attr->exclude_kernel) attr 856 arch/arm64/kernel/perf_event.c if (attr->exclude_user) attr 292 arch/arm64/kernel/ptrace.c struct perf_event_attr attr; attr 306 arch/arm64/kernel/ptrace.c ptrace_breakpoint_init(&attr); attr 312 arch/arm64/kernel/ptrace.c attr.bp_addr = 0; attr 313 arch/arm64/kernel/ptrace.c attr.bp_len = HW_BREAKPOINT_LEN_4; attr 314 arch/arm64/kernel/ptrace.c attr.bp_type = type; attr 315 arch/arm64/kernel/ptrace.c attr.disabled = 1; attr 317 arch/arm64/kernel/ptrace.c bp = register_user_hw_breakpoint(&attr, ptrace_hbptriggered, NULL, tsk); attr 330 arch/arm64/kernel/ptrace.c struct perf_event_attr *attr) attr 334 arch/arm64/kernel/ptrace.c attr->disabled = disabled; attr 355 arch/arm64/kernel/ptrace.c attr->bp_len = len; attr 356 arch/arm64/kernel/ptrace.c attr->bp_type = type; attr 357 arch/arm64/kernel/ptrace.c attr->bp_addr += offset; attr 433 arch/arm64/kernel/ptrace.c struct perf_event_attr attr; attr 442 arch/arm64/kernel/ptrace.c attr = bp->attr; attr 444 arch/arm64/kernel/ptrace.c err = ptrace_hbp_fill_attr_ctrl(note_type, ctrl, &attr); attr 448 arch/arm64/kernel/ptrace.c return modify_user_hw_breakpoint(bp, &attr); attr 458 arch/arm64/kernel/ptrace.c struct perf_event_attr attr; attr 466 arch/arm64/kernel/ptrace.c attr = bp->attr; attr 467 arch/arm64/kernel/ptrace.c attr.bp_addr = addr; attr 468 arch/arm64/kernel/ptrace.c err = modify_user_hw_breakpoint(bp, &attr); attr 857 arch/arm64/kvm/guest.c struct kvm_device_attr *attr) attr 861 arch/arm64/kvm/guest.c switch (attr->group) { attr 863 arch/arm64/kvm/guest.c ret = kvm_arm_pmu_v3_set_attr(vcpu, attr); attr 866 arch/arm64/kvm/guest.c ret = kvm_arm_timer_set_attr(vcpu, attr); attr 877 arch/arm64/kvm/guest.c struct kvm_device_attr *attr) attr 881 arch/arm64/kvm/guest.c switch (attr->group) { attr 883 arch/arm64/kvm/guest.c ret = kvm_arm_pmu_v3_get_attr(vcpu, attr); attr 886 arch/arm64/kvm/guest.c ret = kvm_arm_timer_get_attr(vcpu, attr); attr 897 arch/arm64/kvm/guest.c struct kvm_device_attr *attr) attr 901 arch/arm64/kvm/guest.c switch (attr->group) { attr 903 arch/arm64/kvm/guest.c ret = kvm_arm_pmu_v3_has_attr(vcpu, attr); attr 906 arch/arm64/kvm/guest.c ret = kvm_arm_timer_has_attr(vcpu, attr); attr 14 arch/arm64/kvm/pmu.c static bool kvm_pmu_switch_needed(struct perf_event_attr *attr) attr 21 arch/arm64/kvm/pmu.c if (has_vhe() && attr->exclude_user) attr 25 arch/arm64/kvm/pmu.c return (attr->exclude_host != attr->exclude_guest); attr 32 arch/arm64/kvm/pmu.c void kvm_set_pmu_events(u32 set, struct perf_event_attr *attr) attr 36 arch/arm64/kvm/pmu.c if (!kvm_pmu_switch_needed(attr)) attr 39 arch/arm64/kvm/pmu.c if (!attr->exclude_host) attr 41 arch/arm64/kvm/pmu.c if (!attr->exclude_guest) attr 973 arch/csky/kernel/perf_event.c switch (event->attr.type) { attr 975 arch/csky/kernel/perf_event.c if (event->attr.config >= PERF_COUNT_HW_MAX) attr 977 arch/csky/kernel/perf_event.c ret = csky_pmu_hw_map[event->attr.config]; attr 983 arch/csky/kernel/perf_event.c ret = csky_pmu_cache_event(event->attr.config); attr 989 arch/csky/kernel/perf_event.c if (hw_raw_read_mapping[event->attr.config] == NULL) attr 991 arch/csky/kernel/perf_event.c hwc->idx = event->attr.config; attr 997 arch/csky/kernel/perf_event.c if (event->attr.exclude_user) attr 999 arch/csky/kernel/perf_event.c else if (event->attr.exclude_kernel) attr 132 arch/ia64/kernel/efi.c prefix##_get_variable (efi_char16_t *name, efi_guid_t *vendor, u32 *attr, \ attr 139 arch/ia64/kernel/efi.c if (attr) \ attr 140 arch/ia64/kernel/efi.c aattr = adjust_arg(attr); \ attr 169 arch/ia64/kernel/efi.c u32 attr, unsigned long data_size, \ attr 178 arch/ia64/kernel/efi.c adjust_arg(name), adjust_arg(vendor), attr, data_size, \ attr 309 arch/ia64/kernel/efi.c walk (efi_freemem_callback_t callback, void *arg, u64 attr) attr 314 arch/ia64/kernel/efi.c voff = (attr == EFI_MEMORY_WB) ? PAGE_OFFSET : __IA64_UNCACHED_OFFSET; attr 316 arch/ia64/kernel/efi.c if (k->attribute != attr) attr 790 arch/ia64/kernel/efi.c u64 attr; attr 799 arch/ia64/kernel/efi.c attr = md->attribute & ~EFI_MEMORY_RUNTIME; attr 804 arch/ia64/kernel/efi.c return attr; attr 807 arch/ia64/kernel/efi.c if (!md || (md->attribute & ~EFI_MEMORY_RUNTIME) != attr) attr 818 arch/ia64/kernel/efi.c u64 attr; attr 825 arch/ia64/kernel/efi.c attr = efi_mem_attribute(phys_addr, size); attr 826 arch/ia64/kernel/efi.c if (attr & EFI_MEMORY_WB) attr 835 arch/ia64/kernel/efi.c attr = md->attribute; attr 840 arch/ia64/kernel/efi.c return attr; attr 843 arch/ia64/kernel/efi.c if (!md || md->attribute != attr) attr 852 arch/ia64/kernel/efi.c u64 attr; attr 860 arch/ia64/kernel/efi.c attr = kern_mem_attribute(phys_addr, size); attr 861 arch/ia64/kernel/efi.c if (attr & EFI_MEMORY_WB || attr & EFI_MEMORY_UC) attr 870 arch/ia64/kernel/efi.c u64 attr; attr 872 arch/ia64/kernel/efi.c attr = efi_mem_attribute(phys_addr, size); attr 879 arch/ia64/kernel/efi.c if (attr & EFI_MEMORY_WB || attr & EFI_MEMORY_UC) attr 899 arch/ia64/kernel/efi.c u64 attr; attr 906 arch/ia64/kernel/efi.c attr = kern_mem_attribute(phys_addr, size); attr 907 arch/ia64/kernel/efi.c if (attr & EFI_MEMORY_WB) attr 909 arch/ia64/kernel/efi.c else if (attr & EFI_MEMORY_UC) attr 58 arch/ia64/kernel/err_inject.c show_##name(struct device *dev, struct device_attribute *attr, \ attr 67 arch/ia64/kernel/err_inject.c store_##name(struct device *dev, struct device_attribute *attr, \ attr 81 arch/ia64/kernel/err_inject.c store_call_start(struct device *dev, struct device_attribute *attr, attr 130 arch/ia64/kernel/err_inject.c show_virtual_to_phys(struct device *dev, struct device_attribute *attr, attr 138 arch/ia64/kernel/err_inject.c store_virtual_to_phys(struct device *dev, struct device_attribute *attr, attr 162 arch/ia64/kernel/err_inject.c struct device_attribute *attr, char *buf) attr 174 arch/ia64/kernel/err_inject.c struct device_attribute *attr, attr 211 arch/ia64/kernel/err_inject.c &dev_attr_call_start.attr, attr 212 arch/ia64/kernel/err_inject.c &dev_attr_virtual_to_phys.attr, attr 213 arch/ia64/kernel/err_inject.c &dev_attr_err_type_info.attr, attr 214 arch/ia64/kernel/err_inject.c &dev_attr_err_struct_info.attr, attr 215 arch/ia64/kernel/err_inject.c &dev_attr_err_data_buffer.attr, attr 216 arch/ia64/kernel/err_inject.c &dev_attr_status.attr, attr 217 arch/ia64/kernel/err_inject.c &dev_attr_capabilities.attr, attr 218 arch/ia64/kernel/err_inject.c &dev_attr_resources.attr, attr 236 arch/ia64/kernel/topology.c struct attribute attr; attr 258 arch/ia64/kernel/topology.c &type.attr, attr 259 arch/ia64/kernel/topology.c &level.attr, attr 260 arch/ia64/kernel/topology.c &coherency_line_size.attr, attr 261 arch/ia64/kernel/topology.c &ways_of_associativity.attr, attr 262 arch/ia64/kernel/topology.c &attributes.attr, attr 263 arch/ia64/kernel/topology.c &size.attr, attr 264 arch/ia64/kernel/topology.c &number_of_sets.attr, attr 265 arch/ia64/kernel/topology.c &shared_cpu_map.attr, attr 270 arch/ia64/kernel/topology.c #define to_attr(a) container_of(a, struct cache_attr, attr) attr 272 arch/ia64/kernel/topology.c static ssize_t ia64_cache_show(struct kobject * kobj, struct attribute * attr, char * buf) attr 274 arch/ia64/kernel/topology.c struct cache_attr *fattr = to_attr(attr); attr 24 arch/ia64/mm/ioremap.c u64 attr; attr 25 arch/ia64/mm/ioremap.c attr = kern_mem_attribute(phys_addr, size); attr 26 arch/ia64/mm/ioremap.c if (attr & EFI_MEMORY_WB) attr 38 arch/ia64/mm/ioremap.c u64 attr; attr 47 arch/ia64/mm/ioremap.c attr = kern_mem_attribute(phys_addr, size); attr 48 arch/ia64/mm/ioremap.c if (attr & EFI_MEMORY_WB) attr 50 arch/ia64/mm/ioremap.c else if (attr & EFI_MEMORY_UC) attr 116 arch/mips/alchemy/devboards/pm.c #define ATTRCMP(x) (0 == strcmp(attr->attr.name, #x)) attr 119 arch/mips/alchemy/devboards/pm.c struct kobj_attribute *attr, attr 137 arch/mips/alchemy/devboards/pm.c idx = (attr->attr.name)[4] - '0'; attr 149 arch/mips/alchemy/devboards/pm.c struct kobj_attribute *attr, attr 172 arch/mips/alchemy/devboards/pm.c tmp = (attr->attr.name)[4] - '0'; attr 210 arch/mips/alchemy/devboards/pm.c #define ATTR_LIST(x) & x ## _attribute.attr attr 58 arch/mips/include/asm/pci/bridge.h #define mkate(xaddr, xid, attr) (((xaddr) & 0x0000fffffffff000ULL) | \ attr 60 arch/mips/include/asm/pci/bridge.h (attr)) attr 146 arch/mips/include/asm/sgiarcs.h unsigned char attr; attr 181 arch/mips/include/asm/sgiarcs.h unsigned char attr; attr 617 arch/mips/kernel/perf_event_mipsxx.c switch (event->attr.type) { attr 1281 arch/mips/kernel/perf_event_mipsxx.c struct perf_event_attr *attr = &event->attr; attr 1287 arch/mips/kernel/perf_event_mipsxx.c if (PERF_TYPE_HARDWARE == event->attr.type) { attr 1288 arch/mips/kernel/perf_event_mipsxx.c if (event->attr.config >= PERF_COUNT_HW_MAX) attr 1290 arch/mips/kernel/perf_event_mipsxx.c pev = mipspmu_map_general_event(event->attr.config); attr 1291 arch/mips/kernel/perf_event_mipsxx.c } else if (PERF_TYPE_HW_CACHE == event->attr.type) { attr 1292 arch/mips/kernel/perf_event_mipsxx.c pev = mipspmu_map_cache_event(event->attr.config); attr 1293 arch/mips/kernel/perf_event_mipsxx.c } else if (PERF_TYPE_RAW == event->attr.type) { attr 1296 arch/mips/kernel/perf_event_mipsxx.c pev = mipspmu.map_raw_event(event->attr.config); attr 1303 arch/mips/kernel/perf_event_mipsxx.c if (PERF_TYPE_RAW == event->attr.type) attr 1315 arch/mips/kernel/perf_event_mipsxx.c if (PERF_TYPE_RAW == event->attr.type) attr 1318 arch/mips/kernel/perf_event_mipsxx.c if (!attr->exclude_user) attr 1320 arch/mips/kernel/perf_event_mipsxx.c if (!attr->exclude_kernel) { attr 1325 arch/mips/kernel/perf_event_mipsxx.c if (!attr->exclude_hv) attr 24 arch/mips/kernel/vpe-cmp.c static ssize_t store_kill(struct device *dev, struct device_attribute *attr, attr 40 arch/mips/kernel/vpe-cmp.c static ssize_t ntcs_show(struct device *cd, struct device_attribute *attr, attr 48 arch/mips/kernel/vpe-cmp.c static ssize_t ntcs_store(struct device *dev, struct device_attribute *attr, attr 70 arch/mips/kernel/vpe-cmp.c &dev_attr_kill.attr, attr 71 arch/mips/kernel/vpe-cmp.c &dev_attr_ntcs.attr, attr 261 arch/mips/kernel/vpe-mt.c static ssize_t store_kill(struct device *dev, struct device_attribute *attr, attr 279 arch/mips/kernel/vpe-mt.c static ssize_t ntcs_show(struct device *cd, struct device_attribute *attr, attr 287 arch/mips/kernel/vpe-mt.c static ssize_t ntcs_store(struct device *dev, struct device_attribute *attr, attr 308 arch/mips/kernel/vpe-mt.c &dev_attr_kill.attr, attr 309 arch/mips/kernel/vpe-mt.c &dev_attr_ntcs.attr, attr 319 arch/mips/mm/init.c phys_addr_t lower, upper, attr; attr 366 arch/mips/mm/init.c attr = lower & upper; attr 371 arch/mips/mm/init.c if (!(attr & MIPS_MAAR_VL)) { attr 378 arch/mips/mm/init.c if (attr & MIPS_MAAR_S) attr 387 arch/mips/mm/init.c recorded.cfgs[recorded.used].attrs = attr; attr 176 arch/mips/sgi-ip22/ip22-gio.c struct device_attribute *attr, char *buf) attr 186 arch/mips/sgi-ip22/ip22-gio.c struct device_attribute *attr, char *buf) attr 196 arch/mips/sgi-ip22/ip22-gio.c &dev_attr_modalias.attr, attr 197 arch/mips/sgi-ip22/ip22-gio.c &dev_attr_name.attr, attr 198 arch/mips/sgi-ip22/ip22-gio.c &dev_attr_id.attr, attr 41 arch/mips/txx9/generic/7segled.c struct device_attribute *attr, attr 50 arch/mips/txx9/generic/7segled.c struct device_attribute *attr, attr 62 arch/mips/txx9/generic/7segled.c struct device_attribute *attr, attr 70 arch/mips/txx9/generic/7segled.c struct device_attribute *attr, attr 947 arch/mips/txx9/generic/setup.c dev->bindata_attr.attr.name = "bindata"; attr 948 arch/mips/txx9/generic/setup.c dev->bindata_attr.attr.mode = S_IRUSR | S_IWUSR; attr 73 arch/nds32/include/asm/pmu.h struct perf_event_attr *attr); attr 117 arch/nds32/kernel/perf_event_cpu.c u64 config = event->attr.config; attr 119 arch/nds32/kernel/perf_event_cpu.c switch (event->attr.type) { attr 308 arch/nds32/kernel/perf_event_cpu.c struct perf_event_attr *attr) attr 323 arch/nds32/kernel/perf_event_cpu.c if (attr->exclude_user) attr 326 arch/nds32/kernel/perf_event_cpu.c if (attr->exclude_kernel) attr 406 arch/nds32/kernel/perf_event_cpu.c static int event_requires_mode_exclusion(struct perf_event_attr *attr) attr 409 arch/nds32/kernel/perf_event_cpu.c return attr->exclude_user || attr->exclude_kernel; attr 441 arch/nds32/kernel/perf_event_cpu.c cpu_pmu->set_event_filter(hwc, &event->attr)) && attr 442 arch/nds32/kernel/perf_event_cpu.c event_requires_mode_exclusion(&event->attr)) { attr 765 arch/nds32/kernel/perf_event_cpu.c if (event->state == PERF_EVENT_STATE_OFF && !event->attr.enable_on_exec) attr 805 arch/nds32/kernel/perf_event_cpu.c pr_debug("event %x:%llx not supported\n", event->attr.type, attr 806 arch/nds32/kernel/perf_event_cpu.c event->attr.config); attr 825 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->set_event_filter(hwc, &event->attr)) && attr 826 arch/nds32/kernel/perf_event_cpu.c event_requires_mode_exclusion(&event->attr)) { attr 1007 arch/nds32/kernel/perf_event_cpu.c &format_attr_event.attr, attr 1017 arch/nds32/kernel/perf_event_cpu.c struct device_attribute *attr, attr 1026 arch/nds32/kernel/perf_event_cpu.c &dev_attr_cpus.attr, attr 75 arch/parisc/include/asm/grfioctl.h unsigned int attr; /* attributes */ attr 589 arch/parisc/kernel/drivers.c static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 604 arch/parisc/kernel/drivers.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) attr 611 arch/parisc/kernel/drivers.c &dev_attr_irq.attr, attr 612 arch/parisc/kernel/drivers.c &dev_attr_hw_type.attr, attr 613 arch/parisc/kernel/drivers.c &dev_attr_rev.attr, attr 614 arch/parisc/kernel/drivers.c &dev_attr_hversion.attr, attr 615 arch/parisc/kernel/drivers.c &dev_attr_sversion.attr, attr 616 arch/parisc/kernel/drivers.c &dev_attr_modalias.attr, attr 53 arch/powerpc/include/asm/hw_breakpoint.h const struct perf_event_attr *attr, attr 134 arch/powerpc/include/asm/perf_event_server.h struct device_attribute *attr, char *page); attr 150 arch/powerpc/include/asm/perf_event_server.h #define EVENT_PTR(_id, _suffix) &EVENT_VAR(_id, _suffix).attr.attr attr 263 arch/powerpc/include/asm/spu.h int spu_add_dev_attr(struct device_attribute *attr); attr 264 arch/powerpc/include/asm/spu.h void spu_remove_dev_attr(struct device_attribute *attr); attr 126 arch/powerpc/include/asm/vas.h struct vas_rx_win_attr *attr); attr 145 arch/powerpc/include/asm/vas.h struct vas_tx_win_attr *attr); attr 518 arch/powerpc/kernel/cacheinfo.c static ssize_t cache_index_show(struct kobject *k, struct attribute *attr, char *buf) attr 522 arch/powerpc/kernel/cacheinfo.c kobj_attr = container_of(attr, struct kobj_attribute, attr); attr 536 arch/powerpc/kernel/cacheinfo.c static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) attr 553 arch/powerpc/kernel/cacheinfo.c static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) attr 569 arch/powerpc/kernel/cacheinfo.c static ssize_t nr_sets_show(struct kobject *k, struct kobj_attribute *attr, char *buf) attr 585 arch/powerpc/kernel/cacheinfo.c static ssize_t associativity_show(struct kobject *k, struct kobj_attribute *attr, char *buf) attr 601 arch/powerpc/kernel/cacheinfo.c static ssize_t type_show(struct kobject *k, struct kobj_attribute *attr, char *buf) attr 613 arch/powerpc/kernel/cacheinfo.c static ssize_t level_show(struct kobject *k, struct kobj_attribute *attr, char *buf) attr 650 arch/powerpc/kernel/cacheinfo.c static ssize_t shared_cpu_map_show(struct kobject *k, struct kobj_attribute *attr, char *buf) attr 682 arch/powerpc/kernel/cacheinfo.c &cache_type_attr.attr, attr 683 arch/powerpc/kernel/cacheinfo.c &cache_level_attr.attr, attr 684 arch/powerpc/kernel/cacheinfo.c &cache_shared_cpu_map_attr.attr, attr 728 arch/powerpc/kernel/cacheinfo.c struct kobj_attribute *attr; attr 731 arch/powerpc/kernel/cacheinfo.c attr = cache_index_opt_attrs[i]; attr 733 arch/powerpc/kernel/cacheinfo.c rc = attr->show(&dir->kobj, attr, buf); attr 737 arch/powerpc/kernel/cacheinfo.c attr->attr.name, cache->ofnode, attr 741 arch/powerpc/kernel/cacheinfo.c if (sysfs_create_file(&dir->kobj, &attr->attr)) attr 743 arch/powerpc/kernel/cacheinfo.c attr->attr.name, cache->ofnode, cache_type); attr 41 arch/powerpc/kernel/eeh_sysfs.c struct device_attribute *attr, char *buf) \ attr 57 arch/powerpc/kernel/eeh_sysfs.c struct device_attribute *attr, char *buf) attr 72 arch/powerpc/kernel/eeh_sysfs.c struct device_attribute *attr, attr 96 arch/powerpc/kernel/eeh_sysfs.c struct device_attribute *attr, char *buf) attr 110 arch/powerpc/kernel/eeh_sysfs.c struct device_attribute *attr, attr 1327 arch/powerpc/kernel/fadump.c struct kobj_attribute *attr, attr 1354 arch/powerpc/kernel/fadump.c struct kobj_attribute *attr, attr 1361 arch/powerpc/kernel/fadump.c struct kobj_attribute *attr, attr 1368 arch/powerpc/kernel/fadump.c struct kobj_attribute *attr, attr 1438 arch/powerpc/kernel/fadump.c rc = sysfs_create_file(kernel_kobj, &fadump_attr.attr); attr 1443 arch/powerpc/kernel/fadump.c rc = sysfs_create_file(kernel_kobj, &fadump_register_attr.attr); attr 1456 arch/powerpc/kernel/fadump.c rc = sysfs_create_file(kernel_kobj, &fadump_release_attr.attr); attr 133 arch/powerpc/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 142 arch/powerpc/kernel/hw_breakpoint.c if (attr->bp_type & HW_BREAKPOINT_R) attr 144 arch/powerpc/kernel/hw_breakpoint.c if (attr->bp_type & HW_BREAKPOINT_W) attr 149 arch/powerpc/kernel/hw_breakpoint.c if (!attr->exclude_user) attr 151 arch/powerpc/kernel/hw_breakpoint.c if (!attr->exclude_kernel) attr 153 arch/powerpc/kernel/hw_breakpoint.c if (!attr->exclude_hv) attr 155 arch/powerpc/kernel/hw_breakpoint.c hw->address = attr->bp_addr; attr 156 arch/powerpc/kernel/hw_breakpoint.c hw->len = attr->bp_len; attr 170 arch/powerpc/kernel/hw_breakpoint.c if ((attr->bp_addr >> 9) != attr 171 arch/powerpc/kernel/hw_breakpoint.c ((attr->bp_addr + attr->bp_len - 1) >> 9)) attr 295 arch/powerpc/kernel/hw_breakpoint.c if (!((bp->attr.bp_addr <= dar) && attr 296 arch/powerpc/kernel/hw_breakpoint.c (dar - bp->attr.bp_addr < bp->attr.bp_len))) attr 101 arch/powerpc/kernel/iommu.c struct device_attribute *attr, char *buf) attr 107 arch/powerpc/kernel/iommu.c struct device_attribute *attr, const char *buf, attr 2371 arch/powerpc/kernel/ptrace.c struct perf_event_attr attr; attr 2379 arch/powerpc/kernel/ptrace.c attr = bp->attr; attr 2380 arch/powerpc/kernel/ptrace.c attr.disabled = true; attr 2381 arch/powerpc/kernel/ptrace.c modify_user_hw_breakpoint(bp, &attr); attr 2392 arch/powerpc/kernel/ptrace.c struct perf_event_attr attr; attr 2440 arch/powerpc/kernel/ptrace.c attr = bp->attr; attr 2441 arch/powerpc/kernel/ptrace.c attr.bp_addr = hw_brk.address; attr 2442 arch/powerpc/kernel/ptrace.c arch_bp_generic_fields(hw_brk.type, &attr.bp_type); attr 2445 arch/powerpc/kernel/ptrace.c attr.disabled = false; attr 2447 arch/powerpc/kernel/ptrace.c ret = modify_user_hw_breakpoint(bp, &attr); attr 2457 arch/powerpc/kernel/ptrace.c hw_breakpoint_init(&attr); attr 2458 arch/powerpc/kernel/ptrace.c attr.bp_addr = hw_brk.address; attr 2459 arch/powerpc/kernel/ptrace.c attr.bp_len = 8; attr 2461 arch/powerpc/kernel/ptrace.c &attr.bp_type); attr 2463 arch/powerpc/kernel/ptrace.c thread->ptrace_bps[0] = bp = register_user_hw_breakpoint(&attr, attr 2832 arch/powerpc/kernel/ptrace.c struct perf_event_attr attr; attr 2906 arch/powerpc/kernel/ptrace.c hw_breakpoint_init(&attr); attr 2907 arch/powerpc/kernel/ptrace.c attr.bp_addr = (unsigned long)bp_info->addr & ~HW_BREAKPOINT_ALIGN; attr 2908 arch/powerpc/kernel/ptrace.c attr.bp_len = len; attr 2909 arch/powerpc/kernel/ptrace.c arch_bp_generic_fields(brk.type, &attr.bp_type); attr 2911 arch/powerpc/kernel/ptrace.c thread->ptrace_bps[0] = bp = register_user_hw_breakpoint(&attr, attr 139 arch/powerpc/kernel/security.c ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) attr 168 arch/powerpc/kernel/security.c ssize_t cpu_show_l1tf(struct device *dev, struct device_attribute *attr, char *buf) attr 170 arch/powerpc/kernel/security.c return cpu_show_meltdown(dev, attr, buf); attr 174 arch/powerpc/kernel/security.c ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) attr 196 arch/powerpc/kernel/security.c ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) attr 328 arch/powerpc/kernel/security.c ssize_t cpu_show_spec_store_bypass(struct device *dev, struct device_attribute *attr, char *buf) attr 44 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, attr 61 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, attr 119 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, char *buf) attr 147 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, attr 165 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, char *buf) attr 214 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, attr 241 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, char *buf) attr 269 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, attr 287 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, char *buf) attr 336 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, attr 423 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, \ attr 432 arch/powerpc/kernel/sysfs.c store_##NAME(struct device *dev, struct device_attribute *attr, \ attr 544 arch/powerpc/kernel/sysfs.c static void add_write_permission_dev_attr(struct device_attribute *attr) attr 546 arch/powerpc/kernel/sysfs.c attr->attr.mode |= 0200; attr 558 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, char *buf) attr 573 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, const char *buf, attr 720 arch/powerpc/kernel/sysfs.c static ssize_t show_svm(struct device *dev, struct device_attribute *attr, char *buf) attr 937 arch/powerpc/kernel/sysfs.c int cpu_add_dev_attr(struct device_attribute *attr) attr 944 arch/powerpc/kernel/sysfs.c device_create_file(get_cpu_device(cpu), attr); attr 972 arch/powerpc/kernel/sysfs.c void cpu_remove_dev_attr(struct device_attribute *attr) attr 979 arch/powerpc/kernel/sysfs.c device_remove_file(get_cpu_device(cpu), attr); attr 1039 arch/powerpc/kernel/sysfs.c struct device_attribute *attr, char *buf) attr 1303 arch/powerpc/kvm/book3s_xics.c static int xics_set_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1307 arch/powerpc/kvm/book3s_xics.c switch (attr->group) { attr 1309 arch/powerpc/kvm/book3s_xics.c return xics_set_source(xics, attr->attr, attr->addr); attr 1314 arch/powerpc/kvm/book3s_xics.c static int xics_get_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1318 arch/powerpc/kvm/book3s_xics.c switch (attr->group) { attr 1320 arch/powerpc/kvm/book3s_xics.c return xics_get_source(xics, attr->attr, attr->addr); attr 1325 arch/powerpc/kvm/book3s_xics.c static int xics_has_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1327 arch/powerpc/kvm/book3s_xics.c switch (attr->group) { attr 1329 arch/powerpc/kvm/book3s_xics.c if (attr->attr >= KVMPPC_XICS_FIRST_IRQ && attr 1330 arch/powerpc/kvm/book3s_xics.c attr->attr < KVMPPC_XICS_NR_IRQS) attr 1837 arch/powerpc/kvm/book3s_xive.c static int xive_set_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1842 arch/powerpc/kvm/book3s_xive.c switch (attr->group) { attr 1844 arch/powerpc/kvm/book3s_xive.c return xive_set_source(xive, attr->attr, attr->addr); attr 1849 arch/powerpc/kvm/book3s_xive.c static int xive_get_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1854 arch/powerpc/kvm/book3s_xive.c switch (attr->group) { attr 1856 arch/powerpc/kvm/book3s_xive.c return xive_get_source(xive, attr->attr, attr->addr); attr 1861 arch/powerpc/kvm/book3s_xive.c static int xive_has_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1864 arch/powerpc/kvm/book3s_xive.c switch (attr->group) { attr 1866 arch/powerpc/kvm/book3s_xive.c if (attr->attr >= KVMPPC_XICS_FIRST_IRQ && attr 1867 arch/powerpc/kvm/book3s_xive.c attr->attr < KVMPPC_XICS_NR_IRQS) attr 934 arch/powerpc/kvm/book3s_xive_native.c struct kvm_device_attr *attr) attr 938 arch/powerpc/kvm/book3s_xive_native.c switch (attr->group) { attr 940 arch/powerpc/kvm/book3s_xive_native.c switch (attr->attr) { attr 948 arch/powerpc/kvm/book3s_xive_native.c return kvmppc_xive_native_set_source(xive, attr->attr, attr 949 arch/powerpc/kvm/book3s_xive_native.c attr->addr); attr 951 arch/powerpc/kvm/book3s_xive_native.c return kvmppc_xive_native_set_source_config(xive, attr->attr, attr 952 arch/powerpc/kvm/book3s_xive_native.c attr->addr); attr 954 arch/powerpc/kvm/book3s_xive_native.c return kvmppc_xive_native_set_queue_config(xive, attr->attr, attr 955 arch/powerpc/kvm/book3s_xive_native.c attr->addr); attr 957 arch/powerpc/kvm/book3s_xive_native.c return kvmppc_xive_native_sync_source(xive, attr->attr, attr 958 arch/powerpc/kvm/book3s_xive_native.c attr->addr); attr 964 arch/powerpc/kvm/book3s_xive_native.c struct kvm_device_attr *attr) attr 968 arch/powerpc/kvm/book3s_xive_native.c switch (attr->group) { attr 970 arch/powerpc/kvm/book3s_xive_native.c return kvmppc_xive_native_get_queue_config(xive, attr->attr, attr 971 arch/powerpc/kvm/book3s_xive_native.c attr->addr); attr 977 arch/powerpc/kvm/book3s_xive_native.c struct kvm_device_attr *attr) attr 979 arch/powerpc/kvm/book3s_xive_native.c switch (attr->group) { attr 981 arch/powerpc/kvm/book3s_xive_native.c switch (attr->attr) { attr 990 arch/powerpc/kvm/book3s_xive_native.c if (attr->attr >= KVMPPC_XIVE_FIRST_IRQ && attr 991 arch/powerpc/kvm/book3s_xive_native.c attr->attr < KVMPPC_XIVE_NR_IRQS) attr 1460 arch/powerpc/kvm/mpic.c static int set_base_addr(struct openpic *opp, struct kvm_device_attr *attr) attr 1464 arch/powerpc/kvm/mpic.c if (copy_from_user(&base, (u64 __user *)(long)attr->addr, sizeof(u64))) attr 1518 arch/powerpc/kvm/mpic.c static int mpic_set_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1523 arch/powerpc/kvm/mpic.c switch (attr->group) { attr 1525 arch/powerpc/kvm/mpic.c switch (attr->attr) { attr 1527 arch/powerpc/kvm/mpic.c return set_base_addr(opp, attr); attr 1533 arch/powerpc/kvm/mpic.c if (get_user(attr32, (u32 __user *)(long)attr->addr)) attr 1536 arch/powerpc/kvm/mpic.c return access_reg(opp, attr->attr, &attr32, ATTR_SET); attr 1539 arch/powerpc/kvm/mpic.c if (attr->attr > MAX_SRC) attr 1542 arch/powerpc/kvm/mpic.c if (get_user(attr32, (u32 __user *)(long)attr->addr)) attr 1549 arch/powerpc/kvm/mpic.c openpic_set_irq(opp, attr->attr, attr32); attr 1557 arch/powerpc/kvm/mpic.c static int mpic_get_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1564 arch/powerpc/kvm/mpic.c switch (attr->group) { attr 1566 arch/powerpc/kvm/mpic.c switch (attr->attr) { attr 1572 arch/powerpc/kvm/mpic.c if (copy_to_user((u64 __user *)(long)attr->addr, attr 1582 arch/powerpc/kvm/mpic.c ret = access_reg(opp, attr->attr, &attr32, ATTR_GET); attr 1586 arch/powerpc/kvm/mpic.c if (put_user(attr32, (u32 __user *)(long)attr->addr)) attr 1592 arch/powerpc/kvm/mpic.c if (attr->attr > MAX_SRC) attr 1596 arch/powerpc/kvm/mpic.c attr32 = opp->src[attr->attr].pending; attr 1599 arch/powerpc/kvm/mpic.c if (put_user(attr32, (u32 __user *)(long)attr->addr)) attr 1608 arch/powerpc/kvm/mpic.c static int mpic_has_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 1610 arch/powerpc/kvm/mpic.c switch (attr->group) { attr 1612 arch/powerpc/kvm/mpic.c switch (attr->attr) { attr 1623 arch/powerpc/kvm/mpic.c if (attr->attr > MAX_SRC) attr 50 arch/powerpc/perf/8xx-pmu.c switch (event->attr.type) { attr 52 arch/powerpc/perf/8xx-pmu.c if (event->attr.config == PERF_COUNT_HW_CPU_CYCLES) attr 54 arch/powerpc/perf/8xx-pmu.c if (event->attr.config == PERF_COUNT_HW_INSTRUCTIONS) attr 58 arch/powerpc/perf/8xx-pmu.c if (event->attr.config == ITLB_LOAD_MISS) attr 60 arch/powerpc/perf/8xx-pmu.c if (event->attr.config == DTLB_LOAD_MISS) attr 540 arch/powerpc/perf/core-book3s.c ((event->attr.config >> PERF_EVENT_CONFIG_EBB_SHIFT) & 1); attr 555 arch/powerpc/perf/core-book3s.c if (!leader->attr.pinned || !leader->attr.exclusive) attr 558 arch/powerpc/perf/core-book3s.c if (event->attr.freq || attr 559 arch/powerpc/perf/core-book3s.c event->attr.inherit || attr 560 arch/powerpc/perf/core-book3s.c event->attr.sample_type || attr 561 arch/powerpc/perf/core-book3s.c event->attr.sample_period || attr 562 arch/powerpc/perf/core-book3s.c event->attr.enable_on_exec) attr 1015 arch/powerpc/perf/core-book3s.c eu = event->attr.exclude_user; attr 1016 arch/powerpc/perf/core-book3s.c ek = event->attr.exclude_kernel; attr 1017 arch/powerpc/perf/core-book3s.c eh = event->attr.exclude_hv; attr 1019 arch/powerpc/perf/core-book3s.c } else if (event->attr.exclude_user != eu || attr 1020 arch/powerpc/perf/core-book3s.c event->attr.exclude_kernel != ek || attr 1021 arch/powerpc/perf/core-book3s.c event->attr.exclude_hv != eh) { attr 1340 arch/powerpc/perf/core-book3s.c if (event->attr.exclude_user) attr 1342 arch/powerpc/perf/core-book3s.c if (event->attr.exclude_kernel) attr 1344 arch/powerpc/perf/core-book3s.c if (event->attr.exclude_hv) attr 1527 arch/powerpc/perf/core-book3s.c event->attr.branch_sample_type); attr 1740 arch/powerpc/perf/core-book3s.c if (event->attr.exclude_user attr 1741 arch/powerpc/perf/core-book3s.c || event->attr.exclude_kernel attr 1742 arch/powerpc/perf/core-book3s.c || event->attr.exclude_hv attr 1743 arch/powerpc/perf/core-book3s.c || event->attr.sample_period) attr 1860 arch/powerpc/perf/core-book3s.c switch (event->attr.type) { attr 1862 arch/powerpc/perf/core-book3s.c ev = event->attr.config; attr 1871 arch/powerpc/perf/core-book3s.c err = hw_perf_cache_event(event->attr.config, &ev); attr 1879 arch/powerpc/perf/core-book3s.c ev = event->attr.config; attr 1897 arch/powerpc/perf/core-book3s.c event->attr.exclude_hv = 0; attr 1956 arch/powerpc/perf/core-book3s.c event->attr.branch_sample_type); attr 2008 arch/powerpc/perf/core-book3s.c struct device_attribute *attr, char *page) attr 2012 arch/powerpc/perf/core-book3s.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 2088 arch/powerpc/perf/core-book3s.c if (event->attr.sample_type & attr 2092 arch/powerpc/perf/core-book3s.c if (event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK) { attr 2099 arch/powerpc/perf/core-book3s.c if (event->attr.sample_type & PERF_SAMPLE_DATA_SRC && attr 2103 arch/powerpc/perf/core-book3s.c if (event->attr.sample_type & PERF_SAMPLE_WEIGHT && attr 497 arch/powerpc/perf/core-fsl-emb.c switch (event->attr.type) { attr 499 arch/powerpc/perf/core-fsl-emb.c ev = event->attr.config; attr 506 arch/powerpc/perf/core-fsl-emb.c err = hw_perf_cache_event(event->attr.config, &ev); attr 512 arch/powerpc/perf/core-fsl-emb.c ev = event->attr.config; attr 552 arch/powerpc/perf/core-fsl-emb.c if (event->attr.exclude_user) attr 554 arch/powerpc/perf/core-fsl-emb.c if (event->attr.exclude_kernel) attr 556 arch/powerpc/perf/core-fsl-emb.c if (event->attr.exclude_idle) attr 72 arch/powerpc/perf/generic-compat-pmu.c &format_attr_event.attr, attr 73 arch/powerpc/perf/generic-compat-pmu.c &format_attr_pmcxsel.attr, attr 74 arch/powerpc/perf/generic-compat-pmu.c &format_attr_mark.attr, attr 75 arch/powerpc/perf/generic-compat-pmu.c &format_attr_combine.attr, attr 76 arch/powerpc/perf/generic-compat-pmu.c &format_attr_unit.attr, attr 77 arch/powerpc/perf/generic-compat-pmu.c &format_attr_pmc.attr, attr 136 arch/powerpc/perf/hv-24x7.c &format_attr_domain.attr, attr 137 arch/powerpc/perf/hv-24x7.c &format_attr_offset.attr, attr 138 arch/powerpc/perf/hv-24x7.c &format_attr_core.attr, attr 139 arch/powerpc/perf/hv-24x7.c &format_attr_chip.attr, attr 140 arch/powerpc/perf/hv-24x7.c &format_attr_vcpu.attr, attr 141 arch/powerpc/perf/hv-24x7.c &format_attr_lpar.attr, attr 380 arch/powerpc/perf/hv-24x7.c struct device_attribute *attr, char *buf) attr 384 arch/powerpc/perf/hv-24x7.c d = container_of(attr, struct dev_ext_attribute, attr); attr 391 arch/powerpc/perf/hv-24x7.c struct dev_ext_attribute *attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 393 arch/powerpc/perf/hv-24x7.c if (!attr) attr 396 arch/powerpc/perf/hv-24x7.c sysfs_attr_init(&attr->attr.attr); attr 398 arch/powerpc/perf/hv-24x7.c attr->var = str; attr 399 arch/powerpc/perf/hv-24x7.c attr->attr.attr.name = name; attr 400 arch/powerpc/perf/hv-24x7.c attr->attr.attr.mode = 0444; attr 401 arch/powerpc/perf/hv-24x7.c attr->attr.show = device_show_string; attr 403 arch/powerpc/perf/hv-24x7.c return &attr->attr.attr; attr 453 arch/powerpc/perf/hv-24x7.c struct attribute *attr; attr 476 arch/powerpc/perf/hv-24x7.c attr = device_str_attr_create_(a_ev_name, val); attr 477 arch/powerpc/perf/hv-24x7.c if (!attr) attr 480 arch/powerpc/perf/hv-24x7.c return attr; attr 985 arch/powerpc/perf/hv-24x7.c static ssize_t domains_show(struct device *dev, struct device_attribute *attr, attr 1042 arch/powerpc/perf/hv-24x7.c &dev_attr_catalog_len.attr, attr 1043 arch/powerpc/perf/hv-24x7.c &dev_attr_catalog_version.attr, attr 1044 arch/powerpc/perf/hv-24x7.c &dev_attr_domains.attr, attr 1288 arch/powerpc/perf/hv-24x7.c if (event->attr.type != event->pmu->type) attr 1296 arch/powerpc/perf/hv-24x7.c event->attr.config, attr 1298 arch/powerpc/perf/hv-24x7.c event->attr.config1, attr 1300 arch/powerpc/perf/hv-24x7.c event->attr.config2, attr 43 arch/powerpc/perf/hv-common.h return (event->attr.attr_var >> (bit_start)) & \ attr 52 arch/powerpc/perf/hv-gpci.c &format_attr_request.attr, attr 53 arch/powerpc/perf/hv-gpci.c &format_attr_starting_index.attr, attr 54 arch/powerpc/perf/hv-gpci.c &format_attr_phys_processor_idx.attr, attr 55 arch/powerpc/perf/hv-gpci.c &format_attr_sibling_part_id.attr, attr 56 arch/powerpc/perf/hv-gpci.c &format_attr_hw_chip_id.attr, attr 57 arch/powerpc/perf/hv-gpci.c &format_attr_partition_id.attr, attr 58 arch/powerpc/perf/hv-gpci.c &format_attr_secondary_index.attr, attr 59 arch/powerpc/perf/hv-gpci.c &format_attr_counter_info_version.attr, attr 61 arch/powerpc/perf/hv-gpci.c &format_attr_offset.attr, attr 62 arch/powerpc/perf/hv-gpci.c &format_attr_length.attr, attr 78 arch/powerpc/perf/hv-gpci.c struct device_attribute *attr, \ attr 91 arch/powerpc/perf/hv-gpci.c struct device_attribute *attr, attr 105 arch/powerpc/perf/hv-gpci.c &dev_attr_kernel_version.attr, attr 106 arch/powerpc/perf/hv-gpci.c &hv_caps_attr_version.attr, attr 107 arch/powerpc/perf/hv-gpci.c &hv_caps_attr_ga.attr, attr 108 arch/powerpc/perf/hv-gpci.c &hv_caps_attr_expanded.attr, attr 109 arch/powerpc/perf/hv-gpci.c &hv_caps_attr_lab.attr, attr 110 arch/powerpc/perf/hv-gpci.c &hv_caps_attr_collect_privileged.attr, attr 222 arch/powerpc/perf/hv-gpci.c if (event->attr.type != event->pmu->type) attr 226 arch/powerpc/perf/hv-gpci.c if (event->attr.config2) { attr 57 arch/powerpc/perf/imc-pmu.c &format_attr_event.attr, attr 58 arch/powerpc/perf/imc-pmu.c &format_attr_offset.attr, attr 59 arch/powerpc/perf/imc-pmu.c &format_attr_rvalue.attr, attr 60 arch/powerpc/perf/imc-pmu.c &format_attr_mode.attr, attr 75 arch/powerpc/perf/imc-pmu.c &format_attr_event.attr, attr 76 arch/powerpc/perf/imc-pmu.c &format_attr_cpmc_reserved.attr, attr 77 arch/powerpc/perf/imc-pmu.c &format_attr_cpmc_event.attr, attr 78 arch/powerpc/perf/imc-pmu.c &format_attr_cpmc_samplesel.attr, attr 79 arch/powerpc/perf/imc-pmu.c &format_attr_cpmc_load.attr, attr 90 arch/powerpc/perf/imc-pmu.c struct device_attribute *attr, attr 114 arch/powerpc/perf/imc-pmu.c &dev_attr_cpumask.attr, attr 125 arch/powerpc/perf/imc-pmu.c struct perf_pmu_events_attr *attr; attr 127 arch/powerpc/perf/imc-pmu.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 128 arch/powerpc/perf/imc-pmu.c if (!attr) attr 130 arch/powerpc/perf/imc-pmu.c sysfs_attr_init(&attr->attr.attr); attr 132 arch/powerpc/perf/imc-pmu.c attr->event_str = str; attr 133 arch/powerpc/perf/imc-pmu.c attr->attr.attr.name = name; attr 134 arch/powerpc/perf/imc-pmu.c attr->attr.attr.mode = 0444; attr 135 arch/powerpc/perf/imc-pmu.c attr->attr.show = perf_event_sysfs_show; attr 137 arch/powerpc/perf/imc-pmu.c return &attr->attr.attr; attr 490 arch/powerpc/perf/imc-pmu.c u32 l_config, config = event->attr.config; attr 496 arch/powerpc/perf/imc-pmu.c if (event->attr.type != event->pmu->type) attr 767 arch/powerpc/perf/imc-pmu.c u64 config = event->attr.config; attr 772 arch/powerpc/perf/imc-pmu.c if (event->attr.type != event->pmu->type) attr 894 arch/powerpc/perf/imc-pmu.c u32 config = event->attr.config; attr 898 arch/powerpc/perf/imc-pmu.c if (event->attr.type != event->pmu->type) attr 937 arch/powerpc/perf/imc-pmu.c return (u64 *)(addr + (event->attr.config & IMC_EVENT_OFFSET_MASK)); attr 1307 arch/powerpc/perf/imc-pmu.c if (event->attr.type != event->pmu->type) attr 1314 arch/powerpc/perf/imc-pmu.c if (event->attr.sample_period == 0) attr 25 arch/powerpc/perf/isa207-common.c &format_attr_event.attr, attr 26 arch/powerpc/perf/isa207-common.c &format_attr_pmcxsel.attr, attr 27 arch/powerpc/perf/isa207-common.c &format_attr_mark.attr, attr 28 arch/powerpc/perf/isa207-common.c &format_attr_combine.attr, attr 29 arch/powerpc/perf/isa207-common.c &format_attr_unit.attr, attr 30 arch/powerpc/perf/isa207-common.c &format_attr_pmc.attr, attr 31 arch/powerpc/perf/isa207-common.c &format_attr_cache_sel.attr, attr 32 arch/powerpc/perf/isa207-common.c &format_attr_sample_mode.attr, attr 33 arch/powerpc/perf/isa207-common.c &format_attr_thresh_sel.attr, attr 34 arch/powerpc/perf/isa207-common.c &format_attr_thresh_stop.attr, attr 35 arch/powerpc/perf/isa207-common.c &format_attr_thresh_start.attr, attr 36 arch/powerpc/perf/isa207-common.c &format_attr_thresh_cmp.attr, attr 450 arch/powerpc/perf/isa207-common.c if (pevents[i]->attr.exclude_user) attr 453 arch/powerpc/perf/isa207-common.c if (pevents[i]->attr.exclude_hv) attr 456 arch/powerpc/perf/isa207-common.c if (pevents[i]->attr.exclude_kernel) { attr 412 arch/powerpc/perf/power7-pmu.c &format_attr_event.attr, attr 226 arch/powerpc/perf/power9-pmu.c &format_attr_event.attr, attr 227 arch/powerpc/perf/power9-pmu.c &format_attr_pmcxsel.attr, attr 228 arch/powerpc/perf/power9-pmu.c &format_attr_mark.attr, attr 229 arch/powerpc/perf/power9-pmu.c &format_attr_combine.attr, attr 230 arch/powerpc/perf/power9-pmu.c &format_attr_unit.attr, attr 231 arch/powerpc/perf/power9-pmu.c &format_attr_pmc.attr, attr 232 arch/powerpc/perf/power9-pmu.c &format_attr_cache_sel.attr, attr 233 arch/powerpc/perf/power9-pmu.c &format_attr_sample_mode.attr, attr 234 arch/powerpc/perf/power9-pmu.c &format_attr_thresh_sel.attr, attr 235 arch/powerpc/perf/power9-pmu.c &format_attr_thresh_stop.attr, attr 236 arch/powerpc/perf/power9-pmu.c &format_attr_thresh_start.attr, attr 237 arch/powerpc/perf/power9-pmu.c &format_attr_thresh_cmp.attr, attr 238 arch/powerpc/perf/power9-pmu.c &format_attr_sdar_mode.attr, attr 137 arch/powerpc/perf/req-gen/perf.h &EVENT_ATTR_NAME(r_name, c_name).attr.attr, attr 125 arch/powerpc/platforms/4xx/cpm.c struct kobj_attribute *attr, char *buf) attr 143 arch/powerpc/platforms/4xx/cpm.c struct kobj_attribute *attr, attr 174 arch/powerpc/platforms/4xx/cpm.c &cpm_idle_attr.attr); attr 71 arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c struct device_attribute *attr, char *buf) attr 52 arch/powerpc/platforms/cell/cbe_thermal.c .attr = { .name = __stringify(_name), .mode = _mode }, \ attr 88 arch/powerpc/platforms/cell/cbe_thermal.c static ssize_t spu_show_temp(struct device *dev, struct device_attribute *attr, attr 139 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 145 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 151 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 157 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, const char *buf, size_t size) attr 163 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, const char *buf, size_t size) attr 169 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, const char *buf, size_t size) attr 191 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 198 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 204 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 210 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 216 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, char *buf) attr 222 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, const char *buf, size_t size) attr 228 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, const char *buf, size_t size) attr 234 arch/powerpc/platforms/cell/cbe_thermal.c struct device_attribute *attr, const char *buf, size_t size) attr 241 arch/powerpc/platforms/cell/cbe_thermal.c .attr = {.name = "temperature", .mode = 0400 }, attr 251 arch/powerpc/platforms/cell/cbe_thermal.c &attr_spu_temperature.attr, attr 252 arch/powerpc/platforms/cell/cbe_thermal.c &attr_spu_throttle_end.attr, attr 253 arch/powerpc/platforms/cell/cbe_thermal.c &attr_spu_throttle_begin.attr, attr 254 arch/powerpc/platforms/cell/cbe_thermal.c &attr_spu_throttle_full_stop.attr, attr 264 arch/powerpc/platforms/cell/cbe_thermal.c .attr = {.name = "temperature0", .mode = 0400 }, attr 269 arch/powerpc/platforms/cell/cbe_thermal.c .attr = {.name = "temperature1", .mode = 0400 }, attr 278 arch/powerpc/platforms/cell/cbe_thermal.c &attr_ppe_temperature0.attr, attr 279 arch/powerpc/platforms/cell/cbe_thermal.c &attr_ppe_temperature1.attr, attr 280 arch/powerpc/platforms/cell/cbe_thermal.c &attr_ppe_throttle_end.attr, attr 281 arch/powerpc/platforms/cell/cbe_thermal.c &attr_ppe_throttle_begin.attr, attr 282 arch/powerpc/platforms/cell/cbe_thermal.c &attr_ppe_throttle_full_stop.attr, attr 480 arch/powerpc/platforms/cell/spu_base.c int spu_add_dev_attr(struct device_attribute *attr) attr 486 arch/powerpc/platforms/cell/spu_base.c device_create_file(&spu->dev, attr); attr 521 arch/powerpc/platforms/cell/spu_base.c void spu_remove_dev_attr(struct device_attribute *attr) attr 527 arch/powerpc/platforms/cell/spu_base.c device_remove_file(&spu->dev, attr); attr 645 arch/powerpc/platforms/cell/spu_base.c struct device_attribute *attr, char *buf) attr 47 arch/powerpc/platforms/cell/spufs/file.c struct spufs_attr *attr; attr 49 arch/powerpc/platforms/cell/spufs/file.c attr = kmalloc(sizeof(*attr), GFP_KERNEL); attr 50 arch/powerpc/platforms/cell/spufs/file.c if (!attr) attr 53 arch/powerpc/platforms/cell/spufs/file.c attr->get = get; attr 54 arch/powerpc/platforms/cell/spufs/file.c attr->set = set; attr 55 arch/powerpc/platforms/cell/spufs/file.c attr->data = inode->i_private; attr 56 arch/powerpc/platforms/cell/spufs/file.c attr->fmt = fmt; attr 57 arch/powerpc/platforms/cell/spufs/file.c mutex_init(&attr->mutex); attr 58 arch/powerpc/platforms/cell/spufs/file.c file->private_data = attr; attr 72 arch/powerpc/platforms/cell/spufs/file.c struct spufs_attr *attr; attr 76 arch/powerpc/platforms/cell/spufs/file.c attr = file->private_data; attr 77 arch/powerpc/platforms/cell/spufs/file.c if (!attr->get) attr 80 arch/powerpc/platforms/cell/spufs/file.c ret = mutex_lock_interruptible(&attr->mutex); attr 85 arch/powerpc/platforms/cell/spufs/file.c size = strlen(attr->get_buf); attr 88 arch/powerpc/platforms/cell/spufs/file.c ret = attr->get(attr->data, &val); attr 92 arch/powerpc/platforms/cell/spufs/file.c size = scnprintf(attr->get_buf, sizeof(attr->get_buf), attr 93 arch/powerpc/platforms/cell/spufs/file.c attr->fmt, (unsigned long long)val); attr 96 arch/powerpc/platforms/cell/spufs/file.c ret = simple_read_from_buffer(buf, len, ppos, attr->get_buf, size); attr 98 arch/powerpc/platforms/cell/spufs/file.c mutex_unlock(&attr->mutex); attr 105 arch/powerpc/platforms/cell/spufs/file.c struct spufs_attr *attr; attr 110 arch/powerpc/platforms/cell/spufs/file.c attr = file->private_data; attr 111 arch/powerpc/platforms/cell/spufs/file.c if (!attr->set) attr 114 arch/powerpc/platforms/cell/spufs/file.c ret = mutex_lock_interruptible(&attr->mutex); attr 119 arch/powerpc/platforms/cell/spufs/file.c size = min(sizeof(attr->set_buf) - 1, len); attr 120 arch/powerpc/platforms/cell/spufs/file.c if (copy_from_user(attr->set_buf, buf, size)) attr 124 arch/powerpc/platforms/cell/spufs/file.c attr->set_buf[size] = '\0'; attr 125 arch/powerpc/platforms/cell/spufs/file.c val = simple_strtol(attr->set_buf, NULL, 0); attr 126 arch/powerpc/platforms/cell/spufs/file.c attr->set(attr->data, val); attr 128 arch/powerpc/platforms/cell/spufs/file.c mutex_unlock(&attr->mutex); attr 94 arch/powerpc/platforms/cell/spufs/inode.c spufs_setattr(struct dentry *dentry, struct iattr *attr) attr 98 arch/powerpc/platforms/cell/spufs/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 99 arch/powerpc/platforms/cell/spufs/inode.c (attr->ia_size != inode->i_size)) attr 101 arch/powerpc/platforms/cell/spufs/inode.c setattr_copy(inode, attr); attr 168 arch/powerpc/platforms/powernv/idle.c struct device_attribute *attr, char *buf) attr 174 arch/powerpc/platforms/powernv/idle.c struct device_attribute *attr, const char *buf, attr 209 arch/powerpc/platforms/powernv/opal-core.c .attr = {.name = "core", .mode = 0400}, attr 567 arch/powerpc/platforms/powernv/opal-core.c struct kobj_attribute *attr, attr 628 arch/powerpc/platforms/powernv/opal-core.c rc = sysfs_create_file(kernel_kobj, &opalcore_rel_attr.attr); attr 31 arch/powerpc/platforms/powernv/opal-dump.c struct attribute attr; attr 32 arch/powerpc/platforms/powernv/opal-dump.c ssize_t (*show)(struct dump_obj *dump, struct dump_attribute *attr, attr 34 arch/powerpc/platforms/powernv/opal-dump.c ssize_t (*store)(struct dump_obj *dump, struct dump_attribute *attr, attr 37 arch/powerpc/platforms/powernv/opal-dump.c #define to_dump_attr(x) container_of(x, struct dump_attribute, attr) attr 40 arch/powerpc/platforms/powernv/opal-dump.c struct dump_attribute *attr, attr 57 arch/powerpc/platforms/powernv/opal-dump.c struct dump_attribute *attr, attr 66 arch/powerpc/platforms/powernv/opal-dump.c struct dump_attribute *attr, attr 87 arch/powerpc/platforms/powernv/opal-dump.c struct dump_attribute *attr, attr 92 arch/powerpc/platforms/powernv/opal-dump.c sysfs_remove_file_self(&dump_obj->kobj, &attr->attr); attr 109 arch/powerpc/platforms/powernv/opal-dump.c struct dump_attribute *attr, attr 127 arch/powerpc/platforms/powernv/opal-dump.c struct dump_attribute *attr, attr 144 arch/powerpc/platforms/powernv/opal-dump.c &initiate_attribute.attr, attr 155 arch/powerpc/platforms/powernv/opal-dump.c struct attribute *attr, attr 161 arch/powerpc/platforms/powernv/opal-dump.c attribute = to_dump_attr(attr); attr 171 arch/powerpc/platforms/powernv/opal-dump.c struct attribute *attr, attr 177 arch/powerpc/platforms/powernv/opal-dump.c attribute = to_dump_attr(attr); attr 201 arch/powerpc/platforms/powernv/opal-dump.c &id_attribute.attr, attr 202 arch/powerpc/platforms/powernv/opal-dump.c &type_attribute.attr, attr 203 arch/powerpc/platforms/powernv/opal-dump.c &ack_attribute.attr, attr 337 arch/powerpc/platforms/powernv/opal-dump.c dump->dump_attr.attr.name = "dump"; attr 338 arch/powerpc/platforms/powernv/opal-dump.c dump->dump_attr.attr.mode = 0400; attr 31 arch/powerpc/platforms/powernv/opal-elog.c struct attribute attr; attr 32 arch/powerpc/platforms/powernv/opal-elog.c ssize_t (*show)(struct elog_obj *elog, struct elog_attribute *attr, attr 34 arch/powerpc/platforms/powernv/opal-elog.c ssize_t (*store)(struct elog_obj *elog, struct elog_attribute *attr, attr 37 arch/powerpc/platforms/powernv/opal-elog.c #define to_elog_attr(x) container_of(x, struct elog_attribute, attr) attr 40 arch/powerpc/platforms/powernv/opal-elog.c struct elog_attribute *attr, attr 55 arch/powerpc/platforms/powernv/opal-elog.c struct elog_attribute *attr, attr 64 arch/powerpc/platforms/powernv/opal-elog.c struct elog_attribute *attr, attr 71 arch/powerpc/platforms/powernv/opal-elog.c struct elog_attribute *attr, attr 76 arch/powerpc/platforms/powernv/opal-elog.c sysfs_remove_file_self(&elog_obj->kobj, &attr->attr); attr 91 arch/powerpc/platforms/powernv/opal-elog.c struct attribute *attr, attr 97 arch/powerpc/platforms/powernv/opal-elog.c attribute = to_elog_attr(attr); attr 107 arch/powerpc/platforms/powernv/opal-elog.c struct attribute *attr, attr 113 arch/powerpc/platforms/powernv/opal-elog.c attribute = to_elog_attr(attr); attr 137 arch/powerpc/platforms/powernv/opal-elog.c &id_attribute.attr, attr 138 arch/powerpc/platforms/powernv/opal-elog.c &type_attribute.attr, attr 139 arch/powerpc/platforms/powernv/opal-elog.c &ack_attribute.attr, attr 197 arch/powerpc/platforms/powernv/opal-elog.c elog->raw_attr.attr.name = "raw"; attr 198 arch/powerpc/platforms/powernv/opal-elog.c elog->raw_attr.attr.mode = 0400; attr 151 arch/powerpc/platforms/powernv/opal-flash.c struct kobj_attribute *attr, char *buf) attr 191 arch/powerpc/platforms/powernv/opal-flash.c struct kobj_attribute *attr, attr 236 arch/powerpc/platforms/powernv/opal-flash.c struct kobj_attribute *attr, char *buf) attr 253 arch/powerpc/platforms/powernv/opal-flash.c struct kobj_attribute *attr, attr 321 arch/powerpc/platforms/powernv/opal-flash.c struct kobj_attribute *attr, char *buf) attr 333 arch/powerpc/platforms/powernv/opal-flash.c struct kobj_attribute *attr, attr 494 arch/powerpc/platforms/powernv/opal-flash.c .attr = {.name = "image", .mode = 0200}, attr 509 arch/powerpc/platforms/powernv/opal-flash.c &validate_attribute.attr, attr 510 arch/powerpc/platforms/powernv/opal-flash.c &manage_attribute.attr, attr 511 arch/powerpc/platforms/powernv/opal-flash.c &update_attribute.attr, attr 102 arch/powerpc/platforms/powernv/opal-msglog.c .attr = {.name = "msglog", .mode = 0400}, attr 22 arch/powerpc/platforms/powernv/opal-powercap.c struct kobj_attribute attr; attr 30 arch/powerpc/platforms/powernv/opal-powercap.c static ssize_t powercap_show(struct kobject *kobj, struct kobj_attribute *attr, attr 33 arch/powerpc/platforms/powernv/opal-powercap.c struct powercap_attr *pcap_attr = container_of(attr, attr 34 arch/powerpc/platforms/powernv/opal-powercap.c struct powercap_attr, attr); attr 82 arch/powerpc/platforms/powernv/opal-powercap.c struct kobj_attribute *attr, const char *buf, attr 85 arch/powerpc/platforms/powernv/opal-powercap.c struct powercap_attr *pcap_attr = container_of(attr, attr 86 arch/powerpc/platforms/powernv/opal-powercap.c struct powercap_attr, attr); attr 133 arch/powerpc/platforms/powernv/opal-powercap.c struct powercap_attr *attr) attr 135 arch/powerpc/platforms/powernv/opal-powercap.c attr->handle = handle; attr 136 arch/powerpc/platforms/powernv/opal-powercap.c sysfs_attr_init(&attr->attr.attr); attr 137 arch/powerpc/platforms/powernv/opal-powercap.c attr->attr.attr.name = name; attr 138 arch/powerpc/platforms/powernv/opal-powercap.c attr->attr.attr.mode = 0444; attr 139 arch/powerpc/platforms/powernv/opal-powercap.c attr->attr.show = powercap_show; attr 202 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; attr 209 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; attr 216 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pattrs[j].attr.attr.mode |= 0220; attr 217 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pattrs[j].attr.store = powercap_store; attr 218 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; attr 22 arch/powerpc/platforms/powernv/opal-psr.c struct kobj_attribute attr; attr 25 arch/powerpc/platforms/powernv/opal-psr.c static ssize_t psr_show(struct kobject *kobj, struct kobj_attribute *attr, attr 28 arch/powerpc/platforms/powernv/opal-psr.c struct psr_attr *psr_attr = container_of(attr, struct psr_attr, attr); attr 75 arch/powerpc/platforms/powernv/opal-psr.c static ssize_t psr_store(struct kobject *kobj, struct kobj_attribute *attr, attr 78 arch/powerpc/platforms/powernv/opal-psr.c struct psr_attr *psr_attr = container_of(attr, struct psr_attr, attr); attr 151 arch/powerpc/platforms/powernv/opal-psr.c sysfs_attr_init(&psr_attrs[i].attr.attr); attr 153 arch/powerpc/platforms/powernv/opal-psr.c &psr_attrs[i].attr.attr.name)) attr 155 arch/powerpc/platforms/powernv/opal-psr.c psr_attrs[i].attr.attr.mode = 0664; attr 156 arch/powerpc/platforms/powernv/opal-psr.c psr_attrs[i].attr.show = psr_show; attr 157 arch/powerpc/platforms/powernv/opal-psr.c psr_attrs[i].attr.store = psr_store; attr 158 arch/powerpc/platforms/powernv/opal-psr.c if (sysfs_create_file(psr_kobj, &psr_attrs[i].attr.attr)) { attr 160 arch/powerpc/platforms/powernv/opal-psr.c psr_attrs[i].attr.attr.name); attr 22 arch/powerpc/platforms/powernv/opal-sensor-groups.c struct kobj_attribute attr; attr 59 arch/powerpc/platforms/powernv/opal-sensor-groups.c static ssize_t sg_store(struct kobject *kobj, struct kobj_attribute *attr, attr 62 arch/powerpc/platforms/powernv/opal-sensor-groups.c struct sg_attr *sattr = container_of(attr, struct sg_attr, attr); attr 114 arch/powerpc/platforms/powernv/opal-sensor-groups.c ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr, attr 120 arch/powerpc/platforms/powernv/opal-sensor-groups.c static void add_attr(int handle, struct sg_attr *attr, int index) attr 122 arch/powerpc/platforms/powernv/opal-sensor-groups.c attr->handle = handle; attr 123 arch/powerpc/platforms/powernv/opal-sensor-groups.c sysfs_attr_init(&attr->attr.attr); attr 124 arch/powerpc/platforms/powernv/opal-sensor-groups.c attr->attr.attr.name = ops_info[index].attr_name; attr 125 arch/powerpc/platforms/powernv/opal-sensor-groups.c attr->attr.attr.mode = 0220; attr 126 arch/powerpc/platforms/powernv/opal-sensor-groups.c attr->attr.store = ops_info[index].store; attr 140 arch/powerpc/platforms/powernv/opal-sensor-groups.c &sg->sgattrs[count].attr.attr; attr 104 arch/powerpc/platforms/powernv/opal-sysparam.c struct param_attr *attr = container_of(kobj_attr, struct param_attr, attr 109 arch/powerpc/platforms/powernv/opal-sysparam.c ret = opal_get_sys_param(attr->param_id, attr->param_size, attr 114 arch/powerpc/platforms/powernv/opal-sysparam.c memcpy(buf, param_data_buf, attr->param_size); attr 116 arch/powerpc/platforms/powernv/opal-sysparam.c ret = attr->param_size; attr 125 arch/powerpc/platforms/powernv/opal-sysparam.c struct param_attr *attr = container_of(kobj_attr, struct param_attr, attr 135 arch/powerpc/platforms/powernv/opal-sysparam.c ret = opal_set_sys_param(attr->param_id, attr->param_size, attr 146 arch/powerpc/platforms/powernv/opal-sysparam.c struct param_attr *attr; attr 225 arch/powerpc/platforms/powernv/opal-sysparam.c attr = kcalloc(count, sizeof(*attr), GFP_KERNEL); attr 226 arch/powerpc/platforms/powernv/opal-sysparam.c if (!attr) { attr 240 arch/powerpc/platforms/powernv/opal-sysparam.c sysfs_attr_init(&attr[i].kobj_attr.attr); attr 241 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].param_id = id[i]; attr 242 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].param_size = size[i]; attr 244 arch/powerpc/platforms/powernv/opal-sysparam.c &attr[i].kobj_attr.attr.name)) attr 250 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.attr.mode = 0444; attr 253 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.attr.mode = 0200; attr 256 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.attr.mode = 0644; attr 262 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.show = sys_param_show; attr 263 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.store = sys_param_store; attr 265 arch/powerpc/platforms/powernv/opal-sysparam.c if (sysfs_create_file(sysparam_kobj, &attr[i].kobj_attr.attr)) { attr 267 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.attr.name); attr 279 arch/powerpc/platforms/powernv/opal-sysparam.c kfree(attr); attr 720 arch/powerpc/platforms/powernv/opal.c .attr = {.name = "symbol_map", .mode = 0400}, attr 764 arch/powerpc/platforms/powernv/opal.c struct bin_attribute *attr; attr 789 arch/powerpc/platforms/powernv/opal.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 791 arch/powerpc/platforms/powernv/opal.c if (attr == NULL) { attr 796 arch/powerpc/platforms/powernv/opal.c sysfs_bin_attr_init(attr); attr 797 arch/powerpc/platforms/powernv/opal.c attr->attr.name = kstrdup(prop->name, GFP_KERNEL); attr 798 arch/powerpc/platforms/powernv/opal.c attr->attr.mode = 0400; attr 799 arch/powerpc/platforms/powernv/opal.c attr->read = export_attr_read; attr 800 arch/powerpc/platforms/powernv/opal.c attr->private = __va(vals[0]); attr 801 arch/powerpc/platforms/powernv/opal.c attr->size = vals[1]; attr 803 arch/powerpc/platforms/powernv/opal.c if (attr->attr.name == NULL) { attr 805 arch/powerpc/platforms/powernv/opal.c kfree(attr); attr 809 arch/powerpc/platforms/powernv/opal.c rc = sysfs_create_bin_file(kobj, attr); attr 813 arch/powerpc/platforms/powernv/opal.c kfree(attr->attr.name); attr 814 arch/powerpc/platforms/powernv/opal.c kfree(attr); attr 365 arch/powerpc/platforms/powernv/subcore.c struct device_attribute *attr, const char *buf, attr 398 arch/powerpc/platforms/powernv/subcore.c struct device_attribute *attr, char *buf) attr 42 arch/powerpc/platforms/powernv/ultravisor.c .attr = {.name = "msglog", .mode = 0400}, attr 754 arch/powerpc/platforms/powernv/vas-window.c struct vas_rx_win_attr *attr) attr 757 arch/powerpc/platforms/powernv/vas-window.c attr->fault_win, attr->notify_disable, attr 758 arch/powerpc/platforms/powernv/vas-window.c attr->intr_disable, attr->notify_early, attr 759 arch/powerpc/platforms/powernv/vas-window.c attr->rx_fifo_size); attr 765 arch/powerpc/platforms/powernv/vas-window.c attr->rx_fifo_size < VAS_RX_FIFO_SIZE_MIN) attr 768 arch/powerpc/platforms/powernv/vas-window.c if (attr->rx_fifo_size > VAS_RX_FIFO_SIZE_MAX) attr 771 arch/powerpc/platforms/powernv/vas-window.c if (attr->wcreds_max > VAS_RX_WCREDS_MAX) attr 774 arch/powerpc/platforms/powernv/vas-window.c if (attr->nx_win) { attr 776 arch/powerpc/platforms/powernv/vas-window.c if (attr->fault_win || attr->user_win) attr 782 arch/powerpc/platforms/powernv/vas-window.c if (attr->notify_disable || !attr->intr_disable || attr 783 arch/powerpc/platforms/powernv/vas-window.c attr->notify_early) attr 785 arch/powerpc/platforms/powernv/vas-window.c } else if (attr->fault_win) { attr 787 arch/powerpc/platforms/powernv/vas-window.c if (attr->user_win) attr 794 arch/powerpc/platforms/powernv/vas-window.c if (!attr->notify_disable || attr->intr_disable) attr 797 arch/powerpc/platforms/powernv/vas-window.c } else if (attr->user_win) { attr 802 arch/powerpc/platforms/powernv/vas-window.c if (attr->rx_fifo || attr->rx_fifo_size || !attr->intr_disable) attr 957 arch/powerpc/platforms/powernv/vas-window.c struct vas_tx_win_attr *attr) attr 959 arch/powerpc/platforms/powernv/vas-window.c if (attr->tc_mode != VAS_THRESH_DISABLED) attr 965 arch/powerpc/platforms/powernv/vas-window.c if (attr->wcreds_max > VAS_TX_WCREDS_MAX) attr 968 arch/powerpc/platforms/powernv/vas-window.c if (attr->user_win && attr 969 arch/powerpc/platforms/powernv/vas-window.c (cop != VAS_COP_TYPE_FTW || attr->rsvd_txbuf_count)) attr 976 arch/powerpc/platforms/powernv/vas-window.c struct vas_tx_win_attr *attr) attr 984 arch/powerpc/platforms/powernv/vas-window.c trace_vas_tx_win_open(current, vasid, cop, attr); attr 986 arch/powerpc/platforms/powernv/vas-window.c if (!tx_win_args_valid(cop, attr)) attr 994 arch/powerpc/platforms/powernv/vas-window.c if (vasid == -1 && attr->pswid) attr 995 arch/powerpc/platforms/powernv/vas-window.c decode_pswid(attr->pswid, &vasid, NULL); attr 1003 arch/powerpc/platforms/powernv/vas-window.c rxwin = get_vinst_rxwin(vinst, cop, attr->pswid); attr 1019 arch/powerpc/platforms/powernv/vas-window.c txwin->pid = attr->pid; attr 1020 arch/powerpc/platforms/powernv/vas-window.c txwin->user_win = attr->user_win; attr 1021 arch/powerpc/platforms/powernv/vas-window.c txwin->wcreds_max = attr->wcreds_max ?: VAS_WCREDS_DEFAULT; attr 1023 arch/powerpc/platforms/powernv/vas-window.c init_winctx_for_txwin(txwin, attr, &winctx); attr 465 arch/powerpc/platforms/ps3/system-bus.c &dev_attr_modalias.attr, attr 369 arch/powerpc/platforms/pseries/cmm.c struct device_attribute *attr, \ attr 380 arch/powerpc/platforms/pseries/cmm.c struct device_attribute *attr, char *buf) attr 386 arch/powerpc/platforms/pseries/cmm.c struct device_attribute *attr, attr 515 arch/powerpc/platforms/pseries/dlpar.c static ssize_t dlpar_store(struct class *class, struct class_attribute *attr, attr 557 arch/powerpc/platforms/pseries/dlpar.c static ssize_t dlpar_show(struct class *class, struct class_attribute *attr, attr 584 arch/powerpc/platforms/pseries/dlpar.c return sysfs_create_file(kernel_kobj, &class_attr_dlpar.attr); attr 329 arch/powerpc/platforms/pseries/ibmebus.c &bus_attr_probe.attr, attr 330 arch/powerpc/platforms/pseries/ibmebus.c &bus_attr_remove.attr, attr 390 arch/powerpc/platforms/pseries/ibmebus.c struct device_attribute *attr, char *buf) attr 400 arch/powerpc/platforms/pseries/ibmebus.c struct device_attribute *attr, char *buf) attr 410 arch/powerpc/platforms/pseries/ibmebus.c struct device_attribute *attr, char *buf) attr 417 arch/powerpc/platforms/pseries/ibmebus.c &dev_attr_devspec.attr, attr 418 arch/powerpc/platforms/pseries/ibmebus.c &dev_attr_name.attr, attr 419 arch/powerpc/platforms/pseries/ibmebus.c &dev_attr_modalias.attr, attr 378 arch/powerpc/platforms/pseries/mobility.c struct class_attribute *attr, const char *buf, attr 425 arch/powerpc/platforms/pseries/mobility.c rc = sysfs_create_file(mobility_kobj, &class_attr_migration.attr); attr 429 arch/powerpc/platforms/pseries/mobility.c rc = sysfs_create_file(mobility_kobj, &class_attr_api_version.attr.attr); attr 23 arch/powerpc/platforms/pseries/power.c struct kobj_attribute *attr, char *buf) attr 29 arch/powerpc/platforms/pseries/power.c struct kobj_attribute *attr, attr 50 arch/powerpc/platforms/pseries/power.c &auto_poweron_attr.attr, attr 69 arch/powerpc/platforms/pseries/power.c return (sysfs_create_file(power_kobj, &auto_poweron_attr.attr)); attr 254 arch/powerpc/platforms/pseries/pseries_energy.c struct device_attribute *attr, char *page) attr 260 arch/powerpc/platforms/pseries/pseries_energy.c struct device_attribute *attr, char *page) attr 266 arch/powerpc/platforms/pseries/pseries_energy.c struct device_attribute *attr, char *page) attr 272 arch/powerpc/platforms/pseries/pseries_energy.c struct device_attribute *attr, char *page) attr 355 arch/powerpc/platforms/pseries/pseries_energy.c &attr_percpu_activate_hint.attr); attr 357 arch/powerpc/platforms/pseries/pseries_energy.c &attr_percpu_deactivate_hint.attr); attr 132 arch/powerpc/platforms/pseries/suspend.c struct device_attribute *attr, attr 198 arch/powerpc/platforms/pseries/suspend.c struct device_attribute *attr, attr 934 arch/powerpc/platforms/pseries/vio.c struct device_attribute *attr, \ attr 941 arch/powerpc/platforms/pseries/vio.c struct device_attribute *attr, char *buf) attr 948 arch/powerpc/platforms/pseries/vio.c struct device_attribute *attr, const char *buf, size_t count) attr 956 arch/powerpc/platforms/pseries/vio.c struct device_attribute *attr, const char *buf, size_t count) attr 976 arch/powerpc/platforms/pseries/vio.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 989 arch/powerpc/platforms/pseries/vio.c &dev_attr_name.attr, attr 990 arch/powerpc/platforms/pseries/vio.c &dev_attr_devspec.attr, attr 991 arch/powerpc/platforms/pseries/vio.c &dev_attr_modalias.attr, attr 992 arch/powerpc/platforms/pseries/vio.c &dev_attr_cmo_entitled.attr, attr 993 arch/powerpc/platforms/pseries/vio.c &dev_attr_cmo_allocated.attr, attr 994 arch/powerpc/platforms/pseries/vio.c &dev_attr_cmo_desired.attr, attr 995 arch/powerpc/platforms/pseries/vio.c &dev_attr_cmo_allocs_failed.attr, attr 1046 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_bus_entitled.attr, attr 1047 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_bus_spare.attr, attr 1048 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_bus_min.attr, attr 1049 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_bus_desired.attr, attr 1050 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_bus_curr.attr, attr 1051 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_high.attr, attr 1052 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_reserve_size.attr, attr 1053 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_excess_size.attr, attr 1054 arch/powerpc/platforms/pseries/vio.c &bus_attr_cmo_excess_free.attr, attr 1528 arch/powerpc/platforms/pseries/vio.c struct device_attribute *attr, char *buf) attr 1535 arch/powerpc/platforms/pseries/vio.c struct device_attribute *attr, char *buf) attr 1543 arch/powerpc/platforms/pseries/vio.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 1566 arch/powerpc/platforms/pseries/vio.c &dev_attr_name.attr, attr 1567 arch/powerpc/platforms/pseries/vio.c &dev_attr_devspec.attr, attr 1568 arch/powerpc/platforms/pseries/vio.c &dev_attr_modalias.attr, attr 52 arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c struct device_attribute *attr, attr 68 arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c struct device_attribute *attr, attr 386 arch/riscv/kernel/perf_event.c struct perf_event_attr *attr = &event->attr; attr 401 arch/riscv/kernel/perf_event.c switch (event->attr.type) { attr 403 arch/riscv/kernel/perf_event.c code = riscv_pmu->map_hw_event(attr->config); attr 406 arch/riscv/kernel/perf_event.c code = riscv_pmu->map_cache_event(attr->config); attr 693 arch/s390/crypto/prng.c struct device_attribute *attr, attr 702 arch/s390/crypto/prng.c struct device_attribute *attr, attr 721 arch/s390/crypto/prng.c struct device_attribute *attr, attr 730 arch/s390/crypto/prng.c struct device_attribute *attr, attr 742 arch/s390/crypto/prng.c struct device_attribute *attr, attr 756 arch/s390/crypto/prng.c struct device_attribute *attr, attr 762 arch/s390/crypto/prng.c struct device_attribute *attr, attr 787 arch/s390/crypto/prng.c struct device_attribute *attr, attr 795 arch/s390/crypto/prng.c &dev_attr_errorflag.attr, attr 796 arch/s390/crypto/prng.c &dev_attr_chunksize.attr, attr 797 arch/s390/crypto/prng.c &dev_attr_byte_counter.attr, attr 798 arch/s390/crypto/prng.c &dev_attr_mode.attr, attr 799 arch/s390/crypto/prng.c &dev_attr_reseed.attr, attr 800 arch/s390/crypto/prng.c &dev_attr_reseed_limit.attr, attr 801 arch/s390/crypto/prng.c &dev_attr_strength.attr, attr 805 arch/s390/crypto/prng.c &dev_attr_chunksize.attr, attr 806 arch/s390/crypto/prng.c &dev_attr_byte_counter.attr, attr 807 arch/s390/crypto/prng.c &dev_attr_mode.attr, attr 27 arch/s390/include/asm/perf_event.h struct device_attribute *attr, attr 30 arch/s390/include/asm/perf_event.h #define EVENT_PTR(_cat, _name) (&EVENT_VAR(_cat, _name).attr.attr) attr 53 arch/s390/kernel/idle.c struct device_attribute *attr, char *buf) attr 70 arch/s390/kernel/idle.c struct device_attribute *attr, char *buf) attr 174 arch/s390/kernel/ipl.c struct kobj_attribute *attr, \ attr 182 arch/s390/kernel/ipl.c struct kobj_attribute *attr, \ attr 215 arch/s390/kernel/ipl.c struct kobj_attribute *attr, \ attr 232 arch/s390/kernel/ipl.c struct kobj_attribute *attr, \ attr 268 arch/s390/kernel/ipl.c static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr, attr 277 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 286 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 295 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 308 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 326 arch/s390/kernel/ipl.c struct bin_attribute *attr, char *buf, attr 337 arch/s390/kernel/ipl.c struct bin_attribute *attr, char *buf, attr 366 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 382 arch/s390/kernel/ipl.c &sys_ipl_type_attr.attr, attr 383 arch/s390/kernel/ipl.c &sys_ipl_device_attr.attr, attr 384 arch/s390/kernel/ipl.c &sys_ipl_fcp_wwpn_attr.attr, attr 385 arch/s390/kernel/ipl.c &sys_ipl_fcp_lun_attr.attr, attr 386 arch/s390/kernel/ipl.c &sys_ipl_fcp_bootprog_attr.attr, attr 387 arch/s390/kernel/ipl.c &sys_ipl_fcp_br_lba_attr.attr, attr 388 arch/s390/kernel/ipl.c &sys_ipl_ccw_loadparm_attr.attr, attr 389 arch/s390/kernel/ipl.c &sys_ipl_secure_attr.attr, attr 390 arch/s390/kernel/ipl.c &sys_ipl_has_secure_attr.attr, attr 402 arch/s390/kernel/ipl.c &sys_ipl_type_attr.attr, attr 403 arch/s390/kernel/ipl.c &sys_ipl_device_attr.attr, attr 404 arch/s390/kernel/ipl.c &sys_ipl_ccw_loadparm_attr.attr, attr 405 arch/s390/kernel/ipl.c &sys_ipl_vm_parm_attr.attr, attr 406 arch/s390/kernel/ipl.c &sys_ipl_secure_attr.attr, attr 407 arch/s390/kernel/ipl.c &sys_ipl_has_secure_attr.attr, attr 412 arch/s390/kernel/ipl.c &sys_ipl_type_attr.attr, attr 413 arch/s390/kernel/ipl.c &sys_ipl_device_attr.attr, attr 414 arch/s390/kernel/ipl.c &sys_ipl_ccw_loadparm_attr.attr, attr 415 arch/s390/kernel/ipl.c &sys_ipl_secure_attr.attr, attr 416 arch/s390/kernel/ipl.c &sys_ipl_has_secure_attr.attr, attr 431 arch/s390/kernel/ipl.c &sys_ipl_type_attr.attr, attr 540 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 546 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 554 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 560 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 576 arch/s390/kernel/ipl.c struct bin_attribute *attr, attr 586 arch/s390/kernel/ipl.c struct bin_attribute *attr, attr 678 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 684 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 695 arch/s390/kernel/ipl.c &sys_reipl_fcp_device_attr.attr, attr 696 arch/s390/kernel/ipl.c &sys_reipl_fcp_wwpn_attr.attr, attr 697 arch/s390/kernel/ipl.c &sys_reipl_fcp_lun_attr.attr, attr 698 arch/s390/kernel/ipl.c &sys_reipl_fcp_bootprog_attr.attr, attr 699 arch/s390/kernel/ipl.c &sys_reipl_fcp_br_lba_attr.attr, attr 700 arch/s390/kernel/ipl.c &sys_reipl_fcp_loadparm_attr.attr, attr 714 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 720 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 728 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 734 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 745 arch/s390/kernel/ipl.c &sys_reipl_ccw_device_attr.attr, attr 746 arch/s390/kernel/ipl.c &sys_reipl_ccw_loadparm_attr.attr, attr 747 arch/s390/kernel/ipl.c &sys_reipl_ccw_vmparm_attr.attr, attr 752 arch/s390/kernel/ipl.c &sys_reipl_ccw_device_attr.attr, attr 753 arch/s390/kernel/ipl.c &sys_reipl_ccw_loadparm_attr.attr, attr 778 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 787 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 822 arch/s390/kernel/ipl.c &sys_reipl_nss_name_attr.attr, attr 823 arch/s390/kernel/ipl.c &sys_reipl_nss_loadparm_attr.attr, attr 824 arch/s390/kernel/ipl.c &sys_reipl_nss_vmparm_attr.attr, attr 864 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 870 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 1067 arch/s390/kernel/ipl.c rc = sysfs_create_file(&reipl_kset->kobj, &reipl_type_attr.attr); attr 1108 arch/s390/kernel/ipl.c &sys_dump_fcp_device_attr.attr, attr 1109 arch/s390/kernel/ipl.c &sys_dump_fcp_wwpn_attr.attr, attr 1110 arch/s390/kernel/ipl.c &sys_dump_fcp_lun_attr.attr, attr 1111 arch/s390/kernel/ipl.c &sys_dump_fcp_bootprog_attr.attr, attr 1112 arch/s390/kernel/ipl.c &sys_dump_fcp_br_lba_attr.attr, attr 1125 arch/s390/kernel/ipl.c &sys_dump_ccw_device_attr.attr, attr 1145 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 1151 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 1252 arch/s390/kernel/ipl.c rc = sysfs_create_file(&dump_kset->kobj, &dump_type_attr.attr); attr 1307 arch/s390/kernel/ipl.c &sys_vmcmd_on_reboot_attr.attr, attr 1308 arch/s390/kernel/ipl.c &sys_vmcmd_on_panic_attr.attr, attr 1309 arch/s390/kernel/ipl.c &sys_vmcmd_on_halt_attr.attr, attr 1310 arch/s390/kernel/ipl.c &sys_vmcmd_on_poff_attr.attr, attr 1311 arch/s390/kernel/ipl.c &sys_vmcmd_on_restart_attr.attr, attr 1408 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 1414 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 1434 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 1440 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 1460 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 1466 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 1497 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 1503 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 1523 arch/s390/kernel/ipl.c struct kobj_attribute *attr, char *page) attr 1529 arch/s390/kernel/ipl.c struct kobj_attribute *attr, attr 1545 arch/s390/kernel/ipl.c &on_restart_attr.attr, attr 1546 arch/s390/kernel/ipl.c &on_reboot_attr.attr, attr 1547 arch/s390/kernel/ipl.c &on_panic_attr.attr, attr 1548 arch/s390/kernel/ipl.c &on_halt_attr.attr, attr 1549 arch/s390/kernel/ipl.c &on_poff_attr.attr, attr 8 arch/s390/kernel/nospec-sysfs.c struct device_attribute *attr, char *buf) attr 14 arch/s390/kernel/nospec-sysfs.c struct device_attribute *attr, char *buf) attr 204 arch/s390/kernel/perf_cpum_cf.c struct perf_event_attr *attr = &event->attr; attr 214 arch/s390/kernel/perf_cpum_cf.c if (attr->exclude_kernel || attr->exclude_user || attr 215 arch/s390/kernel/perf_cpum_cf.c attr->exclude_hv) attr 217 arch/s390/kernel/perf_cpum_cf.c ev = attr->config; attr 223 arch/s390/kernel/perf_cpum_cf.c ev = attr->config; attr 225 arch/s390/kernel/perf_cpum_cf.c if (!attr->exclude_user && attr->exclude_kernel) { attr 231 arch/s390/kernel/perf_cpum_cf.c } else if (!attr->exclude_kernel && attr->exclude_user) { attr 297 arch/s390/kernel/perf_cpum_cf.c unsigned int type = event->attr.type; attr 199 arch/s390/kernel/perf_cpum_cf_diag.c struct perf_event_attr *attr = &event->attr; attr 207 arch/s390/kernel/perf_cpum_cf_diag.c event->hw.config = attr->config; attr 231 arch/s390/kernel/perf_cpum_cf_diag.c event->hw.sample_period = attr->sample_period; attr 242 arch/s390/kernel/perf_cpum_cf_diag.c struct perf_event_attr *attr = &event->attr; attr 248 arch/s390/kernel/perf_cpum_cf_diag.c event, event->cpu, attr->config, event->pmu->type, attr 249 arch/s390/kernel/perf_cpum_cf_diag.c attr->sample_type, atomic_read(&cf_diag_events)); attr 251 arch/s390/kernel/perf_cpum_cf_diag.c if (event->attr.config != PERF_EVENT_CPUM_CF_DIAG || attr 252 arch/s390/kernel/perf_cpum_cf_diag.c event->attr.type != event->pmu->type) attr 260 arch/s390/kernel/perf_cpum_cf_diag.c if (attr->exclude_kernel || attr->exclude_user || attr->exclude_hv || attr 261 arch/s390/kernel/perf_cpum_cf_diag.c !(attr->sample_type & (PERF_SAMPLE_CPU | PERF_SAMPLE_RAW))) { attr 500 arch/s390/kernel/perf_cpum_cf_diag.c if (event->attr.sample_type & PERF_SAMPLE_CPU) attr 502 arch/s390/kernel/perf_cpum_cf_diag.c if (event->attr.sample_type & PERF_SAMPLE_RAW) { attr 513 arch/s390/kernel/perf_cpum_cf_diag.c event->attr.sample_type, raw.size, overflow); attr 612 arch/s390/kernel/perf_cpum_cf_diag.c &format_attr_event.attr, attr 528 arch/s390/kernel/perf_cpum_cf_events.c &format_attr_event.attr, attr 741 arch/s390/kernel/perf_cpum_sf.c struct perf_event_attr *attr = &event->attr; attr 745 arch/s390/kernel/perf_cpum_sf.c if (attr->freq) { attr 746 arch/s390/kernel/perf_cpum_sf.c if (!attr->sample_freq) attr 748 arch/s390/kernel/perf_cpum_sf.c rate = getrate(attr->freq, attr->sample_freq, si); attr 749 arch/s390/kernel/perf_cpum_sf.c attr->freq = 0; /* Don't call perf_adjust_period() */ attr 752 arch/s390/kernel/perf_cpum_sf.c rate = getrate(attr->freq, attr->sample_period, si); attr 756 arch/s390/kernel/perf_cpum_sf.c attr->sample_period = rate; attr 761 arch/s390/kernel/perf_cpum_sf.c event->attr.sample_period, event->attr.freq, attr 770 arch/s390/kernel/perf_cpum_sf.c struct perf_event_attr *attr = &event->attr; attr 831 arch/s390/kernel/perf_cpum_sf.c if (attr->config == PERF_EVENT_CPUM_SF_DIAG) { attr 840 arch/s390/kernel/perf_cpum_sf.c if (attr->config1 & PERF_CPUM_SF_FULL_BLOCKS) attr 852 arch/s390/kernel/perf_cpum_sf.c if (attr->config == PERF_EVENT_CPUM_SF_DIAG) attr 879 arch/s390/kernel/perf_cpum_sf.c if (event->attr.sample_type & PERF_SAMPLE_TID) attr 894 arch/s390/kernel/perf_cpum_sf.c switch (event->attr.type) { attr 896 arch/s390/kernel/perf_cpum_sf.c if ((event->attr.config != PERF_EVENT_CPUM_SF) && attr 897 arch/s390/kernel/perf_cpum_sf.c (event->attr.config != PERF_EVENT_CPUM_SF_DIAG)) attr 906 arch/s390/kernel/perf_cpum_sf.c if (event->attr.config != PERF_COUNT_HW_CPU_CYCLES) attr 922 arch/s390/kernel/perf_cpum_sf.c if (event->attr.exclude_hv) attr 923 arch/s390/kernel/perf_cpum_sf.c event->attr.exclude_hv = 0; attr 924 arch/s390/kernel/perf_cpum_sf.c if (event->attr.exclude_idle) attr 925 arch/s390/kernel/perf_cpum_sf.c event->attr.exclude_idle = 0; attr 1050 arch/s390/kernel/perf_cpum_sf.c if (event->attr.exclude_user && user_mode(regs)) attr 1052 arch/s390/kernel/perf_cpum_sf.c if (event->attr.exclude_kernel && !user_mode(regs)) attr 1054 arch/s390/kernel/perf_cpum_sf.c if (event->attr.exclude_guest && sde_regs->in_guest) attr 1056 arch/s390/kernel/perf_cpum_sf.c if (event->attr.exclude_host && !sde_regs->in_guest) attr 1823 arch/s390/kernel/perf_cpum_sf.c event->attr.sample_period = rate; attr 1829 arch/s390/kernel/perf_cpum_sf.c event->attr.sample_period, do_freq); attr 1988 arch/s390/kernel/perf_cpum_sf.c &format_attr_event.attr, attr 238 arch/s390/kernel/perf_event.c struct device_attribute *attr, char *page) attr 242 arch/s390/kernel/perf_event.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 1027 arch/s390/kernel/smp.c struct device_attribute *attr, char *buf) attr 1038 arch/s390/kernel/smp.c struct device_attribute *attr, attr 1104 arch/s390/kernel/smp.c struct device_attribute *attr, char *buf) attr 1111 arch/s390/kernel/smp.c &dev_attr_configure.attr, attr 1112 arch/s390/kernel/smp.c &dev_attr_address.attr, attr 1121 arch/s390/kernel/smp.c &dev_attr_idle_count.attr, attr 1122 arch/s390/kernel/smp.c &dev_attr_idle_time_us.attr, attr 1196 arch/s390/kernel/smp.c struct device_attribute *attr, attr 695 arch/s390/kernel/time.c struct device_attribute *attr, attr 707 arch/s390/kernel/time.c struct device_attribute *attr, attr 718 arch/s390/kernel/time.c struct device_attribute *attr, attr 729 arch/s390/kernel/time.c struct device_attribute *attr, attr 740 arch/s390/kernel/time.c struct device_attribute *attr, attr 751 arch/s390/kernel/time.c struct device_attribute *attr, attr 762 arch/s390/kernel/time.c struct device_attribute *attr, attr 774 arch/s390/kernel/time.c struct device_attribute *attr, attr 785 arch/s390/kernel/time.c struct device_attribute *attr, attr 796 arch/s390/kernel/time.c struct device_attribute *attr, attr 803 arch/s390/kernel/time.c struct device_attribute *attr, attr 829 arch/s390/kernel/time.c .attr = { .name = "online", .mode = 0600 }, attr 850 arch/s390/kernel/time.c struct device_attribute **attr; attr 856 arch/s390/kernel/time.c for (attr = stp_attributes; *attr; attr++) { attr 857 arch/s390/kernel/time.c rc = device_create_file(stp_subsys.dev_root, *attr); attr 863 arch/s390/kernel/time.c for (; attr >= stp_attributes; attr--) attr 864 arch/s390/kernel/time.c device_remove_file(stp_subsys.dev_root, *attr); attr 370 arch/s390/kernel/topology.c struct device_attribute *attr, attr 382 arch/s390/kernel/topology.c struct device_attribute *attr, attr 411 arch/s390/kernel/topology.c struct device_attribute *attr, char *buf) attr 440 arch/s390/kernel/topology.c &dev_attr_polarization.attr, attr 449 arch/s390/kernel/topology.c struct device_attribute *attr, char *buf) attr 462 arch/s390/kernel/topology.c &dev_attr_dedicated.attr, attr 2185 arch/s390/kvm/interrupt.c static int flic_ais_mode_get_all(struct kvm *kvm, struct kvm_device_attr *attr) attr 2190 arch/s390/kvm/interrupt.c if (attr->attr < sizeof(ais)) attr 2201 arch/s390/kvm/interrupt.c if (copy_to_user((void __user *)attr->addr, &ais, sizeof(ais))) attr 2207 arch/s390/kvm/interrupt.c static int flic_get_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 2211 arch/s390/kvm/interrupt.c switch (attr->group) { attr 2213 arch/s390/kvm/interrupt.c r = get_all_floating_irqs(dev->kvm, (u8 __user *) attr->addr, attr 2214 arch/s390/kvm/interrupt.c attr->attr); attr 2217 arch/s390/kvm/interrupt.c r = flic_ais_mode_get_all(dev->kvm, attr); attr 2267 arch/s390/kvm/interrupt.c struct kvm_device_attr *attr) attr 2271 arch/s390/kvm/interrupt.c int len = attr->attr; attr 2283 arch/s390/kvm/interrupt.c r = copy_irq_from_user(inti, attr->addr); attr 2294 arch/s390/kvm/interrupt.c attr->addr += sizeof(struct kvm_s390_irq); attr 2309 arch/s390/kvm/interrupt.c struct kvm_device_attr *attr) attr 2315 arch/s390/kvm/interrupt.c (void __user *)attr->addr, sizeof(adapter_info))) attr 2442 arch/s390/kvm/interrupt.c struct kvm_device_attr *attr) attr 2448 arch/s390/kvm/interrupt.c if (copy_from_user(&req, (void __user *)attr->addr, sizeof(req))) attr 2473 arch/s390/kvm/interrupt.c static int clear_io_irq(struct kvm *kvm, struct kvm_device_attr *attr) attr 2479 arch/s390/kvm/interrupt.c if (attr->flags) attr 2481 arch/s390/kvm/interrupt.c if (attr->attr != sizeof(schid)) attr 2483 arch/s390/kvm/interrupt.c if (copy_from_user(&schid, (void __user *) attr->addr, sizeof(schid))) attr 2496 arch/s390/kvm/interrupt.c static int modify_ais_mode(struct kvm *kvm, struct kvm_device_attr *attr) attr 2505 arch/s390/kvm/interrupt.c if (copy_from_user(&req, (void __user *)attr->addr, sizeof(req))) attr 2566 arch/s390/kvm/interrupt.c static int flic_inject_airq(struct kvm *kvm, struct kvm_device_attr *attr) attr 2568 arch/s390/kvm/interrupt.c unsigned int id = attr->attr; attr 2577 arch/s390/kvm/interrupt.c static int flic_ais_mode_set_all(struct kvm *kvm, struct kvm_device_attr *attr) attr 2585 arch/s390/kvm/interrupt.c if (copy_from_user(&ais, (void __user *)attr->addr, sizeof(ais))) attr 2596 arch/s390/kvm/interrupt.c static int flic_set_attr(struct kvm_device *dev, struct kvm_device_attr *attr) attr 2602 arch/s390/kvm/interrupt.c switch (attr->group) { attr 2604 arch/s390/kvm/interrupt.c r = enqueue_floating_irq(dev, attr); attr 2624 arch/s390/kvm/interrupt.c r = register_io_adapter(dev, attr); attr 2627 arch/s390/kvm/interrupt.c r = modify_io_adapter(dev, attr); attr 2630 arch/s390/kvm/interrupt.c r = clear_io_irq(dev->kvm, attr); attr 2633 arch/s390/kvm/interrupt.c r = modify_ais_mode(dev->kvm, attr); attr 2636 arch/s390/kvm/interrupt.c r = flic_inject_airq(dev->kvm, attr); attr 2639 arch/s390/kvm/interrupt.c r = flic_ais_mode_set_all(dev->kvm, attr); attr 2649 arch/s390/kvm/interrupt.c struct kvm_device_attr *attr) attr 2651 arch/s390/kvm/interrupt.c switch (attr->group) { attr 792 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_mem_control(struct kvm *kvm, struct kvm_device_attr *attr) attr 796 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 801 arch/s390/kvm/kvm-s390.c if (put_user(kvm->arch.mem_limit, (u64 __user *)attr->addr)) attr 811 arch/s390/kvm/kvm-s390.c static int kvm_s390_set_mem_control(struct kvm *kvm, struct kvm_device_attr *attr) attr 815 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 857 arch/s390/kvm/kvm-s390.c if (get_user(new_limit, (u64 __user *)attr->addr)) attr 917 arch/s390/kvm/kvm-s390.c static int kvm_s390_vm_set_crypto(struct kvm *kvm, struct kvm_device_attr *attr) attr 920 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1054 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1059 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1075 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1079 arch/s390/kvm/kvm-s390.c if (attr->attr != KVM_S390_VM_MIGRATION_STATUS) attr 1082 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, &mig, sizeof(mig))) attr 1087 arch/s390/kvm/kvm-s390.c static int kvm_s390_set_tod_ext(struct kvm *kvm, struct kvm_device_attr *attr) attr 1091 arch/s390/kvm/kvm-s390.c if (copy_from_user(>od, (void __user *)attr->addr, sizeof(gtod))) attr 1104 arch/s390/kvm/kvm-s390.c static int kvm_s390_set_tod_high(struct kvm *kvm, struct kvm_device_attr *attr) attr 1108 arch/s390/kvm/kvm-s390.c if (copy_from_user(>od_high, (void __user *)attr->addr, attr 1119 arch/s390/kvm/kvm-s390.c static int kvm_s390_set_tod_low(struct kvm *kvm, struct kvm_device_attr *attr) attr 1123 arch/s390/kvm/kvm-s390.c if (copy_from_user(>od.tod, (void __user *)attr->addr, attr 1132 arch/s390/kvm/kvm-s390.c static int kvm_s390_set_tod(struct kvm *kvm, struct kvm_device_attr *attr) attr 1136 arch/s390/kvm/kvm-s390.c if (attr->flags) attr 1139 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1141 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_tod_ext(kvm, attr); attr 1144 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_tod_high(kvm, attr); attr 1147 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_tod_low(kvm, attr); attr 1176 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_tod_ext(struct kvm *kvm, struct kvm_device_attr *attr) attr 1182 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, >od, sizeof(gtod))) attr 1190 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_tod_high(struct kvm *kvm, struct kvm_device_attr *attr) attr 1194 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, >od_high, attr 1202 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_tod_low(struct kvm *kvm, struct kvm_device_attr *attr) attr 1207 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, >od, sizeof(gtod))) attr 1214 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_tod(struct kvm *kvm, struct kvm_device_attr *attr) attr 1218 arch/s390/kvm/kvm-s390.c if (attr->flags) attr 1221 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1223 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_tod_ext(kvm, attr); attr 1226 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_tod_high(kvm, attr); attr 1229 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_tod_low(kvm, attr); attr 1238 arch/s390/kvm/kvm-s390.c static int kvm_s390_set_processor(struct kvm *kvm, struct kvm_device_attr *attr) attr 1254 arch/s390/kvm/kvm-s390.c if (!copy_from_user(proc, (void __user *)attr->addr, attr 1285 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1289 arch/s390/kvm/kvm-s390.c if (copy_from_user(&data, (void __user *)attr->addr, sizeof(data))) attr 1312 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1320 arch/s390/kvm/kvm-s390.c if (copy_from_user(&kvm->arch.model.subfuncs, (void __user *)attr->addr, attr 1388 arch/s390/kvm/kvm-s390.c static int kvm_s390_set_cpu_model(struct kvm *kvm, struct kvm_device_attr *attr) attr 1392 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1394 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_processor(kvm, attr); attr 1397 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_processor_feat(kvm, attr); attr 1400 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_processor_subfunc(kvm, attr); attr 1406 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_processor(struct kvm *kvm, struct kvm_device_attr *attr) attr 1427 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, proc, sizeof(*proc))) attr 1434 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_machine(struct kvm *kvm, struct kvm_device_attr *attr) attr 1461 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, mach, sizeof(*mach))) attr 1469 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1475 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, &data, sizeof(data))) attr 1485 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1492 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, &data, sizeof(data))) attr 1502 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1504 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, &kvm->arch.model.subfuncs, attr 1570 arch/s390/kvm/kvm-s390.c struct kvm_device_attr *attr) attr 1572 arch/s390/kvm/kvm-s390.c if (copy_to_user((void __user *)attr->addr, &kvm_s390_available_subfunc, attr 1637 arch/s390/kvm/kvm-s390.c static int kvm_s390_get_cpu_model(struct kvm *kvm, struct kvm_device_attr *attr) attr 1641 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1643 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_processor(kvm, attr); attr 1646 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_machine(kvm, attr); attr 1649 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_processor_feat(kvm, attr); attr 1652 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_machine_feat(kvm, attr); attr 1655 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_processor_subfunc(kvm, attr); attr 1658 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_machine_subfunc(kvm, attr); attr 1664 arch/s390/kvm/kvm-s390.c static int kvm_s390_vm_set_attr(struct kvm *kvm, struct kvm_device_attr *attr) attr 1668 arch/s390/kvm/kvm-s390.c switch (attr->group) { attr 1670 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_mem_control(kvm, attr); attr 1673 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_tod(kvm, attr); attr 1676 arch/s390/kvm/kvm-s390.c ret = kvm_s390_set_cpu_model(kvm, attr); attr 1679 arch/s390/kvm/kvm-s390.c ret = kvm_s390_vm_set_crypto(kvm, attr); attr 1682 arch/s390/kvm/kvm-s390.c ret = kvm_s390_vm_set_migration(kvm, attr); attr 1692 arch/s390/kvm/kvm-s390.c static int kvm_s390_vm_get_attr(struct kvm *kvm, struct kvm_device_attr *attr) attr 1696 arch/s390/kvm/kvm-s390.c switch (attr->group) { attr 1698 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_mem_control(kvm, attr); attr 1701 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_tod(kvm, attr); attr 1704 arch/s390/kvm/kvm-s390.c ret = kvm_s390_get_cpu_model(kvm, attr); attr 1707 arch/s390/kvm/kvm-s390.c ret = kvm_s390_vm_get_migration(kvm, attr); attr 1717 arch/s390/kvm/kvm-s390.c static int kvm_s390_vm_has_attr(struct kvm *kvm, struct kvm_device_attr *attr) attr 1721 arch/s390/kvm/kvm-s390.c switch (attr->group) { attr 1723 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1737 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1748 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 1763 arch/s390/kvm/kvm-s390.c switch (attr->attr) { attr 2171 arch/s390/kvm/kvm-s390.c struct kvm_device_attr attr; attr 2197 arch/s390/kvm/kvm-s390.c if (copy_from_user(&attr, (void __user *)arg, sizeof(attr))) attr 2199 arch/s390/kvm/kvm-s390.c r = kvm_s390_vm_set_attr(kvm, &attr); attr 2204 arch/s390/kvm/kvm-s390.c if (copy_from_user(&attr, (void __user *)arg, sizeof(attr))) attr 2206 arch/s390/kvm/kvm-s390.c r = kvm_s390_vm_get_attr(kvm, &attr); attr 2211 arch/s390/kvm/kvm-s390.c if (copy_from_user(&attr, (void __user *)arg, sizeof(attr))) attr 2213 arch/s390/kvm/kvm-s390.c r = kvm_s390_vm_has_attr(kvm, &attr); attr 22 arch/s390/pci/pci_sysfs.c struct device_attribute *attr, char *buf) \ attr 43 arch/s390/pci/pci_sysfs.c struct device_attribute *attr, char *buf) attr 51 arch/s390/pci/pci_sysfs.c static ssize_t recover_store(struct device *dev, struct device_attribute *attr, attr 69 arch/s390/pci/pci_sysfs.c kn = sysfs_break_active_protection(&dev->kobj, &attr->attr); attr 74 arch/s390/pci/pci_sysfs.c device_remove_file(dev, attr); attr 102 arch/s390/pci/pci_sysfs.c struct bin_attribute *attr, char *buf, attr 115 arch/s390/pci/pci_sysfs.c struct bin_attribute *attr, char *buf, attr 140 arch/s390/pci/pci_sysfs.c &dev_attr_function_id.attr, attr 141 arch/s390/pci/pci_sysfs.c &dev_attr_function_handle.attr, attr 142 arch/s390/pci/pci_sysfs.c &dev_attr_pchid.attr, attr 143 arch/s390/pci/pci_sysfs.c &dev_attr_pfgid.attr, attr 144 arch/s390/pci/pci_sysfs.c &dev_attr_pft.attr, attr 145 arch/s390/pci/pci_sysfs.c &dev_attr_vfn.attr, attr 146 arch/s390/pci/pci_sysfs.c &dev_attr_uid.attr, attr 147 arch/s390/pci/pci_sysfs.c &dev_attr_recover.attr, attr 148 arch/s390/pci/pci_sysfs.c &dev_attr_mio_enabled.attr, attr 157 arch/s390/pci/pci_sysfs.c &dev_attr_segment0.attr, attr 158 arch/s390/pci/pci_sysfs.c &dev_attr_segment1.attr, attr 159 arch/s390/pci/pci_sysfs.c &dev_attr_segment2.attr, attr 160 arch/s390/pci/pci_sysfs.c &dev_attr_segment3.attr, attr 24 arch/sh/drivers/dma/dma-sysfs.c struct device_attribute *attr, char *buf) attr 59 arch/sh/drivers/dma/dma-sysfs.c struct device_attribute *attr, char *buf) attr 66 arch/sh/drivers/dma/dma-sysfs.c struct device_attribute *attr, attr 77 arch/sh/drivers/dma/dma-sysfs.c struct device_attribute *attr, attr 92 arch/sh/drivers/dma/dma-sysfs.c struct device_attribute *attr, char *buf) attr 99 arch/sh/drivers/dma/dma-sysfs.c struct device_attribute *attr, attr 111 arch/sh/drivers/dma/dma-sysfs.c struct device_attribute *attr, char *buf)\ attr 18 arch/sh/drivers/push-switch.c struct device_attribute *attr, attr 59 arch/sh/include/asm/hw_breakpoint.h const struct perf_event_attr *attr, attr 259 arch/sh/kernel/cpu/sh4/sq.c struct attribute attr; attr 264 arch/sh/kernel/cpu/sh4/sq.c #define to_sq_sysfs_attr(a) container_of(a, struct sq_sysfs_attr, attr) attr 266 arch/sh/kernel/cpu/sh4/sq.c static ssize_t sq_sysfs_show(struct kobject *kobj, struct attribute *attr, attr 269 arch/sh/kernel/cpu/sh4/sq.c struct sq_sysfs_attr *sattr = to_sq_sysfs_attr(attr); attr 277 arch/sh/kernel/cpu/sh4/sq.c static ssize_t sq_sysfs_store(struct kobject *kobj, struct attribute *attr, attr 280 arch/sh/kernel/cpu/sh4/sq.c struct sq_sysfs_attr *sattr = to_sq_sysfs_attr(attr); attr 323 arch/sh/kernel/cpu/sh4/sq.c &mapping_attr.attr, attr 175 arch/sh/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 178 arch/sh/kernel/hw_breakpoint.c hw->address = attr->bp_addr; attr 181 arch/sh/kernel/hw_breakpoint.c switch (attr->bp_len) { attr 199 arch/sh/kernel/hw_breakpoint.c switch (attr->bp_type) { attr 220 arch/sh/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 226 arch/sh/kernel/hw_breakpoint.c ret = arch_build_bp_info(bp, attr, hw); attr 120 arch/sh/kernel/perf_event.c struct perf_event_attr *attr = &event->attr; attr 151 arch/sh/kernel/perf_event.c switch (attr->type) { attr 153 arch/sh/kernel/perf_event.c config = attr->config & sh_pmu->raw_event_mask; attr 156 arch/sh/kernel/perf_event.c err = hw_perf_cache_event(attr->config, &config); attr 161 arch/sh/kernel/perf_event.c if (attr->config >= sh_pmu->max_events) attr 164 arch/sh/kernel/perf_event.c config = sh_pmu->event_map(attr->config); attr 306 arch/sh/kernel/perf_event.c switch (event->attr.type) { attr 66 arch/sh/kernel/ptrace_32.c struct perf_event_attr attr; attr 72 arch/sh/kernel/ptrace_32.c attr = bp->attr; attr 73 arch/sh/kernel/ptrace_32.c attr.disabled = true; attr 74 arch/sh/kernel/ptrace_32.c modify_user_hw_breakpoint(bp, &attr); attr 81 arch/sh/kernel/ptrace_32.c struct perf_event_attr attr; attr 85 arch/sh/kernel/ptrace_32.c ptrace_breakpoint_init(&attr); attr 87 arch/sh/kernel/ptrace_32.c attr.bp_addr = addr; attr 88 arch/sh/kernel/ptrace_32.c attr.bp_len = HW_BREAKPOINT_LEN_2; attr 89 arch/sh/kernel/ptrace_32.c attr.bp_type = HW_BREAKPOINT_R; attr 91 arch/sh/kernel/ptrace_32.c bp = register_user_hw_breakpoint(&attr, ptrace_triggered, attr 100 arch/sh/kernel/ptrace_32.c attr = bp->attr; attr 101 arch/sh/kernel/ptrace_32.c attr.bp_addr = addr; attr 103 arch/sh/kernel/ptrace_32.c attr.disabled = false; attr 104 arch/sh/kernel/ptrace_32.c err = modify_user_hw_breakpoint(bp, &attr); attr 588 arch/sparc/kernel/pci.c show_pciobppath_attr(struct device * dev, struct device_attribute * attr, char * buf) attr 615 arch/sparc/kernel/pci.c err = sysfs_create_file(&dev->dev.kobj, &dev_attr_obppath.attr); attr 1331 arch/sparc/kernel/perf_event.c eu = event->attr.exclude_user; attr 1332 arch/sparc/kernel/perf_event.c ek = event->attr.exclude_kernel; attr 1333 arch/sparc/kernel/perf_event.c eh = event->attr.exclude_hv; attr 1335 arch/sparc/kernel/perf_event.c } else if (event->attr.exclude_user != eu || attr 1336 arch/sparc/kernel/perf_event.c event->attr.exclude_kernel != ek || attr 1337 arch/sparc/kernel/perf_event.c event->attr.exclude_hv != eh) { attr 1417 arch/sparc/kernel/perf_event.c struct perf_event_attr *attr = &event->attr; attr 1432 arch/sparc/kernel/perf_event.c switch (attr->type) { attr 1434 arch/sparc/kernel/perf_event.c if (attr->config >= sparc_pmu->max_events) attr 1436 arch/sparc/kernel/perf_event.c pmap = sparc_pmu->event_map(attr->config); attr 1440 arch/sparc/kernel/perf_event.c pmap = sparc_map_cache_event(attr->config); attr 1461 arch/sparc/kernel/perf_event.c hwc->event_base = attr->config; attr 1466 arch/sparc/kernel/perf_event.c if (!attr->exclude_user) attr 1468 arch/sparc/kernel/perf_event.c if (!attr->exclude_kernel) attr 1470 arch/sparc/kernel/perf_event.c if (!attr->exclude_hv) attr 21 arch/sparc/kernel/sysfs.c struct device_attribute *attr, char *buf) \ attr 62 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctx0_8k_tte.attr, attr 63 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctx0_8k_tte.attr, attr 64 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctx0_64k_tte.attr, attr 65 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctx0_64k_tte.attr, attr 66 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctx0_4mb_tte.attr, attr 67 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctx0_4mb_tte.attr, attr 68 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctx0_256mb_tte.attr, attr 69 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctx0_256mb_tte.attr, attr 70 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctxnon0_8k_tte.attr, attr 71 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctxnon0_8k_tte.attr, attr 72 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctxnon0_64k_tte.attr, attr 73 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctxnon0_64k_tte.attr, attr 74 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctxnon0_4mb_tte.attr, attr 75 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctxnon0_4mb_tte.attr, attr 76 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_hits_ctxnon0_256mb_tte.attr, attr 77 arch/sparc/kernel/sysfs.c &dev_attr_immu_tsb_ticks_ctxnon0_256mb_tte.attr, attr 78 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctx0_8k_tte.attr, attr 79 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctx0_8k_tte.attr, attr 80 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctx0_64k_tte.attr, attr 81 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctx0_64k_tte.attr, attr 82 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctx0_4mb_tte.attr, attr 83 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctx0_4mb_tte.attr, attr 84 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctx0_256mb_tte.attr, attr 85 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctx0_256mb_tte.attr, attr 86 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctxnon0_8k_tte.attr, attr 87 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctxnon0_8k_tte.attr, attr 88 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctxnon0_64k_tte.attr, attr 89 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctxnon0_64k_tte.attr, attr 90 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctxnon0_4mb_tte.attr, attr 91 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctxnon0_4mb_tte.attr, attr 92 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_hits_ctxnon0_256mb_tte.attr, attr 93 arch/sparc/kernel/sysfs.c &dev_attr_dmmu_tsb_ticks_ctxnon0_256mb_tte.attr, attr 124 arch/sparc/kernel/sysfs.c struct device_attribute *attr, char *buf) attr 132 arch/sparc/kernel/sysfs.c struct device_attribute *attr, const char *buf, attr 174 arch/sparc/kernel/sysfs.c struct device_attribute *attr, char *buf) \ attr 182 arch/sparc/kernel/sysfs.c struct device_attribute *attr, char *buf) \ attr 115 arch/sparc/kernel/vio.c struct device_attribute *attr, char *buf) attr 130 arch/sparc/kernel/vio.c struct device_attribute *attr, char *buf) attr 137 arch/sparc/kernel/vio.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 147 arch/sparc/kernel/vio.c &dev_attr_devspec.attr, attr 148 arch/sparc/kernel/vio.c &dev_attr_type.attr, attr 149 arch/sparc/kernel/vio.c &dev_attr_modalias.attr, attr 187 arch/sparc/kernel/vio.c show_pciobppath_attr(struct device *dev, struct device_attribute *attr, attr 408 arch/sparc/kernel/vio.c &dev_attr_obppath.attr); attr 326 arch/x86/events/amd/core.c if (event->attr.exclude_host && event->attr.exclude_guest) attr 334 arch/x86/events/amd/core.c else if (event->attr.exclude_host) attr 336 arch/x86/events/amd/core.c else if (event->attr.exclude_guest) attr 359 arch/x86/events/amd/core.c if (event->attr.precise_ip && get_ibs_caps()) attr 369 arch/x86/events/amd/core.c if (event->attr.type == PERF_TYPE_RAW) attr 370 arch/x86/events/amd/core.c event->hw.config |= event->attr.config & AMD64_RAW_EVENT_MASK; attr 724 arch/x86/events/amd/core.c &format_attr_event.attr, attr 725 arch/x86/events/amd/core.c &format_attr_umask.attr, attr 726 arch/x86/events/amd/core.c &format_attr_edge.attr, attr 727 arch/x86/events/amd/core.c &format_attr_inv.attr, attr 728 arch/x86/events/amd/core.c &format_attr_cmask.attr, attr 221 arch/x86/events/amd/ibs.c switch (event->attr.precise_ip) { attr 231 arch/x86/events/amd/ibs.c switch (event->attr.type) { attr 233 arch/x86/events/amd/ibs.c switch (event->attr.config) { attr 240 arch/x86/events/amd/ibs.c switch (event->attr.config) { attr 263 arch/x86/events/amd/ibs.c perf_ibs = get_ibs_pmu(event->attr.type); attr 265 arch/x86/events/amd/ibs.c config = event->attr.config; attr 283 arch/x86/events/amd/ibs.c if (!event->attr.sample_freq && hwc->sample_period & 0x0f) attr 296 arch/x86/events/amd/ibs.c event->attr.sample_period = max_cnt << 4; attr 297 arch/x86/events/amd/ibs.c hwc->sample_period = event->attr.sample_period; attr 510 arch/x86/events/amd/ibs.c &format_attr_rand_en.attr, attr 616 arch/x86/events/amd/ibs.c if (event->attr.sample_type & PERF_SAMPLE_RAW) attr 629 arch/x86/events/amd/ibs.c if (event->attr.sample_type & PERF_SAMPLE_RAW) { attr 654 arch/x86/events/amd/ibs.c if (event->attr.sample_type & PERF_SAMPLE_RAW) { attr 734 arch/x86/events/amd/ibs.c struct attribute **attr = ibs_op_format_attrs; attr 740 arch/x86/events/amd/ibs.c *attr++ = &format_attr_cnt_ctl.attr; attr 61 arch/x86/events/amd/iommu.c &format_attr_csource.attr, attr 62 arch/x86/events/amd/iommu.c &format_attr_devid.attr, attr 63 arch/x86/events/amd/iommu.c &format_attr_pasid.attr, attr 64 arch/x86/events/amd/iommu.c &format_attr_domid.attr, attr 65 arch/x86/events/amd/iommu.c &format_attr_devid_mask.attr, attr 66 arch/x86/events/amd/iommu.c &format_attr_pasid_mask.attr, attr 67 arch/x86/events/amd/iommu.c &format_attr_domid_mask.attr, attr 84 arch/x86/events/amd/iommu.c struct kobj_attribute attr; attr 89 arch/x86/events/amd/iommu.c struct kobj_attribute *attr, char *buf) attr 92 arch/x86/events/amd/iommu.c container_of(attr, struct amd_iommu_event_desc, attr); attr 98 arch/x86/events/amd/iommu.c .attr = __ATTR(_name, 0444, _iommu_event_show, NULL), \ attr 136 arch/x86/events/amd/iommu.c struct device_attribute *attr, attr 144 arch/x86/events/amd/iommu.c &dev_attr_cpumask.attr, attr 212 arch/x86/events/amd/iommu.c if (event->attr.type != event->pmu->type) attr 227 arch/x86/events/amd/iommu.c hwc->conf = event->attr.config; attr 228 arch/x86/events/amd/iommu.c hwc->conf1 = event->attr.config1; attr 379 arch/x86/events/amd/iommu.c while (amd_iommu_v2_event_descs[i].attr.attr.name) attr 387 arch/x86/events/amd/iommu.c attrs[j] = &amd_iommu_v2_event_descs[j].attr.attr; attr 129 arch/x86/events/amd/power.c u64 cfg = event->attr.config & AMD_POWER_EVENT_MASK; attr 132 arch/x86/events/amd/power.c if (event->attr.type != pmu_class.type) attr 136 arch/x86/events/amd/power.c if (event->attr.sample_period) attr 151 arch/x86/events/amd/power.c get_attr_cpumask(struct device *dev, struct device_attribute *attr, char *buf) attr 159 arch/x86/events/amd/power.c &dev_attr_cpumask.attr, attr 193 arch/x86/events/amd/power.c &format_attr_event.attr, attr 188 arch/x86/events/amd/uncore.c if (event->attr.type != event->pmu->type) attr 199 arch/x86/events/amd/uncore.c hwc->config = event->attr.config & AMD64_RAW_EVENT_MASK_NB; attr 233 arch/x86/events/amd/uncore.c struct device_attribute *attr, attr 251 arch/x86/events/amd/uncore.c &dev_attr_cpumask.attr, attr 266 arch/x86/events/amd/uncore.c struct device_attribute *attr, \ attr 277 arch/x86/events/amd/uncore.c &format_attr_event_##_name.attr, \ attr 278 arch/x86/events/amd/uncore.c &format_attr_umask.attr, \ attr 127 arch/x86/events/core.c if (event->attr.config1 & ~er->valid_mask) attr 134 arch/x86/events/core.c reg->config = event->attr.config1; attr 302 arch/x86/events/core.c struct perf_event_attr *attr = &event->attr; attr 306 arch/x86/events/core.c config = attr->config; attr 332 arch/x86/events/core.c attr->config1 = hw_cache_extra_regs[cache_type][cache_op][cache_result]; attr 414 arch/x86/events/core.c struct perf_event_attr *attr = &event->attr; attr 424 arch/x86/events/core.c if (attr->type == PERF_TYPE_RAW) attr 425 arch/x86/events/core.c return x86_pmu_extra_regs(event->attr.config, event); attr 427 arch/x86/events/core.c if (attr->type == PERF_TYPE_HW_CACHE) attr 430 arch/x86/events/core.c if (attr->config >= x86_pmu.max_events) attr 433 arch/x86/events/core.c attr->config = array_index_nospec((unsigned long)attr->config, x86_pmu.max_events); attr 438 arch/x86/events/core.c config = x86_pmu.event_map(attr->config); attr 459 arch/x86/events/core.c u64 m = event->attr.branch_sample_type; attr 468 arch/x86/events/core.c if (!event->attr.exclude_user) attr 471 arch/x86/events/core.c if (!event->attr.exclude_kernel) attr 501 arch/x86/events/core.c if (event->attr.precise_ip) { attr 504 arch/x86/events/core.c if (event->attr.precise_ip > precise) attr 515 arch/x86/events/core.c if (event->attr.precise_ip > 1 && x86_pmu.intel_cap.pebs_format < 2) { attr 516 arch/x86/events/core.c u64 *br_type = &event->attr.branch_sample_type; attr 534 arch/x86/events/core.c if (!event->attr.exclude_user) attr 537 arch/x86/events/core.c if (!event->attr.exclude_kernel) attr 542 arch/x86/events/core.c if (event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK) attr 554 arch/x86/events/core.c if (!event->attr.exclude_user) attr 556 arch/x86/events/core.c if (!event->attr.exclude_kernel) attr 559 arch/x86/events/core.c if (event->attr.type == PERF_TYPE_RAW) attr 560 arch/x86/events/core.c event->hw.config |= event->attr.config & X86_RAW_EVENT_MASK; attr 562 arch/x86/events/core.c if (event->attr.sample_period && x86_pmu.limit_period) { attr 563 arch/x86/events/core.c if (x86_pmu.limit_period(event, event->attr.sample_period) > attr 564 arch/x86/events/core.c event->attr.sample_period) attr 569 arch/x86/events/core.c if (unlikely(event->attr.sample_regs_user & PERF_REG_EXTENDED_MASK)) attr 575 arch/x86/events/core.c if (unlikely(event->attr.sample_regs_intr & PERF_REG_EXTENDED_MASK)) { attr 579 arch/x86/events/core.c if (!event->attr.precise_ip) attr 1016 arch/x86/events/core.c if (!cpuc->is_fake && leader->attr.precise_ip) { attr 1647 arch/x86/events/core.c ssize_t events_sysfs_show(struct device *dev, struct device_attribute *attr, char *page) attr 1650 arch/x86/events/core.c container_of(attr, struct perf_pmu_events_attr, attr); attr 1664 arch/x86/events/core.c ssize_t events_ht_sysfs_show(struct device *dev, struct device_attribute *attr, attr 1668 arch/x86/events/core.c container_of(attr, struct perf_pmu_events_ht_attr, attr); attr 1719 arch/x86/events/core.c is_visible(struct kobject *kobj, struct attribute *attr, int idx) attr 1726 arch/x86/events/core.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); attr 1728 arch/x86/events/core.c return pmu_attr->event_str || x86_pmu.event_map(idx) ? attr->mode : 0; attr 2081 arch/x86/events/core.c switch (event->attr.type) { attr 2172 arch/x86/events/core.c struct device_attribute *attr, attr 2179 arch/x86/events/core.c struct device_attribute *attr, attr 2216 arch/x86/events/core.c &dev_attr_rdpmc.attr, attr 2225 arch/x86/events/core.c struct device_attribute *attr, attr 2234 arch/x86/events/core.c &dev_attr_max_precise.attr, attr 2348 arch/x86/events/core.c if (!event->attr.use_clockid) { attr 234 arch/x86/events/intel/bts.c if (!event->attr.exclude_kernel) attr 236 arch/x86/events/intel/bts.c if (!event->attr.exclude_user) attr 546 arch/x86/events/intel/bts.c if (event->attr.type != bts_pmu.type) attr 558 arch/x86/events/intel/bts.c if (event->attr.exclude_kernel && perf_paranoid_kernel() && attr 2173 arch/x86/events/intel/core.c if (unlikely(event->attr.precise_ip)) attr 2181 arch/x86/events/intel/core.c if (event->attr.precise_ip) attr 2204 arch/x86/events/intel/core.c if (!event->attr.precise_ip) attr 2220 arch/x86/events/intel/core.c if (x86_pmu.intel_cap.pebs_baseline && event->attr.precise_ip) { attr 2244 arch/x86/events/intel/core.c if (event->attr.exclude_host) attr 2246 arch/x86/events/intel/core.c if (event->attr.exclude_guest) attr 2252 arch/x86/events/intel/core.c if (unlikely(event->attr.precise_ip)) attr 2265 arch/x86/events/intel/core.c if (event->attr.precise_ip) attr 3198 arch/x86/events/intel/core.c if (event->attr.precise_ip < 3) attr 3205 arch/x86/events/intel/core.c if (event->attr.precise_ip < 3) attr 3214 arch/x86/events/intel/core.c if (event->attr.use_clockid) attr 3216 arch/x86/events/intel/core.c if (!event->attr.exclude_kernel) attr 3218 arch/x86/events/intel/core.c if (event->attr.sample_regs_user & ~PEBS_GP_REGS) attr 3225 arch/x86/events/intel/core.c struct perf_event_attr *attr = &event->attr; attr 3233 arch/x86/events/intel/core.c if (!attr->exclude_kernel) attr 3237 arch/x86/events/intel/core.c if (attr->precise_ip) attr 3271 arch/x86/events/intel/core.c if (event->attr.precise_ip) { attr 3272 arch/x86/events/intel/core.c if (!(event->attr.freq || (event->attr.wakeup_events && !event->attr.watermark))) { attr 3274 arch/x86/events/intel/core.c if (!(event->attr.sample_type & attr 3281 arch/x86/events/intel/core.c if (event->attr.sample_type & PERF_SAMPLE_CALLCHAIN) attr 3282 arch/x86/events/intel/core.c event->attr.sample_type |= __PERF_SAMPLE_CALLCHAIN_EARLY; attr 3302 arch/x86/events/intel/core.c if (event->attr.aux_output) { attr 3303 arch/x86/events/intel/core.c if (!event->attr.precise_ip) attr 3309 arch/x86/events/intel/core.c if (event->attr.type != PERF_TYPE_RAW) attr 3312 arch/x86/events/intel/core.c if (!(event->attr.config & ARCH_PERFMON_EVENTSEL_ANY)) attr 3385 arch/x86/events/intel/core.c if (event->attr.exclude_host) attr 3387 arch/x86/events/intel/core.c else if (event->attr.exclude_guest) attr 3397 arch/x86/events/intel/core.c if (!event->attr.exclude_host) attr 3410 arch/x86/events/intel/core.c cpuc->events[idx]->attr.exclude_host) attr 3425 arch/x86/events/intel/core.c event->hw.config |= event->attr.config & (HSW_IN_TX|HSW_IN_TX_CHECKPOINTED); attr 3434 arch/x86/events/intel/core.c event->attr.precise_ip > 0)) attr 3447 arch/x86/events/intel/core.c if (event->attr.sample_period > 0 && attr 3448 arch/x86/events/intel/core.c event->attr.sample_period < 0x7fffffff) attr 3492 arch/x86/events/intel/core.c if ((event->attr.precise_ip == 3) && attr 3506 arch/x86/events/intel/core.c if (event->attr.precise_ip == 3) attr 3524 arch/x86/events/intel/core.c if (event->attr.precise_ip == 3) { attr 3599 arch/x86/events/intel/core.c &format_attr_event.attr, attr 3600 arch/x86/events/intel/core.c &format_attr_umask.attr, attr 3601 arch/x86/events/intel/core.c &format_attr_edge.attr, attr 3602 arch/x86/events/intel/core.c &format_attr_pc.attr, attr 3603 arch/x86/events/intel/core.c &format_attr_inv.attr, attr 3604 arch/x86/events/intel/core.c &format_attr_cmask.attr, attr 3842 arch/x86/events/intel/core.c &format_attr_event.attr, attr 3843 arch/x86/events/intel/core.c &format_attr_umask.attr, attr 3844 arch/x86/events/intel/core.c &format_attr_edge.attr, attr 3845 arch/x86/events/intel/core.c &format_attr_pc.attr, attr 3846 arch/x86/events/intel/core.c &format_attr_any.attr, attr 3847 arch/x86/events/intel/core.c &format_attr_inv.attr, attr 3848 arch/x86/events/intel/core.c &format_attr_cmask.attr, attr 3853 arch/x86/events/intel/core.c &format_attr_in_tx.attr, attr 3854 arch/x86/events/intel/core.c &format_attr_in_tx_cp.attr, attr 3855 arch/x86/events/intel/core.c &format_attr_offcore_rsp.attr, attr 3856 arch/x86/events/intel/core.c &format_attr_ldlat.attr, attr 3861 arch/x86/events/intel/core.c &format_attr_offcore_rsp.attr, attr 3862 arch/x86/events/intel/core.c &format_attr_ldlat.attr, attr 3867 arch/x86/events/intel/core.c &format_attr_offcore_rsp.attr, attr 3872 arch/x86/events/intel/core.c &format_attr_frontend.attr, attr 4302 arch/x86/events/intel/core.c struct device_attribute *attr, attr 4311 arch/x86/events/intel/core.c struct device_attribute *attr, attr 4353 arch/x86/events/intel/core.c struct device_attribute *attr, attr 4360 arch/x86/events/intel/core.c struct device_attribute *attr, attr 4387 arch/x86/events/intel/core.c struct device_attribute *attr, attr 4396 arch/x86/events/intel/core.c &dev_attr_branches.attr, attr 4403 arch/x86/events/intel/core.c struct device_attribute *attr, attr 4412 arch/x86/events/intel/core.c &dev_attr_pmu_name.attr, attr 4421 arch/x86/events/intel/core.c &dev_attr_freeze_on_smi.attr, attr 4422 arch/x86/events/intel/core.c &dev_attr_allow_tsx_force_abort.attr, attr 4427 arch/x86/events/intel/core.c tsx_is_visible(struct kobject *kobj, struct attribute *attr, int i) attr 4429 arch/x86/events/intel/core.c return boot_cpu_has(X86_FEATURE_RTM) ? attr->mode : 0; attr 4433 arch/x86/events/intel/core.c pebs_is_visible(struct kobject *kobj, struct attribute *attr, int i) attr 4435 arch/x86/events/intel/core.c return x86_pmu.pebs ? attr->mode : 0; attr 4439 arch/x86/events/intel/core.c lbr_is_visible(struct kobject *kobj, struct attribute *attr, int i) attr 4441 arch/x86/events/intel/core.c return x86_pmu.lbr_nr ? attr->mode : 0; attr 4445 arch/x86/events/intel/core.c exra_is_visible(struct kobject *kobj, struct attribute *attr, int i) attr 4447 arch/x86/events/intel/core.c return x86_pmu.version >= 2 ? attr->mode : 0; attr 4451 arch/x86/events/intel/core.c default_is_visible(struct kobject *kobj, struct attribute *attr, int i) attr 4453 arch/x86/events/intel/core.c if (attr == &dev_attr_allow_tsx_force_abort.attr) attr 4454 arch/x86/events/intel/core.c return x86_pmu.flags & PMU_FL_TFA ? attr->mode : 0; attr 4456 arch/x86/events/intel/core.c return attr->mode; attr 111 arch/x86/events/intel/cstate.c struct kobj_attribute *attr, \ attr 121 arch/x86/events/intel/cstate.c struct device_attribute *attr, attr 137 arch/x86/events/intel/cstate.c struct perf_pmu_events_attr *attr; attr 194 arch/x86/events/intel/cstate.c &format_attr_core_event.attr, attr 207 arch/x86/events/intel/cstate.c &dev_attr_cpumask.attr, attr 273 arch/x86/events/intel/cstate.c &format_attr_pkg_event.attr, attr 291 arch/x86/events/intel/cstate.c struct device_attribute *attr, attr 306 arch/x86/events/intel/cstate.c u64 cfg = event->attr.config; attr 309 arch/x86/events/intel/cstate.c if (event->attr.type != event->pmu->type) attr 313 arch/x86/events/intel/cstate.c if (event->attr.sample_period) /* no sampling */ attr 631 arch/x86/events/intel/ds.c if (event->attr.exclude_kernel && attr 650 arch/x86/events/intel/ds.c if (event->attr.exclude_kernel && attr 876 arch/x86/events/intel/ds.c if (!event->attr.precise_ip) attr 967 arch/x86/events/intel/ds.c struct perf_event_attr *attr = &event->attr; attr 968 arch/x86/events/intel/ds.c u64 sample_type = attr->sample_type; attr 973 arch/x86/events/intel/ds.c attr->precise_ip > 1) attr 986 arch/x86/events/intel/ds.c (attr->sample_regs_intr & PEBS_GP_REGS); attr 989 arch/x86/events/intel/ds.c ((attr->config & INTEL_ARCH_EVENT_MASK) == attr 992 arch/x86/events/intel/ds.c if (gprs || (attr->precise_ip < 2) || tsx_weight) attr 996 arch/x86/events/intel/ds.c (attr->sample_regs_intr & PERF_REG_EXTENDED_MASK)) attr 1356 arch/x86/events/intel/ds.c sample_type = event->attr.sample_type; attr 1423 arch/x86/events/intel/ds.c if (event->attr.precise_ip > 1) { attr 1474 arch/x86/events/intel/ds.c event->attr.use_clockid == 0) attr 1528 arch/x86/events/intel/ds.c sample_type = event->attr.sample_type; attr 1533 arch/x86/events/intel/ds.c if (event->attr.use_clockid == 0) attr 1564 arch/x86/events/intel/ds.c if (event->attr.precise_ip < 2) { attr 1796 arch/x86/events/intel/ds.c if (!event->attr.precise_ip) attr 1924 arch/x86/events/intel/ds.c if (WARN_ON_ONCE(!event->attr.precise_ip)) attr 1988 arch/x86/events/intel/ds.c if (WARN_ON_ONCE(!event->attr.precise_ip)) attr 282 arch/x86/events/intel/knc.c &format_attr_event.attr, attr 283 arch/x86/events/intel/knc.c &format_attr_umask.attr, attr 284 arch/x86/events/intel/knc.c &format_attr_edge.attr, attr 285 arch/x86/events/intel/knc.c &format_attr_inv.attr, attr 286 arch/x86/events/intel/knc.c &format_attr_cmask.attr, attr 491 arch/x86/events/intel/lbr.c if (x86_pmu.intel_cap.pebs_baseline && event->attr.precise_ip > 0) attr 512 arch/x86/events/intel/lbr.c if (x86_pmu.intel_cap.pebs_baseline && event->attr.precise_ip > 0) attr 690 arch/x86/events/intel/lbr.c u64 br_type = event->attr.branch_sample_type; attr 759 arch/x86/events/intel/lbr.c u64 br_type = event->attr.branch_sample_type; attr 754 arch/x86/events/intel/p4.c v = p4_config_unpack_event(event->attr.config); attr 784 arch/x86/events/intel/p4.c emask = p4_config_unpack_escr(event->attr.config) & P4_ESCR_EVENTMASK_MASK; attr 791 arch/x86/events/intel/p4.c if (p4_config_pebs_has(event->attr.config, P4_PEBS_CONFIG_ENABLE)) attr 794 arch/x86/events/intel/p4.c v = p4_config_unpack_metric(event->attr.config); attr 814 arch/x86/events/intel/p4.c escr = p4_default_escr_conf(cpu, event->attr.exclude_kernel, attr 815 arch/x86/events/intel/p4.c event->attr.exclude_user); attr 822 arch/x86/events/intel/p4.c if (event->attr.type == PERF_TYPE_RAW) { attr 829 arch/x86/events/intel/p4.c event->attr.config &= P4_CONFIG_MASK; attr 839 arch/x86/events/intel/p4.c event->hw.config |= event->attr.config; attr 840 arch/x86/events/intel/p4.c bind = p4_config_get_bind(event->attr.config); attr 1295 arch/x86/events/intel/p4.c &format_attr_cccr.attr, attr 1296 arch/x86/events/intel/p4.c &format_attr_escr.attr, attr 1297 arch/x86/events/intel/p4.c &format_attr_ht.attr, attr 192 arch/x86/events/intel/p6.c &format_attr_event.attr, attr 193 arch/x86/events/intel/p6.c &format_attr_umask.attr, attr 194 arch/x86/events/intel/p6.c &format_attr_edge.attr, attr 195 arch/x86/events/intel/p6.c &format_attr_pc.attr, attr 196 arch/x86/events/intel/p6.c &format_attr_inv.attr, attr 197 arch/x86/events/intel/p6.c &format_attr_cmask.attr, attr 88 arch/x86/events/intel/pt.c struct device_attribute *attr, attr 92 arch/x86/events/intel/pt.c container_of(attr, struct dev_ext_attribute, attr); attr 116 arch/x86/events/intel/pt.c &format_attr_pt.attr, attr 117 arch/x86/events/intel/pt.c &format_attr_cyc.attr, attr 118 arch/x86/events/intel/pt.c &format_attr_pwr_evt.attr, attr 119 arch/x86/events/intel/pt.c &format_attr_fup_on_ptw.attr, attr 120 arch/x86/events/intel/pt.c &format_attr_mtc.attr, attr 121 arch/x86/events/intel/pt.c &format_attr_tsc.attr, attr 122 arch/x86/events/intel/pt.c &format_attr_noretcomp.attr, attr 123 arch/x86/events/intel/pt.c &format_attr_ptw.attr, attr 124 arch/x86/events/intel/pt.c &format_attr_branch.attr, attr 125 arch/x86/events/intel/pt.c &format_attr_mtc_period.attr, attr 126 arch/x86/events/intel/pt.c &format_attr_cyc_thresh.attr, attr 127 arch/x86/events/intel/pt.c &format_attr_psb_period.attr, attr 137 arch/x86/events/intel/pt.c pt_timing_attr_show(struct device *dev, struct device_attribute *attr, attr 141 arch/x86/events/intel/pt.c container_of(attr, struct perf_pmu_events_attr, attr); attr 163 arch/x86/events/intel/pt.c &timing_attr_max_nonturbo_ratio.attr.attr, attr 164 arch/x86/events/intel/pt.c &timing_attr_tsc_art_ratio.attr.attr, attr 253 arch/x86/events/intel/pt.c de_attr->attr.attr.name = pt_caps[i].name; attr 255 arch/x86/events/intel/pt.c sysfs_attr_init(&de_attr->attr.attr); attr 257 arch/x86/events/intel/pt.c de_attr->attr.attr.mode = S_IRUGO; attr 258 arch/x86/events/intel/pt.c de_attr->attr.show = pt_cap_show; attr 261 arch/x86/events/intel/pt.c attrs[i] = &de_attr->attr.attr; attr 306 arch/x86/events/intel/pt.c u64 config = event->attr.config; attr 490 arch/x86/events/intel/pt.c if (event->attr.config & BIT(0)) { attr 491 arch/x86/events/intel/pt.c reg |= event->attr.config & RTIT_CTL_BRANCH_EN; attr 496 arch/x86/events/intel/pt.c if (!event->attr.exclude_kernel) attr 498 arch/x86/events/intel/pt.c if (!event->attr.exclude_user) attr 501 arch/x86/events/intel/pt.c reg |= (event->attr.config & PT_CONFIG_MASK); attr 1540 arch/x86/events/intel/pt.c if (event->attr.type != pt_pmu.pmu.type) attr 96 arch/x86/events/intel/rapl.c struct kobj_attribute *attr, \ attr 109 arch/x86/events/intel/rapl.c .attr = __ATTR(_name, 0444, perf_event_sysfs_show, NULL), \ attr 332 arch/x86/events/intel/rapl.c u64 cfg = event->attr.config & RAPL_EVENT_MASK; attr 337 arch/x86/events/intel/rapl.c if (event->attr.type != rapl_pmus->pmu.type) attr 341 arch/x86/events/intel/rapl.c if (event->attr.config & ~RAPL_EVENT_MASK) attr 360 arch/x86/events/intel/rapl.c if (event->attr.sample_period) /* no sampling */ attr 382 arch/x86/events/intel/rapl.c struct device_attribute *attr, char *buf) attr 390 arch/x86/events/intel/rapl.c &dev_attr_cpumask.attr, attr 435 arch/x86/events/intel/rapl.c &format_attr_event.attr, attr 96 arch/x86/events/intel/uncore.c struct kobj_attribute *attr, char *buf) attr 99 arch/x86/events/intel/uncore.c container_of(attr, struct uncore_event_desc, attr); attr 402 arch/x86/events/intel/uncore.c if (event->attr.config == UNCORE_FIXED_EVENT) attr 703 arch/x86/events/intel/uncore.c if (event->attr.type != event->pmu->type) attr 734 arch/x86/events/intel/uncore.c if (event->attr.config == UNCORE_FIXED_EVENT) { attr 748 arch/x86/events/intel/uncore.c hwc->config = event->attr.config; attr 760 arch/x86/events/intel/uncore.c hwc->config = event->attr.config & attr 812 arch/x86/events/intel/uncore.c struct device_attribute *attr, char *buf) attr 820 arch/x86/events/intel/uncore.c &dev_attr_cpumask.attr, attr 939 arch/x86/events/intel/uncore.c for (i = 0; type->event_descs[i].attr.attr.name; i++); attr 950 arch/x86/events/intel/uncore.c attr_group->attrs[j] = &type->event_descs[j].attr.attr; attr 147 arch/x86/events/intel/uncore.h struct kobj_attribute attr; attr 169 arch/x86/events/intel/uncore.h struct kobj_attribute *attr, char *buf); attr 173 arch/x86/events/intel/uncore.h .attr = __ATTR(_name, 0444, uncore_event_show, NULL), \ attr 179 arch/x86/events/intel/uncore.h struct kobj_attribute *attr, \ attr 428 arch/x86/events/intel/uncore.h u64 cfg = event->attr.config; attr 271 arch/x86/events/intel/uncore_nhmex.c &format_attr_event.attr, attr 272 arch/x86/events/intel/uncore_nhmex.c &format_attr_edge.attr, attr 295 arch/x86/events/intel/uncore_nhmex.c &format_attr_event.attr, attr 296 arch/x86/events/intel/uncore_nhmex.c &format_attr_umask.attr, attr 297 arch/x86/events/intel/uncore_nhmex.c &format_attr_edge.attr, attr 298 arch/x86/events/intel/uncore_nhmex.c &format_attr_inv.attr, attr 299 arch/x86/events/intel/uncore_nhmex.c &format_attr_thresh8.attr, attr 372 arch/x86/events/intel/uncore_nhmex.c reg1->config = event->attr.config1; attr 373 arch/x86/events/intel/uncore_nhmex.c reg2->config = event->attr.config2; attr 404 arch/x86/events/intel/uncore_nhmex.c &format_attr_event5.attr, attr 405 arch/x86/events/intel/uncore_nhmex.c &format_attr_counter.attr, attr 406 arch/x86/events/intel/uncore_nhmex.c &format_attr_match.attr, attr 407 arch/x86/events/intel/uncore_nhmex.c &format_attr_mask.attr, attr 457 arch/x86/events/intel/uncore_nhmex.c reg1->config = event->attr.config1; attr 458 arch/x86/events/intel/uncore_nhmex.c reg2->config = event->attr.config2; attr 478 arch/x86/events/intel/uncore_nhmex.c &format_attr_event.attr, attr 479 arch/x86/events/intel/uncore_nhmex.c &format_attr_umask.attr, attr 480 arch/x86/events/intel/uncore_nhmex.c &format_attr_edge.attr, attr 481 arch/x86/events/intel/uncore_nhmex.c &format_attr_inv.attr, attr 482 arch/x86/events/intel/uncore_nhmex.c &format_attr_thresh8.attr, attr 483 arch/x86/events/intel/uncore_nhmex.c &format_attr_match.attr, attr 484 arch/x86/events/intel/uncore_nhmex.c &format_attr_mask.attr, attr 781 arch/x86/events/intel/uncore_nhmex.c if (event->attr.config1 & ~er->valid_mask) attr 798 arch/x86/events/intel/uncore_nhmex.c reg1->config = event->attr.config1; attr 807 arch/x86/events/intel/uncore_nhmex.c if (event->attr.config2 & NHMEX_M_PMON_MM_CFG_EN) attr 808 arch/x86/events/intel/uncore_nhmex.c reg2->config = event->attr.config2; attr 883 arch/x86/events/intel/uncore_nhmex.c &format_attr_count_mode.attr, attr 884 arch/x86/events/intel/uncore_nhmex.c &format_attr_storage_mode.attr, attr 885 arch/x86/events/intel/uncore_nhmex.c &format_attr_wrap_mode.attr, attr 886 arch/x86/events/intel/uncore_nhmex.c &format_attr_flag_mode.attr, attr 887 arch/x86/events/intel/uncore_nhmex.c &format_attr_inc_sel.attr, attr 888 arch/x86/events/intel/uncore_nhmex.c &format_attr_set_flag_sel.attr, attr 889 arch/x86/events/intel/uncore_nhmex.c &format_attr_filter_cfg_en.attr, attr 890 arch/x86/events/intel/uncore_nhmex.c &format_attr_filter_match.attr, attr 891 arch/x86/events/intel/uncore_nhmex.c &format_attr_filter_mask.attr, attr 892 arch/x86/events/intel/uncore_nhmex.c &format_attr_dsp.attr, attr 893 arch/x86/events/intel/uncore_nhmex.c &format_attr_thr.attr, attr 894 arch/x86/events/intel/uncore_nhmex.c &format_attr_fvc.attr, attr 895 arch/x86/events/intel/uncore_nhmex.c &format_attr_pgt.attr, attr 896 arch/x86/events/intel/uncore_nhmex.c &format_attr_map.attr, attr 897 arch/x86/events/intel/uncore_nhmex.c &format_attr_iss.attr, attr 898 arch/x86/events/intel/uncore_nhmex.c &format_attr_pld.attr, attr 1099 arch/x86/events/intel/uncore_nhmex.c reg1->config = event->attr.config1; attr 1104 arch/x86/events/intel/uncore_nhmex.c hwc->config |= event->attr.config & (~0ULL << 32); attr 1105 arch/x86/events/intel/uncore_nhmex.c reg2->config = event->attr.config2; attr 1158 arch/x86/events/intel/uncore_nhmex.c &format_attr_event5.attr, attr 1159 arch/x86/events/intel/uncore_nhmex.c &format_attr_xbr_mm_cfg.attr, attr 1160 arch/x86/events/intel/uncore_nhmex.c &format_attr_xbr_match.attr, attr 1161 arch/x86/events/intel/uncore_nhmex.c &format_attr_xbr_mask.attr, attr 1162 arch/x86/events/intel/uncore_nhmex.c &format_attr_qlx_cfg.attr, attr 1163 arch/x86/events/intel/uncore_nhmex.c &format_attr_iperf_cfg.attr, attr 162 arch/x86/events/intel/uncore_snb.c &format_attr_event.attr, attr 163 arch/x86/events/intel/uncore_snb.c &format_attr_umask.attr, attr 164 arch/x86/events/intel/uncore_snb.c &format_attr_edge.attr, attr 165 arch/x86/events/intel/uncore_snb.c &format_attr_inv.attr, attr 166 arch/x86/events/intel/uncore_snb.c &format_attr_cmask5.attr, attr 318 arch/x86/events/intel/uncore_snb.c &format_attr_event.attr, attr 402 arch/x86/events/intel/uncore_snb.c &format_attr_event.attr, attr 453 arch/x86/events/intel/uncore_snb.c u64 cfg = event->attr.config & SNB_UNCORE_PCI_IMC_EVENT_MASK; attr 456 arch/x86/events/intel/uncore_snb.c if (event->attr.type != event->pmu->type) attr 469 arch/x86/events/intel/uncore_snb.c if (event->attr.sample_period) /* no sampling */ attr 480 arch/x86/events/intel/uncore_snb.c if (event->attr.config & ~SNB_UNCORE_PCI_IMC_EVENT_MASK) attr 944 arch/x86/events/intel/uncore_snb.c &format_attr_event.attr, attr 945 arch/x86/events/intel/uncore_snb.c &format_attr_umask.attr, attr 946 arch/x86/events/intel/uncore_snb.c &format_attr_edge.attr, attr 947 arch/x86/events/intel/uncore_snb.c &format_attr_inv.attr, attr 948 arch/x86/events/intel/uncore_snb.c &format_attr_cmask8.attr, attr 577 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 578 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 579 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 580 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 581 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 586 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 587 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 588 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 589 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 590 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh5.attr, attr 595 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 596 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 597 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 598 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 599 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 600 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 601 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_tid.attr, attr 602 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nid.attr, attr 603 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_state.attr, attr 604 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_opc.attr, attr 609 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 610 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_sel.attr, attr 611 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 612 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 613 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh5.attr, attr 614 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_invert.attr, attr 615 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_edge.attr, attr 616 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band0.attr, attr 617 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band1.attr, attr 618 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band2.attr, attr 619 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band3.attr, attr 624 arch/x86/events/intel/uncore_snbep.c &format_attr_event_ext.attr, attr 625 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 626 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 627 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 628 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 629 arch/x86/events/intel/uncore_snbep.c &format_attr_match_rds.attr, attr 630 arch/x86/events/intel/uncore_snbep.c &format_attr_match_rnid30.attr, attr 631 arch/x86/events/intel/uncore_snbep.c &format_attr_match_rnid4.attr, attr 632 arch/x86/events/intel/uncore_snbep.c &format_attr_match_dnid.attr, attr 633 arch/x86/events/intel/uncore_snbep.c &format_attr_match_mc.attr, attr 634 arch/x86/events/intel/uncore_snbep.c &format_attr_match_opc.attr, attr 635 arch/x86/events/intel/uncore_snbep.c &format_attr_match_vnw.attr, attr 636 arch/x86/events/intel/uncore_snbep.c &format_attr_match0.attr, attr 637 arch/x86/events/intel/uncore_snbep.c &format_attr_match1.attr, attr 638 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_rds.attr, attr 639 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_rnid30.attr, attr 640 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_rnid4.attr, attr 641 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_dnid.attr, attr 642 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_mc.attr, attr 643 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_opc.attr, attr 644 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_vnw.attr, attr 645 arch/x86/events/intel/uncore_snbep.c &format_attr_mask0.attr, attr 646 arch/x86/events/intel/uncore_snbep.c &format_attr_mask1.attr, attr 941 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & snbep_cbox_filter_mask(idx); attr 1052 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & (0xff << (reg1->idx * 8)); attr 1108 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1; attr 1110 arch/x86/events/intel/uncore_snbep.c reg2->config = event->attr.config2; attr 1427 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 1428 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 1429 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 1430 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 1431 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 1436 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 1437 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 1438 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 1439 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 1440 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh5.attr, attr 1445 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 1446 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 1447 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 1448 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 1449 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 1450 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_tid.attr, attr 1451 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_link.attr, attr 1452 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_state2.attr, attr 1453 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nid2.attr, attr 1454 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_opc2.attr, attr 1455 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nc.attr, attr 1456 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_c6.attr, attr 1457 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_isoc.attr, attr 1462 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 1463 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_sel.attr, attr 1464 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 1465 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh5.attr, attr 1466 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_invert.attr, attr 1467 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_edge.attr, attr 1468 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band0.attr, attr 1469 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band1.attr, attr 1470 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band2.attr, attr 1471 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band3.attr, attr 1476 arch/x86/events/intel/uncore_snbep.c &format_attr_event_ext.attr, attr 1477 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 1478 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 1479 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 1480 arch/x86/events/intel/uncore_snbep.c &format_attr_match_rds.attr, attr 1481 arch/x86/events/intel/uncore_snbep.c &format_attr_match_rnid30.attr, attr 1482 arch/x86/events/intel/uncore_snbep.c &format_attr_match_rnid4.attr, attr 1483 arch/x86/events/intel/uncore_snbep.c &format_attr_match_dnid.attr, attr 1484 arch/x86/events/intel/uncore_snbep.c &format_attr_match_mc.attr, attr 1485 arch/x86/events/intel/uncore_snbep.c &format_attr_match_opc.attr, attr 1486 arch/x86/events/intel/uncore_snbep.c &format_attr_match_vnw.attr, attr 1487 arch/x86/events/intel/uncore_snbep.c &format_attr_match0.attr, attr 1488 arch/x86/events/intel/uncore_snbep.c &format_attr_match1.attr, attr 1489 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_rds.attr, attr 1490 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_rnid30.attr, attr 1491 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_rnid4.attr, attr 1492 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_dnid.attr, attr 1493 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_mc.attr, attr 1494 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_opc.attr, attr 1495 arch/x86/events/intel/uncore_snbep.c &format_attr_mask_vnw.attr, attr 1496 arch/x86/events/intel/uncore_snbep.c &format_attr_mask0.attr, attr 1497 arch/x86/events/intel/uncore_snbep.c &format_attr_mask1.attr, attr 1625 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & ivbep_cbox_filter_mask(idx); attr 1948 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 1949 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 1950 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 1951 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 1952 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 1953 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh5.attr, attr 1978 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 1979 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 1980 arch/x86/events/intel/uncore_snbep.c &format_attr_qor.attr, attr 1981 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 1982 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 1983 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 1984 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 1985 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_tid4.attr, attr 1986 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_link3.attr, attr 1987 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_state4.attr, attr 1988 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_local.attr, attr 1989 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_all_op.attr, attr 1990 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nnm.attr, attr 1991 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_opc3.attr, attr 1992 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nc.attr, attr 1993 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_isoc.attr, attr 2053 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & knl_cha_filter_mask(idx); attr 2095 arch/x86/events/intel/uncore_snbep.c &format_attr_event2.attr, attr 2096 arch/x86/events/intel/uncore_snbep.c &format_attr_use_occ_ctr.attr, attr 2097 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_sel.attr, attr 2098 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 2099 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 2100 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 2101 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh6.attr, attr 2102 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_invert.attr, attr 2103 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_edge_det.attr, attr 2151 arch/x86/events/intel/uncore_snbep.c if ((event->attr.config & SNBEP_PMON_CTL_EV_SEL_MASK) attr 2248 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 2249 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 2250 arch/x86/events/intel/uncore_snbep.c &format_attr_qor.attr, attr 2251 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 2252 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 2253 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 2445 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 2446 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 2447 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 2448 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 2449 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh5.attr, attr 2450 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_tid2.attr, attr 2451 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_cid.attr, attr 2464 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & HSWEP_U_MSR_PMON_BOX_FILTER_MASK; attr 2493 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 2494 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 2495 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 2496 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 2497 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 2498 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_tid3.attr, attr 2499 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_link2.attr, attr 2500 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_state3.attr, attr 2501 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nid2.attr, attr 2502 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_opc2.attr, attr 2503 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nc.attr, attr 2504 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_c6.attr, attr 2505 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_isoc.attr, attr 2608 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & hswep_cbox_filter_mask(idx); attr 2682 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 2683 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 2684 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 2685 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 2686 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 2687 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 2719 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & (0xff << reg1->idx); attr 3412 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 3413 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 3414 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 3415 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 3416 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 3417 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 3418 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_tid4.attr, attr 3419 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_state5.attr, attr 3420 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_rem.attr, attr 3421 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_loc.attr, attr 3422 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nm.attr, attr 3423 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_all_op.attr, attr 3424 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_not_nm.attr, attr 3425 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_opc_0.attr, attr 3426 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_opc_1.attr, attr 3427 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_nc.attr, attr 3428 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_isoc.attr, attr 3501 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & skx_cha_filter_mask(idx); attr 3536 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 3537 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 3538 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 3539 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 3540 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh9.attr, attr 3541 arch/x86/events/intel/uncore_snbep.c &format_attr_ch_mask.attr, attr 3542 arch/x86/events/intel/uncore_snbep.c &format_attr_fc_mask.attr, attr 3655 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 3656 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 3677 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 3678 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 3679 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 3680 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 3681 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 3705 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 3706 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 3707 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 3708 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 3709 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 3710 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_invert.attr, attr 3711 arch/x86/events/intel/uncore_snbep.c &format_attr_occ_edge_det.attr, attr 3712 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band0.attr, attr 3713 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band1.attr, attr 3714 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band2.attr, attr 3715 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_band3.attr, attr 3802 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 3803 arch/x86/events/intel/uncore_snbep.c &format_attr_umask_ext.attr, attr 3804 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 3805 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 3806 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 4053 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 4054 arch/x86/events/intel/uncore_snbep.c &format_attr_umask_ext2.attr, attr 4055 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 4056 arch/x86/events/intel/uncore_snbep.c &format_attr_tid_en.attr, attr 4057 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 4058 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 4059 arch/x86/events/intel/uncore_snbep.c &format_attr_filter_tid5.attr, attr 4073 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & SKX_CHA_MSR_PMON_BOX_FILTER_TID; attr 4117 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 4118 arch/x86/events/intel/uncore_snbep.c &format_attr_umask.attr, attr 4119 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 4120 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 4121 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh9.attr, attr 4122 arch/x86/events/intel/uncore_snbep.c &format_attr_ch_mask2.attr, attr 4123 arch/x86/events/intel/uncore_snbep.c &format_attr_fc_mask2.attr, attr 4184 arch/x86/events/intel/uncore_snbep.c reg1->config = event->attr.config1 & (0xff << reg1->idx); attr 4299 arch/x86/events/intel/uncore_snbep.c &format_attr_event.attr, attr 4300 arch/x86/events/intel/uncore_snbep.c &format_attr_umask_ext3.attr, attr 4301 arch/x86/events/intel/uncore_snbep.c &format_attr_edge.attr, attr 4302 arch/x86/events/intel/uncore_snbep.c &format_attr_inv.attr, attr 4303 arch/x86/events/intel/uncore_snbep.c &format_attr_thresh8.attr, attr 130 arch/x86/events/msr.c &attr_therm.attr.attr, attr 131 arch/x86/events/msr.c &attr_therm_snap.attr.attr, attr 132 arch/x86/events/msr.c &attr_therm_unit.attr.attr, attr 153 arch/x86/events/msr.c &attr_tsc.attr.attr, attr 164 arch/x86/events/msr.c &format_attr_event.attr, attr 191 arch/x86/events/msr.c u64 cfg = event->attr.config; attr 193 arch/x86/events/msr.c if (event->attr.type != event->pmu->type) attr 197 arch/x86/events/msr.c if (event->attr.sample_period) /* no sampling */ attr 742 arch/x86/events/perf_event.h #define EVENT_PTR(_id) &event_attr_##_id.attr.attr attr 746 arch/x86/events/perf_event.h .attr = __ATTR(_name, 0444, events_sysfs_show, NULL), \ attr 753 arch/x86/events/perf_event.h .attr = __ATTR(_name, 0444, events_sysfs_show, NULL), \ attr 760 arch/x86/events/perf_event.h .attr = __ATTR(_name, 0444, events_ht_sysfs_show, NULL),\ attr 900 arch/x86/events/perf_event.h ssize_t events_sysfs_show(struct device *dev, struct device_attribute *attr, attr 902 arch/x86/events/perf_event.h ssize_t events_ht_sysfs_show(struct device *dev, struct device_attribute *attr, attr 930 arch/x86/events/perf_event.h if (event->attr.freq) attr 8 arch/x86/events/probe.c not_visible(struct kobject *kobj, struct attribute *attr, int i) attr 18 arch/x86/events/probe.h &attr_##_name.attr.attr, \ attr 62 arch/x86/include/asm/efi.h #define efi_ioremap(addr, size, type, attr) ioremap_cache(addr, size) attr 224 arch/x86/include/asm/efi.h #define efi_table_attr(table, attr, instance) \ attr 226 arch/x86/include/asm/efi.h ((table##_64_t *)(unsigned long)instance)->attr : \ attr 227 arch/x86/include/asm/efi.h ((table##_32_t *)(unsigned long)instance)->attr) attr 58 arch/x86/include/asm/hw_breakpoint.h const struct perf_event_attr *attr, attr 110 arch/x86/include/asm/inat.h static inline int inat_is_legacy_prefix(insn_attr_t attr) attr 112 arch/x86/include/asm/inat.h attr &= INAT_PFX_MASK; attr 113 arch/x86/include/asm/inat.h return attr && attr <= INAT_LGCPFX_MAX; attr 116 arch/x86/include/asm/inat.h static inline int inat_is_address_size_prefix(insn_attr_t attr) attr 118 arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; attr 121 arch/x86/include/asm/inat.h static inline int inat_is_operand_size_prefix(insn_attr_t attr) attr 123 arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; attr 126 arch/x86/include/asm/inat.h static inline int inat_is_rex_prefix(insn_attr_t attr) attr 128 arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_REX; attr 131 arch/x86/include/asm/inat.h static inline int inat_last_prefix_id(insn_attr_t attr) attr 133 arch/x86/include/asm/inat.h if ((attr & INAT_PFX_MASK) > INAT_LSTPFX_MAX) attr 136 arch/x86/include/asm/inat.h return attr & INAT_PFX_MASK; attr 139 arch/x86/include/asm/inat.h static inline int inat_is_vex_prefix(insn_attr_t attr) attr 141 arch/x86/include/asm/inat.h attr &= INAT_PFX_MASK; attr 142 arch/x86/include/asm/inat.h return attr == INAT_PFX_VEX2 || attr == INAT_PFX_VEX3 || attr 143 arch/x86/include/asm/inat.h attr == INAT_PFX_EVEX; attr 146 arch/x86/include/asm/inat.h static inline int inat_is_evex_prefix(insn_attr_t attr) attr 148 arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_EVEX; attr 151 arch/x86/include/asm/inat.h static inline int inat_is_vex3_prefix(insn_attr_t attr) attr 153 arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_VEX3; attr 156 arch/x86/include/asm/inat.h static inline int inat_is_escape(insn_attr_t attr) attr 158 arch/x86/include/asm/inat.h return attr & INAT_ESC_MASK; attr 161 arch/x86/include/asm/inat.h static inline int inat_escape_id(insn_attr_t attr) attr 163 arch/x86/include/asm/inat.h return (attr & INAT_ESC_MASK) >> INAT_ESC_OFFS; attr 166 arch/x86/include/asm/inat.h static inline int inat_is_group(insn_attr_t attr) attr 168 arch/x86/include/asm/inat.h return attr & INAT_GRP_MASK; attr 171 arch/x86/include/asm/inat.h static inline int inat_group_id(insn_attr_t attr) attr 173 arch/x86/include/asm/inat.h return (attr & INAT_GRP_MASK) >> INAT_GRP_OFFS; attr 176 arch/x86/include/asm/inat.h static inline int inat_group_common_attribute(insn_attr_t attr) attr 178 arch/x86/include/asm/inat.h return attr & ~INAT_GRP_MASK; attr 181 arch/x86/include/asm/inat.h static inline int inat_has_immediate(insn_attr_t attr) attr 183 arch/x86/include/asm/inat.h return attr & INAT_IMM_MASK; attr 186 arch/x86/include/asm/inat.h static inline int inat_immediate_size(insn_attr_t attr) attr 188 arch/x86/include/asm/inat.h return (attr & INAT_IMM_MASK) >> INAT_IMM_OFFS; attr 191 arch/x86/include/asm/inat.h static inline int inat_has_modrm(insn_attr_t attr) attr 193 arch/x86/include/asm/inat.h return attr & INAT_MODRM; attr 196 arch/x86/include/asm/inat.h static inline int inat_is_force64(insn_attr_t attr) attr 198 arch/x86/include/asm/inat.h return attr & INAT_FORCE64; attr 201 arch/x86/include/asm/inat.h static inline int inat_has_second_immediate(insn_attr_t attr) attr 203 arch/x86/include/asm/inat.h return attr & INAT_SCNDIMM; attr 206 arch/x86/include/asm/inat.h static inline int inat_has_moffset(insn_attr_t attr) attr 208 arch/x86/include/asm/inat.h return attr & INAT_MOFFSET; attr 211 arch/x86/include/asm/inat.h static inline int inat_has_variant(insn_attr_t attr) attr 213 arch/x86/include/asm/inat.h return attr & INAT_VARIANT; attr 216 arch/x86/include/asm/inat.h static inline int inat_accept_vex(insn_attr_t attr) attr 218 arch/x86/include/asm/inat.h return attr & INAT_VEXOK; attr 221 arch/x86/include/asm/inat.h static inline int inat_must_vex(insn_attr_t attr) attr 223 arch/x86/include/asm/inat.h return attr & (INAT_VEXONLY | INAT_EVEXONLY); attr 226 arch/x86/include/asm/inat.h static inline int inat_must_evex(insn_attr_t attr) attr 228 arch/x86/include/asm/inat.h return attr & INAT_EVEXONLY; attr 48 arch/x86/include/asm/insn.h insn_attr_t attr; attr 1638 arch/x86/kernel/cpu/bugs.c static ssize_t cpu_show_common(struct device *dev, struct device_attribute *attr, attr 1692 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) attr 1694 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_CPU_MELTDOWN); attr 1697 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) attr 1699 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_SPECTRE_V1); attr 1702 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) attr 1704 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_SPECTRE_V2); attr 1707 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_spec_store_bypass(struct device *dev, struct device_attribute *attr, char *buf) attr 1709 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_SPEC_STORE_BYPASS); attr 1712 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_l1tf(struct device *dev, struct device_attribute *attr, char *buf) attr 1714 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_L1TF); attr 1717 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_mds(struct device *dev, struct device_attribute *attr, char *buf) attr 1719 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_MDS); attr 1722 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_tsx_async_abort(struct device *dev, struct device_attribute *attr, char *buf) attr 1724 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_TAA); attr 1727 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_itlb_multihit(struct device *dev, struct device_attribute *attr, char *buf) attr 1729 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_ITLB_MULTIHIT); attr 1732 arch/x86/kernel/cpu/bugs.c ssize_t cpu_show_srbds(struct device *dev, struct device_attribute *attr, char *buf) attr 1734 arch/x86/kernel/cpu/bugs.c return cpu_show_common(dev, attr, buf, X86_BUG_SRBDS); attr 365 arch/x86/kernel/cpu/cacheinfo.c struct device_attribute *attr, char *buf) \ attr 464 arch/x86/kernel/cpu/cacheinfo.c struct device_attribute *attr, \ attr 474 arch/x86/kernel/cpu/cacheinfo.c struct device_attribute *attr, char *buf) attr 483 arch/x86/kernel/cpu/cacheinfo.c struct device_attribute *attr, attr 508 arch/x86/kernel/cpu/cacheinfo.c struct attribute *attr, int unused) attr 512 arch/x86/kernel/cpu/cacheinfo.c umode_t mode = attr->mode; attr 517 arch/x86/kernel/cpu/cacheinfo.c if ((attr == &dev_attr_subcaches.attr) && attr 521 arch/x86/kernel/cpu/cacheinfo.c if ((attr == &dev_attr_cache_disable_0.attr || attr 522 arch/x86/kernel/cpu/cacheinfo.c attr == &dev_attr_cache_disable_1.attr) && attr 552 arch/x86/kernel/cpu/cacheinfo.c amd_l3_attrs[n++] = &dev_attr_cache_disable_0.attr; attr 553 arch/x86/kernel/cpu/cacheinfo.c amd_l3_attrs[n++] = &dev_attr_cache_disable_1.attr; attr 556 arch/x86/kernel/cpu/cacheinfo.c amd_l3_attrs[n++] = &dev_attr_subcaches.attr; attr 121 arch/x86/kernel/cpu/intel_epb.c struct device_attribute *attr, attr 136 arch/x86/kernel/cpu/intel_epb.c struct device_attribute *attr, attr 165 arch/x86/kernel/cpu/intel_epb.c &dev_attr_energy_perf_bias.attr, attr 1042 arch/x86/kernel/cpu/mce/amd.c struct attribute attr; attr 1112 arch/x86/kernel/cpu/mce/amd.c .attr = {.name = __stringify(error_count), .mode = 0444 }, attr 1118 arch/x86/kernel/cpu/mce/amd.c .attr = {.name = __stringify(val), .mode = 0644 }, \ attr 1127 arch/x86/kernel/cpu/mce/amd.c &threshold_limit.attr, attr 1128 arch/x86/kernel/cpu/mce/amd.c &error_count.attr, attr 1134 arch/x86/kernel/cpu/mce/amd.c #define to_attr(a) container_of(a, struct threshold_attr, attr) attr 1136 arch/x86/kernel/cpu/mce/amd.c static ssize_t show(struct kobject *kobj, struct attribute *attr, char *buf) attr 1139 arch/x86/kernel/cpu/mce/amd.c struct threshold_attr *a = to_attr(attr); attr 1147 arch/x86/kernel/cpu/mce/amd.c static ssize_t store(struct kobject *kobj, struct attribute *attr, attr 1151 arch/x86/kernel/cpu/mce/amd.c struct threshold_attr *a = to_attr(attr); attr 1240 arch/x86/kernel/cpu/mce/amd.c threshold_ktype.default_attrs[2] = &interrupt_enable.attr; attr 79 arch/x86/kernel/cpu/mce/core.c struct device_attribute attr; /* device attribute */ attr 2112 arch/x86/kernel/cpu/mce/core.c static inline struct mce_bank_dev *attr_to_bank(struct device_attribute *attr) attr 2114 arch/x86/kernel/cpu/mce/core.c return container_of(attr, struct mce_bank_dev, attr); attr 2117 arch/x86/kernel/cpu/mce/core.c static ssize_t show_bank(struct device *s, struct device_attribute *attr, attr 2120 arch/x86/kernel/cpu/mce/core.c u8 bank = attr_to_bank(attr)->bank; attr 2134 arch/x86/kernel/cpu/mce/core.c static ssize_t set_bank(struct device *s, struct device_attribute *attr, attr 2137 arch/x86/kernel/cpu/mce/core.c u8 bank = attr_to_bank(attr)->bank; attr 2159 arch/x86/kernel/cpu/mce/core.c struct device_attribute *attr, attr 2186 arch/x86/kernel/cpu/mce/core.c struct device_attribute *attr, attr 2212 arch/x86/kernel/cpu/mce/core.c struct device_attribute *attr, attr 2216 arch/x86/kernel/cpu/mce/core.c ssize_t ret = device_store_ulong(s, attr, buf, size); attr 2248 arch/x86/kernel/cpu/mce/core.c &dev_attr_tolerant.attr, attr 2249 arch/x86/kernel/cpu/mce/core.c &dev_attr_check_interval.attr, attr 2253 arch/x86/kernel/cpu/mce/core.c &dev_attr_monarch_timeout.attr, attr 2254 arch/x86/kernel/cpu/mce/core.c &dev_attr_dont_log_ce.attr, attr 2255 arch/x86/kernel/cpu/mce/core.c &dev_attr_ignore_ce.attr, attr 2256 arch/x86/kernel/cpu/mce/core.c &dev_attr_cmci_disabled.attr, attr 2300 arch/x86/kernel/cpu/mce/core.c err = device_create_file(dev, &mce_bank_devs[j].attr); attr 2310 arch/x86/kernel/cpu/mce/core.c device_remove_file(dev, &mce_bank_devs[j].attr); attr 2332 arch/x86/kernel/cpu/mce/core.c device_remove_file(dev, &mce_bank_devs[i].attr); attr 2413 arch/x86/kernel/cpu/mce/core.c struct device_attribute *a = &b->attr; attr 2417 arch/x86/kernel/cpu/mce/core.c sysfs_attr_init(&a->attr); attr 2418 arch/x86/kernel/cpu/mce/core.c a->attr.name = b->attrname; attr 2421 arch/x86/kernel/cpu/mce/core.c a->attr.mode = 0644; attr 93 arch/x86/kernel/cpu/mce/dev-mcelog.c show_trigger(struct device *s, struct device_attribute *attr, char *buf) attr 100 arch/x86/kernel/cpu/mce/dev-mcelog.c static ssize_t set_trigger(struct device *s, struct device_attribute *attr, attr 95 arch/x86/kernel/cpu/mce/therm_throt.c struct device_attribute *attr, \ attr 125 arch/x86/kernel/cpu/mce/therm_throt.c &dev_attr_core_throttle_count.attr, attr 249 arch/x86/kernel/cpu/mce/therm_throt.c &dev_attr_core_power_limit_count.attr, attr 253 arch/x86/kernel/cpu/mce/therm_throt.c &dev_attr_package_throttle_count.attr, attr 257 arch/x86/kernel/cpu/mce/therm_throt.c &dev_attr_package_power_limit_count.attr, attr 614 arch/x86/kernel/cpu/microcode/core.c struct device_attribute *attr, attr 653 arch/x86/kernel/cpu/microcode/core.c struct device_attribute *attr, char *buf) attr 661 arch/x86/kernel/cpu/microcode/core.c struct device_attribute *attr, char *buf) attr 673 arch/x86/kernel/cpu/microcode/core.c &dev_attr_version.attr, attr 674 arch/x86/kernel/cpu/microcode/core.c &dev_attr_processor_flags.attr, attr 821 arch/x86/kernel/cpu/microcode/core.c &dev_attr_reload.attr, attr 132 arch/x86/kernel/cpu/umwait.c enable_c02_show(struct device *dev, struct device_attribute *attr, char *buf) attr 140 arch/x86/kernel/cpu/umwait.c struct device_attribute *attr, attr 164 arch/x86/kernel/cpu/umwait.c max_time_show(struct device *kobj, struct device_attribute *attr, char *buf) attr 172 arch/x86/kernel/cpu/umwait.c struct device_attribute *attr, attr 199 arch/x86/kernel/cpu/umwait.c &dev_attr_enable_c02.attr, attr 200 arch/x86/kernel/cpu/umwait.c &dev_attr_max_time.attr, attr 231 arch/x86/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 234 arch/x86/kernel/hw_breakpoint.c hw->address = attr->bp_addr; attr 238 arch/x86/kernel/hw_breakpoint.c switch (attr->bp_type) { attr 251 arch/x86/kernel/hw_breakpoint.c if (attr->bp_addr >= TASK_SIZE_MAX) { attr 252 arch/x86/kernel/hw_breakpoint.c if (within_kprobe_blacklist(attr->bp_addr)) attr 262 arch/x86/kernel/hw_breakpoint.c if (attr->bp_len == sizeof(long)) { attr 272 arch/x86/kernel/hw_breakpoint.c switch (attr->bp_len) { attr 289 arch/x86/kernel/hw_breakpoint.c if (!is_power_of_2(attr->bp_len)) attr 291 arch/x86/kernel/hw_breakpoint.c if (attr->bp_addr & (attr->bp_len - 1)) attr 304 arch/x86/kernel/hw_breakpoint.c hw->mask = attr->bp_len - 1; attr 315 arch/x86/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 322 arch/x86/kernel/hw_breakpoint.c ret = arch_build_bp_info(bp, attr, hw); attr 377 arch/x86/kernel/hw_breakpoint.c if (bp && !bp->attr.disabled) { attr 378 arch/x86/kernel/hw_breakpoint.c dump->u_debugreg[i] = bp->attr.bp_addr; attr 210 arch/x86/kernel/kgdb.c if (bp->attr.disabled != 1) attr 212 arch/x86/kernel/kgdb.c bp->attr.bp_addr = breakinfo[breakno].addr; attr 213 arch/x86/kernel/kgdb.c bp->attr.bp_len = breakinfo[breakno].len; attr 214 arch/x86/kernel/kgdb.c bp->attr.bp_type = breakinfo[breakno].type; attr 220 arch/x86/kernel/kgdb.c bp->attr.disabled = 0; attr 305 arch/x86/kernel/kgdb.c if (!bp->attr.disabled) { attr 307 arch/x86/kernel/kgdb.c bp->attr.disabled = 1; attr 398 arch/x86/kernel/kgdb.c if (bp->attr.disabled == 1) attr 401 arch/x86/kernel/kgdb.c bp->attr.disabled = 1; attr 640 arch/x86/kernel/kgdb.c struct perf_event_attr attr; attr 648 arch/x86/kernel/kgdb.c hw_breakpoint_init(&attr); attr 649 arch/x86/kernel/kgdb.c attr.bp_addr = (unsigned long)kgdb_arch_init; attr 650 arch/x86/kernel/kgdb.c attr.bp_len = HW_BREAKPOINT_LEN_1; attr 651 arch/x86/kernel/kgdb.c attr.bp_type = HW_BREAKPOINT_W; attr 652 arch/x86/kernel/kgdb.c attr.disabled = 1; attr 656 arch/x86/kernel/kgdb.c breakinfo[i].pev = register_wide_hw_breakpoint(&attr, NULL, NULL); attr 138 arch/x86/kernel/kprobes/core.c insn_attr_t attr; attr 140 arch/x86/kernel/kprobes/core.c attr = inat_get_opcode_attribute((insn_byte_t)*insn); attr 141 arch/x86/kernel/kprobes/core.c while (inat_is_legacy_prefix(attr)) { attr 143 arch/x86/kernel/kprobes/core.c attr = inat_get_opcode_attribute((insn_byte_t)*insn); attr 146 arch/x86/kernel/kprobes/core.c if (inat_is_rex_prefix(attr)) attr 173 arch/x86/kernel/kprobes/core.c if (unlikely(inat_is_address_size_prefix(insn->attr))) attr 23 arch/x86/kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 39 arch/x86/kernel/ksysfs.c .attr = { attr 48 arch/x86/kernel/ksysfs.c &boot_params_version_attr.attr, attr 116 arch/x86/kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 187 arch/x86/kernel/ksysfs.c .attr = { attr 195 arch/x86/kernel/ksysfs.c &type_attr.attr, attr 506 arch/x86/kernel/ptrace.c if (bp[i] && !bp[i]->attr.disabled) { attr 515 arch/x86/kernel/ptrace.c static int ptrace_fill_bp_fields(struct perf_event_attr *attr, attr 522 arch/x86/kernel/ptrace.c attr->bp_len = bp_len; attr 523 arch/x86/kernel/ptrace.c attr->bp_type = bp_type; attr 524 arch/x86/kernel/ptrace.c attr->disabled = disabled; attr 534 arch/x86/kernel/ptrace.c struct perf_event_attr attr; attr 537 arch/x86/kernel/ptrace.c ptrace_breakpoint_init(&attr); attr 538 arch/x86/kernel/ptrace.c attr.bp_addr = addr; attr 540 arch/x86/kernel/ptrace.c err = ptrace_fill_bp_fields(&attr, len, type, disabled); attr 544 arch/x86/kernel/ptrace.c return register_user_hw_breakpoint(&attr, ptrace_triggered, attr 551 arch/x86/kernel/ptrace.c struct perf_event_attr attr = bp->attr; attr 554 arch/x86/kernel/ptrace.c err = ptrace_fill_bp_fields(&attr, len, type, disabled); attr 558 arch/x86/kernel/ptrace.c return modify_user_hw_breakpoint(bp, &attr); attr 661 arch/x86/kernel/ptrace.c struct perf_event_attr attr = bp->attr; attr 663 arch/x86/kernel/ptrace.c attr.bp_addr = addr; attr 664 arch/x86/kernel/ptrace.c err = modify_user_hw_breakpoint(bp, &attr); attr 261 arch/x86/kernel/uprobes.c insn_attr_t attr; attr 263 arch/x86/kernel/uprobes.c attr = inat_get_opcode_attribute(insn->prefixes.bytes[i]); attr 264 arch/x86/kernel/uprobes.c switch (attr) { attr 105 arch/x86/kvm/pmu.c struct perf_event_attr attr = { attr 107 arch/x86/kvm/pmu.c .size = sizeof(attr), attr 116 arch/x86/kvm/pmu.c attr.sample_period = (-pmc->counter) & pmc_bitmask(pmc); attr 119 arch/x86/kvm/pmu.c attr.config |= HSW_IN_TX; attr 126 arch/x86/kvm/pmu.c attr.sample_period = 0; attr 127 arch/x86/kvm/pmu.c attr.config |= HSW_IN_TX_CHECKPOINTED; attr 130 arch/x86/kvm/pmu.c event = perf_event_create_kernel_counter(&attr, -1, current, attr 78 arch/x86/lib/insn-eval.c insn_attr_t attr; attr 80 arch/x86/lib/insn-eval.c attr = inat_get_opcode_attribute(insn->prefixes.bytes[i]); attr 81 arch/x86/lib/insn-eval.c switch (attr) { attr 72 arch/x86/lib/insn.c insn_attr_t attr; attr 82 arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 83 arch/x86/lib/insn.c while (inat_is_legacy_prefix(attr)) { attr 92 arch/x86/lib/insn.c if (inat_is_address_size_prefix(attr)) { attr 98 arch/x86/lib/insn.c } else if (inat_is_operand_size_prefix(attr)) { attr 107 arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 124 arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 125 arch/x86/lib/insn.c if (inat_is_rex_prefix(attr)) { attr 138 arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 139 arch/x86/lib/insn.c if (inat_is_vex_prefix(attr)) { attr 152 arch/x86/lib/insn.c if (inat_is_evex_prefix(attr)) { attr 162 arch/x86/lib/insn.c } else if (inat_is_vex3_prefix(attr)) { attr 220 arch/x86/lib/insn.c insn->attr = inat_get_avx_attribute(op, m, p); attr 221 arch/x86/lib/insn.c if ((inat_must_evex(insn->attr) && !insn_is_evex(insn)) || attr 222 arch/x86/lib/insn.c (!inat_accept_vex(insn->attr) && attr 223 arch/x86/lib/insn.c !inat_is_group(insn->attr))) attr 224 arch/x86/lib/insn.c insn->attr = 0; /* This instruction is bad */ attr 228 arch/x86/lib/insn.c insn->attr = inat_get_opcode_attribute(op); attr 229 arch/x86/lib/insn.c while (inat_is_escape(insn->attr)) { attr 234 arch/x86/lib/insn.c insn->attr = inat_get_escape_attribute(op, pfx_id, insn->attr); attr 236 arch/x86/lib/insn.c if (inat_must_vex(insn->attr)) attr 237 arch/x86/lib/insn.c insn->attr = 0; /* This instruction is bad */ attr 262 arch/x86/lib/insn.c if (inat_has_modrm(insn->attr)) { attr 266 arch/x86/lib/insn.c if (inat_is_group(insn->attr)) { attr 268 arch/x86/lib/insn.c insn->attr = inat_get_group_attribute(mod, pfx_id, attr 269 arch/x86/lib/insn.c insn->attr); attr 270 arch/x86/lib/insn.c if (insn_is_avx(insn) && !inat_accept_vex(insn->attr)) attr 271 arch/x86/lib/insn.c insn->attr = 0; /* This is bad */ attr 275 arch/x86/lib/insn.c if (insn->x86_64 && inat_is_force64(insn->attr)) attr 522 arch/x86/lib/insn.c if (inat_has_moffset(insn->attr)) { attr 528 arch/x86/lib/insn.c if (!inat_has_immediate(insn->attr)) attr 532 arch/x86/lib/insn.c switch (inat_immediate_size(insn->attr)) { attr 567 arch/x86/lib/insn.c if (inat_has_second_immediate(insn->attr)) { attr 789 arch/x86/platform/efi/efi_64.c u32 *attr, unsigned long *data_size, void *data) attr 805 arch/x86/platform/efi/efi_64.c phys_attr = virt_to_phys_or_null(attr); attr 821 arch/x86/platform/efi/efi_64.c u32 attr, unsigned long data_size, void *data) attr 841 arch/x86/platform/efi/efi_64.c attr, data_size, phys_data); attr 850 arch/x86/platform/efi/efi_64.c u32 attr, unsigned long data_size, attr 872 arch/x86/platform/efi/efi_64.c attr, data_size, phys_data); attr 956 arch/x86/platform/efi/efi_64.c efi_thunk_query_variable_info(u32 attr, u64 *storage_space, attr 973 arch/x86/platform/efi/efi_64.c status = efi_thunk(query_variable_info, attr, phys_storage, attr 982 arch/x86/platform/efi/efi_64.c efi_thunk_query_variable_info_nonblocking(u32 attr, u64 *storage_space, attr 1000 arch/x86/platform/efi/efi_64.c status = efi_thunk(query_variable_info, attr, phys_storage, attr 137 arch/x86/platform/olpc/olpc-xo1-sci.c struct device_attribute *attr, char *buf) attr 143 arch/x86/platform/olpc/olpc-xo1-sci.c struct device_attribute *attr, attr 161 arch/x86/platform/olpc/olpc-xo1-sci.c &dev_attr_lid_wake_mode.attr, attr 52 arch/x86/platform/olpc/olpc-xo15-sci.c lid_wake_on_close_show(struct kobject *s, struct kobj_attribute *attr, char *buf) attr 58 arch/x86/platform/olpc/olpc-xo15-sci.c struct kobj_attribute *attr, attr 164 arch/x86/platform/olpc/olpc-xo15-sci.c r = sysfs_create_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); attr 191 arch/x86/platform/olpc/olpc-xo15-sci.c sysfs_remove_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); attr 150 arch/x86/platform/ts5500/ts5500.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 159 arch/x86/platform/ts5500/ts5500.c static ssize_t id_show(struct device *dev, struct device_attribute *attr, attr 168 arch/x86/platform/ts5500/ts5500.c static ssize_t jumpers_show(struct device *dev, struct device_attribute *attr, attr 179 arch/x86/platform/ts5500/ts5500.c struct device_attribute *attr, char *buf) \ attr 194 arch/x86/platform/ts5500/ts5500.c &dev_attr_id.attr, attr 195 arch/x86/platform/ts5500/ts5500.c &dev_attr_name.attr, attr 196 arch/x86/platform/ts5500/ts5500.c &dev_attr_jumpers.attr, attr 197 arch/x86/platform/ts5500/ts5500.c &dev_attr_sram.attr, attr 198 arch/x86/platform/ts5500/ts5500.c &dev_attr_rs485.attr, attr 199 arch/x86/platform/ts5500/ts5500.c &dev_attr_adc.attr, attr 200 arch/x86/platform/ts5500/ts5500.c &dev_attr_ereset.attr, attr 201 arch/x86/platform/ts5500/ts5500.c &dev_attr_itr.attr, attr 16 arch/x86/platform/uv/uv_sysfs.c struct kobj_attribute *attr, char *buf) attr 22 arch/x86/platform/uv/uv_sysfs.c struct kobj_attribute *attr, char *buf) attr 48 arch/x86/platform/uv/uv_sysfs.c ret = sysfs_create_file(sgi_uv_kobj, &partition_id_attr.attr); attr 54 arch/x86/platform/uv/uv_sysfs.c ret = sysfs_create_file(sgi_uv_kobj, &coherence_id_attr.attr); attr 83 arch/x86/tools/insn_decoder_test.c insn->attr, insn->opnd_bytes, insn->addr_bytes); attr 80 arch/x86/tools/insn_sanity.c insn->attr, insn->opnd_bytes, insn->addr_bytes); attr 41 arch/xtensa/include/asm/hw_breakpoint.h const struct perf_event_attr *attr, attr 51 arch/xtensa/kernel/hw_breakpoint.c const struct perf_event_attr *attr, attr 55 arch/xtensa/kernel/hw_breakpoint.c switch (attr->bp_type) { attr 73 arch/xtensa/kernel/hw_breakpoint.c hw->len = attr->bp_len; attr 78 arch/xtensa/kernel/hw_breakpoint.c hw->address = attr->bp_addr; attr 283 arch/xtensa/kernel/hw_breakpoint.c if (bp[i] && !bp[i]->attr.disabled && attr 284 arch/xtensa/kernel/hw_breakpoint.c regs->pc == bp[i]->attr.bp_addr) attr 202 arch/xtensa/kernel/perf_event.c switch (event->attr.type) { attr 204 arch/xtensa/kernel/perf_event.c if (event->attr.config >= ARRAY_SIZE(xtensa_hw_ctl) || attr 205 arch/xtensa/kernel/perf_event.c xtensa_hw_ctl[event->attr.config] == 0) attr 207 arch/xtensa/kernel/perf_event.c event->hw.config = xtensa_hw_ctl[event->attr.config]; attr 211 arch/xtensa/kernel/perf_event.c ret = xtensa_pmu_cache_event(event->attr.config); attr 219 arch/xtensa/kernel/perf_event.c if ((event->attr.config & XTENSA_PMU_PMCTRL_SELECT) == attr 222 arch/xtensa/kernel/perf_event.c event->hw.config = (event->attr.config & attr 372 arch/xtensa/kernel/ptrace.c if (bp->attr.bp_type & HW_BREAKPOINT_X) { attr 389 arch/xtensa/kernel/ptrace.c struct perf_event_attr attr; attr 391 arch/xtensa/kernel/ptrace.c ptrace_breakpoint_init(&attr); attr 394 arch/xtensa/kernel/ptrace.c attr.bp_addr = 0; attr 395 arch/xtensa/kernel/ptrace.c attr.bp_len = 1; attr 396 arch/xtensa/kernel/ptrace.c attr.bp_type = type; attr 397 arch/xtensa/kernel/ptrace.c attr.disabled = 1; attr 399 arch/xtensa/kernel/ptrace.c return register_user_hw_breakpoint(&attr, ptrace_hbptriggered, NULL, attr 433 arch/xtensa/kernel/ptrace.c user_data[0] = bp->attr.bp_addr; attr 434 arch/xtensa/kernel/ptrace.c user_data[1] = bp->attr.disabled ? 0 : bp->attr.bp_len; attr 436 arch/xtensa/kernel/ptrace.c if (bp->attr.bp_type & HW_BREAKPOINT_R) attr 438 arch/xtensa/kernel/ptrace.c if (bp->attr.bp_type & HW_BREAKPOINT_W) attr 453 arch/xtensa/kernel/ptrace.c struct perf_event_attr attr; attr 488 arch/xtensa/kernel/ptrace.c attr = bp->attr; attr 489 arch/xtensa/kernel/ptrace.c attr.bp_addr = user_data[0]; attr 490 arch/xtensa/kernel/ptrace.c attr.bp_len = user_data[1] & ~(DBREAKC_LOAD_MASK | DBREAKC_STOR_MASK); attr 491 arch/xtensa/kernel/ptrace.c attr.bp_type = bp_type; attr 492 arch/xtensa/kernel/ptrace.c attr.disabled = !attr.bp_len; attr 494 arch/xtensa/kernel/ptrace.c return modify_user_hw_breakpoint(bp, &attr); attr 218 block/blk-integrity.c struct attribute attr; attr 223 block/blk-integrity.c static ssize_t integrity_attr_show(struct kobject *kobj, struct attribute *attr, attr 229 block/blk-integrity.c container_of(attr, struct integrity_sysfs_entry, attr); attr 235 block/blk-integrity.c struct attribute *attr, const char *page, attr 241 block/blk-integrity.c container_of(attr, struct integrity_sysfs_entry, attr); attr 314 block/blk-integrity.c .attr = { .name = "format", .mode = 0444 }, attr 319 block/blk-integrity.c .attr = { .name = "tag_size", .mode = 0444 }, attr 324 block/blk-integrity.c .attr = { .name = "protection_interval_bytes", .mode = 0444 }, attr 329 block/blk-integrity.c .attr = { .name = "read_verify", .mode = 0644 }, attr 335 block/blk-integrity.c .attr = { .name = "write_generate", .mode = 0644 }, attr 341 block/blk-integrity.c .attr = { .name = "device_is_integrity_capable", .mode = 0444 }, attr 346 block/blk-integrity.c &integrity_format_entry.attr, attr 347 block/blk-integrity.c &integrity_tag_size_entry.attr, attr 348 block/blk-integrity.c &integrity_interval_entry.attr, attr 349 block/blk-integrity.c &integrity_verify_entry.attr, attr 350 block/blk-integrity.c &integrity_generate_entry.attr, attr 351 block/blk-integrity.c &integrity_device_entry.attr, attr 715 block/blk-mq-debugfs.c const struct blk_mq_debugfs_attr *attr = m->private; attr 718 block/blk-mq-debugfs.c return attr->show(data, m); attr 725 block/blk-mq-debugfs.c const struct blk_mq_debugfs_attr *attr = m->private; attr 732 block/blk-mq-debugfs.c if (attr == data || !attr->write) attr 735 block/blk-mq-debugfs.c return attr->write(data, buf, count, ppos); attr 740 block/blk-mq-debugfs.c const struct blk_mq_debugfs_attr *attr = inode->i_private; attr 745 block/blk-mq-debugfs.c if (attr->seq_ops) { attr 746 block/blk-mq-debugfs.c ret = seq_open(file, attr->seq_ops); attr 754 block/blk-mq-debugfs.c if (WARN_ON_ONCE(!attr->show)) attr 762 block/blk-mq-debugfs.c const struct blk_mq_debugfs_attr *attr = inode->i_private; attr 764 block/blk-mq-debugfs.c if (attr->show) attr 809 block/blk-mq-debugfs.c const struct blk_mq_debugfs_attr *attr) attr 816 block/blk-mq-debugfs.c for (; attr->name; attr++) attr 817 block/blk-mq-debugfs.c debugfs_create_file(attr->name, attr->mode, parent, attr 818 block/blk-mq-debugfs.c (void *)attr, &blk_mq_debugfs_fops); attr 51 block/blk-mq-sysfs.c struct attribute attr; attr 57 block/blk-mq-sysfs.c struct attribute attr; attr 62 block/blk-mq-sysfs.c static ssize_t blk_mq_sysfs_show(struct kobject *kobj, struct attribute *attr, attr 70 block/blk-mq-sysfs.c entry = container_of(attr, struct blk_mq_ctx_sysfs_entry, attr); attr 85 block/blk-mq-sysfs.c static ssize_t blk_mq_sysfs_store(struct kobject *kobj, struct attribute *attr, attr 93 block/blk-mq-sysfs.c entry = container_of(attr, struct blk_mq_ctx_sysfs_entry, attr); attr 109 block/blk-mq-sysfs.c struct attribute *attr, char *page) attr 116 block/blk-mq-sysfs.c entry = container_of(attr, struct blk_mq_hw_ctx_sysfs_entry, attr); attr 132 block/blk-mq-sysfs.c struct attribute *attr, const char *page, attr 140 block/blk-mq-sysfs.c entry = container_of(attr, struct blk_mq_hw_ctx_sysfs_entry, attr); attr 191 block/blk-mq-sysfs.c .attr = {.name = "nr_tags", .mode = 0444 }, attr 195 block/blk-mq-sysfs.c .attr = {.name = "nr_reserved_tags", .mode = 0444 }, attr 199 block/blk-mq-sysfs.c .attr = {.name = "cpu_list", .mode = 0444 }, attr 204 block/blk-mq-sysfs.c &blk_mq_hw_sysfs_nr_tags.attr, attr 205 block/blk-mq-sysfs.c &blk_mq_hw_sysfs_nr_reserved_tags.attr, attr 206 block/blk-mq-sysfs.c &blk_mq_hw_sysfs_cpus.attr, attr 21 block/blk-sysfs.c struct attribute attr; attr 533 block/blk-sysfs.c .attr = {.name = "nr_requests", .mode = 0644 }, attr 539 block/blk-sysfs.c .attr = {.name = "read_ahead_kb", .mode = 0644 }, attr 545 block/blk-sysfs.c .attr = {.name = "max_sectors_kb", .mode = 0644 }, attr 551 block/blk-sysfs.c .attr = {.name = "max_hw_sectors_kb", .mode = 0444 }, attr 556 block/blk-sysfs.c .attr = {.name = "max_segments", .mode = 0444 }, attr 561 block/blk-sysfs.c .attr = {.name = "max_discard_segments", .mode = 0444 }, attr 566 block/blk-sysfs.c .attr = {.name = "max_integrity_segments", .mode = 0444 }, attr 571 block/blk-sysfs.c .attr = {.name = "max_segment_size", .mode = 0444 }, attr 576 block/blk-sysfs.c .attr = {.name = "scheduler", .mode = 0644 }, attr 582 block/blk-sysfs.c .attr = {.name = "hw_sector_size", .mode = 0444 }, attr 587 block/blk-sysfs.c .attr = {.name = "logical_block_size", .mode = 0444 }, attr 592 block/blk-sysfs.c .attr = {.name = "physical_block_size", .mode = 0444 }, attr 597 block/blk-sysfs.c .attr = {.name = "chunk_sectors", .mode = 0444 }, attr 602 block/blk-sysfs.c .attr = {.name = "minimum_io_size", .mode = 0444 }, attr 607 block/blk-sysfs.c .attr = {.name = "optimal_io_size", .mode = 0444 }, attr 612 block/blk-sysfs.c .attr = {.name = "discard_granularity", .mode = 0444 }, attr 617 block/blk-sysfs.c .attr = {.name = "discard_max_hw_bytes", .mode = 0444 }, attr 622 block/blk-sysfs.c .attr = {.name = "discard_max_bytes", .mode = 0644 }, attr 628 block/blk-sysfs.c .attr = {.name = "discard_zeroes_data", .mode = 0444 }, attr 633 block/blk-sysfs.c .attr = {.name = "write_same_max_bytes", .mode = 0444 }, attr 638 block/blk-sysfs.c .attr = {.name = "write_zeroes_max_bytes", .mode = 0444 }, attr 643 block/blk-sysfs.c .attr = {.name = "rotational", .mode = 0644 }, attr 649 block/blk-sysfs.c .attr = {.name = "zoned", .mode = 0444 }, attr 654 block/blk-sysfs.c .attr = {.name = "nr_zones", .mode = 0444 }, attr 659 block/blk-sysfs.c .attr = {.name = "nomerges", .mode = 0644 }, attr 665 block/blk-sysfs.c .attr = {.name = "rq_affinity", .mode = 0644 }, attr 671 block/blk-sysfs.c .attr = {.name = "iostats", .mode = 0644 }, attr 677 block/blk-sysfs.c .attr = {.name = "add_random", .mode = 0644 }, attr 683 block/blk-sysfs.c .attr = {.name = "io_poll", .mode = 0644 }, attr 689 block/blk-sysfs.c .attr = {.name = "io_poll_delay", .mode = 0644 }, attr 695 block/blk-sysfs.c .attr = {.name = "write_cache", .mode = 0644 }, attr 701 block/blk-sysfs.c .attr = {.name = "fua", .mode = 0444 }, attr 706 block/blk-sysfs.c .attr = {.name = "dax", .mode = 0444 }, attr 711 block/blk-sysfs.c .attr = {.name = "io_timeout", .mode = 0644 }, attr 717 block/blk-sysfs.c .attr = {.name = "wbt_lat_usec", .mode = 0644 }, attr 724 block/blk-sysfs.c .attr = {.name = "throttle_sample_time", .mode = 0644 }, attr 731 block/blk-sysfs.c &queue_requests_entry.attr, attr 732 block/blk-sysfs.c &queue_ra_entry.attr, attr 733 block/blk-sysfs.c &queue_max_hw_sectors_entry.attr, attr 734 block/blk-sysfs.c &queue_max_sectors_entry.attr, attr 735 block/blk-sysfs.c &queue_max_segments_entry.attr, attr 736 block/blk-sysfs.c &queue_max_discard_segments_entry.attr, attr 737 block/blk-sysfs.c &queue_max_integrity_segments_entry.attr, attr 738 block/blk-sysfs.c &queue_max_segment_size_entry.attr, attr 739 block/blk-sysfs.c &queue_iosched_entry.attr, attr 740 block/blk-sysfs.c &queue_hw_sector_size_entry.attr, attr 741 block/blk-sysfs.c &queue_logical_block_size_entry.attr, attr 742 block/blk-sysfs.c &queue_physical_block_size_entry.attr, attr 743 block/blk-sysfs.c &queue_chunk_sectors_entry.attr, attr 744 block/blk-sysfs.c &queue_io_min_entry.attr, attr 745 block/blk-sysfs.c &queue_io_opt_entry.attr, attr 746 block/blk-sysfs.c &queue_discard_granularity_entry.attr, attr 747 block/blk-sysfs.c &queue_discard_max_entry.attr, attr 748 block/blk-sysfs.c &queue_discard_max_hw_entry.attr, attr 749 block/blk-sysfs.c &queue_discard_zeroes_data_entry.attr, attr 750 block/blk-sysfs.c &queue_write_same_max_entry.attr, attr 751 block/blk-sysfs.c &queue_write_zeroes_max_entry.attr, attr 752 block/blk-sysfs.c &queue_nonrot_entry.attr, attr 753 block/blk-sysfs.c &queue_zoned_entry.attr, attr 754 block/blk-sysfs.c &queue_nr_zones_entry.attr, attr 755 block/blk-sysfs.c &queue_nomerges_entry.attr, attr 756 block/blk-sysfs.c &queue_rq_affinity_entry.attr, attr 757 block/blk-sysfs.c &queue_iostats_entry.attr, attr 758 block/blk-sysfs.c &queue_random_entry.attr, attr 759 block/blk-sysfs.c &queue_poll_entry.attr, attr 760 block/blk-sysfs.c &queue_wc_entry.attr, attr 761 block/blk-sysfs.c &queue_fua_entry.attr, attr 762 block/blk-sysfs.c &queue_dax_entry.attr, attr 763 block/blk-sysfs.c &queue_wb_lat_entry.attr, attr 764 block/blk-sysfs.c &queue_poll_delay_entry.attr, attr 765 block/blk-sysfs.c &queue_io_timeout_entry.attr, attr 767 block/blk-sysfs.c &throtl_sample_time_entry.attr, attr 772 block/blk-sysfs.c static umode_t queue_attr_visible(struct kobject *kobj, struct attribute *attr, attr 778 block/blk-sysfs.c if (attr == &queue_io_timeout_entry.attr && attr 782 block/blk-sysfs.c return attr->mode; attr 791 block/blk-sysfs.c #define to_queue(atr) container_of((atr), struct queue_sysfs_entry, attr) attr 794 block/blk-sysfs.c queue_attr_show(struct kobject *kobj, struct attribute *attr, char *page) attr 796 block/blk-sysfs.c struct queue_sysfs_entry *entry = to_queue(attr); attr 814 block/blk-sysfs.c queue_attr_store(struct kobject *kobj, struct attribute *attr, attr 817 block/blk-sysfs.c struct queue_sysfs_entry *entry = to_queue(attr); attr 41 block/blk-timeout.c ssize_t part_timeout_show(struct device *dev, struct device_attribute *attr, attr 50 block/blk-timeout.c ssize_t part_timeout_store(struct device *dev, struct device_attribute *attr, attr 436 block/elevator.c #define to_elv(atr) container_of((atr), struct elv_fs_entry, attr) attr 439 block/elevator.c elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) attr 441 block/elevator.c struct elv_fs_entry *entry = to_elv(attr); attr 456 block/elevator.c elv_attr_store(struct kobject *kobj, struct attribute *attr, attr 459 block/elevator.c struct elv_fs_entry *entry = to_elv(attr); attr 495 block/elevator.c struct elv_fs_entry *attr = e->type->elevator_attrs; attr 496 block/elevator.c if (attr) { attr 497 block/elevator.c while (attr->attr.name) { attr 498 block/elevator.c if (sysfs_create_file(&e->kobj, &attr->attr)) attr 500 block/elevator.c attr++; attr 840 block/genhd.c struct device_attribute *attr, attr 852 block/genhd.c struct device_attribute *attr, attr 1116 block/genhd.c struct device_attribute *attr, char *buf) attr 1124 block/genhd.c struct device_attribute *attr, char *buf) attr 1132 block/genhd.c struct device_attribute *attr, char *buf) attr 1141 block/genhd.c struct device_attribute *attr, char *buf) attr 1150 block/genhd.c struct device_attribute *attr, char *buf) attr 1158 block/genhd.c struct device_attribute *attr, char *buf) attr 1166 block/genhd.c struct device_attribute *attr, attr 1175 block/genhd.c struct device_attribute *attr, attr 1205 block/genhd.c &dev_attr_range.attr, attr 1206 block/genhd.c &dev_attr_ext_range.attr, attr 1207 block/genhd.c &dev_attr_removable.attr, attr 1208 block/genhd.c &dev_attr_hidden.attr, attr 1209 block/genhd.c &dev_attr_ro.attr, attr 1210 block/genhd.c &dev_attr_size.attr, attr 1211 block/genhd.c &dev_attr_alignment_offset.attr, attr 1212 block/genhd.c &dev_attr_discard_alignment.attr, attr 1213 block/genhd.c &dev_attr_capability.attr, attr 1214 block/genhd.c &dev_attr_stat.attr, attr 1215 block/genhd.c &dev_attr_inflight.attr, attr 1216 block/genhd.c &dev_attr_badblocks.attr, attr 1218 block/genhd.c &dev_attr_fail.attr, attr 1221 block/genhd.c &dev_attr_fail_timeout.attr, attr 1231 block/genhd.c if (a == &dev_attr_badblocks.attr && !disk->bb) attr 1913 block/genhd.c struct device_attribute *attr, char *buf) attr 1924 block/genhd.c struct device_attribute *attr, char *buf) attr 1930 block/genhd.c struct device_attribute *attr, attr 1942 block/genhd.c struct device_attribute *attr, attr 1971 block/genhd.c &dev_attr_events.attr, attr 1972 block/genhd.c &dev_attr_events_async.attr, attr 1973 block/genhd.c &dev_attr_events_poll_msecs.attr, attr 75 block/partition-generic.c struct device_attribute *attr, char *buf) attr 83 block/partition-generic.c struct device_attribute *attr, char *buf) attr 91 block/partition-generic.c struct device_attribute *attr, char *buf) attr 98 block/partition-generic.c struct device_attribute *attr, char *buf) attr 105 block/partition-generic.c struct device_attribute *attr, char *buf) attr 112 block/partition-generic.c struct device_attribute *attr, char *buf) attr 119 block/partition-generic.c struct device_attribute *attr, char *buf) attr 149 block/partition-generic.c ssize_t part_inflight_show(struct device *dev, struct device_attribute *attr, attr 162 block/partition-generic.c struct device_attribute *attr, char *buf) attr 170 block/partition-generic.c struct device_attribute *attr, attr 197 block/partition-generic.c &dev_attr_partition.attr, attr 198 block/partition-generic.c &dev_attr_start.attr, attr 199 block/partition-generic.c &dev_attr_size.attr, attr 200 block/partition-generic.c &dev_attr_ro.attr, attr 201 block/partition-generic.c &dev_attr_alignment_offset.attr, attr 202 block/partition-generic.c &dev_attr_discard_alignment.attr, attr 203 block/partition-generic.c &dev_attr_stat.attr, attr 204 block/partition-generic.c &dev_attr_inflight.attr, attr 206 block/partition-generic.c &dev_attr_fail.attr, attr 299 block/partition-generic.c struct device_attribute *attr, char *buf) attr 27 crypto/algboss.c struct rtattr attr; attr 32 crypto/algboss.c struct rtattr attr; attr 34 crypto/algboss.c struct rtattr attr; attr 38 crypto/algboss.c struct rtattr attr; attr 145 crypto/algboss.c param->attrs[i].alg.attr.rta_len = attr 147 crypto/algboss.c param->attrs[i].alg.attr.rta_type = CRYPTOA_ALG; attr 150 crypto/algboss.c param->attrs[i].nu32.attr.rta_len = attr 152 crypto/algboss.c param->attrs[i].nu32.attr.rta_type = CRYPTOA_U32; attr 157 crypto/algboss.c param->tb[i + 1] = ¶m->attrs[i].attr; attr 175 crypto/algboss.c param->type.attr.rta_len = sizeof(param->type); attr 176 crypto/algboss.c param->type.attr.rta_type = CRYPTOA_TYPE; attr 179 crypto/algboss.c param->tb[0] = ¶m->type.attr; attr 57 drivers/acpi/acpi_lpit.c struct device_attribute *attr, attr 72 drivers/acpi/acpi_lpit.c struct device_attribute *attr, attr 117 drivers/acpi/acpi_lpit.c &dev_attr_low_power_idle_system_residency_us.attr, attr 125 drivers/acpi/acpi_lpit.c &dev_attr_low_power_idle_cpu_residency_us.attr, attr 754 drivers/acpi/acpi_lpss.c static ssize_t lpss_ltr_show(struct device *dev, struct device_attribute *attr, attr 761 drivers/acpi/acpi_lpss.c reg = strcmp(attr->attr.name, "auto_ltr") ? LPSS_SW_LTR : LPSS_AUTO_LTR; attr 770 drivers/acpi/acpi_lpss.c struct device_attribute *attr, char *buf) attr 789 drivers/acpi/acpi_lpss.c &dev_attr_auto_ltr.attr, attr 790 drivers/acpi/acpi_lpss.c &dev_attr_sw_ltr.attr, attr 791 drivers/acpi/acpi_lpss.c &dev_attr_ltr_mode.attr, attr 266 drivers/acpi/acpi_pad.c struct device_attribute *attr, const char *buf, size_t count) attr 280 drivers/acpi/acpi_pad.c struct device_attribute *attr, char *buf) attr 289 drivers/acpi/acpi_pad.c struct device_attribute *attr, const char *buf, size_t count) attr 303 drivers/acpi/acpi_pad.c struct device_attribute *attr, char *buf) attr 312 drivers/acpi/acpi_pad.c struct device_attribute *attr, const char *buf, size_t count) attr 324 drivers/acpi/acpi_pad.c struct device_attribute *attr, char *buf) attr 156 drivers/acpi/acpi_tad.c static ssize_t time_store(struct device *dev, struct device_attribute *attr, attr 225 drivers/acpi/acpi_tad.c static ssize_t time_show(struct device *dev, struct device_attribute *attr, attr 243 drivers/acpi/acpi_tad.c &dev_attr_time.attr, attr 425 drivers/acpi/acpi_tad.c static ssize_t caps_show(struct device *dev, struct device_attribute *attr, attr 435 drivers/acpi/acpi_tad.c static ssize_t ac_alarm_store(struct device *dev, struct device_attribute *attr, attr 443 drivers/acpi/acpi_tad.c static ssize_t ac_alarm_show(struct device *dev, struct device_attribute *attr, attr 451 drivers/acpi/acpi_tad.c static ssize_t ac_policy_store(struct device *dev, struct device_attribute *attr, attr 459 drivers/acpi/acpi_tad.c static ssize_t ac_policy_show(struct device *dev, struct device_attribute *attr, attr 467 drivers/acpi/acpi_tad.c static ssize_t ac_status_store(struct device *dev, struct device_attribute *attr, attr 475 drivers/acpi/acpi_tad.c static ssize_t ac_status_show(struct device *dev, struct device_attribute *attr, attr 484 drivers/acpi/acpi_tad.c &dev_attr_caps.attr, attr 485 drivers/acpi/acpi_tad.c &dev_attr_ac_alarm.attr, attr 486 drivers/acpi/acpi_tad.c &dev_attr_ac_policy.attr, attr 487 drivers/acpi/acpi_tad.c &dev_attr_ac_status.attr, attr 494 drivers/acpi/acpi_tad.c static ssize_t dc_alarm_store(struct device *dev, struct device_attribute *attr, attr 502 drivers/acpi/acpi_tad.c static ssize_t dc_alarm_show(struct device *dev, struct device_attribute *attr, attr 510 drivers/acpi/acpi_tad.c static ssize_t dc_policy_store(struct device *dev, struct device_attribute *attr, attr 518 drivers/acpi/acpi_tad.c static ssize_t dc_policy_show(struct device *dev, struct device_attribute *attr, attr 526 drivers/acpi/acpi_tad.c static ssize_t dc_status_store(struct device *dev, struct device_attribute *attr, attr 534 drivers/acpi/acpi_tad.c static ssize_t dc_status_show(struct device *dev, struct device_attribute *attr, attr 543 drivers/acpi/acpi_tad.c &dev_attr_dc_alarm.attr, attr 544 drivers/acpi/acpi_tad.c &dev_attr_dc_policy.attr, attr 545 drivers/acpi/acpi_tad.c &dev_attr_dc_status.attr, attr 70 drivers/acpi/apei/erst.c u32 attr; attr 391 drivers/acpi/apei/erst.c range->attr = apei_exec_ctx_get_output(&ctx); attr 779 drivers/acpi/apei/erst.c if (erst_erange.attr & ERST_RANGE_NVRAM) { attr 808 drivers/acpi/apei/erst.c if (erst_erange.attr & ERST_RANGE_NVRAM) attr 872 drivers/acpi/apei/erst.c if (erst_erange.attr & ERST_RANGE_NVRAM) attr 1233 drivers/acpi/arm64/iort.c enum dev_dma_attr attr; attr 1238 drivers/acpi/arm64/iort.c attr = (smmu->flags & ACPI_IORT_SMMU_V3_COHACC_OVERRIDE) ? attr 1245 drivers/acpi/arm64/iort.c acpi_dma_configure(dev, attr); attr 1331 drivers/acpi/arm64/iort.c enum dev_dma_attr attr; attr 1336 drivers/acpi/arm64/iort.c attr = (smmu->flags & ACPI_IORT_SMMU_COHERENT_WALK) ? attr 1343 drivers/acpi/arm64/iort.c acpi_dma_configure(dev, attr); attr 657 drivers/acpi/battery.c struct device_attribute *attr, attr 665 drivers/acpi/battery.c struct device_attribute *attr, attr 678 drivers/acpi/battery.c .attr = {.name = "alarm", .mode = 0644}, attr 19 drivers/acpi/bgrt.c struct device_attribute *attr, char *buf) attr 26 drivers/acpi/bgrt.c struct device_attribute *attr, char *buf) attr 33 drivers/acpi/bgrt.c struct device_attribute *attr, char *buf) attr 40 drivers/acpi/bgrt.c struct device_attribute *attr, char *buf) attr 47 drivers/acpi/bgrt.c struct device_attribute *attr, char *buf) attr 54 drivers/acpi/bgrt.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) attr 56 drivers/acpi/bgrt.c memcpy(buf, attr->private + off, count); attr 63 drivers/acpi/bgrt.c &dev_attr_version.attr, attr 64 drivers/acpi/bgrt.c &dev_attr_status.attr, attr 65 drivers/acpi/bgrt.c &dev_attr_type.attr, attr 66 drivers/acpi/bgrt.c &dev_attr_xoffset.attr, attr 67 drivers/acpi/bgrt.c &dev_attr_yoffset.attr, attr 122 drivers/acpi/cppc_acpi.c struct attribute attr; attr 124 drivers/acpi/cppc_acpi.c struct attribute *attr, char *buf); attr 126 drivers/acpi/cppc_acpi.c struct attribute *attr, const char *c, ssize_t count); attr 137 drivers/acpi/cppc_acpi.c struct attribute *attr, char *buf) \ attr 163 drivers/acpi/cppc_acpi.c struct attribute *attr, char *buf) attr 179 drivers/acpi/cppc_acpi.c &feedback_ctrs.attr, attr 180 drivers/acpi/cppc_acpi.c &reference_perf.attr, attr 181 drivers/acpi/cppc_acpi.c &wraparound_time.attr, attr 182 drivers/acpi/cppc_acpi.c &highest_perf.attr, attr 183 drivers/acpi/cppc_acpi.c &lowest_perf.attr, attr 184 drivers/acpi/cppc_acpi.c &lowest_nonlinear_perf.attr, attr 185 drivers/acpi/cppc_acpi.c &nominal_perf.attr, attr 186 drivers/acpi/cppc_acpi.c &nominal_freq.attr, attr 187 drivers/acpi/cppc_acpi.c &lowest_freq.attr, attr 36 drivers/acpi/device_sysfs.c struct attribute attr; attr 53 drivers/acpi/device_sysfs.c &data_node_path.attr, attr 58 drivers/acpi/device_sysfs.c #define to_attr(a) container_of(a, struct acpi_data_node_attr, attr) attr 61 drivers/acpi/device_sysfs.c struct attribute *attr, char *buf) attr 64 drivers/acpi/device_sysfs.c struct acpi_data_node_attr *dn_attr = to_attr(attr); attr 336 drivers/acpi/device_sysfs.c acpi_device_modalias_show(struct device *dev, struct device_attribute *attr, char *buf) attr 343 drivers/acpi/device_sysfs.c struct device_attribute *attr, char *buf) attr 359 drivers/acpi/device_sysfs.c struct device_attribute *attr, char *buf) attr 369 drivers/acpi/device_sysfs.c acpi_eject_store(struct device *d, struct device_attribute *attr, attr 401 drivers/acpi/device_sysfs.c acpi_device_hid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 410 drivers/acpi/device_sysfs.c struct device_attribute *attr, char *buf) attr 419 drivers/acpi/device_sysfs.c struct device_attribute *attr, char *buf) attr 431 drivers/acpi/device_sysfs.c struct device_attribute *attr, char *buf) attr 441 drivers/acpi/device_sysfs.c struct device_attribute *attr, attr 466 drivers/acpi/device_sysfs.c acpi_device_sun_show(struct device *dev, struct device_attribute *attr, attr 481 drivers/acpi/device_sysfs.c acpi_device_hrv_show(struct device *dev, struct device_attribute *attr, attr 495 drivers/acpi/device_sysfs.c static ssize_t status_show(struct device *dev, struct device_attribute *attr, attr 489 drivers/acpi/dock.c struct device_attribute *attr, char *buf) attr 503 drivers/acpi/dock.c struct device_attribute *attr, char *buf) attr 514 drivers/acpi/dock.c static ssize_t write_undock(struct device *dev, struct device_attribute *attr, attr 535 drivers/acpi/dock.c struct device_attribute *attr, char *buf) attr 549 drivers/acpi/dock.c struct device_attribute *attr, char *buf) attr 568 drivers/acpi/dock.c &dev_attr_docked.attr, attr 569 drivers/acpi/dock.c &dev_attr_flags.attr, attr 570 drivers/acpi/dock.c &dev_attr_undock.attr, attr 571 drivers/acpi/dock.c &dev_attr_uid.attr, attr 572 drivers/acpi/dock.c &dev_attr_type.attr, attr 22 drivers/acpi/dptf/dptf_power.c struct device_attribute *attr,\ attr 50 drivers/acpi/dptf/dptf_power.c &dev_attr_max_platform_power_mw.attr, attr 51 drivers/acpi/dptf/dptf_power.c &dev_attr_platform_power_source.attr, attr 52 drivers/acpi/dptf/dptf_power.c &dev_attr_adapter_rating_mw.attr, attr 53 drivers/acpi/dptf/dptf_power.c &dev_attr_battery_steady_power_mw.attr, attr 54 drivers/acpi/dptf/dptf_power.c &dev_attr_charger_type.attr, attr 100 drivers/acpi/event.c struct nlattr *attr; attr 123 drivers/acpi/event.c attr = attr 126 drivers/acpi/event.c if (!attr) { attr 131 drivers/acpi/event.c event = nla_data(attr); attr 1237 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1248 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1259 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1276 drivers/acpi/nfit/core.c struct device_attribute *attr, const char *buf, size_t size) attr 1316 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1348 drivers/acpi/nfit/core.c struct device_attribute *attr, const char *buf, size_t size) attr 1388 drivers/acpi/nfit/core.c if (a == &dev_attr_scrub.attr && !ars_supported(nvdimm_bus)) attr 1394 drivers/acpi/nfit/core.c &dev_attr_revision.attr, attr 1395 drivers/acpi/nfit/core.c &dev_attr_scrub.attr, attr 1396 drivers/acpi/nfit/core.c &dev_attr_hw_error_scrub.attr, attr 1397 drivers/acpi/nfit/core.c &dev_attr_bus_dsm_mask.attr, attr 1430 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1439 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1448 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1457 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1466 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1475 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1484 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1494 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1515 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1524 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1565 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1574 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1583 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1595 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1607 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1628 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1638 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 1648 drivers/acpi/nfit/core.c &dev_attr_handle.attr, attr 1649 drivers/acpi/nfit/core.c &dev_attr_phys_id.attr, attr 1650 drivers/acpi/nfit/core.c &dev_attr_vendor.attr, attr 1651 drivers/acpi/nfit/core.c &dev_attr_device.attr, attr 1652 drivers/acpi/nfit/core.c &dev_attr_rev_id.attr, attr 1653 drivers/acpi/nfit/core.c &dev_attr_subsystem_vendor.attr, attr 1654 drivers/acpi/nfit/core.c &dev_attr_subsystem_device.attr, attr 1655 drivers/acpi/nfit/core.c &dev_attr_subsystem_rev_id.attr, attr 1656 drivers/acpi/nfit/core.c &dev_attr_format.attr, attr 1657 drivers/acpi/nfit/core.c &dev_attr_formats.attr, attr 1658 drivers/acpi/nfit/core.c &dev_attr_format1.attr, attr 1659 drivers/acpi/nfit/core.c &dev_attr_serial.attr, attr 1660 drivers/acpi/nfit/core.c &dev_attr_flags.attr, attr 1661 drivers/acpi/nfit/core.c &dev_attr_id.attr, attr 1662 drivers/acpi/nfit/core.c &dev_attr_family.attr, attr 1663 drivers/acpi/nfit/core.c &dev_attr_dsm_mask.attr, attr 1664 drivers/acpi/nfit/core.c &dev_attr_dirty_shutdown.attr, attr 1677 drivers/acpi/nfit/core.c if (a == &dev_attr_handle.attr || a == &dev_attr_phys_id.attr attr 1678 drivers/acpi/nfit/core.c || a == &dev_attr_flags.attr attr 1679 drivers/acpi/nfit/core.c || a == &dev_attr_family.attr attr 1680 drivers/acpi/nfit/core.c || a == &dev_attr_dsm_mask.attr) attr 1685 drivers/acpi/nfit/core.c if (a == &dev_attr_format1.attr && num_nvdimm_formats(nvdimm) <= 1) attr 1689 drivers/acpi/nfit/core.c && a == &dev_attr_dirty_shutdown.attr) attr 2181 drivers/acpi/nfit/core.c struct device_attribute *attr, char *buf) attr 2191 drivers/acpi/nfit/core.c &dev_attr_range_index.attr, attr 892 drivers/acpi/power.c struct device_attribute *attr, attr 207 drivers/acpi/resource.c struct acpi_address64_attribute *attr) attr 209 drivers/acpi/resource.c u8 iodec = attr->granularity == 0xfff ? ACPI_DECODE_10 : ACPI_DECODE_16; attr 211 drivers/acpi/resource.c u64 len = attr->address_length; attr 232 drivers/acpi/resource.c offset = attr->translation_offset; attr 233 drivers/acpi/resource.c else if (attr->translation_offset) attr 235 drivers/acpi/resource.c attr->translation_offset); attr 236 drivers/acpi/resource.c start = attr->minimum + offset; attr 237 drivers/acpi/resource.c end = attr->maximum + offset; attr 245 drivers/acpi/resource.c attr->minimum, attr->maximum); attr 445 drivers/acpi/sbs.c struct device_attribute *attr, attr 455 drivers/acpi/sbs.c struct device_attribute *attr, attr 469 drivers/acpi/sbs.c .attr = {.name = "alarm", .mode = 0644}, attr 1462 drivers/acpi/scan.c int acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) attr 1467 drivers/acpi/scan.c if (attr == DEV_DMA_NOT_SUPPORTED) { attr 1479 drivers/acpi/scan.c iommu, attr == DEV_DMA_COHERENT); attr 329 drivers/acpi/sysfs.c struct bin_attribute attr; attr 337 drivers/acpi/sysfs.c struct bin_attribute attr; attr 346 drivers/acpi/sysfs.c container_of(bin_attr, struct acpi_table_attr, attr); attr 367 drivers/acpi/sysfs.c struct acpi_table_attr *attr = NULL; attr 370 drivers/acpi/sysfs.c sysfs_attr_init(&table_attr->attr.attr); attr 373 drivers/acpi/sysfs.c list_for_each_entry(attr, &acpi_table_attr_list, node) { attr 374 drivers/acpi/sysfs.c if (ACPI_COMPARE_NAMESEG(table_attr->name, attr->name)) attr 375 drivers/acpi/sysfs.c if (table_attr->instance < attr->instance) attr 376 drivers/acpi/sysfs.c table_attr->instance = attr->instance; attr 395 drivers/acpi/sysfs.c table_attr->attr.size = table_header->length; attr 396 drivers/acpi/sysfs.c table_attr->attr.read = acpi_table_show; attr 397 drivers/acpi/sysfs.c table_attr->attr.attr.name = table_attr->filename; attr 398 drivers/acpi/sysfs.c table_attr->attr.attr.mode = 0400; attr 400 drivers/acpi/sysfs.c return sysfs_create_bin_file(tables_obj, &table_attr->attr); attr 444 drivers/acpi/sysfs.c data_attr = container_of(bin_attr, struct acpi_data_attr, attr); attr 446 drivers/acpi/sysfs.c base = acpi_os_map_memory(data_attr->addr, data_attr->attr.size); attr 450 drivers/acpi/sysfs.c data_attr->attr.size); attr 451 drivers/acpi/sysfs.c acpi_os_unmap_memory(base, data_attr->attr.size); attr 466 drivers/acpi/sysfs.c data_attr->attr.size = bert->region_length; attr 467 drivers/acpi/sysfs.c data_attr->attr.attr.name = "BERT"; attr 469 drivers/acpi/sysfs.c return sysfs_create_bin_file(tables_data_kobj, &data_attr->attr); attr 491 drivers/acpi/sysfs.c sysfs_attr_init(&data_attr->attr.attr); attr 492 drivers/acpi/sysfs.c data_attr->attr.read = acpi_data_show; attr 493 drivers/acpi/sysfs.c data_attr->attr.attr.mode = 0400; attr 598 drivers/acpi/sysfs.c kfree(counter_attrs[i].attr.name); attr 677 drivers/acpi/sysfs.c struct kobj_attribute *attr, char *buf) attr 679 drivers/acpi/sysfs.c int index = attr - counter_attrs; attr 734 drivers/acpi/sysfs.c struct kobj_attribute *attr, const char *buf, attr 737 drivers/acpi/sysfs.c int index = attr - counter_attrs; attr 913 drivers/acpi/sysfs.c sysfs_attr_init(&counter_attrs[i].attr); attr 914 drivers/acpi/sysfs.c counter_attrs[i].attr.name = name; attr 915 drivers/acpi/sysfs.c counter_attrs[i].attr.mode = 0644; attr 919 drivers/acpi/sysfs.c all_attrs[i] = &counter_attrs[i].attr; attr 941 drivers/acpi/sysfs.c acpi_show_profile(struct device *dev, struct device_attribute *attr, attr 951 drivers/acpi/sysfs.c struct kobj_attribute *attr, char *buf) attr 959 drivers/acpi/sysfs.c struct kobj_attribute *attr, attr 977 drivers/acpi/sysfs.c &hotplug_enabled_attr.attr, attr 1009 drivers/acpi/sysfs.c struct kobj_attribute *attr, char *buf) attr 1015 drivers/acpi/sysfs.c struct kobj_attribute *attr, attr 1048 drivers/acpi/sysfs.c result = sysfs_create_file(hotplug_kobj, &force_remove_attr.attr); attr 1052 drivers/acpi/sysfs.c result = sysfs_create_file(acpi_kobj, &pm_profile_attr.attr); attr 85 drivers/amba/bus.c struct device_attribute *attr, char *buf) attr 97 drivers/amba/bus.c struct device_attribute *attr, attr 133 drivers/amba/bus.c struct device_attribute *attr, char *buf) \ attr 148 drivers/amba/bus.c &dev_attr_id.attr, attr 149 drivers/amba/bus.c &dev_attr_resource.attr, attr 150 drivers/amba/bus.c &dev_attr_driver_override.attr, attr 196 drivers/ata/ahci_ceva.c enum dev_dma_attr attr; attr 272 drivers/ata/ahci_ceva.c attr = device_get_dma_attr(dev); attr 273 drivers/ata/ahci_ceva.c cevapriv->is_cci_enabled = (attr == DEV_DMA_COHERENT); attr 440 drivers/ata/ahci_imx.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 87 drivers/ata/libahci.c struct device_attribute *attr, char *buf); attr 89 drivers/ata/libahci.c struct device_attribute *attr, char *buf); attr 91 drivers/ata/libahci.c struct device_attribute *attr, char *buf); attr 93 drivers/ata/libahci.c struct device_attribute *attr, char *buf); attr 95 drivers/ata/libahci.c struct device_attribute *attr, char *buf); attr 97 drivers/ata/libahci.c struct device_attribute *attr, attr 100 drivers/ata/libahci.c struct device_attribute *attr, char *buf); attr 239 drivers/ata/libahci.c struct device_attribute *attr, char *buf) attr 249 drivers/ata/libahci.c struct device_attribute *attr, char *buf) attr 259 drivers/ata/libahci.c struct device_attribute *attr, char *buf) attr 269 drivers/ata/libahci.c struct device_attribute *attr, char *buf) attr 284 drivers/ata/libahci.c struct device_attribute *attr, char *buf) attr 343 drivers/ata/libahci.c struct device_attribute *attr, attr 387 drivers/ata/libahci.c struct device_attribute *attr, char *buf) attr 102 drivers/ata/libata-scsi.c struct device_attribute *attr, attr 142 drivers/ata/libata-scsi.c struct device_attribute *attr, char *buf) attr 158 drivers/ata/libata-scsi.c struct device_attribute *attr, char *buf) attr 197 drivers/ata/libata-scsi.c struct device_attribute *attr, attr 261 drivers/ata/libata-scsi.c struct device_attribute *attr, attr 288 drivers/ata/libata-scsi.c struct device_attribute *attr, attr 386 drivers/ata/libata-scsi.c ata_scsi_em_message_store(struct device *dev, struct device_attribute *attr, attr 397 drivers/ata/libata-scsi.c ata_scsi_em_message_show(struct device *dev, struct device_attribute *attr, attr 412 drivers/ata/libata-scsi.c ata_scsi_em_message_type_show(struct device *dev, struct device_attribute *attr, attr 425 drivers/ata/libata-scsi.c ata_scsi_activity_show(struct device *dev, struct device_attribute *attr, attr 439 drivers/ata/libata-scsi.c ata_scsi_activity_store(struct device *dev, struct device_attribute *attr, attr 207 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) \ attr 333 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) \ attr 458 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) \ attr 478 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) \ attr 514 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) attr 528 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) attr 547 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) attr 568 drivers/ata/libata-transport.c struct device_attribute *attr, char *buf) attr 693 drivers/ata/libata-transport.c i->private_##attrb[count].attr.mode = perm; \ attr 321 drivers/ata/sata_fsl.c struct device_attribute *attr, char *buf) attr 328 drivers/ata/sata_fsl.c struct device_attribute *attr, attr 347 drivers/ata/sata_fsl.c struct device_attribute *attr, char *buf) attr 364 drivers/ata/sata_fsl.c struct device_attribute *attr, attr 1516 drivers/ata/sata_fsl.c sysfs_attr_init(&host_priv->intr_coalescing.attr); attr 1517 drivers/ata/sata_fsl.c host_priv->intr_coalescing.attr.name = "intr_coalescing"; attr 1518 drivers/ata/sata_fsl.c host_priv->intr_coalescing.attr.mode = S_IRUGO | S_IWUSR; attr 1525 drivers/ata/sata_fsl.c sysfs_attr_init(&host_priv->rx_watermark.attr); attr 1526 drivers/ata/sata_fsl.c host_priv->rx_watermark.attr.name = "rx_watermark"; attr 1527 drivers/ata/sata_fsl.c host_priv->rx_watermark.attr.mode = S_IRUGO | S_IWUSR; attr 45 drivers/atm/adummy.c struct device_attribute *attr, attr 63 drivers/atm/adummy.c struct device_attribute *attr, char *buf) attr 71 drivers/atm/adummy.c &dev_attr_signal.attr, attr 181 drivers/atm/solos-pci.c static ssize_t solos_param_show(struct device *dev, struct device_attribute *attr, attr 191 drivers/atm/solos-pci.c buflen = strlen(attr->attr.name) + 10; attr 202 drivers/atm/solos-pci.c "L%05d\n%s\n", current->pid, attr->attr.name); attr 236 drivers/atm/solos-pci.c static ssize_t solos_param_store(struct device *dev, struct device_attribute *attr, attr 247 drivers/atm/solos-pci.c buflen = strlen(attr->attr.name) + 11 + count; attr 258 drivers/atm/solos-pci.c "L%05d\n%s\n%s\n", current->pid, attr->attr.name, buf); attr 444 drivers/atm/solos-pci.c static ssize_t console_show(struct device *dev, struct device_attribute *attr, attr 494 drivers/atm/solos-pci.c static ssize_t console_store(struct device *dev, struct device_attribute *attr, attr 507 drivers/atm/solos-pci.c struct device_attribute attr; attr 513 drivers/atm/solos-pci.c .attr = __ATTR(_name, _mode, _show, _store), \ attr 516 drivers/atm/solos-pci.c static ssize_t geos_gpio_store(struct device *dev, struct device_attribute *attr, attr 519 drivers/atm/solos-pci.c struct geos_gpio_attr *gattr = container_of(attr, struct geos_gpio_attr, attr); attr 541 drivers/atm/solos-pci.c static ssize_t geos_gpio_show(struct device *dev, struct device_attribute *attr, attr 544 drivers/atm/solos-pci.c struct geos_gpio_attr *gattr = container_of(attr, struct geos_gpio_attr, attr); attr 554 drivers/atm/solos-pci.c static ssize_t hardware_show(struct device *dev, struct device_attribute *attr, attr 557 drivers/atm/solos-pci.c struct geos_gpio_attr *gattr = container_of(attr, struct geos_gpio_attr, attr); attr 594 drivers/atm/solos-pci.c #define SOLOS_ATTR_RO(x) &dev_attr_##x.attr, attr 595 drivers/atm/solos-pci.c #define SOLOS_ATTR_RW(x) &dev_attr_##x.attr, attr 608 drivers/atm/solos-pci.c &gpio_attr_GPIO1.attr.attr, attr 609 drivers/atm/solos-pci.c &gpio_attr_GPIO2.attr.attr, attr 610 drivers/atm/solos-pci.c &gpio_attr_GPIO3.attr.attr, attr 611 drivers/atm/solos-pci.c &gpio_attr_GPIO4.attr.attr, attr 612 drivers/atm/solos-pci.c &gpio_attr_GPIO5.attr.attr, attr 613 drivers/atm/solos-pci.c &gpio_attr_PushButton.attr.attr, attr 614 drivers/atm/solos-pci.c &gpio_attr_HardwareVersion.attr.attr, attr 615 drivers/atm/solos-pci.c &gpio_attr_HardwareVariant.attr.attr, attr 314 drivers/auxdisplay/img-ascii-lcd.c static ssize_t message_show(struct device *dev, struct device_attribute *attr, attr 333 drivers/auxdisplay/img-ascii-lcd.c static ssize_t message_store(struct device *dev, struct device_attribute *attr, attr 46 drivers/base/arch_topology.c struct device_attribute *attr, attr 330 drivers/base/attribute_container.c sysfs_attr_init(&attrs[i]->attr); attr 26 drivers/base/bus.c #define to_bus_attr(_attr) container_of(_attr, struct bus_attribute, attr) attr 32 drivers/base/bus.c #define to_drv_attr(_attr) container_of(_attr, struct driver_attribute, attr) attr 56 drivers/base/bus.c static ssize_t drv_attr_show(struct kobject *kobj, struct attribute *attr, attr 59 drivers/base/bus.c struct driver_attribute *drv_attr = to_drv_attr(attr); attr 68 drivers/base/bus.c static ssize_t drv_attr_store(struct kobject *kobj, struct attribute *attr, attr 71 drivers/base/bus.c struct driver_attribute *drv_attr = to_drv_attr(attr); attr 101 drivers/base/bus.c static ssize_t bus_attr_show(struct kobject *kobj, struct attribute *attr, attr 104 drivers/base/bus.c struct bus_attribute *bus_attr = to_bus_attr(attr); attr 113 drivers/base/bus.c static ssize_t bus_attr_store(struct kobject *kobj, struct attribute *attr, attr 116 drivers/base/bus.c struct bus_attribute *bus_attr = to_bus_attr(attr); attr 130 drivers/base/bus.c int bus_create_file(struct bus_type *bus, struct bus_attribute *attr) attr 134 drivers/base/bus.c error = sysfs_create_file(&bus->p->subsys.kobj, &attr->attr); attr 142 drivers/base/bus.c void bus_remove_file(struct bus_type *bus, struct bus_attribute *attr) attr 145 drivers/base/bus.c sysfs_remove_file(&bus->p->subsys.kobj, &attr->attr); attr 362 drivers/base/cacheinfo.c struct device_attribute *attr, char *buf) \ attr 376 drivers/base/cacheinfo.c struct device_attribute *attr, char *buf) attr 392 drivers/base/cacheinfo.c struct device_attribute *attr, char *buf) attr 398 drivers/base/cacheinfo.c struct device_attribute *attr, char *buf) attr 404 drivers/base/cacheinfo.c struct device_attribute *attr, char *buf) attr 421 drivers/base/cacheinfo.c struct device_attribute *attr, char *buf) attr 437 drivers/base/cacheinfo.c struct device_attribute *attr, char *buf) attr 464 drivers/base/cacheinfo.c &dev_attr_id.attr, attr 465 drivers/base/cacheinfo.c &dev_attr_type.attr, attr 466 drivers/base/cacheinfo.c &dev_attr_level.attr, attr 467 drivers/base/cacheinfo.c &dev_attr_shared_cpu_map.attr, attr 468 drivers/base/cacheinfo.c &dev_attr_shared_cpu_list.attr, attr 469 drivers/base/cacheinfo.c &dev_attr_coherency_line_size.attr, attr 470 drivers/base/cacheinfo.c &dev_attr_ways_of_associativity.attr, attr 471 drivers/base/cacheinfo.c &dev_attr_number_of_sets.attr, attr 472 drivers/base/cacheinfo.c &dev_attr_size.attr, attr 473 drivers/base/cacheinfo.c &dev_attr_allocation_policy.attr, attr 474 drivers/base/cacheinfo.c &dev_attr_write_policy.attr, attr 475 drivers/base/cacheinfo.c &dev_attr_physical_line_partition.attr, attr 481 drivers/base/cacheinfo.c struct attribute *attr, int unused) attr 486 drivers/base/cacheinfo.c umode_t mode = attr->mode; attr 488 drivers/base/cacheinfo.c if ((attr == &dev_attr_id.attr) && (this_leaf->attributes & CACHE_ID)) attr 490 drivers/base/cacheinfo.c if ((attr == &dev_attr_type.attr) && this_leaf->type) attr 492 drivers/base/cacheinfo.c if ((attr == &dev_attr_level.attr) && this_leaf->level) attr 494 drivers/base/cacheinfo.c if ((attr == &dev_attr_shared_cpu_map.attr) && !cpumask_empty(mask)) attr 496 drivers/base/cacheinfo.c if ((attr == &dev_attr_shared_cpu_list.attr) && !cpumask_empty(mask)) attr 498 drivers/base/cacheinfo.c if ((attr == &dev_attr_coherency_line_size.attr) && attr 501 drivers/base/cacheinfo.c if ((attr == &dev_attr_ways_of_associativity.attr) && attr 504 drivers/base/cacheinfo.c if ((attr == &dev_attr_number_of_sets.attr) && attr 507 drivers/base/cacheinfo.c if ((attr == &dev_attr_size.attr) && this_leaf->size) attr 509 drivers/base/cacheinfo.c if ((attr == &dev_attr_write_policy.attr) && attr 512 drivers/base/cacheinfo.c if ((attr == &dev_attr_allocation_policy.attr) && attr 515 drivers/base/cacheinfo.c if ((attr == &dev_attr_physical_line_partition.attr) && attr 22 drivers/base/class.c #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr) attr 24 drivers/base/class.c static ssize_t class_attr_show(struct kobject *kobj, struct attribute *attr, attr 27 drivers/base/class.c struct class_attribute *class_attr = to_class_attr(attr); attr 36 drivers/base/class.c static ssize_t class_attr_store(struct kobject *kobj, struct attribute *attr, attr 39 drivers/base/class.c struct class_attribute *class_attr = to_class_attr(attr); attr 87 drivers/base/class.c int class_create_file_ns(struct class *cls, const struct class_attribute *attr, attr 94 drivers/base/class.c &attr->attr, ns); attr 100 drivers/base/class.c void class_remove_file_ns(struct class *cls, const struct class_attribute *attr, attr 104 drivers/base/class.c sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); attr 475 drivers/base/class.c struct class_attribute *attr, char *buf) attr 479 drivers/base/class.c cs = container_of(attr, struct class_attribute_string, attr); attr 958 drivers/base/core.c #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) attr 960 drivers/base/core.c static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr, attr 963 drivers/base/core.c struct device_attribute *dev_attr = to_dev_attr(attr); attr 976 drivers/base/core.c static ssize_t dev_attr_store(struct kobject *kobj, struct attribute *attr, attr 979 drivers/base/core.c struct device_attribute *dev_attr = to_dev_attr(attr); attr 993 drivers/base/core.c #define to_ext_attr(x) container_of(x, struct dev_ext_attribute, attr) attr 996 drivers/base/core.c struct device_attribute *attr, attr 999 drivers/base/core.c struct dev_ext_attribute *ea = to_ext_attr(attr); attr 1013 drivers/base/core.c struct device_attribute *attr, attr 1016 drivers/base/core.c struct dev_ext_attribute *ea = to_ext_attr(attr); attr 1022 drivers/base/core.c struct device_attribute *attr, attr 1025 drivers/base/core.c struct dev_ext_attribute *ea = to_ext_attr(attr); attr 1042 drivers/base/core.c struct device_attribute *attr, attr 1045 drivers/base/core.c struct dev_ext_attribute *ea = to_ext_attr(attr); attr 1051 drivers/base/core.c ssize_t device_store_bool(struct device *dev, struct device_attribute *attr, attr 1054 drivers/base/core.c struct dev_ext_attribute *ea = to_ext_attr(attr); attr 1063 drivers/base/core.c ssize_t device_show_bool(struct device *dev, struct device_attribute *attr, attr 1066 drivers/base/core.c struct dev_ext_attribute *ea = to_ext_attr(attr); attr 1233 drivers/base/core.c static ssize_t uevent_show(struct device *dev, struct device_attribute *attr, attr 1276 drivers/base/core.c static ssize_t uevent_store(struct device *dev, struct device_attribute *attr, attr 1292 drivers/base/core.c static ssize_t online_show(struct device *dev, struct device_attribute *attr, attr 1303 drivers/base/core.c static ssize_t online_store(struct device *dev, struct device_attribute *attr, attr 1523 drivers/base/core.c static ssize_t dev_show(struct device *dev, struct device_attribute *attr, attr 1585 drivers/base/core.c const struct device_attribute *attr) attr 1590 drivers/base/core.c WARN(((attr->attr.mode & S_IWUGO) && !attr->store), attr 1592 drivers/base/core.c attr->attr.name); attr 1593 drivers/base/core.c WARN(((attr->attr.mode & S_IRUGO) && !attr->show), attr 1595 drivers/base/core.c attr->attr.name); attr 1596 drivers/base/core.c error = sysfs_create_file(&dev->kobj, &attr->attr); attr 1609 drivers/base/core.c const struct device_attribute *attr) attr 1612 drivers/base/core.c sysfs_remove_file(&dev->kobj, &attr->attr); attr 1624 drivers/base/core.c const struct device_attribute *attr) attr 1627 drivers/base/core.c return sysfs_remove_file_self(&dev->kobj, &attr->attr); attr 1639 drivers/base/core.c const struct bin_attribute *attr) attr 1643 drivers/base/core.c error = sysfs_create_bin_file(&dev->kobj, attr); attr 1654 drivers/base/core.c const struct bin_attribute *attr) attr 1657 drivers/base/core.c sysfs_remove_bin_file(&dev->kobj, attr); attr 88 drivers/base/cpu.c struct device_attribute *attr, attr 106 drivers/base/cpu.c struct device_attribute *attr, attr 142 drivers/base/cpu.c static ssize_t show_crash_notes(struct device *dev, struct device_attribute *attr, attr 165 drivers/base/cpu.c struct device_attribute *attr, attr 176 drivers/base/cpu.c &dev_attr_crash_notes.attr, attr 177 drivers/base/cpu.c &dev_attr_crash_notes_size.attr, attr 205 drivers/base/cpu.c struct device_attribute attr; attr 210 drivers/base/cpu.c struct device_attribute *attr, attr 213 drivers/base/cpu.c struct cpu_attr *ca = container_of(attr, struct cpu_attr, attr); attr 232 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 243 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 273 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 293 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 325 drivers/base/cpu.c struct device_attribute *attr, attr 469 drivers/base/cpu.c &dev_attr_probe.attr, attr 470 drivers/base/cpu.c &dev_attr_release.attr, attr 472 drivers/base/cpu.c &cpu_attrs[0].attr.attr, attr 473 drivers/base/cpu.c &cpu_attrs[1].attr.attr, attr 474 drivers/base/cpu.c &cpu_attrs[2].attr.attr, attr 475 drivers/base/cpu.c &dev_attr_kernel_max.attr, attr 476 drivers/base/cpu.c &dev_attr_offline.attr, attr 477 drivers/base/cpu.c &dev_attr_isolated.attr, attr 479 drivers/base/cpu.c &dev_attr_nohz_full.attr, attr 482 drivers/base/cpu.c &dev_attr_modalias.attr, attr 522 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 528 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 534 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 540 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 546 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 552 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 558 drivers/base/cpu.c struct device_attribute *attr, attr 565 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 571 drivers/base/cpu.c struct device_attribute *attr, char *buf) attr 587 drivers/base/cpu.c &dev_attr_meltdown.attr, attr 588 drivers/base/cpu.c &dev_attr_spectre_v1.attr, attr 589 drivers/base/cpu.c &dev_attr_spectre_v2.attr, attr 590 drivers/base/cpu.c &dev_attr_spec_store_bypass.attr, attr 591 drivers/base/cpu.c &dev_attr_l1tf.attr, attr 592 drivers/base/cpu.c &dev_attr_mds.attr, attr 593 drivers/base/cpu.c &dev_attr_tsx_async_abort.attr, attr 594 drivers/base/cpu.c &dev_attr_itlb_multihit.attr, attr 595 drivers/base/cpu.c &dev_attr_srbds.attr, attr 397 drivers/base/dd.c static ssize_t coredump_store(struct device *dev, struct device_attribute *attr, attr 97 drivers/base/devcoredump.c .attr = { .name = "data", .mode = S_IRUSR | S_IWUSR, }, attr 123 drivers/base/devcoredump.c static ssize_t disabled_show(struct class *class, struct class_attribute *attr, attr 129 drivers/base/devcoredump.c static ssize_t disabled_store(struct class *class, struct class_attribute *attr, attr 151 drivers/base/devcoredump.c &class_attr_disabled.attr, attr 101 drivers/base/driver.c const struct driver_attribute *attr) attr 106 drivers/base/driver.c error = sysfs_create_file(&drv->p->kobj, &attr->attr); attr 119 drivers/base/driver.c const struct driver_attribute *attr) attr 122 drivers/base/driver.c sysfs_remove_file(&drv->p->kobj, &attr->attr); attr 121 drivers/base/firmware_loader/fallback.c static ssize_t timeout_show(struct class *class, struct class_attribute *attr, attr 140 drivers/base/firmware_loader/fallback.c static ssize_t timeout_store(struct class *class, struct class_attribute *attr, attr 155 drivers/base/firmware_loader/fallback.c &class_attr_timeout.attr, attr 209 drivers/base/firmware_loader/fallback.c struct device_attribute *attr, char *buf) attr 236 drivers/base/firmware_loader/fallback.c struct device_attribute *attr, attr 435 drivers/base/firmware_loader/fallback.c .attr = { .name = "data", .mode = 0644 }, attr 442 drivers/base/firmware_loader/fallback.c &dev_attr_loading.attr, attr 107 drivers/base/memory.c struct device_attribute *attr, char *buf) attr 120 drivers/base/memory.c static ssize_t removable_show(struct device *dev, struct device_attribute *attr, attr 129 drivers/base/memory.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 299 drivers/base/memory.c static ssize_t state_store(struct device *dev, struct device_attribute *attr, attr 358 drivers/base/memory.c struct device_attribute *attr, char *buf) attr 379 drivers/base/memory.c struct device_attribute *attr, char *buf) attr 430 drivers/base/memory.c struct device_attribute *attr, char *buf) attr 442 drivers/base/memory.c struct device_attribute *attr, char *buf) attr 451 drivers/base/memory.c struct device_attribute *attr, attr 473 drivers/base/memory.c static ssize_t probe_store(struct device *dev, struct device_attribute *attr, attr 514 drivers/base/memory.c struct device_attribute *attr, attr 535 drivers/base/memory.c struct device_attribute *attr, attr 588 drivers/base/memory.c &dev_attr_phys_index.attr, attr 589 drivers/base/memory.c &dev_attr_state.attr, attr 590 drivers/base/memory.c &dev_attr_phys_device.attr, attr 591 drivers/base/memory.c &dev_attr_removable.attr, attr 593 drivers/base/memory.c &dev_attr_valid_zones.attr, attr 760 drivers/base/memory.c &dev_attr_probe.attr, attr 764 drivers/base/memory.c &dev_attr_soft_offline_page.attr, attr 765 drivers/base/memory.c &dev_attr_hard_offline_page.attr, attr 768 drivers/base/memory.c &dev_attr_block_size_bytes.attr, attr 769 drivers/base/memory.c &dev_attr_auto_online_blocks.attr, attr 50 drivers/base/node.c struct device_attribute *attr, char *buf) attr 55 drivers/base/node.c struct device_attribute *attr, char *buf) attr 158 drivers/base/node.c struct device_attribute *attr, \ attr 171 drivers/base/node.c &dev_attr_read_bandwidth.attr, attr 172 drivers/base/node.c &dev_attr_read_latency.attr, attr 173 drivers/base/node.c &dev_attr_write_bandwidth.attr, attr 174 drivers/base/node.c &dev_attr_write_latency.attr, attr 225 drivers/base/node.c struct device_attribute *attr, \ attr 238 drivers/base/node.c &dev_attr_indexing.attr, attr 239 drivers/base/node.c &dev_attr_size.attr, attr 240 drivers/base/node.c &dev_attr_line_size.attr, attr 241 drivers/base/node.c &dev_attr_write_policy.attr, attr 362 drivers/base/node.c struct device_attribute *attr, char *buf) attr 472 drivers/base/node.c struct device_attribute *attr, char *buf) attr 491 drivers/base/node.c struct device_attribute *attr, char *buf) attr 520 drivers/base/node.c struct device_attribute *attr, char *buf) attr 541 drivers/base/node.c &dev_attr_cpumap.attr, attr 542 drivers/base/node.c &dev_attr_cpulist.attr, attr 543 drivers/base/node.c &dev_attr_meminfo.attr, attr 544 drivers/base/node.c &dev_attr_numastat.attr, attr 545 drivers/base/node.c &dev_attr_distance.attr, attr 546 drivers/base/node.c &dev_attr_vmstat.attr, attr 957 drivers/base/node.c struct device_attribute attr; attr 962 drivers/base/node.c struct device_attribute *attr, char *buf) attr 964 drivers/base/node.c struct node_attr *na = container_of(attr, struct node_attr, attr); attr 983 drivers/base/node.c &node_state_attr[N_POSSIBLE].attr.attr, attr 984 drivers/base/node.c &node_state_attr[N_ONLINE].attr.attr, attr 985 drivers/base/node.c &node_state_attr[N_NORMAL_MEMORY].attr.attr, attr 987 drivers/base/node.c &node_state_attr[N_HIGH_MEMORY].attr.attr, attr 989 drivers/base/node.c &node_state_attr[N_MEMORY].attr.attr, attr 990 drivers/base/node.c &node_state_attr[N_CPU].attr.attr, attr 970 drivers/base/platform.c struct device_attribute *attr, attr 1004 drivers/base/platform.c struct device_attribute *attr, char *buf) attr 1018 drivers/base/platform.c &dev_attr_modalias.attr, attr 1019 drivers/base/platform.c &dev_attr_driver_override.attr, attr 1241 drivers/base/platform.c enum dev_dma_attr attr; attr 1247 drivers/base/platform.c attr = acpi_get_dma_attr(to_acpi_device_node(dev->fwnode)); attr 1248 drivers/base/platform.c ret = acpi_dma_configure(dev, attr); attr 100 drivers/base/power/sysfs.c static ssize_t control_show(struct device *dev, struct device_attribute *attr, attr 107 drivers/base/power/sysfs.c static ssize_t control_store(struct device * dev, struct device_attribute *attr, attr 124 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 136 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 148 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 180 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 188 drivers/base/power/sysfs.c struct device_attribute *attr, const char *buf, size_t n) attr 207 drivers/base/power/sysfs.c struct device_attribute *attr, attr 221 drivers/base/power/sysfs.c struct device_attribute *attr, attr 251 drivers/base/power/sysfs.c struct device_attribute *attr, attr 265 drivers/base/power/sysfs.c struct device_attribute *attr, attr 290 drivers/base/power/sysfs.c struct device_attribute *attr, attr 298 drivers/base/power/sysfs.c struct device_attribute *attr, attr 319 drivers/base/power/sysfs.c static ssize_t wakeup_show(struct device *dev, struct device_attribute *attr, attr 327 drivers/base/power/sysfs.c static ssize_t wakeup_store(struct device *dev, struct device_attribute *attr, attr 345 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 362 drivers/base/power/sysfs.c struct device_attribute *attr, attr 380 drivers/base/power/sysfs.c struct device_attribute *attr, attr 398 drivers/base/power/sysfs.c struct device_attribute *attr, attr 416 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 433 drivers/base/power/sysfs.c struct device_attribute *attr, attr 451 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 468 drivers/base/power/sysfs.c struct device_attribute *attr, attr 487 drivers/base/power/sysfs.c struct device_attribute *attr, attr 508 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 515 drivers/base/power/sysfs.c struct device_attribute *attr, attr 524 drivers/base/power/sysfs.c struct device_attribute *attr, char *buf) attr 537 drivers/base/power/sysfs.c static ssize_t async_show(struct device *dev, struct device_attribute *attr, attr 545 drivers/base/power/sysfs.c static ssize_t async_store(struct device *dev, struct device_attribute *attr, attr 565 drivers/base/power/sysfs.c &dev_attr_async.attr, attr 567 drivers/base/power/sysfs.c &dev_attr_runtime_status.attr, attr 568 drivers/base/power/sysfs.c &dev_attr_runtime_usage.attr, attr 569 drivers/base/power/sysfs.c &dev_attr_runtime_active_kids.attr, attr 570 drivers/base/power/sysfs.c &dev_attr_runtime_enabled.attr, attr 581 drivers/base/power/sysfs.c &dev_attr_wakeup.attr, attr 582 drivers/base/power/sysfs.c &dev_attr_wakeup_count.attr, attr 583 drivers/base/power/sysfs.c &dev_attr_wakeup_active_count.attr, attr 584 drivers/base/power/sysfs.c &dev_attr_wakeup_abort_count.attr, attr 585 drivers/base/power/sysfs.c &dev_attr_wakeup_expire_count.attr, attr 586 drivers/base/power/sysfs.c &dev_attr_wakeup_active.attr, attr 587 drivers/base/power/sysfs.c &dev_attr_wakeup_total_time_ms.attr, attr 588 drivers/base/power/sysfs.c &dev_attr_wakeup_max_time_ms.attr, attr 589 drivers/base/power/sysfs.c &dev_attr_wakeup_last_time_ms.attr, attr 591 drivers/base/power/sysfs.c &dev_attr_wakeup_prevent_sleep_time_ms.attr, attr 603 drivers/base/power/sysfs.c &dev_attr_runtime_status.attr, attr 605 drivers/base/power/sysfs.c &dev_attr_control.attr, attr 606 drivers/base/power/sysfs.c &dev_attr_runtime_suspended_time.attr, attr 607 drivers/base/power/sysfs.c &dev_attr_runtime_active_time.attr, attr 608 drivers/base/power/sysfs.c &dev_attr_autosuspend_delay_ms.attr, attr 617 drivers/base/power/sysfs.c &dev_attr_pm_qos_resume_latency_us.attr, attr 626 drivers/base/power/sysfs.c &dev_attr_pm_qos_latency_tolerance_us.attr, attr 635 drivers/base/power/sysfs.c &dev_attr_pm_qos_no_power_off.attr, attr 25 drivers/base/power/wakeup_stats.c struct device_attribute *attr, char *buf) \ attr 39 drivers/base/power/wakeup_stats.c struct device_attribute *attr, char *buf) attr 50 drivers/base/power/wakeup_stats.c struct device_attribute *attr, char *buf) attr 65 drivers/base/power/wakeup_stats.c struct device_attribute *attr, char *buf) attr 81 drivers/base/power/wakeup_stats.c struct device_attribute *attr, char *buf) attr 89 drivers/base/power/wakeup_stats.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 99 drivers/base/power/wakeup_stats.c struct device_attribute *attr, attr 114 drivers/base/power/wakeup_stats.c &dev_attr_name.attr, attr 115 drivers/base/power/wakeup_stats.c &dev_attr_active_count.attr, attr 116 drivers/base/power/wakeup_stats.c &dev_attr_event_count.attr, attr 117 drivers/base/power/wakeup_stats.c &dev_attr_wakeup_count.attr, attr 118 drivers/base/power/wakeup_stats.c &dev_attr_expire_count.attr, attr 119 drivers/base/power/wakeup_stats.c &dev_attr_active_time_ms.attr, attr 120 drivers/base/power/wakeup_stats.c &dev_attr_total_time_ms.attr, attr 121 drivers/base/power/wakeup_stats.c &dev_attr_max_time_ms.attr, attr 122 drivers/base/power/wakeup_stats.c &dev_attr_last_change_ms.attr, attr 123 drivers/base/power/wakeup_stats.c &dev_attr_prevent_suspend_time_ms.attr, attr 747 drivers/base/property.c enum dev_dma_attr attr = DEV_DMA_NOT_SUPPORTED; attr 751 drivers/base/property.c attr = DEV_DMA_COHERENT; attr 753 drivers/base/property.c attr = DEV_DMA_NON_COHERENT; attr 755 drivers/base/property.c attr = acpi_get_dma_attr(ACPI_COMPANION(dev)); attr 757 drivers/base/property.c return attr; attr 21 drivers/base/soc.c struct device_attribute *attr, attr 26 drivers/base/soc.c struct soc_device_attribute *attr; attr 46 drivers/base/soc.c struct attribute *attr, attr 52 drivers/base/soc.c if ((attr == &dev_attr_machine.attr) attr 53 drivers/base/soc.c && (soc_dev->attr->machine != NULL)) attr 54 drivers/base/soc.c return attr->mode; attr 55 drivers/base/soc.c if ((attr == &dev_attr_family.attr) attr 56 drivers/base/soc.c && (soc_dev->attr->family != NULL)) attr 57 drivers/base/soc.c return attr->mode; attr 58 drivers/base/soc.c if ((attr == &dev_attr_revision.attr) attr 59 drivers/base/soc.c && (soc_dev->attr->revision != NULL)) attr 60 drivers/base/soc.c return attr->mode; attr 61 drivers/base/soc.c if ((attr == &dev_attr_serial_number.attr) attr 62 drivers/base/soc.c && (soc_dev->attr->serial_number != NULL)) attr 63 drivers/base/soc.c return attr->mode; attr 64 drivers/base/soc.c if ((attr == &dev_attr_soc_id.attr) attr 65 drivers/base/soc.c && (soc_dev->attr->soc_id != NULL)) attr 66 drivers/base/soc.c return attr->mode; attr 73 drivers/base/soc.c struct device_attribute *attr, attr 78 drivers/base/soc.c if (attr == &dev_attr_machine) attr 79 drivers/base/soc.c return sprintf(buf, "%s\n", soc_dev->attr->machine); attr 80 drivers/base/soc.c if (attr == &dev_attr_family) attr 81 drivers/base/soc.c return sprintf(buf, "%s\n", soc_dev->attr->family); attr 82 drivers/base/soc.c if (attr == &dev_attr_revision) attr 83 drivers/base/soc.c return sprintf(buf, "%s\n", soc_dev->attr->revision); attr 84 drivers/base/soc.c if (attr == &dev_attr_serial_number) attr 85 drivers/base/soc.c return sprintf(buf, "%s\n", soc_dev->attr->serial_number); attr 86 drivers/base/soc.c if (attr == &dev_attr_soc_id) attr 87 drivers/base/soc.c return sprintf(buf, "%s\n", soc_dev->attr->soc_id); attr 94 drivers/base/soc.c &dev_attr_machine.attr, attr 95 drivers/base/soc.c &dev_attr_family.attr, attr 96 drivers/base/soc.c &dev_attr_serial_number.attr, attr 97 drivers/base/soc.c &dev_attr_soc_id.attr, attr 98 drivers/base/soc.c &dev_attr_revision.attr, attr 145 drivers/base/soc.c soc_dev->attr = soc_dev_attr; attr 194 drivers/base/soc.c static int soc_device_match_attr(const struct soc_device_attribute *attr, attr 198 drivers/base/soc.c (!attr->machine || !glob_match(match->machine, attr->machine))) attr 202 drivers/base/soc.c (!attr->family || !glob_match(match->family, attr->family))) attr 206 drivers/base/soc.c (!attr->revision || !glob_match(match->revision, attr->revision))) attr 210 drivers/base/soc.c (!attr->soc_id || !glob_match(match->soc_id, attr->soc_id))) attr 220 drivers/base/soc.c return soc_device_match_attr(soc_dev->attr, arg); attr 19 drivers/base/topology.c struct device_attribute *attr, char *buf) \ attr 26 drivers/base/topology.c struct device_attribute *attr, char *buf) \ attr 33 drivers/base/topology.c struct device_attribute *attr, \ attr 89 drivers/base/topology.c &dev_attr_physical_package_id.attr, attr 90 drivers/base/topology.c &dev_attr_die_id.attr, attr 91 drivers/base/topology.c &dev_attr_core_id.attr, attr 92 drivers/base/topology.c &dev_attr_thread_siblings.attr, attr 93 drivers/base/topology.c &dev_attr_thread_siblings_list.attr, attr 94 drivers/base/topology.c &dev_attr_core_cpus.attr, attr 95 drivers/base/topology.c &dev_attr_core_cpus_list.attr, attr 96 drivers/base/topology.c &dev_attr_core_siblings.attr, attr 97 drivers/base/topology.c &dev_attr_core_siblings_list.attr, attr 98 drivers/base/topology.c &dev_attr_die_cpus.attr, attr 99 drivers/base/topology.c &dev_attr_die_cpus_list.attr, attr 100 drivers/base/topology.c &dev_attr_package_cpus.attr, attr 101 drivers/base/topology.c &dev_attr_package_cpus_list.attr, attr 103 drivers/base/topology.c &dev_attr_book_id.attr, attr 104 drivers/base/topology.c &dev_attr_book_siblings.attr, attr 105 drivers/base/topology.c &dev_attr_book_siblings_list.attr, attr 108 drivers/base/topology.c &dev_attr_drawer_id.attr, attr 109 drivers/base/topology.c &dev_attr_drawer_siblings.attr, attr 110 drivers/base/topology.c &dev_attr_drawer_siblings_list.attr, attr 33 drivers/bcma/main.c static ssize_t manuf_show(struct device *dev, struct device_attribute *attr, char *buf) attr 40 drivers/bcma/main.c static ssize_t id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 47 drivers/bcma/main.c static ssize_t rev_show(struct device *dev, struct device_attribute *attr, char *buf) attr 54 drivers/bcma/main.c static ssize_t class_show(struct device *dev, struct device_attribute *attr, char *buf) attr 62 drivers/bcma/main.c &dev_attr_manuf.attr, attr 63 drivers/bcma/main.c &dev_attr_id.attr, attr 64 drivers/bcma/main.c &dev_attr_rev.attr, attr 65 drivers/bcma/main.c &dev_attr_class.attr, attr 35 drivers/block/aoe/aoeblk.c struct device_attribute *attr, char *page) attr 48 drivers/block/aoe/aoeblk.c struct device_attribute *attr, char *page) attr 59 drivers/block/aoe/aoeblk.c struct device_attribute *attr, char *page) attr 97 drivers/block/aoe/aoeblk.c struct device_attribute *attr, char *page) attr 105 drivers/block/aoe/aoeblk.c struct device_attribute *attr, char *page) attr 166 drivers/block/aoe/aoeblk.c .attr = { .name = "firmware-version", .mode = 0444 }, attr 172 drivers/block/aoe/aoeblk.c &dev_attr_state.attr, attr 173 drivers/block/aoe/aoeblk.c &dev_attr_mac.attr, attr 174 drivers/block/aoe/aoeblk.c &dev_attr_netif.attr, attr 175 drivers/block/aoe/aoeblk.c &dev_attr_firmware_version.attr, attr 176 drivers/block/aoe/aoeblk.c &dev_attr_payload.attr, attr 3290 drivers/block/drbd/drbd_nl.c static struct nlattr *find_cfg_context_attr(const struct nlmsghdr *nlh, int attr) attr 3300 drivers/block/drbd/drbd_nl.c return drbd_nla_find_nested(maxtype, nla, __nla_type(attr)); attr 4467 drivers/block/floppy.c struct device_attribute *attr, char *buf) attr 4479 drivers/block/floppy.c &dev_attr_cmos.attr, attr 766 drivers/block/loop.c struct device_attribute *attr, char *b) \ attr 834 drivers/block/loop.c &loop_attr_backing_file.attr, attr 835 drivers/block/loop.c &loop_attr_offset.attr, attr 836 drivers/block/loop.c &loop_attr_sizelimit.attr, attr 837 drivers/block/loop.c &loop_attr_autoclear.attr, attr 838 drivers/block/loop.c &loop_attr_partscan.attr, attr 839 drivers/block/loop.c &loop_attr_dio.attr, attr 2144 drivers/block/mtip32xx/mtip32xx.c struct device_attribute *attr, attr 2401 drivers/block/mtip32xx/mtip32xx.c if (sysfs_create_file(kobj, &dev_attr_status.attr)) attr 2422 drivers/block/mtip32xx/mtip32xx.c sysfs_remove_file(kobj, &dev_attr_status.attr); attr 207 drivers/block/nbd.c struct device_attribute *attr, char *buf) attr 216 drivers/block/nbd.c .attr = { .name = "pid", .mode = 0444}, attr 1940 drivers/block/nbd.c struct nlattr *attr; attr 1943 drivers/block/nbd.c nla_for_each_nested(attr, info->attrs[NBD_ATTR_SOCKETS], attr 1947 drivers/block/nbd.c if (nla_type(attr) != NBD_SOCK_ITEM) { attr 1953 drivers/block/nbd.c attr, attr 2123 drivers/block/nbd.c struct nlattr *attr; attr 2126 drivers/block/nbd.c nla_for_each_nested(attr, info->attrs[NBD_ATTR_SOCKETS], attr 2130 drivers/block/nbd.c if (nla_type(attr) != NBD_SOCK_ITEM) { attr 2136 drivers/block/nbd.c attr, attr 1608 drivers/block/null_blk_main.c static bool __null_setup_fault(struct fault_attr *attr, char *str) attr 1613 drivers/block/null_blk_main.c if (!setup_fault_attr(attr, str)) attr 1616 drivers/block/null_blk_main.c attr->verbose = 0; attr 208 drivers/block/pktcdvd.c struct attribute *attr, char *data) attr 213 drivers/block/pktcdvd.c if (strcmp(attr->name, "packets_started") == 0) { attr 216 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "packets_finished") == 0) { attr 219 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "kb_written") == 0) { attr 222 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "kb_read") == 0) { attr 225 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "kb_read_gather") == 0) { attr 228 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "size") == 0) { attr 234 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "congestion_off") == 0) { attr 240 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "congestion_on") == 0) { attr 267 drivers/block/pktcdvd.c struct attribute *attr, attr 273 drivers/block/pktcdvd.c if (strcmp(attr->name, "reset") == 0 && len > 0) { attr 280 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "congestion_off") == 0 attr 288 drivers/block/pktcdvd.c } else if (strcmp(attr->name, "congestion_on") == 0 attr 353 drivers/block/pktcdvd.c static ssize_t device_map_show(struct class *c, struct class_attribute *attr, attr 374 drivers/block/pktcdvd.c static ssize_t add_store(struct class *c, struct class_attribute *attr, attr 395 drivers/block/pktcdvd.c static ssize_t remove_store(struct class *c, struct class_attribute *attr, attr 408 drivers/block/pktcdvd.c &class_attr_add.attr, attr 409 drivers/block/pktcdvd.c &class_attr_remove.attr, attr 410 drivers/block/pktcdvd.c &class_attr_device_map.attr, attr 547 drivers/block/rbd.c &bus_attr_add.attr, attr 548 drivers/block/rbd.c &bus_attr_remove.attr, attr 549 drivers/block/rbd.c &bus_attr_add_single_major.attr, attr 550 drivers/block/rbd.c &bus_attr_remove_single_major.attr, attr 551 drivers/block/rbd.c &bus_attr_supported_features.attr, attr 556 drivers/block/rbd.c struct attribute *attr, int index) attr 559 drivers/block/rbd.c (attr == &bus_attr_add_single_major.attr || attr 560 drivers/block/rbd.c attr == &bus_attr_remove_single_major.attr)) attr 563 drivers/block/rbd.c return attr->mode; attr 5210 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5223 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5232 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5243 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5251 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5262 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5271 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5279 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5287 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5295 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5304 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5312 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5323 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5335 drivers/block/rbd.c struct device_attribute *attr, attr 5344 drivers/block/rbd.c struct device_attribute *attr, char *buf) attr 5357 drivers/block/rbd.c struct device_attribute *attr, attr 5387 drivers/block/rbd.c struct device_attribute *attr, attr 5420 drivers/block/rbd.c &dev_attr_size.attr, attr 5421 drivers/block/rbd.c &dev_attr_features.attr, attr 5422 drivers/block/rbd.c &dev_attr_major.attr, attr 5423 drivers/block/rbd.c &dev_attr_minor.attr, attr 5424 drivers/block/rbd.c &dev_attr_client_addr.attr, attr 5425 drivers/block/rbd.c &dev_attr_client_id.attr, attr 5426 drivers/block/rbd.c &dev_attr_cluster_fsid.attr, attr 5427 drivers/block/rbd.c &dev_attr_config_info.attr, attr 5428 drivers/block/rbd.c &dev_attr_pool.attr, attr 5429 drivers/block/rbd.c &dev_attr_pool_id.attr, attr 5430 drivers/block/rbd.c &dev_attr_pool_ns.attr, attr 5431 drivers/block/rbd.c &dev_attr_name.attr, attr 5432 drivers/block/rbd.c &dev_attr_image_id.attr, attr 5433 drivers/block/rbd.c &dev_attr_current_snap.attr, attr 5434 drivers/block/rbd.c &dev_attr_snap_id.attr, attr 5435 drivers/block/rbd.c &dev_attr_parent.attr, attr 5436 drivers/block/rbd.c &dev_attr_refresh.attr, attr 495 drivers/block/virtio_blk.c struct device_attribute *attr, char *buf) attr 690 drivers/block/virtio_blk.c cache_type_store(struct device *dev, struct device_attribute *attr, attr 709 drivers/block/virtio_blk.c cache_type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 722 drivers/block/virtio_blk.c &dev_attr_serial.attr, attr 723 drivers/block/virtio_blk.c &dev_attr_cache_type.attr, attr 735 drivers/block/virtio_blk.c if (a == &dev_attr_cache_type.attr && attr 352 drivers/block/xen-blkback/xenbus.c struct device_attribute *attr, \ attr 384 drivers/block/xen-blkback/xenbus.c &dev_attr_oo_req.attr, attr 385 drivers/block/xen-blkback/xenbus.c &dev_attr_rd_req.attr, attr 386 drivers/block/xen-blkback/xenbus.c &dev_attr_wr_req.attr, attr 387 drivers/block/xen-blkback/xenbus.c &dev_attr_f_req.attr, attr 388 drivers/block/xen-blkback/xenbus.c &dev_attr_ds_req.attr, attr 389 drivers/block/xen-blkback/xenbus.c &dev_attr_rd_sect.attr, attr 390 drivers/block/xen-blkback/xenbus.c &dev_attr_wr_sect.attr, attr 401 drivers/block/xen-blkback/xenbus.c struct device_attribute *attr, \ attr 228 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 241 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 249 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 267 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 288 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 322 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 342 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 357 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 377 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 414 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 444 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 621 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 960 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 966 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 972 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 985 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 1013 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 1030 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 1048 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 1085 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 1103 drivers/block/zram/zram_drv.c struct device_attribute *attr, char *buf) attr 1706 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 1755 drivers/block/zram/zram_drv.c struct device_attribute *attr, const char *buf, size_t len) attr 1838 drivers/block/zram/zram_drv.c &dev_attr_disksize.attr, attr 1839 drivers/block/zram/zram_drv.c &dev_attr_initstate.attr, attr 1840 drivers/block/zram/zram_drv.c &dev_attr_reset.attr, attr 1841 drivers/block/zram/zram_drv.c &dev_attr_compact.attr, attr 1842 drivers/block/zram/zram_drv.c &dev_attr_mem_limit.attr, attr 1843 drivers/block/zram/zram_drv.c &dev_attr_mem_used_max.attr, attr 1844 drivers/block/zram/zram_drv.c &dev_attr_idle.attr, attr 1845 drivers/block/zram/zram_drv.c &dev_attr_max_comp_streams.attr, attr 1846 drivers/block/zram/zram_drv.c &dev_attr_comp_algorithm.attr, attr 1848 drivers/block/zram/zram_drv.c &dev_attr_backing_dev.attr, attr 1849 drivers/block/zram/zram_drv.c &dev_attr_writeback.attr, attr 1850 drivers/block/zram/zram_drv.c &dev_attr_writeback_limit.attr, attr 1851 drivers/block/zram/zram_drv.c &dev_attr_writeback_limit_enable.attr, attr 1853 drivers/block/zram/zram_drv.c &dev_attr_io_stat.attr, attr 1854 drivers/block/zram/zram_drv.c &dev_attr_mm_stat.attr, attr 1856 drivers/block/zram/zram_drv.c &dev_attr_bd_stat.attr, attr 1858 drivers/block/zram/zram_drv.c &dev_attr_debug_stat.attr, attr 2013 drivers/block/zram/zram_drv.c struct class_attribute *attr, attr 2029 drivers/block/zram/zram_drv.c struct class_attribute *attr, attr 2060 drivers/block/zram/zram_drv.c &class_attr_hot_add.attr, attr 2061 drivers/block/zram/zram_drv.c &class_attr_hot_remove.attr, attr 142 drivers/bus/brcmstb_gisb.c struct device_attribute *attr, attr 156 drivers/bus/brcmstb_gisb.c struct device_attribute *attr, attr 296 drivers/bus/brcmstb_gisb.c &dev_attr_gisb_arb_timeout.attr, attr 163 drivers/bus/fsl-mc/dpbp.c struct dpbp_attr *attr) attr 180 drivers/bus/fsl-mc/dpbp.c attr->bpid = le16_to_cpu(rsp_params->bpid); attr 181 drivers/bus/fsl-mc/dpbp.c attr->id = le32_to_cpu(rsp_params->id); attr 166 drivers/bus/fsl-mc/dpcon.c struct dpcon_attr *attr) attr 184 drivers/bus/fsl-mc/dpcon.c attr->id = le32_to_cpu(dpcon_rsp->id); attr 185 drivers/bus/fsl-mc/dpcon.c attr->qbman_ch_id = le16_to_cpu(dpcon_rsp->qbman_ch_id); attr 186 drivers/bus/fsl-mc/dpcon.c attr->num_priorities = dpcon_rsp->num_priorities; attr 265 drivers/bus/fsl-mc/dprc.c struct dprc_attributes *attr) attr 283 drivers/bus/fsl-mc/dprc.c attr->container_id = le32_to_cpu(rsp_params->container_id); attr 284 drivers/bus/fsl-mc/dprc.c attr->icid = le16_to_cpu(rsp_params->icid); attr 285 drivers/bus/fsl-mc/dprc.c attr->options = le32_to_cpu(rsp_params->options); attr 286 drivers/bus/fsl-mc/dprc.c attr->portal_id = le32_to_cpu(rsp_params->portal_id); attr 140 drivers/bus/fsl-mc/fsl-mc-bus.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 151 drivers/bus/fsl-mc/fsl-mc-bus.c &dev_attr_modalias.attr, attr 374 drivers/bus/fsl-mc/fsl-mc-bus.c int container_id, struct dprc_attributes *attr) attr 385 drivers/bus/fsl-mc/fsl-mc-bus.c memset(attr, 0, sizeof(struct dprc_attributes)); attr 386 drivers/bus/fsl-mc/fsl-mc-bus.c error = dprc_get_attributes(mc_io, 0, dprc_handle, attr); attr 403 drivers/bus/fsl-mc/fsl-mc-bus.c struct dprc_attributes attr; attr 406 drivers/bus/fsl-mc/fsl-mc-bus.c error = get_dprc_attr(mc_io, container_id, &attr); attr 408 drivers/bus/fsl-mc/fsl-mc-bus.c *icid = attr.icid; attr 93 drivers/bus/mips_cdmm.c struct device_attribute *attr, char *buf) \ attr 110 drivers/bus/mips_cdmm.c &dev_attr_cpu.attr, attr 111 drivers/bus/mips_cdmm.c &dev_attr_type.attr, attr 112 drivers/bus/mips_cdmm.c &dev_attr_revision.attr, attr 113 drivers/bus/mips_cdmm.c &dev_attr_modalias.attr, attr 114 drivers/bus/mips_cdmm.c &dev_attr_resource.attr, attr 71 drivers/bus/moxtet.c &dev_attr_module_id.attr, attr 72 drivers/bus/moxtet.c &dev_attr_module_name.attr, attr 73 drivers/bus/moxtet.c &dev_attr_module_description.attr, attr 202 drivers/bus/mvebu-mbus.c u32 *size, u8 *target, u8 *attr, attr 223 drivers/bus/mvebu-mbus.c if (attr) attr 224 drivers/bus/mvebu-mbus.c *attr = (ctrlreg & WIN_CTRL_ATTR_MASK) >> WIN_CTRL_ATTR_SHIFT; attr 273 drivers/bus/mvebu-mbus.c u8 target, u8 attr) attr 331 drivers/bus/mvebu-mbus.c u8 attr) attr 349 drivers/bus/mvebu-mbus.c (attr << WIN_CTRL_ATTR_SHIFT) | attr 376 drivers/bus/mvebu-mbus.c u8 attr) attr 388 drivers/bus/mvebu-mbus.c target, attr); attr 400 drivers/bus/mvebu-mbus.c remap, target, attr); attr 951 drivers/bus/mvebu-mbus.c int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr) attr 970 drivers/bus/mvebu-mbus.c *attr = cs->mbus_attr; attr 981 drivers/bus/mvebu-mbus.c u8 *attr) attr 990 drivers/bus/mvebu-mbus.c size, target, attr, NULL); attr 1185 drivers/bus/mvebu-mbus.c u8 target, u8 attr) attr 1187 drivers/bus/mvebu-mbus.c if (!mvebu_mbus_window_conflicts(mbus, base, size, target, attr)) { attr 1189 drivers/bus/mvebu-mbus.c target, attr); attr 1194 drivers/bus/mvebu-mbus.c target, attr)) { attr 1196 drivers/bus/mvebu-mbus.c target, attr); attr 1253 drivers/bus/mvebu-mbus.c u8 target, attr; attr 1264 drivers/bus/mvebu-mbus.c attr = ATTR(windowid); attr 1269 drivers/bus/mvebu-mbus.c ret = mbus_dt_setup_win(mbus, base, size, target, attr); attr 81 drivers/char/bsr.c bsr_size_show(struct device *dev, struct device_attribute *attr, char *buf) attr 89 drivers/char/bsr.c bsr_stride_show(struct device *dev, struct device_attribute *attr, char *buf) attr 97 drivers/char/bsr.c bsr_length_show(struct device *dev, struct device_attribute *attr, char *buf) attr 105 drivers/char/bsr.c &dev_attr_bsr_size.attr, attr 106 drivers/char/bsr.c &dev_attr_bsr_stride.attr, attr 107 drivers/char/bsr.c &dev_attr_bsr_length.attr, attr 319 drivers/char/hw_random/core.c struct device_attribute *attr, attr 347 drivers/char/hw_random/core.c struct device_attribute *attr, attr 364 drivers/char/hw_random/core.c struct device_attribute *attr, attr 385 drivers/char/hw_random/core.c struct device_attribute *attr, attr 402 drivers/char/hw_random/core.c &dev_attr_rng_current.attr, attr 403 drivers/char/hw_random/core.c &dev_attr_rng_available.attr, attr 404 drivers/char/hw_random/core.c &dev_attr_rng_selected.attr, attr 91 drivers/char/hw_random/optee-rng.c param[0].attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT; attr 191 drivers/char/hw_random/optee-rng.c param[0].attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_OUTPUT; attr 107 drivers/char/hw_random/s390-trng.c struct device_attribute *attr, char *buf) attr 133 drivers/char/hw_random/s390-trng.c &dev_attr_byte_counter.attr, attr 2614 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2630 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2645 drivers/char/ipmi/ipmi_msghandler.c static ssize_t revision_show(struct device *dev, struct device_attribute *attr, attr 2661 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2678 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2696 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2713 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2729 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2745 drivers/char/ipmi/ipmi_msghandler.c struct device_attribute *attr, attr 2764 drivers/char/ipmi/ipmi_msghandler.c static ssize_t guid_show(struct device *dev, struct device_attribute *attr, attr 2783 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_device_id.attr, attr 2784 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_provides_device_sdrs.attr, attr 2785 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_revision.attr, attr 2786 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_firmware_revision.attr, attr 2787 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_ipmi_version.attr, attr 2788 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_additional_device_support.attr, attr 2789 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_manufacturer_id.attr, attr 2790 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_product_id.attr, attr 2791 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_aux_firmware_revision.attr, attr 2792 drivers/char/ipmi/ipmi_msghandler.c &dev_attr_guid.attr, attr 2797 drivers/char/ipmi/ipmi_msghandler.c struct attribute *attr, int idx) attr 2801 drivers/char/ipmi/ipmi_msghandler.c umode_t mode = attr->mode; attr 2804 drivers/char/ipmi/ipmi_msghandler.c if (attr == &dev_attr_aux_firmware_revision.attr) { attr 2810 drivers/char/ipmi/ipmi_msghandler.c if (attr == &dev_attr_guid.attr) { attr 1605 drivers/char/ipmi/ipmi_si_intf.c struct device_attribute *attr, \ attr 1615 drivers/char/ipmi/ipmi_si_intf.c struct device_attribute *attr, attr 1625 drivers/char/ipmi/ipmi_si_intf.c struct device_attribute *attr, attr 1649 drivers/char/ipmi/ipmi_si_intf.c struct device_attribute *attr, attr 1668 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_type.attr, attr 1669 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_interrupts_enabled.attr, attr 1670 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_short_timeouts.attr, attr 1671 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_long_timeouts.attr, attr 1672 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_idles.attr, attr 1673 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_interrupts.attr, attr 1674 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_attentions.attr, attr 1675 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_flag_fetches.attr, attr 1676 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_hosed_count.attr, attr 1677 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_complete_transactions.attr, attr 1678 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_events.attr, attr 1679 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_watchdog_pretimeouts.attr, attr 1680 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_incoming_messages.attr, attr 1681 drivers/char/ipmi/ipmi_si_intf.c &dev_attr_params.attr, attr 1234 drivers/char/ipmi/ipmi_ssif.c struct device_attribute *attr, \ attr 1244 drivers/char/ipmi/ipmi_ssif.c struct device_attribute *attr, attr 1266 drivers/char/ipmi/ipmi_ssif.c &dev_attr_type.attr, attr 1267 drivers/char/ipmi/ipmi_ssif.c &dev_attr_sent_messages.attr, attr 1268 drivers/char/ipmi/ipmi_ssif.c &dev_attr_sent_messages_parts.attr, attr 1269 drivers/char/ipmi/ipmi_ssif.c &dev_attr_send_retries.attr, attr 1270 drivers/char/ipmi/ipmi_ssif.c &dev_attr_send_errors.attr, attr 1271 drivers/char/ipmi/ipmi_ssif.c &dev_attr_received_messages.attr, attr 1272 drivers/char/ipmi/ipmi_ssif.c &dev_attr_received_message_parts.attr, attr 1273 drivers/char/ipmi/ipmi_ssif.c &dev_attr_receive_retries.attr, attr 1274 drivers/char/ipmi/ipmi_ssif.c &dev_attr_receive_errors.attr, attr 1275 drivers/char/ipmi/ipmi_ssif.c &dev_attr_flag_fetches.attr, attr 1276 drivers/char/ipmi/ipmi_ssif.c &dev_attr_hosed.attr, attr 1277 drivers/char/ipmi/ipmi_ssif.c &dev_attr_events.attr, attr 1278 drivers/char/ipmi/ipmi_ssif.c &dev_attr_watchdog_pretimeouts.attr, attr 1279 drivers/char/ipmi/ipmi_ssif.c &dev_attr_alerts.attr, attr 505 drivers/char/mwave/mwavedd.c static ssize_t mwave_show_##attr_name(struct device *dev, struct device_attribute *attr, char *buf) \ attr 684 drivers/char/mwave/mwavedd.c mwave_dev_attrs[i]->attr.name); attr 280 drivers/char/tlclk.c struct device_attribute *attr, char *buf) attr 296 drivers/char/tlclk.c struct device_attribute *attr, char *buf) attr 312 drivers/char/tlclk.c struct device_attribute *attr, char *buf) attr 327 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 349 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 371 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 392 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 413 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 435 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 456 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 477 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 498 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 540 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 582 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 603 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 624 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 644 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 665 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 686 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 705 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 725 drivers/char/tlclk.c struct device_attribute *attr, const char *buf, size_t count) attr 745 drivers/char/tlclk.c &dev_attr_current_ref.attr, attr 746 drivers/char/tlclk.c &dev_attr_telclock_version.attr, attr 747 drivers/char/tlclk.c &dev_attr_alarms.attr, attr 748 drivers/char/tlclk.c &dev_attr_received_ref_clk3a.attr, attr 749 drivers/char/tlclk.c &dev_attr_received_ref_clk3b.attr, attr 750 drivers/char/tlclk.c &dev_attr_enable_clk3a_output.attr, attr 751 drivers/char/tlclk.c &dev_attr_enable_clk3b_output.attr, attr 752 drivers/char/tlclk.c &dev_attr_enable_clkb1_output.attr, attr 753 drivers/char/tlclk.c &dev_attr_enable_clka1_output.attr, attr 754 drivers/char/tlclk.c &dev_attr_enable_clkb0_output.attr, attr 755 drivers/char/tlclk.c &dev_attr_enable_clka0_output.attr, attr 756 drivers/char/tlclk.c &dev_attr_select_amcb1_transmit_clock.attr, attr 757 drivers/char/tlclk.c &dev_attr_select_amcb2_transmit_clock.attr, attr 758 drivers/char/tlclk.c &dev_attr_select_redundant_clock.attr, attr 759 drivers/char/tlclk.c &dev_attr_select_ref_frequency.attr, attr 760 drivers/char/tlclk.c &dev_attr_filter_select.attr, attr 761 drivers/char/tlclk.c &dev_attr_hardware_switching_mode.attr, attr 762 drivers/char/tlclk.c &dev_attr_hardware_switching.attr, attr 763 drivers/char/tlclk.c &dev_attr_refalign.attr, attr 764 drivers/char/tlclk.c &dev_attr_mode_select.attr, attr 765 drivers/char/tlclk.c &dev_attr_reset.attr, attr 32 drivers/char/tpm/tpm-sysfs.c static ssize_t pubek_show(struct device *dev, struct device_attribute *attr, attr 93 drivers/char/tpm/tpm-sysfs.c static ssize_t pcrs_show(struct device *dev, struct device_attribute *attr, attr 128 drivers/char/tpm/tpm-sysfs.c static ssize_t enabled_show(struct device *dev, struct device_attribute *attr, attr 150 drivers/char/tpm/tpm-sysfs.c static ssize_t active_show(struct device *dev, struct device_attribute *attr, attr 172 drivers/char/tpm/tpm-sysfs.c static ssize_t owned_show(struct device *dev, struct device_attribute *attr, attr 195 drivers/char/tpm/tpm-sysfs.c struct device_attribute *attr, char *buf) attr 216 drivers/char/tpm/tpm-sysfs.c static ssize_t caps_show(struct device *dev, struct device_attribute *attr, attr 266 drivers/char/tpm/tpm-sysfs.c static ssize_t cancel_store(struct device *dev, struct device_attribute *attr, attr 280 drivers/char/tpm/tpm-sysfs.c static ssize_t durations_show(struct device *dev, struct device_attribute *attr, attr 297 drivers/char/tpm/tpm-sysfs.c static ssize_t timeouts_show(struct device *dev, struct device_attribute *attr, attr 313 drivers/char/tpm/tpm-sysfs.c &dev_attr_pubek.attr, attr 314 drivers/char/tpm/tpm-sysfs.c &dev_attr_pcrs.attr, attr 315 drivers/char/tpm/tpm-sysfs.c &dev_attr_enabled.attr, attr 316 drivers/char/tpm/tpm-sysfs.c &dev_attr_active.attr, attr 317 drivers/char/tpm/tpm-sysfs.c &dev_attr_owned.attr, attr 318 drivers/char/tpm/tpm-sysfs.c &dev_attr_temp_deactivated.attr, attr 319 drivers/char/tpm/tpm-sysfs.c &dev_attr_caps.attr, attr 320 drivers/char/tpm/tpm-sysfs.c &dev_attr_cancel.attr, attr 321 drivers/char/tpm/tpm-sysfs.c &dev_attr_durations.attr, attr 322 drivers/char/tpm/tpm-sysfs.c &dev_attr_timeouts.attr, attr 104 drivers/char/tpm/tpm_ftpm_tee.c .attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT, attr 122 drivers/char/tpm/tpm_ftpm_tee.c .attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT, attr 51 drivers/char/tpm/tpm_ppi.c struct device_attribute *attr, char *buf) attr 59 drivers/char/tpm/tpm_ppi.c struct device_attribute *attr, char *buf) attr 113 drivers/char/tpm/tpm_ppi.c struct device_attribute *attr, attr 176 drivers/char/tpm/tpm_ppi.c struct device_attribute *attr, attr 222 drivers/char/tpm/tpm_ppi.c struct device_attribute *attr, attr 325 drivers/char/tpm/tpm_ppi.c struct device_attribute *attr, attr 335 drivers/char/tpm/tpm_ppi.c struct device_attribute *attr, attr 354 drivers/char/tpm/tpm_ppi.c &dev_attr_version.attr, attr 355 drivers/char/tpm/tpm_ppi.c &dev_attr_request.attr, attr 356 drivers/char/tpm/tpm_ppi.c &dev_attr_transition_action.attr, attr 357 drivers/char/tpm/tpm_ppi.c &dev_attr_response.attr, attr 358 drivers/char/tpm/tpm_ppi.c &dev_attr_tcg_operations.attr, attr 359 drivers/char/tpm/tpm_ppi.c &dev_attr_vs_operations.attr, NULL, attr 1278 drivers/char/virtio_console.c struct device_attribute *attr, char *buffer) attr 1290 drivers/char/virtio_console.c &dev_attr_name.attr, attr 378 drivers/clk/renesas/rcar-gen2-cpg.c const struct soc_device_attribute *attr; attr 383 drivers/clk/renesas/rcar-gen2-cpg.c attr = soc_device_match(cpg_quirks_match); attr 384 drivers/clk/renesas/rcar-gen2-cpg.c if (attr) attr 385 drivers/clk/renesas/rcar-gen2-cpg.c cpg_quirks = (uintptr_t)attr->data; attr 712 drivers/clk/renesas/rcar-gen3-cpg.c const struct soc_device_attribute *attr; attr 717 drivers/clk/renesas/rcar-gen3-cpg.c attr = soc_device_match(cpg_quirks_match); attr 718 drivers/clk/renesas/rcar-gen3-cpg.c if (attr) attr 719 drivers/clk/renesas/rcar-gen3-cpg.c cpg_quirks = (uintptr_t)attr->data; attr 107 drivers/clk/zynqmp/clkc.c u32 attr[CLK_GET_ATTR_RESP_WORDS]; attr 657 drivers/clk/zynqmp/clkc.c struct attr_resp attr; attr 661 drivers/clk/zynqmp/clkc.c ret = zynqmp_pm_clock_get_attributes(i, &attr); attr 665 drivers/clk/zynqmp/clkc.c clock[i].valid = FIELD_GET(CLK_ATTR_VALID, attr.attr[0]); attr 666 drivers/clk/zynqmp/clkc.c clock[i].type = FIELD_GET(CLK_ATTR_TYPE, attr.attr[0]) ? attr 669 drivers/clk/zynqmp/clkc.c nodetype = FIELD_GET(CLK_ATTR_NODE_TYPE, attr.attr[0]); attr 670 drivers/clk/zynqmp/clkc.c subclass = FIELD_GET(CLK_ATTR_NODE_SUBCLASS, attr.attr[0]); attr 671 drivers/clk/zynqmp/clkc.c class = FIELD_GET(CLK_ATTR_NODE_CLASS, attr.attr[0]); attr 307 drivers/counter/counter.c ssize_t (*show)(struct device *dev, struct device_attribute *attr, attr 309 drivers/counter/counter.c ssize_t (*store)(struct device *dev, struct device_attribute *attr, attr 333 drivers/counter/counter.c sysfs_attr_init(&dev_attr->attr); attr 336 drivers/counter/counter.c dev_attr->attr.name = kasprintf(GFP_KERNEL, "%s%s", parm->prefix, attr 338 drivers/counter/counter.c if (!dev_attr->attr.name) { attr 343 drivers/counter/counter.c dev_attr->attr.mode |= 0444; attr 347 drivers/counter/counter.c dev_attr->attr.mode |= 0200; attr 373 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 376 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 394 drivers/counter/counter.c struct device_attribute *attr, attr 397 drivers/counter/counter.c const struct counter_name_unit *const comp = to_counter_attr(attr)->component; attr 444 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 446 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 454 drivers/counter/counter.c struct device_attribute *attr, attr 457 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 471 drivers/counter/counter.c kfree(p->dev_attr.attr.name); attr 620 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 622 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 642 drivers/counter/counter.c struct device_attribute *attr, attr 645 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 680 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 682 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 783 drivers/counter/counter.c struct device_attribute *attr, attr 787 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 801 drivers/counter/counter.c struct device_attribute *attr, attr 805 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 830 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 834 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 851 drivers/counter/counter.c struct device_attribute *attr, attr 854 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 888 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 890 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 898 drivers/counter/counter.c struct device_attribute *attr, attr 901 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 959 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 961 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 1117 drivers/counter/counter.c struct device_attribute *attr, attr 1120 drivers/counter/counter.c const struct counter_size_unit *const comp = to_counter_attr(attr)->component; attr 1161 drivers/counter/counter.c struct device_attribute *attr, char *buf) attr 1163 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 1171 drivers/counter/counter.c struct device_attribute *attr, attr 1174 drivers/counter/counter.c const struct counter_device_attr *const devattr = to_counter_attr(attr); attr 1356 drivers/counter/counter.c group->attr_group.attrs[j++] = &p->dev_attr.attr; attr 892 drivers/cpufreq/acpi-cpufreq.c .attr = acpi_cpufreq_attr, attr 953 drivers/cpufreq/acpi-cpufreq.c struct freq_attr **attr; attr 957 drivers/cpufreq/acpi-cpufreq.c for (attr = acpi_cpufreq_attr; *attr; attr++) attr 958 drivers/cpufreq/acpi-cpufreq.c if (*attr == &cpb) { attr 959 drivers/cpufreq/acpi-cpufreq.c *attr = NULL; attr 544 drivers/cpufreq/arm_big_little.c .attr = cpufreq_generic_attr, attr 155 drivers/cpufreq/bmips-cpufreq.c .attr = cpufreq_generic_attr, attr 690 drivers/cpufreq/brcmstb-avs-cpufreq.c .attr = brcm_avs_cpufreq_attr, attr 339 drivers/cpufreq/cpufreq-dt.c .attr = cpufreq_dt_attr, attr 581 drivers/cpufreq/cpufreq.c struct kobj_attribute *attr, char *buf) attr 586 drivers/cpufreq/cpufreq.c static ssize_t store_boost(struct kobject *kobj, struct kobj_attribute *attr, attr 913 drivers/cpufreq/cpufreq.c &cpuinfo_min_freq.attr, attr 914 drivers/cpufreq/cpufreq.c &cpuinfo_max_freq.attr, attr 915 drivers/cpufreq/cpufreq.c &cpuinfo_transition_latency.attr, attr 916 drivers/cpufreq/cpufreq.c &scaling_min_freq.attr, attr 917 drivers/cpufreq/cpufreq.c &scaling_max_freq.attr, attr 918 drivers/cpufreq/cpufreq.c &affected_cpus.attr, attr 919 drivers/cpufreq/cpufreq.c &related_cpus.attr, attr 920 drivers/cpufreq/cpufreq.c &scaling_governor.attr, attr 921 drivers/cpufreq/cpufreq.c &scaling_driver.attr, attr 922 drivers/cpufreq/cpufreq.c &scaling_available_governors.attr, attr 923 drivers/cpufreq/cpufreq.c &scaling_setspeed.attr, attr 928 drivers/cpufreq/cpufreq.c #define to_attr(a) container_of(a, struct freq_attr, attr) attr 930 drivers/cpufreq/cpufreq.c static ssize_t show(struct kobject *kobj, struct attribute *attr, char *buf) attr 933 drivers/cpufreq/cpufreq.c struct freq_attr *fattr = to_attr(attr); attr 946 drivers/cpufreq/cpufreq.c static ssize_t store(struct kobject *kobj, struct attribute *attr, attr 950 drivers/cpufreq/cpufreq.c struct freq_attr *fattr = to_attr(attr); attr 1020 drivers/cpufreq/cpufreq.c drv_attr = cpufreq_driver->attr; attr 1022 drivers/cpufreq/cpufreq.c ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); attr 1028 drivers/cpufreq/cpufreq.c ret = sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr); attr 1033 drivers/cpufreq/cpufreq.c ret = sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr); attr 1038 drivers/cpufreq/cpufreq.c ret = sysfs_create_file(&policy->kobj, &bios_limit.attr); attr 2567 drivers/cpufreq/cpufreq.c ret = sysfs_create_file(cpufreq_global_kobject, &boost.attr); attr 2578 drivers/cpufreq/cpufreq.c sysfs_remove_file(cpufreq_global_kobject, &boost.attr); attr 259 drivers/cpufreq/cpufreq_conservative.c &sampling_rate.attr, attr 260 drivers/cpufreq/cpufreq_conservative.c &sampling_down_factor.attr, attr 261 drivers/cpufreq/cpufreq_conservative.c &up_threshold.attr, attr 262 drivers/cpufreq/cpufreq_conservative.c &down_threshold.attr, attr 263 drivers/cpufreq/cpufreq_conservative.c &ignore_nice_load.attr, attr 264 drivers/cpufreq/cpufreq_conservative.c &freq_step.attr, attr 16 drivers/cpufreq/cpufreq_governor_attr_set.c static inline struct governor_attr *to_gov_attr(struct attribute *attr) attr 18 drivers/cpufreq/cpufreq_governor_attr_set.c return container_of(attr, struct governor_attr, attr); attr 21 drivers/cpufreq/cpufreq_governor_attr_set.c static ssize_t governor_show(struct kobject *kobj, struct attribute *attr, attr 24 drivers/cpufreq/cpufreq_governor_attr_set.c struct governor_attr *gattr = to_gov_attr(attr); attr 29 drivers/cpufreq/cpufreq_governor_attr_set.c static ssize_t governor_store(struct kobject *kobj, struct attribute *attr, attr 33 drivers/cpufreq/cpufreq_governor_attr_set.c struct governor_attr *gattr = to_gov_attr(attr); attr 330 drivers/cpufreq/cpufreq_ondemand.c &sampling_rate.attr, attr 331 drivers/cpufreq/cpufreq_ondemand.c &up_threshold.attr, attr 332 drivers/cpufreq/cpufreq_ondemand.c &sampling_down_factor.attr, attr 333 drivers/cpufreq/cpufreq_ondemand.c &ignore_nice_load.attr, attr 334 drivers/cpufreq/cpufreq_ondemand.c &powersave_bias.attr, attr 335 drivers/cpufreq/cpufreq_ondemand.c &io_is_busy.attr, attr 133 drivers/cpufreq/cpufreq_stats.c &total_trans.attr, attr 134 drivers/cpufreq/cpufreq_stats.c &time_in_state.attr, attr 135 drivers/cpufreq/cpufreq_stats.c &reset.attr, attr 136 drivers/cpufreq/cpufreq_stats.c &trans_table.attr, attr 104 drivers/cpufreq/davinci-cpufreq.c .attr = cpufreq_generic_attr, attr 381 drivers/cpufreq/e_powersaver.c .attr = cpufreq_generic_attr, attr 197 drivers/cpufreq/elanfreq.c .attr = cpufreq_generic_attr, attr 331 drivers/cpufreq/ia64-acpi-cpufreq.c .attr = cpufreq_generic_attr, attr 209 drivers/cpufreq/imx6q-cpufreq.c .attr = cpufreq_generic_attr, attr 937 drivers/cpufreq/intel_pstate.c (struct kobject *kobj, struct kobj_attribute *attr, char *buf) \ attr 946 drivers/cpufreq/intel_pstate.c struct kobj_attribute *attr, char *buf) attr 971 drivers/cpufreq/intel_pstate.c struct kobj_attribute *attr, char *buf) attr 997 drivers/cpufreq/intel_pstate.c struct kobj_attribute *attr, char *buf) attr 1018 drivers/cpufreq/intel_pstate.c struct kobj_attribute *attr, char *buf) attr 1196 drivers/cpufreq/intel_pstate.c struct kobj_attribute *attr, char *buf) attr 1232 drivers/cpufreq/intel_pstate.c &status.attr, attr 1233 drivers/cpufreq/intel_pstate.c &no_turbo.attr, attr 1234 drivers/cpufreq/intel_pstate.c &turbo_pct.attr, attr 1235 drivers/cpufreq/intel_pstate.c &num_pstates.attr, attr 1264 drivers/cpufreq/intel_pstate.c rc = sysfs_create_file(intel_pstate_kobject, &max_perf_pct.attr); attr 1267 drivers/cpufreq/intel_pstate.c rc = sysfs_create_file(intel_pstate_kobject, &min_perf_pct.attr); attr 1272 drivers/cpufreq/intel_pstate.c &hwp_dynamic_boost.attr); attr 2755 drivers/cpufreq/intel_pstate.c intel_pstate.attr = hwp_cpufreq_attrs; attr 99 drivers/cpufreq/kirkwood-cpufreq.c .attr = cpufreq_generic_attr, attr 909 drivers/cpufreq/longhaul.c .attr = cpufreq_generic_attr, attr 125 drivers/cpufreq/loongson1-cpufreq.c .attr = cpufreq_generic_attr, attr 115 drivers/cpufreq/loongson2_cpufreq.c .attr = cpufreq_generic_attr, attr 154 drivers/cpufreq/maple-cpufreq.c .attr = cpufreq_generic_attr, attr 475 drivers/cpufreq/mediatek-cpufreq.c .attr = cpufreq_generic_attr, attr 154 drivers/cpufreq/omap-cpufreq.c .attr = cpufreq_generic_attr, attr 230 drivers/cpufreq/p4-clockmod.c .attr = cpufreq_generic_attr, attr 249 drivers/cpufreq/pasemi-cpufreq.c .attr = cpufreq_generic_attr, attr 444 drivers/cpufreq/pmac32-cpufreq.c .attr = cpufreq_generic_attr, attr 335 drivers/cpufreq/pmac64-cpufreq.c .attr = cpufreq_generic_attr, attr 257 drivers/cpufreq/powernow-k6.c .attr = cpufreq_generic_attr, attr 671 drivers/cpufreq/powernow-k7.c .attr = cpufreq_generic_attr, attr 1150 drivers/cpufreq/powernow-k8.c .attr = cpufreq_generic_attr, attr 415 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_unthrottle.attr, attr 416 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_powercap.attr, attr 417 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_overtemp.attr, attr 418 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_supply_fault.attr, attr 419 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_overcurrent.attr, attr 420 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_occ_reset.attr, attr 421 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_turbo_stat.attr, attr 422 drivers/cpufreq/powernv-cpufreq.c &throttle_attr_sub_turbo_stat.attr, attr 1039 drivers/cpufreq/powernv-cpufreq.c .attr = powernv_cpu_freq_attr, attr 280 drivers/cpufreq/qcom-cpufreq-hw.c .attr = qcom_cpufreq_hw_attr, attr 264 drivers/cpufreq/qoriq-cpufreq.c .attr = cpufreq_generic_attr, attr 475 drivers/cpufreq/s3c2416-cpufreq.c .attr = cpufreq_generic_attr, attr 94 drivers/cpufreq/sc520_freq.c .attr = cpufreq_generic_attr, attr 232 drivers/cpufreq/scmi-cpufreq.c .attr = cpufreq_generic_attr, attr 204 drivers/cpufreq/scpi-cpufreq.c .attr = cpufreq_generic_attr, attr 78 drivers/cpufreq/sfi-cpufreq.c .attr = cpufreq_generic_attr, attr 168 drivers/cpufreq/sh-cpufreq.c .attr = cpufreq_generic_attr, attr 168 drivers/cpufreq/spear-cpufreq.c .attr = cpufreq_generic_attr, attr 514 drivers/cpufreq/speedstep-centrino.c .attr = cpufreq_generic_attr, attr 318 drivers/cpufreq/speedstep-ich.c .attr = cpufreq_generic_attr, attr 298 drivers/cpufreq/speedstep-smi.c .attr = cpufreq_generic_attr, attr 100 drivers/cpufreq/tegra186-cpufreq.c .attr = cpufreq_generic_attr, attr 166 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.attr = cpufreq_generic_attr; attr 30 drivers/cpuidle/sysfs.c struct device_attribute *attr, attr 51 drivers/cpuidle/sysfs.c struct device_attribute *attr, attr 69 drivers/cpuidle/sysfs.c struct device_attribute *attr, attr 85 drivers/cpuidle/sysfs.c struct device_attribute *attr, attr 122 drivers/cpuidle/sysfs.c &dev_attr_current_driver.attr, attr 123 drivers/cpuidle/sysfs.c &dev_attr_current_governor_ro.attr, attr 132 drivers/cpuidle/sysfs.c &dev_attr_available_governors.attr, attr 133 drivers/cpuidle/sysfs.c &dev_attr_current_driver.attr, attr 134 drivers/cpuidle/sysfs.c &dev_attr_current_governor.attr, attr 163 drivers/cpuidle/sysfs.c struct attribute attr; attr 173 drivers/cpuidle/sysfs.c #define attr_to_cpuidleattr(a) container_of(a, struct cpuidle_attr, attr) attr 189 drivers/cpuidle/sysfs.c static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, attr 194 drivers/cpuidle/sysfs.c struct cpuidle_attr *cattr = attr_to_cpuidleattr(attr); attr 204 drivers/cpuidle/sysfs.c static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, attr 209 drivers/cpuidle/sysfs.c struct cpuidle_attr *cattr = attr_to_cpuidleattr(attr); attr 238 drivers/cpuidle/sysfs.c struct attribute attr; attr 319 drivers/cpuidle/sysfs.c &attr_name.attr, attr 320 drivers/cpuidle/sysfs.c &attr_desc.attr, attr 321 drivers/cpuidle/sysfs.c &attr_latency.attr, attr 322 drivers/cpuidle/sysfs.c &attr_residency.attr, attr 323 drivers/cpuidle/sysfs.c &attr_power.attr, attr 324 drivers/cpuidle/sysfs.c &attr_usage.attr, attr 325 drivers/cpuidle/sysfs.c &attr_time.attr, attr 326 drivers/cpuidle/sysfs.c &attr_disable.attr, attr 327 drivers/cpuidle/sysfs.c &attr_above.attr, attr 328 drivers/cpuidle/sysfs.c &attr_below.attr, attr 360 drivers/cpuidle/sysfs.c &attr_s2idle_usage.attr, attr 361 drivers/cpuidle/sysfs.c &attr_s2idle_time.attr, attr 396 drivers/cpuidle/sysfs.c #define attr_to_stateattr(a) container_of(a, struct cpuidle_state_attr, attr) attr 398 drivers/cpuidle/sysfs.c static ssize_t cpuidle_state_show(struct kobject *kobj, struct attribute *attr, attr 404 drivers/cpuidle/sysfs.c struct cpuidle_state_attr * cattr = attr_to_stateattr(attr); attr 412 drivers/cpuidle/sysfs.c static ssize_t cpuidle_state_store(struct kobject *kobj, struct attribute *attr, attr 418 drivers/cpuidle/sysfs.c struct cpuidle_state_attr *cattr = attr_to_stateattr(attr); attr 514 drivers/cpuidle/sysfs.c #define attr_to_driver_attr(a) container_of(a, struct cpuidle_driver_attr, attr) attr 527 drivers/cpuidle/sysfs.c struct attribute attr; attr 549 drivers/cpuidle/sysfs.c static ssize_t cpuidle_driver_show(struct kobject *kobj, struct attribute *attr, attr 554 drivers/cpuidle/sysfs.c struct cpuidle_driver_attr *dattr = attr_to_driver_attr(attr); attr 562 drivers/cpuidle/sysfs.c static ssize_t cpuidle_driver_store(struct kobject *kobj, struct attribute *attr, attr 567 drivers/cpuidle/sysfs.c struct cpuidle_driver_attr *dattr = attr_to_driver_attr(attr); attr 583 drivers/cpuidle/sysfs.c &attr_driver_name.attr, attr 145 drivers/crypto/caam/dpseci.c struct dpseci_attr *attr) attr 159 drivers/crypto/caam/dpseci.c attr->id = le32_to_cpu(rsp_params->id); attr 160 drivers/crypto/caam/dpseci.c attr->num_tx_queues = rsp_params->num_tx_queues; attr 161 drivers/crypto/caam/dpseci.c attr->num_rx_queues = rsp_params->num_rx_queues; attr 162 drivers/crypto/caam/dpseci.c attr->options = le32_to_cpu(rsp_params->options); attr 214 drivers/crypto/caam/dpseci.c u8 queue, struct dpseci_rx_queue_attr *attr) attr 229 drivers/crypto/caam/dpseci.c attr->dest_cfg.dest_id = le32_to_cpu(cmd_params->dest_id); attr 230 drivers/crypto/caam/dpseci.c attr->dest_cfg.priority = cmd_params->priority; attr 231 drivers/crypto/caam/dpseci.c attr->dest_cfg.dest_type = dpseci_get_field(cmd_params->dest_type, attr 233 drivers/crypto/caam/dpseci.c attr->user_ctx = le64_to_cpu(cmd_params->user_ctx); attr 234 drivers/crypto/caam/dpseci.c attr->fqid = le32_to_cpu(cmd_params->fqid); attr 235 drivers/crypto/caam/dpseci.c attr->order_preservation_en = attr 254 drivers/crypto/caam/dpseci.c u8 queue, struct dpseci_tx_queue_attr *attr) attr 271 drivers/crypto/caam/dpseci.c attr->fqid = le32_to_cpu(rsp_params->fqid); attr 272 drivers/crypto/caam/dpseci.c attr->priority = rsp_params->priority; attr 287 drivers/crypto/caam/dpseci.c struct dpseci_sec_attr *attr) attr 301 drivers/crypto/caam/dpseci.c attr->ip_id = le16_to_cpu(rsp_params->ip_id); attr 302 drivers/crypto/caam/dpseci.c attr->major_rev = rsp_params->major_rev; attr 303 drivers/crypto/caam/dpseci.c attr->minor_rev = rsp_params->minor_rev; attr 304 drivers/crypto/caam/dpseci.c attr->era = rsp_params->era; attr 305 drivers/crypto/caam/dpseci.c attr->deco_num = rsp_params->deco_num; attr 306 drivers/crypto/caam/dpseci.c attr->zuc_auth_acc_num = rsp_params->zuc_auth_acc_num; attr 307 drivers/crypto/caam/dpseci.c attr->zuc_enc_acc_num = rsp_params->zuc_enc_acc_num; attr 308 drivers/crypto/caam/dpseci.c attr->snow_f8_acc_num = rsp_params->snow_f8_acc_num; attr 309 drivers/crypto/caam/dpseci.c attr->snow_f9_acc_num = rsp_params->snow_f9_acc_num; attr 310 drivers/crypto/caam/dpseci.c attr->crc_acc_num = rsp_params->crc_acc_num; attr 311 drivers/crypto/caam/dpseci.c attr->pk_acc_num = rsp_params->pk_acc_num; attr 312 drivers/crypto/caam/dpseci.c attr->kasumi_acc_num = rsp_params->kasumi_acc_num; attr 313 drivers/crypto/caam/dpseci.c attr->rng_acc_num = rsp_params->rng_acc_num; attr 314 drivers/crypto/caam/dpseci.c attr->md_acc_num = rsp_params->md_acc_num; attr 315 drivers/crypto/caam/dpseci.c attr->arc4_acc_num = rsp_params->arc4_acc_num; attr 316 drivers/crypto/caam/dpseci.c attr->des_acc_num = rsp_params->des_acc_num; attr 317 drivers/crypto/caam/dpseci.c attr->aes_acc_num = rsp_params->aes_acc_num; attr 318 drivers/crypto/caam/dpseci.c attr->ccha_acc_num = rsp_params->ccha_acc_num; attr 319 drivers/crypto/caam/dpseci.c attr->ptha_acc_num = rsp_params->ptha_acc_num; attr 81 drivers/crypto/caam/dpseci.h struct dpseci_attr *attr); attr 173 drivers/crypto/caam/dpseci.h u8 queue, struct dpseci_rx_queue_attr *attr); attr 186 drivers/crypto/caam/dpseci.h u8 queue, struct dpseci_tx_queue_attr *attr); attr 249 drivers/crypto/caam/dpseci.h struct dpseci_sec_attr *attr); attr 127 drivers/crypto/ccp/sp-platform.c enum dev_dma_attr attr; attr 154 drivers/crypto/ccp/sp-platform.c attr = device_get_dma_attr(dev); attr 155 drivers/crypto/ccp/sp-platform.c if (attr == DEV_DMA_NOT_SUPPORTED) { attr 160 drivers/crypto/ccp/sp-platform.c sp_platform->coherent = (attr == DEV_DMA_COHERENT); attr 852 drivers/crypto/nx/nx-842-pseries.c struct device_attribute *attr, \ attr 887 drivers/crypto/nx/nx-842-pseries.c struct device_attribute *attr, char *buf) { attr 902 drivers/crypto/nx/nx-842-pseries.c if (attr == &dev_attr_comp_times) attr 904 drivers/crypto/nx/nx-842-pseries.c else if (attr == &dev_attr_decomp_times) attr 930 drivers/crypto/nx/nx-842-pseries.c &dev_attr_comp_complete.attr, attr 931 drivers/crypto/nx/nx-842-pseries.c &dev_attr_comp_failed.attr, attr 932 drivers/crypto/nx/nx-842-pseries.c &dev_attr_decomp_complete.attr, attr 933 drivers/crypto/nx/nx-842-pseries.c &dev_attr_decomp_failed.attr, attr 934 drivers/crypto/nx/nx-842-pseries.c &dev_attr_swdecomp.attr, attr 935 drivers/crypto/nx/nx-842-pseries.c &dev_attr_comp_times.attr, attr 936 drivers/crypto/nx/nx-842-pseries.c &dev_attr_decomp_times.attr, attr 1039 drivers/crypto/omap-aes.c static ssize_t fallback_show(struct device *dev, struct device_attribute *attr, attr 1045 drivers/crypto/omap-aes.c static ssize_t fallback_store(struct device *dev, struct device_attribute *attr, attr 1066 drivers/crypto/omap-aes.c static ssize_t queue_len_show(struct device *dev, struct device_attribute *attr, attr 1075 drivers/crypto/omap-aes.c struct device_attribute *attr, const char *buf, attr 1111 drivers/crypto/omap-aes.c &dev_attr_queue_len.attr, attr 1112 drivers/crypto/omap-aes.c &dev_attr_fallback.attr, attr 2003 drivers/crypto/omap-sham.c static ssize_t fallback_show(struct device *dev, struct device_attribute *attr, attr 2011 drivers/crypto/omap-sham.c static ssize_t fallback_store(struct device *dev, struct device_attribute *attr, attr 2033 drivers/crypto/omap-sham.c static ssize_t queue_len_show(struct device *dev, struct device_attribute *attr, attr 2042 drivers/crypto/omap-sham.c struct device_attribute *attr, const char *buf, attr 2073 drivers/crypto/omap-sham.c &dev_attr_queue_len.attr, attr 2074 drivers/crypto/omap-sham.c &dev_attr_fallback.attr, attr 1201 drivers/crypto/picoxcell_crypto.c struct device_attribute *attr, attr 1210 drivers/crypto/picoxcell_crypto.c struct device_attribute *attr, attr 125 drivers/dax/bus.c &driver_attr_new_id.attr, attr 126 drivers/dax/bus.c &driver_attr_remove_id.attr, attr 160 drivers/dax/bus.c struct device_attribute *attr, char *buf) attr 169 drivers/dax/bus.c struct device_attribute *attr, char *buf) attr 180 drivers/dax/bus.c struct device_attribute *attr, char *buf) attr 189 drivers/dax/bus.c &dev_attr_region_size.attr, attr 190 drivers/dax/bus.c &dev_attr_align.attr, attr 191 drivers/dax/bus.c &dev_attr_id.attr, attr 273 drivers/dax/bus.c struct device_attribute *attr, char *buf) attr 290 drivers/dax/bus.c struct device_attribute *attr, char *buf) attr 306 drivers/dax/bus.c struct device_attribute *attr, char *buf) attr 314 drivers/dax/bus.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 330 drivers/dax/bus.c if (a == &dev_attr_target_node.attr && dev_dax_target_node(dev_dax) < 0) attr 332 drivers/dax/bus.c if (a == &dev_attr_resource.attr) attr 338 drivers/dax/bus.c &dev_attr_modalias.attr, attr 339 drivers/dax/bus.c &dev_attr_size.attr, attr 340 drivers/dax/bus.c &dev_attr_target_node.attr, attr 341 drivers/dax/bus.c &dev_attr_resource.attr, attr 222 drivers/dax/super.c struct device_attribute *attr, char *buf) attr 237 drivers/dax/super.c struct device_attribute *attr, const char *buf, size_t len) attr 267 drivers/dax/super.c if (a == &dev_attr_write_cache.attr) attr 274 drivers/dax/super.c &dev_attr_write_cache.attr, attr 437 drivers/devfreq/devfreq-event.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 450 drivers/devfreq/devfreq-event.c struct device_attribute *attr, char *buf) attr 462 drivers/devfreq/devfreq-event.c &dev_attr_name.attr, attr 463 drivers/devfreq/devfreq-event.c &dev_attr_enable_count.attr, attr 1118 drivers/devfreq/devfreq.c struct device_attribute *attr, char *buf) attr 1126 drivers/devfreq/devfreq.c struct device_attribute *attr, char *buf) attr 1134 drivers/devfreq/devfreq.c static ssize_t governor_store(struct device *dev, struct device_attribute *attr, attr 1197 drivers/devfreq/devfreq.c struct device_attribute *attr, attr 1239 drivers/devfreq/devfreq.c static ssize_t cur_freq_show(struct device *dev, struct device_attribute *attr, attr 1254 drivers/devfreq/devfreq.c struct device_attribute *attr, char *buf) attr 1261 drivers/devfreq/devfreq.c struct device_attribute *attr, char *buf) attr 1267 drivers/devfreq/devfreq.c struct device_attribute *attr, attr 1288 drivers/devfreq/devfreq.c static ssize_t min_freq_store(struct device *dev, struct device_attribute *attr, attr 1324 drivers/devfreq/devfreq.c static ssize_t min_freq_show(struct device *dev, struct device_attribute *attr, attr 1332 drivers/devfreq/devfreq.c static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr, attr 1369 drivers/devfreq/devfreq.c static ssize_t max_freq_show(struct device *dev, struct device_attribute *attr, attr 1379 drivers/devfreq/devfreq.c struct device_attribute *attr, attr 1404 drivers/devfreq/devfreq.c struct device_attribute *attr, char *buf) attr 1453 drivers/devfreq/devfreq.c &dev_attr_name.attr, attr 1454 drivers/devfreq/devfreq.c &dev_attr_governor.attr, attr 1455 drivers/devfreq/devfreq.c &dev_attr_available_governors.attr, attr 1456 drivers/devfreq/devfreq.c &dev_attr_cur_freq.attr, attr 1457 drivers/devfreq/devfreq.c &dev_attr_available_frequencies.attr, attr 1458 drivers/devfreq/devfreq.c &dev_attr_target_freq.attr, attr 1459 drivers/devfreq/devfreq.c &dev_attr_polling_interval.attr, attr 1460 drivers/devfreq/devfreq.c &dev_attr_min_freq.attr, attr 1461 drivers/devfreq/devfreq.c &dev_attr_max_freq.attr, attr 1462 drivers/devfreq/devfreq.c &dev_attr_trans_stat.attr, attr 34 drivers/devfreq/governor_userspace.c static ssize_t store_freq(struct device *dev, struct device_attribute *attr, attr 55 drivers/devfreq/governor_userspace.c static ssize_t show_freq(struct device *dev, struct device_attribute *attr, attr 75 drivers/devfreq/governor_userspace.c &dev_attr_set_freq.attr, attr 20 drivers/dio/dio-sysfs.c static ssize_t dio_show_id(struct device *dev, struct device_attribute *attr, char *buf) attr 29 drivers/dio/dio-sysfs.c static ssize_t dio_show_ipl(struct device *dev, struct device_attribute *attr, char *buf) attr 38 drivers/dio/dio-sysfs.c static ssize_t dio_show_secid(struct device *dev, struct device_attribute *attr, char *buf) attr 47 drivers/dio/dio-sysfs.c static ssize_t dio_show_name(struct device *dev, struct device_attribute *attr, char *buf) attr 56 drivers/dio/dio-sysfs.c static ssize_t dio_show_resource(struct device *dev, struct device_attribute *attr, char *buf) attr 78 drivers/dma/dmaengine.c struct device_attribute *attr, char *buf) attr 100 drivers/dma/dmaengine.c struct device_attribute *attr, char *buf) attr 121 drivers/dma/dmaengine.c static ssize_t in_use_show(struct device *dev, struct device_attribute *attr, attr 140 drivers/dma/dmaengine.c &dev_attr_memcpy_count.attr, attr 141 drivers/dma/dmaengine.c &dev_attr_bytes_transferred.attr, attr 142 drivers/dma/dmaengine.c &dev_attr_in_use.attr, attr 356 drivers/dma/fsl-edma-common.c edma_writew(edma, le16_to_cpu(tcd->attr), ®s->tcd[ch].attr); attr 374 drivers/dma/fsl-edma-common.c u16 attr, u16 soff, u32 nbytes, u32 slast, u16 citer, attr 389 drivers/dma/fsl-edma-common.c tcd->attr = cpu_to_le16(attr); attr 469 drivers/dma/fsl-edma-common.c fsl_chan->attr = attr 474 drivers/dma/fsl-edma-common.c fsl_chan->attr = attr 502 drivers/dma/fsl-edma-common.c fsl_chan->attr, soff, nbytes, 0, iter, attr 536 drivers/dma/fsl-edma-common.c fsl_chan->attr = attr 541 drivers/dma/fsl-edma-common.c fsl_chan->attr = attr 567 drivers/dma/fsl-edma-common.c dst_addr, fsl_chan->attr, soff, attr 573 drivers/dma/fsl-edma-common.c dst_addr, fsl_chan->attr, soff, attr 73 drivers/dma/fsl-edma-common.h __le16 attr; attr 123 drivers/dma/fsl-edma-common.h u32 attr; attr 138 drivers/dma/ioat/dma.h struct attribute attr; attr 42 drivers/dma/ioat/sysfs.c ioat_attr_show(struct kobject *kobj, struct attribute *attr, char *page) attr 47 drivers/dma/ioat/sysfs.c entry = container_of(attr, struct ioat_sysfs_entry, attr); attr 56 drivers/dma/ioat/sysfs.c ioat_attr_store(struct kobject *kobj, struct attribute *attr, attr 62 drivers/dma/ioat/sysfs.c entry = container_of(attr, struct ioat_sysfs_entry, attr); attr 154 drivers/dma/ioat/sysfs.c &ring_size_attr.attr, attr 155 drivers/dma/ioat/sysfs.c &ring_active_attr.attr, attr 156 drivers/dma/ioat/sysfs.c &ioat_cap_attr.attr, attr 157 drivers/dma/ioat/sysfs.c &ioat_version_attr.attr, attr 158 drivers/dma/ioat/sysfs.c &intr_coalesce_attr.attr, attr 489 drivers/dma/mv_xor.c u8 target, attr; attr 515 drivers/dma/mv_xor.c ret = mvebu_mbus_get_io_win_info(addr, &size, &target, &attr); attr 538 drivers/dma/mv_xor.c writel((addr & 0xffff0000) | (attr << 8) | target, attr 146 drivers/dma/ppc4xx/adma.c cdb->attr, cdb->opc, le32_to_cpu(cdb->cnt), attr 110 drivers/dma/ppc4xx/dma.h u8 attr; /* attributes */ attr 620 drivers/dma/qcom/hidma.c struct device_attribute *attr, char *buf) attr 626 drivers/dma/qcom/hidma.c if (strcmp(attr->attr.name, "chid") == 0) attr 652 drivers/dma/qcom/hidma.c attrs->attr.name = name_copy; attr 653 drivers/dma/qcom/hidma.c attrs->attr.mode = mode; attr 655 drivers/dma/qcom/hidma.c sysfs_attr_init(&attrs->attr); attr 16 drivers/dma/qcom/hidma_mgmt_sys.c struct kobj_attribute attr; attr 99 drivers/dma/qcom/hidma_mgmt_sys.c static ssize_t show_values(struct device *dev, struct device_attribute *attr, attr 108 drivers/dma/qcom/hidma_mgmt_sys.c if (strcmp(attr->attr.name, hidma_mgmt_files[i].name) == 0) { attr 116 drivers/dma/qcom/hidma_mgmt_sys.c static ssize_t set_values(struct device *dev, struct device_attribute *attr, attr 129 drivers/dma/qcom/hidma_mgmt_sys.c if (strcmp(attr->attr.name, hidma_mgmt_files[i].name) == 0) { attr 141 drivers/dma/qcom/hidma_mgmt_sys.c struct kobj_attribute *attr, char *buf) attr 147 drivers/dma/qcom/hidma_mgmt_sys.c chattr = container_of(attr, struct hidma_chan_attr, attr); attr 149 drivers/dma/qcom/hidma_mgmt_sys.c if (strcmp(attr->attr.name, "priority") == 0) attr 151 drivers/dma/qcom/hidma_mgmt_sys.c else if (strcmp(attr->attr.name, "weight") == 0) attr 158 drivers/dma/qcom/hidma_mgmt_sys.c struct kobj_attribute *attr, const char *buf, attr 166 drivers/dma/qcom/hidma_mgmt_sys.c chattr = container_of(attr, struct hidma_chan_attr, attr); attr 173 drivers/dma/qcom/hidma_mgmt_sys.c if (strcmp(attr->attr.name, "priority") == 0) { attr 177 drivers/dma/qcom/hidma_mgmt_sys.c } else if (strcmp(attr->attr.name, "weight") == 0) { attr 199 drivers/dma/qcom/hidma_mgmt_sys.c attrs->attr.name = name_copy; attr 200 drivers/dma/qcom/hidma_mgmt_sys.c attrs->attr.mode = mode; attr 203 drivers/dma/qcom/hidma_mgmt_sys.c sysfs_attr_init(&attrs->attr); attr 225 drivers/dma/qcom/hidma_mgmt_sys.c chattr->attr.attr.name = name_copy; attr 226 drivers/dma/qcom/hidma_mgmt_sys.c chattr->attr.attr.mode = mode; attr 227 drivers/dma/qcom/hidma_mgmt_sys.c chattr->attr.show = show_values_channel; attr 228 drivers/dma/qcom/hidma_mgmt_sys.c chattr->attr.store = set_values_channel; attr 229 drivers/dma/qcom/hidma_mgmt_sys.c sysfs_attr_init(&chattr->attr.attr); attr 231 drivers/dma/qcom/hidma_mgmt_sys.c return sysfs_create_file(parent, &chattr->attr.attr); attr 45 drivers/edac/amd64_edac_dbg.c &dev_attr_dhar.attr, attr 46 drivers/edac/amd64_edac_dbg.c &dev_attr_dbam.attr, attr 47 drivers/edac/amd64_edac_dbg.c &dev_attr_topmem.attr, attr 48 drivers/edac/amd64_edac_dbg.c &dev_attr_topmem2.attr, attr 49 drivers/edac/amd64_edac_dbg.c &dev_attr_dram_hole.attr, attr 212 drivers/edac/amd64_edac_inj.c &dev_attr_inject_section.attr, attr 213 drivers/edac/amd64_edac_inj.c &dev_attr_inject_word.attr, attr 214 drivers/edac/amd64_edac_inj.c &dev_attr_inject_ecc_vector.attr, attr 215 drivers/edac/amd64_edac_inj.c &dev_attr_inject_write.attr, attr 216 drivers/edac/amd64_edac_inj.c &dev_attr_inject_read.attr, attr 221 drivers/edac/amd64_edac_inj.c struct attribute *attr, int idx) attr 229 drivers/edac/amd64_edac_inj.c return attr->mode; attr 64 drivers/edac/edac_device.c unsigned instance, block, attr; attr 185 drivers/edac/edac_device.c for (attr = 0; attr < nr_attrib; attr++) { attr 186 drivers/edac/edac_device.c attrib = &attrib_p[attr]; attr 191 drivers/edac/edac_device.c attrib->attr = attrib_spec[attr].attr; attr 192 drivers/edac/edac_device.c attrib->show = attrib_spec[attr].show; attr 193 drivers/edac/edac_device.c attrib->store = attrib_spec[attr].store; attr 198 drivers/edac/edac_device.c attrib, attrib->attr.name, attr 199 drivers/edac/edac_device.c &attrib_spec[attr], attr 200 drivers/edac/edac_device.c attrib_spec[attr].attr.name attr 89 drivers/edac/edac_device.h struct attribute attr; attr 107 drivers/edac/edac_device.h struct attribute attr; attr 24 drivers/edac/edac_device_sysfs.c #define to_edacdev_attr(a) container_of(a, struct edacdev_attribute, attr) attr 108 drivers/edac/edac_device_sysfs.c struct attribute attr; attr 114 drivers/edac/edac_device_sysfs.c #define to_ctl_info_attr(a) container_of(a,struct ctl_info_attribute,attr) attr 118 drivers/edac/edac_device_sysfs.c struct attribute *attr, char *buffer) attr 121 drivers/edac/edac_device_sysfs.c struct ctl_info_attribute *ctl_info_attr = to_ctl_info_attr(attr); attr 130 drivers/edac/edac_device_sysfs.c struct attribute *attr, attr 134 drivers/edac/edac_device_sysfs.c struct ctl_info_attribute *ctl_info_attr = to_ctl_info_attr(attr); attr 149 drivers/edac/edac_device_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 321 drivers/edac/edac_device_sysfs.c #define to_instance_attr(a) container_of(a,struct instance_attribute,attr) attr 339 drivers/edac/edac_device_sysfs.c struct attribute attr; attr 346 drivers/edac/edac_device_sysfs.c struct attribute *attr, char *buffer) attr 349 drivers/edac/edac_device_sysfs.c struct instance_attribute *instance_attr = to_instance_attr(attr); attr 358 drivers/edac/edac_device_sysfs.c struct attribute *attr, attr 362 drivers/edac/edac_device_sysfs.c struct instance_attribute *instance_attr = to_instance_attr(attr); attr 377 drivers/edac/edac_device_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 408 drivers/edac/edac_device_sysfs.c container_of(a, struct edac_dev_sysfs_block_attribute, attr) attr 414 drivers/edac/edac_device_sysfs.c struct attribute *attr, char *data) attr 422 drivers/edac/edac_device_sysfs.c struct attribute *attr, char *data) attr 448 drivers/edac/edac_device_sysfs.c struct attribute *attr, char *buffer) attr 451 drivers/edac/edac_device_sysfs.c to_block_attr(attr); attr 454 drivers/edac/edac_device_sysfs.c return block_attr->show(kobj, attr, buffer); attr 460 drivers/edac/edac_device_sysfs.c struct attribute *attr, attr 465 drivers/edac/edac_device_sysfs.c block_attr = to_block_attr(attr); attr 468 drivers/edac/edac_device_sysfs.c return block_attr->store(kobj, attr, buffer, count); attr 480 drivers/edac/edac_device_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 552 drivers/edac/edac_device_sysfs.c sysfs_attrib->attr.name, attr 557 drivers/edac/edac_device_sysfs.c &sysfs_attrib->attr); attr 750 drivers/edac/edac_device_sysfs.c while (sysfs_attrib->attr.name != NULL) { attr 779 drivers/edac/edac_device_sysfs.c while (sysfs_attrib->attr.name != NULL) { attr 133 drivers/edac/edac_mc_sysfs.c struct device_attribute attr; attr 141 drivers/edac/edac_mc_sysfs.c #define to_channel(k) (container_of(k, struct dev_ch_attribute, attr)->channel) attr 259 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_dev_type.attr, attr 260 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_mem_type.attr, attr 261 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_edac_mode.attr, attr 262 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_size_mb.attr, attr 263 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ue_count.attr, attr 264 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ce_count.attr, attr 310 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch0_dimm_label.attr.attr, attr 311 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch1_dimm_label.attr.attr, attr 312 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch2_dimm_label.attr.attr, attr 313 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch3_dimm_label.attr.attr, attr 314 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch4_dimm_label.attr.attr, attr 315 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch5_dimm_label.attr.attr, attr 316 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch6_dimm_label.attr.attr, attr 317 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch7_dimm_label.attr.attr, attr 341 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch0_ce_count.attr.attr, attr 342 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch1_ce_count.attr.attr, attr 343 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch2_ce_count.attr.attr, attr 344 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch3_ce_count.attr.attr, attr 345 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch4_ce_count.attr.attr, attr 346 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch5_ce_count.attr.attr, attr 347 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch6_ce_count.attr.attr, attr 348 drivers/edac/edac_mc_sysfs.c &dev_attr_legacy_ch7_ce_count.attr.attr, attr 353 drivers/edac/edac_mc_sysfs.c struct attribute *attr, int idx) attr 370 drivers/edac/edac_mc_sysfs.c return attr->mode; attr 597 drivers/edac/edac_mc_sysfs.c &dev_attr_dimm_label.attr, attr 598 drivers/edac/edac_mc_sysfs.c &dev_attr_dimm_location.attr, attr 599 drivers/edac/edac_mc_sysfs.c &dev_attr_size.attr, attr 600 drivers/edac/edac_mc_sysfs.c &dev_attr_dimm_mem_type.attr, attr 601 drivers/edac/edac_mc_sysfs.c &dev_attr_dimm_dev_type.attr, attr 602 drivers/edac/edac_mc_sysfs.c &dev_attr_dimm_edac_mode.attr, attr 603 drivers/edac/edac_mc_sysfs.c &dev_attr_dimm_ce_count.attr, attr 604 drivers/edac/edac_mc_sysfs.c &dev_attr_dimm_ue_count.attr, attr 861 drivers/edac/edac_mc_sysfs.c &dev_attr_reset_counters.attr, attr 862 drivers/edac/edac_mc_sysfs.c &dev_attr_mc_name.attr, attr 863 drivers/edac/edac_mc_sysfs.c &dev_attr_size_mb.attr, attr 864 drivers/edac/edac_mc_sysfs.c &dev_attr_seconds_since_reset.attr, attr 865 drivers/edac/edac_mc_sysfs.c &dev_attr_ue_noinfo_count.attr, attr 866 drivers/edac/edac_mc_sysfs.c &dev_attr_ce_noinfo_count.attr, attr 867 drivers/edac/edac_mc_sysfs.c &dev_attr_ue_count.attr, attr 868 drivers/edac/edac_mc_sysfs.c &dev_attr_ce_count.attr, attr 869 drivers/edac/edac_mc_sysfs.c &dev_attr_max_location.attr, attr 870 drivers/edac/edac_mc_sysfs.c &dev_attr_sdram_scrub_rate.attr, attr 875 drivers/edac/edac_mc_sysfs.c struct attribute *attr, int idx) attr 881 drivers/edac/edac_mc_sysfs.c if (attr != &dev_attr_sdram_scrub_rate.attr) attr 882 drivers/edac/edac_mc_sysfs.c return attr->mode; attr 71 drivers/edac/edac_pci_sysfs.c #define to_instance_attr(a) container_of(a, struct instance_attribute, attr) attr 91 drivers/edac/edac_pci_sysfs.c struct attribute attr; attr 98 drivers/edac/edac_pci_sysfs.c struct attribute *attr, char *buffer) attr 101 drivers/edac/edac_pci_sysfs.c struct instance_attribute *instance_attr = to_instance_attr(attr); attr 110 drivers/edac/edac_pci_sysfs.c struct attribute *attr, attr 114 drivers/edac/edac_pci_sysfs.c struct instance_attribute *instance_attr = to_instance_attr(attr); attr 129 drivers/edac/edac_pci_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 211 drivers/edac/edac_pci_sysfs.c #define to_edacpci_attr(a) container_of(a, struct edac_pci_attr, attr) attr 231 drivers/edac/edac_pci_sysfs.c struct attribute attr; attr 238 drivers/edac/edac_pci_sysfs.c static ssize_t edac_pci_dev_show(struct kobject *kobj, struct attribute *attr, attr 242 drivers/edac/edac_pci_sysfs.c edac_pci_dev = (struct edac_pci_dev_attribute *)attr; attr 250 drivers/edac/edac_pci_sysfs.c struct attribute *attr, const char *buffer, attr 254 drivers/edac/edac_pci_sysfs.c edac_pci_dev = (struct edac_pci_dev_attribute *)attr; attr 268 drivers/edac/edac_pci_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 276 drivers/edac/edac_pci_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 159 drivers/edac/fsl_ddr_edac.c &dev_attr_inject_data_hi.attr, attr 160 drivers/edac/fsl_ddr_edac.c &dev_attr_inject_data_lo.attr, attr 161 drivers/edac/fsl_ddr_edac.c &dev_attr_inject_ctrl.attr, attr 100 drivers/edac/highbank_mc_edac.c struct device_attribute *attr, const char *buf, size_t count) attr 116 drivers/edac/highbank_mc_edac.c &dev_attr_inject_ctrl.attr, attr 1071 drivers/edac/i7core_edac.c &dev_attr_channel.attr, attr 1072 drivers/edac/i7core_edac.c &dev_attr_dimm.attr, attr 1073 drivers/edac/i7core_edac.c &dev_attr_rank.attr, attr 1074 drivers/edac/i7core_edac.c &dev_attr_bank.attr, attr 1075 drivers/edac/i7core_edac.c &dev_attr_page.attr, attr 1076 drivers/edac/i7core_edac.c &dev_attr_col.attr, attr 1105 drivers/edac/i7core_edac.c &dev_attr_udimm0.attr, attr 1106 drivers/edac/i7core_edac.c &dev_attr_udimm1.attr, attr 1107 drivers/edac/i7core_edac.c &dev_attr_udimm2.attr, attr 1149 drivers/edac/i7core_edac.c &dev_attr_inject_section.attr, attr 1150 drivers/edac/i7core_edac.c &dev_attr_inject_type.attr, attr 1151 drivers/edac/i7core_edac.c &dev_attr_inject_eccmask.attr, attr 1152 drivers/edac/i7core_edac.c &dev_attr_inject_enable.attr, attr 405 drivers/edac/mpc85xx_edac.c .attr = { attr 412 drivers/edac/mpc85xx_edac.c .attr = { attr 419 drivers/edac/mpc85xx_edac.c .attr = { attr 428 drivers/edac/mpc85xx_edac.c .attr = {.name = NULL} attr 132 drivers/edac/octeon_edac-lmc.c struct device_attribute *attr, \ attr 142 drivers/edac/octeon_edac-lmc.c struct device_attribute *attr, \ attr 168 drivers/edac/octeon_edac-lmc.c struct device_attribute *attr, attr 184 drivers/edac/octeon_edac-lmc.c struct device_attribute *attr, attr 213 drivers/edac/octeon_edac-lmc.c &dev_attr_inject.attr, attr 214 drivers/edac/octeon_edac-lmc.c &dev_attr_error_type.attr, attr 215 drivers/edac/octeon_edac-lmc.c &dev_attr_dimm.attr, attr 216 drivers/edac/octeon_edac-lmc.c &dev_attr_rank.attr, attr 217 drivers/edac/octeon_edac-lmc.c &dev_attr_bank.attr, attr 218 drivers/edac/octeon_edac-lmc.c &dev_attr_row.attr, attr 219 drivers/edac/octeon_edac-lmc.c &dev_attr_col.attr, attr 78 drivers/edac/sb_edac.c static char *show_dram_attr(u32 attr) attr 80 drivers/edac/sb_edac.c switch (attr) { attr 158 drivers/eisa/eisa-bus.c static ssize_t eisa_show_sig(struct device *dev, struct device_attribute *attr, attr 168 drivers/eisa/eisa-bus.c struct device_attribute *attr, attr 178 drivers/eisa/eisa-bus.c struct device_attribute *attr, attr 348 drivers/extcon/extcon.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 367 drivers/extcon/extcon.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 377 drivers/extcon/extcon.c struct device_attribute *attr, char *buf) attr 379 drivers/extcon/extcon.c struct extcon_cable *cable = container_of(attr, struct extcon_cable, attr 388 drivers/extcon/extcon.c struct device_attribute *attr, char *buf) attr 390 drivers/extcon/extcon.c struct extcon_cable *cable = container_of(attr, struct extcon_cable, attr 1003 drivers/extcon/extcon.c &dev_attr_state.attr, attr 1004 drivers/extcon/extcon.c &dev_attr_name.attr, attr 1144 drivers/extcon/extcon.c cable->attrs[0] = &cable->attr_name.attr; attr 1145 drivers/extcon/extcon.c cable->attrs[1] = &cable->attr_state.attr; attr 1150 drivers/extcon/extcon.c sysfs_attr_init(&cable->attr_name.attr); attr 1151 drivers/extcon/extcon.c cable->attr_name.attr.name = "name"; attr 1152 drivers/extcon/extcon.c cable->attr_name.attr.mode = 0444; attr 1155 drivers/extcon/extcon.c sysfs_attr_init(&cable->attr_state.attr); attr 1156 drivers/extcon/extcon.c cable->attr_state.attr.name = "state"; attr 1157 drivers/extcon/extcon.c cable->attr_state.attr.mode = 0444; attr 1191 drivers/extcon/extcon.c kfree(edev->d_attrs_muex[index].attr. attr 1199 drivers/extcon/extcon.c sysfs_attr_init(&edev->d_attrs_muex[index].attr); attr 1200 drivers/extcon/extcon.c edev->d_attrs_muex[index].attr.name = name; attr 1201 drivers/extcon/extcon.c edev->d_attrs_muex[index].attr.mode = 0000; attr 1203 drivers/extcon/extcon.c .attr; attr 1267 drivers/extcon/extcon.c kfree(edev->d_attrs_muex[index].attr.name); attr 1311 drivers/extcon/extcon.c kfree(edev->d_attrs_muex[index].attr.name); attr 244 drivers/firewire/core-device.c struct device_attribute attr; attr 251 drivers/firewire/core-device.c struct config_rom_attribute *attr = attr 252 drivers/firewire/core-device.c container_of(dattr, struct config_rom_attribute, attr); attr 266 drivers/firewire/core-device.c if (attr->key == key) { attr 283 drivers/firewire/core-device.c struct config_rom_attribute *attr = attr 284 drivers/firewire/core-device.c container_of(dattr, struct config_rom_attribute, attr); attr 304 drivers/firewire/core-device.c ret = fw_csr_string(dir, attr->key, buf, bufsize); attr 337 drivers/firewire/core-device.c struct device_attribute *attr; attr 340 drivers/firewire/core-device.c for (j = 0; attrs[j].attr.name != NULL; j++) attr 341 drivers/firewire/core-device.c group->attrs[j] = &attrs[j].attr; attr 344 drivers/firewire/core-device.c attr = &config_rom_attributes[i].attr; attr 345 drivers/firewire/core-device.c if (attr->show(dev, attr, NULL) < 0) attr 347 drivers/firewire/core-device.c group->attrs[j++] = &attr->attr; attr 358 drivers/firewire/core-device.c struct device_attribute *attr, char *buf) attr 370 drivers/firewire/core-device.c struct device_attribute *attr, char *buf) attr 386 drivers/firewire/core-device.c struct device_attribute *attr, char *buf) attr 400 drivers/firewire/core-device.c struct device_attribute *attr, char *buf) attr 414 drivers/firewire/core-device.c struct device_attribute *attr, char *buf) attr 444 drivers/firewire/core-device.c struct device_attribute *attr, char *buf) attr 1564 drivers/firewire/sbp2.c struct device_attribute *attr, char *buf) attr 79 drivers/firmware/arm_scmi/clock.c struct scmi_msg_resp_clock_protocol_attributes *attr; attr 82 drivers/firmware/arm_scmi/clock.c SCMI_PROTOCOL_CLOCK, 0, sizeof(*attr), &t); attr 86 drivers/firmware/arm_scmi/clock.c attr = t->rx.buf; attr 90 drivers/firmware/arm_scmi/clock.c ci->num_clocks = le16_to_cpu(attr->num_clocks); attr 91 drivers/firmware/arm_scmi/clock.c ci->max_async_req = attr->max_async_req; attr 103 drivers/firmware/arm_scmi/clock.c struct scmi_msg_resp_clock_attributes *attr; attr 106 drivers/firmware/arm_scmi/clock.c sizeof(clk_id), sizeof(*attr), &t); attr 111 drivers/firmware/arm_scmi/clock.c attr = t->rx.buf; attr 115 drivers/firmware/arm_scmi/clock.c strlcpy(clk->name, attr->name, SCMI_MAX_STR_SIZE); attr 101 drivers/firmware/arm_scmi/perf.c __le32 attr; attr 160 drivers/firmware/arm_scmi/perf.c struct scmi_msg_resp_perf_attributes *attr; attr 163 drivers/firmware/arm_scmi/perf.c SCMI_PROTOCOL_PERF, 0, sizeof(*attr), &t); attr 167 drivers/firmware/arm_scmi/perf.c attr = t->rx.buf; attr 171 drivers/firmware/arm_scmi/perf.c u16 flags = le16_to_cpu(attr->flags); attr 173 drivers/firmware/arm_scmi/perf.c pi->num_domains = le16_to_cpu(attr->num_domains); attr 175 drivers/firmware/arm_scmi/perf.c pi->stats_addr = le32_to_cpu(attr->stats_addr_low) | attr 176 drivers/firmware/arm_scmi/perf.c (u64)le32_to_cpu(attr->stats_addr_high) << 32; attr 177 drivers/firmware/arm_scmi/perf.c pi->stats_size = le32_to_cpu(attr->stats_size); attr 190 drivers/firmware/arm_scmi/perf.c struct scmi_msg_resp_perf_domain_attributes *attr; attr 194 drivers/firmware/arm_scmi/perf.c sizeof(*attr), &t); attr 199 drivers/firmware/arm_scmi/perf.c attr = t->rx.buf; attr 203 drivers/firmware/arm_scmi/perf.c u32 flags = le32_to_cpu(attr->flags); attr 211 drivers/firmware/arm_scmi/perf.c le32_to_cpu(attr->sustained_freq_khz); attr 213 drivers/firmware/arm_scmi/perf.c le32_to_cpu(attr->sustained_perf_level); attr 222 drivers/firmware/arm_scmi/perf.c strlcpy(dom_info->name, attr->name, SCMI_MAX_STR_SIZE); attr 527 drivers/firmware/arm_scmi/perf.c flags = le32_to_cpu(resp->attr); attr 64 drivers/firmware/arm_scmi/power.c struct scmi_msg_resp_power_attributes *attr; attr 67 drivers/firmware/arm_scmi/power.c SCMI_PROTOCOL_POWER, 0, sizeof(*attr), &t); attr 71 drivers/firmware/arm_scmi/power.c attr = t->rx.buf; attr 75 drivers/firmware/arm_scmi/power.c pi->num_domains = le16_to_cpu(attr->num_domains); attr 76 drivers/firmware/arm_scmi/power.c pi->stats_addr = le32_to_cpu(attr->stats_addr_low) | attr 77 drivers/firmware/arm_scmi/power.c (u64)le32_to_cpu(attr->stats_addr_high) << 32; attr 78 drivers/firmware/arm_scmi/power.c pi->stats_size = le32_to_cpu(attr->stats_size); attr 91 drivers/firmware/arm_scmi/power.c struct scmi_msg_resp_power_domain_attributes *attr; attr 95 drivers/firmware/arm_scmi/power.c sizeof(*attr), &t); attr 100 drivers/firmware/arm_scmi/power.c attr = t->rx.buf; attr 104 drivers/firmware/arm_scmi/power.c u32 flags = le32_to_cpu(attr->flags); attr 109 drivers/firmware/arm_scmi/power.c strlcpy(dom_info->name, attr->name, SCMI_MAX_STR_SIZE); attr 60 drivers/firmware/arm_scmi/reset.c u32 attr; attr 63 drivers/firmware/arm_scmi/reset.c SCMI_PROTOCOL_RESET, 0, sizeof(attr), &t); attr 69 drivers/firmware/arm_scmi/reset.c attr = get_unaligned_le32(t->rx.buf); attr 70 drivers/firmware/arm_scmi/reset.c pi->num_domains = attr & NUM_RESET_DOMAIN_MASK; attr 83 drivers/firmware/arm_scmi/reset.c struct scmi_msg_resp_reset_domain_attributes *attr; attr 87 drivers/firmware/arm_scmi/reset.c sizeof(*attr), &t); attr 92 drivers/firmware/arm_scmi/reset.c attr = t->rx.buf; attr 96 drivers/firmware/arm_scmi/reset.c u32 attributes = le32_to_cpu(attr->attributes); attr 100 drivers/firmware/arm_scmi/reset.c dom_info->latency_us = le32_to_cpu(attr->latency); attr 103 drivers/firmware/arm_scmi/reset.c strlcpy(dom_info->name, attr->name, SCMI_MAX_STR_SIZE); attr 83 drivers/firmware/arm_scmi/sensors.c struct scmi_msg_resp_sensor_attributes *attr; attr 86 drivers/firmware/arm_scmi/sensors.c SCMI_PROTOCOL_SENSOR, 0, sizeof(*attr), &t); attr 90 drivers/firmware/arm_scmi/sensors.c attr = t->rx.buf; attr 94 drivers/firmware/arm_scmi/sensors.c si->num_sensors = le16_to_cpu(attr->num_sensors); attr 95 drivers/firmware/arm_scmi/sensors.c si->max_requests = attr->max_requests; attr 96 drivers/firmware/arm_scmi/sensors.c si->reg_addr = le32_to_cpu(attr->reg_addr_low) | attr 97 drivers/firmware/arm_scmi/sensors.c (u64)le32_to_cpu(attr->reg_addr_high) << 32; attr 98 drivers/firmware/arm_scmi/sensors.c si->reg_size = le32_to_cpu(attr->reg_size); attr 823 drivers/firmware/arm_scpi.c struct device_attribute *attr, char *buf) attr 834 drivers/firmware/arm_scpi.c struct device_attribute *attr, char *buf) attr 846 drivers/firmware/arm_scpi.c &dev_attr_firmware_version.attr, attr 847 drivers/firmware/arm_scpi.c &dev_attr_protocol_version.attr, attr 23 drivers/firmware/dmi-id.c struct device_attribute *attr, attr 26 drivers/firmware/dmi-id.c int field = to_dmi_dev_attr(attr)->field; attr 126 drivers/firmware/dmi-id.c struct device_attribute *attr, char *page) attr 175 drivers/firmware/dmi-id.c sys_dmi_attributes[i++] = &sys_dmi_##_name##_attr.dev_attr.attr; attr 207 drivers/firmware/dmi-id.c sys_dmi_attributes[i++] = &sys_dmi_modalias_attr.attr; attr 53 drivers/firmware/dmi-sysfs.c struct attribute attr; attr 59 drivers/firmware/dmi-sysfs.c .attr = {.name = __stringify(_name), .mode = 0400}, \ attr 68 drivers/firmware/dmi-sysfs.c struct attribute attr; attr 76 drivers/firmware/dmi-sysfs.c .attr = {.name = __stringify(_name), .mode = 0400}, \ attr 93 drivers/firmware/dmi-sysfs.c static struct dmi_sysfs_attribute *to_attr(struct attribute *attr) attr 95 drivers/firmware/dmi-sysfs.c return container_of(attr, struct dmi_sysfs_attribute, attr); attr 102 drivers/firmware/dmi-sysfs.c struct dmi_sysfs_attribute *attr = to_attr(_attr); attr 108 drivers/firmware/dmi-sysfs.c return attr->show(entry, buf); attr 199 drivers/firmware/dmi-sysfs.c struct attribute *attr; attr 208 drivers/firmware/dmi-sysfs.c struct dmi_sysfs_mapped_attribute *attr; attr 210 drivers/firmware/dmi-sysfs.c attr = container_of(data->attr, attr 211 drivers/firmware/dmi-sysfs.c struct dmi_sysfs_mapped_attribute, attr); attr 212 drivers/firmware/dmi-sysfs.c return attr->show(entry, dh, data->buf); attr 216 drivers/firmware/dmi-sysfs.c struct attribute *attr, attr 220 drivers/firmware/dmi-sysfs.c .attr = attr, attr 293 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_area_length.attr, attr 294 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_header_start_offset.attr, attr 295 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_data_start_offset.attr, attr 296 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_access_method.attr, attr 297 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_status.attr, attr 298 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_change_token.attr, attr 299 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_access_method_address.attr, attr 300 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_header_format.attr, attr 301 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_type_descriptors_supported_count.attr, attr 302 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_sel_per_log_type_descriptor_length.attr, attr 445 drivers/firmware/dmi-sysfs.c .attr = {.name = "raw_event_log", .mode = 0400}, attr 514 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_entry_length.attr, attr 515 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_entry_handle.attr, attr 516 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_entry_type.attr, attr 517 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_entry_instance.attr, attr 518 drivers/firmware/dmi-sysfs.c &dmi_sysfs_attr_entry_position.attr, attr 551 drivers/firmware/dmi-sysfs.c .attr = {.name = "raw", .mode = 0400}, attr 707 drivers/firmware/dmi_scan.c struct bin_attribute *attr, char *buf, attr 710 drivers/firmware/dmi_scan.c memcpy(buf, attr->private + pos, count); attr 55 drivers/firmware/edd.c struct attribute attr; attr 68 drivers/firmware/edd.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 101 drivers/firmware/edd.c #define to_edd_attr(_attr) container_of(_attr,struct edd_attribute,attr) attr 105 drivers/firmware/edd.c edd_attr_show(struct kobject * kobj, struct attribute *attr, char *buf) attr 108 drivers/firmware/edd.c struct edd_attribute *edd_attr = to_edd_attr(attr); attr 692 drivers/firmware/edd.c struct edd_attribute * attr; attr 696 drivers/firmware/edd.c for (i = 0; (attr = edd_attrs[i]) && !error; i++) { attr 697 drivers/firmware/edd.c if (!attr->test || attr 698 drivers/firmware/edd.c (attr->test && attr->test(edev))) attr 699 drivers/firmware/edd.c error = sysfs_create_file(&edev->kobj,&attr->attr); attr 110 drivers/firmware/efi/efi.c struct kobj_attribute *attr, char *buf) attr 148 drivers/firmware/efi/efi.c struct kobj_attribute *attr, char *buf) \ attr 158 drivers/firmware/efi/efi.c struct kobj_attribute *attr, char *buf) attr 170 drivers/firmware/efi/efi.c &efi_attr_systab.attr, attr 171 drivers/firmware/efi/efi.c &efi_attr_fw_vendor.attr, attr 172 drivers/firmware/efi/efi.c &efi_attr_runtime.attr, attr 173 drivers/firmware/efi/efi.c &efi_attr_config_table.attr, attr 174 drivers/firmware/efi/efi.c &efi_attr_fw_platform_size.attr, attr 179 drivers/firmware/efi/efi.c struct attribute *attr, int n) attr 181 drivers/firmware/efi/efi.c if (attr == &efi_attr_fw_vendor.attr) { attr 185 drivers/firmware/efi/efi.c } else if (attr == &efi_attr_runtime.attr) { attr 188 drivers/firmware/efi/efi.c } else if (attr == &efi_attr_config_table.attr) { attr 193 drivers/firmware/efi/efi.c return attr->mode; attr 826 drivers/firmware/efi/efi.c u64 attr; attr 841 drivers/firmware/efi/efi.c attr = md->attribute; attr 842 drivers/firmware/efi/efi.c if (attr & ~(EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT | attr 848 drivers/firmware/efi/efi.c (unsigned long long)attr); attr 852 drivers/firmware/efi/efi.c attr & EFI_MEMORY_RUNTIME ? "RUN" : "", attr 853 drivers/firmware/efi/efi.c attr & EFI_MEMORY_MORE_RELIABLE ? "MR" : "", attr 854 drivers/firmware/efi/efi.c attr & EFI_MEMORY_NV ? "NV" : "", attr 855 drivers/firmware/efi/efi.c attr & EFI_MEMORY_XP ? "XP" : "", attr 856 drivers/firmware/efi/efi.c attr & EFI_MEMORY_RP ? "RP" : "", attr 857 drivers/firmware/efi/efi.c attr & EFI_MEMORY_WP ? "WP" : "", attr 858 drivers/firmware/efi/efi.c attr & EFI_MEMORY_RO ? "RO" : "", attr 859 drivers/firmware/efi/efi.c attr & EFI_MEMORY_UCE ? "UCE" : "", attr 860 drivers/firmware/efi/efi.c attr & EFI_MEMORY_WB ? "WB" : "", attr 861 drivers/firmware/efi/efi.c attr & EFI_MEMORY_WT ? "WT" : "", attr 862 drivers/firmware/efi/efi.c attr & EFI_MEMORY_WC ? "WC" : "", attr 863 drivers/firmware/efi/efi.c attr & EFI_MEMORY_UC ? "UC" : ""); attr 45 drivers/firmware/efi/efivars.c struct attribute attr; attr 52 drivers/firmware/efi/efivars.c .attr = {.name = __stringify(_name), .mode = _mode}, \ attr 57 drivers/firmware/efi/efivars.c #define to_efivar_attr(_attr) container_of(_attr, struct efivar_attribute, attr) attr 300 drivers/firmware/efi/efivars.c static ssize_t efivar_attr_show(struct kobject *kobj, struct attribute *attr, attr 304 drivers/firmware/efi/efivars.c struct efivar_attribute *efivar_attr = to_efivar_attr(attr); attr 316 drivers/firmware/efi/efivars.c static ssize_t efivar_attr_store(struct kobject *kobj, struct attribute *attr, attr 320 drivers/firmware/efi/efivars.c struct efivar_attribute *efivar_attr = to_efivar_attr(attr); attr 350 drivers/firmware/efi/efivars.c &efivar_attr_guid.attr, attr 351 drivers/firmware/efi/efivars.c &efivar_attr_size.attr, attr 352 drivers/firmware/efi/efivars.c &efivar_attr_attributes.attr, attr 353 drivers/firmware/efi/efivars.c &efivar_attr_data.attr, attr 354 drivers/firmware/efi/efivars.c &efivar_attr_raw_var.attr, attr 542 drivers/firmware/efi/efivars.c struct bin_attribute *attr; attr 546 drivers/firmware/efi/efivars.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 547 drivers/firmware/efi/efivars.c if (!attr) attr 550 drivers/firmware/efi/efivars.c attr->attr.name = "new_var"; attr 551 drivers/firmware/efi/efivars.c attr->attr.mode = 0200; attr 552 drivers/firmware/efi/efivars.c attr->write = efivar_create; attr 553 drivers/firmware/efi/efivars.c efivars_new_var = attr; attr 556 drivers/firmware/efi/efivars.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 557 drivers/firmware/efi/efivars.c if (!attr) { attr 561 drivers/firmware/efi/efivars.c attr->attr.name = "del_var"; attr 562 drivers/firmware/efi/efivars.c attr->attr.mode = 0200; attr 563 drivers/firmware/efi/efivars.c attr->write = efivar_delete; attr 564 drivers/firmware/efi/efivars.c efivars_del_var = attr; attr 76 drivers/firmware/efi/esrt.c struct attribute attr; attr 87 drivers/firmware/efi/esrt.c static struct esre_attribute *to_attr(struct attribute *attr) attr 89 drivers/firmware/efi/esrt.c return container_of(attr, struct esre_attribute, attr); attr 96 drivers/firmware/efi/esrt.c struct esre_attribute *attr = to_attr(_attr); attr 102 drivers/firmware/efi/esrt.c return attr->show(entry, buf); attr 140 drivers/firmware/efi/esrt.c &esre_fw_class.attr, attr 141 drivers/firmware/efi/esrt.c &esre_fw_type.attr, attr 142 drivers/firmware/efi/esrt.c &esre_fw_version.attr, attr 143 drivers/firmware/efi/esrt.c &esre_lowest_supported_fw_version.attr, attr 144 drivers/firmware/efi/esrt.c &esre_capsule_flags.attr, attr 145 drivers/firmware/efi/esrt.c &esre_last_attempt_version.attr, attr 146 drivers/firmware/efi/esrt.c &esre_last_attempt_status.attr, attr 196 drivers/firmware/efi/esrt.c struct kobj_attribute *attr, char *buf)\ attr 208 drivers/firmware/efi/esrt.c &esrt_fw_resource_count.attr, attr 209 drivers/firmware/efi/esrt.c &esrt_fw_resource_count_max.attr, attr 210 drivers/firmware/efi/esrt.c &esrt_fw_resource_version.attr, attr 224 drivers/firmware/efi/esrt.c struct attribute *attr, int n) attr 228 drivers/firmware/efi/esrt.c return attr->mode; attr 37 drivers/firmware/efi/libstub/secureboot.c u32 attr; attr 66 drivers/firmware/efi/libstub/secureboot.c &attr, &size, &moksbstate); attr 71 drivers/firmware/efi/libstub/secureboot.c if (!(attr & EFI_VARIABLE_RUNTIME_ACCESS) && moksbstate == 1) attr 44 drivers/firmware/efi/rci2-table.c struct bin_attribute *attr, char *buf, attr 47 drivers/firmware/efi/rci2-table.c memcpy(buf, attr->private + pos, count); attr 24 drivers/firmware/efi/runtime-map.c struct attribute attr; attr 28 drivers/firmware/efi/runtime-map.c static inline struct map_attribute *to_map_attr(struct attribute *attr) attr 30 drivers/firmware/efi/runtime-map.c return container_of(attr, struct map_attribute, attr); attr 56 drivers/firmware/efi/runtime-map.c static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, attr 60 drivers/firmware/efi/runtime-map.c struct map_attribute *map_attr = to_map_attr(attr); attr 75 drivers/firmware/efi/runtime-map.c &map_type_attr.attr, attr 76 drivers/firmware/efi/runtime-map.c &map_phys_addr_attr.attr, attr 77 drivers/firmware/efi/runtime-map.c &map_virt_addr_attr.attr, attr 78 drivers/firmware/efi/runtime-map.c &map_num_pages_attr.attr, attr 79 drivers/firmware/efi/runtime-map.c &map_attribute_attr.attr, attr 301 drivers/firmware/efi/runtime-wrappers.c u32 *attr, attr 309 drivers/firmware/efi/runtime-wrappers.c status = efi_queue_work(EFI_GET_VARIABLE, name, vendor, attr, data_size, attr 331 drivers/firmware/efi/runtime-wrappers.c u32 attr, attr 339 drivers/firmware/efi/runtime-wrappers.c status = efi_queue_work(EFI_SET_VARIABLE, name, vendor, &attr, &data_size, attr 347 drivers/firmware/efi/runtime-wrappers.c u32 attr, unsigned long data_size, attr 355 drivers/firmware/efi/runtime-wrappers.c status = efi_call_virt(set_variable, name, vendor, attr, data_size, attr 362 drivers/firmware/efi/runtime-wrappers.c static efi_status_t virt_efi_query_variable_info(u32 attr, attr 374 drivers/firmware/efi/runtime-wrappers.c status = efi_queue_work(EFI_QUERY_VARIABLE_INFO, &attr, storage_space, attr 381 drivers/firmware/efi/runtime-wrappers.c virt_efi_query_variable_info_nonblocking(u32 attr, attr 394 drivers/firmware/efi/runtime-wrappers.c status = efi_call_virt(query_variable_info, attr, storage_space, attr 159 drivers/firmware/efi/test/efi_test.c u32 attr, *at; attr 184 drivers/firmware/efi/test/efi_test.c at = getvariable.attributes ? &attr : NULL; attr 227 drivers/firmware/efi/test/efi_test.c if (at && put_user(attr, getvariable.attributes)) { attr 309 drivers/firmware/google/gsmi.c efi_guid_t *vendor, u32 *attr, attr 362 drivers/firmware/google/gsmi.c *attr = EFI_VARIABLE_NON_VOLATILE | attr 431 drivers/firmware/google/gsmi.c u32 attr, attr 529 drivers/firmware/google/gsmi.c .attr = {.name = "append_to_eventlog", .mode = 0200}, attr 534 drivers/firmware/google/gsmi.c struct kobj_attribute *attr, attr 576 drivers/firmware/google/gsmi.c .attr = {.name = "clear_eventlog", .mode = 0200}, attr 581 drivers/firmware/google/gsmi.c struct kobj_attribute *attr, attr 602 drivers/firmware/google/gsmi.c .attr = {.name = "clear_config", .mode = 0200}, attr 607 drivers/firmware/google/gsmi.c &gsmi_clear_config_attr.attr, attr 608 drivers/firmware/google/gsmi.c &gsmi_clear_eventlog_attr.attr, attr 30 drivers/firmware/google/memconsole.c .attr = {.name = "log", .mode = 0444}, attr 121 drivers/firmware/google/vpd.c info->bin_attr.attr.name = info->key; attr 122 drivers/firmware/google/vpd.c info->bin_attr.attr.mode = 0444; attr 201 drivers/firmware/google/vpd.c sec->bin_attr.attr.name = sec->raw_name; attr 202 drivers/firmware/google/vpd.c sec->bin_attr.attr.mode = 0444; attr 42 drivers/firmware/memmap.c struct attribute *attr, char *buf); attr 55 drivers/firmware/memmap.c struct attribute attr; attr 67 drivers/firmware/memmap.c &memmap_start_attr.attr, attr 68 drivers/firmware/memmap.c &memmap_end_attr.attr, attr 69 drivers/firmware/memmap.c &memmap_type_attr.attr, attr 386 drivers/firmware/memmap.c static inline struct memmap_attribute *to_memmap_attr(struct attribute *attr) attr 388 drivers/firmware/memmap.c return container_of(attr, struct memmap_attribute, attr); attr 392 drivers/firmware/memmap.c struct attribute *attr, char *buf) attr 395 drivers/firmware/memmap.c struct memmap_attribute *memmap_attr = to_memmap_attr(attr); attr 217 drivers/firmware/meson/meson_sm.c static ssize_t serial_show(struct device *dev, struct device_attribute *attr, attr 256 drivers/firmware/meson/meson_sm.c &dev_attr_serial.attr, attr 305 drivers/firmware/qemu_fw_cfg.c struct attribute attr; attr 308 drivers/firmware/qemu_fw_cfg.c .attr = { .name = "rev", .mode = S_IRUSR }, attr 355 drivers/firmware/qemu_fw_cfg.c struct attribute attr; attr 360 drivers/firmware/qemu_fw_cfg.c static inline struct fw_cfg_sysfs_attribute *to_attr(struct attribute *attr) attr 362 drivers/firmware/qemu_fw_cfg.c return container_of(attr, struct fw_cfg_sysfs_attribute, attr); attr 401 drivers/firmware/qemu_fw_cfg.c .attr = { .name = __stringify(_attr), .mode = S_IRUSR }, \ attr 425 drivers/firmware/qemu_fw_cfg.c &fw_cfg_sysfs_attr_size.attr, attr 426 drivers/firmware/qemu_fw_cfg.c &fw_cfg_sysfs_attr_key.attr, attr 427 drivers/firmware/qemu_fw_cfg.c &fw_cfg_sysfs_attr_name.attr, attr 436 drivers/firmware/qemu_fw_cfg.c struct fw_cfg_sysfs_attribute *attr = to_attr(a); attr 438 drivers/firmware/qemu_fw_cfg.c return attr->show(entry, buf); attr 478 drivers/firmware/qemu_fw_cfg.c .attr = { .name = "raw", .mode = S_IRUSR }, attr 708 drivers/firmware/qemu_fw_cfg.c err = sysfs_create_file(fw_cfg_top_ko, &fw_cfg_rev_attr.attr); attr 723 drivers/firmware/qemu_fw_cfg.c sysfs_remove_file(fw_cfg_top_ko, &fw_cfg_rev_attr.attr); attr 738 drivers/firmware/qemu_fw_cfg.c sysfs_remove_file(fw_cfg_top_ko, &fw_cfg_rev_attr.attr); attr 205 drivers/firmware/stratix10-rsu.c struct device_attribute *attr, char *buf) attr 216 drivers/firmware/stratix10-rsu.c struct device_attribute *attr, char *buf) attr 226 drivers/firmware/stratix10-rsu.c static ssize_t version_show(struct device *dev, struct device_attribute *attr, attr 237 drivers/firmware/stratix10-rsu.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 249 drivers/firmware/stratix10-rsu.c struct device_attribute *attr, char *buf) attr 260 drivers/firmware/stratix10-rsu.c struct device_attribute *attr, char *buf) attr 271 drivers/firmware/stratix10-rsu.c struct device_attribute *attr, char *buf) attr 282 drivers/firmware/stratix10-rsu.c struct device_attribute *attr, attr 307 drivers/firmware/stratix10-rsu.c struct device_attribute *attr, attr 361 drivers/firmware/stratix10-rsu.c &dev_attr_current_image.attr, attr 362 drivers/firmware/stratix10-rsu.c &dev_attr_fail_image.attr, attr 363 drivers/firmware/stratix10-rsu.c &dev_attr_state.attr, attr 364 drivers/firmware/stratix10-rsu.c &dev_attr_version.attr, attr 365 drivers/firmware/stratix10-rsu.c &dev_attr_error_location.attr, attr 366 drivers/firmware/stratix10-rsu.c &dev_attr_error_details.attr, attr 367 drivers/firmware/stratix10-rsu.c &dev_attr_retry_counter.attr, attr 368 drivers/firmware/stratix10-rsu.c &dev_attr_reboot_image.attr, attr 369 drivers/firmware/stratix10-rsu.c &dev_attr_notify.attr, attr 147 drivers/firmware/turris-mox-rwtm.c &mox_attr_serial_number.attr, attr 148 drivers/firmware/turris-mox-rwtm.c &mox_attr_board_version.attr, attr 149 drivers/firmware/turris-mox-rwtm.c &mox_attr_ram_size.attr, attr 150 drivers/firmware/turris-mox-rwtm.c &mox_attr_mac_address1.attr, attr 151 drivers/firmware/turris-mox-rwtm.c &mox_attr_mac_address2.attr, attr 152 drivers/firmware/turris-mox-rwtm.c &mox_attr_pubkey.attr, attr 112 drivers/fpga/dfl-afu-error.c static ssize_t errors_show(struct device *dev, struct device_attribute *attr, attr 128 drivers/fpga/dfl-afu-error.c static ssize_t errors_store(struct device *dev, struct device_attribute *attr, attr 144 drivers/fpga/dfl-afu-error.c struct device_attribute *attr, char *buf) attr 161 drivers/fpga/dfl-afu-error.c struct device_attribute *attr, attr 181 drivers/fpga/dfl-afu-error.c &dev_attr_errors.attr, attr 182 drivers/fpga/dfl-afu-error.c &dev_attr_first_error.attr, attr 183 drivers/fpga/dfl-afu-error.c &dev_attr_first_malformed_req.attr, attr 188 drivers/fpga/dfl-afu-error.c struct attribute *attr, int n) attr 199 drivers/fpga/dfl-afu-error.c return attr->mode; attr 140 drivers/fpga/dfl-afu-main.c id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 149 drivers/fpga/dfl-afu-main.c ltr_show(struct device *dev, struct device_attribute *attr, char *buf) attr 165 drivers/fpga/dfl-afu-main.c ltr_store(struct device *dev, struct device_attribute *attr, attr 190 drivers/fpga/dfl-afu-main.c ap1_event_show(struct device *dev, struct device_attribute *attr, char *buf) attr 206 drivers/fpga/dfl-afu-main.c ap1_event_store(struct device *dev, struct device_attribute *attr, attr 227 drivers/fpga/dfl-afu-main.c ap2_event_show(struct device *dev, struct device_attribute *attr, attr 244 drivers/fpga/dfl-afu-main.c ap2_event_store(struct device *dev, struct device_attribute *attr, attr 265 drivers/fpga/dfl-afu-main.c power_state_show(struct device *dev, struct device_attribute *attr, char *buf) attr 282 drivers/fpga/dfl-afu-main.c userclk_freqcmd_store(struct device *dev, struct device_attribute *attr, attr 303 drivers/fpga/dfl-afu-main.c userclk_freqcntrcmd_store(struct device *dev, struct device_attribute *attr, attr 324 drivers/fpga/dfl-afu-main.c userclk_freqsts_show(struct device *dev, struct device_attribute *attr, attr 342 drivers/fpga/dfl-afu-main.c userclk_freqcntrsts_show(struct device *dev, struct device_attribute *attr, attr 361 drivers/fpga/dfl-afu-main.c &dev_attr_id.attr, attr 362 drivers/fpga/dfl-afu-main.c &dev_attr_ltr.attr, attr 363 drivers/fpga/dfl-afu-main.c &dev_attr_ap1_event.attr, attr 364 drivers/fpga/dfl-afu-main.c &dev_attr_ap2_event.attr, attr 365 drivers/fpga/dfl-afu-main.c &dev_attr_power_state.attr, attr 366 drivers/fpga/dfl-afu-main.c &dev_attr_userclk_freqcmd.attr, attr 367 drivers/fpga/dfl-afu-main.c &dev_attr_userclk_freqcntrcmd.attr, attr 368 drivers/fpga/dfl-afu-main.c &dev_attr_userclk_freqsts.attr, attr 369 drivers/fpga/dfl-afu-main.c &dev_attr_userclk_freqcntrsts.attr, attr 374 drivers/fpga/dfl-afu-main.c struct attribute *attr, int n) attr 377 drivers/fpga/dfl-afu-main.c umode_t mode = attr->mode; attr 388 drivers/fpga/dfl-afu-main.c if (attr == &dev_attr_userclk_freqcmd.attr || attr 389 drivers/fpga/dfl-afu-main.c attr == &dev_attr_userclk_freqcntrcmd.attr || attr 390 drivers/fpga/dfl-afu-main.c attr == &dev_attr_userclk_freqsts.attr || attr 391 drivers/fpga/dfl-afu-main.c attr == &dev_attr_userclk_freqcntrsts.attr) attr 443 drivers/fpga/dfl-afu-main.c afu_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 466 drivers/fpga/dfl-afu-main.c &dev_attr_afu_id.attr, attr 471 drivers/fpga/dfl-afu-main.c struct attribute *attr, int n) attr 482 drivers/fpga/dfl-afu-main.c return attr->mode; attr 42 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 58 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, attr 87 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 103 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, attr 132 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 144 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 156 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 173 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, attr 201 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 217 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, attr 248 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 265 drivers/fpga/dfl-fme-error.c struct device_attribute *attr, char *buf) attr 282 drivers/fpga/dfl-fme-error.c &dev_attr_pcie0_errors.attr, attr 283 drivers/fpga/dfl-fme-error.c &dev_attr_pcie1_errors.attr, attr 284 drivers/fpga/dfl-fme-error.c &dev_attr_nonfatal_errors.attr, attr 285 drivers/fpga/dfl-fme-error.c &dev_attr_catfatal_errors.attr, attr 286 drivers/fpga/dfl-fme-error.c &dev_attr_inject_errors.attr, attr 287 drivers/fpga/dfl-fme-error.c &dev_attr_fme_errors.attr, attr 288 drivers/fpga/dfl-fme-error.c &dev_attr_first_error.attr, attr 289 drivers/fpga/dfl-fme-error.c &dev_attr_next_error.attr, attr 294 drivers/fpga/dfl-fme-error.c struct attribute *attr, int n) attr 305 drivers/fpga/dfl-fme-error.c return attr->mode; attr 26 drivers/fpga/dfl-fme-main.c struct device_attribute *attr, char *buf) attr 45 drivers/fpga/dfl-fme-main.c struct device_attribute *attr, char *buf) attr 63 drivers/fpga/dfl-fme-main.c struct device_attribute *attr, char *buf) attr 77 drivers/fpga/dfl-fme-main.c struct device_attribute *attr, char *buf) attr 92 drivers/fpga/dfl-fme-main.c struct device_attribute *attr, char *buf) attr 107 drivers/fpga/dfl-fme-main.c struct device_attribute *attr, char *buf) attr 122 drivers/fpga/dfl-fme-main.c &dev_attr_ports_num.attr, attr 123 drivers/fpga/dfl-fme-main.c &dev_attr_bitstream_id.attr, attr 124 drivers/fpga/dfl-fme-main.c &dev_attr_bitstream_metadata.attr, attr 125 drivers/fpga/dfl-fme-main.c &dev_attr_cache_size.attr, attr 126 drivers/fpga/dfl-fme-main.c &dev_attr_fabric_version.attr, attr 127 drivers/fpga/dfl-fme-main.c &dev_attr_socket_id.attr, attr 285 drivers/fpga/fpga-bridge.c struct device_attribute *attr, char *buf) attr 293 drivers/fpga/fpga-bridge.c struct device_attribute *attr, char *buf) attr 308 drivers/fpga/fpga-bridge.c &dev_attr_name.attr, attr 309 drivers/fpga/fpga-bridge.c &dev_attr_state.attr, attr 394 drivers/fpga/fpga-mgr.c struct device_attribute *attr, char *buf) attr 402 drivers/fpga/fpga-mgr.c struct device_attribute *attr, char *buf) attr 410 drivers/fpga/fpga-mgr.c struct device_attribute *attr, char *buf) attr 440 drivers/fpga/fpga-mgr.c &dev_attr_name.attr, attr 441 drivers/fpga/fpga-mgr.c &dev_attr_state.attr, attr 442 drivers/fpga/fpga-mgr.c &dev_attr_status.attr, attr 162 drivers/fpga/fpga-region.c struct device_attribute *attr, char *buf) attr 177 drivers/fpga/fpga-region.c &dev_attr_compat_id.attr, attr 573 drivers/fsi/fsi-core.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 600 drivers/fsi/fsi-core.c struct kobject *kobj, struct bin_attribute *attr, attr 627 drivers/fsi/fsi-core.c .attr = { attr 794 drivers/fsi/fsi-core.c struct device_attribute *attr, attr 810 drivers/fsi/fsi-core.c struct device_attribute *attr, attr 819 drivers/fsi/fsi-core.c struct device_attribute *attr, const char *buf, size_t count) attr 854 drivers/fsi/fsi-core.c struct device_attribute *attr, attr 865 drivers/fsi/fsi-core.c struct device_attribute *attr, attr 876 drivers/fsi/fsi-core.c &dev_attr_send_echo_delays.attr, attr 877 drivers/fsi/fsi-core.c &dev_attr_chip_id.attr, attr 878 drivers/fsi/fsi-core.c &dev_attr_cfam_id.attr, attr 879 drivers/fsi/fsi-core.c &dev_attr_send_term.attr, attr 1241 drivers/fsi/fsi-core.c struct device_attribute *attr, const char *buf, size_t count) attr 1256 drivers/fsi/fsi-core.c struct device_attribute *attr, const char *buf, size_t count) attr 1081 drivers/fsi/fsi-master-ast-cf.c struct device_attribute *attr, char *buf) attr 1090 drivers/fsi/fsi-master-ast-cf.c struct device_attribute *attr, const char *buf, size_t count) attr 716 drivers/fsi/fsi-master-gpio.c struct device_attribute *attr, char *buf) attr 725 drivers/fsi/fsi-master-gpio.c struct device_attribute *attr, const char *buf, size_t count) attr 353 drivers/gnss/core.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 363 drivers/gnss/core.c &dev_attr_type.attr, attr 59 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, char *buf) attr 78 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, const char *buf, size_t size) attr 102 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, char *buf) attr 124 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, const char *buf, size_t size) attr 242 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, char *buf) attr 263 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, const char *buf, size_t size) attr 330 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, char *buf) attr 347 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, const char *buf, size_t size) attr 365 drivers/gpio/gpiolib-sysfs.c static umode_t gpio_is_visible(struct kobject *kobj, struct attribute *attr, attr 371 drivers/gpio/gpiolib-sysfs.c umode_t mode = attr->mode; attr 374 drivers/gpio/gpiolib-sysfs.c if (attr == &dev_attr_direction.attr) { attr 377 drivers/gpio/gpiolib-sysfs.c } else if (attr == &dev_attr_edge.attr) { attr 388 drivers/gpio/gpiolib-sysfs.c &dev_attr_direction.attr, attr 389 drivers/gpio/gpiolib-sysfs.c &dev_attr_edge.attr, attr 390 drivers/gpio/gpiolib-sysfs.c &dev_attr_value.attr, attr 391 drivers/gpio/gpiolib-sysfs.c &dev_attr_active_low.attr, attr 413 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, char *buf) attr 422 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, char *buf) attr 431 drivers/gpio/gpiolib-sysfs.c struct device_attribute *attr, char *buf) attr 440 drivers/gpio/gpiolib-sysfs.c &dev_attr_base.attr, attr 441 drivers/gpio/gpiolib-sysfs.c &dev_attr_label.attr, attr 442 drivers/gpio/gpiolib-sysfs.c &dev_attr_ngpio.attr, attr 454 drivers/gpio/gpiolib-sysfs.c struct class_attribute *attr, attr 501 drivers/gpio/gpiolib-sysfs.c struct class_attribute *attr, attr 537 drivers/gpio/gpiolib-sysfs.c &class_attr_export.attr, attr 538 drivers/gpio/gpiolib-sysfs.c &class_attr_unexport.attr, attr 1274 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct device_attribute *attr, \ attr 1943 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c struct device_attribute *attr, attr 123 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c struct device_attribute *attr, char *buf) attr 47 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct device_attribute *attr, char *buf) attr 65 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c struct device_attribute *attr, char *buf) attr 156 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 180 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 280 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 314 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 407 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 434 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 467 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 474 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c return amdgpu_get_pp_cur_state(dev, attr, buf); attr 480 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 531 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 558 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 643 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 723 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 765 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 794 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 834 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 889 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 917 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 936 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 964 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 979 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1004 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1019 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1044 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1059 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1084 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1099 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1124 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1140 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1175 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1191 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1246 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1262 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1323 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1349 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1379 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1402 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1467 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1472 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c int channel = to_sensor_dev_attr(attr)->index; attr 1511 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1515 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c int hyst = to_sensor_dev_attr(attr)->index; attr 1527 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1531 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c int hyst = to_sensor_dev_attr(attr)->index; attr 1543 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1547 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c int hyst = to_sensor_dev_attr(attr)->index; attr 1559 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1562 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c int channel = to_sensor_dev_attr(attr)->index; attr 1571 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1575 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c int channel = to_sensor_dev_attr(attr)->index; attr 1597 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1615 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1645 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1652 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1659 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1700 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1728 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1754 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1771 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1788 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1814 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1853 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1871 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1909 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1932 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1939 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1966 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 1973 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2000 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2007 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2025 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2044 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2073 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2096 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2103 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2126 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct device_attribute *attr, attr 2252 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 2253 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 2254 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 2255 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 2256 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 2257 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp2_crit_hyst.dev_attr.attr, attr 2258 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 2259 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 2260 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp3_crit_hyst.dev_attr.attr, attr 2261 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp1_emergency.dev_attr.attr, attr 2262 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp2_emergency.dev_attr.attr, attr 2263 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp3_emergency.dev_attr.attr, attr 2264 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 2265 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp2_label.dev_attr.attr, attr 2266 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_temp3_label.dev_attr.attr, attr 2267 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 2268 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 2269 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_pwm1_min.dev_attr.attr, attr 2270 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_pwm1_max.dev_attr.attr, attr 2271 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 2272 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 2273 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_fan1_max.dev_attr.attr, attr 2274 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_fan1_target.dev_attr.attr, attr 2275 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_fan1_enable.dev_attr.attr, attr 2276 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 2277 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_in0_label.dev_attr.attr, attr 2278 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 2279 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_in1_label.dev_attr.attr, attr 2280 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_power1_average.dev_attr.attr, attr 2281 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_power1_cap_max.dev_attr.attr, attr 2282 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_power1_cap_min.dev_attr.attr, attr 2283 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_power1_cap.dev_attr.attr, attr 2284 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_freq1_input.dev_attr.attr, attr 2285 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_freq1_label.dev_attr.attr, attr 2286 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_freq2_input.dev_attr.attr, attr 2287 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c &sensor_dev_attr_freq2_label.dev_attr.attr, attr 2292 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c struct attribute *attr, int index) attr 2296 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c umode_t effective_mode = attr->mode; attr 2299 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c if (adev->pm.no_fan && (attr == &sensor_dev_attr_pwm1.dev_attr.attr || attr 2300 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr || attr 2301 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_max.dev_attr.attr || attr 2302 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_min.dev_attr.attr || attr 2303 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_input.dev_attr.attr || attr 2304 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_min.dev_attr.attr || attr 2305 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_max.dev_attr.attr || attr 2306 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_target.dev_attr.attr || attr 2307 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_enable.dev_attr.attr)) attr 2312 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_pwm1.dev_attr.attr || attr 2313 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr || attr 2314 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_max.dev_attr.attr || attr 2315 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_min.dev_attr.attr || attr 2316 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_input.dev_attr.attr || attr 2317 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_min.dev_attr.attr || attr 2318 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_max.dev_attr.attr || attr 2319 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_target.dev_attr.attr || attr 2320 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_enable.dev_attr.attr)) attr 2325 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_temp1_crit.dev_attr.attr || attr 2326 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr || attr 2327 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1.dev_attr.attr || attr 2328 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr || attr 2329 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_max.dev_attr.attr || attr 2330 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_min.dev_attr.attr || attr 2331 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_input.dev_attr.attr || attr 2332 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_min.dev_attr.attr || attr 2333 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_max.dev_attr.attr || attr 2334 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_target.dev_attr.attr || attr 2335 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_enable.dev_attr.attr)) attr 2341 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1.dev_attr.attr) || /* can't query fan */ attr 2343 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr)) /* can't query state */ attr 2347 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1.dev_attr.attr) || /* can't manage fan */ attr 2349 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr)) /* can't manage state */ attr 2356 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_power1_average.dev_attr.attr || attr 2357 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_power1_cap_max.dev_attr.attr || attr 2358 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_power1_cap_min.dev_attr.attr|| attr 2359 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_power1_cap.dev_attr.attr)) attr 2368 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_pwm1_max.dev_attr.attr || attr 2369 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_pwm1_min.dev_attr.attr)) attr 2374 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_fan1_max.dev_attr.attr || attr 2375 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_fan1_min.dev_attr.attr)) attr 2381 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_in0_input.dev_attr.attr || attr 2382 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_in0_label.dev_attr.attr)) attr 2387 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_in1_input.dev_attr.attr || attr 2388 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_in1_label.dev_attr.attr)) attr 2393 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_freq2_input.dev_attr.attr || attr 2394 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_freq2_label.dev_attr.attr)) attr 2400 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (attr == &sensor_dev_attr_temp2_crit.dev_attr.attr || attr 2401 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp2_crit_hyst.dev_attr.attr || attr 2402 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp3_crit.dev_attr.attr || attr 2403 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp3_crit_hyst.dev_attr.attr || attr 2404 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp1_emergency.dev_attr.attr || attr 2405 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp2_emergency.dev_attr.attr || attr 2406 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp3_emergency.dev_attr.attr || attr 2407 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp2_input.dev_attr.attr || attr 2408 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp3_input.dev_attr.attr || attr 2409 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp2_label.dev_attr.attr || attr 2410 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c attr == &sensor_dev_attr_temp3_label.dev_attr.attr)) attr 51 drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c if (event->attr.type != event->pmu->type) attr 55 drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c hwc->conf = event->attr.config; attr 295 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c struct device_attribute *attr, char *buf) attr 297 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c struct ras_manager *obj = container_of(attr, struct ras_manager, sysfs_attr); attr 754 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c struct kobject *kobj, struct bin_attribute *attr, attr 758 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c container_of(attr, struct amdgpu_ras, badpages_attr); attr 786 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c struct device_attribute *attr, char *buf) attr 789 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c container_of(attr, struct amdgpu_ras, features_attr); attr 798 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c &con->features_attr.attr, attr 812 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c .attr = { attr 820 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c .attr = { attr 839 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c &con->features_attr.attr, attr 872 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c .attr = { attr 878 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c sysfs_attr_init(&obj->sysfs_attr.attr); attr 881 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c &obj->sysfs_attr.attr, attr 901 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c &obj->sysfs_attr.attr, attr 383 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c struct device_attribute *attr, \ attr 416 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_vce_fw_version.attr, &dev_attr_uvd_fw_version.attr, attr 417 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_mc_fw_version.attr, &dev_attr_me_fw_version.attr, attr 418 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_pfp_fw_version.attr, &dev_attr_ce_fw_version.attr, attr 419 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_rlc_fw_version.attr, &dev_attr_rlc_srlc_fw_version.attr, attr 420 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_rlc_srlg_fw_version.attr, &dev_attr_rlc_srls_fw_version.attr, attr 421 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_mec_fw_version.attr, &dev_attr_mec2_fw_version.attr, attr 422 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_sos_fw_version.attr, &dev_attr_asd_fw_version.attr, attr 423 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_ta_ras_fw_version.attr, &dev_attr_ta_xgmi_fw_version.attr, attr 424 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_smc_fw_version.attr, &dev_attr_sdma_fw_version.attr, attr 425 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_sdma2_fw_version.attr, &dev_attr_vcn_fw_version.attr, attr 426 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c &dev_attr_dmcu_fw_version.attr, NULL attr 43 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct device_attribute *attr, char *buf) attr 60 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct device_attribute *attr, char *buf) attr 77 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct device_attribute *attr, char *buf) attr 95 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c struct device_attribute *attr, char *buf) attr 72 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c struct device_attribute *attr, char *buf) attr 75 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c container_of(attr, struct amdgpu_hive_info, dev_attr); attr 95 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c .attr = { attr 103 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ret = sysfs_create_file(hive->kobj, &hive->dev_attr.attr); attr 117 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c sysfs_remove_file(hive->kobj, &hive->dev_attr.attr); attr 124 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c struct device_attribute *attr, attr 136 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c struct device_attribute *attr, attr 176 drivers/gpu/drm/amd/amdgpu/atom.c static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr, attr 181 drivers/gpu/drm/amd/amdgpu/atom.c arg = attr & 7; attr 182 drivers/gpu/drm/amd/amdgpu/atom.c align = (attr >> 3) & 7; attr 361 drivers/gpu/drm/amd/amdgpu/atom.c static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) attr 363 drivers/gpu/drm/amd/amdgpu/atom.c uint32_t align = (attr >> 3) & 7, arg = attr & 7; attr 397 drivers/gpu/drm/amd/amdgpu/atom.c static uint32_t atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) attr 399 drivers/gpu/drm/amd/amdgpu/atom.c return atom_get_src_int(ctx, attr, ptr, NULL, 1); attr 428 drivers/gpu/drm/amd/amdgpu/atom.c static uint32_t atom_get_dst(atom_exec_context *ctx, int arg, uint8_t attr, attr 432 drivers/gpu/drm/amd/amdgpu/atom.c arg | atom_dst_to_src[(attr >> 3) & attr 433 drivers/gpu/drm/amd/amdgpu/atom.c 7][(attr >> 6) & 3] << 3, attr 437 drivers/gpu/drm/amd/amdgpu/atom.c static void atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) attr 440 drivers/gpu/drm/amd/amdgpu/atom.c arg | atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & attr 444 drivers/gpu/drm/amd/amdgpu/atom.c static void atom_put_dst(atom_exec_context *ctx, int arg, uint8_t attr, attr 448 drivers/gpu/drm/amd/amdgpu/atom.c atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = attr 582 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 586 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 588 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 591 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 596 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 600 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 602 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 605 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 631 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 634 drivers/gpu/drm/amd/amdgpu/atom.c attr &= 0x38; attr 635 drivers/gpu/drm/amd/amdgpu/atom.c attr |= atom_def_dst[attr >> 3] << 6; attr 636 drivers/gpu/drm/amd/amdgpu/atom.c atom_get_dst(ctx, arg, attr, ptr, &saved, 0); attr 638 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, 0, saved); attr 643 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 646 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 648 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 669 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 672 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 674 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 687 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 690 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 692 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 765 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 769 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 770 drivers/gpu/drm/amd/amdgpu/atom.c mask = atom_get_src_direct(ctx, ((attr >> 3) & 7), ptr); attr 773 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 777 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 782 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 785 drivers/gpu/drm/amd/amdgpu/atom.c if (((attr >> 3) & 7) != ATOM_SRC_DWORD) attr 786 drivers/gpu/drm/amd/amdgpu/atom.c atom_get_dst(ctx, arg, attr, ptr, &saved, 0); attr 788 drivers/gpu/drm/amd/amdgpu/atom.c atom_skip_dst(ctx, arg, attr, ptr); attr 792 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 794 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, src, saved); attr 799 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 802 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 804 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 811 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 814 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 816 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 829 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 833 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 835 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 838 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 878 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 880 drivers/gpu/drm/amd/amdgpu/atom.c ctx->ctx->fb_base = atom_get_src(ctx, attr, ptr); attr 919 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++), shift; attr 922 drivers/gpu/drm/amd/amdgpu/atom.c attr &= 0x38; attr 923 drivers/gpu/drm/amd/amdgpu/atom.c attr |= atom_def_dst[attr >> 3] << 6; attr 925 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 930 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 935 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++), shift; attr 938 drivers/gpu/drm/amd/amdgpu/atom.c attr &= 0x38; attr 939 drivers/gpu/drm/amd/amdgpu/atom.c attr |= atom_def_dst[attr >> 3] << 6; attr 941 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 946 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 951 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++), shift; attr 954 drivers/gpu/drm/amd/amdgpu/atom.c uint32_t dst_align = atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3]; attr 956 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 959 drivers/gpu/drm/amd/amdgpu/atom.c shift = atom_get_src(ctx, attr, ptr); attr 965 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 970 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++), shift; attr 973 drivers/gpu/drm/amd/amdgpu/atom.c uint32_t dst_align = atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3]; attr 975 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 978 drivers/gpu/drm/amd/amdgpu/atom.c shift = atom_get_src(ctx, attr, ptr); attr 984 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 989 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 993 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 995 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 998 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 1003 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 1006 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 1012 drivers/gpu/drm/amd/amdgpu/atom.c atom_get_src(ctx, (attr & 0x38) | ATOM_ARG_IMM, attr 1030 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 1033 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 1035 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 1042 drivers/gpu/drm/amd/amdgpu/atom.c uint8_t attr = U8((*ptr)++); attr 1046 drivers/gpu/drm/amd/amdgpu/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 1048 drivers/gpu/drm/amd/amdgpu/atom.c src = atom_get_src(ctx, attr, ptr); attr 1051 drivers/gpu/drm/amd/amdgpu/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 40 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_event.attr, attr 41 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_instance.attr, attr 42 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_umask.attr, attr 72 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake0_pcsout_txdata.attr, attr 73 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake1_pcsout_txdata.attr, attr 74 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake0_pcsout_txmeta.attr, attr 75 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake1_pcsout_txmeta.attr, attr 76 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake0_ftiinstat_reqalloc.attr, attr 77 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake1_ftiinstat_reqalloc.attr, attr 78 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake0_ftiinstat_rspalloc.attr, attr 79 drivers/gpu/drm/amd/amdgpu/df_v3_6.c &pmu_attr_cake1_ftiinstat_rspalloc.attr, attr 188 drivers/gpu/drm/amd/amdgpu/df_v3_6.c struct device_attribute *attr, attr 77 drivers/gpu/drm/amd/amdkfd/kfd_process.c static ssize_t kfd_procfs_show(struct kobject *kobj, struct attribute *attr, attr 82 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (strcmp(attr->name, "pasid") == 0) { attr 83 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process *p = container_of(attr, struct kfd_process, attr 224 drivers/gpu/drm/amd/amdkfd/kfd_topology.c static ssize_t sysprops_show(struct kobject *kobj, struct attribute *attr, attr 232 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (attr == &sys_props.attr_genid) { attr 234 drivers/gpu/drm/amd/amdkfd/kfd_topology.c } else if (attr == &sys_props.attr_props) { attr 262 drivers/gpu/drm/amd/amdkfd/kfd_topology.c static ssize_t iolink_show(struct kobject *kobj, struct attribute *attr, attr 271 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink = container_of(attr, struct kfd_iolink_properties, attr); attr 298 drivers/gpu/drm/amd/amdkfd/kfd_topology.c static ssize_t mem_show(struct kobject *kobj, struct attribute *attr, attr 307 drivers/gpu/drm/amd/amdkfd/kfd_topology.c mem = container_of(attr, struct kfd_mem_properties, attr); attr 326 drivers/gpu/drm/amd/amdkfd/kfd_topology.c static ssize_t kfd_cache_show(struct kobject *kobj, struct attribute *attr, attr 336 drivers/gpu/drm/amd/amdkfd/kfd_topology.c cache = container_of(attr, struct kfd_cache_properties, attr); attr 375 drivers/gpu/drm/amd/amdkfd/kfd_topology.c struct kobj_attribute attr; attr 382 drivers/gpu/drm/amd/amdkfd/kfd_topology.c struct kfd_perf_attr *attr; attr 385 drivers/gpu/drm/amd/amdkfd/kfd_topology.c attr = container_of(attrs, struct kfd_perf_attr, attr); attr 386 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (!attr->data) /* invalid data for PMC */ attr 389 drivers/gpu/drm/amd/amdkfd/kfd_topology.c return sysfs_show_32bit_val(buf, attr->data); attr 394 drivers/gpu/drm/amd/amdkfd/kfd_topology.c .attr = __ATTR(_name, 0444, perf_show, NULL), \ attr 405 drivers/gpu/drm/amd/amdkfd/kfd_topology.c static ssize_t node_show(struct kobject *kobj, struct attribute *attr, attr 414 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (strcmp(attr->name, "gpu_id") == 0) { attr 415 drivers/gpu/drm/amd/amdkfd/kfd_topology.c dev = container_of(attr, struct kfd_topology_device, attr 420 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (strcmp(attr->name, "name") == 0) { attr 421 drivers/gpu/drm/amd/amdkfd/kfd_topology.c dev = container_of(attr, struct kfd_topology_device, attr 427 drivers/gpu/drm/amd/amdkfd/kfd_topology.c dev = container_of(attr, struct kfd_topology_device, attr 523 drivers/gpu/drm/amd/amdkfd/kfd_topology.c static void kfd_remove_sysfs_file(struct kobject *kobj, struct attribute *attr) attr 525 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_remove_file(kobj, attr); attr 541 drivers/gpu/drm/amd/amdkfd/kfd_topology.c &iolink->attr); attr 553 drivers/gpu/drm/amd/amdkfd/kfd_topology.c &cache->attr); attr 564 drivers/gpu/drm/amd/amdkfd/kfd_topology.c kfd_remove_sysfs_file(mem->kobj, &mem->attr); attr 666 drivers/gpu/drm/amd/amdkfd/kfd_topology.c mem->attr.name = "properties"; attr 667 drivers/gpu/drm/amd/amdkfd/kfd_topology.c mem->attr.mode = KFD_SYSFS_FILE_MODE; attr 668 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_attr_init(&mem->attr); attr 669 drivers/gpu/drm/amd/amdkfd/kfd_topology.c ret = sysfs_create_file(mem->kobj, &mem->attr); attr 685 drivers/gpu/drm/amd/amdkfd/kfd_topology.c cache->attr.name = "properties"; attr 686 drivers/gpu/drm/amd/amdkfd/kfd_topology.c cache->attr.mode = KFD_SYSFS_FILE_MODE; attr 687 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_attr_init(&cache->attr); attr 688 drivers/gpu/drm/amd/amdkfd/kfd_topology.c ret = sysfs_create_file(cache->kobj, &cache->attr); attr 704 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->attr.name = "properties"; attr 705 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->attr.mode = KFD_SYSFS_FILE_MODE; attr 706 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sysfs_attr_init(&iolink->attr); attr 707 drivers/gpu/drm/amd/amdkfd/kfd_topology.c ret = sysfs_create_file(iolink->kobj, &iolink->attr); attr 730 drivers/gpu/drm/amd/amdkfd/kfd_topology.c attrs[i] = &perf_attr_iommu[i].attr.attr; attr 106 drivers/gpu/drm/amd/amdkfd/kfd_topology.h struct attribute attr; attr 127 drivers/gpu/drm/amd/amdkfd/kfd_topology.h struct attribute attr; attr 145 drivers/gpu/drm/amd/amdkfd/kfd_topology.h struct attribute attr; attr 2447 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct device_attribute *attr, attr 595 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_dmdata_attributes *attr) attr 622 drivers/gpu/drm/amd/display/dc/core/dc_stream.c pipe_ctx->stream->dmdata_address = attr->address; attr 628 drivers/gpu/drm/amd/display/dc/core/dc_stream.c hubp->funcs->dmdata_set_attributes(hubp, attr); attr 492 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c struct dpp_cursor_attributes *attr) attr 496 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c if (attr) { attr 497 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c REG_UPDATE(CURSOR0_FP_SCALE_BIAS, CUR0_FP_BIAS, attr->bias); attr 498 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c REG_UPDATE(CURSOR0_FP_SCALE_BIAS, CUR0_FP_SCALE, attr->scale); attr 1382 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h struct dpp_cursor_attributes *attr); attr 1093 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c const struct dc_cursor_attributes *attr) attr 1096 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c enum cursor_pitch hw_pitch = hubp1_get_cursor_pitch(attr->pitch); attr 1098 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c attr->width, attr->color_format); attr 1100 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c hubp->curs_attr = *attr; attr 1103 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c CURSOR_SURFACE_ADDRESS_HIGH, attr->address.high_part); attr 1105 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c CURSOR_SURFACE_ADDRESS, attr->address.low_part); attr 1108 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c CURSOR_WIDTH, attr->width, attr 1109 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c CURSOR_HEIGHT, attr->height); attr 1112 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c CURSOR_MODE, attr->color_format, attr 714 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.h const struct dc_cursor_attributes *attr); attr 573 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c const struct dc_cursor_attributes *attr) attr 576 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c enum cursor_pitch hw_pitch = hubp1_get_cursor_pitch(attr->pitch); attr 578 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c attr->width, attr->color_format); attr 580 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c hubp->curs_attr = *attr; attr 583 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c CURSOR_SURFACE_ADDRESS_HIGH, attr->address.high_part); attr 585 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c CURSOR_SURFACE_ADDRESS, attr->address.low_part); attr 588 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c CURSOR_WIDTH, attr->width, attr 589 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c CURSOR_HEIGHT, attr->height); attr 592 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c CURSOR_MODE, attr->color_format, attr 593 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c CURSOR_2X_MAGNIFY, attr->attribute_flags.bits.ENABLE_MAGNIFICATION, attr 606 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c const struct dc_dmdata_attributes *attr) attr 610 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c if (attr->dmdata_mode == DMDATA_HW_MODE) { attr 623 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_REPEAT, attr->dmdata_repeat, attr 624 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_SIZE, attr->dmdata_size); attr 627 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c REG_WRITE(DMDATA_ADDRESS_LOW, attr->address.low_part); attr 629 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_ADDRESS_HIGH, attr->address.high_part); attr 642 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_SW_REPEAT, attr->dmdata_repeat, attr 643 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_SW_SIZE, attr->dmdata_size); attr 645 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c hubp2_dmdata_load(hubp, attr->dmdata_size, attr->dmdata_sw_data); attr 650 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_QOS_MODE, attr->dmdata_qos_mode, attr 651 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_QOS_LEVEL, attr->dmdata_qos_level, attr 652 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c DMDATA_DL_DELTA, attr->dmdata_dl_delta); attr 250 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h const struct dc_cursor_attributes *attr); attr 261 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h const struct dc_dmdata_attributes *attr); attr 1464 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_dmdata_attributes attr = { 0 }; attr 1467 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_mode = DMDATA_HW_MODE; attr 1468 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_size = attr 1470 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.address.quad_part = attr 1472 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_dl_delta = 0; attr 1473 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_qos_mode = 0; attr 1474 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_qos_level = 0; attr 1475 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_repeat = 1; /* always repeat */ attr 1476 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_updated = 1; attr 1477 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c attr.dmdata_sw_data = NULL; attr 1479 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c hubp->funcs->dmdata_set_attributes(hubp, &attr); attr 81 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c #define dml_get_attr_func(attr, var) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) \ attr 111 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c #define dml_get_pipe_attr_func(attr, var) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes, unsigned int which_pipe) \ attr 37 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h #define dml_get_attr_decl(attr) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) attr 61 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h #define dml_get_pipe_attr_decl(attr) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes, unsigned int which_pipe) attr 220 drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h struct dpp_cursor_attributes *attr); attr 125 drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h const struct dc_cursor_attributes *attr); attr 145 drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h const struct dc_dmdata_attributes *attr); attr 171 drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h const struct dc_cursor_attributes *attr); attr 262 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const struct dc_cursor_attributes *attr); attr 63 drivers/gpu/drm/arm/display/komeda/komeda_dev.c core_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 72 drivers/gpu/drm/arm/display/komeda/komeda_dev.c config_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 95 drivers/gpu/drm/arm/display/komeda/komeda_dev.c &dev_attr_core_id.attr, attr 96 drivers/gpu/drm/arm/display/komeda/komeda_dev.c &dev_attr_config_id.attr, attr 659 drivers/gpu/drm/arm/malidp_drv.c static ssize_t core_id_show(struct device *dev, struct device_attribute *attr, attr 106 drivers/gpu/drm/drm_dp_aux_dev.c struct device_attribute *attr, char *buf) attr 123 drivers/gpu/drm/drm_dp_aux_dev.c &dev_attr_name.attr, attr 80 drivers/gpu/drm/drm_sysfs.c err = class_create_file(drm_class, &class_attr_version.attr); attr 102 drivers/gpu/drm/drm_sysfs.c class_remove_file(drm_class, &class_attr_version.attr); attr 111 drivers/gpu/drm/drm_sysfs.c struct device_attribute *attr, attr 153 drivers/gpu/drm/drm_sysfs.c struct device_attribute *attr, attr 166 drivers/gpu/drm/drm_sysfs.c struct device_attribute *attr, attr 179 drivers/gpu/drm/drm_sysfs.c struct device_attribute *attr, attr 191 drivers/gpu/drm/drm_sysfs.c struct bin_attribute *attr, char *buf, loff_t off, attr 224 drivers/gpu/drm/drm_sysfs.c struct device_attribute *attr, attr 247 drivers/gpu/drm/drm_sysfs.c &dev_attr_status.attr, attr 248 drivers/gpu/drm/drm_sysfs.c &dev_attr_enabled.attr, attr 249 drivers/gpu/drm/drm_sysfs.c &dev_attr_dpms.attr, attr 250 drivers/gpu/drm/drm_sysfs.c &dev_attr_modes.attr, attr 255 drivers/gpu/drm/drm_sysfs.c .attr.name = "edid", attr 256 drivers/gpu/drm/drm_sysfs.c .attr.mode = 0444, attr 23 drivers/gpu/drm/exynos/exynos_drm_gem.c unsigned long attr; attr 49 drivers/gpu/drm/exynos/exynos_drm_gem.c attr = DMA_ATTR_WRITE_COMBINE; attr 51 drivers/gpu/drm/exynos/exynos_drm_gem.c attr = DMA_ATTR_NON_CONSISTENT; attr 53 drivers/gpu/drm/exynos/exynos_drm_gem.c exynos_gem->dma_attrs |= attr; attr 168 drivers/gpu/drm/exynos/exynos_drm_vidi.c struct device_attribute *attr, char *buf) attr 183 drivers/gpu/drm/exynos/exynos_drm_vidi.c struct device_attribute *attr, attr 14343 drivers/gpu/drm/i915/display/intel_display.c struct i915_sched_attr attr = { attr 14347 drivers/gpu/drm/i915/display/intel_display.c i915_gem_object_wait_priority(obj, 0, &attr); attr 431 drivers/gpu/drm/i915/gem/i915_gem_object.h const struct i915_sched_attr *attr); attr 97 drivers/gpu/drm/i915/gem/i915_gem_wait.c const struct i915_sched_attr *attr) attr 111 drivers/gpu/drm/i915/gem/i915_gem_wait.c engine->schedule(rq, attr); attr 117 drivers/gpu/drm/i915/gem/i915_gem_wait.c const struct i915_sched_attr *attr) attr 125 drivers/gpu/drm/i915/gem/i915_gem_wait.c __fence_set_priority(array->fences[i], attr); attr 127 drivers/gpu/drm/i915/gem/i915_gem_wait.c __fence_set_priority(fence, attr); attr 134 drivers/gpu/drm/i915/gem/i915_gem_wait.c const struct i915_sched_attr *attr) attr 149 drivers/gpu/drm/i915/gem/i915_gem_wait.c fence_set_priority(shared[i], attr); attr 159 drivers/gpu/drm/i915/gem/i915_gem_wait.c fence_set_priority(excl, attr); attr 1129 drivers/gpu/drm/i915/gt/intel_engine_cs.c const struct i915_sched_attr *attr, attr 1132 drivers/gpu/drm/i915/gt/intel_engine_cs.c if (attr->priority == I915_PRIORITY_INVALID) attr 1136 drivers/gpu/drm/i915/gt/intel_engine_cs.c " prio=%d", attr->priority); attr 1149 drivers/gpu/drm/i915/gt/intel_engine_cs.c x = print_sched_attr(rq->i915, &rq->sched.attr, buf, x, sizeof(buf)); attr 113 drivers/gpu/drm/i915/gt/intel_engine_pm.c rq->sched.attr.priority = I915_PRIORITY_UNPREEMPTABLE; attr 460 drivers/gpu/drm/i915/gt/intel_engine_types.h const struct i915_sched_attr *attr); attr 271 drivers/gpu/drm/i915/gt/intel_lrc.c return rq->sched.attr.priority; attr 1104 drivers/gpu/drm/i915/gt/intel_lrc.c last->sched.attr.priority, attr 1131 drivers/gpu/drm/i915/gt/intel_lrc.c last->sched.attr.priority, attr 149 drivers/gpu/drm/i915/gt/selftest_lrc.c struct i915_sched_attr attr = { attr 173 drivers/gpu/drm/i915/gt/selftest_lrc.c engine->schedule(rq, &attr); attr 614 drivers/gpu/drm/i915/gt/selftest_lrc.c struct i915_sched_attr attr = {}; attr 681 drivers/gpu/drm/i915/gt/selftest_lrc.c attr.priority = I915_USER_PRIORITY(I915_PRIORITY_MAX); attr 682 drivers/gpu/drm/i915/gt/selftest_lrc.c engine->schedule(rq, &attr); attr 861 drivers/gpu/drm/i915/gt/selftest_lrc.c struct i915_sched_attr attr = { attr 929 drivers/gpu/drm/i915/gt/selftest_lrc.c engine->schedule(rq_a, &attr); attr 1172 drivers/gpu/drm/i915/gt/selftest_lrc.c struct i915_sched_attr attr = { attr 1235 drivers/gpu/drm/i915/gt/selftest_lrc.c engine->schedule(rq, &attr); attr 511 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c return rq->sched.attr.priority | __NO_PREEMPTION; attr 55 drivers/gpu/drm/i915/gvt/firmware.c struct bin_attribute *attr, char *buf, attr 58 drivers/gpu/drm/i915/gvt/firmware.c memcpy(buf, attr->private + offset, count); attr 63 drivers/gpu/drm/i915/gvt/firmware.c .attr = {.name = "gvt_firmware", .mode = (S_IRUSR)}, attr 113 drivers/gpu/drm/i915/gvt/gvt.c &mdev_type_attr_available_instances.attr, attr 114 drivers/gpu/drm/i915/gvt/gvt.c &mdev_type_attr_device_api.attr, attr 115 drivers/gpu/drm/i915/gvt/gvt.c &mdev_type_attr_description.attr, attr 1554 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu_id_show(struct device *dev, struct device_attribute *attr, attr 1568 drivers/gpu/drm/i915/gvt/kvmgt.c hw_id_show(struct device *dev, struct device_attribute *attr, attr 1586 drivers/gpu/drm/i915/gvt/kvmgt.c &dev_attr_vgpu_id.attr, attr 1587 drivers/gpu/drm/i915/gvt/kvmgt.c &dev_attr_hw_id.attr, attr 1177 drivers/gpu/drm/i915/i915_gpu_error.c erq->sched_attr = request->sched.attr; attr 3050 drivers/gpu/drm/i915/i915_perf.c sysfs_attr_init(&dev_priv->perf.test_config.sysfs_metric_id.attr); attr 3272 drivers/gpu/drm/i915/i915_perf.c struct device_attribute *attr, attr 3276 drivers/gpu/drm/i915/i915_perf.c container_of(attr, typeof(*oa_config), sysfs_metric_id); attr 3284 drivers/gpu/drm/i915/i915_perf.c sysfs_attr_init(&oa_config->sysfs_metric_id.attr); attr 3285 drivers/gpu/drm/i915/i915_perf.c oa_config->sysfs_metric_id.attr.name = "id"; attr 3286 drivers/gpu/drm/i915/i915_perf.c oa_config->sysfs_metric_id.attr.mode = S_IRUGO; attr 3290 drivers/gpu/drm/i915/i915_perf.c oa_config->attrs[0] = &oa_config->sysfs_metric_id.attr; attr 39 drivers/gpu/drm/i915/i915_pmu.c return engine_config_sample(event->attr.config); attr 44 drivers/gpu/drm/i915/i915_pmu.c return (event->attr.config >> I915_PMU_CLASS_SHIFT) & 0xff; attr 49 drivers/gpu/drm/i915/i915_pmu.c return (event->attr.config >> I915_PMU_SAMPLE_BITS) & 0xff; attr 72 drivers/gpu/drm/i915/i915_pmu.c return is_engine_config(event->attr.config); attr 77 drivers/gpu/drm/i915/i915_pmu.c return config_enabled_bit(event->attr.config); attr 399 drivers/gpu/drm/i915/i915_pmu.c if (event->attr.type != event->pmu->type) attr 403 drivers/gpu/drm/i915/i915_pmu.c if (event->attr.sample_period) /* no sampling */ attr 419 drivers/gpu/drm/i915/i915_pmu.c ret = config_status(i915, event->attr.config); attr 551 drivers/gpu/drm/i915/i915_pmu.c switch (event->attr.config) { attr 725 drivers/gpu/drm/i915/i915_pmu.c struct device_attribute attr; attr 730 drivers/gpu/drm/i915/i915_pmu.c struct device_attribute *attr, char *buf) attr 734 drivers/gpu/drm/i915/i915_pmu.c eattr = container_of(attr, struct i915_str_attribute, attr); attr 740 drivers/gpu/drm/i915/i915_pmu.c { .attr = __ATTR(_name, 0444, i915_pmu_format_show, NULL), \ attr 742 drivers/gpu/drm/i915/i915_pmu.c })[0].attr.attr) attr 755 drivers/gpu/drm/i915/i915_pmu.c struct device_attribute attr; attr 760 drivers/gpu/drm/i915/i915_pmu.c struct device_attribute *attr, char *buf) attr 764 drivers/gpu/drm/i915/i915_pmu.c eattr = container_of(attr, struct i915_ext_attribute, attr); attr 775 drivers/gpu/drm/i915/i915_pmu.c struct device_attribute *attr, attr 784 drivers/gpu/drm/i915/i915_pmu.c &dev_attr_cpumask.attr, attr 813 drivers/gpu/drm/i915/i915_pmu.c add_i915_attr(struct i915_ext_attribute *attr, const char *name, u64 config) attr 815 drivers/gpu/drm/i915/i915_pmu.c sysfs_attr_init(&attr->attr.attr); attr 816 drivers/gpu/drm/i915/i915_pmu.c attr->attr.attr.name = name; attr 817 drivers/gpu/drm/i915/i915_pmu.c attr->attr.attr.mode = 0444; attr 818 drivers/gpu/drm/i915/i915_pmu.c attr->attr.show = i915_pmu_event_show; attr 819 drivers/gpu/drm/i915/i915_pmu.c attr->val = config; attr 821 drivers/gpu/drm/i915/i915_pmu.c return ++attr; attr 825 drivers/gpu/drm/i915/i915_pmu.c add_pmu_attr(struct perf_pmu_events_attr *attr, const char *name, attr 828 drivers/gpu/drm/i915/i915_pmu.c sysfs_attr_init(&attr->attr.attr); attr 829 drivers/gpu/drm/i915/i915_pmu.c attr->attr.attr.name = name; attr 830 drivers/gpu/drm/i915/i915_pmu.c attr->attr.attr.mode = 0444; attr 831 drivers/gpu/drm/i915/i915_pmu.c attr->attr.show = perf_event_sysfs_show; attr 832 drivers/gpu/drm/i915/i915_pmu.c attr->event_str = str; attr 834 drivers/gpu/drm/i915/i915_pmu.c return ++attr; attr 862 drivers/gpu/drm/i915/i915_pmu.c struct attribute **attr = NULL, **attr_iter; attr 890 drivers/gpu/drm/i915/i915_pmu.c attr = kcalloc(count * 2 + 1, sizeof(*attr), GFP_KERNEL); attr 891 drivers/gpu/drm/i915/i915_pmu.c if (!attr) attr 896 drivers/gpu/drm/i915/i915_pmu.c attr_iter = attr; attr 909 drivers/gpu/drm/i915/i915_pmu.c *attr_iter++ = &i915_iter->attr.attr; attr 917 drivers/gpu/drm/i915/i915_pmu.c *attr_iter++ = &pmu_iter->attr.attr; attr 936 drivers/gpu/drm/i915/i915_pmu.c *attr_iter++ = &i915_iter->attr.attr; attr 948 drivers/gpu/drm/i915/i915_pmu.c *attr_iter++ = &pmu_iter->attr.attr; attr 956 drivers/gpu/drm/i915/i915_pmu.c return attr; attr 959 drivers/gpu/drm/i915/i915_pmu.c for (attr_iter = attr; *attr_iter; attr_iter++) attr 963 drivers/gpu/drm/i915/i915_pmu.c kfree(attr); attr 503 drivers/gpu/drm/i915/i915_request.c request->sched.attr.priority |= I915_PRIORITY_NOSEMAPHORE; attr 579 drivers/gpu/drm/i915/i915_request.c if (!(READ_ONCE(rq->sched.attr.priority) & I915_PRIORITY_NOSEMAPHORE)) { attr 1219 drivers/gpu/drm/i915/i915_request.c const struct i915_sched_attr *attr) attr 1232 drivers/gpu/drm/i915/i915_request.c if (attr && rq->engine->schedule) attr 1233 drivers/gpu/drm/i915/i915_request.c rq->engine->schedule(rq, attr); attr 1240 drivers/gpu/drm/i915/i915_request.c struct i915_sched_attr attr = rq->gem_context->sched; attr 1264 drivers/gpu/drm/i915/i915_request.c attr.priority |= I915_PRIORITY_NOSEMAPHORE; attr 1273 drivers/gpu/drm/i915/i915_request.c attr.priority |= I915_PRIORITY_WAIT; attr 1276 drivers/gpu/drm/i915/i915_request.c __i915_request_queue(rq, &attr); attr 254 drivers/gpu/drm/i915/i915_request.h const struct i915_sched_attr *attr); attr 177 drivers/gpu/drm/i915/i915_scheduler.c return rq->sched.attr.priority | __NO_PREEMPTION; attr 231 drivers/gpu/drm/i915/i915_scheduler.c const struct i915_sched_attr *attr) attr 236 drivers/gpu/drm/i915/i915_scheduler.c const int prio = attr->priority; attr 244 drivers/gpu/drm/i915/i915_scheduler.c if (prio <= READ_ONCE(node->attr.priority)) attr 290 drivers/gpu/drm/i915/i915_scheduler.c if (prio > READ_ONCE(p->signaler->attr.priority)) attr 301 drivers/gpu/drm/i915/i915_scheduler.c if (node->attr.priority == I915_PRIORITY_INVALID) { attr 303 drivers/gpu/drm/i915/i915_scheduler.c node->attr = *attr; attr 325 drivers/gpu/drm/i915/i915_scheduler.c if (prio <= node->attr.priority || node_signaled(node)) attr 330 drivers/gpu/drm/i915/i915_scheduler.c node->attr.priority = prio; attr 360 drivers/gpu/drm/i915/i915_scheduler.c void i915_schedule(struct i915_request *rq, const struct i915_sched_attr *attr) attr 363 drivers/gpu/drm/i915/i915_scheduler.c __i915_schedule(&rq->sched, attr); attr 369 drivers/gpu/drm/i915/i915_scheduler.c struct i915_sched_attr attr = node->attr; attr 371 drivers/gpu/drm/i915/i915_scheduler.c attr.priority |= bump; attr 372 drivers/gpu/drm/i915/i915_scheduler.c __i915_schedule(node, &attr); attr 380 drivers/gpu/drm/i915/i915_scheduler.c if (READ_ONCE(rq->sched.attr.priority) & bump) attr 393 drivers/gpu/drm/i915/i915_scheduler.c node->attr.priority = I915_PRIORITY_INVALID; attr 41 drivers/gpu/drm/i915/i915_scheduler.h const struct i915_sched_attr *attr); attr 57 drivers/gpu/drm/i915/i915_scheduler_types.h struct i915_sched_attr attr; attr 58 drivers/gpu/drm/i915/i915_sysfs.c show_rc6_mask(struct device *kdev, struct device_attribute *attr, char *buf) attr 75 drivers/gpu/drm/i915/i915_sysfs.c show_rc6_ms(struct device *kdev, struct device_attribute *attr, char *buf) attr 83 drivers/gpu/drm/i915/i915_sysfs.c show_rc6p_ms(struct device *kdev, struct device_attribute *attr, char *buf) attr 91 drivers/gpu/drm/i915/i915_sysfs.c show_rc6pp_ms(struct device *kdev, struct device_attribute *attr, char *buf) attr 99 drivers/gpu/drm/i915/i915_sysfs.c show_media_rc6_ms(struct device *kdev, struct device_attribute *attr, char *buf) attr 113 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_rc6_enable.attr, attr 114 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_rc6_residency_ms.attr, attr 124 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_rc6p_residency_ms.attr, attr 125 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_rc6pp_residency_ms.attr, attr 135 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_media_rc6_residency_ms.attr, attr 161 drivers/gpu/drm/i915/i915_sysfs.c struct bin_attribute *attr, char *buf, attr 167 drivers/gpu/drm/i915/i915_sysfs.c int slice = (int)(uintptr_t)attr->private; attr 196 drivers/gpu/drm/i915/i915_sysfs.c struct bin_attribute *attr, char *buf, attr 203 drivers/gpu/drm/i915/i915_sysfs.c int slice = (int)(uintptr_t)attr->private; attr 243 drivers/gpu/drm/i915/i915_sysfs.c .attr = {.name = "l3_parity", .mode = (S_IRUSR | S_IWUSR)}, attr 252 drivers/gpu/drm/i915/i915_sysfs.c .attr = {.name = "l3_parity_slice_1", .mode = (S_IRUSR | S_IWUSR)}, attr 261 drivers/gpu/drm/i915/i915_sysfs.c struct device_attribute *attr, char *buf) attr 285 drivers/gpu/drm/i915/i915_sysfs.c struct device_attribute *attr, char *buf) attr 294 drivers/gpu/drm/i915/i915_sysfs.c static ssize_t gt_boost_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) attr 304 drivers/gpu/drm/i915/i915_sysfs.c struct device_attribute *attr, attr 335 drivers/gpu/drm/i915/i915_sysfs.c struct device_attribute *attr, char *buf) attr 344 drivers/gpu/drm/i915/i915_sysfs.c static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) attr 354 drivers/gpu/drm/i915/i915_sysfs.c struct device_attribute *attr, attr 400 drivers/gpu/drm/i915/i915_sysfs.c static ssize_t gt_min_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) attr 410 drivers/gpu/drm/i915/i915_sysfs.c struct device_attribute *attr, attr 460 drivers/gpu/drm/i915/i915_sysfs.c static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf); attr 466 drivers/gpu/drm/i915/i915_sysfs.c static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) attr 472 drivers/gpu/drm/i915/i915_sysfs.c if (attr == &dev_attr_gt_RP0_freq_mhz) attr 474 drivers/gpu/drm/i915/i915_sysfs.c else if (attr == &dev_attr_gt_RP1_freq_mhz) attr 476 drivers/gpu/drm/i915/i915_sysfs.c else if (attr == &dev_attr_gt_RPn_freq_mhz) attr 485 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_act_freq_mhz.attr, attr 486 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_cur_freq_mhz.attr, attr 487 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_boost_freq_mhz.attr, attr 488 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_max_freq_mhz.attr, attr 489 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_min_freq_mhz.attr, attr 490 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_RP0_freq_mhz.attr, attr 491 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_RP1_freq_mhz.attr, attr 492 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_RPn_freq_mhz.attr, attr 497 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_act_freq_mhz.attr, attr 498 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_cur_freq_mhz.attr, attr 499 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_boost_freq_mhz.attr, attr 500 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_max_freq_mhz.attr, attr 501 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_min_freq_mhz.attr, attr 502 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_RP0_freq_mhz.attr, attr 503 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_RP1_freq_mhz.attr, attr 504 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_gt_RPn_freq_mhz.attr, attr 505 drivers/gpu/drm/i915/i915_sysfs.c &dev_attr_vlv_rpe_freq_mhz.attr, attr 512 drivers/gpu/drm/i915/i915_sysfs.c struct bin_attribute *attr, char *buf, attr 539 drivers/gpu/drm/i915/i915_sysfs.c struct bin_attribute *attr, char *buf, attr 552 drivers/gpu/drm/i915/i915_sysfs.c .attr.name = "error", attr 553 drivers/gpu/drm/i915/i915_sysfs.c .attr.mode = S_IRUSR | S_IWUSR, attr 757 drivers/gpu/drm/i915/i915_trace.h __entry->prio = rq->sched.attr.priority; attr 60 drivers/gpu/drm/i915/oa/i915_oa_bdw.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 85 drivers/gpu/drm/i915/oa/i915_oa_bdw.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 87 drivers/gpu/drm/i915/oa/i915_oa_bdw.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 88 drivers/gpu/drm/i915/oa/i915_oa_bdw.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 58 drivers/gpu/drm/i915/oa/i915_oa_bxt.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 83 drivers/gpu/drm/i915/oa/i915_oa_bxt.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 85 drivers/gpu/drm/i915/oa/i915_oa_bxt.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 86 drivers/gpu/drm/i915/oa/i915_oa_bxt.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 59 drivers/gpu/drm/i915/oa/i915_oa_cflgt2.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 84 drivers/gpu/drm/i915/oa/i915_oa_cflgt2.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 86 drivers/gpu/drm/i915/oa/i915_oa_cflgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 87 drivers/gpu/drm/i915/oa/i915_oa_cflgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 59 drivers/gpu/drm/i915/oa/i915_oa_cflgt3.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 84 drivers/gpu/drm/i915/oa/i915_oa_cflgt3.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 86 drivers/gpu/drm/i915/oa/i915_oa_cflgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 87 drivers/gpu/drm/i915/oa/i915_oa_cflgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 59 drivers/gpu/drm/i915/oa/i915_oa_chv.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 84 drivers/gpu/drm/i915/oa/i915_oa_chv.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 86 drivers/gpu/drm/i915/oa/i915_oa_chv.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 87 drivers/gpu/drm/i915/oa/i915_oa_chv.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 71 drivers/gpu/drm/i915/oa/i915_oa_cnl.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 96 drivers/gpu/drm/i915/oa/i915_oa_cnl.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 98 drivers/gpu/drm/i915/oa/i915_oa_cnl.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 99 drivers/gpu/drm/i915/oa/i915_oa_cnl.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 58 drivers/gpu/drm/i915/oa/i915_oa_glk.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 83 drivers/gpu/drm/i915/oa/i915_oa_glk.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 85 drivers/gpu/drm/i915/oa/i915_oa_glk.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 86 drivers/gpu/drm/i915/oa/i915_oa_glk.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 88 drivers/gpu/drm/i915/oa/i915_oa_hsw.c show_render_basic_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 113 drivers/gpu/drm/i915/oa/i915_oa_hsw.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 115 drivers/gpu/drm/i915/oa/i915_oa_hsw.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 116 drivers/gpu/drm/i915/oa/i915_oa_hsw.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 68 drivers/gpu/drm/i915/oa/i915_oa_icl.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 93 drivers/gpu/drm/i915/oa/i915_oa_icl.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 95 drivers/gpu/drm/i915/oa/i915_oa_icl.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 96 drivers/gpu/drm/i915/oa/i915_oa_icl.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 59 drivers/gpu/drm/i915/oa/i915_oa_kblgt2.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 84 drivers/gpu/drm/i915/oa/i915_oa_kblgt2.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 86 drivers/gpu/drm/i915/oa/i915_oa_kblgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 87 drivers/gpu/drm/i915/oa/i915_oa_kblgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 59 drivers/gpu/drm/i915/oa/i915_oa_kblgt3.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 84 drivers/gpu/drm/i915/oa/i915_oa_kblgt3.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 86 drivers/gpu/drm/i915/oa/i915_oa_kblgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 87 drivers/gpu/drm/i915/oa/i915_oa_kblgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 58 drivers/gpu/drm/i915/oa/i915_oa_sklgt2.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 83 drivers/gpu/drm/i915/oa/i915_oa_sklgt2.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 85 drivers/gpu/drm/i915/oa/i915_oa_sklgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 86 drivers/gpu/drm/i915/oa/i915_oa_sklgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 59 drivers/gpu/drm/i915/oa/i915_oa_sklgt3.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 84 drivers/gpu/drm/i915/oa/i915_oa_sklgt3.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 86 drivers/gpu/drm/i915/oa/i915_oa_sklgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 87 drivers/gpu/drm/i915/oa/i915_oa_sklgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 59 drivers/gpu/drm/i915/oa/i915_oa_sklgt4.c show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf) attr 84 drivers/gpu/drm/i915/oa/i915_oa_sklgt4.c dev_priv->perf.test_config.attrs[0] = &dev_priv->perf.test_config.sysfs_metric_id.attr; attr 86 drivers/gpu/drm/i915/oa/i915_oa_sklgt4.c dev_priv->perf.test_config.sysfs_metric_id.attr.name = "id"; attr 87 drivers/gpu/drm/i915/oa/i915_oa_sklgt4.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; attr 88 drivers/gpu/drm/nouveau/nouveau_debugfs.c struct nvif_control_pstate_attr_v0 attr = { attr 94 drivers/gpu/drm/nouveau/nouveau_debugfs.c &attr, sizeof(attr)); attr 99 drivers/gpu/drm/nouveau/nouveau_debugfs.c seq_printf(m, "%02x:", attr.state); attr 104 drivers/gpu/drm/nouveau/nouveau_debugfs.c attr.index = 0; attr 106 drivers/gpu/drm/nouveau/nouveau_debugfs.c attr.state = state; attr 108 drivers/gpu/drm/nouveau/nouveau_debugfs.c &attr, sizeof(attr)); attr 112 drivers/gpu/drm/nouveau/nouveau_debugfs.c seq_printf(m, " %s %d", attr.name, attr.min); attr 113 drivers/gpu/drm/nouveau/nouveau_debugfs.c if (attr.min != attr.max) attr 114 drivers/gpu/drm/nouveau/nouveau_debugfs.c seq_printf(m, "-%d", attr.max); attr 115 drivers/gpu/drm/nouveau/nouveau_debugfs.c seq_printf(m, " %s", attr.unit); attr 116 drivers/gpu/drm/nouveau/nouveau_debugfs.c } while (attr.index); attr 194 drivers/gpu/drm/nouveau/nouveau_hwmon.c &sensor_dev_attr_pwm1_min.dev_attr.attr, attr 195 drivers/gpu/drm/nouveau/nouveau_hwmon.c &sensor_dev_attr_pwm1_max.dev_attr.attr, attr 203 drivers/gpu/drm/nouveau/nouveau_hwmon.c &sensor_dev_attr_temp1_auto_point1_pwm.dev_attr.attr, attr 204 drivers/gpu/drm/nouveau/nouveau_hwmon.c &sensor_dev_attr_temp1_auto_point1_temp.dev_attr.attr, attr 205 drivers/gpu/drm/nouveau/nouveau_hwmon.c &sensor_dev_attr_temp1_auto_point1_temp_hyst.dev_attr.attr, attr 287 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_chip_is_visible(const void *data, u32 attr, int channel) attr 289 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 298 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_power_is_visible(const void *data, u32 attr, int channel) attr 306 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 323 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_temp_is_visible(const void *data, u32 attr, int channel) attr 331 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 347 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_pwm_is_visible(const void *data, u32 attr, int channel) attr 356 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 366 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_input_is_visible(const void *data, u32 attr, int channel) attr 374 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 386 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_fan_is_visible(const void *data, u32 attr, int channel) attr 394 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 403 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_chip_read(struct device *dev, u32 attr, int channel, long *val) attr 405 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 417 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_temp_read(struct device *dev, u32 attr, int channel, long *val) attr 427 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 466 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_fan_read(struct device *dev, u32 attr, int channel, long *val) attr 475 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 489 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_in_read(struct device *dev, u32 attr, int channel, long *val) attr 499 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 520 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_pwm_read(struct device *dev, u32 attr, int channel, long *val) attr 529 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 546 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_power_read(struct device *dev, u32 attr, int channel, long *val) attr 555 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 575 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_temp_write(struct device *dev, u32 attr, int channel, long val) attr 584 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 609 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_pwm_write(struct device *dev, u32 attr, int channel, long val) attr 618 drivers/gpu/drm/nouveau/nouveau_hwmon.c switch (attr) { attr 629 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, attr 634 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_chip_is_visible(data, attr, channel); attr 636 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_temp_is_visible(data, attr, channel); attr 638 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_fan_is_visible(data, attr, channel); attr 640 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_input_is_visible(data, attr, channel); attr 642 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_pwm_is_visible(data, attr, channel); attr 644 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_power_is_visible(data, attr, channel); attr 653 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 656 drivers/gpu/drm/nouveau/nouveau_hwmon.c if (type == hwmon_in && attr == hwmon_in_label) { attr 665 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 670 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_chip_read(dev, attr, channel, val); attr 672 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_temp_read(dev, attr, channel, val); attr 674 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_fan_read(dev, attr, channel, val); attr 676 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_in_read(dev, attr, channel, val); attr 678 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_pwm_read(dev, attr, channel, val); attr 680 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_power_read(dev, attr, channel, val); attr 687 drivers/gpu/drm/nouveau/nouveau_hwmon.c nouveau_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 692 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_temp_write(dev, attr, channel, val); attr 694 drivers/gpu/drm/nouveau/nouveau_hwmon.c return nouveau_pwm_write(dev, attr, channel, val); attr 408 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct device_attribute *attr, char *buf) attr 439 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct device_attribute *attr, char *buf) attr 469 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct device_attribute *attr, attr 503 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct device_attribute *attr, attr 517 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct device_attribute *attr, attr 548 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct device_attribute *attr, attr 569 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c &dev_attr_num_dsi_errors.attr, attr 570 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c &dev_attr_hw_revision.attr, attr 571 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c &dev_attr_ulps.attr, attr 572 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c &dev_attr_ulps_timeout.attr, attr 180 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct device_attribute *attr, attr 200 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct device_attribute *attr, attr 233 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct device_attribute *attr, attr 256 drivers/gpu/drm/panel/panel-sony-acx565akm.c &dev_attr_cabc_mode.attr, attr 257 drivers/gpu/drm/panel/panel-sony-acx565akm.c &dev_attr_cabc_available_modes.attr, attr 184 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static ssize_t vmirror_show(struct device *dev, struct device_attribute *attr, attr 192 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static ssize_t vmirror_store(struct device *dev, struct device_attribute *attr, attr 212 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static ssize_t mode_show(struct device *dev, struct device_attribute *attr, attr 220 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static ssize_t mode_store(struct device *dev, struct device_attribute *attr, attr 239 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static ssize_t gamma_show(struct device *dev, struct device_attribute *attr, attr 259 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static ssize_t gamma_store(struct device *dev, struct device_attribute *attr, attr 286 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c &dev_attr_vmirror.attr, attr 287 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c &dev_attr_mode.attr, attr 288 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c &dev_attr_gamma.attr, attr 582 drivers/gpu/drm/qxl/qxl_dev.h struct qxl_line_attr attr; attr 182 drivers/gpu/drm/radeon/atom.c static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr, attr 187 drivers/gpu/drm/radeon/atom.c arg = attr & 7; attr 188 drivers/gpu/drm/radeon/atom.c align = (attr >> 3) & 7; attr 367 drivers/gpu/drm/radeon/atom.c static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) attr 369 drivers/gpu/drm/radeon/atom.c uint32_t align = (attr >> 3) & 7, arg = attr & 7; attr 403 drivers/gpu/drm/radeon/atom.c static uint32_t atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) attr 405 drivers/gpu/drm/radeon/atom.c return atom_get_src_int(ctx, attr, ptr, NULL, 1); attr 434 drivers/gpu/drm/radeon/atom.c static uint32_t atom_get_dst(atom_exec_context *ctx, int arg, uint8_t attr, attr 438 drivers/gpu/drm/radeon/atom.c arg | atom_dst_to_src[(attr >> 3) & attr 439 drivers/gpu/drm/radeon/atom.c 7][(attr >> 6) & 3] << 3, attr 443 drivers/gpu/drm/radeon/atom.c static void atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) attr 446 drivers/gpu/drm/radeon/atom.c arg | atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & attr 450 drivers/gpu/drm/radeon/atom.c static void atom_put_dst(atom_exec_context *ctx, int arg, uint8_t attr, attr 454 drivers/gpu/drm/radeon/atom.c atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = attr 588 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 592 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 594 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 597 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 602 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 606 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 608 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 611 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 637 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 640 drivers/gpu/drm/radeon/atom.c attr &= 0x38; attr 641 drivers/gpu/drm/radeon/atom.c attr |= atom_def_dst[attr >> 3] << 6; attr 642 drivers/gpu/drm/radeon/atom.c atom_get_dst(ctx, arg, attr, ptr, &saved, 0); attr 644 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, 0, saved); attr 649 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 652 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 654 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 675 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 678 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 680 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 750 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 754 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 755 drivers/gpu/drm/radeon/atom.c mask = atom_get_src_direct(ctx, ((attr >> 3) & 7), ptr); attr 758 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 762 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 767 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 770 drivers/gpu/drm/radeon/atom.c if (((attr >> 3) & 7) != ATOM_SRC_DWORD) attr 771 drivers/gpu/drm/radeon/atom.c atom_get_dst(ctx, arg, attr, ptr, &saved, 0); attr 773 drivers/gpu/drm/radeon/atom.c atom_skip_dst(ctx, arg, attr, ptr); attr 777 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 779 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, src, saved); attr 784 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 787 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 789 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 800 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 804 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 806 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 809 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 849 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 851 drivers/gpu/drm/radeon/atom.c ctx->ctx->fb_base = atom_get_src(ctx, attr, ptr); attr 890 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++), shift; attr 893 drivers/gpu/drm/radeon/atom.c attr &= 0x38; attr 894 drivers/gpu/drm/radeon/atom.c attr |= atom_def_dst[attr >> 3] << 6; attr 896 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 901 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 906 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++), shift; attr 909 drivers/gpu/drm/radeon/atom.c attr &= 0x38; attr 910 drivers/gpu/drm/radeon/atom.c attr |= atom_def_dst[attr >> 3] << 6; attr 912 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 917 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 922 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++), shift; attr 925 drivers/gpu/drm/radeon/atom.c uint32_t dst_align = atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3]; attr 927 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 930 drivers/gpu/drm/radeon/atom.c shift = atom_get_src(ctx, attr, ptr); attr 936 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 941 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++), shift; attr 944 drivers/gpu/drm/radeon/atom.c uint32_t dst_align = atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3]; attr 946 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 949 drivers/gpu/drm/radeon/atom.c shift = atom_get_src(ctx, attr, ptr); attr 955 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 960 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 964 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 966 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 969 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 974 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 977 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 983 drivers/gpu/drm/radeon/atom.c atom_get_src(ctx, (attr & 0x38) | ATOM_ARG_IMM, attr 1001 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 1004 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); attr 1006 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 1013 drivers/gpu/drm/radeon/atom.c uint8_t attr = U8((*ptr)++); attr 1017 drivers/gpu/drm/radeon/atom.c dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); attr 1019 drivers/gpu/drm/radeon/atom.c src = atom_get_src(ctx, attr, ptr); attr 1022 drivers/gpu/drm/radeon/atom.c atom_put_dst(ctx, arg, attr, &dptr, dst, saved); attr 356 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 371 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 411 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 424 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 468 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 481 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 512 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 529 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 570 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 584 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 612 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 619 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 626 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 647 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 671 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 692 drivers/gpu/drm/radeon/radeon_pm.c struct device_attribute *attr, attr 696 drivers/gpu/drm/radeon/radeon_pm.c int hyst = to_sensor_dev_attr(attr)->index; attr 717 drivers/gpu/drm/radeon/radeon_pm.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 718 drivers/gpu/drm/radeon/radeon_pm.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 719 drivers/gpu/drm/radeon/radeon_pm.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 720 drivers/gpu/drm/radeon/radeon_pm.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 721 drivers/gpu/drm/radeon/radeon_pm.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 722 drivers/gpu/drm/radeon/radeon_pm.c &sensor_dev_attr_pwm1_min.dev_attr.attr, attr 723 drivers/gpu/drm/radeon/radeon_pm.c &sensor_dev_attr_pwm1_max.dev_attr.attr, attr 728 drivers/gpu/drm/radeon/radeon_pm.c struct attribute *attr, int index) attr 732 drivers/gpu/drm/radeon/radeon_pm.c umode_t effective_mode = attr->mode; attr 736 drivers/gpu/drm/radeon/radeon_pm.c (attr == &sensor_dev_attr_temp1_crit.dev_attr.attr || attr 737 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr || attr 738 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1.dev_attr.attr || attr 739 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr || attr 740 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_max.dev_attr.attr || attr 741 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_min.dev_attr.attr)) attr 746 drivers/gpu/drm/radeon/radeon_pm.c (attr == &sensor_dev_attr_pwm1.dev_attr.attr || attr 747 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr || attr 748 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_max.dev_attr.attr || attr 749 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_min.dev_attr.attr)) attr 754 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1.dev_attr.attr) || /* can't query fan */ attr 756 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr)) /* can't query state */ attr 760 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1.dev_attr.attr) || /* can't manage fan */ attr 762 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_enable.dev_attr.attr)) /* can't manage state */ attr 768 drivers/gpu/drm/radeon/radeon_pm.c (attr == &sensor_dev_attr_pwm1_max.dev_attr.attr || attr 769 drivers/gpu/drm/radeon/radeon_pm.c attr == &sensor_dev_attr_pwm1_min.dev_attr.attr)) attr 862 drivers/gpu/drm/rcar-du/rcar_lvds.c const struct soc_device_attribute *attr; attr 876 drivers/gpu/drm/rcar-du/rcar_lvds.c attr = soc_device_match(lvds_quirk_matches); attr 877 drivers/gpu/drm/rcar-du/rcar_lvds.c if (attr) attr 878 drivers/gpu/drm/rcar-du/rcar_lvds.c lvds->info = attr->data; attr 116 drivers/gpu/drm/ttm/ttm_bo.c struct attribute *attr, attr 90 drivers/gpu/drm/ttm/ttm_memory.c struct attribute *attr, attr 98 drivers/gpu/drm/ttm/ttm_memory.c if (attr == &ttm_mem_sys) attr 100 drivers/gpu/drm/ttm/ttm_memory.c else if (attr == &ttm_mem_emer) attr 102 drivers/gpu/drm/ttm/ttm_memory.c else if (attr == &ttm_mem_max) attr 104 drivers/gpu/drm/ttm/ttm_memory.c else if (attr == &ttm_mem_swap) attr 106 drivers/gpu/drm/ttm/ttm_memory.c else if (attr == &ttm_mem_used) attr 117 drivers/gpu/drm/ttm/ttm_memory.c struct attribute *attr, attr 137 drivers/gpu/drm/ttm/ttm_memory.c if (attr == &ttm_mem_emer) { attr 141 drivers/gpu/drm/ttm/ttm_memory.c } else if (attr == &ttm_mem_max) { attr 145 drivers/gpu/drm/ttm/ttm_memory.c } else if (attr == &ttm_mem_swap) attr 180 drivers/gpu/drm/ttm/ttm_memory.c struct attribute *attr, attr 197 drivers/gpu/drm/ttm/ttm_memory.c struct attribute *attr, attr 154 drivers/gpu/drm/ttm/ttm_page_alloc.c struct attribute *attr, const char *buffer, size_t size) attr 167 drivers/gpu/drm/ttm/ttm_page_alloc.c if (attr == &ttm_page_pool_max) attr 169 drivers/gpu/drm/ttm/ttm_page_alloc.c else if (attr == &ttm_page_pool_small) attr 171 drivers/gpu/drm/ttm/ttm_page_alloc.c else if (attr == &ttm_page_pool_alloc_size) { attr 188 drivers/gpu/drm/ttm/ttm_page_alloc.c struct attribute *attr, char *buffer) attr 194 drivers/gpu/drm/ttm/ttm_page_alloc.c if (attr == &ttm_page_pool_max) attr 196 drivers/gpu/drm/ttm/ttm_page_alloc.c else if (attr == &ttm_page_pool_small) attr 198 drivers/gpu/drm/ttm/ttm_page_alloc.c else if (attr == &ttm_page_pool_alloc_size) attr 201 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c static ssize_t ttm_pool_store(struct kobject *kobj, struct attribute *attr, attr 216 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c if (attr == &ttm_page_pool_max) { attr 218 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c } else if (attr == &ttm_page_pool_small) { attr 220 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c } else if (attr == &ttm_page_pool_alloc_size) { attr 236 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c static ssize_t ttm_pool_show(struct kobject *kobj, struct attribute *attr, attr 243 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c if (attr == &ttm_page_pool_max) attr 245 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c else if (attr == &ttm_page_pool_small) attr 247 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c else if (attr == &ttm_page_pool_alloc_size) attr 13 drivers/greybus/bundle.c struct device_attribute *attr, char *buf) attr 22 drivers/greybus/bundle.c struct device_attribute *attr, char *buf) attr 30 drivers/greybus/bundle.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 41 drivers/greybus/bundle.c static ssize_t state_store(struct device *dev, struct device_attribute *attr, attr 59 drivers/greybus/bundle.c &dev_attr_bundle_class.attr, attr 60 drivers/greybus/bundle.c &dev_attr_bundle_id.attr, attr 61 drivers/greybus/bundle.c &dev_attr_state.attr, attr 403 drivers/greybus/control.c struct device_attribute *attr, char *buf) attr 412 drivers/greybus/control.c struct device_attribute *attr, char *buf) attr 421 drivers/greybus/control.c &dev_attr_vendor_string.attr, attr 422 drivers/greybus/control.c &dev_attr_product_string.attr, attr 34 drivers/greybus/hd.c struct device_attribute *attr, char *buf) attr 43 drivers/greybus/hd.c &dev_attr_bus_id.attr, attr 49 drivers/greybus/interface.c u16 attr, u32 *val) attr 52 drivers/greybus/interface.c attr, DME_SELECTOR_INDEX_NULL, val); attr 368 drivers/greybus/interface.c u16 attr; attr 377 drivers/greybus/interface.c attr = DME_T_TST_SRC_INCREMENT; attr 379 drivers/greybus/interface.c attr = DME_TOSHIBA_GMP_INIT_STATUS; attr 381 drivers/greybus/interface.c ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr, attr 435 drivers/greybus/interface.c return gb_svc_dme_peer_set(hd->svc, intf->interface_id, attr, attr 442 drivers/greybus/interface.c struct device_attribute *attr, \ attr 458 drivers/greybus/interface.c struct device_attribute *attr, char *buf) attr 477 drivers/greybus/interface.c struct device_attribute *attr, char *buf) attr 496 drivers/greybus/interface.c struct device_attribute *attr, char *buf) attr 515 drivers/greybus/interface.c struct device_attribute *attr, char *buf) attr 526 drivers/greybus/interface.c struct device_attribute *attr, const char *buf, attr 585 drivers/greybus/interface.c struct device_attribute *attr, char *buf) attr 594 drivers/greybus/interface.c &dev_attr_ddbl1_manufacturer_id.attr, attr 595 drivers/greybus/interface.c &dev_attr_ddbl1_product_id.attr, attr 600 drivers/greybus/interface.c &dev_attr_vendor_id.attr, attr 601 drivers/greybus/interface.c &dev_attr_product_id.attr, attr 602 drivers/greybus/interface.c &dev_attr_serial_number.attr, attr 607 drivers/greybus/interface.c &dev_attr_voltage_now.attr, attr 608 drivers/greybus/interface.c &dev_attr_current_now.attr, attr 609 drivers/greybus/interface.c &dev_attr_power_now.attr, attr 610 drivers/greybus/interface.c &dev_attr_power_state.attr, attr 615 drivers/greybus/interface.c &dev_attr_interface_id.attr, attr 616 drivers/greybus/interface.c &dev_attr_interface_type.attr, attr 621 drivers/greybus/interface.c struct attribute *attr, int n) attr 629 drivers/greybus/interface.c return attr->mode; attr 636 drivers/greybus/interface.c struct attribute *attr, int n) attr 643 drivers/greybus/interface.c return attr->mode; attr 650 drivers/greybus/interface.c struct attribute *attr, int n) attr 658 drivers/greybus/interface.c return attr->mode; attr 13 drivers/greybus/module.c struct device_attribute *attr, attr 50 drivers/greybus/module.c struct device_attribute *attr, char *buf) attr 59 drivers/greybus/module.c struct device_attribute *attr, char *buf) attr 68 drivers/greybus/module.c &dev_attr_eject.attr, attr 69 drivers/greybus/module.c &dev_attr_module_id.attr, attr 70 drivers/greybus/module.c &dev_attr_num_interfaces.attr, attr 25 drivers/greybus/svc.c struct device_attribute *attr, char *buf) attr 34 drivers/greybus/svc.c struct device_attribute *attr, char *buf) attr 48 drivers/greybus/svc.c struct device_attribute *attr, const char *buf, attr 69 drivers/greybus/svc.c static ssize_t watchdog_show(struct device *dev, struct device_attribute *attr, attr 79 drivers/greybus/svc.c struct device_attribute *attr, const char *buf, attr 101 drivers/greybus/svc.c struct device_attribute *attr, char *buf) attr 114 drivers/greybus/svc.c struct device_attribute *attr, attr 248 drivers/greybus/svc.c &dev_attr_endo_id.attr, attr 249 drivers/greybus/svc.c &dev_attr_ap_intf_id.attr, attr 250 drivers/greybus/svc.c &dev_attr_intf_eject.attr, attr 251 drivers/greybus/svc.c &dev_attr_watchdog.attr, attr 252 drivers/greybus/svc.c &dev_attr_watchdog_action.attr, attr 414 drivers/greybus/svc.c int gb_svc_dme_peer_get(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector, attr 423 drivers/greybus/svc.c request.attr = cpu_to_le16(attr); attr 431 drivers/greybus/svc.c intf_id, attr, selector, ret); attr 438 drivers/greybus/svc.c intf_id, attr, selector, result); attr 448 drivers/greybus/svc.c int gb_svc_dme_peer_set(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector, attr 457 drivers/greybus/svc.c request.attr = cpu_to_le16(attr); attr 466 drivers/greybus/svc.c intf_id, attr, selector, value, ret); attr 473 drivers/greybus/svc.c intf_id, attr, selector, value, result); attr 1873 drivers/hid/hid-core.c struct bin_attribute *attr, attr 1891 drivers/hid/hid-core.c show_country(struct device *dev, struct device_attribute *attr, attr 1900 drivers/hid/hid-core.c .attr = { .name = "report_descriptor", .mode = 0444 }, attr 1906 drivers/hid/hid-core.c .attr = { .name = "country", .mode = 0444 }, attr 2154 drivers/hid/hid-core.c &driver_attr_new_id.attr, attr 2320 drivers/hid/hid-core.c &dev_attr_modalias.attr, attr 262 drivers/hid/hid-corsair.c struct device_attribute *attr, char *buf) attr 309 drivers/hid/hid-corsair.c struct device_attribute *attr, attr 338 drivers/hid/hid-corsair.c struct device_attribute *attr, attr 378 drivers/hid/hid-corsair.c struct device_attribute *attr, attr 410 drivers/hid/hid-corsair.c &dev_attr_macro_mode.attr, attr 411 drivers/hid/hid-corsair.c &dev_attr_current_profile.attr, attr 867 drivers/hid/hid-cp2112.c struct device_attribute *attr, const char *buf, \ attr 883 drivers/hid/hid-cp2112.c struct device_attribute *attr, char *buf) \ attr 942 drivers/hid/hid-cp2112.c struct device_attribute attr; attr 951 drivers/hid/hid-cp2112.c struct cp2112_pstring_attribute *attr = attr 952 drivers/hid/hid-cp2112.c container_of(kattr, struct cp2112_pstring_attribute, attr); attr 960 drivers/hid/hid-cp2112.c report.report = attr->report; attr 967 drivers/hid/hid-cp2112.c hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, attr 982 drivers/hid/hid-cp2112.c struct cp2112_pstring_attribute *attr = attr 983 drivers/hid/hid-cp2112.c container_of(kattr, struct cp2112_pstring_attribute, attr); attr 988 drivers/hid/hid-cp2112.c ret = cp2112_hid_get(hdev, attr->report, &report.report, attr 991 drivers/hid/hid-cp2112.c hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, attr 1000 drivers/hid/hid-cp2112.c kattr->attr.name, report.length); attr 1014 drivers/hid/hid-cp2112.c .attr = __ATTR(name, (S_IWUSR | S_IRUGO), pstr_show, pstr_store), \ attr 1026 drivers/hid/hid-cp2112.c &dev_attr_vendor_id.attr, attr 1027 drivers/hid/hid-cp2112.c &dev_attr_product_id.attr, attr 1028 drivers/hid/hid-cp2112.c &dev_attr_max_power.attr, attr 1029 drivers/hid/hid-cp2112.c &dev_attr_power_mode.attr, attr 1030 drivers/hid/hid-cp2112.c &dev_attr_release_version.attr, attr 1031 drivers/hid/hid-cp2112.c &dev_attr_manufacturer.attr.attr, attr 1032 drivers/hid/hid-cp2112.c &dev_attr_product.attr.attr, attr 1033 drivers/hid/hid-cp2112.c &dev_attr_serial.attr.attr, attr 1046 drivers/hid/hid-cp2112.c struct attribute **attr; attr 1057 drivers/hid/hid-cp2112.c for (attr = cp2112_attr_group.attrs; *attr; ++attr) { attr 1059 drivers/hid/hid-cp2112.c ret = sysfs_chmod_file(&hdev->dev.kobj, *attr, mode); attr 1062 drivers/hid/hid-cp2112.c (*attr)->name); attr 78 drivers/hid/hid-gt683r.c struct device_attribute *attr, attr 96 drivers/hid/hid-gt683r.c struct device_attribute *attr, attr 208 drivers/hid/hid-gt683r.c &dev_attr_mode.attr, attr 257 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 267 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 287 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 298 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 328 drivers/hid/hid-lenovo.c &dev_attr_fn_lock_cptkbd.attr, attr 329 drivers/hid/hid-lenovo.c &dev_attr_sensitivity_cptkbd.attr, attr 424 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 434 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 454 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 464 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 484 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 494 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 514 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 524 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 544 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 555 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 573 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 584 drivers/hid/hid-lenovo.c struct device_attribute *attr, attr 632 drivers/hid/hid-lenovo.c &dev_attr_press_to_select_tpkbd.attr, attr 633 drivers/hid/hid-lenovo.c &dev_attr_dragging_tpkbd.attr, attr 634 drivers/hid/hid-lenovo.c &dev_attr_release_to_select_tpkbd.attr, attr 635 drivers/hid/hid-lenovo.c &dev_attr_select_right_tpkbd.attr, attr 636 drivers/hid/hid-lenovo.c &dev_attr_sensitivity_tpkbd.attr, attr 637 drivers/hid/hid-lenovo.c &dev_attr_press_speed_tpkbd.attr, attr 798 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_alternate_modes_show(struct device *dev, struct device_attribute *attr, char *buf) attr 847 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_alternate_modes_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 933 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_combine_show(struct device *dev, struct device_attribute *attr, attr 957 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_combine_store(struct device *dev, struct device_attribute *attr, attr 986 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_range_show(struct device *dev, struct device_attribute *attr, attr 1012 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_range_store(struct device *dev, struct device_attribute *attr, attr 1046 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_real_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1074 drivers/hid/hid-lg4ff.c static ssize_t lg4ff_real_id_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 2050 drivers/hid/hid-logitech-hidpp.c static ssize_t hidpp_ff_range_show(struct device *dev, struct device_attribute *attr, char *buf) attr 2060 drivers/hid/hid-logitech-hidpp.c static ssize_t hidpp_ff_range_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 3463 drivers/hid/hid-logitech-hidpp.c &dev_attr_builtin_power_supply.attr, attr 381 drivers/hid/hid-multitouch.c struct device_attribute *attr, attr 391 drivers/hid/hid-multitouch.c struct device_attribute *attr, attr 417 drivers/hid/hid-multitouch.c &dev_attr_quirks.attr, attr 169 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 181 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 193 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 205 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 217 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 229 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 252 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 264 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 288 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 298 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 321 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 333 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 357 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 369 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 393 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 403 drivers/hid/hid-ntrig.c struct device_attribute *attr, attr 431 drivers/hid/hid-ntrig.c &dev_attr_sensor_physical_width.attr, attr 432 drivers/hid/hid-ntrig.c &dev_attr_sensor_physical_height.attr, attr 433 drivers/hid/hid-ntrig.c &dev_attr_sensor_logical_width.attr, attr 434 drivers/hid/hid-ntrig.c &dev_attr_sensor_logical_height.attr, attr 435 drivers/hid/hid-ntrig.c &dev_attr_min_height.attr, attr 436 drivers/hid/hid-ntrig.c &dev_attr_min_width.attr, attr 437 drivers/hid/hid-ntrig.c &dev_attr_activate_slack.attr, attr 438 drivers/hid/hid-ntrig.c &dev_attr_activation_width.attr, attr 439 drivers/hid/hid-ntrig.c &dev_attr_activation_height.attr, attr 440 drivers/hid/hid-ntrig.c &dev_attr_deactivate_slack.attr, attr 254 drivers/hid/hid-picolcd_core.c struct device_attribute *attr, char *buf) attr 265 drivers/hid/hid-picolcd_core.c struct device_attribute *attr, const char *buf, size_t count) attr 300 drivers/hid/hid-picolcd_core.c struct device_attribute *attr, char *buf) attr 308 drivers/hid/hid-picolcd_core.c struct device_attribute *attr, const char *buf, size_t count) attr 451 drivers/hid/hid-picolcd_fb.c struct device_attribute *attr, char *buf) attr 471 drivers/hid/hid-picolcd_fb.c struct device_attribute *attr, const char *buf, size_t count) attr 100 drivers/hid/hid-prodikeys.c struct device_attribute *attr, char *buf) attr 113 drivers/hid/hid-prodikeys.c struct device_attribute *attr, const char *buf, size_t count) attr 137 drivers/hid/hid-prodikeys.c struct device_attribute *attr, char *buf) attr 150 drivers/hid/hid-prodikeys.c struct device_attribute *attr, const char *buf, size_t count) attr 176 drivers/hid/hid-prodikeys.c struct device_attribute *attr, char *buf) attr 189 drivers/hid/hid-prodikeys.c struct device_attribute *attr, const char *buf, size_t count) attr 29 drivers/hid/hid-roccat-arvo.c struct device_attribute *attr, char *buf) attr 49 drivers/hid/hid-roccat-arvo.c struct device_attribute *attr, char const *buf, size_t size) attr 79 drivers/hid/hid-roccat-arvo.c struct device_attribute *attr, char *buf) attr 99 drivers/hid/hid-roccat-arvo.c struct device_attribute *attr, char const *buf, size_t size) attr 144 drivers/hid/hid-roccat-arvo.c struct device_attribute *attr, char *buf) attr 153 drivers/hid/hid-roccat-arvo.c struct device_attribute *attr, char const *buf, size_t size) attr 229 drivers/hid/hid-roccat-arvo.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 239 drivers/hid/hid-roccat-arvo.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 249 drivers/hid/hid-roccat-arvo.c &dev_attr_mode_key.attr, attr 250 drivers/hid/hid-roccat-arvo.c &dev_attr_key_mask.attr, attr 251 drivers/hid/hid-roccat-arvo.c &dev_attr_actual_profile.attr, attr 49 drivers/hid/hid-roccat-common.h struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 58 drivers/hid/hid-roccat-common.h struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 72 drivers/hid/hid-roccat-common.h .attr = { .name = #thingy, .mode = 0660 }, \ attr 81 drivers/hid/hid-roccat-common.h .attr = { .name = #thingy, .mode = 0440 }, \ attr 89 drivers/hid/hid-roccat-common.h .attr = { .name = #thingy, .mode = 0220 }, \ attr 62 drivers/hid/hid-roccat-isku.c struct device_attribute *attr, char *buf) attr 70 drivers/hid/hid-roccat-isku.c struct device_attribute *attr, char const *buf, size_t size) attr 113 drivers/hid/hid-roccat-isku.c &dev_attr_actual_profile.attr, attr 161 drivers/hid/hid-roccat-isku.c struct bin_attribute *attr, char *buf, \ attr 170 drivers/hid/hid-roccat-isku.c struct bin_attribute *attr, char *buf, \ attr 184 drivers/hid/hid-roccat-isku.c .attr = { .name = #thingy, .mode = 0660 }, \ attr 193 drivers/hid/hid-roccat-isku.c .attr = { .name = #thingy, .mode = 0440 }, \ attr 201 drivers/hid/hid-roccat-isku.c .attr = { .name = #thingy, .mode = 0220 }, \ attr 267 drivers/hid/hid-roccat-kone.c struct bin_attribute *attr, char *buf, attr 291 drivers/hid/hid-roccat-kone.c struct bin_attribute *attr, char *buf, attr 328 drivers/hid/hid-roccat-kone.c struct kobject *kobj, struct bin_attribute *attr, attr 340 drivers/hid/hid-roccat-kone.c memcpy(buf, ((char const *)&kone->profiles[*(uint *)(attr->private)]) + off, count); attr 348 drivers/hid/hid-roccat-kone.c struct kobject *kobj, struct bin_attribute *attr, attr 360 drivers/hid/hid-roccat-kone.c profile = &kone->profiles[*(uint *)(attr->private)]; attr 367 drivers/hid/hid-roccat-kone.c *(uint *)(attr->private) + 1); attr 380 drivers/hid/hid-roccat-kone.c .attr = { .name = "profile" #number, .mode = 0660 }, \ attr 393 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char *buf) attr 402 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char *buf) attr 412 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char *buf) attr 434 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char *buf) attr 444 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char *buf) attr 464 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char const *buf, size_t size) attr 546 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char *buf) attr 554 drivers/hid/hid-roccat-kone.c struct device_attribute *attr, char const *buf, size_t size) attr 599 drivers/hid/hid-roccat-kone.c &dev_attr_actual_dpi.attr, attr 600 drivers/hid/hid-roccat-kone.c &dev_attr_actual_profile.attr, attr 609 drivers/hid/hid-roccat-kone.c &dev_attr_weight.attr, attr 617 drivers/hid/hid-roccat-kone.c &dev_attr_firmware_version.attr, attr 624 drivers/hid/hid-roccat-kone.c &dev_attr_tcu.attr, attr 627 drivers/hid/hid-roccat-kone.c &dev_attr_startup_profile.attr, attr 133 drivers/hid/hid-roccat-koneplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 142 drivers/hid/hid-roccat-koneplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 156 drivers/hid/hid-roccat-koneplus.c .attr = { .name = #thingy, .mode = 0660 }, \ attr 165 drivers/hid/hid-roccat-koneplus.c .attr = { .name = #thingy, .mode = 0440 }, \ attr 173 drivers/hid/hid-roccat-koneplus.c .attr = { .name = #thingy, .mode = 0220 }, \ attr 188 drivers/hid/hid-roccat-koneplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 195 drivers/hid/hid-roccat-koneplus.c retval = koneplus_send_control(usb_dev, *(uint *)(attr->private), attr 206 drivers/hid/hid-roccat-koneplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 213 drivers/hid/hid-roccat-koneplus.c retval = koneplus_send_control(usb_dev, *(uint *)(attr->private), attr 225 drivers/hid/hid-roccat-koneplus.c .attr = { .name = "profile" #number "_settings", .mode = 0440 }, \ attr 231 drivers/hid/hid-roccat-koneplus.c .attr = { .name = "profile" #number "_buttons", .mode = 0440 }, \ attr 243 drivers/hid/hid-roccat-koneplus.c struct device_attribute *attr, char *buf) attr 251 drivers/hid/hid-roccat-koneplus.c struct device_attribute *attr, char const *buf, size_t size) attr 299 drivers/hid/hid-roccat-koneplus.c struct device_attribute *attr, char *buf) attr 320 drivers/hid/hid-roccat-koneplus.c &dev_attr_actual_profile.attr, attr 321 drivers/hid/hid-roccat-koneplus.c &dev_attr_startup_profile.attr, attr 322 drivers/hid/hid-roccat-koneplus.c &dev_attr_firmware_version.attr, attr 176 drivers/hid/hid-roccat-kovaplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 185 drivers/hid/hid-roccat-kovaplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 199 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = #thingy, .mode = 0660 }, \ attr 208 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = #thingy, .mode = 0220 }, \ attr 218 drivers/hid/hid-roccat-kovaplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 225 drivers/hid/hid-roccat-kovaplus.c retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), attr 236 drivers/hid/hid-roccat-kovaplus.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 243 drivers/hid/hid-roccat-kovaplus.c retval = kovaplus_select_profile(usb_dev, *(uint *)(attr->private), attr 255 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = "profile" #number "_settings", .mode = 0440 }, \ attr 261 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = "profile" #number "_buttons", .mode = 0440 }, \ attr 273 drivers/hid/hid-roccat-kovaplus.c struct device_attribute *attr, char *buf) attr 281 drivers/hid/hid-roccat-kovaplus.c struct device_attribute *attr, char const *buf, size_t size) attr 326 drivers/hid/hid-roccat-kovaplus.c struct device_attribute *attr, char *buf) attr 335 drivers/hid/hid-roccat-kovaplus.c struct device_attribute *attr, char *buf) attr 345 drivers/hid/hid-roccat-kovaplus.c struct device_attribute *attr, char *buf) attr 355 drivers/hid/hid-roccat-kovaplus.c struct device_attribute *attr, char *buf) attr 376 drivers/hid/hid-roccat-kovaplus.c &dev_attr_actual_cpi.attr, attr 377 drivers/hid/hid-roccat-kovaplus.c &dev_attr_firmware_version.attr, attr 378 drivers/hid/hid-roccat-kovaplus.c &dev_attr_actual_profile.attr, attr 379 drivers/hid/hid-roccat-kovaplus.c &dev_attr_actual_sensitivity_x.attr, attr 380 drivers/hid/hid-roccat-kovaplus.c &dev_attr_actual_sensitivity_y.attr, attr 69 drivers/hid/hid-roccat-lua.c struct kobject *kobj, struct bin_attribute *attr, \ attr 78 drivers/hid/hid-roccat-lua.c struct kobject *kobj, struct bin_attribute *attr, \ attr 89 drivers/hid/hid-roccat-lua.c .attr = { .name = #thingy, .mode = 0660 }, \ attr 135 drivers/hid/hid-roccat-pyra.c struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 144 drivers/hid/hid-roccat-pyra.c struct kobject *kobj, struct bin_attribute *attr, char *buf, \ attr 158 drivers/hid/hid-roccat-pyra.c .attr = { .name = #thingy, .mode = 0660 }, \ attr 167 drivers/hid/hid-roccat-pyra.c .attr = { .name = #thingy, .mode = 0440 }, \ attr 175 drivers/hid/hid-roccat-pyra.c .attr = { .name = #thingy, .mode = 0220 }, \ attr 186 drivers/hid/hid-roccat-pyra.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 193 drivers/hid/hid-roccat-pyra.c retval = pyra_send_control(usb_dev, *(uint *)(attr->private), attr 204 drivers/hid/hid-roccat-pyra.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 211 drivers/hid/hid-roccat-pyra.c retval = pyra_send_control(usb_dev, *(uint *)(attr->private), attr 223 drivers/hid/hid-roccat-pyra.c .attr = { .name = "profile" #number "_settings", .mode = 0440 }, \ attr 229 drivers/hid/hid-roccat-pyra.c .attr = { .name = "profile" #number "_buttons", .mode = 0440 }, \ attr 241 drivers/hid/hid-roccat-pyra.c struct kobject *kobj, struct bin_attribute *attr, char *buf, attr 285 drivers/hid/hid-roccat-pyra.c struct device_attribute *attr, char *buf) attr 294 drivers/hid/hid-roccat-pyra.c struct device_attribute *attr, char *buf) attr 312 drivers/hid/hid-roccat-pyra.c struct device_attribute *attr, char *buf) attr 333 drivers/hid/hid-roccat-pyra.c &dev_attr_actual_cpi.attr, attr 334 drivers/hid/hid-roccat-pyra.c &dev_attr_actual_profile.attr, attr 335 drivers/hid/hid-roccat-pyra.c &dev_attr_firmware_version.attr, attr 336 drivers/hid/hid-roccat-pyra.c &dev_attr_startup_profile.attr, attr 150 drivers/hid/hid-sensor-custom.c struct device_attribute *attr, char *buf) attr 228 drivers/hid/hid-sensor-custom.c struct device_attribute *attr, attr 265 drivers/hid/hid-sensor-custom.c &dev_attr_enable_sensor.attr, attr 273 drivers/hid/hid-sensor-custom.c static ssize_t show_value(struct device *dev, struct device_attribute *attr, attr 284 drivers/hid/hid-sensor-custom.c if (sscanf(attr->attr.name, "feature-%x-%x-%s", &index, &usage, attr 288 drivers/hid/hid-sensor-custom.c } else if (sscanf(attr->attr.name, "input-%x-%x-%s", &index, &usage, attr 381 drivers/hid/hid-sensor-custom.c static ssize_t store_value(struct device *dev, struct device_attribute *attr, attr 389 drivers/hid/hid-sensor-custom.c if (sscanf(attr->attr.name, "feature-%x-%x-%s", &index, &usage, attr 589 drivers/hid/hid-sensor-custom.c sysfs_attr_init(&device_attr->attr); attr 590 drivers/hid/hid-sensor-custom.c device_attr->attr.name = attr 592 drivers/hid/hid-sensor-custom.c device_attr->attr.mode = hid_custom_attrs[j].mode; attr 596 drivers/hid/hid-sensor-custom.c sensor_inst->fields[i].attrs[j] = &device_attr->attr; attr 606 drivers/hid/hid-sony.c *attr, char *buf) attr 615 drivers/hid/hid-sony.c struct device_attribute *attr, attr 643 drivers/hid/hid-sony.c *attr, char *buf) attr 655 drivers/hid/hid-sony.c *attr, char *buf) attr 1648 drivers/hid/hid-wiimote-core.c struct device_attribute *attr, attr 1682 drivers/hid/hid-wiimote-core.c struct device_attribute *attr, attr 1700 drivers/hid/hid-wiimote-core.c struct device_attribute *attr, attr 1395 drivers/hid/hid-wiimote-modules.c struct device_attribute *attr, attr 1795 drivers/hid/hid-wiimote-modules.c struct device_attribute *attr, attr 1811 drivers/hid/hid-wiimote-modules.c struct device_attribute *attr, attr 374 drivers/hid/intel-ish-hid/ishtp/bus.c &dev_attr_modalias.attr, attr 1060 drivers/hid/wacom_sys.c struct device_attribute *attr, const char *buf, size_t count) \ attr 1065 drivers/hid/wacom_sys.c struct device_attribute *attr, char *buf) \ attr 1101 drivers/hid/wacom_sys.c struct device_attribute *attr, const char *buf, size_t count) \ attr 1110 drivers/hid/wacom_sys.c struct device_attribute *attr, char *buf) \ attr 1154 drivers/hid/wacom_sys.c struct device_attribute *attr, const char *buf, size_t count) \ attr 1171 drivers/hid/wacom_sys.c &dev_attr_status_led0_select.attr, attr 1172 drivers/hid/wacom_sys.c &dev_attr_status_led1_select.attr, attr 1182 drivers/hid/wacom_sys.c &dev_attr_status0_luminance.attr, attr 1183 drivers/hid/wacom_sys.c &dev_attr_status1_luminance.attr, attr 1184 drivers/hid/wacom_sys.c &dev_attr_status_led0_select.attr, attr 1185 drivers/hid/wacom_sys.c &dev_attr_buttons_luminance.attr, attr 1186 drivers/hid/wacom_sys.c &dev_attr_button0_rawimg.attr, attr 1187 drivers/hid/wacom_sys.c &dev_attr_button1_rawimg.attr, attr 1188 drivers/hid/wacom_sys.c &dev_attr_button2_rawimg.attr, attr 1189 drivers/hid/wacom_sys.c &dev_attr_button3_rawimg.attr, attr 1190 drivers/hid/wacom_sys.c &dev_attr_button4_rawimg.attr, attr 1191 drivers/hid/wacom_sys.c &dev_attr_button5_rawimg.attr, attr 1192 drivers/hid/wacom_sys.c &dev_attr_button6_rawimg.attr, attr 1193 drivers/hid/wacom_sys.c &dev_attr_button7_rawimg.attr, attr 1203 drivers/hid/wacom_sys.c &dev_attr_status0_luminance.attr, attr 1204 drivers/hid/wacom_sys.c &dev_attr_status_led0_select.attr, attr 1214 drivers/hid/wacom_sys.c &dev_attr_status0_luminance.attr, attr 1215 drivers/hid/wacom_sys.c &dev_attr_status_led0_select.attr, attr 1791 drivers/hid/wacom_sys.c *attr, char *buf) attr 1800 drivers/hid/wacom_sys.c struct device_attribute *attr, attr 1842 drivers/hid/wacom_sys.c .attr = {.name = "remote_mode", \ attr 1847 drivers/hid/wacom_sys.c &remote##SET_ID##_mode_attr.attr, \ attr 1906 drivers/hid/wacom_sys.c struct kobj_attribute *attr, attr 1932 drivers/hid/wacom_sys.c .attr = {.name = "unpair_remote", .mode = 0200}, attr 1937 drivers/hid/wacom_sys.c &unpair_remote_attr.attr, attr 28 drivers/hsi/hsi_core.c &dev_attr_modalias.attr, attr 233 drivers/hv/vmbus_drv.c struct device_attribute *attr, char *buf) attr 571 drivers/hv/vmbus_drv.c struct device_attribute *attr, attr 605 drivers/hv/vmbus_drv.c struct device_attribute *attr, char *buf) attr 620 drivers/hv/vmbus_drv.c &dev_attr_id.attr, attr 621 drivers/hv/vmbus_drv.c &dev_attr_state.attr, attr 622 drivers/hv/vmbus_drv.c &dev_attr_monitor_id.attr, attr 623 drivers/hv/vmbus_drv.c &dev_attr_class_id.attr, attr 624 drivers/hv/vmbus_drv.c &dev_attr_device_id.attr, attr 625 drivers/hv/vmbus_drv.c &dev_attr_modalias.attr, attr 627 drivers/hv/vmbus_drv.c &dev_attr_numa_node.attr, attr 629 drivers/hv/vmbus_drv.c &dev_attr_server_monitor_pending.attr, attr 630 drivers/hv/vmbus_drv.c &dev_attr_client_monitor_pending.attr, attr 631 drivers/hv/vmbus_drv.c &dev_attr_server_monitor_latency.attr, attr 632 drivers/hv/vmbus_drv.c &dev_attr_client_monitor_latency.attr, attr 633 drivers/hv/vmbus_drv.c &dev_attr_server_monitor_conn_id.attr, attr 634 drivers/hv/vmbus_drv.c &dev_attr_client_monitor_conn_id.attr, attr 635 drivers/hv/vmbus_drv.c &dev_attr_out_intr_mask.attr, attr 636 drivers/hv/vmbus_drv.c &dev_attr_out_read_index.attr, attr 637 drivers/hv/vmbus_drv.c &dev_attr_out_write_index.attr, attr 638 drivers/hv/vmbus_drv.c &dev_attr_out_read_bytes_avail.attr, attr 639 drivers/hv/vmbus_drv.c &dev_attr_out_write_bytes_avail.attr, attr 640 drivers/hv/vmbus_drv.c &dev_attr_in_intr_mask.attr, attr 641 drivers/hv/vmbus_drv.c &dev_attr_in_read_index.attr, attr 642 drivers/hv/vmbus_drv.c &dev_attr_in_write_index.attr, attr 643 drivers/hv/vmbus_drv.c &dev_attr_in_read_bytes_avail.attr, attr 644 drivers/hv/vmbus_drv.c &dev_attr_in_write_bytes_avail.attr, attr 645 drivers/hv/vmbus_drv.c &dev_attr_channel_vp_mapping.attr, attr 646 drivers/hv/vmbus_drv.c &dev_attr_vendor.attr, attr 647 drivers/hv/vmbus_drv.c &dev_attr_device.attr, attr 648 drivers/hv/vmbus_drv.c &dev_attr_driver_override.attr, attr 657 drivers/hv/vmbus_drv.c struct attribute *attr, int idx) attr 664 drivers/hv/vmbus_drv.c (attr == &dev_attr_monitor_id.attr || attr 665 drivers/hv/vmbus_drv.c attr == &dev_attr_server_monitor_pending.attr || attr 666 drivers/hv/vmbus_drv.c attr == &dev_attr_client_monitor_pending.attr || attr 667 drivers/hv/vmbus_drv.c attr == &dev_attr_server_monitor_latency.attr || attr 668 drivers/hv/vmbus_drv.c attr == &dev_attr_client_monitor_latency.attr || attr 669 drivers/hv/vmbus_drv.c attr == &dev_attr_server_monitor_conn_id.attr || attr 670 drivers/hv/vmbus_drv.c attr == &dev_attr_client_monitor_conn_id.attr)) attr 673 drivers/hv/vmbus_drv.c return attr->mode; attr 855 drivers/hv/vmbus_drv.c &driver_attr_new_id.attr, attr 856 drivers/hv/vmbus_drv.c &driver_attr_remove_id.attr, attr 1526 drivers/hv/vmbus_drv.c struct attribute attr; attr 1542 drivers/hv/vmbus_drv.c struct attribute *attr, char *buf) attr 1545 drivers/hv/vmbus_drv.c = container_of(attr, struct vmbus_chan_attribute, attr); attr 1711 drivers/hv/vmbus_drv.c &chan_attr_out_mask.attr, attr 1712 drivers/hv/vmbus_drv.c &chan_attr_in_mask.attr, attr 1713 drivers/hv/vmbus_drv.c &chan_attr_read_avail.attr, attr 1714 drivers/hv/vmbus_drv.c &chan_attr_write_avail.attr, attr 1715 drivers/hv/vmbus_drv.c &chan_attr_cpu.attr, attr 1716 drivers/hv/vmbus_drv.c &chan_attr_pending.attr, attr 1717 drivers/hv/vmbus_drv.c &chan_attr_latency.attr, attr 1718 drivers/hv/vmbus_drv.c &chan_attr_interrupts.attr, attr 1719 drivers/hv/vmbus_drv.c &chan_attr_events.attr, attr 1720 drivers/hv/vmbus_drv.c &chan_attr_intr_in_full.attr, attr 1721 drivers/hv/vmbus_drv.c &chan_attr_intr_out_empty.attr, attr 1722 drivers/hv/vmbus_drv.c &chan_attr_out_full_first.attr, attr 1723 drivers/hv/vmbus_drv.c &chan_attr_out_full_total.attr, attr 1724 drivers/hv/vmbus_drv.c &chan_attr_monitor_id.attr, attr 1725 drivers/hv/vmbus_drv.c &chan_attr_subchannel_id.attr, attr 1734 drivers/hv/vmbus_drv.c struct attribute *attr, int idx) attr 1741 drivers/hv/vmbus_drv.c (attr == &chan_attr_pending.attr || attr 1742 drivers/hv/vmbus_drv.c attr == &chan_attr_latency.attr || attr 1743 drivers/hv/vmbus_drv.c attr == &chan_attr_monitor_id.attr)) attr 1746 drivers/hv/vmbus_drv.c return attr->mode; attr 123 drivers/hwmon/ab8500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 124 drivers/hwmon/ab8500.c int index = attr->index; attr 790 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 794 drivers/hwmon/abituguru.c return sprintf(buf, "%d\n", (data->bank1_value[attr->index] * attr 795 drivers/hwmon/abituguru.c data->bank1_max_value[attr->index] + 128) / 255); attr 801 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 804 drivers/hwmon/abituguru.c (data->bank1_settings[attr->index][attr->nr] * attr 805 drivers/hwmon/abituguru.c data->bank1_max_value[attr->index] + 128) / 255); attr 811 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 815 drivers/hwmon/abituguru.c return sprintf(buf, "%d\n", (data->bank2_value[attr->index] * attr 822 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 825 drivers/hwmon/abituguru.c (data->bank2_settings[attr->index][attr->nr] * attr 832 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 842 drivers/hwmon/abituguru.c val = (val * 255 + data->bank1_max_value[attr->index] / 2) / attr 843 drivers/hwmon/abituguru.c data->bank1_max_value[attr->index]; attr 848 drivers/hwmon/abituguru.c if (data->bank1_settings[attr->index][attr->nr] != val) { attr 849 drivers/hwmon/abituguru.c u8 orig_val = data->bank1_settings[attr->index][attr->nr]; attr 850 drivers/hwmon/abituguru.c data->bank1_settings[attr->index][attr->nr] = val; attr 852 drivers/hwmon/abituguru.c attr->index, data->bank1_settings[attr->index], attr 853 drivers/hwmon/abituguru.c 3) <= attr->nr) { attr 854 drivers/hwmon/abituguru.c data->bank1_settings[attr->index][attr->nr] = orig_val; attr 865 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 883 drivers/hwmon/abituguru.c if (data->bank2_settings[attr->index][attr->nr] != val) { attr 884 drivers/hwmon/abituguru.c u8 orig_val = data->bank2_settings[attr->index][attr->nr]; attr 885 drivers/hwmon/abituguru.c data->bank2_settings[attr->index][attr->nr] = val; attr 887 drivers/hwmon/abituguru.c attr->index, data->bank2_settings[attr->index], attr 888 drivers/hwmon/abituguru.c 2) <= attr->nr) { attr 889 drivers/hwmon/abituguru.c data->bank2_settings[attr->index][attr->nr] = orig_val; attr 900 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 911 drivers/hwmon/abituguru.c if ((data->alarms[attr->index / 8] & (0x01 << (attr->index % 8))) && attr 912 drivers/hwmon/abituguru.c (data->bank1_settings[attr->index][0] & attr->nr)) attr 921 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 925 drivers/hwmon/abituguru.c if (data->alarms[2] & (0x01 << attr->index)) attr 934 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 936 drivers/hwmon/abituguru.c if (data->bank1_settings[attr->index][0] & attr->nr) attr 945 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 947 drivers/hwmon/abituguru.c if (data->bank2_settings[attr->index][0] & attr->nr) attr 956 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 968 drivers/hwmon/abituguru.c orig_val = data->bank1_settings[attr->index][0]; attr 971 drivers/hwmon/abituguru.c data->bank1_settings[attr->index][0] |= attr->nr; attr 973 drivers/hwmon/abituguru.c data->bank1_settings[attr->index][0] &= ~attr->nr; attr 975 drivers/hwmon/abituguru.c if ((data->bank1_settings[attr->index][0] != orig_val) && attr 977 drivers/hwmon/abituguru.c ABIT_UGURU_SENSOR_BANK1 + 2, attr->index, attr 978 drivers/hwmon/abituguru.c data->bank1_settings[attr->index], 3) < 1)) { attr 979 drivers/hwmon/abituguru.c data->bank1_settings[attr->index][0] = orig_val; attr 989 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 1001 drivers/hwmon/abituguru.c orig_val = data->bank2_settings[attr->index][0]; attr 1004 drivers/hwmon/abituguru.c data->bank2_settings[attr->index][0] |= attr->nr; attr 1006 drivers/hwmon/abituguru.c data->bank2_settings[attr->index][0] &= ~attr->nr; attr 1008 drivers/hwmon/abituguru.c if ((data->bank2_settings[attr->index][0] != orig_val) && attr 1010 drivers/hwmon/abituguru.c ABIT_UGURU_SENSOR_BANK2 + 2, attr->index, attr 1011 drivers/hwmon/abituguru.c data->bank2_settings[attr->index], 2) < 1)) { attr 1012 drivers/hwmon/abituguru.c data->bank2_settings[attr->index][0] = orig_val; attr 1023 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 1025 drivers/hwmon/abituguru.c return sprintf(buf, "%d\n", data->pwm_settings[attr->index][attr->nr] * attr 1026 drivers/hwmon/abituguru.c abituguru_pwm_settings_multiplier[attr->nr]); attr 1032 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 1043 drivers/hwmon/abituguru.c val = (val + abituguru_pwm_settings_multiplier[attr->nr] / 2) / attr 1044 drivers/hwmon/abituguru.c abituguru_pwm_settings_multiplier[attr->nr]; attr 1047 drivers/hwmon/abituguru.c if ((attr->index == 0) && ((attr->nr == 1) || (attr->nr == 2))) attr 1050 drivers/hwmon/abituguru.c min = abituguru_pwm_min[attr->nr]; attr 1053 drivers/hwmon/abituguru.c if (val < min || val > abituguru_pwm_max[attr->nr]) attr 1058 drivers/hwmon/abituguru.c if ((attr->nr & 1) && attr 1059 drivers/hwmon/abituguru.c (val >= data->pwm_settings[attr->index][attr->nr + 1])) attr 1061 drivers/hwmon/abituguru.c else if (!(attr->nr & 1) && attr 1062 drivers/hwmon/abituguru.c (val <= data->pwm_settings[attr->index][attr->nr - 1])) attr 1064 drivers/hwmon/abituguru.c else if (data->pwm_settings[attr->index][attr->nr] != val) { attr 1065 drivers/hwmon/abituguru.c u8 orig_val = data->pwm_settings[attr->index][attr->nr]; attr 1066 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][attr->nr] = val; attr 1068 drivers/hwmon/abituguru.c attr->index, data->pwm_settings[attr->index], attr 1069 drivers/hwmon/abituguru.c 5) <= attr->nr) { attr 1070 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][attr->nr] = attr 1082 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 1091 drivers/hwmon/abituguru.c (data->pwm_settings[attr->index][0] & 0x0F)) attr 1100 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 1117 drivers/hwmon/abituguru.c orig_val = data->pwm_settings[attr->index][0]; attr 1119 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][0] &= 0xF0; attr 1120 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][0] |= address; attr 1121 drivers/hwmon/abituguru.c if (data->pwm_settings[attr->index][0] != orig_val) { attr 1122 drivers/hwmon/abituguru.c if (abituguru_write(data, ABIT_UGURU_FAN_PWM + 1, attr->index, attr 1123 drivers/hwmon/abituguru.c data->pwm_settings[attr->index], 5) < 1) { attr 1124 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][0] = orig_val; attr 1135 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 1138 drivers/hwmon/abituguru.c if (data->pwm_settings[attr->index][0] & ABIT_UGURU_FAN_PWM_ENABLE) attr 1146 drivers/hwmon/abituguru.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 1158 drivers/hwmon/abituguru.c orig_val = data->pwm_settings[attr->index][0]; attr 1161 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][0] &= attr 1165 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][0] |= ABIT_UGURU_FAN_PWM_ENABLE; attr 1170 drivers/hwmon/abituguru.c if ((data->pwm_settings[attr->index][0] != orig_val) && attr 1172 drivers/hwmon/abituguru.c attr->index, data->pwm_settings[attr->index], attr 1174 drivers/hwmon/abituguru.c data->pwm_settings[attr->index][0] = orig_val; attr 1343 drivers/hwmon/abituguru.c attr.name, data->bank1_sensors[res] + res) attr 1347 drivers/hwmon/abituguru.c data->sysfs_attr[sysfs_attr_i].dev_attr.attr.name = attr 1365 drivers/hwmon/abituguru.c abituguru_sysfs_fan_templ[j].dev_attr.attr.name, attr 1369 drivers/hwmon/abituguru.c data->sysfs_attr[sysfs_attr_i].dev_attr.attr.name = attr 1382 drivers/hwmon/abituguru.c abituguru_sysfs_pwm_templ[j].dev_attr.attr.name, attr 1386 drivers/hwmon/abituguru.c data->sysfs_attr[sysfs_attr_i].dev_attr.attr.name = attr 1423 drivers/hwmon/abituguru.c for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++) attr 1437 drivers/hwmon/abituguru.c for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++) attr 829 drivers/hwmon/abituguru3.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 836 drivers/hwmon/abituguru3.c sensor = &data->sensors[attr->index]; attr 839 drivers/hwmon/abituguru3.c if (attr->nr) attr 840 drivers/hwmon/abituguru3.c value = data->settings[sensor->port][attr->nr]; attr 862 drivers/hwmon/abituguru3.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 868 drivers/hwmon/abituguru3.c port = data->sensors[attr->index].port; attr 877 drivers/hwmon/abituguru3.c (!attr->nr || (data->settings[port][0] & attr->nr))) attr 886 drivers/hwmon/abituguru3.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 889 drivers/hwmon/abituguru3.c if (data->settings[data->sensors[attr->index].port][0] & attr->nr) attr 898 drivers/hwmon/abituguru3.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 901 drivers/hwmon/abituguru3.c return sprintf(buf, "%s\n", data->sensors[attr->index].name); attr 1016 drivers/hwmon/abituguru3.c abituguru3_sysfs_templ[type][j].dev_attr.attr. attr 1020 drivers/hwmon/abituguru3.c data->sysfs_attr[sysfs_attr_i].dev_attr.attr.name = attr 1056 drivers/hwmon/abituguru3.c for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++) attr 1070 drivers/hwmon/abituguru3.c for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++) attr 145 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 146 drivers/hwmon/abx500.c u8 gpadc_addr = data->gpadc_addr[attr->index]; attr 161 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 169 drivers/hwmon/abx500.c data->min[attr->index] = val; attr 181 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 189 drivers/hwmon/abx500.c data->max[attr->index] = val; attr 202 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 210 drivers/hwmon/abx500.c data->max_hyst[attr->index] = val; attr 222 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 224 drivers/hwmon/abx500.c return sprintf(buf, "%lu\n", data->min[attr->index]); attr 231 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 233 drivers/hwmon/abx500.c return sprintf(buf, "%lu\n", data->max[attr->index]); attr 240 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 242 drivers/hwmon/abx500.c return sprintf(buf, "%lu\n", data->max_hyst[attr->index]); attr 249 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 251 drivers/hwmon/abx500.c return sprintf(buf, "%d\n", data->min_alarm[attr->index]); attr 258 drivers/hwmon/abx500.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 260 drivers/hwmon/abx500.c return sprintf(buf, "%d\n", data->max_alarm[attr->index]); attr 264 drivers/hwmon/abx500.c struct attribute *attr, int n) attr 270 drivers/hwmon/abx500.c return data->ops.is_visible(attr, n); attr 272 drivers/hwmon/abx500.c return attr->mode; attr 315 drivers/hwmon/abx500.c &sensor_dev_attr_name.dev_attr.attr, attr 317 drivers/hwmon/abx500.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 318 drivers/hwmon/abx500.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 319 drivers/hwmon/abx500.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 320 drivers/hwmon/abx500.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 321 drivers/hwmon/abx500.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 322 drivers/hwmon/abx500.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 323 drivers/hwmon/abx500.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 325 drivers/hwmon/abx500.c &sensor_dev_attr_temp2_label.dev_attr.attr, attr 326 drivers/hwmon/abx500.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 327 drivers/hwmon/abx500.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 328 drivers/hwmon/abx500.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 329 drivers/hwmon/abx500.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 330 drivers/hwmon/abx500.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 331 drivers/hwmon/abx500.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 333 drivers/hwmon/abx500.c &sensor_dev_attr_temp3_label.dev_attr.attr, attr 334 drivers/hwmon/abx500.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 335 drivers/hwmon/abx500.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 336 drivers/hwmon/abx500.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 337 drivers/hwmon/abx500.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 338 drivers/hwmon/abx500.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 339 drivers/hwmon/abx500.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 341 drivers/hwmon/abx500.c &sensor_dev_attr_temp4_label.dev_attr.attr, attr 342 drivers/hwmon/abx500.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 343 drivers/hwmon/abx500.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 344 drivers/hwmon/abx500.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 345 drivers/hwmon/abx500.c &sensor_dev_attr_temp4_max_hyst.dev_attr.attr, attr 346 drivers/hwmon/abx500.c &sensor_dev_attr_temp4_min_alarm.dev_attr.attr, attr 347 drivers/hwmon/abx500.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 287 drivers/hwmon/acpi_power_meter.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 300 drivers/hwmon/acpi_power_meter.c resource->trip[attr->index - 7] = temp; attr 354 drivers/hwmon/acpi_power_meter.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 359 drivers/hwmon/acpi_power_meter.c switch (attr->index) { attr 371 drivers/hwmon/acpi_power_meter.c attr->index); attr 383 drivers/hwmon/acpi_power_meter.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 388 drivers/hwmon/acpi_power_meter.c switch (attr->index) { attr 421 drivers/hwmon/acpi_power_meter.c if (resource->trip[attr->index - 7] < 0) attr 424 drivers/hwmon/acpi_power_meter.c val = resource->trip[attr->index - 7] * 1000; attr 428 drivers/hwmon/acpi_power_meter.c attr->index); attr 627 drivers/hwmon/acpi_power_meter.c sensors->dev_attr.attr.name = attrs->label; attr 628 drivers/hwmon/acpi_power_meter.c sensors->dev_attr.attr.mode = 0444; attr 633 drivers/hwmon/acpi_power_meter.c sensors->dev_attr.attr.mode |= 0200; attr 637 drivers/hwmon/acpi_power_meter.c sysfs_attr_init(&sensors->dev_attr.attr); attr 640 drivers/hwmon/acpi_power_meter.c sensors->dev_attr.attr.name = NULL; attr 657 drivers/hwmon/acpi_power_meter.c if (!resource->sensors[i].dev_attr.attr.name) attr 56 drivers/hwmon/ad7314.c struct device_attribute *attr, attr 92 drivers/hwmon/ad7314.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 107 drivers/hwmon/ad7414.c struct device_attribute *attr, char *buf) attr 114 drivers/hwmon/ad7414.c static ssize_t max_min_show(struct device *dev, struct device_attribute *attr, attr 117 drivers/hwmon/ad7414.c int index = to_sensor_dev_attr(attr)->index; attr 123 drivers/hwmon/ad7414.c struct device_attribute *attr, const char *buf, attr 128 drivers/hwmon/ad7414.c int index = to_sensor_dev_attr(attr)->index; attr 149 drivers/hwmon/ad7414.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 152 drivers/hwmon/ad7414.c int bitnr = to_sensor_dev_attr(attr)->index; attr 162 drivers/hwmon/ad7414.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 163 drivers/hwmon/ad7414.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 164 drivers/hwmon/ad7414.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 165 drivers/hwmon/ad7414.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 166 drivers/hwmon/ad7414.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 129 drivers/hwmon/ad7418.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 138 drivers/hwmon/ad7418.c LM75_TEMP_FROM_REG(data->temp[attr->index])); attr 144 drivers/hwmon/ad7418.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 153 drivers/hwmon/ad7418.c ((data->in[attr->index] >> 6) * 2500 + 512) / 1024); attr 160 drivers/hwmon/ad7418.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 170 drivers/hwmon/ad7418.c data->temp[attr->index] = LM75_TEMP_TO_REG(temp); attr 172 drivers/hwmon/ad7418.c AD7418_REG_TEMP[attr->index], attr 173 drivers/hwmon/ad7418.c data->temp[attr->index]); attr 188 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 189 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 190 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 196 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 197 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 198 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 199 drivers/hwmon/ad7418.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 200 drivers/hwmon/ad7418.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 201 drivers/hwmon/ad7418.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 202 drivers/hwmon/ad7418.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 208 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 209 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 210 drivers/hwmon/ad7418.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 211 drivers/hwmon/ad7418.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 148 drivers/hwmon/adc128d818.c struct device_attribute *attr, char *buf) attr 151 drivers/hwmon/adc128d818.c int index = to_sensor_dev_attr_2(attr)->index; attr 152 drivers/hwmon/adc128d818.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 163 drivers/hwmon/adc128d818.c struct device_attribute *attr, const char *buf, attr 167 drivers/hwmon/adc128d818.c int index = to_sensor_dev_attr_2(attr)->index; attr 168 drivers/hwmon/adc128d818.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 189 drivers/hwmon/adc128d818.c struct device_attribute *attr, char *buf) attr 192 drivers/hwmon/adc128d818.c int index = to_sensor_dev_attr(attr)->index; attr 203 drivers/hwmon/adc128d818.c struct device_attribute *attr, attr 207 drivers/hwmon/adc128d818.c int index = to_sensor_dev_attr(attr)->index; attr 229 drivers/hwmon/adc128d818.c struct device_attribute *attr, char *buf) attr 232 drivers/hwmon/adc128d818.c int mask = 1 << to_sensor_dev_attr(attr)->index; attr 249 drivers/hwmon/adc128d818.c struct attribute *attr, int index) attr 264 drivers/hwmon/adc128d818.c return attr->mode; attr 314 drivers/hwmon/adc128d818.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 315 drivers/hwmon/adc128d818.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 316 drivers/hwmon/adc128d818.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 317 drivers/hwmon/adc128d818.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 318 drivers/hwmon/adc128d818.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 319 drivers/hwmon/adc128d818.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 320 drivers/hwmon/adc128d818.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 321 drivers/hwmon/adc128d818.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 322 drivers/hwmon/adc128d818.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 323 drivers/hwmon/adc128d818.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 324 drivers/hwmon/adc128d818.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 325 drivers/hwmon/adc128d818.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 326 drivers/hwmon/adc128d818.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 327 drivers/hwmon/adc128d818.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 328 drivers/hwmon/adc128d818.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 329 drivers/hwmon/adc128d818.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 330 drivers/hwmon/adc128d818.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 331 drivers/hwmon/adc128d818.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 332 drivers/hwmon/adc128d818.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 333 drivers/hwmon/adc128d818.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 334 drivers/hwmon/adc128d818.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 335 drivers/hwmon/adc128d818.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 336 drivers/hwmon/adc128d818.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 337 drivers/hwmon/adc128d818.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 338 drivers/hwmon/adc128d818.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 339 drivers/hwmon/adc128d818.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 340 drivers/hwmon/adc128d818.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 341 drivers/hwmon/adc128d818.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 342 drivers/hwmon/adc128d818.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 343 drivers/hwmon/adc128d818.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 344 drivers/hwmon/adc128d818.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 345 drivers/hwmon/adc128d818.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 346 drivers/hwmon/adc128d818.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 347 drivers/hwmon/adc128d818.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 348 drivers/hwmon/adc128d818.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 349 drivers/hwmon/adc128d818.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 51 drivers/hwmon/adcxx.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 64 drivers/hwmon/adcxx.c tx_buf[0] = attr->index << 3; /* other bits are don't care */ attr 173 drivers/hwmon/adm1021.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 176 drivers/hwmon/adm1021.c int index = to_sensor_dev_attr(attr)->index; attr 182 drivers/hwmon/adm1021.c struct device_attribute *attr, attr 293 drivers/hwmon/adm1021.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 294 drivers/hwmon/adm1021.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 295 drivers/hwmon/adm1021.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 296 drivers/hwmon/adm1021.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 297 drivers/hwmon/adm1021.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 298 drivers/hwmon/adm1021.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 299 drivers/hwmon/adm1021.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 300 drivers/hwmon/adm1021.c &dev_attr_alarms.attr, attr 301 drivers/hwmon/adm1021.c &dev_attr_low_power.attr, attr 310 drivers/hwmon/adm1021.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 311 drivers/hwmon/adm1021.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 312 drivers/hwmon/adm1021.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 313 drivers/hwmon/adm1021.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 164 drivers/hwmon/adm1025.c in_show(struct device *dev, struct device_attribute *attr, char *buf) attr 166 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 173 drivers/hwmon/adm1025.c in_min_show(struct device *dev, struct device_attribute *attr, char *buf) attr 175 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 182 drivers/hwmon/adm1025.c in_max_show(struct device *dev, struct device_attribute *attr, char *buf) attr 184 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 191 drivers/hwmon/adm1025.c temp_show(struct device *dev, struct device_attribute *attr, char *buf) attr 193 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 199 drivers/hwmon/adm1025.c temp_min_show(struct device *dev, struct device_attribute *attr, char *buf) attr 201 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 207 drivers/hwmon/adm1025.c temp_max_show(struct device *dev, struct device_attribute *attr, char *buf) attr 209 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 214 drivers/hwmon/adm1025.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 217 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 235 drivers/hwmon/adm1025.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 238 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 276 drivers/hwmon/adm1025.c struct device_attribute *attr, const char *buf, attr 279 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 298 drivers/hwmon/adm1025.c struct device_attribute *attr, const char *buf, attr 301 drivers/hwmon/adm1025.c int index = to_sensor_dev_attr(attr)->index; attr 327 drivers/hwmon/adm1025.c alarms_show(struct device *dev, struct device_attribute *attr, char *buf) attr 335 drivers/hwmon/adm1025.c alarm_show(struct device *dev, struct device_attribute *attr, char *buf) attr 337 drivers/hwmon/adm1025.c int bitnr = to_sensor_dev_attr(attr)->index; attr 352 drivers/hwmon/adm1025.c cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 360 drivers/hwmon/adm1025.c vrm_show(struct device *dev, struct device_attribute *attr, char *buf) attr 365 drivers/hwmon/adm1025.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 389 drivers/hwmon/adm1025.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 390 drivers/hwmon/adm1025.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 391 drivers/hwmon/adm1025.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 392 drivers/hwmon/adm1025.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 393 drivers/hwmon/adm1025.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 394 drivers/hwmon/adm1025.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 395 drivers/hwmon/adm1025.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 396 drivers/hwmon/adm1025.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 397 drivers/hwmon/adm1025.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 398 drivers/hwmon/adm1025.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 399 drivers/hwmon/adm1025.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 400 drivers/hwmon/adm1025.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 401 drivers/hwmon/adm1025.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 402 drivers/hwmon/adm1025.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 403 drivers/hwmon/adm1025.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 404 drivers/hwmon/adm1025.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 405 drivers/hwmon/adm1025.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 406 drivers/hwmon/adm1025.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 407 drivers/hwmon/adm1025.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 408 drivers/hwmon/adm1025.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 409 drivers/hwmon/adm1025.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 410 drivers/hwmon/adm1025.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 411 drivers/hwmon/adm1025.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 412 drivers/hwmon/adm1025.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 413 drivers/hwmon/adm1025.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 414 drivers/hwmon/adm1025.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 415 drivers/hwmon/adm1025.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 416 drivers/hwmon/adm1025.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 417 drivers/hwmon/adm1025.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 418 drivers/hwmon/adm1025.c &dev_attr_alarms.attr, attr 419 drivers/hwmon/adm1025.c &dev_attr_cpu0_vid.attr, attr 420 drivers/hwmon/adm1025.c &dev_attr_vrm.attr, attr 429 drivers/hwmon/adm1025.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 430 drivers/hwmon/adm1025.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 431 drivers/hwmon/adm1025.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 432 drivers/hwmon/adm1025.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 467 drivers/hwmon/adm1026.c static ssize_t in_show(struct device *dev, struct device_attribute *attr, attr 470 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 475 drivers/hwmon/adm1026.c static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, attr 478 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 483 drivers/hwmon/adm1026.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 486 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 503 drivers/hwmon/adm1026.c static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, attr 506 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 511 drivers/hwmon/adm1026.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 514 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 581 drivers/hwmon/adm1026.c static ssize_t in16_show(struct device *dev, struct device_attribute *attr, attr 589 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 596 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 618 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 625 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 653 drivers/hwmon/adm1026.c static ssize_t fan_show(struct device *dev, struct device_attribute *attr, attr 656 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 662 drivers/hwmon/adm1026.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 665 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 672 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 675 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 730 drivers/hwmon/adm1026.c static ssize_t fan_div_show(struct device *dev, struct device_attribute *attr, attr 733 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 739 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 742 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 791 drivers/hwmon/adm1026.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 794 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 800 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 802 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 808 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 811 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 830 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 832 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 838 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 841 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 871 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 873 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 879 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 882 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 906 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 909 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 916 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 919 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 926 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 929 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 935 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 938 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 971 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 977 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, size_t count) attr 1007 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 1009 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1015 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 1018 drivers/hwmon/adm1026.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1042 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 1048 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 1070 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 1081 drivers/hwmon/adm1026.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 1088 drivers/hwmon/adm1026.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 1108 drivers/hwmon/adm1026.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 1117 drivers/hwmon/adm1026.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 1121 drivers/hwmon/adm1026.c int bitnr = to_sensor_dev_attr(attr)->index; attr 1155 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 1161 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 1195 drivers/hwmon/adm1026.c static ssize_t gpio_show(struct device *dev, struct device_attribute *attr, attr 1201 drivers/hwmon/adm1026.c static ssize_t gpio_store(struct device *dev, struct device_attribute *attr, attr 1229 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 1236 drivers/hwmon/adm1026.c struct device_attribute *attr, const char *buf, attr 1263 drivers/hwmon/adm1026.c static ssize_t pwm1_show(struct device *dev, struct device_attribute *attr, attr 1270 drivers/hwmon/adm1026.c static ssize_t pwm1_store(struct device *dev, struct device_attribute *attr, attr 1293 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 1301 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 1325 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 1332 drivers/hwmon/adm1026.c struct device_attribute *attr, char *buf) attr 1339 drivers/hwmon/adm1026.c struct device_attribute *attr, attr 1397 drivers/hwmon/adm1026.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 1398 drivers/hwmon/adm1026.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 1399 drivers/hwmon/adm1026.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 1400 drivers/hwmon/adm1026.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 1401 drivers/hwmon/adm1026.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 1402 drivers/hwmon/adm1026.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 1403 drivers/hwmon/adm1026.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 1404 drivers/hwmon/adm1026.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 1405 drivers/hwmon/adm1026.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 1406 drivers/hwmon/adm1026.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 1407 drivers/hwmon/adm1026.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 1408 drivers/hwmon/adm1026.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 1409 drivers/hwmon/adm1026.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 1410 drivers/hwmon/adm1026.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 1411 drivers/hwmon/adm1026.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 1412 drivers/hwmon/adm1026.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 1413 drivers/hwmon/adm1026.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 1414 drivers/hwmon/adm1026.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 1415 drivers/hwmon/adm1026.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 1416 drivers/hwmon/adm1026.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 1417 drivers/hwmon/adm1026.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 1418 drivers/hwmon/adm1026.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 1419 drivers/hwmon/adm1026.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 1420 drivers/hwmon/adm1026.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 1421 drivers/hwmon/adm1026.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 1422 drivers/hwmon/adm1026.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 1423 drivers/hwmon/adm1026.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 1424 drivers/hwmon/adm1026.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 1425 drivers/hwmon/adm1026.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 1426 drivers/hwmon/adm1026.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 1427 drivers/hwmon/adm1026.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 1428 drivers/hwmon/adm1026.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 1429 drivers/hwmon/adm1026.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 1430 drivers/hwmon/adm1026.c &sensor_dev_attr_in10_max.dev_attr.attr, attr 1431 drivers/hwmon/adm1026.c &sensor_dev_attr_in10_min.dev_attr.attr, attr 1432 drivers/hwmon/adm1026.c &sensor_dev_attr_in10_alarm.dev_attr.attr, attr 1433 drivers/hwmon/adm1026.c &sensor_dev_attr_in11_input.dev_attr.attr, attr 1434 drivers/hwmon/adm1026.c &sensor_dev_attr_in11_max.dev_attr.attr, attr 1435 drivers/hwmon/adm1026.c &sensor_dev_attr_in11_min.dev_attr.attr, attr 1436 drivers/hwmon/adm1026.c &sensor_dev_attr_in11_alarm.dev_attr.attr, attr 1437 drivers/hwmon/adm1026.c &sensor_dev_attr_in12_input.dev_attr.attr, attr 1438 drivers/hwmon/adm1026.c &sensor_dev_attr_in12_max.dev_attr.attr, attr 1439 drivers/hwmon/adm1026.c &sensor_dev_attr_in12_min.dev_attr.attr, attr 1440 drivers/hwmon/adm1026.c &sensor_dev_attr_in12_alarm.dev_attr.attr, attr 1441 drivers/hwmon/adm1026.c &sensor_dev_attr_in13_input.dev_attr.attr, attr 1442 drivers/hwmon/adm1026.c &sensor_dev_attr_in13_max.dev_attr.attr, attr 1443 drivers/hwmon/adm1026.c &sensor_dev_attr_in13_min.dev_attr.attr, attr 1444 drivers/hwmon/adm1026.c &sensor_dev_attr_in13_alarm.dev_attr.attr, attr 1445 drivers/hwmon/adm1026.c &sensor_dev_attr_in14_input.dev_attr.attr, attr 1446 drivers/hwmon/adm1026.c &sensor_dev_attr_in14_max.dev_attr.attr, attr 1447 drivers/hwmon/adm1026.c &sensor_dev_attr_in14_min.dev_attr.attr, attr 1448 drivers/hwmon/adm1026.c &sensor_dev_attr_in14_alarm.dev_attr.attr, attr 1449 drivers/hwmon/adm1026.c &sensor_dev_attr_in15_input.dev_attr.attr, attr 1450 drivers/hwmon/adm1026.c &sensor_dev_attr_in15_max.dev_attr.attr, attr 1451 drivers/hwmon/adm1026.c &sensor_dev_attr_in15_min.dev_attr.attr, attr 1452 drivers/hwmon/adm1026.c &sensor_dev_attr_in15_alarm.dev_attr.attr, attr 1453 drivers/hwmon/adm1026.c &sensor_dev_attr_in16_input.dev_attr.attr, attr 1454 drivers/hwmon/adm1026.c &sensor_dev_attr_in16_max.dev_attr.attr, attr 1455 drivers/hwmon/adm1026.c &sensor_dev_attr_in16_min.dev_attr.attr, attr 1456 drivers/hwmon/adm1026.c &sensor_dev_attr_in16_alarm.dev_attr.attr, attr 1457 drivers/hwmon/adm1026.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1458 drivers/hwmon/adm1026.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 1459 drivers/hwmon/adm1026.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1460 drivers/hwmon/adm1026.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1461 drivers/hwmon/adm1026.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1462 drivers/hwmon/adm1026.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 1463 drivers/hwmon/adm1026.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1464 drivers/hwmon/adm1026.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1465 drivers/hwmon/adm1026.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1466 drivers/hwmon/adm1026.c &sensor_dev_attr_fan3_div.dev_attr.attr, attr 1467 drivers/hwmon/adm1026.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1468 drivers/hwmon/adm1026.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 1469 drivers/hwmon/adm1026.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 1470 drivers/hwmon/adm1026.c &sensor_dev_attr_fan4_div.dev_attr.attr, attr 1471 drivers/hwmon/adm1026.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 1472 drivers/hwmon/adm1026.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 1473 drivers/hwmon/adm1026.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 1474 drivers/hwmon/adm1026.c &sensor_dev_attr_fan5_div.dev_attr.attr, attr 1475 drivers/hwmon/adm1026.c &sensor_dev_attr_fan5_min.dev_attr.attr, attr 1476 drivers/hwmon/adm1026.c &sensor_dev_attr_fan5_alarm.dev_attr.attr, attr 1477 drivers/hwmon/adm1026.c &sensor_dev_attr_fan6_input.dev_attr.attr, attr 1478 drivers/hwmon/adm1026.c &sensor_dev_attr_fan6_div.dev_attr.attr, attr 1479 drivers/hwmon/adm1026.c &sensor_dev_attr_fan6_min.dev_attr.attr, attr 1480 drivers/hwmon/adm1026.c &sensor_dev_attr_fan6_alarm.dev_attr.attr, attr 1481 drivers/hwmon/adm1026.c &sensor_dev_attr_fan7_input.dev_attr.attr, attr 1482 drivers/hwmon/adm1026.c &sensor_dev_attr_fan7_div.dev_attr.attr, attr 1483 drivers/hwmon/adm1026.c &sensor_dev_attr_fan7_min.dev_attr.attr, attr 1484 drivers/hwmon/adm1026.c &sensor_dev_attr_fan7_alarm.dev_attr.attr, attr 1485 drivers/hwmon/adm1026.c &sensor_dev_attr_fan8_input.dev_attr.attr, attr 1486 drivers/hwmon/adm1026.c &sensor_dev_attr_fan8_div.dev_attr.attr, attr 1487 drivers/hwmon/adm1026.c &sensor_dev_attr_fan8_min.dev_attr.attr, attr 1488 drivers/hwmon/adm1026.c &sensor_dev_attr_fan8_alarm.dev_attr.attr, attr 1489 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1490 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1491 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 1492 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1493 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1494 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1495 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 1496 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1497 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_offset.dev_attr.attr, attr 1498 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 1499 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_auto_point1_temp.dev_attr.attr, attr 1500 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_auto_point1_temp.dev_attr.attr, attr 1501 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_auto_point1_temp_hyst.dev_attr.attr, attr 1502 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_auto_point1_temp_hyst.dev_attr.attr, attr 1503 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_auto_point2_temp.dev_attr.attr, attr 1504 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_auto_point2_temp.dev_attr.attr, attr 1505 drivers/hwmon/adm1026.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 1506 drivers/hwmon/adm1026.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 1507 drivers/hwmon/adm1026.c &dev_attr_temp1_crit_enable.attr, attr 1508 drivers/hwmon/adm1026.c &dev_attr_temp2_crit_enable.attr, attr 1509 drivers/hwmon/adm1026.c &dev_attr_cpu0_vid.attr, attr 1510 drivers/hwmon/adm1026.c &dev_attr_vrm.attr, attr 1511 drivers/hwmon/adm1026.c &dev_attr_alarms.attr, attr 1512 drivers/hwmon/adm1026.c &dev_attr_alarm_mask.attr, attr 1513 drivers/hwmon/adm1026.c &dev_attr_gpio.attr, attr 1514 drivers/hwmon/adm1026.c &dev_attr_gpio_mask.attr, attr 1515 drivers/hwmon/adm1026.c &dev_attr_pwm1.attr, attr 1516 drivers/hwmon/adm1026.c &dev_attr_pwm2.attr, attr 1517 drivers/hwmon/adm1026.c &dev_attr_pwm3.attr, attr 1518 drivers/hwmon/adm1026.c &dev_attr_pwm1_enable.attr, attr 1519 drivers/hwmon/adm1026.c &dev_attr_pwm2_enable.attr, attr 1520 drivers/hwmon/adm1026.c &dev_attr_pwm3_enable.attr, attr 1521 drivers/hwmon/adm1026.c &dev_attr_temp1_auto_point1_pwm.attr, attr 1522 drivers/hwmon/adm1026.c &dev_attr_temp2_auto_point1_pwm.attr, attr 1523 drivers/hwmon/adm1026.c &dev_attr_temp1_auto_point2_pwm.attr, attr 1524 drivers/hwmon/adm1026.c &dev_attr_temp2_auto_point2_pwm.attr, attr 1525 drivers/hwmon/adm1026.c &dev_attr_analog_out.attr, attr 1534 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1535 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1536 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 1537 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1538 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_offset.dev_attr.attr, attr 1539 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_auto_point1_temp.dev_attr.attr, attr 1540 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_auto_point1_temp_hyst.dev_attr.attr, attr 1541 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_auto_point2_temp.dev_attr.attr, attr 1542 drivers/hwmon/adm1026.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 1543 drivers/hwmon/adm1026.c &dev_attr_temp3_crit_enable.attr, attr 1544 drivers/hwmon/adm1026.c &dev_attr_temp3_auto_point1_pwm.attr, attr 1545 drivers/hwmon/adm1026.c &dev_attr_temp3_auto_point2_pwm.attr, attr 1554 drivers/hwmon/adm1026.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 1555 drivers/hwmon/adm1026.c &sensor_dev_attr_in8_max.dev_attr.attr, attr 1556 drivers/hwmon/adm1026.c &sensor_dev_attr_in8_min.dev_attr.attr, attr 1557 drivers/hwmon/adm1026.c &sensor_dev_attr_in8_alarm.dev_attr.attr, attr 1558 drivers/hwmon/adm1026.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 1559 drivers/hwmon/adm1026.c &sensor_dev_attr_in9_max.dev_attr.attr, attr 1560 drivers/hwmon/adm1026.c &sensor_dev_attr_in9_min.dev_attr.attr, attr 1561 drivers/hwmon/adm1026.c &sensor_dev_attr_in9_alarm.dev_attr.attr, attr 161 drivers/hwmon/adm1029.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 164 drivers/hwmon/adm1029.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); attr 170 drivers/hwmon/adm1029.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 174 drivers/hwmon/adm1029.c if (data->fan[attr->index] == 0 || attr 175 drivers/hwmon/adm1029.c (data->fan_div[attr->index] & 0xC0) == 0 || attr 176 drivers/hwmon/adm1029.c data->fan[attr->index] == 255) { attr 180 drivers/hwmon/adm1029.c val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index]) attr 181 drivers/hwmon/adm1029.c / data->fan[attr->index]; attr 188 drivers/hwmon/adm1029.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 191 drivers/hwmon/adm1029.c if ((data->fan_div[attr->index] & 0xC0) == 0) attr 193 drivers/hwmon/adm1029.c return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); attr 202 drivers/hwmon/adm1029.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 214 drivers/hwmon/adm1029.c ADM1029_REG_FAN_DIV[attr->index]); attr 237 drivers/hwmon/adm1029.c data->fan_div[attr->index] = reg; attr 241 drivers/hwmon/adm1029.c ADM1029_REG_FAN_DIV[attr->index], reg); attr 270 drivers/hwmon/adm1029.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 271 drivers/hwmon/adm1029.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 272 drivers/hwmon/adm1029.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 273 drivers/hwmon/adm1029.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 274 drivers/hwmon/adm1029.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 275 drivers/hwmon/adm1029.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 276 drivers/hwmon/adm1029.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 277 drivers/hwmon/adm1029.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 278 drivers/hwmon/adm1029.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 279 drivers/hwmon/adm1029.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 280 drivers/hwmon/adm1029.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 281 drivers/hwmon/adm1029.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 282 drivers/hwmon/adm1029.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 283 drivers/hwmon/adm1029.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 284 drivers/hwmon/adm1029.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 322 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 324 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 330 drivers/hwmon/adm1031.c fan_auto_channel_store(struct device *dev, struct device_attribute *attr, attr 335 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 387 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 389 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 395 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 397 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 403 drivers/hwmon/adm1031.c auto_temp_min_store(struct device *dev, struct device_attribute *attr, attr 408 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 425 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 427 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 433 drivers/hwmon/adm1031.c auto_temp_max_store(struct device *dev, struct device_attribute *attr, attr 438 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 467 drivers/hwmon/adm1031.c static ssize_t pwm_show(struct device *dev, struct device_attribute *attr, attr 470 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 474 drivers/hwmon/adm1031.c static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, attr 479 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 556 drivers/hwmon/adm1031.c static ssize_t fan_show(struct device *dev, struct device_attribute *attr, attr 559 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 568 drivers/hwmon/adm1031.c static ssize_t fan_div_show(struct device *dev, struct device_attribute *attr, attr 571 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 575 drivers/hwmon/adm1031.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 578 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 585 drivers/hwmon/adm1031.c struct device_attribute *attr, const char *buf, attr 590 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 610 drivers/hwmon/adm1031.c struct device_attribute *attr, const char *buf, attr 615 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 666 drivers/hwmon/adm1031.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 669 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 678 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 680 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 686 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 688 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 693 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 695 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 700 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 702 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 707 drivers/hwmon/adm1031.c struct device_attribute *attr, attr 712 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 729 drivers/hwmon/adm1031.c struct device_attribute *attr, const char *buf, attr 734 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 751 drivers/hwmon/adm1031.c struct device_attribute *attr, const char *buf, attr 756 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 773 drivers/hwmon/adm1031.c struct device_attribute *attr, const char *buf, attr 778 drivers/hwmon/adm1031.c int nr = to_sensor_dev_attr(attr)->index; attr 812 drivers/hwmon/adm1031.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 821 drivers/hwmon/adm1031.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 824 drivers/hwmon/adm1031.c int bitnr = to_sensor_dev_attr(attr)->index; attr 851 drivers/hwmon/adm1031.c struct device_attribute *attr, char *buf) attr 859 drivers/hwmon/adm1031.c struct device_attribute *attr, attr 898 drivers/hwmon/adm1031.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 899 drivers/hwmon/adm1031.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 900 drivers/hwmon/adm1031.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 901 drivers/hwmon/adm1031.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 902 drivers/hwmon/adm1031.c &sensor_dev_attr_fan1_fault.dev_attr.attr, attr 903 drivers/hwmon/adm1031.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 904 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_fan1_channel.dev_attr.attr, attr 905 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 906 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_offset.dev_attr.attr, attr 907 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 908 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 909 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 910 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 911 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 912 drivers/hwmon/adm1031.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 913 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 914 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 915 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 916 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 917 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 918 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 919 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 920 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 921 drivers/hwmon/adm1031.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 923 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp1_off.dev_attr.attr, attr 924 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp1_min.dev_attr.attr, attr 925 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp1_max.dev_attr.attr, attr 927 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp2_off.dev_attr.attr, attr 928 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp2_min.dev_attr.attr, attr 929 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp2_max.dev_attr.attr, attr 931 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_fan1_min_pwm.dev_attr.attr, attr 933 drivers/hwmon/adm1031.c &dev_attr_update_interval.attr, attr 934 drivers/hwmon/adm1031.c &dev_attr_alarms.attr, attr 944 drivers/hwmon/adm1031.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 945 drivers/hwmon/adm1031.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 946 drivers/hwmon/adm1031.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 947 drivers/hwmon/adm1031.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 948 drivers/hwmon/adm1031.c &sensor_dev_attr_fan2_fault.dev_attr.attr, attr 949 drivers/hwmon/adm1031.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 950 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_fan2_channel.dev_attr.attr, attr 951 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 952 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_offset.dev_attr.attr, attr 953 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 954 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 955 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 956 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 957 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 958 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 959 drivers/hwmon/adm1031.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 960 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp3_off.dev_attr.attr, attr 961 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp3_min.dev_attr.attr, attr 962 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_temp3_max.dev_attr.attr, attr 963 drivers/hwmon/adm1031.c &sensor_dev_attr_auto_fan2_min_pwm.dev_attr.attr, attr 262 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 264 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", data->temp_max[attr->index] * 1000); attr 270 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 281 drivers/hwmon/adm9240.c data->temp_max[attr->index] = TEMP_TO_REG(val); attr 282 drivers/hwmon/adm9240.c i2c_smbus_write_byte_data(client, ADM9240_REG_TEMP_MAX(attr->index), attr 283 drivers/hwmon/adm9240.c data->temp_max[attr->index]); attr 296 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 298 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index], attr 299 drivers/hwmon/adm9240.c attr->index)); attr 305 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 307 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index], attr 308 drivers/hwmon/adm9240.c attr->index)); attr 314 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 316 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index], attr 317 drivers/hwmon/adm9240.c attr->index)); attr 324 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 335 drivers/hwmon/adm9240.c data->in_min[attr->index] = IN_TO_REG(val, attr->index); attr 336 drivers/hwmon/adm9240.c i2c_smbus_write_byte_data(client, ADM9240_REG_IN_MIN(attr->index), attr 337 drivers/hwmon/adm9240.c data->in_min[attr->index]); attr 346 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 357 drivers/hwmon/adm9240.c data->in_max[attr->index] = IN_TO_REG(val, attr->index); attr 358 drivers/hwmon/adm9240.c i2c_smbus_write_byte_data(client, ADM9240_REG_IN_MAX(attr->index), attr 359 drivers/hwmon/adm9240.c data->in_max[attr->index]); attr 387 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 389 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], attr 390 drivers/hwmon/adm9240.c 1 << data->fan_div[attr->index])); attr 396 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 398 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[attr->index], attr 399 drivers/hwmon/adm9240.c 1 << data->fan_div[attr->index])); attr 405 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 407 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", 1 << data->fan_div[attr->index]); attr 425 drivers/hwmon/adm9240.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 428 drivers/hwmon/adm9240.c int nr = attr->index; attr 490 drivers/hwmon/adm9240.c struct device_attribute *attr, char *buf) attr 497 drivers/hwmon/adm9240.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 500 drivers/hwmon/adm9240.c int bitnr = to_sensor_dev_attr(attr)->index; attr 516 drivers/hwmon/adm9240.c struct device_attribute *attr, char *buf) attr 525 drivers/hwmon/adm9240.c struct device_attribute *attr, char *buf) attr 532 drivers/hwmon/adm9240.c struct device_attribute *attr, attr 552 drivers/hwmon/adm9240.c static ssize_t alarm_store(struct device *dev, struct device_attribute *attr, attr 573 drivers/hwmon/adm9240.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 574 drivers/hwmon/adm9240.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 575 drivers/hwmon/adm9240.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 576 drivers/hwmon/adm9240.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 577 drivers/hwmon/adm9240.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 578 drivers/hwmon/adm9240.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 579 drivers/hwmon/adm9240.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 580 drivers/hwmon/adm9240.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 581 drivers/hwmon/adm9240.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 582 drivers/hwmon/adm9240.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 583 drivers/hwmon/adm9240.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 584 drivers/hwmon/adm9240.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 585 drivers/hwmon/adm9240.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 586 drivers/hwmon/adm9240.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 587 drivers/hwmon/adm9240.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 588 drivers/hwmon/adm9240.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 589 drivers/hwmon/adm9240.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 590 drivers/hwmon/adm9240.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 591 drivers/hwmon/adm9240.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 592 drivers/hwmon/adm9240.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 593 drivers/hwmon/adm9240.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 594 drivers/hwmon/adm9240.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 595 drivers/hwmon/adm9240.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 596 drivers/hwmon/adm9240.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 597 drivers/hwmon/adm9240.c &dev_attr_temp1_input.attr, attr 598 drivers/hwmon/adm9240.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 599 drivers/hwmon/adm9240.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 600 drivers/hwmon/adm9240.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 601 drivers/hwmon/adm9240.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 602 drivers/hwmon/adm9240.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 603 drivers/hwmon/adm9240.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 604 drivers/hwmon/adm9240.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 605 drivers/hwmon/adm9240.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 606 drivers/hwmon/adm9240.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 607 drivers/hwmon/adm9240.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 608 drivers/hwmon/adm9240.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 609 drivers/hwmon/adm9240.c &dev_attr_alarms.attr, attr 610 drivers/hwmon/adm9240.c &dev_attr_aout_output.attr, attr 611 drivers/hwmon/adm9240.c &sensor_dev_attr_intrusion0_alarm.dev_attr.attr, attr 612 drivers/hwmon/adm9240.c &dev_attr_cpu0_vid.attr, attr 55 drivers/hwmon/ads7828.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 57 drivers/hwmon/ads7828.c u8 cmd = ads7828_cmd_byte(data->cmd_byte, attr->index); attr 79 drivers/hwmon/ads7828.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 80 drivers/hwmon/ads7828.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 81 drivers/hwmon/ads7828.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 82 drivers/hwmon/ads7828.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 83 drivers/hwmon/ads7828.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 84 drivers/hwmon/ads7828.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 85 drivers/hwmon/ads7828.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 86 drivers/hwmon/ads7828.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 96 drivers/hwmon/ads7871.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 100 drivers/hwmon/ads7871.c channel = attr->index; attr 143 drivers/hwmon/ads7871.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 144 drivers/hwmon/ads7871.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 145 drivers/hwmon/ads7871.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 146 drivers/hwmon/ads7871.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 147 drivers/hwmon/ads7871.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 148 drivers/hwmon/ads7871.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 149 drivers/hwmon/ads7871.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 150 drivers/hwmon/ads7871.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 165 drivers/hwmon/adt7411.c struct device_attribute *attr, char *buf) attr 167 drivers/hwmon/adt7411.c struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); attr 176 drivers/hwmon/adt7411.c struct device_attribute *attr, const char *buf, attr 179 drivers/hwmon/adt7411.c struct sensor_device_attribute_2 *s_attr2 = to_sensor_dev_attr_2(attr); attr 208 drivers/hwmon/adt7411.c &sensor_dev_attr_no_average.dev_attr.attr, attr 209 drivers/hwmon/adt7411.c &sensor_dev_attr_fast_sampling.dev_attr.attr, attr 210 drivers/hwmon/adt7411.c &sensor_dev_attr_adc_ref_vdd.dev_attr.attr, attr 228 drivers/hwmon/adt7411.c static int adt7411_read_in_vdd(struct device *dev, u32 attr, long *val) attr 234 drivers/hwmon/adt7411.c switch (attr) { attr 287 drivers/hwmon/adt7411.c static int adt7411_read_in_chan(struct device *dev, u32 attr, int channel, attr 302 drivers/hwmon/adt7411.c switch (attr) { attr 316 drivers/hwmon/adt7411.c reg = (attr == hwmon_in_min) attr 337 drivers/hwmon/adt7411.c static int adt7411_read_in(struct device *dev, u32 attr, int channel, attr 341 drivers/hwmon/adt7411.c return adt7411_read_in_vdd(dev, attr, val); attr 343 drivers/hwmon/adt7411.c return adt7411_read_in_chan(dev, attr, channel, val); attr 347 drivers/hwmon/adt7411.c static int adt7411_read_temp_alarm(struct device *dev, u32 attr, int channel, attr 358 drivers/hwmon/adt7411.c switch (attr) { attr 378 drivers/hwmon/adt7411.c static int adt7411_read_temp(struct device *dev, u32 attr, int channel, attr 385 drivers/hwmon/adt7411.c switch (attr) { attr 399 drivers/hwmon/adt7411.c reg = (attr == hwmon_temp_min) attr 411 drivers/hwmon/adt7411.c return adt7411_read_temp_alarm(dev, attr, channel, val); attr 418 drivers/hwmon/adt7411.c u32 attr, int channel, long *val) attr 422 drivers/hwmon/adt7411.c return adt7411_read_in(dev, attr, channel, val); attr 424 drivers/hwmon/adt7411.c return adt7411_read_temp(dev, attr, channel, val); attr 430 drivers/hwmon/adt7411.c static int adt7411_write_in_vdd(struct device *dev, u32 attr, long val) attr 439 drivers/hwmon/adt7411.c switch (attr) { attr 453 drivers/hwmon/adt7411.c static int adt7411_write_in_chan(struct device *dev, u32 attr, int channel, attr 467 drivers/hwmon/adt7411.c switch (attr) { attr 485 drivers/hwmon/adt7411.c static int adt7411_write_in(struct device *dev, u32 attr, int channel, attr 489 drivers/hwmon/adt7411.c return adt7411_write_in_vdd(dev, attr, val); attr 491 drivers/hwmon/adt7411.c return adt7411_write_in_chan(dev, attr, channel, val); attr 494 drivers/hwmon/adt7411.c static int adt7411_write_temp(struct device *dev, u32 attr, int channel, attr 504 drivers/hwmon/adt7411.c switch (attr) { attr 519 drivers/hwmon/adt7411.c u32 attr, int channel, long val) attr 523 drivers/hwmon/adt7411.c return adt7411_write_in(dev, attr, channel, val); attr 525 drivers/hwmon/adt7411.c return adt7411_write_temp(dev, attr, channel, val); attr 533 drivers/hwmon/adt7411.c u32 attr, int channel) attr 541 drivers/hwmon/adt7411.c switch (attr) { attr 552 drivers/hwmon/adt7411.c switch (attr) { attr 781 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 784 drivers/hwmon/adt7462.c if (!temp_enabled(data, attr->index)) attr 787 drivers/hwmon/adt7462.c return sprintf(buf, "%d\n", 1000 * (data->temp_min[attr->index] - 64)); attr 794 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 799 drivers/hwmon/adt7462.c if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) attr 806 drivers/hwmon/adt7462.c data->temp_min[attr->index] = temp; attr 807 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_TEMP_MIN_REG(attr->index), attr 817 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 820 drivers/hwmon/adt7462.c if (!temp_enabled(data, attr->index)) attr 823 drivers/hwmon/adt7462.c return sprintf(buf, "%d\n", 1000 * (data->temp_max[attr->index] - 64)); attr 830 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 835 drivers/hwmon/adt7462.c if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) attr 842 drivers/hwmon/adt7462.c data->temp_max[attr->index] = temp; attr 843 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_TEMP_MAX_REG(attr->index), attr 853 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 855 drivers/hwmon/adt7462.c u8 frac = data->temp_frac[attr->index] >> TEMP_FRAC_OFFSET; attr 857 drivers/hwmon/adt7462.c if (!temp_enabled(data, attr->index)) attr 860 drivers/hwmon/adt7462.c return sprintf(buf, "%d\n", 1000 * (data->temp[attr->index] - 64) + attr 867 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 870 drivers/hwmon/adt7462.c return sprintf(buf, "%s\n", temp_label(data, attr->index)); attr 876 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 878 drivers/hwmon/adt7462.c int x = voltage_multiplier(data, attr->index); attr 880 drivers/hwmon/adt7462.c x *= data->volt_max[attr->index]; attr 890 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 893 drivers/hwmon/adt7462.c int x = voltage_multiplier(data, attr->index); attr 904 drivers/hwmon/adt7462.c data->volt_max[attr->index] = temp; attr 906 drivers/hwmon/adt7462.c ADT7462_REG_VOLT_MAX(data, attr->index), attr 916 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 918 drivers/hwmon/adt7462.c int x = voltage_multiplier(data, attr->index); attr 920 drivers/hwmon/adt7462.c x *= data->volt_min[attr->index]; attr 930 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 933 drivers/hwmon/adt7462.c int x = voltage_multiplier(data, attr->index); attr 944 drivers/hwmon/adt7462.c data->volt_min[attr->index] = temp; attr 946 drivers/hwmon/adt7462.c ADT7462_REG_VOLT_MIN(data, attr->index), attr 956 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 958 drivers/hwmon/adt7462.c int x = voltage_multiplier(data, attr->index); attr 960 drivers/hwmon/adt7462.c x *= data->voltages[attr->index]; attr 969 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 972 drivers/hwmon/adt7462.c return sprintf(buf, "%s\n", voltage_label(data, attr->index)); attr 978 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 980 drivers/hwmon/adt7462.c int reg = attr->index >> ADT7462_ALARM_REG_SHIFT; attr 981 drivers/hwmon/adt7462.c int mask = attr->index & ADT7462_ALARM_FLAG_MASK; attr 997 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1002 drivers/hwmon/adt7462.c temp = data->fan_min[attr->index]; attr 1005 drivers/hwmon/adt7462.c if (!fan_enabled(data, attr->index) || attr 1016 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1022 drivers/hwmon/adt7462.c !fan_enabled(data, attr->index)) attr 1030 drivers/hwmon/adt7462.c data->fan_min[attr->index] = temp; attr 1031 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_REG_FAN_MIN(attr->index), attr 1041 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1044 drivers/hwmon/adt7462.c if (!fan_enabled(data, attr->index) || attr 1045 drivers/hwmon/adt7462.c !FAN_DATA_VALID(data->fan[attr->index])) attr 1049 drivers/hwmon/adt7462.c FAN_PERIOD_TO_RPM(data->fan[attr->index])); attr 1087 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1089 drivers/hwmon/adt7462.c return sprintf(buf, "%d\n", data->pwm[attr->index]); attr 1095 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1106 drivers/hwmon/adt7462.c data->pwm[attr->index] = temp; attr 1107 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_REG_PWM(attr->index), temp); attr 1144 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1146 drivers/hwmon/adt7462.c return sprintf(buf, "%d\n", data->pwm_min[attr->index]); attr 1153 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1164 drivers/hwmon/adt7462.c data->pwm_min[attr->index] = temp; attr 1165 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_REG_PWM_MIN(attr->index), attr 1175 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1178 drivers/hwmon/adt7462.c (data->pwm_trange[attr->index] & ADT7462_PWM_HYST_MASK)); attr 1185 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1198 drivers/hwmon/adt7462.c temp |= data->pwm_trange[attr->index] & ADT7462_PWM_RANGE_MASK; attr 1201 drivers/hwmon/adt7462.c data->pwm_trange[attr->index] = temp; attr 1202 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_REG_PWM_TRANGE(attr->index), attr 1212 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1216 drivers/hwmon/adt7462.c int trange = trange_values[data->pwm_trange[attr->index] >> attr 1218 drivers/hwmon/adt7462.c int tmin = (data->pwm_tmin[attr->index] - 64) * 1000; attr 1228 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1238 drivers/hwmon/adt7462.c tmin = (data->pwm_tmin[attr->index] - 64) * 1000; attr 1244 drivers/hwmon/adt7462.c temp |= data->pwm_trange[attr->index] & ADT7462_PWM_HYST_MASK; attr 1247 drivers/hwmon/adt7462.c data->pwm_trange[attr->index] = temp; attr 1248 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_REG_PWM_TRANGE(attr->index), attr 1258 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1260 drivers/hwmon/adt7462.c return sprintf(buf, "%d\n", 1000 * (data->pwm_tmin[attr->index] - 64)); attr 1267 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1279 drivers/hwmon/adt7462.c data->pwm_tmin[attr->index] = temp; attr 1280 drivers/hwmon/adt7462.c i2c_smbus_write_byte_data(client, ADT7462_REG_PWM_TMIN(attr->index), attr 1290 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1292 drivers/hwmon/adt7462.c int cfg = data->pwm_cfg[attr->index] >> ADT7462_PWM_CHANNEL_SHIFT; attr 1322 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1332 drivers/hwmon/adt7462.c set_pwm_channel(client, data, attr->index, 4); attr 1335 drivers/hwmon/adt7462.c set_pwm_channel(client, data, attr->index, 7); attr 1345 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1347 drivers/hwmon/adt7462.c int channel = data->pwm_cfg[attr->index] >> ADT7462_PWM_CHANNEL_SHIFT; attr 1379 drivers/hwmon/adt7462.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 1391 drivers/hwmon/adt7462.c set_pwm_channel(client, data, attr->index, temp); attr 1591 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1592 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1593 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1594 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 1596 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 1597 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 1598 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 1599 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 1601 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1602 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1603 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1604 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 1606 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 1607 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_label.dev_attr.attr, attr 1608 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_label.dev_attr.attr, attr 1609 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_label.dev_attr.attr, attr 1611 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1612 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1613 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1614 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_alarm.dev_attr.attr, attr 1616 drivers/hwmon/adt7462.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 1617 drivers/hwmon/adt7462.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 1618 drivers/hwmon/adt7462.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 1619 drivers/hwmon/adt7462.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 1620 drivers/hwmon/adt7462.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 1621 drivers/hwmon/adt7462.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 1622 drivers/hwmon/adt7462.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 1623 drivers/hwmon/adt7462.c &sensor_dev_attr_in8_max.dev_attr.attr, attr 1624 drivers/hwmon/adt7462.c &sensor_dev_attr_in9_max.dev_attr.attr, attr 1625 drivers/hwmon/adt7462.c &sensor_dev_attr_in10_max.dev_attr.attr, attr 1626 drivers/hwmon/adt7462.c &sensor_dev_attr_in11_max.dev_attr.attr, attr 1627 drivers/hwmon/adt7462.c &sensor_dev_attr_in12_max.dev_attr.attr, attr 1628 drivers/hwmon/adt7462.c &sensor_dev_attr_in13_max.dev_attr.attr, attr 1630 drivers/hwmon/adt7462.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 1631 drivers/hwmon/adt7462.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 1632 drivers/hwmon/adt7462.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 1633 drivers/hwmon/adt7462.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 1634 drivers/hwmon/adt7462.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 1635 drivers/hwmon/adt7462.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 1636 drivers/hwmon/adt7462.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 1637 drivers/hwmon/adt7462.c &sensor_dev_attr_in8_min.dev_attr.attr, attr 1638 drivers/hwmon/adt7462.c &sensor_dev_attr_in9_min.dev_attr.attr, attr 1639 drivers/hwmon/adt7462.c &sensor_dev_attr_in10_min.dev_attr.attr, attr 1640 drivers/hwmon/adt7462.c &sensor_dev_attr_in11_min.dev_attr.attr, attr 1641 drivers/hwmon/adt7462.c &sensor_dev_attr_in12_min.dev_attr.attr, attr 1642 drivers/hwmon/adt7462.c &sensor_dev_attr_in13_min.dev_attr.attr, attr 1644 drivers/hwmon/adt7462.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 1645 drivers/hwmon/adt7462.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 1646 drivers/hwmon/adt7462.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 1647 drivers/hwmon/adt7462.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 1648 drivers/hwmon/adt7462.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 1649 drivers/hwmon/adt7462.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 1650 drivers/hwmon/adt7462.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 1651 drivers/hwmon/adt7462.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 1652 drivers/hwmon/adt7462.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 1653 drivers/hwmon/adt7462.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 1654 drivers/hwmon/adt7462.c &sensor_dev_attr_in11_input.dev_attr.attr, attr 1655 drivers/hwmon/adt7462.c &sensor_dev_attr_in12_input.dev_attr.attr, attr 1656 drivers/hwmon/adt7462.c &sensor_dev_attr_in13_input.dev_attr.attr, attr 1658 drivers/hwmon/adt7462.c &sensor_dev_attr_in1_label.dev_attr.attr, attr 1659 drivers/hwmon/adt7462.c &sensor_dev_attr_in2_label.dev_attr.attr, attr 1660 drivers/hwmon/adt7462.c &sensor_dev_attr_in3_label.dev_attr.attr, attr 1661 drivers/hwmon/adt7462.c &sensor_dev_attr_in4_label.dev_attr.attr, attr 1662 drivers/hwmon/adt7462.c &sensor_dev_attr_in5_label.dev_attr.attr, attr 1663 drivers/hwmon/adt7462.c &sensor_dev_attr_in6_label.dev_attr.attr, attr 1664 drivers/hwmon/adt7462.c &sensor_dev_attr_in7_label.dev_attr.attr, attr 1665 drivers/hwmon/adt7462.c &sensor_dev_attr_in8_label.dev_attr.attr, attr 1666 drivers/hwmon/adt7462.c &sensor_dev_attr_in9_label.dev_attr.attr, attr 1667 drivers/hwmon/adt7462.c &sensor_dev_attr_in10_label.dev_attr.attr, attr 1668 drivers/hwmon/adt7462.c &sensor_dev_attr_in11_label.dev_attr.attr, attr 1669 drivers/hwmon/adt7462.c &sensor_dev_attr_in12_label.dev_attr.attr, attr 1670 drivers/hwmon/adt7462.c &sensor_dev_attr_in13_label.dev_attr.attr, attr 1672 drivers/hwmon/adt7462.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 1673 drivers/hwmon/adt7462.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 1674 drivers/hwmon/adt7462.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 1675 drivers/hwmon/adt7462.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 1676 drivers/hwmon/adt7462.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 1677 drivers/hwmon/adt7462.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 1678 drivers/hwmon/adt7462.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 1679 drivers/hwmon/adt7462.c &sensor_dev_attr_in8_alarm.dev_attr.attr, attr 1680 drivers/hwmon/adt7462.c &sensor_dev_attr_in9_alarm.dev_attr.attr, attr 1681 drivers/hwmon/adt7462.c &sensor_dev_attr_in10_alarm.dev_attr.attr, attr 1682 drivers/hwmon/adt7462.c &sensor_dev_attr_in11_alarm.dev_attr.attr, attr 1683 drivers/hwmon/adt7462.c &sensor_dev_attr_in12_alarm.dev_attr.attr, attr 1684 drivers/hwmon/adt7462.c &sensor_dev_attr_in13_alarm.dev_attr.attr, attr 1686 drivers/hwmon/adt7462.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1687 drivers/hwmon/adt7462.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1688 drivers/hwmon/adt7462.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1689 drivers/hwmon/adt7462.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 1690 drivers/hwmon/adt7462.c &sensor_dev_attr_fan5_min.dev_attr.attr, attr 1691 drivers/hwmon/adt7462.c &sensor_dev_attr_fan6_min.dev_attr.attr, attr 1692 drivers/hwmon/adt7462.c &sensor_dev_attr_fan7_min.dev_attr.attr, attr 1693 drivers/hwmon/adt7462.c &sensor_dev_attr_fan8_min.dev_attr.attr, attr 1695 drivers/hwmon/adt7462.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1696 drivers/hwmon/adt7462.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1697 drivers/hwmon/adt7462.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1698 drivers/hwmon/adt7462.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 1699 drivers/hwmon/adt7462.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 1700 drivers/hwmon/adt7462.c &sensor_dev_attr_fan6_input.dev_attr.attr, attr 1701 drivers/hwmon/adt7462.c &sensor_dev_attr_fan7_input.dev_attr.attr, attr 1702 drivers/hwmon/adt7462.c &sensor_dev_attr_fan8_input.dev_attr.attr, attr 1704 drivers/hwmon/adt7462.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1705 drivers/hwmon/adt7462.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1706 drivers/hwmon/adt7462.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 1707 drivers/hwmon/adt7462.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 1708 drivers/hwmon/adt7462.c &sensor_dev_attr_fan5_alarm.dev_attr.attr, attr 1709 drivers/hwmon/adt7462.c &sensor_dev_attr_fan6_alarm.dev_attr.attr, attr 1710 drivers/hwmon/adt7462.c &sensor_dev_attr_fan7_alarm.dev_attr.attr, attr 1711 drivers/hwmon/adt7462.c &sensor_dev_attr_fan8_alarm.dev_attr.attr, attr 1713 drivers/hwmon/adt7462.c &sensor_dev_attr_force_pwm_max.dev_attr.attr, attr 1714 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1715 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1716 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1717 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm4.dev_attr.attr, attr 1719 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 1720 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr, attr 1721 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr, attr 1722 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm4_auto_point1_pwm.dev_attr.attr, attr 1724 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 1725 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr, attr 1726 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr, attr 1727 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm4_auto_point2_pwm.dev_attr.attr, attr 1729 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_auto_point1_hyst.dev_attr.attr, attr 1730 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_auto_point1_hyst.dev_attr.attr, attr 1731 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_auto_point1_hyst.dev_attr.attr, attr 1732 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_auto_point1_hyst.dev_attr.attr, attr 1734 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_auto_point2_hyst.dev_attr.attr, attr 1735 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_auto_point2_hyst.dev_attr.attr, attr 1736 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_auto_point2_hyst.dev_attr.attr, attr 1737 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_auto_point2_hyst.dev_attr.attr, attr 1739 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_auto_point1_temp.dev_attr.attr, attr 1740 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_auto_point1_temp.dev_attr.attr, attr 1741 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_auto_point1_temp.dev_attr.attr, attr 1742 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_auto_point1_temp.dev_attr.attr, attr 1744 drivers/hwmon/adt7462.c &sensor_dev_attr_temp1_auto_point2_temp.dev_attr.attr, attr 1745 drivers/hwmon/adt7462.c &sensor_dev_attr_temp2_auto_point2_temp.dev_attr.attr, attr 1746 drivers/hwmon/adt7462.c &sensor_dev_attr_temp3_auto_point2_temp.dev_attr.attr, attr 1747 drivers/hwmon/adt7462.c &sensor_dev_attr_temp4_auto_point2_temp.dev_attr.attr, attr 1749 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1750 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1751 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1752 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm4_enable.dev_attr.attr, attr 1754 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm1_auto_channels_temp.dev_attr.attr, attr 1755 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm2_auto_channels_temp.dev_attr.attr, attr 1756 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm3_auto_channels_temp.dev_attr.attr, attr 1757 drivers/hwmon/adt7462.c &sensor_dev_attr_pwm4_auto_channels_temp.dev_attr.attr, attr 452 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 454 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", 1000 * data->temp_min[attr->index]); attr 461 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 473 drivers/hwmon/adt7470.c data->temp_min[attr->index] = temp; attr 474 drivers/hwmon/adt7470.c i2c_smbus_write_byte_data(client, ADT7470_TEMP_MIN_REG(attr->index), attr 484 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 486 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", 1000 * data->temp_max[attr->index]); attr 493 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 505 drivers/hwmon/adt7470.c data->temp_max[attr->index] = temp; attr 506 drivers/hwmon/adt7470.c i2c_smbus_write_byte_data(client, ADT7470_TEMP_MAX_REG(attr->index), attr 516 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 518 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", 1000 * data->temp[attr->index]); attr 554 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 557 drivers/hwmon/adt7470.c if (FAN_DATA_VALID(data->fan_max[attr->index])) attr 559 drivers/hwmon/adt7470.c FAN_PERIOD_TO_RPM(data->fan_max[attr->index])); attr 568 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 580 drivers/hwmon/adt7470.c data->fan_max[attr->index] = temp; attr 581 drivers/hwmon/adt7470.c adt7470_write_word_data(client, ADT7470_REG_FAN_MAX(attr->index), temp); attr 590 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 593 drivers/hwmon/adt7470.c if (FAN_DATA_VALID(data->fan_min[attr->index])) attr 595 drivers/hwmon/adt7470.c FAN_PERIOD_TO_RPM(data->fan_min[attr->index])); attr 604 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 616 drivers/hwmon/adt7470.c data->fan_min[attr->index] = temp; attr 617 drivers/hwmon/adt7470.c adt7470_write_word_data(client, ADT7470_REG_FAN_MIN(attr->index), temp); attr 626 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 629 drivers/hwmon/adt7470.c if (FAN_DATA_VALID(data->fan[attr->index])) attr 631 drivers/hwmon/adt7470.c FAN_PERIOD_TO_RPM(data->fan[attr->index])); attr 671 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 673 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", data->pwm[attr->index]); attr 679 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 690 drivers/hwmon/adt7470.c data->pwm[attr->index] = temp; attr 691 drivers/hwmon/adt7470.c i2c_smbus_write_byte_data(client, ADT7470_REG_PWM(attr->index), temp); attr 764 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 766 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", data->pwm_max[attr->index]); attr 773 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 784 drivers/hwmon/adt7470.c data->pwm_max[attr->index] = temp; attr 785 drivers/hwmon/adt7470.c i2c_smbus_write_byte_data(client, ADT7470_REG_PWM_MAX(attr->index), attr 795 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 797 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", data->pwm_min[attr->index]); attr 804 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 815 drivers/hwmon/adt7470.c data->pwm_min[attr->index] = temp; attr 816 drivers/hwmon/adt7470.c i2c_smbus_write_byte_data(client, ADT7470_REG_PWM_MIN(attr->index), attr 826 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 829 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", 1000 * (20 + data->pwm_tmin[attr->index])); attr 835 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 837 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", 1000 * data->pwm_tmin[attr->index]); attr 844 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 856 drivers/hwmon/adt7470.c data->pwm_tmin[attr->index] = temp; attr 857 drivers/hwmon/adt7470.c i2c_smbus_write_byte_data(client, ADT7470_REG_PWM_TMIN(attr->index), attr 867 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 869 drivers/hwmon/adt7470.c return sprintf(buf, "%d\n", 1 + data->pwm_automatic[attr->index]); attr 876 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 879 drivers/hwmon/adt7470.c int pwm_auto_reg = ADT7470_REG_PWM_CFG(attr->index); attr 887 drivers/hwmon/adt7470.c if (attr->index % 2) attr 897 drivers/hwmon/adt7470.c data->pwm_automatic[attr->index] = temp; attr 912 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 914 drivers/hwmon/adt7470.c u8 ctrl = data->pwm_auto_temp[attr->index]; attr 935 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 938 drivers/hwmon/adt7470.c int pwm_auto_reg = ADT7470_REG_PWM_AUTO_TEMP(attr->index); attr 950 drivers/hwmon/adt7470.c data->pwm_automatic[attr->index] = temp; attr 953 drivers/hwmon/adt7470.c if (!(attr->index % 2)) { attr 970 drivers/hwmon/adt7470.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 973 drivers/hwmon/adt7470.c if (data->alarm & attr->index) attr 1087 drivers/hwmon/adt7470.c &dev_attr_alarm_mask.attr, attr 1088 drivers/hwmon/adt7470.c &dev_attr_num_temp_sensors.attr, attr 1089 drivers/hwmon/adt7470.c &dev_attr_auto_update_interval.attr, attr 1090 drivers/hwmon/adt7470.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1091 drivers/hwmon/adt7470.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1092 drivers/hwmon/adt7470.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1093 drivers/hwmon/adt7470.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 1094 drivers/hwmon/adt7470.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 1095 drivers/hwmon/adt7470.c &sensor_dev_attr_temp6_max.dev_attr.attr, attr 1096 drivers/hwmon/adt7470.c &sensor_dev_attr_temp7_max.dev_attr.attr, attr 1097 drivers/hwmon/adt7470.c &sensor_dev_attr_temp8_max.dev_attr.attr, attr 1098 drivers/hwmon/adt7470.c &sensor_dev_attr_temp9_max.dev_attr.attr, attr 1099 drivers/hwmon/adt7470.c &sensor_dev_attr_temp10_max.dev_attr.attr, attr 1100 drivers/hwmon/adt7470.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 1101 drivers/hwmon/adt7470.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 1102 drivers/hwmon/adt7470.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 1103 drivers/hwmon/adt7470.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 1104 drivers/hwmon/adt7470.c &sensor_dev_attr_temp5_min.dev_attr.attr, attr 1105 drivers/hwmon/adt7470.c &sensor_dev_attr_temp6_min.dev_attr.attr, attr 1106 drivers/hwmon/adt7470.c &sensor_dev_attr_temp7_min.dev_attr.attr, attr 1107 drivers/hwmon/adt7470.c &sensor_dev_attr_temp8_min.dev_attr.attr, attr 1108 drivers/hwmon/adt7470.c &sensor_dev_attr_temp9_min.dev_attr.attr, attr 1109 drivers/hwmon/adt7470.c &sensor_dev_attr_temp10_min.dev_attr.attr, attr 1110 drivers/hwmon/adt7470.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1111 drivers/hwmon/adt7470.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1112 drivers/hwmon/adt7470.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1113 drivers/hwmon/adt7470.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 1114 drivers/hwmon/adt7470.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 1115 drivers/hwmon/adt7470.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 1116 drivers/hwmon/adt7470.c &sensor_dev_attr_temp7_input.dev_attr.attr, attr 1117 drivers/hwmon/adt7470.c &sensor_dev_attr_temp8_input.dev_attr.attr, attr 1118 drivers/hwmon/adt7470.c &sensor_dev_attr_temp9_input.dev_attr.attr, attr 1119 drivers/hwmon/adt7470.c &sensor_dev_attr_temp10_input.dev_attr.attr, attr 1120 drivers/hwmon/adt7470.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1121 drivers/hwmon/adt7470.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1122 drivers/hwmon/adt7470.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1123 drivers/hwmon/adt7470.c &sensor_dev_attr_temp4_alarm.dev_attr.attr, attr 1124 drivers/hwmon/adt7470.c &sensor_dev_attr_temp5_alarm.dev_attr.attr, attr 1125 drivers/hwmon/adt7470.c &sensor_dev_attr_temp6_alarm.dev_attr.attr, attr 1126 drivers/hwmon/adt7470.c &sensor_dev_attr_temp7_alarm.dev_attr.attr, attr 1127 drivers/hwmon/adt7470.c &sensor_dev_attr_temp8_alarm.dev_attr.attr, attr 1128 drivers/hwmon/adt7470.c &sensor_dev_attr_temp9_alarm.dev_attr.attr, attr 1129 drivers/hwmon/adt7470.c &sensor_dev_attr_temp10_alarm.dev_attr.attr, attr 1130 drivers/hwmon/adt7470.c &sensor_dev_attr_fan1_max.dev_attr.attr, attr 1131 drivers/hwmon/adt7470.c &sensor_dev_attr_fan2_max.dev_attr.attr, attr 1132 drivers/hwmon/adt7470.c &sensor_dev_attr_fan3_max.dev_attr.attr, attr 1133 drivers/hwmon/adt7470.c &sensor_dev_attr_fan4_max.dev_attr.attr, attr 1134 drivers/hwmon/adt7470.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1135 drivers/hwmon/adt7470.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1136 drivers/hwmon/adt7470.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1137 drivers/hwmon/adt7470.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 1138 drivers/hwmon/adt7470.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1139 drivers/hwmon/adt7470.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1140 drivers/hwmon/adt7470.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1141 drivers/hwmon/adt7470.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 1142 drivers/hwmon/adt7470.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1143 drivers/hwmon/adt7470.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1144 drivers/hwmon/adt7470.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 1145 drivers/hwmon/adt7470.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 1146 drivers/hwmon/adt7470.c &sensor_dev_attr_force_pwm_max.dev_attr.attr, attr 1147 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1148 drivers/hwmon/adt7470.c &dev_attr_pwm1_freq.attr, attr 1149 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1150 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1151 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm4.dev_attr.attr, attr 1152 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 1153 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr, attr 1154 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr, attr 1155 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm4_auto_point1_pwm.dev_attr.attr, attr 1156 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 1157 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr, attr 1158 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr, attr 1159 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm4_auto_point2_pwm.dev_attr.attr, attr 1160 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm1_auto_point1_temp.dev_attr.attr, attr 1161 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm2_auto_point1_temp.dev_attr.attr, attr 1162 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm3_auto_point1_temp.dev_attr.attr, attr 1163 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm4_auto_point1_temp.dev_attr.attr, attr 1164 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm1_auto_point2_temp.dev_attr.attr, attr 1165 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm2_auto_point2_temp.dev_attr.attr, attr 1166 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm3_auto_point2_temp.dev_attr.attr, attr 1167 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm4_auto_point2_temp.dev_attr.attr, attr 1168 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1169 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1170 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1171 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm4_enable.dev_attr.attr, attr 1172 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm1_auto_channels_temp.dev_attr.attr, attr 1173 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm2_auto_channels_temp.dev_attr.attr, attr 1174 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm3_auto_channels_temp.dev_attr.attr, attr 1175 drivers/hwmon/adt7470.c &sensor_dev_attr_pwm4_auto_channels_temp.dev_attr.attr, attr 324 drivers/hwmon/adt7475.c static ssize_t voltage_show(struct device *dev, struct device_attribute *attr, attr 328 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 346 drivers/hwmon/adt7475.c struct device_attribute *attr, const char *buf, attr 350 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 383 drivers/hwmon/adt7475.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 387 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 441 drivers/hwmon/adt7475.c static ssize_t temp_store(struct device *dev, struct device_attribute *attr, attr 444 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 543 drivers/hwmon/adt7475.c static ssize_t temp_st_show(struct device *dev, struct device_attribute *attr, attr 546 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 570 drivers/hwmon/adt7475.c struct device_attribute *attr, const char *buf, attr 573 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 630 drivers/hwmon/adt7475.c static ssize_t point2_show(struct device *dev, struct device_attribute *attr, attr 634 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 648 drivers/hwmon/adt7475.c static ssize_t point2_store(struct device *dev, struct device_attribute *attr, attr 653 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 691 drivers/hwmon/adt7475.c static ssize_t tach_show(struct device *dev, struct device_attribute *attr, attr 695 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 709 drivers/hwmon/adt7475.c static ssize_t tach_store(struct device *dev, struct device_attribute *attr, attr 713 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 732 drivers/hwmon/adt7475.c static ssize_t pwm_show(struct device *dev, struct device_attribute *attr, attr 736 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 744 drivers/hwmon/adt7475.c static ssize_t pwmchan_show(struct device *dev, struct device_attribute *attr, attr 748 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 756 drivers/hwmon/adt7475.c static ssize_t pwmctrl_show(struct device *dev, struct device_attribute *attr, attr 760 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 768 drivers/hwmon/adt7475.c static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, attr 772 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 819 drivers/hwmon/adt7475.c struct device_attribute *attr, char *buf) attr 821 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 830 drivers/hwmon/adt7475.c struct device_attribute *attr, attr 833 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 914 drivers/hwmon/adt7475.c struct device_attribute *attr, const char *buf, attr 917 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 938 drivers/hwmon/adt7475.c struct device_attribute *attr, const char *buf, attr 941 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 966 drivers/hwmon/adt7475.c static ssize_t pwmfreq_show(struct device *dev, struct device_attribute *attr, attr 970 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 982 drivers/hwmon/adt7475.c struct device_attribute *attr, const char *buf, attr 985 drivers/hwmon/adt7475.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 1177 drivers/hwmon/adt7475.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 1178 drivers/hwmon/adt7475.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 1179 drivers/hwmon/adt7475.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 1180 drivers/hwmon/adt7475.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 1181 drivers/hwmon/adt7475.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 1182 drivers/hwmon/adt7475.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 1183 drivers/hwmon/adt7475.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 1184 drivers/hwmon/adt7475.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 1185 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1186 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1187 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 1188 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1189 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 1190 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_offset.dev_attr.attr, attr 1191 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_auto_point1_temp.dev_attr.attr, attr 1192 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_auto_point2_temp.dev_attr.attr, attr 1193 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 1194 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 1195 drivers/hwmon/adt7475.c &sensor_dev_attr_temp1_smoothing.dev_attr.attr, attr 1196 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1197 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1198 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1199 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 1200 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 1201 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_auto_point1_temp.dev_attr.attr, attr 1202 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_auto_point2_temp.dev_attr.attr, attr 1203 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 1204 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_crit_hyst.dev_attr.attr, attr 1205 drivers/hwmon/adt7475.c &sensor_dev_attr_temp2_smoothing.dev_attr.attr, attr 1206 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1207 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 1208 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1209 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1210 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 1211 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_offset.dev_attr.attr, attr 1212 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_auto_point1_temp.dev_attr.attr, attr 1213 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_auto_point2_temp.dev_attr.attr, attr 1214 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 1215 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_crit_hyst.dev_attr.attr, attr 1216 drivers/hwmon/adt7475.c &sensor_dev_attr_temp3_smoothing.dev_attr.attr, attr 1217 drivers/hwmon/adt7475.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1218 drivers/hwmon/adt7475.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1219 drivers/hwmon/adt7475.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1220 drivers/hwmon/adt7475.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1221 drivers/hwmon/adt7475.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1222 drivers/hwmon/adt7475.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1223 drivers/hwmon/adt7475.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1224 drivers/hwmon/adt7475.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1225 drivers/hwmon/adt7475.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 1226 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1227 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 1228 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1229 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm1_auto_channels_temp.dev_attr.attr, attr 1230 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 1231 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 1232 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm1_stall_disable.dev_attr.attr, attr 1233 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1234 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm3_freq.dev_attr.attr, attr 1235 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1236 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm3_auto_channels_temp.dev_attr.attr, attr 1237 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr, attr 1238 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr, attr 1239 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm3_stall_disable.dev_attr.attr, attr 1240 drivers/hwmon/adt7475.c &dev_attr_pwm_use_point2_pwm_at_crit.attr, attr 1245 drivers/hwmon/adt7475.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 1246 drivers/hwmon/adt7475.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 1247 drivers/hwmon/adt7475.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 1252 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1253 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 1254 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1255 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm2_auto_channels_temp.dev_attr.attr, attr 1256 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr, attr 1257 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr, attr 1258 drivers/hwmon/adt7475.c &sensor_dev_attr_pwm2_stall_disable.dev_attr.attr, attr 1263 drivers/hwmon/adt7475.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 1264 drivers/hwmon/adt7475.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 1265 drivers/hwmon/adt7475.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 1266 drivers/hwmon/adt7475.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 1271 drivers/hwmon/adt7475.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 1272 drivers/hwmon/adt7475.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 1273 drivers/hwmon/adt7475.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 1274 drivers/hwmon/adt7475.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 1279 drivers/hwmon/adt7475.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 1280 drivers/hwmon/adt7475.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 1281 drivers/hwmon/adt7475.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 1282 drivers/hwmon/adt7475.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 1287 drivers/hwmon/adt7475.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 1288 drivers/hwmon/adt7475.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 1289 drivers/hwmon/adt7475.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 1290 drivers/hwmon/adt7475.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 1295 drivers/hwmon/adt7475.c &dev_attr_cpu0_vid.attr, attr 1296 drivers/hwmon/adt7475.c &dev_attr_vrm.attr, attr 223 drivers/hwmon/adt7x10.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 227 drivers/hwmon/adt7x10.c if (attr->index == 0) { attr 236 drivers/hwmon/adt7x10.c data->temp[attr->index])); attr 243 drivers/hwmon/adt7x10.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 245 drivers/hwmon/adt7x10.c int nr = attr->index; attr 265 drivers/hwmon/adt7x10.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 267 drivers/hwmon/adt7x10.c int nr = attr->index; attr 308 drivers/hwmon/adt7x10.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 315 drivers/hwmon/adt7x10.c return sprintf(buf, "%d\n", !!(ret & attr->index)); attr 342 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 343 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 344 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 345 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 346 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 347 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_min_hyst.dev_attr.attr, attr 348 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 349 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 350 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 351 drivers/hwmon/adt7x10.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 276 drivers/hwmon/amc6821.c static ssize_t temp_store(struct device *dev, struct device_attribute *attr, attr 281 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(attr)->index; attr 378 drivers/hwmon/amc6821.c struct device_attribute *attr, attr 484 drivers/hwmon/amc6821.c struct device_attribute *attr, attr 489 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr_2(attr)->index; attr 490 drivers/hwmon/amc6821.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 555 drivers/hwmon/amc6821.c struct device_attribute *attr, attr 612 drivers/hwmon/amc6821.c static ssize_t fan_store(struct device *dev, struct device_attribute *attr, attr 618 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(attr)->index; attr 650 drivers/hwmon/amc6821.c struct device_attribute *attr, const char *buf, attr 734 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 735 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 736 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 737 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 738 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 739 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 740 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 741 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 742 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 743 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 744 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 745 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 746 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 747 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 748 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 749 drivers/hwmon/amc6821.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 750 drivers/hwmon/amc6821.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 751 drivers/hwmon/amc6821.c &sensor_dev_attr_fan1_max.dev_attr.attr, attr 752 drivers/hwmon/amc6821.c &sensor_dev_attr_fan1_fault.dev_attr.attr, attr 753 drivers/hwmon/amc6821.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 754 drivers/hwmon/amc6821.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 755 drivers/hwmon/amc6821.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 756 drivers/hwmon/amc6821.c &sensor_dev_attr_pwm1_auto_channels_temp.dev_attr.attr, attr 757 drivers/hwmon/amc6821.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 758 drivers/hwmon/amc6821.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 759 drivers/hwmon/amc6821.c &sensor_dev_attr_pwm1_auto_point3_pwm.dev_attr.attr, attr 760 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_auto_point1_temp.dev_attr.attr, attr 761 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_auto_point2_temp.dev_attr.attr, attr 762 drivers/hwmon/amc6821.c &sensor_dev_attr_temp1_auto_point3_temp.dev_attr.attr, attr 763 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_auto_point1_temp.dev_attr.attr, attr 764 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_auto_point2_temp.dev_attr.attr, attr 765 drivers/hwmon/amc6821.c &sensor_dev_attr_temp2_auto_point3_temp.dev_attr.attr, attr 90 drivers/hwmon/applesmc.c #define to_index(attr) (to_sensor_dev_attr(attr)->index & 0xffff) attr 91 drivers/hwmon/applesmc.c #define to_option(attr) (to_sensor_dev_attr(attr)->index >> 16) attr 703 drivers/hwmon/applesmc.c struct device_attribute *attr, char *buf) attr 709 drivers/hwmon/applesmc.c struct device_attribute *attr, char *buf) attr 732 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 797 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 804 drivers/hwmon/applesmc.c scnprintf(newkey, sizeof(newkey), fan_speed_fmt[to_option(attr)], attr 805 drivers/hwmon/applesmc.c to_index(attr)); attr 817 drivers/hwmon/applesmc.c struct device_attribute *attr, attr 828 drivers/hwmon/applesmc.c scnprintf(newkey, sizeof(newkey), fan_speed_fmt[to_option(attr)], attr 829 drivers/hwmon/applesmc.c to_index(attr)); attr 842 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 849 drivers/hwmon/applesmc.c manual = ((buffer[0] << 8 | buffer[1]) >> to_index(attr)) & 0x01; attr 858 drivers/hwmon/applesmc.c struct device_attribute *attr, attr 875 drivers/hwmon/applesmc.c val = val | (0x01 << to_index(attr)); attr 877 drivers/hwmon/applesmc.c val = val & ~(0x01 << to_index(attr)); attr 892 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 898 drivers/hwmon/applesmc.c scnprintf(newkey, sizeof(newkey), FAN_ID_FMT, to_index(attr)); attr 910 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 916 drivers/hwmon/applesmc.c struct device_attribute *attr, const char *sysfsbuf, size_t count) attr 942 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 959 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 975 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 987 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 999 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 1011 drivers/hwmon/applesmc.c struct device_attribute *attr, char *sysfsbuf) attr 1017 drivers/hwmon/applesmc.c struct device_attribute *attr, const char *sysfsbuf, size_t count) attr 1085 drivers/hwmon/applesmc.c for (node = grp->nodes; node->sda.dev_attr.attr.name; node++) attr 1087 drivers/hwmon/applesmc.c &node->sda.dev_attr.attr); attr 1100 drivers/hwmon/applesmc.c struct attribute *attr; attr 1116 drivers/hwmon/applesmc.c attr = &node->sda.dev_attr.attr; attr 1117 drivers/hwmon/applesmc.c sysfs_attr_init(attr); attr 1118 drivers/hwmon/applesmc.c attr->name = node->name; attr 1119 drivers/hwmon/applesmc.c attr->mode = 0444 | (grp->store ? 0200 : 0); attr 1120 drivers/hwmon/applesmc.c ret = sysfs_create_file(&pdev->dev.kobj, attr); attr 1122 drivers/hwmon/applesmc.c attr->name = NULL; attr 47 drivers/hwmon/as370-hwmon.c u32 attr, int channel, long *temp) attr 52 drivers/hwmon/as370-hwmon.c switch (attr) { attr 66 drivers/hwmon/as370-hwmon.c u32 attr, int channel) attr 71 drivers/hwmon/as370-hwmon.c switch (attr) { attr 236 drivers/hwmon/asb100.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 239 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; \ attr 249 drivers/hwmon/asb100.c static ssize_t set_in_##reg(struct device *dev, struct device_attribute *attr, \ attr 252 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; \ attr 287 drivers/hwmon/asb100.c static ssize_t show_fan(struct device *dev, struct device_attribute *attr, attr 290 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; attr 296 drivers/hwmon/asb100.c static ssize_t show_fan_min(struct device *dev, struct device_attribute *attr, attr 299 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; attr 305 drivers/hwmon/asb100.c static ssize_t show_fan_div(struct device *dev, struct device_attribute *attr, attr 308 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; attr 313 drivers/hwmon/asb100.c static ssize_t set_fan_min(struct device *dev, struct device_attribute *attr, attr 316 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; attr 339 drivers/hwmon/asb100.c static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr, attr 342 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; attr 418 drivers/hwmon/asb100.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 421 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; \ attr 431 drivers/hwmon/asb100.c static ssize_t set_##reg(struct device *dev, struct device_attribute *attr, \ attr 434 drivers/hwmon/asb100.c int nr = to_sensor_dev_attr(attr)->index; \ attr 474 drivers/hwmon/asb100.c struct device_attribute *attr, char *buf) attr 483 drivers/hwmon/asb100.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 490 drivers/hwmon/asb100.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 511 drivers/hwmon/asb100.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 520 drivers/hwmon/asb100.c static ssize_t show_alarm(struct device *dev, struct device_attribute *attr, attr 523 drivers/hwmon/asb100.c int bitnr = to_sensor_dev_attr(attr)->index; attr 540 drivers/hwmon/asb100.c static ssize_t pwm1_show(struct device *dev, struct device_attribute *attr, attr 547 drivers/hwmon/asb100.c static ssize_t pwm1_store(struct device *dev, struct device_attribute *attr, attr 568 drivers/hwmon/asb100.c struct device_attribute *attr, char *buf) attr 575 drivers/hwmon/asb100.c struct device_attribute *attr, attr 599 drivers/hwmon/asb100.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 600 drivers/hwmon/asb100.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 601 drivers/hwmon/asb100.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 602 drivers/hwmon/asb100.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 603 drivers/hwmon/asb100.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 604 drivers/hwmon/asb100.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 605 drivers/hwmon/asb100.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 606 drivers/hwmon/asb100.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 607 drivers/hwmon/asb100.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 608 drivers/hwmon/asb100.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 609 drivers/hwmon/asb100.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 610 drivers/hwmon/asb100.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 611 drivers/hwmon/asb100.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 612 drivers/hwmon/asb100.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 613 drivers/hwmon/asb100.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 614 drivers/hwmon/asb100.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 615 drivers/hwmon/asb100.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 616 drivers/hwmon/asb100.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 617 drivers/hwmon/asb100.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 618 drivers/hwmon/asb100.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 619 drivers/hwmon/asb100.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 621 drivers/hwmon/asb100.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 622 drivers/hwmon/asb100.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 623 drivers/hwmon/asb100.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 624 drivers/hwmon/asb100.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 625 drivers/hwmon/asb100.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 626 drivers/hwmon/asb100.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 627 drivers/hwmon/asb100.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 628 drivers/hwmon/asb100.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 629 drivers/hwmon/asb100.c &sensor_dev_attr_fan3_div.dev_attr.attr, attr 631 drivers/hwmon/asb100.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 632 drivers/hwmon/asb100.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 633 drivers/hwmon/asb100.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 634 drivers/hwmon/asb100.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 635 drivers/hwmon/asb100.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 636 drivers/hwmon/asb100.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 637 drivers/hwmon/asb100.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 638 drivers/hwmon/asb100.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 639 drivers/hwmon/asb100.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 640 drivers/hwmon/asb100.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 641 drivers/hwmon/asb100.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 642 drivers/hwmon/asb100.c &sensor_dev_attr_temp4_max_hyst.dev_attr.attr, attr 644 drivers/hwmon/asb100.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 645 drivers/hwmon/asb100.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 646 drivers/hwmon/asb100.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 647 drivers/hwmon/asb100.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 648 drivers/hwmon/asb100.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 649 drivers/hwmon/asb100.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 650 drivers/hwmon/asb100.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 651 drivers/hwmon/asb100.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 652 drivers/hwmon/asb100.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 653 drivers/hwmon/asb100.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 654 drivers/hwmon/asb100.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 656 drivers/hwmon/asb100.c &dev_attr_cpu0_vid.attr, attr 657 drivers/hwmon/asb100.c &dev_attr_vrm.attr, attr 658 drivers/hwmon/asb100.c &dev_attr_alarms.attr, attr 659 drivers/hwmon/asb100.c &dev_attr_pwm1.attr, attr 660 drivers/hwmon/asb100.c &dev_attr_pwm1_enable.attr, attr 164 drivers/hwmon/asc7621.c static ssize_t show_u8(struct device *dev, struct device_attribute *attr, attr 167 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 172 drivers/hwmon/asc7621.c static ssize_t store_u8(struct device *dev, struct device_attribute *attr, attr 175 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 194 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 196 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 204 drivers/hwmon/asc7621.c struct device_attribute *attr, attr 207 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 234 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 236 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 249 drivers/hwmon/asc7621.c struct device_attribute *attr, const char *buf, attr 252 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 294 drivers/hwmon/asc7621.c static ssize_t show_in10(struct device *dev, struct device_attribute *attr, attr 297 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 312 drivers/hwmon/asc7621.c static ssize_t show_in8(struct device *dev, struct device_attribute *attr, attr 315 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 323 drivers/hwmon/asc7621.c static ssize_t store_in8(struct device *dev, struct device_attribute *attr, attr 326 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 348 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 350 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 356 drivers/hwmon/asc7621.c struct device_attribute *attr, const char *buf, attr 359 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 385 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 387 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 402 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 404 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 412 drivers/hwmon/asc7621.c struct device_attribute *attr, const char *buf, attr 415 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 447 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 449 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 466 drivers/hwmon/asc7621.c struct device_attribute *attr, attr 469 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 498 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 500 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 517 drivers/hwmon/asc7621.c struct device_attribute *attr, attr 520 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 557 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 559 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 585 drivers/hwmon/asc7621.c struct device_attribute *attr, attr 588 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 646 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 648 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 658 drivers/hwmon/asc7621.c struct device_attribute *attr, attr 661 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 694 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 696 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 707 drivers/hwmon/asc7621.c struct device_attribute *attr, attr 710 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 743 drivers/hwmon/asc7621.c struct device_attribute *attr, char *buf) attr 745 drivers/hwmon/asc7621.c SETUP_SHOW_DATA_PARAM(dev, attr); attr 754 drivers/hwmon/asc7621.c struct device_attribute *attr, attr 757 drivers/hwmon/asc7621.c SETUP_STORE_DATA_PARAM(dev, attr); attr 570 drivers/hwmon/aspeed-pwm-tacho.c static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, attr 573 drivers/hwmon/aspeed-pwm-tacho.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 595 drivers/hwmon/aspeed-pwm-tacho.c static ssize_t pwm_show(struct device *dev, struct device_attribute *attr, attr 598 drivers/hwmon/aspeed-pwm-tacho.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 605 drivers/hwmon/aspeed-pwm-tacho.c static ssize_t rpm_show(struct device *dev, struct device_attribute *attr, attr 608 drivers/hwmon/aspeed-pwm-tacho.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 651 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 652 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 653 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 654 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm4.dev_attr.attr, attr 655 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm5.dev_attr.attr, attr 656 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm6.dev_attr.attr, attr 657 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm7.dev_attr.attr, attr 658 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_pwm8.dev_attr.attr, attr 684 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 685 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 686 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 687 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 688 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 689 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan6_input.dev_attr.attr, attr 690 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan7_input.dev_attr.attr, attr 691 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan8_input.dev_attr.attr, attr 692 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan9_input.dev_attr.attr, attr 693 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan10_input.dev_attr.attr, attr 694 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan11_input.dev_attr.attr, attr 695 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan12_input.dev_attr.attr, attr 696 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan13_input.dev_attr.attr, attr 697 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan14_input.dev_attr.attr, attr 698 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan15_input.dev_attr.attr, attr 699 drivers/hwmon/aspeed-pwm-tacho.c &sensor_dev_attr_fan16_input.dev_attr.attr, attr 139 drivers/hwmon/asus_atk0110.c struct device_attribute *attr, char *buf); attr 204 drivers/hwmon/asus_atk0110.c #define input_to_atk_sensor(attr) \ attr 205 drivers/hwmon/asus_atk0110.c container_of(attr, struct atk_sensor_data, input_attr) attr 207 drivers/hwmon/asus_atk0110.c #define label_to_atk_sensor(attr) \ attr 208 drivers/hwmon/asus_atk0110.c container_of(attr, struct atk_sensor_data, label_attr) attr 210 drivers/hwmon/asus_atk0110.c #define limit1_to_atk_sensor(attr) \ attr 211 drivers/hwmon/asus_atk0110.c container_of(attr, struct atk_sensor_data, limit1_attr) attr 213 drivers/hwmon/asus_atk0110.c #define limit2_to_atk_sensor(attr) \ attr 214 drivers/hwmon/asus_atk0110.c container_of(attr, struct atk_sensor_data, limit2_attr) attr 217 drivers/hwmon/asus_atk0110.c struct device_attribute *attr, char *buf) attr 219 drivers/hwmon/asus_atk0110.c struct atk_sensor_data *s = input_to_atk_sensor(attr); attr 235 drivers/hwmon/asus_atk0110.c struct device_attribute *attr, char *buf) attr 237 drivers/hwmon/asus_atk0110.c struct atk_sensor_data *s = label_to_atk_sensor(attr); attr 243 drivers/hwmon/asus_atk0110.c struct device_attribute *attr, char *buf) attr 245 drivers/hwmon/asus_atk0110.c struct atk_sensor_data *s = limit1_to_atk_sensor(attr); attr 255 drivers/hwmon/asus_atk0110.c struct device_attribute *attr, char *buf) attr 257 drivers/hwmon/asus_atk0110.c struct atk_sensor_data *s = limit2_to_atk_sensor(attr); attr 266 drivers/hwmon/asus_atk0110.c static void atk_init_attribute(struct device_attribute *attr, char *name, attr 269 drivers/hwmon/asus_atk0110.c sysfs_attr_init(&attr->attr); attr 270 drivers/hwmon/asus_atk0110.c attr->attr.name = name; attr 271 drivers/hwmon/asus_atk0110.c attr->attr.mode = 0444; attr 272 drivers/hwmon/asus_atk0110.c attr->show = show; attr 273 drivers/hwmon/asus_atk0110.c attr->store = NULL; attr 1174 drivers/hwmon/asus_atk0110.c attrs[i++] = &s->input_attr.attr; attr 1175 drivers/hwmon/asus_atk0110.c attrs[i++] = &s->label_attr.attr; attr 1176 drivers/hwmon/asus_atk0110.c attrs[i++] = &s->limit1_attr.attr; attr 1177 drivers/hwmon/asus_atk0110.c attrs[i++] = &s->limit2_attr.attr; attr 76 drivers/hwmon/atxp1.c struct device_attribute *attr, char *buf) attr 90 drivers/hwmon/atxp1.c struct device_attribute *attr, const char *buf, attr 151 drivers/hwmon/atxp1.c static ssize_t gpio1_show(struct device *dev, struct device_attribute *attr, attr 164 drivers/hwmon/atxp1.c static ssize_t gpio1_store(struct device *dev, struct device_attribute *attr, attr 196 drivers/hwmon/atxp1.c static ssize_t gpio2_show(struct device *dev, struct device_attribute *attr, attr 209 drivers/hwmon/atxp1.c static ssize_t gpio2_store(struct device *dev, struct device_attribute *attr, attr 240 drivers/hwmon/atxp1.c &dev_attr_gpio1.attr, attr 241 drivers/hwmon/atxp1.c &dev_attr_gpio2.attr, attr 242 drivers/hwmon/atxp1.c &dev_attr_cpu0_vid.attr, attr 107 drivers/hwmon/coretemp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 109 drivers/hwmon/coretemp.c struct temp_data *tdata = pdata->core_data[attr->index]; attr 121 drivers/hwmon/coretemp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 123 drivers/hwmon/coretemp.c struct temp_data *tdata = pdata->core_data[attr->index]; attr 135 drivers/hwmon/coretemp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 138 drivers/hwmon/coretemp.c return sprintf(buf, "%d\n", pdata->core_data[attr->index]->tjmax); attr 144 drivers/hwmon/coretemp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 147 drivers/hwmon/coretemp.c return sprintf(buf, "%d\n", pdata->core_data[attr->index]->ttarget); attr 154 drivers/hwmon/coretemp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 156 drivers/hwmon/coretemp.c struct temp_data *tdata = pdata->core_data[attr->index]; attr 395 drivers/hwmon/coretemp.c sysfs_attr_init(&tdata->sd_attrs[i].dev_attr.attr); attr 396 drivers/hwmon/coretemp.c tdata->sd_attrs[i].dev_attr.attr.name = tdata->attr_name[i]; attr 397 drivers/hwmon/coretemp.c tdata->sd_attrs[i].dev_attr.attr.mode = 0444; attr 400 drivers/hwmon/coretemp.c tdata->attrs[i] = &tdata->sd_attrs[i].dev_attr.attr; attr 300 drivers/hwmon/da9052-hwmon.c struct attribute *attr, int index) attr 304 drivers/hwmon/da9052-hwmon.c struct device_attribute *dattr = container_of(attr, attr 305 drivers/hwmon/da9052-hwmon.c struct device_attribute, attr); attr 318 drivers/hwmon/da9052-hwmon.c return attr->mode; attr 352 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 353 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in0_label.dev_attr.attr, attr 354 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 355 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in3_label.dev_attr.attr, attr 356 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 357 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in4_label.dev_attr.attr, attr 358 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 359 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in5_label.dev_attr.attr, attr 360 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 361 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in6_label.dev_attr.attr, attr 362 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in70_input.dev_attr.attr, attr 363 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in70_label.dev_attr.attr, attr 364 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in71_input.dev_attr.attr, attr 365 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in71_label.dev_attr.attr, attr 366 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in72_input.dev_attr.attr, attr 367 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in72_label.dev_attr.attr, attr 368 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in73_input.dev_attr.attr, attr 369 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in73_label.dev_attr.attr, attr 370 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 371 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_in9_label.dev_attr.attr, attr 372 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 373 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_curr1_label.dev_attr.attr, attr 374 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 375 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_temp2_label.dev_attr.attr, attr 376 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_temp8_input.dev_attr.attr, attr 377 drivers/hwmon/da9052-hwmon.c &sensor_dev_attr_temp8_label.dev_attr.attr, attr 218 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 219 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in0_label.dev_attr.attr, attr 220 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 221 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in1_label.dev_attr.attr, attr 222 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 223 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in2_label.dev_attr.attr, attr 224 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 225 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_in3_label.dev_attr.attr, attr 227 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 228 drivers/hwmon/da9055-hwmon.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 710 drivers/hwmon/dell-smm-hwmon.c struct device_attribute *attr, attr 713 drivers/hwmon/dell-smm-hwmon.c int index = to_sensor_dev_attr(attr)->index; attr 760 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp1_input.dev_attr.attr, /* 0 */ attr 761 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp1_label.dev_attr.attr, /* 1 */ attr 762 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp2_input.dev_attr.attr, /* 2 */ attr 763 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp2_label.dev_attr.attr, /* 3 */ attr 764 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp3_input.dev_attr.attr, /* 4 */ attr 765 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp3_label.dev_attr.attr, /* 5 */ attr 766 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp4_input.dev_attr.attr, /* 6 */ attr 767 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp4_label.dev_attr.attr, /* 7 */ attr 768 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp5_input.dev_attr.attr, /* 8 */ attr 769 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp5_label.dev_attr.attr, /* 9 */ attr 770 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp6_input.dev_attr.attr, /* 10 */ attr 771 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp6_label.dev_attr.attr, /* 11 */ attr 772 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp7_input.dev_attr.attr, /* 12 */ attr 773 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp7_label.dev_attr.attr, /* 13 */ attr 774 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp8_input.dev_attr.attr, /* 14 */ attr 775 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp8_label.dev_attr.attr, /* 15 */ attr 776 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp9_input.dev_attr.attr, /* 16 */ attr 777 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp9_label.dev_attr.attr, /* 17 */ attr 778 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp10_input.dev_attr.attr, /* 18 */ attr 779 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_temp10_label.dev_attr.attr, /* 19 */ attr 780 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_fan1_input.dev_attr.attr, /* 20 */ attr 781 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_fan1_label.dev_attr.attr, /* 21 */ attr 782 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_pwm1.dev_attr.attr, /* 22 */ attr 783 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_fan2_input.dev_attr.attr, /* 23 */ attr 784 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_fan2_label.dev_attr.attr, /* 24 */ attr 785 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_pwm2.dev_attr.attr, /* 25 */ attr 786 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_fan3_input.dev_attr.attr, /* 26 */ attr 787 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_fan3_label.dev_attr.attr, /* 27 */ attr 788 drivers/hwmon/dell-smm-hwmon.c &sensor_dev_attr_pwm3.dev_attr.attr, /* 28 */ attr 792 drivers/hwmon/dell-smm-hwmon.c static umode_t i8k_is_visible(struct kobject *kobj, struct attribute *attr, attr 841 drivers/hwmon/dell-smm-hwmon.c return attr->mode; attr 799 drivers/hwmon/dme1737.c static ssize_t show_in(struct device *dev, struct device_attribute *attr, attr 804 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 830 drivers/hwmon/dme1737.c static ssize_t set_in(struct device *dev, struct device_attribute *attr, attr 835 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 877 drivers/hwmon/dme1737.c static ssize_t show_temp(struct device *dev, struct device_attribute *attr, attr 882 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 914 drivers/hwmon/dme1737.c static ssize_t set_temp(struct device *dev, struct device_attribute *attr, attr 919 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 965 drivers/hwmon/dme1737.c static ssize_t show_zone(struct device *dev, struct device_attribute *attr, attr 970 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 1006 drivers/hwmon/dme1737.c static ssize_t set_zone(struct device *dev, struct device_attribute *attr, attr 1011 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 1080 drivers/hwmon/dme1737.c static ssize_t show_fan(struct device *dev, struct device_attribute *attr, attr 1085 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 1120 drivers/hwmon/dme1737.c static ssize_t set_fan(struct device *dev, struct device_attribute *attr, attr 1125 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 1196 drivers/hwmon/dme1737.c static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, attr 1201 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 1259 drivers/hwmon/dme1737.c static ssize_t set_pwm(struct device *dev, struct device_attribute *attr, attr 1264 drivers/hwmon/dme1737.c *sensor_attr_2 = to_sensor_dev_attr_2(attr); attr 1462 drivers/hwmon/dme1737.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 1471 drivers/hwmon/dme1737.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 1490 drivers/hwmon/dme1737.c struct device_attribute *attr, char *buf) attr 1497 drivers/hwmon/dme1737.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 1651 drivers/hwmon/dme1737.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 1652 drivers/hwmon/dme1737.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 1653 drivers/hwmon/dme1737.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 1654 drivers/hwmon/dme1737.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 1655 drivers/hwmon/dme1737.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 1656 drivers/hwmon/dme1737.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 1657 drivers/hwmon/dme1737.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 1658 drivers/hwmon/dme1737.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 1659 drivers/hwmon/dme1737.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 1660 drivers/hwmon/dme1737.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 1661 drivers/hwmon/dme1737.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 1662 drivers/hwmon/dme1737.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 1663 drivers/hwmon/dme1737.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 1664 drivers/hwmon/dme1737.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 1665 drivers/hwmon/dme1737.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 1666 drivers/hwmon/dme1737.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 1667 drivers/hwmon/dme1737.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 1668 drivers/hwmon/dme1737.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 1669 drivers/hwmon/dme1737.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 1670 drivers/hwmon/dme1737.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 1671 drivers/hwmon/dme1737.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 1672 drivers/hwmon/dme1737.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 1673 drivers/hwmon/dme1737.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 1674 drivers/hwmon/dme1737.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 1675 drivers/hwmon/dme1737.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 1676 drivers/hwmon/dme1737.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 1677 drivers/hwmon/dme1737.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 1678 drivers/hwmon/dme1737.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 1680 drivers/hwmon/dme1737.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1681 drivers/hwmon/dme1737.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 1682 drivers/hwmon/dme1737.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1683 drivers/hwmon/dme1737.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1684 drivers/hwmon/dme1737.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 1685 drivers/hwmon/dme1737.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1686 drivers/hwmon/dme1737.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 1687 drivers/hwmon/dme1737.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1688 drivers/hwmon/dme1737.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1689 drivers/hwmon/dme1737.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 1690 drivers/hwmon/dme1737.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1691 drivers/hwmon/dme1737.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 1692 drivers/hwmon/dme1737.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1693 drivers/hwmon/dme1737.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1694 drivers/hwmon/dme1737.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 1696 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_point1_temp.dev_attr.attr, attr 1697 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_point2_temp.dev_attr.attr, attr 1698 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_point3_temp.dev_attr.attr, attr 1699 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_channels_temp.dev_attr.attr, attr 1700 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_point1_temp.dev_attr.attr, attr 1701 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_point2_temp.dev_attr.attr, attr 1702 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_point3_temp.dev_attr.attr, attr 1703 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_channels_temp.dev_attr.attr, attr 1717 drivers/hwmon/dme1737.c &sensor_dev_attr_temp1_offset.dev_attr.attr, attr 1718 drivers/hwmon/dme1737.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 1719 drivers/hwmon/dme1737.c &sensor_dev_attr_temp3_offset.dev_attr.attr, attr 1733 drivers/hwmon/dme1737.c &dev_attr_vrm.attr, attr 1734 drivers/hwmon/dme1737.c &dev_attr_cpu0_vid.attr, attr 1748 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_point1_temp.dev_attr.attr, attr 1749 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_point2_temp.dev_attr.attr, attr 1750 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_point3_temp.dev_attr.attr, attr 1751 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_channels_temp.dev_attr.attr, attr 1766 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_point1_temp_hyst.dev_attr.attr, attr 1767 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_point1_temp_hyst.dev_attr.attr, attr 1768 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_point1_temp_hyst.dev_attr.attr, attr 1782 drivers/hwmon/dme1737.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 1783 drivers/hwmon/dme1737.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 1784 drivers/hwmon/dme1737.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 1785 drivers/hwmon/dme1737.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 1799 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1800 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 1801 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1802 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_ramp_rate.dev_attr.attr, attr 1803 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_auto_channels_zone.dev_attr.attr, attr 1804 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 1805 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 1809 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1810 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 1811 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1812 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_ramp_rate.dev_attr.attr, attr 1813 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_auto_channels_zone.dev_attr.attr, attr 1814 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr, attr 1815 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr, attr 1819 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1820 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_freq.dev_attr.attr, attr 1821 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1822 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_ramp_rate.dev_attr.attr, attr 1823 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_auto_channels_zone.dev_attr.attr, attr 1824 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr, attr 1825 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr, attr 1829 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm5.dev_attr.attr, attr 1830 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm5_freq.dev_attr.attr, attr 1831 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm5_enable.dev_attr.attr, attr 1835 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm6.dev_attr.attr, attr 1836 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm6_freq.dev_attr.attr, attr 1837 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm6_enable.dev_attr.attr, attr 1856 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_auto_pwm_min.dev_attr.attr, attr 1857 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_auto_pwm_min.dev_attr.attr, attr 1858 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_auto_pwm_min.dev_attr.attr, attr 1867 drivers/hwmon/dme1737.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1868 drivers/hwmon/dme1737.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1869 drivers/hwmon/dme1737.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1870 drivers/hwmon/dme1737.c &sensor_dev_attr_fan1_type.dev_attr.attr, attr 1874 drivers/hwmon/dme1737.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1875 drivers/hwmon/dme1737.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1876 drivers/hwmon/dme1737.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1877 drivers/hwmon/dme1737.c &sensor_dev_attr_fan2_type.dev_attr.attr, attr 1881 drivers/hwmon/dme1737.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1882 drivers/hwmon/dme1737.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1883 drivers/hwmon/dme1737.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 1884 drivers/hwmon/dme1737.c &sensor_dev_attr_fan3_type.dev_attr.attr, attr 1888 drivers/hwmon/dme1737.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 1889 drivers/hwmon/dme1737.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 1890 drivers/hwmon/dme1737.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 1891 drivers/hwmon/dme1737.c &sensor_dev_attr_fan4_type.dev_attr.attr, attr 1895 drivers/hwmon/dme1737.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 1896 drivers/hwmon/dme1737.c &sensor_dev_attr_fan5_min.dev_attr.attr, attr 1897 drivers/hwmon/dme1737.c &sensor_dev_attr_fan5_alarm.dev_attr.attr, attr 1898 drivers/hwmon/dme1737.c &sensor_dev_attr_fan5_max.dev_attr.attr, attr 1902 drivers/hwmon/dme1737.c &sensor_dev_attr_fan6_input.dev_attr.attr, attr 1903 drivers/hwmon/dme1737.c &sensor_dev_attr_fan6_min.dev_attr.attr, attr 1904 drivers/hwmon/dme1737.c &sensor_dev_attr_fan6_alarm.dev_attr.attr, attr 1905 drivers/hwmon/dme1737.c &sensor_dev_attr_fan6_max.dev_attr.attr, attr 1923 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_point1_temp.dev_attr.attr, attr 1924 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_point2_temp.dev_attr.attr, attr 1925 drivers/hwmon/dme1737.c &sensor_dev_attr_zone1_auto_point3_temp.dev_attr.attr, attr 1926 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_point1_temp.dev_attr.attr, attr 1927 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_point2_temp.dev_attr.attr, attr 1928 drivers/hwmon/dme1737.c &sensor_dev_attr_zone2_auto_point3_temp.dev_attr.attr, attr 1942 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_point1_temp.dev_attr.attr, attr 1943 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_point2_temp.dev_attr.attr, attr 1944 drivers/hwmon/dme1737.c &sensor_dev_attr_zone3_auto_point3_temp.dev_attr.attr, attr 1958 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 1959 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1960 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_ramp_rate.dev_attr.attr, attr 1961 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_auto_channels_zone.dev_attr.attr, attr 1962 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 1966 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 1967 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1968 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_ramp_rate.dev_attr.attr, attr 1969 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_auto_channels_zone.dev_attr.attr, attr 1970 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr, attr 1974 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_freq.dev_attr.attr, attr 1975 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1976 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_ramp_rate.dev_attr.attr, attr 1977 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_auto_channels_zone.dev_attr.attr, attr 1978 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr, attr 1982 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm5.dev_attr.attr, attr 1983 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm5_freq.dev_attr.attr, attr 1987 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm6.dev_attr.attr, attr 1988 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm6_freq.dev_attr.attr, attr 2006 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 2007 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 2008 drivers/hwmon/dme1737.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 2044 drivers/hwmon/dme1737.c struct attribute *attr, umode_t mode) attr 2046 drivers/hwmon/dme1737.c if (sysfs_chmod_file(&dev->kobj, attr, mode)) { attr 2048 drivers/hwmon/dme1737.c attr->name); attr 2056 drivers/hwmon/dme1737.c struct attribute **attr; attr 2058 drivers/hwmon/dme1737.c for (attr = group->attrs; *attr; attr++) attr 2059 drivers/hwmon/dme1737.c dme1737_chmod_file(dev, *attr, mode); attr 2098 drivers/hwmon/dme1737.c sysfs_remove_file(&dev->kobj, &dev_attr_name.attr); attr 2108 drivers/hwmon/dme1737.c err = sysfs_create_file(&dev->kobj, &dev_attr_name.attr); attr 227 drivers/hwmon/ds1621.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 230 drivers/hwmon/ds1621.c DS1621_TEMP_FROM_REG(data->temp[attr->index])); attr 236 drivers/hwmon/ds1621.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 246 drivers/hwmon/ds1621.c data->temp[attr->index] = DS1621_TEMP_TO_REG(val, data->zbits); attr 247 drivers/hwmon/ds1621.c i2c_smbus_write_word_swapped(data->client, DS1621_REG_TEMP[attr->index], attr 248 drivers/hwmon/ds1621.c data->temp[attr->index]); attr 263 drivers/hwmon/ds1621.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 265 drivers/hwmon/ds1621.c return sprintf(buf, "%d\n", !!(data->conf & attr->index)); attr 316 drivers/hwmon/ds1621.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 317 drivers/hwmon/ds1621.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 318 drivers/hwmon/ds1621.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 319 drivers/hwmon/ds1621.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 320 drivers/hwmon/ds1621.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 321 drivers/hwmon/ds1621.c &dev_attr_alarms.attr, attr 322 drivers/hwmon/ds1621.c &dev_attr_update_interval.attr, attr 327 drivers/hwmon/ds1621.c struct attribute *attr, int index) attr 332 drivers/hwmon/ds1621.c if (attr == &dev_attr_update_interval.attr) attr 336 drivers/hwmon/ds1621.c return attr->mode; attr 132 drivers/hwmon/ds620.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 138 drivers/hwmon/ds620.c return sprintf(buf, "%d\n", ((data->temp[attr->index] / 8) * 625) / 10); attr 147 drivers/hwmon/ds620.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 159 drivers/hwmon/ds620.c data->temp[attr->index] = val; attr 160 drivers/hwmon/ds620.c i2c_smbus_write_word_swapped(client, DS620_REG_TEMP[attr->index], attr 161 drivers/hwmon/ds620.c data->temp[attr->index]); attr 169 drivers/hwmon/ds620.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 186 drivers/hwmon/ds620.c new_conf &= ~attr->index; attr 194 drivers/hwmon/ds620.c return sprintf(buf, "%d\n", !!(conf & attr->index)); attr 204 drivers/hwmon/ds620.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 205 drivers/hwmon/ds620.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 206 drivers/hwmon/ds620.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 207 drivers/hwmon/ds620.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 208 drivers/hwmon/ds620.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 35 drivers/hwmon/emc1403.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 38 drivers/hwmon/emc1403.c struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); attr 49 drivers/hwmon/emc1403.c static ssize_t bit_show(struct device *dev, struct device_attribute *attr, attr 52 drivers/hwmon/emc1403.c struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); attr 63 drivers/hwmon/emc1403.c static ssize_t temp_store(struct device *dev, struct device_attribute *attr, attr 66 drivers/hwmon/emc1403.c struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); attr 80 drivers/hwmon/emc1403.c static ssize_t bit_store(struct device *dev, struct device_attribute *attr, attr 83 drivers/hwmon/emc1403.c struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); attr 99 drivers/hwmon/emc1403.c struct device_attribute *attr, char *buf, attr 102 drivers/hwmon/emc1403.c struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); attr 120 drivers/hwmon/emc1403.c static ssize_t hyst_show(struct device *dev, struct device_attribute *attr, attr 123 drivers/hwmon/emc1403.c return show_hyst_common(dev, attr, buf, false); attr 127 drivers/hwmon/emc1403.c struct device_attribute *attr, char *buf) attr 129 drivers/hwmon/emc1403.c return show_hyst_common(dev, attr, buf, true); attr 132 drivers/hwmon/emc1403.c static ssize_t hyst_store(struct device *dev, struct device_attribute *attr, attr 135 drivers/hwmon/emc1403.c struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); attr 215 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 216 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 217 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 218 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 219 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_min_hyst.dev_attr.attr, attr 220 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 221 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 223 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 224 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 225 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 226 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 227 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_min_hyst.dev_attr.attr, attr 228 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 229 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_crit_hyst.dev_attr.attr, attr 231 drivers/hwmon/emc1403.c &sensor_dev_attr_power_state.dev_attr.attr, attr 240 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 241 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 242 drivers/hwmon/emc1403.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 244 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 245 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 246 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 247 drivers/hwmon/emc1403.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 249 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 250 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 251 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 252 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 253 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 254 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 255 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 256 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 257 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_min_hyst.dev_attr.attr, attr 258 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 259 drivers/hwmon/emc1403.c &sensor_dev_attr_temp3_crit_hyst.dev_attr.attr, attr 268 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 269 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 270 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_crit.dev_attr.attr, attr 271 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 272 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 273 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_min_alarm.dev_attr.attr, attr 274 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 275 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_crit_alarm.dev_attr.attr, attr 276 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_min_hyst.dev_attr.attr, attr 277 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_max_hyst.dev_attr.attr, attr 278 drivers/hwmon/emc1403.c &sensor_dev_attr_temp4_crit_hyst.dev_attr.attr, attr 305 drivers/hwmon/emc1403.c &emc1402_alarms[0].dev_attr.attr, attr 306 drivers/hwmon/emc1403.c &emc1402_alarms[1].dev_attr.attr, attr 307 drivers/hwmon/emc1403.c &emc1402_alarms[2].dev_attr.attr, attr 308 drivers/hwmon/emc1403.c &emc1402_alarms[3].dev_attr.attr, attr 309 drivers/hwmon/emc1403.c &emc1402_alarms[4].dev_attr.attr, attr 310 drivers/hwmon/emc1403.c &emc1402_alarms[5].dev_attr.attr, attr 311 drivers/hwmon/emc1403.c &emc1402_alarms[6].dev_attr.attr, attr 499 drivers/hwmon/emc2103.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 500 drivers/hwmon/emc2103.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 501 drivers/hwmon/emc2103.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 502 drivers/hwmon/emc2103.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 503 drivers/hwmon/emc2103.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 504 drivers/hwmon/emc2103.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 505 drivers/hwmon/emc2103.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 506 drivers/hwmon/emc2103.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 507 drivers/hwmon/emc2103.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 508 drivers/hwmon/emc2103.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 509 drivers/hwmon/emc2103.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 510 drivers/hwmon/emc2103.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 511 drivers/hwmon/emc2103.c &dev_attr_fan1_input.attr, attr 512 drivers/hwmon/emc2103.c &dev_attr_fan1_div.attr, attr 513 drivers/hwmon/emc2103.c &dev_attr_fan1_target.attr, attr 514 drivers/hwmon/emc2103.c &dev_attr_fan1_fault.attr, attr 515 drivers/hwmon/emc2103.c &dev_attr_pwm1_enable.attr, attr 521 drivers/hwmon/emc2103.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 522 drivers/hwmon/emc2103.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 523 drivers/hwmon/emc2103.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 524 drivers/hwmon/emc2103.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 525 drivers/hwmon/emc2103.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 526 drivers/hwmon/emc2103.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 532 drivers/hwmon/emc2103.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 533 drivers/hwmon/emc2103.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 534 drivers/hwmon/emc2103.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 535 drivers/hwmon/emc2103.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 536 drivers/hwmon/emc2103.c &sensor_dev_attr_temp4_min_alarm.dev_attr.attr, attr 537 drivers/hwmon/emc2103.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 353 drivers/hwmon/emc6w201.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 354 drivers/hwmon/emc6w201.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 355 drivers/hwmon/emc6w201.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 356 drivers/hwmon/emc6w201.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 357 drivers/hwmon/emc6w201.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 358 drivers/hwmon/emc6w201.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 359 drivers/hwmon/emc6w201.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 360 drivers/hwmon/emc6w201.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 361 drivers/hwmon/emc6w201.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 362 drivers/hwmon/emc6w201.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 363 drivers/hwmon/emc6w201.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 364 drivers/hwmon/emc6w201.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 365 drivers/hwmon/emc6w201.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 366 drivers/hwmon/emc6w201.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 367 drivers/hwmon/emc6w201.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 368 drivers/hwmon/emc6w201.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 369 drivers/hwmon/emc6w201.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 370 drivers/hwmon/emc6w201.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 372 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 373 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 374 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 375 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 376 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 377 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 378 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 379 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 380 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 381 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 382 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 383 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 384 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 385 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp5_min.dev_attr.attr, attr 386 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 387 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 388 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp6_min.dev_attr.attr, attr 389 drivers/hwmon/emc6w201.c &sensor_dev_attr_temp6_max.dev_attr.attr, attr 391 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 392 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 393 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 394 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 395 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 396 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 397 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 398 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 399 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 400 drivers/hwmon/emc6w201.c &sensor_dev_attr_fan5_min.dev_attr.attr, attr 423 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 424 drivers/hwmon/f71805f.c int nr = attr->index; attr 433 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 434 drivers/hwmon/f71805f.c int nr = attr->index; attr 443 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 444 drivers/hwmon/f71805f.c int nr = attr->index; attr 453 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 454 drivers/hwmon/f71805f.c int nr = attr->index; attr 474 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 475 drivers/hwmon/f71805f.c int nr = attr->index; attr 495 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 496 drivers/hwmon/f71805f.c int nr = attr->index; attr 505 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 506 drivers/hwmon/f71805f.c int nr = attr->index; attr 515 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 516 drivers/hwmon/f71805f.c int nr = attr->index; attr 525 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 526 drivers/hwmon/f71805f.c int nr = attr->index; attr 546 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 547 drivers/hwmon/f71805f.c int nr = attr->index; attr 567 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 568 drivers/hwmon/f71805f.c int nr = attr->index; attr 577 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 578 drivers/hwmon/f71805f.c int nr = attr->index; attr 587 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 588 drivers/hwmon/f71805f.c int nr = attr->index; attr 597 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 598 drivers/hwmon/f71805f.c int nr = attr->index; attr 618 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 619 drivers/hwmon/f71805f.c int nr = attr->index; attr 640 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 641 drivers/hwmon/f71805f.c int nr = attr->index; attr 650 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 651 drivers/hwmon/f71805f.c int nr = attr->index; attr 672 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 673 drivers/hwmon/f71805f.c int nr = attr->index; attr 682 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 683 drivers/hwmon/f71805f.c int nr = attr->index; attr 692 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 693 drivers/hwmon/f71805f.c int nr = attr->index; attr 718 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 719 drivers/hwmon/f71805f.c int nr = attr->index; attr 768 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 769 drivers/hwmon/f71805f.c int nr = attr->index; attr 790 drivers/hwmon/f71805f.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 791 drivers/hwmon/f71805f.c int pwmnr = attr->nr; attr 792 drivers/hwmon/f71805f.c int apnr = attr->index; attr 803 drivers/hwmon/f71805f.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 804 drivers/hwmon/f71805f.c int pwmnr = attr->nr; attr 805 drivers/hwmon/f71805f.c int apnr = attr->index; attr 827 drivers/hwmon/f71805f.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 828 drivers/hwmon/f71805f.c int pwmnr = attr->nr; attr 829 drivers/hwmon/f71805f.c int apnr = attr->index; attr 840 drivers/hwmon/f71805f.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 841 drivers/hwmon/f71805f.c int pwmnr = attr->nr; attr 842 drivers/hwmon/f71805f.c int apnr = attr->index; attr 863 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 864 drivers/hwmon/f71805f.c int nr = attr->index; attr 873 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 874 drivers/hwmon/f71805f.c int nr = attr->index; attr 883 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 884 drivers/hwmon/f71805f.c int nr = attr->index; attr 893 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 894 drivers/hwmon/f71805f.c int nr = attr->index; attr 904 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 905 drivers/hwmon/f71805f.c int nr = attr->index; attr 925 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 926 drivers/hwmon/f71805f.c int nr = attr->index; attr 970 drivers/hwmon/f71805f.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 971 drivers/hwmon/f71805f.c int bitnr = attr->index; attr 1179 drivers/hwmon/f71805f.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 1180 drivers/hwmon/f71805f.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 1181 drivers/hwmon/f71805f.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 1182 drivers/hwmon/f71805f.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 1183 drivers/hwmon/f71805f.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 1184 drivers/hwmon/f71805f.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 1185 drivers/hwmon/f71805f.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 1186 drivers/hwmon/f71805f.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 1187 drivers/hwmon/f71805f.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 1188 drivers/hwmon/f71805f.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 1189 drivers/hwmon/f71805f.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 1190 drivers/hwmon/f71805f.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 1191 drivers/hwmon/f71805f.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 1192 drivers/hwmon/f71805f.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 1193 drivers/hwmon/f71805f.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 1194 drivers/hwmon/f71805f.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 1195 drivers/hwmon/f71805f.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 1196 drivers/hwmon/f71805f.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 1197 drivers/hwmon/f71805f.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 1198 drivers/hwmon/f71805f.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 1199 drivers/hwmon/f71805f.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 1201 drivers/hwmon/f71805f.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1202 drivers/hwmon/f71805f.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1203 drivers/hwmon/f71805f.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1204 drivers/hwmon/f71805f.c &sensor_dev_attr_fan1_target.dev_attr.attr, attr 1205 drivers/hwmon/f71805f.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1206 drivers/hwmon/f71805f.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1207 drivers/hwmon/f71805f.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1208 drivers/hwmon/f71805f.c &sensor_dev_attr_fan2_target.dev_attr.attr, attr 1209 drivers/hwmon/f71805f.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1210 drivers/hwmon/f71805f.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1211 drivers/hwmon/f71805f.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 1212 drivers/hwmon/f71805f.c &sensor_dev_attr_fan3_target.dev_attr.attr, attr 1214 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1215 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1216 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_mode.dev_attr.attr, attr 1217 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1218 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1219 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_mode.dev_attr.attr, attr 1220 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1221 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1222 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_mode.dev_attr.attr, attr 1224 drivers/hwmon/f71805f.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1225 drivers/hwmon/f71805f.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1226 drivers/hwmon/f71805f.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 1227 drivers/hwmon/f71805f.c &sensor_dev_attr_temp1_type.dev_attr.attr, attr 1228 drivers/hwmon/f71805f.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1229 drivers/hwmon/f71805f.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1230 drivers/hwmon/f71805f.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 1231 drivers/hwmon/f71805f.c &sensor_dev_attr_temp2_type.dev_attr.attr, attr 1232 drivers/hwmon/f71805f.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1233 drivers/hwmon/f71805f.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1234 drivers/hwmon/f71805f.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 1235 drivers/hwmon/f71805f.c &sensor_dev_attr_temp3_type.dev_attr.attr, attr 1237 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_auto_point1_temp.dev_attr.attr, attr 1238 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_auto_point1_fan.dev_attr.attr, attr 1239 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_auto_point2_temp.dev_attr.attr, attr 1240 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_auto_point2_fan.dev_attr.attr, attr 1241 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_auto_point3_temp.dev_attr.attr, attr 1242 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_auto_point3_fan.dev_attr.attr, attr 1243 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_auto_point1_temp.dev_attr.attr, attr 1244 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_auto_point1_fan.dev_attr.attr, attr 1245 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_auto_point2_temp.dev_attr.attr, attr 1246 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_auto_point2_fan.dev_attr.attr, attr 1247 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_auto_point3_temp.dev_attr.attr, attr 1248 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_auto_point3_fan.dev_attr.attr, attr 1249 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_auto_point1_temp.dev_attr.attr, attr 1250 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_auto_point1_fan.dev_attr.attr, attr 1251 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_auto_point2_temp.dev_attr.attr, attr 1252 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_auto_point2_fan.dev_attr.attr, attr 1253 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_auto_point3_temp.dev_attr.attr, attr 1254 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_auto_point3_fan.dev_attr.attr, attr 1256 drivers/hwmon/f71805f.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 1257 drivers/hwmon/f71805f.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 1258 drivers/hwmon/f71805f.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 1259 drivers/hwmon/f71805f.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 1260 drivers/hwmon/f71805f.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 1261 drivers/hwmon/f71805f.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 1262 drivers/hwmon/f71805f.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 1263 drivers/hwmon/f71805f.c &dev_attr_alarms_in.attr, attr 1264 drivers/hwmon/f71805f.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1265 drivers/hwmon/f71805f.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1266 drivers/hwmon/f71805f.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1267 drivers/hwmon/f71805f.c &dev_attr_alarms_temp.attr, attr 1268 drivers/hwmon/f71805f.c &dev_attr_alarms_fan.attr, attr 1270 drivers/hwmon/f71805f.c &dev_attr_name.attr, attr 1280 drivers/hwmon/f71805f.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 1281 drivers/hwmon/f71805f.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 1282 drivers/hwmon/f71805f.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 1283 drivers/hwmon/f71805f.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 1286 drivers/hwmon/f71805f.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 1287 drivers/hwmon/f71805f.c &sensor_dev_attr_in8_max.dev_attr.attr, attr 1288 drivers/hwmon/f71805f.c &sensor_dev_attr_in8_min.dev_attr.attr, attr 1289 drivers/hwmon/f71805f.c &sensor_dev_attr_in8_alarm.dev_attr.attr, attr 1292 drivers/hwmon/f71805f.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 1293 drivers/hwmon/f71805f.c &sensor_dev_attr_in9_max.dev_attr.attr, attr 1294 drivers/hwmon/f71805f.c &sensor_dev_attr_in9_min.dev_attr.attr, attr 1295 drivers/hwmon/f71805f.c &sensor_dev_attr_in9_alarm.dev_attr.attr, attr 1298 drivers/hwmon/f71805f.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 1299 drivers/hwmon/f71805f.c &sensor_dev_attr_in10_max.dev_attr.attr, attr 1300 drivers/hwmon/f71805f.c &sensor_dev_attr_in10_min.dev_attr.attr, attr 1301 drivers/hwmon/f71805f.c &sensor_dev_attr_in10_alarm.dev_attr.attr, attr 1318 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 1319 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 1320 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3_freq.dev_attr.attr, attr 1330 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1331 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1332 drivers/hwmon/f71805f.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 2210 drivers/hwmon/f71882fg.c struct sensor_device_attribute_2 *attr, int count) attr 2215 drivers/hwmon/f71882fg.c err = device_create_file(&pdev->dev, &attr[i].dev_attr); attr 2223 drivers/hwmon/f71882fg.c struct sensor_device_attribute_2 *attr, int count) attr 2228 drivers/hwmon/f71882fg.c device_remove_file(&pdev->dev, &attr[i].dev_attr); attr 285 drivers/hwmon/f75375s.c static ssize_t set_fan_min(struct device *dev, struct device_attribute *attr, attr 288 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 305 drivers/hwmon/f75375s.c static ssize_t set_fan_target(struct device *dev, struct device_attribute *attr, attr 308 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 330 drivers/hwmon/f75375s.c static ssize_t set_pwm(struct device *dev, struct device_attribute *attr, attr 333 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 355 drivers/hwmon/f75375s.c *attr, char *buf) attr 357 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 426 drivers/hwmon/f75375s.c static ssize_t set_pwm_enable(struct device *dev, struct device_attribute *attr, attr 429 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 445 drivers/hwmon/f75375s.c static ssize_t set_pwm_mode(struct device *dev, struct device_attribute *attr, attr 448 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 490 drivers/hwmon/f75375s.c *attr, char *buf) attr 492 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 498 drivers/hwmon/f75375s.c *attr, char *buf) attr 500 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 508 drivers/hwmon/f75375s.c static ssize_t show_in(struct device *dev, struct device_attribute *attr, attr 511 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 516 drivers/hwmon/f75375s.c static ssize_t show_in_max(struct device *dev, struct device_attribute *attr, attr 519 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 524 drivers/hwmon/f75375s.c static ssize_t show_in_min(struct device *dev, struct device_attribute *attr, attr 527 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 532 drivers/hwmon/f75375s.c static ssize_t set_in_max(struct device *dev, struct device_attribute *attr, attr 535 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 553 drivers/hwmon/f75375s.c static ssize_t set_in_min(struct device *dev, struct device_attribute *attr, attr 556 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 577 drivers/hwmon/f75375s.c static ssize_t show_temp11(struct device *dev, struct device_attribute *attr, attr 580 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 585 drivers/hwmon/f75375s.c static ssize_t show_temp_max(struct device *dev, struct device_attribute *attr, attr 588 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 594 drivers/hwmon/f75375s.c struct device_attribute *attr, char *buf) attr 596 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 601 drivers/hwmon/f75375s.c static ssize_t set_temp_max(struct device *dev, struct device_attribute *attr, attr 604 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 623 drivers/hwmon/f75375s.c struct device_attribute *attr, const char *buf, size_t count) attr 625 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index; attr 645 drivers/hwmon/f75375s.c static ssize_t show_##thing(struct device *dev, struct device_attribute *attr, \ attr 648 drivers/hwmon/f75375s.c int nr = to_sensor_dev_attr(attr)->index;\ attr 714 drivers/hwmon/f75375s.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 715 drivers/hwmon/f75375s.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 716 drivers/hwmon/f75375s.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 717 drivers/hwmon/f75375s.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 718 drivers/hwmon/f75375s.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 719 drivers/hwmon/f75375s.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 720 drivers/hwmon/f75375s.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 721 drivers/hwmon/f75375s.c &sensor_dev_attr_fan1_max.dev_attr.attr, attr 722 drivers/hwmon/f75375s.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 723 drivers/hwmon/f75375s.c &sensor_dev_attr_fan1_target.dev_attr.attr, attr 724 drivers/hwmon/f75375s.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 725 drivers/hwmon/f75375s.c &sensor_dev_attr_fan2_max.dev_attr.attr, attr 726 drivers/hwmon/f75375s.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 727 drivers/hwmon/f75375s.c &sensor_dev_attr_fan2_target.dev_attr.attr, attr 728 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 729 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 730 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm1_mode.dev_attr.attr, attr 731 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 732 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 733 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm2_mode.dev_attr.attr, attr 734 drivers/hwmon/f75375s.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 735 drivers/hwmon/f75375s.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 736 drivers/hwmon/f75375s.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 737 drivers/hwmon/f75375s.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 738 drivers/hwmon/f75375s.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 739 drivers/hwmon/f75375s.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 740 drivers/hwmon/f75375s.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 741 drivers/hwmon/f75375s.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 742 drivers/hwmon/f75375s.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 743 drivers/hwmon/f75375s.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 744 drivers/hwmon/f75375s.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 745 drivers/hwmon/f75375s.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 843 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm1_mode.dev_attr.attr, attr 848 drivers/hwmon/f75375s.c &sensor_dev_attr_pwm2_mode.dev_attr.attr, attr 75 drivers/hwmon/fam15h_power.c struct device_attribute *attr, char *buf) attr 130 drivers/hwmon/fam15h_power.c struct device_attribute *attr, char *buf) attr 204 drivers/hwmon/fam15h_power.c struct device_attribute *attr, char *buf) attr 260 drivers/hwmon/fam15h_power.c struct device_attribute *attr, attr 269 drivers/hwmon/fam15h_power.c struct device_attribute *attr, attr 317 drivers/hwmon/fam15h_power.c fam15h_power_attrs[n++] = &dev_attr_power1_crit.attr; attr 321 drivers/hwmon/fam15h_power.c fam15h_power_attrs[n++] = &dev_attr_power1_input.attr; attr 324 drivers/hwmon/fam15h_power.c fam15h_power_attrs[n++] = &dev_attr_power1_average.attr; attr 325 drivers/hwmon/fam15h_power.c fam15h_power_attrs[n++] = &dev_attr_power1_average_interval.attr; attr 1178 drivers/hwmon/fschmd.c !strcmp(fschmd_fan_attr[i].dev_attr.attr.name, attr 565 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 566 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 567 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 568 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 569 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 570 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 571 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp7_input.dev_attr.attr, attr 572 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp8_input.dev_attr.attr, attr 573 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp9_input.dev_attr.attr, attr 574 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp10_input.dev_attr.attr, attr 575 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp11_input.dev_attr.attr, attr 576 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp12_input.dev_attr.attr, attr 577 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp13_input.dev_attr.attr, attr 578 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp14_input.dev_attr.attr, attr 579 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp15_input.dev_attr.attr, attr 580 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp16_input.dev_attr.attr, attr 582 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 583 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 584 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 585 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 586 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp5_fault.dev_attr.attr, attr 587 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp6_fault.dev_attr.attr, attr 588 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp7_fault.dev_attr.attr, attr 589 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp8_fault.dev_attr.attr, attr 590 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp9_fault.dev_attr.attr, attr 591 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp10_fault.dev_attr.attr, attr 592 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp11_fault.dev_attr.attr, attr 593 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp12_fault.dev_attr.attr, attr 594 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp13_fault.dev_attr.attr, attr 595 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp14_fault.dev_attr.attr, attr 596 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp15_fault.dev_attr.attr, attr 597 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp16_fault.dev_attr.attr, attr 599 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 600 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 601 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 602 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp4_alarm.dev_attr.attr, attr 603 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp5_alarm.dev_attr.attr, attr 604 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp6_alarm.dev_attr.attr, attr 605 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp7_alarm.dev_attr.attr, attr 606 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp8_alarm.dev_attr.attr, attr 607 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp9_alarm.dev_attr.attr, attr 608 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp10_alarm.dev_attr.attr, attr 609 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp11_alarm.dev_attr.attr, attr 610 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp12_alarm.dev_attr.attr, attr 611 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp13_alarm.dev_attr.attr, attr 612 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp14_alarm.dev_attr.attr, attr 613 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp15_alarm.dev_attr.attr, attr 614 drivers/hwmon/ftsteutates.c &sensor_dev_attr_temp16_alarm.dev_attr.attr, attr 647 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 648 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 649 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 650 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 651 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 652 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan6_input.dev_attr.attr, attr 653 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan7_input.dev_attr.attr, attr 654 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan8_input.dev_attr.attr, attr 656 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan1_source.dev_attr.attr, attr 657 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan2_source.dev_attr.attr, attr 658 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan3_source.dev_attr.attr, attr 659 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan4_source.dev_attr.attr, attr 660 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan5_source.dev_attr.attr, attr 661 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan6_source.dev_attr.attr, attr 662 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan7_source.dev_attr.attr, attr 663 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan8_source.dev_attr.attr, attr 665 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 666 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 667 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 668 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 669 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan5_alarm.dev_attr.attr, attr 670 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan6_alarm.dev_attr.attr, attr 671 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan7_alarm.dev_attr.attr, attr 672 drivers/hwmon/ftsteutates.c &sensor_dev_attr_fan8_alarm.dev_attr.attr, attr 682 drivers/hwmon/ftsteutates.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 683 drivers/hwmon/ftsteutates.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 684 drivers/hwmon/ftsteutates.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 685 drivers/hwmon/ftsteutates.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 161 drivers/hwmon/g760a.c &dev_attr_pwm1.attr, attr 162 drivers/hwmon/g760a.c &dev_attr_fan1_input.attr, attr 163 drivers/hwmon/g760a.c &dev_attr_fan1_alarm.attr, attr 1002 drivers/hwmon/g762.c &dev_attr_fan1_input.attr, attr 1003 drivers/hwmon/g762.c &dev_attr_fan1_alarm.attr, attr 1004 drivers/hwmon/g762.c &dev_attr_fan1_fault.attr, attr 1005 drivers/hwmon/g762.c &dev_attr_fan1_target.attr, attr 1006 drivers/hwmon/g762.c &dev_attr_fan1_div.attr, attr 1007 drivers/hwmon/g762.c &dev_attr_fan1_pulses.attr, attr 1008 drivers/hwmon/g762.c &dev_attr_pwm1.attr, attr 1009 drivers/hwmon/g762.c &dev_attr_pwm1_mode.attr, attr 1010 drivers/hwmon/g762.c &dev_attr_pwm1_enable.attr, attr 228 drivers/hwmon/gl518sm.c struct device_attribute *attr, char *buf) \ attr 255 drivers/hwmon/gl518sm.c struct device_attribute *attr, char *buf) attr 257 drivers/hwmon/gl518sm.c int nr = to_sensor_dev_attr(attr)->index; attr 263 drivers/hwmon/gl518sm.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 266 drivers/hwmon/gl518sm.c int nr = to_sensor_dev_attr(attr)->index; attr 272 drivers/hwmon/gl518sm.c static ssize_t fan_div_show(struct device *dev, struct device_attribute *attr, attr 275 drivers/hwmon/gl518sm.c int nr = to_sensor_dev_attr(attr)->index; attr 282 drivers/hwmon/gl518sm.c struct device_attribute *attr, \ attr 301 drivers/hwmon/gl518sm.c struct device_attribute *attr, \ attr 341 drivers/hwmon/gl518sm.c struct device_attribute *attr, const char *buf, attr 346 drivers/hwmon/gl518sm.c int nr = to_sensor_dev_attr(attr)->index; attr 375 drivers/hwmon/gl518sm.c struct device_attribute *attr, const char *buf, attr 380 drivers/hwmon/gl518sm.c int nr = to_sensor_dev_attr(attr)->index; attr 448 drivers/hwmon/gl518sm.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 451 drivers/hwmon/gl518sm.c int bitnr = to_sensor_dev_attr(attr)->index; attr 464 drivers/hwmon/gl518sm.c static ssize_t beep_show(struct device *dev, struct device_attribute *attr, attr 467 drivers/hwmon/gl518sm.c int bitnr = to_sensor_dev_attr(attr)->index; attr 472 drivers/hwmon/gl518sm.c static ssize_t beep_store(struct device *dev, struct device_attribute *attr, attr 477 drivers/hwmon/gl518sm.c int bitnr = to_sensor_dev_attr(attr)->index; attr 508 drivers/hwmon/gl518sm.c &dev_attr_in3_input.attr, attr 509 drivers/hwmon/gl518sm.c &dev_attr_in0_min.attr, attr 510 drivers/hwmon/gl518sm.c &dev_attr_in1_min.attr, attr 511 drivers/hwmon/gl518sm.c &dev_attr_in2_min.attr, attr 512 drivers/hwmon/gl518sm.c &dev_attr_in3_min.attr, attr 513 drivers/hwmon/gl518sm.c &dev_attr_in0_max.attr, attr 514 drivers/hwmon/gl518sm.c &dev_attr_in1_max.attr, attr 515 drivers/hwmon/gl518sm.c &dev_attr_in2_max.attr, attr 516 drivers/hwmon/gl518sm.c &dev_attr_in3_max.attr, attr 517 drivers/hwmon/gl518sm.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 518 drivers/hwmon/gl518sm.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 519 drivers/hwmon/gl518sm.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 520 drivers/hwmon/gl518sm.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 521 drivers/hwmon/gl518sm.c &sensor_dev_attr_in0_beep.dev_attr.attr, attr 522 drivers/hwmon/gl518sm.c &sensor_dev_attr_in1_beep.dev_attr.attr, attr 523 drivers/hwmon/gl518sm.c &sensor_dev_attr_in2_beep.dev_attr.attr, attr 524 drivers/hwmon/gl518sm.c &sensor_dev_attr_in3_beep.dev_attr.attr, attr 526 drivers/hwmon/gl518sm.c &dev_attr_fan1_auto.attr, attr 527 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 528 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 529 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 530 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 531 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 532 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 533 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 534 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 535 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan1_beep.dev_attr.attr, attr 536 drivers/hwmon/gl518sm.c &sensor_dev_attr_fan2_beep.dev_attr.attr, attr 538 drivers/hwmon/gl518sm.c &dev_attr_temp1_input.attr, attr 539 drivers/hwmon/gl518sm.c &dev_attr_temp1_max.attr, attr 540 drivers/hwmon/gl518sm.c &dev_attr_temp1_max_hyst.attr, attr 541 drivers/hwmon/gl518sm.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 542 drivers/hwmon/gl518sm.c &sensor_dev_attr_temp1_beep.dev_attr.attr, attr 544 drivers/hwmon/gl518sm.c &dev_attr_alarms.attr, attr 545 drivers/hwmon/gl518sm.c &dev_attr_beep_enable.attr, attr 546 drivers/hwmon/gl518sm.c &dev_attr_beep_mask.attr, attr 555 drivers/hwmon/gl518sm.c &dev_attr_in0_input.attr, attr 556 drivers/hwmon/gl518sm.c &dev_attr_in1_input.attr, attr 557 drivers/hwmon/gl518sm.c &dev_attr_in2_input.attr, attr 190 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 206 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 208 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 218 drivers/hwmon/gl520sm.c static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, attr 221 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 231 drivers/hwmon/gl520sm.c static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, attr 234 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 244 drivers/hwmon/gl520sm.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 249 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 278 drivers/hwmon/gl520sm.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 283 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 339 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 341 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 348 drivers/hwmon/gl520sm.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 351 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 358 drivers/hwmon/gl520sm.c static ssize_t fan_div_show(struct device *dev, struct device_attribute *attr, attr 361 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 368 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 375 drivers/hwmon/gl520sm.c struct device_attribute *attr, const char *buf, attr 380 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 415 drivers/hwmon/gl520sm.c struct device_attribute *attr, const char *buf, attr 420 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 465 drivers/hwmon/gl520sm.c struct device_attribute *attr, const char *buf, attr 502 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 504 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 511 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 513 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 520 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 522 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 529 drivers/hwmon/gl520sm.c struct device_attribute *attr, const char *buf, attr 534 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 550 drivers/hwmon/gl520sm.c struct device_attribute *attr, attr 555 drivers/hwmon/gl520sm.c int n = to_sensor_dev_attr(attr)->index; attr 578 drivers/hwmon/gl520sm.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 586 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 593 drivers/hwmon/gl520sm.c struct device_attribute *attr, char *buf) attr 600 drivers/hwmon/gl520sm.c struct device_attribute *attr, attr 625 drivers/hwmon/gl520sm.c struct device_attribute *attr, const char *buf, attr 649 drivers/hwmon/gl520sm.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 652 drivers/hwmon/gl520sm.c int bit_nr = to_sensor_dev_attr(attr)->index; attr 668 drivers/hwmon/gl520sm.c static ssize_t beep_show(struct device *dev, struct device_attribute *attr, attr 671 drivers/hwmon/gl520sm.c int bitnr = to_sensor_dev_attr(attr)->index; attr 677 drivers/hwmon/gl520sm.c static ssize_t beep_store(struct device *dev, struct device_attribute *attr, attr 682 drivers/hwmon/gl520sm.c int bitnr = to_sensor_dev_attr(attr)->index; attr 715 drivers/hwmon/gl520sm.c &dev_attr_cpu0_vid.attr, attr 717 drivers/hwmon/gl520sm.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 718 drivers/hwmon/gl520sm.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 719 drivers/hwmon/gl520sm.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 720 drivers/hwmon/gl520sm.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 721 drivers/hwmon/gl520sm.c &sensor_dev_attr_in0_beep.dev_attr.attr, attr 722 drivers/hwmon/gl520sm.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 723 drivers/hwmon/gl520sm.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 724 drivers/hwmon/gl520sm.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 725 drivers/hwmon/gl520sm.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 726 drivers/hwmon/gl520sm.c &sensor_dev_attr_in1_beep.dev_attr.attr, attr 727 drivers/hwmon/gl520sm.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 728 drivers/hwmon/gl520sm.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 729 drivers/hwmon/gl520sm.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 730 drivers/hwmon/gl520sm.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 731 drivers/hwmon/gl520sm.c &sensor_dev_attr_in2_beep.dev_attr.attr, attr 732 drivers/hwmon/gl520sm.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 733 drivers/hwmon/gl520sm.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 734 drivers/hwmon/gl520sm.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 735 drivers/hwmon/gl520sm.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 736 drivers/hwmon/gl520sm.c &sensor_dev_attr_in3_beep.dev_attr.attr, attr 738 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 739 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 740 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 741 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 742 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan1_beep.dev_attr.attr, attr 743 drivers/hwmon/gl520sm.c &dev_attr_fan1_off.attr, attr 744 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 745 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 746 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 747 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 748 drivers/hwmon/gl520sm.c &sensor_dev_attr_fan2_beep.dev_attr.attr, attr 750 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 751 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 752 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 753 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 754 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp1_beep.dev_attr.attr, attr 756 drivers/hwmon/gl520sm.c &dev_attr_alarms.attr, attr 757 drivers/hwmon/gl520sm.c &dev_attr_beep_enable.attr, attr 758 drivers/hwmon/gl520sm.c &dev_attr_beep_mask.attr, attr 767 drivers/hwmon/gl520sm.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 768 drivers/hwmon/gl520sm.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 769 drivers/hwmon/gl520sm.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 770 drivers/hwmon/gl520sm.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 771 drivers/hwmon/gl520sm.c &sensor_dev_attr_in4_beep.dev_attr.attr, attr 776 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 777 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 778 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 779 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 780 drivers/hwmon/gl520sm.c &sensor_dev_attr_temp2_beep.dev_attr.attr, attr 71 drivers/hwmon/gpio-fan.c struct device_attribute *attr, char *buf) attr 165 drivers/hwmon/gpio-fan.c static ssize_t pwm1_show(struct device *dev, struct device_attribute *attr, attr 174 drivers/hwmon/gpio-fan.c static ssize_t pwm1_store(struct device *dev, struct device_attribute *attr, attr 202 drivers/hwmon/gpio-fan.c struct device_attribute *attr, char *buf) attr 210 drivers/hwmon/gpio-fan.c struct device_attribute *attr, attr 236 drivers/hwmon/gpio-fan.c struct device_attribute *attr, char *buf) attr 242 drivers/hwmon/gpio-fan.c struct device_attribute *attr, char *buf) attr 250 drivers/hwmon/gpio-fan.c struct device_attribute *attr, char *buf) attr 259 drivers/hwmon/gpio-fan.c struct device_attribute *attr, char *buf) attr 266 drivers/hwmon/gpio-fan.c static ssize_t set_rpm(struct device *dev, struct device_attribute *attr, attr 300 drivers/hwmon/gpio-fan.c struct attribute *attr, int index) attr 310 drivers/hwmon/gpio-fan.c return attr->mode; attr 314 drivers/hwmon/gpio-fan.c &dev_attr_fan1_alarm.attr, /* 0 */ attr 315 drivers/hwmon/gpio-fan.c &dev_attr_pwm1.attr, /* 1 */ attr 316 drivers/hwmon/gpio-fan.c &dev_attr_pwm1_enable.attr, attr 317 drivers/hwmon/gpio-fan.c &dev_attr_pwm1_mode.attr, attr 318 drivers/hwmon/gpio-fan.c &dev_attr_fan1_input.attr, attr 319 drivers/hwmon/gpio-fan.c &dev_attr_fan1_target.attr, attr 320 drivers/hwmon/gpio-fan.c &dev_attr_fan1_min.attr, attr 321 drivers/hwmon/gpio-fan.c &dev_attr_fan1_max.attr, attr 162 drivers/hwmon/hih6130.c struct device_attribute *attr, attr 184 drivers/hwmon/hih6130.c struct device_attribute *attr, char *buf) attr 200 drivers/hwmon/hih6130.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 201 drivers/hwmon/hih6130.c &sensor_dev_attr_humidity1_input.dev_attr.attr, attr 47 drivers/hwmon/hwmon.c u32 attr; attr 54 drivers/hwmon/hwmon.c #define to_dev_attr(a) container_of(a, struct device_attribute, attr) attr 67 drivers/hwmon/hwmon.c name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 74 drivers/hwmon/hwmon.c &dev_attr_name.attr, attr 79 drivers/hwmon/hwmon.c struct attribute *attr, int n) attr 86 drivers/hwmon/hwmon.c return attr->mode; attr 205 drivers/hwmon/hwmon.c ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index, attr 225 drivers/hwmon/hwmon.c ret = hattr->ops->read_string(dev, hattr->type, hattr->attr, attr 248 drivers/hwmon/hwmon.c ret = hattr->ops->write(dev, hattr->type, hattr->attr, hattr->index, attr 259 drivers/hwmon/hwmon.c static bool is_string_attr(enum hwmon_sensor_types type, u32 attr) attr 261 drivers/hwmon/hwmon.c return (type == hwmon_temp && attr == hwmon_temp_label) || attr 262 drivers/hwmon/hwmon.c (type == hwmon_in && attr == hwmon_in_label) || attr 263 drivers/hwmon/hwmon.c (type == hwmon_curr && attr == hwmon_curr_label) || attr 264 drivers/hwmon/hwmon.c (type == hwmon_power && attr == hwmon_power_label) || attr 265 drivers/hwmon/hwmon.c (type == hwmon_energy && attr == hwmon_energy_label) || attr 266 drivers/hwmon/hwmon.c (type == hwmon_humidity && attr == hwmon_humidity_label) || attr 267 drivers/hwmon/hwmon.c (type == hwmon_fan && attr == hwmon_fan_label); attr 272 drivers/hwmon/hwmon.c u32 attr, attr 282 drivers/hwmon/hwmon.c bool is_string = is_string_attr(type, attr); attr 288 drivers/hwmon/hwmon.c mode = ops->is_visible(drvdata, type, attr, index); attr 311 drivers/hwmon/hwmon.c hattr->attr = attr; attr 319 drivers/hwmon/hwmon.c a = &dattr->attr; attr 528 drivers/hwmon/hwmon.c u32 attr; attr 533 drivers/hwmon/hwmon.c attr = __ffs(attr_mask); attr 534 drivers/hwmon/hwmon.c attr_mask &= ~BIT(attr); attr 535 drivers/hwmon/hwmon.c if (attr >= template_size) attr 537 drivers/hwmon/hwmon.c a = hwmon_genattr(drvdata, info->type, attr, i, attr 538 drivers/hwmon/hwmon.c templates[attr], ops); attr 85 drivers/hwmon/i5500_temp.c &dev_attr_temp1_input.attr, attr 86 drivers/hwmon/i5500_temp.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 87 drivers/hwmon/i5500_temp.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 88 drivers/hwmon/i5500_temp.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 89 drivers/hwmon/i5500_temp.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 90 drivers/hwmon/i5500_temp.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 130 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 133 drivers/hwmon/i5k_amb.c if (!(amb_read_byte(data, amb_reg_temp_status(attr->index)) & 0x20) && attr 134 drivers/hwmon/i5k_amb.c (amb_read_byte(data, amb_reg_temp_status(attr->index)) & 0x8)) attr 145 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 156 drivers/hwmon/i5k_amb.c amb_write_byte(data, amb_reg_temp_min(attr->index), temp); attr 165 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 176 drivers/hwmon/i5k_amb.c amb_write_byte(data, amb_reg_temp_mid(attr->index), temp); attr 185 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 196 drivers/hwmon/i5k_amb.c amb_write_byte(data, amb_reg_temp_max(attr->index), temp); attr 204 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 207 drivers/hwmon/i5k_amb.c 500 * amb_read_byte(data, amb_reg_temp_min(attr->index))); attr 214 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 217 drivers/hwmon/i5k_amb.c 500 * amb_read_byte(data, amb_reg_temp_mid(attr->index))); attr 224 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 227 drivers/hwmon/i5k_amb.c 500 * amb_read_byte(data, amb_reg_temp_max(attr->index))); attr 234 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 237 drivers/hwmon/i5k_amb.c 500 * amb_read_byte(data, amb_reg_temp(attr->index))); attr 244 drivers/hwmon/i5k_amb.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 246 drivers/hwmon/i5k_amb.c return sprintf(buf, "Ch. %d DIMM %d\n", attr->index >> CHANNEL_SHIFT, attr 247 drivers/hwmon/i5k_amb.c attr->index & DIMM_MASK); attr 285 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.name = iattr->name; attr 286 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0444; attr 289 drivers/hwmon/i5k_amb.c sysfs_attr_init(&iattr->s_attr.dev_attr.attr); attr 300 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.name = iattr->name; attr 301 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0444; attr 304 drivers/hwmon/i5k_amb.c sysfs_attr_init(&iattr->s_attr.dev_attr.attr); attr 315 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.name = iattr->name; attr 316 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0644; attr 320 drivers/hwmon/i5k_amb.c sysfs_attr_init(&iattr->s_attr.dev_attr.attr); attr 331 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.name = iattr->name; attr 332 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0644; attr 336 drivers/hwmon/i5k_amb.c sysfs_attr_init(&iattr->s_attr.dev_attr.attr); attr 347 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.name = iattr->name; attr 348 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0644; attr 352 drivers/hwmon/i5k_amb.c sysfs_attr_init(&iattr->s_attr.dev_attr.attr); attr 363 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.name = iattr->name; attr 364 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0444; attr 367 drivers/hwmon/i5k_amb.c sysfs_attr_init(&iattr->s_attr.dev_attr.attr); attr 827 drivers/hwmon/ibmaem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 833 drivers/hwmon/ibmaem.c update_aem_energy_one(data, attr->index); attr 835 drivers/hwmon/ibmaem.c before = data->energy[attr->index]; attr 838 drivers/hwmon/ibmaem.c msecs_to_jiffies(data->power_period[attr->index]) attr 845 drivers/hwmon/ibmaem.c update_aem_energy_one(data, attr->index); attr 847 drivers/hwmon/ibmaem.c after = data->energy[attr->index]; attr 861 drivers/hwmon/ibmaem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 864 drivers/hwmon/ibmaem.c update_aem_energy_one(a, attr->index); attr 868 drivers/hwmon/ibmaem.c (unsigned long long)a->energy[attr->index] * 1000); attr 876 drivers/hwmon/ibmaem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 880 drivers/hwmon/ibmaem.c return sprintf(buf, "%lu\n", a->power_period[attr->index]); attr 888 drivers/hwmon/ibmaem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 901 drivers/hwmon/ibmaem.c a->power_period[attr->index] = temp; attr 918 drivers/hwmon/ibmaem.c sysfs_attr_init(&sensors->dev_attr.attr); attr 919 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.name = ro->label; attr 920 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.mode = 0444; attr 926 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.name = NULL; attr 935 drivers/hwmon/ibmaem.c sysfs_attr_init(&sensors->dev_attr.attr); attr 936 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.name = rw->label; attr 937 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.mode = 0644; attr 944 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.name = NULL; attr 969 drivers/hwmon/ibmaem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 973 drivers/hwmon/ibmaem.c return sprintf(buf, "%u\n", a->temp[attr->index] * 1000); attr 981 drivers/hwmon/ibmaem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 985 drivers/hwmon/ibmaem.c return sprintf(buf, "%u\n", a->pcap[attr->index] * 100000); attr 994 drivers/hwmon/ibmaem.c if (!data->sensors[i].dev_attr.attr.name) attr 61 drivers/hwmon/ibmpex.c struct sensor_device_attribute_2 attr[PEX_NUM_SENSOR_FUNCS]; attr 270 drivers/hwmon/ibmpex.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 272 drivers/hwmon/ibmpex.c int mult = data->sensors[attr->index].multiplier; attr 276 drivers/hwmon/ibmpex.c data->sensors[attr->index].values[attr->nr] * mult); attr 344 drivers/hwmon/ibmpex.c sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); attr 345 drivers/hwmon/ibmpex.c data->sensors[sensor].attr[func].dev_attr.attr.name = n; attr 346 drivers/hwmon/ibmpex.c data->sensors[sensor].attr[func].dev_attr.attr.mode = 0444; attr 347 drivers/hwmon/ibmpex.c data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor; attr 348 drivers/hwmon/ibmpex.c data->sensors[sensor].attr[func].index = sensor; attr 349 drivers/hwmon/ibmpex.c data->sensors[sensor].attr[func].nr = func; attr 352 drivers/hwmon/ibmpex.c &data->sensors[sensor].attr[func].dev_attr); attr 354 drivers/hwmon/ibmpex.c data->sensors[sensor].attr[func].dev_attr.attr.name = NULL; attr 431 drivers/hwmon/ibmpex.c if (!data->sensors[i].attr[j].dev_attr.attr.name) attr 434 drivers/hwmon/ibmpex.c &data->sensors[i].attr[j].dev_attr); attr 435 drivers/hwmon/ibmpex.c kfree(data->sensors[i].attr[j].dev_attr.attr.name); attr 521 drivers/hwmon/ibmpex.c if (!data->sensors[i].attr[j].dev_attr.attr.name) attr 524 drivers/hwmon/ibmpex.c &data->sensors[i].attr[j].dev_attr); attr 525 drivers/hwmon/ibmpex.c kfree(data->sensors[i].attr[j].dev_attr.attr.name); attr 218 drivers/hwmon/ibmpowernv.c static int get_sensor_index_attr(const char *name, u32 *index, char *attr) attr 243 drivers/hwmon/ibmpowernv.c strncpy(attr, dash_pos + 1, MAX_ATTR_LEN); attr 485 drivers/hwmon/ibmpowernv.c struct device_attribute *attr, attr 488 drivers/hwmon/ibmpowernv.c struct device_attribute *attr, attr 495 drivers/hwmon/ibmpowernv.c sysfs_attr_init(&sdata->dev_attr.attr); attr 496 drivers/hwmon/ibmpowernv.c sdata->dev_attr.attr.name = sdata->name; attr 500 drivers/hwmon/ibmpowernv.c sdata->dev_attr.attr.mode = 0664; attr 502 drivers/hwmon/ibmpowernv.c sdata->dev_attr.attr.mode = 0444; attr 511 drivers/hwmon/ibmpowernv.c struct device_attribute *attr, attr 514 drivers/hwmon/ibmpowernv.c struct device_attribute *attr, attr 522 drivers/hwmon/ibmpowernv.c pgroup->attrs[sensor_groups[type].attr_count++] = &sdata->dev_attr.attr; attr 40 drivers/hwmon/iio_hwmon.c struct device_attribute *attr, attr 45 drivers/hwmon/iio_hwmon.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 107 drivers/hwmon/iio_hwmon.c sysfs_attr_init(&a->dev_attr.attr); attr 137 drivers/hwmon/iio_hwmon.c a->dev_attr.attr.name = devm_kasprintf(dev, GFP_KERNEL, attr 140 drivers/hwmon/iio_hwmon.c if (a->dev_attr.attr.name == NULL) attr 144 drivers/hwmon/iio_hwmon.c a->dev_attr.attr.mode = 0444; attr 146 drivers/hwmon/iio_hwmon.c st->attrs[i] = &a->dev_attr.attr; attr 283 drivers/hwmon/ina209.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 286 drivers/hwmon/ina209.c u32 mask = attr->index; attr 310 drivers/hwmon/ina209.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 311 drivers/hwmon/ina209.c int reg = attr->index; attr 338 drivers/hwmon/ina209.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 345 drivers/hwmon/ina209.c val = ina209_from_reg(attr->index, data->regs[attr->index]); attr 352 drivers/hwmon/ina209.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 354 drivers/hwmon/ina209.c const unsigned int mask = attr->index; attr 435 drivers/hwmon/ina209.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 436 drivers/hwmon/ina209.c &sensor_dev_attr_in0_input_highest.dev_attr.attr, attr 437 drivers/hwmon/ina209.c &sensor_dev_attr_in0_input_lowest.dev_attr.attr, attr 438 drivers/hwmon/ina209.c &sensor_dev_attr_in0_reset_history.dev_attr.attr, attr 439 drivers/hwmon/ina209.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 440 drivers/hwmon/ina209.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 441 drivers/hwmon/ina209.c &sensor_dev_attr_in0_crit_max.dev_attr.attr, attr 442 drivers/hwmon/ina209.c &sensor_dev_attr_in0_crit_min.dev_attr.attr, attr 443 drivers/hwmon/ina209.c &sensor_dev_attr_in0_max_alarm.dev_attr.attr, attr 444 drivers/hwmon/ina209.c &sensor_dev_attr_in0_min_alarm.dev_attr.attr, attr 445 drivers/hwmon/ina209.c &sensor_dev_attr_in0_crit_max_alarm.dev_attr.attr, attr 446 drivers/hwmon/ina209.c &sensor_dev_attr_in0_crit_min_alarm.dev_attr.attr, attr 448 drivers/hwmon/ina209.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 449 drivers/hwmon/ina209.c &sensor_dev_attr_in1_input_highest.dev_attr.attr, attr 450 drivers/hwmon/ina209.c &sensor_dev_attr_in1_input_lowest.dev_attr.attr, attr 451 drivers/hwmon/ina209.c &sensor_dev_attr_in1_reset_history.dev_attr.attr, attr 452 drivers/hwmon/ina209.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 453 drivers/hwmon/ina209.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 454 drivers/hwmon/ina209.c &sensor_dev_attr_in1_crit_max.dev_attr.attr, attr 455 drivers/hwmon/ina209.c &sensor_dev_attr_in1_crit_min.dev_attr.attr, attr 456 drivers/hwmon/ina209.c &sensor_dev_attr_in1_max_alarm.dev_attr.attr, attr 457 drivers/hwmon/ina209.c &sensor_dev_attr_in1_min_alarm.dev_attr.attr, attr 458 drivers/hwmon/ina209.c &sensor_dev_attr_in1_crit_max_alarm.dev_attr.attr, attr 459 drivers/hwmon/ina209.c &sensor_dev_attr_in1_crit_min_alarm.dev_attr.attr, attr 461 drivers/hwmon/ina209.c &sensor_dev_attr_power1_input.dev_attr.attr, attr 462 drivers/hwmon/ina209.c &sensor_dev_attr_power1_input_highest.dev_attr.attr, attr 463 drivers/hwmon/ina209.c &sensor_dev_attr_power1_reset_history.dev_attr.attr, attr 464 drivers/hwmon/ina209.c &sensor_dev_attr_power1_max.dev_attr.attr, attr 465 drivers/hwmon/ina209.c &sensor_dev_attr_power1_crit.dev_attr.attr, attr 466 drivers/hwmon/ina209.c &sensor_dev_attr_power1_max_alarm.dev_attr.attr, attr 467 drivers/hwmon/ina209.c &sensor_dev_attr_power1_crit_alarm.dev_attr.attr, attr 469 drivers/hwmon/ina209.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 471 drivers/hwmon/ina209.c &sensor_dev_attr_update_interval.dev_attr.attr, attr 293 drivers/hwmon/ina2xx.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 297 drivers/hwmon/ina2xx.c int err = ina2xx_read_reg(dev, attr->index, ®val); attr 303 drivers/hwmon/ina2xx.c ina2xx_get_value(data, attr->index, regval)); attr 413 drivers/hwmon/ina2xx.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 414 drivers/hwmon/ina2xx.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 415 drivers/hwmon/ina2xx.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 416 drivers/hwmon/ina2xx.c &sensor_dev_attr_power1_input.dev_attr.attr, attr 417 drivers/hwmon/ina2xx.c &sensor_dev_attr_shunt_resistor.dev_attr.attr, attr 426 drivers/hwmon/ina2xx.c &sensor_dev_attr_update_interval.dev_attr.attr, attr 200 drivers/hwmon/ina3221.c static int ina3221_read_chip(struct device *dev, u32 attr, long *val) attr 205 drivers/hwmon/ina3221.c switch (attr) { attr 220 drivers/hwmon/ina3221.c static int ina3221_read_in(struct device *dev, u32 attr, int channel, long *val) attr 230 drivers/hwmon/ina3221.c switch (attr) { attr 270 drivers/hwmon/ina3221.c static int ina3221_read_curr(struct device *dev, u32 attr, attr 276 drivers/hwmon/ina3221.c u8 reg = ina3221_curr_reg[attr][channel]; attr 279 drivers/hwmon/ina3221.c switch (attr) { attr 323 drivers/hwmon/ina3221.c static int ina3221_write_chip(struct device *dev, u32 attr, long val) attr 329 drivers/hwmon/ina3221.c switch (attr) { attr 365 drivers/hwmon/ina3221.c static int ina3221_write_curr(struct device *dev, u32 attr, attr 371 drivers/hwmon/ina3221.c u8 reg = ina3221_curr_reg[attr][channel]; attr 439 drivers/hwmon/ina3221.c u32 attr, int channel, long *val) attr 448 drivers/hwmon/ina3221.c ret = ina3221_read_chip(dev, attr, val); attr 452 drivers/hwmon/ina3221.c ret = ina3221_read_in(dev, attr, channel - 1, val); attr 455 drivers/hwmon/ina3221.c ret = ina3221_read_curr(dev, attr, channel, val); attr 468 drivers/hwmon/ina3221.c u32 attr, int channel, long val) attr 477 drivers/hwmon/ina3221.c ret = ina3221_write_chip(dev, attr, val); attr 484 drivers/hwmon/ina3221.c ret = ina3221_write_curr(dev, attr, channel, val); attr 497 drivers/hwmon/ina3221.c u32 attr, int channel, const char **str) attr 509 drivers/hwmon/ina3221.c u32 attr, int channel) attr 516 drivers/hwmon/ina3221.c switch (attr) { attr 528 drivers/hwmon/ina3221.c switch (attr) { attr 542 drivers/hwmon/ina3221.c switch (attr) { attr 598 drivers/hwmon/ina3221.c struct device_attribute *attr, char *buf) attr 600 drivers/hwmon/ina3221.c struct sensor_device_attribute *sd_attr = to_sensor_dev_attr(attr); attr 609 drivers/hwmon/ina3221.c struct device_attribute *attr, attr 612 drivers/hwmon/ina3221.c struct sensor_device_attribute *sd_attr = to_sensor_dev_attr(attr); attr 636 drivers/hwmon/ina3221.c &sensor_dev_attr_shunt1_resistor.dev_attr.attr, attr 637 drivers/hwmon/ina3221.c &sensor_dev_attr_shunt2_resistor.dev_attr.attr, attr 638 drivers/hwmon/ina3221.c &sensor_dev_attr_shunt3_resistor.dev_attr.attr, attr 855 drivers/hwmon/it87.c static ssize_t show_in(struct device *dev, struct device_attribute *attr, attr 858 drivers/hwmon/it87.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 866 drivers/hwmon/it87.c static ssize_t set_in(struct device *dev, struct device_attribute *attr, attr 869 drivers/hwmon/it87.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 943 drivers/hwmon/it87.c static ssize_t show_temp(struct device *dev, struct device_attribute *attr, attr 946 drivers/hwmon/it87.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 954 drivers/hwmon/it87.c static ssize_t set_temp(struct device *dev, struct device_attribute *attr, attr 957 drivers/hwmon/it87.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 1019 drivers/hwmon/it87.c static ssize_t show_temp_type(struct device *dev, struct device_attribute *attr, attr 1022 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1038 drivers/hwmon/it87.c static ssize_t set_temp_type(struct device *dev, struct device_attribute *attr, attr 1041 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1109 drivers/hwmon/it87.c static ssize_t show_fan(struct device *dev, struct device_attribute *attr, attr 1112 drivers/hwmon/it87.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 1125 drivers/hwmon/it87.c static ssize_t show_fan_div(struct device *dev, struct device_attribute *attr, attr 1128 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1136 drivers/hwmon/it87.c struct device_attribute *attr, char *buf) attr 1138 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1145 drivers/hwmon/it87.c static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, attr 1148 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1156 drivers/hwmon/it87.c static ssize_t show_pwm_freq(struct device *dev, struct device_attribute *attr, attr 1159 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1175 drivers/hwmon/it87.c static ssize_t set_fan(struct device *dev, struct device_attribute *attr, attr 1178 drivers/hwmon/it87.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 1220 drivers/hwmon/it87.c static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr, attr 1223 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1295 drivers/hwmon/it87.c static ssize_t set_pwm_enable(struct device *dev, struct device_attribute *attr, attr 1298 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1367 drivers/hwmon/it87.c static ssize_t set_pwm(struct device *dev, struct device_attribute *attr, attr 1370 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1408 drivers/hwmon/it87.c static ssize_t set_pwm_freq(struct device *dev, struct device_attribute *attr, attr 1411 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1445 drivers/hwmon/it87.c struct device_attribute *attr, char *buf) attr 1447 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1462 drivers/hwmon/it87.c struct device_attribute *attr, const char *buf, attr 1465 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1507 drivers/hwmon/it87.c static ssize_t show_auto_pwm(struct device *dev, struct device_attribute *attr, attr 1512 drivers/hwmon/it87.c to_sensor_dev_attr_2(attr); attr 1520 drivers/hwmon/it87.c static ssize_t set_auto_pwm(struct device *dev, struct device_attribute *attr, attr 1525 drivers/hwmon/it87.c to_sensor_dev_attr_2(attr); attr 1546 drivers/hwmon/it87.c struct device_attribute *attr, char *buf) attr 1549 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1556 drivers/hwmon/it87.c struct device_attribute *attr, attr 1560 drivers/hwmon/it87.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1575 drivers/hwmon/it87.c static ssize_t show_auto_temp(struct device *dev, struct device_attribute *attr, attr 1580 drivers/hwmon/it87.c to_sensor_dev_attr_2(attr); attr 1593 drivers/hwmon/it87.c static ssize_t set_auto_temp(struct device *dev, struct device_attribute *attr, attr 1598 drivers/hwmon/it87.c to_sensor_dev_attr_2(attr); attr 1800 drivers/hwmon/it87.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 1809 drivers/hwmon/it87.c static ssize_t show_alarm(struct device *dev, struct device_attribute *attr, attr 1813 drivers/hwmon/it87.c int bitnr = to_sensor_dev_attr(attr)->index; attr 1819 drivers/hwmon/it87.c struct device_attribute *attr, const char *buf, attr 1864 drivers/hwmon/it87.c static ssize_t show_beep(struct device *dev, struct device_attribute *attr, attr 1868 drivers/hwmon/it87.c int bitnr = to_sensor_dev_attr(attr)->index; attr 1873 drivers/hwmon/it87.c static ssize_t set_beep(struct device *dev, struct device_attribute *attr, attr 1876 drivers/hwmon/it87.c int bitnr = to_sensor_dev_attr(attr)->index; attr 1915 drivers/hwmon/it87.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 1923 drivers/hwmon/it87.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 1939 drivers/hwmon/it87.c struct device_attribute *attr, char *buf) attr 1947 drivers/hwmon/it87.c static ssize_t show_label(struct device *dev, struct device_attribute *attr, attr 1963 drivers/hwmon/it87.c int nr = to_sensor_dev_attr(attr)->index; attr 1982 drivers/hwmon/it87.c struct attribute *attr, int index) attr 2000 drivers/hwmon/it87.c return attr->mode; attr 2004 drivers/hwmon/it87.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 2005 drivers/hwmon/it87.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 2006 drivers/hwmon/it87.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 2007 drivers/hwmon/it87.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 2008 drivers/hwmon/it87.c &sensor_dev_attr_in0_beep.dev_attr.attr, /* 4 */ attr 2010 drivers/hwmon/it87.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 2011 drivers/hwmon/it87.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 2012 drivers/hwmon/it87.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 2013 drivers/hwmon/it87.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 2014 drivers/hwmon/it87.c &sensor_dev_attr_in1_beep.dev_attr.attr, /* 9 */ attr 2016 drivers/hwmon/it87.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 2017 drivers/hwmon/it87.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 2018 drivers/hwmon/it87.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 2019 drivers/hwmon/it87.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 2020 drivers/hwmon/it87.c &sensor_dev_attr_in2_beep.dev_attr.attr, /* 14 */ attr 2022 drivers/hwmon/it87.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 2023 drivers/hwmon/it87.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 2024 drivers/hwmon/it87.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 2025 drivers/hwmon/it87.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 2026 drivers/hwmon/it87.c &sensor_dev_attr_in3_beep.dev_attr.attr, /* 19 */ attr 2028 drivers/hwmon/it87.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 2029 drivers/hwmon/it87.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 2030 drivers/hwmon/it87.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 2031 drivers/hwmon/it87.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 2032 drivers/hwmon/it87.c &sensor_dev_attr_in4_beep.dev_attr.attr, /* 24 */ attr 2034 drivers/hwmon/it87.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 2035 drivers/hwmon/it87.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 2036 drivers/hwmon/it87.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 2037 drivers/hwmon/it87.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 2038 drivers/hwmon/it87.c &sensor_dev_attr_in5_beep.dev_attr.attr, /* 29 */ attr 2040 drivers/hwmon/it87.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 2041 drivers/hwmon/it87.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 2042 drivers/hwmon/it87.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 2043 drivers/hwmon/it87.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 2044 drivers/hwmon/it87.c &sensor_dev_attr_in6_beep.dev_attr.attr, /* 34 */ attr 2046 drivers/hwmon/it87.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 2047 drivers/hwmon/it87.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 2048 drivers/hwmon/it87.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 2049 drivers/hwmon/it87.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 2050 drivers/hwmon/it87.c &sensor_dev_attr_in7_beep.dev_attr.attr, /* 39 */ attr 2052 drivers/hwmon/it87.c &sensor_dev_attr_in8_input.dev_attr.attr, /* 40 */ attr 2053 drivers/hwmon/it87.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 2054 drivers/hwmon/it87.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 2055 drivers/hwmon/it87.c &sensor_dev_attr_in11_input.dev_attr.attr, attr 2056 drivers/hwmon/it87.c &sensor_dev_attr_in12_input.dev_attr.attr, attr 2066 drivers/hwmon/it87.c struct attribute *attr, int index) attr 2087 drivers/hwmon/it87.c return attr->mode; attr 2091 drivers/hwmon/it87.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 2092 drivers/hwmon/it87.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 2093 drivers/hwmon/it87.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 2094 drivers/hwmon/it87.c &sensor_dev_attr_temp1_type.dev_attr.attr, attr 2095 drivers/hwmon/it87.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 2096 drivers/hwmon/it87.c &sensor_dev_attr_temp1_offset.dev_attr.attr, /* 5 */ attr 2097 drivers/hwmon/it87.c &sensor_dev_attr_temp1_beep.dev_attr.attr, /* 6 */ attr 2099 drivers/hwmon/it87.c &sensor_dev_attr_temp2_input.dev_attr.attr, /* 7 */ attr 2100 drivers/hwmon/it87.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 2101 drivers/hwmon/it87.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 2102 drivers/hwmon/it87.c &sensor_dev_attr_temp2_type.dev_attr.attr, attr 2103 drivers/hwmon/it87.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 2104 drivers/hwmon/it87.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 2105 drivers/hwmon/it87.c &sensor_dev_attr_temp2_beep.dev_attr.attr, attr 2107 drivers/hwmon/it87.c &sensor_dev_attr_temp3_input.dev_attr.attr, /* 14 */ attr 2108 drivers/hwmon/it87.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 2109 drivers/hwmon/it87.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 2110 drivers/hwmon/it87.c &sensor_dev_attr_temp3_type.dev_attr.attr, attr 2111 drivers/hwmon/it87.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 2112 drivers/hwmon/it87.c &sensor_dev_attr_temp3_offset.dev_attr.attr, attr 2113 drivers/hwmon/it87.c &sensor_dev_attr_temp3_beep.dev_attr.attr, attr 2115 drivers/hwmon/it87.c &sensor_dev_attr_temp4_input.dev_attr.attr, /* 21 */ attr 2116 drivers/hwmon/it87.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 2117 drivers/hwmon/it87.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 2127 drivers/hwmon/it87.c struct attribute *attr, int index) attr 2138 drivers/hwmon/it87.c return attr->mode; attr 2142 drivers/hwmon/it87.c &dev_attr_alarms.attr, attr 2143 drivers/hwmon/it87.c &sensor_dev_attr_intrusion0_alarm.dev_attr.attr, attr 2144 drivers/hwmon/it87.c &dev_attr_vrm.attr, /* 2 */ attr 2145 drivers/hwmon/it87.c &dev_attr_cpu0_vid.attr, /* 3 */ attr 2146 drivers/hwmon/it87.c &sensor_dev_attr_in3_label.dev_attr.attr, /* 4 .. 7 */ attr 2147 drivers/hwmon/it87.c &sensor_dev_attr_in7_label.dev_attr.attr, attr 2148 drivers/hwmon/it87.c &sensor_dev_attr_in8_label.dev_attr.attr, attr 2149 drivers/hwmon/it87.c &sensor_dev_attr_in9_label.dev_attr.attr, attr 2159 drivers/hwmon/it87.c struct attribute *attr, int index) attr 2179 drivers/hwmon/it87.c return attr->mode | S_IWUSR; attr 2185 drivers/hwmon/it87.c return attr->mode; attr 2189 drivers/hwmon/it87.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 2190 drivers/hwmon/it87.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 2191 drivers/hwmon/it87.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 2192 drivers/hwmon/it87.c &sensor_dev_attr_fan1_beep.dev_attr.attr, /* 3 */ attr 2193 drivers/hwmon/it87.c &sensor_dev_attr_fan1_div.dev_attr.attr, /* 4 */ attr 2195 drivers/hwmon/it87.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 2196 drivers/hwmon/it87.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 2197 drivers/hwmon/it87.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 2198 drivers/hwmon/it87.c &sensor_dev_attr_fan2_beep.dev_attr.attr, attr 2199 drivers/hwmon/it87.c &sensor_dev_attr_fan2_div.dev_attr.attr, /* 9 */ attr 2201 drivers/hwmon/it87.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 2202 drivers/hwmon/it87.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 2203 drivers/hwmon/it87.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 2204 drivers/hwmon/it87.c &sensor_dev_attr_fan3_beep.dev_attr.attr, attr 2205 drivers/hwmon/it87.c &sensor_dev_attr_fan3_div.dev_attr.attr, /* 14 */ attr 2207 drivers/hwmon/it87.c &sensor_dev_attr_fan4_input.dev_attr.attr, /* 15 */ attr 2208 drivers/hwmon/it87.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 2209 drivers/hwmon/it87.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 2210 drivers/hwmon/it87.c &sensor_dev_attr_fan4_beep.dev_attr.attr, attr 2212 drivers/hwmon/it87.c &sensor_dev_attr_fan5_input.dev_attr.attr, /* 19 */ attr 2213 drivers/hwmon/it87.c &sensor_dev_attr_fan5_min.dev_attr.attr, attr 2214 drivers/hwmon/it87.c &sensor_dev_attr_fan5_alarm.dev_attr.attr, attr 2215 drivers/hwmon/it87.c &sensor_dev_attr_fan5_beep.dev_attr.attr, attr 2217 drivers/hwmon/it87.c &sensor_dev_attr_fan6_input.dev_attr.attr, /* 23 */ attr 2218 drivers/hwmon/it87.c &sensor_dev_attr_fan6_min.dev_attr.attr, attr 2219 drivers/hwmon/it87.c &sensor_dev_attr_fan6_alarm.dev_attr.attr, attr 2220 drivers/hwmon/it87.c &sensor_dev_attr_fan6_beep.dev_attr.attr, attr 2230 drivers/hwmon/it87.c struct attribute *attr, int index) attr 2242 drivers/hwmon/it87.c return attr->mode | S_IWUSR; attr 2246 drivers/hwmon/it87.c return attr->mode | S_IWUSR; attr 2248 drivers/hwmon/it87.c return attr->mode; attr 2252 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 2253 drivers/hwmon/it87.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 2254 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 2255 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_channels_temp.dev_attr.attr, attr 2257 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 2258 drivers/hwmon/it87.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 2259 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 2260 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_channels_temp.dev_attr.attr, attr 2262 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 2263 drivers/hwmon/it87.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 2264 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_freq.dev_attr.attr, attr 2265 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_channels_temp.dev_attr.attr, attr 2267 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_enable.dev_attr.attr, attr 2268 drivers/hwmon/it87.c &sensor_dev_attr_pwm4.dev_attr.attr, attr 2269 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_freq.dev_attr.attr, attr 2270 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_auto_channels_temp.dev_attr.attr, attr 2272 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_enable.dev_attr.attr, attr 2273 drivers/hwmon/it87.c &sensor_dev_attr_pwm5.dev_attr.attr, attr 2274 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_freq.dev_attr.attr, attr 2275 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_auto_channels_temp.dev_attr.attr, attr 2277 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_enable.dev_attr.attr, attr 2278 drivers/hwmon/it87.c &sensor_dev_attr_pwm6.dev_attr.attr, attr 2279 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_freq.dev_attr.attr, attr 2280 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_auto_channels_temp.dev_attr.attr, attr 2291 drivers/hwmon/it87.c struct attribute *attr, int index) attr 2317 drivers/hwmon/it87.c return attr->mode; attr 2321 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 2322 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 2323 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point3_pwm.dev_attr.attr, attr 2324 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point4_pwm.dev_attr.attr, attr 2325 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point1_temp.dev_attr.attr, attr 2326 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point1_temp_hyst.dev_attr.attr, attr 2327 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point2_temp.dev_attr.attr, attr 2328 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point3_temp.dev_attr.attr, attr 2329 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_point4_temp.dev_attr.attr, attr 2330 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_start.dev_attr.attr, attr 2331 drivers/hwmon/it87.c &sensor_dev_attr_pwm1_auto_slope.dev_attr.attr, attr 2333 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr, /* 11 */ attr 2334 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr, attr 2335 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point3_pwm.dev_attr.attr, attr 2336 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point4_pwm.dev_attr.attr, attr 2337 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point1_temp.dev_attr.attr, attr 2338 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point1_temp_hyst.dev_attr.attr, attr 2339 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point2_temp.dev_attr.attr, attr 2340 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point3_temp.dev_attr.attr, attr 2341 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_point4_temp.dev_attr.attr, attr 2342 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_start.dev_attr.attr, attr 2343 drivers/hwmon/it87.c &sensor_dev_attr_pwm2_auto_slope.dev_attr.attr, attr 2345 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr, /* 22 */ attr 2346 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr, attr 2347 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point3_pwm.dev_attr.attr, attr 2348 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point4_pwm.dev_attr.attr, attr 2349 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point1_temp.dev_attr.attr, attr 2350 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point1_temp_hyst.dev_attr.attr, attr 2351 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point2_temp.dev_attr.attr, attr 2352 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point3_temp.dev_attr.attr, attr 2353 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_point4_temp.dev_attr.attr, attr 2354 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_start.dev_attr.attr, attr 2355 drivers/hwmon/it87.c &sensor_dev_attr_pwm3_auto_slope.dev_attr.attr, attr 2357 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_auto_point1_temp.dev_attr.attr, /* 33 */ attr 2358 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_auto_point1_temp_hyst.dev_attr.attr, attr 2359 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_auto_point2_temp.dev_attr.attr, attr 2360 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_auto_point3_temp.dev_attr.attr, attr 2361 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_auto_start.dev_attr.attr, attr 2362 drivers/hwmon/it87.c &sensor_dev_attr_pwm4_auto_slope.dev_attr.attr, attr 2364 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_auto_point1_temp.dev_attr.attr, attr 2365 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_auto_point1_temp_hyst.dev_attr.attr, attr 2366 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_auto_point2_temp.dev_attr.attr, attr 2367 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_auto_point3_temp.dev_attr.attr, attr 2368 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_auto_start.dev_attr.attr, attr 2369 drivers/hwmon/it87.c &sensor_dev_attr_pwm5_auto_slope.dev_attr.attr, attr 2371 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_auto_point1_temp.dev_attr.attr, attr 2372 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_auto_point1_temp_hyst.dev_attr.attr, attr 2373 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_auto_point2_temp.dev_attr.attr, attr 2374 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_auto_point3_temp.dev_attr.attr, attr 2375 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_auto_start.dev_attr.attr, attr 2376 drivers/hwmon/it87.c &sensor_dev_attr_pwm6_auto_slope.dev_attr.attr, attr 268 drivers/hwmon/jc42.c u32 attr, int channel, long *val) attr 276 drivers/hwmon/jc42.c switch (attr) { attr 316 drivers/hwmon/jc42.c u32 attr, int channel, long val) attr 325 drivers/hwmon/jc42.c switch (attr) { attr 376 drivers/hwmon/jc42.c u32 attr, int channel) attr 382 drivers/hwmon/jc42.c switch (attr) { attr 139 drivers/hwmon/k10temp.c struct device_attribute *attr, char *buf) attr 164 drivers/hwmon/k10temp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 166 drivers/hwmon/k10temp.c return sprintf(buf, "%s\n", attr->index ? "Tctl" : "Tdie"); attr 170 drivers/hwmon/k10temp.c struct device_attribute *attr, char *buf) attr 178 drivers/hwmon/k10temp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 180 drivers/hwmon/k10temp.c int show_hyst = attr->index; attr 201 drivers/hwmon/k10temp.c struct attribute *attr, int index) attr 230 drivers/hwmon/k10temp.c return attr->mode; attr 234 drivers/hwmon/k10temp.c &dev_attr_temp1_input.attr, attr 235 drivers/hwmon/k10temp.c &dev_attr_temp1_max.attr, attr 236 drivers/hwmon/k10temp.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 237 drivers/hwmon/k10temp.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 238 drivers/hwmon/k10temp.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 239 drivers/hwmon/k10temp.c &dev_attr_temp2_input.attr, attr 240 drivers/hwmon/k10temp.c &sensor_dev_attr_temp2_label.dev_attr.attr, attr 72 drivers/hwmon/k8temp.c u32 attr, int channel) attr 87 drivers/hwmon/k8temp.c u32 attr, int channel, long *val) attr 275 drivers/hwmon/lineage-pem.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(da); attr 282 drivers/hwmon/lineage-pem.c status = data->data_string[attr->nr] & attr->index; attr 289 drivers/hwmon/lineage-pem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 297 drivers/hwmon/lineage-pem.c attr->index); attr 305 drivers/hwmon/lineage-pem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 313 drivers/hwmon/lineage-pem.c attr->index); attr 321 drivers/hwmon/lineage-pem.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 329 drivers/hwmon/lineage-pem.c attr->index); attr 373 drivers/hwmon/lineage-pem.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 374 drivers/hwmon/lineage-pem.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 375 drivers/hwmon/lineage-pem.c &sensor_dev_attr_in1_crit_alarm.dev_attr.attr, attr 376 drivers/hwmon/lineage-pem.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 378 drivers/hwmon/lineage-pem.c &sensor_dev_attr_curr1_alarm.dev_attr.attr, attr 380 drivers/hwmon/lineage-pem.c &sensor_dev_attr_power1_alarm.dev_attr.attr, attr 382 drivers/hwmon/lineage-pem.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 384 drivers/hwmon/lineage-pem.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 385 drivers/hwmon/lineage-pem.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 386 drivers/hwmon/lineage-pem.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 387 drivers/hwmon/lineage-pem.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 388 drivers/hwmon/lineage-pem.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 389 drivers/hwmon/lineage-pem.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 399 drivers/hwmon/lineage-pem.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 400 drivers/hwmon/lineage-pem.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 401 drivers/hwmon/lineage-pem.c &sensor_dev_attr_power1_input.dev_attr.attr, attr 410 drivers/hwmon/lineage-pem.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 411 drivers/hwmon/lineage-pem.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 412 drivers/hwmon/lineage-pem.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 334 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 336 drivers/hwmon/lm63.c return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index])); attr 364 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 366 drivers/hwmon/lm63.c int nr = attr->index; attr 382 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 385 drivers/hwmon/lm63.c int nr = attr->index; attr 460 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 462 drivers/hwmon/lm63.c return sprintf(buf, "%d\n", TEMP8_FROM_REG(data->temp8[attr->index])); attr 469 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 471 drivers/hwmon/lm63.c return sprintf(buf, "%d\n", temp8_from_reg(data, attr->index) attr 479 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 481 drivers/hwmon/lm63.c return sprintf(buf, "%d\n", lut_temp_from_reg(data, attr->index) attr 488 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 491 drivers/hwmon/lm63.c int nr = attr->index; attr 527 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 529 drivers/hwmon/lm63.c int nr = attr->index; attr 562 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 567 drivers/hwmon/lm63.c int nr = attr->index; attr 603 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 606 drivers/hwmon/lm63.c return sprintf(buf, "%d\n", lut_temp_from_reg(data, attr->index) attr 662 drivers/hwmon/lm63.c struct device_attribute *attr, char *buf) attr 670 drivers/hwmon/lm63.c struct device_attribute *attr, attr 689 drivers/hwmon/lm63.c struct device_attribute *attr, char *buf) attr 697 drivers/hwmon/lm63.c struct device_attribute *attr, attr 733 drivers/hwmon/lm63.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 735 drivers/hwmon/lm63.c int bitnr = attr->index; attr 849 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 850 drivers/hwmon/lm63.c &dev_attr_pwm1_enable.attr, attr 851 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 852 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point1_temp.dev_attr.attr, attr 853 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point1_temp_hyst.dev_attr.attr, attr 854 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 855 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point2_temp.dev_attr.attr, attr 856 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point2_temp_hyst.dev_attr.attr, attr 857 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point3_pwm.dev_attr.attr, attr 858 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point3_temp.dev_attr.attr, attr 859 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point3_temp_hyst.dev_attr.attr, attr 860 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point4_pwm.dev_attr.attr, attr 861 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point4_temp.dev_attr.attr, attr 862 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point4_temp_hyst.dev_attr.attr, attr 863 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point5_pwm.dev_attr.attr, attr 864 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point5_temp.dev_attr.attr, attr 865 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point5_temp_hyst.dev_attr.attr, attr 866 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point6_pwm.dev_attr.attr, attr 867 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point6_temp.dev_attr.attr, attr 868 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point6_temp_hyst.dev_attr.attr, attr 869 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point7_pwm.dev_attr.attr, attr 870 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point7_temp.dev_attr.attr, attr 871 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point7_temp_hyst.dev_attr.attr, attr 872 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point8_pwm.dev_attr.attr, attr 873 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point8_temp.dev_attr.attr, attr 874 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point8_temp_hyst.dev_attr.attr, attr 876 drivers/hwmon/lm63.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 877 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 878 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 879 drivers/hwmon/lm63.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 880 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 881 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 882 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 883 drivers/hwmon/lm63.c &dev_attr_temp2_crit_hyst.attr, attr 885 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 886 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 887 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 888 drivers/hwmon/lm63.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 889 drivers/hwmon/lm63.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 890 drivers/hwmon/lm63.c &dev_attr_alarms.attr, attr 891 drivers/hwmon/lm63.c &dev_attr_update_interval.attr, attr 896 drivers/hwmon/lm63.c &dev_attr_temp2_type.attr, attr 905 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point9_pwm.dev_attr.attr, attr 906 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point9_temp.dev_attr.attr, attr 907 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point9_temp_hyst.dev_attr.attr, attr 908 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point10_pwm.dev_attr.attr, attr 909 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point10_temp.dev_attr.attr, attr 910 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point10_temp_hyst.dev_attr.attr, attr 911 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point11_pwm.dev_attr.attr, attr 912 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point11_temp.dev_attr.attr, attr 913 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point11_temp_hyst.dev_attr.attr, attr 914 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point12_pwm.dev_attr.attr, attr 915 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point12_temp.dev_attr.attr, attr 916 drivers/hwmon/lm63.c &sensor_dev_attr_pwm1_auto_point12_temp_hyst.dev_attr.attr, attr 932 drivers/hwmon/lm63.c struct attribute *attr, int index) attr 937 drivers/hwmon/lm63.c if (attr == &sensor_dev_attr_temp2_crit.dev_attr.attr attr 940 drivers/hwmon/lm63.c return attr->mode | S_IWUSR; attr 942 drivers/hwmon/lm63.c return attr->mode; attr 951 drivers/hwmon/lm63.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 952 drivers/hwmon/lm63.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 954 drivers/hwmon/lm63.c &sensor_dev_attr_fan1_min_alarm.dev_attr.attr, attr 46 drivers/hwmon/lm70.c struct device_attribute *attr, char *buf) attr 116 drivers/hwmon/lm70.c &dev_attr_temp1_input.attr, attr 65 drivers/hwmon/lm73.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 77 drivers/hwmon/lm73.c err = i2c_smbus_write_word_swapped(data->client, attr->index, value); attr 84 drivers/hwmon/lm73.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 88 drivers/hwmon/lm73.c s32 err = i2c_smbus_read_word_swapped(data->client, attr->index); attr 146 drivers/hwmon/lm73.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 157 drivers/hwmon/lm73.c return scnprintf(buf, PAGE_SIZE, "%d\n", (ctrl >> attr->index) & 1); attr 178 drivers/hwmon/lm73.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 179 drivers/hwmon/lm73.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 180 drivers/hwmon/lm73.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 181 drivers/hwmon/lm73.c &sensor_dev_attr_update_interval.dev_attr.attr, attr 182 drivers/hwmon/lm73.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 183 drivers/hwmon/lm73.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 324 drivers/hwmon/lm75.c u32 attr, int channel, long *val) attr 332 drivers/hwmon/lm75.c switch (attr) { attr 341 drivers/hwmon/lm75.c switch (attr) { attr 366 drivers/hwmon/lm75.c static int lm75_write_temp(struct device *dev, u32 attr, long temp) attr 372 drivers/hwmon/lm75.c switch (attr) { attr 442 drivers/hwmon/lm75.c static int lm75_write_chip(struct device *dev, u32 attr, long val) attr 444 drivers/hwmon/lm75.c switch (attr) { attr 454 drivers/hwmon/lm75.c u32 attr, int channel, long val) attr 458 drivers/hwmon/lm75.c return lm75_write_chip(dev, attr, val); attr 460 drivers/hwmon/lm75.c return lm75_write_temp(dev, attr, val); attr 468 drivers/hwmon/lm75.c u32 attr, int channel) attr 474 drivers/hwmon/lm75.c switch (attr) { attr 482 drivers/hwmon/lm75.c switch (attr) { attr 134 drivers/hwmon/lm77.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 137 drivers/hwmon/lm77.c return sprintf(buf, "%d\n", data->temp[attr->index]); attr 143 drivers/hwmon/lm77.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 145 drivers/hwmon/lm77.c int nr = attr->index; attr 158 drivers/hwmon/lm77.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 161 drivers/hwmon/lm77.c int nr = attr->index; attr 203 drivers/hwmon/lm77.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 206 drivers/hwmon/lm77.c int bitnr = to_sensor_dev_attr(attr)->index; attr 225 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 226 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 227 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 228 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 229 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 230 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_min_hyst.dev_attr.attr, attr 231 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 232 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 233 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 234 drivers/hwmon/lm77.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 145 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 147 drivers/hwmon/lm78.c return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index])); attr 153 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 155 drivers/hwmon/lm78.c return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index])); attr 161 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 163 drivers/hwmon/lm78.c return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index])); attr 169 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 171 drivers/hwmon/lm78.c int nr = attr->index; attr 189 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 191 drivers/hwmon/lm78.c int nr = attr->index; attr 296 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 298 drivers/hwmon/lm78.c int nr = attr->index; attr 306 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 308 drivers/hwmon/lm78.c int nr = attr->index; attr 316 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 318 drivers/hwmon/lm78.c int nr = attr->index; attr 336 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 338 drivers/hwmon/lm78.c return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); attr 350 drivers/hwmon/lm78.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 352 drivers/hwmon/lm78.c int nr = attr->index; attr 456 drivers/hwmon/lm78.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 457 drivers/hwmon/lm78.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 458 drivers/hwmon/lm78.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 459 drivers/hwmon/lm78.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 460 drivers/hwmon/lm78.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 461 drivers/hwmon/lm78.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 462 drivers/hwmon/lm78.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 463 drivers/hwmon/lm78.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 464 drivers/hwmon/lm78.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 465 drivers/hwmon/lm78.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 466 drivers/hwmon/lm78.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 467 drivers/hwmon/lm78.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 468 drivers/hwmon/lm78.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 469 drivers/hwmon/lm78.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 470 drivers/hwmon/lm78.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 471 drivers/hwmon/lm78.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 472 drivers/hwmon/lm78.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 473 drivers/hwmon/lm78.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 474 drivers/hwmon/lm78.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 475 drivers/hwmon/lm78.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 476 drivers/hwmon/lm78.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 477 drivers/hwmon/lm78.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 478 drivers/hwmon/lm78.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 479 drivers/hwmon/lm78.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 480 drivers/hwmon/lm78.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 481 drivers/hwmon/lm78.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 482 drivers/hwmon/lm78.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 483 drivers/hwmon/lm78.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 484 drivers/hwmon/lm78.c &dev_attr_temp1_input.attr, attr 485 drivers/hwmon/lm78.c &dev_attr_temp1_max.attr, attr 486 drivers/hwmon/lm78.c &dev_attr_temp1_max_hyst.attr, attr 487 drivers/hwmon/lm78.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 488 drivers/hwmon/lm78.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 489 drivers/hwmon/lm78.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 490 drivers/hwmon/lm78.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 491 drivers/hwmon/lm78.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 492 drivers/hwmon/lm78.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 493 drivers/hwmon/lm78.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 494 drivers/hwmon/lm78.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 495 drivers/hwmon/lm78.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 496 drivers/hwmon/lm78.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 497 drivers/hwmon/lm78.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 498 drivers/hwmon/lm78.c &sensor_dev_attr_fan3_div.dev_attr.attr, attr 499 drivers/hwmon/lm78.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 500 drivers/hwmon/lm78.c &dev_attr_alarms.attr, attr 501 drivers/hwmon/lm78.c &dev_attr_cpu0_vid.attr, attr 259 drivers/hwmon/lm80.c static ssize_t in_show(struct device *dev, struct device_attribute *attr, attr 263 drivers/hwmon/lm80.c int index = to_sensor_dev_attr_2(attr)->index; attr 264 drivers/hwmon/lm80.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 271 drivers/hwmon/lm80.c static ssize_t in_store(struct device *dev, struct device_attribute *attr, attr 276 drivers/hwmon/lm80.c int index = to_sensor_dev_attr_2(attr)->index; attr 277 drivers/hwmon/lm80.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 293 drivers/hwmon/lm80.c static ssize_t fan_show(struct device *dev, struct device_attribute *attr, attr 296 drivers/hwmon/lm80.c int index = to_sensor_dev_attr_2(attr)->index; attr 297 drivers/hwmon/lm80.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 305 drivers/hwmon/lm80.c static ssize_t fan_div_show(struct device *dev, struct device_attribute *attr, attr 308 drivers/hwmon/lm80.c int nr = to_sensor_dev_attr(attr)->index; attr 315 drivers/hwmon/lm80.c static ssize_t fan_store(struct device *dev, struct device_attribute *attr, attr 318 drivers/hwmon/lm80.c int index = to_sensor_dev_attr_2(attr)->index; attr 319 drivers/hwmon/lm80.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 343 drivers/hwmon/lm80.c struct device_attribute *attr, const char *buf, attr 346 drivers/hwmon/lm80.c int nr = to_sensor_dev_attr(attr)->index; attr 404 drivers/hwmon/lm80.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 408 drivers/hwmon/lm80.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); attr 415 drivers/hwmon/lm80.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 418 drivers/hwmon/lm80.c int nr = attr->index; attr 431 drivers/hwmon/lm80.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 440 drivers/hwmon/lm80.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 443 drivers/hwmon/lm80.c int bitnr = to_sensor_dev_attr(attr)->index; attr 500 drivers/hwmon/lm80.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 501 drivers/hwmon/lm80.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 502 drivers/hwmon/lm80.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 503 drivers/hwmon/lm80.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 504 drivers/hwmon/lm80.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 505 drivers/hwmon/lm80.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 506 drivers/hwmon/lm80.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 507 drivers/hwmon/lm80.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 508 drivers/hwmon/lm80.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 509 drivers/hwmon/lm80.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 510 drivers/hwmon/lm80.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 511 drivers/hwmon/lm80.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 512 drivers/hwmon/lm80.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 513 drivers/hwmon/lm80.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 514 drivers/hwmon/lm80.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 515 drivers/hwmon/lm80.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 516 drivers/hwmon/lm80.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 517 drivers/hwmon/lm80.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 518 drivers/hwmon/lm80.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 519 drivers/hwmon/lm80.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 520 drivers/hwmon/lm80.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 521 drivers/hwmon/lm80.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 522 drivers/hwmon/lm80.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 523 drivers/hwmon/lm80.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 524 drivers/hwmon/lm80.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 525 drivers/hwmon/lm80.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 526 drivers/hwmon/lm80.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 527 drivers/hwmon/lm80.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 528 drivers/hwmon/lm80.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 529 drivers/hwmon/lm80.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 530 drivers/hwmon/lm80.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 531 drivers/hwmon/lm80.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 532 drivers/hwmon/lm80.c &dev_attr_alarms.attr, attr 533 drivers/hwmon/lm80.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 534 drivers/hwmon/lm80.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 535 drivers/hwmon/lm80.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 536 drivers/hwmon/lm80.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 537 drivers/hwmon/lm80.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 538 drivers/hwmon/lm80.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 539 drivers/hwmon/lm80.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 540 drivers/hwmon/lm80.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 541 drivers/hwmon/lm80.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 542 drivers/hwmon/lm80.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 543 drivers/hwmon/lm80.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 155 drivers/hwmon/lm83.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 157 drivers/hwmon/lm83.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); attr 164 drivers/hwmon/lm83.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 168 drivers/hwmon/lm83.c int nr = attr->index; attr 193 drivers/hwmon/lm83.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 195 drivers/hwmon/lm83.c int bitnr = attr->index; attr 229 drivers/hwmon/lm83.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 230 drivers/hwmon/lm83.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 231 drivers/hwmon/lm83.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 232 drivers/hwmon/lm83.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 233 drivers/hwmon/lm83.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 234 drivers/hwmon/lm83.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 236 drivers/hwmon/lm83.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 237 drivers/hwmon/lm83.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 238 drivers/hwmon/lm83.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 239 drivers/hwmon/lm83.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 240 drivers/hwmon/lm83.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 241 drivers/hwmon/lm83.c &dev_attr_alarms.attr, attr 250 drivers/hwmon/lm83.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 251 drivers/hwmon/lm83.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 252 drivers/hwmon/lm83.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 253 drivers/hwmon/lm83.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 254 drivers/hwmon/lm83.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 255 drivers/hwmon/lm83.c &sensor_dev_attr_temp4_crit.dev_attr.attr, attr 257 drivers/hwmon/lm83.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 258 drivers/hwmon/lm83.c &sensor_dev_attr_temp4_crit_alarm.dev_attr.attr, attr 259 drivers/hwmon/lm83.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 260 drivers/hwmon/lm83.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 261 drivers/hwmon/lm83.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 262 drivers/hwmon/lm83.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 552 drivers/hwmon/lm85.c static ssize_t fan_show(struct device *dev, struct device_attribute *attr, attr 555 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 560 drivers/hwmon/lm85.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 563 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 569 drivers/hwmon/lm85.c struct device_attribute *attr, const char *buf, attr 572 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 601 drivers/hwmon/lm85.c struct device_attribute *attr, char *buf) attr 619 drivers/hwmon/lm85.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 626 drivers/hwmon/lm85.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 646 drivers/hwmon/lm85.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 655 drivers/hwmon/lm85.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 658 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 683 drivers/hwmon/lm85.c static ssize_t pwm_show(struct device *dev, struct device_attribute *attr, attr 686 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 691 drivers/hwmon/lm85.c static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, attr 694 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 712 drivers/hwmon/lm85.c struct device_attribute *attr, char *buf) attr 714 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 734 drivers/hwmon/lm85.c struct device_attribute *attr, attr 737 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 778 drivers/hwmon/lm85.c struct device_attribute *attr, char *buf) attr 780 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 794 drivers/hwmon/lm85.c struct device_attribute *attr, const char *buf, attr 797 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 843 drivers/hwmon/lm85.c static ssize_t in_show(struct device *dev, struct device_attribute *attr, attr 846 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 852 drivers/hwmon/lm85.c static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, attr 855 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 860 drivers/hwmon/lm85.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 863 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 880 drivers/hwmon/lm85.c static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, attr 883 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 888 drivers/hwmon/lm85.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 891 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 935 drivers/hwmon/lm85.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 938 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 945 drivers/hwmon/lm85.c struct device_attribute *attr, char *buf) attr 947 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 953 drivers/hwmon/lm85.c struct device_attribute *attr, const char *buf, attr 956 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 977 drivers/hwmon/lm85.c struct device_attribute *attr, char *buf) attr 979 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 985 drivers/hwmon/lm85.c struct device_attribute *attr, const char *buf, attr 988 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1021 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1024 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1030 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1033 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1053 drivers/hwmon/lm85.c struct device_attribute *attr, char *buf) attr 1055 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1061 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1064 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1083 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1086 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1092 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1095 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1130 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1133 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1140 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1143 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1170 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1173 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1179 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1182 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1210 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1213 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1220 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1223 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1247 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1250 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1256 drivers/hwmon/lm85.c struct device_attribute *attr, attr 1259 drivers/hwmon/lm85.c int nr = to_sensor_dev_attr(attr)->index; attr 1291 drivers/hwmon/lm85.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1292 drivers/hwmon/lm85.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1293 drivers/hwmon/lm85.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1294 drivers/hwmon/lm85.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 1295 drivers/hwmon/lm85.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1296 drivers/hwmon/lm85.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1297 drivers/hwmon/lm85.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1298 drivers/hwmon/lm85.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 1299 drivers/hwmon/lm85.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1300 drivers/hwmon/lm85.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1301 drivers/hwmon/lm85.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 1302 drivers/hwmon/lm85.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 1304 drivers/hwmon/lm85.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1305 drivers/hwmon/lm85.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1306 drivers/hwmon/lm85.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1307 drivers/hwmon/lm85.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1308 drivers/hwmon/lm85.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1309 drivers/hwmon/lm85.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1310 drivers/hwmon/lm85.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 1311 drivers/hwmon/lm85.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 1312 drivers/hwmon/lm85.c &sensor_dev_attr_pwm3_freq.dev_attr.attr, attr 1314 drivers/hwmon/lm85.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 1315 drivers/hwmon/lm85.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 1316 drivers/hwmon/lm85.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 1317 drivers/hwmon/lm85.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 1318 drivers/hwmon/lm85.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 1319 drivers/hwmon/lm85.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 1320 drivers/hwmon/lm85.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 1321 drivers/hwmon/lm85.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 1322 drivers/hwmon/lm85.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 1323 drivers/hwmon/lm85.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 1324 drivers/hwmon/lm85.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 1325 drivers/hwmon/lm85.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 1326 drivers/hwmon/lm85.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 1327 drivers/hwmon/lm85.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 1328 drivers/hwmon/lm85.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 1329 drivers/hwmon/lm85.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 1331 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1332 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1333 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1334 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 1335 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 1336 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 1337 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1338 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1339 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1340 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1341 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1342 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1343 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 1344 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 1346 drivers/hwmon/lm85.c &sensor_dev_attr_pwm1_auto_channels.dev_attr.attr, attr 1347 drivers/hwmon/lm85.c &sensor_dev_attr_pwm2_auto_channels.dev_attr.attr, attr 1348 drivers/hwmon/lm85.c &sensor_dev_attr_pwm3_auto_channels.dev_attr.attr, attr 1349 drivers/hwmon/lm85.c &sensor_dev_attr_pwm1_auto_pwm_min.dev_attr.attr, attr 1350 drivers/hwmon/lm85.c &sensor_dev_attr_pwm2_auto_pwm_min.dev_attr.attr, attr 1351 drivers/hwmon/lm85.c &sensor_dev_attr_pwm3_auto_pwm_min.dev_attr.attr, attr 1353 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_auto_temp_min.dev_attr.attr, attr 1354 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_auto_temp_min.dev_attr.attr, attr 1355 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_auto_temp_min.dev_attr.attr, attr 1356 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_auto_temp_max.dev_attr.attr, attr 1357 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_auto_temp_max.dev_attr.attr, attr 1358 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_auto_temp_max.dev_attr.attr, attr 1359 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_auto_temp_crit.dev_attr.attr, attr 1360 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_auto_temp_crit.dev_attr.attr, attr 1361 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_auto_temp_crit.dev_attr.attr, attr 1363 drivers/hwmon/lm85.c &dev_attr_vrm.attr, attr 1364 drivers/hwmon/lm85.c &dev_attr_cpu0_vid.attr, attr 1365 drivers/hwmon/lm85.c &dev_attr_alarms.attr, attr 1374 drivers/hwmon/lm85.c &sensor_dev_attr_pwm1_auto_pwm_minctl.dev_attr.attr, attr 1375 drivers/hwmon/lm85.c &sensor_dev_attr_pwm2_auto_pwm_minctl.dev_attr.attr, attr 1376 drivers/hwmon/lm85.c &sensor_dev_attr_pwm3_auto_pwm_minctl.dev_attr.attr, attr 1385 drivers/hwmon/lm85.c &sensor_dev_attr_temp1_auto_temp_off.dev_attr.attr, attr 1386 drivers/hwmon/lm85.c &sensor_dev_attr_temp2_auto_temp_off.dev_attr.attr, attr 1387 drivers/hwmon/lm85.c &sensor_dev_attr_temp3_auto_temp_off.dev_attr.attr, attr 1396 drivers/hwmon/lm85.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 1397 drivers/hwmon/lm85.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 1398 drivers/hwmon/lm85.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 1399 drivers/hwmon/lm85.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 1408 drivers/hwmon/lm85.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 1409 drivers/hwmon/lm85.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 1410 drivers/hwmon/lm85.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 1411 drivers/hwmon/lm85.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 1412 drivers/hwmon/lm85.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 1413 drivers/hwmon/lm85.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 1414 drivers/hwmon/lm85.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 1415 drivers/hwmon/lm85.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 1416 drivers/hwmon/lm85.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 1417 drivers/hwmon/lm85.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 1418 drivers/hwmon/lm85.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 1419 drivers/hwmon/lm85.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 267 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 270 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 276 drivers/hwmon/lm87.c static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, attr 280 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 286 drivers/hwmon/lm87.c static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, attr 290 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 296 drivers/hwmon/lm87.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 301 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 317 drivers/hwmon/lm87.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 322 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 364 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 367 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 373 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 376 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 383 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 386 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 393 drivers/hwmon/lm87.c struct device_attribute *attr, const char *buf, attr 398 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 414 drivers/hwmon/lm87.c struct device_attribute *attr, const char *buf, attr 419 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 445 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 452 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 463 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 466 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 472 drivers/hwmon/lm87.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 476 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 482 drivers/hwmon/lm87.c static ssize_t fan_div_show(struct device *dev, struct device_attribute *attr, attr 486 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 493 drivers/hwmon/lm87.c struct device_attribute *attr, const char *buf, attr 498 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 521 drivers/hwmon/lm87.c struct device_attribute *attr, const char *buf, attr 526 drivers/hwmon/lm87.c int nr = to_sensor_dev_attr(attr)->index; attr 584 drivers/hwmon/lm87.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 593 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 600 drivers/hwmon/lm87.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 606 drivers/hwmon/lm87.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 626 drivers/hwmon/lm87.c struct device_attribute *attr, char *buf) attr 632 drivers/hwmon/lm87.c struct device_attribute *attr, attr 652 drivers/hwmon/lm87.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 656 drivers/hwmon/lm87.c int bitnr = to_sensor_dev_attr(attr)->index; attr 680 drivers/hwmon/lm87.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 681 drivers/hwmon/lm87.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 682 drivers/hwmon/lm87.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 683 drivers/hwmon/lm87.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 684 drivers/hwmon/lm87.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 685 drivers/hwmon/lm87.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 686 drivers/hwmon/lm87.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 687 drivers/hwmon/lm87.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 688 drivers/hwmon/lm87.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 689 drivers/hwmon/lm87.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 690 drivers/hwmon/lm87.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 691 drivers/hwmon/lm87.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 692 drivers/hwmon/lm87.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 693 drivers/hwmon/lm87.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 694 drivers/hwmon/lm87.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 695 drivers/hwmon/lm87.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 697 drivers/hwmon/lm87.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 698 drivers/hwmon/lm87.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 699 drivers/hwmon/lm87.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 700 drivers/hwmon/lm87.c &dev_attr_temp1_crit.attr, attr 701 drivers/hwmon/lm87.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 702 drivers/hwmon/lm87.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 703 drivers/hwmon/lm87.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 704 drivers/hwmon/lm87.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 705 drivers/hwmon/lm87.c &dev_attr_temp2_crit.attr, attr 706 drivers/hwmon/lm87.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 707 drivers/hwmon/lm87.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 709 drivers/hwmon/lm87.c &dev_attr_alarms.attr, attr 710 drivers/hwmon/lm87.c &dev_attr_aout_output.attr, attr 720 drivers/hwmon/lm87.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 721 drivers/hwmon/lm87.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 722 drivers/hwmon/lm87.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 723 drivers/hwmon/lm87.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 732 drivers/hwmon/lm87.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 733 drivers/hwmon/lm87.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 734 drivers/hwmon/lm87.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 735 drivers/hwmon/lm87.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 744 drivers/hwmon/lm87.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 745 drivers/hwmon/lm87.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 746 drivers/hwmon/lm87.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 747 drivers/hwmon/lm87.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 756 drivers/hwmon/lm87.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 757 drivers/hwmon/lm87.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 758 drivers/hwmon/lm87.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 759 drivers/hwmon/lm87.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 768 drivers/hwmon/lm87.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 769 drivers/hwmon/lm87.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 770 drivers/hwmon/lm87.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 771 drivers/hwmon/lm87.c &dev_attr_temp3_crit.attr, attr 772 drivers/hwmon/lm87.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 773 drivers/hwmon/lm87.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 782 drivers/hwmon/lm87.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 783 drivers/hwmon/lm87.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 784 drivers/hwmon/lm87.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 785 drivers/hwmon/lm87.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 786 drivers/hwmon/lm87.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 787 drivers/hwmon/lm87.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 788 drivers/hwmon/lm87.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 789 drivers/hwmon/lm87.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 798 drivers/hwmon/lm87.c &dev_attr_cpu0_vid.attr, attr 799 drivers/hwmon/lm87.c &dev_attr_vrm.attr, attr 1153 drivers/hwmon/lm90.c static int lm90_temp_read(struct device *dev, u32 attr, int channel, long *val) attr 1164 drivers/hwmon/lm90.c switch (attr) { attr 1220 drivers/hwmon/lm90.c static int lm90_temp_write(struct device *dev, u32 attr, int channel, long val) attr 1231 drivers/hwmon/lm90.c switch (attr) { attr 1274 drivers/hwmon/lm90.c static umode_t lm90_temp_is_visible(const void *data, u32 attr, int channel) attr 1276 drivers/hwmon/lm90.c switch (attr) { attr 1300 drivers/hwmon/lm90.c static int lm90_chip_read(struct device *dev, u32 attr, int channel, long *val) attr 1311 drivers/hwmon/lm90.c switch (attr) { attr 1325 drivers/hwmon/lm90.c static int lm90_chip_write(struct device *dev, u32 attr, int channel, long val) attr 1337 drivers/hwmon/lm90.c switch (attr) { attr 1352 drivers/hwmon/lm90.c static umode_t lm90_chip_is_visible(const void *data, u32 attr, int channel) attr 1354 drivers/hwmon/lm90.c switch (attr) { attr 1365 drivers/hwmon/lm90.c u32 attr, int channel, long *val) attr 1369 drivers/hwmon/lm90.c return lm90_chip_read(dev, attr, channel, val); attr 1371 drivers/hwmon/lm90.c return lm90_temp_read(dev, attr, channel, val); attr 1378 drivers/hwmon/lm90.c u32 attr, int channel, long val) attr 1382 drivers/hwmon/lm90.c return lm90_chip_write(dev, attr, channel, val); attr 1384 drivers/hwmon/lm90.c return lm90_temp_write(dev, attr, channel, val); attr 1391 drivers/hwmon/lm90.c u32 attr, int channel) attr 1395 drivers/hwmon/lm90.c return lm90_chip_is_visible(data, attr, channel); attr 1397 drivers/hwmon/lm90.c return lm90_temp_is_visible(data, attr, channel); attr 140 drivers/hwmon/lm92.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 143 drivers/hwmon/lm92.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); attr 150 drivers/hwmon/lm92.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 153 drivers/hwmon/lm92.c int nr = attr->index; attr 171 drivers/hwmon/lm92.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 174 drivers/hwmon/lm92.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]) attr 179 drivers/hwmon/lm92.c struct device_attribute *attr, char *buf) attr 191 drivers/hwmon/lm92.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 204 drivers/hwmon/lm92.c TEMP_TO_REG(TEMP_FROM_REG(data->temp[attr->index]) - val); attr 211 drivers/hwmon/lm92.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 219 drivers/hwmon/lm92.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 222 drivers/hwmon/lm92.c int bitnr = to_sensor_dev_attr(attr)->index; attr 255 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 256 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 257 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 258 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 259 drivers/hwmon/lm92.c &dev_attr_temp1_min_hyst.attr, attr 260 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 261 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 262 drivers/hwmon/lm92.c &dev_attr_alarms.attr, attr 263 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 264 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 265 drivers/hwmon/lm92.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 1101 drivers/hwmon/lm93.c static ssize_t in_show(struct device *dev, struct device_attribute *attr, attr 1104 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1127 drivers/hwmon/lm93.c static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, attr 1130 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1144 drivers/hwmon/lm93.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 1147 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1192 drivers/hwmon/lm93.c static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, attr 1195 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1209 drivers/hwmon/lm93.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 1212 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1257 drivers/hwmon/lm93.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 1260 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1270 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1272 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1278 drivers/hwmon/lm93.c struct device_attribute *attr, const char *buf, attr 1281 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1303 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1305 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1311 drivers/hwmon/lm93.c struct device_attribute *attr, const char *buf, attr 1314 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1336 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1338 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1344 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1347 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1369 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1371 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1377 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1380 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1402 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1405 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1413 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1416 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1443 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1445 drivers/hwmon/lm93.c struct sensor_device_attribute_2 *s_attr = to_sensor_dev_attr_2(attr); attr 1456 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1459 drivers/hwmon/lm93.c struct sensor_device_attribute_2 *s_attr = to_sensor_dev_attr_2(attr); attr 1522 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1525 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1535 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1538 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1567 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1570 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1578 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1581 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1610 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1612 drivers/hwmon/lm93.c struct sensor_device_attribute *s_attr = to_sensor_dev_attr(attr); attr 1624 drivers/hwmon/lm93.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 1627 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1634 drivers/hwmon/lm93.c struct device_attribute *attr, const char *buf, attr 1637 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1674 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1676 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1713 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1716 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1747 drivers/hwmon/lm93.c static ssize_t pwm_show(struct device *dev, struct device_attribute *attr, attr 1750 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1765 drivers/hwmon/lm93.c static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, attr 1768 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1797 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1799 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1813 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1816 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1854 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 1856 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1889 drivers/hwmon/lm93.c struct device_attribute *attr, const char *buf, attr 1892 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1919 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1922 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1928 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1931 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1953 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1956 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1968 drivers/hwmon/lm93.c struct device_attribute *attr, attr 1971 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 1998 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2001 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2008 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2011 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2035 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 2043 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2067 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 2075 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2098 drivers/hwmon/lm93.c static ssize_t vid_show(struct device *dev, struct device_attribute *attr, attr 2101 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2109 drivers/hwmon/lm93.c static ssize_t prochot_show(struct device *dev, struct device_attribute *attr, attr 2112 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2121 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 2123 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2132 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 2134 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2140 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2143 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2167 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 2169 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2176 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2179 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2204 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 2206 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2217 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2220 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2247 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2255 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2279 drivers/hwmon/lm93.c struct device_attribute *attr, char *buf) attr 2286 drivers/hwmon/lm93.c struct device_attribute *attr, attr 2310 drivers/hwmon/lm93.c static ssize_t vrdhot_show(struct device *dev, struct device_attribute *attr, attr 2313 drivers/hwmon/lm93.c int nr = (to_sensor_dev_attr(attr))->index; attr 2322 drivers/hwmon/lm93.c static ssize_t gpio_show(struct device *dev, struct device_attribute *attr, attr 2331 drivers/hwmon/lm93.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 2341 drivers/hwmon/lm93.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 2342 drivers/hwmon/lm93.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 2343 drivers/hwmon/lm93.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 2344 drivers/hwmon/lm93.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 2345 drivers/hwmon/lm93.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 2346 drivers/hwmon/lm93.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 2347 drivers/hwmon/lm93.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 2348 drivers/hwmon/lm93.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 2349 drivers/hwmon/lm93.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 2350 drivers/hwmon/lm93.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 2351 drivers/hwmon/lm93.c &sensor_dev_attr_in11_input.dev_attr.attr, attr 2352 drivers/hwmon/lm93.c &sensor_dev_attr_in12_input.dev_attr.attr, attr 2353 drivers/hwmon/lm93.c &sensor_dev_attr_in13_input.dev_attr.attr, attr 2354 drivers/hwmon/lm93.c &sensor_dev_attr_in14_input.dev_attr.attr, attr 2355 drivers/hwmon/lm93.c &sensor_dev_attr_in15_input.dev_attr.attr, attr 2356 drivers/hwmon/lm93.c &sensor_dev_attr_in16_input.dev_attr.attr, attr 2357 drivers/hwmon/lm93.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 2358 drivers/hwmon/lm93.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 2359 drivers/hwmon/lm93.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 2360 drivers/hwmon/lm93.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 2361 drivers/hwmon/lm93.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 2362 drivers/hwmon/lm93.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 2363 drivers/hwmon/lm93.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 2364 drivers/hwmon/lm93.c &sensor_dev_attr_in8_min.dev_attr.attr, attr 2365 drivers/hwmon/lm93.c &sensor_dev_attr_in9_min.dev_attr.attr, attr 2366 drivers/hwmon/lm93.c &sensor_dev_attr_in10_min.dev_attr.attr, attr 2367 drivers/hwmon/lm93.c &sensor_dev_attr_in11_min.dev_attr.attr, attr 2368 drivers/hwmon/lm93.c &sensor_dev_attr_in12_min.dev_attr.attr, attr 2369 drivers/hwmon/lm93.c &sensor_dev_attr_in13_min.dev_attr.attr, attr 2370 drivers/hwmon/lm93.c &sensor_dev_attr_in14_min.dev_attr.attr, attr 2371 drivers/hwmon/lm93.c &sensor_dev_attr_in15_min.dev_attr.attr, attr 2372 drivers/hwmon/lm93.c &sensor_dev_attr_in16_min.dev_attr.attr, attr 2373 drivers/hwmon/lm93.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 2374 drivers/hwmon/lm93.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 2375 drivers/hwmon/lm93.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 2376 drivers/hwmon/lm93.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 2377 drivers/hwmon/lm93.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 2378 drivers/hwmon/lm93.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 2379 drivers/hwmon/lm93.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 2380 drivers/hwmon/lm93.c &sensor_dev_attr_in8_max.dev_attr.attr, attr 2381 drivers/hwmon/lm93.c &sensor_dev_attr_in9_max.dev_attr.attr, attr 2382 drivers/hwmon/lm93.c &sensor_dev_attr_in10_max.dev_attr.attr, attr 2383 drivers/hwmon/lm93.c &sensor_dev_attr_in11_max.dev_attr.attr, attr 2384 drivers/hwmon/lm93.c &sensor_dev_attr_in12_max.dev_attr.attr, attr 2385 drivers/hwmon/lm93.c &sensor_dev_attr_in13_max.dev_attr.attr, attr 2386 drivers/hwmon/lm93.c &sensor_dev_attr_in14_max.dev_attr.attr, attr 2387 drivers/hwmon/lm93.c &sensor_dev_attr_in15_max.dev_attr.attr, attr 2388 drivers/hwmon/lm93.c &sensor_dev_attr_in16_max.dev_attr.attr, attr 2389 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 2390 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 2391 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 2392 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 2393 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 2394 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 2395 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 2396 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 2397 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 2398 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_base.dev_attr.attr, attr 2399 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_base.dev_attr.attr, attr 2400 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_base.dev_attr.attr, attr 2401 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_boost.dev_attr.attr, attr 2402 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_boost.dev_attr.attr, attr 2403 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_boost.dev_attr.attr, attr 2404 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_boost_hyst.dev_attr.attr, attr 2405 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_boost_hyst.dev_attr.attr, attr 2406 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_boost_hyst.dev_attr.attr, attr 2407 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset1.dev_attr.attr, attr 2408 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset2.dev_attr.attr, attr 2409 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset3.dev_attr.attr, attr 2410 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset4.dev_attr.attr, attr 2411 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset5.dev_attr.attr, attr 2412 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset6.dev_attr.attr, attr 2413 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset7.dev_attr.attr, attr 2414 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset8.dev_attr.attr, attr 2415 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset9.dev_attr.attr, attr 2416 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset10.dev_attr.attr, attr 2417 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset11.dev_attr.attr, attr 2418 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset12.dev_attr.attr, attr 2419 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset1.dev_attr.attr, attr 2420 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset2.dev_attr.attr, attr 2421 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset3.dev_attr.attr, attr 2422 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset4.dev_attr.attr, attr 2423 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset5.dev_attr.attr, attr 2424 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset6.dev_attr.attr, attr 2425 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset7.dev_attr.attr, attr 2426 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset8.dev_attr.attr, attr 2427 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset9.dev_attr.attr, attr 2428 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset10.dev_attr.attr, attr 2429 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset11.dev_attr.attr, attr 2430 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset12.dev_attr.attr, attr 2431 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset1.dev_attr.attr, attr 2432 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset2.dev_attr.attr, attr 2433 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset3.dev_attr.attr, attr 2434 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset4.dev_attr.attr, attr 2435 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset5.dev_attr.attr, attr 2436 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset6.dev_attr.attr, attr 2437 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset7.dev_attr.attr, attr 2438 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset8.dev_attr.attr, attr 2439 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset9.dev_attr.attr, attr 2440 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset10.dev_attr.attr, attr 2441 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset11.dev_attr.attr, attr 2442 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset12.dev_attr.attr, attr 2443 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_pwm_min.dev_attr.attr, attr 2444 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_pwm_min.dev_attr.attr, attr 2445 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_pwm_min.dev_attr.attr, attr 2446 drivers/hwmon/lm93.c &sensor_dev_attr_temp1_auto_offset_hyst.dev_attr.attr, attr 2447 drivers/hwmon/lm93.c &sensor_dev_attr_temp2_auto_offset_hyst.dev_attr.attr, attr 2448 drivers/hwmon/lm93.c &sensor_dev_attr_temp3_auto_offset_hyst.dev_attr.attr, attr 2449 drivers/hwmon/lm93.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 2450 drivers/hwmon/lm93.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 2451 drivers/hwmon/lm93.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 2452 drivers/hwmon/lm93.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 2453 drivers/hwmon/lm93.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 2454 drivers/hwmon/lm93.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 2455 drivers/hwmon/lm93.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 2456 drivers/hwmon/lm93.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 2457 drivers/hwmon/lm93.c &sensor_dev_attr_fan1_smart_tach.dev_attr.attr, attr 2458 drivers/hwmon/lm93.c &sensor_dev_attr_fan2_smart_tach.dev_attr.attr, attr 2459 drivers/hwmon/lm93.c &sensor_dev_attr_fan3_smart_tach.dev_attr.attr, attr 2460 drivers/hwmon/lm93.c &sensor_dev_attr_fan4_smart_tach.dev_attr.attr, attr 2461 drivers/hwmon/lm93.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 2462 drivers/hwmon/lm93.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 2463 drivers/hwmon/lm93.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 2464 drivers/hwmon/lm93.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 2465 drivers/hwmon/lm93.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 2466 drivers/hwmon/lm93.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 2467 drivers/hwmon/lm93.c &sensor_dev_attr_pwm1_auto_channels.dev_attr.attr, attr 2468 drivers/hwmon/lm93.c &sensor_dev_attr_pwm2_auto_channels.dev_attr.attr, attr 2469 drivers/hwmon/lm93.c &sensor_dev_attr_pwm1_auto_spinup_min.dev_attr.attr, attr 2470 drivers/hwmon/lm93.c &sensor_dev_attr_pwm2_auto_spinup_min.dev_attr.attr, attr 2471 drivers/hwmon/lm93.c &sensor_dev_attr_pwm1_auto_spinup_time.dev_attr.attr, attr 2472 drivers/hwmon/lm93.c &sensor_dev_attr_pwm2_auto_spinup_time.dev_attr.attr, attr 2473 drivers/hwmon/lm93.c &dev_attr_pwm_auto_prochot_ramp.attr, attr 2474 drivers/hwmon/lm93.c &dev_attr_pwm_auto_vrdhot_ramp.attr, attr 2475 drivers/hwmon/lm93.c &sensor_dev_attr_cpu0_vid.dev_attr.attr, attr 2476 drivers/hwmon/lm93.c &sensor_dev_attr_cpu1_vid.dev_attr.attr, attr 2477 drivers/hwmon/lm93.c &sensor_dev_attr_prochot1.dev_attr.attr, attr 2478 drivers/hwmon/lm93.c &sensor_dev_attr_prochot2.dev_attr.attr, attr 2479 drivers/hwmon/lm93.c &sensor_dev_attr_prochot1_avg.dev_attr.attr, attr 2480 drivers/hwmon/lm93.c &sensor_dev_attr_prochot2_avg.dev_attr.attr, attr 2481 drivers/hwmon/lm93.c &sensor_dev_attr_prochot1_max.dev_attr.attr, attr 2482 drivers/hwmon/lm93.c &sensor_dev_attr_prochot2_max.dev_attr.attr, attr 2483 drivers/hwmon/lm93.c &sensor_dev_attr_prochot1_override.dev_attr.attr, attr 2484 drivers/hwmon/lm93.c &sensor_dev_attr_prochot2_override.dev_attr.attr, attr 2485 drivers/hwmon/lm93.c &sensor_dev_attr_prochot1_interval.dev_attr.attr, attr 2486 drivers/hwmon/lm93.c &sensor_dev_attr_prochot2_interval.dev_attr.attr, attr 2487 drivers/hwmon/lm93.c &dev_attr_prochot_override_duty_cycle.attr, attr 2488 drivers/hwmon/lm93.c &dev_attr_prochot_short.attr, attr 2489 drivers/hwmon/lm93.c &sensor_dev_attr_vrdhot1.dev_attr.attr, attr 2490 drivers/hwmon/lm93.c &sensor_dev_attr_vrdhot2.dev_attr.attr, attr 2491 drivers/hwmon/lm93.c &dev_attr_gpio.attr, attr 2492 drivers/hwmon/lm93.c &dev_attr_alarms.attr, attr 205 drivers/hwmon/lm95234.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 209 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 219 drivers/hwmon/lm95234.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 223 drivers/hwmon/lm95234.c u32 mask = to_sensor_dev_attr(attr)->index; attr 232 drivers/hwmon/lm95234.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 236 drivers/hwmon/lm95234.c u8 mask = to_sensor_dev_attr(attr)->index; attr 245 drivers/hwmon/lm95234.c static ssize_t type_store(struct device *dev, struct device_attribute *attr, attr 250 drivers/hwmon/lm95234.c u8 mask = to_sensor_dev_attr(attr)->index; attr 276 drivers/hwmon/lm95234.c static ssize_t tcrit2_show(struct device *dev, struct device_attribute *attr, attr 280 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 289 drivers/hwmon/lm95234.c static ssize_t tcrit2_store(struct device *dev, struct device_attribute *attr, attr 293 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 315 drivers/hwmon/lm95234.c struct device_attribute *attr, char *buf) attr 318 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 329 drivers/hwmon/lm95234.c static ssize_t tcrit1_show(struct device *dev, struct device_attribute *attr, attr 333 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 338 drivers/hwmon/lm95234.c static ssize_t tcrit1_store(struct device *dev, struct device_attribute *attr, attr 342 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 364 drivers/hwmon/lm95234.c struct device_attribute *attr, char *buf) attr 367 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 379 drivers/hwmon/lm95234.c struct device_attribute *attr, attr 383 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 405 drivers/hwmon/lm95234.c static ssize_t offset_show(struct device *dev, struct device_attribute *attr, attr 409 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 418 drivers/hwmon/lm95234.c static ssize_t offset_store(struct device *dev, struct device_attribute *attr, attr 422 drivers/hwmon/lm95234.c int index = to_sensor_dev_attr(attr)->index; attr 445 drivers/hwmon/lm95234.c struct device_attribute *attr, char *buf) attr 458 drivers/hwmon/lm95234.c struct device_attribute *attr, attr 537 drivers/hwmon/lm95234.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 538 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 539 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 540 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 541 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 542 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_type.dev_attr.attr, attr 543 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_type.dev_attr.attr, attr 544 drivers/hwmon/lm95234.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 545 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 546 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 547 drivers/hwmon/lm95234.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 548 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 549 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 550 drivers/hwmon/lm95234.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 551 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 552 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 553 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 554 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 555 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_crit_hyst.dev_attr.attr, attr 556 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_crit_hyst.dev_attr.attr, attr 557 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 558 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 559 drivers/hwmon/lm95234.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 560 drivers/hwmon/lm95234.c &sensor_dev_attr_temp3_offset.dev_attr.attr, attr 561 drivers/hwmon/lm95234.c &dev_attr_update_interval.attr, attr 570 drivers/hwmon/lm95234.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 571 drivers/hwmon/lm95234.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 572 drivers/hwmon/lm95234.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 573 drivers/hwmon/lm95234.c &sensor_dev_attr_temp5_fault.dev_attr.attr, attr 574 drivers/hwmon/lm95234.c &sensor_dev_attr_temp4_type.dev_attr.attr, attr 575 drivers/hwmon/lm95234.c &sensor_dev_attr_temp5_type.dev_attr.attr, attr 576 drivers/hwmon/lm95234.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 577 drivers/hwmon/lm95234.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 578 drivers/hwmon/lm95234.c &sensor_dev_attr_temp4_max_hyst.dev_attr.attr, attr 579 drivers/hwmon/lm95234.c &sensor_dev_attr_temp5_max_hyst.dev_attr.attr, attr 580 drivers/hwmon/lm95234.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 581 drivers/hwmon/lm95234.c &sensor_dev_attr_temp5_max_alarm.dev_attr.attr, attr 582 drivers/hwmon/lm95234.c &sensor_dev_attr_temp4_offset.dev_attr.attr, attr 583 drivers/hwmon/lm95234.c &sensor_dev_attr_temp5_offset.dev_attr.attr, attr 129 drivers/hwmon/lm95241.c static int lm95241_read_chip(struct device *dev, u32 attr, int channel, attr 134 drivers/hwmon/lm95241.c switch (attr) { attr 143 drivers/hwmon/lm95241.c static int lm95241_read_temp(struct device *dev, u32 attr, int channel, attr 148 drivers/hwmon/lm95241.c switch (attr) { attr 187 drivers/hwmon/lm95241.c u32 attr, int channel, long *val) attr 191 drivers/hwmon/lm95241.c return lm95241_read_chip(dev, attr, channel, val); attr 193 drivers/hwmon/lm95241.c return lm95241_read_temp(dev, attr, channel, val); attr 199 drivers/hwmon/lm95241.c static int lm95241_write_chip(struct device *dev, u32 attr, int channel, attr 209 drivers/hwmon/lm95241.c switch (attr) { attr 238 drivers/hwmon/lm95241.c static int lm95241_write_temp(struct device *dev, u32 attr, int channel, attr 247 drivers/hwmon/lm95241.c switch (attr) { attr 323 drivers/hwmon/lm95241.c u32 attr, int channel, long val) attr 327 drivers/hwmon/lm95241.c return lm95241_write_chip(dev, attr, channel, val); attr 329 drivers/hwmon/lm95241.c return lm95241_write_temp(dev, attr, channel, val); attr 337 drivers/hwmon/lm95241.c u32 attr, int channel) attr 341 drivers/hwmon/lm95241.c switch (attr) { attr 347 drivers/hwmon/lm95241.c switch (attr) { attr 159 drivers/hwmon/lm95245.c static int lm95245_read_temp(struct device *dev, u32 attr, int channel, attr 166 drivers/hwmon/lm95245.c switch (attr) { attr 276 drivers/hwmon/lm95245.c static int lm95245_write_temp(struct device *dev, u32 attr, int channel, attr 284 drivers/hwmon/lm95245.c switch (attr) { attr 337 drivers/hwmon/lm95245.c static int lm95245_read_chip(struct device *dev, u32 attr, int channel, attr 342 drivers/hwmon/lm95245.c switch (attr) { attr 351 drivers/hwmon/lm95245.c static int lm95245_write_chip(struct device *dev, u32 attr, int channel, attr 357 drivers/hwmon/lm95245.c switch (attr) { attr 369 drivers/hwmon/lm95245.c u32 attr, int channel, long *val) attr 373 drivers/hwmon/lm95245.c return lm95245_read_chip(dev, attr, channel, val); attr 375 drivers/hwmon/lm95245.c return lm95245_read_temp(dev, attr, channel, val); attr 382 drivers/hwmon/lm95245.c u32 attr, int channel, long val) attr 386 drivers/hwmon/lm95245.c return lm95245_write_chip(dev, attr, channel, val); attr 388 drivers/hwmon/lm95245.c return lm95245_write_temp(dev, attr, channel, val); attr 394 drivers/hwmon/lm95245.c static umode_t lm95245_temp_is_visible(const void *data, u32 attr, int channel) attr 396 drivers/hwmon/lm95245.c switch (attr) { attr 417 drivers/hwmon/lm95245.c u32 attr, int channel) attr 421 drivers/hwmon/lm95245.c switch (attr) { attr 428 drivers/hwmon/lm95245.c return lm95245_temp_is_visible(data, attr, channel); attr 239 drivers/hwmon/lochnagar-hwmon.c u32 attr, int chan) attr 247 drivers/hwmon/lochnagar-hwmon.c if (attr == hwmon_power_average_interval) attr 258 drivers/hwmon/lochnagar-hwmon.c u32 attr, int chan, long *val) attr 271 drivers/hwmon/lochnagar-hwmon.c switch (attr) { attr 287 drivers/hwmon/lochnagar-hwmon.c enum hwmon_sensor_types type, u32 attr, attr 302 drivers/hwmon/lochnagar-hwmon.c u32 attr, int chan, long val) attr 306 drivers/hwmon/lochnagar-hwmon.c if (type != hwmon_power || attr != hwmon_power_average_interval) attr 223 drivers/hwmon/ltc2945.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 226 drivers/hwmon/ltc2945.c value = ltc2945_reg_to_val(dev, attr->index); attr 236 drivers/hwmon/ltc2945.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 238 drivers/hwmon/ltc2945.c u8 reg = attr->index; attr 271 drivers/hwmon/ltc2945.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 273 drivers/hwmon/ltc2945.c u8 reg = attr->index; attr 323 drivers/hwmon/ltc2945.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 332 drivers/hwmon/ltc2945.c fault &= attr->index; attr 334 drivers/hwmon/ltc2945.c regmap_update_bits(regmap, LTC2945_FAULT, attr->index, 0); attr 402 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 403 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 404 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 405 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_lowest.dev_attr.attr, attr 406 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_highest.dev_attr.attr, attr 407 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_reset_history.dev_attr.attr, attr 408 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_min_alarm.dev_attr.attr, attr 409 drivers/hwmon/ltc2945.c &sensor_dev_attr_in1_max_alarm.dev_attr.attr, attr 411 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 412 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 413 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 414 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_lowest.dev_attr.attr, attr 415 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_highest.dev_attr.attr, attr 416 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_reset_history.dev_attr.attr, attr 417 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_min_alarm.dev_attr.attr, attr 418 drivers/hwmon/ltc2945.c &sensor_dev_attr_in2_max_alarm.dev_attr.attr, attr 420 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 421 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_min.dev_attr.attr, attr 422 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_max.dev_attr.attr, attr 423 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_lowest.dev_attr.attr, attr 424 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_highest.dev_attr.attr, attr 425 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_reset_history.dev_attr.attr, attr 426 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_min_alarm.dev_attr.attr, attr 427 drivers/hwmon/ltc2945.c &sensor_dev_attr_curr1_max_alarm.dev_attr.attr, attr 429 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_input.dev_attr.attr, attr 430 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_min.dev_attr.attr, attr 431 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_max.dev_attr.attr, attr 432 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_input_lowest.dev_attr.attr, attr 433 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_input_highest.dev_attr.attr, attr 434 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_reset_history.dev_attr.attr, attr 435 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_min_alarm.dev_attr.attr, attr 436 drivers/hwmon/ltc2945.c &sensor_dev_attr_power1_max_alarm.dev_attr.attr, attr 141 drivers/hwmon/ltc2990.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 146 drivers/hwmon/ltc2990.c ret = ltc2990_get_value(data->i2c, attr->index, &value); attr 159 drivers/hwmon/ltc2990.c container_of(a, struct device_attribute, attr); attr 160 drivers/hwmon/ltc2990.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 166 drivers/hwmon/ltc2990.c if (attr->index & attrs_mask) attr 184 drivers/hwmon/ltc2990.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 185 drivers/hwmon/ltc2990.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 186 drivers/hwmon/ltc2990.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 187 drivers/hwmon/ltc2990.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 188 drivers/hwmon/ltc2990.c &sensor_dev_attr_curr2_input.dev_attr.attr, attr 189 drivers/hwmon/ltc2990.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 190 drivers/hwmon/ltc2990.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 191 drivers/hwmon/ltc2990.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 192 drivers/hwmon/ltc2990.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 193 drivers/hwmon/ltc2990.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 123 drivers/hwmon/ltc4151.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 130 drivers/hwmon/ltc4151.c value = ltc4151_get_value(data, attr->index); attr 148 drivers/hwmon/ltc4151.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 149 drivers/hwmon/ltc4151.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 151 drivers/hwmon/ltc4151.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 139 drivers/hwmon/ltc4215.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 140 drivers/hwmon/ltc4215.c const int voltage = ltc4215_get_voltage(dev, attr->index); attr 168 drivers/hwmon/ltc4215.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 171 drivers/hwmon/ltc4215.c const u32 mask = attr->index; attr 205 drivers/hwmon/ltc4215.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 206 drivers/hwmon/ltc4215.c &sensor_dev_attr_curr1_max_alarm.dev_attr.attr, attr 208 drivers/hwmon/ltc4215.c &sensor_dev_attr_power1_input.dev_attr.attr, attr 210 drivers/hwmon/ltc4215.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 211 drivers/hwmon/ltc4215.c &sensor_dev_attr_in1_max_alarm.dev_attr.attr, attr 212 drivers/hwmon/ltc4215.c &sensor_dev_attr_in1_min_alarm.dev_attr.attr, attr 214 drivers/hwmon/ltc4215.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 215 drivers/hwmon/ltc4215.c &sensor_dev_attr_in2_min_alarm.dev_attr.attr, attr 91 drivers/hwmon/ltc4222.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 94 drivers/hwmon/ltc4222.c value = ltc4222_get_value(dev, attr->index); attr 103 drivers/hwmon/ltc4222.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(da); attr 108 drivers/hwmon/ltc4222.c ret = regmap_read(regmap, attr->nr, &fault); attr 111 drivers/hwmon/ltc4222.c fault &= attr->index; attr 113 drivers/hwmon/ltc4222.c regmap_update_bits(regmap, attr->nr, attr->index, 0); attr 154 drivers/hwmon/ltc4222.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 155 drivers/hwmon/ltc4222.c &sensor_dev_attr_in1_min_alarm.dev_attr.attr, attr 156 drivers/hwmon/ltc4222.c &sensor_dev_attr_in1_max_alarm.dev_attr.attr, attr 157 drivers/hwmon/ltc4222.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 158 drivers/hwmon/ltc4222.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 159 drivers/hwmon/ltc4222.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 160 drivers/hwmon/ltc4222.c &sensor_dev_attr_in3_min_alarm.dev_attr.attr, attr 161 drivers/hwmon/ltc4222.c &sensor_dev_attr_in3_max_alarm.dev_attr.attr, attr 162 drivers/hwmon/ltc4222.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 163 drivers/hwmon/ltc4222.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 165 drivers/hwmon/ltc4222.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 166 drivers/hwmon/ltc4222.c &sensor_dev_attr_curr1_max_alarm.dev_attr.attr, attr 167 drivers/hwmon/ltc4222.c &sensor_dev_attr_curr2_input.dev_attr.attr, attr 168 drivers/hwmon/ltc4222.c &sensor_dev_attr_curr2_max_alarm.dev_attr.attr, attr 268 drivers/hwmon/ltc4245.c static int ltc4245_read_curr(struct device *dev, u32 attr, int channel, attr 273 drivers/hwmon/ltc4245.c switch (attr) { attr 285 drivers/hwmon/ltc4245.c static int ltc4245_read_in(struct device *dev, u32 attr, int channel, long *val) attr 289 drivers/hwmon/ltc4245.c switch (attr) { attr 314 drivers/hwmon/ltc4245.c static int ltc4245_read_power(struct device *dev, u32 attr, int channel, attr 320 drivers/hwmon/ltc4245.c switch (attr) { attr 333 drivers/hwmon/ltc4245.c u32 attr, int channel, long *val) attr 338 drivers/hwmon/ltc4245.c return ltc4245_read_curr(dev, attr, channel, val); attr 340 drivers/hwmon/ltc4245.c return ltc4245_read_power(dev, attr, channel, val); attr 342 drivers/hwmon/ltc4245.c return ltc4245_read_in(dev, attr, channel - 1, val); attr 350 drivers/hwmon/ltc4245.c u32 attr, int channel) attr 358 drivers/hwmon/ltc4245.c switch (attr) { attr 371 drivers/hwmon/ltc4245.c switch (attr) { attr 379 drivers/hwmon/ltc4245.c switch (attr) { attr 76 drivers/hwmon/ltc4260.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 79 drivers/hwmon/ltc4260.c value = ltc4260_get_value(dev, attr->index); attr 88 drivers/hwmon/ltc4260.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 97 drivers/hwmon/ltc4260.c fault &= attr->index; attr 99 drivers/hwmon/ltc4260.c regmap_update_bits(regmap, LTC4260_FAULT, attr->index, 0); attr 125 drivers/hwmon/ltc4260.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 126 drivers/hwmon/ltc4260.c &sensor_dev_attr_in1_min_alarm.dev_attr.attr, attr 127 drivers/hwmon/ltc4260.c &sensor_dev_attr_in1_max_alarm.dev_attr.attr, attr 128 drivers/hwmon/ltc4260.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 129 drivers/hwmon/ltc4260.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 131 drivers/hwmon/ltc4260.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 132 drivers/hwmon/ltc4260.c &sensor_dev_attr_curr1_max_alarm.dev_attr.attr, attr 125 drivers/hwmon/ltc4261.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 132 drivers/hwmon/ltc4261.c value = ltc4261_get_value(data, attr->index); attr 139 drivers/hwmon/ltc4261.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 146 drivers/hwmon/ltc4261.c fault = data->regs[LTC4261_FAULT] & attr->index; attr 179 drivers/hwmon/ltc4261.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 180 drivers/hwmon/ltc4261.c &sensor_dev_attr_in1_min_alarm.dev_attr.attr, attr 181 drivers/hwmon/ltc4261.c &sensor_dev_attr_in1_max_alarm.dev_attr.attr, attr 182 drivers/hwmon/ltc4261.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 183 drivers/hwmon/ltc4261.c &sensor_dev_attr_in2_min_alarm.dev_attr.attr, attr 184 drivers/hwmon/ltc4261.c &sensor_dev_attr_in2_max_alarm.dev_attr.attr, attr 186 drivers/hwmon/ltc4261.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 187 drivers/hwmon/ltc4261.c &sensor_dev_attr_curr1_max_alarm.dev_attr.attr, attr 32 drivers/hwmon/ltq-cputemp.c u32 attr, int channel, long *temp) attr 36 drivers/hwmon/ltq-cputemp.c switch (attr) { attr 55 drivers/hwmon/ltq-cputemp.c u32 attr, int channel) attr 60 drivers/hwmon/ltq-cputemp.c switch (attr) { attr 99 drivers/hwmon/max1111.c struct device_attribute *attr, char *buf) attr 105 drivers/hwmon/max1111.c struct device_attribute *attr, char *buf) attr 108 drivers/hwmon/max1111.c int channel = to_sensor_dev_attr(attr)->index; attr 136 drivers/hwmon/max1111.c &dev_attr_name.attr, attr 137 drivers/hwmon/max1111.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 138 drivers/hwmon/max1111.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 139 drivers/hwmon/max1111.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 140 drivers/hwmon/max1111.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 149 drivers/hwmon/max1111.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 150 drivers/hwmon/max1111.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 151 drivers/hwmon/max1111.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 152 drivers/hwmon/max1111.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 196 drivers/hwmon/max16065.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 198 drivers/hwmon/max16065.c int adc = data->adc[attr->index]; attr 204 drivers/hwmon/max16065.c ADC_TO_MV(adc, data->range[attr->index])); attr 352 drivers/hwmon/max16065.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 353 drivers/hwmon/max16065.c &sensor_dev_attr_in0_lcrit.dev_attr.attr, attr 354 drivers/hwmon/max16065.c &sensor_dev_attr_in0_crit.dev_attr.attr, attr 355 drivers/hwmon/max16065.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 357 drivers/hwmon/max16065.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 358 drivers/hwmon/max16065.c &sensor_dev_attr_in1_lcrit.dev_attr.attr, attr 359 drivers/hwmon/max16065.c &sensor_dev_attr_in1_crit.dev_attr.attr, attr 360 drivers/hwmon/max16065.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 362 drivers/hwmon/max16065.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 363 drivers/hwmon/max16065.c &sensor_dev_attr_in2_lcrit.dev_attr.attr, attr 364 drivers/hwmon/max16065.c &sensor_dev_attr_in2_crit.dev_attr.attr, attr 365 drivers/hwmon/max16065.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 367 drivers/hwmon/max16065.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 368 drivers/hwmon/max16065.c &sensor_dev_attr_in3_lcrit.dev_attr.attr, attr 369 drivers/hwmon/max16065.c &sensor_dev_attr_in3_crit.dev_attr.attr, attr 370 drivers/hwmon/max16065.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 372 drivers/hwmon/max16065.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 373 drivers/hwmon/max16065.c &sensor_dev_attr_in4_lcrit.dev_attr.attr, attr 374 drivers/hwmon/max16065.c &sensor_dev_attr_in4_crit.dev_attr.attr, attr 375 drivers/hwmon/max16065.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 377 drivers/hwmon/max16065.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 378 drivers/hwmon/max16065.c &sensor_dev_attr_in5_lcrit.dev_attr.attr, attr 379 drivers/hwmon/max16065.c &sensor_dev_attr_in5_crit.dev_attr.attr, attr 380 drivers/hwmon/max16065.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 382 drivers/hwmon/max16065.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 383 drivers/hwmon/max16065.c &sensor_dev_attr_in6_lcrit.dev_attr.attr, attr 384 drivers/hwmon/max16065.c &sensor_dev_attr_in6_crit.dev_attr.attr, attr 385 drivers/hwmon/max16065.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 387 drivers/hwmon/max16065.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 388 drivers/hwmon/max16065.c &sensor_dev_attr_in7_lcrit.dev_attr.attr, attr 389 drivers/hwmon/max16065.c &sensor_dev_attr_in7_crit.dev_attr.attr, attr 390 drivers/hwmon/max16065.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 392 drivers/hwmon/max16065.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 393 drivers/hwmon/max16065.c &sensor_dev_attr_in8_lcrit.dev_attr.attr, attr 394 drivers/hwmon/max16065.c &sensor_dev_attr_in8_crit.dev_attr.attr, attr 395 drivers/hwmon/max16065.c &sensor_dev_attr_in8_alarm.dev_attr.attr, attr 397 drivers/hwmon/max16065.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 398 drivers/hwmon/max16065.c &sensor_dev_attr_in9_lcrit.dev_attr.attr, attr 399 drivers/hwmon/max16065.c &sensor_dev_attr_in9_crit.dev_attr.attr, attr 400 drivers/hwmon/max16065.c &sensor_dev_attr_in9_alarm.dev_attr.attr, attr 402 drivers/hwmon/max16065.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 403 drivers/hwmon/max16065.c &sensor_dev_attr_in10_lcrit.dev_attr.attr, attr 404 drivers/hwmon/max16065.c &sensor_dev_attr_in10_crit.dev_attr.attr, attr 405 drivers/hwmon/max16065.c &sensor_dev_attr_in10_alarm.dev_attr.attr, attr 407 drivers/hwmon/max16065.c &sensor_dev_attr_in11_input.dev_attr.attr, attr 408 drivers/hwmon/max16065.c &sensor_dev_attr_in11_lcrit.dev_attr.attr, attr 409 drivers/hwmon/max16065.c &sensor_dev_attr_in11_crit.dev_attr.attr, attr 410 drivers/hwmon/max16065.c &sensor_dev_attr_in11_alarm.dev_attr.attr, attr 416 drivers/hwmon/max16065.c &sensor_dev_attr_in12_input.dev_attr.attr, attr 417 drivers/hwmon/max16065.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 418 drivers/hwmon/max16065.c &sensor_dev_attr_curr1_alarm.dev_attr.attr, attr 423 drivers/hwmon/max16065.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 424 drivers/hwmon/max16065.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 425 drivers/hwmon/max16065.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 426 drivers/hwmon/max16065.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 427 drivers/hwmon/max16065.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 428 drivers/hwmon/max16065.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 429 drivers/hwmon/max16065.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 430 drivers/hwmon/max16065.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 431 drivers/hwmon/max16065.c &sensor_dev_attr_in8_min.dev_attr.attr, attr 432 drivers/hwmon/max16065.c &sensor_dev_attr_in9_min.dev_attr.attr, attr 433 drivers/hwmon/max16065.c &sensor_dev_attr_in10_min.dev_attr.attr, attr 434 drivers/hwmon/max16065.c &sensor_dev_attr_in11_min.dev_attr.attr, attr 439 drivers/hwmon/max16065.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 440 drivers/hwmon/max16065.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 441 drivers/hwmon/max16065.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 442 drivers/hwmon/max16065.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 443 drivers/hwmon/max16065.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 444 drivers/hwmon/max16065.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 445 drivers/hwmon/max16065.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 446 drivers/hwmon/max16065.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 447 drivers/hwmon/max16065.c &sensor_dev_attr_in8_max.dev_attr.attr, attr 448 drivers/hwmon/max16065.c &sensor_dev_attr_in9_max.dev_attr.attr, attr 449 drivers/hwmon/max16065.c &sensor_dev_attr_in10_max.dev_attr.attr, attr 450 drivers/hwmon/max16065.c &sensor_dev_attr_in11_max.dev_attr.attr, attr 142 drivers/hwmon/max1619.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 145 drivers/hwmon/max1619.c return sprintf(buf, "%d\n", temp_from_reg(data->temp[attr->index])); attr 152 drivers/hwmon/max1619.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 161 drivers/hwmon/max1619.c data->temp[attr->index] = temp_to_reg(val); attr 162 drivers/hwmon/max1619.c i2c_smbus_write_byte_data(client, regs_write[attr->index], attr 163 drivers/hwmon/max1619.c data->temp[attr->index]); attr 168 drivers/hwmon/max1619.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 175 drivers/hwmon/max1619.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 178 drivers/hwmon/max1619.c int bitnr = to_sensor_dev_attr(attr)->index; attr 197 drivers/hwmon/max1619.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 198 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 199 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 200 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 201 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 202 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_crit_hyst.dev_attr.attr, attr 204 drivers/hwmon/max1619.c &dev_attr_alarms.attr, attr 205 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 206 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 207 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 208 drivers/hwmon/max1619.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 166 drivers/hwmon/max1668.c static ssize_t show_alarm(struct device *dev, struct device_attribute *attr, attr 169 drivers/hwmon/max1668.c int index = to_sensor_dev_attr(attr)->index; attr 287 drivers/hwmon/max1668.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 288 drivers/hwmon/max1668.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 289 drivers/hwmon/max1668.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 290 drivers/hwmon/max1668.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 291 drivers/hwmon/max1668.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 292 drivers/hwmon/max1668.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 293 drivers/hwmon/max1668.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 294 drivers/hwmon/max1668.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 295 drivers/hwmon/max1668.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 297 drivers/hwmon/max1668.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 298 drivers/hwmon/max1668.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 299 drivers/hwmon/max1668.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 300 drivers/hwmon/max1668.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 301 drivers/hwmon/max1668.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 302 drivers/hwmon/max1668.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 304 drivers/hwmon/max1668.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 305 drivers/hwmon/max1668.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 311 drivers/hwmon/max1668.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 312 drivers/hwmon/max1668.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 313 drivers/hwmon/max1668.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 314 drivers/hwmon/max1668.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 315 drivers/hwmon/max1668.c &sensor_dev_attr_temp5_min.dev_attr.attr, attr 316 drivers/hwmon/max1668.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 318 drivers/hwmon/max1668.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 319 drivers/hwmon/max1668.c &sensor_dev_attr_temp4_min_alarm.dev_attr.attr, attr 320 drivers/hwmon/max1668.c &sensor_dev_attr_temp5_max_alarm.dev_attr.attr, attr 321 drivers/hwmon/max1668.c &sensor_dev_attr_temp5_min_alarm.dev_attr.attr, attr 323 drivers/hwmon/max1668.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 324 drivers/hwmon/max1668.c &sensor_dev_attr_temp5_fault.dev_attr.attr, attr 329 drivers/hwmon/max1668.c struct attribute *attr, int index) attr 334 drivers/hwmon/max1668.c if (attr == &sensor_dev_attr_temp1_max.dev_attr.attr || attr 335 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp2_max.dev_attr.attr || attr 336 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp3_max.dev_attr.attr || attr 337 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp4_max.dev_attr.attr || attr 338 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp5_max.dev_attr.attr || attr 339 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp1_min.dev_attr.attr || attr 340 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp2_min.dev_attr.attr || attr 341 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp3_min.dev_attr.attr || attr 342 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp4_min.dev_attr.attr || attr 343 drivers/hwmon/max1668.c attr == &sensor_dev_attr_temp5_min.dev_attr.attr) attr 92 drivers/hwmon/max197.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 93 drivers/hwmon/max197.c int channel = attr->index; attr 94 drivers/hwmon/max197.c bool is_min = attr->nr; attr 120 drivers/hwmon/max197.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 121 drivers/hwmon/max197.c int channel = attr->index; attr 122 drivers/hwmon/max197.c bool is_min = attr->nr; attr 175 drivers/hwmon/max197.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 176 drivers/hwmon/max197.c int channel = attr->index; attr 208 drivers/hwmon/max197.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 228 drivers/hwmon/max197.c &sensor_dev_attr_in##chan##_input.dev_attr.attr, \ attr 229 drivers/hwmon/max197.c &sensor_dev_attr_in##chan##_max.dev_attr.attr, \ attr 230 drivers/hwmon/max197.c &sensor_dev_attr_in##chan##_min.dev_attr.attr attr 245 drivers/hwmon/max197.c &dev_attr_name.attr, attr 51 drivers/hwmon/max31722.c struct device_attribute *attr, char *buf) attr 66 drivers/hwmon/max31722.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 162 drivers/hwmon/max31790.c static int max31790_read_fan(struct device *dev, u32 attr, int channel, attr 171 drivers/hwmon/max31790.c switch (attr) { attr 190 drivers/hwmon/max31790.c static int max31790_write_fan(struct device *dev, u32 attr, int channel, attr 202 drivers/hwmon/max31790.c switch (attr) { attr 236 drivers/hwmon/max31790.c static umode_t max31790_fan_is_visible(const void *_data, u32 attr, int channel) attr 241 drivers/hwmon/max31790.c switch (attr) { attr 258 drivers/hwmon/max31790.c static int max31790_read_pwm(struct device *dev, u32 attr, int channel, attr 269 drivers/hwmon/max31790.c switch (attr) { attr 286 drivers/hwmon/max31790.c static int max31790_write_pwm(struct device *dev, u32 attr, int channel, attr 296 drivers/hwmon/max31790.c switch (attr) { attr 338 drivers/hwmon/max31790.c static umode_t max31790_pwm_is_visible(const void *_data, u32 attr, int channel) attr 343 drivers/hwmon/max31790.c switch (attr) { attr 355 drivers/hwmon/max31790.c u32 attr, int channel, long *val) attr 359 drivers/hwmon/max31790.c return max31790_read_fan(dev, attr, channel, val); attr 361 drivers/hwmon/max31790.c return max31790_read_pwm(dev, attr, channel, val); attr 368 drivers/hwmon/max31790.c u32 attr, int channel, long val) attr 372 drivers/hwmon/max31790.c return max31790_write_fan(dev, attr, channel, val); attr 374 drivers/hwmon/max31790.c return max31790_write_pwm(dev, attr, channel, val); attr 382 drivers/hwmon/max31790.c u32 attr, int channel) attr 386 drivers/hwmon/max31790.c return max31790_fan_is_visible(data, attr, channel); attr 388 drivers/hwmon/max31790.c return max31790_pwm_is_visible(data, attr, channel); attr 139 drivers/hwmon/max6621.c max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, attr 148 drivers/hwmon/max6621.c switch (attr) { attr 201 drivers/hwmon/max6621.c max6621_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 212 drivers/hwmon/max6621.c switch (attr) { attr 310 drivers/hwmon/max6621.c max6621_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 318 drivers/hwmon/max6621.c switch (attr) { attr 349 drivers/hwmon/max6621.c max6621_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 354 drivers/hwmon/max6621.c switch (attr) { attr 157 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 162 drivers/hwmon/max6639.c temp = data->temp[attr->index] * 125; attr 170 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 175 drivers/hwmon/max6639.c return sprintf(buf, "%d\n", data->temp_fault[attr->index]); attr 181 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 184 drivers/hwmon/max6639.c return sprintf(buf, "%d\n", (data->temp_therm[attr->index] * 1000)); attr 191 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 202 drivers/hwmon/max6639.c data->temp_therm[attr->index] = TEMP_LIMIT_TO_REG(val); attr 204 drivers/hwmon/max6639.c MAX6639_REG_THERM_LIMIT(attr->index), attr 205 drivers/hwmon/max6639.c data->temp_therm[attr->index]); attr 213 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 216 drivers/hwmon/max6639.c return sprintf(buf, "%d\n", (data->temp_alert[attr->index] * 1000)); attr 223 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 234 drivers/hwmon/max6639.c data->temp_alert[attr->index] = TEMP_LIMIT_TO_REG(val); attr 236 drivers/hwmon/max6639.c MAX6639_REG_ALERT_LIMIT(attr->index), attr 237 drivers/hwmon/max6639.c data->temp_alert[attr->index]); attr 246 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 249 drivers/hwmon/max6639.c return sprintf(buf, "%d\n", (data->temp_ot[attr->index] * 1000)); attr 256 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 267 drivers/hwmon/max6639.c data->temp_ot[attr->index] = TEMP_LIMIT_TO_REG(val); attr 269 drivers/hwmon/max6639.c MAX6639_REG_OT_LIMIT(attr->index), attr 270 drivers/hwmon/max6639.c data->temp_ot[attr->index]); attr 278 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 281 drivers/hwmon/max6639.c return sprintf(buf, "%d\n", data->pwm[attr->index] * 255 / 120); attr 288 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 301 drivers/hwmon/max6639.c data->pwm[attr->index] = (u8)(val * 120 / 255); attr 303 drivers/hwmon/max6639.c MAX6639_REG_TARGTDUTY(attr->index), attr 304 drivers/hwmon/max6639.c data->pwm[attr->index]); attr 313 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 318 drivers/hwmon/max6639.c return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], attr 326 drivers/hwmon/max6639.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 331 drivers/hwmon/max6639.c return sprintf(buf, "%d\n", !!(data->status & (1 << attr->index))); attr 359 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 360 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 361 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 362 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 363 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 364 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 365 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 366 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 367 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_emergency.dev_attr.attr, attr 368 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_emergency.dev_attr.attr, attr 369 drivers/hwmon/max6639.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 370 drivers/hwmon/max6639.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 371 drivers/hwmon/max6639.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 372 drivers/hwmon/max6639.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 373 drivers/hwmon/max6639.c &sensor_dev_attr_fan1_fault.dev_attr.attr, attr 374 drivers/hwmon/max6639.c &sensor_dev_attr_fan2_fault.dev_attr.attr, attr 375 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 376 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 377 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 378 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 379 drivers/hwmon/max6639.c &sensor_dev_attr_temp1_emergency_alarm.dev_attr.attr, attr 380 drivers/hwmon/max6639.c &sensor_dev_attr_temp2_emergency_alarm.dev_attr.attr, attr 199 drivers/hwmon/max6642.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 203 drivers/hwmon/max6642.c temp_from_reg10(data->temp_input[attr->index])); attr 207 drivers/hwmon/max6642.c struct device_attribute *attr, char *buf) attr 209 drivers/hwmon/max6642.c struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); attr 216 drivers/hwmon/max6642.c struct device_attribute *attr, const char *buf, attr 219 drivers/hwmon/max6642.c struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); attr 236 drivers/hwmon/max6642.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 239 drivers/hwmon/max6642.c int bitnr = to_sensor_dev_attr(attr)->index; attr 255 drivers/hwmon/max6642.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 256 drivers/hwmon/max6642.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 257 drivers/hwmon/max6642.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 258 drivers/hwmon/max6642.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 260 drivers/hwmon/max6642.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 261 drivers/hwmon/max6642.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 262 drivers/hwmon/max6642.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 300 drivers/hwmon/max6650.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 307 drivers/hwmon/max6650.c alarm = data->alarm & attr->index; attr 310 drivers/hwmon/max6650.c data->alarm &= ~attr->index; attr 332 drivers/hwmon/max6650.c devattr = container_of(a, struct device_attribute, attr); attr 343 drivers/hwmon/max6650.c &sensor_dev_attr_gpio1_alarm.dev_attr.attr, attr 344 drivers/hwmon/max6650.c &sensor_dev_attr_gpio2_alarm.dev_attr.attr, attr 520 drivers/hwmon/max6650.c u32 attr, int channel, long *val) attr 530 drivers/hwmon/max6650.c switch (attr) { attr 553 drivers/hwmon/max6650.c switch (attr) { attr 611 drivers/hwmon/max6650.c u32 attr, int channel, long val) attr 621 drivers/hwmon/max6650.c switch (attr) { attr 645 drivers/hwmon/max6650.c switch (attr) { attr 693 drivers/hwmon/max6650.c enum hwmon_sensor_types type, u32 attr, attr 703 drivers/hwmon/max6650.c switch (attr) { attr 726 drivers/hwmon/max6650.c switch (attr) { attr 277 drivers/hwmon/max6697.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 280 drivers/hwmon/max6697.c int index = to_sensor_dev_attr(attr)->index; attr 379 drivers/hwmon/max6697.c static umode_t max6697_is_visible(struct kobject *kobj, struct attribute *attr, attr 396 drivers/hwmon/max6697.c return attr->mode; attr 405 drivers/hwmon/max6697.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 406 drivers/hwmon/max6697.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 407 drivers/hwmon/max6697.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 408 drivers/hwmon/max6697.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 409 drivers/hwmon/max6697.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 410 drivers/hwmon/max6697.c &dev_attr_dummy.attr, attr 412 drivers/hwmon/max6697.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 413 drivers/hwmon/max6697.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 414 drivers/hwmon/max6697.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 415 drivers/hwmon/max6697.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 416 drivers/hwmon/max6697.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 417 drivers/hwmon/max6697.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 419 drivers/hwmon/max6697.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 420 drivers/hwmon/max6697.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 421 drivers/hwmon/max6697.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 422 drivers/hwmon/max6697.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 423 drivers/hwmon/max6697.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 424 drivers/hwmon/max6697.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 426 drivers/hwmon/max6697.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 427 drivers/hwmon/max6697.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 428 drivers/hwmon/max6697.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 429 drivers/hwmon/max6697.c &sensor_dev_attr_temp4_crit.dev_attr.attr, attr 430 drivers/hwmon/max6697.c &sensor_dev_attr_temp4_crit_alarm.dev_attr.attr, attr 431 drivers/hwmon/max6697.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 433 drivers/hwmon/max6697.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 434 drivers/hwmon/max6697.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 435 drivers/hwmon/max6697.c &sensor_dev_attr_temp5_max_alarm.dev_attr.attr, attr 436 drivers/hwmon/max6697.c &sensor_dev_attr_temp5_crit.dev_attr.attr, attr 437 drivers/hwmon/max6697.c &sensor_dev_attr_temp5_crit_alarm.dev_attr.attr, attr 438 drivers/hwmon/max6697.c &sensor_dev_attr_temp5_fault.dev_attr.attr, attr 440 drivers/hwmon/max6697.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 441 drivers/hwmon/max6697.c &sensor_dev_attr_temp6_max.dev_attr.attr, attr 442 drivers/hwmon/max6697.c &sensor_dev_attr_temp6_max_alarm.dev_attr.attr, attr 443 drivers/hwmon/max6697.c &sensor_dev_attr_temp6_crit.dev_attr.attr, attr 444 drivers/hwmon/max6697.c &sensor_dev_attr_temp6_crit_alarm.dev_attr.attr, attr 445 drivers/hwmon/max6697.c &sensor_dev_attr_temp6_fault.dev_attr.attr, attr 447 drivers/hwmon/max6697.c &sensor_dev_attr_temp7_input.dev_attr.attr, attr 448 drivers/hwmon/max6697.c &sensor_dev_attr_temp7_max.dev_attr.attr, attr 449 drivers/hwmon/max6697.c &sensor_dev_attr_temp7_max_alarm.dev_attr.attr, attr 450 drivers/hwmon/max6697.c &sensor_dev_attr_temp7_crit.dev_attr.attr, attr 451 drivers/hwmon/max6697.c &sensor_dev_attr_temp7_crit_alarm.dev_attr.attr, attr 452 drivers/hwmon/max6697.c &sensor_dev_attr_temp7_fault.dev_attr.attr, attr 454 drivers/hwmon/max6697.c &sensor_dev_attr_temp8_input.dev_attr.attr, attr 455 drivers/hwmon/max6697.c &sensor_dev_attr_temp8_max.dev_attr.attr, attr 456 drivers/hwmon/max6697.c &sensor_dev_attr_temp8_max_alarm.dev_attr.attr, attr 457 drivers/hwmon/max6697.c &sensor_dev_attr_temp8_crit.dev_attr.attr, attr 458 drivers/hwmon/max6697.c &sensor_dev_attr_temp8_crit_alarm.dev_attr.attr, attr 459 drivers/hwmon/max6697.c &sensor_dev_attr_temp8_fault.dev_attr.attr, attr 44 drivers/hwmon/mc13783-adc.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 45 drivers/hwmon/mc13783-adc.c unsigned int channel = attr->index; attr 179 drivers/hwmon/mc13783-adc.c &dev_attr_name.attr, attr 180 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 181 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 182 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 183 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 184 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in16_input.dev_attr.attr, attr 185 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 195 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 196 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 197 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 198 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in11_input.dev_attr.attr, attr 208 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in12_input.dev_attr.attr, attr 209 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in13_input.dev_attr.attr, attr 210 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in14_input.dev_attr.attr, attr 211 drivers/hwmon/mc13783-adc.c &sensor_dev_attr_in15_input.dev_attr.attr, attr 86 drivers/hwmon/mcp3021.c struct device_attribute *attr, char *buf) attr 152 drivers/hwmon/mcp3021.c err = sysfs_create_file(&client->dev.kobj, &dev_attr_in0_input.attr); attr 165 drivers/hwmon/mcp3021.c sysfs_remove_file(&client->dev.kobj, &dev_attr_in0_input.attr); attr 174 drivers/hwmon/mcp3021.c sysfs_remove_file(&client->dev.kobj, &dev_attr_in0_input.attr); attr 102 drivers/hwmon/menf21bmc_hwmon.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 104 drivers/hwmon/menf21bmc_hwmon.c return sprintf(buf, "%s\n", input_names[attr->index]); attr 110 drivers/hwmon/menf21bmc_hwmon.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 116 drivers/hwmon/menf21bmc_hwmon.c return sprintf(buf, "%d\n", drv_data->in_val[attr->index]); attr 122 drivers/hwmon/menf21bmc_hwmon.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 125 drivers/hwmon/menf21bmc_hwmon.c return sprintf(buf, "%d\n", drv_data->in_min[attr->index]); attr 131 drivers/hwmon/menf21bmc_hwmon.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 134 drivers/hwmon/menf21bmc_hwmon.c return sprintf(buf, "%d\n", drv_data->in_max[attr->index]); attr 159 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 160 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 161 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 162 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in0_label.dev_attr.attr, attr 164 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 165 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 166 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 167 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in1_label.dev_attr.attr, attr 169 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 170 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 171 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 172 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in2_label.dev_attr.attr, attr 174 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 175 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 176 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 177 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in3_label.dev_attr.attr, attr 179 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 180 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 181 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 182 drivers/hwmon/menf21bmc_hwmon.c &sensor_dev_attr_in4_label.dev_attr.attr, attr 113 drivers/hwmon/mlxreg-fan.c mlxreg_fan_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 124 drivers/hwmon/mlxreg-fan.c switch (attr) { attr 148 drivers/hwmon/mlxreg-fan.c switch (attr) { attr 170 drivers/hwmon/mlxreg-fan.c mlxreg_fan_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 177 drivers/hwmon/mlxreg-fan.c switch (attr) { attr 196 drivers/hwmon/mlxreg-fan.c mlxreg_fan_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, attr 204 drivers/hwmon/mlxreg-fan.c switch (attr) { attr 217 drivers/hwmon/mlxreg-fan.c switch (attr) { attr 359 drivers/hwmon/nct6683.c .attr = {.name = _template, .mode = _mode }, \ attr 437 drivers/hwmon/nct6683.c (*t)->dev_attr.attr.name, tg->base + i); attr 440 drivers/hwmon/nct6683.c sysfs_attr_init(&a2->dev_attr.attr); attr 441 drivers/hwmon/nct6683.c a2->dev_attr.attr.name = su->name; attr 444 drivers/hwmon/nct6683.c a2->dev_attr.attr.mode = attr 445 drivers/hwmon/nct6683.c (*t)->dev_attr.attr.mode; attr 448 drivers/hwmon/nct6683.c *attrs = &a2->dev_attr.attr; attr 451 drivers/hwmon/nct6683.c sysfs_attr_init(&a->dev_attr.attr); attr 452 drivers/hwmon/nct6683.c a->dev_attr.attr.name = su->name; attr 454 drivers/hwmon/nct6683.c a->dev_attr.attr.mode = attr 455 drivers/hwmon/nct6683.c (*t)->dev_attr.attr.mode; attr 458 drivers/hwmon/nct6683.c *attrs = &a->dev_attr.attr; attr 653 drivers/hwmon/nct6683.c show_in_label(struct device *dev, struct device_attribute *attr, char *buf) attr 655 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 663 drivers/hwmon/nct6683.c show_in_reg(struct device *dev, struct device_attribute *attr, char *buf) attr 665 drivers/hwmon/nct6683.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 675 drivers/hwmon/nct6683.c struct attribute *attr, int index) attr 689 drivers/hwmon/nct6683.c return attr->mode; attr 711 drivers/hwmon/nct6683.c show_fan(struct device *dev, struct device_attribute *attr, char *buf) attr 713 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 720 drivers/hwmon/nct6683.c show_fan_min(struct device *dev, struct device_attribute *attr, char *buf) attr 723 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 730 drivers/hwmon/nct6683.c show_fan_pulses(struct device *dev, struct device_attribute *attr, char *buf) attr 732 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 740 drivers/hwmon/nct6683.c struct attribute *attr, int index) attr 757 drivers/hwmon/nct6683.c return attr->mode; attr 783 drivers/hwmon/nct6683.c show_temp_label(struct device *dev, struct device_attribute *attr, char *buf) attr 785 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 793 drivers/hwmon/nct6683.c show_temp8(struct device *dev, struct device_attribute *attr, char *buf) attr 795 drivers/hwmon/nct6683.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 804 drivers/hwmon/nct6683.c show_temp_hyst(struct device *dev, struct device_attribute *attr, char *buf) attr 806 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 815 drivers/hwmon/nct6683.c show_temp16(struct device *dev, struct device_attribute *attr, char *buf) attr 817 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 849 drivers/hwmon/nct6683.c show_temp_type(struct device *dev, struct device_attribute *attr, char *buf) attr 852 drivers/hwmon/nct6683.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 858 drivers/hwmon/nct6683.c struct attribute *attr, int index) attr 876 drivers/hwmon/nct6683.c return attr->mode; attr 911 drivers/hwmon/nct6683.c show_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 914 drivers/hwmon/nct6683.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 921 drivers/hwmon/nct6683.c store_pwm(struct device *dev, struct device_attribute *attr, const char *buf, attr 924 drivers/hwmon/nct6683.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 945 drivers/hwmon/nct6683.c struct attribute *attr, int index) attr 956 drivers/hwmon/nct6683.c return attr->mode | S_IWUSR; attr 958 drivers/hwmon/nct6683.c return attr->mode; attr 973 drivers/hwmon/nct6683.c beep_enable_show(struct device *dev, struct device_attribute *attr, char *buf) attr 998 drivers/hwmon/nct6683.c beep_enable_store(struct device *dev, struct device_attribute *attr, attr 1033 drivers/hwmon/nct6683.c intrusion0_alarm_show(struct device *dev, struct device_attribute *attr, attr 1059 drivers/hwmon/nct6683.c intrusion0_alarm_store(struct device *dev, struct device_attribute *attr, attr 1101 drivers/hwmon/nct6683.c &dev_attr_intrusion0_alarm.attr, attr 1102 drivers/hwmon/nct6683.c &dev_attr_beep_enable.attr, attr 1246 drivers/hwmon/nct6775.c .attr = {.name = _template, .mode = _mode }, \ attr 1324 drivers/hwmon/nct6775.c (*t)->dev_attr.attr.name, tg->base + i); attr 1327 drivers/hwmon/nct6775.c sysfs_attr_init(&a2->dev_attr.attr); attr 1328 drivers/hwmon/nct6775.c a2->dev_attr.attr.name = su->name; attr 1331 drivers/hwmon/nct6775.c a2->dev_attr.attr.mode = attr 1332 drivers/hwmon/nct6775.c (*t)->dev_attr.attr.mode; attr 1335 drivers/hwmon/nct6775.c *attrs = &a2->dev_attr.attr; attr 1338 drivers/hwmon/nct6775.c sysfs_attr_init(&a->dev_attr.attr); attr 1339 drivers/hwmon/nct6775.c a->dev_attr.attr.name = su->name; attr 1341 drivers/hwmon/nct6775.c a->dev_attr.attr.mode = attr 1342 drivers/hwmon/nct6775.c (*t)->dev_attr.attr.mode; attr 1345 drivers/hwmon/nct6775.c *attrs = &a->dev_attr.attr; attr 1871 drivers/hwmon/nct6775.c show_in_reg(struct device *dev, struct device_attribute *attr, char *buf) attr 1874 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 1882 drivers/hwmon/nct6775.c store_in_reg(struct device *dev, struct device_attribute *attr, const char *buf, attr 1886 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 1904 drivers/hwmon/nct6775.c show_alarm(struct device *dev, struct device_attribute *attr, char *buf) attr 1907 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 1931 drivers/hwmon/nct6775.c show_temp_alarm(struct device *dev, struct device_attribute *attr, char *buf) attr 1933 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 1952 drivers/hwmon/nct6775.c show_beep(struct device *dev, struct device_attribute *attr, char *buf) attr 1954 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 1963 drivers/hwmon/nct6775.c store_beep(struct device *dev, struct device_attribute *attr, const char *buf, attr 1966 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 1991 drivers/hwmon/nct6775.c show_temp_beep(struct device *dev, struct device_attribute *attr, char *buf) attr 1993 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2013 drivers/hwmon/nct6775.c store_temp_beep(struct device *dev, struct device_attribute *attr, attr 2016 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 2048 drivers/hwmon/nct6775.c struct attribute *attr, int index) attr 2057 drivers/hwmon/nct6775.c return attr->mode; attr 2089 drivers/hwmon/nct6775.c show_fan(struct device *dev, struct device_attribute *attr, char *buf) attr 2092 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2099 drivers/hwmon/nct6775.c show_fan_min(struct device *dev, struct device_attribute *attr, char *buf) attr 2102 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2111 drivers/hwmon/nct6775.c show_fan_div(struct device *dev, struct device_attribute *attr, char *buf) attr 2114 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2121 drivers/hwmon/nct6775.c store_fan_min(struct device *dev, struct device_attribute *attr, attr 2125 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2215 drivers/hwmon/nct6775.c show_fan_pulses(struct device *dev, struct device_attribute *attr, char *buf) attr 2218 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2225 drivers/hwmon/nct6775.c store_fan_pulses(struct device *dev, struct device_attribute *attr, attr 2229 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2254 drivers/hwmon/nct6775.c struct attribute *attr, int index) attr 2275 drivers/hwmon/nct6775.c return attr->mode; attr 2311 drivers/hwmon/nct6775.c show_temp_label(struct device *dev, struct device_attribute *attr, char *buf) attr 2314 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2321 drivers/hwmon/nct6775.c show_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 2324 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 2332 drivers/hwmon/nct6775.c store_temp(struct device *dev, struct device_attribute *attr, const char *buf, attr 2336 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 2355 drivers/hwmon/nct6775.c show_temp_offset(struct device *dev, struct device_attribute *attr, char *buf) attr 2358 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2364 drivers/hwmon/nct6775.c store_temp_offset(struct device *dev, struct device_attribute *attr, attr 2368 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2388 drivers/hwmon/nct6775.c show_temp_type(struct device *dev, struct device_attribute *attr, char *buf) attr 2391 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2398 drivers/hwmon/nct6775.c store_temp_type(struct device *dev, struct device_attribute *attr, attr 2402 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2441 drivers/hwmon/nct6775.c struct attribute *attr, int index) attr 2476 drivers/hwmon/nct6775.c return attr->mode; attr 2523 drivers/hwmon/nct6775.c show_pwm_mode(struct device *dev, struct device_attribute *attr, char *buf) attr 2526 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2532 drivers/hwmon/nct6775.c store_pwm_mode(struct device *dev, struct device_attribute *attr, attr 2536 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2568 drivers/hwmon/nct6775.c show_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 2571 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 2589 drivers/hwmon/nct6775.c store_pwm(struct device *dev, struct device_attribute *attr, const char *buf, attr 2593 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 2683 drivers/hwmon/nct6775.c show_pwm_enable(struct device *dev, struct device_attribute *attr, char *buf) attr 2686 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2692 drivers/hwmon/nct6775.c store_pwm_enable(struct device *dev, struct device_attribute *attr, attr 2696 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2754 drivers/hwmon/nct6775.c show_pwm_temp_sel(struct device *dev, struct device_attribute *attr, char *buf) attr 2757 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2764 drivers/hwmon/nct6775.c store_pwm_temp_sel(struct device *dev, struct device_attribute *attr, attr 2768 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2794 drivers/hwmon/nct6775.c show_pwm_weight_temp_sel(struct device *dev, struct device_attribute *attr, attr 2798 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2806 drivers/hwmon/nct6775.c store_pwm_weight_temp_sel(struct device *dev, struct device_attribute *attr, attr 2810 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2845 drivers/hwmon/nct6775.c show_target_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 2848 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2854 drivers/hwmon/nct6775.c store_target_temp(struct device *dev, struct device_attribute *attr, attr 2858 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2878 drivers/hwmon/nct6775.c show_target_speed(struct device *dev, struct device_attribute *attr, char *buf) attr 2881 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2890 drivers/hwmon/nct6775.c store_target_speed(struct device *dev, struct device_attribute *attr, attr 2894 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2915 drivers/hwmon/nct6775.c show_temp_tolerance(struct device *dev, struct device_attribute *attr, attr 2919 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 2927 drivers/hwmon/nct6775.c store_temp_tolerance(struct device *dev, struct device_attribute *attr, attr 2931 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 2964 drivers/hwmon/nct6775.c show_speed_tolerance(struct device *dev, struct device_attribute *attr, attr 2968 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 2992 drivers/hwmon/nct6775.c store_speed_tolerance(struct device *dev, struct device_attribute *attr, attr 2996 drivers/hwmon/nct6775.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 3045 drivers/hwmon/nct6775.c show_weight_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 3048 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3056 drivers/hwmon/nct6775.c store_weight_temp(struct device *dev, struct device_attribute *attr, attr 3060 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3093 drivers/hwmon/nct6775.c show_fan_time(struct device *dev, struct device_attribute *attr, char *buf) attr 3096 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3106 drivers/hwmon/nct6775.c store_fan_time(struct device *dev, struct device_attribute *attr, attr 3110 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3129 drivers/hwmon/nct6775.c show_auto_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 3132 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3138 drivers/hwmon/nct6775.c store_auto_pwm(struct device *dev, struct device_attribute *attr, attr 3142 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3212 drivers/hwmon/nct6775.c show_auto_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 3215 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3227 drivers/hwmon/nct6775.c store_auto_temp(struct device *dev, struct device_attribute *attr, attr 3231 drivers/hwmon/nct6775.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 3258 drivers/hwmon/nct6775.c struct attribute *attr, int index) attr 3284 drivers/hwmon/nct6775.c return attr->mode; attr 3397 drivers/hwmon/nct6775.c cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 3409 drivers/hwmon/nct6775.c clear_caseopen(struct device *dev, struct device_attribute *attr, attr 3413 drivers/hwmon/nct6775.c int nr = to_sensor_dev_attr(attr)->index - INTRUSION_ALARM_BASE; attr 3460 drivers/hwmon/nct6775.c struct attribute *attr, int index) attr 3478 drivers/hwmon/nct6775.c return attr->mode; attr 3487 drivers/hwmon/nct6775.c &dev_attr_cpu0_vid.attr, /* 0 */ attr 3488 drivers/hwmon/nct6775.c &sensor_dev_attr_intrusion0_alarm.dev_attr.attr, /* 1 */ attr 3489 drivers/hwmon/nct6775.c &sensor_dev_attr_intrusion1_alarm.dev_attr.attr, /* 2 */ attr 3490 drivers/hwmon/nct6775.c &sensor_dev_attr_intrusion0_beep.dev_attr.attr, /* 3 */ attr 3491 drivers/hwmon/nct6775.c &sensor_dev_attr_intrusion1_beep.dev_attr.attr, /* 4 */ attr 3492 drivers/hwmon/nct6775.c &sensor_dev_attr_beep_enable.dev_attr.attr, /* 5 */ attr 66 drivers/hwmon/nct7802.c struct device_attribute *attr, char *buf) attr 69 drivers/hwmon/nct7802.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 81 drivers/hwmon/nct7802.c struct device_attribute *attr, const char *buf, attr 85 drivers/hwmon/nct7802.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 102 drivers/hwmon/nct7802.c struct device_attribute *attr, char *buf) attr 104 drivers/hwmon/nct7802.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 122 drivers/hwmon/nct7802.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 127 drivers/hwmon/nct7802.c if (!attr->index) attr 130 drivers/hwmon/nct7802.c ret = regmap_read(data->regmap, attr->index, &val); attr 140 drivers/hwmon/nct7802.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 149 drivers/hwmon/nct7802.c err = regmap_write(data->regmap, attr->index, val); attr 154 drivers/hwmon/nct7802.c struct device_attribute *attr, char *buf) attr 157 drivers/hwmon/nct7802.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 169 drivers/hwmon/nct7802.c struct device_attribute *attr, attr 173 drivers/hwmon/nct7802.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 341 drivers/hwmon/nct7802.c static ssize_t in_show(struct device *dev, struct device_attribute *attr, attr 344 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 355 drivers/hwmon/nct7802.c static ssize_t in_store(struct device *dev, struct device_attribute *attr, attr 358 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 373 drivers/hwmon/nct7802.c static ssize_t in_alarm_show(struct device *dev, struct device_attribute *attr, attr 376 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 433 drivers/hwmon/nct7802.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 437 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 447 drivers/hwmon/nct7802.c static ssize_t temp_store(struct device *dev, struct device_attribute *attr, attr 450 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 466 drivers/hwmon/nct7802.c static ssize_t fan_show(struct device *dev, struct device_attribute *attr, attr 469 drivers/hwmon/nct7802.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 480 drivers/hwmon/nct7802.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 483 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 495 drivers/hwmon/nct7802.c struct device_attribute *attr, const char *buf, attr 498 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 511 drivers/hwmon/nct7802.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 515 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 528 drivers/hwmon/nct7802.c beep_show(struct device *dev, struct device_attribute *attr, char *buf) attr 530 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 543 drivers/hwmon/nct7802.c beep_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 546 drivers/hwmon/nct7802.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 622 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_type.dev_attr.attr, attr 623 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 624 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 625 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 626 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 627 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 628 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 629 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 630 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 631 drivers/hwmon/nct7802.c &sensor_dev_attr_temp1_beep.dev_attr.attr, attr 633 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_type.dev_attr.attr, /* 10 */ attr 634 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 635 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 636 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 637 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 638 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 639 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 640 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 641 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 642 drivers/hwmon/nct7802.c &sensor_dev_attr_temp2_beep.dev_attr.attr, attr 644 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_type.dev_attr.attr, /* 20 */ attr 645 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 646 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 647 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 648 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 649 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 650 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 651 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 652 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 653 drivers/hwmon/nct7802.c &sensor_dev_attr_temp3_beep.dev_attr.attr, attr 655 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_input.dev_attr.attr, /* 30 */ attr 656 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 657 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 658 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_crit.dev_attr.attr, attr 659 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_min_alarm.dev_attr.attr, attr 660 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 661 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_crit_alarm.dev_attr.attr, attr 662 drivers/hwmon/nct7802.c &sensor_dev_attr_temp4_beep.dev_attr.attr, attr 664 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_input.dev_attr.attr, /* 38 */ attr 665 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_min.dev_attr.attr, attr 666 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 667 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_crit.dev_attr.attr, attr 668 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_min_alarm.dev_attr.attr, attr 669 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_max_alarm.dev_attr.attr, attr 670 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_crit_alarm.dev_attr.attr, attr 671 drivers/hwmon/nct7802.c &sensor_dev_attr_temp5_beep.dev_attr.attr, attr 673 drivers/hwmon/nct7802.c &sensor_dev_attr_temp6_input.dev_attr.attr, /* 46 */ attr 674 drivers/hwmon/nct7802.c &sensor_dev_attr_temp6_beep.dev_attr.attr, attr 680 drivers/hwmon/nct7802.c struct attribute *attr, int index) attr 702 drivers/hwmon/nct7802.c return attr->mode; attr 714 drivers/hwmon/nct7802.c return attr->mode; attr 749 drivers/hwmon/nct7802.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 750 drivers/hwmon/nct7802.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 751 drivers/hwmon/nct7802.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 752 drivers/hwmon/nct7802.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 753 drivers/hwmon/nct7802.c &sensor_dev_attr_in0_beep.dev_attr.attr, attr 755 drivers/hwmon/nct7802.c &sensor_dev_attr_in1_input.dev_attr.attr, /* 5 */ attr 757 drivers/hwmon/nct7802.c &sensor_dev_attr_in2_input.dev_attr.attr, /* 6 */ attr 758 drivers/hwmon/nct7802.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 759 drivers/hwmon/nct7802.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 760 drivers/hwmon/nct7802.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 761 drivers/hwmon/nct7802.c &sensor_dev_attr_in2_beep.dev_attr.attr, attr 763 drivers/hwmon/nct7802.c &sensor_dev_attr_in3_input.dev_attr.attr, /* 11 */ attr 764 drivers/hwmon/nct7802.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 765 drivers/hwmon/nct7802.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 766 drivers/hwmon/nct7802.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 767 drivers/hwmon/nct7802.c &sensor_dev_attr_in3_beep.dev_attr.attr, attr 769 drivers/hwmon/nct7802.c &sensor_dev_attr_in4_input.dev_attr.attr, /* 16 */ attr 770 drivers/hwmon/nct7802.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 771 drivers/hwmon/nct7802.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 772 drivers/hwmon/nct7802.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 773 drivers/hwmon/nct7802.c &sensor_dev_attr_in4_beep.dev_attr.attr, attr 779 drivers/hwmon/nct7802.c struct attribute *attr, int index) attr 787 drivers/hwmon/nct7802.c return attr->mode; attr 800 drivers/hwmon/nct7802.c return attr->mode; attr 837 drivers/hwmon/nct7802.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 838 drivers/hwmon/nct7802.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 839 drivers/hwmon/nct7802.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 840 drivers/hwmon/nct7802.c &sensor_dev_attr_fan1_beep.dev_attr.attr, attr 841 drivers/hwmon/nct7802.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 842 drivers/hwmon/nct7802.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 843 drivers/hwmon/nct7802.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 844 drivers/hwmon/nct7802.c &sensor_dev_attr_fan2_beep.dev_attr.attr, attr 845 drivers/hwmon/nct7802.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 846 drivers/hwmon/nct7802.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 847 drivers/hwmon/nct7802.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 848 drivers/hwmon/nct7802.c &sensor_dev_attr_fan3_beep.dev_attr.attr, attr 854 drivers/hwmon/nct7802.c struct attribute *attr, int index) attr 866 drivers/hwmon/nct7802.c return attr->mode; attr 875 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 876 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_mode.dev_attr.attr, attr 877 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 878 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 879 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_mode.dev_attr.attr, attr 880 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 881 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 882 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_mode.dev_attr.attr, attr 883 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 934 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point1_temp.dev_attr.attr, attr 935 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point2_temp.dev_attr.attr, attr 936 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point3_temp.dev_attr.attr, attr 937 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point4_temp.dev_attr.attr, attr 938 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point5_temp.dev_attr.attr, attr 940 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr, attr 941 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr, attr 942 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point3_pwm.dev_attr.attr, attr 943 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point4_pwm.dev_attr.attr, attr 944 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm1_auto_point5_pwm.dev_attr.attr, attr 946 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point1_temp.dev_attr.attr, attr 947 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point2_temp.dev_attr.attr, attr 948 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point3_temp.dev_attr.attr, attr 949 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point4_temp.dev_attr.attr, attr 950 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point5_temp.dev_attr.attr, attr 952 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr, attr 953 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr, attr 954 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point3_pwm.dev_attr.attr, attr 955 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point4_pwm.dev_attr.attr, attr 956 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm2_auto_point5_pwm.dev_attr.attr, attr 958 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point1_temp.dev_attr.attr, attr 959 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point2_temp.dev_attr.attr, attr 960 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point3_temp.dev_attr.attr, attr 961 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point4_temp.dev_attr.attr, attr 962 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point5_temp.dev_attr.attr, attr 964 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr, attr 965 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr, attr 966 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point3_pwm.dev_attr.attr, attr 967 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point4_pwm.dev_attr.attr, attr 968 drivers/hwmon/nct7802.c &sensor_dev_attr_pwm3_auto_point5_pwm.dev_attr.attr, attr 186 drivers/hwmon/nct7904.c static int nct7904_read_fan(struct device *dev, u32 attr, int channel, attr 193 drivers/hwmon/nct7904.c switch (attr) { attr 238 drivers/hwmon/nct7904.c static umode_t nct7904_fan_is_visible(const void *_data, u32 attr, int channel) attr 242 drivers/hwmon/nct7904.c switch (attr) { attr 265 drivers/hwmon/nct7904.c static int nct7904_read_in(struct device *dev, u32 attr, int channel, attr 273 drivers/hwmon/nct7904.c switch (attr) { attr 330 drivers/hwmon/nct7904.c static umode_t nct7904_in_is_visible(const void *_data, u32 attr, int channel) attr 335 drivers/hwmon/nct7904.c switch (attr) { attr 353 drivers/hwmon/nct7904.c static int nct7904_read_temp(struct device *dev, u32 attr, int channel, attr 361 drivers/hwmon/nct7904.c switch (attr) { attr 470 drivers/hwmon/nct7904.c static umode_t nct7904_temp_is_visible(const void *_data, u32 attr, int channel) attr 474 drivers/hwmon/nct7904.c switch (attr) { attr 505 drivers/hwmon/nct7904.c static int nct7904_read_pwm(struct device *dev, u32 attr, int channel, attr 511 drivers/hwmon/nct7904.c switch (attr) { attr 530 drivers/hwmon/nct7904.c static int nct7904_write_temp(struct device *dev, u32 attr, int channel, attr 539 drivers/hwmon/nct7904.c switch (attr) { attr 575 drivers/hwmon/nct7904.c static int nct7904_write_fan(struct device *dev, u32 attr, int channel, attr 582 drivers/hwmon/nct7904.c switch (attr) { attr 602 drivers/hwmon/nct7904.c static int nct7904_write_in(struct device *dev, u32 attr, int channel, attr 617 drivers/hwmon/nct7904.c switch (attr) { attr 661 drivers/hwmon/nct7904.c static int nct7904_write_pwm(struct device *dev, u32 attr, int channel, attr 667 drivers/hwmon/nct7904.c switch (attr) { attr 686 drivers/hwmon/nct7904.c static umode_t nct7904_pwm_is_visible(const void *_data, u32 attr, int channel) attr 688 drivers/hwmon/nct7904.c switch (attr) { attr 698 drivers/hwmon/nct7904.c u32 attr, int channel, long *val) attr 702 drivers/hwmon/nct7904.c return nct7904_read_in(dev, attr, channel, val); attr 704 drivers/hwmon/nct7904.c return nct7904_read_fan(dev, attr, channel, val); attr 706 drivers/hwmon/nct7904.c return nct7904_read_pwm(dev, attr, channel, val); attr 708 drivers/hwmon/nct7904.c return nct7904_read_temp(dev, attr, channel, val); attr 715 drivers/hwmon/nct7904.c u32 attr, int channel, long val) attr 719 drivers/hwmon/nct7904.c return nct7904_write_in(dev, attr, channel, val); attr 721 drivers/hwmon/nct7904.c return nct7904_write_fan(dev, attr, channel, val); attr 723 drivers/hwmon/nct7904.c return nct7904_write_pwm(dev, attr, channel, val); attr 725 drivers/hwmon/nct7904.c return nct7904_write_temp(dev, attr, channel, val); attr 733 drivers/hwmon/nct7904.c u32 attr, int channel) attr 737 drivers/hwmon/nct7904.c return nct7904_in_is_visible(data, attr, channel); attr 739 drivers/hwmon/nct7904.c return nct7904_fan_is_visible(data, attr, channel); attr 741 drivers/hwmon/nct7904.c return nct7904_pwm_is_visible(data, attr, channel); attr 743 drivers/hwmon/nct7904.c return nct7904_temp_is_visible(data, attr, channel); attr 504 drivers/hwmon/npcm750-pwm-fan.c static int npcm7xx_read_pwm(struct device *dev, u32 attr, int channel, attr 511 drivers/hwmon/npcm750-pwm-fan.c switch (attr) { attr 521 drivers/hwmon/npcm750-pwm-fan.c static int npcm7xx_write_pwm(struct device *dev, u32 attr, int channel, attr 527 drivers/hwmon/npcm750-pwm-fan.c switch (attr) { attr 541 drivers/hwmon/npcm750-pwm-fan.c static umode_t npcm7xx_pwm_is_visible(const void *_data, u32 attr, int channel) attr 548 drivers/hwmon/npcm750-pwm-fan.c switch (attr) { attr 556 drivers/hwmon/npcm750-pwm-fan.c static int npcm7xx_read_fan(struct device *dev, u32 attr, int channel, attr 561 drivers/hwmon/npcm750-pwm-fan.c switch (attr) { attr 579 drivers/hwmon/npcm750-pwm-fan.c static umode_t npcm7xx_fan_is_visible(const void *_data, u32 attr, int channel) attr 586 drivers/hwmon/npcm750-pwm-fan.c switch (attr) { attr 595 drivers/hwmon/npcm750-pwm-fan.c u32 attr, int channel, long *val) attr 599 drivers/hwmon/npcm750-pwm-fan.c return npcm7xx_read_pwm(dev, attr, channel, val); attr 601 drivers/hwmon/npcm750-pwm-fan.c return npcm7xx_read_fan(dev, attr, channel, val); attr 608 drivers/hwmon/npcm750-pwm-fan.c u32 attr, int channel, long val) attr 612 drivers/hwmon/npcm750-pwm-fan.c return npcm7xx_write_pwm(dev, attr, channel, val); attr 620 drivers/hwmon/npcm750-pwm-fan.c u32 attr, int channel) attr 624 drivers/hwmon/npcm750-pwm-fan.c return npcm7xx_pwm_is_visible(data, attr, channel); attr 626 drivers/hwmon/npcm750-pwm-fan.c return npcm7xx_fan_is_visible(data, attr, channel); attr 109 drivers/hwmon/nsa320-hwmon.c static ssize_t label_show(struct device *dev, struct device_attribute *attr, attr 112 drivers/hwmon/nsa320-hwmon.c int channel = to_sensor_dev_attr(attr)->index; attr 118 drivers/hwmon/nsa320-hwmon.c struct device_attribute *attr, char *buf) attr 129 drivers/hwmon/nsa320-hwmon.c struct device_attribute *attr, char *buf) attr 145 drivers/hwmon/nsa320-hwmon.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 146 drivers/hwmon/nsa320-hwmon.c &dev_attr_temp1_input.attr, attr 147 drivers/hwmon/nsa320-hwmon.c &sensor_dev_attr_fan1_label.dev_attr.attr, attr 148 drivers/hwmon/nsa320-hwmon.c &dev_attr_fan1_input.attr, attr 576 drivers/hwmon/ntc_thermistor.c u32 attr, int channel, long *val) attr 583 drivers/hwmon/ntc_thermistor.c switch (attr) { attr 604 drivers/hwmon/ntc_thermistor.c u32 attr, int channel) attr 607 drivers/hwmon/ntc_thermistor.c switch (attr) { attr 224 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 231 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 260 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 267 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 311 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 318 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 341 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 348 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 371 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 378 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 418 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 425 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 457 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 464 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 537 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 544 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 587 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 594 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 634 drivers/hwmon/occ/common.c struct device_attribute *attr, attr 656 drivers/hwmon/occ/common.c struct device_attribute *attr, char *buf) attr 662 drivers/hwmon/occ/common.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 702 drivers/hwmon/occ/common.c .attr = { \ attr 729 drivers/hwmon/occ/common.c struct occ_attribute *attr; attr 811 drivers/hwmon/occ/common.c attr = occ->attrs; attr 817 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "temp%d_label", s); attr 818 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL, attr 820 drivers/hwmon/occ/common.c attr++; attr 824 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 827 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 831 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL, attr 833 drivers/hwmon/occ/common.c attr++; attr 836 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 838 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 840 drivers/hwmon/occ/common.c attr++; attr 842 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 844 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 846 drivers/hwmon/occ/common.c attr++; attr 853 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "freq%d_label", s); attr 854 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL, attr 856 drivers/hwmon/occ/common.c attr++; attr 858 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "freq%d_input", s); attr 859 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL, attr 861 drivers/hwmon/occ/common.c attr++; attr 876 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 878 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 881 drivers/hwmon/occ/common.c attr++; attr 883 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 885 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 888 drivers/hwmon/occ/common.c attr++; attr 890 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 892 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 895 drivers/hwmon/occ/common.c attr++; attr 897 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 899 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 902 drivers/hwmon/occ/common.c attr++; attr 913 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 915 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 917 drivers/hwmon/occ/common.c attr++; attr 919 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 921 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 923 drivers/hwmon/occ/common.c attr++; attr 925 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 927 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 929 drivers/hwmon/occ/common.c attr++; attr 931 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 933 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 935 drivers/hwmon/occ/common.c attr++; attr 942 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "power%d_label", s); attr 943 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, attr 945 drivers/hwmon/occ/common.c attr++; attr 947 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "power%d_cap", s); attr 948 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, attr 950 drivers/hwmon/occ/common.c attr++; attr 952 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "power%d_input", s); attr 953 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, attr 955 drivers/hwmon/occ/common.c attr++; attr 957 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 959 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, attr 961 drivers/hwmon/occ/common.c attr++; attr 963 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "power%d_cap_max", s); attr 964 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, attr 966 drivers/hwmon/occ/common.c attr++; attr 968 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "power%d_cap_min", s); attr 969 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, attr 971 drivers/hwmon/occ/common.c attr++; attr 973 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "power%d_cap_user", attr 975 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0644, show_caps, attr 977 drivers/hwmon/occ/common.c attr++; attr 980 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), attr 982 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 984 drivers/hwmon/occ/common.c attr++; attr 991 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "extn%d_label", s); attr 992 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 994 drivers/hwmon/occ/common.c attr++; attr 996 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "extn%d_flags", s); attr 997 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 999 drivers/hwmon/occ/common.c attr++; attr 1001 drivers/hwmon/occ/common.c snprintf(attr->name, sizeof(attr->name), "extn%d_input", s); attr 1002 drivers/hwmon/occ/common.c attr->sensor = OCC_INIT_ATTR(attr->name, 0444, attr 1004 drivers/hwmon/occ/common.c attr++; attr 1009 drivers/hwmon/occ/common.c sysfs_attr_init(&occ->attrs[i].sensor.dev_attr.attr); attr 1010 drivers/hwmon/occ/common.c occ->group.attrs[i] = &occ->attrs[i].sensor.dev_attr.attr; attr 24 drivers/hwmon/occ/sysfs.c struct device_attribute *attr, char *buf) attr 30 drivers/hwmon/occ/sysfs.c struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); attr 74 drivers/hwmon/occ/sysfs.c struct device_attribute *attr, char *buf) attr 94 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occ_master.dev_attr.attr, attr 95 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occ_active.dev_attr.attr, attr 96 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occ_dvfs_overtemp.dev_attr.attr, attr 97 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occ_dvfs_power.dev_attr.attr, attr 98 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occ_mem_throttle.dev_attr.attr, attr 99 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occ_quick_pwr_drop.dev_attr.attr, attr 100 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occ_state.dev_attr.attr, attr 101 drivers/hwmon/occ/sysfs.c &sensor_dev_attr_occs_present.dev_attr.attr, attr 102 drivers/hwmon/occ/sysfs.c &dev_attr_occ_error.attr, attr 125 drivers/hwmon/occ/sysfs.c name = sensor_dev_attr_occ_master.dev_attr.attr.name; attr 131 drivers/hwmon/occ/sysfs.c name = sensor_dev_attr_occ_active.dev_attr.attr.name; attr 137 drivers/hwmon/occ/sysfs.c name = sensor_dev_attr_occ_dvfs_overtemp.dev_attr.attr.name; attr 143 drivers/hwmon/occ/sysfs.c name = sensor_dev_attr_occ_dvfs_power.dev_attr.attr.name; attr 149 drivers/hwmon/occ/sysfs.c name = sensor_dev_attr_occ_mem_throttle.dev_attr.attr.name; attr 155 drivers/hwmon/occ/sysfs.c name = sensor_dev_attr_occ_quick_pwr_drop.dev_attr.attr.name; attr 161 drivers/hwmon/occ/sysfs.c name = sensor_dev_attr_occs_present.dev_attr.attr.name; attr 166 drivers/hwmon/occ/sysfs.c name = dev_attr_occ_error.attr.name; attr 247 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 249 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan[attr->index], attr 250 drivers/hwmon/pc87360.c FAN_DIV_FROM_REG(data->fan_status[attr->index]))); attr 255 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 257 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan_min[attr->index], attr 258 drivers/hwmon/pc87360.c FAN_DIV_FROM_REG(data->fan_status[attr->index]))); attr 263 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 266 drivers/hwmon/pc87360.c FAN_DIV_FROM_REG(data->fan_status[attr->index])); attr 271 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 274 drivers/hwmon/pc87360.c FAN_STATUS_FROM_REG(data->fan_status[attr->index])); attr 280 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 291 drivers/hwmon/pc87360.c FAN_DIV_FROM_REG(data->fan_status[attr->index])); attr 295 drivers/hwmon/pc87360.c && (data->fan_status[attr->index] & 0x60) != 0x60) { attr 297 drivers/hwmon/pc87360.c data->fan[attr->index] >>= 1; attr 298 drivers/hwmon/pc87360.c data->fan_status[attr->index] += 0x20; attr 300 drivers/hwmon/pc87360.c data->fan_min[attr->index] = fan_min > 255 ? 255 : fan_min; attr 302 drivers/hwmon/pc87360.c PC87360_REG_FAN_MIN(attr->index), attr 303 drivers/hwmon/pc87360.c data->fan_min[attr->index]); attr 307 drivers/hwmon/pc87360.c PC87360_REG_FAN_STATUS(attr->index), attr 308 drivers/hwmon/pc87360.c data->fan_status[attr->index] & 0xF9); attr 336 drivers/hwmon/pc87360.c { &fan_input[X].dev_attr.attr, \ attr 337 drivers/hwmon/pc87360.c &fan_status[X].dev_attr.attr, \ attr 338 drivers/hwmon/pc87360.c &fan_div[X].dev_attr.attr, \ attr 339 drivers/hwmon/pc87360.c &fan_min[X].dev_attr.attr, \ attr 346 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 349 drivers/hwmon/pc87360.c PWM_FROM_REG(data->pwm[attr->index], attr 351 drivers/hwmon/pc87360.c attr->index))); attr 356 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 366 drivers/hwmon/pc87360.c data->pwm[attr->index] = PWM_TO_REG(val, attr 367 drivers/hwmon/pc87360.c FAN_CONFIG_INVERT(data->fan_conf, attr->index)); attr 368 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_FAN, NO_BANK, PC87360_REG_PWM(attr->index), attr 369 drivers/hwmon/pc87360.c data->pwm[attr->index]); attr 395 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 397 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], attr 403 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 405 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], attr 411 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 413 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], attr 419 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 421 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", data->in_status[attr->index]); attr 427 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 437 drivers/hwmon/pc87360.c data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); attr 438 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_IN, attr->index, PC87365_REG_IN_MIN, attr 439 drivers/hwmon/pc87360.c data->in_min[attr->index]); attr 447 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 457 drivers/hwmon/pc87360.c data->in_max[attr->index] = IN_TO_REG(val, attr 459 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_IN, attr->index, PC87365_REG_IN_MAX, attr 460 drivers/hwmon/pc87360.c data->in_max[attr->index]); attr 574 drivers/hwmon/pc87360.c &in_input[X].dev_attr.attr, \ attr 575 drivers/hwmon/pc87360.c &in_status[X].dev_attr.attr, \ attr 576 drivers/hwmon/pc87360.c &in_min[X].dev_attr.attr, \ attr 577 drivers/hwmon/pc87360.c &in_max[X].dev_attr.attr, \ attr 578 drivers/hwmon/pc87360.c &in_min_alarm[X].dev_attr.attr, \ attr 579 drivers/hwmon/pc87360.c &in_max_alarm[X].dev_attr.attr attr 582 drivers/hwmon/pc87360.c struct device_attribute *attr, char *buf) attr 589 drivers/hwmon/pc87360.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 595 drivers/hwmon/pc87360.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 615 drivers/hwmon/pc87360.c struct device_attribute *attr, char *buf) attr 634 drivers/hwmon/pc87360.c &dev_attr_cpu0_vid.attr, attr 635 drivers/hwmon/pc87360.c &dev_attr_vrm.attr, attr 636 drivers/hwmon/pc87360.c &dev_attr_alarms_in.attr, attr 646 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 648 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], attr 654 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 656 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], attr 662 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 664 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], attr 670 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 672 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", IN_FROM_REG(data->in_crit[attr->index-11], attr 678 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 680 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", data->in_status[attr->index]); attr 687 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 697 drivers/hwmon/pc87360.c data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); attr 698 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_IN, attr->index, PC87365_REG_TEMP_MIN, attr 699 drivers/hwmon/pc87360.c data->in_min[attr->index]); attr 708 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 718 drivers/hwmon/pc87360.c data->in_max[attr->index] = IN_TO_REG(val, data->in_vref); attr 719 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_IN, attr->index, PC87365_REG_TEMP_MAX, attr 720 drivers/hwmon/pc87360.c data->in_max[attr->index]); attr 728 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 738 drivers/hwmon/pc87360.c data->in_crit[attr->index-11] = IN_TO_REG(val, data->in_vref); attr 739 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_IN, attr->index, PC87365_REG_TEMP_CRIT, attr 740 drivers/hwmon/pc87360.c data->in_crit[attr->index-11]); attr 825 drivers/hwmon/pc87360.c &therm_input[X].dev_attr.attr, \ attr 826 drivers/hwmon/pc87360.c &therm_status[X].dev_attr.attr, \ attr 827 drivers/hwmon/pc87360.c &therm_min[X].dev_attr.attr, \ attr 828 drivers/hwmon/pc87360.c &therm_max[X].dev_attr.attr, \ attr 829 drivers/hwmon/pc87360.c &therm_crit[X].dev_attr.attr, \ attr 830 drivers/hwmon/pc87360.c &therm_min_alarm[X].dev_attr.attr, \ attr 831 drivers/hwmon/pc87360.c &therm_max_alarm[X].dev_attr.attr, \ attr 832 drivers/hwmon/pc87360.c &therm_crit_alarm[X].dev_attr.attr attr 847 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 849 drivers/hwmon/pc87360.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); attr 855 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 857 drivers/hwmon/pc87360.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); attr 863 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 865 drivers/hwmon/pc87360.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); attr 871 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 874 drivers/hwmon/pc87360.c TEMP_FROM_REG(data->temp_crit[attr->index])); attr 880 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 882 drivers/hwmon/pc87360.c return sprintf(buf, "%d\n", data->temp_status[attr->index]); attr 889 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 899 drivers/hwmon/pc87360.c data->temp_min[attr->index] = TEMP_TO_REG(val); attr 900 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_TEMP, attr->index, PC87365_REG_TEMP_MIN, attr 901 drivers/hwmon/pc87360.c data->temp_min[attr->index]); attr 910 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 920 drivers/hwmon/pc87360.c data->temp_max[attr->index] = TEMP_TO_REG(val); attr 921 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_TEMP, attr->index, PC87365_REG_TEMP_MAX, attr 922 drivers/hwmon/pc87360.c data->temp_max[attr->index]); attr 931 drivers/hwmon/pc87360.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 941 drivers/hwmon/pc87360.c data->temp_crit[attr->index] = TEMP_TO_REG(val); attr 942 drivers/hwmon/pc87360.c pc87360_write_value(data, LD_TEMP, attr->index, PC87365_REG_TEMP_CRIT, attr 943 drivers/hwmon/pc87360.c data->temp_crit[attr->index]); attr 975 drivers/hwmon/pc87360.c struct device_attribute *attr, char *buf) attr 1053 drivers/hwmon/pc87360.c { &temp_input[X].dev_attr.attr, \ attr 1054 drivers/hwmon/pc87360.c &temp_status[X].dev_attr.attr, \ attr 1055 drivers/hwmon/pc87360.c &temp_min[X].dev_attr.attr, \ attr 1056 drivers/hwmon/pc87360.c &temp_max[X].dev_attr.attr, \ attr 1057 drivers/hwmon/pc87360.c &temp_crit[X].dev_attr.attr, \ attr 1058 drivers/hwmon/pc87360.c &temp_min_alarm[X].dev_attr.attr, \ attr 1059 drivers/hwmon/pc87360.c &temp_max_alarm[X].dev_attr.attr, \ attr 1060 drivers/hwmon/pc87360.c &temp_crit_alarm[X].dev_attr.attr, \ attr 1061 drivers/hwmon/pc87360.c &temp_fault[X].dev_attr.attr, \ attr 491 drivers/hwmon/pc87427.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 492 drivers/hwmon/pc87427.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 493 drivers/hwmon/pc87427.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 494 drivers/hwmon/pc87427.c &sensor_dev_attr_fan1_fault.dev_attr.attr, attr 497 drivers/hwmon/pc87427.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 498 drivers/hwmon/pc87427.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 499 drivers/hwmon/pc87427.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 500 drivers/hwmon/pc87427.c &sensor_dev_attr_fan2_fault.dev_attr.attr, attr 503 drivers/hwmon/pc87427.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 504 drivers/hwmon/pc87427.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 505 drivers/hwmon/pc87427.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 506 drivers/hwmon/pc87427.c &sensor_dev_attr_fan3_fault.dev_attr.attr, attr 509 drivers/hwmon/pc87427.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 510 drivers/hwmon/pc87427.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 511 drivers/hwmon/pc87427.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 512 drivers/hwmon/pc87427.c &sensor_dev_attr_fan4_fault.dev_attr.attr, attr 515 drivers/hwmon/pc87427.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 516 drivers/hwmon/pc87427.c &sensor_dev_attr_fan5_min.dev_attr.attr, attr 517 drivers/hwmon/pc87427.c &sensor_dev_attr_fan5_alarm.dev_attr.attr, attr 518 drivers/hwmon/pc87427.c &sensor_dev_attr_fan5_fault.dev_attr.attr, attr 521 drivers/hwmon/pc87427.c &sensor_dev_attr_fan6_input.dev_attr.attr, attr 522 drivers/hwmon/pc87427.c &sensor_dev_attr_fan6_min.dev_attr.attr, attr 523 drivers/hwmon/pc87427.c &sensor_dev_attr_fan6_alarm.dev_attr.attr, attr 524 drivers/hwmon/pc87427.c &sensor_dev_attr_fan6_fault.dev_attr.attr, attr 527 drivers/hwmon/pc87427.c &sensor_dev_attr_fan7_input.dev_attr.attr, attr 528 drivers/hwmon/pc87427.c &sensor_dev_attr_fan7_min.dev_attr.attr, attr 529 drivers/hwmon/pc87427.c &sensor_dev_attr_fan7_alarm.dev_attr.attr, attr 530 drivers/hwmon/pc87427.c &sensor_dev_attr_fan7_fault.dev_attr.attr, attr 533 drivers/hwmon/pc87427.c &sensor_dev_attr_fan8_input.dev_attr.attr, attr 534 drivers/hwmon/pc87427.c &sensor_dev_attr_fan8_min.dev_attr.attr, attr 535 drivers/hwmon/pc87427.c &sensor_dev_attr_fan8_alarm.dev_attr.attr, attr 536 drivers/hwmon/pc87427.c &sensor_dev_attr_fan8_fault.dev_attr.attr, attr 666 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 667 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 670 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 671 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 674 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 675 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 678 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm4_enable.dev_attr.attr, attr 679 drivers/hwmon/pc87427.c &sensor_dev_attr_pwm4.dev_attr.attr, attr 844 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 845 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 846 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 847 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 848 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_type.dev_attr.attr, attr 849 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 850 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 851 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 852 drivers/hwmon/pc87427.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 855 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 856 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 857 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 858 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 859 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_type.dev_attr.attr, attr 860 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 861 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 862 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 863 drivers/hwmon/pc87427.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 866 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 867 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 868 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 869 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 870 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_type.dev_attr.attr, attr 871 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 872 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 873 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 874 drivers/hwmon/pc87427.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 877 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 878 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_min.dev_attr.attr, attr 879 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 880 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_crit.dev_attr.attr, attr 881 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_type.dev_attr.attr, attr 882 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_min_alarm.dev_attr.attr, attr 883 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_max_alarm.dev_attr.attr, attr 884 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_crit_alarm.dev_attr.attr, attr 885 drivers/hwmon/pc87427.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 888 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 889 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_min.dev_attr.attr, attr 890 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 891 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_crit.dev_attr.attr, attr 892 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_type.dev_attr.attr, attr 893 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_min_alarm.dev_attr.attr, attr 894 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_max_alarm.dev_attr.attr, attr 895 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_crit_alarm.dev_attr.attr, attr 896 drivers/hwmon/pc87427.c &sensor_dev_attr_temp5_fault.dev_attr.attr, attr 899 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 900 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_min.dev_attr.attr, attr 901 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_max.dev_attr.attr, attr 902 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_crit.dev_attr.attr, attr 903 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_type.dev_attr.attr, attr 904 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_min_alarm.dev_attr.attr, attr 905 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_max_alarm.dev_attr.attr, attr 906 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_crit_alarm.dev_attr.attr, attr 907 drivers/hwmon/pc87427.c &sensor_dev_attr_temp6_fault.dev_attr.attr, attr 80 drivers/hwmon/pcf8591.c struct device_attribute *attr, \ attr 94 drivers/hwmon/pcf8591.c struct device_attribute *attr, char *buf) attr 101 drivers/hwmon/pcf8591.c struct device_attribute *attr, attr 125 drivers/hwmon/pcf8591.c struct device_attribute *attr, char *buf) attr 132 drivers/hwmon/pcf8591.c struct device_attribute *attr, attr 157 drivers/hwmon/pcf8591.c &dev_attr_out0_enable.attr, attr 158 drivers/hwmon/pcf8591.c &dev_attr_out0_output.attr, attr 159 drivers/hwmon/pcf8591.c &dev_attr_in0_input.attr, attr 160 drivers/hwmon/pcf8591.c &dev_attr_in1_input.attr, attr 169 drivers/hwmon/pcf8591.c &dev_attr_in2_input.attr, attr 170 drivers/hwmon/pcf8591.c &dev_attr_in3_input.attr, attr 62 drivers/hwmon/pmbus/inspur-ipsps.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 64 drivers/hwmon/pmbus/inspur-ipsps.c reg = ipsps_regs[attr->index]; attr 84 drivers/hwmon/pmbus/inspur-ipsps.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 86 drivers/hwmon/pmbus/inspur-ipsps.c reg = ipsps_regs[attr->index]; attr 105 drivers/hwmon/pmbus/inspur-ipsps.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 107 drivers/hwmon/pmbus/inspur-ipsps.c reg = ipsps_regs[attr->index]; attr 137 drivers/hwmon/pmbus/inspur-ipsps.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 139 drivers/hwmon/pmbus/inspur-ipsps.c reg = ipsps_regs[attr->index]; attr 166 drivers/hwmon/pmbus/inspur-ipsps.c &sensor_dev_attr_vendor.dev_attr.attr, attr 167 drivers/hwmon/pmbus/inspur-ipsps.c &sensor_dev_attr_model.dev_attr.attr, attr 168 drivers/hwmon/pmbus/inspur-ipsps.c &sensor_dev_attr_part_number.dev_attr.attr, attr 169 drivers/hwmon/pmbus/inspur-ipsps.c &sensor_dev_attr_serial_number.dev_attr.attr, attr 170 drivers/hwmon/pmbus/inspur-ipsps.c &sensor_dev_attr_hw_version.dev_attr.attr, attr 171 drivers/hwmon/pmbus/inspur-ipsps.c &sensor_dev_attr_fw_version.dev_attr.attr, attr 172 drivers/hwmon/pmbus/inspur-ipsps.c &sensor_dev_attr_mode.dev_attr.attr, attr 73 drivers/hwmon/pmbus/isl68137.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 75 drivers/hwmon/pmbus/isl68137.c return isl68137_avs_enable_show_page(client, attr->index, buf); attr 83 drivers/hwmon/pmbus/isl68137.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 85 drivers/hwmon/pmbus/isl68137.c return isl68137_avs_enable_store_page(client, attr->index, buf, count); attr 92 drivers/hwmon/pmbus/isl68137.c &sensor_dev_attr_avs0_enable.dev_attr.attr, attr 93 drivers/hwmon/pmbus/isl68137.c &sensor_dev_attr_avs1_enable.dev_attr.attr, attr 937 drivers/hwmon/pmbus/pmbus_core.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 938 drivers/hwmon/pmbus/pmbus_core.c struct pmbus_boolean *boolean = to_pmbus_boolean(attr); attr 942 drivers/hwmon/pmbus/pmbus_core.c val = pmbus_get_boolean(data, boolean, attr->index); attr 994 drivers/hwmon/pmbus/pmbus_core.c static int pmbus_add_attribute(struct pmbus_data *data, struct attribute *attr) attr 1007 drivers/hwmon/pmbus/pmbus_core.c data->group.attrs[data->num_attributes++] = attr; attr 1016 drivers/hwmon/pmbus/pmbus_core.c struct device_attribute *attr, attr 1019 drivers/hwmon/pmbus/pmbus_core.c struct device_attribute *attr, attr 1022 drivers/hwmon/pmbus/pmbus_core.c sysfs_attr_init(&dev_attr->attr); attr 1023 drivers/hwmon/pmbus/pmbus_core.c dev_attr->attr.name = name; attr 1024 drivers/hwmon/pmbus/pmbus_core.c dev_attr->attr.mode = mode; attr 1033 drivers/hwmon/pmbus/pmbus_core.c struct device_attribute *attr, attr 1036 drivers/hwmon/pmbus/pmbus_core.c struct device_attribute *attr, attr 1066 drivers/hwmon/pmbus/pmbus_core.c return pmbus_add_attribute(data, &a->dev_attr.attr); attr 1100 drivers/hwmon/pmbus/pmbus_core.c if (pmbus_add_attribute(data, &a->attr)) attr 1130 drivers/hwmon/pmbus/pmbus_core.c return pmbus_add_attribute(data, &a->attr); attr 1147 drivers/hwmon/pmbus/pmbus_core.c const char *attr; /* Attribute name */ attr 1181 drivers/hwmon/pmbus/pmbus_core.c const struct pmbus_sensor_attr *attr) attr 1183 drivers/hwmon/pmbus/pmbus_core.c const struct pmbus_limit_attr *l = attr->limit; attr 1184 drivers/hwmon/pmbus/pmbus_core.c int nlimit = attr->nlimit; attr 1191 drivers/hwmon/pmbus/pmbus_core.c curr = pmbus_add_sensor(data, name, l->attr, index, attr 1192 drivers/hwmon/pmbus/pmbus_core.c page, l->reg, attr->class, attr 1193 drivers/hwmon/pmbus/pmbus_core.c attr->update || l->update, attr 1197 drivers/hwmon/pmbus/pmbus_core.c if (l->sbit && (info->func[page] & attr->sfunc)) { attr 1200 drivers/hwmon/pmbus/pmbus_core.c attr->compare ? l->low ? curr : base attr 1202 drivers/hwmon/pmbus/pmbus_core.c attr->compare ? l->low ? base : curr attr 1204 drivers/hwmon/pmbus/pmbus_core.c attr->sbase + page, l->sbit); attr 1220 drivers/hwmon/pmbus/pmbus_core.c const struct pmbus_sensor_attr *attr, attr 1224 drivers/hwmon/pmbus/pmbus_core.c bool upper = !!(attr->gbit & 0xff00); /* need to check STATUS_WORD */ attr 1227 drivers/hwmon/pmbus/pmbus_core.c if (attr->label) { attr 1228 drivers/hwmon/pmbus/pmbus_core.c ret = pmbus_add_label(data, name, index, attr->label, attr 1233 drivers/hwmon/pmbus/pmbus_core.c base = pmbus_add_sensor(data, name, "input", index, page, attr->reg, attr 1234 drivers/hwmon/pmbus/pmbus_core.c attr->class, true, true, true); attr 1237 drivers/hwmon/pmbus/pmbus_core.c if (attr->sfunc) { attr 1239 drivers/hwmon/pmbus/pmbus_core.c index, page, base, attr); attr 1248 drivers/hwmon/pmbus/pmbus_core.c if (!ret && attr->gbit && attr 1254 drivers/hwmon/pmbus/pmbus_core.c attr->gbit); attr 1263 drivers/hwmon/pmbus/pmbus_core.c const struct pmbus_sensor_attr *attr) attr 1267 drivers/hwmon/pmbus/pmbus_core.c if (attr->paged) attr 1280 drivers/hwmon/pmbus/pmbus_core.c if (info->func[p] & attr->func) attr 1320 drivers/hwmon/pmbus/pmbus_core.c .attr = "min", attr 1325 drivers/hwmon/pmbus/pmbus_core.c .attr = "lcrit", attr 1330 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1335 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1341 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1345 drivers/hwmon/pmbus/pmbus_core.c .attr = "lowest", attr 1349 drivers/hwmon/pmbus/pmbus_core.c .attr = "highest", attr 1352 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1359 drivers/hwmon/pmbus/pmbus_core.c .attr = "min", attr 1364 drivers/hwmon/pmbus/pmbus_core.c .attr = "lcrit", attr 1369 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1374 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1383 drivers/hwmon/pmbus/pmbus_core.c .attr = "min", attr 1388 drivers/hwmon/pmbus/pmbus_core.c .attr = "lcrit", attr 1393 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1398 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1404 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1408 drivers/hwmon/pmbus/pmbus_core.c .attr = "lowest", attr 1412 drivers/hwmon/pmbus/pmbus_core.c .attr = "highest", attr 1415 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1463 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1468 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1474 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1478 drivers/hwmon/pmbus/pmbus_core.c .attr = "lowest", attr 1482 drivers/hwmon/pmbus/pmbus_core.c .attr = "highest", attr 1485 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1492 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1497 drivers/hwmon/pmbus/pmbus_core.c .attr = "lcrit", attr 1502 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1508 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1512 drivers/hwmon/pmbus/pmbus_core.c .attr = "lowest", attr 1516 drivers/hwmon/pmbus/pmbus_core.c .attr = "highest", attr 1519 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1553 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1559 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1563 drivers/hwmon/pmbus/pmbus_core.c .attr = "input_lowest", attr 1567 drivers/hwmon/pmbus/pmbus_core.c .attr = "input_highest", attr 1570 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1577 drivers/hwmon/pmbus/pmbus_core.c .attr = "cap", attr 1582 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1587 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1593 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1597 drivers/hwmon/pmbus/pmbus_core.c .attr = "input_lowest", attr 1601 drivers/hwmon/pmbus/pmbus_core.c .attr = "input_highest", attr 1604 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1638 drivers/hwmon/pmbus/pmbus_core.c .attr = "min", attr 1644 drivers/hwmon/pmbus/pmbus_core.c .attr = "lcrit", attr 1649 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1654 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1659 drivers/hwmon/pmbus/pmbus_core.c .attr = "lowest", attr 1662 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1665 drivers/hwmon/pmbus/pmbus_core.c .attr = "highest", attr 1668 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1676 drivers/hwmon/pmbus/pmbus_core.c .attr = "min", attr 1682 drivers/hwmon/pmbus/pmbus_core.c .attr = "lcrit", attr 1687 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1692 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1697 drivers/hwmon/pmbus/pmbus_core.c .attr = "lowest", attr 1700 drivers/hwmon/pmbus/pmbus_core.c .attr = "average", attr 1703 drivers/hwmon/pmbus/pmbus_core.c .attr = "highest", attr 1706 drivers/hwmon/pmbus/pmbus_core.c .attr = "reset_history", attr 1714 drivers/hwmon/pmbus/pmbus_core.c .attr = "min", attr 1720 drivers/hwmon/pmbus/pmbus_core.c .attr = "lcrit", attr 1725 drivers/hwmon/pmbus/pmbus_core.c .attr = "max", attr 1730 drivers/hwmon/pmbus/pmbus_core.c .attr = "crit", attr 1924 drivers/hwmon/pmbus/pmbus_core.c struct pmbus_samples_attr *attr; attr 1956 drivers/hwmon/pmbus/pmbus_core.c val = _pmbus_read_word_data(client, reg->page, reg->attr->reg); attr 1977 drivers/hwmon/pmbus/pmbus_core.c ret = _pmbus_write_word_data(client, reg->page, reg->attr->reg, val); attr 1984 drivers/hwmon/pmbus/pmbus_core.c struct pmbus_samples_attr *attr) attr 1992 drivers/hwmon/pmbus/pmbus_core.c reg->attr = attr; attr 1995 drivers/hwmon/pmbus/pmbus_core.c pmbus_dev_attr_init(®->dev_attr, attr->name, 0644, attr 1998 drivers/hwmon/pmbus/pmbus_core.c return pmbus_add_attribute(data, ®->dev_attr.attr); attr 2011 drivers/hwmon/pmbus/pmbus_core.c struct pmbus_samples_attr *attr; attr 2014 drivers/hwmon/pmbus/pmbus_core.c attr = &pmbus_samples_registers[s]; attr 2015 drivers/hwmon/pmbus/pmbus_core.c if (!pmbus_check_word_register(client, 0, attr->reg)) attr 2018 drivers/hwmon/pmbus/pmbus_core.c ret = pmbus_add_samples_attr(data, 0, attr); attr 175 drivers/hwmon/powr1220.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 176 drivers/hwmon/powr1220.c int adc_val = powr1220_read_adc(dev, attr->index); attr 188 drivers/hwmon/powr1220.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 191 drivers/hwmon/powr1220.c return sprintf(buf, "%d\n", data->adc_maxes[attr->index]); attr 199 drivers/hwmon/powr1220.c struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); attr 201 drivers/hwmon/powr1220.c return sprintf(buf, "%s\n", input_names[attr->index]); attr 250 drivers/hwmon/powr1220.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 251 drivers/hwmon/powr1220.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 252 drivers/hwmon/powr1220.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 253 drivers/hwmon/powr1220.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 254 drivers/hwmon/powr1220.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 255 drivers/hwmon/powr1220.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 256 drivers/hwmon/powr1220.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 257 drivers/hwmon/powr1220.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 258 drivers/hwmon/powr1220.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 259 drivers/hwmon/powr1220.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 260 drivers/hwmon/powr1220.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 261 drivers/hwmon/powr1220.c &sensor_dev_attr_in11_input.dev_attr.attr, attr 262 drivers/hwmon/powr1220.c &sensor_dev_attr_in12_input.dev_attr.attr, attr 263 drivers/hwmon/powr1220.c &sensor_dev_attr_in13_input.dev_attr.attr, attr 265 drivers/hwmon/powr1220.c &sensor_dev_attr_in0_highest.dev_attr.attr, attr 266 drivers/hwmon/powr1220.c &sensor_dev_attr_in1_highest.dev_attr.attr, attr 267 drivers/hwmon/powr1220.c &sensor_dev_attr_in2_highest.dev_attr.attr, attr 268 drivers/hwmon/powr1220.c &sensor_dev_attr_in3_highest.dev_attr.attr, attr 269 drivers/hwmon/powr1220.c &sensor_dev_attr_in4_highest.dev_attr.attr, attr 270 drivers/hwmon/powr1220.c &sensor_dev_attr_in5_highest.dev_attr.attr, attr 271 drivers/hwmon/powr1220.c &sensor_dev_attr_in6_highest.dev_attr.attr, attr 272 drivers/hwmon/powr1220.c &sensor_dev_attr_in7_highest.dev_attr.attr, attr 273 drivers/hwmon/powr1220.c &sensor_dev_attr_in8_highest.dev_attr.attr, attr 274 drivers/hwmon/powr1220.c &sensor_dev_attr_in9_highest.dev_attr.attr, attr 275 drivers/hwmon/powr1220.c &sensor_dev_attr_in10_highest.dev_attr.attr, attr 276 drivers/hwmon/powr1220.c &sensor_dev_attr_in11_highest.dev_attr.attr, attr 277 drivers/hwmon/powr1220.c &sensor_dev_attr_in12_highest.dev_attr.attr, attr 278 drivers/hwmon/powr1220.c &sensor_dev_attr_in13_highest.dev_attr.attr, attr 280 drivers/hwmon/powr1220.c &sensor_dev_attr_in0_label.dev_attr.attr, attr 281 drivers/hwmon/powr1220.c &sensor_dev_attr_in1_label.dev_attr.attr, attr 282 drivers/hwmon/powr1220.c &sensor_dev_attr_in2_label.dev_attr.attr, attr 283 drivers/hwmon/powr1220.c &sensor_dev_attr_in3_label.dev_attr.attr, attr 284 drivers/hwmon/powr1220.c &sensor_dev_attr_in4_label.dev_attr.attr, attr 285 drivers/hwmon/powr1220.c &sensor_dev_attr_in5_label.dev_attr.attr, attr 286 drivers/hwmon/powr1220.c &sensor_dev_attr_in6_label.dev_attr.attr, attr 287 drivers/hwmon/powr1220.c &sensor_dev_attr_in7_label.dev_attr.attr, attr 288 drivers/hwmon/powr1220.c &sensor_dev_attr_in8_label.dev_attr.attr, attr 289 drivers/hwmon/powr1220.c &sensor_dev_attr_in9_label.dev_attr.attr, attr 290 drivers/hwmon/powr1220.c &sensor_dev_attr_in10_label.dev_attr.attr, attr 291 drivers/hwmon/powr1220.c &sensor_dev_attr_in11_label.dev_attr.attr, attr 292 drivers/hwmon/powr1220.c &sensor_dev_attr_in12_label.dev_attr.attr, attr 293 drivers/hwmon/powr1220.c &sensor_dev_attr_in13_label.dev_attr.attr, attr 104 drivers/hwmon/pwm-fan.c static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, attr 122 drivers/hwmon/pwm-fan.c static ssize_t pwm_show(struct device *dev, struct device_attribute *attr, attr 131 drivers/hwmon/pwm-fan.c struct device_attribute *attr, char *buf) attr 142 drivers/hwmon/pwm-fan.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 143 drivers/hwmon/pwm-fan.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 75 drivers/hwmon/raspberrypi-hwmon.c u32 attr, int channel, long *val) attr 84 drivers/hwmon/raspberrypi-hwmon.c u32 attr, int channel) attr 87 drivers/hwmon/s3c-hwmon.c struct device_attribute *attr, char *buf) attr 90 drivers/hwmon/s3c-hwmon.c struct sensor_device_attribute *sa = to_sensor_dev_attr(attr); attr 108 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc0_raw.dev_attr.attr, attr 109 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc1_raw.dev_attr.attr, attr 110 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc2_raw.dev_attr.attr, attr 111 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc3_raw.dev_attr.attr, attr 112 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc4_raw.dev_attr.attr, attr 113 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc5_raw.dev_attr.attr, attr 114 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc6_raw.dev_attr.attr, attr 115 drivers/hwmon/s3c-hwmon.c &sensor_dev_attr_adc7_raw.dev_attr.attr, attr 151 drivers/hwmon/s3c-hwmon.c struct device_attribute *attr, attr 154 drivers/hwmon/s3c-hwmon.c struct sensor_device_attribute *sen_attr = to_sensor_dev_attr(attr); attr 181 drivers/hwmon/s3c-hwmon.c struct device_attribute *attr, attr 184 drivers/hwmon/s3c-hwmon.c struct sensor_device_attribute *sen_attr = to_sensor_dev_attr(attr); attr 212 drivers/hwmon/s3c-hwmon.c struct sensor_device_attribute *attr; attr 217 drivers/hwmon/s3c-hwmon.c attr = &attrs->in; attr 218 drivers/hwmon/s3c-hwmon.c attr->index = channel; attr 219 drivers/hwmon/s3c-hwmon.c sysfs_attr_init(&attr->dev_attr.attr); attr 220 drivers/hwmon/s3c-hwmon.c attr->dev_attr.attr.name = attrs->in_name; attr 221 drivers/hwmon/s3c-hwmon.c attr->dev_attr.attr.mode = S_IRUGO; attr 222 drivers/hwmon/s3c-hwmon.c attr->dev_attr.show = s3c_hwmon_ch_show; attr 224 drivers/hwmon/s3c-hwmon.c ret = device_create_file(dev, &attr->dev_attr); attr 235 drivers/hwmon/s3c-hwmon.c attr = &attrs->label; attr 236 drivers/hwmon/s3c-hwmon.c attr->index = channel; attr 237 drivers/hwmon/s3c-hwmon.c sysfs_attr_init(&attr->dev_attr.attr); attr 238 drivers/hwmon/s3c-hwmon.c attr->dev_attr.attr.name = attrs->label_name; attr 239 drivers/hwmon/s3c-hwmon.c attr->dev_attr.attr.mode = S_IRUGO; attr 240 drivers/hwmon/s3c-hwmon.c attr->dev_attr.show = s3c_hwmon_label_show; attr 242 drivers/hwmon/s3c-hwmon.c ret = device_create_file(dev, &attr->dev_attr); attr 204 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 211 drivers/hwmon/sch5627.c val = reg_to_temp(data->temp[attr->index]); attr 218 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 224 drivers/hwmon/sch5627.c return snprintf(buf, PAGE_SIZE, "%d\n", data->temp[attr->index] == 0); attr 230 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 234 drivers/hwmon/sch5627.c val = reg_to_temp_limit(data->temp_max[attr->index]); attr 241 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 245 drivers/hwmon/sch5627.c val = reg_to_temp_limit(data->temp_crit[attr->index]); attr 252 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 259 drivers/hwmon/sch5627.c val = reg_to_rpm(data->fan[attr->index]); attr 269 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 276 drivers/hwmon/sch5627.c data->fan[attr->index] == 0xffff); attr 282 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 284 drivers/hwmon/sch5627.c int val = reg_to_rpm(data->fan_min[attr->index]); attr 294 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 302 drivers/hwmon/sch5627.c data->in[attr->index] * SCH5627_REG_IN_FACTOR[attr->index], attr 310 drivers/hwmon/sch5627.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 313 drivers/hwmon/sch5627.c SCH5627_IN_LABELS[attr->index]); attr 374 drivers/hwmon/sch5627.c &dev_attr_name.attr, attr 376 drivers/hwmon/sch5627.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 377 drivers/hwmon/sch5627.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 378 drivers/hwmon/sch5627.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 379 drivers/hwmon/sch5627.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 380 drivers/hwmon/sch5627.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 381 drivers/hwmon/sch5627.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 382 drivers/hwmon/sch5627.c &sensor_dev_attr_temp7_input.dev_attr.attr, attr 383 drivers/hwmon/sch5627.c &sensor_dev_attr_temp8_input.dev_attr.attr, attr 384 drivers/hwmon/sch5627.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 385 drivers/hwmon/sch5627.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 386 drivers/hwmon/sch5627.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 387 drivers/hwmon/sch5627.c &sensor_dev_attr_temp4_fault.dev_attr.attr, attr 388 drivers/hwmon/sch5627.c &sensor_dev_attr_temp5_fault.dev_attr.attr, attr 389 drivers/hwmon/sch5627.c &sensor_dev_attr_temp6_fault.dev_attr.attr, attr 390 drivers/hwmon/sch5627.c &sensor_dev_attr_temp7_fault.dev_attr.attr, attr 391 drivers/hwmon/sch5627.c &sensor_dev_attr_temp8_fault.dev_attr.attr, attr 392 drivers/hwmon/sch5627.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 393 drivers/hwmon/sch5627.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 394 drivers/hwmon/sch5627.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 395 drivers/hwmon/sch5627.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 396 drivers/hwmon/sch5627.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 397 drivers/hwmon/sch5627.c &sensor_dev_attr_temp6_max.dev_attr.attr, attr 398 drivers/hwmon/sch5627.c &sensor_dev_attr_temp7_max.dev_attr.attr, attr 399 drivers/hwmon/sch5627.c &sensor_dev_attr_temp8_max.dev_attr.attr, attr 400 drivers/hwmon/sch5627.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 401 drivers/hwmon/sch5627.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 402 drivers/hwmon/sch5627.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 403 drivers/hwmon/sch5627.c &sensor_dev_attr_temp4_crit.dev_attr.attr, attr 404 drivers/hwmon/sch5627.c &sensor_dev_attr_temp5_crit.dev_attr.attr, attr 405 drivers/hwmon/sch5627.c &sensor_dev_attr_temp6_crit.dev_attr.attr, attr 406 drivers/hwmon/sch5627.c &sensor_dev_attr_temp7_crit.dev_attr.attr, attr 407 drivers/hwmon/sch5627.c &sensor_dev_attr_temp8_crit.dev_attr.attr, attr 409 drivers/hwmon/sch5627.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 410 drivers/hwmon/sch5627.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 411 drivers/hwmon/sch5627.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 412 drivers/hwmon/sch5627.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 413 drivers/hwmon/sch5627.c &sensor_dev_attr_fan1_fault.dev_attr.attr, attr 414 drivers/hwmon/sch5627.c &sensor_dev_attr_fan2_fault.dev_attr.attr, attr 415 drivers/hwmon/sch5627.c &sensor_dev_attr_fan3_fault.dev_attr.attr, attr 416 drivers/hwmon/sch5627.c &sensor_dev_attr_fan4_fault.dev_attr.attr, attr 417 drivers/hwmon/sch5627.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 418 drivers/hwmon/sch5627.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 419 drivers/hwmon/sch5627.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 420 drivers/hwmon/sch5627.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 422 drivers/hwmon/sch5627.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 423 drivers/hwmon/sch5627.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 424 drivers/hwmon/sch5627.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 425 drivers/hwmon/sch5627.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 426 drivers/hwmon/sch5627.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 427 drivers/hwmon/sch5627.c &sensor_dev_attr_in0_label.dev_attr.attr, attr 428 drivers/hwmon/sch5627.c &sensor_dev_attr_in1_label.dev_attr.attr, attr 429 drivers/hwmon/sch5627.c &sensor_dev_attr_in2_label.dev_attr.attr, attr 430 drivers/hwmon/sch5627.c &sensor_dev_attr_in3_label.dev_attr.attr, attr 169 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 177 drivers/hwmon/sch5636.c data->in[attr->index] * SCH5636_REG_IN_FACTORS[attr->index], attr 185 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 188 drivers/hwmon/sch5636.c SCH5636_IN_LABELS[attr->index]); attr 194 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 201 drivers/hwmon/sch5636.c val = (data->temp_val[attr->index] - 64) * 1000; attr 208 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 215 drivers/hwmon/sch5636.c val = (data->temp_ctrl[attr->index] & SCH5636_TEMP_WORKING) ? 0 : 1; attr 222 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 229 drivers/hwmon/sch5636.c val = (data->temp_ctrl[attr->index] & SCH5636_TEMP_ALARM) ? 1 : 0; attr 236 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 243 drivers/hwmon/sch5636.c val = reg_to_rpm(data->fan_val[attr->index]); attr 253 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 260 drivers/hwmon/sch5636.c val = (data->fan_ctrl[attr->index] & SCH5636_FAN_NOT_PRESENT) ? 1 : 0; attr 267 drivers/hwmon/sch5636.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 274 drivers/hwmon/sch5636.c val = (data->fan_ctrl[attr->index] & SCH5636_FAN_ALARM) ? 1 : 0; attr 66 drivers/hwmon/scmi-hwmon.c u32 attr, int channel, long *val) attr 88 drivers/hwmon/scmi-hwmon.c u32 attr, int channel, const char **str) attr 101 drivers/hwmon/scmi-hwmon.c u32 attr, int channel) attr 86 drivers/hwmon/scpi-hwmon.c scpi_show_sensor(struct device *dev, struct device_attribute *attr, char *buf) attr 94 drivers/hwmon/scpi-hwmon.c sensor = container_of(attr, struct sensor_data, dev_attr_input); attr 106 drivers/hwmon/scpi-hwmon.c scpi_show_label(struct device *dev, struct device_attribute *attr, char *buf) attr 110 drivers/hwmon/scpi-hwmon.c sensor = container_of(attr, struct sensor_data, dev_attr_label); attr 221 drivers/hwmon/scpi-hwmon.c sensor->dev_attr_input.attr.mode = 0444; attr 223 drivers/hwmon/scpi-hwmon.c sensor->dev_attr_input.attr.name = sensor->input; attr 225 drivers/hwmon/scpi-hwmon.c sensor->dev_attr_label.attr.mode = 0444; attr 227 drivers/hwmon/scpi-hwmon.c sensor->dev_attr_label.attr.name = sensor->label; attr 229 drivers/hwmon/scpi-hwmon.c scpi_sensors->attrs[idx << 1] = &sensor->dev_attr_input.attr; attr 230 drivers/hwmon/scpi-hwmon.c scpi_sensors->attrs[(idx << 1) + 1] = &sensor->dev_attr_label.attr; attr 681 drivers/hwmon/sht15.c struct device_attribute *attr, char *buf) attr 685 drivers/hwmon/sht15.c u8 bit = to_sensor_dev_attr(attr)->index; attr 703 drivers/hwmon/sht15.c struct device_attribute *attr, attr 737 drivers/hwmon/sht15.c struct device_attribute *attr, char *buf) attr 759 drivers/hwmon/sht15.c struct device_attribute *attr, char *buf) attr 770 drivers/hwmon/sht15.c struct device_attribute *attr, attr 786 drivers/hwmon/sht15.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 787 drivers/hwmon/sht15.c &sensor_dev_attr_humidity1_input.dev_attr.attr, attr 788 drivers/hwmon/sht15.c &sensor_dev_attr_temp1_fault.dev_attr.attr, attr 789 drivers/hwmon/sht15.c &sensor_dev_attr_humidity1_fault.dev_attr.attr, attr 790 drivers/hwmon/sht15.c &sensor_dev_attr_heater_enable.dev_attr.attr, attr 791 drivers/hwmon/sht15.c &dev_attr_name.attr, attr 126 drivers/hwmon/sht21.c struct device_attribute *attr, attr 148 drivers/hwmon/sht21.c struct device_attribute *attr, char *buf) attr 223 drivers/hwmon/sht21.c struct device_attribute *attr, attr 245 drivers/hwmon/sht21.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 246 drivers/hwmon/sht21.c &sensor_dev_attr_humidity1_input.dev_attr.attr, attr 247 drivers/hwmon/sht21.c &dev_attr_eic.attr, attr 261 drivers/hwmon/sht3x.c struct device_attribute *attr, char *buf) attr 272 drivers/hwmon/sht3x.c struct device_attribute *attr, char *buf) attr 316 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 320 drivers/hwmon/sht3x.c u8 index = to_sensor_dev_attr(attr)->index; attr 327 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 331 drivers/hwmon/sht3x.c u8 index = to_sensor_dev_attr(attr)->index; attr 387 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 394 drivers/hwmon/sht3x.c u8 index = to_sensor_dev_attr(attr)->index; attr 411 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 418 drivers/hwmon/sht3x.c u8 index = to_sensor_dev_attr(attr)->index; attr 461 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 475 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 481 drivers/hwmon/sht3x.c ret = status_register_read(dev, attr, buffer, attr 490 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 496 drivers/hwmon/sht3x.c ret = status_register_read(dev, attr, buffer, attr 505 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 511 drivers/hwmon/sht3x.c ret = status_register_read(dev, attr, buffer, attr 520 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 548 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 558 drivers/hwmon/sht3x.c struct device_attribute *attr, attr 640 drivers/hwmon/sht3x.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 641 drivers/hwmon/sht3x.c &sensor_dev_attr_humidity1_input.dev_attr.attr, attr 642 drivers/hwmon/sht3x.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 643 drivers/hwmon/sht3x.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 644 drivers/hwmon/sht3x.c &sensor_dev_attr_humidity1_max.dev_attr.attr, attr 645 drivers/hwmon/sht3x.c &sensor_dev_attr_humidity1_max_hyst.dev_attr.attr, attr 646 drivers/hwmon/sht3x.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 647 drivers/hwmon/sht3x.c &sensor_dev_attr_temp1_min_hyst.dev_attr.attr, attr 648 drivers/hwmon/sht3x.c &sensor_dev_attr_humidity1_min.dev_attr.attr, attr 649 drivers/hwmon/sht3x.c &sensor_dev_attr_humidity1_min_hyst.dev_attr.attr, attr 650 drivers/hwmon/sht3x.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 651 drivers/hwmon/sht3x.c &sensor_dev_attr_humidity1_alarm.dev_attr.attr, attr 652 drivers/hwmon/sht3x.c &sensor_dev_attr_heater_enable.dev_attr.attr, attr 653 drivers/hwmon/sht3x.c &sensor_dev_attr_update_interval.dev_attr.attr, attr 658 drivers/hwmon/sht3x.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 138 drivers/hwmon/shtc1.c struct device_attribute *attr, attr 149 drivers/hwmon/shtc1.c struct device_attribute *attr, char *buf) attr 162 drivers/hwmon/shtc1.c &dev_attr_temp1_input.attr, attr 163 drivers/hwmon/shtc1.c &dev_attr_humidity1_input.attr, attr 215 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 216 drivers/hwmon/sis5595.c int nr = attr->index; attr 224 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 225 drivers/hwmon/sis5595.c int nr = attr->index; attr 233 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 234 drivers/hwmon/sis5595.c int nr = attr->index; attr 242 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 243 drivers/hwmon/sis5595.c int nr = attr->index; attr 262 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 263 drivers/hwmon/sis5595.c int nr = attr->index; attr 296 drivers/hwmon/sis5595.c struct device_attribute *attr, char *buf) attr 302 drivers/hwmon/sis5595.c static ssize_t temp1_max_show(struct device *dev, struct device_attribute *attr, attr 310 drivers/hwmon/sis5595.c struct device_attribute *attr, const char *buf, attr 329 drivers/hwmon/sis5595.c struct device_attribute *attr, char *buf) attr 336 drivers/hwmon/sis5595.c struct device_attribute *attr, attr 363 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 364 drivers/hwmon/sis5595.c int nr = attr->index; attr 373 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 374 drivers/hwmon/sis5595.c int nr = attr->index; attr 383 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 384 drivers/hwmon/sis5595.c int nr = attr->index; attr 403 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 404 drivers/hwmon/sis5595.c int nr = attr->index; attr 418 drivers/hwmon/sis5595.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 419 drivers/hwmon/sis5595.c int nr = attr->index; attr 479 drivers/hwmon/sis5595.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 503 drivers/hwmon/sis5595.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 512 drivers/hwmon/sis5595.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 513 drivers/hwmon/sis5595.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 514 drivers/hwmon/sis5595.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 515 drivers/hwmon/sis5595.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 516 drivers/hwmon/sis5595.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 517 drivers/hwmon/sis5595.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 518 drivers/hwmon/sis5595.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 519 drivers/hwmon/sis5595.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 520 drivers/hwmon/sis5595.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 521 drivers/hwmon/sis5595.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 522 drivers/hwmon/sis5595.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 523 drivers/hwmon/sis5595.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 524 drivers/hwmon/sis5595.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 525 drivers/hwmon/sis5595.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 526 drivers/hwmon/sis5595.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 527 drivers/hwmon/sis5595.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 529 drivers/hwmon/sis5595.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 530 drivers/hwmon/sis5595.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 531 drivers/hwmon/sis5595.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 532 drivers/hwmon/sis5595.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 533 drivers/hwmon/sis5595.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 534 drivers/hwmon/sis5595.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 535 drivers/hwmon/sis5595.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 536 drivers/hwmon/sis5595.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 538 drivers/hwmon/sis5595.c &dev_attr_alarms.attr, attr 539 drivers/hwmon/sis5595.c &dev_attr_name.attr, attr 548 drivers/hwmon/sis5595.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 549 drivers/hwmon/sis5595.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 550 drivers/hwmon/sis5595.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 551 drivers/hwmon/sis5595.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 560 drivers/hwmon/sis5595.c &dev_attr_temp1_input.attr, attr 561 drivers/hwmon/sis5595.c &dev_attr_temp1_max.attr, attr 562 drivers/hwmon/sis5595.c &dev_attr_temp1_max_hyst.attr, attr 563 drivers/hwmon/sis5595.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 344 drivers/hwmon/smm665.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 351 drivers/hwmon/smm665.c if (data->faults & (1 << attr->index)) attr 360 drivers/hwmon/smm665.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 362 drivers/hwmon/smm665.c int adc = attr->index; attr 376 drivers/hwmon/smm665.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \ attr 377 drivers/hwmon/smm665.c const int val = smm665_get_##what(dev, attr->index); \ attr 483 drivers/hwmon/smm665.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 484 drivers/hwmon/smm665.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 485 drivers/hwmon/smm665.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 486 drivers/hwmon/smm665.c &sensor_dev_attr_in1_lcrit.dev_attr.attr, attr 487 drivers/hwmon/smm665.c &sensor_dev_attr_in1_crit.dev_attr.attr, attr 488 drivers/hwmon/smm665.c &sensor_dev_attr_in1_crit_alarm.dev_attr.attr, attr 490 drivers/hwmon/smm665.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 491 drivers/hwmon/smm665.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 492 drivers/hwmon/smm665.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 493 drivers/hwmon/smm665.c &sensor_dev_attr_in2_lcrit.dev_attr.attr, attr 494 drivers/hwmon/smm665.c &sensor_dev_attr_in2_crit.dev_attr.attr, attr 495 drivers/hwmon/smm665.c &sensor_dev_attr_in2_crit_alarm.dev_attr.attr, attr 497 drivers/hwmon/smm665.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 498 drivers/hwmon/smm665.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 499 drivers/hwmon/smm665.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 500 drivers/hwmon/smm665.c &sensor_dev_attr_in3_lcrit.dev_attr.attr, attr 501 drivers/hwmon/smm665.c &sensor_dev_attr_in3_crit.dev_attr.attr, attr 502 drivers/hwmon/smm665.c &sensor_dev_attr_in3_crit_alarm.dev_attr.attr, attr 504 drivers/hwmon/smm665.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 505 drivers/hwmon/smm665.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 506 drivers/hwmon/smm665.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 507 drivers/hwmon/smm665.c &sensor_dev_attr_in4_lcrit.dev_attr.attr, attr 508 drivers/hwmon/smm665.c &sensor_dev_attr_in4_crit.dev_attr.attr, attr 509 drivers/hwmon/smm665.c &sensor_dev_attr_in4_crit_alarm.dev_attr.attr, attr 511 drivers/hwmon/smm665.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 512 drivers/hwmon/smm665.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 513 drivers/hwmon/smm665.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 514 drivers/hwmon/smm665.c &sensor_dev_attr_in5_lcrit.dev_attr.attr, attr 515 drivers/hwmon/smm665.c &sensor_dev_attr_in5_crit.dev_attr.attr, attr 516 drivers/hwmon/smm665.c &sensor_dev_attr_in5_crit_alarm.dev_attr.attr, attr 518 drivers/hwmon/smm665.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 519 drivers/hwmon/smm665.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 520 drivers/hwmon/smm665.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 521 drivers/hwmon/smm665.c &sensor_dev_attr_in6_lcrit.dev_attr.attr, attr 522 drivers/hwmon/smm665.c &sensor_dev_attr_in6_crit.dev_attr.attr, attr 523 drivers/hwmon/smm665.c &sensor_dev_attr_in6_crit_alarm.dev_attr.attr, attr 525 drivers/hwmon/smm665.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 526 drivers/hwmon/smm665.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 527 drivers/hwmon/smm665.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 528 drivers/hwmon/smm665.c &sensor_dev_attr_in7_lcrit.dev_attr.attr, attr 529 drivers/hwmon/smm665.c &sensor_dev_attr_in7_crit.dev_attr.attr, attr 530 drivers/hwmon/smm665.c &sensor_dev_attr_in7_crit_alarm.dev_attr.attr, attr 532 drivers/hwmon/smm665.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 533 drivers/hwmon/smm665.c &sensor_dev_attr_in8_min.dev_attr.attr, attr 534 drivers/hwmon/smm665.c &sensor_dev_attr_in8_max.dev_attr.attr, attr 535 drivers/hwmon/smm665.c &sensor_dev_attr_in8_lcrit.dev_attr.attr, attr 536 drivers/hwmon/smm665.c &sensor_dev_attr_in8_crit.dev_attr.attr, attr 537 drivers/hwmon/smm665.c &sensor_dev_attr_in8_crit_alarm.dev_attr.attr, attr 539 drivers/hwmon/smm665.c &sensor_dev_attr_in9_input.dev_attr.attr, attr 540 drivers/hwmon/smm665.c &sensor_dev_attr_in9_min.dev_attr.attr, attr 541 drivers/hwmon/smm665.c &sensor_dev_attr_in9_max.dev_attr.attr, attr 542 drivers/hwmon/smm665.c &sensor_dev_attr_in9_lcrit.dev_attr.attr, attr 543 drivers/hwmon/smm665.c &sensor_dev_attr_in9_crit.dev_attr.attr, attr 544 drivers/hwmon/smm665.c &sensor_dev_attr_in9_crit_alarm.dev_attr.attr, attr 546 drivers/hwmon/smm665.c &sensor_dev_attr_in10_input.dev_attr.attr, attr 547 drivers/hwmon/smm665.c &sensor_dev_attr_in10_min.dev_attr.attr, attr 548 drivers/hwmon/smm665.c &sensor_dev_attr_in10_max.dev_attr.attr, attr 549 drivers/hwmon/smm665.c &sensor_dev_attr_in10_lcrit.dev_attr.attr, attr 550 drivers/hwmon/smm665.c &sensor_dev_attr_in10_crit.dev_attr.attr, attr 551 drivers/hwmon/smm665.c &sensor_dev_attr_in10_crit_alarm.dev_attr.attr, attr 553 drivers/hwmon/smm665.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 554 drivers/hwmon/smm665.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 555 drivers/hwmon/smm665.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 556 drivers/hwmon/smm665.c &sensor_dev_attr_temp1_lcrit.dev_attr.attr, attr 557 drivers/hwmon/smm665.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 558 drivers/hwmon/smm665.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 162 drivers/hwmon/smsc47b397.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 164 drivers/hwmon/smsc47b397.c return sprintf(buf, "%d\n", temp_from_reg(data->temp[attr->index])); attr 186 drivers/hwmon/smsc47b397.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 188 drivers/hwmon/smsc47b397.c return sprintf(buf, "%d\n", fan_from_reg(data->fan[attr->index])); attr 196 drivers/hwmon/smsc47b397.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 197 drivers/hwmon/smsc47b397.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 198 drivers/hwmon/smsc47b397.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 199 drivers/hwmon/smsc47b397.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 200 drivers/hwmon/smsc47b397.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 201 drivers/hwmon/smsc47b397.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 202 drivers/hwmon/smsc47b397.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 203 drivers/hwmon/smsc47b397.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 200 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 202 drivers/hwmon/smsc47m1.c int nr = attr->index; attr 219 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 221 drivers/hwmon/smsc47m1.c int nr = attr->index; attr 230 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 232 drivers/hwmon/smsc47m1.c return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); attr 246 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 248 drivers/hwmon/smsc47m1.c return sprintf(buf, "%d\n", PWM_FROM_REG(data->pwm[attr->index])); attr 254 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 256 drivers/hwmon/smsc47m1.c return sprintf(buf, "%d\n", PWM_EN_FROM_REG(data->pwm[attr->index])); attr 270 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 272 drivers/hwmon/smsc47m1.c int nr = attr->index; attr 307 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 309 drivers/hwmon/smsc47m1.c int nr = attr->index; attr 372 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 374 drivers/hwmon/smsc47m1.c int nr = attr->index; attr 399 drivers/hwmon/smsc47m1.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 401 drivers/hwmon/smsc47m1.c int nr = attr->index; attr 453 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 454 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 455 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 456 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 465 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 466 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 467 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 468 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 477 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 478 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 479 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan3_div.dev_attr.attr, attr 480 drivers/hwmon/smsc47m1.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 489 drivers/hwmon/smsc47m1.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 490 drivers/hwmon/smsc47m1.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 499 drivers/hwmon/smsc47m1.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 500 drivers/hwmon/smsc47m1.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 509 drivers/hwmon/smsc47m1.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 510 drivers/hwmon/smsc47m1.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 519 drivers/hwmon/smsc47m1.c &dev_attr_alarms.attr, attr 520 drivers/hwmon/smsc47m1.c &dev_attr_name.attr, attr 169 drivers/hwmon/smsc47m192.c static ssize_t in_show(struct device *dev, struct device_attribute *attr, attr 172 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 178 drivers/hwmon/smsc47m192.c static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, attr 181 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 187 drivers/hwmon/smsc47m192.c static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, attr 190 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 196 drivers/hwmon/smsc47m192.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 199 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 218 drivers/hwmon/smsc47m192.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 221 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 266 drivers/hwmon/smsc47m192.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 269 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 276 drivers/hwmon/smsc47m192.c struct device_attribute *attr, char *buf) attr 278 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 285 drivers/hwmon/smsc47m192.c struct device_attribute *attr, char *buf) attr 287 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 294 drivers/hwmon/smsc47m192.c struct device_attribute *attr, const char *buf, attr 297 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 317 drivers/hwmon/smsc47m192.c struct device_attribute *attr, const char *buf, attr 320 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 340 drivers/hwmon/smsc47m192.c struct device_attribute *attr, char *buf) attr 342 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 349 drivers/hwmon/smsc47m192.c struct device_attribute *attr, attr 352 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 401 drivers/hwmon/smsc47m192.c struct device_attribute *attr, char *buf) attr 408 drivers/hwmon/smsc47m192.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 415 drivers/hwmon/smsc47m192.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 434 drivers/hwmon/smsc47m192.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 437 drivers/hwmon/smsc47m192.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 458 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 459 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 460 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 461 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 462 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 463 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 464 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 465 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 466 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 467 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 468 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 469 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 470 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 471 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 472 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 473 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 474 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 475 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 476 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 477 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 478 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 479 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 480 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 481 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 482 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 483 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 484 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 485 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 487 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 488 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 489 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 490 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp1_offset.dev_attr.attr, attr 491 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 492 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 493 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 494 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 495 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 496 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 497 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 498 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 499 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 500 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 501 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp3_offset.dev_attr.attr, attr 502 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 503 drivers/hwmon/smsc47m192.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 505 drivers/hwmon/smsc47m192.c &dev_attr_cpu0_vid.attr, attr 506 drivers/hwmon/smsc47m192.c &dev_attr_vrm.attr, attr 515 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 516 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 517 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 518 drivers/hwmon/smsc47m192.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 377 drivers/hwmon/stts751.c struct device_attribute *attr, char *buf) attr 394 drivers/hwmon/stts751.c struct device_attribute *attr, char *buf) attr 410 drivers/hwmon/stts751.c static ssize_t input_show(struct device *dev, struct device_attribute *attr, attr 425 drivers/hwmon/stts751.c static ssize_t therm_show(struct device *dev, struct device_attribute *attr, attr 433 drivers/hwmon/stts751.c static ssize_t therm_store(struct device *dev, struct device_attribute *attr, attr 467 drivers/hwmon/stts751.c static ssize_t hyst_show(struct device *dev, struct device_attribute *attr, attr 475 drivers/hwmon/stts751.c static ssize_t hyst_store(struct device *dev, struct device_attribute *attr, attr 501 drivers/hwmon/stts751.c struct device_attribute *attr, char *buf) attr 515 drivers/hwmon/stts751.c static ssize_t max_show(struct device *dev, struct device_attribute *attr, attr 523 drivers/hwmon/stts751.c static ssize_t max_store(struct device *dev, struct device_attribute *attr, attr 549 drivers/hwmon/stts751.c static ssize_t min_show(struct device *dev, struct device_attribute *attr, attr 557 drivers/hwmon/stts751.c static ssize_t min_store(struct device *dev, struct device_attribute *attr, attr 584 drivers/hwmon/stts751.c struct device_attribute *attr, char *buf) attr 593 drivers/hwmon/stts751.c struct device_attribute *attr, const char *buf, attr 752 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 753 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 754 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 755 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 756 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 757 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 758 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 759 drivers/hwmon/stts751.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 760 drivers/hwmon/stts751.c &sensor_dev_attr_update_interval.dev_attr.attr, attr 430 drivers/hwmon/tc654.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 431 drivers/hwmon/tc654.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 432 drivers/hwmon/tc654.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 433 drivers/hwmon/tc654.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 434 drivers/hwmon/tc654.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 435 drivers/hwmon/tc654.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 436 drivers/hwmon/tc654.c &sensor_dev_attr_fan1_pulses.dev_attr.attr, attr 437 drivers/hwmon/tc654.c &sensor_dev_attr_fan2_pulses.dev_attr.attr, attr 438 drivers/hwmon/tc654.c &sensor_dev_attr_pwm1_mode.dev_attr.attr, attr 439 drivers/hwmon/tc654.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 86 drivers/hwmon/tc74.c struct device_attribute *attr, char *buf) attr 100 drivers/hwmon/tc74.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 119 drivers/hwmon/thmc50.c struct device_attribute *attr, char *buf) attr 126 drivers/hwmon/thmc50.c struct device_attribute *attr, attr 157 drivers/hwmon/thmc50.c struct device_attribute *attr, char *buf) attr 163 drivers/hwmon/thmc50.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 166 drivers/hwmon/thmc50.c int nr = to_sensor_dev_attr(attr)->index; attr 172 drivers/hwmon/thmc50.c struct device_attribute *attr, char *buf) attr 174 drivers/hwmon/thmc50.c int nr = to_sensor_dev_attr(attr)->index; attr 180 drivers/hwmon/thmc50.c struct device_attribute *attr, const char *buf, attr 183 drivers/hwmon/thmc50.c int nr = to_sensor_dev_attr(attr)->index; attr 202 drivers/hwmon/thmc50.c struct device_attribute *attr, char *buf) attr 204 drivers/hwmon/thmc50.c int nr = to_sensor_dev_attr(attr)->index; attr 210 drivers/hwmon/thmc50.c struct device_attribute *attr, const char *buf, attr 213 drivers/hwmon/thmc50.c int nr = to_sensor_dev_attr(attr)->index; attr 232 drivers/hwmon/thmc50.c struct device_attribute *attr, char *buf) attr 234 drivers/hwmon/thmc50.c int nr = to_sensor_dev_attr(attr)->index; attr 239 drivers/hwmon/thmc50.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 242 drivers/hwmon/thmc50.c int index = to_sensor_dev_attr(attr)->index; attr 271 drivers/hwmon/thmc50.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 272 drivers/hwmon/thmc50.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 273 drivers/hwmon/thmc50.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 274 drivers/hwmon/thmc50.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 275 drivers/hwmon/thmc50.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 276 drivers/hwmon/thmc50.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 277 drivers/hwmon/thmc50.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 278 drivers/hwmon/thmc50.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 279 drivers/hwmon/thmc50.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 280 drivers/hwmon/thmc50.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 281 drivers/hwmon/thmc50.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 282 drivers/hwmon/thmc50.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 283 drivers/hwmon/thmc50.c &sensor_dev_attr_pwm1_mode.dev_attr.attr, attr 293 drivers/hwmon/thmc50.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 294 drivers/hwmon/thmc50.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 295 drivers/hwmon/thmc50.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 296 drivers/hwmon/thmc50.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 297 drivers/hwmon/thmc50.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 298 drivers/hwmon/thmc50.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 73 drivers/hwmon/tmp102.c u32 attr, int channel, long *temp) attr 79 drivers/hwmon/tmp102.c switch (attr) { attr 107 drivers/hwmon/tmp102.c u32 attr, int channel, long temp) attr 112 drivers/hwmon/tmp102.c switch (attr) { attr 128 drivers/hwmon/tmp102.c u32 attr, int channel) attr 133 drivers/hwmon/tmp102.c switch (attr) { attr 55 drivers/hwmon/tmp103.c struct device_attribute *attr, char *buf) attr 57 drivers/hwmon/tmp103.c struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); attr 70 drivers/hwmon/tmp103.c struct device_attribute *attr, attr 73 drivers/hwmon/tmp103.c struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); attr 93 drivers/hwmon/tmp103.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 94 drivers/hwmon/tmp103.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 95 drivers/hwmon/tmp103.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 92 drivers/hwmon/tmp108.c u32 attr, int channel, long *temp) attr 99 drivers/hwmon/tmp108.c if (attr == hwmon_chip_update_interval) { attr 124 drivers/hwmon/tmp108.c switch (attr) { attr 139 drivers/hwmon/tmp108.c err = regmap_read(tmp108->regmap, attr == hwmon_temp_min ? attr 150 drivers/hwmon/tmp108.c *temp = !!(regval & (attr == hwmon_temp_min_alarm ? attr 173 drivers/hwmon/tmp108.c err = regmap_read(tmp108->regmap, attr == hwmon_temp_min_hyst ? attr 178 drivers/hwmon/tmp108.c if (attr == hwmon_temp_min_hyst) attr 191 drivers/hwmon/tmp108.c u32 attr, int channel, long temp) attr 198 drivers/hwmon/tmp108.c if (attr == hwmon_chip_update_interval) { attr 215 drivers/hwmon/tmp108.c switch (attr) { attr 220 drivers/hwmon/tmp108.c attr == hwmon_temp_min ? attr 227 drivers/hwmon/tmp108.c attr == hwmon_temp_min_hyst ? attr 232 drivers/hwmon/tmp108.c if (attr == hwmon_temp_min_hyst) attr 252 drivers/hwmon/tmp108.c u32 attr, int channel) attr 254 drivers/hwmon/tmp108.c if (type == hwmon_chip && attr == hwmon_chip_update_interval) attr 260 drivers/hwmon/tmp108.c switch (attr) { attr 423 drivers/hwmon/tmp401.c struct device_attribute *attr, char *buf) attr 431 drivers/hwmon/tmp401.c struct device_attribute *attr, attr 488 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 489 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_min.dev_attr.attr, attr 490 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 491 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 492 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, attr 493 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, attr 494 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, attr 495 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr, attr 497 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 498 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_min.dev_attr.attr, attr 499 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 500 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_crit.dev_attr.attr, attr 501 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_crit_hyst.dev_attr.attr, attr 502 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_fault.dev_attr.attr, attr 503 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_max_alarm.dev_attr.attr, attr 504 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_min_alarm.dev_attr.attr, attr 505 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr, attr 507 drivers/hwmon/tmp401.c &dev_attr_update_interval.attr, attr 530 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_highest.dev_attr.attr, attr 531 drivers/hwmon/tmp401.c &sensor_dev_attr_temp1_lowest.dev_attr.attr, attr 532 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_highest.dev_attr.attr, attr 533 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_lowest.dev_attr.attr, attr 534 drivers/hwmon/tmp401.c &sensor_dev_attr_temp_reset_history.dev_attr.attr, attr 556 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 557 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_min.dev_attr.attr, attr 558 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 559 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_crit.dev_attr.attr, attr 560 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_crit_hyst.dev_attr.attr, attr 561 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_fault.dev_attr.attr, attr 562 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_max_alarm.dev_attr.attr, attr 563 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_min_alarm.dev_attr.attr, attr 564 drivers/hwmon/tmp401.c &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr, attr 580 drivers/hwmon/tmp401.c &sensor_dev_attr_temp2_offset.dev_attr.attr, attr 150 drivers/hwmon/tmp421.c u32 attr, int channel, long *val) attr 154 drivers/hwmon/tmp421.c switch (attr) { attr 175 drivers/hwmon/tmp421.c u32 attr, int channel) attr 177 drivers/hwmon/tmp421.c switch (attr) { attr 97 drivers/hwmon/ultra45_env.c static ssize_t show_fan_speed(struct device *dev, struct device_attribute *attr, attr 100 drivers/hwmon/ultra45_env.c int fan_nr = to_sensor_dev_attr(attr)->index; attr 115 drivers/hwmon/ultra45_env.c static ssize_t set_fan_speed(struct device *dev, struct device_attribute *attr, attr 118 drivers/hwmon/ultra45_env.c int fan_nr = to_sensor_dev_attr(attr)->index; attr 139 drivers/hwmon/ultra45_env.c static ssize_t show_fan_fault(struct device *dev, struct device_attribute *attr, attr 142 drivers/hwmon/ultra45_env.c int fan_nr = to_sensor_dev_attr(attr)->index; attr 162 drivers/hwmon/ultra45_env.c static ssize_t show_temp(struct device *dev, struct device_attribute *attr, attr 165 drivers/hwmon/ultra45_env.c int temp_nr = to_sensor_dev_attr(attr)->index; attr 183 drivers/hwmon/ultra45_env.c static ssize_t show_stat_bit(struct device *dev, struct device_attribute *attr, attr 186 drivers/hwmon/ultra45_env.c int index = to_sensor_dev_attr(attr)->index; attr 200 drivers/hwmon/ultra45_env.c static ssize_t show_fwver(struct device *dev, struct device_attribute *attr, attr 212 drivers/hwmon/ultra45_env.c static ssize_t show_name(struct device *dev, struct device_attribute *attr, attr 221 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan0_speed.dev_attr.attr, attr 222 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan0_fault.dev_attr.attr, attr 223 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan1_speed.dev_attr.attr, attr 224 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan1_fault.dev_attr.attr, attr 225 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan2_speed.dev_attr.attr, attr 226 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan2_fault.dev_attr.attr, attr 227 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan3_speed.dev_attr.attr, attr 228 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan3_fault.dev_attr.attr, attr 229 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan4_speed.dev_attr.attr, attr 230 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan4_fault.dev_attr.attr, attr 231 drivers/hwmon/ultra45_env.c &sensor_dev_attr_psu_fan_fault.dev_attr.attr, attr 232 drivers/hwmon/ultra45_env.c &sensor_dev_attr_adt7462_local_temp.dev_attr.attr, attr 233 drivers/hwmon/ultra45_env.c &sensor_dev_attr_cpu0_temp.dev_attr.attr, attr 234 drivers/hwmon/ultra45_env.c &sensor_dev_attr_cpu1_temp.dev_attr.attr, attr 235 drivers/hwmon/ultra45_env.c &sensor_dev_attr_motherboard_temp.dev_attr.attr, attr 236 drivers/hwmon/ultra45_env.c &sensor_dev_attr_lm95221_local_temp.dev_attr.attr, attr 237 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fire_temp.dev_attr.attr, attr 238 drivers/hwmon/ultra45_env.c &sensor_dev_attr_lsi1064_local_temp.dev_attr.attr, attr 239 drivers/hwmon/ultra45_env.c &sensor_dev_attr_front_panel_temp.dev_attr.attr, attr 240 drivers/hwmon/ultra45_env.c &sensor_dev_attr_psu_temp.dev_attr.attr, attr 241 drivers/hwmon/ultra45_env.c &sensor_dev_attr_fan_failure.dev_attr.attr, attr 242 drivers/hwmon/ultra45_env.c &sensor_dev_attr_env_bus_busy.dev_attr.attr, attr 243 drivers/hwmon/ultra45_env.c &sensor_dev_attr_env_data_stale.dev_attr.attr, attr 244 drivers/hwmon/ultra45_env.c &sensor_dev_attr_tpm_self_test_passed.dev_attr.attr, attr 245 drivers/hwmon/ultra45_env.c &sensor_dev_attr_firmware_version.dev_attr.attr, attr 246 drivers/hwmon/ultra45_env.c &sensor_dev_attr_name.dev_attr.attr, attr 69 drivers/hwmon/vexpress-hwmon.c struct attribute *attr, int index) attr 72 drivers/hwmon/vexpress-hwmon.c struct device_attribute *dev_attr = container_of(attr, attr 73 drivers/hwmon/vexpress-hwmon.c struct device_attribute, attr); attr 79 drivers/hwmon/vexpress-hwmon.c return attr->mode; attr 91 drivers/hwmon/vexpress-hwmon.c &dev_attr_in1_label.attr, attr 92 drivers/hwmon/vexpress-hwmon.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 111 drivers/hwmon/vexpress-hwmon.c &dev_attr_curr1_label.attr, attr 112 drivers/hwmon/vexpress-hwmon.c &sensor_dev_attr_curr1_input.dev_attr.attr, attr 130 drivers/hwmon/vexpress-hwmon.c &dev_attr_temp1_label.attr, attr 131 drivers/hwmon/vexpress-hwmon.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 149 drivers/hwmon/vexpress-hwmon.c &dev_attr_power1_label.attr, attr 150 drivers/hwmon/vexpress-hwmon.c &sensor_dev_attr_power1_input.dev_attr.attr, attr 168 drivers/hwmon/vexpress-hwmon.c &dev_attr_energy1_label.attr, attr 169 drivers/hwmon/vexpress-hwmon.c &sensor_dev_attr_energy1_input.dev_attr.attr, attr 54 drivers/hwmon/via-cputemp.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 57 drivers/hwmon/via-cputemp.c if (attr->index == SHOW_NAME) attr 97 drivers/hwmon/via-cputemp.c &sensor_dev_attr_name.dev_attr.attr, attr 98 drivers/hwmon/via-cputemp.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 99 drivers/hwmon/via-cputemp.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 347 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 348 drivers/hwmon/via686a.c int nr = attr->index; attr 355 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 356 drivers/hwmon/via686a.c int nr = attr->index; attr 363 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 364 drivers/hwmon/via686a.c int nr = attr->index; attr 371 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 372 drivers/hwmon/via686a.c int nr = attr->index; attr 390 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 391 drivers/hwmon/via686a.c int nr = attr->index; attr 427 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 428 drivers/hwmon/via686a.c int nr = attr->index; attr 434 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 435 drivers/hwmon/via686a.c int nr = attr->index; attr 441 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 442 drivers/hwmon/via686a.c int nr = attr->index; attr 449 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 450 drivers/hwmon/via686a.c int nr = attr->index; attr 469 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 470 drivers/hwmon/via686a.c int nr = attr->index; attr 500 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 501 drivers/hwmon/via686a.c int nr = attr->index; attr 508 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 509 drivers/hwmon/via686a.c int nr = attr->index; attr 517 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 518 drivers/hwmon/via686a.c int nr = attr->index; attr 524 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 525 drivers/hwmon/via686a.c int nr = attr->index; attr 542 drivers/hwmon/via686a.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 543 drivers/hwmon/via686a.c int nr = attr->index; attr 569 drivers/hwmon/via686a.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 578 drivers/hwmon/via686a.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 581 drivers/hwmon/via686a.c int bitnr = to_sensor_dev_attr(attr)->index; attr 605 drivers/hwmon/via686a.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 606 drivers/hwmon/via686a.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 607 drivers/hwmon/via686a.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 608 drivers/hwmon/via686a.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 609 drivers/hwmon/via686a.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 610 drivers/hwmon/via686a.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 611 drivers/hwmon/via686a.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 612 drivers/hwmon/via686a.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 613 drivers/hwmon/via686a.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 614 drivers/hwmon/via686a.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 615 drivers/hwmon/via686a.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 616 drivers/hwmon/via686a.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 617 drivers/hwmon/via686a.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 618 drivers/hwmon/via686a.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 619 drivers/hwmon/via686a.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 620 drivers/hwmon/via686a.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 621 drivers/hwmon/via686a.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 622 drivers/hwmon/via686a.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 623 drivers/hwmon/via686a.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 624 drivers/hwmon/via686a.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 626 drivers/hwmon/via686a.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 627 drivers/hwmon/via686a.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 628 drivers/hwmon/via686a.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 629 drivers/hwmon/via686a.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 630 drivers/hwmon/via686a.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 631 drivers/hwmon/via686a.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 632 drivers/hwmon/via686a.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 633 drivers/hwmon/via686a.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 634 drivers/hwmon/via686a.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 635 drivers/hwmon/via686a.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 636 drivers/hwmon/via686a.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 637 drivers/hwmon/via686a.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 639 drivers/hwmon/via686a.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 640 drivers/hwmon/via686a.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 641 drivers/hwmon/via686a.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 642 drivers/hwmon/via686a.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 643 drivers/hwmon/via686a.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 644 drivers/hwmon/via686a.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 645 drivers/hwmon/via686a.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 646 drivers/hwmon/via686a.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 648 drivers/hwmon/via686a.c &dev_attr_alarms.attr, attr 649 drivers/hwmon/via686a.c &dev_attr_name.attr, attr 340 drivers/hwmon/vt1211.c static ssize_t show_in(struct device *dev, struct device_attribute *attr, attr 345 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 371 drivers/hwmon/vt1211.c static ssize_t set_in(struct device *dev, struct device_attribute *attr, attr 376 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 414 drivers/hwmon/vt1211.c static ssize_t show_temp(struct device *dev, struct device_attribute *attr, attr 419 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 445 drivers/hwmon/vt1211.c static ssize_t set_temp(struct device *dev, struct device_attribute *attr, attr 450 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 490 drivers/hwmon/vt1211.c static ssize_t show_fan(struct device *dev, struct device_attribute *attr, attr 495 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 521 drivers/hwmon/vt1211.c static ssize_t set_fan(struct device *dev, struct device_attribute *attr, attr 526 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 596 drivers/hwmon/vt1211.c static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, attr 601 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 627 drivers/hwmon/vt1211.c static ssize_t set_pwm(struct device *dev, struct device_attribute *attr, attr 632 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 751 drivers/hwmon/vt1211.c struct device_attribute *attr, attr 756 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 765 drivers/hwmon/vt1211.c struct device_attribute *attr, attr 770 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 815 drivers/hwmon/vt1211.c struct device_attribute *attr, attr 820 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 828 drivers/hwmon/vt1211.c struct device_attribute *attr, attr 833 drivers/hwmon/vt1211.c to_sensor_dev_attr_2(attr); attr 856 drivers/hwmon/vt1211.c static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, attr 864 drivers/hwmon/vt1211.c static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, attr 883 drivers/hwmon/vt1211.c static ssize_t show_vid(struct device *dev, struct device_attribute *attr, attr 892 drivers/hwmon/vt1211.c struct device_attribute *attr, char *buf) attr 900 drivers/hwmon/vt1211.c struct device_attribute *attr, char *buf) attr 932 drivers/hwmon/vt1211.c { &vt1211_sysfs_in[X][0].dev_attr.attr, \ attr 933 drivers/hwmon/vt1211.c &vt1211_sysfs_in[X][1].dev_attr.attr, \ attr 934 drivers/hwmon/vt1211.c &vt1211_sysfs_in[X][2].dev_attr.attr, \ attr 935 drivers/hwmon/vt1211.c &vt1211_sysfs_in[X][3].dev_attr.attr, \ attr 979 drivers/hwmon/vt1211.c { &vt1211_sysfs_temp[X][0].dev_attr.attr, \ attr 980 drivers/hwmon/vt1211.c &vt1211_sysfs_temp[X][1].dev_attr.attr, \ attr 981 drivers/hwmon/vt1211.c &vt1211_sysfs_temp[X][2].dev_attr.attr, \ attr 982 drivers/hwmon/vt1211.c &vt1211_sysfs_temp[X][3].dev_attr.attr, \ attr 182 drivers/hwmon/vt8231.c static ssize_t in_show(struct device *dev, struct device_attribute *attr, attr 185 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 192 drivers/hwmon/vt8231.c static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, attr 195 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 202 drivers/hwmon/vt8231.c static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, attr 205 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 212 drivers/hwmon/vt8231.c static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, attr 215 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 232 drivers/hwmon/vt8231.c static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, attr 235 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 254 drivers/hwmon/vt8231.c struct device_attribute *attr, char *buf) attr 262 drivers/hwmon/vt8231.c static ssize_t in5_min_show(struct device *dev, struct device_attribute *attr, attr 271 drivers/hwmon/vt8231.c static ssize_t in5_max_show(struct device *dev, struct device_attribute *attr, attr 281 drivers/hwmon/vt8231.c struct device_attribute *attr, const char *buf, attr 301 drivers/hwmon/vt8231.c struct device_attribute *attr, const char *buf, attr 342 drivers/hwmon/vt8231.c struct device_attribute *attr, char *buf) attr 348 drivers/hwmon/vt8231.c static ssize_t temp1_max_show(struct device *dev, struct device_attribute *attr, attr 356 drivers/hwmon/vt8231.c struct device_attribute *attr, char *buf) attr 363 drivers/hwmon/vt8231.c struct device_attribute *attr, const char *buf, attr 381 drivers/hwmon/vt8231.c struct device_attribute *attr, attr 399 drivers/hwmon/vt8231.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, attr 402 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 409 drivers/hwmon/vt8231.c struct device_attribute *attr, char *buf) attr 411 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 418 drivers/hwmon/vt8231.c struct device_attribute *attr, char *buf) attr 420 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 427 drivers/hwmon/vt8231.c struct device_attribute *attr, const char *buf, attr 430 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 447 drivers/hwmon/vt8231.c struct device_attribute *attr, const char *buf, attr 450 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 493 drivers/hwmon/vt8231.c static ssize_t fan_show(struct device *dev, struct device_attribute *attr, attr 496 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 503 drivers/hwmon/vt8231.c static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, attr 506 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 513 drivers/hwmon/vt8231.c static ssize_t fan_div_show(struct device *dev, struct device_attribute *attr, attr 516 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 523 drivers/hwmon/vt8231.c struct device_attribute *attr, const char *buf, attr 526 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 544 drivers/hwmon/vt8231.c struct device_attribute *attr, const char *buf, attr 548 drivers/hwmon/vt8231.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 600 drivers/hwmon/vt8231.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 608 drivers/hwmon/vt8231.c static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, attr 611 drivers/hwmon/vt8231.c int bitnr = to_sensor_dev_attr(attr)->index; attr 640 drivers/hwmon/vt8231.c &dev_attr_temp1_input.attr, attr 641 drivers/hwmon/vt8231.c &dev_attr_temp1_max_hyst.attr, attr 642 drivers/hwmon/vt8231.c &dev_attr_temp1_max.attr, attr 643 drivers/hwmon/vt8231.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 646 drivers/hwmon/vt8231.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 647 drivers/hwmon/vt8231.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 648 drivers/hwmon/vt8231.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 649 drivers/hwmon/vt8231.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 652 drivers/hwmon/vt8231.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 653 drivers/hwmon/vt8231.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 654 drivers/hwmon/vt8231.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 655 drivers/hwmon/vt8231.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 658 drivers/hwmon/vt8231.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 659 drivers/hwmon/vt8231.c &sensor_dev_attr_temp4_max_hyst.dev_attr.attr, attr 660 drivers/hwmon/vt8231.c &sensor_dev_attr_temp4_max.dev_attr.attr, attr 661 drivers/hwmon/vt8231.c &sensor_dev_attr_temp4_alarm.dev_attr.attr, attr 664 drivers/hwmon/vt8231.c &sensor_dev_attr_temp5_input.dev_attr.attr, attr 665 drivers/hwmon/vt8231.c &sensor_dev_attr_temp5_max_hyst.dev_attr.attr, attr 666 drivers/hwmon/vt8231.c &sensor_dev_attr_temp5_max.dev_attr.attr, attr 667 drivers/hwmon/vt8231.c &sensor_dev_attr_temp5_alarm.dev_attr.attr, attr 670 drivers/hwmon/vt8231.c &sensor_dev_attr_temp6_input.dev_attr.attr, attr 671 drivers/hwmon/vt8231.c &sensor_dev_attr_temp6_max_hyst.dev_attr.attr, attr 672 drivers/hwmon/vt8231.c &sensor_dev_attr_temp6_max.dev_attr.attr, attr 673 drivers/hwmon/vt8231.c &sensor_dev_attr_temp6_alarm.dev_attr.attr, attr 689 drivers/hwmon/vt8231.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 690 drivers/hwmon/vt8231.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 691 drivers/hwmon/vt8231.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 692 drivers/hwmon/vt8231.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 695 drivers/hwmon/vt8231.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 696 drivers/hwmon/vt8231.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 697 drivers/hwmon/vt8231.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 698 drivers/hwmon/vt8231.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 701 drivers/hwmon/vt8231.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 702 drivers/hwmon/vt8231.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 703 drivers/hwmon/vt8231.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 704 drivers/hwmon/vt8231.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 707 drivers/hwmon/vt8231.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 708 drivers/hwmon/vt8231.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 709 drivers/hwmon/vt8231.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 710 drivers/hwmon/vt8231.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 713 drivers/hwmon/vt8231.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 714 drivers/hwmon/vt8231.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 715 drivers/hwmon/vt8231.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 716 drivers/hwmon/vt8231.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 719 drivers/hwmon/vt8231.c &dev_attr_in5_input.attr, attr 720 drivers/hwmon/vt8231.c &dev_attr_in5_min.attr, attr 721 drivers/hwmon/vt8231.c &dev_attr_in5_max.attr, attr 722 drivers/hwmon/vt8231.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 737 drivers/hwmon/vt8231.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 738 drivers/hwmon/vt8231.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 739 drivers/hwmon/vt8231.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 740 drivers/hwmon/vt8231.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 741 drivers/hwmon/vt8231.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 742 drivers/hwmon/vt8231.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 743 drivers/hwmon/vt8231.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 744 drivers/hwmon/vt8231.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 745 drivers/hwmon/vt8231.c &dev_attr_alarms.attr, attr 746 drivers/hwmon/vt8231.c &dev_attr_name.attr, attr 931 drivers/hwmon/w83627ehf.c show_##reg(struct device *dev, struct device_attribute *attr, \ attr 936 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 947 drivers/hwmon/w83627ehf.c store_in_##reg(struct device *dev, struct device_attribute *attr, \ attr 952 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 970 drivers/hwmon/w83627ehf.c static ssize_t show_alarm(struct device *dev, struct device_attribute *attr, attr 974 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1032 drivers/hwmon/w83627ehf.c show_fan(struct device *dev, struct device_attribute *attr, char *buf) attr 1035 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1041 drivers/hwmon/w83627ehf.c show_fan_min(struct device *dev, struct device_attribute *attr, char *buf) attr 1044 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1052 drivers/hwmon/w83627ehf.c show_fan_div(struct device *dev, struct device_attribute *attr, attr 1056 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1062 drivers/hwmon/w83627ehf.c store_fan_min(struct device *dev, struct device_attribute *attr, attr 1066 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1192 drivers/hwmon/w83627ehf.c show_temp_label(struct device *dev, struct device_attribute *attr, char *buf) attr 1195 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1202 drivers/hwmon/w83627ehf.c show_##reg(struct device *dev, struct device_attribute *attr, \ attr 1207 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1217 drivers/hwmon/w83627ehf.c store_##reg(struct device *dev, struct device_attribute *attr, \ attr 1222 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1239 drivers/hwmon/w83627ehf.c show_temp_offset(struct device *dev, struct device_attribute *attr, char *buf) attr 1242 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1249 drivers/hwmon/w83627ehf.c store_temp_offset(struct device *dev, struct device_attribute *attr, attr 1253 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1272 drivers/hwmon/w83627ehf.c show_temp_type(struct device *dev, struct device_attribute *attr, char *buf) attr 1275 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1368 drivers/hwmon/w83627ehf.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 1373 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1383 drivers/hwmon/w83627ehf.c store_pwm_mode(struct device *dev, struct device_attribute *attr, attr 1387 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1417 drivers/hwmon/w83627ehf.c store_pwm(struct device *dev, struct device_attribute *attr, attr 1421 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1440 drivers/hwmon/w83627ehf.c store_pwm_enable(struct device *dev, struct device_attribute *attr, attr 1445 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1482 drivers/hwmon/w83627ehf.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 1487 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1496 drivers/hwmon/w83627ehf.c store_target_temp(struct device *dev, struct device_attribute *attr, attr 1500 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1519 drivers/hwmon/w83627ehf.c store_tolerance(struct device *dev, struct device_attribute *attr, attr 1524 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 1612 drivers/hwmon/w83627ehf.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 1617 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1622 drivers/hwmon/w83627ehf.c store_##reg(struct device *dev, struct device_attribute *attr, \ attr 1627 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1648 drivers/hwmon/w83627ehf.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 1653 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1661 drivers/hwmon/w83627ehf.c store_##reg(struct device *dev, struct device_attribute *attr, \ attr 1666 drivers/hwmon/w83627ehf.c to_sensor_dev_attr(attr); \ attr 1683 drivers/hwmon/w83627ehf.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 1750 drivers/hwmon/w83627ehf.c cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1761 drivers/hwmon/w83627ehf.c show_caseopen(struct device *dev, struct device_attribute *attr, char *buf) attr 1766 drivers/hwmon/w83627ehf.c !!(data->caseopen & to_sensor_dev_attr_2(attr)->index)); attr 1770 drivers/hwmon/w83627ehf.c clear_caseopen(struct device *dev, struct device_attribute *attr, attr 1780 drivers/hwmon/w83627ehf.c mask = to_sensor_dev_attr_2(attr)->nr; attr 1815 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *attr = attr 1818 drivers/hwmon/w83627ehf.c data->REG_FAN_STEP_OUTPUT[attr->index] != 0xff) attr 1819 drivers/hwmon/w83627ehf.c device_remove_file(dev, &attr->dev_attr); attr 2444 drivers/hwmon/w83627ehf.c struct sensor_device_attribute *attr = attr 2447 drivers/hwmon/w83627ehf.c data->REG_FAN_STEP_OUTPUT[attr->index] != 0xff) { attr 2448 drivers/hwmon/w83627ehf.c err = device_create_file(dev, &attr->dev_attr); attr 580 drivers/hwmon/w83627hf.c struct device_attribute *attr, char *buf) attr 586 drivers/hwmon/w83627hf.c static ssize_t in0_min_show(struct device *dev, struct device_attribute *attr, attr 593 drivers/hwmon/w83627hf.c static ssize_t in0_max_show(struct device *dev, struct device_attribute *attr, attr 601 drivers/hwmon/w83627hf.c struct device_attribute *attr, const char *buf, attr 631 drivers/hwmon/w83627hf.c struct device_attribute *attr, const char *buf, attr 799 drivers/hwmon/w83627hf.c cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 807 drivers/hwmon/w83627hf.c vrm_show(struct device *dev, struct device_attribute *attr, char *buf) attr 813 drivers/hwmon/w83627hf.c vrm_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 833 drivers/hwmon/w83627hf.c alarms_show(struct device *dev, struct device_attribute *attr, char *buf) attr 841 drivers/hwmon/w83627hf.c alarm_show(struct device *dev, struct device_attribute *attr, char *buf) attr 844 drivers/hwmon/w83627hf.c int bitnr = to_sensor_dev_attr(attr)->index; attr 864 drivers/hwmon/w83627hf.c beep_mask_show(struct device *dev, struct device_attribute *attr, char *buf) attr 872 drivers/hwmon/w83627hf.c beep_mask_store(struct device *dev, struct device_attribute *attr, attr 902 drivers/hwmon/w83627hf.c beep_show(struct device *dev, struct device_attribute *attr, char *buf) attr 905 drivers/hwmon/w83627hf.c int bitnr = to_sensor_dev_attr(attr)->index; attr 910 drivers/hwmon/w83627hf.c beep_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 914 drivers/hwmon/w83627hf.c int bitnr = to_sensor_dev_attr(attr)->index; attr 1316 drivers/hwmon/w83627hf.c &sensor_dev_attr_in##_X_##_input.dev_attr.attr, \ attr 1317 drivers/hwmon/w83627hf.c &sensor_dev_attr_in##_X_##_min.dev_attr.attr, \ attr 1318 drivers/hwmon/w83627hf.c &sensor_dev_attr_in##_X_##_max.dev_attr.attr, \ attr 1319 drivers/hwmon/w83627hf.c &sensor_dev_attr_in##_X_##_alarm.dev_attr.attr, \ attr 1320 drivers/hwmon/w83627hf.c &sensor_dev_attr_in##_X_##_beep.dev_attr.attr attr 1323 drivers/hwmon/w83627hf.c &sensor_dev_attr_fan##_X_##_input.dev_attr.attr, \ attr 1324 drivers/hwmon/w83627hf.c &sensor_dev_attr_fan##_X_##_min.dev_attr.attr, \ attr 1325 drivers/hwmon/w83627hf.c &sensor_dev_attr_fan##_X_##_div.dev_attr.attr, \ attr 1326 drivers/hwmon/w83627hf.c &sensor_dev_attr_fan##_X_##_alarm.dev_attr.attr, \ attr 1327 drivers/hwmon/w83627hf.c &sensor_dev_attr_fan##_X_##_beep.dev_attr.attr attr 1330 drivers/hwmon/w83627hf.c &sensor_dev_attr_temp##_X_##_input.dev_attr.attr, \ attr 1331 drivers/hwmon/w83627hf.c &sensor_dev_attr_temp##_X_##_max.dev_attr.attr, \ attr 1332 drivers/hwmon/w83627hf.c &sensor_dev_attr_temp##_X_##_max_hyst.dev_attr.attr, \ attr 1333 drivers/hwmon/w83627hf.c &sensor_dev_attr_temp##_X_##_type.dev_attr.attr, \ attr 1334 drivers/hwmon/w83627hf.c &sensor_dev_attr_temp##_X_##_alarm.dev_attr.attr, \ attr 1335 drivers/hwmon/w83627hf.c &sensor_dev_attr_temp##_X_##_beep.dev_attr.attr attr 1338 drivers/hwmon/w83627hf.c &dev_attr_in0_input.attr, attr 1339 drivers/hwmon/w83627hf.c &dev_attr_in0_min.attr, attr 1340 drivers/hwmon/w83627hf.c &dev_attr_in0_max.attr, attr 1341 drivers/hwmon/w83627hf.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 1342 drivers/hwmon/w83627hf.c &sensor_dev_attr_in0_beep.dev_attr.attr, attr 1355 drivers/hwmon/w83627hf.c &dev_attr_alarms.attr, attr 1356 drivers/hwmon/w83627hf.c &sensor_dev_attr_beep_enable.dev_attr.attr, attr 1357 drivers/hwmon/w83627hf.c &dev_attr_beep_mask.attr, attr 1359 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1360 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1361 drivers/hwmon/w83627hf.c &dev_attr_name.attr, attr 1376 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1378 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm1_freq.dev_attr.attr, attr 1379 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm2_freq.dev_attr.attr, attr 1380 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm3_freq.dev_attr.attr, attr 1382 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1383 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1384 drivers/hwmon/w83627hf.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 173 drivers/hwmon/w83773g.c u32 attr, int channel, long *val) attr 178 drivers/hwmon/w83773g.c if (attr == hwmon_chip_update_interval) attr 183 drivers/hwmon/w83773g.c switch (attr) { attr 198 drivers/hwmon/w83773g.c u32 attr, int channel, long val) attr 202 drivers/hwmon/w83773g.c if (type == hwmon_chip && attr == hwmon_chip_update_interval) attr 205 drivers/hwmon/w83773g.c if (type == hwmon_temp && attr == hwmon_temp_offset) attr 212 drivers/hwmon/w83773g.c u32 attr, int channel) attr 216 drivers/hwmon/w83773g.c switch (attr) { attr 222 drivers/hwmon/w83773g.c switch (attr) { attr 250 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \ attr 253 drivers/hwmon/w83781d.c (long)IN_FROM_REG(data->reg[attr->index])); \ attr 263 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \ attr 265 drivers/hwmon/w83781d.c int nr = attr->index; \ attr 303 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \ attr 306 drivers/hwmon/w83781d.c FAN_FROM_REG(data->reg[attr->index], \ attr 307 drivers/hwmon/w83781d.c DIV_FROM_REG(data->fan_div[attr->index]))); \ attr 316 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 318 drivers/hwmon/w83781d.c int nr = attr->index; attr 350 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \ attr 352 drivers/hwmon/w83781d.c int nr = attr->index; \ attr 368 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \ attr 370 drivers/hwmon/w83781d.c int nr = attr->index; \ attr 406 drivers/hwmon/w83781d.c cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 415 drivers/hwmon/w83781d.c vrm_show(struct device *dev, struct device_attribute *attr, char *buf) attr 422 drivers/hwmon/w83781d.c vrm_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 440 drivers/hwmon/w83781d.c alarms_show(struct device *dev, struct device_attribute *attr, char *buf) attr 448 drivers/hwmon/w83781d.c static ssize_t show_alarm(struct device *dev, struct device_attribute *attr, attr 452 drivers/hwmon/w83781d.c int bitnr = to_sensor_dev_attr(attr)->index; attr 458 drivers/hwmon/w83781d.c struct device_attribute *attr, char *buf) attr 482 drivers/hwmon/w83781d.c struct device_attribute *attr, char *buf) attr 490 drivers/hwmon/w83781d.c beep_mask_store(struct device *dev, struct device_attribute *attr, attr 519 drivers/hwmon/w83781d.c static ssize_t show_beep(struct device *dev, struct device_attribute *attr, attr 523 drivers/hwmon/w83781d.c int bitnr = to_sensor_dev_attr(attr)->index; attr 528 drivers/hwmon/w83781d.c store_beep(struct device *dev, struct device_attribute *attr, attr 532 drivers/hwmon/w83781d.c int bitnr = to_sensor_dev_attr(attr)->index; attr 579 drivers/hwmon/w83781d.c struct device_attribute *attr, char *buf) attr 622 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 625 drivers/hwmon/w83781d.c (long) DIV_FROM_REG(data->fan_div[attr->index])); attr 638 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 641 drivers/hwmon/w83781d.c int nr = attr->index; attr 691 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 693 drivers/hwmon/w83781d.c return sprintf(buf, "%d\n", (int)data->pwm[attr->index]); attr 707 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 709 drivers/hwmon/w83781d.c int nr = attr->index; attr 772 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 774 drivers/hwmon/w83781d.c return sprintf(buf, "%d\n", (int)data->sens[attr->index]); attr 781 drivers/hwmon/w83781d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 783 drivers/hwmon/w83781d.c int nr = attr->index; attr 920 drivers/hwmon/w83781d.c &sensor_dev_attr_in##X##_input.dev_attr.attr, \ attr 921 drivers/hwmon/w83781d.c &sensor_dev_attr_in##X##_min.dev_attr.attr, \ attr 922 drivers/hwmon/w83781d.c &sensor_dev_attr_in##X##_max.dev_attr.attr, \ attr 923 drivers/hwmon/w83781d.c &sensor_dev_attr_in##X##_alarm.dev_attr.attr, \ attr 924 drivers/hwmon/w83781d.c &sensor_dev_attr_in##X##_beep.dev_attr.attr attr 927 drivers/hwmon/w83781d.c &sensor_dev_attr_fan##X##_input.dev_attr.attr, \ attr 928 drivers/hwmon/w83781d.c &sensor_dev_attr_fan##X##_min.dev_attr.attr, \ attr 929 drivers/hwmon/w83781d.c &sensor_dev_attr_fan##X##_div.dev_attr.attr, \ attr 930 drivers/hwmon/w83781d.c &sensor_dev_attr_fan##X##_alarm.dev_attr.attr, \ attr 931 drivers/hwmon/w83781d.c &sensor_dev_attr_fan##X##_beep.dev_attr.attr attr 934 drivers/hwmon/w83781d.c &sensor_dev_attr_temp##X##_input.dev_attr.attr, \ attr 935 drivers/hwmon/w83781d.c &sensor_dev_attr_temp##X##_max.dev_attr.attr, \ attr 936 drivers/hwmon/w83781d.c &sensor_dev_attr_temp##X##_max_hyst.dev_attr.attr, \ attr 937 drivers/hwmon/w83781d.c &sensor_dev_attr_temp##X##_alarm.dev_attr.attr, \ attr 938 drivers/hwmon/w83781d.c &sensor_dev_attr_temp##X##_beep.dev_attr.attr attr 952 drivers/hwmon/w83781d.c &dev_attr_cpu0_vid.attr, attr 953 drivers/hwmon/w83781d.c &dev_attr_vrm.attr, attr 954 drivers/hwmon/w83781d.c &dev_attr_alarms.attr, attr 955 drivers/hwmon/w83781d.c &dev_attr_beep_mask.attr, attr 956 drivers/hwmon/w83781d.c &sensor_dev_attr_beep_enable.dev_attr.attr, attr 989 drivers/hwmon/w83781d.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 990 drivers/hwmon/w83781d.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 991 drivers/hwmon/w83781d.c &dev_attr_pwm2_enable.attr, attr 999 drivers/hwmon/w83781d.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1000 drivers/hwmon/w83781d.c &sensor_dev_attr_pwm4.dev_attr.attr, attr 1008 drivers/hwmon/w83781d.c &sensor_dev_attr_temp1_type.dev_attr.attr, attr 1009 drivers/hwmon/w83781d.c &sensor_dev_attr_temp2_type.dev_attr.attr, attr 1010 drivers/hwmon/w83781d.c &sensor_dev_attr_temp3_type.dev_attr.attr, attr 1044 drivers/hwmon/w83781d.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 354 drivers/hwmon/w83791d.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 358 drivers/hwmon/w83791d.c to_sensor_dev_attr(attr); \ attr 370 drivers/hwmon/w83791d.c struct device_attribute *attr, \ attr 374 drivers/hwmon/w83791d.c to_sensor_dev_attr(attr); \ attr 432 drivers/hwmon/w83791d.c static ssize_t show_beep(struct device *dev, struct device_attribute *attr, attr 436 drivers/hwmon/w83791d.c to_sensor_dev_attr(attr); attr 443 drivers/hwmon/w83791d.c static ssize_t store_beep(struct device *dev, struct device_attribute *attr, attr 447 drivers/hwmon/w83791d.c to_sensor_dev_attr(attr); attr 478 drivers/hwmon/w83791d.c static ssize_t show_alarm(struct device *dev, struct device_attribute *attr, attr 482 drivers/hwmon/w83791d.c to_sensor_dev_attr(attr); attr 520 drivers/hwmon/w83791d.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 524 drivers/hwmon/w83791d.c to_sensor_dev_attr(attr); \ attr 534 drivers/hwmon/w83791d.c static ssize_t store_fan_min(struct device *dev, struct device_attribute *attr, attr 537 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 556 drivers/hwmon/w83791d.c static ssize_t show_fan_div(struct device *dev, struct device_attribute *attr, attr 559 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 571 drivers/hwmon/w83791d.c static ssize_t store_fan_div(struct device *dev, struct device_attribute *attr, attr 574 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 712 drivers/hwmon/w83791d.c static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, attr 715 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 721 drivers/hwmon/w83791d.c static ssize_t store_pwm(struct device *dev, struct device_attribute *attr, attr 724 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 753 drivers/hwmon/w83791d.c static ssize_t show_pwmenable(struct device *dev, struct device_attribute *attr, attr 756 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 763 drivers/hwmon/w83791d.c struct device_attribute *attr, const char *buf, size_t count) attr 765 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 820 drivers/hwmon/w83791d.c struct device_attribute *attr, char *buf) attr 822 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 829 drivers/hwmon/w83791d.c struct device_attribute *attr, const char *buf, size_t count) attr 831 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 861 drivers/hwmon/w83791d.c struct device_attribute *attr, char *buf) attr 863 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 870 drivers/hwmon/w83791d.c struct device_attribute *attr, const char *buf, size_t count) attr 872 drivers/hwmon/w83791d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 926 drivers/hwmon/w83791d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 928 drivers/hwmon/w83791d.c return sprintf(buf, "%d\n", TEMP1_FROM_REG(data->temp1[attr->index])); attr 934 drivers/hwmon/w83791d.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 937 drivers/hwmon/w83791d.c int nr = attr->index; attr 956 drivers/hwmon/w83791d.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 958 drivers/hwmon/w83791d.c int nr = attr->nr; attr 959 drivers/hwmon/w83791d.c int index = attr->index; attr 967 drivers/hwmon/w83791d.c struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); attr 972 drivers/hwmon/w83791d.c int nr = attr->nr; attr 973 drivers/hwmon/w83791d.c int index = attr->index; attr 1031 drivers/hwmon/w83791d.c static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, attr 1046 drivers/hwmon/w83791d.c struct device_attribute *attr, char *buf) attr 1053 drivers/hwmon/w83791d.c struct device_attribute *attr, char *buf) attr 1061 drivers/hwmon/w83791d.c struct device_attribute *attr, attr 1096 drivers/hwmon/w83791d.c struct device_attribute *attr, attr 1138 drivers/hwmon/w83791d.c struct device_attribute *attr, char *buf) attr 1146 drivers/hwmon/w83791d.c static ssize_t vrm_show(struct device *dev, struct device_attribute *attr, attr 1153 drivers/hwmon/w83791d.c static ssize_t vrm_store(struct device *dev, struct device_attribute *attr, attr 1180 drivers/hwmon/w83791d.c &sda_in_input[X].dev_attr.attr, \ attr 1181 drivers/hwmon/w83791d.c &sda_in_min[X].dev_attr.attr, \ attr 1182 drivers/hwmon/w83791d.c &sda_in_max[X].dev_attr.attr, \ attr 1183 drivers/hwmon/w83791d.c &sda_in_beep[X].dev_attr.attr, \ attr 1184 drivers/hwmon/w83791d.c &sda_in_alarm[X].dev_attr.attr attr 1187 drivers/hwmon/w83791d.c &sda_fan_input[X].dev_attr.attr, \ attr 1188 drivers/hwmon/w83791d.c &sda_fan_min[X].dev_attr.attr, \ attr 1189 drivers/hwmon/w83791d.c &sda_fan_div[X].dev_attr.attr, \ attr 1190 drivers/hwmon/w83791d.c &sda_fan_beep[X].dev_attr.attr, \ attr 1191 drivers/hwmon/w83791d.c &sda_fan_alarm[X].dev_attr.attr attr 1194 drivers/hwmon/w83791d.c &sda_temp_input[X].dev_attr.attr, \ attr 1195 drivers/hwmon/w83791d.c &sda_temp_max[X].dev_attr.attr, \ attr 1196 drivers/hwmon/w83791d.c &sda_temp_max_hyst[X].dev_attr.attr, \ attr 1197 drivers/hwmon/w83791d.c &sda_temp_beep[X].dev_attr.attr, \ attr 1198 drivers/hwmon/w83791d.c &sda_temp_alarm[X].dev_attr.attr attr 1217 drivers/hwmon/w83791d.c &dev_attr_alarms.attr, attr 1218 drivers/hwmon/w83791d.c &sda_beep_ctrl[0].dev_attr.attr, attr 1219 drivers/hwmon/w83791d.c &sda_beep_ctrl[1].dev_attr.attr, attr 1220 drivers/hwmon/w83791d.c &dev_attr_cpu0_vid.attr, attr 1221 drivers/hwmon/w83791d.c &dev_attr_vrm.attr, attr 1222 drivers/hwmon/w83791d.c &sda_pwm[0].dev_attr.attr, attr 1223 drivers/hwmon/w83791d.c &sda_pwm[1].dev_attr.attr, attr 1224 drivers/hwmon/w83791d.c &sda_pwm[2].dev_attr.attr, attr 1225 drivers/hwmon/w83791d.c &sda_pwmenable[0].dev_attr.attr, attr 1226 drivers/hwmon/w83791d.c &sda_pwmenable[1].dev_attr.attr, attr 1227 drivers/hwmon/w83791d.c &sda_pwmenable[2].dev_attr.attr, attr 1228 drivers/hwmon/w83791d.c &sda_temp_target[0].dev_attr.attr, attr 1229 drivers/hwmon/w83791d.c &sda_temp_target[1].dev_attr.attr, attr 1230 drivers/hwmon/w83791d.c &sda_temp_target[2].dev_attr.attr, attr 1231 drivers/hwmon/w83791d.c &sda_temp_tolerance[0].dev_attr.attr, attr 1232 drivers/hwmon/w83791d.c &sda_temp_tolerance[1].dev_attr.attr, attr 1233 drivers/hwmon/w83791d.c &sda_temp_tolerance[2].dev_attr.attr, attr 1249 drivers/hwmon/w83791d.c &sda_pwm[3].dev_attr.attr, attr 1250 drivers/hwmon/w83791d.c &sda_pwm[4].dev_attr.attr, attr 343 drivers/hwmon/w83792d.c static ssize_t show_in(struct device *dev, struct device_attribute *attr, attr 346 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 354 drivers/hwmon/w83792d.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 358 drivers/hwmon/w83792d.c = to_sensor_dev_attr(attr); \ attr 370 drivers/hwmon/w83792d.c struct device_attribute *attr, \ attr 374 drivers/hwmon/w83792d.c = to_sensor_dev_attr(attr); \ attr 394 drivers/hwmon/w83792d.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 398 drivers/hwmon/w83792d.c = to_sensor_dev_attr(attr); \ attr 409 drivers/hwmon/w83792d.c store_fan_min(struct device *dev, struct device_attribute *attr, attr 412 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 433 drivers/hwmon/w83792d.c show_fan_div(struct device *dev, struct device_attribute *attr, attr 436 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 449 drivers/hwmon/w83792d.c store_fan_div(struct device *dev, struct device_attribute *attr, attr 452 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 491 drivers/hwmon/w83792d.c static ssize_t show_temp1(struct device *dev, struct device_attribute *attr, attr 494 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 500 drivers/hwmon/w83792d.c static ssize_t store_temp1(struct device *dev, struct device_attribute *attr, attr 503 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 525 drivers/hwmon/w83792d.c static ssize_t show_temp23(struct device *dev, struct device_attribute *attr, attr 529 drivers/hwmon/w83792d.c = to_sensor_dev_attr_2(attr); attr 538 drivers/hwmon/w83792d.c static ssize_t store_temp23(struct device *dev, struct device_attribute *attr, attr 542 drivers/hwmon/w83792d.c = to_sensor_dev_attr_2(attr); attr 568 drivers/hwmon/w83792d.c alarms_show(struct device *dev, struct device_attribute *attr, char *buf) attr 575 drivers/hwmon/w83792d.c struct device_attribute *attr, char *buf) attr 577 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 584 drivers/hwmon/w83792d.c show_pwm(struct device *dev, struct device_attribute *attr, attr 587 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 594 drivers/hwmon/w83792d.c show_pwmenable(struct device *dev, struct device_attribute *attr, attr 597 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 618 drivers/hwmon/w83792d.c store_pwm(struct device *dev, struct device_attribute *attr, attr 621 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 643 drivers/hwmon/w83792d.c store_pwmenable(struct device *dev, struct device_attribute *attr, attr 646 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 685 drivers/hwmon/w83792d.c show_pwm_mode(struct device *dev, struct device_attribute *attr, attr 688 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 695 drivers/hwmon/w83792d.c store_pwm_mode(struct device *dev, struct device_attribute *attr, attr 698 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 725 drivers/hwmon/w83792d.c intrusion0_alarm_show(struct device *dev, struct device_attribute *attr, attr 733 drivers/hwmon/w83792d.c intrusion0_alarm_store(struct device *dev, struct device_attribute *attr, attr 755 drivers/hwmon/w83792d.c show_thermal_cruise(struct device *dev, struct device_attribute *attr, attr 758 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 765 drivers/hwmon/w83792d.c store_thermal_cruise(struct device *dev, struct device_attribute *attr, attr 768 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 795 drivers/hwmon/w83792d.c show_tolerance(struct device *dev, struct device_attribute *attr, attr 798 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 805 drivers/hwmon/w83792d.c store_tolerance(struct device *dev, struct device_attribute *attr, attr 808 drivers/hwmon/w83792d.c struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); attr 837 drivers/hwmon/w83792d.c show_sf2_point(struct device *dev, struct device_attribute *attr, attr 841 drivers/hwmon/w83792d.c = to_sensor_dev_attr_2(attr); attr 849 drivers/hwmon/w83792d.c store_sf2_point(struct device *dev, struct device_attribute *attr, attr 853 drivers/hwmon/w83792d.c = to_sensor_dev_attr_2(attr); attr 878 drivers/hwmon/w83792d.c show_sf2_level(struct device *dev, struct device_attribute *attr, attr 882 drivers/hwmon/w83792d.c = to_sensor_dev_attr_2(attr); attr 891 drivers/hwmon/w83792d.c store_sf2_level(struct device *dev, struct device_attribute *attr, attr 895 drivers/hwmon/w83792d.c = to_sensor_dev_attr_2(attr); attr 1168 drivers/hwmon/w83792d.c &sensor_dev_attr_fan4_input.dev_attr.attr, attr 1169 drivers/hwmon/w83792d.c &sensor_dev_attr_fan4_min.dev_attr.attr, attr 1170 drivers/hwmon/w83792d.c &sensor_dev_attr_fan4_div.dev_attr.attr, attr 1171 drivers/hwmon/w83792d.c &sensor_dev_attr_fan4_alarm.dev_attr.attr, attr 1172 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm4.dev_attr.attr, attr 1173 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm4_mode.dev_attr.attr, attr 1176 drivers/hwmon/w83792d.c &sensor_dev_attr_fan5_input.dev_attr.attr, attr 1177 drivers/hwmon/w83792d.c &sensor_dev_attr_fan5_min.dev_attr.attr, attr 1178 drivers/hwmon/w83792d.c &sensor_dev_attr_fan5_div.dev_attr.attr, attr 1179 drivers/hwmon/w83792d.c &sensor_dev_attr_fan5_alarm.dev_attr.attr, attr 1180 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm5.dev_attr.attr, attr 1181 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm5_mode.dev_attr.attr, attr 1184 drivers/hwmon/w83792d.c &sensor_dev_attr_fan6_input.dev_attr.attr, attr 1185 drivers/hwmon/w83792d.c &sensor_dev_attr_fan6_min.dev_attr.attr, attr 1186 drivers/hwmon/w83792d.c &sensor_dev_attr_fan6_div.dev_attr.attr, attr 1187 drivers/hwmon/w83792d.c &sensor_dev_attr_fan6_alarm.dev_attr.attr, attr 1188 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm6.dev_attr.attr, attr 1189 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm6_mode.dev_attr.attr, attr 1192 drivers/hwmon/w83792d.c &sensor_dev_attr_fan7_input.dev_attr.attr, attr 1193 drivers/hwmon/w83792d.c &sensor_dev_attr_fan7_min.dev_attr.attr, attr 1194 drivers/hwmon/w83792d.c &sensor_dev_attr_fan7_div.dev_attr.attr, attr 1195 drivers/hwmon/w83792d.c &sensor_dev_attr_fan7_alarm.dev_attr.attr, attr 1196 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm7.dev_attr.attr, attr 1197 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm7_mode.dev_attr.attr, attr 1210 drivers/hwmon/w83792d.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 1211 drivers/hwmon/w83792d.c &sensor_dev_attr_in0_max.dev_attr.attr, attr 1212 drivers/hwmon/w83792d.c &sensor_dev_attr_in0_min.dev_attr.attr, attr 1213 drivers/hwmon/w83792d.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 1214 drivers/hwmon/w83792d.c &sensor_dev_attr_in1_max.dev_attr.attr, attr 1215 drivers/hwmon/w83792d.c &sensor_dev_attr_in1_min.dev_attr.attr, attr 1216 drivers/hwmon/w83792d.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 1217 drivers/hwmon/w83792d.c &sensor_dev_attr_in2_max.dev_attr.attr, attr 1218 drivers/hwmon/w83792d.c &sensor_dev_attr_in2_min.dev_attr.attr, attr 1219 drivers/hwmon/w83792d.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 1220 drivers/hwmon/w83792d.c &sensor_dev_attr_in3_max.dev_attr.attr, attr 1221 drivers/hwmon/w83792d.c &sensor_dev_attr_in3_min.dev_attr.attr, attr 1222 drivers/hwmon/w83792d.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 1223 drivers/hwmon/w83792d.c &sensor_dev_attr_in4_max.dev_attr.attr, attr 1224 drivers/hwmon/w83792d.c &sensor_dev_attr_in4_min.dev_attr.attr, attr 1225 drivers/hwmon/w83792d.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 1226 drivers/hwmon/w83792d.c &sensor_dev_attr_in5_max.dev_attr.attr, attr 1227 drivers/hwmon/w83792d.c &sensor_dev_attr_in5_min.dev_attr.attr, attr 1228 drivers/hwmon/w83792d.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 1229 drivers/hwmon/w83792d.c &sensor_dev_attr_in6_max.dev_attr.attr, attr 1230 drivers/hwmon/w83792d.c &sensor_dev_attr_in6_min.dev_attr.attr, attr 1231 drivers/hwmon/w83792d.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 1232 drivers/hwmon/w83792d.c &sensor_dev_attr_in7_max.dev_attr.attr, attr 1233 drivers/hwmon/w83792d.c &sensor_dev_attr_in7_min.dev_attr.attr, attr 1234 drivers/hwmon/w83792d.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 1235 drivers/hwmon/w83792d.c &sensor_dev_attr_in8_max.dev_attr.attr, attr 1236 drivers/hwmon/w83792d.c &sensor_dev_attr_in8_min.dev_attr.attr, attr 1237 drivers/hwmon/w83792d.c &sensor_dev_attr_in0_alarm.dev_attr.attr, attr 1238 drivers/hwmon/w83792d.c &sensor_dev_attr_in1_alarm.dev_attr.attr, attr 1239 drivers/hwmon/w83792d.c &sensor_dev_attr_in2_alarm.dev_attr.attr, attr 1240 drivers/hwmon/w83792d.c &sensor_dev_attr_in3_alarm.dev_attr.attr, attr 1241 drivers/hwmon/w83792d.c &sensor_dev_attr_in4_alarm.dev_attr.attr, attr 1242 drivers/hwmon/w83792d.c &sensor_dev_attr_in5_alarm.dev_attr.attr, attr 1243 drivers/hwmon/w83792d.c &sensor_dev_attr_in6_alarm.dev_attr.attr, attr 1244 drivers/hwmon/w83792d.c &sensor_dev_attr_in7_alarm.dev_attr.attr, attr 1245 drivers/hwmon/w83792d.c &sensor_dev_attr_in8_alarm.dev_attr.attr, attr 1246 drivers/hwmon/w83792d.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1247 drivers/hwmon/w83792d.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 1248 drivers/hwmon/w83792d.c &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, attr 1249 drivers/hwmon/w83792d.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 1250 drivers/hwmon/w83792d.c &sensor_dev_attr_temp2_max.dev_attr.attr, attr 1251 drivers/hwmon/w83792d.c &sensor_dev_attr_temp2_max_hyst.dev_attr.attr, attr 1252 drivers/hwmon/w83792d.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 1253 drivers/hwmon/w83792d.c &sensor_dev_attr_temp3_max.dev_attr.attr, attr 1254 drivers/hwmon/w83792d.c &sensor_dev_attr_temp3_max_hyst.dev_attr.attr, attr 1255 drivers/hwmon/w83792d.c &sensor_dev_attr_temp1_alarm.dev_attr.attr, attr 1256 drivers/hwmon/w83792d.c &sensor_dev_attr_temp2_alarm.dev_attr.attr, attr 1257 drivers/hwmon/w83792d.c &sensor_dev_attr_temp3_alarm.dev_attr.attr, attr 1258 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm1.dev_attr.attr, attr 1259 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm1_mode.dev_attr.attr, attr 1260 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm1_enable.dev_attr.attr, attr 1261 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm2.dev_attr.attr, attr 1262 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm2_mode.dev_attr.attr, attr 1263 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm2_enable.dev_attr.attr, attr 1264 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm3.dev_attr.attr, attr 1265 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm3_mode.dev_attr.attr, attr 1266 drivers/hwmon/w83792d.c &sensor_dev_attr_pwm3_enable.dev_attr.attr, attr 1267 drivers/hwmon/w83792d.c &dev_attr_alarms.attr, attr 1268 drivers/hwmon/w83792d.c &dev_attr_intrusion0_alarm.attr, attr 1269 drivers/hwmon/w83792d.c &sensor_dev_attr_tolerance1.dev_attr.attr, attr 1270 drivers/hwmon/w83792d.c &sensor_dev_attr_thermal_cruise1.dev_attr.attr, attr 1271 drivers/hwmon/w83792d.c &sensor_dev_attr_tolerance2.dev_attr.attr, attr 1272 drivers/hwmon/w83792d.c &sensor_dev_attr_thermal_cruise2.dev_attr.attr, attr 1273 drivers/hwmon/w83792d.c &sensor_dev_attr_tolerance3.dev_attr.attr, attr 1274 drivers/hwmon/w83792d.c &sensor_dev_attr_thermal_cruise3.dev_attr.attr, attr 1275 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point1_fan1.dev_attr.attr, attr 1276 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point2_fan1.dev_attr.attr, attr 1277 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point3_fan1.dev_attr.attr, attr 1278 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point4_fan1.dev_attr.attr, attr 1279 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point1_fan2.dev_attr.attr, attr 1280 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point2_fan2.dev_attr.attr, attr 1281 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point3_fan2.dev_attr.attr, attr 1282 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point4_fan2.dev_attr.attr, attr 1283 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point1_fan3.dev_attr.attr, attr 1284 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point2_fan3.dev_attr.attr, attr 1285 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point3_fan3.dev_attr.attr, attr 1286 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_point4_fan3.dev_attr.attr, attr 1287 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level1_fan1.dev_attr.attr, attr 1288 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level2_fan1.dev_attr.attr, attr 1289 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level3_fan1.dev_attr.attr, attr 1290 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level1_fan2.dev_attr.attr, attr 1291 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level2_fan2.dev_attr.attr, attr 1292 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level3_fan2.dev_attr.attr, attr 1293 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level1_fan3.dev_attr.attr, attr 1294 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level2_fan3.dev_attr.attr, attr 1295 drivers/hwmon/w83792d.c &sensor_dev_attr_sf2_level3_fan3.dev_attr.attr, attr 1296 drivers/hwmon/w83792d.c &sensor_dev_attr_fan1_input.dev_attr.attr, attr 1297 drivers/hwmon/w83792d.c &sensor_dev_attr_fan1_min.dev_attr.attr, attr 1298 drivers/hwmon/w83792d.c &sensor_dev_attr_fan1_div.dev_attr.attr, attr 1299 drivers/hwmon/w83792d.c &sensor_dev_attr_fan1_alarm.dev_attr.attr, attr 1300 drivers/hwmon/w83792d.c &sensor_dev_attr_fan2_input.dev_attr.attr, attr 1301 drivers/hwmon/w83792d.c &sensor_dev_attr_fan2_min.dev_attr.attr, attr 1302 drivers/hwmon/w83792d.c &sensor_dev_attr_fan2_div.dev_attr.attr, attr 1303 drivers/hwmon/w83792d.c &sensor_dev_attr_fan2_alarm.dev_attr.attr, attr 1304 drivers/hwmon/w83792d.c &sensor_dev_attr_fan3_input.dev_attr.attr, attr 1305 drivers/hwmon/w83792d.c &sensor_dev_attr_fan3_min.dev_attr.attr, attr 1306 drivers/hwmon/w83792d.c &sensor_dev_attr_fan3_div.dev_attr.attr, attr 1307 drivers/hwmon/w83792d.c &sensor_dev_attr_fan3_alarm.dev_attr.attr, attr 314 drivers/hwmon/w83793.c vrm_show(struct device *dev, struct device_attribute *attr, char *buf) attr 321 drivers/hwmon/w83793.c show_vid(struct device *dev, struct device_attribute *attr, char *buf) attr 325 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 332 drivers/hwmon/w83793.c vrm_store(struct device *dev, struct device_attribute *attr, attr 353 drivers/hwmon/w83793.c show_alarm_beep(struct device *dev, struct device_attribute *attr, char *buf) attr 357 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 373 drivers/hwmon/w83793.c store_beep(struct device *dev, struct device_attribute *attr, attr 379 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 404 drivers/hwmon/w83793.c show_beep_enable(struct device *dev, struct device_attribute *attr, char *buf) attr 411 drivers/hwmon/w83793.c store_beep_enable(struct device *dev, struct device_attribute *attr, attr 439 drivers/hwmon/w83793.c struct device_attribute *attr, const char *buf, attr 465 drivers/hwmon/w83793.c show_fan(struct device *dev, struct device_attribute *attr, char *buf) attr 468 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 483 drivers/hwmon/w83793.c store_fan_min(struct device *dev, struct device_attribute *attr, attr 487 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 510 drivers/hwmon/w83793.c show_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 513 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 528 drivers/hwmon/w83793.c store_pwm(struct device *dev, struct device_attribute *attr, attr 534 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 564 drivers/hwmon/w83793.c show_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 567 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 581 drivers/hwmon/w83793.c store_temp(struct device *dev, struct device_attribute *attr, attr 585 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 623 drivers/hwmon/w83793.c show_temp_mode(struct device *dev, struct device_attribute *attr, char *buf) attr 627 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 646 drivers/hwmon/w83793.c store_temp_mode(struct device *dev, struct device_attribute *attr, attr 652 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 692 drivers/hwmon/w83793.c show_sf_setup(struct device *dev, struct device_attribute *attr, char *buf) attr 695 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 713 drivers/hwmon/w83793.c store_sf_setup(struct device *dev, struct device_attribute *attr, attr 717 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 789 drivers/hwmon/w83793.c show_sf_ctrl(struct device *dev, struct device_attribute *attr, char *buf) attr 792 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 813 drivers/hwmon/w83793.c store_sf_ctrl(struct device *dev, struct device_attribute *attr, attr 817 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 873 drivers/hwmon/w83793.c show_sf2_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 876 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 885 drivers/hwmon/w83793.c store_sf2_pwm(struct device *dev, struct device_attribute *attr, attr 891 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 913 drivers/hwmon/w83793.c show_sf2_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 916 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 926 drivers/hwmon/w83793.c store_sf2_temp(struct device *dev, struct device_attribute *attr, attr 932 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 955 drivers/hwmon/w83793.c show_in(struct device *dev, struct device_attribute *attr, char *buf) attr 958 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 974 drivers/hwmon/w83793.c store_in(struct device *dev, struct device_attribute *attr, attr 978 drivers/hwmon/w83793.c to_sensor_dev_attr_2(attr); attr 701 drivers/hwmon/w83795.c show_alarm_beep(struct device *dev, struct device_attribute *attr, char *buf) attr 705 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 720 drivers/hwmon/w83795.c store_beep(struct device *dev, struct device_attribute *attr, attr 726 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 750 drivers/hwmon/w83795.c struct device_attribute *attr, const char *buf, attr 775 drivers/hwmon/w83795.c show_fan(struct device *dev, struct device_attribute *attr, char *buf) attr 778 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 793 drivers/hwmon/w83795.c store_fan_min(struct device *dev, struct device_attribute *attr, attr 797 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 826 drivers/hwmon/w83795.c show_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 830 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 854 drivers/hwmon/w83795.c store_pwm(struct device *dev, struct device_attribute *attr, attr 860 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 887 drivers/hwmon/w83795.c show_pwm_enable(struct device *dev, struct device_attribute *attr, char *buf) attr 890 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 915 drivers/hwmon/w83795.c store_pwm_enable(struct device *dev, struct device_attribute *attr, attr 921 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 962 drivers/hwmon/w83795.c show_pwm_mode(struct device *dev, struct device_attribute *attr, char *buf) attr 965 drivers/hwmon/w83795.c int index = to_sensor_dev_attr_2(attr)->index; attr 998 drivers/hwmon/w83795.c show_temp_src(struct device *dev, struct device_attribute *attr, char *buf) attr 1001 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1019 drivers/hwmon/w83795.c store_temp_src(struct device *dev, struct device_attribute *attr, attr 1025 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1060 drivers/hwmon/w83795.c show_temp_pwm_enable(struct device *dev, struct device_attribute *attr, attr 1065 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1087 drivers/hwmon/w83795.c store_temp_pwm_enable(struct device *dev, struct device_attribute *attr, attr 1093 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1126 drivers/hwmon/w83795.c show_fanin(struct device *dev, struct device_attribute *attr, char *buf) attr 1130 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1148 drivers/hwmon/w83795.c store_fanin(struct device *dev, struct device_attribute *attr, attr 1154 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1183 drivers/hwmon/w83795.c show_temp_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 1187 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1196 drivers/hwmon/w83795.c store_temp_pwm(struct device *dev, struct device_attribute *attr, attr 1202 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1244 drivers/hwmon/w83795.c show_sf4_pwm(struct device *dev, struct device_attribute *attr, char *buf) attr 1248 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1256 drivers/hwmon/w83795.c store_sf4_pwm(struct device *dev, struct device_attribute *attr, attr 1262 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1279 drivers/hwmon/w83795.c show_sf4_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 1283 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1292 drivers/hwmon/w83795.c store_sf4_temp(struct device *dev, struct device_attribute *attr, attr 1298 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1317 drivers/hwmon/w83795.c show_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 1320 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1332 drivers/hwmon/w83795.c store_temp(struct device *dev, struct device_attribute *attr, attr 1336 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1355 drivers/hwmon/w83795.c show_dts_mode(struct device *dev, struct device_attribute *attr, char *buf) attr 1369 drivers/hwmon/w83795.c show_dts(struct device *dev, struct device_attribute *attr, char *buf) attr 1372 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1382 drivers/hwmon/w83795.c show_dts_ext(struct device *dev, struct device_attribute *attr, char *buf) attr 1385 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1394 drivers/hwmon/w83795.c store_dts_ext(struct device *dev, struct device_attribute *attr, attr 1398 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1416 drivers/hwmon/w83795.c show_temp_mode(struct device *dev, struct device_attribute *attr, char *buf) attr 1420 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1434 drivers/hwmon/w83795.c store_temp_mode(struct device *dev, struct device_attribute *attr, attr 1440 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1475 drivers/hwmon/w83795.c show_in(struct device *dev, struct device_attribute *attr, char *buf) attr 1478 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1509 drivers/hwmon/w83795.c store_in(struct device *dev, struct device_attribute *attr, attr 1513 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1550 drivers/hwmon/w83795.c show_sf_setup(struct device *dev, struct device_attribute *attr, char *buf) attr 1553 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 1569 drivers/hwmon/w83795.c store_sf_setup(struct device *dev, struct device_attribute *attr, attr 1573 drivers/hwmon/w83795.c to_sensor_dev_attr_2(attr); attr 2077 drivers/hwmon/w83795.c const struct device_attribute *attr) attr 2079 drivers/hwmon/w83795.c device_remove_file(dev, attr); attr 2102 drivers/hwmon/w83795.c &w83795_in[i][2].dev_attr.attr, attr 2105 drivers/hwmon/w83795.c &w83795_in[i][3].dev_attr.attr, attr 116 drivers/hwmon/w83l785ts.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 118 drivers/hwmon/w83l785ts.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); attr 224 drivers/hwmon/w83l786ng.c show_##reg(struct device *dev, struct device_attribute *attr, \ attr 227 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; \ attr 238 drivers/hwmon/w83l786ng.c store_in_##reg(struct device *dev, struct device_attribute *attr, \ attr 241 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; \ attr 278 drivers/hwmon/w83l786ng.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 281 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; \ attr 291 drivers/hwmon/w83l786ng.c store_fan_min(struct device *dev, struct device_attribute *attr, attr 294 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 314 drivers/hwmon/w83l786ng.c show_fan_div(struct device *dev, struct device_attribute *attr, attr 317 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 329 drivers/hwmon/w83l786ng.c store_fan_div(struct device *dev, struct device_attribute *attr, attr 332 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 406 drivers/hwmon/w83l786ng.c show_temp(struct device *dev, struct device_attribute *attr, char *buf) attr 409 drivers/hwmon/w83l786ng.c to_sensor_dev_attr_2(attr); attr 417 drivers/hwmon/w83l786ng.c store_temp(struct device *dev, struct device_attribute *attr, attr 421 drivers/hwmon/w83l786ng.c to_sensor_dev_attr_2(attr); attr 462 drivers/hwmon/w83l786ng.c static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ attr 466 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; \ attr 475 drivers/hwmon/w83l786ng.c store_pwm_mode(struct device *dev, struct device_attribute *attr, attr 478 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 503 drivers/hwmon/w83l786ng.c store_pwm(struct device *dev, struct device_attribute *attr, attr 506 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 527 drivers/hwmon/w83l786ng.c store_pwm_enable(struct device *dev, struct device_attribute *attr, attr 530 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 575 drivers/hwmon/w83l786ng.c show_tolerance(struct device *dev, struct device_attribute *attr, char *buf) attr 577 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 583 drivers/hwmon/w83l786ng.c store_tolerance(struct device *dev, struct device_attribute *attr, attr 586 drivers/hwmon/w83l786ng.c int nr = to_sensor_dev_attr(attr)->index; attr 621 drivers/hwmon/w83l786ng.c &sda_in_input[X].dev_attr.attr, \ attr 622 drivers/hwmon/w83l786ng.c &sda_in_min[X].dev_attr.attr, \ attr 623 drivers/hwmon/w83l786ng.c &sda_in_max[X].dev_attr.attr attr 626 drivers/hwmon/w83l786ng.c &sda_fan_input[X].dev_attr.attr, \ attr 627 drivers/hwmon/w83l786ng.c &sda_fan_min[X].dev_attr.attr, \ attr 628 drivers/hwmon/w83l786ng.c &sda_fan_div[X].dev_attr.attr attr 631 drivers/hwmon/w83l786ng.c &sda_temp_input[X].dev_attr.attr, \ attr 632 drivers/hwmon/w83l786ng.c &sda_temp_max[X].dev_attr.attr, \ attr 633 drivers/hwmon/w83l786ng.c &sda_temp_max_hyst[X].dev_attr.attr attr 636 drivers/hwmon/w83l786ng.c &sda_pwm[X].dev_attr.attr, \ attr 637 drivers/hwmon/w83l786ng.c &sda_pwm_mode[X].dev_attr.attr, \ attr 638 drivers/hwmon/w83l786ng.c &sda_pwm_enable[X].dev_attr.attr attr 641 drivers/hwmon/w83l786ng.c &sda_tolerance[X].dev_attr.attr attr 31 drivers/hwmon/wm831x-hwmon.c struct device_attribute *attr, char *buf) attr 34 drivers/hwmon/wm831x-hwmon.c int channel = to_sensor_dev_attr(attr)->index; attr 45 drivers/hwmon/wm831x-hwmon.c struct device_attribute *attr, char *buf) attr 48 drivers/hwmon/wm831x-hwmon.c int channel = to_sensor_dev_attr(attr)->index; attr 63 drivers/hwmon/wm831x-hwmon.c struct device_attribute *attr, char *buf) attr 65 drivers/hwmon/wm831x-hwmon.c int channel = to_sensor_dev_attr(attr)->index; attr 104 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 105 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 106 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 107 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in3_input.dev_attr.attr, attr 109 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in4_input.dev_attr.attr, attr 110 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in4_label.dev_attr.attr, attr 111 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in5_input.dev_attr.attr, attr 112 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in5_label.dev_attr.attr, attr 113 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in6_input.dev_attr.attr, attr 114 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in6_label.dev_attr.attr, attr 115 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in7_input.dev_attr.attr, attr 116 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in7_label.dev_attr.attr, attr 117 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in8_input.dev_attr.attr, attr 118 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_in8_label.dev_attr.attr, attr 120 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 121 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 122 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 123 drivers/hwmon/wm831x-hwmon.c &sensor_dev_attr_temp2_label.dev_attr.attr, attr 26 drivers/hwmon/wm8350-hwmon.c struct device_attribute *attr, char *buf) attr 29 drivers/hwmon/wm8350-hwmon.c int channel = to_sensor_dev_attr(attr)->index; attr 39 drivers/hwmon/wm8350-hwmon.c struct device_attribute *attr, char *buf) attr 41 drivers/hwmon/wm8350-hwmon.c int channel = to_sensor_dev_attr(attr)->index; attr 57 drivers/hwmon/wm8350-hwmon.c &sensor_dev_attr_in0_input.dev_attr.attr, attr 58 drivers/hwmon/wm8350-hwmon.c &sensor_dev_attr_in0_label.dev_attr.attr, attr 59 drivers/hwmon/wm8350-hwmon.c &sensor_dev_attr_in1_input.dev_attr.attr, attr 60 drivers/hwmon/wm8350-hwmon.c &sensor_dev_attr_in1_label.dev_attr.attr, attr 61 drivers/hwmon/wm8350-hwmon.c &sensor_dev_attr_in2_input.dev_attr.attr, attr 62 drivers/hwmon/wm8350-hwmon.c &sensor_dev_attr_in2_label.dev_attr.attr, attr 319 drivers/hwmon/xgene-hwmon.c struct device_attribute *attr, attr 336 drivers/hwmon/xgene-hwmon.c struct device_attribute *attr, attr 352 drivers/hwmon/xgene-hwmon.c struct device_attribute *attr, attr 359 drivers/hwmon/xgene-hwmon.c struct device_attribute *attr, attr 366 drivers/hwmon/xgene-hwmon.c struct device_attribute *attr, attr 381 drivers/hwmon/xgene-hwmon.c struct device_attribute *attr, attr 404 drivers/hwmon/xgene-hwmon.c &dev_attr_temp1_label.attr, attr 405 drivers/hwmon/xgene-hwmon.c &dev_attr_temp1_input.attr, attr 406 drivers/hwmon/xgene-hwmon.c &dev_attr_temp1_critical_alarm.attr, attr 407 drivers/hwmon/xgene-hwmon.c &dev_attr_power1_label.attr, attr 408 drivers/hwmon/xgene-hwmon.c &dev_attr_power1_input.attr, attr 409 drivers/hwmon/xgene-hwmon.c &dev_attr_power2_label.attr, attr 410 drivers/hwmon/xgene-hwmon.c &dev_attr_power2_input.attr, attr 380 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_devid.attr, attr 381 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_control.attr, attr 382 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_status.attr, attr 383 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_mode.attr, attr 384 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_axictrl.attr, attr 385 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_irqen.attr, attr 386 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_sladdr.attr, attr 387 drivers/hwtracing/coresight/coresight-catu.c &dev_attr_inaddr.attr, attr 669 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_rdp.attr, attr 670 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_sts.attr, attr 671 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_rrp.attr, attr 672 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_rwp.attr, attr 673 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_trg.attr, attr 674 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_ctl.attr, attr 675 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_ffsr.attr, attr 676 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_ffcr.attr, attr 681 drivers/hwtracing/coresight/coresight-etb10.c struct device_attribute *attr, char *buf) attr 690 drivers/hwtracing/coresight/coresight-etb10.c struct device_attribute *attr, attr 707 drivers/hwtracing/coresight/coresight-etb10.c &dev_attr_trigger_cntr.attr, attr 39 drivers/hwtracing/coresight/coresight-etm-perf.c &format_attr_cycacc.attr, attr 40 drivers/hwtracing/coresight/coresight-etm-perf.c &format_attr_contextid.attr, attr 41 drivers/hwtracing/coresight/coresight-etm-perf.c &format_attr_timestamp.attr, attr 42 drivers/hwtracing/coresight/coresight-etm-perf.c &format_attr_retstack.attr, attr 43 drivers/hwtracing/coresight/coresight-etm-perf.c &format_attr_sinkid.attr, attr 109 drivers/hwtracing/coresight/coresight-etm-perf.c if (event->attr.type != etm_pmu.type) { attr 222 drivers/hwtracing/coresight/coresight-etm-perf.c if (event->attr.config2) { attr 223 drivers/hwtracing/coresight/coresight-etm-perf.c id = (u32)event->attr.config2; attr 516 drivers/hwtracing/coresight/coresight-etm-perf.c ea = container_of(dattr, struct dev_ext_attribute, attr); attr 547 drivers/hwtracing/coresight/coresight-etm-perf.c sysfs_attr_init(&ea->attr.attr); attr 548 drivers/hwtracing/coresight/coresight-etm-perf.c ea->attr.attr.name = devm_kstrdup(dev, name, GFP_KERNEL); attr 549 drivers/hwtracing/coresight/coresight-etm-perf.c if (!ea->attr.attr.name) attr 552 drivers/hwtracing/coresight/coresight-etm-perf.c ea->attr.attr.mode = 0444; attr 553 drivers/hwtracing/coresight/coresight-etm-perf.c ea->attr.show = etm_perf_sink_name_show; attr 557 drivers/hwtracing/coresight/coresight-etm-perf.c &ea->attr.attr, "sinks"); attr 578 drivers/hwtracing/coresight/coresight-etm-perf.c &ea->attr.attr, "sinks"); attr 14 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 25 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 35 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 46 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 66 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 96 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 107 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 181 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 192 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 211 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 222 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 241 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 252 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 271 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 282 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 310 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 332 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 362 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 391 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 431 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 453 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 485 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 507 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 539 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 553 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 574 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 585 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 612 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 626 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 647 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 661 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 682 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 696 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 717 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 742 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 763 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 774 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 792 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 803 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 821 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 832 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 850 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 861 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 879 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 890 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 908 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 919 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 937 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 962 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 984 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 995 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 1023 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 1044 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 1077 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 1095 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 1120 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 1131 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 1149 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 1160 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 1178 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 1190 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, char *buf) attr 1201 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct device_attribute *attr, attr 1218 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_nr_addr_cmp.attr, attr 1219 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_nr_cntr.attr, attr 1220 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_nr_ctxid_cmp.attr, attr 1221 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmsr.attr, attr 1222 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_reset.attr, attr 1223 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_mode.attr, attr 1224 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_trigger_event.attr, attr 1225 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_enable_event.attr, attr 1226 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_fifofull_level.attr, attr 1227 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_addr_idx.attr, attr 1228 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_addr_single.attr, attr 1229 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_addr_range.attr, attr 1230 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_addr_start.attr, attr 1231 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_addr_stop.attr, attr 1232 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_addr_acctype.attr, attr 1233 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_cntr_idx.attr, attr 1234 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_cntr_rld_val.attr, attr 1235 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_cntr_event.attr, attr 1236 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_cntr_rld_event.attr, attr 1237 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_cntr_val.attr, attr 1238 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_seq_12_event.attr, attr 1239 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_seq_21_event.attr, attr 1240 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_seq_23_event.attr, attr 1241 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_seq_31_event.attr, attr 1242 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_seq_32_event.attr, attr 1243 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_seq_13_event.attr, attr 1244 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_seq_curr_state.attr, attr 1245 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_ctxid_idx.attr, attr 1246 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_ctxid_pid.attr, attr 1247 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_ctxid_mask.attr, attr 1248 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_sync_freq.attr, attr 1249 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_timestamp_event.attr, attr 1250 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_traceid.attr, attr 1251 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_cpu.attr, attr 1270 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmccr.attr, attr 1271 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmccer.attr, attr 1272 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmscr.attr, attr 1273 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmidr.attr, attr 1274 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmcr.attr, attr 1275 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmtraceidr.attr, attr 1276 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmteevr.attr, attr 1277 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmtssvr.attr, attr 1278 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmtecr1.attr, attr 1279 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c &dev_attr_etmtecr2.attr, attr 312 drivers/hwtracing/coresight/coresight-etm3x.c struct perf_event_attr *attr = &event->attr; attr 314 drivers/hwtracing/coresight/coresight-etm3x.c if (!attr) attr 320 drivers/hwtracing/coresight/coresight-etm3x.c if (attr->exclude_kernel) attr 323 drivers/hwtracing/coresight/coresight-etm3x.c if (attr->exclude_user) attr 340 drivers/hwtracing/coresight/coresight-etm3x.c if (attr->config & ~ETM3X_SUPPORTED_OPTIONS) attr 343 drivers/hwtracing/coresight/coresight-etm3x.c config->ctrl = attr->config; attr 57 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 69 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 81 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 93 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 105 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 117 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 129 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 141 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 153 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 165 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 275 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 287 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 439 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 451 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 474 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 486 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 523 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 535 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 574 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 586 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 604 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 616 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 634 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 646 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 667 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 679 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 707 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 719 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 739 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 751 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 773 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 786 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 808 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 820 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 844 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 865 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 890 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 911 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 938 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 967 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1013 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1036 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1070 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1093 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1127 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1147 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1193 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1210 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1237 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1249 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1273 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1285 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1303 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1319 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1340 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1352 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1370 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1382 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1406 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1422 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1444 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1460 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1482 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1498 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1518 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1530 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1555 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1571 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1595 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1607 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1631 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1654 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1693 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1715 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1818 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1830 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1854 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1866 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 1890 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, char *buf) attr 1904 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, attr 2000 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct device_attribute *attr, char *buf) attr 2012 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_nr_pe_cmp.attr, attr 2013 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_nr_addr_cmp.attr, attr 2014 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_nr_cntr.attr, attr 2015 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_nr_ext_inp.attr, attr 2016 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_numcidc.attr, attr 2017 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_numvmidc.attr, attr 2018 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_nrseqstate.attr, attr 2019 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_nr_resource.attr, attr 2020 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_nr_ss_cmp.attr, attr 2021 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_reset.attr, attr 2022 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_mode.attr, attr 2023 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_pe.attr, attr 2024 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_event.attr, attr 2025 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_event_instren.attr, attr 2026 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_event_ts.attr, attr 2027 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_syncfreq.attr, attr 2028 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_cyc_threshold.attr, attr 2029 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_bb_ctrl.attr, attr 2030 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_event_vinst.attr, attr 2031 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_s_exlevel_vinst.attr, attr 2032 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_ns_exlevel_vinst.attr, attr 2033 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_idx.attr, attr 2034 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_instdatatype.attr, attr 2035 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_single.attr, attr 2036 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_range.attr, attr 2037 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_start.attr, attr 2038 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_stop.attr, attr 2039 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_ctxtype.attr, attr 2040 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_addr_context.attr, attr 2041 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_seq_idx.attr, attr 2042 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_seq_state.attr, attr 2043 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_seq_event.attr, attr 2044 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_seq_reset_event.attr, attr 2045 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_cntr_idx.attr, attr 2046 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_cntrldvr.attr, attr 2047 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_cntr_val.attr, attr 2048 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_cntr_ctrl.attr, attr 2049 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_res_idx.attr, attr 2050 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_res_ctrl.attr, attr 2051 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_ctxid_idx.attr, attr 2052 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_ctxid_pid.attr, attr 2053 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_ctxid_masks.attr, attr 2054 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_vmid_idx.attr, attr 2055 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_vmid_val.attr, attr 2056 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_vmid_masks.attr, attr 2057 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_cpu.attr, attr 2109 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcoslsr.attr, attr 2110 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcpdcr.attr, attr 2111 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcpdsr.attr, attr 2112 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trclsr.attr, attr 2113 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcconfig.attr, attr 2114 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trctraceid.attr, attr 2115 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcauthstatus.attr, attr 2116 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcdevid.attr, attr 2117 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcdevtype.attr, attr 2118 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcpidr0.attr, attr 2119 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcpidr1.attr, attr 2120 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcpidr2.attr, attr 2121 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcpidr3.attr, attr 2140 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr0.attr, attr 2141 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr1.attr, attr 2142 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr2.attr, attr 2143 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr3.attr, attr 2144 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr4.attr, attr 2145 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr5.attr, attr 2147 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr8.attr, attr 2148 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr9.attr, attr 2149 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr10.attr, attr 2150 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr11.attr, attr 2151 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr12.attr, attr 2152 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c &dev_attr_trcidr13.attr, attr 306 drivers/hwtracing/coresight/coresight-etm4x.c struct perf_event_attr *attr = &event->attr; attr 308 drivers/hwtracing/coresight/coresight-etm4x.c if (!attr) { attr 316 drivers/hwtracing/coresight/coresight-etm4x.c if (attr->exclude_kernel) attr 319 drivers/hwtracing/coresight/coresight-etm4x.c if (attr->exclude_user) attr 331 drivers/hwtracing/coresight/coresight-etm4x.c if (attr->config & BIT(ETM_OPT_CYCACC)) { attr 336 drivers/hwtracing/coresight/coresight-etm4x.c if (attr->config & BIT(ETM_OPT_TS)) { attr 355 drivers/hwtracing/coresight/coresight-etm4x.c if (attr->config & BIT(ETM_OPT_CTXTID)) attr 360 drivers/hwtracing/coresight/coresight-etm4x.c if ((attr->config & BIT(ETM_OPT_RETSTK)) && drvdata->retstack) attr 147 drivers/hwtracing/coresight/coresight-funnel.c struct device_attribute *attr, char *buf) attr 156 drivers/hwtracing/coresight/coresight-funnel.c struct device_attribute *attr, attr 184 drivers/hwtracing/coresight/coresight-funnel.c struct device_attribute *attr, char *buf) attr 200 drivers/hwtracing/coresight/coresight-funnel.c &dev_attr_funnel_ctrl.attr, attr 201 drivers/hwtracing/coresight/coresight-funnel.c &dev_attr_priority.attr, attr 45 drivers/hwtracing/coresight/coresight-priv.h struct device_attribute *attr, char *buf) \ attr 185 drivers/hwtracing/coresight/coresight-replicator.c &dev_attr_idfilter0.attr, attr 186 drivers/hwtracing/coresight/coresight-replicator.c &dev_attr_idfilter1.attr, attr 460 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, char *buf) attr 469 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, attr 489 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, char *buf) attr 498 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, attr 516 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, char *buf) attr 533 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, attr 563 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, char *buf) attr 580 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, attr 606 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, char *buf) attr 616 drivers/hwtracing/coresight/coresight-stm.c struct device_attribute *attr, attr 650 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_hwevent_enable.attr, attr 651 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_hwevent_select.attr, attr 652 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_port_enable.attr, attr 653 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_port_select.attr, attr 654 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_traceid.attr, attr 659 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_tcsr.attr, attr 660 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_tsfreqr.attr, attr 661 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_syncr.attr, attr 662 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_sper.attr, attr 663 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_spter.attr, attr 664 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_privmaskr.attr, attr 665 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_spscr.attr, attr 666 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_spmscr.attr, attr 667 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_spfeat1r.attr, attr 668 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_spfeat2r.attr, attr 669 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_spfeat3r.attr, attr 670 drivers/hwtracing/coresight/coresight-stm.c &dev_attr_devid.attr, attr 274 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_rsz.attr, attr 275 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_sts.attr, attr 276 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_rrp.attr, attr 277 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_rwp.attr, attr 278 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_trg.attr, attr 279 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_ctl.attr, attr 280 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_ffsr.attr, attr 281 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_ffcr.attr, attr 282 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_mode.attr, attr 283 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_pscr.attr, attr 284 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_devid.attr, attr 285 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_dba.attr, attr 286 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_axictl.attr, attr 287 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_authstatus.attr, attr 292 drivers/hwtracing/coresight/coresight-tmc.c struct device_attribute *attr, char *buf) attr 301 drivers/hwtracing/coresight/coresight-tmc.c struct device_attribute *attr, attr 318 drivers/hwtracing/coresight/coresight-tmc.c struct device_attribute *attr, char *buf) attr 326 drivers/hwtracing/coresight/coresight-tmc.c struct device_attribute *attr, attr 350 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_trigger_cntr.attr, attr 351 drivers/hwtracing/coresight/coresight-tmc.c &dev_attr_buffer_size.attr, attr 863 drivers/hwtracing/coresight/coresight.c struct device_attribute *attr, char *buf) attr 871 drivers/hwtracing/coresight/coresight.c struct device_attribute *attr, attr 893 drivers/hwtracing/coresight/coresight.c struct device_attribute *attr, char *buf) attr 901 drivers/hwtracing/coresight/coresight.c struct device_attribute *attr, attr 925 drivers/hwtracing/coresight/coresight.c &dev_attr_enable_sink.attr, attr 931 drivers/hwtracing/coresight/coresight.c &dev_attr_enable_source.attr, attr 205 drivers/hwtracing/intel_th/core.c static ssize_t port_show(struct device *dev, struct device_attribute *attr, attr 280 drivers/hwtracing/intel_th/core.c static ssize_t active_show(struct device *dev, struct device_attribute *attr, attr 288 drivers/hwtracing/intel_th/core.c static ssize_t active_store(struct device *dev, struct device_attribute *attr, attr 312 drivers/hwtracing/intel_th/core.c &dev_attr_port.attr, attr 313 drivers/hwtracing/intel_th/core.c &dev_attr_active.attr, attr 118 drivers/hwtracing/intel_th/gth.c struct device_attribute attr; attr 143 drivers/hwtracing/intel_th/gth.c struct device_attribute *attr, attr 147 drivers/hwtracing/intel_th/gth.c container_of(attr, struct master_attribute, attr); attr 165 drivers/hwtracing/intel_th/gth.c struct device_attribute *attr, attr 169 drivers/hwtracing/intel_th/gth.c container_of(attr, struct master_attribute, attr); attr 219 drivers/hwtracing/intel_th/gth.c struct device_attribute attr; attr 324 drivers/hwtracing/intel_th/gth.c struct device_attribute *attr, attr 328 drivers/hwtracing/intel_th/gth.c container_of(attr, struct output_attribute, attr); attr 345 drivers/hwtracing/intel_th/gth.c struct device_attribute *attr, attr 349 drivers/hwtracing/intel_th/gth.c container_of(attr, struct output_attribute, attr); attr 391 drivers/hwtracing/intel_th/gth.c master_attrs[i].attr.attr.name = name; attr 392 drivers/hwtracing/intel_th/gth.c master_attrs[i].attr.attr.mode = S_IRUGO | S_IWUSR; attr 393 drivers/hwtracing/intel_th/gth.c master_attrs[i].attr.show = master_attr_show; attr 394 drivers/hwtracing/intel_th/gth.c master_attrs[i].attr.store = master_attr_store; attr 396 drivers/hwtracing/intel_th/gth.c sysfs_attr_init(&master_attrs[i].attr.attr); attr 397 drivers/hwtracing/intel_th/gth.c attrs[i] = &master_attrs[i].attr.attr; attr 437 drivers/hwtracing/intel_th/gth.c out_attrs[idx].attr.attr.name = name; attr 440 drivers/hwtracing/intel_th/gth.c out_attrs[idx].attr.attr.mode |= S_IRUGO; attr 441 drivers/hwtracing/intel_th/gth.c out_attrs[idx].attr.show = output_attr_show; attr 445 drivers/hwtracing/intel_th/gth.c out_attrs[idx].attr.attr.mode |= S_IWUSR; attr 446 drivers/hwtracing/intel_th/gth.c out_attrs[idx].attr.store = output_attr_store; attr 449 drivers/hwtracing/intel_th/gth.c sysfs_attr_init(&out_attrs[idx].attr.attr); attr 450 drivers/hwtracing/intel_th/gth.c attrs[idx] = &out_attrs[idx].attr.attr; attr 1784 drivers/hwtracing/intel_th/msu.c wrap_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1792 drivers/hwtracing/intel_th/msu.c wrap_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 1824 drivers/hwtracing/intel_th/msu.c mode_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1840 drivers/hwtracing/intel_th/msu.c mode_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 1922 drivers/hwtracing/intel_th/msu.c nr_pages_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1948 drivers/hwtracing/intel_th/msu.c nr_pages_store(struct device *dev, struct device_attribute *attr, attr 2020 drivers/hwtracing/intel_th/msu.c win_switch_store(struct device *dev, struct device_attribute *attr, attr 2051 drivers/hwtracing/intel_th/msu.c &dev_attr_wrap.attr, attr 2052 drivers/hwtracing/intel_th/msu.c &dev_attr_mode.attr, attr 2053 drivers/hwtracing/intel_th/msu.c &dev_attr_nr_pages.attr, attr 2054 drivers/hwtracing/intel_th/msu.c &dev_attr_win_switch.attr, attr 49 drivers/hwtracing/intel_th/pti.c static ssize_t mode_show(struct device *dev, struct device_attribute *attr, attr 57 drivers/hwtracing/intel_th/pti.c static ssize_t mode_store(struct device *dev, struct device_attribute *attr, attr 80 drivers/hwtracing/intel_th/pti.c freerunning_clock_show(struct device *dev, struct device_attribute *attr, attr 89 drivers/hwtracing/intel_th/pti.c freerunning_clock_store(struct device *dev, struct device_attribute *attr, attr 108 drivers/hwtracing/intel_th/pti.c clock_divider_show(struct device *dev, struct device_attribute *attr, attr 117 drivers/hwtracing/intel_th/pti.c clock_divider_store(struct device *dev, struct device_attribute *attr, attr 139 drivers/hwtracing/intel_th/pti.c &dev_attr_mode.attr, attr 140 drivers/hwtracing/intel_th/pti.c &dev_attr_freerunning_clock.attr, attr 141 drivers/hwtracing/intel_th/pti.c &dev_attr_clock_divider.attr, attr 248 drivers/hwtracing/intel_th/pti.c static ssize_t lpp_dest_show(struct device *dev, struct device_attribute *attr, attr 271 drivers/hwtracing/intel_th/pti.c static ssize_t lpp_dest_store(struct device *dev, struct device_attribute *attr, attr 291 drivers/hwtracing/intel_th/pti.c &dev_attr_mode.attr, attr 292 drivers/hwtracing/intel_th/pti.c &dev_attr_freerunning_clock.attr, attr 293 drivers/hwtracing/intel_th/pti.c &dev_attr_clock_divider.attr, attr 294 drivers/hwtracing/intel_th/pti.c &dev_attr_lpp_dest.attr, attr 37 drivers/hwtracing/stm/core.c struct device_attribute *attr, attr 51 drivers/hwtracing/stm/core.c struct device_attribute *attr, attr 65 drivers/hwtracing/stm/core.c struct device_attribute *attr, attr 79 drivers/hwtracing/stm/core.c &dev_attr_masters.attr, attr 80 drivers/hwtracing/stm/core.c &dev_attr_channels.attr, attr 81 drivers/hwtracing/stm/core.c &dev_attr_hw_override.attr, attr 1160 drivers/hwtracing/stm/core.c struct device_attribute *attr, attr 1177 drivers/hwtracing/stm/core.c struct device_attribute *attr, attr 1205 drivers/hwtracing/stm/core.c &dev_attr_stm_source_link.attr, attr 469 drivers/i2c/i2c-core-base.c show_name(struct device *dev, struct device_attribute *attr, char *buf) attr 477 drivers/i2c/i2c-core-base.c show_modalias(struct device *dev, struct device_attribute *attr, char *buf) attr 495 drivers/i2c/i2c-core-base.c &dev_attr_name.attr, attr 497 drivers/i2c/i2c-core-base.c &dev_attr_modalias.attr, attr 1059 drivers/i2c/i2c-core-base.c i2c_sysfs_new_device(struct device *dev, struct device_attribute *attr, attr 1127 drivers/i2c/i2c-core-base.c i2c_sysfs_delete_device(struct device *dev, struct device_attribute *attr, attr 1174 drivers/i2c/i2c-core-base.c &dev_attr_name.attr, attr 1175 drivers/i2c/i2c-core-base.c &dev_attr_new_device.attr, attr 1176 drivers/i2c/i2c-core-base.c &dev_attr_delete_device.attr, attr 98 drivers/i2c/i2c-dev.c struct device_attribute *attr, char *buf) attr 109 drivers/i2c/i2c-dev.c &dev_attr_name.attr, attr 94 drivers/i2c/i2c-slave-eeprom.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) attr 109 drivers/i2c/i2c-slave-eeprom.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) attr 142 drivers/i2c/i2c-slave-eeprom.c eeprom->bin.attr.name = "slave-eeprom"; attr 143 drivers/i2c/i2c-slave-eeprom.c eeprom->bin.attr.mode = S_IRUSR | S_IWUSR; attr 163 drivers/i2c/muxes/i2c-demux-pinctrl.c struct device_attribute *attr, attr 179 drivers/i2c/muxes/i2c-demux-pinctrl.c struct device_attribute *attr, attr 188 drivers/i2c/muxes/i2c-demux-pinctrl.c struct device_attribute *attr, attr 279 drivers/i2c/muxes/i2c-mux-pca954x.c struct device_attribute *attr, attr 290 drivers/i2c/muxes/i2c-mux-pca954x.c struct device_attribute *attr, attr 245 drivers/i3c/master.c &dev_attr_bcr.attr, attr 246 drivers/i3c/master.c &dev_attr_dcr.attr, attr 247 drivers/i3c/master.c &dev_attr_pid.attr, attr 248 drivers/i3c/master.c &dev_attr_dynamic_address.attr, attr 249 drivers/i3c/master.c &dev_attr_hdrcap.attr, attr 499 drivers/i3c/master.c &dev_attr_mode.attr, attr 500 drivers/i3c/master.c &dev_attr_current_master.attr, attr 501 drivers/i3c/master.c &dev_attr_i3c_scl_frequency.attr, attr 502 drivers/i3c/master.c &dev_attr_i2c_scl_frequency.attr, attr 503 drivers/i3c/master.c &dev_attr_bcr.attr, attr 504 drivers/i3c/master.c &dev_attr_dcr.attr, attr 505 drivers/i3c/master.c &dev_attr_pid.attr, attr 506 drivers/i3c/master.c &dev_attr_dynamic_address.attr, attr 507 drivers/i3c/master.c &dev_attr_hdrcap.attr, attr 92 drivers/ide/ide-park.c ssize_t ide_park_show(struct device *dev, struct device_attribute *attr, attr 115 drivers/ide/ide-park.c ssize_t ide_park_store(struct device *dev, struct device_attribute *attr, attr 23 drivers/ide/ide-sysfs.c static ssize_t media_show(struct device *dev, struct device_attribute *attr, attr 31 drivers/ide/ide-sysfs.c static ssize_t drivename_show(struct device *dev, struct device_attribute *attr, attr 39 drivers/ide/ide-sysfs.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 47 drivers/ide/ide-sysfs.c static ssize_t model_show(struct device *dev, struct device_attribute *attr, attr 55 drivers/ide/ide-sysfs.c static ssize_t firmware_show(struct device *dev, struct device_attribute *attr, attr 63 drivers/ide/ide-sysfs.c static ssize_t serial_show(struct device *dev, struct device_attribute *attr, attr 74 drivers/ide/ide-sysfs.c &dev_attr_media.attr, attr 75 drivers/ide/ide-sysfs.c &dev_attr_drivename.attr, attr 76 drivers/ide/ide-sysfs.c &dev_attr_modalias.attr, attr 77 drivers/ide/ide-sysfs.c &dev_attr_model.attr, attr 78 drivers/ide/ide-sysfs.c &dev_attr_firmware.attr, attr 79 drivers/ide/ide-sysfs.c &dev_attr_serial.attr, attr 80 drivers/ide/ide-sysfs.c &dev_attr_unload_heads.attr, attr 94 drivers/ide/ide-sysfs.c struct device_attribute *attr, attr 110 drivers/ide/ide-sysfs.c struct device_attribute *attr, attr 196 drivers/iio/accel/adxl345_core.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 727 drivers/iio/accel/adxl372.c struct device_attribute *attr, attr 745 drivers/iio/accel/adxl372.c struct device_attribute *attr, attr 755 drivers/iio/accel/adxl372.c struct device_attribute *attr, attr 773 drivers/iio/accel/adxl372.c &iio_const_attr_hwfifo_watermark_min.dev_attr.attr, attr 774 drivers/iio/accel/adxl372.c &iio_const_attr_hwfifo_watermark_max.dev_attr.attr, attr 775 drivers/iio/accel/adxl372.c &iio_dev_attr_hwfifo_watermark.dev_attr.attr, attr 776 drivers/iio/accel/adxl372.c &iio_dev_attr_hwfifo_enabled.dev_attr.attr, attr 896 drivers/iio/accel/adxl372.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 897 drivers/iio/accel/adxl372.c &iio_dev_attr_in_accel_filter_low_pass_3db_frequency_available.dev_attr.attr, attr 428 drivers/iio/accel/bma180.c struct device_attribute *attr, char *buf) attr 437 drivers/iio/accel/bma180.c struct device_attribute *attr, char *buf) attr 453 drivers/iio/accel/bma180.c dev_attr.attr, attr 454 drivers/iio/accel/bma180.c &iio_dev_attr_in_accel_scale_available.dev_attr.attr, attr 61 drivers/iio/accel/bma220_spi.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 763 drivers/iio/accel/bmc150-accel-core.c struct device_attribute *attr, attr 778 drivers/iio/accel/bmc150-accel-core.c struct device_attribute *attr, attr 815 drivers/iio/accel/bmc150-accel-core.c &iio_const_attr_hwfifo_watermark_min.dev_attr.attr, attr 816 drivers/iio/accel/bmc150-accel-core.c &iio_const_attr_hwfifo_watermark_max.dev_attr.attr, attr 817 drivers/iio/accel/bmc150-accel-core.c &iio_dev_attr_hwfifo_watermark.dev_attr.attr, attr 818 drivers/iio/accel/bmc150-accel-core.c &iio_dev_attr_hwfifo_enabled.dev_attr.attr, attr 957 drivers/iio/accel/bmc150-accel-core.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 948 drivers/iio/accel/kxcjk-1013.c struct device_attribute *attr, attr 969 drivers/iio/accel/kxcjk-1013.c &iio_dev_attr_in_accel_sampling_frequency_available.dev_attr.attr, attr 970 drivers/iio/accel/kxcjk-1013.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 131 drivers/iio/accel/kxsd9.c &iio_const_attr_accel_scale_available.dev_attr.attr, attr 187 drivers/iio/accel/mma7455_core.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 70 drivers/iio/accel/mma7660.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 367 drivers/iio/accel/mma8452.c struct device_attribute *attr, attr 375 drivers/iio/accel/mma8452.c struct device_attribute *attr, attr 386 drivers/iio/accel/mma8452.c struct device_attribute *attr, attr 403 drivers/iio/accel/mma8452.c struct device_attribute *attr, attr 1181 drivers/iio/accel/mma8452.c &iio_const_attr_accel_transient_scale.dev_attr.attr, attr 1398 drivers/iio/accel/mma8452.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 1399 drivers/iio/accel/mma8452.c &iio_dev_attr_in_accel_scale_available.dev_attr.attr, attr 1400 drivers/iio/accel/mma8452.c &iio_dev_attr_in_accel_filter_high_pass_3db_frequency_available.dev_attr.attr, attr 1401 drivers/iio/accel/mma8452.c &iio_dev_attr_in_accel_oversampling_ratio_available.dev_attr.attr, attr 84 drivers/iio/accel/mxc4005.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 450 drivers/iio/accel/sca3000.c struct device_attribute *attr, attr 817 drivers/iio/accel/sca3000.c struct device_attribute *attr, attr 955 drivers/iio/accel/sca3000.c &iio_dev_attr_in_accel_filter_low_pass_3db_frequency_available.dev_attr.attr, attr 956 drivers/iio/accel/sca3000.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 970 drivers/iio/accel/st_accel_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 971 drivers/iio/accel/st_accel_core.c &iio_dev_attr_in_accel_scale_available.dev_attr.attr, attr 114 drivers/iio/accel/stk8312.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 115 drivers/iio/accel/stk8312.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 132 drivers/iio/accel/stk8ba50.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 133 drivers/iio/accel/stk8ba50.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 365 drivers/iio/adc/ad7124.c &iio_const_attr_in_voltage_scale_available.dev_attr.attr, attr 216 drivers/iio/adc/ad7606.c struct device_attribute *attr, attr 298 drivers/iio/adc/ad7606.c struct device_attribute *attr, attr 312 drivers/iio/adc/ad7606.c &iio_dev_attr_in_voltage_scale_available.dev_attr.attr, attr 313 drivers/iio/adc/ad7606.c &iio_dev_attr_oversampling_ratio_available.dev_attr.attr, attr 322 drivers/iio/adc/ad7606.c &iio_dev_attr_oversampling_ratio_available.dev_attr.attr, attr 331 drivers/iio/adc/ad7606.c &iio_dev_attr_in_voltage_scale_available.dev_attr.attr, attr 333 drivers/iio/adc/ad7768-1.c struct device_attribute *attr, attr 411 drivers/iio/adc/ad7768-1.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 303 drivers/iio/adc/ad7791.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 357 drivers/iio/adc/ad7793.c struct device_attribute *attr, char *buf) attr 377 drivers/iio/adc/ad7793.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 378 drivers/iio/adc/ad7793.c &iio_dev_attr_in_m_in_scale_available.dev_attr.attr, attr 387 drivers/iio/adc/ad7793.c &iio_const_attr_sampling_frequency_available_ad7797.dev_attr.attr, attr 313 drivers/iio/adc/ad799x.c struct device_attribute *attr, attr 327 drivers/iio/adc/ad799x.c struct device_attribute *attr, attr 514 drivers/iio/adc/ad799x.c &iio_dev_attr_sampling_frequency.dev_attr.attr, attr 515 drivers/iio/adc/ad799x.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 1594 drivers/iio/adc/at91-sama5d2_adc.c struct device_attribute *attr, char *buf) attr 1603 drivers/iio/adc/at91-sama5d2_adc.c struct device_attribute *attr, char *buf) attr 1625 drivers/iio/adc/at91-sama5d2_adc.c &iio_const_attr_oversampling_ratio_available.dev_attr.attr, attr 1634 drivers/iio/adc/at91-sama5d2_adc.c &iio_const_attr_hwfifo_watermark_min.dev_attr.attr, attr 1635 drivers/iio/adc/at91-sama5d2_adc.c &iio_const_attr_hwfifo_watermark_max.dev_attr.attr, attr 1636 drivers/iio/adc/at91-sama5d2_adc.c &iio_dev_attr_hwfifo_watermark.dev_attr.attr, attr 1637 drivers/iio/adc/at91-sama5d2_adc.c &iio_dev_attr_hwfifo_enabled.dev_attr.attr, attr 399 drivers/iio/adc/hx711.c struct device_attribute *attr, attr 402 drivers/iio/adc/hx711.c struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); attr 423 drivers/iio/adc/hx711.c &iio_dev_attr_in_voltage0_scale_available.dev_attr.attr, attr 424 drivers/iio/adc/hx711.c &iio_dev_attr_in_voltage1_scale_available.dev_attr.attr, attr 532 drivers/iio/adc/ina2xx-adc.c struct device_attribute *attr, attr 541 drivers/iio/adc/ina2xx-adc.c struct device_attribute *attr, attr 581 drivers/iio/adc/ina2xx-adc.c struct device_attribute *attr, attr 591 drivers/iio/adc/ina2xx-adc.c struct device_attribute *attr, attr 902 drivers/iio/adc/ina2xx-adc.c &iio_dev_attr_in_allow_async_readout.dev_attr.attr, attr 903 drivers/iio/adc/ina2xx-adc.c &iio_const_attr_ina219_integration_time_available.dev_attr.attr, attr 904 drivers/iio/adc/ina2xx-adc.c &iio_dev_attr_in_shunt_resistor.dev_attr.attr, attr 909 drivers/iio/adc/ina2xx-adc.c &iio_dev_attr_in_allow_async_readout.dev_attr.attr, attr 910 drivers/iio/adc/ina2xx-adc.c &iio_const_attr_ina226_integration_time_available.dev_attr.attr, attr 911 drivers/iio/adc/ina2xx-adc.c &iio_dev_attr_in_shunt_resistor.dev_attr.attr, attr 679 drivers/iio/adc/max1363.c struct device_attribute *attr, attr 687 drivers/iio/adc/max1363.c struct device_attribute *attr, attr 1002 drivers/iio/adc/max1363.c &iio_dev_attr_sampling_frequency.dev_attr.attr, attr 1003 drivers/iio/adc/max1363.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 436 drivers/iio/adc/max9611.c struct device_attribute *attr, attr 454 drivers/iio/adc/max9611.c &iio_dev_attr_in_power_shunt_resistor.dev_attr.attr, attr 455 drivers/iio/adc/max9611.c &iio_dev_attr_in_current_shunt_resistor.dev_attr.attr, attr 267 drivers/iio/adc/mcp3422.c struct device_attribute *attr, char *buf) attr 278 drivers/iio/adc/mcp3422.c struct device_attribute *attr, char *buf) attr 296 drivers/iio/adc/mcp3422.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 297 drivers/iio/adc/mcp3422.c &iio_dev_attr_in_voltage_scale_available.dev_attr.attr, attr 315 drivers/iio/adc/mxs-lradc-adc.c struct device_attribute *attr, attr 320 drivers/iio/adc/mxs-lradc-adc.c struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); attr 354 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage0_scale_available.dev_attr.attr, attr 355 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage1_scale_available.dev_attr.attr, attr 356 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage2_scale_available.dev_attr.attr, attr 357 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage3_scale_available.dev_attr.attr, attr 358 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage4_scale_available.dev_attr.attr, attr 359 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage5_scale_available.dev_attr.attr, attr 360 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage6_scale_available.dev_attr.attr, attr 361 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage7_scale_available.dev_attr.attr, attr 362 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage10_scale_available.dev_attr.attr, attr 363 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage11_scale_available.dev_attr.attr, attr 364 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage12_scale_available.dev_attr.attr, attr 365 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage13_scale_available.dev_attr.attr, attr 366 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage14_scale_available.dev_attr.attr, attr 367 drivers/iio/adc/mxs-lradc-adc.c &iio_dev_attr_in_voltage15_scale_available.dev_attr.attr, attr 82 drivers/iio/adc/nau7802.c struct device_attribute *attr, char *buf) attr 102 drivers/iio/adc/nau7802.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 103 drivers/iio/adc/nau7802.c &iio_dev_attr_in_voltage_scale_available.dev_attr.attr, attr 801 drivers/iio/adc/ti-ads1015.c &iio_const_attr_ads1015_scale_available.dev_attr.attr, attr 802 drivers/iio/adc/ti-ads1015.c &iio_const_attr_ads1015_sampling_frequency_available.dev_attr.attr, attr 811 drivers/iio/adc/ti-ads1015.c &iio_const_attr_ads1115_scale_available.dev_attr.attr, attr 812 drivers/iio/adc/ti-ads1015.c &iio_const_attr_ads1115_sampling_frequency_available.dev_attr.attr, attr 119 drivers/iio/adc/ti-ads8688.c struct device_attribute *attr, char *buf) attr 130 drivers/iio/adc/ti-ads8688.c struct device_attribute *attr, char *buf) attr 142 drivers/iio/adc/ti-ads8688.c &iio_dev_attr_in_voltage_scale_available.dev_attr.attr, attr 143 drivers/iio/adc/ti-ads8688.c &iio_dev_attr_in_voltage_offset_available.dev_attr.attr, attr 595 drivers/iio/adc/vf610_adc.c struct device_attribute *attr, char *buf) attr 614 drivers/iio/adc/vf610_adc.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 856 drivers/iio/chemical/bme680_core.c &iio_const_attr_oversampling_ratio_available.dev_attr.attr, attr 332 drivers/iio/chemical/sps30.c struct device_attribute *attr, attr 352 drivers/iio/chemical/sps30.c struct device_attribute *attr, attr 370 drivers/iio/chemical/sps30.c struct device_attribute *attr, attr 411 drivers/iio/chemical/sps30.c struct device_attribute *attr, attr 424 drivers/iio/chemical/sps30.c &iio_dev_attr_start_cleaning.dev_attr.attr, attr 425 drivers/iio/chemical/sps30.c &iio_dev_attr_cleaning_period.dev_attr.attr, attr 426 drivers/iio/chemical/sps30.c &iio_dev_attr_cleaning_period_available.dev_attr.attr, attr 135 drivers/iio/chemical/vz89x.c &iio_const_attr_in_concentration_co2_scale.dev_attr.attr, attr 136 drivers/iio/chemical/vz89x.c &iio_const_attr_in_concentration_voc_scale.dev_attr.attr, attr 21 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct device_attribute *attr, attr 44 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct device_attribute *attr, attr 59 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct device_attribute *attr, attr 80 drivers/iio/common/hid-sensors/hid-sensor-trigger.c &iio_dev_attr_hwfifo_timeout.dev_attr.attr, attr 81 drivers/iio/common/hid-sensors/hid-sensor-trigger.c &iio_dev_attr_hwfifo_enabled.dev_attr.attr, attr 659 drivers/iio/common/st_sensors/st_sensors_core.c struct device_attribute *attr, char *buf) attr 681 drivers/iio/common/st_sensors/st_sensors_core.c struct device_attribute *attr, char *buf) attr 249 drivers/iio/dac/ad5360.c struct device_attribute *attr, attr 278 drivers/iio/dac/ad5360.c struct device_attribute *attr, const char *buf, size_t len) attr 302 drivers/iio/dac/ad5360.c &iio_dev_attr_out_voltage_powerdown.dev_attr.attr, attr 209 drivers/iio/dac/ad5504.c &iio_const_attr_temp0_thresh_rising_value.dev_attr.attr, attr 210 drivers/iio/dac/ad5504.c &iio_const_attr_temp0_thresh_rising_en.dev_attr.attr, attr 74 drivers/iio/dac/mcp4725.c struct device_attribute *attr, const char *buf, size_t len) attr 127 drivers/iio/dac/mcp4725.c &iio_dev_attr_store_eeprom.dev_attr.attr, attr 128 drivers/iio/dummy/iio_dummy_evgen.c struct device_attribute *attr, attr 132 drivers/iio/dummy/iio_dummy_evgen.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 160 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev0.dev_attr.attr, attr 161 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev1.dev_attr.attr, attr 162 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev2.dev_attr.attr, attr 163 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev3.dev_attr.attr, attr 164 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev4.dev_attr.attr, attr 165 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev5.dev_attr.attr, attr 166 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev6.dev_attr.attr, attr 167 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev7.dev_attr.attr, attr 168 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev8.dev_attr.attr, attr 169 drivers/iio/dummy/iio_dummy_evgen.c &iio_dev_attr_poke_ev9.dev_attr.attr, attr 510 drivers/iio/frequency/ad9523.c struct device_attribute *attr, attr 514 drivers/iio/frequency/ad9523.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 543 drivers/iio/frequency/ad9523.c struct device_attribute *attr, attr 547 drivers/iio/frequency/ad9523.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 613 drivers/iio/frequency/ad9523.c &iio_dev_attr_sync_dividers.dev_attr.attr, attr 614 drivers/iio/frequency/ad9523.c &iio_dev_attr_store_eeprom.dev_attr.attr, attr 615 drivers/iio/frequency/ad9523.c &iio_dev_attr_pll2_feedback_clk_present.dev_attr.attr, attr 616 drivers/iio/frequency/ad9523.c &iio_dev_attr_pll2_reference_clk_present.dev_attr.attr, attr 617 drivers/iio/frequency/ad9523.c &iio_dev_attr_pll1_reference_clk_a_present.dev_attr.attr, attr 618 drivers/iio/frequency/ad9523.c &iio_dev_attr_pll1_reference_clk_b_present.dev_attr.attr, attr 619 drivers/iio/frequency/ad9523.c &iio_dev_attr_pll1_reference_clk_test_present.dev_attr.attr, attr 620 drivers/iio/frequency/ad9523.c &iio_dev_attr_vcxo_clk_present.dev_attr.attr, attr 621 drivers/iio/frequency/ad9523.c &iio_dev_attr_pll1_locked.dev_attr.attr, attr 622 drivers/iio/frequency/ad9523.c &iio_dev_attr_pll2_locked.dev_attr.attr, attr 203 drivers/iio/gyro/adis16136.c struct device_attribute *attr, const char *buf, size_t len) attr 223 drivers/iio/gyro/adis16136.c struct device_attribute *attr, char *buf) attr 394 drivers/iio/gyro/adis16136.c &iio_dev_attr_sampling_frequency.dev_attr.attr, attr 810 drivers/iio/gyro/bmg160_core.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 811 drivers/iio/gyro/bmg160_core.c &iio_const_attr_in_anglvel_scale_available.dev_attr.attr, attr 618 drivers/iio/gyro/fxas21002c_core.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 619 drivers/iio/gyro/fxas21002c_core.c &iio_const_attr_in_anglvel_filter_low_pass_3db_frequency_available.dev_attr.attr, attr 620 drivers/iio/gyro/fxas21002c_core.c &iio_const_attr_in_anglvel_filter_high_pass_3db_frequency_available.dev_attr.attr, attr 621 drivers/iio/gyro/fxas21002c_core.c &iio_const_attr_in_anglvel_scale_available.dev_attr.attr, attr 738 drivers/iio/gyro/mpu3050-core.c &iio_const_attr_anglevel_scale_available.dev_attr.attr, attr 417 drivers/iio/gyro/st_gyro_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 418 drivers/iio/gyro/st_gyro_core.c &iio_dev_attr_in_anglvel_scale_available.dev_attr.attr, attr 132 drivers/iio/health/afe4403.c struct device_attribute *attr, attr 137 drivers/iio/health/afe4403.c struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); attr 156 drivers/iio/health/afe4403.c struct device_attribute *attr, attr 161 drivers/iio/health/afe4403.c struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); attr 195 drivers/iio/health/afe4403.c &dev_attr_in_intensity_resistance_available.attr, attr 196 drivers/iio/health/afe4403.c &dev_attr_in_intensity_capacitance_available.attr, attr 197 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity1_resistance.dev_attr.attr, attr 198 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity1_capacitance.dev_attr.attr, attr 199 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity2_resistance.dev_attr.attr, attr 200 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity2_capacitance.dev_attr.attr, attr 201 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity3_resistance.dev_attr.attr, attr 202 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity3_capacitance.dev_attr.attr, attr 203 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity4_resistance.dev_attr.attr, attr 204 drivers/iio/health/afe4403.c &afe440x_attr_in_intensity4_capacitance.dev_attr.attr, attr 166 drivers/iio/health/afe4404.c struct device_attribute *attr, attr 171 drivers/iio/health/afe4404.c struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); attr 190 drivers/iio/health/afe4404.c struct device_attribute *attr, attr 195 drivers/iio/health/afe4404.c struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); attr 229 drivers/iio/health/afe4404.c &dev_attr_in_intensity_resistance_available.attr, attr 230 drivers/iio/health/afe4404.c &dev_attr_in_intensity_capacitance_available.attr, attr 231 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity1_resistance.dev_attr.attr, attr 232 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity1_capacitance.dev_attr.attr, attr 233 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity2_resistance.dev_attr.attr, attr 234 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity2_capacitance.dev_attr.attr, attr 235 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity3_resistance.dev_attr.attr, attr 236 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity3_capacitance.dev_attr.attr, attr 237 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity4_resistance.dev_attr.attr, attr 238 drivers/iio/health/afe4404.c &afe440x_attr_in_intensity4_capacitance.dev_attr.attr, attr 119 drivers/iio/health/afe440x.h struct device_attribute *attr, char *buf) \ attr 74 drivers/iio/humidity/hdc100x.c &iio_const_attr_temp_integration_time_available.dev_attr.attr, attr 75 drivers/iio/humidity/hdc100x.c &iio_const_attr_humidityrelative_integration_time_available.dev_attr.attr, attr 76 drivers/iio/humidity/hdc100x.c &iio_const_attr_out_current_heater_raw_available.dev_attr.attr, attr 202 drivers/iio/humidity/hts221_core.c struct device_attribute *attr, attr 218 drivers/iio/humidity/hts221_core.c struct device_attribute *attr, attr 235 drivers/iio/humidity/hts221_core.c struct device_attribute *attr, attr 538 drivers/iio/humidity/hts221_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 539 drivers/iio/humidity/hts221_core.c &iio_dev_attr_in_humidity_oversampling_ratio_available.dev_attr.attr, attr 540 drivers/iio/humidity/hts221_core.c &iio_dev_attr_in_temp_oversampling_ratio_available.dev_attr.attr, attr 129 drivers/iio/humidity/htu21.c struct device_attribute *attr, char *buf) attr 138 drivers/iio/humidity/htu21.c struct device_attribute *attr, char *buf) attr 147 drivers/iio/humidity/htu21.c struct device_attribute *attr, attr 163 drivers/iio/humidity/htu21.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 164 drivers/iio/humidity/htu21.c &iio_dev_attr_battery_low.dev_attr.attr, attr 165 drivers/iio/humidity/htu21.c &iio_dev_attr_heater_enable.dev_attr.attr, attr 23 drivers/iio/iio_core.h struct device_attribute *attr, attr 26 drivers/iio/iio_core.h struct device_attribute *attr, attr 498 drivers/iio/imu/bmi160/bmi160_core.c &iio_const_attr_in_accel_sampling_frequency_available.dev_attr.attr, attr 499 drivers/iio/imu/bmi160/bmi160_core.c &iio_const_attr_in_anglvel_sampling_frequency_available.dev_attr.attr, attr 500 drivers/iio/imu/bmi160/bmi160_core.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 501 drivers/iio/imu/bmi160/bmi160_core.c &iio_const_attr_in_anglvel_scale_available.dev_attr.attr, attr 681 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c inv_mpu6050_fifo_rate_store(struct device *dev, struct device_attribute *attr, attr 738 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c inv_fifo_rate_show(struct device *dev, struct device_attribute *attr, attr 759 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c static ssize_t inv_attr_show(struct device *dev, struct device_attribute *attr, attr 763 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 948 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c &iio_dev_attr_in_gyro_matrix.dev_attr.attr, /* deprecated */ attr 949 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c &iio_dev_attr_in_accel_matrix.dev_attr.attr, /* deprecated */ attr 950 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c &iio_dev_attr_sampling_frequency.dev_attr.attr, attr 951 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 952 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c &iio_const_attr_in_accel_scale_available.dev_attr.attr, attr 953 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c &iio_const_attr_in_anglvel_scale_available.dev_attr.attr, attr 202 drivers/iio/imu/kmx61.c &iio_const_attr_accel_scale_available.dev_attr.attr, attr 203 drivers/iio/imu/kmx61.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 208 drivers/iio/imu/kmx61.c &iio_const_attr_magn_scale_available.dev_attr.attr, attr 209 drivers/iio/imu/kmx61.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 1195 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c struct device_attribute *attr, attr 1212 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c struct device_attribute *attr, attr 1236 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 1237 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c &iio_dev_attr_in_accel_scale_available.dev_attr.attr, attr 1253 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 1254 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c &iio_dev_attr_in_anglvel_scale_available.dev_attr.attr, attr 532 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c struct device_attribute *attr, attr 553 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c struct device_attribute *attr, attr 573 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 574 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c &iio_dev_attr_in_scale_available.dev_attr.attr, attr 222 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 225 drivers/iio/industrialio-buffer.c return sprintf(buf, "%u\n", to_iio_dev_attr(attr)->c->scan_index); attr 229 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 232 drivers/iio/industrialio-buffer.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 260 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 267 drivers/iio/industrialio-buffer.c ret = !!test_bit(to_iio_dev_attr(attr)->address, attr 371 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 379 drivers/iio/industrialio-buffer.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 410 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 418 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 496 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 506 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 539 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 1119 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 1155 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 1165 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 1200 drivers/iio/industrialio-buffer.c struct device_attribute *attr, attr 1225 drivers/iio/industrialio-buffer.c &dev_attr_length.attr, attr 1226 drivers/iio/industrialio-buffer.c &dev_attr_enable.attr, attr 1227 drivers/iio/industrialio-buffer.c &dev_attr_watermark.attr, attr 1228 drivers/iio/industrialio-buffer.c &dev_attr_data_available.attr, attr 1234 drivers/iio/industrialio-buffer.c struct attribute **attr; attr 1257 drivers/iio/industrialio-buffer.c attr = kcalloc(attrcount + ARRAY_SIZE(iio_buffer_attrs) + 1, attr 1259 drivers/iio/industrialio-buffer.c if (!attr) attr 1262 drivers/iio/industrialio-buffer.c memcpy(attr, iio_buffer_attrs, sizeof(iio_buffer_attrs)); attr 1264 drivers/iio/industrialio-buffer.c attr[0] = &dev_attr_length_ro.attr; attr 1267 drivers/iio/industrialio-buffer.c attr[2] = &dev_attr_watermark_ro.attr; attr 1270 drivers/iio/industrialio-buffer.c memcpy(&attr[ARRAY_SIZE(iio_buffer_attrs)], buffer->attrs, attr 1273 drivers/iio/industrialio-buffer.c attr[attrcount + ARRAY_SIZE(iio_buffer_attrs)] = NULL; attr 1276 drivers/iio/industrialio-buffer.c buffer->buffer_group.attrs = attr; attr 1281 drivers/iio/industrialio-buffer.c attr = buffer->scan_el_attrs->attrs; attr 1282 drivers/iio/industrialio-buffer.c while (*attr++ != NULL) attr 1328 drivers/iio/industrialio-buffer.c buffer->scan_el_group.attrs[attrn++] = &p->dev_attr.attr; attr 184 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 187 drivers/iio/industrialio-core.c return sprintf(buf, "%s\n", to_iio_const_attr(attr)->string); attr 396 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 400 drivers/iio/industrialio-core.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 409 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 414 drivers/iio/industrialio-core.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 631 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 635 drivers/iio/industrialio-core.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 742 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 746 drivers/iio/industrialio-core.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 833 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 838 drivers/iio/industrialio-core.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 879 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 882 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 890 drivers/iio/industrialio-core.c sysfs_attr_init(&dev_attr->attr); attr 986 drivers/iio/industrialio-core.c dev_attr->attr.name = name; attr 989 drivers/iio/industrialio-core.c dev_attr->attr.mode |= S_IRUGO; attr 994 drivers/iio/industrialio-core.c dev_attr->attr.mode |= S_IWUSR; attr 1006 drivers/iio/industrialio-core.c kfree(dev_attr->attr.name); attr 1012 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 1015 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 1037 drivers/iio/industrialio-core.c if (strcmp(t->dev_attr.attr.name, attr 1038 drivers/iio/industrialio-core.c iio_attr->dev_attr.attr.name) == 0) { attr 1041 drivers/iio/industrialio-core.c t->dev_attr.attr.name); attr 1225 drivers/iio/industrialio-core.c kfree(p->dev_attr.attr.name); attr 1232 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 1242 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 1288 drivers/iio/industrialio-core.c struct device_attribute *attr, attr 1325 drivers/iio/industrialio-core.c struct attribute **attr, *clk = NULL; attr 1329 drivers/iio/industrialio-core.c attr = indio_dev->info->attrs->attrs; attr 1330 drivers/iio/industrialio-core.c while (*attr++ != NULL) attr 1344 drivers/iio/industrialio-core.c clk = &dev_attr_current_timestamp_clock.attr; attr 1353 drivers/iio/industrialio-core.c clk = &dev_attr_current_timestamp_clock.attr; attr 1376 drivers/iio/industrialio-core.c indio_dev->chan_attr_group.attrs[attrn++] = &p->dev_attr.attr; attr 1378 drivers/iio/industrialio-core.c indio_dev->chan_attr_group.attrs[attrn++] = &dev_attr_name.attr; attr 242 drivers/iio/industrialio-event.c static enum iio_event_direction iio_ev_attr_dir(struct iio_dev_attr *attr) attr 244 drivers/iio/industrialio-event.c return attr->c->event_spec[attr->address & 0xffff].dir; attr 247 drivers/iio/industrialio-event.c static enum iio_event_type iio_ev_attr_type(struct iio_dev_attr *attr) attr 249 drivers/iio/industrialio-event.c return attr->c->event_spec[attr->address & 0xffff].type; attr 252 drivers/iio/industrialio-event.c static enum iio_event_info iio_ev_attr_info(struct iio_dev_attr *attr) attr 254 drivers/iio/industrialio-event.c return (attr->address >> 16) & 0xffff; attr 258 drivers/iio/industrialio-event.c struct device_attribute *attr, attr 263 drivers/iio/industrialio-event.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 279 drivers/iio/industrialio-event.c struct device_attribute *attr, attr 283 drivers/iio/industrialio-event.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 296 drivers/iio/industrialio-event.c struct device_attribute *attr, attr 300 drivers/iio/industrialio-event.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 316 drivers/iio/industrialio-event.c struct device_attribute *attr, attr 321 drivers/iio/industrialio-event.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 474 drivers/iio/industrialio-event.c struct attribute **attr; attr 489 drivers/iio/industrialio-event.c attr = indio_dev->info->event_attrs->attrs; attr 490 drivers/iio/industrialio-event.c while (*attr++ != NULL) attr 520 drivers/iio/industrialio-event.c &p->dev_attr.attr; attr 49 drivers/iio/industrialio-trigger.c struct device_attribute *attr, attr 59 drivers/iio/industrialio-trigger.c &dev_attr_name.attr, attr 374 drivers/iio/industrialio-trigger.c struct device_attribute *attr, attr 399 drivers/iio/industrialio-trigger.c struct device_attribute *attr, attr 464 drivers/iio/industrialio-trigger.c &dev_attr_current_trigger.attr, attr 904 drivers/iio/inkern.c const char *attr) attr 912 drivers/iio/inkern.c if (!strcmp(attr, ext_info->name)) attr 920 drivers/iio/inkern.c const char *attr, char *buf) attr 924 drivers/iio/inkern.c ext_info = iio_lookup_ext_info(chan, attr); attr 933 drivers/iio/inkern.c ssize_t iio_write_channel_ext_info(struct iio_channel *chan, const char *attr, attr 938 drivers/iio/inkern.c ext_info = iio_lookup_ext_info(chan, attr); attr 74 drivers/iio/light/al3320a.c &iio_const_attr_in_illuminance_scale_available.dev_attr.attr, attr 333 drivers/iio/light/apds9960.c &iio_const_attr_proximity_scale_available.dev_attr.attr, attr 334 drivers/iio/light/apds9960.c &iio_const_attr_intensity_scale_available.dev_attr.attr, attr 335 drivers/iio/light/apds9960.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 189 drivers/iio/light/bh1750.c struct device_attribute *attr, char *buf) attr 208 drivers/iio/light/bh1750.c &iio_dev_attr_integration_time_available.dev_attr.attr, attr 259 drivers/iio/light/cm32181.c struct device_attribute *attr, char *buf) attr 283 drivers/iio/light/cm32181.c &iio_dev_attr_in_illuminance_integration_time_available.dev_attr.attr, attr 288 drivers/iio/light/cm3232.c struct device_attribute *attr, char *buf) attr 313 drivers/iio/light/cm3232.c &iio_dev_attr_in_illuminance_integration_time_available.dev_attr.attr, attr 71 drivers/iio/light/cm3323.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 602 drivers/iio/light/cm36651.c &iio_const_attr_in_illuminance_integration_time_available.dev_attr.attr, attr 603 drivers/iio/light/cm36651.c &iio_const_attr_in_proximity_integration_time_available.dev_attr.attr, attr 265 drivers/iio/light/isl29018.c (struct device *dev, struct device_attribute *attr, attr 286 drivers/iio/light/isl29018.c (struct device *dev, struct device_attribute *attr, attr 322 drivers/iio/light/isl29018.c (struct device *dev, struct device_attribute *attr, attr 336 drivers/iio/light/isl29018.c (struct device *dev, struct device_attribute *attr, attr 502 drivers/iio/light/isl29018.c #define ISL29018_DEV_ATTR(name) (&iio_dev_attr_##name.dev_attr.attr) attr 500 drivers/iio/light/isl29028.c #define ISL29028_CONST_ATTR(name) (&iio_const_attr_##name.dev_attr.attr) attr 202 drivers/iio/light/isl29125.c &iio_const_attr_scale_available.dev_attr.attr, attr 404 drivers/iio/light/lm3533-als.c struct device_attribute *attr, attr 424 drivers/iio/light/lm3533-als.c struct device_attribute *attr, attr 467 drivers/iio/light/lm3533-als.c struct device_attribute *attr, char *buf) attr 495 drivers/iio/light/lm3533-als.c to_lm3533_als_attr(struct device_attribute *attr) attr 497 drivers/iio/light/lm3533-als.c return container_of(attr, struct lm3533_als_attribute, dev_attr); attr 501 drivers/iio/light/lm3533-als.c struct device_attribute *attr, attr 505 drivers/iio/light/lm3533-als.c struct lm3533_als_attribute *als_attr = to_lm3533_als_attr(attr); attr 537 drivers/iio/light/lm3533-als.c struct device_attribute *attr, attr 541 drivers/iio/light/lm3533-als.c struct lm3533_als_attribute *als_attr = to_lm3533_als_attr(attr); attr 673 drivers/iio/light/lm3533-als.c &dev_attr_in_illuminance0_thresh_either_en.attr, attr 674 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh0_falling_value.dev_attr.attr, attr 675 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh0_hysteresis.dev_attr.attr, attr 676 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh0_raising_value.dev_attr.attr, attr 677 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh1_falling_value.dev_attr.attr, attr 678 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh1_hysteresis.dev_attr.attr, attr 679 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh1_raising_value.dev_attr.attr, attr 680 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh2_falling_value.dev_attr.attr, attr 681 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh2_hysteresis.dev_attr.attr, attr 682 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh2_raising_value.dev_attr.attr, attr 683 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh3_falling_value.dev_attr.attr, attr 684 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh3_hysteresis.dev_attr.attr, attr 685 drivers/iio/light/lm3533-als.c &lm3533_als_attr_in_illuminance0_thresh3_raising_value.dev_attr.attr, attr 694 drivers/iio/light/lm3533-als.c &dev_attr_in_illuminance0_zone.attr, attr 695 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current0_current0_raw.dev_attr.attr, attr 696 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current0_current1_raw.dev_attr.attr, attr 697 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current0_current2_raw.dev_attr.attr, attr 698 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current0_current3_raw.dev_attr.attr, attr 699 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current0_current4_raw.dev_attr.attr, attr 700 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current1_current0_raw.dev_attr.attr, attr 701 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current1_current1_raw.dev_attr.attr, attr 702 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current1_current2_raw.dev_attr.attr, attr 703 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current1_current3_raw.dev_attr.attr, attr 704 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current1_current4_raw.dev_attr.attr, attr 705 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current2_current0_raw.dev_attr.attr, attr 706 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current2_current1_raw.dev_attr.attr, attr 707 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current2_current2_raw.dev_attr.attr, attr 708 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current2_current3_raw.dev_attr.attr, attr 709 drivers/iio/light/lm3533-als.c &lm3533_als_attr_out_current2_current4_raw.dev_attr.attr, attr 1080 drivers/iio/light/ltr501.c struct device_attribute *attr, attr 1102 drivers/iio/light/ltr501.c struct device_attribute *attr, attr 1132 drivers/iio/light/ltr501.c &iio_dev_attr_in_proximity_scale_available.dev_attr.attr, attr 1133 drivers/iio/light/ltr501.c &iio_dev_attr_in_intensity_scale_available.dev_attr.attr, attr 1134 drivers/iio/light/ltr501.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 1135 drivers/iio/light/ltr501.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 1140 drivers/iio/light/ltr501.c &iio_dev_attr_in_intensity_scale_available.dev_attr.attr, attr 1141 drivers/iio/light/ltr501.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 1142 drivers/iio/light/ltr501.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 394 drivers/iio/light/lv0104cs.c struct device_attribute *attr, char *buf) attr 411 drivers/iio/light/lv0104cs.c struct device_attribute *attr, char *buf) attr 428 drivers/iio/light/lv0104cs.c struct device_attribute *attr, char *buf) attr 451 drivers/iio/light/lv0104cs.c &iio_dev_attr_calibscale_available.dev_attr.attr, attr 452 drivers/iio/light/lv0104cs.c &iio_dev_attr_scale_available.dev_attr.attr, attr 453 drivers/iio/light/lv0104cs.c &iio_dev_attr_integration_time_available.dev_attr.attr, attr 391 drivers/iio/light/max44000.c &iio_const_attr_illuminance_integration_time_available.dev_attr.attr, attr 392 drivers/iio/light/max44000.c &iio_const_attr_illuminance_scale_available.dev_attr.attr, attr 291 drivers/iio/light/max44009.c &iio_const_attr_illuminance_integration_time_available.dev_attr.attr, attr 189 drivers/iio/light/opt3001.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 91 drivers/iio/light/pa12203001.c &iio_const_attr_in_illuminance_scale_available.dev_attr.attr, attr 209 drivers/iio/light/rpr0521.c &iio_const_attr_in_intensity_scale_available.dev_attr.attr, attr 210 drivers/iio/light/rpr0521.c &iio_const_attr_in_proximity_scale_available.dev_attr.attr, attr 211 drivers/iio/light/rpr0521.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 871 drivers/iio/light/si1133.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 872 drivers/iio/light/si1133.c &iio_const_attr_scale_available.dev_attr.attr, attr 965 drivers/iio/light/si1145.c &iio_const_attr_in_intensity_scale_available.dev_attr.attr, attr 966 drivers/iio/light/si1145.c &iio_const_attr_in_intensity_ir_scale_available.dev_attr.attr, attr 971 drivers/iio/light/si1145.c &iio_const_attr_in_intensity_scale_available.dev_attr.attr, attr 972 drivers/iio/light/si1145.c &iio_const_attr_in_intensity_ir_scale_available.dev_attr.attr, attr 973 drivers/iio/light/si1145.c &iio_const_attr_in_proximity_scale_available.dev_attr.attr, attr 167 drivers/iio/light/stk3310.c &iio_const_attr_in_illuminance_scale_available.dev_attr.attr, attr 168 drivers/iio/light/stk3310.c &iio_const_attr_in_proximity_scale_available.dev_attr.attr, attr 169 drivers/iio/light/stk3310.c &iio_const_attr_in_illuminance_integration_time_available.dev_attr.attr, attr 170 drivers/iio/light/stk3310.c &iio_const_attr_in_proximity_integration_time_available.dev_attr.attr, attr 228 drivers/iio/light/tcs3414.c &iio_const_attr_scale_available.dev_attr.attr, attr 229 drivers/iio/light/tcs3414.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 402 drivers/iio/light/tcs3472.c struct device_attribute *attr, attr 422 drivers/iio/light/tcs3472.c &iio_const_attr_calibscale_available.dev_attr.attr, attr 423 drivers/iio/light/tcs3472.c &iio_dev_attr_integration_time_available.dev_attr.attr, attr 462 drivers/iio/light/tsl2583.c struct device_attribute *attr, attr 477 drivers/iio/light/tsl2583.c struct device_attribute *attr, attr 495 drivers/iio/light/tsl2583.c struct device_attribute *attr, attr 519 drivers/iio/light/tsl2583.c struct device_attribute *attr, attr 548 drivers/iio/light/tsl2583.c struct device_attribute *attr, attr 600 drivers/iio/light/tsl2583.c &iio_const_attr_in_illuminance_calibscale_available.dev_attr.attr, attr 601 drivers/iio/light/tsl2583.c &iio_const_attr_in_illuminance_integration_time_available.dev_attr.attr, attr 602 drivers/iio/light/tsl2583.c &iio_dev_attr_in_illuminance_input_target.dev_attr.attr, attr 603 drivers/iio/light/tsl2583.c &iio_dev_attr_in_illuminance_calibrate.dev_attr.attr, attr 604 drivers/iio/light/tsl2583.c &iio_dev_attr_in_illuminance_lux_table.dev_attr.attr, attr 930 drivers/iio/light/tsl2772.c struct device_attribute *attr, attr 939 drivers/iio/light/tsl2772.c struct device_attribute *attr, attr 959 drivers/iio/light/tsl2772.c struct device_attribute *attr, attr 981 drivers/iio/light/tsl2772.c struct device_attribute *attr, attr 1008 drivers/iio/light/tsl2772.c struct device_attribute *attr, attr 1050 drivers/iio/light/tsl2772.c struct device_attribute *attr, attr 1429 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_target_input.attr, attr 1430 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_calibrate.attr, attr 1431 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_lux_table.attr, attr 1436 drivers/iio/light/tsl2772.c &dev_attr_in_proximity0_calibrate.attr, attr 1441 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_target_input.attr, attr 1442 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_calibrate.attr, attr 1443 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_lux_table.attr, attr 1448 drivers/iio/light/tsl2772.c &dev_attr_in_proximity0_calibrate.attr, attr 1453 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_target_input.attr, attr 1454 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_calibrate.attr, attr 1455 drivers/iio/light/tsl2772.c &dev_attr_in_illuminance0_lux_table.attr, attr 1456 drivers/iio/light/tsl2772.c &dev_attr_in_proximity0_calibrate.attr, attr 57 drivers/iio/light/tsl4531.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 148 drivers/iio/light/us5182d.c &iio_const_attr_in_illuminance_scale_available.dev_attr.attr, attr 325 drivers/iio/light/vcnl4035.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 344 drivers/iio/light/vl6180.c &iio_const_attr_als_gain_available.dev_attr.attr, attr 432 drivers/iio/light/zopt2201.c struct device_attribute *attr, attr 449 drivers/iio/light/zopt2201.c struct device_attribute *attr, attr 465 drivers/iio/light/zopt2201.c struct device_attribute *attr, attr 486 drivers/iio/light/zopt2201.c &iio_dev_attr_integration_time_available.dev_attr.attr, attr 487 drivers/iio/light/zopt2201.c &iio_dev_attr_in_illuminance_scale_available.dev_attr.attr, attr 488 drivers/iio/light/zopt2201.c &iio_dev_attr_in_intensity_uv_scale_available.dev_attr.attr, attr 588 drivers/iio/magnetometer/bmc150_magn.c struct device_attribute *attr, attr 625 drivers/iio/magnetometer/bmc150_magn.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 270 drivers/iio/magnetometer/hmc5843_core.c struct device_attribute *attr, char *buf) attr 329 drivers/iio/magnetometer/hmc5843_core.c struct device_attribute *attr, attr 523 drivers/iio/magnetometer/hmc5843_core.c &iio_dev_attr_scale_available.dev_attr.attr, attr 524 drivers/iio/magnetometer/hmc5843_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 143 drivers/iio/magnetometer/mag3110.c struct device_attribute *attr, char *buf) attr 449 drivers/iio/magnetometer/mag3110.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 160 drivers/iio/magnetometer/mmc35240.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 266 drivers/iio/magnetometer/rm3100-core.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 446 drivers/iio/magnetometer/st_magn_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 447 drivers/iio/magnetometer/st_magn_core.c &iio_dev_attr_in_magn_scale_available.dev_attr.attr, attr 56 drivers/iio/multiplexer/iio-mux.c const char *attr = chan->ext_info[i].name; attr 64 drivers/iio/multiplexer/iio-mux.c ret = iio_write_channel_ext_info(mux->parent, attr, attr 585 drivers/iio/pressure/bmp280-core.c struct device_attribute *attr, char *buf) attr 594 drivers/iio/pressure/bmp280-core.c struct device_attribute *attr, char *buf) attr 609 drivers/iio/pressure/bmp280-core.c &iio_dev_attr_in_temp_oversampling_ratio_available.dev_attr.attr, attr 610 drivers/iio/pressure/bmp280-core.c &iio_dev_attr_in_pressure_oversampling_ratio_available.dev_attr.attr, attr 339 drivers/iio/pressure/hp206c.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 48 drivers/iio/pressure/ms5611_core.c &iio_const_attr_oversampling_ratio_available.dev_attr.attr, attr 114 drivers/iio/pressure/ms5637.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 641 drivers/iio/pressure/st_pressure_core.c &iio_dev_attr_sampling_frequency_available.dev_attr.attr, attr 197 drivers/iio/pressure/t5403.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 1468 drivers/iio/pressure/zpa2326.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 112 drivers/iio/proximity/as3935.c struct device_attribute *attr, attr 127 drivers/iio/proximity/as3935.c struct device_attribute *attr, attr 147 drivers/iio/proximity/as3935.c struct device_attribute *attr, attr 167 drivers/iio/proximity/as3935.c &iio_dev_attr_sensor_sensitivity.dev_attr.attr, attr 168 drivers/iio/proximity/as3935.c &iio_dev_attr_noise_level_tripped.dev_attr.attr, attr 581 drivers/iio/proximity/isl29501.c &iio_const_attr_integration_time_available.dev_attr.attr, attr 582 drivers/iio/proximity/isl29501.c &iio_const_attr_out_current_scale_available.dev_attr.attr, attr 231 drivers/iio/proximity/srf08.c struct device_attribute *attr, char *buf) attr 240 drivers/iio/proximity/srf08.c struct device_attribute *attr, char *buf) attr 292 drivers/iio/proximity/srf08.c struct device_attribute *attr, attr 315 drivers/iio/proximity/srf08.c struct device_attribute *attr, char *buf) attr 335 drivers/iio/proximity/srf08.c struct device_attribute *attr, char *buf) attr 382 drivers/iio/proximity/srf08.c struct device_attribute *attr, attr 405 drivers/iio/proximity/srf08.c &iio_dev_attr_sensor_max_range.dev_attr.attr, attr 406 drivers/iio/proximity/srf08.c &iio_dev_attr_sensor_max_range_available.dev_attr.attr, attr 407 drivers/iio/proximity/srf08.c &iio_dev_attr_sensor_sensitivity.dev_attr.attr, attr 408 drivers/iio/proximity/srf08.c &iio_dev_attr_sensor_sensitivity_available.dev_attr.attr, attr 603 drivers/iio/proximity/sx9500.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 239 drivers/iio/temperature/max31856.c struct device_attribute *attr, attr 246 drivers/iio/temperature/max31856.c struct device_attribute *attr, attr 256 drivers/iio/temperature/max31856.c &iio_dev_attr_fault_ovuv.dev_attr.attr, attr 257 drivers/iio/temperature/max31856.c &iio_dev_attr_fault_oc.dev_attr.attr, attr 86 drivers/iio/temperature/mlx90614.c &iio_const_attr_in_temp_object_filter_low_pass_3db_frequency_available.dev_attr.attr, attr 152 drivers/iio/temperature/tmp006.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 356 drivers/iio/temperature/tmp007.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 95 drivers/iio/temperature/tsys02d.c struct device_attribute *attr, attr 109 drivers/iio/temperature/tsys02d.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 110 drivers/iio/temperature/tsys02d.c &iio_dev_attr_battery_low.dev_attr.attr, attr 35 drivers/iio/trigger/iio-trig-hrtimer.c struct device_attribute *attr, attr 46 drivers/iio/trigger/iio-trig-hrtimer.c struct device_attribute *attr, attr 72 drivers/iio/trigger/iio-trig-hrtimer.c &dev_attr_sampling_frequency.attr, attr 28 drivers/iio/trigger/iio-trig-sysfs.c struct device_attribute *attr, attr 47 drivers/iio/trigger/iio-trig-sysfs.c struct device_attribute *attr, attr 66 drivers/iio/trigger/iio-trig-sysfs.c &dev_attr_add_trigger.attr, attr 67 drivers/iio/trigger/iio-trig-sysfs.c &dev_attr_remove_trigger.attr, attr 101 drivers/iio/trigger/iio-trig-sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 114 drivers/iio/trigger/iio-trig-sysfs.c &dev_attr_trigger_now.attr, attr 194 drivers/iio/trigger/stm32-timer-trigger.c struct device_attribute *attr, attr 218 drivers/iio/trigger/stm32-timer-trigger.c struct device_attribute *attr, char *buf) attr 266 drivers/iio/trigger/stm32-timer-trigger.c struct device_attribute *attr, attr 284 drivers/iio/trigger/stm32-timer-trigger.c struct device_attribute *attr, attr 318 drivers/iio/trigger/stm32-timer-trigger.c struct device_attribute *attr, attr 349 drivers/iio/trigger/stm32-timer-trigger.c &iio_dev_attr_sampling_frequency.dev_attr.attr, attr 350 drivers/iio/trigger/stm32-timer-trigger.c &iio_dev_attr_master_mode.dev_attr.attr, attr 351 drivers/iio/trigger/stm32-timer-trigger.c &iio_dev_attr_master_mode_available.dev_attr.attr, attr 720 drivers/infiniband/core/addr.c const struct ib_gid_attr *attr) attr 739 drivers/infiniband/core/addr.c if (!attr || !attr->ndev) attr 743 drivers/infiniband/core/addr.c dev_addr.sgid_attr = attr; attr 88 drivers/infiniband/core/cache.c struct ib_gid_attr attr; attr 235 drivers/infiniband/core/cache.c struct ib_device *device = entry->attr.device; attr 236 drivers/infiniband/core/cache.c u8 port_num = entry->attr.port_num; attr 240 drivers/infiniband/core/cache.c port_num, entry->attr.index, entry->attr.gid.raw); attr 250 drivers/infiniband/core/cache.c if (entry == table->data_vec[entry->attr.index]) attr 251 drivers/infiniband/core/cache.c table->data_vec[entry->attr.index] = NULL; attr 280 drivers/infiniband/core/cache.c struct ib_device *device = entry->attr.device; attr 281 drivers/infiniband/core/cache.c u8 port_num = entry->attr.port_num; attr 290 drivers/infiniband/core/cache.c alloc_gid_entry(const struct ib_gid_attr *attr) attr 299 drivers/infiniband/core/cache.c ndev = rcu_dereference_protected(attr->ndev, 1); attr 311 drivers/infiniband/core/cache.c memcpy(&entry->attr, attr, sizeof(*attr)); attr 322 drivers/infiniband/core/cache.c dev_dbg(&entry->attr.device->dev, "%s port=%d index=%d gid %pI6\n", attr 323 drivers/infiniband/core/cache.c __func__, entry->attr.port_num, entry->attr.index, attr 324 drivers/infiniband/core/cache.c entry->attr.gid.raw); attr 328 drivers/infiniband/core/cache.c table->data_vec[entry->attr.index] = entry; attr 349 drivers/infiniband/core/cache.c const struct ib_gid_attr *attr = &entry->attr; attr 352 drivers/infiniband/core/cache.c if (!attr->ndev) { attr 353 drivers/infiniband/core/cache.c dev_err(&attr->device->dev, "%s NULL netdev port=%d index=%d\n", attr 354 drivers/infiniband/core/cache.c __func__, attr->port_num, attr->index); attr 357 drivers/infiniband/core/cache.c if (rdma_cap_roce_gid_table(attr->device, attr->port_num)) { attr 358 drivers/infiniband/core/cache.c ret = attr->device->ops.add_gid(attr, &entry->context); attr 360 drivers/infiniband/core/cache.c dev_err(&attr->device->dev, attr 362 drivers/infiniband/core/cache.c __func__, attr->port_num, attr->index); attr 387 drivers/infiniband/core/cache.c ix, table->data_vec[ix]->attr.gid.raw); attr 402 drivers/infiniband/core/cache.c rcu_assign_pointer(entry->attr.ndev, NULL); attr 407 drivers/infiniband/core/cache.c ib_dev->ops.del_gid(&entry->attr, &entry->context); attr 423 drivers/infiniband/core/cache.c const struct ib_gid_attr *attr) attr 432 drivers/infiniband/core/cache.c if (is_gid_entry_valid(table->data_vec[attr->index])) attr 433 drivers/infiniband/core/cache.c del_gid(attr->device, attr->port_num, table, attr->index); attr 440 drivers/infiniband/core/cache.c if (rdma_is_zero_gid(&attr->gid)) attr 443 drivers/infiniband/core/cache.c entry = alloc_gid_entry(attr); attr 447 drivers/infiniband/core/cache.c if (rdma_protocol_roce(attr->device, attr->port_num)) { attr 472 drivers/infiniband/core/cache.c struct ib_gid_attr *attr; attr 510 drivers/infiniband/core/cache.c attr = &data->attr; attr 512 drivers/infiniband/core/cache.c attr->gid_type != val->gid_type) attr 516 drivers/infiniband/core/cache.c memcmp(gid, &data->attr.gid, sizeof(*gid))) attr 520 drivers/infiniband/core/cache.c attr->ndev != val->ndev) attr 543 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr, attr 562 drivers/infiniband/core/cache.c ix = find_gid(table, gid, attr, default_gid, mask, &empty); attr 570 drivers/infiniband/core/cache.c attr->device = ib_dev; attr 571 drivers/infiniband/core/cache.c attr->index = empty; attr 572 drivers/infiniband/core/cache.c attr->port_num = port; attr 573 drivers/infiniband/core/cache.c attr->gid = *gid; attr 574 drivers/infiniband/core/cache.c ret = add_modify_gid(table, attr); attr 587 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr) attr 593 drivers/infiniband/core/cache.c return __ib_cache_gid_add(ib_dev, port, gid, attr, mask, false); attr 598 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr, attr 609 drivers/infiniband/core/cache.c ix = find_gid(table, gid, attr, default_gid, mask, NULL); attr 627 drivers/infiniband/core/cache.c union ib_gid *gid, struct ib_gid_attr *attr) attr 634 drivers/infiniband/core/cache.c return _ib_cache_gid_del(ib_dev, port, gid, attr, mask, false); attr 650 drivers/infiniband/core/cache.c table->data_vec[ix]->attr.ndev == ndev) { attr 690 drivers/infiniband/core/cache.c const struct ib_gid_attr *attr; attr 705 drivers/infiniband/core/cache.c attr = &table->data_vec[local_index]->attr; attr 707 drivers/infiniband/core/cache.c return attr; attr 755 drivers/infiniband/core/cache.c if (memcmp(gid, &entry->attr.gid, sizeof(*gid))) attr 758 drivers/infiniband/core/cache.c if (filter(gid, &entry->attr, context)) { attr 760 drivers/infiniband/core/cache.c res = &entry->attr; attr 972 drivers/infiniband/core/cache.c memcpy(gid, &table->data_vec[index]->attr.gid, sizeof(*gid)); attr 1016 drivers/infiniband/core/cache.c const struct ib_gid_attr *attr; attr 1019 drivers/infiniband/core/cache.c attr = &table->data_vec[index]->attr; attr 1021 drivers/infiniband/core/cache.c return attr; attr 1202 drivers/infiniband/core/cache.c const struct ib_gid_attr *attr = ERR_PTR(-EINVAL); attr 1218 drivers/infiniband/core/cache.c attr = &table->data_vec[index]->attr; attr 1221 drivers/infiniband/core/cache.c return attr; attr 1236 drivers/infiniband/core/cache.c void rdma_put_gid_attr(const struct ib_gid_attr *attr) attr 1239 drivers/infiniband/core/cache.c container_of(attr, struct ib_gid_table_entry, attr); attr 1255 drivers/infiniband/core/cache.c void rdma_hold_gid_attr(const struct ib_gid_attr *attr) attr 1258 drivers/infiniband/core/cache.c container_of(attr, struct ib_gid_table_entry, attr); attr 1276 drivers/infiniband/core/cache.c struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr) attr 1279 drivers/infiniband/core/cache.c container_of(attr, struct ib_gid_table_entry, attr); attr 1280 drivers/infiniband/core/cache.c struct ib_device *device = entry->attr.device; attr 1282 drivers/infiniband/core/cache.c u8 port_num = entry->attr.port_num; attr 1290 drivers/infiniband/core/cache.c valid = is_gid_entry_valid(table->data_vec[attr->index]); attr 1292 drivers/infiniband/core/cache.c ndev = rcu_dereference(attr->ndev); attr 1327 drivers/infiniband/core/cache.c int rdma_read_gid_l2_fields(const struct ib_gid_attr *attr, attr 1333 drivers/infiniband/core/cache.c ndev = rcu_dereference(attr->ndev); attr 1349 drivers/infiniband/core/cache.c netdev_walk_all_lower_dev_rcu(attr->ndev, attr 174 drivers/infiniband/core/cm.c struct attribute attr; attr 180 drivers/infiniband/core/cm.c .attr = { .name = __stringify(_name), .mode = 0444 }, \ attr 197 drivers/infiniband/core/cm.c &cm_req_counter_attr.attr, attr 198 drivers/infiniband/core/cm.c &cm_mra_counter_attr.attr, attr 199 drivers/infiniband/core/cm.c &cm_rej_counter_attr.attr, attr 200 drivers/infiniband/core/cm.c &cm_rep_counter_attr.attr, attr 201 drivers/infiniband/core/cm.c &cm_rtu_counter_attr.attr, attr 202 drivers/infiniband/core/cm.c &cm_dreq_counter_attr.attr, attr 203 drivers/infiniband/core/cm.c &cm_drep_counter_attr.attr, attr 204 drivers/infiniband/core/cm.c &cm_sidr_req_counter_attr.attr, attr 205 drivers/infiniband/core/cm.c &cm_sidr_rep_counter_attr.attr, attr 206 drivers/infiniband/core/cm.c &cm_lap_counter_attr.attr, attr 207 drivers/infiniband/core/cm.c &cm_apr_counter_attr.attr, attr 513 drivers/infiniband/core/cm.c get_cm_port_from_path(struct sa_path_rec *path, const struct ib_gid_attr *attr) attr 519 drivers/infiniband/core/cm.c if (attr) { attr 522 drivers/infiniband/core/cm.c if (cm_dev->ib_device == attr->device) { attr 523 drivers/infiniband/core/cm.c port = cm_dev->port[attr->port_num - 1]; attr 537 drivers/infiniband/core/cm.c attr = rdma_find_gid(cm_dev->ib_device, attr 541 drivers/infiniband/core/cm.c if (!IS_ERR(attr)) { attr 542 drivers/infiniband/core/cm.c port = cm_dev->port[attr->port_num - 1]; attr 548 drivers/infiniband/core/cm.c rdma_put_gid_attr(attr); attr 4250 drivers/infiniband/core/cm.c static ssize_t cm_show_counter(struct kobject *obj, struct attribute *attr, attr 4257 drivers/infiniband/core/cm.c cm_attr = container_of(attr, struct cm_counter_attribute, attr); attr 136 drivers/infiniband/core/core_priv.h union ib_gid *gid, struct ib_gid_attr *attr); attr 139 drivers/infiniband/core/core_priv.h union ib_gid *gid, struct ib_gid_attr *attr); attr 322 drivers/infiniband/core/core_priv.h struct ib_qp_init_attr *attr, attr 326 drivers/infiniband/core/core_priv.h enum ib_qp_type qp_type = attr->qp_type; attr 333 drivers/infiniband/core/core_priv.h qp = dev->ops.create_qp(pd, attr, udata); attr 342 drivers/infiniband/core/core_priv.h qp->qp_type = attr->qp_type; attr 343 drivers/infiniband/core/core_priv.h qp->qp_context = attr->qp_context; attr 344 drivers/infiniband/core/core_priv.h qp->rwq_ind_tbl = attr->rwq_ind_tbl; attr 345 drivers/infiniband/core/core_priv.h qp->send_cq = attr->send_cq; attr 346 drivers/infiniband/core/core_priv.h qp->recv_cq = attr->recv_cq; attr 347 drivers/infiniband/core/core_priv.h qp->srq = attr->srq; attr 348 drivers/infiniband/core/core_priv.h qp->rwq_ind_tbl = attr->rwq_ind_tbl; attr 349 drivers/infiniband/core/core_priv.h qp->event_handler = attr->event_handler; attr 388 drivers/infiniband/core/core_priv.h const struct ib_gid_attr *attr); attr 390 drivers/infiniband/core/core_priv.h struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr); attr 66 drivers/infiniband/core/mad.c struct rdma_ah_attr attr = {}; attr 68 drivers/infiniband/core/mad.c rdma_query_ah(wr->ah, &attr); attr 71 drivers/infiniband/core/mad.c entry->sl = attr.sl; attr 76 drivers/infiniband/core/mad.c entry->dlid = rdma_ah_get_dlid(&attr); attr 1912 drivers/infiniband/core/mad.c struct rdma_ah_attr attr; attr 1927 drivers/infiniband/core/mad.c if (rdma_query_ah(wr->send_buf.ah, &attr)) attr 1931 drivers/infiniband/core/mad.c has_grh = !!(rdma_ah_get_ah_flags(&attr) & IB_AH_GRH); attr 1941 drivers/infiniband/core/mad.c return (!lmc || !((rdma_ah_get_path_bits(&attr) ^ attr 1946 drivers/infiniband/core/mad.c rdma_ah_read_grh(&attr); attr 1957 drivers/infiniband/core/mad.c return rdma_ah_get_dlid(&attr) == rwc->wc->slid; attr 1959 drivers/infiniband/core/mad.c return !memcmp(rdma_ah_read_grh(&attr)->dgid.raw, attr 2621 drivers/infiniband/core/mad.c struct ib_qp_attr *attr; attr 2624 drivers/infiniband/core/mad.c attr = kmalloc(sizeof *attr, GFP_KERNEL); attr 2625 drivers/infiniband/core/mad.c if (attr) { attr 2626 drivers/infiniband/core/mad.c attr->qp_state = IB_QPS_RTS; attr 2627 drivers/infiniband/core/mad.c attr->cur_qp_state = IB_QPS_SQE; attr 2628 drivers/infiniband/core/mad.c ret = ib_modify_qp(qp_info->qp, attr, attr 2630 drivers/infiniband/core/mad.c kfree(attr); attr 3037 drivers/infiniband/core/mad.c struct ib_qp_attr *attr; attr 3041 drivers/infiniband/core/mad.c attr = kmalloc(sizeof *attr, GFP_KERNEL); attr 3042 drivers/infiniband/core/mad.c if (!attr) attr 3059 drivers/infiniband/core/mad.c attr->qp_state = IB_QPS_INIT; attr 3060 drivers/infiniband/core/mad.c attr->pkey_index = pkey_index; attr 3061 drivers/infiniband/core/mad.c attr->qkey = (qp->qp_num == 0) ? 0 : IB_QP1_QKEY; attr 3062 drivers/infiniband/core/mad.c ret = ib_modify_qp(qp, attr, IB_QP_STATE | attr 3071 drivers/infiniband/core/mad.c attr->qp_state = IB_QPS_RTR; attr 3072 drivers/infiniband/core/mad.c ret = ib_modify_qp(qp, attr, IB_QP_STATE); attr 3080 drivers/infiniband/core/mad.c attr->qp_state = IB_QPS_RTS; attr 3081 drivers/infiniband/core/mad.c attr->sq_psn = IB_MAD_SEND_Q_PSN; attr 3082 drivers/infiniband/core/mad.c ret = ib_modify_qp(qp, attr, IB_QP_STATE | IB_QP_SQ_PSN); attr 3111 drivers/infiniband/core/mad.c kfree(attr); attr 284 drivers/infiniband/core/nldev.c struct ib_port_attr attr; attr 294 drivers/infiniband/core/nldev.c ret = ib_query_port(device, port, &attr); attr 299 drivers/infiniband/core/nldev.c BUILD_BUG_ON((sizeof(attr.port_cap_flags) + attr 300 drivers/infiniband/core/nldev.c sizeof(attr.port_cap_flags2)) > sizeof(u64)); attr 301 drivers/infiniband/core/nldev.c cap_flags = attr.port_cap_flags | attr 302 drivers/infiniband/core/nldev.c ((u64)attr.port_cap_flags2 << 32); attr 307 drivers/infiniband/core/nldev.c attr.subnet_prefix, RDMA_NLDEV_ATTR_PAD)) attr 309 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_LID, attr.lid)) attr 311 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_SM_LID, attr.sm_lid)) attr 313 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_LMC, attr.lmc)) attr 316 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_STATE, attr.state)) attr 318 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_PHYS_STATE, attr.phys_state)) attr 656 drivers/infiniband/core/rw.c void rdma_rw_init_qp(struct ib_device *dev, struct ib_qp_init_attr *attr) attr 660 drivers/infiniband/core/rw.c WARN_ON_ONCE(attr->port_num == 0); attr 675 drivers/infiniband/core/rw.c if (attr->create_flags & IB_QP_CREATE_INTEGRITY_EN || attr 676 drivers/infiniband/core/rw.c rdma_rw_can_use_mr(dev, attr->port_num)) attr 679 drivers/infiniband/core/rw.c attr->cap.max_send_wr += factor * attr->cap.max_rdma_ctxs; attr 685 drivers/infiniband/core/rw.c attr->cap.max_send_wr = attr 686 drivers/infiniband/core/rw.c min_t(u32, attr->cap.max_send_wr, dev->attrs.max_qp_wr); attr 689 drivers/infiniband/core/rw.c int rdma_rw_init_mrs(struct ib_qp *qp, struct ib_qp_init_attr *attr) attr 695 drivers/infiniband/core/rw.c if (attr->create_flags & IB_QP_CREATE_INTEGRITY_EN) { attr 696 drivers/infiniband/core/rw.c nr_sig_mrs = attr->cap.max_rdma_ctxs; attr 697 drivers/infiniband/core/rw.c nr_mrs = attr->cap.max_rdma_ctxs; attr 699 drivers/infiniband/core/rw.c } else if (rdma_rw_can_use_mr(dev, attr->port_num)) { attr 700 drivers/infiniband/core/rw.c nr_mrs = attr->cap.max_rdma_ctxs; attr 1019 drivers/infiniband/core/sa_query.c const struct nlattr *attr; attr 1032 drivers/infiniband/core/sa_query.c attr = (const struct nlattr *)tb[LS_NLA_TYPE_TIMEOUT]; attr 1033 drivers/infiniband/core/sa_query.c if (ret || !attr) attr 1036 drivers/infiniband/core/sa_query.c timeout = *(int *) nla_data(attr); attr 156 drivers/infiniband/core/security.c struct ib_qp_attr attr = { attr 171 drivers/infiniband/core/security.c &attr, attr 69 drivers/infiniband/core/sysfs.c struct attribute attr; attr 82 drivers/infiniband/core/sysfs.c struct port_attribute attr; attr 89 drivers/infiniband/core/sysfs.c struct attribute attr; attr 91 drivers/infiniband/core/sysfs.c struct attribute *attr, char *buf); attr 93 drivers/infiniband/core/sysfs.c struct attribute *attr, attr 101 drivers/infiniband/core/sysfs.c struct attribute *attr, char *buf) attr 104 drivers/infiniband/core/sysfs.c container_of(attr, struct port_attribute, attr); attr 114 drivers/infiniband/core/sysfs.c struct attribute *attr, attr 118 drivers/infiniband/core/sysfs.c container_of(attr, struct port_attribute, attr); attr 132 drivers/infiniband/core/sysfs.c struct attribute *attr, char *buf) attr 135 drivers/infiniband/core/sysfs.c container_of(attr, struct port_attribute, attr); attr 152 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 164 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 168 drivers/infiniband/core/sysfs.c return sprintf(buf, "%d: %s\n", attr.state, attr 169 drivers/infiniband/core/sysfs.c attr.state >= 0 && attr.state < ARRAY_SIZE(state_name) ? attr 170 drivers/infiniband/core/sysfs.c state_name[attr.state] : "UNKNOWN"); attr 176 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 179 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 183 drivers/infiniband/core/sysfs.c return sprintf(buf, "0x%x\n", attr.lid); attr 190 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 193 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 197 drivers/infiniband/core/sysfs.c return sprintf(buf, "%d\n", attr.lmc); attr 203 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 206 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 210 drivers/infiniband/core/sysfs.c return sprintf(buf, "0x%x\n", attr.sm_lid); attr 216 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 219 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 223 drivers/infiniband/core/sysfs.c return sprintf(buf, "%d\n", attr.sm_sl); attr 229 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 232 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 236 drivers/infiniband/core/sysfs.c return sprintf(buf, "0x%08x\n", attr.port_cap_flags); attr 242 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 247 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 251 drivers/infiniband/core/sysfs.c switch (attr.active_speed) { attr 283 drivers/infiniband/core/sysfs.c rate *= ib_width_enum_to_int(attr.active_width); attr 289 drivers/infiniband/core/sysfs.c ib_width_enum_to_int(attr.active_width), speed); attr 313 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 317 drivers/infiniband/core/sysfs.c ret = ib_query_port(p->ibdev, p->port_num, &attr); attr 321 drivers/infiniband/core/sysfs.c return sprintf(buf, "%d: %s\n", attr.phys_state, attr 322 drivers/infiniband/core/sysfs.c phys_state_to_str(attr.phys_state)); attr 349 drivers/infiniband/core/sysfs.c &port_attr_state.attr, attr 350 drivers/infiniband/core/sysfs.c &port_attr_lid.attr, attr 351 drivers/infiniband/core/sysfs.c &port_attr_lid_mask_count.attr, attr 352 drivers/infiniband/core/sysfs.c &port_attr_sm_lid.attr, attr 353 drivers/infiniband/core/sysfs.c &port_attr_sm_sl.attr, attr 354 drivers/infiniband/core/sysfs.c &port_attr_cap_mask.attr, attr 355 drivers/infiniband/core/sysfs.c &port_attr_rate.attr, attr 356 drivers/infiniband/core/sysfs.c &port_attr_phys_state.attr, attr 357 drivers/infiniband/core/sysfs.c &port_attr_link_layer.attr, attr 380 drivers/infiniband/core/sysfs.c struct ib_port *p, struct port_attribute *attr, char *buf, attr 384 drivers/infiniband/core/sysfs.c container_of(attr, struct port_table_attribute, attr); attr 397 drivers/infiniband/core/sysfs.c static ssize_t show_port_gid(struct ib_port *p, struct port_attribute *attr, attr 401 drivers/infiniband/core/sysfs.c container_of(attr, struct port_table_attribute, attr); attr 427 drivers/infiniband/core/sysfs.c struct port_attribute *attr, char *buf) attr 429 drivers/infiniband/core/sysfs.c return _show_port_gid_attr(p, attr, buf, print_ndev); attr 433 drivers/infiniband/core/sysfs.c struct port_attribute *attr, attr 436 drivers/infiniband/core/sysfs.c return _show_port_gid_attr(p, attr, buf, print_gid_type); attr 439 drivers/infiniband/core/sysfs.c static ssize_t show_port_pkey(struct ib_port *p, struct port_attribute *attr, attr 443 drivers/infiniband/core/sysfs.c container_of(attr, struct port_table_attribute, attr); attr 456 drivers/infiniband/core/sysfs.c .attr = __ATTR(_name, S_IRUGO, show_pma_counter, NULL), \ attr 463 drivers/infiniband/core/sysfs.c .attr = __ATTR(_name, S_IRUGO, show_pma_counter, NULL), \ attr 472 drivers/infiniband/core/sysfs.c static int get_perf_mad(struct ib_device *dev, int port_num, __be16 attr, attr 495 drivers/infiniband/core/sysfs.c in_mad->mad_hdr.attr_id = attr; attr 497 drivers/infiniband/core/sysfs.c if (attr != IB_PMA_CLASS_PORT_INFO) attr 518 drivers/infiniband/core/sysfs.c static ssize_t show_pma_counter(struct ib_port *p, struct port_attribute *attr, attr 522 drivers/infiniband/core/sysfs.c container_of(attr, struct port_table_attribute, attr); attr 592 drivers/infiniband/core/sysfs.c &port_pma_attr_symbol_error.attr.attr, attr 593 drivers/infiniband/core/sysfs.c &port_pma_attr_link_error_recovery.attr.attr, attr 594 drivers/infiniband/core/sysfs.c &port_pma_attr_link_downed.attr.attr, attr 595 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_errors.attr.attr, attr 596 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_remote_physical_errors.attr.attr, attr 597 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_switch_relay_errors.attr.attr, attr 598 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_discards.attr.attr, attr 599 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_constraint_errors.attr.attr, attr 600 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_constraint_errors.attr.attr, attr 601 drivers/infiniband/core/sysfs.c &port_pma_attr_local_link_integrity_errors.attr.attr, attr 602 drivers/infiniband/core/sysfs.c &port_pma_attr_excessive_buffer_overrun_errors.attr.attr, attr 603 drivers/infiniband/core/sysfs.c &port_pma_attr_VL15_dropped.attr.attr, attr 604 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_data.attr.attr, attr 605 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_data.attr.attr, attr 606 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_packets.attr.attr, attr 607 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_packets.attr.attr, attr 608 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_wait.attr.attr, attr 613 drivers/infiniband/core/sysfs.c &port_pma_attr_symbol_error.attr.attr, attr 614 drivers/infiniband/core/sysfs.c &port_pma_attr_link_error_recovery.attr.attr, attr 615 drivers/infiniband/core/sysfs.c &port_pma_attr_link_downed.attr.attr, attr 616 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_errors.attr.attr, attr 617 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_remote_physical_errors.attr.attr, attr 618 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_switch_relay_errors.attr.attr, attr 619 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_discards.attr.attr, attr 620 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_constraint_errors.attr.attr, attr 621 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_constraint_errors.attr.attr, attr 622 drivers/infiniband/core/sysfs.c &port_pma_attr_local_link_integrity_errors.attr.attr, attr 623 drivers/infiniband/core/sysfs.c &port_pma_attr_excessive_buffer_overrun_errors.attr.attr, attr 624 drivers/infiniband/core/sysfs.c &port_pma_attr_VL15_dropped.attr.attr, attr 625 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_xmit_data.attr.attr, attr 626 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_rcv_data.attr.attr, attr 627 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_xmit_packets.attr.attr, attr 628 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_wait.attr.attr, attr 629 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_rcv_packets.attr.attr, attr 630 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_unicast_rcv_packets.attr.attr, attr 631 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_unicast_xmit_packets.attr.attr, attr 632 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_multicast_rcv_packets.attr.attr, attr 633 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_multicast_xmit_packets.attr.attr, attr 638 drivers/infiniband/core/sysfs.c &port_pma_attr_symbol_error.attr.attr, attr 639 drivers/infiniband/core/sysfs.c &port_pma_attr_link_error_recovery.attr.attr, attr 640 drivers/infiniband/core/sysfs.c &port_pma_attr_link_downed.attr.attr, attr 641 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_errors.attr.attr, attr 642 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_remote_physical_errors.attr.attr, attr 643 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_switch_relay_errors.attr.attr, attr 644 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_discards.attr.attr, attr 645 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_constraint_errors.attr.attr, attr 646 drivers/infiniband/core/sysfs.c &port_pma_attr_port_rcv_constraint_errors.attr.attr, attr 647 drivers/infiniband/core/sysfs.c &port_pma_attr_local_link_integrity_errors.attr.attr, attr 648 drivers/infiniband/core/sysfs.c &port_pma_attr_excessive_buffer_overrun_errors.attr.attr, attr 649 drivers/infiniband/core/sysfs.c &port_pma_attr_VL15_dropped.attr.attr, attr 650 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_xmit_data.attr.attr, attr 651 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_rcv_data.attr.attr, attr 652 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_xmit_packets.attr.attr, attr 653 drivers/infiniband/core/sysfs.c &port_pma_attr_ext_port_rcv_packets.attr.attr, attr 654 drivers/infiniband/core/sysfs.c &port_pma_attr_port_xmit_wait.attr.attr, attr 756 drivers/infiniband/core/sysfs.c element->attr.attr.name = element->name; attr 757 drivers/infiniband/core/sysfs.c element->attr.attr.mode = S_IRUGO; attr 758 drivers/infiniband/core/sysfs.c element->attr.show = show; attr 760 drivers/infiniband/core/sysfs.c sysfs_attr_init(&element->attr.attr); attr 762 drivers/infiniband/core/sysfs.c tab_attr[i] = &element->attr.attr; attr 822 drivers/infiniband/core/sysfs.c static ssize_t show_hw_stats(struct kobject *kobj, struct attribute *attr, attr 831 drivers/infiniband/core/sysfs.c hsa = container_of(attr, struct hw_stats_attribute, attr); attr 853 drivers/infiniband/core/sysfs.c struct attribute *attr, attr 860 drivers/infiniband/core/sysfs.c hsa = container_of(attr, struct hw_stats_attribute, attr); attr 880 drivers/infiniband/core/sysfs.c struct attribute *attr, attr 895 drivers/infiniband/core/sysfs.c hsa = container_of(attr, struct hw_stats_attribute, attr); attr 916 drivers/infiniband/core/sysfs.c struct attribute **attr; attr 920 drivers/infiniband/core/sysfs.c for (attr = attr_group->attrs; *attr; attr++) attr 921 drivers/infiniband/core/sysfs.c kfree(*attr); attr 933 drivers/infiniband/core/sysfs.c hsa->attr.name = (char *)name; attr 934 drivers/infiniband/core/sysfs.c hsa->attr.mode = S_IRUGO; attr 940 drivers/infiniband/core/sysfs.c return &hsa->attr; attr 951 drivers/infiniband/core/sysfs.c hsa->attr.name = name; attr 952 drivers/infiniband/core/sysfs.c hsa->attr.mode = S_IWUSR | S_IRUGO; attr 958 drivers/infiniband/core/sysfs.c return &hsa->attr; attr 1044 drivers/infiniband/core/sysfs.c struct ib_port_attr attr; attr 1048 drivers/infiniband/core/sysfs.c ret = ib_query_port(device, port_num, &attr); attr 1089 drivers/infiniband/core/sysfs.c p->gid_group.attrs = alloc_group_attrs(show_port_gid, attr.gid_tbl_len); attr 1101 drivers/infiniband/core/sysfs.c attr.gid_tbl_len); attr 1114 drivers/infiniband/core/sysfs.c attr.gid_tbl_len); attr 1127 drivers/infiniband/core/sysfs.c attr.pkey_tbl_len); attr 1160 drivers/infiniband/core/sysfs.c for (i = 0; i < attr.pkey_tbl_len; ++i) attr 1171 drivers/infiniband/core/sysfs.c for (i = 0; i < attr.gid_tbl_len; ++i) attr 1182 drivers/infiniband/core/sysfs.c for (i = 0; i < attr.gid_tbl_len; ++i) attr 1192 drivers/infiniband/core/sysfs.c for (i = 0; i < attr.gid_tbl_len; ++i) attr 1211 drivers/infiniband/core/sysfs.c struct device_attribute *attr, char *buf) attr 1242 drivers/infiniband/core/sysfs.c struct device_attribute *attr, char *buf) attr 1255 drivers/infiniband/core/sysfs.c struct device_attribute *attr, char *buf) attr 1263 drivers/infiniband/core/sysfs.c struct device_attribute *attr, attr 1282 drivers/infiniband/core/sysfs.c static ssize_t fw_ver_show(struct device *device, struct device_attribute *attr, attr 1294 drivers/infiniband/core/sysfs.c &dev_attr_node_type.attr, attr 1295 drivers/infiniband/core/sysfs.c &dev_attr_node_guid.attr, attr 1296 drivers/infiniband/core/sysfs.c &dev_attr_sys_image_guid.attr, attr 1297 drivers/infiniband/core/sysfs.c &dev_attr_fw_ver.attr, attr 1298 drivers/infiniband/core/sysfs.c &dev_attr_node_desc.attr, attr 1852 drivers/infiniband/core/ucma.c struct device_attribute *attr, attr 1186 drivers/infiniband/core/user_mad.c static ssize_t ibdev_show(struct device *dev, struct device_attribute *attr, attr 1198 drivers/infiniband/core/user_mad.c static ssize_t port_show(struct device *dev, struct device_attribute *attr, attr 1211 drivers/infiniband/core/user_mad.c &dev_attr_ibdev.attr, attr 1212 drivers/infiniband/core/user_mad.c &dev_attr_port.attr, attr 1223 drivers/infiniband/core/user_mad.c struct class_attribute *attr, char *buf) attr 1230 drivers/infiniband/core/user_mad.c &class_attr_abi_version.attr, attr 300 drivers/infiniband/core/uverbs.h static inline u32 make_port_cap_flags(const struct ib_port_attr *attr) attr 309 drivers/infiniband/core/uverbs.h res = attr->port_cap_flags & ~(u32)IB_UVERBS_PCF_IP_BASED_GIDS; attr 311 drivers/infiniband/core/uverbs.h if (attr->ip_gids) attr 318 drivers/infiniband/core/uverbs.h void copy_port_attr_to_resp(struct ib_port_attr *attr, attr 310 drivers/infiniband/core/uverbs_cmd.c struct ib_device_attr *attr) attr 314 drivers/infiniband/core/uverbs_cmd.c resp->fw_ver = attr->fw_ver; attr 316 drivers/infiniband/core/uverbs_cmd.c resp->sys_image_guid = attr->sys_image_guid; attr 317 drivers/infiniband/core/uverbs_cmd.c resp->max_mr_size = attr->max_mr_size; attr 318 drivers/infiniband/core/uverbs_cmd.c resp->page_size_cap = attr->page_size_cap; attr 319 drivers/infiniband/core/uverbs_cmd.c resp->vendor_id = attr->vendor_id; attr 320 drivers/infiniband/core/uverbs_cmd.c resp->vendor_part_id = attr->vendor_part_id; attr 321 drivers/infiniband/core/uverbs_cmd.c resp->hw_ver = attr->hw_ver; attr 322 drivers/infiniband/core/uverbs_cmd.c resp->max_qp = attr->max_qp; attr 323 drivers/infiniband/core/uverbs_cmd.c resp->max_qp_wr = attr->max_qp_wr; attr 324 drivers/infiniband/core/uverbs_cmd.c resp->device_cap_flags = lower_32_bits(attr->device_cap_flags); attr 325 drivers/infiniband/core/uverbs_cmd.c resp->max_sge = min(attr->max_send_sge, attr->max_recv_sge); attr 326 drivers/infiniband/core/uverbs_cmd.c resp->max_sge_rd = attr->max_sge_rd; attr 327 drivers/infiniband/core/uverbs_cmd.c resp->max_cq = attr->max_cq; attr 328 drivers/infiniband/core/uverbs_cmd.c resp->max_cqe = attr->max_cqe; attr 329 drivers/infiniband/core/uverbs_cmd.c resp->max_mr = attr->max_mr; attr 330 drivers/infiniband/core/uverbs_cmd.c resp->max_pd = attr->max_pd; attr 331 drivers/infiniband/core/uverbs_cmd.c resp->max_qp_rd_atom = attr->max_qp_rd_atom; attr 332 drivers/infiniband/core/uverbs_cmd.c resp->max_ee_rd_atom = attr->max_ee_rd_atom; attr 333 drivers/infiniband/core/uverbs_cmd.c resp->max_res_rd_atom = attr->max_res_rd_atom; attr 334 drivers/infiniband/core/uverbs_cmd.c resp->max_qp_init_rd_atom = attr->max_qp_init_rd_atom; attr 335 drivers/infiniband/core/uverbs_cmd.c resp->max_ee_init_rd_atom = attr->max_ee_init_rd_atom; attr 336 drivers/infiniband/core/uverbs_cmd.c resp->atomic_cap = attr->atomic_cap; attr 337 drivers/infiniband/core/uverbs_cmd.c resp->max_ee = attr->max_ee; attr 338 drivers/infiniband/core/uverbs_cmd.c resp->max_rdd = attr->max_rdd; attr 339 drivers/infiniband/core/uverbs_cmd.c resp->max_mw = attr->max_mw; attr 340 drivers/infiniband/core/uverbs_cmd.c resp->max_raw_ipv6_qp = attr->max_raw_ipv6_qp; attr 341 drivers/infiniband/core/uverbs_cmd.c resp->max_raw_ethy_qp = attr->max_raw_ethy_qp; attr 342 drivers/infiniband/core/uverbs_cmd.c resp->max_mcast_grp = attr->max_mcast_grp; attr 343 drivers/infiniband/core/uverbs_cmd.c resp->max_mcast_qp_attach = attr->max_mcast_qp_attach; attr 344 drivers/infiniband/core/uverbs_cmd.c resp->max_total_mcast_qp_attach = attr->max_total_mcast_qp_attach; attr 345 drivers/infiniband/core/uverbs_cmd.c resp->max_ah = attr->max_ah; attr 346 drivers/infiniband/core/uverbs_cmd.c resp->max_fmr = attr->max_fmr; attr 347 drivers/infiniband/core/uverbs_cmd.c resp->max_map_per_fmr = attr->max_map_per_fmr; attr 348 drivers/infiniband/core/uverbs_cmd.c resp->max_srq = attr->max_srq; attr 349 drivers/infiniband/core/uverbs_cmd.c resp->max_srq_wr = attr->max_srq_wr; attr 350 drivers/infiniband/core/uverbs_cmd.c resp->max_srq_sge = attr->max_srq_sge; attr 351 drivers/infiniband/core/uverbs_cmd.c resp->max_pkeys = attr->max_pkeys; attr 352 drivers/infiniband/core/uverbs_cmd.c resp->local_ca_ack_delay = attr->local_ca_ack_delay; attr 381 drivers/infiniband/core/uverbs_cmd.c struct ib_port_attr attr; attr 395 drivers/infiniband/core/uverbs_cmd.c ret = ib_query_port(ib_dev, cmd.port_num, &attr); attr 400 drivers/infiniband/core/uverbs_cmd.c copy_port_attr_to_resp(&attr, &resp, ib_dev, cmd.port_num); attr 992 drivers/infiniband/core/uverbs_cmd.c struct ib_cq_init_attr attr = {}; attr 1017 drivers/infiniband/core/uverbs_cmd.c attr.cqe = cmd->cqe; attr 1018 drivers/infiniband/core/uverbs_cmd.c attr.comp_vector = cmd->comp_vector; attr 1019 drivers/infiniband/core/uverbs_cmd.c attr.flags = cmd->flags; attr 1033 drivers/infiniband/core/uverbs_cmd.c ret = ib_dev->ops.create_cq(cq, &attr, &attrs->driver_udata); attr 1280 drivers/infiniband/core/uverbs_cmd.c struct ib_qp_init_attr attr = {}; attr 1307 drivers/infiniband/core/uverbs_cmd.c attr.rwq_ind_tbl = ind_tbl; attr 1375 drivers/infiniband/core/uverbs_cmd.c attr.event_handler = ib_uverbs_qp_event_handler; attr 1376 drivers/infiniband/core/uverbs_cmd.c attr.qp_context = attrs->ufile; attr 1377 drivers/infiniband/core/uverbs_cmd.c attr.send_cq = scq; attr 1378 drivers/infiniband/core/uverbs_cmd.c attr.recv_cq = rcq; attr 1379 drivers/infiniband/core/uverbs_cmd.c attr.srq = srq; attr 1380 drivers/infiniband/core/uverbs_cmd.c attr.xrcd = xrcd; attr 1381 drivers/infiniband/core/uverbs_cmd.c attr.sq_sig_type = cmd->sq_sig_all ? IB_SIGNAL_ALL_WR : attr 1383 drivers/infiniband/core/uverbs_cmd.c attr.qp_type = cmd->qp_type; attr 1384 drivers/infiniband/core/uverbs_cmd.c attr.create_flags = 0; attr 1386 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_send_wr = cmd->max_send_wr; attr 1387 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_recv_wr = cmd->max_recv_wr; attr 1388 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_send_sge = cmd->max_send_sge; attr 1389 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_recv_sge = cmd->max_recv_sge; attr 1390 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_inline_data = cmd->max_inline_data; attr 1396 drivers/infiniband/core/uverbs_cmd.c attr.create_flags = cmd->create_flags; attr 1397 drivers/infiniband/core/uverbs_cmd.c if (attr.create_flags & ~(IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK | attr 1409 drivers/infiniband/core/uverbs_cmd.c if (attr.create_flags & IB_QP_CREATE_SOURCE_QPN) { attr 1415 drivers/infiniband/core/uverbs_cmd.c attr.source_qpn = cmd->source_qpn; attr 1419 drivers/infiniband/core/uverbs_cmd.c qp = ib_create_qp(pd, &attr); attr 1421 drivers/infiniband/core/uverbs_cmd.c qp = _ib_create_qp(device, pd, &attr, &attrs->driver_udata, attr 1435 drivers/infiniband/core/uverbs_cmd.c if (attr.send_cq) attr 1436 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.send_cq->usecnt); attr 1437 drivers/infiniband/core/uverbs_cmd.c if (attr.recv_cq) attr 1438 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.recv_cq->usecnt); attr 1439 drivers/infiniband/core/uverbs_cmd.c if (attr.srq) attr 1440 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.srq->usecnt); attr 1453 drivers/infiniband/core/uverbs_cmd.c resp.base.max_recv_sge = attr.cap.max_recv_sge; attr 1454 drivers/infiniband/core/uverbs_cmd.c resp.base.max_send_sge = attr.cap.max_send_sge; attr 1455 drivers/infiniband/core/uverbs_cmd.c resp.base.max_recv_wr = attr.cap.max_recv_wr; attr 1456 drivers/infiniband/core/uverbs_cmd.c resp.base.max_send_wr = attr.cap.max_send_wr; attr 1457 drivers/infiniband/core/uverbs_cmd.c resp.base.max_inline_data = attr.cap.max_inline_data; attr 1558 drivers/infiniband/core/uverbs_cmd.c struct ib_qp_open_attr attr; attr 1583 drivers/infiniband/core/uverbs_cmd.c attr.event_handler = ib_uverbs_qp_event_handler; attr 1584 drivers/infiniband/core/uverbs_cmd.c attr.qp_context = attrs->ufile; attr 1585 drivers/infiniband/core/uverbs_cmd.c attr.qp_num = cmd.qpn; attr 1586 drivers/infiniband/core/uverbs_cmd.c attr.qp_type = cmd.qp_type; attr 1592 drivers/infiniband/core/uverbs_cmd.c qp = ib_open_qp(xrcd, &attr); attr 1652 drivers/infiniband/core/uverbs_cmd.c struct ib_qp_attr *attr; attr 1660 drivers/infiniband/core/uverbs_cmd.c attr = kmalloc(sizeof *attr, GFP_KERNEL); attr 1662 drivers/infiniband/core/uverbs_cmd.c if (!attr || !init_attr) { attr 1673 drivers/infiniband/core/uverbs_cmd.c ret = ib_query_qp(qp, attr, cmd.attr_mask, init_attr); attr 1682 drivers/infiniband/core/uverbs_cmd.c resp.qp_state = attr->qp_state; attr 1683 drivers/infiniband/core/uverbs_cmd.c resp.cur_qp_state = attr->cur_qp_state; attr 1684 drivers/infiniband/core/uverbs_cmd.c resp.path_mtu = attr->path_mtu; attr 1685 drivers/infiniband/core/uverbs_cmd.c resp.path_mig_state = attr->path_mig_state; attr 1686 drivers/infiniband/core/uverbs_cmd.c resp.qkey = attr->qkey; attr 1687 drivers/infiniband/core/uverbs_cmd.c resp.rq_psn = attr->rq_psn; attr 1688 drivers/infiniband/core/uverbs_cmd.c resp.sq_psn = attr->sq_psn; attr 1689 drivers/infiniband/core/uverbs_cmd.c resp.dest_qp_num = attr->dest_qp_num; attr 1690 drivers/infiniband/core/uverbs_cmd.c resp.qp_access_flags = attr->qp_access_flags; attr 1691 drivers/infiniband/core/uverbs_cmd.c resp.pkey_index = attr->pkey_index; attr 1692 drivers/infiniband/core/uverbs_cmd.c resp.alt_pkey_index = attr->alt_pkey_index; attr 1693 drivers/infiniband/core/uverbs_cmd.c resp.sq_draining = attr->sq_draining; attr 1694 drivers/infiniband/core/uverbs_cmd.c resp.max_rd_atomic = attr->max_rd_atomic; attr 1695 drivers/infiniband/core/uverbs_cmd.c resp.max_dest_rd_atomic = attr->max_dest_rd_atomic; attr 1696 drivers/infiniband/core/uverbs_cmd.c resp.min_rnr_timer = attr->min_rnr_timer; attr 1697 drivers/infiniband/core/uverbs_cmd.c resp.port_num = attr->port_num; attr 1698 drivers/infiniband/core/uverbs_cmd.c resp.timeout = attr->timeout; attr 1699 drivers/infiniband/core/uverbs_cmd.c resp.retry_cnt = attr->retry_cnt; attr 1700 drivers/infiniband/core/uverbs_cmd.c resp.rnr_retry = attr->rnr_retry; attr 1701 drivers/infiniband/core/uverbs_cmd.c resp.alt_port_num = attr->alt_port_num; attr 1702 drivers/infiniband/core/uverbs_cmd.c resp.alt_timeout = attr->alt_timeout; attr 1704 drivers/infiniband/core/uverbs_cmd.c copy_ah_attr_to_uverbs(&resp.dest, &attr->ah_attr); attr 1705 drivers/infiniband/core/uverbs_cmd.c copy_ah_attr_to_uverbs(&resp.alt_dest, &attr->alt_ah_attr); attr 1717 drivers/infiniband/core/uverbs_cmd.c kfree(attr); attr 1763 drivers/infiniband/core/uverbs_cmd.c struct ib_qp_attr *attr; attr 1767 drivers/infiniband/core/uverbs_cmd.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 1768 drivers/infiniband/core/uverbs_cmd.c if (!attr) attr 1855 drivers/infiniband/core/uverbs_cmd.c attr->qp_state = cmd->base.qp_state; attr 1857 drivers/infiniband/core/uverbs_cmd.c attr->cur_qp_state = cmd->base.cur_qp_state; attr 1859 drivers/infiniband/core/uverbs_cmd.c attr->path_mtu = cmd->base.path_mtu; attr 1861 drivers/infiniband/core/uverbs_cmd.c attr->path_mig_state = cmd->base.path_mig_state; attr 1863 drivers/infiniband/core/uverbs_cmd.c attr->qkey = cmd->base.qkey; attr 1865 drivers/infiniband/core/uverbs_cmd.c attr->rq_psn = cmd->base.rq_psn; attr 1867 drivers/infiniband/core/uverbs_cmd.c attr->sq_psn = cmd->base.sq_psn; attr 1869 drivers/infiniband/core/uverbs_cmd.c attr->dest_qp_num = cmd->base.dest_qp_num; attr 1871 drivers/infiniband/core/uverbs_cmd.c attr->qp_access_flags = cmd->base.qp_access_flags; attr 1873 drivers/infiniband/core/uverbs_cmd.c attr->pkey_index = cmd->base.pkey_index; attr 1875 drivers/infiniband/core/uverbs_cmd.c attr->en_sqd_async_notify = cmd->base.en_sqd_async_notify; attr 1877 drivers/infiniband/core/uverbs_cmd.c attr->max_rd_atomic = cmd->base.max_rd_atomic; attr 1879 drivers/infiniband/core/uverbs_cmd.c attr->max_dest_rd_atomic = cmd->base.max_dest_rd_atomic; attr 1881 drivers/infiniband/core/uverbs_cmd.c attr->min_rnr_timer = cmd->base.min_rnr_timer; attr 1883 drivers/infiniband/core/uverbs_cmd.c attr->port_num = cmd->base.port_num; attr 1885 drivers/infiniband/core/uverbs_cmd.c attr->timeout = cmd->base.timeout; attr 1887 drivers/infiniband/core/uverbs_cmd.c attr->retry_cnt = cmd->base.retry_cnt; attr 1889 drivers/infiniband/core/uverbs_cmd.c attr->rnr_retry = cmd->base.rnr_retry; attr 1891 drivers/infiniband/core/uverbs_cmd.c attr->alt_port_num = cmd->base.alt_port_num; attr 1892 drivers/infiniband/core/uverbs_cmd.c attr->alt_timeout = cmd->base.alt_timeout; attr 1893 drivers/infiniband/core/uverbs_cmd.c attr->alt_pkey_index = cmd->base.alt_pkey_index; attr 1896 drivers/infiniband/core/uverbs_cmd.c attr->rate_limit = cmd->rate_limit; attr 1899 drivers/infiniband/core/uverbs_cmd.c copy_ah_attr_from_uverbs(qp->device, &attr->ah_attr, attr 1903 drivers/infiniband/core/uverbs_cmd.c copy_ah_attr_from_uverbs(qp->device, &attr->alt_ah_attr, attr 1906 drivers/infiniband/core/uverbs_cmd.c ret = ib_modify_qp_with_udata(qp, attr, attr 1914 drivers/infiniband/core/uverbs_cmd.c kfree(attr); attr 2398 drivers/infiniband/core/uverbs_cmd.c struct rdma_ah_attr attr = {}; attr 2410 drivers/infiniband/core/uverbs_cmd.c if (!rdma_is_port_valid(ib_dev, cmd.attr.port_num)) { attr 2421 drivers/infiniband/core/uverbs_cmd.c attr.type = rdma_ah_find_type(ib_dev, cmd.attr.port_num); attr 2422 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_make_grd(&attr, false); attr 2423 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_dlid(&attr, cmd.attr.dlid); attr 2424 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_sl(&attr, cmd.attr.sl); attr 2425 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_path_bits(&attr, cmd.attr.src_path_bits); attr 2426 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_static_rate(&attr, cmd.attr.static_rate); attr 2427 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_port_num(&attr, cmd.attr.port_num); attr 2429 drivers/infiniband/core/uverbs_cmd.c if (cmd.attr.is_global) { attr 2430 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_grh(&attr, NULL, cmd.attr.grh.flow_label, attr 2431 drivers/infiniband/core/uverbs_cmd.c cmd.attr.grh.sgid_index, attr 2432 drivers/infiniband/core/uverbs_cmd.c cmd.attr.grh.hop_limit, attr 2433 drivers/infiniband/core/uverbs_cmd.c cmd.attr.grh.traffic_class); attr 2434 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_dgid_raw(&attr, cmd.attr.grh.dgid); attr 2436 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_ah_flags(&attr, 0); attr 2439 drivers/infiniband/core/uverbs_cmd.c ah = rdma_create_user_ah(pd, &attr, &attrs->driver_udata); attr 3361 drivers/infiniband/core/uverbs_cmd.c struct ib_srq_init_attr attr; attr 3371 drivers/infiniband/core/uverbs_cmd.c attr.ext.tag_matching.max_num_tags = cmd->max_num_tags; attr 3381 drivers/infiniband/core/uverbs_cmd.c attr.ext.xrc.xrcd = (struct ib_xrcd *)xrcd_uobj->object; attr 3382 drivers/infiniband/core/uverbs_cmd.c if (!attr.ext.xrc.xrcd) { attr 3392 drivers/infiniband/core/uverbs_cmd.c attr.ext.cq = uobj_get_obj_read(cq, UVERBS_OBJECT_CQ, attr 3394 drivers/infiniband/core/uverbs_cmd.c if (!attr.ext.cq) { attr 3406 drivers/infiniband/core/uverbs_cmd.c attr.event_handler = ib_uverbs_srq_event_handler; attr 3407 drivers/infiniband/core/uverbs_cmd.c attr.srq_context = attrs->ufile; attr 3408 drivers/infiniband/core/uverbs_cmd.c attr.srq_type = cmd->srq_type; attr 3409 drivers/infiniband/core/uverbs_cmd.c attr.attr.max_wr = cmd->max_wr; attr 3410 drivers/infiniband/core/uverbs_cmd.c attr.attr.max_sge = cmd->max_sge; attr 3411 drivers/infiniband/core/uverbs_cmd.c attr.attr.srq_limit = cmd->srq_limit; attr 3426 drivers/infiniband/core/uverbs_cmd.c srq->event_handler = attr.event_handler; attr 3427 drivers/infiniband/core/uverbs_cmd.c srq->srq_context = attr.srq_context; attr 3429 drivers/infiniband/core/uverbs_cmd.c ret = pd->device->ops.create_srq(srq, &attr, udata); attr 3434 drivers/infiniband/core/uverbs_cmd.c srq->ext.cq = attr.ext.cq; attr 3435 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.ext.cq->usecnt); attr 3439 drivers/infiniband/core/uverbs_cmd.c srq->ext.xrc.xrcd = attr.ext.xrc.xrcd; attr 3440 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.ext.xrc.xrcd->usecnt); attr 3451 drivers/infiniband/core/uverbs_cmd.c resp.max_wr = attr.attr.max_wr; attr 3452 drivers/infiniband/core/uverbs_cmd.c resp.max_sge = attr.attr.max_sge; attr 3464 drivers/infiniband/core/uverbs_cmd.c uobj_put_obj_read(attr.ext.cq); attr 3480 drivers/infiniband/core/uverbs_cmd.c uobj_put_obj_read(attr.ext.cq); attr 3531 drivers/infiniband/core/uverbs_cmd.c struct ib_srq_attr attr; attr 3542 drivers/infiniband/core/uverbs_cmd.c attr.max_wr = cmd.max_wr; attr 3543 drivers/infiniband/core/uverbs_cmd.c attr.srq_limit = cmd.srq_limit; attr 3545 drivers/infiniband/core/uverbs_cmd.c ret = srq->device->ops.modify_srq(srq, &attr, cmd.attr_mask, attr 3557 drivers/infiniband/core/uverbs_cmd.c struct ib_srq_attr attr; attr 3569 drivers/infiniband/core/uverbs_cmd.c ret = ib_query_srq(srq, &attr); attr 3578 drivers/infiniband/core/uverbs_cmd.c resp.max_wr = attr.max_wr; attr 3579 drivers/infiniband/core/uverbs_cmd.c resp.max_sge = attr.max_sge; attr 3580 drivers/infiniband/core/uverbs_cmd.c resp.srq_limit = attr.srq_limit; attr 3614 drivers/infiniband/core/uverbs_cmd.c struct ib_device_attr attr = {0}; attr 3634 drivers/infiniband/core/uverbs_cmd.c err = ib_dev->ops.query_device(ib_dev, &attr, &attrs->driver_udata); attr 3638 drivers/infiniband/core/uverbs_cmd.c copy_query_dev_fields(ucontext, &resp.base, &attr); attr 3640 drivers/infiniband/core/uverbs_cmd.c resp.odp_caps.general_caps = attr.odp_caps.general_caps; attr 3642 drivers/infiniband/core/uverbs_cmd.c attr.odp_caps.per_transport_caps.rc_odp_caps; attr 3644 drivers/infiniband/core/uverbs_cmd.c attr.odp_caps.per_transport_caps.uc_odp_caps; attr 3646 drivers/infiniband/core/uverbs_cmd.c attr.odp_caps.per_transport_caps.ud_odp_caps; attr 3647 drivers/infiniband/core/uverbs_cmd.c resp.xrc_odp_caps = attr.odp_caps.per_transport_caps.xrc_odp_caps; attr 3649 drivers/infiniband/core/uverbs_cmd.c resp.timestamp_mask = attr.timestamp_mask; attr 3650 drivers/infiniband/core/uverbs_cmd.c resp.hca_core_clock = attr.hca_core_clock; attr 3651 drivers/infiniband/core/uverbs_cmd.c resp.device_cap_flags_ex = attr.device_cap_flags; attr 3652 drivers/infiniband/core/uverbs_cmd.c resp.rss_caps.supported_qpts = attr.rss_caps.supported_qpts; attr 3654 drivers/infiniband/core/uverbs_cmd.c attr.rss_caps.max_rwq_indirection_tables; attr 3656 drivers/infiniband/core/uverbs_cmd.c attr.rss_caps.max_rwq_indirection_table_size; attr 3657 drivers/infiniband/core/uverbs_cmd.c resp.max_wq_type_rq = attr.max_wq_type_rq; attr 3658 drivers/infiniband/core/uverbs_cmd.c resp.raw_packet_caps = attr.raw_packet_caps; attr 3659 drivers/infiniband/core/uverbs_cmd.c resp.tm_caps.max_rndv_hdr_size = attr.tm_caps.max_rndv_hdr_size; attr 3660 drivers/infiniband/core/uverbs_cmd.c resp.tm_caps.max_num_tags = attr.tm_caps.max_num_tags; attr 3661 drivers/infiniband/core/uverbs_cmd.c resp.tm_caps.max_ops = attr.tm_caps.max_ops; attr 3662 drivers/infiniband/core/uverbs_cmd.c resp.tm_caps.max_sge = attr.tm_caps.max_sge; attr 3663 drivers/infiniband/core/uverbs_cmd.c resp.tm_caps.flags = attr.tm_caps.flags; attr 3665 drivers/infiniband/core/uverbs_cmd.c attr.cq_caps.max_cq_moderation_count; attr 3667 drivers/infiniband/core/uverbs_cmd.c attr.cq_caps.max_cq_moderation_period; attr 3668 drivers/infiniband/core/uverbs_cmd.c resp.max_dm_size = attr.max_dm_size; attr 3694 drivers/infiniband/core/uverbs_cmd.c ret = rdma_set_cq_moderation(cq, cmd.attr.cq_count, cmd.attr.cq_period); attr 148 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_attr *attr) attr 154 drivers/infiniband/core/uverbs_ioctl.c flags = pbundle->uattrs[attr->ptr_attr.uattr_idx].flags | attr 157 drivers/infiniband/core/uverbs_ioctl.c &pbundle->user_attrs[attr->ptr_attr.uattr_idx].flags)) attr 164 drivers/infiniband/core/uverbs_ioctl.c struct uverbs_objs_arr_attr *attr, attr 185 drivers/infiniband/core/uverbs_ioctl.c attr->uobjects = attr 187 drivers/infiniband/core/uverbs_ioctl.c array_size(array_len, sizeof(*attr->uobjects))); attr 188 drivers/infiniband/core/uverbs_ioctl.c if (IS_ERR(attr->uobjects)) attr 189 drivers/infiniband/core/uverbs_ioctl.c return PTR_ERR(attr->uobjects); attr 197 drivers/infiniband/core/uverbs_ioctl.c idr_vals = (u32 *)(attr->uobjects + array_len) - array_len; attr 209 drivers/infiniband/core/uverbs_ioctl.c attr->uobjects[i] = uverbs_get_uobject_from_file( attr 212 drivers/infiniband/core/uverbs_ioctl.c if (IS_ERR(attr->uobjects[i])) { attr 213 drivers/infiniband/core/uverbs_ioctl.c ret = PTR_ERR(attr->uobjects[i]); attr 218 drivers/infiniband/core/uverbs_ioctl.c attr->len = i; attr 224 drivers/infiniband/core/uverbs_ioctl.c struct uverbs_objs_arr_attr *attr, attr 232 drivers/infiniband/core/uverbs_ioctl.c for (i = 0; i != attr->len; i++) { attr 233 drivers/infiniband/core/uverbs_ioctl.c current_ret = uverbs_finalize_object(attr->uobjects[i], attr 389 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_api_attr *attr; attr 403 drivers/infiniband/core/uverbs_ioctl.c attr = rcu_dereference_protected(*slot, true); attr 409 drivers/infiniband/core/uverbs_ioctl.c ret = uverbs_process_attr(pbundle, attr, uattr, attr_bkey); attr 480 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_attr *attr = attr 483 drivers/infiniband/core/uverbs_ioctl.c if (!IS_ERR(attr)) attr 484 drivers/infiniband/core/uverbs_ioctl.c ret = uverbs_set_output(&pbundle->bundle, attr); attr 509 drivers/infiniband/core/uverbs_ioctl.c struct uverbs_attr *attr = &pbundle->bundle.attrs[i]; attr 513 drivers/infiniband/core/uverbs_ioctl.c attr->obj_attr.uobject, attr 514 drivers/infiniband/core/uverbs_ioctl.c attr->obj_attr.attr_elm->spec.u.obj.access, commit, attr 523 drivers/infiniband/core/uverbs_ioctl.c struct uverbs_attr *attr = &pbundle->bundle.attrs[i]; attr 538 drivers/infiniband/core/uverbs_ioctl.c attr_uapi, &attr->objs_arr_attr, commit, attr 652 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_attr *attr; attr 655 drivers/infiniband/core/uverbs_ioctl.c attr = uverbs_attr_get(attrs_bundle, idx); attr 657 drivers/infiniband/core/uverbs_ioctl.c if (IS_ERR(attr)) { attr 667 drivers/infiniband/core/uverbs_ioctl.c if (attr->ptr_attr.len == 8) attr 668 drivers/infiniband/core/uverbs_ioctl.c flags = attr->ptr_attr.data; attr 669 drivers/infiniband/core/uverbs_ioctl.c else if (attr->ptr_attr.len == 4) attr 670 drivers/infiniband/core/uverbs_ioctl.c flags = *(u32 *)&attr->ptr_attr.data; attr 741 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_attr *attr = uverbs_attr_get(bundle, idx); attr 744 drivers/infiniband/core/uverbs_ioctl.c if (IS_ERR(attr)) attr 745 drivers/infiniband/core/uverbs_ioctl.c return PTR_ERR(attr); attr 747 drivers/infiniband/core/uverbs_ioctl.c min_size = min_t(size_t, attr->ptr_attr.len, size); attr 748 drivers/infiniband/core/uverbs_ioctl.c if (copy_to_user(u64_to_user_ptr(attr->ptr_attr.data), from, min_size)) attr 751 drivers/infiniband/core/uverbs_ioctl.c return uverbs_set_output(bundle, attr); attr 762 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_attr *attr = uverbs_attr_get(bundle, idx); attr 764 drivers/infiniband/core/uverbs_ioctl.c if (IS_ERR(attr)) attr 765 drivers/infiniband/core/uverbs_ioctl.c return PTR_ERR(attr); attr 767 drivers/infiniband/core/uverbs_ioctl.c return uverbs_set_output(bundle, attr); attr 774 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_attr *attr; attr 776 drivers/infiniband/core/uverbs_ioctl.c attr = uverbs_attr_get(attrs_bundle, idx); attr 777 drivers/infiniband/core/uverbs_ioctl.c if (IS_ERR(attr)) { attr 778 drivers/infiniband/core/uverbs_ioctl.c if ((PTR_ERR(attr) != -ENOENT) || !def_val) attr 779 drivers/infiniband/core/uverbs_ioctl.c return PTR_ERR(attr); attr 783 drivers/infiniband/core/uverbs_ioctl.c *to = attr->ptr_attr.data; attr 796 drivers/infiniband/core/uverbs_ioctl.c const struct uverbs_attr *attr = uverbs_attr_get(bundle, idx); attr 798 drivers/infiniband/core/uverbs_ioctl.c if (size < attr->ptr_attr.len) { attr 799 drivers/infiniband/core/uverbs_ioctl.c if (clear_user(u64_to_user_ptr(attr->ptr_attr.data) + size, attr 800 drivers/infiniband/core/uverbs_ioctl.c attr->ptr_attr.len - size)) attr 1190 drivers/infiniband/core/uverbs_main.c static ssize_t ibdev_show(struct device *device, struct device_attribute *attr, attr 1210 drivers/infiniband/core/uverbs_main.c struct device_attribute *attr, char *buf) attr 1229 drivers/infiniband/core/uverbs_main.c &dev_attr_abi_version.attr, attr 1230 drivers/infiniband/core/uverbs_main.c &dev_attr_ibdev.attr, attr 1455 drivers/infiniband/core/uverbs_main.c ret = class_create_file(uverbs_class, &class_attr_abi_version.attr); attr 70 drivers/infiniband/core/uverbs_std_types_cq.c struct ib_cq_init_attr attr = {}; attr 78 drivers/infiniband/core/uverbs_std_types_cq.c ret = uverbs_copy_from(&attr.comp_vector, attrs, attr 81 drivers/infiniband/core/uverbs_std_types_cq.c ret = uverbs_copy_from(&attr.cqe, attrs, attr 89 drivers/infiniband/core/uverbs_std_types_cq.c ret = uverbs_get_flags32(&attr.flags, attrs, attr 104 drivers/infiniband/core/uverbs_std_types_cq.c if (attr.comp_vector >= attrs->ufile->device->num_comp_vectors) { attr 128 drivers/infiniband/core/uverbs_std_types_cq.c ret = ib_dev->ops.create_cq(cq, &attr, &attrs->driver_udata); attr 132 drivers/infiniband/core/uverbs_std_types_device.c void copy_port_attr_to_resp(struct ib_port_attr *attr, attr 136 drivers/infiniband/core/uverbs_std_types_device.c resp->state = attr->state; attr 137 drivers/infiniband/core/uverbs_std_types_device.c resp->max_mtu = attr->max_mtu; attr 138 drivers/infiniband/core/uverbs_std_types_device.c resp->active_mtu = attr->active_mtu; attr 139 drivers/infiniband/core/uverbs_std_types_device.c resp->gid_tbl_len = attr->gid_tbl_len; attr 140 drivers/infiniband/core/uverbs_std_types_device.c resp->port_cap_flags = make_port_cap_flags(attr); attr 141 drivers/infiniband/core/uverbs_std_types_device.c resp->max_msg_sz = attr->max_msg_sz; attr 142 drivers/infiniband/core/uverbs_std_types_device.c resp->bad_pkey_cntr = attr->bad_pkey_cntr; attr 143 drivers/infiniband/core/uverbs_std_types_device.c resp->qkey_viol_cntr = attr->qkey_viol_cntr; attr 144 drivers/infiniband/core/uverbs_std_types_device.c resp->pkey_tbl_len = attr->pkey_tbl_len; attr 150 drivers/infiniband/core/uverbs_std_types_device.c resp->lid = OPA_TO_IB_UCAST_LID(attr->lid); attr 151 drivers/infiniband/core/uverbs_std_types_device.c resp->sm_lid = OPA_TO_IB_UCAST_LID(attr->sm_lid); attr 153 drivers/infiniband/core/uverbs_std_types_device.c resp->lid = ib_lid_cpu16(attr->lid); attr 154 drivers/infiniband/core/uverbs_std_types_device.c resp->sm_lid = ib_lid_cpu16(attr->sm_lid); attr 157 drivers/infiniband/core/uverbs_std_types_device.c resp->lmc = attr->lmc; attr 158 drivers/infiniband/core/uverbs_std_types_device.c resp->max_vl_num = attr->max_vl_num; attr 159 drivers/infiniband/core/uverbs_std_types_device.c resp->sm_sl = attr->sm_sl; attr 160 drivers/infiniband/core/uverbs_std_types_device.c resp->subnet_timeout = attr->subnet_timeout; attr 161 drivers/infiniband/core/uverbs_std_types_device.c resp->init_type_reply = attr->init_type_reply; attr 162 drivers/infiniband/core/uverbs_std_types_device.c resp->active_width = attr->active_width; attr 163 drivers/infiniband/core/uverbs_std_types_device.c resp->active_speed = attr->active_speed; attr 164 drivers/infiniband/core/uverbs_std_types_device.c resp->phys_state = attr->phys_state; attr 172 drivers/infiniband/core/uverbs_std_types_device.c struct ib_port_attr attr = {}; attr 192 drivers/infiniband/core/uverbs_std_types_device.c ret = ib_query_port(ib_dev, port_num, &attr); attr 196 drivers/infiniband/core/uverbs_std_types_device.c copy_port_attr_to_resp(&attr, &resp.legacy_resp, ib_dev, port_num); attr 197 drivers/infiniband/core/uverbs_std_types_device.c resp.port_cap_flags2 = attr.port_cap_flags2; attr 54 drivers/infiniband/core/uverbs_std_types_dm.c struct ib_dm_alloc_attr attr = {}; attr 65 drivers/infiniband/core/uverbs_std_types_dm.c ret = uverbs_copy_from(&attr.length, attrs, attr 70 drivers/infiniband/core/uverbs_std_types_dm.c ret = uverbs_copy_from(&attr.alignment, attrs, attr 75 drivers/infiniband/core/uverbs_std_types_dm.c dm = ib_dev->ops.alloc_dm(ib_dev, attrs->context, &attr, attrs); attr 80 drivers/infiniband/core/uverbs_std_types_dm.c dm->length = attr.length; attr 84 drivers/infiniband/core/uverbs_std_types_mr.c struct ib_dm_mr_attr attr = {}; attr 99 drivers/infiniband/core/uverbs_std_types_mr.c ret = uverbs_copy_from(&attr.offset, attrs, UVERBS_ATTR_REG_DM_MR_OFFSET); attr 103 drivers/infiniband/core/uverbs_std_types_mr.c ret = uverbs_copy_from(&attr.length, attrs, attr 108 drivers/infiniband/core/uverbs_std_types_mr.c ret = uverbs_get_flags32(&attr.access_flags, attrs, attr 114 drivers/infiniband/core/uverbs_std_types_mr.c if (!(attr.access_flags & IB_ZERO_BASED)) attr 117 drivers/infiniband/core/uverbs_std_types_mr.c ret = ib_check_mr_access(attr.access_flags); attr 121 drivers/infiniband/core/uverbs_std_types_mr.c if (attr.offset > dm->length || attr.length > dm->length || attr 122 drivers/infiniband/core/uverbs_std_types_mr.c attr.length > dm->length - attr.offset) attr 125 drivers/infiniband/core/uverbs_std_types_mr.c mr = pd->device->ops.reg_dm_mr(pd, dm, &attr, attrs); attr 131 drivers/infiniband/core/uverbs_uapi.c const struct uverbs_attr_def *attr = (*method->attrs)[i]; attr 134 drivers/infiniband/core/uverbs_uapi.c if (!attr) attr 142 drivers/infiniband/core/uverbs_uapi.c if (attr->attr.type == UVERBS_ATTR_TYPE_ENUM_IN) attr 149 drivers/infiniband/core/uverbs_uapi.c if (attr->attr.type == UVERBS_ATTR_TYPE_IDRS_ARRAY) { attr 150 drivers/infiniband/core/uverbs_uapi.c u8 access = attr->attr.u2.objs_arr.access; attr 158 drivers/infiniband/core/uverbs_uapi.c uapi_add_elm(uapi, method_key | uapi_key_attr(attr->id), attr 164 drivers/infiniband/core/uverbs_uapi.c attr_slot->spec = attr->attr; attr 868 drivers/infiniband/core/verbs.c void rdma_move_grh_sgid_attr(struct rdma_ah_attr *attr, union ib_gid *dgid, attr 872 drivers/infiniband/core/verbs.c rdma_ah_set_grh(attr, dgid, flow_label, sgid_attr->index, hop_limit, attr 874 drivers/infiniband/core/verbs.c attr->grh.sgid_attr = sgid_attr; attr 1617 drivers/infiniband/core/verbs.c static int _ib_modify_qp(struct ib_qp *qp, struct ib_qp_attr *attr, attr 1620 drivers/infiniband/core/verbs.c u8 port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; attr 1626 drivers/infiniband/core/verbs.c ret = rdma_fill_sgid_attr(qp->device, &attr->ah_attr, attr 1639 drivers/infiniband/core/verbs.c ret = rdma_fill_sgid_attr(qp->device, &attr->alt_ah_attr, attr 1649 drivers/infiniband/core/verbs.c attr->alt_ah_attr.port_num) && attr 1661 drivers/infiniband/core/verbs.c attr->ah_attr.type == RDMA_AH_ATTR_TYPE_ROCE && attr 1663 drivers/infiniband/core/verbs.c ret = ib_resolve_eth_dmac(qp->device, &attr->ah_attr); attr 1669 drivers/infiniband/core/verbs.c if (attr_mask & IB_QP_RQ_PSN && attr->rq_psn & ~0xffffff) { attr 1673 drivers/infiniband/core/verbs.c attr->rq_psn &= 0xffffff; attr 1676 drivers/infiniband/core/verbs.c if (attr_mask & IB_QP_SQ_PSN && attr->sq_psn & ~0xffffff) { attr 1680 drivers/infiniband/core/verbs.c attr->sq_psn &= 0xffffff; attr 1689 drivers/infiniband/core/verbs.c ((attr_mask & IB_QP_STATE) && attr->qp_state == IB_QPS_INIT)) attr 1690 drivers/infiniband/core/verbs.c rdma_counter_bind_qp_auto(qp, attr->port_num); attr 1692 drivers/infiniband/core/verbs.c ret = ib_security_modify_qp(qp, attr, attr_mask, udata); attr 1697 drivers/infiniband/core/verbs.c qp->port = attr->port_num; attr 1700 drivers/infiniband/core/verbs.c rdma_update_sgid_attr(&attr->ah_attr, qp->av_sgid_attr); attr 1703 drivers/infiniband/core/verbs.c &attr->alt_ah_attr, qp->alt_path_sgid_attr); attr 1707 drivers/infiniband/core/verbs.c rdma_unfill_sgid_attr(&attr->alt_ah_attr, old_sgid_attr_alt_av); attr 1710 drivers/infiniband/core/verbs.c rdma_unfill_sgid_attr(&attr->ah_attr, old_sgid_attr_av); attr 1725 drivers/infiniband/core/verbs.c int ib_modify_qp_with_udata(struct ib_qp *ib_qp, struct ib_qp_attr *attr, attr 1728 drivers/infiniband/core/verbs.c return _ib_modify_qp(ib_qp->real_qp, attr, attr_mask, udata); attr 2148 drivers/infiniband/core/verbs.c struct ib_qp_attr attr = {}; attr 2155 drivers/infiniband/core/verbs.c if (!ib_query_qp(qp, &attr, IB_QP_STATE | IB_QP_PORT, &init_attr)) { attr 2156 drivers/infiniband/core/verbs.c if (attr.qp_state >= IB_QPS_INIT) { attr 2157 drivers/infiniband/core/verbs.c if (rdma_port_get_link_layer(qp->device, attr.port_num) != attr 2633 drivers/infiniband/core/verbs.c struct ib_qp_attr attr = { .qp_state = IB_QPS_ERR }; attr 2644 drivers/infiniband/core/verbs.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE); attr 2672 drivers/infiniband/core/verbs.c struct ib_qp_attr attr = { .qp_state = IB_QPS_ERR }; attr 2677 drivers/infiniband/core/verbs.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE); attr 304 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_del_gid(const struct ib_gid_attr *attr, void **context) attr 308 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_dev *rdev = to_bnxt_re_dev(attr->device, ibdev); attr 357 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_add_gid(const struct ib_gid_attr *attr, void **context) attr 363 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_dev *rdev = to_bnxt_re_dev(attr->device, ibdev); attr 366 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = rdma_read_gid_l2_fields(attr, &vlan_id, NULL); attr 370 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_add_sgid(sgid_tbl, (struct bnxt_qplib_gid *)&attr->gid, attr 1352 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (srq_init_attr->attr.max_wr >= dev_attr->max_srq_wqes) { attr 1369 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(srq_init_attr->attr.max_wr + 1); attr 1374 drivers/infiniband/hw/bnxt_re/ib_verbs.c srq->qplib_srq.max_sge = srq_init_attr->attr.max_sge; attr 1375 drivers/infiniband/hw/bnxt_re/ib_verbs.c srq->qplib_srq.threshold = srq_init_attr->attr.srq_limit; attr 1376 drivers/infiniband/hw/bnxt_re/ib_verbs.c srq->srq_limit = srq_init_attr->attr.srq_limit; attr 2533 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 2540 drivers/infiniband/hw/bnxt_re/ib_verbs.c int cqe = attr->cqe; attr 158 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_del_gid(const struct ib_gid_attr *attr, void **context); attr 159 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_add_gid(const struct ib_gid_attr *attr, void **context); attr 193 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 564 drivers/infiniband/hw/bnxt_re/main.c static ssize_t hw_rev_show(struct device *device, struct device_attribute *attr, attr 575 drivers/infiniband/hw/bnxt_re/main.c struct device_attribute *attr, char *buf) attr 585 drivers/infiniband/hw/bnxt_re/main.c &dev_attr_hw_rev.attr, attr 586 drivers/infiniband/hw/bnxt_re/main.c &dev_attr_hca_type.attr, attr 78 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_dev_attr *attr, bool vf) attr 106 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_qp = le32_to_cpu(sb->max_qp); attr 109 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_qp += 1; attr 110 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_qp_rd_atom = attr 113 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_qp_init_rd_atom = attr 116 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_qp_wqes = le16_to_cpu(sb->max_qp_wr); attr 121 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_qp_wqes -= BNXT_QPLIB_RESERVED_QP_WRS; attr 122 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ? attr 124 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_cq = le32_to_cpu(sb->max_cq); attr 125 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_cq_wqes = le32_to_cpu(sb->max_cqe); attr 126 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_cq_sges = attr->max_qp_sges; attr 127 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_mr = le32_to_cpu(sb->max_mr); attr 128 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_mw = le32_to_cpu(sb->max_mw); attr 130 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_mr_size = le64_to_cpu(sb->max_mr_size); attr 131 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_pd = 64 * 1024; attr 132 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_raw_ethy_qp = le32_to_cpu(sb->max_raw_eth_qp); attr 133 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_ah = le32_to_cpu(sb->max_ah); attr 135 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_fmr = le32_to_cpu(sb->max_fmr); attr 136 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_map_per_fmr = sb->max_map_per_fmr; attr 138 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_srq = le16_to_cpu(sb->max_srq); attr 139 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_srq_wqes = le32_to_cpu(sb->max_srq_wr) - 1; attr 140 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_srq_sges = sb->max_srq_sge; attr 141 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_pkey = le32_to_cpu(sb->max_pkeys); attr 147 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (attr->max_pkey > 0xFFFF) { attr 149 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_pkey = 0xFFFF; attr 152 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_inline_data = le32_to_cpu(sb->max_inline_data); attr 153 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->l2_db_size = (sb->l2_db_space_size + 1) * attr 155 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->max_sgid = le32_to_cpu(sb->max_gid); attr 157 drivers/infiniband/hw/bnxt_re/qplib_sp.c bnxt_qplib_query_version(rcfw, attr->fw_ver); attr 162 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->tqm_alloc_reqs[i * 4] = *tqm_alloc; attr 163 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->tqm_alloc_reqs[i * 4 + 1] = *(++tqm_alloc); attr 164 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->tqm_alloc_reqs[i * 4 + 2] = *(++tqm_alloc); attr 165 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->tqm_alloc_reqs[i * 4 + 3] = *(++tqm_alloc); attr 168 drivers/infiniband/hw/bnxt_re/qplib_sp.c attr->is_atomic = false; attr 245 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_dev_attr *attr, bool vf); attr 809 drivers/infiniband/hw/cxgb3/cxio_hal.c int cxio_rdma_init(struct cxio_rdev *rdev_p, struct t3_rdma_init_attr *attr) attr 818 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->wrh.gen_tid_len = cpu_to_be32(V_FW_RIWR_TID(attr->tid) | attr 821 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->qpid = cpu_to_be32(attr->qpid); attr 822 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->pdid = cpu_to_be32(attr->pdid); attr 823 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->scqid = cpu_to_be32(attr->scqid); attr 824 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->rcqid = cpu_to_be32(attr->rcqid); attr 825 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->rq_addr = cpu_to_be32(attr->rq_addr - rdev_p->rnic_info.rqt_base); attr 826 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->rq_size = cpu_to_be32(attr->rq_size); attr 827 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->mpaattrs = attr->mpaattrs; attr 828 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->qpcaps = attr->qpcaps; attr 829 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->ulpdu_size = cpu_to_be16(attr->tcp_emss); attr 830 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->rqe_count = cpu_to_be16(attr->rqe_count); attr 831 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->flags_rtr_type = cpu_to_be16(attr->flags | attr 832 drivers/infiniband/hw/cxgb3/cxio_hal.c V_RTR_TYPE(attr->rtr_type) | attr 833 drivers/infiniband/hw/cxgb3/cxio_hal.c V_CHAN(attr->chan)); attr 834 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->ord = cpu_to_be32(attr->ord); attr 835 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->ird = cpu_to_be32(attr->ird); attr 836 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->qp_dma_addr = cpu_to_be64(attr->qp_dma_addr); attr 837 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->qp_dma_size = cpu_to_be32(attr->qp_dma_size); attr 838 drivers/infiniband/hw/cxgb3/cxio_hal.c wqe->irs = cpu_to_be32(attr->irs); attr 182 drivers/infiniband/hw/cxgb3/cxio_hal.h int cxio_rdma_init(struct cxio_rdev *rdev, struct t3_rdma_init_attr *attr); attr 106 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_qps = T3_MAX_NUM_QP - 32; attr 107 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_wrs = T3_MAX_QP_DEPTH; attr 108 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_sge_per_wr = T3_MAX_SGE; attr 109 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_sge_per_rdma_write_wr = T3_MAX_SGE; attr 110 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_cqs = T3_MAX_NUM_CQ - 1; attr 111 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_cqes_per_cq = T3_MAX_CQ_DEPTH; attr 112 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_mem_regs = cxio_num_stags(&rnicp->rdev); attr 113 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_phys_buf_entries = T3_MAX_PBL_SIZE; attr 114 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_pds = T3_MAX_NUM_PD - 1; attr 115 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.mem_pgsizes_bitmask = T3_PAGESIZE_MASK; attr 116 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_mr_size = T3_MAX_MR_SIZE; attr 117 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.can_resize_wq = 0; attr 118 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_rdma_reads_per_qp = 8; attr 119 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_rdma_read_resources = attr 120 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_rdma_reads_per_qp * rnicp->attr.max_qps; attr 121 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_rdma_read_qp_depth = 8; /* IRD */ attr 122 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_rdma_read_depth = attr 123 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_rdma_read_qp_depth * rnicp->attr.max_qps; attr 124 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.rq_overflow_handled = 0; attr 125 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.can_modify_ird = 0; attr 126 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.can_modify_ord = 0; attr 127 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.max_mem_windows = rnicp->attr.max_mem_regs - 1; attr 128 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.stag0_value = 1; attr 129 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.zbva_support = 1; attr 130 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.local_invalidate_fence = 1; attr 131 drivers/infiniband/hw/cxgb3/iwch.c rnicp->attr.cq_overflow_detection = 1; attr 108 drivers/infiniband/hw/cxgb3/iwch.h struct iwch_rnic_attributes attr; attr 1691 drivers/infiniband/hw/cxgb3/iwch_cm.c skb_copy_from_linear_data(skb, ep->com.qp->attr.terminate_buffer, attr 1693 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp->attr.terminate_msg_len = skb->len; attr 1694 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp->attr.is_terminate_local = 0; attr 1798 drivers/infiniband/hw/cxgb3/iwch_cm.c if ((conn_param->ord > qp->rhp->attr.max_rdma_read_qp_depth) || attr 1799 drivers/infiniband/hw/cxgb3/iwch_cm.c (conn_param->ird > qp->rhp->attr.max_rdma_reads_per_qp)) { attr 62 drivers/infiniband/hw/cxgb3/iwch_ev.c if ((qhp->attr.state == IWCH_QP_STATE_ERROR) || attr 63 drivers/infiniband/hw/cxgb3/iwch_ev.c (qhp->attr.state == IWCH_QP_STATE_TERMINATE)) { attr 66 drivers/infiniband/hw/cxgb3/iwch_ev.c qhp->attr.state, qhp->wq.qpid, attr 81 drivers/infiniband/hw/cxgb3/iwch_ev.c if (qhp->attr.state == IWCH_QP_STATE_RTS) { attr 47 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.state = 1; attr 48 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.stag = stag; attr 62 drivers/infiniband/hw/cxgb3/iwch_mem.c &stag, mhp->attr.pdid, attr 63 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.perms, attr 64 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.zbva, attr 65 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.va_fbo, attr 66 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.len, attr 68 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.pbl_size, mhp->attr.pbl_addr)) attr 73 drivers/infiniband/hw/cxgb3/iwch_mem.c cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, attr 74 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.pbl_addr); attr 80 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.pbl_addr = cxio_hal_pblpool_alloc(&mhp->rhp->rdev, attr 83 drivers/infiniband/hw/cxgb3/iwch_mem.c if (!mhp->attr.pbl_addr) attr 86 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.pbl_size = npages; attr 93 drivers/infiniband/hw/cxgb3/iwch_mem.c cxio_hal_pblpool_free(&mhp->rhp->rdev, mhp->attr.pbl_addr, attr 94 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.pbl_size << 3); attr 100 drivers/infiniband/hw/cxgb3/iwch_mem.c mhp->attr.pbl_addr + (offset << 3), npages); attr 106 drivers/infiniband/hw/cxgb3/iwch_provider.c const struct ib_cq_init_attr *attr, attr 110 drivers/infiniband/hw/cxgb3/iwch_provider.c int entries = attr->cqe; attr 119 drivers/infiniband/hw/cxgb3/iwch_provider.c if (attr->flags) attr 342 drivers/infiniband/hw/cxgb3/iwch_provider.c mmid = mhp->attr.stag >> 8; attr 343 drivers/infiniband/hw/cxgb3/iwch_provider.c cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, attr 344 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pbl_addr); attr 410 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pdid = php->pdid; attr 411 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.zbva = 0; attr 413 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.perms = iwch_ib_to_tpt_access(acc); attr 414 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.va_fbo = 0; attr 415 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.page_size = shift - 12; attr 417 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.len = (u32) total_size; attr 418 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pbl_size = npages; attr 496 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pdid = php->pdid; attr 497 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.zbva = 0; attr 498 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.perms = iwch_ib_to_tpt_access(acc); attr 499 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.va_fbo = virt; attr 500 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.page_size = shift - 12; attr 501 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.len = (u32) length; attr 508 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.pbl_addr = (mhp->attr.pbl_addr - attr 555 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pdid = php->pdid; attr 556 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.type = TPT_MW; attr 557 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.stag = stag; attr 561 drivers/infiniband/hw/cxgb3/iwch_provider.c cxio_deallocate_window(&rhp->rdev, mhp->attr.stag); attr 578 drivers/infiniband/hw/cxgb3/iwch_provider.c cxio_deallocate_window(&rhp->rdev, mhp->attr.stag); attr 613 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pbl_size = max_num_sg; attr 615 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pbl_size, mhp->attr.pbl_addr); attr 618 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pdid = php->pdid; attr 619 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.type = TPT_NON_SHARED_MR; attr 620 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.stag = stag; attr 621 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.state = 1; attr 631 drivers/infiniband/hw/cxgb3/iwch_provider.c cxio_dereg_mem(&rhp->rdev, stag, mhp->attr.pbl_size, attr 632 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->attr.pbl_addr); attr 647 drivers/infiniband/hw/cxgb3/iwch_provider.c if (unlikely(mhp->npages == mhp->attr.pbl_size)) attr 769 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.pd = php->pdid; attr 770 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.scq = ((struct iwch_cq *) attrs->send_cq)->cq.cqid; attr 771 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.rcq = ((struct iwch_cq *) attrs->recv_cq)->cq.cqid; attr 772 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.sq_num_entries = attrs->cap.max_send_wr; attr 773 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.rq_num_entries = attrs->cap.max_recv_wr; attr 774 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.sq_max_sges = attrs->cap.max_send_sge; attr 775 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.sq_max_sges_rdma_write = attrs->cap.max_send_sge; attr 776 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.rq_max_sges = attrs->cap.max_recv_sge; attr 777 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.state = IWCH_QP_STATE_IDLE; attr 778 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.next_state = IWCH_QP_STATE_IDLE; attr 785 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.enable_rdma_read = 1; attr 786 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.enable_rdma_write = 1; attr 787 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.enable_bind = 1; attr 788 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.max_ord = 1; attr 789 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.max_ird = 1; attr 847 drivers/infiniband/hw/cxgb3/iwch_provider.c __func__, qhp->attr.sq_num_entries, qhp->attr.rq_num_entries, attr 853 drivers/infiniband/hw/cxgb3/iwch_provider.c static int iwch_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 864 drivers/infiniband/hw/cxgb3/iwch_provider.c if ((attr_mask & IB_QP_STATE) && (attr->qp_state == IB_QPS_RTR)) attr 874 drivers/infiniband/hw/cxgb3/iwch_provider.c attrs.next_state = iwch_convert_state(attr->qp_state); attr 875 drivers/infiniband/hw/cxgb3/iwch_provider.c attrs.enable_rdma_read = (attr->qp_access_flags & attr 877 drivers/infiniband/hw/cxgb3/iwch_provider.c attrs.enable_rdma_write = (attr->qp_access_flags & attr 879 drivers/infiniband/hw/cxgb3/iwch_provider.c attrs.enable_bind = (attr->qp_access_flags & IB_ACCESS_MW_BIND) ? 1 : 0; attr 970 drivers/infiniband/hw/cxgb3/iwch_provider.c props->page_size_cap = dev->attr.mem_pgsizes_bitmask; attr 973 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_mr_size = dev->attr.max_mr_size; attr 974 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_qp = dev->attr.max_qps; attr 975 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_qp_wr = dev->attr.max_wrs; attr 976 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_send_sge = dev->attr.max_sge_per_wr; attr 977 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_recv_sge = dev->attr.max_sge_per_wr; attr 979 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_qp_rd_atom = dev->attr.max_rdma_reads_per_qp; attr 980 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_qp_init_rd_atom = dev->attr.max_rdma_reads_per_qp; attr 981 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_cq = dev->attr.max_cqs; attr 982 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_cqe = dev->attr.max_cqes_per_cq; attr 983 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_mr = dev->attr.max_mem_regs; attr 984 drivers/infiniband/hw/cxgb3/iwch_provider.c props->max_pd = dev->attr.max_pds; attr 1012 drivers/infiniband/hw/cxgb3/iwch_provider.c struct device_attribute *attr, char *buf) attr 1023 drivers/infiniband/hw/cxgb3/iwch_provider.c struct device_attribute *attr, char *buf) attr 1037 drivers/infiniband/hw/cxgb3/iwch_provider.c struct device_attribute *attr, char *buf) attr 1164 drivers/infiniband/hw/cxgb3/iwch_provider.c &dev_attr_hw_rev.attr, attr 1165 drivers/infiniband/hw/cxgb3/iwch_provider.c &dev_attr_hca_type.attr, attr 1166 drivers/infiniband/hw/cxgb3/iwch_provider.c &dev_attr_board_id.attr, attr 1177 drivers/infiniband/hw/cxgb3/iwch_provider.c struct ib_port_attr attr; attr 1182 drivers/infiniband/hw/cxgb3/iwch_provider.c err = ib_query_port(ibdev, port_num, &attr); attr 1186 drivers/infiniband/hw/cxgb3/iwch_provider.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 1187 drivers/infiniband/hw/cxgb3/iwch_provider.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 79 drivers/infiniband/hw/cxgb3/iwch_provider.h struct tpt_attributes attr; attr 95 drivers/infiniband/hw/cxgb3/iwch_provider.h struct tpt_attributes attr; attr 165 drivers/infiniband/hw/cxgb3/iwch_provider.h struct iwch_qp_attributes attr; attr 214 drivers/infiniband/hw/cxgb3/iwch_qp.c if (!mhp->attr.state) { attr 218 drivers/infiniband/hw/cxgb3/iwch_qp.c if (mhp->attr.zbva) { attr 223 drivers/infiniband/hw/cxgb3/iwch_qp.c if (sg_list[i].addr < mhp->attr.va_fbo) { attr 233 drivers/infiniband/hw/cxgb3/iwch_qp.c mhp->attr.va_fbo + ((u64) mhp->attr.len)) { attr 237 drivers/infiniband/hw/cxgb3/iwch_qp.c offset = sg_list[i].addr - mhp->attr.va_fbo; attr 238 drivers/infiniband/hw/cxgb3/iwch_qp.c offset += mhp->attr.va_fbo & attr 239 drivers/infiniband/hw/cxgb3/iwch_qp.c ((1UL << (12 + mhp->attr.page_size)) - 1); attr 240 drivers/infiniband/hw/cxgb3/iwch_qp.c pbl_addr[i] = ((mhp->attr.pbl_addr - attr 242 drivers/infiniband/hw/cxgb3/iwch_qp.c (offset >> (12 + mhp->attr.page_size)); attr 243 drivers/infiniband/hw/cxgb3/iwch_qp.c page_size[i] = mhp->attr.page_size; attr 368 drivers/infiniband/hw/cxgb3/iwch_qp.c if (qhp->attr.state > IWCH_QP_STATE_RTS) { attr 478 drivers/infiniband/hw/cxgb3/iwch_qp.c if (qhp->attr.state > IWCH_QP_STATE_RTS) { attr 777 drivers/infiniband/hw/cxgb3/iwch_qp.c rchp = get_chp(qhp->rhp, qhp->attr.rcq); attr 778 drivers/infiniband/hw/cxgb3/iwch_qp.c schp = get_chp(qhp->rhp, qhp->attr.scq); attr 824 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.pdid = qhp->attr.pd; attr 825 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.scqid = qhp->attr.scq; attr 826 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.rcqid = qhp->attr.rcq; attr 830 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.mpa_attr.recv_marker_enabled | attr 831 drivers/infiniband/hw/cxgb3/iwch_qp.c (qhp->attr.mpa_attr.xmit_marker_enabled << 1) | attr 832 drivers/infiniband/hw/cxgb3/iwch_qp.c (qhp->attr.mpa_attr.crc_enabled << 2); attr 842 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.ord = qhp->attr.max_ord; attr 843 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.ird = qhp->attr.max_ird; attr 847 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.flags = qhp->attr.mpa_attr.initiator ? MPA_INITIATOR : 0; attr 851 drivers/infiniband/hw/cxgb3/iwch_qp.c if (init_attr.ord == 0 && qhp->attr.mpa_attr.initiator) attr 853 drivers/infiniband/hw/cxgb3/iwch_qp.c if (init_attr.ird == 0 && !qhp->attr.mpa_attr.initiator) attr 873 drivers/infiniband/hw/cxgb3/iwch_qp.c struct iwch_qp_attributes newattr = qhp->attr; attr 882 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp, qhp->wq.qpid, qhp->ep, qhp->attr.state, attr 889 drivers/infiniband/hw/cxgb3/iwch_qp.c if (qhp->attr.state != IWCH_QP_STATE_IDLE) { attr 901 drivers/infiniband/hw/cxgb3/iwch_qp.c rhp->attr.max_rdma_read_qp_depth) { attr 909 drivers/infiniband/hw/cxgb3/iwch_qp.c rhp->attr.max_rdma_reads_per_qp) { attr 915 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr = newattr; attr 920 drivers/infiniband/hw/cxgb3/iwch_qp.c if (qhp->attr.state == attrs->next_state) attr 923 drivers/infiniband/hw/cxgb3/iwch_qp.c switch (qhp->attr.state) { attr 935 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.mpa_attr = attrs->mpa_attr; attr 936 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.llp_stream_handle = attrs->llp_stream_handle; attr 937 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->ep = qhp->attr.llp_stream_handle; attr 938 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_RTS; attr 954 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_ERROR; attr 966 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_CLOSING; attr 975 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_TERMINATE; attr 982 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_ERROR; attr 1004 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_IDLE; attr 1005 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.llp_stream_handle = NULL; attr 1028 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_IDLE; attr 1038 drivers/infiniband/hw/cxgb3/iwch_qp.c pr_err("%s in a bad state %d\n", __func__, qhp->attr.state); attr 1049 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.llp_stream_handle = NULL; attr 1052 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->attr.state = IWCH_QP_STATE_ERROR; attr 1080 drivers/infiniband/hw/cxgb3/iwch_qp.c pr_debug("%s exit state %d\n", __func__, qhp->attr.state); attr 990 drivers/infiniband/hw/cxgb4/cq.c int c4iw_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 994 drivers/infiniband/hw/cxgb4/cq.c int entries = attr->cqe; attr 995 drivers/infiniband/hw/cxgb4/cq.c int vector = attr->comp_vector; attr 1007 drivers/infiniband/hw/cxgb4/cq.c if (attr->flags) attr 273 drivers/infiniband/hw/cxgb4/device.c (int)qp->attr.state, attr 293 drivers/infiniband/hw/cxgb4/device.c (int)qp->attr.state, attr 307 drivers/infiniband/hw/cxgb4/device.c (int)qp->attr.state, attr 98 drivers/infiniband/hw/cxgb4/ev.c if (qhp->attr.state == C4IW_QP_STATE_RTS) { attr 139 drivers/infiniband/hw/cxgb4/ev.c cqid = qhp->attr.scq; attr 141 drivers/infiniband/hw/cxgb4/ev.c cqid = qhp->attr.rcq; attr 401 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct tpt_attributes attr; attr 419 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct tpt_attributes attr; attr 489 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct c4iw_qp_attributes attr; attr 996 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 999 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_modify_srq(struct ib_srq *ib_srq, struct ib_srq_attr *attr, attr 1009 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1011 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 397 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.state = 1; attr 398 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.stag = stag; attr 401 drivers/infiniband/hw/cxgb4/mem.c mhp->ibmr.length = mhp->attr.len; attr 402 drivers/infiniband/hw/cxgb4/mem.c mhp->ibmr.iova = mhp->attr.va_fbo; attr 403 drivers/infiniband/hw/cxgb4/mem.c mhp->ibmr.page_size = 1U << (mhp->attr.page_size + 12); attr 414 drivers/infiniband/hw/cxgb4/mem.c ret = write_tpt_entry(&rhp->rdev, 0, &stag, 1, mhp->attr.pdid, attr 415 drivers/infiniband/hw/cxgb4/mem.c FW_RI_STAG_NSMR, mhp->attr.len ? attr 416 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.perms : 0, attr 417 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.mw_bind_enable, mhp->attr.zbva, attr 418 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.va_fbo, mhp->attr.len ? attr 419 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.len : -1, shift - 12, attr 420 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size, mhp->attr.pbl_addr, NULL, attr 427 drivers/infiniband/hw/cxgb4/mem.c dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, attr 428 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_addr, mhp->dereg_skb, mhp->wr_waitp); attr 436 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_addr = c4iw_pblpool_alloc(&mhp->rhp->rdev, attr 439 drivers/infiniband/hw/cxgb4/mem.c if (!mhp->attr.pbl_addr) attr 442 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size = npages; attr 476 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pdid = php->pdid; attr 477 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.perms = c4iw_ib_to_tpt_access(acc); attr 478 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.mw_bind_enable = (acc&IB_ACCESS_MW_BIND) == IB_ACCESS_MW_BIND; attr 479 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.zbva = 0; attr 480 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.va_fbo = 0; attr 481 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.page_size = 0; attr 482 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.len = ~0ULL; attr 483 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size = 0; attr 486 drivers/infiniband/hw/cxgb4/mem.c FW_RI_STAG_NSMR, mhp->attr.perms, attr 487 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.mw_bind_enable, 0, 0, ~0ULL, 0, 0, 0, attr 497 drivers/infiniband/hw/cxgb4/mem.c dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, attr 498 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_addr, mhp->dereg_skb, mhp->wr_waitp); attr 569 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_addr + (n << 3), i, attr 580 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_addr + (n << 3), i, attr 588 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pdid = php->pdid; attr 589 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.zbva = 0; attr 590 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.perms = c4iw_ib_to_tpt_access(acc); attr 591 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.va_fbo = virt; attr 592 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.page_size = shift - 12; attr 593 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.len = length; attr 602 drivers/infiniband/hw/cxgb4/mem.c c4iw_pblpool_free(&mhp->rhp->rdev, mhp->attr.pbl_addr, attr 603 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size << 3); attr 650 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pdid = php->pdid; attr 651 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.type = FW_RI_STAG_MW; attr 652 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.stag = stag; attr 663 drivers/infiniband/hw/cxgb4/mem.c deallocate_window(&rhp->rdev, mhp->attr.stag, mhp->dereg_skb, attr 684 drivers/infiniband/hw/cxgb4/mem.c deallocate_window(&rhp->rdev, mhp->attr.stag, mhp->dereg_skb, attr 737 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size = max_num_sg; attr 739 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size, mhp->attr.pbl_addr, attr 743 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pdid = php->pdid; attr 744 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.type = FW_RI_STAG_NSMR; attr 745 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.stag = stag; attr 746 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.state = 0; attr 757 drivers/infiniband/hw/cxgb4/mem.c dereg_mem(&rhp->rdev, stag, mhp->attr.pbl_size, attr 758 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_addr, mhp->dereg_skb, mhp->wr_waitp); attr 760 drivers/infiniband/hw/cxgb4/mem.c c4iw_pblpool_free(&mhp->rhp->rdev, mhp->attr.pbl_addr, attr 761 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size << 3); attr 777 drivers/infiniband/hw/cxgb4/mem.c if (unlikely(mhp->mpl_len == mhp->attr.pbl_size)) attr 805 drivers/infiniband/hw/cxgb4/mem.c mmid = mhp->attr.stag >> 8; attr 810 drivers/infiniband/hw/cxgb4/mem.c dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, attr 811 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_addr, mhp->dereg_skb, mhp->wr_waitp); attr 812 drivers/infiniband/hw/cxgb4/mem.c if (mhp->attr.pbl_size) attr 813 drivers/infiniband/hw/cxgb4/mem.c c4iw_pblpool_free(&mhp->rhp->rdev, mhp->attr.pbl_addr, attr 814 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.pbl_size << 3); attr 832 drivers/infiniband/hw/cxgb4/mem.c mhp->attr.state = 0; attr 326 drivers/infiniband/hw/cxgb4/provider.c struct device_attribute *attr, char *buf) attr 338 drivers/infiniband/hw/cxgb4/provider.c struct device_attribute *attr, char *buf) attr 351 drivers/infiniband/hw/cxgb4/provider.c static ssize_t board_id_show(struct device *dev, struct device_attribute *attr, attr 419 drivers/infiniband/hw/cxgb4/provider.c &dev_attr_hw_rev.attr, attr 420 drivers/infiniband/hw/cxgb4/provider.c &dev_attr_hca_type.attr, attr 421 drivers/infiniband/hw/cxgb4/provider.c &dev_attr_board_id.attr, attr 432 drivers/infiniband/hw/cxgb4/provider.c struct ib_port_attr attr; attr 437 drivers/infiniband/hw/cxgb4/provider.c err = ib_query_port(ibdev, port_num, &attr); attr 441 drivers/infiniband/hw/cxgb4/provider.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 442 drivers/infiniband/hw/cxgb4/provider.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 91 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.state = state; attr 800 drivers/infiniband/hw/cxgb4/qp.c FW_RI_TPTE_PDID_V(mhp->attr.pdid)); attr 806 drivers/infiniband/hw/cxgb4/qp.c PBL_OFF(&mhp->rhp->rdev, mhp->attr.pbl_addr)>>3)); attr 1196 drivers/infiniband/hw/cxgb4/qp.c !mhp->attr.state && mhp->mpl_len <= 2) { attr 1208 drivers/infiniband/hw/cxgb4/qp.c mhp->attr.state = 1; attr 1584 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.layer_etype == (LAYER_MPA|DDP_LLP)) { attr 1585 drivers/infiniband/hw/cxgb4/qp.c term->layer_etype = qhp->attr.layer_etype; attr 1586 drivers/infiniband/hw/cxgb4/qp.c term->ecode = qhp->attr.ecode; attr 1762 drivers/infiniband/hw/cxgb4/qp.c ret = alloc_ird(rhp, qhp->attr.max_ird); attr 1764 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.max_ird = 0; attr 1782 drivers/infiniband/hw/cxgb4/qp.c FW_RI_WR_MPAREQBIT_V(qhp->attr.mpa_attr.initiator) | attr 1783 drivers/infiniband/hw/cxgb4/qp.c FW_RI_WR_P2PTYPE_V(qhp->attr.mpa_attr.p2p_type); attr 1785 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.mpa_attr.recv_marker_enabled) attr 1787 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.mpa_attr.xmit_marker_enabled) attr 1789 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.mpa_attr.crc_enabled) attr 1799 drivers/infiniband/hw/cxgb4/qp.c wqe->u.init.pdid = cpu_to_be32(qhp->attr.pd); attr 1811 drivers/infiniband/hw/cxgb4/qp.c wqe->u.init.scqid = cpu_to_be32(qhp->attr.scq); attr 1812 drivers/infiniband/hw/cxgb4/qp.c wqe->u.init.rcqid = cpu_to_be32(qhp->attr.rcq); attr 1813 drivers/infiniband/hw/cxgb4/qp.c wqe->u.init.ord_max = cpu_to_be32(qhp->attr.max_ord); attr 1814 drivers/infiniband/hw/cxgb4/qp.c wqe->u.init.ird_max = cpu_to_be32(qhp->attr.max_ird); attr 1817 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.mpa_attr.initiator) attr 1818 drivers/infiniband/hw/cxgb4/qp.c build_rtr_msg(qhp->attr.mpa_attr.p2p_type, &wqe->u.init); attr 1825 drivers/infiniband/hw/cxgb4/qp.c free_ird(rhp, qhp->attr.max_ird); attr 1837 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_qp_attributes newattr = qhp->attr; attr 1845 drivers/infiniband/hw/cxgb4/qp.c qhp, qhp->wq.sq.qid, qhp->wq.rq.qid, qhp->ep, qhp->attr.state, attr 1852 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.state != C4IW_QP_STATE_IDLE) { attr 1876 drivers/infiniband/hw/cxgb4/qp.c qhp->attr = newattr; attr 1890 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.state == attrs->next_state) attr 1893 drivers/infiniband/hw/cxgb4/qp.c switch (qhp->attr.state) { attr 1905 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.mpa_attr = attrs->mpa_attr; attr 1906 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.llp_stream_handle = attrs->llp_stream_handle; attr 1907 drivers/infiniband/hw/cxgb4/qp.c qhp->ep = qhp->attr.llp_stream_handle; attr 1948 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.layer_etype = attrs->layer_etype; attr 1949 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.ecode = attrs->ecode; attr 1956 drivers/infiniband/hw/cxgb4/qp.c terminate = qhp->attr.send_term; attr 1992 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.llp_stream_handle = NULL; attr 2023 drivers/infiniband/hw/cxgb4/qp.c pr_err("%s in a bad state %d\n", __func__, qhp->attr.state); attr 2034 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.llp_stream_handle = NULL; attr 2066 drivers/infiniband/hw/cxgb4/qp.c pr_debug("exit state %d\n", qhp->attr.state); attr 2082 drivers/infiniband/hw/cxgb4/qp.c if (qhp->attr.state == C4IW_QP_STATE_TERMINATE) attr 2093 drivers/infiniband/hw/cxgb4/qp.c free_ird(rhp, qhp->attr.max_ird); attr 2196 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.pd = php->pdid; attr 2197 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.scq = ((struct c4iw_cq *) attrs->send_cq)->cq.cqid; attr 2198 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.rcq = ((struct c4iw_cq *) attrs->recv_cq)->cq.cqid; attr 2199 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.sq_num_entries = attrs->cap.max_send_wr; attr 2200 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.sq_max_sges = attrs->cap.max_send_sge; attr 2201 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.sq_max_sges_rdma_write = attrs->cap.max_send_sge; attr 2203 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.rq_num_entries = attrs->cap.max_recv_wr; attr 2204 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.rq_max_sges = attrs->cap.max_recv_sge; attr 2206 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.state = C4IW_QP_STATE_IDLE; attr 2207 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.next_state = C4IW_QP_STATE_IDLE; attr 2208 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.enable_rdma_read = 1; attr 2209 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.enable_rdma_write = 1; attr 2210 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.enable_bind = 1; attr 2211 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.max_ord = 0; attr 2212 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.max_ird = 0; attr 2367 drivers/infiniband/hw/cxgb4/qp.c int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 2378 drivers/infiniband/hw/cxgb4/qp.c if ((attr_mask & IB_QP_STATE) && (attr->qp_state == IB_QPS_RTR)) attr 2388 drivers/infiniband/hw/cxgb4/qp.c attrs.next_state = c4iw_convert_state(attr->qp_state); attr 2389 drivers/infiniband/hw/cxgb4/qp.c attrs.enable_rdma_read = (attr->qp_access_flags & attr 2391 drivers/infiniband/hw/cxgb4/qp.c attrs.enable_rdma_write = (attr->qp_access_flags & attr 2393 drivers/infiniband/hw/cxgb4/qp.c attrs.enable_bind = (attr->qp_access_flags & IB_ACCESS_MW_BIND) ? 1 : 0; attr 2407 drivers/infiniband/hw/cxgb4/qp.c attrs.sq_db_inc = attr->sq_psn; attr 2408 drivers/infiniband/hw/cxgb4/qp.c attrs.rq_db_inc = attr->rq_psn; attr 2434 drivers/infiniband/hw/cxgb4/qp.c int c4iw_modify_srq(struct ib_srq *ib_srq, struct ib_srq_attr *attr, attr 2457 drivers/infiniband/hw/cxgb4/qp.c srq->srq_limit = attr->srq_limit; attr 2463 drivers/infiniband/hw/cxgb4/qp.c int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 2468 drivers/infiniband/hw/cxgb4/qp.c memset(attr, 0, sizeof(*attr)); attr 2470 drivers/infiniband/hw/cxgb4/qp.c attr->qp_state = to_ib_qp_state(qhp->attr.state); attr 2471 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_send_wr = qhp->attr.sq_num_entries; attr 2472 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries; attr 2473 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_send_sge = qhp->attr.sq_max_sges; attr 2474 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_recv_sge = qhp->attr.sq_max_sges; attr 2690 drivers/infiniband/hw/cxgb4/qp.c if (attrs->attr.max_wr > rhp->rdev.hw_queue.t4_max_rq_size) attr 2692 drivers/infiniband/hw/cxgb4/qp.c if (attrs->attr.max_sge > T4_MAX_RECV_SGE) attr 2698 drivers/infiniband/hw/cxgb4/qp.c rqsize = attrs->attr.max_wr + 1; attr 2735 drivers/infiniband/hw/cxgb4/qp.c attrs->attr.max_wr = rqsize - 1; attr 2779 drivers/infiniband/hw/cxgb4/qp.c (unsigned long)srq->wq.memsize, attrs->attr.max_wr); attr 442 drivers/infiniband/hw/cxgb4/restrack.c u32 stag = mhp->attr.stag; attr 138 drivers/infiniband/hw/efa/efa.h int efa_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 915 drivers/infiniband/hw/efa/efa_verbs.c int efa_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 928 drivers/infiniband/hw/efa/efa_verbs.c int entries = attr->cqe; attr 1517 drivers/infiniband/hw/efa/efa_verbs.c struct ib_port_attr attr; attr 1520 drivers/infiniband/hw/efa/efa_verbs.c err = ib_query_port(ibdev, port_num, &attr); attr 1526 drivers/infiniband/hw/efa/efa_verbs.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 1527 drivers/infiniband/hw/efa/efa_verbs.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 268 drivers/infiniband/hw/hfi1/fault.c ibd->fault->attr.interval = 1; attr 269 drivers/infiniband/hw/hfi1/fault.c ibd->fault->attr.require_end = ULONG_MAX; attr 270 drivers/infiniband/hw/hfi1/fault.c ibd->fault->attr.stacktrace_depth = 32; attr 271 drivers/infiniband/hw/hfi1/fault.c ibd->fault->attr.dname = NULL; attr 272 drivers/infiniband/hw/hfi1/fault.c ibd->fault->attr.verbose = 0; attr 283 drivers/infiniband/hw/hfi1/fault.c fault_create_debugfs_attr("fault", parent, &ibd->fault->attr); attr 340 drivers/infiniband/hw/hfi1/fault.c ret = should_fail(&ibd->fault->attr, 1); attr 61 drivers/infiniband/hw/hfi1/fault.h struct fault_attr attr; attr 2312 drivers/infiniband/hw/hfi1/hfi.h struct rdma_ah_attr *attr) attr 2316 drivers/infiniband/hw/hfi1/hfi.h u32 dlid = rdma_ah_get_dlid(attr); attr 2322 drivers/infiniband/hw/hfi1/hfi.h ibp = to_iport(ibdev, rdma_ah_get_port_num(attr)); attr 2328 drivers/infiniband/hw/hfi1/hfi.h (!(rdma_ah_get_ah_flags(attr) & IB_AH_GRH))) || attr 2329 drivers/infiniband/hw/hfi1/hfi.h (rdma_ah_get_make_grd(attr))) { attr 2330 drivers/infiniband/hw/hfi1/hfi.h rdma_ah_set_ah_flags(attr, IB_AH_GRH); attr 2331 drivers/infiniband/hw/hfi1/hfi.h rdma_ah_set_interface_id(attr, OPA_MAKE_ID(dlid)); attr 2332 drivers/infiniband/hw/hfi1/hfi.h rdma_ah_set_subnet_prefix(attr, ibp->rvp.gid_prefix); attr 2390 drivers/infiniband/hw/hfi1/hfi.h static inline void hfi1_make_opa_lid(struct rdma_ah_attr *attr) attr 2392 drivers/infiniband/hw/hfi1/hfi.h const struct ib_global_route *grh = rdma_ah_read_grh(attr); attr 2393 drivers/infiniband/hw/hfi1/hfi.h u32 dlid = rdma_ah_get_dlid(attr); attr 2413 drivers/infiniband/hw/hfi1/hfi.h rdma_ah_set_dlid(attr, dlid); attr 2429 drivers/infiniband/hw/hfi1/hfi.h static inline bool hfi1_get_hdr_type(u32 lid, struct rdma_ah_attr *attr) attr 2438 drivers/infiniband/hw/hfi1/hfi.h if (rdma_ah_get_dlid(attr) == be32_to_cpu(OPA_LID_PERMISSIVE)) attr 2439 drivers/infiniband/hw/hfi1/hfi.h return (ib_is_opa_gid(&rdma_ah_read_grh(attr)->dgid)) ? attr 2446 drivers/infiniband/hw/hfi1/hfi.h if (hfi1_get_packet_type(rdma_ah_get_dlid(attr)) == HFI1_PKT_TYPE_16B) attr 259 drivers/infiniband/hw/hfi1/mad.c struct rdma_ah_attr *attr, u32 dlid) attr 261 drivers/infiniband/hw/hfi1/mad.c rdma_ah_set_dlid(attr, dlid); attr 262 drivers/infiniband/hw/hfi1/mad.c rdma_ah_set_port_num(attr, ppd_from_ibp(ibp)->port); attr 264 drivers/infiniband/hw/hfi1/mad.c struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); attr 266 drivers/infiniband/hw/hfi1/mad.c rdma_ah_set_ah_flags(attr, IB_AH_GRH); attr 278 drivers/infiniband/hw/hfi1/mad.c struct rdma_ah_attr attr; attr 282 drivers/infiniband/hw/hfi1/mad.c memset(&attr, 0, sizeof(attr)); attr 283 drivers/infiniband/hw/hfi1/mad.c attr.type = ah->ibah.type; attr 284 drivers/infiniband/hw/hfi1/mad.c hfi1_update_sm_ah_attr(ibp, &attr, dlid); attr 288 drivers/infiniband/hw/hfi1/mad.c ret = rdma_modify_ah(&ah->ibah, &attr); attr 295 drivers/infiniband/hw/hfi1/mad.c struct rdma_ah_attr attr; attr 302 drivers/infiniband/hw/hfi1/mad.c memset(&attr, 0, sizeof(attr)); attr 303 drivers/infiniband/hw/hfi1/mad.c attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num); attr 304 drivers/infiniband/hw/hfi1/mad.c hfi1_update_sm_ah_attr(ibp, &attr, dlid); attr 308 drivers/infiniband/hw/hfi1/mad.c ah = rdma_create_ah(qp0->ibqp.pd, &attr, 0); attr 1460 drivers/infiniband/hw/hfi1/mad.c rdma_ah_set_sl(&ibp->rvp.sm_ah->attr, msl); attr 242 drivers/infiniband/hw/hfi1/opfn.c void opfn_qp_init(struct rvt_qp *qp, struct ib_qp_attr *attr, int attr_mask) attr 249 drivers/infiniband/hw/hfi1/opfn.c priv->s_retry = attr->retry_cnt; attr 265 drivers/infiniband/hw/hfi1/opfn.c attr->qp_state == IB_QPS_RTS) { attr 82 drivers/infiniband/hw/hfi1/opfn.h void opfn_qp_init(struct rvt_qp *qp, struct ib_qp_attr *attr, int attr_mask); attr 216 drivers/infiniband/hw/hfi1/qp.c int hfi1_check_modify_qp(struct rvt_qp *qp, struct ib_qp_attr *attr, attr 225 drivers/infiniband/hw/hfi1/qp.c sc = ah_to_sc(ibqp->device, &attr->ah_attr); attr 238 drivers/infiniband/hw/hfi1/qp.c sc = ah_to_sc(ibqp->device, &attr->alt_ah_attr); attr 278 drivers/infiniband/hw/hfi1/qp.c void hfi1_modify_qp(struct rvt_qp *qp, struct ib_qp_attr *attr, attr 292 drivers/infiniband/hw/hfi1/qp.c attr->path_mig_state == IB_MIG_MIGRATED && attr 301 drivers/infiniband/hw/hfi1/qp.c opfn_qp_init(qp, attr, attr_mask); attr 354 drivers/infiniband/hw/hfi1/qp.c if (ibp->sl_to_sc[rdma_ah_get_sl(&ah->attr)] == 0xf) attr 874 drivers/infiniband/hw/hfi1/qp.c struct ib_qp_attr *attr) attr 883 drivers/infiniband/hw/hfi1/qp.c mtu = verbs_mtu_enum_to_int(qp->ibqp.device, attr->path_mtu); attr 890 drivers/infiniband/hw/hfi1/qp.c return attr->path_mtu; attr 154 drivers/infiniband/hw/hfi1/qp.h struct ib_qp_attr *attr); attr 99 drivers/infiniband/hw/hfi1/sysfs.c .attr = {.name = "cc_table_bin", .mode = 0444}, attr 141 drivers/infiniband/hw/hfi1/sysfs.c .attr = {.name = "cc_settings_bin", .mode = 0444}, attr 147 drivers/infiniband/hw/hfi1/sysfs.c struct attribute attr; attr 171 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t cc_attr_show(struct kobject *kobj, struct attribute *attr, attr 175 drivers/infiniband/hw/hfi1/sysfs.c container_of(attr, struct hfi1_port_attr, attr); attr 182 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t cc_attr_store(struct kobject *kobj, struct attribute *attr, attr 186 drivers/infiniband/hw/hfi1/sysfs.c container_of(attr, struct hfi1_port_attr, attr); attr 199 drivers/infiniband/hw/hfi1/sysfs.c &cc_prescan_attr.attr, attr 212 drivers/infiniband/hw/hfi1/sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ attr 217 drivers/infiniband/hw/hfi1/sysfs.c struct attribute attr; attr 255 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_0.attr, attr 256 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_1.attr, attr 257 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_2.attr, attr 258 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_3.attr, attr 259 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_4.attr, attr 260 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_5.attr, attr 261 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_6.attr, attr 262 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_7.attr, attr 263 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_8.attr, attr 264 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_9.attr, attr 265 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_10.attr, attr 266 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_11.attr, attr 267 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_12.attr, attr 268 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_13.attr, attr 269 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_14.attr, attr 270 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_15.attr, attr 271 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_16.attr, attr 272 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_17.attr, attr 273 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_18.attr, attr 274 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_19.attr, attr 275 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_20.attr, attr 276 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_21.attr, attr 277 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_22.attr, attr 278 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_23.attr, attr 279 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_24.attr, attr 280 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_25.attr, attr 281 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_26.attr, attr 282 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_27.attr, attr 283 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_28.attr, attr 284 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_29.attr, attr 285 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_30.attr, attr 286 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sc2vl_attr_31.attr, attr 290 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t sc2vl_attr_show(struct kobject *kobj, struct attribute *attr, attr 294 drivers/infiniband/hw/hfi1/sysfs.c container_of(attr, struct hfi1_sc2vl_attr, attr); attr 317 drivers/infiniband/hw/hfi1/sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ attr 322 drivers/infiniband/hw/hfi1/sysfs.c struct attribute attr; attr 360 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_0.attr, attr 361 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_1.attr, attr 362 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_2.attr, attr 363 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_3.attr, attr 364 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_4.attr, attr 365 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_5.attr, attr 366 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_6.attr, attr 367 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_7.attr, attr 368 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_8.attr, attr 369 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_9.attr, attr 370 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_10.attr, attr 371 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_11.attr, attr 372 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_12.attr, attr 373 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_13.attr, attr 374 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_14.attr, attr 375 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_15.attr, attr 376 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_16.attr, attr 377 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_17.attr, attr 378 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_18.attr, attr 379 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_19.attr, attr 380 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_20.attr, attr 381 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_21.attr, attr 382 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_22.attr, attr 383 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_23.attr, attr 384 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_24.attr, attr 385 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_25.attr, attr 386 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_26.attr, attr 387 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_27.attr, attr 388 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_28.attr, attr 389 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_29.attr, attr 390 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_30.attr, attr 391 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_sl2sc_attr_31.attr, attr 395 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t sl2sc_attr_show(struct kobject *kobj, struct attribute *attr, attr 399 drivers/infiniband/hw/hfi1/sysfs.c container_of(attr, struct hfi1_sl2sc_attr, attr); attr 423 drivers/infiniband/hw/hfi1/sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ attr 428 drivers/infiniband/hw/hfi1/sysfs.c struct attribute attr; attr 450 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_0.attr, attr 451 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_1.attr, attr 452 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_2.attr, attr 453 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_3.attr, attr 454 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_4.attr, attr 455 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_5.attr, attr 456 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_6.attr, attr 457 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_7.attr, attr 458 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_8.attr, attr 459 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_9.attr, attr 460 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_10.attr, attr 461 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_11.attr, attr 462 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_12.attr, attr 463 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_13.attr, attr 464 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_14.attr, attr 465 drivers/infiniband/hw/hfi1/sysfs.c &hfi1_vl2mtu_attr_15.attr, attr 469 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t vl2mtu_attr_show(struct kobject *kobj, struct attribute *attr, attr 473 drivers/infiniband/hw/hfi1/sysfs.c container_of(attr, struct hfi1_vl2mtu_attr, attr); attr 497 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t hw_rev_show(struct device *device, struct device_attribute *attr, attr 508 drivers/infiniband/hw/hfi1/sysfs.c struct device_attribute *attr, char *buf) attr 524 drivers/infiniband/hw/hfi1/sysfs.c struct device_attribute *attr, char *buf) attr 536 drivers/infiniband/hw/hfi1/sysfs.c struct device_attribute *attr, char *buf) attr 555 drivers/infiniband/hw/hfi1/sysfs.c struct device_attribute *attr, char *buf) attr 567 drivers/infiniband/hw/hfi1/sysfs.c struct device_attribute *attr, char *buf) attr 578 drivers/infiniband/hw/hfi1/sysfs.c struct device_attribute *attr, const char *buf, attr 609 drivers/infiniband/hw/hfi1/sysfs.c struct device_attribute *attr, char *buf) attr 641 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_hw_rev.attr, attr 642 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_board_id.attr, attr 643 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_nctxts.attr, attr 644 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_nfreectxts.attr, attr 645 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_serial.attr, attr 646 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_boardversion.attr, attr 647 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_tempsense.attr, attr 648 drivers/infiniband/hw/hfi1/sysfs.c &dev_attr_chip_reset.attr, attr 753 drivers/infiniband/hw/hfi1/sysfs.c struct attribute attr; attr 758 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t sde_show(struct kobject *kobj, struct attribute *attr, char *buf) attr 761 drivers/infiniband/hw/hfi1/sysfs.c container_of(attr, struct sde_attribute, attr); attr 771 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t sde_store(struct kobject *kobj, struct attribute *attr, attr 775 drivers/infiniband/hw/hfi1/sysfs.c container_of(attr, struct sde_attribute, attr); attr 851 drivers/infiniband/hw/hfi1/sysfs.c &sde_attribs[j]->attr); attr 1557 drivers/infiniband/hw/hfi1/verbs.c struct rdma_ah_attr *attr = &ah->attr; attr 1566 drivers/infiniband/hw/hfi1/verbs.c sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&ah->attr)]; attr 1567 drivers/infiniband/hw/hfi1/verbs.c hfi1_update_ah_attr(ibdev, attr); attr 1568 drivers/infiniband/hw/hfi1/verbs.c hfi1_make_opa_lid(attr); attr 428 drivers/infiniband/hw/hfi1/verbs.h int hfi1_check_modify_qp(struct rvt_qp *qp, struct ib_qp_attr *attr, attr 431 drivers/infiniband/hw/hfi1/verbs.h void hfi1_modify_qp(struct rvt_qp *qp, struct ib_qp_attr *attr, attr 410 drivers/infiniband/hw/hns/hns_roce_cq.c const struct ib_cq_init_attr *attr, attr 417 drivers/infiniband/hw/hns/hns_roce_cq.c int vector = attr->comp_vector; attr 418 drivers/infiniband/hw/hns/hns_roce_cq.c int cq_entries = attr->cqe; attr 941 drivers/infiniband/hw/hns/hns_roce_device.h const union ib_gid *gid, const struct ib_gid_attr *attr); attr 963 drivers/infiniband/hw/hns/hns_roce_device.h int (*modify_qp)(struct ib_qp *ibqp, const struct ib_qp_attr *attr, attr 989 drivers/infiniband/hw/hns/hns_roce_device.h int (*query_srq)(struct ib_srq *ibsrq, struct ib_srq_attr *attr); attr 1240 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1260 drivers/infiniband/hw/hns/hns_roce_device.h const struct ib_cq_init_attr *attr, attr 704 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct ib_qp_attr attr = { 0 }; attr 762 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.qp_access_flags = IB_ACCESS_REMOTE_WRITE; attr 763 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.pkey_index = 0; attr 764 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.min_rnr_timer = 0; attr 766 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.max_dest_rd_atomic = 0; attr 767 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.max_rd_atomic = 0; attr 769 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.rq_psn = 0x0808; attr 770 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.sq_psn = 0x0808; attr 771 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.retry_cnt = 7; attr 772 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.rnr_retry = 7; attr 773 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.timeout = 0x12; attr 774 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.path_mtu = IB_MTU_256; attr 775 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; attr 776 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_grh(&attr.ah_attr, NULL, 0, 0, 1, 0); attr 777 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_static_rate(&attr.ah_attr, 3); attr 814 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_port_num(&attr.ah_attr, port + 1); attr 815 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_sl(&attr.ah_attr, sl); attr 816 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.port_num = port + 1; attr 818 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.dest_qp_num = hr_qp->qpn; attr 819 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memcpy(rdma_ah_retrieve_dmac(&attr.ah_attr), attr 829 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_dgid_raw(&attr.ah_attr, dgid.raw); attr 831 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, attr_mask, attr 838 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, IB_QP_DEST_QPN, attr 845 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, attr_mask, attr 1741 drivers/infiniband/hw/hns/hns_roce_hw_v1.c const struct ib_gid_attr *attr) attr 2568 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_m_sqp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, attr 2630 drivers/infiniband/hw/hns/hns_roce_hw_v1.c QP1C_BYTES_20_PKEY_IDX_S, attr->pkey_index); attr 2712 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_m_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, attr 2720 drivers/infiniband/hw/hns/hns_roce_hw_v1.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); attr 2769 drivers/infiniband/hw/hns/hns_roce_hw_v1.c !!(attr->qp_access_flags & IB_ACCESS_REMOTE_READ)); attr 2772 drivers/infiniband/hw/hns/hns_roce_hw_v1.c !!(attr->qp_access_flags & IB_ACCESS_REMOTE_WRITE) attr 2776 drivers/infiniband/hw/hns/hns_roce_hw_v1.c !!(attr->qp_access_flags & IB_ACCESS_REMOTE_ATOMIC) attr 2792 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->access_flags = attr->qp_access_flags; attr 2811 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->pkey_index); attr 2812 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->pkey_index = attr->pkey_index; attr 2827 drivers/infiniband/hw/hns/hns_roce_hw_v1.c !!(attr->qp_access_flags & attr 2831 drivers/infiniband/hw/hns/hns_roce_hw_v1.c !!(attr->qp_access_flags & attr 2877 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->pkey_index); attr 2896 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dmac = (u8 *)attr->ah_attr.roce.dmac; attr 2909 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->min_rnr_timer); attr 2926 drivers/infiniband/hw/hns/hns_roce_hw_v1.c port = (attr_mask & IB_QP_PORT) ? (attr->port_num - 1) : attr 2937 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_ah_flags(&attr->ah_attr)); attr 2941 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)attr->max_dest_rd_atomic)); attr 2947 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->dest_qp_num); attr 2950 drivers/infiniband/hw/hns/hns_roce_hw_v1.c port_num = rdma_ah_get_port_num(&attr->ah_attr); attr 2967 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_static_rate(&attr->ah_attr)); attr 2983 drivers/infiniband/hw/hns/hns_roce_hw_v1.c QP_CONTEXT_QPC_BYTES_48_MTU_S, attr->path_mtu); attr 3018 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->rq_psn - 1); attr 3026 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->rq_psn); attr 3068 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_sl(&attr->ah_attr)); attr 3069 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); attr 3100 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->sq_psn); attr 3120 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->sq_psn); attr 3124 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->sq_psn); attr 3129 drivers/infiniband/hw/hns/hns_roce_hw_v1.c (attr->sq_psn >> SQ_PSN_SHIFT)); attr 3142 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->retry_cnt); attr 3146 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->rnr_retry); attr 3156 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->retry_cnt); attr 3157 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (attr->timeout < 0x12) { attr 3159 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->timeout); attr 3168 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->timeout); attr 3173 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->rnr_retry); attr 3181 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_sl(&attr->ah_attr)); attr 3182 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); attr 3186 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)attr->max_rd_atomic)); attr 3194 drivers/infiniband/hw/hns/hns_roce_hw_v1.c QP_CONTEXT_QPC_BYTES_164_SQ_PSN_S, attr->sq_psn); attr 3202 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr->sq_psn); attr 3298 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->resp_depth = attr->max_dest_rd_atomic; attr 3300 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->port = attr->port_num - 1; attr 3322 drivers/infiniband/hw/hns/hns_roce_hw_v1.c const struct ib_qp_attr *attr, int attr_mask, attr 3328 drivers/infiniband/hw/hns/hns_roce_hw_v1.c return hns_roce_v1_m_sqp(ibqp, attr, attr_mask, cur_state, attr 3331 drivers/infiniband/hw/hns/hns_roce_hw_v1.c return hns_roce_v1_m_qp(ibqp, attr, attr_mask, cur_state, attr 229 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, attr 245 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct ib_qp_attr attr; attr 600 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr.qp_state = IB_QPS_ERR; attr 602 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_modify_qp(&qp->ibqp, &attr, attr_mask, attr 626 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct ib_qp_attr attr; attr 700 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr.qp_state = IB_QPS_ERR; attr 702 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_modify_qp(&hr_qp->ibqp, &attr, attr 2171 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_gid_attr *attr) attr 2176 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (!gid || !attr) attr 2179 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (attr->gid_type == IB_GID_TYPE_ROCE) attr 2182 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) { attr 2702 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct ib_qp_attr attr; attr 2825 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr.qp_state = IB_QPS_ERR; attr 2827 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &attr, attr_mask, attr 3192 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, int attr_mask) attr 3198 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->max_dest_rd_atomic : hr_qp->resp_depth; attr 3201 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->qp_access_flags : hr_qp->atomic_rd_en; attr 3257 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, attr 3532 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->access_flags = attr->qp_access_flags; attr 3550 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, int attr_mask, attr 3569 drivers/infiniband/hw/hns/hns_roce_hw_v2.c !!(attr->qp_access_flags & IB_ACCESS_REMOTE_READ)); attr 3574 drivers/infiniband/hw/hns/hns_roce_hw_v2.c !!(attr->qp_access_flags & attr 3580 drivers/infiniband/hw/hns/hns_roce_hw_v2.c !!(attr->qp_access_flags & attr 3667 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, int attr_mask, attr 3671 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); attr 3718 drivers/infiniband/hw/hns/hns_roce_hw_v2.c dmac = (u8 *)attr->ah_attr.roce.dmac; attr 3825 drivers/infiniband/hw/hns/hns_roce_hw_v2.c port = (attr_mask & IB_QP_PORT) ? (attr->port_num - 1) : hr_qp->port; attr 3837 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_56_DQPN_S, attr->dest_qp_num); attr 3843 drivers/infiniband/hw/hns/hns_roce_hw_v2.c port_num = rdma_ah_get_port_num(&attr->ah_attr); attr 3870 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_24_MTU_S, attr->path_mtu); attr 3913 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, int attr_mask, attr 4057 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, attr 4062 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); attr 4073 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ib_port = (attr_mask & IB_QP_PORT) ? attr->port_num : hr_qp->port + 1; attr 4076 drivers/infiniband/hw/hns/hns_roce_hw_v2.c rdma_ah_get_ah_flags(&attr->ah_attr) & IB_AH_GRH; attr 4079 drivers/infiniband/hw/hns/hns_roce_hw_v2.c gid_attr = attr->ah_attr.grh.sgid_attr; attr 4111 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (attr->ah_attr.type != RDMA_AH_ATTR_TYPE_ROCE) { attr 4150 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_28_SL_S, rdma_ah_get_sl(&attr->ah_attr)); attr 4153 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); attr 4159 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, attr 4171 drivers/infiniband/hw/hns/hns_roce_hw_v2.c modify_qp_reset_to_init(ibqp, attr, attr_mask, context, attr 4174 drivers/infiniband/hw/hns/hns_roce_hw_v2.c modify_qp_init_to_init(ibqp, attr, attr_mask, context, attr 4177 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = modify_qp_init_to_rtr(ibqp, attr, attr_mask, context, attr 4182 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = modify_qp_rtr_to_rts(ibqp, attr, attr_mask, context, attr 4200 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, attr 4210 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_set_path(ibqp, attr, attr_mask, context, attr 4217 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (attr->timeout < 31) { attr 4220 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->timeout); attr 4234 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->retry_cnt); attr 4242 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->retry_cnt); attr 4251 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_244_RNR_NUM_INIT_S, attr->rnr_retry); attr 4258 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_244_RNR_CNT_S, attr->rnr_retry); attr 4268 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_172_SQ_CUR_PSN_S, attr->sq_psn); attr 4275 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_196_SQ_MAX_PSN_S, attr->sq_psn); attr 4282 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_220_RETRY_MSG_PSN_S, attr->sq_psn); attr 4290 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->sq_psn >> V2_QPC_BYTE_220_RETRY_MSG_PSN_S); attr 4298 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->sq_psn); attr 4305 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_244_RX_ACK_EPSN_S, attr->sq_psn); attr 4312 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->max_dest_rd_atomic) { attr 4315 drivers/infiniband/hw/hns/hns_roce_hw_v2.c fls(attr->max_dest_rd_atomic - 1)); attr 4320 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if ((attr_mask & IB_QP_MAX_QP_RD_ATOMIC) && attr->max_rd_atomic) { attr 4323 drivers/infiniband/hw/hns/hns_roce_hw_v2.c fls(attr->max_rd_atomic - 1)); attr 4330 drivers/infiniband/hw/hns/hns_roce_hw_v2.c set_access_flags(hr_qp, context, qpc_mask, attr, attr_mask); attr 4336 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->min_rnr_timer); attr 4346 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_108_RX_REQ_EPSN_S, attr->rq_psn); attr 4352 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_152_RAQ_PSN_S, attr->rq_psn - 1); attr 4359 drivers/infiniband/hw/hns/hns_roce_hw_v2.c context->qkey_xrcd = cpu_to_le32(attr->qkey); attr 4361 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->qkey = attr->qkey; attr 4368 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, attr 4375 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->atomic_rd_en = attr->qp_access_flags; attr 4378 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->resp_depth = attr->max_dest_rd_atomic; attr 4380 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->port = attr->port_num - 1; attr 4386 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_qp_attr *attr, attr 4406 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_set_abs_fields(ibqp, attr, attr_mask, cur_state, attr 4433 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_set_opt_fields(ibqp, attr, attr_mask, context, attr 4458 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_v2_record_opt_fields(ibqp, attr, attr_mask); attr 4837 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct ib_qp_attr attr; attr 4859 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr.qp_state = IB_QPS_ERR; attr 4860 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_modify_qp(&hr_qp->ibqp, &attr, attr_mask, attr 6167 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr) attr 6193 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->srq_limit = limit_wl; attr 6194 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->max_wr = srq->max - 1; attr 6195 drivers/infiniband/hw/hns/hns_roce_hw_v2.c attr->max_sge = srq->max_gs; attr 76 drivers/infiniband/hw/hns/hns_roce_main.c static int hns_roce_add_gid(const struct ib_gid_attr *attr, void **context) attr 78 drivers/infiniband/hw/hns/hns_roce_main.c struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); attr 79 drivers/infiniband/hw/hns/hns_roce_main.c u8 port = attr->port_num - 1; attr 85 drivers/infiniband/hw/hns/hns_roce_main.c ret = hr_dev->hw->set_gid(hr_dev, port, attr->index, &attr->gid, attr); attr 90 drivers/infiniband/hw/hns/hns_roce_main.c static int hns_roce_del_gid(const struct ib_gid_attr *attr, void **context) attr 92 drivers/infiniband/hw/hns/hns_roce_main.c struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); attr 94 drivers/infiniband/hw/hns/hns_roce_main.c u8 port = attr->port_num - 1; attr 100 drivers/infiniband/hw/hns/hns_roce_main.c ret = hr_dev->hw->set_gid(hr_dev, port, attr->index, &zgid, &zattr); attr 385 drivers/infiniband/hw/hns/hns_roce_main.c struct ib_port_attr attr; attr 388 drivers/infiniband/hw/hns/hns_roce_main.c ret = ib_query_port(ib_dev, port_num, &attr); attr 392 drivers/infiniband/hw/hns/hns_roce_main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 393 drivers/infiniband/hw/hns/hns_roce_main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 622 drivers/infiniband/hw/hns/hns_roce_qp.c static int hns_roce_qp_has_sq(struct ib_qp_init_attr *attr) attr 624 drivers/infiniband/hw/hns/hns_roce_qp.c if (attr->qp_type == IB_QPT_XRC_TGT || !attr->cap.max_send_wr) attr 630 drivers/infiniband/hw/hns/hns_roce_qp.c static int hns_roce_qp_has_rq(struct ib_qp_init_attr *attr) attr 632 drivers/infiniband/hw/hns/hns_roce_qp.c if (attr->qp_type == IB_QPT_XRC_INI || attr 633 drivers/infiniband/hw/hns/hns_roce_qp.c attr->qp_type == IB_QPT_XRC_TGT || attr->srq || attr 634 drivers/infiniband/hw/hns/hns_roce_qp.c !attr->cap.max_recv_wr) attr 1107 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_attr *attr, int attr_mask) attr 1112 drivers/infiniband/hw/hns/hns_roce_qp.c p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; attr 1116 drivers/infiniband/hw/hns/hns_roce_qp.c attr->path_mtu > hr_dev->caps.max_mtu) || attr 1117 drivers/infiniband/hw/hns/hns_roce_qp.c attr->path_mtu < IB_MTU_256 || attr->path_mtu > active_mtu) { attr 1120 drivers/infiniband/hw/hns/hns_roce_qp.c attr->path_mtu); attr 1127 drivers/infiniband/hw/hns/hns_roce_qp.c static int hns_roce_check_qp_attr(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1135 drivers/infiniband/hw/hns/hns_roce_qp.c (attr->port_num == 0 || attr->port_num > hr_dev->caps.num_ports)) { attr 1138 drivers/infiniband/hw/hns/hns_roce_qp.c attr->port_num); attr 1143 drivers/infiniband/hw/hns/hns_roce_qp.c p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; attr 1144 drivers/infiniband/hw/hns/hns_roce_qp.c if (attr->pkey_index >= hr_dev->caps.pkey_table_len[p]) { attr 1147 drivers/infiniband/hw/hns/hns_roce_qp.c attr->pkey_index); attr 1153 drivers/infiniband/hw/hns/hns_roce_qp.c attr->max_rd_atomic > hr_dev->caps.max_qp_init_rdma) { attr 1156 drivers/infiniband/hw/hns/hns_roce_qp.c attr->max_rd_atomic); attr 1161 drivers/infiniband/hw/hns/hns_roce_qp.c attr->max_dest_rd_atomic > hr_dev->caps.max_qp_dest_rdma) { attr 1164 drivers/infiniband/hw/hns/hns_roce_qp.c attr->max_dest_rd_atomic); attr 1169 drivers/infiniband/hw/hns/hns_roce_qp.c return check_mtu_validate(hr_dev, hr_qp, attr, attr_mask); attr 1174 drivers/infiniband/hw/hns/hns_roce_qp.c int hns_roce_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1185 drivers/infiniband/hw/hns/hns_roce_qp.c attr->cur_qp_state : (enum ib_qp_state)hr_qp->state; attr 1186 drivers/infiniband/hw/hns/hns_roce_qp.c new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; attr 1208 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_check_qp_attr(ibqp, attr, attr_mask); attr 1225 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, attr 373 drivers/infiniband/hw/hns/hns_roce_srq.c if (srq_init_attr->attr.max_wr >= hr_dev->caps.max_srq_wrs || attr 374 drivers/infiniband/hw/hns/hns_roce_srq.c srq_init_attr->attr.max_sge > hr_dev->caps.max_srq_sges) attr 380 drivers/infiniband/hw/hns/hns_roce_srq.c srq->max = roundup_pow_of_two(srq_init_attr->attr.max_wr + 1); attr 381 drivers/infiniband/hw/hns/hns_roce_srq.c srq->max_gs = srq_init_attr->attr.max_sge; attr 3642 drivers/infiniband/hw/i40iw/i40iw_cm.c struct ib_qp_attr attr; attr 3652 drivers/infiniband/hw/i40iw/i40iw_cm.c memset(&attr, 0, sizeof(attr)); attr 3750 drivers/infiniband/hw/i40iw/i40iw_cm.c attr.qp_state = IB_QPS_RTS; attr 3752 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL); attr 4085 drivers/infiniband/hw/i40iw/i40iw_cm.c struct ib_qp_attr attr; attr 4110 drivers/infiniband/hw/i40iw/i40iw_cm.c memset(&attr, 0, sizeof(attr)); attr 4111 drivers/infiniband/hw/i40iw/i40iw_cm.c attr.qp_state = IB_QPS_RTS; attr 4113 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL); attr 4319 drivers/infiniband/hw/i40iw/i40iw_cm.c struct ib_qp_attr attr; attr 4350 drivers/infiniband/hw/i40iw/i40iw_cm.c attr.qp_state = IB_QPS_ERR; attr 4351 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&cm_node->iwqp->ibqp, &attr, IB_QP_STATE, NULL); attr 757 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_qp_attr *attr, attr 764 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->qp_state = iwqp->ibqp_state; attr 765 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cur_qp_state = attr->qp_state; attr 766 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->qp_access_flags = 0; attr 767 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_send_wr = qp->qp_uk.sq_size; attr 768 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_recv_wr = qp->qp_uk.rq_size; attr 769 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_inline_data = I40IW_MAX_INLINE_DATA_SIZE; attr 770 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_send_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; attr 771 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_recv_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; attr 772 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->port_num = 1; attr 778 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap = attr->cap; attr 837 drivers/infiniband/hw/i40iw/i40iw_verbs.c int i40iw_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 857 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (iwdev->closing && attr->qp_state != IB_QPS_ERR) { attr 862 drivers/infiniband/hw/i40iw/i40iw_verbs.c switch (attr->qp_state) { attr 938 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->ibqp_state = attr->qp_state; attr 943 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (attr->qp_access_flags & IB_ACCESS_LOCAL_WRITE) attr 945 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (attr->qp_access_flags & IB_ACCESS_REMOTE_WRITE) attr 947 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (attr->qp_access_flags & IB_ACCESS_REMOTE_READ) attr 949 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (attr->qp_access_flags & IB_ACCESS_MW_BIND) attr 1079 drivers/infiniband/hw/i40iw/i40iw_verbs.c const struct ib_cq_init_attr *attr, attr 1096 drivers/infiniband/hw/i40iw/i40iw_verbs.c int entries = attr->cqe; attr 1119 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (attr->comp_vector < iwdev->ceqs_count) attr 1120 drivers/infiniband/hw/i40iw/i40iw_verbs.c info.ceq_id = attr->comp_vector; attr 2051 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct device_attribute *attr, char *buf) attr 2065 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct device_attribute *attr, char *buf) attr 2075 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct device_attribute *attr, char *buf) attr 2082 drivers/infiniband/hw/i40iw/i40iw_verbs.c &dev_attr_hw_rev.attr, attr 2083 drivers/infiniband/hw/i40iw/i40iw_verbs.c &dev_attr_hca_type.attr, attr 2084 drivers/infiniband/hw/i40iw/i40iw_verbs.c &dev_attr_board_id.attr, attr 2452 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_port_attr attr; attr 2457 drivers/infiniband/hw/i40iw/i40iw_verbs.c err = ib_query_port(ibdev, port_num, &attr); attr 2462 drivers/infiniband/hw/i40iw/i40iw_verbs.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 2463 drivers/infiniband/hw/i40iw/i40iw_verbs.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 493 drivers/infiniband/hw/mlx4/alias_GUID.c struct ib_port_attr attr; attr 502 drivers/infiniband/hw/mlx4/alias_GUID.c memset(&attr, 0, sizeof(attr)); attr 503 drivers/infiniband/hw/mlx4/alias_GUID.c err = __mlx4_ib_query_port(ibdev, port, &attr, 1); attr 510 drivers/infiniband/hw/mlx4/alias_GUID.c if (attr.state != IB_PORT_ACTIVE) { attr 531 drivers/infiniband/hw/mlx4/alias_GUID.c guid_info_rec.lid = ib_lid_be16(attr.lid); attr 175 drivers/infiniband/hw/mlx4/cq.c int mlx4_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 179 drivers/infiniband/hw/mlx4/cq.c int entries = attr->cqe; attr 180 drivers/infiniband/hw/mlx4/cq.c int vector = attr->comp_vector; attr 192 drivers/infiniband/hw/mlx4/cq.c if (attr->flags & ~CQ_CREATE_FLAGS_SUPPORTED) attr 201 drivers/infiniband/hw/mlx4/cq.c cq->create_flags = attr->flags; attr 513 drivers/infiniband/hw/mlx4/mad.c struct rdma_ah_attr attr; attr 558 drivers/infiniband/hw/mlx4/mad.c memset(&attr, 0, sizeof attr); attr 559 drivers/infiniband/hw/mlx4/mad.c attr.type = rdma_ah_find_type(&dev->ib_dev, port); attr 561 drivers/infiniband/hw/mlx4/mad.c rdma_ah_set_port_num(&attr, port); attr 568 drivers/infiniband/hw/mlx4/mad.c rdma_ah_set_grh(&attr, &dgid, 0, 0, 0, 0); attr 570 drivers/infiniband/hw/mlx4/mad.c ah = rdma_create_ah(tun_ctx->pd, &attr, 0); attr 1362 drivers/infiniband/hw/mlx4/mad.c u32 remote_qpn, u32 qkey, struct rdma_ah_attr *attr, attr 1404 drivers/infiniband/hw/mlx4/mad.c ret = mlx4_ib_create_ah_slave(ah, attr, attr 1405 drivers/infiniband/hw/mlx4/mad.c rdma_ah_retrieve_grh(attr)->sgid_index, attr 1802 drivers/infiniband/hw/mlx4/mad.c struct ib_qp_attr attr; attr 1843 drivers/infiniband/hw/mlx4/mad.c memset(&attr, 0, sizeof attr); attr 1844 drivers/infiniband/hw/mlx4/mad.c attr.qp_state = IB_QPS_INIT; attr 1849 drivers/infiniband/hw/mlx4/mad.c &attr.pkey_index); attr 1851 drivers/infiniband/hw/mlx4/mad.c attr.pkey_index = attr 1853 drivers/infiniband/hw/mlx4/mad.c attr.qkey = IB_QP1_QKEY; attr 1854 drivers/infiniband/hw/mlx4/mad.c attr.port_num = ctx->port; attr 1855 drivers/infiniband/hw/mlx4/mad.c ret = ib_modify_qp(tun_qp->qp, &attr, qp_attr_mask_INIT); attr 1861 drivers/infiniband/hw/mlx4/mad.c attr.qp_state = IB_QPS_RTR; attr 1862 drivers/infiniband/hw/mlx4/mad.c ret = ib_modify_qp(tun_qp->qp, &attr, IB_QP_STATE); attr 1868 drivers/infiniband/hw/mlx4/mad.c attr.qp_state = IB_QPS_RTS; attr 1869 drivers/infiniband/hw/mlx4/mad.c attr.sq_psn = 0; attr 1870 drivers/infiniband/hw/mlx4/mad.c ret = ib_modify_qp(tun_qp->qp, &attr, IB_QP_STATE | IB_QP_SQ_PSN); attr 256 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_add_gid(const struct ib_gid_attr *attr, void **context) attr 258 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *ibdev = to_mdev(attr->device); attr 267 drivers/infiniband/hw/mlx4/main.c if (!rdma_cap_roce_gid_table(attr->device, attr->port_num)) attr 270 drivers/infiniband/hw/mlx4/main.c if (attr->port_num > MLX4_MAX_PORTS) attr 276 drivers/infiniband/hw/mlx4/main.c port_gid_table = &iboe->gids[attr->port_num - 1]; attr 280 drivers/infiniband/hw/mlx4/main.c &attr->gid, sizeof(attr->gid)) && attr 281 drivers/infiniband/hw/mlx4/main.c port_gid_table->gids[i].gid_type == attr->gid_type) { attr 299 drivers/infiniband/hw/mlx4/main.c &attr->gid, sizeof(attr->gid)); attr 300 drivers/infiniband/hw/mlx4/main.c port_gid_table->gids[free].gid_type = attr->gid_type; attr 328 drivers/infiniband/hw/mlx4/main.c ret = mlx4_ib_update_gids(gids, ibdev, attr->port_num); attr 341 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_del_gid(const struct ib_gid_attr *attr, void **context) attr 344 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *ibdev = to_mdev(attr->device); attr 351 drivers/infiniband/hw/mlx4/main.c if (!rdma_cap_roce_gid_table(attr->device, attr->port_num)) attr 354 drivers/infiniband/hw/mlx4/main.c if (attr->port_num > MLX4_MAX_PORTS) attr 357 drivers/infiniband/hw/mlx4/main.c port_gid_table = &iboe->gids[attr->port_num - 1]; attr 388 drivers/infiniband/hw/mlx4/main.c ret = mlx4_ib_update_gids(gids, ibdev, attr->port_num); attr 395 drivers/infiniband/hw/mlx4/main.c const struct ib_gid_attr *attr) attr 403 drivers/infiniband/hw/mlx4/main.c u8 port_num = attr->port_num; attr 412 drivers/infiniband/hw/mlx4/main.c return attr->index; attr 419 drivers/infiniband/hw/mlx4/main.c &attr->gid, sizeof(attr->gid)) && attr 420 drivers/infiniband/hw/mlx4/main.c attr->gid_type == port_gid_table->gids[i].gid_type) { attr 1063 drivers/infiniband/hw/mlx4/main.c struct ib_port_attr attr; attr 1076 drivers/infiniband/hw/mlx4/main.c err = ib_query_port(ibdev, port, &attr); attr 1080 drivers/infiniband/hw/mlx4/main.c cap_mask = (attr.port_cap_flags | props->set_port_cap_mask) & attr 2036 drivers/infiniband/hw/mlx4/main.c struct device_attribute *attr, char *buf) attr 2045 drivers/infiniband/hw/mlx4/main.c struct device_attribute *attr, char *buf) attr 2054 drivers/infiniband/hw/mlx4/main.c struct device_attribute *attr, char *buf) attr 2065 drivers/infiniband/hw/mlx4/main.c &dev_attr_hw_rev.attr, attr 2066 drivers/infiniband/hw/mlx4/main.c &dev_attr_hca_type.attr, attr 2067 drivers/infiniband/hw/mlx4/main.c &dev_attr_board_id.attr, attr 2487 drivers/infiniband/hw/mlx4/main.c struct ib_port_attr attr; attr 2506 drivers/infiniband/hw/mlx4/main.c err = ib_query_port(ibdev, port_num, &attr); attr 2510 drivers/infiniband/hw/mlx4/main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 2511 drivers/infiniband/hw/mlx4/main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 457 drivers/infiniband/hw/mlx4/mcg.c del_sysfs_port_mcg_attr(ctx->dev, ctx->port, &group->dentry.attr); attr 779 drivers/infiniband/hw/mlx4/mcg.c add_sysfs_port_mcg_attr(ctx->dev, ctx->port, &group->dentry.attr); attr 808 drivers/infiniband/hw/mlx4/mcg.c struct device_attribute *attr, char *buf); attr 843 drivers/infiniband/hw/mlx4/mcg.c sysfs_attr_init(&group->dentry.attr); attr 846 drivers/infiniband/hw/mlx4/mcg.c group->dentry.attr.name = group->name; attr 847 drivers/infiniband/hw/mlx4/mcg.c group->dentry.attr.mode = 0400; attr 862 drivers/infiniband/hw/mlx4/mcg.c add_sysfs_port_mcg_attr(ctx->dev, ctx->port, &group->dentry.attr); attr 991 drivers/infiniband/hw/mlx4/mcg.c struct device_attribute *attr, char *buf) attr 994 drivers/infiniband/hw/mlx4/mcg.c container_of(attr, struct mcast_group, dentry); attr 1068 drivers/infiniband/hw/mlx4/mcg.c del_sysfs_port_mcg_attr(group->demux->dev, group->demux->port, &group->dentry.attr); attr 553 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_port_attr attr; attr 746 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 763 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 777 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 848 drivers/infiniband/hw/mlx4/mlx4_ib.h u32 qkey, struct rdma_ah_attr *attr, u8 *s_mac, attr 877 drivers/infiniband/hw/mlx4/mlx4_ib.h struct attribute *attr); attr 879 drivers/infiniband/hw/mlx4/mlx4_ib.h struct attribute *attr); attr 899 drivers/infiniband/hw/mlx4/mlx4_ib.h const struct ib_gid_attr *attr); attr 509 drivers/infiniband/hw/mlx4/qp.c static bool qp_has_rq(struct ib_qp_init_attr *attr) attr 511 drivers/infiniband/hw/mlx4/qp.c if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) attr 514 drivers/infiniband/hw/mlx4/qp.c return !attr->srq; attr 1515 drivers/infiniband/hw/mlx4/qp.c static u32 get_sqp_num(struct mlx4_ib_dev *dev, struct ib_qp_init_attr *attr) attr 1520 drivers/infiniband/hw/mlx4/qp.c attr->create_flags & MLX4_IB_SRIOV_SQP)) { attr 1522 drivers/infiniband/hw/mlx4/qp.c (attr->qp_type == IB_QPT_SMI ? 0 : 2) + attr 1523 drivers/infiniband/hw/mlx4/qp.c attr->port_num - 1; attr 1526 drivers/infiniband/hw/mlx4/qp.c if (attr->qp_type == IB_QPT_SMI) attr 1527 drivers/infiniband/hw/mlx4/qp.c return dev->dev->caps.spec_qps[attr->port_num - 1].qp0_proxy; attr 1529 drivers/infiniband/hw/mlx4/qp.c return dev->dev->caps.spec_qps[attr->port_num - 1].qp1_proxy; attr 1749 drivers/infiniband/hw/mlx4/qp.c static __be32 to_mlx4_access_flags(struct mlx4_ib_qp *qp, const struct ib_qp_attr *attr, attr 1757 drivers/infiniband/hw/mlx4/qp.c dest_rd_atomic = attr->max_dest_rd_atomic; attr 1762 drivers/infiniband/hw/mlx4/qp.c access_flags = attr->qp_access_flags; attr 1779 drivers/infiniband/hw/mlx4/qp.c static void store_sqp_attrs(struct mlx4_ib_sqp *sqp, const struct ib_qp_attr *attr, attr 1783 drivers/infiniband/hw/mlx4/qp.c sqp->pkey_index = attr->pkey_index; attr 1785 drivers/infiniband/hw/mlx4/qp.c sqp->qkey = attr->qkey; attr 1787 drivers/infiniband/hw/mlx4/qp.c sqp->send_psn = attr->sq_psn; attr 2132 drivers/infiniband/hw/mlx4/qp.c const struct ib_qp_attr *attr, int attr_mask, attr 2193 drivers/infiniband/hw/mlx4/qp.c switch (attr->path_mig_state) { attr 2223 drivers/infiniband/hw/mlx4/qp.c if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_4096) { attr 2225 drivers/infiniband/hw/mlx4/qp.c attr->path_mtu); attr 2228 drivers/infiniband/hw/mlx4/qp.c context->mtu_msgmax = (attr->path_mtu << 5) | attr 2260 drivers/infiniband/hw/mlx4/qp.c context->remote_qpn = cpu_to_be32(attr->dest_qp_num); attr 2265 drivers/infiniband/hw/mlx4/qp.c mlx4_set_sched(&context->pri_path, attr->port_num); attr 2310 drivers/infiniband/hw/mlx4/qp.c context->pri_path.pkey_index = attr->pkey_index; attr 2316 drivers/infiniband/hw/mlx4/qp.c attr_mask & IB_QP_PORT ? attr->port_num : qp->port; attr 2321 drivers/infiniband/hw/mlx4/qp.c rdma_ah_get_ah_flags(&attr->ah_attr) & IB_AH_GRH; attr 2324 drivers/infiniband/hw/mlx4/qp.c gid_attr = attr->ah_attr.grh.sgid_attr; attr 2331 drivers/infiniband/hw/mlx4/qp.c if (mlx4_set_path(dev, attr, attr_mask, qp, &context->pri_path, attr 2352 drivers/infiniband/hw/mlx4/qp.c context->pri_path.ackto |= attr->timeout << 3; attr 2357 drivers/infiniband/hw/mlx4/qp.c if (attr->alt_port_num == 0 || attr 2358 drivers/infiniband/hw/mlx4/qp.c attr->alt_port_num > dev->dev->caps.num_ports) attr 2361 drivers/infiniband/hw/mlx4/qp.c if (attr->alt_pkey_index >= attr 2362 drivers/infiniband/hw/mlx4/qp.c dev->dev->caps.pkey_table_len[attr->alt_port_num]) attr 2365 drivers/infiniband/hw/mlx4/qp.c if (mlx4_set_alt_path(dev, attr, attr_mask, qp, attr 2367 drivers/infiniband/hw/mlx4/qp.c attr->alt_port_num)) attr 2370 drivers/infiniband/hw/mlx4/qp.c context->alt_path.pkey_index = attr->alt_pkey_index; attr 2371 drivers/infiniband/hw/mlx4/qp.c context->alt_path.ackto = attr->alt_timeout << 3; attr 2392 drivers/infiniband/hw/mlx4/qp.c context->params1 |= cpu_to_be32(attr->rnr_retry << 13); attr 2397 drivers/infiniband/hw/mlx4/qp.c context->params1 |= cpu_to_be32(attr->retry_cnt << 16); attr 2402 drivers/infiniband/hw/mlx4/qp.c if (attr->max_rd_atomic) attr 2404 drivers/infiniband/hw/mlx4/qp.c cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); attr 2409 drivers/infiniband/hw/mlx4/qp.c context->next_send_psn = cpu_to_be32(attr->sq_psn); attr 2412 drivers/infiniband/hw/mlx4/qp.c if (attr->max_dest_rd_atomic) attr 2414 drivers/infiniband/hw/mlx4/qp.c cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); attr 2419 drivers/infiniband/hw/mlx4/qp.c context->params2 |= to_mlx4_access_flags(qp, attr, attr_mask); attr 2427 drivers/infiniband/hw/mlx4/qp.c context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24); attr 2431 drivers/infiniband/hw/mlx4/qp.c context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); attr 2441 drivers/infiniband/hw/mlx4/qp.c (attr->qkey & MLX4_RESERVED_QKEY_MASK) == attr 2445 drivers/infiniband/hw/mlx4/qp.c " is reserved)\n", attr->qkey); attr 2449 drivers/infiniband/hw/mlx4/qp.c context->qkey = cpu_to_be32(attr->qkey); attr 2520 drivers/infiniband/hw/mlx4/qp.c attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY && attr->en_sqd_async_notify) attr 2567 drivers/infiniband/hw/mlx4/qp.c qp->atomic_rd_en = attr->qp_access_flags; attr 2569 drivers/infiniband/hw/mlx4/qp.c qp->resp_depth = attr->max_dest_rd_atomic; attr 2571 drivers/infiniband/hw/mlx4/qp.c qp->port = attr->port_num; attr 2575 drivers/infiniband/hw/mlx4/qp.c qp->alt_port = attr->alt_port_num; attr 2578 drivers/infiniband/hw/mlx4/qp.c store_sqp_attrs(to_msqp(qp), attr, attr_mask); attr 2718 drivers/infiniband/hw/mlx4/qp.c static int _mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 2727 drivers/infiniband/hw/mlx4/qp.c cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; attr 2728 drivers/infiniband/hw/mlx4/qp.c new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; attr 2768 drivers/infiniband/hw/mlx4/qp.c attr->port_num = mlx4_ib_bond_next_port(dev); attr 2778 drivers/infiniband/hw/mlx4/qp.c (attr->port_num == 0 || attr->port_num > dev->num_ports)) { attr 2781 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->port_num, cur_state, attr 2787 drivers/infiniband/hw/mlx4/qp.c (rdma_port_get_link_layer(&dev->ib_dev, attr->port_num) != attr 2792 drivers/infiniband/hw/mlx4/qp.c int p = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; attr 2793 drivers/infiniband/hw/mlx4/qp.c if (attr->pkey_index >= dev->dev->caps.pkey_table_len[p]) { attr 2796 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->pkey_index, cur_state, attr 2803 drivers/infiniband/hw/mlx4/qp.c attr->max_rd_atomic > dev->dev->caps.max_qp_init_rdma) { attr 2806 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->max_rd_atomic, cur_state, attr 2812 drivers/infiniband/hw/mlx4/qp.c attr->max_dest_rd_atomic > dev->dev->caps.max_qp_dest_rdma) { attr 2815 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->max_dest_rd_atomic, cur_state, attr 2826 drivers/infiniband/hw/mlx4/qp.c err = bringup_rss_rwqs(ibqp->rwq_ind_tbl, attr->port_num, attr 2832 drivers/infiniband/hw/mlx4/qp.c err = __mlx4_ib_modify_qp(ibqp, MLX4_IB_QP_SRC, attr, attr_mask, attr 2839 drivers/infiniband/hw/mlx4/qp.c attr->port_num = 1; attr 2846 drivers/infiniband/hw/mlx4/qp.c int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 2852 drivers/infiniband/hw/mlx4/qp.c ret = _mlx4_ib_modify_qp(ibqp, attr, attr_mask, udata); attr 2859 drivers/infiniband/hw/mlx4/qp.c err = ib_modify_qp(sqp->roce_v2_gsi, attr, attr_mask); attr 4232 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_attr attr = {}; attr 4234 drivers/infiniband/hw/mlx4/qp.c attr.port_num = qp->port; attr 4237 drivers/infiniband/hw/mlx4/qp.c err = __mlx4_ib_modify_qp(ibwq, MLX4_IB_RWQ_SRC, &attr, attr 4480 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_attr attr = { .qp_state = IB_QPS_ERR }; attr 4494 drivers/infiniband/hw/mlx4/qp.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE); attr 4515 drivers/infiniband/hw/mlx4/qp.c struct ib_qp_attr attr = { .qp_state = IB_QPS_ERR }; attr 4523 drivers/infiniband/hw/mlx4/qp.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE); attr 90 drivers/infiniband/hw/mlx4/srq.c if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || attr 91 drivers/infiniband/hw/mlx4/srq.c init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) attr 96 drivers/infiniband/hw/mlx4/srq.c srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); attr 97 drivers/infiniband/hw/mlx4/srq.c srq->msrq.max_gs = init_attr->attr.max_sge; attr 193 drivers/infiniband/hw/mlx4/srq.c init_attr->attr.max_wr = srq->msrq.max - 1; attr 218 drivers/infiniband/hw/mlx4/srq.c int mlx4_ib_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 230 drivers/infiniband/hw/mlx4/srq.c if (attr->srq_limit >= srq->msrq.max) attr 234 drivers/infiniband/hw/mlx4/srq.c ret = mlx4_srq_arm(dev->dev, &srq->msrq, attr->srq_limit); attr 47 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, char *buf) attr 50 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); attr 69 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, attr 75 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); attr 112 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, attr 116 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); attr 139 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, attr 143 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); attr 159 drivers/infiniband/hw/mlx4/sysfs.c sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \ attr 165 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, attr 168 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, attr 178 drivers/infiniband/hw/mlx4/sysfs.c sysfs_attr_init(&vdentry->dentry.attr); attr 179 drivers/infiniband/hw/mlx4/sysfs.c vdentry->dentry.attr.name = vdentry->name; attr 180 drivers/infiniband/hw/mlx4/sysfs.c vdentry->dentry.attr.mode = 0; attr 185 drivers/infiniband/hw/mlx4/sysfs.c vdentry->dentry.attr.mode |= S_IWUSR; attr 188 drivers/infiniband/hw/mlx4/sysfs.c vdentry->dentry.attr.mode |= S_IRUGO; attr 190 drivers/infiniband/hw/mlx4/sysfs.c ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr); attr 192 drivers/infiniband/hw/mlx4/sysfs.c pr_err("failed to create %s\n", vdentry->dentry.attr.name); attr 201 drivers/infiniband/hw/mlx4/sysfs.c struct attribute *attr) attr 206 drivers/infiniband/hw/mlx4/sysfs.c ret = sysfs_create_file(port->mcgs_parent, attr); attr 208 drivers/infiniband/hw/mlx4/sysfs.c pr_err("failed to create %s\n", attr->name); attr 214 drivers/infiniband/hw/mlx4/sysfs.c struct attribute *attr) attr 218 drivers/infiniband/hw/mlx4/sysfs.c sysfs_remove_file(port->mcgs_parent, attr); attr 227 drivers/infiniband/hw/mlx4/sysfs.c struct ib_port_attr attr; attr 229 drivers/infiniband/hw/mlx4/sysfs.c memset(&attr, 0, sizeof(attr)); attr 231 drivers/infiniband/hw/mlx4/sysfs.c ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); attr 265 drivers/infiniband/hw/mlx4/sysfs.c for (i = 0 ; i < attr.gid_tbl_len; i++) { attr 283 drivers/infiniband/hw/mlx4/sysfs.c for (i = 0 ; i < attr.gid_tbl_len; i++) { attr 285 drivers/infiniband/hw/mlx4/sysfs.c port->dentr_ar->dentries[attr.gid_tbl_len + i].entry_num = i; attr 287 drivers/infiniband/hw/mlx4/sysfs.c &port->dentr_ar->dentries[attr.gid_tbl_len + i], attr 302 drivers/infiniband/hw/mlx4/sysfs.c for (i = 0 ; i < attr.pkey_tbl_len; i++) { attr 304 drivers/infiniband/hw/mlx4/sysfs.c port->dentr_ar->dentries[2 * attr.gid_tbl_len + i].entry_num = i; attr 306 drivers/infiniband/hw/mlx4/sysfs.c &port->dentr_ar->dentries[2 * attr.gid_tbl_len + i], attr 392 drivers/infiniband/hw/mlx4/sysfs.c struct attribute attr; attr 399 drivers/infiniband/hw/mlx4/sysfs.c struct attribute *attr, char *buf) attr 402 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct port_attribute, attr); attr 411 drivers/infiniband/hw/mlx4/sysfs.c struct attribute *attr, attr 415 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct port_attribute, attr); attr 434 drivers/infiniband/hw/mlx4/sysfs.c struct port_attribute attr; attr 439 drivers/infiniband/hw/mlx4/sysfs.c static ssize_t show_port_pkey(struct mlx4_port *p, struct port_attribute *attr, attr 443 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct port_table_attribute, attr); attr 456 drivers/infiniband/hw/mlx4/sysfs.c static ssize_t store_port_pkey(struct mlx4_port *p, struct port_attribute *attr, attr 460 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct port_table_attribute, attr); attr 489 drivers/infiniband/hw/mlx4/sysfs.c struct port_attribute *attr, char *buf) attr 519 drivers/infiniband/hw/mlx4/sysfs.c sysfs_attr_init(&element->attr.attr); attr 520 drivers/infiniband/hw/mlx4/sysfs.c element->attr.attr.name = element->name; attr 522 drivers/infiniband/hw/mlx4/sysfs.c element->attr.attr.mode = S_IWUSR | S_IRUGO; attr 523 drivers/infiniband/hw/mlx4/sysfs.c element->attr.store = store; attr 525 drivers/infiniband/hw/mlx4/sysfs.c element->attr.attr.mode = S_IRUGO; attr 527 drivers/infiniband/hw/mlx4/sysfs.c element->attr.show = show; attr 529 drivers/infiniband/hw/mlx4/sysfs.c tab_attr[i] = &element->attr.attr; attr 541 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, char *buf) attr 544 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct mlx4_port, smi_enabled); attr 556 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, attr 560 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct mlx4_port, enable_smi_admin); attr 572 drivers/infiniband/hw/mlx4/sysfs.c struct device_attribute *attr, attr 576 drivers/infiniband/hw/mlx4/sysfs.c container_of(attr, struct mlx4_port, enable_smi_admin); attr 598 drivers/infiniband/hw/mlx4/sysfs.c sysfs_attr_init(&p->smi_enabled.attr); attr 601 drivers/infiniband/hw/mlx4/sysfs.c p->smi_enabled.attr.name = "smi_enabled"; attr 602 drivers/infiniband/hw/mlx4/sysfs.c p->smi_enabled.attr.mode = 0444; attr 603 drivers/infiniband/hw/mlx4/sysfs.c ret = sysfs_create_file(&p->kobj, &p->smi_enabled.attr); attr 609 drivers/infiniband/hw/mlx4/sysfs.c sysfs_attr_init(&p->enable_smi_admin.attr); attr 612 drivers/infiniband/hw/mlx4/sysfs.c p->enable_smi_admin.attr.name = "enable_smi_admin"; attr 613 drivers/infiniband/hw/mlx4/sysfs.c p->enable_smi_admin.attr.mode = 0644; attr 614 drivers/infiniband/hw/mlx4/sysfs.c ret = sysfs_create_file(&p->kobj, &p->enable_smi_admin.attr); attr 617 drivers/infiniband/hw/mlx4/sysfs.c sysfs_remove_file(&p->kobj, &p->smi_enabled.attr); attr 631 drivers/infiniband/hw/mlx4/sysfs.c sysfs_remove_file(&p->kobj, &p->smi_enabled.attr); attr 632 drivers/infiniband/hw/mlx4/sysfs.c sysfs_remove_file(&p->kobj, &p->enable_smi_admin.attr); attr 910 drivers/infiniband/hw/mlx5/cq.c int mlx5_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 914 drivers/infiniband/hw/mlx5/cq.c int entries = attr->cqe; attr 915 drivers/infiniband/hw/mlx5/cq.c int vector = attr->comp_vector; attr 932 drivers/infiniband/hw/mlx5/cq.c if (check_cq_create_flags(attr->flags)) attr 944 drivers/infiniband/hw/mlx5/cq.c cq->create_flags = attr->flags; attr 276 drivers/infiniband/hw/mlx5/gsi.c struct ib_qp_attr attr; attr 281 drivers/infiniband/hw/mlx5/gsi.c attr.qp_state = IB_QPS_INIT; attr 282 drivers/infiniband/hw/mlx5/gsi.c attr.pkey_index = qp_index; attr 283 drivers/infiniband/hw/mlx5/gsi.c attr.qkey = IB_QP1_QKEY; attr 284 drivers/infiniband/hw/mlx5/gsi.c attr.port_num = gsi->port_num; attr 285 drivers/infiniband/hw/mlx5/gsi.c ret = ib_modify_qp(qp, &attr, mask); attr 292 drivers/infiniband/hw/mlx5/gsi.c attr.qp_state = IB_QPS_RTR; attr 293 drivers/infiniband/hw/mlx5/gsi.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE); attr 300 drivers/infiniband/hw/mlx5/gsi.c attr.qp_state = IB_QPS_RTS; attr 301 drivers/infiniband/hw/mlx5/gsi.c attr.sq_psn = 0; attr 302 drivers/infiniband/hw/mlx5/gsi.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE | IB_QP_SQ_PSN); attr 373 drivers/infiniband/hw/mlx5/gsi.c int mlx5_ib_gsi_modify_qp(struct ib_qp *qp, struct ib_qp_attr *attr, attr 380 drivers/infiniband/hw/mlx5/gsi.c mlx5_ib_dbg(dev, "modifying GSI QP to state %d\n", attr->qp_state); attr 383 drivers/infiniband/hw/mlx5/gsi.c ret = ib_modify_qp(gsi->rx_qp, attr, attr_mask); attr 150 drivers/infiniband/hw/mlx5/main.c struct ib_port_attr attr; attr 153 drivers/infiniband/hw/mlx5/main.c memset(&attr, 0, sizeof(attr)); attr 154 drivers/infiniband/hw/mlx5/main.c ret = ibdev->ops.query_port(ibdev, port_num, &attr); attr 156 drivers/infiniband/hw/mlx5/main.c *state = attr.state; attr 580 drivers/infiniband/hw/mlx5/main.c const struct ib_gid_attr *attr) attr 590 drivers/infiniband/hw/mlx5/main.c gid_type = attr->gid_type; attr 591 drivers/infiniband/hw/mlx5/main.c ret = rdma_read_gid_l2_fields(attr, &vlan_id, &mac[0]); attr 618 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_add_gid(const struct ib_gid_attr *attr, attr 621 drivers/infiniband/hw/mlx5/main.c return set_roce_addr(to_mdev(attr->device), attr->port_num, attr 622 drivers/infiniband/hw/mlx5/main.c attr->index, &attr->gid, attr); attr 625 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_del_gid(const struct ib_gid_attr *attr, attr 628 drivers/infiniband/hw/mlx5/main.c return set_roce_addr(to_mdev(attr->device), attr->port_num, attr 629 drivers/infiniband/hw/mlx5/main.c attr->index, NULL, NULL); attr 633 drivers/infiniband/hw/mlx5/main.c const struct ib_gid_attr *attr) attr 635 drivers/infiniband/hw/mlx5/main.c if (attr->gid_type != IB_GID_TYPE_ROCE_UDP_ENCAP) attr 1557 drivers/infiniband/hw/mlx5/main.c struct ib_port_attr attr; attr 1579 drivers/infiniband/hw/mlx5/main.c err = ib_query_port(ibdev, port, &attr); attr 1583 drivers/infiniband/hw/mlx5/main.c tmp = (attr.port_cap_flags | props->set_port_cap_mask) & attr 2287 drivers/infiniband/hw/mlx5/main.c struct ib_dm_alloc_attr *attr, attr 2295 drivers/infiniband/hw/mlx5/main.c dm->size = roundup(attr->length, MLX5_MEMIC_BASE_SIZE); attr 2298 drivers/infiniband/hw/mlx5/main.c dm->size, attr->alignment); attr 2332 drivers/infiniband/hw/mlx5/main.c struct ib_dm_alloc_attr *attr, attr 2343 drivers/infiniband/hw/mlx5/main.c act_size = round_up(attr->length, MLX5_SW_ICM_BLOCK_SIZE(dev)); attr 2366 drivers/infiniband/hw/mlx5/main.c struct ib_dm_alloc_attr *attr, attr 2380 drivers/infiniband/hw/mlx5/main.c type, attr->length, attr->alignment); attr 2395 drivers/infiniband/hw/mlx5/main.c attr, attr 2400 drivers/infiniband/hw/mlx5/main.c attr, attrs, attr 2405 drivers/infiniband/hw/mlx5/main.c attr, attrs, attr 4187 drivers/infiniband/hw/mlx5/main.c const struct ib_flow_action_attrs_esp *attr, attr 4210 drivers/infiniband/hw/mlx5/main.c if (!attr->keymat || attr->replay || attr->encap || attr 4211 drivers/infiniband/hw/mlx5/main.c attr->spi || attr->seq || attr->tfc_pad || attr 4212 drivers/infiniband/hw/mlx5/main.c attr->hard_limit_pkts || attr 4213 drivers/infiniband/hw/mlx5/main.c (attr->flags & ~(IB_FLOW_ACTION_ESP_FLAGS_ESN_TRIGGERED | attr 4217 drivers/infiniband/hw/mlx5/main.c if (attr->keymat->protocol != attr 4221 drivers/infiniband/hw/mlx5/main.c aes_gcm = &attr->keymat->keymat.aes_gcm; attr 4231 drivers/infiniband/hw/mlx5/main.c action->esp_aes_gcm.ib_flags = attr->flags; attr 4243 drivers/infiniband/hw/mlx5/main.c accel_attrs.esn = attr->esn; attr 4244 drivers/infiniband/hw/mlx5/main.c if (attr->flags & IB_FLOW_ACTION_ESP_FLAGS_ESN_TRIGGERED) attr 4246 drivers/infiniband/hw/mlx5/main.c if (attr->flags & IB_UVERBS_FLOW_ACTION_ESP_FLAGS_ESN_NEW_WINDOW) attr 4249 drivers/infiniband/hw/mlx5/main.c if (attr->flags & IB_UVERBS_FLOW_ACTION_ESP_FLAGS_ENCRYPT) attr 4259 drivers/infiniband/hw/mlx5/main.c action->esp_aes_gcm.ib_flags = attr->flags; attr 4270 drivers/infiniband/hw/mlx5/main.c const struct ib_flow_action_attrs_esp *attr, attr 4277 drivers/infiniband/hw/mlx5/main.c if (attr->keymat || attr->replay || attr->encap || attr 4278 drivers/infiniband/hw/mlx5/main.c attr->spi || attr->seq || attr->tfc_pad || attr 4279 drivers/infiniband/hw/mlx5/main.c attr->hard_limit_pkts || attr 4280 drivers/infiniband/hw/mlx5/main.c (attr->flags & ~(IB_FLOW_ACTION_ESP_FLAGS_ESN_TRIGGERED | attr 4290 drivers/infiniband/hw/mlx5/main.c attr->flags & (IB_FLOW_ACTION_ESP_FLAGS_ESN_TRIGGERED | attr 4297 drivers/infiniband/hw/mlx5/main.c accel_attrs.esn = attr->esn; attr 4298 drivers/infiniband/hw/mlx5/main.c if (attr->flags & IB_UVERBS_FLOW_ACTION_ESP_FLAGS_ESN_NEW_WINDOW) attr 4311 drivers/infiniband/hw/mlx5/main.c attr->flags & IB_UVERBS_FLOW_ACTION_ESP_FLAGS_ESN_NEW_WINDOW; attr 4393 drivers/infiniband/hw/mlx5/main.c struct device_attribute *attr, char *buf) attr 4403 drivers/infiniband/hw/mlx5/main.c struct device_attribute *attr, char *buf) attr 4413 drivers/infiniband/hw/mlx5/main.c struct device_attribute *attr, char *buf) attr 4423 drivers/infiniband/hw/mlx5/main.c struct device_attribute *attr, char *buf) attr 4433 drivers/infiniband/hw/mlx5/main.c struct device_attribute *attr, char *buf) attr 4444 drivers/infiniband/hw/mlx5/main.c &dev_attr_hw_rev.attr, attr 4445 drivers/infiniband/hw/mlx5/main.c &dev_attr_hca_type.attr, attr 4446 drivers/infiniband/hw/mlx5/main.c &dev_attr_board_id.attr, attr 4447 drivers/infiniband/hw/mlx5/main.c &dev_attr_fw_pages.attr, attr 4448 drivers/infiniband/hw/mlx5/main.c &dev_attr_reg_pages.attr, attr 4807 drivers/infiniband/hw/mlx5/main.c struct ib_qp_attr *attr = NULL; attr 4813 drivers/infiniband/hw/mlx5/main.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 4815 drivers/infiniband/hw/mlx5/main.c if (!attr || !init_attr) { attr 4854 drivers/infiniband/hw/mlx5/main.c attr->qp_state = IB_QPS_INIT; attr 4855 drivers/infiniband/hw/mlx5/main.c attr->port_num = 1; attr 4856 drivers/infiniband/hw/mlx5/main.c ret = mlx5_ib_modify_qp(qp, attr, IB_QP_STATE | IB_QP_PKEY_INDEX | attr 4863 drivers/infiniband/hw/mlx5/main.c memset(attr, 0, sizeof(*attr)); attr 4864 drivers/infiniband/hw/mlx5/main.c attr->qp_state = IB_QPS_RTR; attr 4865 drivers/infiniband/hw/mlx5/main.c attr->path_mtu = IB_MTU_256; attr 4867 drivers/infiniband/hw/mlx5/main.c ret = mlx5_ib_modify_qp(qp, attr, IB_QP_STATE, NULL); attr 4873 drivers/infiniband/hw/mlx5/main.c memset(attr, 0, sizeof(*attr)); attr 4874 drivers/infiniband/hw/mlx5/main.c attr->qp_state = IB_QPS_RTS; attr 4875 drivers/infiniband/hw/mlx5/main.c ret = mlx5_ib_modify_qp(qp, attr, IB_QP_STATE, NULL); attr 4892 drivers/infiniband/hw/mlx5/main.c kfree(attr); attr 4910 drivers/infiniband/hw/mlx5/main.c kfree(attr); attr 4929 drivers/infiniband/hw/mlx5/main.c struct ib_srq_init_attr attr; attr 4988 drivers/infiniband/hw/mlx5/main.c memset(&attr, 0, sizeof(attr)); attr 4989 drivers/infiniband/hw/mlx5/main.c attr.attr.max_sge = 1; attr 4990 drivers/infiniband/hw/mlx5/main.c attr.attr.max_wr = 1; attr 4991 drivers/infiniband/hw/mlx5/main.c attr.srq_type = IB_SRQT_XRC; attr 4992 drivers/infiniband/hw/mlx5/main.c attr.ext.cq = devr->c0; attr 4993 drivers/infiniband/hw/mlx5/main.c attr.ext.xrc.xrcd = devr->x0; attr 5006 drivers/infiniband/hw/mlx5/main.c ret = mlx5_ib_create_srq(devr->s0, &attr, NULL); attr 5015 drivers/infiniband/hw/mlx5/main.c memset(&attr, 0, sizeof(attr)); attr 5016 drivers/infiniband/hw/mlx5/main.c attr.attr.max_sge = 1; attr 5017 drivers/infiniband/hw/mlx5/main.c attr.attr.max_wr = 1; attr 5018 drivers/infiniband/hw/mlx5/main.c attr.srq_type = IB_SRQT_BASIC; attr 5030 drivers/infiniband/hw/mlx5/main.c ret = mlx5_ib_create_srq(devr->s1, &attr, NULL); attr 5123 drivers/infiniband/hw/mlx5/main.c struct ib_port_attr attr; attr 5129 drivers/infiniband/hw/mlx5/main.c err = ib_query_port(ibdev, port_num, &attr); attr 5140 drivers/infiniband/hw/mlx5/main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 5141 drivers/infiniband/hw/mlx5/main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 5152 drivers/infiniband/hw/mlx5/main.c struct ib_port_attr attr; attr 5157 drivers/infiniband/hw/mlx5/main.c err = ib_query_port(ibdev, port_num, &attr); attr 5161 drivers/infiniband/hw/mlx5/main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 5162 drivers/infiniband/hw/mlx5/main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 1112 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 1123 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1140 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 1242 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_dm_alloc_attr *attr, attr 1246 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_dm_mr_attr *attr, attr 1308 drivers/infiniband/hw/mlx5/mlx5_ib.h const struct ib_gid_attr *attr); attr 1317 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_gsi_modify_qp(struct ib_qp *qp, struct ib_qp_attr *attr, attr 1219 drivers/infiniband/hw/mlx5/mr.c struct ib_dm_mr_attr *attr, attr 1224 drivers/infiniband/hw/mlx5/mr.c u64 start_addr = mdm->dev_addr + attr->offset; attr 1229 drivers/infiniband/hw/mlx5/mr.c if (attr->access_flags & ~MLX5_IB_DM_MEMIC_ALLOWED_ACCESS) attr 1237 drivers/infiniband/hw/mlx5/mr.c if (attr->access_flags & ~MLX5_IB_DM_SW_ICM_ALLOWED_ACCESS) attr 1246 drivers/infiniband/hw/mlx5/mr.c return mlx5_ib_get_dm_mr(pd, start_addr, attr->length, attr 1247 drivers/infiniband/hw/mlx5/mr.c attr->access_flags, mode); attr 379 drivers/infiniband/hw/mlx5/qp.c static int sq_overhead(struct ib_qp_init_attr *attr) attr 383 drivers/infiniband/hw/mlx5/qp.c switch (attr->qp_type) { attr 408 drivers/infiniband/hw/mlx5/qp.c if (attr->create_flags & IB_QP_CREATE_IPOIB_UD_LSO) attr 431 drivers/infiniband/hw/mlx5/qp.c static int calc_send_wqe(struct ib_qp_init_attr *attr) attr 436 drivers/infiniband/hw/mlx5/qp.c size = sq_overhead(attr); attr 440 drivers/infiniband/hw/mlx5/qp.c if (attr->cap.max_inline_data) { attr 442 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_inline_data; attr 445 drivers/infiniband/hw/mlx5/qp.c size += attr->cap.max_send_sge * sizeof(struct mlx5_wqe_data_seg); attr 446 drivers/infiniband/hw/mlx5/qp.c if (attr->create_flags & IB_QP_CREATE_INTEGRITY_EN && attr 453 drivers/infiniband/hw/mlx5/qp.c static int get_send_sge(struct ib_qp_init_attr *attr, int wqe_size) attr 457 drivers/infiniband/hw/mlx5/qp.c if (attr->qp_type == IB_QPT_RC) attr 462 drivers/infiniband/hw/mlx5/qp.c else if (attr->qp_type == IB_QPT_XRC_INI) attr 469 drivers/infiniband/hw/mlx5/qp.c max_sge = (wqe_size - sq_overhead(attr)) / attr 472 drivers/infiniband/hw/mlx5/qp.c return min_t(int, max_sge, wqe_size - sq_overhead(attr) / attr 476 drivers/infiniband/hw/mlx5/qp.c static int calc_sq_size(struct mlx5_ib_dev *dev, struct ib_qp_init_attr *attr, attr 482 drivers/infiniband/hw/mlx5/qp.c if (!attr->cap.max_send_wr) attr 485 drivers/infiniband/hw/mlx5/qp.c wqe_size = calc_send_wqe(attr); attr 496 drivers/infiniband/hw/mlx5/qp.c qp->max_inline_data = wqe_size - sq_overhead(attr) - attr 498 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_inline_data = qp->max_inline_data; attr 500 drivers/infiniband/hw/mlx5/qp.c wq_size = roundup_pow_of_two(attr->cap.max_send_wr * wqe_size); attr 504 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_send_wr, wqe_size, MLX5_SEND_WQE_BB, attr 510 drivers/infiniband/hw/mlx5/qp.c qp->sq.max_gs = get_send_sge(attr, wqe_size); attr 511 drivers/infiniband/hw/mlx5/qp.c if (qp->sq.max_gs < attr->cap.max_send_sge) attr 514 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_send_sge = qp->sq.max_gs; attr 516 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_send_wr = qp->sq.max_post; attr 525 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *attr) attr 550 drivers/infiniband/hw/mlx5/qp.c if (attr->qp_type == IB_QPT_RAW_PACKET || attr 562 drivers/infiniband/hw/mlx5/qp.c static int qp_has_rq(struct ib_qp_init_attr *attr) attr 564 drivers/infiniband/hw/mlx5/qp.c if (attr->qp_type == IB_QPT_XRC_INI || attr 565 drivers/infiniband/hw/mlx5/qp.c attr->qp_type == IB_QPT_XRC_TGT || attr->srq || attr 566 drivers/infiniband/hw/mlx5/qp.c attr->qp_type == MLX5_IB_QPT_REG_UMR || attr 567 drivers/infiniband/hw/mlx5/qp.c !attr->cap.max_recv_wr) attr 857 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *attr, attr 913 drivers/infiniband/hw/mlx5/qp.c err = set_user_buf_size(dev, qp, &ucmd, base, attr); attr 936 drivers/infiniband/hw/mlx5/qp.c uid = (attr->qp_type != IB_QPT_XRC_TGT && attr 937 drivers/infiniband/hw/mlx5/qp.c attr->qp_type != IB_QPT_XRC_INI) ? to_mpd(pd)->uid : 0; attr 1169 drivers/infiniband/hw/mlx5/qp.c static u32 get_rx_type(struct mlx5_ib_qp *qp, struct ib_qp_init_attr *attr) attr 1171 drivers/infiniband/hw/mlx5/qp.c if (attr->srq || (attr->qp_type == IB_QPT_XRC_TGT) || attr 1172 drivers/infiniband/hw/mlx5/qp.c (attr->qp_type == MLX5_IB_QPT_DCI) || attr 1173 drivers/infiniband/hw/mlx5/qp.c (attr->qp_type == IB_QPT_XRC_INI)) attr 2541 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_init_attr *attr, attr 2552 drivers/infiniband/hw/mlx5/qp.c if (!attr->srq || !attr->recv_cq) attr 2573 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, srqn_xrqn, to_msrq(attr->srq)->msrq.srqn); attr 2574 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, cqn, to_mcq(attr->recv_cq)->mcq.cqn); attr 2579 drivers/infiniband/hw/mlx5/qp.c configure_responder_scat_cqe(attr, dctc); attr 2789 drivers/infiniband/hw/mlx5/qp.c const struct ib_qp_attr *attr, attr 2798 drivers/infiniband/hw/mlx5/qp.c dest_rd_atomic = attr->max_dest_rd_atomic; attr 2803 drivers/infiniband/hw/mlx5/qp.c access_flags = attr->qp_access_flags; attr 2910 drivers/infiniband/hw/mlx5/qp.c u32 path_flags, const struct ib_qp_attr *attr, attr 2920 drivers/infiniband/hw/mlx5/qp.c path->pkey_index = cpu_to_be16(alt ? attr->alt_pkey_index : attr 2921 drivers/infiniband/hw/mlx5/qp.c attr->pkey_index); attr 2975 drivers/infiniband/hw/mlx5/qp.c path->ackto_lt = (alt ? attr->alt_timeout : attr->timeout) << 3; attr 3409 drivers/infiniband/hw/mlx5/qp.c const struct ib_qp_attr *attr, int attr_mask, attr 3481 drivers/infiniband/hw/mlx5/qp.c switch (attr->path_mig_state) { attr 3518 drivers/infiniband/hw/mlx5/qp.c if (attr->path_mtu < IB_MTU_256 || attr 3519 drivers/infiniband/hw/mlx5/qp.c attr->path_mtu > IB_MTU_4096) { attr 3520 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_warn(dev, "invalid mtu %d\n", attr->path_mtu); attr 3524 drivers/infiniband/hw/mlx5/qp.c context->mtu_msgmax = (attr->path_mtu << 5) | attr 3529 drivers/infiniband/hw/mlx5/qp.c context->log_pg_sz_remote_qpn = cpu_to_be32(attr->dest_qp_num); attr 3532 drivers/infiniband/hw/mlx5/qp.c context->pri_path.pkey_index = cpu_to_be16(attr->pkey_index); attr 3540 drivers/infiniband/hw/mlx5/qp.c context->pri_path.port = attr->port_num; attr 3543 drivers/infiniband/hw/mlx5/qp.c err = mlx5_set_path(dev, qp, &attr->ah_attr, &context->pri_path, attr 3544 drivers/infiniband/hw/mlx5/qp.c attr_mask & IB_QP_PORT ? attr->port_num : qp->port, attr 3545 drivers/infiniband/hw/mlx5/qp.c attr_mask, 0, attr, false); attr 3551 drivers/infiniband/hw/mlx5/qp.c context->pri_path.ackto_lt |= attr->timeout << 3; attr 3554 drivers/infiniband/hw/mlx5/qp.c err = mlx5_set_path(dev, qp, &attr->alt_ah_attr, attr 3556 drivers/infiniband/hw/mlx5/qp.c attr->alt_port_num, attr 3558 drivers/infiniband/hw/mlx5/qp.c 0, attr, true); attr 3572 drivers/infiniband/hw/mlx5/qp.c context->params1 |= cpu_to_be32(attr->rnr_retry << 13); attr 3575 drivers/infiniband/hw/mlx5/qp.c context->params1 |= cpu_to_be32(attr->retry_cnt << 16); attr 3578 drivers/infiniband/hw/mlx5/qp.c if (attr->max_rd_atomic) attr 3580 drivers/infiniband/hw/mlx5/qp.c cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); attr 3584 drivers/infiniband/hw/mlx5/qp.c context->next_send_psn = cpu_to_be32(attr->sq_psn); attr 3587 drivers/infiniband/hw/mlx5/qp.c if (attr->max_dest_rd_atomic) attr 3589 drivers/infiniband/hw/mlx5/qp.c cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); attr 3595 drivers/infiniband/hw/mlx5/qp.c err = to_mlx5_access_flags(qp, attr, attr_mask, &access_flags); attr 3603 drivers/infiniband/hw/mlx5/qp.c context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24); attr 3606 drivers/infiniband/hw/mlx5/qp.c context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); attr 3609 drivers/infiniband/hw/mlx5/qp.c context->qkey = cpu_to_be32(attr->qkey); attr 3615 drivers/infiniband/hw/mlx5/qp.c u8 port_num = (attr_mask & IB_QP_PORT ? attr->port_num : attr 3660 drivers/infiniband/hw/mlx5/qp.c raw_qp_param.port = attr->port_num; attr 3663 drivers/infiniband/hw/mlx5/qp.c raw_qp_param.rl.rate = attr->rate_limit; attr 3666 drivers/infiniband/hw/mlx5/qp.c if (attr->rate_limit && attr 3677 drivers/infiniband/hw/mlx5/qp.c if (attr->rate_limit && attr 3702 drivers/infiniband/hw/mlx5/qp.c qp->trans_qp.atomic_rd_en = attr->qp_access_flags; attr 3704 drivers/infiniband/hw/mlx5/qp.c qp->trans_qp.resp_depth = attr->max_dest_rd_atomic; attr 3706 drivers/infiniband/hw/mlx5/qp.c qp->port = attr->port_num; attr 3708 drivers/infiniband/hw/mlx5/qp.c qp->trans_qp.alt_port = attr->alt_port_num; attr 3797 drivers/infiniband/hw/mlx5/qp.c static int mlx5_ib_modify_dct(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 3811 drivers/infiniband/hw/mlx5/qp.c new_state = attr->qp_state; attr 3821 drivers/infiniband/hw/mlx5/qp.c if (attr->port_num == 0 || attr 3822 drivers/infiniband/hw/mlx5/qp.c attr->port_num > MLX5_CAP_GEN(dev->mdev, num_ports)) { attr 3824 drivers/infiniband/hw/mlx5/qp.c attr->port_num, dev->num_ports); attr 3827 drivers/infiniband/hw/mlx5/qp.c if (attr->qp_access_flags & IB_ACCESS_REMOTE_READ) attr 3829 drivers/infiniband/hw/mlx5/qp.c if (attr->qp_access_flags & IB_ACCESS_REMOTE_WRITE) attr 3831 drivers/infiniband/hw/mlx5/qp.c if (attr->qp_access_flags & IB_ACCESS_REMOTE_ATOMIC) { attr 3841 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, pkey_index, attr->pkey_index); attr 3842 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, port, attr->port_num); attr 3844 drivers/infiniband/hw/mlx5/qp.c set_id = mlx5_ib_get_counters_id(dev, attr->port_num - 1); attr 3860 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, min_rnr_nak, attr->min_rnr_timer); attr 3861 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, tclass, attr->ah_attr.grh.traffic_class); attr 3862 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, flow_label, attr->ah_attr.grh.flow_label); attr 3863 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, mtu, attr->path_mtu); attr 3864 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, my_addr_index, attr->ah_attr.grh.sgid_index); attr 3865 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, hop_limit, attr->ah_attr.grh.hop_limit); attr 3889 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 3927 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_gsi_modify_qp(ibqp, attr, attr_mask); attr 3936 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_modify_dct(ibqp, attr, attr_mask, udata); attr 3940 drivers/infiniband/hw/mlx5/qp.c cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; attr 3941 drivers/infiniband/hw/mlx5/qp.c new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; attr 3944 drivers/infiniband/hw/mlx5/qp.c port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; attr 3968 drivers/infiniband/hw/mlx5/qp.c (attr->port_num == 0 || attr 3969 drivers/infiniband/hw/mlx5/qp.c attr->port_num > dev->num_ports)) { attr 3971 drivers/infiniband/hw/mlx5/qp.c attr->port_num, dev->num_ports); attr 3976 drivers/infiniband/hw/mlx5/qp.c port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; attr 3977 drivers/infiniband/hw/mlx5/qp.c if (attr->pkey_index >= attr 3980 drivers/infiniband/hw/mlx5/qp.c attr->pkey_index); attr 3986 drivers/infiniband/hw/mlx5/qp.c attr->max_rd_atomic > attr 3989 drivers/infiniband/hw/mlx5/qp.c attr->max_rd_atomic); attr 3994 drivers/infiniband/hw/mlx5/qp.c attr->max_dest_rd_atomic > attr 3997 drivers/infiniband/hw/mlx5/qp.c attr->max_dest_rd_atomic); attr 4006 drivers/infiniband/hw/mlx5/qp.c err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, attr 6442 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_attr attr = { .qp_state = IB_QPS_ERR }; attr 6456 drivers/infiniband/hw/mlx5/qp.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE); attr 6477 drivers/infiniband/hw/mlx5/qp.c struct ib_qp_attr attr = { .qp_state = IB_QPS_ERR }; attr 6485 drivers/infiniband/hw/mlx5/qp.c ret = ib_modify_qp(qp, &attr, IB_QP_STATE); attr 230 drivers/infiniband/hw/mlx5/srq.c if (init_attr->attr.max_wr >= max_srq_wqes) { attr 232 drivers/infiniband/hw/mlx5/srq.c init_attr->attr.max_wr, attr 239 drivers/infiniband/hw/mlx5/srq.c srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); attr 240 drivers/infiniband/hw/mlx5/srq.c srq->msrq.max_gs = init_attr->attr.max_sge; attr 320 drivers/infiniband/hw/mlx5/srq.c init_attr->attr.max_wr = srq->msrq.max - 1; attr 336 drivers/infiniband/hw/mlx5/srq.c int mlx5_ib_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 348 drivers/infiniband/hw/mlx5/srq.c if (attr->srq_limit >= srq->msrq.max) attr 352 drivers/infiniband/hw/mlx5/srq.c ret = mlx5_cmd_arm_srq(dev, &srq->msrq, attr->srq_limit, 1); attr 292 drivers/infiniband/hw/mthca/mthca_av.c int mthca_ah_query(struct ib_ah *ibah, struct rdma_ah_attr *attr) attr 302 drivers/infiniband/hw/mthca/mthca_av.c memset(attr, 0, sizeof *attr); attr 303 drivers/infiniband/hw/mthca/mthca_av.c attr->type = ibah->type; attr 304 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_dlid(attr, be16_to_cpu(ah->av->dlid)); attr 305 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_sl(attr, be32_to_cpu(ah->av->sl_tclass_flowlabel) >> 28); attr 306 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_port_num(attr, port_num); attr 307 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_static_rate(attr, attr 310 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_path_bits(attr, ah->av->g_slid & 0x7F); attr 314 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_grh(attr, NULL, attr 320 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_set_dgid_raw(attr, ah->av->dgid); attr 513 drivers/infiniband/hw/mthca/mthca_dev.h struct ib_srq_attr *attr, struct mthca_srq *srq, attr 516 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 532 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, attr 571 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_ah_query(struct ib_ah *ibah, struct rdma_ah_attr *attr); attr 574 drivers/infiniband/hw/mthca/mthca_mr.c int list_len = mr->attr.max_pages; attr 578 drivers/infiniband/hw/mthca/mthca_mr.c if (mr->attr.page_shift < 12 || mr->attr.page_shift >= 32) attr 583 drivers/infiniband/hw/mthca/mthca_mr.c mr->attr.max_pages * sizeof *mr->mem.arbel.mtts > PAGE_SIZE) attr 636 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->page_size = cpu_to_be32(mr->attr.page_shift - 12); attr 694 drivers/infiniband/hw/mthca/mthca_mr.c if (list_len > fmr->attr.max_pages) attr 697 drivers/infiniband/hw/mthca/mthca_mr.c page_mask = (1 << fmr->attr.page_shift) - 1; attr 710 drivers/infiniband/hw/mthca/mthca_mr.c if (fmr->maps >= fmr->attr.max_maps) attr 745 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry.length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); attr 795 drivers/infiniband/hw/mthca/mthca_mr.c fmr->mem.arbel.mpt->length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); attr 211 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_port_attr attr; attr 217 drivers/infiniband/hw/mthca/mthca_provider.c err = ib_query_port(ibdev, port, &attr); attr 224 drivers/infiniband/hw/mthca/mthca_provider.c set_ib.cap_mask = (attr.port_cap_flags | props->set_port_cap_mask) & attr 435 drivers/infiniband/hw/mthca/mthca_provider.c &init_attr->attr, srq, udata); attr 605 drivers/infiniband/hw/mthca/mthca_provider.c const struct ib_cq_init_attr *attr, attr 609 drivers/infiniband/hw/mthca/mthca_provider.c int entries = attr->cqe; attr 617 drivers/infiniband/hw/mthca/mthca_provider.c if (attr->flags) attr 972 drivers/infiniband/hw/mthca/mthca_provider.c memcpy(&fmr->attr, fmr_attr, sizeof *fmr_attr); attr 1026 drivers/infiniband/hw/mthca/mthca_provider.c struct device_attribute *attr, char *buf) attr 1036 drivers/infiniband/hw/mthca/mthca_provider.c struct device_attribute *attr, char *buf) attr 1058 drivers/infiniband/hw/mthca/mthca_provider.c struct device_attribute *attr, char *buf) attr 1068 drivers/infiniband/hw/mthca/mthca_provider.c &dev_attr_hw_rev.attr, attr 1069 drivers/infiniband/hw/mthca/mthca_provider.c &dev_attr_hca_type.attr, attr 1070 drivers/infiniband/hw/mthca/mthca_provider.c &dev_attr_board_id.attr, attr 1119 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_port_attr attr; attr 1124 drivers/infiniband/hw/mthca/mthca_provider.c err = ib_query_port(ibdev, port_num, &attr); attr 1128 drivers/infiniband/hw/mthca/mthca_provider.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 1129 drivers/infiniband/hw/mthca/mthca_provider.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 81 drivers/infiniband/hw/mthca/mthca_provider.h struct ib_fmr_attr attr; attr 299 drivers/infiniband/hw/mthca/mthca_qp.c static void store_attrs(struct mthca_sqp *sqp, const struct ib_qp_attr *attr, attr 303 drivers/infiniband/hw/mthca/mthca_qp.c sqp->pkey_index = attr->pkey_index; attr 305 drivers/infiniband/hw/mthca/mthca_qp.c sqp->qkey = attr->qkey; attr 307 drivers/infiniband/hw/mthca/mthca_qp.c sqp->send_psn = attr->sq_psn; attr 328 drivers/infiniband/hw/mthca/mthca_qp.c static __be32 get_hw_access_flags(struct mthca_qp *qp, const struct ib_qp_attr *attr, attr 336 drivers/infiniband/hw/mthca/mthca_qp.c dest_rd_atomic = attr->max_dest_rd_atomic; attr 341 drivers/infiniband/hw/mthca/mthca_qp.c access_flags = attr->qp_access_flags; attr 557 drivers/infiniband/hw/mthca/mthca_qp.c const struct ib_qp_attr *attr, int attr_mask, attr 588 drivers/infiniband/hw/mthca/mthca_qp.c switch (attr->path_mig_state) { attr 606 drivers/infiniband/hw/mthca/mthca_qp.c if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_2048) { attr 608 drivers/infiniband/hw/mthca/mthca_qp.c attr->path_mtu); attr 611 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->mtu_msgmax = (attr->path_mtu << 5) | 31; attr 632 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num); attr 641 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(attr->port_num << 24); attr 648 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(attr->pkey_index); attr 654 drivers/infiniband/hw/mthca/mthca_qp.c attr->rnr_retry << 5; attr 660 drivers/infiniband/hw/mthca/mthca_qp.c if (mthca_path_set(dev, &attr->ah_attr, &qp_context->pri_path, attr 661 drivers/infiniband/hw/mthca/mthca_qp.c attr_mask & IB_QP_PORT ? attr->port_num : qp->port)) attr 681 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->pri_path.ackto = attr->timeout << 3; attr 686 drivers/infiniband/hw/mthca/mthca_qp.c if (attr->alt_pkey_index >= dev->limits.pkey_table_len) { attr 688 drivers/infiniband/hw/mthca/mthca_qp.c attr->alt_pkey_index, dev->limits.pkey_table_len-1); attr 692 drivers/infiniband/hw/mthca/mthca_qp.c if (attr->alt_port_num == 0 || attr->alt_port_num > dev->limits.num_ports) { attr 694 drivers/infiniband/hw/mthca/mthca_qp.c attr->alt_port_num); attr 698 drivers/infiniband/hw/mthca/mthca_qp.c if (mthca_path_set(dev, &attr->alt_ah_attr, &qp_context->alt_path, attr 699 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_get_port_num(&attr->alt_ah_attr))) attr 702 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index | attr 703 drivers/infiniband/hw/mthca/mthca_qp.c attr->alt_port_num << 24); attr 704 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->alt_path.ackto = attr->alt_timeout << 3; attr 718 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16); attr 723 drivers/infiniband/hw/mthca/mthca_qp.c if (attr->max_rd_atomic) { attr 728 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); attr 734 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->next_send_psn = cpu_to_be32(attr->sq_psn); attr 743 drivers/infiniband/hw/mthca/mthca_qp.c if (attr->max_dest_rd_atomic) attr 745 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); attr 751 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->params2 |= get_hw_access_flags(qp, attr, attr_mask); attr 763 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24); attr 767 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); attr 780 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->qkey = cpu_to_be32(attr->qkey); attr 790 drivers/infiniband/hw/mthca/mthca_qp.c attr->en_sqd_async_notify) attr 803 drivers/infiniband/hw/mthca/mthca_qp.c qp->atomic_rd_en = attr->qp_access_flags; attr 805 drivers/infiniband/hw/mthca/mthca_qp.c qp->resp_depth = attr->max_dest_rd_atomic; attr 807 drivers/infiniband/hw/mthca/mthca_qp.c qp->port = attr->port_num; attr 809 drivers/infiniband/hw/mthca/mthca_qp.c qp->alt_port = attr->alt_port_num; attr 812 drivers/infiniband/hw/mthca/mthca_qp.c store_attrs(to_msqp(qp), attr, attr_mask); attr 858 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, attr 868 drivers/infiniband/hw/mthca/mthca_qp.c cur_state = attr->cur_qp_state; attr 877 drivers/infiniband/hw/mthca/mthca_qp.c new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; attr 889 drivers/infiniband/hw/mthca/mthca_qp.c attr->pkey_index >= dev->limits.pkey_table_len) { attr 891 drivers/infiniband/hw/mthca/mthca_qp.c attr->pkey_index, dev->limits.pkey_table_len-1); attr 896 drivers/infiniband/hw/mthca/mthca_qp.c (attr->port_num == 0 || attr->port_num > dev->limits.num_ports)) { attr 897 drivers/infiniband/hw/mthca/mthca_qp.c mthca_dbg(dev, "Port number (%u) is invalid\n", attr->port_num); attr 902 drivers/infiniband/hw/mthca/mthca_qp.c attr->max_rd_atomic > dev->limits.max_qp_init_rdma) { attr 904 drivers/infiniband/hw/mthca/mthca_qp.c attr->max_rd_atomic, dev->limits.max_qp_init_rdma); attr 909 drivers/infiniband/hw/mthca/mthca_qp.c attr->max_dest_rd_atomic > 1 << dev->qp_table.rdb_shift) { attr 911 drivers/infiniband/hw/mthca/mthca_qp.c attr->max_dest_rd_atomic, 1 << dev->qp_table.rdb_shift); attr 920 drivers/infiniband/hw/mthca/mthca_qp.c err = __mthca_modify_qp(ibqp, attr, attr_mask, cur_state, new_state, attr 207 drivers/infiniband/hw/mthca/mthca_srq.c struct ib_srq_attr *attr, struct mthca_srq *srq, attr 215 drivers/infiniband/hw/mthca/mthca_srq.c if (attr->max_wr > dev->limits.max_srq_wqes || attr 216 drivers/infiniband/hw/mthca/mthca_srq.c attr->max_sge > dev->limits.max_srq_sge) attr 219 drivers/infiniband/hw/mthca/mthca_srq.c srq->max = attr->max_wr; attr 220 drivers/infiniband/hw/mthca/mthca_srq.c srq->max_gs = attr->max_sge; attr 297 drivers/infiniband/hw/mthca/mthca_srq.c attr->max_wr = srq->max - 1; attr 298 drivers/infiniband/hw/mthca/mthca_srq.c attr->max_sge = srq->max_gs; attr 372 drivers/infiniband/hw/mthca/mthca_srq.c int mthca_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 385 drivers/infiniband/hw/mthca/mthca_srq.c if (attr->srq_limit > max_wr) attr 389 drivers/infiniband/hw/mthca/mthca_srq.c ret = mthca_ARM_SRQ(dev, srq->srqn, attr->srq_limit); attr 242 drivers/infiniband/hw/ocrdma/ocrdma.h struct ocrdma_dev_attr attr; attr 605 drivers/infiniband/hw/ocrdma/ocrdma.h return (dev->attr.udp_encap & OCRDMA_L3_TYPE_IPV4) || attr 606 drivers/infiniband/hw/ocrdma/ocrdma.h (dev->attr.udp_encap & OCRDMA_L3_TYPE_IPV6); attr 74 drivers/infiniband/hw/ocrdma/ocrdma_ah.c struct rdma_ah_attr *attr, const union ib_gid *sgid, attr 120 drivers/infiniband/hw/ocrdma/ocrdma_ah.c status = ocrdma_resolve_dmac(dev, attr, ð.dmac[0]); attr 123 drivers/infiniband/hw/ocrdma/ocrdma_ah.c ib_grh = rdma_ah_read_grh(attr); attr 158 drivers/infiniband/hw/ocrdma/ocrdma_ah.c int ocrdma_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr, u32 flags, attr 170 drivers/infiniband/hw/ocrdma/ocrdma_ah.c if ((attr->type != RDMA_AH_ATTR_TYPE_ROCE) || attr 171 drivers/infiniband/hw/ocrdma/ocrdma_ah.c !(rdma_ah_get_ah_flags(attr) & IB_AH_GRH)) attr 177 drivers/infiniband/hw/ocrdma/ocrdma_ah.c sgid_attr = attr->grh.sgid_attr; attr 189 drivers/infiniband/hw/ocrdma/ocrdma_ah.c status = set_av_attr(dev, ah, attr, &sgid_attr->gid, pd->id, attr 196 drivers/infiniband/hw/ocrdma/ocrdma_ah.c ahid_addr = pd->uctx->ah_tbl.va + rdma_ah_get_dlid(attr); attr 225 drivers/infiniband/hw/ocrdma/ocrdma_ah.c int ocrdma_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr) attr 231 drivers/infiniband/hw/ocrdma/ocrdma_ah.c attr->type = ibah->type; attr 235 drivers/infiniband/hw/ocrdma/ocrdma_ah.c rdma_ah_set_sl(attr, be16_to_cpu(av->eth_hdr.vlan_tag) >> 13); attr 239 drivers/infiniband/hw/ocrdma/ocrdma_ah.c rdma_ah_set_sl(attr, 0); attr 241 drivers/infiniband/hw/ocrdma/ocrdma_ah.c rdma_ah_set_grh(attr, NULL, attr 246 drivers/infiniband/hw/ocrdma/ocrdma_ah.c rdma_ah_set_dgid_raw(attr, &grh->dgid[0]); attr 696 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (qpid < dev->attr.max_qp) attr 706 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (cqid < dev->attr.max_cq) attr 1144 drivers/infiniband/hw/ocrdma/ocrdma_hw.c struct ocrdma_dev_attr *attr, attr 1147 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_pd = attr 1150 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->udp_encap = (rsp->max_pd_ca_ack_delay & attr 1153 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_dpp_pds = attr 1156 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_qp = attr 1159 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_srq = attr 1162 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_send_sge = ((rsp->max_recv_send_sge & attr 1165 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_recv_sge = (rsp->max_recv_send_sge & attr 1168 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_srq_sge = (rsp->max_srq_rqe_sge & attr 1171 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_rdma_sge = (rsp->max_wr_rd_sge & attr 1174 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_ord_per_qp = (rsp->max_ird_ord_per_qp & attr 1177 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_ird_per_qp = (rsp->max_ird_ord_per_qp & attr 1180 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->cq_overflow_detect = (rsp->qp_srq_cq_ird_ord & attr 1183 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->srq_supported = (rsp->qp_srq_cq_ird_ord & attr 1186 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->local_ca_ack_delay = (rsp->max_pd_ca_ack_delay & attr 1189 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_mw = rsp->max_mw; attr 1190 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_mr = rsp->max_mr; attr 1191 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_mr_size = ((u64)rsp->max_mr_size_hi << 32) | attr 1193 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_fmr = 0; attr 1194 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_pages_per_frmr = rsp->max_pages_per_frmr; attr 1195 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_num_mr_pbl = rsp->max_num_mr_pbl; attr 1196 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_cqe = rsp->max_cq_cqes_per_cq & attr 1198 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_cq = (rsp->max_cq_cqes_per_cq & attr 1201 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->wqe_size = ((rsp->wqe_rqe_stride_max_dpp_cqs & attr 1205 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->rqe_size = ((rsp->wqe_rqe_stride_max_dpp_cqs & attr 1209 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->max_inline_data = attr 1210 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->wqe_size - (sizeof(struct ocrdma_hdr_wqe) + attr 1213 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->ird = 1; attr 1214 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->ird_page_size = OCRDMA_MIN_Q_PAGE_SIZE; attr 1215 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attr->num_ird_pages = MAX_OCRDMA_IRD_PAGES; attr 1217 drivers/infiniband/hw/ocrdma/ocrdma_hw.c dev->attr.max_wqe = rsp->max_wqes_rqes_per_q >> attr 1219 drivers/infiniband/hw/ocrdma/ocrdma_hw.c dev->attr.max_rqe = rsp->max_wqes_rqes_per_q & attr 1254 drivers/infiniband/hw/ocrdma/ocrdma_hw.c memset(&dev->attr.fw_ver[0], 0, sizeof(dev->attr.fw_ver)); attr 1255 drivers/infiniband/hw/ocrdma/ocrdma_hw.c memcpy(&dev->attr.fw_ver[0], &rsp->running_ver[0], attr 1257 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ocrdma_le32_to_cpu(dev->attr.fw_ver, sizeof(rsp->running_ver)); attr 1390 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ocrdma_get_attr(dev, &dev->attr, rsp); attr 1515 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (dev->attr.max_dpp_pds) { attr 1520 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->pd_count = dev->attr.max_dpp_pds; attr 1544 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->pd_count = dev->attr.max_pd - dev->attr.max_dpp_pds; attr 1793 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (entries > dev->attr.max_cqe) { attr 1795 drivers/infiniband/hw/ocrdma/ocrdma_hw.c __func__, dev->id, dev->attr.max_cqe, entries); attr 1807 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cq->max_hw_cqe = dev->attr.max_cqe; attr 1808 drivers/infiniband/hw/ocrdma/ocrdma_hw.c max_hw_cqe = dev->attr.max_cqe; attr 2196 drivers/infiniband/hw/ocrdma/ocrdma_hw.c dev->attr.max_wqe); attr 2199 drivers/infiniband/hw/ocrdma/ocrdma_hw.c dev->attr.wqe_size, &hw_pages, &hw_page_size); attr 2213 drivers/infiniband/hw/ocrdma/ocrdma_hw.c qp->sq.entry_size = dev->attr.wqe_size; attr 2230 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->wqe_rqe_size |= (dev->attr.wqe_size << attr 2248 drivers/infiniband/hw/ocrdma/ocrdma_hw.c status = ocrdma_build_q_conf(&max_rqe_allocated, dev->attr.rqe_size, attr 2263 drivers/infiniband/hw/ocrdma/ocrdma_hw.c qp->rq.entry_size = dev->attr.rqe_size; attr 2277 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->wqe_rqe_size |= (dev->attr.rqe_size << attr 2306 drivers/infiniband/hw/ocrdma/ocrdma_hw.c int ird_page_size = dev->attr.ird_page_size; attr 2307 drivers/infiniband/hw/ocrdma/ocrdma_hw.c int ird_q_len = dev->attr.num_ird_pages * ird_page_size; attr 2311 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (dev->attr.ird == 0) attr 2318 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ocrdma_build_q_pages(&cmd->ird_addr[0], dev->attr.num_ird_pages, attr 2320 drivers/infiniband/hw/ocrdma/ocrdma_hw.c for (; i < ird_q_len / dev->attr.rqe_size; i++) { attr 2322 drivers/infiniband/hw/ocrdma/ocrdma_hw.c (i * dev->attr.rqe_size)); attr 2425 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->max_ord_ird |= (dev->attr.max_ord_per_qp << attr 2428 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->max_ord_ird |= (dev->attr.max_ird_per_qp << attr 2441 drivers/infiniband/hw/ocrdma/ocrdma_hw.c (attrs->cap.max_inline_data <= dev->attr.max_inline_data)) { attr 2660 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (attrs->max_rd_atomic > dev->attr.max_ord_per_qp) { attr 2668 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (attrs->max_dest_rd_atomic > dev->attr.max_ird_per_qp) { attr 2761 drivers/infiniband/hw/ocrdma/ocrdma_hw.c max_rqe_allocated = srq_attr->attr.max_wr + 1; attr 2763 drivers/infiniband/hw/ocrdma/ocrdma_hw.c dev->attr.rqe_size, attr 2767 drivers/infiniband/hw/ocrdma/ocrdma_hw.c srq_attr->attr.max_wr); attr 2779 drivers/infiniband/hw/ocrdma/ocrdma_hw.c srq->rq.entry_size = dev->attr.rqe_size; attr 2785 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->max_sge_rqe |= srq_attr->attr.max_sge << attr 2790 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->pages_rqe_sz |= (dev->attr.rqe_size attr 88 drivers/infiniband/hw/ocrdma/ocrdma_main.c struct ib_port_attr attr; attr 97 drivers/infiniband/hw/ocrdma/ocrdma_main.c err = ib_query_port(ibdev, port_num, &attr); attr 101 drivers/infiniband/hw/ocrdma/ocrdma_main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 102 drivers/infiniband/hw/ocrdma/ocrdma_main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 112 drivers/infiniband/hw/ocrdma/ocrdma_main.c snprintf(str, IB_FW_VERSION_NAME_MAX, "%s", &dev->attr.fw_ver[0]); attr 117 drivers/infiniband/hw/ocrdma/ocrdma_main.c struct device_attribute *attr, char *buf) attr 127 drivers/infiniband/hw/ocrdma/ocrdma_main.c struct device_attribute *attr, char *buf) attr 137 drivers/infiniband/hw/ocrdma/ocrdma_main.c &dev_attr_hw_rev.attr, attr 138 drivers/infiniband/hw/ocrdma/ocrdma_main.c &dev_attr_hca_type.attr, attr 270 drivers/infiniband/hw/ocrdma/ocrdma_main.c if (dev->attr.max_qp) { attr 66 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr, attr 74 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c memset(attr, 0, sizeof *attr); attr 75 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c memcpy(&attr->fw_ver, &dev->attr.fw_ver[0], attr 76 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c min(sizeof(dev->attr.fw_ver), sizeof(attr->fw_ver))); attr 77 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c ocrdma_get_guid(dev, (u8 *)&attr->sys_image_guid); attr 78 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_mr_size = dev->attr.max_mr_size; attr 79 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->page_size_cap = 0xffff000; attr 80 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->vendor_id = dev->nic_info.pdev->vendor; attr 81 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->vendor_part_id = dev->nic_info.pdev->device; attr 82 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->hw_ver = dev->asic_id; attr 83 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_qp = dev->attr.max_qp; attr 84 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_ah = OCRDMA_MAX_AH; attr 85 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_qp_wr = dev->attr.max_wqe; attr 87 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->device_cap_flags = IB_DEVICE_CURR_QP_STATE_MOD | attr 93 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_send_sge = dev->attr.max_send_sge; attr 94 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_recv_sge = dev->attr.max_recv_sge; attr 95 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_sge_rd = dev->attr.max_rdma_sge; attr 96 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_cq = dev->attr.max_cq; attr 97 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_cqe = dev->attr.max_cqe; attr 98 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_mr = dev->attr.max_mr; attr 99 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_mw = dev->attr.max_mw; attr 100 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_pd = dev->attr.max_pd; attr 101 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->atomic_cap = 0; attr 102 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_fmr = 0; attr 103 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_map_per_fmr = 0; attr 104 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_qp_rd_atom = attr 105 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c min(dev->attr.max_ord_per_qp, dev->attr.max_ird_per_qp); attr 106 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_qp_init_rd_atom = dev->attr.max_ord_per_qp; attr 107 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_srq = dev->attr.max_srq; attr 108 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_srq_sge = dev->attr.max_srq_sge; attr 109 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_srq_wr = dev->attr.max_rqe; attr 110 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->local_ca_ack_delay = dev->attr.local_ca_ack_delay; attr 111 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_fast_reg_page_list_len = dev->attr.max_pages_per_frmr; attr 112 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c attr->max_pkeys = 1; attr 369 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata && uctx && dev->attr.max_dpp_pds) { attr 374 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c dev->attr.wqe_size) : 0; attr 505 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c resp.max_inline_data = dev->attr.max_inline_data; attr 506 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c resp.wqe_size = dev->attr.wqe_size; attr 507 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c resp.rqe_size = dev->attr.rqe_size; attr 508 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c resp.dpp_wqe_size = dev->attr.wqe_size; attr 510 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c memcpy(resp.fw_ver, dev->attr.fw_ver, sizeof(resp.fw_ver)); attr 785 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c } while (num_pbls >= dev->attr.max_num_mr_pbl); attr 979 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 983 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int entries = attr->cqe; attr 992 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (attr->flags) attr 1124 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c (attrs->cap.max_send_wr > dev->attr.max_wqe)) { attr 1128 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, dev->attr.max_wqe); attr 1131 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (!attrs->srq && (attrs->cap.max_recv_wr > dev->attr.max_rqe)) { attr 1135 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, dev->attr.max_rqe); attr 1138 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (attrs->cap.max_inline_data > dev->attr.max_inline_data) { attr 1142 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, dev->attr.max_inline_data); attr 1145 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (attrs->cap.max_send_sge > dev->attr.max_send_sge) { attr 1149 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, dev->attr.max_send_sge); attr 1152 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (attrs->cap.max_recv_sge > dev->attr.max_recv_sge) { attr 1156 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, dev->attr.max_recv_sge); attr 1380 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int _ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1391 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_qp_state_change(qp, attr->qp_state, &old_qps); attr 1397 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c return ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask); attr 1400 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1418 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c new_qps = attr->qp_state; attr 1431 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = _ocrdma_modify_qp(ibqp, attr, attr_mask); attr 1788 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (init_attr->attr.max_sge > dev->attr.max_recv_sge) attr 1790 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (init_attr->attr.max_wr > dev->attr.max_rqe) attr 1821 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (init_attr->attr.srq_limit) { attr 1822 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_mbx_modify_srq(srq, &init_attr->attr); attr 2922 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (max_num_sg > dev->attr.max_pages_per_frmr) attr 74 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 82 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int _ocrdma_modify_qp(struct ib_qp *, struct ib_qp_attr *attr, attr 84 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_modify_qp(struct ib_qp *, struct ib_qp_attr *attr, attr 92 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_create_srq(struct ib_srq *srq, struct ib_srq_init_attr *attr, attr 77 drivers/infiniband/hw/qedr/main.c u32 fw_ver = (u32)qedr->attr.fw_ver; attr 87 drivers/infiniband/hw/qedr/main.c struct ib_port_attr attr; attr 90 drivers/infiniband/hw/qedr/main.c err = qedr_query_port(ibdev, port_num, &attr); attr 94 drivers/infiniband/hw/qedr/main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 95 drivers/infiniband/hw/qedr/main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 106 drivers/infiniband/hw/qedr/main.c struct ib_port_attr attr; attr 109 drivers/infiniband/hw/qedr/main.c err = qedr_query_port(ibdev, port_num, &attr); attr 122 drivers/infiniband/hw/qedr/main.c static ssize_t hw_rev_show(struct device *device, struct device_attribute *attr, attr 128 drivers/infiniband/hw/qedr/main.c return scnprintf(buf, PAGE_SIZE, "0x%x\n", dev->attr.hw_ver); attr 133 drivers/infiniband/hw/qedr/main.c struct device_attribute *attr, char *buf) attr 146 drivers/infiniband/hw/qedr/main.c &dev_attr_hw_rev.attr, attr 147 drivers/infiniband/hw/qedr/main.c &dev_attr_hca_type.attr, attr 243 drivers/infiniband/hw/qedr/main.c dev->ibdev.node_guid = dev->attr.node_guid; attr 597 drivers/infiniband/hw/qedr/main.c struct qedr_device_attr *attr; attr 604 drivers/infiniband/hw/qedr/main.c page_size = ~dev->attr.page_size_caps + 1; attr 613 drivers/infiniband/hw/qedr/main.c attr = &dev->attr; attr 614 drivers/infiniband/hw/qedr/main.c attr->vendor_id = qed_attr->vendor_id; attr 615 drivers/infiniband/hw/qedr/main.c attr->vendor_part_id = qed_attr->vendor_part_id; attr 616 drivers/infiniband/hw/qedr/main.c attr->hw_ver = qed_attr->hw_ver; attr 617 drivers/infiniband/hw/qedr/main.c attr->fw_ver = qed_attr->fw_ver; attr 618 drivers/infiniband/hw/qedr/main.c attr->node_guid = qed_attr->node_guid; attr 619 drivers/infiniband/hw/qedr/main.c attr->sys_image_guid = qed_attr->sys_image_guid; attr 620 drivers/infiniband/hw/qedr/main.c attr->max_cnq = qed_attr->max_cnq; attr 621 drivers/infiniband/hw/qedr/main.c attr->max_sge = qed_attr->max_sge; attr 622 drivers/infiniband/hw/qedr/main.c attr->max_inline = qed_attr->max_inline; attr 623 drivers/infiniband/hw/qedr/main.c attr->max_sqe = min_t(u32, qed_attr->max_wqe, QEDR_MAX_SQE); attr 624 drivers/infiniband/hw/qedr/main.c attr->max_rqe = min_t(u32, qed_attr->max_wqe, QEDR_MAX_RQE); attr 625 drivers/infiniband/hw/qedr/main.c attr->max_qp_resp_rd_atomic_resc = qed_attr->max_qp_resp_rd_atomic_resc; attr 626 drivers/infiniband/hw/qedr/main.c attr->max_qp_req_rd_atomic_resc = qed_attr->max_qp_req_rd_atomic_resc; attr 627 drivers/infiniband/hw/qedr/main.c attr->max_dev_resp_rd_atomic_resc = attr 629 drivers/infiniband/hw/qedr/main.c attr->max_cq = qed_attr->max_cq; attr 630 drivers/infiniband/hw/qedr/main.c attr->max_qp = qed_attr->max_qp; attr 631 drivers/infiniband/hw/qedr/main.c attr->max_mr = qed_attr->max_mr; attr 632 drivers/infiniband/hw/qedr/main.c attr->max_mr_size = qed_attr->max_mr_size; attr 633 drivers/infiniband/hw/qedr/main.c attr->max_cqe = min_t(u64, qed_attr->max_cqe, QEDR_MAX_CQES); attr 634 drivers/infiniband/hw/qedr/main.c attr->max_mw = qed_attr->max_mw; attr 635 drivers/infiniband/hw/qedr/main.c attr->max_fmr = qed_attr->max_fmr; attr 636 drivers/infiniband/hw/qedr/main.c attr->max_mr_mw_fmr_pbl = qed_attr->max_mr_mw_fmr_pbl; attr 637 drivers/infiniband/hw/qedr/main.c attr->max_mr_mw_fmr_size = qed_attr->max_mr_mw_fmr_size; attr 638 drivers/infiniband/hw/qedr/main.c attr->max_pd = qed_attr->max_pd; attr 639 drivers/infiniband/hw/qedr/main.c attr->max_ah = qed_attr->max_ah; attr 640 drivers/infiniband/hw/qedr/main.c attr->max_pkey = qed_attr->max_pkey; attr 641 drivers/infiniband/hw/qedr/main.c attr->max_srq = qed_attr->max_srq; attr 642 drivers/infiniband/hw/qedr/main.c attr->max_srq_wr = qed_attr->max_srq_wr; attr 643 drivers/infiniband/hw/qedr/main.c attr->dev_caps = qed_attr->dev_caps; attr 644 drivers/infiniband/hw/qedr/main.c attr->page_size_caps = qed_attr->page_size_caps; attr 645 drivers/infiniband/hw/qedr/main.c attr->dev_ack_delay = qed_attr->dev_ack_delay; attr 646 drivers/infiniband/hw/qedr/main.c attr->reserved_lkey = qed_attr->reserved_lkey; attr 647 drivers/infiniband/hw/qedr/main.c attr->bad_pkey_counter = qed_attr->bad_pkey_counter; attr 648 drivers/infiniband/hw/qedr/main.c attr->max_stats_queues = qed_attr->max_stats_queues; attr 136 drivers/infiniband/hw/qedr/qedr.h struct qedr_device_attr attr; attr 461 drivers/infiniband/hw/qedr/qedr.h struct rdma_ah_attr attr; attr 388 drivers/infiniband/hw/qedr/qedr_roce_cm.c struct rdma_ah_attr *ah_attr = &get_qedr_ah(ud_wr(swr)->ah)->attr; attr 96 drivers/infiniband/hw/qedr/verbs.c struct qedr_device_attr *qattr = &dev->attr; attr 107 drivers/infiniband/hw/qedr/verbs.c struct ib_device_attr *attr, struct ib_udata *udata) attr 110 drivers/infiniband/hw/qedr/verbs.c struct qedr_device_attr *qattr = &dev->attr; attr 119 drivers/infiniband/hw/qedr/verbs.c memset(attr, 0, sizeof(*attr)); attr 121 drivers/infiniband/hw/qedr/verbs.c attr->fw_ver = qattr->fw_ver; attr 122 drivers/infiniband/hw/qedr/verbs.c attr->sys_image_guid = qattr->sys_image_guid; attr 123 drivers/infiniband/hw/qedr/verbs.c attr->max_mr_size = qattr->max_mr_size; attr 124 drivers/infiniband/hw/qedr/verbs.c attr->page_size_cap = qattr->page_size_caps; attr 125 drivers/infiniband/hw/qedr/verbs.c attr->vendor_id = qattr->vendor_id; attr 126 drivers/infiniband/hw/qedr/verbs.c attr->vendor_part_id = qattr->vendor_part_id; attr 127 drivers/infiniband/hw/qedr/verbs.c attr->hw_ver = qattr->hw_ver; attr 128 drivers/infiniband/hw/qedr/verbs.c attr->max_qp = qattr->max_qp; attr 129 drivers/infiniband/hw/qedr/verbs.c attr->max_qp_wr = max_t(u32, qattr->max_sqe, qattr->max_rqe); attr 130 drivers/infiniband/hw/qedr/verbs.c attr->device_cap_flags = IB_DEVICE_CURR_QP_STATE_MOD | attr 134 drivers/infiniband/hw/qedr/verbs.c attr->max_send_sge = qattr->max_sge; attr 135 drivers/infiniband/hw/qedr/verbs.c attr->max_recv_sge = qattr->max_sge; attr 136 drivers/infiniband/hw/qedr/verbs.c attr->max_sge_rd = qattr->max_sge; attr 137 drivers/infiniband/hw/qedr/verbs.c attr->max_cq = qattr->max_cq; attr 138 drivers/infiniband/hw/qedr/verbs.c attr->max_cqe = qattr->max_cqe; attr 139 drivers/infiniband/hw/qedr/verbs.c attr->max_mr = qattr->max_mr; attr 140 drivers/infiniband/hw/qedr/verbs.c attr->max_mw = qattr->max_mw; attr 141 drivers/infiniband/hw/qedr/verbs.c attr->max_pd = qattr->max_pd; attr 142 drivers/infiniband/hw/qedr/verbs.c attr->atomic_cap = dev->atomic_cap; attr 143 drivers/infiniband/hw/qedr/verbs.c attr->max_fmr = qattr->max_fmr; attr 144 drivers/infiniband/hw/qedr/verbs.c attr->max_map_per_fmr = 16; attr 145 drivers/infiniband/hw/qedr/verbs.c attr->max_qp_init_rd_atom = attr 147 drivers/infiniband/hw/qedr/verbs.c attr->max_qp_rd_atom = attr 149 drivers/infiniband/hw/qedr/verbs.c attr->max_qp_init_rd_atom); attr 151 drivers/infiniband/hw/qedr/verbs.c attr->max_srq = qattr->max_srq; attr 152 drivers/infiniband/hw/qedr/verbs.c attr->max_srq_sge = qattr->max_srq_sge; attr 153 drivers/infiniband/hw/qedr/verbs.c attr->max_srq_wr = qattr->max_srq_wr; attr 155 drivers/infiniband/hw/qedr/verbs.c attr->local_ca_ack_delay = qattr->dev_ack_delay; attr 156 drivers/infiniband/hw/qedr/verbs.c attr->max_fast_reg_page_list_len = qattr->max_mr / 8; attr 157 drivers/infiniband/hw/qedr/verbs.c attr->max_pkeys = QEDR_ROCE_PKEY_MAX; attr 158 drivers/infiniband/hw/qedr/verbs.c attr->max_ah = qattr->max_ah; attr 208 drivers/infiniband/hw/qedr/verbs.c int qedr_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *attr) attr 224 drivers/infiniband/hw/qedr/verbs.c attr->state = IB_PORT_ACTIVE; attr 225 drivers/infiniband/hw/qedr/verbs.c attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; attr 227 drivers/infiniband/hw/qedr/verbs.c attr->state = IB_PORT_DOWN; attr 228 drivers/infiniband/hw/qedr/verbs.c attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; attr 230 drivers/infiniband/hw/qedr/verbs.c attr->max_mtu = IB_MTU_4096; attr 231 drivers/infiniband/hw/qedr/verbs.c attr->active_mtu = iboe_get_mtu(dev->ndev->mtu); attr 232 drivers/infiniband/hw/qedr/verbs.c attr->lid = 0; attr 233 drivers/infiniband/hw/qedr/verbs.c attr->lmc = 0; attr 234 drivers/infiniband/hw/qedr/verbs.c attr->sm_lid = 0; attr 235 drivers/infiniband/hw/qedr/verbs.c attr->sm_sl = 0; attr 236 drivers/infiniband/hw/qedr/verbs.c attr->ip_gids = true; attr 238 drivers/infiniband/hw/qedr/verbs.c attr->gid_tbl_len = 1; attr 239 drivers/infiniband/hw/qedr/verbs.c attr->pkey_tbl_len = 1; attr 241 drivers/infiniband/hw/qedr/verbs.c attr->gid_tbl_len = QEDR_MAX_SGID; attr 242 drivers/infiniband/hw/qedr/verbs.c attr->pkey_tbl_len = QEDR_ROCE_PKEY_TABLE_LEN; attr 244 drivers/infiniband/hw/qedr/verbs.c attr->bad_pkey_cntr = rdma_port->pkey_bad_counter; attr 245 drivers/infiniband/hw/qedr/verbs.c attr->qkey_viol_cntr = 0; attr 247 drivers/infiniband/hw/qedr/verbs.c &attr->active_speed, &attr->active_width); attr 248 drivers/infiniband/hw/qedr/verbs.c attr->max_msg_sz = rdma_port->max_msg_size; attr 249 drivers/infiniband/hw/qedr/verbs.c attr->max_vl_num = 4; attr 346 drivers/infiniband/hw/qedr/verbs.c uresp.max_send_wr = dev->attr.max_sqe; attr 347 drivers/infiniband/hw/qedr/verbs.c uresp.max_recv_wr = dev->attr.max_rqe; attr 348 drivers/infiniband/hw/qedr/verbs.c uresp.max_srq_wr = dev->attr.max_srq_wr; attr 351 drivers/infiniband/hw/qedr/verbs.c uresp.sges_per_srq_wr = dev->attr.max_srq_sge; attr 810 drivers/infiniband/hw/qedr/verbs.c int qedr_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 821 drivers/infiniband/hw/qedr/verbs.c int vector = attr->comp_vector; attr 822 drivers/infiniband/hw/qedr/verbs.c int entries = attr->cqe; attr 1009 drivers/infiniband/hw/qedr/verbs.c struct ib_qp_attr *attr, attr 1016 drivers/infiniband/hw/qedr/verbs.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); attr 1075 drivers/infiniband/hw/qedr/verbs.c struct qedr_device_attr *qattr = &dev->attr; attr 1245 drivers/infiniband/hw/qedr/verbs.c struct qedr_device_attr *qattr = &dev->attr; attr 1247 drivers/infiniband/hw/qedr/verbs.c if (attrs->attr.max_wr > qattr->max_srq_wr) { attr 1250 drivers/infiniband/hw/qedr/verbs.c attrs->attr.max_wr, qattr->max_srq_wr); attr 1254 drivers/infiniband/hw/qedr/verbs.c if (attrs->attr.max_sge > qattr->max_sge) { attr 1257 drivers/infiniband/hw/qedr/verbs.c attrs->attr.max_sge, qattr->max_sge); attr 1336 drivers/infiniband/hw/qedr/verbs.c num_elems = init_attr->attr.max_wr * RDMA_MAX_SRQ_WQE_SIZE; attr 1384 drivers/infiniband/hw/qedr/verbs.c hw_srq->max_wr = init_attr->attr.max_wr; attr 1385 drivers/infiniband/hw/qedr/verbs.c hw_srq->max_sges = init_attr->attr.max_sge; attr 1475 drivers/infiniband/hw/qedr/verbs.c int qedr_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 1491 drivers/infiniband/hw/qedr/verbs.c if (attr->srq_limit >= srq->hw_srq.max_wr) { attr 1494 drivers/infiniband/hw/qedr/verbs.c attr->srq_limit, srq->hw_srq.max_wr); attr 1499 drivers/infiniband/hw/qedr/verbs.c in_params.wqe_limit = attr->srq_limit; attr 1505 drivers/infiniband/hw/qedr/verbs.c srq->srq_limit = attr->srq_limit; attr 1834 drivers/infiniband/hw/qedr/verbs.c dev->attr.max_sqe); attr 1866 drivers/infiniband/hw/qedr/verbs.c n_sq_entries = min_t(u32, n_sq_entries, dev->attr.max_sqe); attr 2105 drivers/infiniband/hw/qedr/verbs.c int qedr_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 2111 drivers/infiniband/hw/qedr/verbs.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); attr 2118 drivers/infiniband/hw/qedr/verbs.c attr->qp_state); attr 2122 drivers/infiniband/hw/qedr/verbs.c new_qp_state = attr->qp_state; attr 2143 drivers/infiniband/hw/qedr/verbs.c qp_params.new_state = qedr_get_state_from_ibqp(attr->qp_state); attr 2152 drivers/infiniband/hw/qedr/verbs.c if (attr->pkey_index >= QEDR_ROCE_PKEY_TABLE_LEN) { attr 2161 drivers/infiniband/hw/qedr/verbs.c qp->qkey = attr->qkey; attr 2166 drivers/infiniband/hw/qedr/verbs.c qp_params.incoming_rdma_read_en = attr->qp_access_flags & attr 2168 drivers/infiniband/hw/qedr/verbs.c qp_params.incoming_rdma_write_en = attr->qp_access_flags & attr 2170 drivers/infiniband/hw/qedr/verbs.c qp_params.incoming_atomic_en = attr->qp_access_flags & attr 2179 drivers/infiniband/hw/qedr/verbs.c if (attr->path_mtu < IB_MTU_256 || attr 2180 drivers/infiniband/hw/qedr/verbs.c attr->path_mtu > IB_MTU_4096) { attr 2185 drivers/infiniband/hw/qedr/verbs.c qp->mtu = min(ib_mtu_enum_to_int(attr->path_mtu), attr 2205 drivers/infiniband/hw/qedr/verbs.c rc = get_gid_info_from_table(ibqp, attr, attr_mask, &qp_params); attr 2213 drivers/infiniband/hw/qedr/verbs.c rc = qedr_get_dmac(dev, &attr->ah_attr, attr 2257 drivers/infiniband/hw/qedr/verbs.c if (attr->timeout) attr 2259 drivers/infiniband/hw/qedr/verbs.c 1 << max_t(int, attr->timeout - 8, 0); attr 2267 drivers/infiniband/hw/qedr/verbs.c qp_params.retry_cnt = attr->retry_cnt; attr 2273 drivers/infiniband/hw/qedr/verbs.c qp_params.rnr_retry_cnt = attr->rnr_retry; attr 2279 drivers/infiniband/hw/qedr/verbs.c qp_params.rq_psn = attr->rq_psn; attr 2280 drivers/infiniband/hw/qedr/verbs.c qp->rq_psn = attr->rq_psn; attr 2284 drivers/infiniband/hw/qedr/verbs.c if (attr->max_rd_atomic > dev->attr.max_qp_req_rd_atomic_resc) { attr 2288 drivers/infiniband/hw/qedr/verbs.c attr->max_rd_atomic, attr 2289 drivers/infiniband/hw/qedr/verbs.c dev->attr.max_qp_req_rd_atomic_resc); attr 2295 drivers/infiniband/hw/qedr/verbs.c qp_params.max_rd_atomic_req = attr->max_rd_atomic; attr 2301 drivers/infiniband/hw/qedr/verbs.c qp_params.min_rnr_nak_timer = attr->min_rnr_timer; attr 2307 drivers/infiniband/hw/qedr/verbs.c qp_params.sq_psn = attr->sq_psn; attr 2308 drivers/infiniband/hw/qedr/verbs.c qp->sq_psn = attr->sq_psn; attr 2312 drivers/infiniband/hw/qedr/verbs.c if (attr->max_dest_rd_atomic > attr 2313 drivers/infiniband/hw/qedr/verbs.c dev->attr.max_qp_resp_rd_atomic_resc) { attr 2316 drivers/infiniband/hw/qedr/verbs.c attr->max_dest_rd_atomic, attr 2317 drivers/infiniband/hw/qedr/verbs.c dev->attr.max_qp_resp_rd_atomic_resc); attr 2325 drivers/infiniband/hw/qedr/verbs.c qp_params.max_rd_atomic_resp = attr->max_dest_rd_atomic; attr 2332 drivers/infiniband/hw/qedr/verbs.c qp_params.dest_qp = attr->dest_qp_num; attr 2333 drivers/infiniband/hw/qedr/verbs.c qp->dest_qp_num = attr->dest_qp_num; attr 2466 drivers/infiniband/hw/qedr/verbs.c struct ib_qp_attr attr; attr 2477 drivers/infiniband/hw/qedr/verbs.c attr.qp_state = IB_QPS_ERR; attr 2481 drivers/infiniband/hw/qedr/verbs.c qedr_modify_qp(ibqp, &attr, attr_mask, NULL); attr 2525 drivers/infiniband/hw/qedr/verbs.c int qedr_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr, u32 flags, attr 2530 drivers/infiniband/hw/qedr/verbs.c rdma_copy_ah_attr(&ah->attr, attr); attr 2539 drivers/infiniband/hw/qedr/verbs.c rdma_destroy_ah_attr(&ah->attr); attr 36 drivers/infiniband/hw/qedr/verbs.h struct ib_device_attr *attr, struct ib_udata *udata); attr 53 drivers/infiniband/hw/qedr/verbs.h int qedr_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 60 drivers/infiniband/hw/qedr/verbs.h int qedr_modify_qp(struct ib_qp *, struct ib_qp_attr *attr, attr 66 drivers/infiniband/hw/qedr/verbs.h int qedr_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *attr, attr 68 drivers/infiniband/hw/qedr/verbs.h int qedr_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 70 drivers/infiniband/hw/qedr/verbs.h int qedr_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr); attr 74 drivers/infiniband/hw/qedr/verbs.h int qedr_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr, u32 flags, attr 1523 drivers/infiniband/hw/qib/qib.h struct ib_qp_attr *attr); attr 717 drivers/infiniband/hw/qib/qib_mad.c rdma_ah_set_dlid(&ibp->rvp.sm_ah->attr, attr 720 drivers/infiniband/hw/qib/qib_mad.c rdma_ah_set_sl(&ibp->rvp.sm_ah->attr, msl); attr 292 drivers/infiniband/hw/qib/qib_qp.c struct ib_qp_attr *attr) attr 298 drivers/infiniband/hw/qib/qib_qp.c mtu = ib_mtu_enum_to_int(attr->path_mtu); attr 305 drivers/infiniband/hw/qib/qib_qp.c pmtu = attr->path_mtu; attr 183 drivers/infiniband/hw/qib/qib_sysfs.c struct attribute attr; attr 196 drivers/infiniband/hw/qib/qib_sysfs.c &qib_port_attr_loopback.attr, attr 197 drivers/infiniband/hw/qib/qib_sysfs.c &qib_port_attr_led_override.attr, attr 198 drivers/infiniband/hw/qib/qib_sysfs.c &qib_port_attr_hrtbt_enable.attr, attr 199 drivers/infiniband/hw/qib/qib_sysfs.c &qib_port_attr_status.attr, attr 200 drivers/infiniband/hw/qib/qib_sysfs.c &qib_port_attr_status_str.attr, attr 251 drivers/infiniband/hw/qib/qib_sysfs.c .attr = {.name = "cc_table_bin", .mode = 0444}, attr 290 drivers/infiniband/hw/qib/qib_sysfs.c .attr = {.name = "cc_settings_bin", .mode = 0444}, attr 297 drivers/infiniband/hw/qib/qib_sysfs.c struct attribute *attr, char *buf) attr 300 drivers/infiniband/hw/qib/qib_sysfs.c container_of(attr, struct qib_port_attr, attr); attr 311 drivers/infiniband/hw/qib/qib_sysfs.c struct attribute *attr, const char *buf, size_t len) attr 314 drivers/infiniband/hw/qib/qib_sysfs.c container_of(attr, struct qib_port_attr, attr); attr 340 drivers/infiniband/hw/qib/qib_sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ attr 345 drivers/infiniband/hw/qib/qib_sysfs.c struct attribute attr; attr 367 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_0.attr, attr 368 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_1.attr, attr 369 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_2.attr, attr 370 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_3.attr, attr 371 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_4.attr, attr 372 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_5.attr, attr 373 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_6.attr, attr 374 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_7.attr, attr 375 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_8.attr, attr 376 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_9.attr, attr 377 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_10.attr, attr 378 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_11.attr, attr 379 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_12.attr, attr 380 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_13.attr, attr 381 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_14.attr, attr 382 drivers/infiniband/hw/qib/qib_sysfs.c &qib_sl2vl_attr_15.attr, attr 386 drivers/infiniband/hw/qib/qib_sysfs.c static ssize_t sl2vl_attr_show(struct kobject *kobj, struct attribute *attr, attr 390 drivers/infiniband/hw/qib/qib_sysfs.c container_of(attr, struct qib_sl2vl_attr, attr); attr 414 drivers/infiniband/hw/qib/qib_sysfs.c .attr = { .name = __stringify(N), .mode = 0664 }, \ attr 420 drivers/infiniband/hw/qib/qib_sysfs.c .attr = { .name = __stringify(N), .mode = 0664 }, \ attr 425 drivers/infiniband/hw/qib/qib_sysfs.c struct attribute attr; attr 448 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_resends.attr, attr 449 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_acks.attr, attr 450 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_qacks.attr, attr 451 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_delayed_comp.attr, attr 452 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_seq_naks.attr, attr 453 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rdma_seq.attr, attr 454 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rnr_naks.attr, attr 455 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_other_naks.attr, attr 456 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_timeouts.attr, attr 457 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_loop_pkts.attr, attr 458 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_pkt_drops.attr, attr 459 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_dmawait.attr, attr 460 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_unaligned.attr, attr 461 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_dupreq.attr, attr 462 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_seqnak.attr, attr 463 drivers/infiniband/hw/qib/qib_sysfs.c &qib_diagc_attr_rc_crwaits.attr, attr 496 drivers/infiniband/hw/qib/qib_sysfs.c static ssize_t diagc_attr_show(struct kobject *kobj, struct attribute *attr, attr 500 drivers/infiniband/hw/qib/qib_sysfs.c container_of(attr, struct qib_diagc_attr, attr); attr 505 drivers/infiniband/hw/qib/qib_sysfs.c if (!strncmp(dattr->attr.name, "rc_acks", 7)) attr 507 drivers/infiniband/hw/qib/qib_sysfs.c else if (!strncmp(dattr->attr.name, "rc_qacks", 8)) attr 509 drivers/infiniband/hw/qib/qib_sysfs.c else if (!strncmp(dattr->attr.name, "rc_delayed_comp", 15)) attr 517 drivers/infiniband/hw/qib/qib_sysfs.c static ssize_t diagc_attr_store(struct kobject *kobj, struct attribute *attr, attr 521 drivers/infiniband/hw/qib/qib_sysfs.c container_of(attr, struct qib_diagc_attr, attr); attr 532 drivers/infiniband/hw/qib/qib_sysfs.c if (!strncmp(dattr->attr.name, "rc_acks", 7)) attr 534 drivers/infiniband/hw/qib/qib_sysfs.c else if (!strncmp(dattr->attr.name, "rc_qacks", 8)) attr 536 drivers/infiniband/hw/qib/qib_sysfs.c else if (!strncmp(dattr->attr.name, "rc_delayed_comp", 15)) attr 562 drivers/infiniband/hw/qib/qib_sysfs.c static ssize_t hw_rev_show(struct device *device, struct device_attribute *attr, attr 573 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 590 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 598 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 610 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 622 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 638 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 650 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 664 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, const char *buf, attr 687 drivers/infiniband/hw/qib/qib_sysfs.c struct device_attribute *attr, char *buf) attr 723 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_hw_rev.attr, attr 724 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_hca_type.attr, attr 725 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_board_id.attr, attr 726 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_version.attr, attr 727 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_nctxts.attr, attr 728 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_nfreectxts.attr, attr 729 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_serial.attr, attr 730 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_boardversion.attr, attr 731 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_tempsense.attr, attr 732 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_localbus_info.attr, attr 733 drivers/infiniband/hw/qib/qib_sysfs.c &dev_attr_chip_reset.attr, attr 1335 drivers/infiniband/hw/qib/qib_verbs.c ah->vl = ibp->sl_to_vl[rdma_ah_get_sl(&ah->attr)]; attr 1341 drivers/infiniband/hw/qib/qib_verbs.c struct rdma_ah_attr attr; attr 1348 drivers/infiniband/hw/qib/qib_verbs.c memset(&attr, 0, sizeof(attr)); attr 1349 drivers/infiniband/hw/qib/qib_verbs.c attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num); attr 1350 drivers/infiniband/hw/qib/qib_verbs.c rdma_ah_set_dlid(&attr, dlid); attr 1351 drivers/infiniband/hw/qib/qib_verbs.c rdma_ah_set_port_num(&attr, port_num); attr 1355 drivers/infiniband/hw/qib/qib_verbs.c ah = rdma_create_ah(qp0->ibqp.pd, &attr, 0); attr 309 drivers/infiniband/hw/usnic/usnic_ib_main.c struct ib_port_attr attr; attr 314 drivers/infiniband/hw/usnic/usnic_ib_main.c err = ib_query_port(ibdev, port_num, &attr); attr 318 drivers/infiniband/hw/usnic/usnic_ib_main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 319 drivers/infiniband/hw/usnic/usnic_ib_main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 50 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c struct device_attribute *attr, char *buf) attr 68 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c config_show(struct device *device, struct device_attribute *attr, char *buf) attr 130 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c iface_show(struct device *device, struct device_attribute *attr, char *buf) attr 141 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c max_vf_show(struct device *device, struct device_attribute *attr, char *buf) attr 152 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c qp_per_vf_show(struct device *device, struct device_attribute *attr, char *buf) attr 167 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c cq_per_vf_show(struct device *device, struct device_attribute *attr, char *buf) attr 178 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &dev_attr_board_id.attr, attr 179 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &dev_attr_config.attr, attr 180 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &dev_attr_iface.attr, attr 181 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &dev_attr_max_vf.attr, attr 182 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &dev_attr_qp_per_vf.attr, attr 183 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &dev_attr_cq_per_vf.attr, attr 192 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c struct attribute attr; attr 200 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c usnic_ib_qpn_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) attr 206 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c qpn_attr = container_of(attr, struct qpn_attribute, attr); attr 263 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &qpn_attr_context.attr, attr 264 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c &qpn_attr_summary.attr, attr 564 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 574 drivers/infiniband/hw/usnic/usnic_ib_verbs.c if ((attr_mask & IB_QP_PORT) && attr->port_num != 1) { attr 580 drivers/infiniband/hw/usnic/usnic_ib_verbs.c status = usnic_ib_qp_grp_modify(qp_grp, attr->qp_state, NULL); attr 591 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 594 drivers/infiniband/hw/usnic/usnic_ib_verbs.c if (attr->flags) attr 59 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 61 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 101 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c int pvrdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 105 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c int entries = attr->cqe; attr 65 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c static int pvrdma_add_gid(const struct ib_gid_attr *attr, void **context); attr 66 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c static int pvrdma_del_gid(const struct ib_gid_attr *attr, void **context); attr 69 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct device_attribute *attr, char *buf) attr 76 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct device_attribute *attr, char *buf) attr 83 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct device_attribute *attr, char *buf) attr 90 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c &dev_attr_hw_rev.attr, attr 91 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c &dev_attr_hca_type.attr, attr 92 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c &dev_attr_board_id.attr, attr 128 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct ib_port_attr attr; attr 136 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c err = ib_query_port(ibdev, port_num, &attr); attr 140 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 141 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 642 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c static int pvrdma_add_gid(const struct ib_gid_attr *attr, void **context) attr 644 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct pvrdma_dev *dev = to_vdev(attr->device); attr 646 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c return pvrdma_add_gid_at_index(dev, &attr->gid, attr 647 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c ib_gid_type_to_pvrdma(attr->gid_type), attr 648 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c attr->index); attr 678 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c static int pvrdma_del_gid(const struct ib_gid_attr *attr, void **context) attr 680 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct pvrdma_dev *dev = to_vdev(attr->device); attr 683 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c attr->index, dev->netdev->name); attr 685 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c return pvrdma_del_gid_at_index(dev, attr->index); attr 475 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 488 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cur_state = (attr_mask & IB_QP_CUR_STATE) ? attr->cur_qp_state : attr 490 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c next_state = (attr_mask & IB_QP_STATE) ? attr->qp_state : cur_state; attr 499 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (attr->port_num == 0 || attr 500 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->port_num > ibqp->device->phys_port_cnt) { attr 507 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (attr->min_rnr_timer > 31) { attr 514 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (attr->pkey_index >= dev->dsr->caps.max_pkeys) { attr 521 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->qkey = attr->qkey; attr 533 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.qp_state = ib_qp_state_to_pvrdma(attr->qp_state); attr 535 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c ib_qp_state_to_pvrdma(attr->cur_qp_state); attr 536 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.path_mtu = ib_mtu_to_pvrdma(attr->path_mtu); attr 538 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c ib_mig_state_to_pvrdma(attr->path_mig_state); attr 539 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.qkey = attr->qkey; attr 540 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.rq_psn = attr->rq_psn; attr 541 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.sq_psn = attr->sq_psn; attr 542 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.dest_qp_num = attr->dest_qp_num; attr 544 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c ib_access_flags_to_pvrdma(attr->qp_access_flags); attr 545 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.pkey_index = attr->pkey_index; attr 546 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.alt_pkey_index = attr->alt_pkey_index; attr 547 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.en_sqd_async_notify = attr->en_sqd_async_notify; attr 548 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.sq_draining = attr->sq_draining; attr 549 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.max_rd_atomic = attr->max_rd_atomic; attr 550 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.max_dest_rd_atomic = attr->max_dest_rd_atomic; attr 551 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.min_rnr_timer = attr->min_rnr_timer; attr 552 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.port_num = attr->port_num; attr 553 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.timeout = attr->timeout; attr 554 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.retry_cnt = attr->retry_cnt; attr 555 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.rnr_retry = attr->rnr_retry; attr 556 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.alt_port_num = attr->alt_port_num; attr 557 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->attrs.alt_timeout = attr->alt_timeout; attr 558 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c ib_qp_cap_to_pvrdma(&cmd->attrs.cap, &attr->cap); attr 559 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c rdma_ah_attr_to_pvrdma(&cmd->attrs.ah_attr, &attr->ah_attr); attr 560 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c rdma_ah_attr_to_pvrdma(&cmd->attrs.alt_ah_attr, &attr->alt_ah_attr); attr 921 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int pvrdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 935 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->qp_state = IB_QPS_RESET; attr 951 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->qp_state = pvrdma_qp_state_to_ib(resp->attrs.qp_state); attr 952 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->cur_qp_state = attr 954 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->path_mtu = pvrdma_mtu_to_ib(resp->attrs.path_mtu); attr 955 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->path_mig_state = attr 957 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->qkey = resp->attrs.qkey; attr 958 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->rq_psn = resp->attrs.rq_psn; attr 959 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->sq_psn = resp->attrs.sq_psn; attr 960 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->dest_qp_num = resp->attrs.dest_qp_num; attr 961 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->qp_access_flags = attr 963 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->pkey_index = resp->attrs.pkey_index; attr 964 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->alt_pkey_index = resp->attrs.alt_pkey_index; attr 965 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->en_sqd_async_notify = resp->attrs.en_sqd_async_notify; attr 966 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->sq_draining = resp->attrs.sq_draining; attr 967 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->max_rd_atomic = resp->attrs.max_rd_atomic; attr 968 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->max_dest_rd_atomic = resp->attrs.max_dest_rd_atomic; attr 969 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->min_rnr_timer = resp->attrs.min_rnr_timer; attr 970 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->port_num = resp->attrs.port_num; attr 971 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->timeout = resp->attrs.timeout; attr 972 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->retry_cnt = resp->attrs.retry_cnt; attr 973 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->rnr_retry = resp->attrs.rnr_retry; attr 974 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->alt_port_num = resp->attrs.alt_port_num; attr 975 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->alt_timeout = resp->attrs.alt_timeout; attr 976 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_qp_cap_to_ib(&attr->cap, &resp->attrs.cap); attr 977 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_ah_attr_to_rdma(&attr->ah_attr, &resp->attrs.ah_attr); attr 978 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_ah_attr_to_rdma(&attr->alt_ah_attr, &resp->attrs.alt_ah_attr); attr 980 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->state = attr->qp_state; attr 985 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->cur_qp_state = attr->qp_state; attr 993 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->cap = attr->cap; attr 127 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c if (init_attr->attr.max_wr > dev->dsr->caps.max_srq_wr || attr 128 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c init_attr->attr.max_sge > dev->dsr->caps.max_srq_sge) { attr 178 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->attrs.max_wr = init_attr->attr.max_wr; attr 179 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->attrs.max_sge = init_attr->attr.max_sge; attr 180 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->attrs.srq_limit = init_attr->attr.srq_limit; attr 273 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c int pvrdma_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 289 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->attrs.srq_limit = attr->srq_limit; attr 280 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c struct ib_port_attr attr; attr 291 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c ret = ib_query_port(ibdev, port, &attr); attr 412 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 423 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 431 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 120 drivers/infiniband/sw/rdmavt/ah.c rdma_copy_ah_attr(&ah->attr, ah_attr); attr 146 drivers/infiniband/sw/rdmavt/ah.c rdma_destroy_ah_attr(&ah->attr); attr 163 drivers/infiniband/sw/rdmavt/ah.c ah->attr = *ah_attr; attr 179 drivers/infiniband/sw/rdmavt/ah.c *ah_attr = ah->attr; attr 200 drivers/infiniband/sw/rdmavt/cq.c int rvt_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 209 drivers/infiniband/sw/rdmavt/cq.c unsigned int entries = attr->cqe; attr 210 drivers/infiniband/sw/rdmavt/cq.c int comp_vector = attr->comp_vector; attr 213 drivers/infiniband/sw/rdmavt/cq.c if (attr->flags) attr 300 drivers/infiniband/sw/rdmavt/cq.c trace_rvt_create_cq(cq, attr); attr 54 drivers/infiniband/sw/rdmavt/cq.h int rvt_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 1019 drivers/infiniband/sw/rdmavt/qp.c kfree(wqe->ud_wr.attr); attr 1020 drivers/infiniband/sw/rdmavt/qp.c wqe->ud_wr.attr = NULL; attr 1039 drivers/infiniband/sw/rdmavt/qp.c wqe->ud_wr.attr = kzalloc_node(sizeof(*wqe->ud_wr.attr), attr 1041 drivers/infiniband/sw/rdmavt/qp.c if (!wqe->ud_wr.attr) { attr 1446 drivers/infiniband/sw/rdmavt/qp.c int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1463 drivers/infiniband/sw/rdmavt/qp.c attr->cur_qp_state : qp->state; attr 1464 drivers/infiniband/sw/rdmavt/qp.c new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; attr 1472 drivers/infiniband/sw/rdmavt/qp.c rdi->driver_f.check_modify_qp(qp, attr, attr_mask, udata)) attr 1477 drivers/infiniband/sw/rdmavt/qp.c if (rdma_ah_get_dlid(&attr->ah_attr) >= attr 1481 drivers/infiniband/sw/rdmavt/qp.c if (rdma_ah_get_dlid(&attr->ah_attr) >= attr 1486 drivers/infiniband/sw/rdmavt/qp.c if (rvt_check_ah(qp->ibqp.device, &attr->ah_attr)) attr 1492 drivers/infiniband/sw/rdmavt/qp.c if (rdma_ah_get_dlid(&attr->alt_ah_attr) >= attr 1496 drivers/infiniband/sw/rdmavt/qp.c if (rdma_ah_get_dlid(&attr->alt_ah_attr) >= attr 1501 drivers/infiniband/sw/rdmavt/qp.c if (rvt_check_ah(qp->ibqp.device, &attr->alt_ah_attr)) attr 1503 drivers/infiniband/sw/rdmavt/qp.c if (attr->alt_pkey_index >= rvt_get_npkeys(rdi)) attr 1508 drivers/infiniband/sw/rdmavt/qp.c if (attr->pkey_index >= rvt_get_npkeys(rdi)) attr 1512 drivers/infiniband/sw/rdmavt/qp.c if (attr->min_rnr_timer > 31) attr 1518 drivers/infiniband/sw/rdmavt/qp.c attr->port_num == 0 || attr 1519 drivers/infiniband/sw/rdmavt/qp.c attr->port_num > ibqp->device->phys_port_cnt) attr 1523 drivers/infiniband/sw/rdmavt/qp.c if (attr->dest_qp_num > RVT_QPN_MASK) attr 1527 drivers/infiniband/sw/rdmavt/qp.c if (attr->retry_cnt > 7) attr 1531 drivers/infiniband/sw/rdmavt/qp.c if (attr->rnr_retry > 7) attr 1543 drivers/infiniband/sw/rdmavt/qp.c pmtu = rdi->driver_f.get_pmtu_from_attr(rdi, qp, attr); attr 1549 drivers/infiniband/sw/rdmavt/qp.c if (attr->path_mig_state == IB_MIG_REARM) { attr 1554 drivers/infiniband/sw/rdmavt/qp.c } else if (attr->path_mig_state == IB_MIG_MIGRATED) { attr 1567 drivers/infiniband/sw/rdmavt/qp.c if (attr->max_dest_rd_atomic > rdi->dparms.max_rdma_atomic) attr 1603 drivers/infiniband/sw/rdmavt/qp.c qp->s_pkey_index = attr->pkey_index; attr 1606 drivers/infiniband/sw/rdmavt/qp.c qp->port_num = attr->port_num; attr 1609 drivers/infiniband/sw/rdmavt/qp.c qp->remote_qpn = attr->dest_qp_num; attr 1612 drivers/infiniband/sw/rdmavt/qp.c qp->s_next_psn = attr->sq_psn & rdi->dparms.psn_modify_mask; attr 1620 drivers/infiniband/sw/rdmavt/qp.c qp->r_psn = attr->rq_psn & rdi->dparms.psn_modify_mask; attr 1623 drivers/infiniband/sw/rdmavt/qp.c qp->qp_access_flags = attr->qp_access_flags; attr 1626 drivers/infiniband/sw/rdmavt/qp.c rdma_replace_ah_attr(&qp->remote_ah_attr, &attr->ah_attr); attr 1627 drivers/infiniband/sw/rdmavt/qp.c qp->s_srate = rdma_ah_get_static_rate(&attr->ah_attr); attr 1632 drivers/infiniband/sw/rdmavt/qp.c rdma_replace_ah_attr(&qp->alt_ah_attr, &attr->alt_ah_attr); attr 1633 drivers/infiniband/sw/rdmavt/qp.c qp->s_alt_pkey_index = attr->alt_pkey_index; attr 1637 drivers/infiniband/sw/rdmavt/qp.c qp->s_mig_state = attr->path_mig_state; attr 1651 drivers/infiniband/sw/rdmavt/qp.c qp->s_retry_cnt = attr->retry_cnt; attr 1652 drivers/infiniband/sw/rdmavt/qp.c qp->s_retry = attr->retry_cnt; attr 1656 drivers/infiniband/sw/rdmavt/qp.c qp->s_rnr_retry_cnt = attr->rnr_retry; attr 1657 drivers/infiniband/sw/rdmavt/qp.c qp->s_rnr_retry = attr->rnr_retry; attr 1661 drivers/infiniband/sw/rdmavt/qp.c qp->r_min_rnr_timer = attr->min_rnr_timer; attr 1664 drivers/infiniband/sw/rdmavt/qp.c qp->timeout = attr->timeout; attr 1669 drivers/infiniband/sw/rdmavt/qp.c qp->qkey = attr->qkey; attr 1672 drivers/infiniband/sw/rdmavt/qp.c qp->r_max_rd_atomic = attr->max_dest_rd_atomic; attr 1675 drivers/infiniband/sw/rdmavt/qp.c qp->s_max_rd_atomic = attr->max_rd_atomic; attr 1678 drivers/infiniband/sw/rdmavt/qp.c rdi->driver_f.modify_qp(qp, attr, attr_mask, udata); attr 1758 drivers/infiniband/sw/rdmavt/qp.c int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 1764 drivers/infiniband/sw/rdmavt/qp.c attr->qp_state = qp->state; attr 1765 drivers/infiniband/sw/rdmavt/qp.c attr->cur_qp_state = attr->qp_state; attr 1766 drivers/infiniband/sw/rdmavt/qp.c attr->path_mtu = rdi->driver_f.mtu_to_path_mtu(qp->pmtu); attr 1767 drivers/infiniband/sw/rdmavt/qp.c attr->path_mig_state = qp->s_mig_state; attr 1768 drivers/infiniband/sw/rdmavt/qp.c attr->qkey = qp->qkey; attr 1769 drivers/infiniband/sw/rdmavt/qp.c attr->rq_psn = qp->r_psn & rdi->dparms.psn_mask; attr 1770 drivers/infiniband/sw/rdmavt/qp.c attr->sq_psn = qp->s_next_psn & rdi->dparms.psn_mask; attr 1771 drivers/infiniband/sw/rdmavt/qp.c attr->dest_qp_num = qp->remote_qpn; attr 1772 drivers/infiniband/sw/rdmavt/qp.c attr->qp_access_flags = qp->qp_access_flags; attr 1773 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_send_wr = qp->s_size - 1 - attr 1775 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1; attr 1776 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_send_sge = qp->s_max_sge; attr 1777 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_recv_sge = qp->r_rq.max_sge; attr 1778 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_inline_data = 0; attr 1779 drivers/infiniband/sw/rdmavt/qp.c attr->ah_attr = qp->remote_ah_attr; attr 1780 drivers/infiniband/sw/rdmavt/qp.c attr->alt_ah_attr = qp->alt_ah_attr; attr 1781 drivers/infiniband/sw/rdmavt/qp.c attr->pkey_index = qp->s_pkey_index; attr 1782 drivers/infiniband/sw/rdmavt/qp.c attr->alt_pkey_index = qp->s_alt_pkey_index; attr 1783 drivers/infiniband/sw/rdmavt/qp.c attr->en_sqd_async_notify = 0; attr 1784 drivers/infiniband/sw/rdmavt/qp.c attr->sq_draining = qp->s_draining; attr 1785 drivers/infiniband/sw/rdmavt/qp.c attr->max_rd_atomic = qp->s_max_rd_atomic; attr 1786 drivers/infiniband/sw/rdmavt/qp.c attr->max_dest_rd_atomic = qp->r_max_rd_atomic; attr 1787 drivers/infiniband/sw/rdmavt/qp.c attr->min_rnr_timer = qp->r_min_rnr_timer; attr 1788 drivers/infiniband/sw/rdmavt/qp.c attr->port_num = qp->port_num; attr 1789 drivers/infiniband/sw/rdmavt/qp.c attr->timeout = qp->timeout; attr 1790 drivers/infiniband/sw/rdmavt/qp.c attr->retry_cnt = qp->s_retry_cnt; attr 1791 drivers/infiniband/sw/rdmavt/qp.c attr->rnr_retry = qp->s_rnr_retry_cnt; attr 1792 drivers/infiniband/sw/rdmavt/qp.c attr->alt_port_num = attr 1794 drivers/infiniband/sw/rdmavt/qp.c attr->alt_timeout = qp->alt_timeout; attr 1801 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap = attr->cap; attr 2116 drivers/infiniband/sw/rdmavt/qp.c rdma_copy_ah_attr(wqe->ud_wr.attr, &ah->attr); attr 2161 drivers/infiniband/sw/rdmavt/qp.c rdma_destroy_ah_attr(wqe->ud_wr.attr); attr 58 drivers/infiniband/sw/rdmavt/qp.h int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 61 drivers/infiniband/sw/rdmavt/qp.h int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 87 drivers/infiniband/sw/rdmavt/srq.c if (srq_init_attr->attr.max_sge == 0 || attr 88 drivers/infiniband/sw/rdmavt/srq.c srq_init_attr->attr.max_sge > dev->dparms.props.max_srq_sge || attr 89 drivers/infiniband/sw/rdmavt/srq.c srq_init_attr->attr.max_wr == 0 || attr 90 drivers/infiniband/sw/rdmavt/srq.c srq_init_attr->attr.max_wr > dev->dparms.props.max_srq_wr) attr 96 drivers/infiniband/sw/rdmavt/srq.c srq->rq.size = srq_init_attr->attr.max_wr + 1; attr 97 drivers/infiniband/sw/rdmavt/srq.c srq->rq.max_sge = srq_init_attr->attr.max_sge; attr 129 drivers/infiniband/sw/rdmavt/srq.c srq->limit = srq_init_attr->attr.srq_limit; attr 166 drivers/infiniband/sw/rdmavt/srq.c int rvt_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 182 drivers/infiniband/sw/rdmavt/srq.c if ((attr->max_wr > dev->dparms.props.max_srq_wr) || attr 184 drivers/infiniband/sw/rdmavt/srq.c attr->srq_limit : srq->limit) > attr->max_wr) attr 188 drivers/infiniband/sw/rdmavt/srq.c size = attr->max_wr + 1; attr 263 drivers/infiniband/sw/rdmavt/srq.c srq->limit = attr->srq_limit; attr 299 drivers/infiniband/sw/rdmavt/srq.c if (attr->srq_limit >= srq->rq.size) attr 302 drivers/infiniband/sw/rdmavt/srq.c srq->limit = attr->srq_limit; attr 320 drivers/infiniband/sw/rdmavt/srq.c int rvt_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr) attr 324 drivers/infiniband/sw/rdmavt/srq.c attr->max_wr = srq->rq.size - 1; attr 325 drivers/infiniband/sw/rdmavt/srq.c attr->max_sge = srq->rq.max_sge; attr 326 drivers/infiniband/sw/rdmavt/srq.c attr->srq_limit = srq->limit; attr 55 drivers/infiniband/sw/rdmavt/srq.h int rvt_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 58 drivers/infiniband/sw/rdmavt/srq.h int rvt_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr); attr 79 drivers/infiniband/sw/rdmavt/trace_cq.h const struct ib_cq_init_attr *attr), attr 80 drivers/infiniband/sw/rdmavt/trace_cq.h TP_ARGS(cq, attr), attr 90 drivers/infiniband/sw/rdmavt/trace_cq.h __entry->cqe = attr->cqe; attr 91 drivers/infiniband/sw/rdmavt/trace_cq.h __entry->comp_vector = attr->comp_vector; attr 94 drivers/infiniband/sw/rdmavt/trace_cq.h __entry->flags = attr->flags; attr 104 drivers/infiniband/sw/rdmavt/trace_cq.h TP_PROTO(struct rvt_cq *cq, const struct ib_cq_init_attr *attr), attr 105 drivers/infiniband/sw/rdmavt/trace_cq.h TP_ARGS(cq, attr)); attr 316 drivers/infiniband/sw/rdmavt/vt.c struct ib_port_attr attr; attr 325 drivers/infiniband/sw/rdmavt/vt.c err = ib_query_port(ibdev, port_num, &attr); attr 329 drivers/infiniband/sw/rdmavt/vt.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 330 drivers/infiniband/sw/rdmavt/vt.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 80 drivers/infiniband/sw/rxe/rxe.c rxe->attr.fw_ver = RXE_FW_VER; attr 81 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mr_size = RXE_MAX_MR_SIZE; attr 82 drivers/infiniband/sw/rxe/rxe.c rxe->attr.page_size_cap = RXE_PAGE_SIZE_CAP; attr 83 drivers/infiniband/sw/rxe/rxe.c rxe->attr.vendor_id = RXE_VENDOR_ID; attr 84 drivers/infiniband/sw/rxe/rxe.c rxe->attr.vendor_part_id = RXE_VENDOR_PART_ID; attr 85 drivers/infiniband/sw/rxe/rxe.c rxe->attr.hw_ver = RXE_HW_VER; attr 86 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_qp = RXE_MAX_QP; attr 87 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_qp_wr = RXE_MAX_QP_WR; attr 88 drivers/infiniband/sw/rxe/rxe.c rxe->attr.device_cap_flags = RXE_DEVICE_CAP_FLAGS; attr 89 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_send_sge = RXE_MAX_SGE; attr 90 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_recv_sge = RXE_MAX_SGE; attr 91 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_sge_rd = RXE_MAX_SGE_RD; attr 92 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_cq = RXE_MAX_CQ; attr 93 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_cqe = (1 << RXE_MAX_LOG_CQE) - 1; attr 94 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mr = RXE_MAX_MR; attr 95 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_pd = RXE_MAX_PD; attr 96 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_qp_rd_atom = RXE_MAX_QP_RD_ATOM; attr 97 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_ee_rd_atom = RXE_MAX_EE_RD_ATOM; attr 98 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_res_rd_atom = RXE_MAX_RES_RD_ATOM; attr 99 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_qp_init_rd_atom = RXE_MAX_QP_INIT_RD_ATOM; attr 100 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_ee_init_rd_atom = RXE_MAX_EE_INIT_RD_ATOM; attr 101 drivers/infiniband/sw/rxe/rxe.c rxe->attr.atomic_cap = IB_ATOMIC_HCA; attr 102 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_ee = RXE_MAX_EE; attr 103 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_rdd = RXE_MAX_RDD; attr 104 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mw = RXE_MAX_MW; attr 105 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_raw_ipv6_qp = RXE_MAX_RAW_IPV6_QP; attr 106 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_raw_ethy_qp = RXE_MAX_RAW_ETHY_QP; attr 107 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mcast_grp = RXE_MAX_MCAST_GRP; attr 108 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mcast_qp_attach = RXE_MAX_MCAST_QP_ATTACH; attr 109 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_total_mcast_qp_attach = RXE_MAX_TOT_MCAST_QP_ATTACH; attr 110 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_ah = RXE_MAX_AH; attr 111 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_fmr = RXE_MAX_FMR; attr 112 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_map_per_fmr = RXE_MAX_MAP_PER_FMR; attr 113 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_srq = RXE_MAX_SRQ; attr 114 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_srq_wr = RXE_MAX_SRQ_WR; attr 115 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_srq_sge = RXE_MAX_SRQ_SGE; attr 116 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_fast_reg_page_list_len = RXE_MAX_FMR_PAGE_LIST_LEN; attr 117 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_pkeys = RXE_MAX_PKEYS; attr 118 drivers/infiniband/sw/rxe/rxe.c rxe->attr.local_ca_ack_delay = RXE_LOCAL_CA_ACK_DELAY; attr 126 drivers/infiniband/sw/rxe/rxe.c port->attr.state = IB_PORT_DOWN; attr 127 drivers/infiniband/sw/rxe/rxe.c port->attr.max_mtu = IB_MTU_4096; attr 128 drivers/infiniband/sw/rxe/rxe.c port->attr.active_mtu = IB_MTU_256; attr 129 drivers/infiniband/sw/rxe/rxe.c port->attr.gid_tbl_len = RXE_PORT_GID_TBL_LEN; attr 130 drivers/infiniband/sw/rxe/rxe.c port->attr.port_cap_flags = RXE_PORT_PORT_CAP_FLAGS; attr 131 drivers/infiniband/sw/rxe/rxe.c port->attr.max_msg_sz = RXE_PORT_MAX_MSG_SZ; attr 132 drivers/infiniband/sw/rxe/rxe.c port->attr.bad_pkey_cntr = RXE_PORT_BAD_PKEY_CNTR; attr 133 drivers/infiniband/sw/rxe/rxe.c port->attr.qkey_viol_cntr = RXE_PORT_QKEY_VIOL_CNTR; attr 134 drivers/infiniband/sw/rxe/rxe.c port->attr.pkey_tbl_len = RXE_PORT_PKEY_TBL_LEN; attr 135 drivers/infiniband/sw/rxe/rxe.c port->attr.lid = RXE_PORT_LID; attr 136 drivers/infiniband/sw/rxe/rxe.c port->attr.sm_lid = RXE_PORT_SM_LID; attr 137 drivers/infiniband/sw/rxe/rxe.c port->attr.lmc = RXE_PORT_LMC; attr 138 drivers/infiniband/sw/rxe/rxe.c port->attr.max_vl_num = RXE_PORT_MAX_VL_NUM; attr 139 drivers/infiniband/sw/rxe/rxe.c port->attr.sm_sl = RXE_PORT_SM_SL; attr 140 drivers/infiniband/sw/rxe/rxe.c port->attr.subnet_timeout = RXE_PORT_SUBNET_TIMEOUT; attr 141 drivers/infiniband/sw/rxe/rxe.c port->attr.init_type_reply = RXE_PORT_INIT_TYPE_REPLY; attr 142 drivers/infiniband/sw/rxe/rxe.c port->attr.active_width = RXE_PORT_ACTIVE_WIDTH; attr 143 drivers/infiniband/sw/rxe/rxe.c port->attr.active_speed = RXE_PORT_ACTIVE_SPEED; attr 144 drivers/infiniband/sw/rxe/rxe.c port->attr.phys_state = RXE_PORT_PHYS_STATE; attr 160 drivers/infiniband/sw/rxe/rxe.c if (!port->attr.pkey_tbl_len || !port->attr.gid_tbl_len) attr 163 drivers/infiniband/sw/rxe/rxe.c port->pkey_tbl = kcalloc(port->attr.pkey_tbl_len, attr 189 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_pd); attr 194 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_ah); attr 199 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_srq); attr 204 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_qp); attr 209 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_cq); attr 214 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mr); attr 219 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mw); attr 224 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_mcast_grp); attr 229 drivers/infiniband/sw/rxe/rxe.c rxe->attr.max_total_mcast_qp_attach); attr 298 drivers/infiniband/sw/rxe/rxe.c port->attr.active_mtu = mtu; attr 37 drivers/infiniband/sw/rxe/rxe_av.c void rxe_init_av(struct rdma_ah_attr *attr, struct rxe_av *av) attr 39 drivers/infiniband/sw/rxe/rxe_av.c rxe_av_from_attr(rdma_ah_get_port_num(attr), av, attr); attr 40 drivers/infiniband/sw/rxe/rxe_av.c rxe_av_fill_ip_info(av, attr); attr 41 drivers/infiniband/sw/rxe/rxe_av.c memcpy(av->dmac, attr->roce.dmac, ETH_ALEN); attr 44 drivers/infiniband/sw/rxe/rxe_av.c int rxe_av_chk_attr(struct rxe_dev *rxe, struct rdma_ah_attr *attr) attr 50 drivers/infiniband/sw/rxe/rxe_av.c if (rdma_ah_get_ah_flags(attr) & IB_AH_GRH) { attr 51 drivers/infiniband/sw/rxe/rxe_av.c u8 sgid_index = rdma_ah_read_grh(attr)->sgid_index; attr 53 drivers/infiniband/sw/rxe/rxe_av.c if (sgid_index > port->attr.gid_tbl_len) { attr 63 drivers/infiniband/sw/rxe/rxe_av.c struct rdma_ah_attr *attr) attr 65 drivers/infiniband/sw/rxe/rxe_av.c const struct ib_global_route *grh = rdma_ah_read_grh(attr); attr 76 drivers/infiniband/sw/rxe/rxe_av.c void rxe_av_to_attr(struct rxe_av *av, struct rdma_ah_attr *attr) attr 78 drivers/infiniband/sw/rxe/rxe_av.c struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); attr 80 drivers/infiniband/sw/rxe/rxe_av.c attr->type = RDMA_AH_ATTR_TYPE_ROCE; attr 88 drivers/infiniband/sw/rxe/rxe_av.c rdma_ah_set_ah_flags(attr, IB_AH_GRH); attr 89 drivers/infiniband/sw/rxe/rxe_av.c rdma_ah_set_port_num(attr, av->port_num); attr 92 drivers/infiniband/sw/rxe/rxe_av.c void rxe_av_fill_ip_info(struct rxe_av *av, struct rdma_ah_attr *attr) attr 94 drivers/infiniband/sw/rxe/rxe_av.c const struct ib_gid_attr *sgid_attr = attr->grh.sgid_attr; attr 98 drivers/infiniband/sw/rxe/rxe_av.c &rdma_ah_read_grh(attr)->dgid); attr 192 drivers/infiniband/sw/rxe/rxe_comp.c qp->comp.retry_cnt = qp->attr.retry_cnt; attr 193 drivers/infiniband/sw/rxe/rxe_comp.c qp->comp.rnr_retry = qp->attr.rnr_retry; attr 48 drivers/infiniband/sw/rxe/rxe_cq.c if (cqe > rxe->attr.max_cqe) { attr 50 drivers/infiniband/sw/rxe/rxe_cq.c cqe, rxe->attr.max_cqe); attr 38 drivers/infiniband/sw/rxe/rxe_loc.h void rxe_init_av(struct rdma_ah_attr *attr, struct rxe_av *av); attr 40 drivers/infiniband/sw/rxe/rxe_loc.h int rxe_av_chk_attr(struct rxe_dev *rxe, struct rdma_ah_attr *attr); attr 43 drivers/infiniband/sw/rxe/rxe_loc.h struct rdma_ah_attr *attr); attr 45 drivers/infiniband/sw/rxe/rxe_loc.h void rxe_av_to_attr(struct rxe_av *av, struct rdma_ah_attr *attr); attr 47 drivers/infiniband/sw/rxe/rxe_loc.h void rxe_av_fill_ip_info(struct rxe_av *av, struct rdma_ah_attr *attr); attr 165 drivers/infiniband/sw/rxe/rxe_loc.h struct ib_qp_attr *attr, int mask); attr 167 drivers/infiniband/sw/rxe/rxe_loc.h int rxe_qp_from_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, attr 170 drivers/infiniband/sw/rxe/rxe_loc.h int rxe_qp_to_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask); attr 190 drivers/infiniband/sw/rxe/rxe_loc.h return qp->attr.qp_state; attr 196 drivers/infiniband/sw/rxe/rxe_loc.h return qp->attr.path_mtu; attr 212 drivers/infiniband/sw/rxe/rxe_loc.h if (unlikely(qp->resp.res_head == qp->attr.max_dest_rd_atomic)) attr 223 drivers/infiniband/sw/rxe/rxe_loc.h struct ib_srq_attr *attr, enum ib_srq_attr_mask mask); attr 230 drivers/infiniband/sw/rxe/rxe_loc.h struct ib_srq_attr *attr, enum ib_srq_attr_mask mask, attr 43 drivers/infiniband/sw/rxe/rxe_mcast.c if (rxe->attr.max_mcast_qp_attach == 0) { attr 94 drivers/infiniband/sw/rxe/rxe_mcast.c if (grp->num_qp >= rxe->attr.max_mcast_qp_attach) { attr 465 drivers/infiniband/sw/rxe/rxe_net.c const struct ib_gid_attr *attr; attr 468 drivers/infiniband/sw/rxe/rxe_net.c attr = rdma_get_gid_attr(&rxe->ib_dev, port_num, av->grh.sgid_index); attr 469 drivers/infiniband/sw/rxe/rxe_net.c if (IS_ERR(attr)) attr 480 drivers/infiniband/sw/rxe/rxe_net.c ndev = rdma_read_gid_attr_ndev_rcu(attr); attr 510 drivers/infiniband/sw/rxe/rxe_net.c rdma_put_gid_attr(attr); attr 566 drivers/infiniband/sw/rxe/rxe_net.c port->attr.state = IB_PORT_ACTIVE; attr 578 drivers/infiniband/sw/rxe/rxe_net.c port->attr.state = IB_PORT_DOWN; attr 48 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_send_wr > rxe->attr.max_qp_wr) { attr 50 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_send_wr, rxe->attr.max_qp_wr); attr 54 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_send_sge > rxe->attr.max_send_sge) { attr 56 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_send_sge, rxe->attr.max_send_sge); attr 61 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_recv_wr > rxe->attr.max_qp_wr) { attr 63 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_recv_wr, rxe->attr.max_qp_wr); attr 67 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_recv_sge > rxe->attr.max_recv_sge) { attr 69 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_recv_sge, rxe->attr.max_recv_sge); attr 142 drivers/infiniband/sw/rxe/rxe_qp.c for (i = 0; i < qp->attr.max_dest_rd_atomic; i++) { attr 170 drivers/infiniband/sw/rxe/rxe_qp.c for (i = 0; i < qp->attr.max_dest_rd_atomic; i++) { attr 184 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.path_mtu = 1; attr 185 drivers/infiniband/sw/rxe/rxe_qp.c qp->mtu = ib_mtu_enum_to_int(qp->attr.path_mtu); attr 194 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.port_num = init->port_num; attr 200 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.port_num = init->port_num; attr 368 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.qp_state = IB_QPS_RESET; attr 415 drivers/infiniband/sw/rxe/rxe_qp.c struct ib_qp_attr *attr, int mask) attr 418 drivers/infiniband/sw/rxe/rxe_qp.c attr->cur_qp_state : qp->attr.qp_state; attr 420 drivers/infiniband/sw/rxe/rxe_qp.c attr->qp_state : cur_state; attr 436 drivers/infiniband/sw/rxe/rxe_qp.c if (!rdma_is_port_valid(&rxe->ib_dev, attr->port_num)) { attr 437 drivers/infiniband/sw/rxe/rxe_qp.c pr_warn("invalid port %d\n", attr->port_num); attr 442 drivers/infiniband/sw/rxe/rxe_qp.c if (mask & IB_QP_CAP && rxe_qp_chk_cap(rxe, &attr->cap, !!qp->srq)) attr 445 drivers/infiniband/sw/rxe/rxe_qp.c if (mask & IB_QP_AV && rxe_av_chk_attr(rxe, &attr->ah_attr)) attr 449 drivers/infiniband/sw/rxe/rxe_qp.c if (rxe_av_chk_attr(rxe, &attr->alt_ah_attr)) attr 451 drivers/infiniband/sw/rxe/rxe_qp.c if (!rdma_is_port_valid(&rxe->ib_dev, attr->alt_port_num)) { attr 452 drivers/infiniband/sw/rxe/rxe_qp.c pr_warn("invalid alt port %d\n", attr->alt_port_num); attr 455 drivers/infiniband/sw/rxe/rxe_qp.c if (attr->alt_timeout > 31) { attr 457 drivers/infiniband/sw/rxe/rxe_qp.c attr->alt_timeout); attr 465 drivers/infiniband/sw/rxe/rxe_qp.c enum ib_mtu max_mtu = port->attr.max_mtu; attr 466 drivers/infiniband/sw/rxe/rxe_qp.c enum ib_mtu mtu = attr->path_mtu; attr 477 drivers/infiniband/sw/rxe/rxe_qp.c if (attr->max_rd_atomic > rxe->attr.max_qp_rd_atom) { attr 479 drivers/infiniband/sw/rxe/rxe_qp.c attr->max_rd_atomic, attr 480 drivers/infiniband/sw/rxe/rxe_qp.c rxe->attr.max_qp_rd_atom); attr 486 drivers/infiniband/sw/rxe/rxe_qp.c if (attr->timeout > 31) { attr 488 drivers/infiniband/sw/rxe/rxe_qp.c attr->timeout); attr 576 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.qp_state = IB_QPS_ERR; attr 589 drivers/infiniband/sw/rxe/rxe_qp.c int rxe_qp_from_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask, attr 595 drivers/infiniband/sw/rxe/rxe_qp.c int max_rd_atomic = __roundup_pow_of_two(attr->max_rd_atomic); attr 597 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.max_rd_atomic = max_rd_atomic; attr 603 drivers/infiniband/sw/rxe/rxe_qp.c __roundup_pow_of_two(attr->max_dest_rd_atomic); attr 605 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.max_dest_rd_atomic = max_dest_rd_atomic; attr 615 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.cur_qp_state = attr->qp_state; attr 618 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.en_sqd_async_notify = attr->en_sqd_async_notify; attr 621 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.qp_access_flags = attr->qp_access_flags; attr 624 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.pkey_index = attr->pkey_index; attr 627 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.port_num = attr->port_num; attr 630 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.qkey = attr->qkey; attr 633 drivers/infiniband/sw/rxe/rxe_qp.c rxe_init_av(&attr->ah_attr, &qp->pri_av); attr 637 drivers/infiniband/sw/rxe/rxe_qp.c rxe_init_av(&attr->alt_ah_attr, &qp->alt_av); attr 638 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.alt_port_num = attr->alt_port_num; attr 639 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.alt_pkey_index = attr->alt_pkey_index; attr 640 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.alt_timeout = attr->alt_timeout; attr 644 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.path_mtu = attr->path_mtu; attr 645 drivers/infiniband/sw/rxe/rxe_qp.c qp->mtu = ib_mtu_enum_to_int(attr->path_mtu); attr 649 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.timeout = attr->timeout; attr 650 drivers/infiniband/sw/rxe/rxe_qp.c if (attr->timeout == 0) { attr 654 drivers/infiniband/sw/rxe/rxe_qp.c int j = nsecs_to_jiffies(4096ULL << attr->timeout); attr 661 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.retry_cnt = attr->retry_cnt; attr 662 drivers/infiniband/sw/rxe/rxe_qp.c qp->comp.retry_cnt = attr->retry_cnt; attr 664 drivers/infiniband/sw/rxe/rxe_qp.c attr->retry_cnt); attr 668 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.rnr_retry = attr->rnr_retry; attr 669 drivers/infiniband/sw/rxe/rxe_qp.c qp->comp.rnr_retry = attr->rnr_retry; attr 671 drivers/infiniband/sw/rxe/rxe_qp.c attr->rnr_retry); attr 675 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.rq_psn = (attr->rq_psn & BTH_PSN_MASK); attr 676 drivers/infiniband/sw/rxe/rxe_qp.c qp->resp.psn = qp->attr.rq_psn; attr 682 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.min_rnr_timer = attr->min_rnr_timer; attr 684 drivers/infiniband/sw/rxe/rxe_qp.c attr->min_rnr_timer); attr 688 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.sq_psn = (attr->sq_psn & BTH_PSN_MASK); attr 689 drivers/infiniband/sw/rxe/rxe_qp.c qp->req.psn = qp->attr.sq_psn; attr 690 drivers/infiniband/sw/rxe/rxe_qp.c qp->comp.psn = qp->attr.sq_psn; attr 695 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.path_mig_state = attr->path_mig_state; attr 698 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.dest_qp_num = attr->dest_qp_num; attr 701 drivers/infiniband/sw/rxe/rxe_qp.c qp->attr.qp_state = attr->qp_state; attr 703 drivers/infiniband/sw/rxe/rxe_qp.c switch (attr->qp_state) { attr 746 drivers/infiniband/sw/rxe/rxe_qp.c int rxe_qp_to_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask) attr 748 drivers/infiniband/sw/rxe/rxe_qp.c *attr = qp->attr; attr 750 drivers/infiniband/sw/rxe/rxe_qp.c attr->rq_psn = qp->resp.psn; attr 751 drivers/infiniband/sw/rxe/rxe_qp.c attr->sq_psn = qp->req.psn; attr 753 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_send_wr = qp->sq.max_wr; attr 754 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_send_sge = qp->sq.max_sge; attr 755 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_inline_data = qp->sq.max_inline; attr 758 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_recv_wr = qp->rq.max_wr; attr 759 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_recv_sge = qp->rq.max_sge; attr 762 drivers/infiniband/sw/rxe/rxe_qp.c rxe_av_to_attr(&qp->pri_av, &attr->ah_attr); attr 763 drivers/infiniband/sw/rxe/rxe_qp.c rxe_av_to_attr(&qp->alt_av, &attr->alt_ah_attr); attr 766 drivers/infiniband/sw/rxe/rxe_qp.c attr->sq_draining = 1; attr 773 drivers/infiniband/sw/rxe/rxe_qp.c attr->sq_draining = 0; attr 776 drivers/infiniband/sw/rxe/rxe_qp.c pr_debug("attr->sq_draining = %d\n", attr->sq_draining); attr 88 drivers/infiniband/sw/rxe/rxe_recv.c port->attr.bad_pkey_cntr = min((u32)0xffff, attr 89 drivers/infiniband/sw/rxe/rxe_recv.c port->attr.bad_pkey_cntr + 1); attr 96 drivers/infiniband/sw/rxe/rxe_recv.c port->attr.qkey_viol_cntr = min((u32)0xffff, attr 97 drivers/infiniband/sw/rxe/rxe_recv.c port->attr.qkey_viol_cntr + 1); attr 112 drivers/infiniband/sw/rxe/rxe_recv.c for (i = 0; i < port->attr.pkey_tbl_len; i++) { attr 127 drivers/infiniband/sw/rxe/rxe_recv.c port->pkey_tbl[qp->attr.pkey_index] attr 133 drivers/infiniband/sw/rxe/rxe_recv.c pkt->pkey_index = qp->attr.pkey_index; attr 138 drivers/infiniband/sw/rxe/rxe_recv.c u32 qkey = (qpn == 1) ? GSI_QKEY : qp->attr.qkey; attr 162 drivers/infiniband/sw/rxe/rxe_recv.c if (unlikely(pkt->port_num != qp->attr.port_num)) { attr 164 drivers/infiniband/sw/rxe/rxe_recv.c pkt->port_num, qp->attr.port_num); attr 424 drivers/infiniband/sw/rxe/rxe_req.c port->pkey_tbl[qp->attr.pkey_index]; attr 427 drivers/infiniband/sw/rxe/rxe_req.c qp->attr.dest_qp_num; attr 284 drivers/infiniband/sw/rxe/rxe_resp.c !(qp->attr.qp_access_flags & IB_ACCESS_REMOTE_READ)) || attr 286 drivers/infiniband/sw/rxe/rxe_resp.c !(qp->attr.qp_access_flags & IB_ACCESS_REMOTE_WRITE)) || attr 288 drivers/infiniband/sw/rxe/rxe_resp.c !(qp->attr.qp_access_flags & IB_ACCESS_REMOTE_ATOMIC))) { attr 296 drivers/infiniband/sw/rxe/rxe_resp.c !(qp->attr.qp_access_flags & IB_ACCESS_REMOTE_WRITE)) { attr 385 drivers/infiniband/sw/rxe/rxe_resp.c if (likely(qp->attr.max_dest_rd_atomic > 0)) attr 622 drivers/infiniband/sw/rxe/rxe_resp.c bth_set_qpn(ack, qp->attr.dest_qp_num); attr 892 drivers/infiniband/sw/rxe/rxe_resp.c uwc->port_num = qp->attr.port_num; attr 934 drivers/infiniband/sw/rxe/rxe_resp.c wc->port_num = qp->attr.port_num; attr 1061 drivers/infiniband/sw/rxe/rxe_resp.c for (i = 0; i < qp->attr.max_dest_rd_atomic; i++) { attr 1316 drivers/infiniband/sw/rxe/rxe_resp.c qp->attr.min_rnr_timer), attr 40 drivers/infiniband/sw/rxe/rxe_srq.c struct ib_srq_attr *attr, enum ib_srq_attr_mask mask) attr 48 drivers/infiniband/sw/rxe/rxe_srq.c if (attr->max_wr > rxe->attr.max_srq_wr) { attr 50 drivers/infiniband/sw/rxe/rxe_srq.c attr->max_wr, rxe->attr.max_srq_wr); attr 54 drivers/infiniband/sw/rxe/rxe_srq.c if (attr->max_wr <= 0) { attr 55 drivers/infiniband/sw/rxe/rxe_srq.c pr_warn("max_wr(%d) <= 0\n", attr->max_wr); attr 59 drivers/infiniband/sw/rxe/rxe_srq.c if (srq && srq->limit && (attr->max_wr < srq->limit)) { attr 61 drivers/infiniband/sw/rxe/rxe_srq.c attr->max_wr, srq->limit); attr 65 drivers/infiniband/sw/rxe/rxe_srq.c if (attr->max_wr < RXE_MIN_SRQ_WR) attr 66 drivers/infiniband/sw/rxe/rxe_srq.c attr->max_wr = RXE_MIN_SRQ_WR; attr 70 drivers/infiniband/sw/rxe/rxe_srq.c if (attr->srq_limit > rxe->attr.max_srq_wr) { attr 72 drivers/infiniband/sw/rxe/rxe_srq.c attr->srq_limit, rxe->attr.max_srq_wr); attr 76 drivers/infiniband/sw/rxe/rxe_srq.c if (srq && (attr->srq_limit > srq->rq.queue->buf->index_mask)) { attr 78 drivers/infiniband/sw/rxe/rxe_srq.c attr->srq_limit, attr 85 drivers/infiniband/sw/rxe/rxe_srq.c if (attr->max_sge > rxe->attr.max_srq_sge) { attr 87 drivers/infiniband/sw/rxe/rxe_srq.c attr->max_sge, rxe->attr.max_srq_sge); attr 91 drivers/infiniband/sw/rxe/rxe_srq.c if (attr->max_sge < RXE_MIN_SRQ_SGE) attr 92 drivers/infiniband/sw/rxe/rxe_srq.c attr->max_sge = RXE_MIN_SRQ_SGE; attr 111 drivers/infiniband/sw/rxe/rxe_srq.c srq->limit = init->attr.srq_limit; attr 113 drivers/infiniband/sw/rxe/rxe_srq.c srq->rq.max_wr = init->attr.max_wr; attr 114 drivers/infiniband/sw/rxe/rxe_srq.c srq->rq.max_sge = init->attr.max_sge; attr 150 drivers/infiniband/sw/rxe/rxe_srq.c struct ib_srq_attr *attr, enum ib_srq_attr_mask mask, attr 164 drivers/infiniband/sw/rxe/rxe_srq.c err = rxe_queue_resize(q, &attr->max_wr, attr 173 drivers/infiniband/sw/rxe/rxe_srq.c srq->limit = attr->srq_limit; attr 43 drivers/infiniband/sw/rxe/rxe_verbs.c struct ib_device_attr *attr, attr 51 drivers/infiniband/sw/rxe/rxe_verbs.c *attr = rxe->attr; attr 56 drivers/infiniband/sw/rxe/rxe_verbs.c u8 port_num, struct ib_port_attr *attr) attr 65 drivers/infiniband/sw/rxe/rxe_verbs.c *attr = port->attr; attr 68 drivers/infiniband/sw/rxe/rxe_verbs.c rc = ib_get_eth_speed(dev, port_num, &attr->active_speed, attr 69 drivers/infiniband/sw/rxe/rxe_verbs.c &attr->active_width); attr 71 drivers/infiniband/sw/rxe/rxe_verbs.c if (attr->state == IB_PORT_ACTIVE) attr 72 drivers/infiniband/sw/rxe/rxe_verbs.c attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; attr 74 drivers/infiniband/sw/rxe/rxe_verbs.c attr->phys_state = IB_PORT_PHYS_STATE_POLLING; attr 76 drivers/infiniband/sw/rxe/rxe_verbs.c attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; attr 91 drivers/infiniband/sw/rxe/rxe_verbs.c if (unlikely(index >= port->attr.pkey_tbl_len)) { attr 105 drivers/infiniband/sw/rxe/rxe_verbs.c int mask, struct ib_device_modify *attr) attr 110 drivers/infiniband/sw/rxe/rxe_verbs.c rxe->attr.sys_image_guid = cpu_to_be64(attr->sys_image_guid); attr 114 drivers/infiniband/sw/rxe/rxe_verbs.c attr->node_desc, sizeof(rxe->ib_dev.node_desc)); attr 121 drivers/infiniband/sw/rxe/rxe_verbs.c u8 port_num, int mask, struct ib_port_modify *attr) attr 128 drivers/infiniband/sw/rxe/rxe_verbs.c port->attr.port_cap_flags |= attr->set_port_cap_mask; attr 129 drivers/infiniband/sw/rxe/rxe_verbs.c port->attr.port_cap_flags &= ~attr->clr_port_cap_mask; attr 132 drivers/infiniband/sw/rxe/rxe_verbs.c port->attr.qkey_viol_cntr = 0; attr 164 drivers/infiniband/sw/rxe/rxe_verbs.c struct ib_port_attr attr; attr 168 drivers/infiniband/sw/rxe/rxe_verbs.c err = ib_query_port(dev, port_num, &attr); attr 172 drivers/infiniband/sw/rxe/rxe_verbs.c immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 173 drivers/infiniband/sw/rxe/rxe_verbs.c immutable->gid_tbl_len = attr.gid_tbl_len; attr 194 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr, attr 202 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_av_chk_attr(rxe, attr); attr 210 drivers/infiniband/sw/rxe/rxe_verbs.c rxe_init_av(attr, &ah->av); attr 214 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr) attr 220 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_av_chk_attr(rxe, attr); attr 224 drivers/infiniband/sw/rxe/rxe_verbs.c rxe_init_av(attr, &ah->av); attr 228 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr) attr 232 drivers/infiniband/sw/rxe/rxe_verbs.c memset(attr, 0, sizeof(*attr)); attr 233 drivers/infiniband/sw/rxe/rxe_verbs.c attr->type = ibah->type; attr 234 drivers/infiniband/sw/rxe/rxe_verbs.c rxe_av_to_attr(&ah->av, attr); attr 307 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_srq_chk_attr(rxe, NULL, &init->attr, IB_SRQ_INIT_MASK); attr 331 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, attr 349 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_srq_chk_attr(rxe, srq, attr, mask); attr 353 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_srq_from_attr(rxe, srq, attr, mask, &ucmd, udata); attr 363 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr) attr 370 drivers/infiniband/sw/rxe/rxe_verbs.c attr->max_wr = srq->rq.queue->buf->index_mask; attr 371 drivers/infiniband/sw/rxe/rxe_verbs.c attr->max_sge = srq->rq.max_sge; attr 372 drivers/infiniband/sw/rxe/rxe_verbs.c attr->srq_limit = srq->limit; attr 461 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 468 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_qp_chk_attr(rxe, qp, attr, mask); attr 472 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_qp_from_attr(qp, attr, mask, udata); attr 482 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, attr 488 drivers/infiniband/sw/rxe/rxe_verbs.c rxe_qp_to_attr(qp, attr, mask); attr 781 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, attr 796 drivers/infiniband/sw/rxe/rxe_verbs.c if (attr->flags) attr 799 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_cq_chk_attr(rxe, NULL, attr->cqe, attr->comp_vector); attr 803 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_cq_from_init(rxe, cq, attr->cqe, attr->comp_vector, udata, attr 1073 drivers/infiniband/sw/rxe/rxe_verbs.c struct device_attribute *attr, char *buf) attr 1084 drivers/infiniband/sw/rxe/rxe_verbs.c &dev_attr_parent.attr, attr 238 drivers/infiniband/sw/rxe/rxe_verbs.h struct ib_qp_attr attr; attr 373 drivers/infiniband/sw/rxe/rxe_verbs.h struct ib_port_attr attr; attr 386 drivers/infiniband/sw/rxe/rxe_verbs.h struct ib_device_attr attr; attr 521 drivers/infiniband/sw/siw/siw.h int siw_qp_modify(struct siw_qp *qp, struct siw_qp_attrs *attr, attr 154 drivers/infiniband/sw/siw/siw_verbs.c int siw_query_device(struct ib_device *base_dev, struct ib_device_attr *attr, attr 162 drivers/infiniband/sw/siw/siw_verbs.c memset(attr, 0, sizeof(*attr)); attr 165 drivers/infiniband/sw/siw/siw_verbs.c attr->atomic_cap = 0; attr 166 drivers/infiniband/sw/siw/siw_verbs.c attr->device_cap_flags = attr 168 drivers/infiniband/sw/siw/siw_verbs.c attr->max_cq = sdev->attrs.max_cq; attr 169 drivers/infiniband/sw/siw/siw_verbs.c attr->max_cqe = sdev->attrs.max_cqe; attr 170 drivers/infiniband/sw/siw/siw_verbs.c attr->max_fast_reg_page_list_len = SIW_MAX_SGE_PBL; attr 171 drivers/infiniband/sw/siw/siw_verbs.c attr->max_fmr = sdev->attrs.max_fmr; attr 172 drivers/infiniband/sw/siw/siw_verbs.c attr->max_mr = sdev->attrs.max_mr; attr 173 drivers/infiniband/sw/siw/siw_verbs.c attr->max_mw = sdev->attrs.max_mw; attr 174 drivers/infiniband/sw/siw/siw_verbs.c attr->max_mr_size = ~0ull; attr 175 drivers/infiniband/sw/siw/siw_verbs.c attr->max_pd = sdev->attrs.max_pd; attr 176 drivers/infiniband/sw/siw/siw_verbs.c attr->max_qp = sdev->attrs.max_qp; attr 177 drivers/infiniband/sw/siw/siw_verbs.c attr->max_qp_init_rd_atom = sdev->attrs.max_ird; attr 178 drivers/infiniband/sw/siw/siw_verbs.c attr->max_qp_rd_atom = sdev->attrs.max_ord; attr 179 drivers/infiniband/sw/siw/siw_verbs.c attr->max_qp_wr = sdev->attrs.max_qp_wr; attr 180 drivers/infiniband/sw/siw/siw_verbs.c attr->max_recv_sge = sdev->attrs.max_sge; attr 181 drivers/infiniband/sw/siw/siw_verbs.c attr->max_res_rd_atom = sdev->attrs.max_qp * sdev->attrs.max_ird; attr 182 drivers/infiniband/sw/siw/siw_verbs.c attr->max_send_sge = sdev->attrs.max_sge; attr 183 drivers/infiniband/sw/siw/siw_verbs.c attr->max_sge_rd = sdev->attrs.max_sge_rd; attr 184 drivers/infiniband/sw/siw/siw_verbs.c attr->max_srq = sdev->attrs.max_srq; attr 185 drivers/infiniband/sw/siw/siw_verbs.c attr->max_srq_sge = sdev->attrs.max_srq_sge; attr 186 drivers/infiniband/sw/siw/siw_verbs.c attr->max_srq_wr = sdev->attrs.max_srq_wr; attr 187 drivers/infiniband/sw/siw/siw_verbs.c attr->page_size_cap = PAGE_SIZE; attr 188 drivers/infiniband/sw/siw/siw_verbs.c attr->vendor_id = SIW_VENDOR_ID; attr 189 drivers/infiniband/sw/siw/siw_verbs.c attr->vendor_part_id = sdev->vendor_part_id; attr 191 drivers/infiniband/sw/siw/siw_verbs.c memcpy(&attr->sys_image_guid, sdev->netdev->dev_addr, 6); attr 197 drivers/infiniband/sw/siw/siw_verbs.c struct ib_port_attr *attr) attr 201 drivers/infiniband/sw/siw/siw_verbs.c memset(attr, 0, sizeof(*attr)); attr 203 drivers/infiniband/sw/siw/siw_verbs.c attr->active_mtu = attr->max_mtu; attr 204 drivers/infiniband/sw/siw/siw_verbs.c attr->active_speed = 2; attr 205 drivers/infiniband/sw/siw/siw_verbs.c attr->active_width = 2; attr 206 drivers/infiniband/sw/siw/siw_verbs.c attr->gid_tbl_len = 1; attr 207 drivers/infiniband/sw/siw/siw_verbs.c attr->max_msg_sz = -1; attr 208 drivers/infiniband/sw/siw/siw_verbs.c attr->max_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu); attr 209 drivers/infiniband/sw/siw/siw_verbs.c attr->phys_state = sdev->state == IB_PORT_ACTIVE ? attr 211 drivers/infiniband/sw/siw/siw_verbs.c attr->pkey_tbl_len = 1; attr 212 drivers/infiniband/sw/siw/siw_verbs.c attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_DEVICE_MGMT_SUP; attr 213 drivers/infiniband/sw/siw/siw_verbs.c attr->state = sdev->state; attr 233 drivers/infiniband/sw/siw/siw_verbs.c struct ib_port_attr attr; attr 234 drivers/infiniband/sw/siw/siw_verbs.c int rv = siw_query_port(base_dev, port, &attr); attr 239 drivers/infiniband/sw/siw/siw_verbs.c port_immutable->pkey_tbl_len = attr.pkey_tbl_len; attr 240 drivers/infiniband/sw/siw/siw_verbs.c port_immutable->gid_tbl_len = attr.gid_tbl_len; attr 558 drivers/infiniband/sw/siw/siw_verbs.c int siw_verbs_modify_qp(struct ib_qp *base_qp, struct ib_qp_attr *attr, attr 574 drivers/infiniband/sw/siw/siw_verbs.c if (attr->qp_access_flags & IB_ACCESS_REMOTE_READ) attr 576 drivers/infiniband/sw/siw/siw_verbs.c if (attr->qp_access_flags & IB_ACCESS_REMOTE_WRITE) attr 578 drivers/infiniband/sw/siw/siw_verbs.c if (attr->qp_access_flags & IB_ACCESS_MW_BIND) attr 583 drivers/infiniband/sw/siw/siw_verbs.c ib_qp_state_to_string[attr->qp_state]); attr 585 drivers/infiniband/sw/siw/siw_verbs.c new_attrs.state = ib_qp_state_to_siw_qp_state[attr->qp_state]; attr 1111 drivers/infiniband/sw/siw/siw_verbs.c int siw_create_cq(struct ib_cq *base_cq, const struct ib_cq_init_attr *attr, attr 1116 drivers/infiniband/sw/siw/siw_verbs.c int rv, size = attr->cqe; attr 1573 drivers/infiniband/sw/siw/siw_verbs.c struct ib_srq_attr *attrs = &init_attrs->attr; attr 40 drivers/infiniband/sw/siw/siw_verbs.h struct ib_port_attr *attr); attr 43 drivers/infiniband/sw/siw/siw_verbs.h int siw_query_device(struct ib_device *base_dev, struct ib_device_attr *attr, attr 45 drivers/infiniband/sw/siw/siw_verbs.h int siw_create_cq(struct ib_cq *base_cq, const struct ib_cq_init_attr *attr, attr 48 drivers/infiniband/sw/siw/siw_verbs.h struct ib_port_attr *attr); attr 55 drivers/infiniband/sw/siw/siw_verbs.h struct ib_qp_init_attr *attr, attr 59 drivers/infiniband/sw/siw/siw_verbs.h int siw_verbs_modify_qp(struct ib_qp *base_qp, struct ib_qp_attr *attr, attr 77 drivers/infiniband/sw/siw/siw_verbs.h int siw_create_srq(struct ib_srq *base_srq, struct ib_srq_init_attr *attr, attr 79 drivers/infiniband/sw/siw/siw_verbs.h int siw_modify_srq(struct ib_srq *base_srq, struct ib_srq_attr *attr, attr 81 drivers/infiniband/sw/siw/siw_verbs.h int siw_query_srq(struct ib_srq *base_srq, struct ib_srq_attr *attr); attr 487 drivers/infiniband/ulp/ipoib/ipoib.h struct ib_pd *pd, struct rdma_ah_attr *attr); attr 253 drivers/infiniband/ulp/ipoib/ipoib_cm.c struct ib_qp_init_attr attr = { attr 266 drivers/infiniband/ulp/ipoib/ipoib_cm.c attr.cap.max_recv_wr = ipoib_recvq_size; attr 267 drivers/infiniband/ulp/ipoib/ipoib_cm.c attr.cap.max_recv_sge = IPOIB_CM_RX_SG; attr 270 drivers/infiniband/ulp/ipoib/ipoib_cm.c return ib_create_qp(priv->pd, &attr); attr 1060 drivers/infiniband/ulp/ipoib/ipoib_cm.c struct ib_qp_init_attr attr = { attr 1074 drivers/infiniband/ulp/ipoib/ipoib_cm.c attr.cap.max_send_sge = min_t(u32, priv->ca->attrs.max_send_sge, attr 1077 drivers/infiniband/ulp/ipoib/ipoib_cm.c tx_qp = ib_create_qp(priv->pd, &attr); attr 1078 drivers/infiniband/ulp/ipoib/ipoib_cm.c tx->max_send_sge = attr.cap.max_send_sge; attr 1510 drivers/infiniband/ulp/ipoib/ipoib_cm.c static ssize_t show_mode(struct device *d, struct device_attribute *attr, attr 1522 drivers/infiniband/ulp/ipoib/ipoib_cm.c static ssize_t set_mode(struct device *d, struct device_attribute *attr, attr 1561 drivers/infiniband/ulp/ipoib/ipoib_cm.c .attr = { attr 181 drivers/infiniband/ulp/ipoib/ipoib_ethtool.c struct ib_port_attr attr; attr 190 drivers/infiniband/ulp/ipoib/ipoib_ethtool.c ret = ib_query_port(priv->ca, priv->port, &attr); attr 194 drivers/infiniband/ulp/ipoib/ipoib_ethtool.c speed = ib_speed_enum_to_int(attr.active_speed); attr 195 drivers/infiniband/ulp/ipoib/ipoib_ethtool.c width = ib_width_enum_to_int(attr.active_width); attr 56 drivers/infiniband/ulp/ipoib/ipoib_ib.c struct ib_pd *pd, struct rdma_ah_attr *attr) attr 69 drivers/infiniband/ulp/ipoib/ipoib_ib.c vah = rdma_create_ah(pd, attr, RDMA_CREATE_AH_SLEEPABLE); attr 1858 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ib_port_attr attr; attr 1861 drivers/infiniband/ulp/ipoib/ipoib_main.c result = ib_query_port(priv->ca, priv->port, &attr); attr 1867 drivers/infiniband/ulp/ipoib/ipoib_main.c priv->max_ib_mtu = ib_mtu_enum_to_int(attr.max_mtu); attr 2245 drivers/infiniband/ulp/ipoib/ipoib_main.c struct device_attribute *attr, char *buf) attr 2255 drivers/infiniband/ulp/ipoib/ipoib_main.c struct device_attribute *attr, char *buf) attr 2276 drivers/infiniband/ulp/ipoib/ipoib_main.c struct device_attribute *attr, attr 2357 drivers/infiniband/ulp/ipoib/ipoib_main.c struct device_attribute *attr, attr 2376 drivers/infiniband/ulp/ipoib/ipoib_main.c struct device_attribute *attr, attr 2410 drivers/infiniband/ulp/ipoib/ipoib_main.c struct device_attribute *attr, char *buf) attr 330 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct ib_port_attr attr; attr 332 drivers/infiniband/ulp/ipoib/ipoib_multicast.c if (ib_query_port(priv->ca, priv->port, &attr) || attr 333 drivers/infiniband/ulp/ipoib/ipoib_multicast.c attr.state != IB_PORT_ACTIVE) { attr 43 drivers/infiniband/ulp/ipoib/ipoib_vlan.c static ssize_t show_parent(struct device *d, struct device_attribute *attr, attr 651 drivers/infiniband/ulp/iser/iser_verbs.c struct ib_device_attr *attr = &device->ib_device->attrs; attr 662 drivers/infiniband/ulp/iser/iser_verbs.c if ((attr->device_cap_flags & IB_DEVICE_MEM_MGT_EXTENSIONS) && attr 663 drivers/infiniband/ulp/iser/iser_verbs.c (attr->device_cap_flags & IB_DEVICE_SG_GAPS_REG)) attr 669 drivers/infiniband/ulp/iser/iser_verbs.c max_num_sg = attr->max_pi_fast_reg_page_list_len; attr 671 drivers/infiniband/ulp/iser/iser_verbs.c max_num_sg = attr->max_fast_reg_page_list_len; attr 674 drivers/infiniband/ulp/iser/iser_verbs.c if (attr->device_cap_flags & IB_DEVICE_MEM_MGT_EXTENSIONS) attr 783 drivers/infiniband/ulp/iser/iser_verbs.c struct ib_qp_attr attr; attr 791 drivers/infiniband/ulp/iser/iser_verbs.c (void)ib_query_qp(cma_id->qp, &attr, ~0, &init_attr); attr 792 drivers/infiniband/ulp/iser/iser_verbs.c iser_info("remote qpn:%x my qpn:%x\n", attr.dest_qp_num, cma_id->qp->qp_num); attr 120 drivers/infiniband/ulp/isert/ib_isert.c struct ib_qp_init_attr attr; attr 123 drivers/infiniband/ulp/isert/ib_isert.c memset(&attr, 0, sizeof(struct ib_qp_init_attr)); attr 124 drivers/infiniband/ulp/isert/ib_isert.c attr.event_handler = isert_qp_event_callback; attr 125 drivers/infiniband/ulp/isert/ib_isert.c attr.qp_context = isert_conn; attr 126 drivers/infiniband/ulp/isert/ib_isert.c attr.send_cq = comp->cq; attr 127 drivers/infiniband/ulp/isert/ib_isert.c attr.recv_cq = comp->cq; attr 128 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_send_wr = ISERT_QP_MAX_REQ_DTOS + 1; attr 129 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_recv_wr = ISERT_QP_MAX_RECV_DTOS + 1; attr 130 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_rdma_ctxs = ISCSI_DEF_XMIT_CMDS_MAX; attr 131 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_send_sge = device->ib_device->attrs.max_send_sge; attr 132 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_recv_sge = 1; attr 133 drivers/infiniband/ulp/isert/ib_isert.c attr.sq_sig_type = IB_SIGNAL_REQ_WR; attr 134 drivers/infiniband/ulp/isert/ib_isert.c attr.qp_type = IB_QPT_RC; attr 136 drivers/infiniband/ulp/isert/ib_isert.c attr.create_flags |= IB_QP_CREATE_INTEGRITY_EN; attr 138 drivers/infiniband/ulp/isert/ib_isert.c ret = rdma_create_qp(cma_id, device->pd, &attr); attr 470 drivers/infiniband/ulp/isert/ib_isert.c struct ib_device_attr *attr = &isert_conn->device->ib_device->attrs; attr 474 drivers/infiniband/ulp/isert/ib_isert.c attr->max_qp_init_rd_atom); attr 485 drivers/infiniband/ulp/isert/ib_isert.c (attr->device_cap_flags & attr 283 drivers/infiniband/ulp/srp/ib_srp.c struct ib_qp_attr *attr; attr 286 drivers/infiniband/ulp/srp/ib_srp.c attr = kmalloc(sizeof *attr, GFP_KERNEL); attr 287 drivers/infiniband/ulp/srp/ib_srp.c if (!attr) attr 293 drivers/infiniband/ulp/srp/ib_srp.c &attr->pkey_index); attr 297 drivers/infiniband/ulp/srp/ib_srp.c attr->qp_state = IB_QPS_INIT; attr 298 drivers/infiniband/ulp/srp/ib_srp.c attr->qp_access_flags = (IB_ACCESS_REMOTE_READ | attr 300 drivers/infiniband/ulp/srp/ib_srp.c attr->port_num = target->srp_host->port; attr 302 drivers/infiniband/ulp/srp/ib_srp.c ret = ib_modify_qp(qp, attr, attr 309 drivers/infiniband/ulp/srp/ib_srp.c kfree(attr); attr 821 drivers/infiniband/ulp/srp/ib_srp.c struct ib_port_attr attr; attr 825 drivers/infiniband/ulp/srp/ib_srp.c ret = ib_query_port(host->srp_dev->dev, host->port, &attr); attr 827 drivers/infiniband/ulp/srp/ib_srp.c subnet_timeout = attr.subnet_timeout; attr 1093 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute **attr; attr 1095 drivers/infiniband/ulp/srp/ib_srp.c for (attr = shost->hostt->shost_attrs; attr && *attr; ++attr) attr 1096 drivers/infiniband/ulp/srp/ib_srp.c device_remove_file(&shost->shost_dev, *attr); attr 3065 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_id_ext(struct device *dev, struct device_attribute *attr, attr 3073 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_ioc_guid(struct device *dev, struct device_attribute *attr, attr 3082 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3092 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_pkey(struct device *dev, struct device_attribute *attr, attr 3102 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_sgid(struct device *dev, struct device_attribute *attr, attr 3110 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_dgid(struct device *dev, struct device_attribute *attr, attr 3122 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3132 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3146 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3154 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3162 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3170 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_ch_count(struct device *dev, struct device_attribute *attr, attr 3179 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3187 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3195 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3203 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, char *buf) attr 3768 drivers/infiniband/ulp/srp/ib_srp.c struct device_attribute *attr, attr 4038 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_ibdev(struct device *dev, struct device_attribute *attr, attr 4048 drivers/infiniband/ulp/srp/ib_srp.c static ssize_t show_port(struct device *dev, struct device_attribute *attr, attr 4115 drivers/infiniband/ulp/srp/ib_srp.c struct ib_device_attr *attr = &device->attrs; attr 4131 drivers/infiniband/ulp/srp/ib_srp.c mr_page_shift = max(12, ffs(attr->page_size_cap) - 1); attr 4134 drivers/infiniband/ulp/srp/ib_srp.c max_pages_per_mr = attr->max_mr_size; attr 4137 drivers/infiniband/ulp/srp/ib_srp.c attr->max_mr_size, srp_dev->mr_page_size, attr 4146 drivers/infiniband/ulp/srp/ib_srp.c srp_dev->has_fr = (attr->device_cap_flags & attr 4151 drivers/infiniband/ulp/srp/ib_srp.c attr->max_mr_size >= 2 * srp_dev->mr_page_size) { attr 4164 drivers/infiniband/ulp/srp/ib_srp.c attr->max_fast_reg_page_list_len); attr 4169 drivers/infiniband/ulp/srp/ib_srp.c dev_name(&device->dev), mr_page_shift, attr->max_mr_size, attr 4170 drivers/infiniband/ulp/srp/ib_srp.c attr->max_fast_reg_page_list_len, attr 1112 drivers/infiniband/ulp/srpt/ib_srpt.c struct ib_qp_attr *attr; attr 1117 drivers/infiniband/ulp/srpt/ib_srpt.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 1118 drivers/infiniband/ulp/srpt/ib_srpt.c if (!attr) attr 1121 drivers/infiniband/ulp/srpt/ib_srpt.c attr->qp_state = IB_QPS_INIT; attr 1122 drivers/infiniband/ulp/srpt/ib_srpt.c attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE; attr 1123 drivers/infiniband/ulp/srpt/ib_srpt.c attr->port_num = ch->sport->port; attr 1126 drivers/infiniband/ulp/srpt/ib_srpt.c ch->pkey, &attr->pkey_index); attr 1131 drivers/infiniband/ulp/srpt/ib_srpt.c ret = ib_modify_qp(qp, attr, attr 1135 drivers/infiniband/ulp/srpt/ib_srpt.c kfree(attr); attr 3041 drivers/infiniband/ulp/srpt/ib_srpt.c .attr.max_wr = sdev->srq_size, attr 3042 drivers/infiniband/ulp/srpt/ib_srpt.c .attr.max_sge = 1, attr 458 drivers/input/gameport/gameport.c static ssize_t gameport_description_show(struct device *dev, struct device_attribute *attr, char *buf) attr 466 drivers/input/gameport/gameport.c static ssize_t drvctl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 497 drivers/input/gameport/gameport.c &dev_attr_description.attr, attr 498 drivers/input/gameport/gameport.c &dev_attr_drvctl.attr, attr 686 drivers/input/gameport/gameport.c &driver_attr_description.attr, attr 70 drivers/input/input-polldev.c struct device_attribute *attr, char *buf) attr 78 drivers/input/input-polldev.c struct device_attribute *attr, const char *buf, attr 116 drivers/input/input-polldev.c struct device_attribute *attr, char *buf) attr 126 drivers/input/input-polldev.c struct device_attribute *attr, char *buf) attr 136 drivers/input/input-polldev.c &dev_attr_poll.attr, attr 137 drivers/input/input-polldev.c &dev_attr_max.attr, attr 138 drivers/input/input-polldev.c &dev_attr_min.attr, attr 129 drivers/input/input-poller.c struct device_attribute *attr, attr 138 drivers/input/input-poller.c struct device_attribute *attr, attr 175 drivers/input/input-poller.c struct device_attribute *attr, char *buf) attr 185 drivers/input/input-poller.c struct device_attribute *attr, char *buf) attr 195 drivers/input/input-poller.c struct attribute *attr, int n) attr 200 drivers/input/input-poller.c return input->poller ? attr->mode : 0; attr 204 drivers/input/input-poller.c &dev_attr_poll.attr, attr 205 drivers/input/input-poller.c &dev_attr_max.attr, attr 206 drivers/input/input-poller.c &dev_attr_min.attr, attr 1332 drivers/input/input.c struct device_attribute *attr, \ attr 1395 drivers/input/input.c struct device_attribute *attr, attr 1411 drivers/input/input.c struct device_attribute *attr, attr 1422 drivers/input/input.c &dev_attr_name.attr, attr 1423 drivers/input/input.c &dev_attr_phys.attr, attr 1424 drivers/input/input.c &dev_attr_uniq.attr, attr 1425 drivers/input/input.c &dev_attr_modalias.attr, attr 1426 drivers/input/input.c &dev_attr_properties.attr, attr 1436 drivers/input/input.c struct device_attribute *attr, \ attr 1450 drivers/input/input.c &dev_attr_bustype.attr, attr 1451 drivers/input/input.c &dev_attr_vendor.attr, attr 1452 drivers/input/input.c &dev_attr_product.attr, attr 1453 drivers/input/input.c &dev_attr_version.attr, attr 1493 drivers/input/input.c struct device_attribute *attr, \ attr 1515 drivers/input/input.c &dev_attr_ev.attr, attr 1516 drivers/input/input.c &dev_attr_key.attr, attr 1517 drivers/input/input.c &dev_attr_rel.attr, attr 1518 drivers/input/input.c &dev_attr_abs.attr, attr 1519 drivers/input/input.c &dev_attr_msc.attr, attr 1520 drivers/input/input.c &dev_attr_led.attr, attr 1521 drivers/input/input.c &dev_attr_snd.attr, attr 1522 drivers/input/input.c &dev_attr_ff.attr, attr 1523 drivers/input/input.c &dev_attr_sw.attr, attr 256 drivers/input/keyboard/atkbd.c struct device_attribute *attr, char *b) \ attr 261 drivers/input/keyboard/atkbd.c struct device_attribute *attr, const char *b, size_t s) \ attr 278 drivers/input/keyboard/atkbd.c struct device_attribute *attr, char *b) \ attr 288 drivers/input/keyboard/atkbd.c &atkbd_attr_extra.attr, attr 289 drivers/input/keyboard/atkbd.c &atkbd_attr_force_release.attr, attr 290 drivers/input/keyboard/atkbd.c &atkbd_attr_scroll.attr, attr 291 drivers/input/keyboard/atkbd.c &atkbd_attr_set.attr, attr 292 drivers/input/keyboard/atkbd.c &atkbd_attr_softrepeat.attr, attr 293 drivers/input/keyboard/atkbd.c &atkbd_attr_softraw.attr, attr 294 drivers/input/keyboard/atkbd.c &atkbd_attr_err_count.attr, attr 290 drivers/input/keyboard/gpio_keys.c struct device_attribute *attr, \ attr 316 drivers/input/keyboard/gpio_keys.c struct device_attribute *attr, \ attr 348 drivers/input/keyboard/gpio_keys.c &dev_attr_keys.attr, attr 349 drivers/input/keyboard/gpio_keys.c &dev_attr_switches.attr, attr 350 drivers/input/keyboard/gpio_keys.c &dev_attr_disabled_keys.attr, attr 351 drivers/input/keyboard/gpio_keys.c &dev_attr_disabled_switches.attr, attr 523 drivers/input/keyboard/lm8323.c struct device_attribute *attr, char *buf) attr 532 drivers/input/keyboard/lm8323.c struct device_attribute *attr, const char *buf, size_t len) attr 550 drivers/input/keyboard/lm8323.c &dev_attr_time.attr, attr 591 drivers/input/keyboard/lm8323.c struct device_attribute *attr, char *buf) attr 599 drivers/input/keyboard/lm8323.c struct device_attribute *attr, attr 145 drivers/input/keyboard/omap-keypad.c struct device_attribute *attr, char *buf) attr 150 drivers/input/keyboard/omap-keypad.c static ssize_t omap_kp_enable_store(struct device *dev, struct device_attribute *attr, attr 442 drivers/input/misc/adxl34x.c struct device_attribute *attr, char *buf) attr 450 drivers/input/misc/adxl34x.c struct device_attribute *attr, attr 483 drivers/input/misc/adxl34x.c struct device_attribute *attr, char *buf) attr 499 drivers/input/misc/adxl34x.c struct device_attribute *attr, attr 531 drivers/input/misc/adxl34x.c struct device_attribute *attr, char *buf) attr 539 drivers/input/misc/adxl34x.c struct device_attribute *attr, attr 565 drivers/input/misc/adxl34x.c struct device_attribute *attr, char *buf) attr 574 drivers/input/misc/adxl34x.c struct device_attribute *attr, attr 604 drivers/input/misc/adxl34x.c struct device_attribute *attr, char *buf) attr 621 drivers/input/misc/adxl34x.c struct device_attribute *attr, attr 646 drivers/input/misc/adxl34x.c &dev_attr_disable.attr, attr 647 drivers/input/misc/adxl34x.c &dev_attr_calibrate.attr, attr 648 drivers/input/misc/adxl34x.c &dev_attr_rate.attr, attr 649 drivers/input/misc/adxl34x.c &dev_attr_autosleep.attr, attr 650 drivers/input/misc/adxl34x.c &dev_attr_position.attr, attr 652 drivers/input/misc/adxl34x.c &dev_attr_write.attr, attr 701 drivers/input/misc/ati_remote2.c struct device_attribute *attr, attr 712 drivers/input/misc/ati_remote2.c struct device_attribute *attr, attr 751 drivers/input/misc/ati_remote2.c struct device_attribute *attr, attr 762 drivers/input/misc/ati_remote2.c struct device_attribute *attr, attr 790 drivers/input/misc/ati_remote2.c &dev_attr_channel_mask.attr, attr 791 drivers/input/misc/ati_remote2.c &dev_attr_mode_mask.attr, attr 110 drivers/input/misc/axp20x-pek.c struct device_attribute *attr, attr 120 drivers/input/misc/axp20x-pek.c struct device_attribute *attr, attr 175 drivers/input/misc/axp20x-pek.c struct device_attribute *attr, attr 185 drivers/input/misc/axp20x-pek.c struct device_attribute *attr, attr 199 drivers/input/misc/axp20x-pek.c &dev_attr_startup.attr, attr 200 drivers/input/misc/axp20x-pek.c &dev_attr_shutdown.attr, attr 172 drivers/input/misc/ideapad_slidebar.c struct device_attribute *attr, attr 179 drivers/input/misc/ideapad_slidebar.c struct device_attribute *attr, attr 198 drivers/input/misc/ideapad_slidebar.c &dev_attr_slidebar_mode.attr, attr 1049 drivers/input/misc/ims-pcu.c struct ims_pcu_attribute *attr = attr 1051 drivers/input/misc/ims-pcu.c char *field = (char *)pcu + attr->field_offset; attr 1053 drivers/input/misc/ims-pcu.c return scnprintf(buf, PAGE_SIZE, "%.*s\n", attr->field_length, field); attr 1063 drivers/input/misc/ims-pcu.c struct ims_pcu_attribute *attr = attr 1065 drivers/input/misc/ims-pcu.c char *field = (char *)pcu + attr->field_offset; attr 1069 drivers/input/misc/ims-pcu.c if (count > attr->field_length) attr 1072 drivers/input/misc/ims-pcu.c data_len = strnlen(buf, attr->field_length); attr 1073 drivers/input/misc/ims-pcu.c if (data_len > attr->field_length) attr 1080 drivers/input/misc/ims-pcu.c memset(field, 0, attr->field_length); attr 1216 drivers/input/misc/ims-pcu.c &ims_pcu_attr_part_number.dattr.attr, attr 1217 drivers/input/misc/ims-pcu.c &ims_pcu_attr_serial_number.dattr.attr, attr 1218 drivers/input/misc/ims-pcu.c &ims_pcu_attr_date_of_manufacturing.dattr.attr, attr 1219 drivers/input/misc/ims-pcu.c &ims_pcu_attr_fw_version.dattr.attr, attr 1220 drivers/input/misc/ims-pcu.c &ims_pcu_attr_bl_version.dattr.attr, attr 1221 drivers/input/misc/ims-pcu.c &ims_pcu_attr_reset_reason.dattr.attr, attr 1222 drivers/input/misc/ims-pcu.c &dev_attr_reset_device.attr, attr 1223 drivers/input/misc/ims-pcu.c &dev_attr_update_firmware.attr, attr 1224 drivers/input/misc/ims-pcu.c &dev_attr_update_firmware_status.attr, attr 1229 drivers/input/misc/ims-pcu.c struct attribute *attr, int n) attr 1234 drivers/input/misc/ims-pcu.c umode_t mode = attr->mode; attr 1237 drivers/input/misc/ims-pcu.c if (attr != &dev_attr_update_firmware_status.attr && attr 1238 drivers/input/misc/ims-pcu.c attr != &dev_attr_update_firmware.attr && attr 1239 drivers/input/misc/ims-pcu.c attr != &dev_attr_reset_device.attr) { attr 1243 drivers/input/misc/ims-pcu.c if (attr == &dev_attr_update_firmware_status.attr) attr 1388 drivers/input/misc/ims-pcu.c struct ims_pcu_ofn_bit_attribute *attr = attr 1394 drivers/input/misc/ims-pcu.c error = ims_pcu_read_ofn_config(pcu, attr->addr, &data); attr 1400 drivers/input/misc/ims-pcu.c return scnprintf(buf, PAGE_SIZE, "%d\n", !!(data & (1 << attr->nr))); attr 1409 drivers/input/misc/ims-pcu.c struct ims_pcu_ofn_bit_attribute *attr = attr 1424 drivers/input/misc/ims-pcu.c error = ims_pcu_read_ofn_config(pcu, attr->addr, &data); attr 1427 drivers/input/misc/ims-pcu.c data |= 1U << attr->nr; attr 1429 drivers/input/misc/ims-pcu.c data &= ~(1U << attr->nr); attr 1431 drivers/input/misc/ims-pcu.c error = ims_pcu_write_ofn_config(pcu, attr->addr, data); attr 1457 drivers/input/misc/ims-pcu.c &dev_attr_reg_data.attr, attr 1458 drivers/input/misc/ims-pcu.c &dev_attr_reg_addr.attr, attr 1459 drivers/input/misc/ims-pcu.c &ims_pcu_ofn_attr_engine_enable.dattr.attr, attr 1460 drivers/input/misc/ims-pcu.c &ims_pcu_ofn_attr_speed_enable.dattr.attr, attr 1461 drivers/input/misc/ims-pcu.c &ims_pcu_ofn_attr_assert_enable.dattr.attr, attr 1462 drivers/input/misc/ims-pcu.c &ims_pcu_ofn_attr_xyquant_enable.dattr.attr, attr 1463 drivers/input/misc/ims-pcu.c &ims_pcu_ofn_attr_xyscale_enable.dattr.attr, attr 1464 drivers/input/misc/ims-pcu.c &ims_pcu_ofn_attr_scale_x2.dattr.attr, attr 1465 drivers/input/misc/ims-pcu.c &ims_pcu_ofn_attr_scale_y2.dattr.attr, attr 342 drivers/input/misc/kxtj9.c struct device_attribute *attr, char *buf) attr 351 drivers/input/misc/kxtj9.c static ssize_t kxtj9_set_poll(struct device *dev, struct device_attribute *attr, attr 386 drivers/input/misc/kxtj9.c &dev_attr_poll.attr, attr 555 drivers/input/misc/yealink.c static ssize_t show_map(struct device *dev, struct device_attribute *attr, attr 562 drivers/input/misc/yealink.c static ssize_t store_map(struct device *dev, struct device_attribute *attr, attr 605 drivers/input/misc/yealink.c static ssize_t show_line1(struct device *dev, struct device_attribute *attr, attr 611 drivers/input/misc/yealink.c static ssize_t show_line2(struct device *dev, struct device_attribute *attr, attr 617 drivers/input/misc/yealink.c static ssize_t show_line3(struct device *dev, struct device_attribute *attr, attr 652 drivers/input/misc/yealink.c static ssize_t store_line1(struct device *dev, struct device_attribute *attr, attr 658 drivers/input/misc/yealink.c static ssize_t store_line2(struct device *dev, struct device_attribute *attr, attr 664 drivers/input/misc/yealink.c static ssize_t store_line3(struct device *dev, struct device_attribute *attr, attr 675 drivers/input/misc/yealink.c static ssize_t get_icons(struct device *dev, struct device_attribute *attr, attr 726 drivers/input/misc/yealink.c static ssize_t show_icon(struct device *dev, struct device_attribute *attr, attr 732 drivers/input/misc/yealink.c static ssize_t hide_icon(struct device *dev, struct device_attribute *attr, attr 743 drivers/input/misc/yealink.c struct device_attribute *attr, attr 775 drivers/input/misc/yealink.c &dev_attr_line1.attr, attr 776 drivers/input/misc/yealink.c &dev_attr_line2.attr, attr 777 drivers/input/misc/yealink.c &dev_attr_line3.attr, attr 778 drivers/input/misc/yealink.c &dev_attr_get_icons.attr, attr 779 drivers/input/misc/yealink.c &dev_attr_show_icon.attr, attr 780 drivers/input/misc/yealink.c &dev_attr_hide_icon.attr, attr 781 drivers/input/misc/yealink.c &dev_attr_map_seg7.attr, attr 782 drivers/input/misc/yealink.c &dev_attr_ringtone.attr, attr 739 drivers/input/mouse/cyapa.c struct device_attribute *attr, attr 778 drivers/input/mouse/cyapa.c struct device_attribute *attr, attr 811 drivers/input/mouse/cyapa.c &dev_attr_suspend_scanrate_ms.attr, attr 864 drivers/input/mouse/cyapa.c struct device_attribute *attr, attr 888 drivers/input/mouse/cyapa.c struct device_attribute *attr, attr 927 drivers/input/mouse/cyapa.c &dev_attr_runtime_suspend_scanrate_ms.attr, attr 984 drivers/input/mouse/cyapa.c struct device_attribute *attr, char *buf) attr 999 drivers/input/mouse/cyapa.c struct device_attribute *attr, char *buf) attr 1077 drivers/input/mouse/cyapa.c struct device_attribute *attr, attr 1137 drivers/input/mouse/cyapa.c struct device_attribute *attr, attr 1149 drivers/input/mouse/cyapa.c error = cyapa->ops->calibrate_store(dev, attr, buf, count); attr 1160 drivers/input/mouse/cyapa.c struct device_attribute *attr, char *buf) attr 1171 drivers/input/mouse/cyapa.c error = cyapa->ops->show_baseline(dev, attr, buf); attr 1203 drivers/input/mouse/cyapa.c struct device_attribute *attr, char *buf) attr 1228 drivers/input/mouse/cyapa.c &dev_attr_firmware_version.attr, attr 1229 drivers/input/mouse/cyapa.c &dev_attr_product_id.attr, attr 1230 drivers/input/mouse/cyapa.c &dev_attr_update_fw.attr, attr 1231 drivers/input/mouse/cyapa.c &dev_attr_baseline.attr, attr 1232 drivers/input/mouse/cyapa.c &dev_attr_calibrate.attr, attr 1233 drivers/input/mouse/cyapa.c &dev_attr_mode.attr, attr 431 drivers/input/mouse/cyapa.h struct device_attribute *attr, attr 745 drivers/input/mouse/cyapa_gen3.c struct device_attribute *attr, attr 800 drivers/input/mouse/cyapa_gen3.c struct device_attribute *attr, char *buf) attr 1820 drivers/input/mouse/cyapa_gen5.c struct device_attribute *attr, attr 2301 drivers/input/mouse/cyapa_gen5.c struct device_attribute *attr, char *buf) attr 606 drivers/input/mouse/cyapa_gen6.c struct device_attribute *attr, char *buf) attr 539 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 549 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 560 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 570 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 580 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 590 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 642 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 708 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, attr 741 drivers/input/mouse/elan_i2c_core.c &dev_attr_product_id.attr, attr 742 drivers/input/mouse/elan_i2c_core.c &dev_attr_firmware_version.attr, attr 743 drivers/input/mouse/elan_i2c_core.c &dev_attr_sample_version.attr, attr 744 drivers/input/mouse/elan_i2c_core.c &dev_attr_iap_version.attr, attr 745 drivers/input/mouse/elan_i2c_core.c &dev_attr_fw_checksum.attr, attr 746 drivers/input/mouse/elan_i2c_core.c &dev_attr_calibrate.attr, attr 747 drivers/input/mouse/elan_i2c_core.c &dev_attr_mode.attr, attr 748 drivers/input/mouse/elan_i2c_core.c &dev_attr_update_fw.attr, attr 756 drivers/input/mouse/elan_i2c_core.c static ssize_t acquire_store(struct device *dev, struct device_attribute *attr, attr 816 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, char *buf) attr 839 drivers/input/mouse/elan_i2c_core.c struct device_attribute *attr, char *buf) attr 867 drivers/input/mouse/elan_i2c_core.c &dev_attr_acquire.attr, attr 868 drivers/input/mouse/elan_i2c_core.c &dev_attr_min.attr, attr 869 drivers/input/mouse/elan_i2c_core.c &dev_attr_max.attr, attr 1220 drivers/input/mouse/elantech.c struct elantech_attr_data *attr = data; attr 1221 drivers/input/mouse/elantech.c unsigned char *reg = (unsigned char *) etd + attr->field_offset; attr 1224 drivers/input/mouse/elantech.c if (attr->reg) attr 1225 drivers/input/mouse/elantech.c rc = elantech_read_reg(psmouse, attr->reg, reg); attr 1227 drivers/input/mouse/elantech.c return sprintf(buf, "0x%02x\n", (attr->reg && rc) ? -1 : *reg); attr 1237 drivers/input/mouse/elantech.c struct elantech_attr_data *attr = data; attr 1238 drivers/input/mouse/elantech.c unsigned char *reg = (unsigned char *) etd + attr->field_offset; attr 1248 drivers/input/mouse/elantech.c if (attr->reg == 0x10) attr 1251 drivers/input/mouse/elantech.c else if (attr->reg == 0x11) attr 1256 drivers/input/mouse/elantech.c if (!attr->reg || elantech_write_reg(psmouse, attr->reg, value) == 0) attr 1298 drivers/input/mouse/elantech.c &psmouse_attr_reg_07.dattr.attr, attr 1299 drivers/input/mouse/elantech.c &psmouse_attr_reg_10.dattr.attr, attr 1300 drivers/input/mouse/elantech.c &psmouse_attr_reg_11.dattr.attr, attr 1301 drivers/input/mouse/elantech.c &psmouse_attr_reg_20.dattr.attr, attr 1302 drivers/input/mouse/elantech.c &psmouse_attr_reg_21.dattr.attr, attr 1303 drivers/input/mouse/elantech.c &psmouse_attr_reg_22.dattr.attr, attr 1304 drivers/input/mouse/elantech.c &psmouse_attr_reg_23.dattr.attr, attr 1305 drivers/input/mouse/elantech.c &psmouse_attr_reg_24.dattr.attr, attr 1306 drivers/input/mouse/elantech.c &psmouse_attr_reg_25.dattr.attr, attr 1307 drivers/input/mouse/elantech.c &psmouse_attr_reg_26.dattr.attr, attr 1308 drivers/input/mouse/elantech.c &psmouse_attr_debug.dattr.attr, attr 1309 drivers/input/mouse/elantech.c &psmouse_attr_paritycheck.dattr.attr, attr 1310 drivers/input/mouse/elantech.c &psmouse_attr_crc_enabled.dattr.attr, attr 98 drivers/input/mouse/psmouse-base.c &psmouse_attr_protocol.dattr.attr, attr 99 drivers/input/mouse/psmouse-base.c &psmouse_attr_rate.dattr.attr, attr 100 drivers/input/mouse/psmouse-base.c &psmouse_attr_resolution.dattr.attr, attr 101 drivers/input/mouse/psmouse-base.c &psmouse_attr_resetafter.dattr.attr, attr 102 drivers/input/mouse/psmouse-base.c &psmouse_attr_resync_time.dattr.attr, attr 1810 drivers/input/mouse/psmouse-base.c struct psmouse_attribute *attr = to_psmouse_attr(devattr); attr 1817 drivers/input/mouse/psmouse-base.c return attr->show(psmouse, attr->data, buf); attr 1824 drivers/input/mouse/psmouse-base.c struct psmouse_attribute *attr = to_psmouse_attr(devattr); attr 1840 drivers/input/mouse/psmouse-base.c if (attr->protect) { attr 1855 drivers/input/mouse/psmouse-base.c retval = attr->set(psmouse, attr->data, buf, count); attr 1857 drivers/input/mouse/psmouse-base.c if (attr->protect) { attr 157 drivers/input/mouse/psmouse.h ssize_t psmouse_attr_show_helper(struct device *dev, struct device_attribute *attr, attr 159 drivers/input/mouse/psmouse.h ssize_t psmouse_attr_set_helper(struct device *dev, struct device_attribute *attr, attr 165 drivers/input/mouse/psmouse.h .attr = { \ attr 621 drivers/input/mouse/sentelic.c &psmouse_attr_setreg.dattr.attr, attr 622 drivers/input/mouse/sentelic.c &psmouse_attr_getreg.dattr.attr, attr 623 drivers/input/mouse/sentelic.c &psmouse_attr_page.dattr.attr, attr 624 drivers/input/mouse/sentelic.c &psmouse_attr_vscroll.dattr.attr, attr 625 drivers/input/mouse/sentelic.c &psmouse_attr_hscroll.dattr.attr, attr 626 drivers/input/mouse/sentelic.c &psmouse_attr_flags.dattr.attr, attr 627 drivers/input/mouse/sentelic.c &psmouse_attr_ver.dattr.attr, attr 106 drivers/input/mouse/trackpoint.c struct trackpoint_attr_data *attr = data; attr 107 drivers/input/mouse/trackpoint.c u8 value = *(u8 *)((void *)tp + attr->field_offset); attr 109 drivers/input/mouse/trackpoint.c if (attr->inverted) attr 119 drivers/input/mouse/trackpoint.c struct trackpoint_attr_data *attr = data; attr 120 drivers/input/mouse/trackpoint.c u8 *field = (void *)tp + attr->field_offset; attr 129 drivers/input/mouse/trackpoint.c err = trackpoint_write(&psmouse->ps2dev, attr->command, value); attr 148 drivers/input/mouse/trackpoint.c struct trackpoint_attr_data *attr = data; attr 149 drivers/input/mouse/trackpoint.c bool *field = (void *)tp + attr->field_offset; attr 157 drivers/input/mouse/trackpoint.c if (attr->inverted) attr 163 drivers/input/mouse/trackpoint.c attr->command, attr->mask); attr 203 drivers/input/mouse/trackpoint.c struct attribute *attr) attr 208 drivers/input/mouse/trackpoint.c attr == &psmouse_attr_sensitivity.dattr.attr || attr 209 drivers/input/mouse/trackpoint.c attr == &psmouse_attr_press_to_select.dattr.attr; attr 213 drivers/input/mouse/trackpoint.c struct attribute *attr, int n) attr 219 drivers/input/mouse/trackpoint.c return trackpoint_is_attr_available(psmouse, attr) ? attr->mode : 0; attr 223 drivers/input/mouse/trackpoint.c &psmouse_attr_sensitivity.dattr.attr, attr 224 drivers/input/mouse/trackpoint.c &psmouse_attr_speed.dattr.attr, attr 225 drivers/input/mouse/trackpoint.c &psmouse_attr_inertia.dattr.attr, attr 226 drivers/input/mouse/trackpoint.c &psmouse_attr_reach.dattr.attr, attr 227 drivers/input/mouse/trackpoint.c &psmouse_attr_draghys.dattr.attr, attr 228 drivers/input/mouse/trackpoint.c &psmouse_attr_mindrag.dattr.attr, attr 229 drivers/input/mouse/trackpoint.c &psmouse_attr_thresh.dattr.attr, attr 230 drivers/input/mouse/trackpoint.c &psmouse_attr_upthresh.dattr.attr, attr 231 drivers/input/mouse/trackpoint.c &psmouse_attr_ztime.dattr.attr, attr 232 drivers/input/mouse/trackpoint.c &psmouse_attr_jenks.dattr.attr, attr 233 drivers/input/mouse/trackpoint.c &psmouse_attr_drift_time.dattr.attr, attr 234 drivers/input/mouse/trackpoint.c &psmouse_attr_press_to_select.dattr.attr, attr 235 drivers/input/mouse/trackpoint.c &psmouse_attr_skipback.dattr.attr, attr 236 drivers/input/mouse/trackpoint.c &psmouse_attr_ext_dev.dattr.attr, attr 251 drivers/input/mouse/trackpoint.c &psmouse_attr_##_name.dattr.attr)) { \ attr 326 drivers/input/rmi4/rmi_f01.c &dev_attr_manufacturer_id.attr, attr 327 drivers/input/rmi4/rmi_f01.c &dev_attr_date_of_manufacture.attr, attr 328 drivers/input/rmi4/rmi_f01.c &dev_attr_product_id.attr, attr 329 drivers/input/rmi4/rmi_f01.c &dev_attr_firmware_id.attr, attr 330 drivers/input/rmi4/rmi_f01.c &dev_attr_package_id.attr, attr 509 drivers/input/rmi4/rmi_f34.c &dev_attr_bootloader_id.attr, attr 510 drivers/input/rmi4/rmi_f34.c &dev_attr_configuration_id.attr, attr 511 drivers/input/rmi4/rmi_f34.c &dev_attr_update_fw.attr, attr 512 drivers/input/rmi4/rmi_f34.c &dev_attr_update_fw_status.attr, attr 344 drivers/input/serio/serio.c static ssize_t serio_show_description(struct device *dev, struct device_attribute *attr, char *buf) attr 350 drivers/input/serio/serio.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) attr 358 drivers/input/serio/serio.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 364 drivers/input/serio/serio.c static ssize_t proto_show(struct device *dev, struct device_attribute *attr, char *buf) attr 370 drivers/input/serio/serio.c static ssize_t id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 376 drivers/input/serio/serio.c static ssize_t extra_show(struct device *dev, struct device_attribute *attr, char *buf) attr 382 drivers/input/serio/serio.c static ssize_t drvctl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 413 drivers/input/serio/serio.c static ssize_t serio_show_bind_mode(struct device *dev, struct device_attribute *attr, char *buf) attr 419 drivers/input/serio/serio.c static ssize_t serio_set_bind_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 436 drivers/input/serio/serio.c static ssize_t firmware_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 449 drivers/input/serio/serio.c &dev_attr_type.attr, attr 450 drivers/input/serio/serio.c &dev_attr_proto.attr, attr 451 drivers/input/serio/serio.c &dev_attr_id.attr, attr 452 drivers/input/serio/serio.c &dev_attr_extra.attr, attr 468 drivers/input/serio/serio.c &dev_attr_modalias.attr, attr 469 drivers/input/serio/serio.c &dev_attr_description.attr, attr 470 drivers/input/serio/serio.c &dev_attr_drvctl.attr, attr 471 drivers/input/serio/serio.c &dev_attr_bind_mode.attr, attr 472 drivers/input/serio/serio.c &dev_attr_firmware_id.attr, attr 767 drivers/input/serio/serio.c &driver_attr_description.attr, attr 768 drivers/input/serio/serio.c &driver_attr_bind_mode.attr, attr 1035 drivers/input/tablet/aiptek.c static ssize_t show_tabletSize(struct device *dev, struct device_attribute *attr, char *buf) attr 1063 drivers/input/tablet/aiptek.c static ssize_t show_tabletPointerMode(struct device *dev, struct device_attribute *attr, char *buf) attr 1073 drivers/input/tablet/aiptek.c store_tabletPointerMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1100 drivers/input/tablet/aiptek.c static ssize_t show_tabletCoordinateMode(struct device *dev, struct device_attribute *attr, char *buf) attr 1110 drivers/input/tablet/aiptek.c store_tabletCoordinateMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1142 drivers/input/tablet/aiptek.c static ssize_t show_tabletToolMode(struct device *dev, struct device_attribute *attr, char *buf) attr 1152 drivers/input/tablet/aiptek.c store_tabletToolMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1172 drivers/input/tablet/aiptek.c static ssize_t show_tabletXtilt(struct device *dev, struct device_attribute *attr, char *buf) attr 1185 drivers/input/tablet/aiptek.c store_tabletXtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1214 drivers/input/tablet/aiptek.c static ssize_t show_tabletYtilt(struct device *dev, struct device_attribute *attr, char *buf) attr 1227 drivers/input/tablet/aiptek.c store_tabletYtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1256 drivers/input/tablet/aiptek.c static ssize_t show_tabletJitterDelay(struct device *dev, struct device_attribute *attr, char *buf) attr 1264 drivers/input/tablet/aiptek.c store_tabletJitterDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1285 drivers/input/tablet/aiptek.c static ssize_t show_tabletProgrammableDelay(struct device *dev, struct device_attribute *attr, char *buf) attr 1294 drivers/input/tablet/aiptek.c store_tabletProgrammableDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1315 drivers/input/tablet/aiptek.c static ssize_t show_tabletEventsReceived(struct device *dev, struct device_attribute *attr, char *buf) attr 1328 drivers/input/tablet/aiptek.c static ssize_t show_tabletDiagnosticMessage(struct device *dev, struct device_attribute *attr, char *buf) attr 1374 drivers/input/tablet/aiptek.c static ssize_t show_tabletStylusUpper(struct device *dev, struct device_attribute *attr, char *buf) attr 1384 drivers/input/tablet/aiptek.c store_tabletStylusUpper(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1405 drivers/input/tablet/aiptek.c static ssize_t show_tabletStylusLower(struct device *dev, struct device_attribute *attr, char *buf) attr 1415 drivers/input/tablet/aiptek.c store_tabletStylusLower(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1443 drivers/input/tablet/aiptek.c static ssize_t show_tabletMouseLeft(struct device *dev, struct device_attribute *attr, char *buf) attr 1453 drivers/input/tablet/aiptek.c store_tabletMouseLeft(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1473 drivers/input/tablet/aiptek.c static ssize_t show_tabletMouseMiddle(struct device *dev, struct device_attribute *attr, char *buf) attr 1483 drivers/input/tablet/aiptek.c store_tabletMouseMiddle(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1503 drivers/input/tablet/aiptek.c static ssize_t show_tabletMouseRight(struct device *dev, struct device_attribute *attr, char *buf) attr 1513 drivers/input/tablet/aiptek.c store_tabletMouseRight(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1533 drivers/input/tablet/aiptek.c static ssize_t show_tabletWheel(struct device *dev, struct device_attribute *attr, char *buf) attr 1546 drivers/input/tablet/aiptek.c store_tabletWheel(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1566 drivers/input/tablet/aiptek.c static ssize_t show_tabletExecute(struct device *dev, struct device_attribute *attr, char *buf) attr 1576 drivers/input/tablet/aiptek.c store_tabletExecute(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1599 drivers/input/tablet/aiptek.c static ssize_t show_tabletODMCode(struct device *dev, struct device_attribute *attr, char *buf) attr 1612 drivers/input/tablet/aiptek.c static ssize_t show_tabletModelCode(struct device *dev, struct device_attribute *attr, char *buf) attr 1625 drivers/input/tablet/aiptek.c static ssize_t show_firmwareCode(struct device *dev, struct device_attribute *attr, char *buf) attr 1636 drivers/input/tablet/aiptek.c &dev_attr_size.attr, attr 1637 drivers/input/tablet/aiptek.c &dev_attr_pointer_mode.attr, attr 1638 drivers/input/tablet/aiptek.c &dev_attr_coordinate_mode.attr, attr 1639 drivers/input/tablet/aiptek.c &dev_attr_tool_mode.attr, attr 1640 drivers/input/tablet/aiptek.c &dev_attr_xtilt.attr, attr 1641 drivers/input/tablet/aiptek.c &dev_attr_ytilt.attr, attr 1642 drivers/input/tablet/aiptek.c &dev_attr_jitter.attr, attr 1643 drivers/input/tablet/aiptek.c &dev_attr_delay.attr, attr 1644 drivers/input/tablet/aiptek.c &dev_attr_event_count.attr, attr 1645 drivers/input/tablet/aiptek.c &dev_attr_diagnostic.attr, attr 1646 drivers/input/tablet/aiptek.c &dev_attr_odm_code.attr, attr 1647 drivers/input/tablet/aiptek.c &dev_attr_model_code.attr, attr 1648 drivers/input/tablet/aiptek.c &dev_attr_firmware_code.attr, attr 1649 drivers/input/tablet/aiptek.c &dev_attr_stylus_lower.attr, attr 1650 drivers/input/tablet/aiptek.c &dev_attr_stylus_upper.attr, attr 1651 drivers/input/tablet/aiptek.c &dev_attr_mouse_left.attr, attr 1652 drivers/input/tablet/aiptek.c &dev_attr_mouse_middle.attr, attr 1653 drivers/input/tablet/aiptek.c &dev_attr_mouse_right.attr, attr 1654 drivers/input/tablet/aiptek.c &dev_attr_wheel.attr, attr 1655 drivers/input/tablet/aiptek.c &dev_attr_execute.attr, attr 441 drivers/input/touchscreen/ad7877.c name ## _show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 461 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, char *buf) attr 469 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, attr 491 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, char *buf) attr 499 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, attr 521 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, char *buf) attr 529 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, attr 552 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, char *buf) attr 560 drivers/input/touchscreen/ad7877.c struct device_attribute *attr, attr 583 drivers/input/touchscreen/ad7877.c &dev_attr_temp1.attr, attr 584 drivers/input/touchscreen/ad7877.c &dev_attr_temp2.attr, attr 585 drivers/input/touchscreen/ad7877.c &dev_attr_aux1.attr, attr 586 drivers/input/touchscreen/ad7877.c &dev_attr_aux2.attr, attr 587 drivers/input/touchscreen/ad7877.c &dev_attr_aux3.attr, attr 588 drivers/input/touchscreen/ad7877.c &dev_attr_bat1.attr, attr 589 drivers/input/touchscreen/ad7877.c &dev_attr_bat2.attr, attr 590 drivers/input/touchscreen/ad7877.c &dev_attr_disable.attr, attr 591 drivers/input/touchscreen/ad7877.c &dev_attr_dac.attr, attr 592 drivers/input/touchscreen/ad7877.c &dev_attr_gpio3.attr, attr 593 drivers/input/touchscreen/ad7877.c &dev_attr_gpio4.attr, attr 598 drivers/input/touchscreen/ad7877.c struct attribute *attr, int n) attr 600 drivers/input/touchscreen/ad7877.c umode_t mode = attr->mode; attr 602 drivers/input/touchscreen/ad7877.c if (attr == &dev_attr_aux3.attr) { attr 605 drivers/input/touchscreen/ad7877.c } else if (attr == &dev_attr_gpio3.attr) { attr 359 drivers/input/touchscreen/ad7879.c struct device_attribute *attr, char *buf) attr 367 drivers/input/touchscreen/ad7879.c struct device_attribute *attr, attr 386 drivers/input/touchscreen/ad7879.c &dev_attr_disable.attr, attr 425 drivers/input/touchscreen/ads7846.c name ## _show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 480 drivers/input/touchscreen/ads7846.c static umode_t ads7846_is_visible(struct kobject *kobj, struct attribute *attr, attr 491 drivers/input/touchscreen/ads7846.c return attr->mode; attr 495 drivers/input/touchscreen/ads7846.c &dev_attr_temp0.attr, /* 0 */ attr 496 drivers/input/touchscreen/ads7846.c &dev_attr_temp1.attr, /* 1 */ attr 497 drivers/input/touchscreen/ads7846.c &dev_attr_in0_input.attr, /* 2 */ attr 498 drivers/input/touchscreen/ads7846.c &dev_attr_in1_input.attr, /* 3 */ attr 557 drivers/input/touchscreen/ads7846.c struct device_attribute *attr, char *buf) attr 567 drivers/input/touchscreen/ads7846.c struct device_attribute *attr, char *buf) attr 575 drivers/input/touchscreen/ads7846.c struct device_attribute *attr, attr 597 drivers/input/touchscreen/ads7846.c &dev_attr_pen_down.attr, attr 598 drivers/input/touchscreen/ads7846.c &dev_attr_disable.attr, attr 2668 drivers/input/touchscreen/atmel_mxt_ts.c struct device_attribute *attr, char *buf) attr 2678 drivers/input/touchscreen/atmel_mxt_ts.c struct device_attribute *attr, char *buf) attr 2705 drivers/input/touchscreen/atmel_mxt_ts.c struct device_attribute *attr, char *buf) attr 2892 drivers/input/touchscreen/atmel_mxt_ts.c struct device_attribute *attr, attr 2919 drivers/input/touchscreen/atmel_mxt_ts.c &dev_attr_fw_version.attr, attr 2920 drivers/input/touchscreen/atmel_mxt_ts.c &dev_attr_hw_version.attr, attr 2921 drivers/input/touchscreen/atmel_mxt_ts.c &dev_attr_object.attr, attr 2922 drivers/input/touchscreen/atmel_mxt_ts.c &dev_attr_update_fw.attr, attr 368 drivers/input/touchscreen/edt-ft5x06.c struct edt_ft5x06_attribute *attr = attr 370 drivers/input/touchscreen/edt-ft5x06.c u8 *field = (u8 *)tsdata + attr->field_offset; attr 385 drivers/input/touchscreen/edt-ft5x06.c addr = attr->addr_m06; attr 391 drivers/input/touchscreen/edt-ft5x06.c addr = attr->addr_m09; attr 395 drivers/input/touchscreen/edt-ft5x06.c addr = attr->addr_ev; attr 409 drivers/input/touchscreen/edt-ft5x06.c dattr->attr.name, error); attr 419 drivers/input/touchscreen/edt-ft5x06.c dattr->attr.name, val, *field); attr 435 drivers/input/touchscreen/edt-ft5x06.c struct edt_ft5x06_attribute *attr = attr 437 drivers/input/touchscreen/edt-ft5x06.c u8 *field = (u8 *)tsdata + attr->field_offset; attr 453 drivers/input/touchscreen/edt-ft5x06.c if (val < attr->limit_low || val > attr->limit_high) { attr 460 drivers/input/touchscreen/edt-ft5x06.c addr = attr->addr_m06; attr 466 drivers/input/touchscreen/edt-ft5x06.c addr = attr->addr_m09; attr 470 drivers/input/touchscreen/edt-ft5x06.c addr = attr->addr_ev; attr 483 drivers/input/touchscreen/edt-ft5x06.c dattr->attr.name, error); attr 514 drivers/input/touchscreen/edt-ft5x06.c &edt_ft5x06_attr_gain.dattr.attr, attr 515 drivers/input/touchscreen/edt-ft5x06.c &edt_ft5x06_attr_offset.dattr.attr, attr 516 drivers/input/touchscreen/edt-ft5x06.c &edt_ft5x06_attr_offset_x.dattr.attr, attr 517 drivers/input/touchscreen/edt-ft5x06.c &edt_ft5x06_attr_offset_y.dattr.attr, attr 518 drivers/input/touchscreen/edt-ft5x06.c &edt_ft5x06_attr_threshold.dattr.attr, attr 519 drivers/input/touchscreen/edt-ft5x06.c &edt_ft5x06_attr_report_rate.dattr.attr, attr 951 drivers/input/touchscreen/elants_i2c.c struct device_attribute *attr, attr 969 drivers/input/touchscreen/elants_i2c.c struct device_attribute *attr, attr 988 drivers/input/touchscreen/elants_i2c.c struct device_attribute *attr, char *buf) attr 1027 drivers/input/touchscreen/elants_i2c.c struct elants_version_attribute *attr = attr 1029 drivers/input/touchscreen/elants_i2c.c u8 *field = (u8 *)((char *)ts + attr->field_offset); attr 1033 drivers/input/touchscreen/elants_i2c.c if (attr->field_size == 1) { attr 1052 drivers/input/touchscreen/elants_i2c.c &dev_attr_calibrate.attr, attr 1053 drivers/input/touchscreen/elants_i2c.c &dev_attr_update_fw.attr, attr 1054 drivers/input/touchscreen/elants_i2c.c &dev_attr_iap_mode.attr, attr 1056 drivers/input/touchscreen/elants_i2c.c &elants_ver_attr_fw_version.dattr.attr, attr 1057 drivers/input/touchscreen/elants_i2c.c &elants_ver_attr_hw_version.dattr.attr, attr 1058 drivers/input/touchscreen/elants_i2c.c &elants_ver_attr_test_version.dattr.attr, attr 1059 drivers/input/touchscreen/elants_i2c.c &elants_ver_attr_solution_version.dattr.attr, attr 1060 drivers/input/touchscreen/elants_i2c.c &elants_ver_attr_bc_version.dattr.attr, attr 1061 drivers/input/touchscreen/elants_i2c.c &elants_ver_attr_iap_version.dattr.attr, attr 854 drivers/input/touchscreen/hideep.c struct device_attribute *attr, attr 911 drivers/input/touchscreen/hideep.c struct device_attribute *attr, char *buf) attr 926 drivers/input/touchscreen/hideep.c struct device_attribute *attr, char *buf) attr 945 drivers/input/touchscreen/hideep.c &dev_attr_version.attr, attr 946 drivers/input/touchscreen/hideep.c &dev_attr_product_id.attr, attr 947 drivers/input/touchscreen/hideep.c &dev_attr_update_fw.attr, attr 215 drivers/input/touchscreen/ili210x.c struct device_attribute *attr, attr 241 drivers/input/touchscreen/ili210x.c &dev_attr_calibrate.attr, attr 955 drivers/input/touchscreen/iqs5xx.c static ssize_t fw_file_store(struct device *dev, struct device_attribute *attr, attr 1001 drivers/input/touchscreen/iqs5xx.c &dev_attr_fw_file.attr, attr 1288 drivers/input/touchscreen/melfas_mip4.c struct device_attribute *attr, attr 1329 drivers/input/touchscreen/melfas_mip4.c struct device_attribute *attr, attr 1351 drivers/input/touchscreen/melfas_mip4.c struct device_attribute *attr, attr 1376 drivers/input/touchscreen/melfas_mip4.c struct device_attribute *attr, attr 1395 drivers/input/touchscreen/melfas_mip4.c struct device_attribute *attr, attr 1415 drivers/input/touchscreen/melfas_mip4.c &dev_attr_fw_version.attr, attr 1416 drivers/input/touchscreen/melfas_mip4.c &dev_attr_hw_version.attr, attr 1417 drivers/input/touchscreen/melfas_mip4.c &dev_attr_product_id.attr, attr 1418 drivers/input/touchscreen/melfas_mip4.c &dev_attr_ic_name.attr, attr 1419 drivers/input/touchscreen/melfas_mip4.c &dev_attr_update_fw.attr, attr 858 drivers/input/touchscreen/raydium_i2c_ts.c struct device_attribute *attr, char *buf) attr 867 drivers/input/touchscreen/raydium_i2c_ts.c struct device_attribute *attr, char *buf) attr 876 drivers/input/touchscreen/raydium_i2c_ts.c struct device_attribute *attr, attr 888 drivers/input/touchscreen/raydium_i2c_ts.c struct device_attribute *attr, attr 907 drivers/input/touchscreen/raydium_i2c_ts.c struct device_attribute *attr, attr 935 drivers/input/touchscreen/raydium_i2c_ts.c &dev_attr_update_fw.attr, attr 936 drivers/input/touchscreen/raydium_i2c_ts.c &dev_attr_boot_mode.attr, attr 937 drivers/input/touchscreen/raydium_i2c_ts.c &dev_attr_fw_version.attr, attr 938 drivers/input/touchscreen/raydium_i2c_ts.c &dev_attr_hw_version.attr, attr 939 drivers/input/touchscreen/raydium_i2c_ts.c &dev_attr_calibrate.attr, attr 730 drivers/input/touchscreen/rohm_bu21023.c static ssize_t swap_xy_show(struct device *dev, struct device_attribute *attr, attr 739 drivers/input/touchscreen/rohm_bu21023.c static ssize_t swap_xy_store(struct device *dev, struct device_attribute *attr, attr 769 drivers/input/touchscreen/rohm_bu21023.c static ssize_t inv_x_show(struct device *dev, struct device_attribute *attr, attr 778 drivers/input/touchscreen/rohm_bu21023.c static ssize_t inv_x_store(struct device *dev, struct device_attribute *attr, attr 808 drivers/input/touchscreen/rohm_bu21023.c static ssize_t inv_y_show(struct device *dev, struct device_attribute *attr, attr 817 drivers/input/touchscreen/rohm_bu21023.c static ssize_t inv_y_store(struct device *dev, struct device_attribute *attr, attr 852 drivers/input/touchscreen/rohm_bu21023.c &dev_attr_swap_xy.attr, attr 853 drivers/input/touchscreen/rohm_bu21023.c &dev_attr_inv_x.attr, attr 854 drivers/input/touchscreen/rohm_bu21023.c &dev_attr_inv_y.attr, attr 276 drivers/input/touchscreen/s6sy761.c struct device_attribute *attr, char *buf) attr 286 drivers/input/touchscreen/s6sy761.c &dev_attr_devid.attr, attr 407 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, char *buf) attr 415 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, char *buf) attr 423 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, char *buf) attr 431 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, char *buf) attr 439 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, char *buf) attr 447 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, char *buf) attr 462 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, char *buf) attr 470 drivers/input/touchscreen/stmfts.c struct device_attribute *attr, attr 509 drivers/input/touchscreen/stmfts.c &dev_attr_chip_id.attr, attr 510 drivers/input/touchscreen/stmfts.c &dev_attr_chip_version.attr, attr 511 drivers/input/touchscreen/stmfts.c &dev_attr_fw_ver.attr, attr 512 drivers/input/touchscreen/stmfts.c &dev_attr_config_id.attr, attr 513 drivers/input/touchscreen/stmfts.c &dev_attr_config_version.attr, attr 514 drivers/input/touchscreen/stmfts.c &dev_attr_status.attr, attr 515 drivers/input/touchscreen/stmfts.c &dev_attr_hover_enable.attr, attr 228 drivers/input/touchscreen/sun4i-ts.c &dev_attr_temp1_input.attr, attr 229 drivers/input/touchscreen/sun4i-ts.c &dev_attr_temp1_label.attr, attr 256 drivers/input/touchscreen/tsc200x-core.c struct device_attribute *attr, attr 334 drivers/input/touchscreen/tsc200x-core.c &dev_attr_selftest.attr, attr 339 drivers/input/touchscreen/tsc200x-core.c struct attribute *attr, int n) attr 343 drivers/input/touchscreen/tsc200x-core.c umode_t mode = attr->mode; attr 345 drivers/input/touchscreen/tsc200x-core.c if (attr == &dev_attr_selftest.attr) { attr 453 drivers/input/touchscreen/usbtouchscreen.c struct device_attribute *attr, char *output) attr 465 drivers/input/touchscreen/usbtouchscreen.c &dev_attr_firmware_rev.attr, attr 881 drivers/input/touchscreen/wdt87xx_i2c.c struct device_attribute *attr, char *buf) attr 894 drivers/input/touchscreen/wdt87xx_i2c.c struct device_attribute *attr, char *buf) attr 903 drivers/input/touchscreen/wdt87xx_i2c.c struct device_attribute *attr, char *buf) attr 912 drivers/input/touchscreen/wdt87xx_i2c.c struct device_attribute *attr, attr 923 drivers/input/touchscreen/wdt87xx_i2c.c struct device_attribute *attr, attr 940 drivers/input/touchscreen/wdt87xx_i2c.c &dev_attr_config_csum.attr, attr 941 drivers/input/touchscreen/wdt87xx_i2c.c &dev_attr_fw_version.attr, attr 942 drivers/input/touchscreen/wdt87xx_i2c.c &dev_attr_plat_id.attr, attr 943 drivers/input/touchscreen/wdt87xx_i2c.c &dev_attr_update_config.attr, attr 944 drivers/input/touchscreen/wdt87xx_i2c.c &dev_attr_update_fw.attr, attr 1700 drivers/iommu/amd_iommu_init.c struct device_attribute *attr, attr 1709 drivers/iommu/amd_iommu_init.c struct device_attribute *attr, attr 1718 drivers/iommu/amd_iommu_init.c &dev_attr_cap.attr, attr 1719 drivers/iommu/amd_iommu_init.c &dev_attr_features.attr, attr 2622 drivers/iommu/arm-smmu-v3.c enum iommu_attr attr, void *data) attr 2628 drivers/iommu/arm-smmu-v3.c switch (attr) { attr 2637 drivers/iommu/arm-smmu-v3.c switch (attr) { attr 2651 drivers/iommu/arm-smmu-v3.c enum iommu_attr attr, void *data) attr 2660 drivers/iommu/arm-smmu-v3.c switch (attr) { attr 2677 drivers/iommu/arm-smmu-v3.c switch(attr) { attr 1444 drivers/iommu/arm-smmu.c enum iommu_attr attr, void *data) attr 1450 drivers/iommu/arm-smmu.c switch (attr) { attr 1459 drivers/iommu/arm-smmu.c switch (attr) { attr 1473 drivers/iommu/arm-smmu.c enum iommu_attr attr, void *data) attr 1482 drivers/iommu/arm-smmu.c switch (attr) { attr 1499 drivers/iommu/arm-smmu.c switch (attr) { attr 307 drivers/iommu/dma-iommu.c int attr; attr 344 drivers/iommu/dma-iommu.c DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE, &attr) && attr) { attr 4762 drivers/iommu/intel-iommu.c struct device_attribute *attr, attr 4773 drivers/iommu/intel-iommu.c struct device_attribute *attr, attr 4782 drivers/iommu/intel-iommu.c struct device_attribute *attr, attr 4791 drivers/iommu/intel-iommu.c struct device_attribute *attr, attr 4800 drivers/iommu/intel-iommu.c struct device_attribute *attr, attr 4809 drivers/iommu/intel-iommu.c struct device_attribute *attr, attr 4819 drivers/iommu/intel-iommu.c &dev_attr_version.attr, attr 4820 drivers/iommu/intel-iommu.c &dev_attr_address.attr, attr 4821 drivers/iommu/intel-iommu.c &dev_attr_cap.attr, attr 4822 drivers/iommu/intel-iommu.c &dev_attr_ecap.attr, attr 4823 drivers/iommu/intel-iommu.c &dev_attr_domains_supported.attr, attr 4824 drivers/iommu/intel-iommu.c &dev_attr_domains_used.attr, attr 143 drivers/iommu/io-pgtable-arm-v7s.c #define ARM_V7S_NMRR_IR(n, attr) (((attr) & 0x3) << ((n) * 2)) attr 144 drivers/iommu/io-pgtable-arm-v7s.c #define ARM_V7S_NMRR_OR(n, attr) (((attr) & 0x3) << ((n) * 2 + 16)) attr 148 drivers/iommu/io-pgtable-arm-v7s.c #define ARM_V7S_TTBR_ORGN_ATTR(attr) (((attr) & 0x3) << 3) attr 149 drivers/iommu/io-pgtable-arm-v7s.c #define ARM_V7S_TTBR_IRGN_ATTR(attr) \ attr 150 drivers/iommu/io-pgtable-arm-v7s.c ((((attr) & 0x1) << 6) | (((attr) & 0x2) >> 1)) attr 350 drivers/iommu/io-pgtable-arm-v7s.c arm_v7s_iopte attr = pte >> ARM_V7S_ATTR_SHIFT(lvl); attr 352 drivers/iommu/io-pgtable-arm-v7s.c if (!(attr & ARM_V7S_PTE_AP_RDONLY)) attr 354 drivers/iommu/io-pgtable-arm-v7s.c if (!(attr & ARM_V7S_PTE_AP_UNPRIV)) attr 356 drivers/iommu/io-pgtable-arm-v7s.c if ((attr & (ARM_V7S_TEX_MASK << ARM_V7S_TEX_SHIFT)) == 0) attr 55 drivers/iommu/iommu.c struct attribute attr; attr 86 drivers/iommu/iommu.c container_of(_attr, struct iommu_group_attribute, attr) attr 239 drivers/iommu/iommu.c struct iommu_group_attribute *attr = to_iommu_group_attr(__attr); attr 243 drivers/iommu/iommu.c if (attr->show) attr 244 drivers/iommu/iommu.c ret = attr->show(group, buf); attr 252 drivers/iommu/iommu.c struct iommu_group_attribute *attr = to_iommu_group_attr(__attr); attr 256 drivers/iommu/iommu.c if (attr->store) attr 257 drivers/iommu/iommu.c ret = attr->store(group, buf, count); attr 267 drivers/iommu/iommu.c struct iommu_group_attribute *attr) attr 269 drivers/iommu/iommu.c return sysfs_create_file(&group->kobj, &attr->attr); attr 273 drivers/iommu/iommu.c struct iommu_group_attribute *attr) attr 275 drivers/iommu/iommu.c sysfs_remove_file(&group->kobj, &attr->attr); attr 1395 drivers/iommu/iommu.c int attr = 1; attr 1398 drivers/iommu/iommu.c &attr); attr 2112 drivers/iommu/iommu.c enum iommu_attr attr, void *data) attr 2118 drivers/iommu/iommu.c switch (attr) { attr 2132 drivers/iommu/iommu.c ret = domain->ops->domain_get_attr(domain, attr, data); attr 2140 drivers/iommu/iommu.c enum iommu_attr attr, void *data) attr 2144 drivers/iommu/iommu.c switch (attr) { attr 2149 drivers/iommu/iommu.c ret = domain->ops->domain_set_attr(domain, attr, data); attr 233 drivers/iommu/omap-iommu.c u32 attr; attr 235 drivers/iommu/omap-iommu.c attr = e->mixed << 5; attr 236 drivers/iommu/omap-iommu.c attr |= e->endian; attr 237 drivers/iommu/omap-iommu.c attr |= e->elsz >> 3; attr 238 drivers/iommu/omap-iommu.c attr <<= (((e->pgsz == MMU_CAM_PGSZ_4K) || attr 240 drivers/iommu/omap-iommu.c return attr; attr 57 drivers/iommu/tegra-smmu.c u32 attr; attr 94 drivers/iommu/tegra-smmu.c #define SMMU_PTB_DATA_VALUE(dma, attr) ((dma) >> 12 | (attr)) attr 96 drivers/iommu/tegra-smmu.c #define SMMU_MK_PDE(dma, attr) ((dma) >> SMMU_PTE_SHIFT | (attr)) attr 288 drivers/iommu/tegra-smmu.c as->attr = SMMU_PD_READABLE | SMMU_PD_WRITABLE | SMMU_PD_NONSECURE; attr 433 drivers/iommu/tegra-smmu.c value = SMMU_PTB_DATA_VALUE(as->pd_dma, as->attr); attr 104 drivers/ipack/ipack.c field##_show(struct device *dev, struct device_attribute *attr, \ attr 112 drivers/ipack/ipack.c struct device_attribute *attr, char *buf) attr 142 drivers/ipack/ipack.c id_vendor_show(struct device *dev, struct device_attribute *attr, char *buf) attr 156 drivers/ipack/ipack.c id_device_show(struct device *dev, struct device_attribute *attr, char *buf) attr 169 drivers/ipack/ipack.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 187 drivers/ipack/ipack.c &dev_attr_id.attr, attr 188 drivers/ipack/ipack.c &dev_attr_id_device.attr, attr 189 drivers/ipack/ipack.c &dev_attr_id_format.attr, attr 190 drivers/ipack/ipack.c &dev_attr_id_vendor.attr, attr 191 drivers/ipack/ipack.c &dev_attr_modalias.attr, attr 1918 drivers/isdn/hardware/mISDN/hfcsusb.c probe_alt_setting, vend_idx, cfg_used, *vcf, attr, cfg_found, attr 1974 drivers/isdn/hardware/mISDN/hfcsusb.c attr = ep->desc.bmAttributes; attr 1979 drivers/isdn/hardware/mISDN/hfcsusb.c if (attr == USB_ENDPOINT_XFER_INT attr 1982 drivers/isdn/hardware/mISDN/hfcsusb.c if (attr == USB_ENDPOINT_XFER_BULK attr 1985 drivers/isdn/hardware/mISDN/hfcsusb.c if (attr == USB_ENDPOINT_XFER_ISOC attr 1989 drivers/isdn/hardware/mISDN/hfcsusb.c if (attr == USB_ENDPOINT_XFER_INT && attr 32 drivers/isdn/mISDN/core.c struct device_attribute *attr, char *buf) attr 43 drivers/isdn/mISDN/core.c struct device_attribute *attr, char *buf) attr 54 drivers/isdn/mISDN/core.c struct device_attribute *attr, char *buf) attr 65 drivers/isdn/mISDN/core.c struct device_attribute *attr, char *buf) attr 76 drivers/isdn/mISDN/core.c struct device_attribute *attr, char *buf) attr 87 drivers/isdn/mISDN/core.c struct device_attribute *attr, char *buf) attr 95 drivers/isdn/mISDN/core.c static ssize_t name_set(struct device *dev, struct device_attribute *attr, attr 117 drivers/isdn/mISDN/core.c struct device_attribute *attr, char *buf) attr 131 drivers/isdn/mISDN/core.c &dev_attr_id.attr, attr 132 drivers/isdn/mISDN/core.c &dev_attr_d_protocols.attr, attr 133 drivers/isdn/mISDN/core.c &dev_attr_b_protocols.attr, attr 134 drivers/isdn/mISDN/core.c &dev_attr_protocol.attr, attr 135 drivers/isdn/mISDN/core.c &dev_attr_channelmap.attr, attr 136 drivers/isdn/mISDN/core.c &dev_attr_nrbchan.attr, attr 137 drivers/isdn/mISDN/core.c &dev_attr_name.attr, attr 40 drivers/isdn/mISDN/dsp_pipeline.c attr_show_args(struct device *dev, struct device_attribute *attr, char *buf) attr 38 drivers/leds/led-class-flash.c struct device_attribute *attr, const char *buf, size_t size) attr 67 drivers/leds/led-class-flash.c struct device_attribute *attr, char *buf) attr 80 drivers/leds/led-class-flash.c struct device_attribute *attr, char *buf) attr 90 drivers/leds/led-class-flash.c struct device_attribute *attr, const char *buf, size_t size) attr 123 drivers/leds/led-class-flash.c struct device_attribute *attr, char *buf) attr 140 drivers/leds/led-class-flash.c struct device_attribute *attr, const char *buf, size_t size) attr 169 drivers/leds/led-class-flash.c struct device_attribute *attr, char *buf) attr 179 drivers/leds/led-class-flash.c struct device_attribute *attr, char *buf) attr 189 drivers/leds/led-class-flash.c struct device_attribute *attr, char *buf) attr 217 drivers/leds/led-class-flash.c &dev_attr_flash_strobe.attr, attr 222 drivers/leds/led-class-flash.c &dev_attr_flash_timeout.attr, attr 223 drivers/leds/led-class-flash.c &dev_attr_max_flash_timeout.attr, attr 228 drivers/leds/led-class-flash.c &dev_attr_flash_brightness.attr, attr 229 drivers/leds/led-class-flash.c &dev_attr_max_flash_brightness.attr, attr 234 drivers/leds/led-class-flash.c &dev_attr_flash_fault.attr, attr 27 drivers/leds/led-class.c struct device_attribute *attr, char *buf) attr 38 drivers/leds/led-class.c struct device_attribute *attr, const char *buf, size_t size) attr 68 drivers/leds/led-class.c struct device_attribute *attr, char *buf) attr 79 drivers/leds/led-class.c &dev_attr_trigger.attr, attr 88 drivers/leds/led-class.c &dev_attr_brightness.attr, attr 89 drivers/leds/led-class.c &dev_attr_max_brightness.attr, attr 107 drivers/leds/led-class.c struct device_attribute *attr, char *buf) attr 29 drivers/leds/led-triggers.c ssize_t led_trigger_store(struct device *dev, struct device_attribute *attr, attr 69 drivers/leds/led-triggers.c ssize_t led_trigger_show(struct device *dev, struct device_attribute *attr, attr 319 drivers/leds/leds-bd2802.c struct device_attribute *attr, const char *buf, size_t count) \ attr 335 drivers/leds/leds-bd2802.c .attr = {.name = reg_name, .mode = 0644}, \ attr 396 drivers/leds/leds-bd2802.c bd2802_addr_attributes[i]->attr.name); attr 429 drivers/leds/leds-bd2802.c struct device_attribute *attr, char *buf) attr 445 drivers/leds/leds-bd2802.c struct device_attribute *attr, const char *buf, size_t count) attr 463 drivers/leds/leds-bd2802.c .attr = { attr 473 drivers/leds/leds-bd2802.c struct device_attribute *attr, char *buf) \ attr 483 drivers/leds/leds-bd2802.c struct device_attribute *attr, const char *buf, size_t count) \ attr 499 drivers/leds/leds-bd2802.c .attr = { \ attr 701 drivers/leds/leds-bd2802.c bd2802_attributes[i]->attr.name); attr 195 drivers/leds/leds-blinkm.c static ssize_t show_red(struct device *dev, struct device_attribute *attr, attr 201 drivers/leds/leds-blinkm.c static ssize_t store_red(struct device *dev, struct device_attribute *attr, attr 214 drivers/leds/leds-blinkm.c static ssize_t show_green(struct device *dev, struct device_attribute *attr, attr 220 drivers/leds/leds-blinkm.c static ssize_t store_green(struct device *dev, struct device_attribute *attr, attr 234 drivers/leds/leds-blinkm.c static ssize_t show_blue(struct device *dev, struct device_attribute *attr, attr 240 drivers/leds/leds-blinkm.c static ssize_t store_blue(struct device *dev, struct device_attribute *attr, attr 253 drivers/leds/leds-blinkm.c static ssize_t show_test(struct device *dev, struct device_attribute *attr, attr 260 drivers/leds/leds-blinkm.c static ssize_t store_test(struct device *dev, struct device_attribute *attr, attr 281 drivers/leds/leds-blinkm.c &dev_attr_red.attr, attr 282 drivers/leds/leds-blinkm.c &dev_attr_green.attr, attr 283 drivers/leds/leds-blinkm.c &dev_attr_blue.attr, attr 284 drivers/leds/leds-blinkm.c &dev_attr_test.attr, attr 350 drivers/leds/leds-lm3530.c struct device_attribute *attr, char *buf) attr 369 drivers/leds/leds-lm3530.c *attr, const char *buf, size_t size) attr 403 drivers/leds/leds-lm3530.c &dev_attr_mode.attr, attr 312 drivers/leds/leds-lm3533.c struct device_attribute *attr, char *buf) attr 333 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 351 drivers/leds/leds-lm3533.c struct device_attribute *attr, char *buf) attr 353 drivers/leds/leds-lm3533.c return show_risefalltime(dev, attr, buf, attr 358 drivers/leds/leds-lm3533.c struct device_attribute *attr, char *buf) attr 360 drivers/leds/leds-lm3533.c return show_risefalltime(dev, attr, buf, attr 365 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 386 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 389 drivers/leds/leds-lm3533.c return store_risefalltime(dev, attr, buf, len, attr 394 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 397 drivers/leds/leds-lm3533.c return store_risefalltime(dev, attr, buf, len, attr 402 drivers/leds/leds-lm3533.c struct device_attribute *attr, char *buf) attr 422 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 452 drivers/leds/leds-lm3533.c struct device_attribute *attr, char *buf) attr 472 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 502 drivers/leds/leds-lm3533.c struct device_attribute *attr, char *buf) attr 525 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 555 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 571 drivers/leds/leds-lm3533.c struct device_attribute *attr, attr 598 drivers/leds/leds-lm3533.c &dev_attr_als_channel.attr, attr 599 drivers/leds/leds-lm3533.c &dev_attr_als_en.attr, attr 600 drivers/leds/leds-lm3533.c &dev_attr_falltime.attr, attr 601 drivers/leds/leds-lm3533.c &dev_attr_id.attr, attr 602 drivers/leds/leds-lm3533.c &dev_attr_linear.attr, attr 603 drivers/leds/leds-lm3533.c &dev_attr_pwm.attr, attr 604 drivers/leds/leds-lm3533.c &dev_attr_risetime.attr, attr 609 drivers/leds/leds-lm3533.c struct attribute *attr, int n) attr 614 drivers/leds/leds-lm3533.c umode_t mode = attr->mode; attr 616 drivers/leds/leds-lm3533.c if (attr == &dev_attr_als_channel.attr || attr 617 drivers/leds/leds-lm3533.c attr == &dev_attr_als_en.attr) { attr 353 drivers/leds/leds-lm355x.c struct device_attribute *attr, attr 387 drivers/leds/leds-lm355x.c &dev_attr_pattern.attr, attr 170 drivers/leds/leds-lm3642.c struct device_attribute *attr, attr 221 drivers/leds/leds-lm3642.c struct device_attribute *attr, attr 290 drivers/leds/leds-lm3642.c &dev_attr_strobe_pin.attr, attr 296 drivers/leds/leds-lm3642.c &dev_attr_torch_pin.attr, attr 366 drivers/leds/leds-lp5521.c struct device_attribute *attr, attr 388 drivers/leds/leds-lp5521.c struct device_attribute *attr, attr 420 drivers/leds/leds-lp5521.c struct device_attribute *attr, attr 442 drivers/leds/leds-lp5521.c struct device_attribute *attr, attr 466 drivers/leds/leds-lp5521.c &dev_attr_engine1_mode.attr, attr 467 drivers/leds/leds-lp5521.c &dev_attr_engine2_mode.attr, attr 468 drivers/leds/leds-lp5521.c &dev_attr_engine3_mode.attr, attr 469 drivers/leds/leds-lp5521.c &dev_attr_engine1_load.attr, attr 470 drivers/leds/leds-lp5521.c &dev_attr_engine2_load.attr, attr 471 drivers/leds/leds-lp5521.c &dev_attr_engine3_load.attr, attr 472 drivers/leds/leds-lp5521.c &dev_attr_selftest.attr, attr 389 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 411 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 478 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 522 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 555 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 577 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 665 drivers/leds/leds-lp5523.c struct device_attribute *attr, \ attr 668 drivers/leds/leds-lp5523.c return show_master_fader(dev, attr, buf, nr); \ attr 673 drivers/leds/leds-lp5523.c struct device_attribute *attr, \ attr 676 drivers/leds/leds-lp5523.c return store_master_fader(dev, attr, buf, len, nr); \ attr 680 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 702 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 731 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 762 drivers/leds/leds-lp5523.c struct device_attribute *attr, attr 826 drivers/leds/leds-lp5523.c &dev_attr_engine1_mode.attr, attr 827 drivers/leds/leds-lp5523.c &dev_attr_engine2_mode.attr, attr 828 drivers/leds/leds-lp5523.c &dev_attr_engine3_mode.attr, attr 829 drivers/leds/leds-lp5523.c &dev_attr_engine1_load.attr, attr 830 drivers/leds/leds-lp5523.c &dev_attr_engine2_load.attr, attr 831 drivers/leds/leds-lp5523.c &dev_attr_engine3_load.attr, attr 832 drivers/leds/leds-lp5523.c &dev_attr_engine1_leds.attr, attr 833 drivers/leds/leds-lp5523.c &dev_attr_engine2_leds.attr, attr 834 drivers/leds/leds-lp5523.c &dev_attr_engine3_leds.attr, attr 835 drivers/leds/leds-lp5523.c &dev_attr_selftest.attr, attr 836 drivers/leds/leds-lp5523.c &dev_attr_master_fader1.attr, attr 837 drivers/leds/leds-lp5523.c &dev_attr_master_fader2.attr, attr 838 drivers/leds/leds-lp5523.c &dev_attr_master_fader3.attr, attr 839 drivers/leds/leds-lp5523.c &dev_attr_master_fader_leds.attr, attr 406 drivers/leds/leds-lp5562.c struct device_attribute *attr, attr 434 drivers/leds/leds-lp5562.c struct device_attribute *attr, attr 486 drivers/leds/leds-lp5562.c &dev_attr_led_pattern.attr, attr 487 drivers/leds/leds-lp5562.c &dev_attr_engine_mux.attr, attr 82 drivers/leds/leds-lp55xx-common.c struct device_attribute *attr, attr 91 drivers/leds/leds-lp55xx-common.c struct device_attribute *attr, attr 115 drivers/leds/leds-lp55xx-common.c struct device_attribute *attr, attr 128 drivers/leds/leds-lp55xx-common.c &dev_attr_led_current.attr, attr 129 drivers/leds/leds-lp55xx-common.c &dev_attr_max_current.attr, attr 229 drivers/leds/leds-lp55xx-common.c struct device_attribute *attr, attr 239 drivers/leds/leds-lp55xx-common.c struct device_attribute *attr, attr 281 drivers/leds/leds-lp55xx-common.c struct device_attribute *attr, attr 310 drivers/leds/leds-lp55xx-common.c &dev_attr_select_engine.attr, attr 311 drivers/leds/leds-lp55xx-common.c &dev_attr_run_engine.attr, attr 38 drivers/leds/leds-lp55xx-common.h struct device_attribute *attr, \ attr 41 drivers/leds/leds-lp55xx-common.h return show_engine_mode(dev, attr, buf, nr); \ attr 46 drivers/leds/leds-lp55xx-common.h struct device_attribute *attr, \ attr 49 drivers/leds/leds-lp55xx-common.h return store_engine_mode(dev, attr, buf, len, nr); \ attr 54 drivers/leds/leds-lp55xx-common.h struct device_attribute *attr, \ attr 57 drivers/leds/leds-lp55xx-common.h return show_engine_leds(dev, attr, buf, nr); \ attr 62 drivers/leds/leds-lp55xx-common.h struct device_attribute *attr, \ attr 65 drivers/leds/leds-lp55xx-common.h return store_engine_leds(dev, attr, buf, len, nr); \ attr 70 drivers/leds/leds-lp55xx-common.h struct device_attribute *attr, \ attr 73 drivers/leds/leds-lp55xx-common.h return store_engine_load(dev, attr, buf, len, nr); \ attr 164 drivers/leds/leds-max8997.c struct device_attribute *attr, char *buf) attr 197 drivers/leds/leds-max8997.c struct device_attribute *attr, attr 228 drivers/leds/leds-max8997.c &dev_attr_mode.attr, attr 242 drivers/leds/leds-netxbig.c struct device_attribute *attr, attr 293 drivers/leds/leds-netxbig.c struct device_attribute *attr, char *buf) attr 305 drivers/leds/leds-netxbig.c &dev_attr_sata.attr, attr 122 drivers/leds/leds-ns2.c struct device_attribute *attr, attr 155 drivers/leds/leds-ns2.c struct device_attribute *attr, char *buf) attr 167 drivers/leds/leds-ns2.c &dev_attr_sata.attr, attr 445 drivers/leds/leds-ss4200.c struct device_attribute *attr, char *buf) attr 455 drivers/leds/leds-ss4200.c struct device_attribute *attr, attr 474 drivers/leds/leds-ss4200.c &dev_attr_blink.attr, attr 159 drivers/leds/leds-wm831x-status.c struct device_attribute *attr, char *buf) attr 182 drivers/leds/leds-wm831x-status.c struct device_attribute *attr, attr 203 drivers/leds/leds-wm831x-status.c &dev_attr_src.attr, attr 150 drivers/leds/trigger/ledtrig-activity.c struct device_attribute *attr, char *buf) attr 158 drivers/leds/trigger/ledtrig-activity.c struct device_attribute *attr, attr 177 drivers/leds/trigger/ledtrig-activity.c &dev_attr_invert.attr, attr 61 drivers/leds/trigger/ledtrig-backlight.c struct device_attribute *attr, char *buf) attr 69 drivers/leds/trigger/ledtrig-backlight.c struct device_attribute *attr, const char *buf, size_t num) attr 96 drivers/leds/trigger/ledtrig-backlight.c &dev_attr_inverted.attr, attr 49 drivers/leds/trigger/ledtrig-gpio.c struct device_attribute *attr, char *buf) attr 57 drivers/leds/trigger/ledtrig-gpio.c struct device_attribute *attr, const char *buf, size_t n) attr 77 drivers/leds/trigger/ledtrig-gpio.c struct device_attribute *attr, char *buf) attr 85 drivers/leds/trigger/ledtrig-gpio.c struct device_attribute *attr, const char *buf, size_t n) attr 110 drivers/leds/trigger/ledtrig-gpio.c struct device_attribute *attr, char *buf) attr 118 drivers/leds/trigger/ledtrig-gpio.c struct device_attribute *attr, const char *buf, size_t n) attr 159 drivers/leds/trigger/ledtrig-gpio.c &dev_attr_desired_brightness.attr, attr 160 drivers/leds/trigger/ledtrig-gpio.c &dev_attr_inverted.attr, attr 161 drivers/leds/trigger/ledtrig-gpio.c &dev_attr_gpio.attr, attr 94 drivers/leds/trigger/ledtrig-heartbeat.c struct device_attribute *attr, char *buf) attr 103 drivers/leds/trigger/ledtrig-heartbeat.c struct device_attribute *attr, const char *buf, size_t size) attr 122 drivers/leds/trigger/ledtrig-heartbeat.c &dev_attr_invert.attr, attr 95 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, char *buf) attr 108 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, const char *buf, attr 150 drivers/leds/trigger/ledtrig-netdev.c enum netdev_led_attr attr) attr 155 drivers/leds/trigger/ledtrig-netdev.c switch (attr) { attr 173 drivers/leds/trigger/ledtrig-netdev.c size_t size, enum netdev_led_attr attr) attr 184 drivers/leds/trigger/ledtrig-netdev.c switch (attr) { attr 211 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, char *buf) attr 217 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, const char *buf, size_t size) attr 225 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, char *buf) attr 231 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, const char *buf, size_t size) attr 239 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, char *buf) attr 245 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, const char *buf, size_t size) attr 253 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, char *buf) attr 262 drivers/leds/trigger/ledtrig-netdev.c struct device_attribute *attr, const char *buf, attr 287 drivers/leds/trigger/ledtrig-netdev.c &dev_attr_device_name.attr, attr 288 drivers/leds/trigger/ledtrig-netdev.c &dev_attr_link.attr, attr 289 drivers/leds/trigger/ledtrig-netdev.c &dev_attr_rx.attr, attr 290 drivers/leds/trigger/ledtrig-netdev.c &dev_attr_tx.attr, attr 291 drivers/leds/trigger/ledtrig-netdev.c &dev_attr_interval.attr, attr 26 drivers/leds/trigger/ledtrig-oneshot.c struct device_attribute *attr, const char *buf, size_t size) attr 39 drivers/leds/trigger/ledtrig-oneshot.c struct device_attribute *attr, char *buf) attr 47 drivers/leds/trigger/ledtrig-oneshot.c struct device_attribute *attr, const char *buf, size_t size) attr 69 drivers/leds/trigger/ledtrig-oneshot.c struct device_attribute *attr, char *buf) attr 77 drivers/leds/trigger/ledtrig-oneshot.c struct device_attribute *attr, const char *buf, size_t size) attr 93 drivers/leds/trigger/ledtrig-oneshot.c struct device_attribute *attr, char *buf) attr 101 drivers/leds/trigger/ledtrig-oneshot.c struct device_attribute *attr, const char *buf, size_t size) attr 122 drivers/leds/trigger/ledtrig-oneshot.c &dev_attr_delay_on.attr, attr 123 drivers/leds/trigger/ledtrig-oneshot.c &dev_attr_delay_off.attr, attr 124 drivers/leds/trigger/ledtrig-oneshot.c &dev_attr_invert.attr, attr 125 drivers/leds/trigger/ledtrig-oneshot.c &dev_attr_shot.attr, attr 145 drivers/leds/trigger/ledtrig-pattern.c static ssize_t repeat_show(struct device *dev, struct device_attribute *attr, attr 161 drivers/leds/trigger/ledtrig-pattern.c static ssize_t repeat_store(struct device *dev, struct device_attribute *attr, attr 292 drivers/leds/trigger/ledtrig-pattern.c static ssize_t pattern_show(struct device *dev, struct device_attribute *attr, attr 301 drivers/leds/trigger/ledtrig-pattern.c static ssize_t pattern_store(struct device *dev, struct device_attribute *attr, attr 312 drivers/leds/trigger/ledtrig-pattern.c struct device_attribute *attr, char *buf) attr 321 drivers/leds/trigger/ledtrig-pattern.c struct device_attribute *attr, attr 332 drivers/leds/trigger/ledtrig-pattern.c struct attribute *attr, int index) attr 337 drivers/leds/trigger/ledtrig-pattern.c if (attr == &dev_attr_repeat.attr || attr == &dev_attr_pattern.attr) attr 338 drivers/leds/trigger/ledtrig-pattern.c return attr->mode; attr 339 drivers/leds/trigger/ledtrig-pattern.c else if (attr == &dev_attr_hw_pattern.attr && led_cdev->pattern_set) attr 340 drivers/leds/trigger/ledtrig-pattern.c return attr->mode; attr 346 drivers/leds/trigger/ledtrig-pattern.c &dev_attr_pattern.attr, attr 347 drivers/leds/trigger/ledtrig-pattern.c &dev_attr_hw_pattern.attr, attr 348 drivers/leds/trigger/ledtrig-pattern.c &dev_attr_repeat.attr, attr 19 drivers/leds/trigger/ledtrig-timer.c struct device_attribute *attr, char *buf) attr 27 drivers/leds/trigger/ledtrig-timer.c struct device_attribute *attr, const char *buf, size_t size) attr 44 drivers/leds/trigger/ledtrig-timer.c struct device_attribute *attr, char *buf) attr 52 drivers/leds/trigger/ledtrig-timer.c struct device_attribute *attr, const char *buf, size_t size) attr 72 drivers/leds/trigger/ledtrig-timer.c &dev_attr_delay_on.attr, attr 73 drivers/leds/trigger/ledtrig-timer.c &dev_attr_delay_off.attr, attr 43 drivers/leds/trigger/ledtrig-transient.c struct device_attribute *attr, char *buf) attr 52 drivers/leds/trigger/ledtrig-transient.c struct device_attribute *attr, const char *buf, size_t size) attr 96 drivers/leds/trigger/ledtrig-transient.c struct device_attribute *attr, char *buf) attr 104 drivers/leds/trigger/ledtrig-transient.c struct device_attribute *attr, const char *buf, size_t size) attr 120 drivers/leds/trigger/ledtrig-transient.c struct device_attribute *attr, char *buf) attr 131 drivers/leds/trigger/ledtrig-transient.c struct device_attribute *attr, const char *buf, size_t size) attr 156 drivers/leds/trigger/ledtrig-transient.c &dev_attr_activate.attr, attr 157 drivers/leds/trigger/ledtrig-transient.c &dev_attr_duration.attr, attr 158 drivers/leds/trigger/ledtrig-transient.c &dev_attr_state.attr, attr 641 drivers/lightnvm/pblk-sysfs.c static ssize_t pblk_sysfs_show(struct kobject *kobj, struct attribute *attr, attr 646 drivers/lightnvm/pblk-sysfs.c if (strcmp(attr->name, "rate_limiter") == 0) attr 648 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "write_luns") == 0) attr 650 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "gc_state") == 0) attr 652 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "errors") == 0) attr 654 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "write_buffer") == 0) attr 656 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "ppa_format") == 0) attr 658 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "lines") == 0) attr 660 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "lines_info") == 0) attr 662 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "max_sec_per_write") == 0) attr 664 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "write_amp_mileage") == 0) attr 666 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "write_amp_trip") == 0) attr 668 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "padding_dist") == 0) attr 671 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "stats") == 0) attr 677 drivers/lightnvm/pblk-sysfs.c static ssize_t pblk_sysfs_store(struct kobject *kobj, struct attribute *attr, attr 682 drivers/lightnvm/pblk-sysfs.c if (strcmp(attr->name, "gc_force") == 0) attr 684 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "max_sec_per_write") == 0) attr 686 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "write_amp_trip") == 0) attr 688 drivers/lightnvm/pblk-sysfs.c else if (strcmp(attr->name, "padding_dist") == 0) attr 45 drivers/macintosh/ams/ams-core.c struct device_attribute *attr, char *buf) attr 107 drivers/macintosh/ams/ams-input.c struct device_attribute *attr, char *buf) attr 113 drivers/macintosh/ams/ams-input.c struct device_attribute *attr, const char *buf, size_t count) attr 7 drivers/macintosh/macio_sysfs.c compatible_show (struct device *dev, struct device_attribute *attr, char *buf) attr 33 drivers/macintosh/macio_sysfs.c static ssize_t modalias_show (struct device *dev, struct device_attribute *attr, attr 40 drivers/macintosh/macio_sysfs.c struct device_attribute *attr, char *buf) attr 51 drivers/macintosh/macio_sysfs.c struct device_attribute *attr, char *buf) attr 58 drivers/macintosh/macio_sysfs.c struct device_attribute *attr, char *buf) attr 65 drivers/macintosh/macio_sysfs.c &dev_attr_name.attr, attr 66 drivers/macintosh/macio_sysfs.c &dev_attr_type.attr, attr 67 drivers/macintosh/macio_sysfs.c &dev_attr_compatible.attr, attr 68 drivers/macintosh/macio_sysfs.c &dev_attr_modalias.attr, attr 69 drivers/macintosh/macio_sysfs.c &dev_attr_devspec.attr, attr 321 drivers/macintosh/therm_adt746x.c static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ attr 328 drivers/macintosh/therm_adt746x.c static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ attr 334 drivers/macintosh/therm_adt746x.c static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ attr 340 drivers/macintosh/therm_adt746x.c static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ attr 350 drivers/macintosh/therm_adt746x.c static ssize_t store_##name(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) \ attr 364 drivers/macintosh/therm_adt746x.c static ssize_t store_##name(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) \ attr 99 drivers/macintosh/therm_windtunnel.c show_cpu_temperature( struct device *dev, struct device_attribute *attr, char *buf ) attr 105 drivers/macintosh/therm_windtunnel.c show_case_temperature( struct device *dev, struct device_attribute *attr, char *buf ) attr 42 drivers/macintosh/windfarm.h struct device_attribute attr; attr 110 drivers/macintosh/windfarm.h struct device_attribute attr; attr 162 drivers/macintosh/windfarm_core.c struct device_attribute *attr, char *buf) attr 164 drivers/macintosh/windfarm_core.c struct wf_control *ctrl = container_of(attr, struct wf_control, attr); attr 190 drivers/macintosh/windfarm_core.c struct device_attribute *attr, attr 193 drivers/macintosh/windfarm_core.c struct wf_control *ctrl = container_of(attr, struct wf_control, attr); attr 225 drivers/macintosh/windfarm_core.c sysfs_attr_init(&new_ct->attr.attr); attr 226 drivers/macintosh/windfarm_core.c new_ct->attr.attr.name = new_ct->name; attr 227 drivers/macintosh/windfarm_core.c new_ct->attr.attr.mode = 0644; attr 228 drivers/macintosh/windfarm_core.c new_ct->attr.show = wf_show_control; attr 229 drivers/macintosh/windfarm_core.c new_ct->attr.store = wf_store_control; attr 230 drivers/macintosh/windfarm_core.c if (device_create_file(&wf_platform_device.dev, &new_ct->attr)) attr 292 drivers/macintosh/windfarm_core.c struct device_attribute *attr, char *buf) attr 294 drivers/macintosh/windfarm_core.c struct wf_sensor *sens = container_of(attr, struct wf_sensor, attr); attr 320 drivers/macintosh/windfarm_core.c sysfs_attr_init(&new_sr->attr.attr); attr 321 drivers/macintosh/windfarm_core.c new_sr->attr.attr.name = new_sr->name; attr 322 drivers/macintosh/windfarm_core.c new_sr->attr.attr.mode = 0444; attr 323 drivers/macintosh/windfarm_core.c new_sr->attr.show = wf_show_sensor; attr 324 drivers/macintosh/windfarm_core.c new_sr->attr.store = NULL; attr 325 drivers/macintosh/windfarm_core.c if (device_create_file(&wf_platform_device.dev, &new_sr->attr)) attr 105 drivers/mcb/mcb-core.c static ssize_t revision_show(struct device *dev, struct device_attribute *attr, attr 114 drivers/mcb/mcb-core.c static ssize_t model_show(struct device *dev, struct device_attribute *attr, attr 123 drivers/mcb/mcb-core.c static ssize_t minor_show(struct device *dev, struct device_attribute *attr, attr 132 drivers/mcb/mcb-core.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 142 drivers/mcb/mcb-core.c &dev_attr_revision.attr, attr 143 drivers/mcb/mcb-core.c &dev_attr_model.attr, attr 144 drivers/mcb/mcb-core.c &dev_attr_minor.attr, attr 145 drivers/mcb/mcb-core.c &dev_attr_name.attr, attr 2329 drivers/md/bcache/super.c static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr, attr 2332 drivers/md/bcache/super.c struct kobj_attribute *attr, attr 2372 drivers/md/bcache/super.c static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr, attr 2419 drivers/md/bcache/super.c if (attr == &ksysfs_register_quiet) attr 2492 drivers/md/bcache/super.c struct kobj_attribute *attr, attr 2680 drivers/md/bcache/super.c &ksysfs_register.attr, attr 2681 drivers/md/bcache/super.c &ksysfs_register_quiet.attr, attr 2682 drivers/md/bcache/super.c &ksysfs_pendings_cleanup.attr, attr 172 drivers/md/bcache/sysfs.c if (attr == &sysfs_cache_mode) attr 177 drivers/md/bcache/sysfs.c if (attr == &sysfs_readahead_cache_policy) attr 182 drivers/md/bcache/sysfs.c if (attr == &sysfs_stop_when_cache_set_failed) attr 205 drivers/md/bcache/sysfs.c if (attr == &sysfs_writeback_rate_debug) { attr 255 drivers/md/bcache/sysfs.c if (attr == &sysfs_label) { attr 262 drivers/md/bcache/sysfs.c if (attr == &sysfs_backing_dev_name) { attr 268 drivers/md/bcache/sysfs.c if (attr == &sysfs_backing_dev_uuid) { attr 306 drivers/md/bcache/sysfs.c if (attr == &sysfs_writeback_rate) { attr 335 drivers/md/bcache/sysfs.c if (attr == &sysfs_io_disable) { attr 346 drivers/md/bcache/sysfs.c if (attr == &sysfs_clear_stats) attr 349 drivers/md/bcache/sysfs.c if (attr == &sysfs_running && attr 356 drivers/md/bcache/sysfs.c if (attr == &sysfs_cache_mode) { attr 367 drivers/md/bcache/sysfs.c if (attr == &sysfs_readahead_cache_policy) { attr 376 drivers/md/bcache/sysfs.c if (attr == &sysfs_stop_when_cache_set_failed) { attr 384 drivers/md/bcache/sysfs.c if (attr == &sysfs_label) { attr 410 drivers/md/bcache/sysfs.c if (attr == &sysfs_attach) { attr 427 drivers/md/bcache/sysfs.c if (attr == &sysfs_detach && dc->disk.c) attr 430 drivers/md/bcache/sysfs.c if (attr == &sysfs_stop) attr 446 drivers/md/bcache/sysfs.c size = __cached_dev_store(kobj, attr, buf, size); attr 448 drivers/md/bcache/sysfs.c if (attr == &sysfs_writeback_running) { attr 472 drivers/md/bcache/sysfs.c if (attr == &sysfs_writeback_percent) attr 533 drivers/md/bcache/sysfs.c if (attr == &sysfs_label) { attr 555 drivers/md/bcache/sysfs.c if (attr == &sysfs_size) { attr 565 drivers/md/bcache/sysfs.c if (attr == &sysfs_label) { attr 570 drivers/md/bcache/sysfs.c if (attr == &sysfs_unregister) { attr 746 drivers/md/bcache/sysfs.c if (attr == &sysfs_errors) attr 776 drivers/md/bcache/sysfs.c if (attr == &sysfs_bset_tree_stats) attr 792 drivers/md/bcache/sysfs.c if (attr == &sysfs_unregister) attr 795 drivers/md/bcache/sysfs.c if (attr == &sysfs_stop) attr 798 drivers/md/bcache/sysfs.c if (attr == &sysfs_synchronous) { attr 807 drivers/md/bcache/sysfs.c if (attr == &sysfs_flash_vol_create) { attr 818 drivers/md/bcache/sysfs.c if (attr == &sysfs_clear_stats) { attr 826 drivers/md/bcache/sysfs.c if (attr == &sysfs_trigger_gc) attr 829 drivers/md/bcache/sysfs.c if (attr == &sysfs_prune_cache) { attr 844 drivers/md/bcache/sysfs.c if (attr == &sysfs_errors) { attr 855 drivers/md/bcache/sysfs.c if (attr == &sysfs_io_error_halflife) { attr 867 drivers/md/bcache/sysfs.c if (attr == &sysfs_io_disable) { attr 904 drivers/md/bcache/sysfs.c return bch_cache_set_show(&c->kobj, attr, buf); attr 915 drivers/md/bcache/sysfs.c return bch_cache_set_store(&c->kobj, attr, buf, size); attr 1011 drivers/md/bcache/sysfs.c if (attr == &sysfs_cache_replacement_policy) attr 1016 drivers/md/bcache/sysfs.c if (attr == &sysfs_priority_stats) { attr 1105 drivers/md/bcache/sysfs.c if (attr == &sysfs_discard) { attr 1117 drivers/md/bcache/sysfs.c if (attr == &sysfs_cache_replacement_policy) { attr 1131 drivers/md/bcache/sysfs.c if (attr == &sysfs_clear_stats) { attr 16 drivers/md/bcache/sysfs.h static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\ attr 20 drivers/md/bcache/sysfs.h static ssize_t fn ## _store(struct kobject *kobj, struct attribute *attr,\ attr 28 drivers/md/bcache/sysfs.h ret = __ ## fn ## _show(kobj, attr, buf); \ attr 38 drivers/md/bcache/sysfs.h ret = __ ## fn ## _store(kobj, attr, buf, size); \ attr 53 drivers/md/bcache/sysfs.h if (attr == &sysfs_ ## file) \ attr 59 drivers/md/bcache/sysfs.h if (attr == &sysfs_ ## file) \ attr 65 drivers/md/bcache/sysfs.h if (attr == &sysfs_ ## file) { \ attr 78 drivers/md/bcache/sysfs.h if (attr == &sysfs_ ## file) \ attr 84 drivers/md/bcache/sysfs.h if (attr == &sysfs_ ## file) { \ attr 94 drivers/md/bcache/sysfs.h if (attr == &sysfs_ ## file) { \ attr 124 drivers/md/bcache/sysfs.h if (attr == &sysfs_ ## file) \ attr 13 drivers/md/dm-sysfs.c struct attribute attr; attr 22 drivers/md/dm-sysfs.c static ssize_t dm_attr_show(struct kobject *kobj, struct attribute *attr, attr 29 drivers/md/dm-sysfs.c dm_attr = container_of(attr, struct dm_sysfs_attr, attr); attr 47 drivers/md/dm-sysfs.c static ssize_t dm_attr_store(struct kobject *kobj, struct attribute *attr, attr 54 drivers/md/dm-sysfs.c dm_attr = container_of(attr, struct dm_sysfs_attr, attr); attr 108 drivers/md/dm-sysfs.c &dm_attr_name.attr, attr 109 drivers/md/dm-sysfs.c &dm_attr_uuid.attr, attr 110 drivers/md/dm-sysfs.c &dm_attr_suspended.attr, attr 111 drivers/md/dm-sysfs.c &dm_attr_use_blk_mq.attr, attr 112 drivers/md/dm-sysfs.c &dm_attr_rq_based_seq_io_merge_deadline.attr, attr 897 drivers/md/md-bitmap.c enum bitmap_page_attr attr) attr 899 drivers/md/md-bitmap.c set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); attr 903 drivers/md/md-bitmap.c enum bitmap_page_attr attr) attr 905 drivers/md/md-bitmap.c clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); attr 909 drivers/md/md-bitmap.c enum bitmap_page_attr attr) attr 911 drivers/md/md-bitmap.c return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); attr 915 drivers/md/md-bitmap.c enum bitmap_page_attr attr) attr 917 drivers/md/md-bitmap.c return test_and_clear_bit((pnum<<2) + attr, attr 2609 drivers/md/md-bitmap.c &bitmap_location.attr, attr 2610 drivers/md/md-bitmap.c &bitmap_space.attr, attr 2611 drivers/md/md-bitmap.c &bitmap_timeout.attr, attr 2612 drivers/md/md-bitmap.c &bitmap_backlog.attr, attr 2613 drivers/md/md-bitmap.c &bitmap_chunksize.attr, attr 2614 drivers/md/md-bitmap.c &bitmap_metadata.attr, attr 2615 drivers/md/md-bitmap.c &bitmap_can_clear.attr, attr 2616 drivers/md/md-bitmap.c &max_backlog_used.attr, attr 2796 drivers/md/md.c struct attribute attr; attr 3469 drivers/md/md.c &rdev_state.attr, attr 3470 drivers/md/md.c &rdev_errors.attr, attr 3471 drivers/md/md.c &rdev_slot.attr, attr 3472 drivers/md/md.c &rdev_offset.attr, attr 3473 drivers/md/md.c &rdev_new_offset.attr, attr 3474 drivers/md/md.c &rdev_size.attr, attr 3475 drivers/md/md.c &rdev_recovery_start.attr, attr 3476 drivers/md/md.c &rdev_bad_blocks.attr, attr 3477 drivers/md/md.c &rdev_unack_bad_blocks.attr, attr 3478 drivers/md/md.c &rdev_ppl_sector.attr, attr 3479 drivers/md/md.c &rdev_ppl_size.attr, attr 3483 drivers/md/md.c rdev_attr_show(struct kobject *kobj, struct attribute *attr, char *page) attr 3485 drivers/md/md.c struct rdev_sysfs_entry *entry = container_of(attr, struct rdev_sysfs_entry, attr); attr 3496 drivers/md/md.c rdev_attr_store(struct kobject *kobj, struct attribute *attr, attr 3499 drivers/md/md.c struct rdev_sysfs_entry *entry = container_of(attr, struct rdev_sysfs_entry, attr); attr 5281 drivers/md/md.c &md_level.attr, attr 5282 drivers/md/md.c &md_layout.attr, attr 5283 drivers/md/md.c &md_raid_disks.attr, attr 5284 drivers/md/md.c &md_chunk_size.attr, attr 5285 drivers/md/md.c &md_size.attr, attr 5286 drivers/md/md.c &md_resync_start.attr, attr 5287 drivers/md/md.c &md_metadata.attr, attr 5288 drivers/md/md.c &md_new_device.attr, attr 5289 drivers/md/md.c &md_safe_delay.attr, attr 5290 drivers/md/md.c &md_array_state.attr, attr 5291 drivers/md/md.c &md_reshape_position.attr, attr 5292 drivers/md/md.c &md_reshape_direction.attr, attr 5293 drivers/md/md.c &md_array_size.attr, attr 5294 drivers/md/md.c &max_corr_read_errors.attr, attr 5295 drivers/md/md.c &md_consistency_policy.attr, attr 5296 drivers/md/md.c &md_fail_last_dev.attr, attr 5301 drivers/md/md.c &md_scan_mode.attr, attr 5302 drivers/md/md.c &md_last_scan_mode.attr, attr 5303 drivers/md/md.c &md_mismatches.attr, attr 5304 drivers/md/md.c &md_sync_min.attr, attr 5305 drivers/md/md.c &md_sync_max.attr, attr 5306 drivers/md/md.c &md_sync_speed.attr, attr 5307 drivers/md/md.c &md_sync_force_parallel.attr, attr 5308 drivers/md/md.c &md_sync_completed.attr, attr 5309 drivers/md/md.c &md_min_sync.attr, attr 5310 drivers/md/md.c &md_max_sync.attr, attr 5311 drivers/md/md.c &md_suspend_lo.attr, attr 5312 drivers/md/md.c &md_suspend_hi.attr, attr 5313 drivers/md/md.c &md_bitmap.attr, attr 5314 drivers/md/md.c &md_degraded.attr, attr 5323 drivers/md/md.c md_attr_show(struct kobject *kobj, struct attribute *attr, char *page) attr 5325 drivers/md/md.c struct md_sysfs_entry *entry = container_of(attr, struct md_sysfs_entry, attr); attr 5345 drivers/md/md.c md_attr_store(struct kobject *kobj, struct attribute *attr, attr 5348 drivers/md/md.c struct md_sysfs_entry *entry = container_of(attr, struct md_sysfs_entry, attr); attr 600 drivers/md/md.h struct attribute attr; attr 6660 drivers/md/raid5.c &raid5_stripecache_size.attr, attr 6661 drivers/md/raid5.c &raid5_stripecache_active.attr, attr 6662 drivers/md/raid5.c &raid5_preread_bypass_threshold.attr, attr 6663 drivers/md/raid5.c &raid5_group_thread_cnt.attr, attr 6664 drivers/md/raid5.c &raid5_skip_copy.attr, attr 6665 drivers/md/raid5.c &raid5_rmw_level.attr, attr 6666 drivers/md/raid5.c &r5c_journal_mode.attr, attr 6667 drivers/md/raid5.c &ppl_write_hint.attr, attr 162 drivers/media/common/b2c2/flexcop-reg.h #define flexcop_set_ibi_value(reg,attr,val) { \ attr 164 drivers/media/common/b2c2/flexcop-reg.h v.reg.attr = val; \ attr 527 drivers/media/dvb-frontends/dib9000.c static int dib9000_mbx_send_attr(struct dib9000_state *state, u8 id, u16 * data, u8 len, u16 attr) attr 544 drivers/media/dvb-frontends/dib9000.c size = dib9000_read_word_attr(state, 1043, attr) & 0xff; attr 573 drivers/media/dvb-frontends/dib9000.c if (dib9000_write16_noinc_attr(state, 1045, b, 2, attr) != 0 || dib9000_write16_noinc_attr(state, 1045, (u8 *) data, len * 2, attr) != 0) { attr 579 drivers/media/dvb-frontends/dib9000.c ret = (u8) dib9000_write_word_attr(state, 1043, 1 << 14, attr); attr 587 drivers/media/dvb-frontends/dib9000.c static u8 dib9000_mbx_read(struct dib9000_state *state, u16 * data, u8 risc_id, u16 attr) attr 610 drivers/media/dvb-frontends/dib9000.c *data = dib9000_read_word_attr(state, 1029 + mc_base, attr); attr 617 drivers/media/dvb-frontends/dib9000.c dib9000_read16_noinc_attr(state, 1029 + mc_base, (u8 *) data, size * 2, attr); attr 636 drivers/media/dvb-frontends/dib9000.c dib9000_read16_noinc_attr(state, 1029 + mc_base, (u8 *) data, 2, attr); attr 639 drivers/media/dvb-frontends/dib9000.c dib9000_write_word_attr(state, 1028 + mc_base, 1 << 14, attr); attr 662 drivers/media/dvb-frontends/dib9000.c static int dib9000_mbx_fetch_to_cache(struct dib9000_state *state, u16 attr) attr 671 drivers/media/dvb-frontends/dib9000.c size = dib9000_mbx_read(state, block, 1, attr); attr 697 drivers/media/dvb-frontends/dib9000.c static u8 dib9000_mbx_count(struct dib9000_state *state, u8 risc_id, u16 attr) attr 700 drivers/media/dvb-frontends/dib9000.c return (u8) (dib9000_read_word_attr(state, 1028, attr) >> 10) & 0x1f; /* 5 bit field */ attr 702 drivers/media/dvb-frontends/dib9000.c return (u8) (dib9000_read_word_attr(state, 1044, attr) >> 8) & 0x7f; /* 7 bit field */ attr 705 drivers/media/dvb-frontends/dib9000.c static int dib9000_mbx_process(struct dib9000_state *state, u16 attr) attr 717 drivers/media/dvb-frontends/dib9000.c if (dib9000_mbx_count(state, 1, attr)) /* 1=RiscB */ attr 718 drivers/media/dvb-frontends/dib9000.c ret = dib9000_mbx_fetch_to_cache(state, attr); attr 720 drivers/media/dvb-frontends/dib9000.c dib9000_read_word_attr(state, 1229, attr); /* Clear the IRQ */ attr 728 drivers/media/dvb-frontends/dib9000.c static int dib9000_mbx_get_message_attr(struct dib9000_state *state, u16 id, u16 * msg, u8 * size, u16 attr) attr 751 drivers/media/dvb-frontends/dib9000.c if (dib9000_mbx_process(state, attr) == -1) /* try to fetch one message - if any */ attr 143 drivers/media/dvb-frontends/nxt200x.c u8 attr, len2, buf; attr 159 drivers/media/dvb-frontends/nxt200x.c attr = 0x02; attr 161 drivers/media/dvb-frontends/nxt200x.c attr = attr << 1; attr 163 drivers/media/dvb-frontends/nxt200x.c attr = attr >> 1; attr 166 drivers/media/dvb-frontends/nxt200x.c len2 = ((attr << 4) | 0x10) | len; attr 204 drivers/media/dvb-frontends/nxt200x.c u8 buf, len2, attr; attr 222 drivers/media/dvb-frontends/nxt200x.c attr = 0x02; attr 224 drivers/media/dvb-frontends/nxt200x.c attr = attr << 1; attr 226 drivers/media/dvb-frontends/nxt200x.c attr = attr >> 1; attr 230 drivers/media/dvb-frontends/nxt200x.c len2 = (attr << 4) | len; attr 1237 drivers/media/i2c/et8ek8/et8ek8_driver.c et8ek8_priv_mem_read(struct device *dev, struct device_attribute *attr, attr 2309 drivers/media/i2c/smiapp/smiapp-core.c smiapp_sysfs_nvm_read(struct device *dev, struct device_attribute *attr, attr 2354 drivers/media/i2c/smiapp/smiapp-core.c smiapp_sysfs_ident_read(struct device *dev, struct device_attribute *attr, attr 277 drivers/media/i2c/video-i2c.c u32 attr, int channel) attr 283 drivers/media/i2c/video-i2c.c u32 attr, int channel, long *val) attr 559 drivers/media/mc/mc-device.c struct device_attribute *attr, char *buf) attr 174 drivers/media/pci/bt8xx/bttv-driver.c struct device_attribute *attr, char *buf) attr 2735 drivers/media/pci/ddbridge/ddbridge-core.c .attr = { .name = __stringify(_name), .mode = 0444 }, \ attr 2740 drivers/media/pci/ddbridge/ddbridge-core.c .attr = { .name = __stringify(_name), .mode = 0222 }, \ attr 2745 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2753 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2761 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2769 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2792 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2795 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[8] - 0x30; attr 2804 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2830 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2836 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[4] - 0x30; attr 2849 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2852 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[3] - 0x30; attr 2891 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, attr 2895 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[3] - 0x30; attr 2909 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2913 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[3] - 0x30; attr 2932 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2943 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2960 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2966 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, attr 2982 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 2985 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[3] - 0x30; attr 2990 drivers/media/pci/ddbridge/ddbridge-core.c static ssize_t gap_store(struct device *device, struct device_attribute *attr, attr 2994 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[3] - 0x30; attr 3008 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 3017 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 3025 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 3033 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 3035 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[5] - 0x30; attr 3042 drivers/media/pci/ddbridge/ddbridge-core.c struct device_attribute *attr, char *buf) attr 3044 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[5] - 0x30; attr 3050 drivers/media/pci/ddbridge/ddbridge-core.c static ssize_t fmode_store(struct device *device, struct device_attribute *attr, attr 3054 drivers/media/pci/ddbridge/ddbridge-core.c int num = attr->attr.name[5] - 0x30; attr 3166 drivers/media/pci/ddbridge/ddbridge-core.c for (i = 0; ddb_attrs[i].attr.name; i++) attr 3174 drivers/media/pci/ddbridge/ddbridge-core.c for (i = 0; ddb_attrs[i].attr.name; i++) attr 98 drivers/media/pci/saa7134/saa7134-i2c.c static inline void i2c_set_attr(struct saa7134_dev *dev, enum i2c_attr attr) attr 100 drivers/media/pci/saa7134/saa7134-i2c.c i2c_dbg(2, "i2c attr => %s\n", str_i2c_attr[attr]); attr 101 drivers/media/pci/saa7134/saa7134-i2c.c saa_andorb(SAA7134_I2C_ATTR_STATUS,0xc0,attr << 6); attr 186 drivers/media/pci/saa7134/saa7134-i2c.c enum i2c_attr attr, attr 195 drivers/media/pci/saa7134/saa7134-i2c.c dword |= (attr << 6); attr 159 drivers/media/pci/solo6x10/solo6x10-core.c static ssize_t eeprom_store(struct device *dev, struct device_attribute *attr, attr 189 drivers/media/pci/solo6x10/solo6x10-core.c static ssize_t eeprom_show(struct device *dev, struct device_attribute *attr, attr 205 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 215 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 225 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 238 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 273 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 289 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 299 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 318 drivers/media/pci/solo6x10/solo6x10-core.c struct device_attribute *attr, attr 434 drivers/media/pci/solo6x10/solo6x10-core.c sysfs_attr_init(&sdram_attr->attr); attr 435 drivers/media/pci/solo6x10/solo6x10-core.c sdram_attr->attr.name = "sdram"; attr 436 drivers/media/pci/solo6x10/solo6x10-core.c sdram_attr->attr.mode = 0440; attr 1215 drivers/media/platform/exynos4-is/media-dev.c struct device_attribute *attr, char *buf) attr 1226 drivers/media/platform/exynos4-is/media-dev.c struct device_attribute *attr, attr 880 drivers/media/platform/omap3isp/isppreview.c const struct preview_update *attr = &update_attrs[i]; attr 884 drivers/media/platform/omap3isp/isppreview.c if (attr->skip || !(cfg->update & bit)) attr 891 drivers/media/platform/omap3isp/isppreview.c ((void *)cfg + attr->config_offset); attr 892 drivers/media/platform/omap3isp/isppreview.c void *to = (void *)params + attr->param_offset; attr 893 drivers/media/platform/omap3isp/isppreview.c size_t size = attr->param_size; attr 934 drivers/media/platform/omap3isp/isppreview.c const struct preview_update *attr = &update_attrs[i]; attr 944 drivers/media/platform/omap3isp/isppreview.c if (attr->config) attr 945 drivers/media/platform/omap3isp/isppreview.c attr->config(prev, params); attr 946 drivers/media/platform/omap3isp/isppreview.c if (attr->enable) attr 947 drivers/media/platform/omap3isp/isppreview.c attr->enable(prev, true); attr 949 drivers/media/platform/omap3isp/isppreview.c if (attr->enable) attr 950 drivers/media/platform/omap3isp/isppreview.c attr->enable(prev, false); attr 1283 drivers/media/platform/rcar-vin/rcar-core.c const struct soc_device_attribute *attr; attr 1300 drivers/media/platform/rcar-vin/rcar-core.c attr = soc_device_match(r8a7795es1); attr 1301 drivers/media/platform/rcar-vin/rcar-core.c if (attr) attr 1302 drivers/media/platform/rcar-vin/rcar-core.c vin->info = attr->data; attr 1130 drivers/media/platform/rcar-vin/rcar-csi2.c const struct soc_device_attribute *attr; attr 1145 drivers/media/platform/rcar-vin/rcar-csi2.c attr = soc_device_match(r8a7795); attr 1146 drivers/media/platform/rcar-vin/rcar-csi2.c if (attr) attr 1147 drivers/media/platform/rcar-vin/rcar-csi2.c priv->info = attr->data; attr 247 drivers/media/rc/bpf-lirc.c int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) attr 252 drivers/media/rc/bpf-lirc.c if (attr->attach_flags) attr 255 drivers/media/rc/bpf-lirc.c rcdev = rc_dev_get_from_fd(attr->target_fd); attr 266 drivers/media/rc/bpf-lirc.c int lirc_prog_detach(const union bpf_attr *attr) attr 272 drivers/media/rc/bpf-lirc.c if (attr->attach_flags) attr 275 drivers/media/rc/bpf-lirc.c prog = bpf_prog_get_type(attr->attach_bpf_fd, attr 280 drivers/media/rc/bpf-lirc.c rcdev = rc_dev_get_from_fd(attr->target_fd); attr 294 drivers/media/rc/bpf-lirc.c int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) attr 296 drivers/media/rc/bpf-lirc.c __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); attr 302 drivers/media/rc/bpf-lirc.c if (attr->query.query_flags) attr 305 drivers/media/rc/bpf-lirc.c rcdev = rc_dev_get_from_fd(attr->query.target_fd); attr 331 drivers/media/rc/bpf-lirc.c if (attr->query.prog_cnt != 0 && prog_ids && cnt) attr 756 drivers/media/rc/imon.c struct device_attribute *attr, attr 776 drivers/media/rc/imon.c struct device_attribute *attr, attr 798 drivers/media/rc/imon.c struct device_attribute *attr, char *buf) attr 824 drivers/media/rc/imon.c struct device_attribute *attr, attr 877 drivers/media/rc/imon.c &dev_attr_imon_clock.attr, attr 886 drivers/media/rc/imon.c &dev_attr_associate_remote.attr, attr 211 drivers/media/rc/nuvoton-cir.c struct device_attribute *attr, attr 244 drivers/media/rc/nuvoton-cir.c struct device_attribute *attr, attr 1041 drivers/media/rc/rc-main.c struct device_attribute attr; attr 1045 drivers/media/rc/rc-main.c #define to_rc_filter_attr(a) container_of(a, struct rc_filter_attribute, attr) attr 1049 drivers/media/rc/rc-main.c .attr = __ATTR(_name, _mode, _show, _store), \ attr 1327 drivers/media/rc/rc-main.c struct device_attribute *attr, attr 1331 drivers/media/rc/rc-main.c struct rc_filter_attribute *fattr = to_rc_filter_attr(attr); attr 1371 drivers/media/rc/rc-main.c struct device_attribute *attr, attr 1375 drivers/media/rc/rc-main.c struct rc_filter_attribute *fattr = to_rc_filter_attr(attr); attr 1608 drivers/media/rc/rc-main.c &dev_attr_rw_protocols.attr, attr 1617 drivers/media/rc/rc-main.c &dev_attr_ro_protocols.attr, attr 1626 drivers/media/rc/rc-main.c &dev_attr_filter.attr.attr, attr 1627 drivers/media/rc/rc-main.c &dev_attr_filter_mask.attr.attr, attr 1636 drivers/media/rc/rc-main.c &dev_attr_wakeup_filter.attr.attr, attr 1637 drivers/media/rc/rc-main.c &dev_attr_wakeup_filter_mask.attr.attr, attr 1638 drivers/media/rc/rc-main.c &dev_attr_wakeup_protocols.attr, attr 1845 drivers/media/rc/rc-main.c int attr = 0; attr 1862 drivers/media/rc/rc-main.c dev->sysfs_groups[attr++] = &rc_dev_ro_protocol_attr_grp; attr 1864 drivers/media/rc/rc-main.c dev->sysfs_groups[attr++] = &rc_dev_rw_protocol_attr_grp; attr 1866 drivers/media/rc/rc-main.c dev->sysfs_groups[attr++] = &rc_dev_filter_attr_grp; attr 1868 drivers/media/rc/rc-main.c dev->sysfs_groups[attr++] = &rc_dev_wakeup_filter_attr_grp; attr 1869 drivers/media/rc/rc-main.c dev->sysfs_groups[attr++] = NULL; attr 514 drivers/media/usb/gspca/gspca.c int i, attr; attr 518 drivers/media/usb/gspca/gspca.c attr = ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; attr 519 drivers/media/usb/gspca/gspca.c if (attr == xfer attr 74 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 79 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); attr 88 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 94 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_type); attr 109 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 114 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_min); attr 122 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 127 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_max); attr 135 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 142 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_def); attr 154 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 161 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_val); attr 173 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 180 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_custom); attr 192 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 198 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_enum); attr 216 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 222 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_bits); attr 259 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 264 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_val); attr 273 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 278 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_custom); attr 312 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_name.attr); attr 313 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_name.attr.name = "name"; attr 314 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_name.attr.mode = S_IRUGO; attr 317 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_type.attr); attr 318 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_type.attr.name = "type"; attr 319 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_type.attr.mode = S_IRUGO; attr 322 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_min.attr); attr 323 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_min.attr.name = "min_val"; attr 324 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_min.attr.mode = S_IRUGO; attr 327 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_max.attr); attr 328 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_max.attr.name = "max_val"; attr 329 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_max.attr.mode = S_IRUGO; attr 332 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_def.attr); attr 333 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_def.attr.name = "def_val"; attr 334 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_def.attr.mode = S_IRUGO; attr 337 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_val.attr); attr 338 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_val.attr.name = "cur_val"; attr 339 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_val.attr.mode = S_IRUGO; attr 341 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_custom.attr); attr 342 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_custom.attr.name = "custom_val"; attr 343 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_custom.attr.mode = S_IRUGO; attr 345 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_enum.attr); attr 346 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_enum.attr.name = "enum_val"; attr 347 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_enum.attr.mode = S_IRUGO; attr 350 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&cip->attr_bits.attr); attr 351 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_bits.attr.name = "bit_val"; attr 352 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_bits.attr.mode = S_IRUGO; attr 356 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_val.attr.mode |= S_IWUSR|S_IWGRP; attr 357 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_custom.attr.mode |= S_IWUSR|S_IWGRP; attr 361 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_name.attr; attr 362 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_type.attr; attr 363 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_val.attr; attr 364 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_def.attr; attr 368 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_custom.attr; attr 375 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_enum.attr; attr 379 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_min.attr; attr 380 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_max.attr; attr 384 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_gen[acnt++] = &cip->attr_bits.attr; attr 420 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&dip->attr_debugcmd.attr); attr 421 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c dip->attr_debugcmd.attr.name = "debugcmd"; attr 422 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c dip->attr_debugcmd.attr.mode = S_IRUGO|S_IWUSR|S_IWGRP; attr 425 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&dip->attr_debuginfo.attr); attr 426 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c dip->attr_debuginfo.attr.name = "debuginfo"; attr 427 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c dip->attr_debuginfo.attr.mode = S_IRUGO; attr 549 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, char *buf) attr 561 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, char *buf) attr 572 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, char *buf) attr 583 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, char *buf) attr 594 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 607 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, char *buf) attr 648 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&sfp->attr_v4l_minor_number.attr); attr 649 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_v4l_minor_number.attr.name = "v4l_minor_number"; attr 650 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_v4l_minor_number.attr.mode = S_IRUGO; attr 663 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&sfp->attr_v4l_radio_minor_number.attr); attr 664 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_v4l_radio_minor_number.attr.name = "v4l_radio_minor_number"; attr 665 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_v4l_radio_minor_number.attr.mode = S_IRUGO; attr 678 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&sfp->attr_unit_number.attr); attr 679 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_unit_number.attr.name = "unit_number"; attr 680 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_unit_number.attr.mode = S_IRUGO; attr 692 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&sfp->attr_bus_info.attr); attr 693 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_bus_info.attr.name = "bus_info_str"; attr 694 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_bus_info.attr.mode = S_IRUGO; attr 707 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&sfp->attr_hdw_name.attr); attr 708 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_hdw_name.attr.name = "device_hardware_type"; attr 709 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_hdw_name.attr.mode = S_IRUGO; attr 722 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sysfs_attr_init(&sfp->attr_hdw_desc.attr); attr 723 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_hdw_desc.attr.name = "device_hardware_description"; attr 724 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_hdw_desc.attr.mode = S_IRUGO; attr 802 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, char *buf) attr 813 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, char *buf) attr 823 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct device_attribute *attr, attr 152 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 159 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 169 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 181 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 193 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 205 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 217 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 227 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 237 drivers/media/usb/usbvision/usbvision-video.c struct device_attribute *attr, char *buf) attr 46 drivers/media/v4l2-core/v4l2-dev.c struct device_attribute *attr, char *buf) attr 55 drivers/media/v4l2-core/v4l2-dev.c struct device_attribute *attr, char *buf) attr 62 drivers/media/v4l2-core/v4l2-dev.c static ssize_t dev_debug_store(struct device *cd, struct device_attribute *attr, attr 79 drivers/media/v4l2-core/v4l2-dev.c struct device_attribute *attr, char *buf) attr 88 drivers/media/v4l2-core/v4l2-dev.c &dev_attr_name.attr, attr 89 drivers/media/v4l2-core/v4l2-dev.c &dev_attr_dev_debug.attr, attr 90 drivers/media/v4l2-core/v4l2-dev.c &dev_attr_index.attr, attr 220 drivers/memory/brcmstb_dpfe.c &dev_attr_dpfe_info.attr, attr 221 drivers/memory/brcmstb_dpfe.c &dev_attr_dpfe_refresh.attr, attr 222 drivers/memory/brcmstb_dpfe.c &dev_attr_dpfe_vendor.attr, attr 229 drivers/memory/brcmstb_dpfe.c &dev_attr_dpfe_info.attr, attr 230 drivers/memory/brcmstb_dpfe.c &dev_attr_dpfe_dram.attr, attr 720 drivers/memory/brcmstb_dpfe.c static ssize_t store_refresh(struct device *dev, struct device_attribute *attr, attr 147 drivers/memstick/core/memstick.c static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \ attr 161 drivers/memstick/core/memstick.c &dev_attr_type.attr, attr 162 drivers/memstick/core/memstick.c &dev_attr_category.attr, attr 163 drivers/memstick/core/memstick.c &dev_attr_class.attr, attr 1172 drivers/memstick/core/ms_block.c p->attr.block_size = be16_to_cpu(p->attr.block_size); attr 1173 drivers/memstick/core/ms_block.c p->attr.number_of_blocks = be16_to_cpu(p->attr.number_of_blocks); attr 1174 drivers/memstick/core/ms_block.c p->attr.number_of_effective_blocks attr 1175 drivers/memstick/core/ms_block.c = be16_to_cpu(p->attr.number_of_effective_blocks); attr 1176 drivers/memstick/core/ms_block.c p->attr.page_size = be16_to_cpu(p->attr.page_size); attr 1177 drivers/memstick/core/ms_block.c p->attr.memory_manufacturer_code attr 1178 drivers/memstick/core/ms_block.c = be16_to_cpu(p->attr.memory_manufacturer_code); attr 1179 drivers/memstick/core/ms_block.c p->attr.memory_device_code = be16_to_cpu(p->attr.memory_device_code); attr 1180 drivers/memstick/core/ms_block.c p->attr.implemented_capacity attr 1181 drivers/memstick/core/ms_block.c = be16_to_cpu(p->attr.implemented_capacity); attr 1182 drivers/memstick/core/ms_block.c p->attr.controller_number = be16_to_cpu(p->attr.controller_number); attr 1183 drivers/memstick/core/ms_block.c p->attr.controller_function = be16_to_cpu(p->attr.controller_function); attr 1724 drivers/memstick/core/ms_block.c msb->block_count = boot_block->attr.number_of_blocks; attr 1725 drivers/memstick/core/ms_block.c msb->page_size = boot_block->attr.page_size; attr 1727 drivers/memstick/core/ms_block.c msb->pages_in_block = boot_block->attr.block_size * 2; attr 1753 drivers/memstick/core/ms_block.c if (boot_block->attr.transfer_supporting == 1) attr 1756 drivers/memstick/core/ms_block.c if (boot_block->attr.device_type & 0x03) attr 142 drivers/memstick/core/ms_block.h struct ms_boot_attr_info attr; attr 117 drivers/memstick/core/mspro_block.c unsigned char attr; attr 251 drivers/memstick/core/mspro_block.c static struct mspro_sys_attr *mspro_from_sysfs_attr(struct attribute *attr) attr 254 drivers/memstick/core/mspro_block.c = container_of(attr, struct device_attribute, attr); attr 283 drivers/memstick/core/mspro_block.c struct device_attribute *attr, attr 287 drivers/memstick/core/mspro_block.c struct device_attribute *attr, attr 290 drivers/memstick/core/mspro_block.c struct mspro_sys_attr *s_attr = container_of(attr, attr 309 drivers/memstick/core/mspro_block.c struct device_attribute *attr, attr 312 drivers/memstick/core/mspro_block.c struct mspro_sys_attr *x_attr = container_of(attr, attr 391 drivers/memstick/core/mspro_block.c struct device_attribute *attr, attr 394 drivers/memstick/core/mspro_block.c struct mspro_sys_attr *s_attr = container_of(attr, attr 402 drivers/memstick/core/mspro_block.c struct device_attribute *attr, attr 405 drivers/memstick/core/mspro_block.c struct mspro_sys_attr *x_attr = container_of(attr, attr 436 drivers/memstick/core/mspro_block.c struct device_attribute *attr, attr 439 drivers/memstick/core/mspro_block.c struct mspro_sys_attr *x_attr = container_of(attr, attr 454 drivers/memstick/core/mspro_block.c x_spfile->attr); attr 471 drivers/memstick/core/mspro_block.c struct device_attribute *attr, attr 474 drivers/memstick/core/mspro_block.c struct mspro_sys_attr *x_attr = container_of(attr, attr 972 drivers/memstick/core/mspro_block.c struct mspro_attribute *attr = NULL; attr 983 drivers/memstick/core/mspro_block.c attr = kmalloc(msb->page_size, GFP_KERNEL); attr 984 drivers/memstick/core/mspro_block.c if (!attr) attr 987 drivers/memstick/core/mspro_block.c sg_init_one(&msb->req_sg[0], attr, msb->page_size); attr 1003 drivers/memstick/core/mspro_block.c if (be16_to_cpu(attr->signature) != MSPRO_BLOCK_SIGNATURE) { attr 1005 drivers/memstick/core/mspro_block.c dev_name(&card->dev), be16_to_cpu(attr->signature)); attr 1010 drivers/memstick/core/mspro_block.c if (attr->count > MSPRO_BLOCK_MAX_ATTRIBUTES) { attr 1015 drivers/memstick/core/mspro_block.c attr_count = attr->count; attr 1026 drivers/memstick/core/mspro_block.c buffer = kmemdup(attr, attr_len, GFP_KERNEL); attr 1039 drivers/memstick/core/mspro_block.c msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; attr 1040 drivers/memstick/core/mspro_block.c addr = be32_to_cpu(attr->entries[cnt].address); attr 1041 drivers/memstick/core/mspro_block.c s_attr->size = be32_to_cpu(attr->entries[cnt].size); attr 1043 drivers/memstick/core/mspro_block.c "size %zx\n", cnt, attr->entries[cnt].id, addr, attr 1045 drivers/memstick/core/mspro_block.c s_attr->id = attr->entries[cnt].id; attr 1048 drivers/memstick/core/mspro_block.c mspro_block_attr_name(attr->entries[cnt].id)); attr 1051 drivers/memstick/core/mspro_block.c "attr_x%02x", attr->entries[cnt].id); attr 1053 drivers/memstick/core/mspro_block.c sysfs_attr_init(&s_attr->dev_attr.attr); attr 1054 drivers/memstick/core/mspro_block.c s_attr->dev_attr.attr.name = s_attr->name; attr 1055 drivers/memstick/core/mspro_block.c s_attr->dev_attr.attr.mode = S_IRUGO; attr 1114 drivers/memstick/core/mspro_block.c kfree(attr); attr 3042 drivers/message/fusion/mptscsih.c mptscsih_version_fw_show(struct device *dev, struct device_attribute *attr, attr 3058 drivers/message/fusion/mptscsih.c mptscsih_version_bios_show(struct device *dev, struct device_attribute *attr, attr 3074 drivers/message/fusion/mptscsih.c mptscsih_version_mpi_show(struct device *dev, struct device_attribute *attr, attr 3087 drivers/message/fusion/mptscsih.c struct device_attribute *attr, attr 3101 drivers/message/fusion/mptscsih.c struct device_attribute *attr, attr 3116 drivers/message/fusion/mptscsih.c struct device_attribute *attr, char *buf) attr 3128 drivers/message/fusion/mptscsih.c mptscsih_board_name_show(struct device *dev, struct device_attribute *attr, attr 3141 drivers/message/fusion/mptscsih.c struct device_attribute *attr, char *buf) attr 3153 drivers/message/fusion/mptscsih.c mptscsih_board_tracer_show(struct device *dev, struct device_attribute *attr, attr 3166 drivers/message/fusion/mptscsih.c mptscsih_io_delay_show(struct device *dev, struct device_attribute *attr, attr 3179 drivers/message/fusion/mptscsih.c mptscsih_device_delay_show(struct device *dev, struct device_attribute *attr, attr 3192 drivers/message/fusion/mptscsih.c mptscsih_debug_level_show(struct device *dev, struct device_attribute *attr, attr 3202 drivers/message/fusion/mptscsih.c mptscsih_debug_level_store(struct device *dev, struct device_attribute *attr, attr 150 drivers/mfd/ab3100-otp.c struct device_attribute *attr, \ attr 883 drivers/mfd/ab8500-core.c struct device_attribute *attr, char *buf) attr 904 drivers/mfd/ab8500-core.c struct device_attribute *attr, char *buf) attr 939 drivers/mfd/ab8500-core.c struct device_attribute *attr, char *buf) attr 968 drivers/mfd/ab8500-core.c struct device_attribute *attr, char *buf) attr 983 drivers/mfd/ab8500-core.c struct device_attribute *attr, char *buf) attr 1001 drivers/mfd/ab8500-core.c struct device_attribute *attr, const char *buf, size_t count) attr 1043 drivers/mfd/ab8500-core.c &dev_attr_chip_id.attr, attr 1044 drivers/mfd/ab8500-core.c &dev_attr_switch_off_status.attr, attr 1045 drivers/mfd/ab8500-core.c &dev_attr_turn_on_status.attr, attr 1050 drivers/mfd/ab8500-core.c &dev_attr_turn_on_status_2.attr, attr 1055 drivers/mfd/ab8500-core.c &dev_attr_chip_id.attr, attr 1056 drivers/mfd/ab8500-core.c &dev_attr_switch_off_status.attr, attr 1057 drivers/mfd/ab8500-core.c &dev_attr_turn_on_status.attr, attr 1058 drivers/mfd/ab8500-core.c &dev_attr_dbbrstn.attr, attr 2470 drivers/mfd/ab8500-debugfs.c struct device_attribute *attr, char *buf) attr 2476 drivers/mfd/ab8500-debugfs.c err = kstrtoul(attr->attr.name, 0, &name); attr 2528 drivers/mfd/ab8500-debugfs.c dev_attr[irq_index]->attr.name = event_name[irq_index]; attr 2529 drivers/mfd/ab8500-debugfs.c dev_attr[irq_index]->attr.mode = S_IRUGO; attr 2530 drivers/mfd/ab8500-debugfs.c err = sysfs_create_file(&dev->kobj, &dev_attr[irq_index]->attr); attr 2542 drivers/mfd/ab8500-debugfs.c sysfs_remove_file(&dev->kobj, &dev_attr[irq_index]->attr); attr 2579 drivers/mfd/ab8500-debugfs.c sysfs_remove_file(&dev->kobj, &dev_attr[irq_index]->attr); attr 338 drivers/mfd/intel_soc_pmic_bxtwc.c struct device_attribute *attr, char *buf) attr 344 drivers/mfd/intel_soc_pmic_bxtwc.c struct device_attribute *attr, const char *buf, size_t count) attr 354 drivers/mfd/intel_soc_pmic_bxtwc.c struct device_attribute *attr, char *buf) attr 370 drivers/mfd/intel_soc_pmic_bxtwc.c struct device_attribute *attr, const char *buf, size_t count) attr 392 drivers/mfd/intel_soc_pmic_bxtwc.c &dev_attr_addr.attr, attr 393 drivers/mfd/intel_soc_pmic_bxtwc.c &dev_attr_val.attr, attr 152 drivers/mfd/janz-cmodio.c static ssize_t mbus_show(struct device *dev, struct device_attribute *attr, attr 163 drivers/mfd/janz-cmodio.c &dev_attr_modulbus_number.attr, attr 355 drivers/mfd/kempld-core.c struct device_attribute *attr, char *buf) attr 363 drivers/mfd/kempld-core.c struct device_attribute *attr, char *buf) attr 372 drivers/mfd/kempld-core.c struct device_attribute *attr, char *buf) attr 385 drivers/mfd/kempld-core.c &dev_attr_pld_version.attr, attr 386 drivers/mfd/kempld-core.c &dev_attr_pld_specification.attr, attr 387 drivers/mfd/kempld-core.c &dev_attr_pld_type.attr, attr 257 drivers/mfd/lm3533-core.c struct device_attribute *attr, char *buf) attr 260 drivers/mfd/lm3533-core.c struct lm3533_device_attribute *lattr = to_lm3533_dev_attr(attr); attr 293 drivers/mfd/lm3533-core.c struct device_attribute *attr, attr 297 drivers/mfd/lm3533-core.c struct lm3533_device_attribute *lattr = to_lm3533_dev_attr(attr); attr 345 drivers/mfd/lm3533-core.c &lm3533_dev_attr_output_hvled1.dev_attr.attr, attr 346 drivers/mfd/lm3533-core.c &lm3533_dev_attr_output_hvled2.dev_attr.attr, attr 347 drivers/mfd/lm3533-core.c &lm3533_dev_attr_output_lvled1.dev_attr.attr, attr 348 drivers/mfd/lm3533-core.c &lm3533_dev_attr_output_lvled2.dev_attr.attr, attr 349 drivers/mfd/lm3533-core.c &lm3533_dev_attr_output_lvled3.dev_attr.attr, attr 350 drivers/mfd/lm3533-core.c &lm3533_dev_attr_output_lvled4.dev_attr.attr, attr 351 drivers/mfd/lm3533-core.c &lm3533_dev_attr_output_lvled5.dev_attr.attr, attr 356 drivers/mfd/lm3533-core.c container_of(_attr, struct device_attribute, attr) attr 359 drivers/mfd/lm3533-core.c struct attribute *attr, int n) attr 363 drivers/mfd/lm3533-core.c struct device_attribute *dattr = to_dev_attr(attr); attr 366 drivers/mfd/lm3533-core.c umode_t mode = attr->mode; attr 80 drivers/mfd/pcf50633-core.c static ssize_t show_dump_regs(struct device *dev, struct device_attribute *attr, attr 112 drivers/mfd/pcf50633-core.c struct device_attribute *attr, char *buf) attr 129 drivers/mfd/pcf50633-core.c &dev_attr_dump_regs.attr, attr 130 drivers/mfd/pcf50633-core.c &dev_attr_resume_reason.attr, attr 1208 drivers/mfd/sm501.c struct device_attribute *attr, char *buff) attr 626 drivers/mfd/timberdale.c static ssize_t show_fw_ver(struct device *dev, struct device_attribute *attr, attr 92 drivers/mfd/tps65911-comparator.c struct device_attribute *attr, char *buf) attr 95 drivers/mfd/tps65911-comparator.c struct attribute comp_attr = attr->attr; attr 21 drivers/mfd/ucb1x00-assabet.c static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \ attr 42 drivers/mfd/wm831x-otp.c struct device_attribute *attr, char *buf) attr 411 drivers/misc/ad525x_dpot.c struct device_attribute *attr, attr 444 drivers/misc/ad525x_dpot.c struct device_attribute *attr, attr 483 drivers/misc/ad525x_dpot.c struct device_attribute *attr, attr 499 drivers/misc/ad525x_dpot.c struct device_attribute *attr, char *buf) \ attr 501 drivers/misc/ad525x_dpot.c return sysfs_show_reg(dev, attr, buf, _reg); \ attr 506 drivers/misc/ad525x_dpot.c struct device_attribute *attr, \ attr 509 drivers/misc/ad525x_dpot.c return sysfs_set_reg(dev, attr, buf, count, _reg); \ attr 558 drivers/misc/ad525x_dpot.c &dev_attr_rdac0.attr, attr 559 drivers/misc/ad525x_dpot.c &dev_attr_rdac1.attr, attr 560 drivers/misc/ad525x_dpot.c &dev_attr_rdac2.attr, attr 561 drivers/misc/ad525x_dpot.c &dev_attr_rdac3.attr, attr 562 drivers/misc/ad525x_dpot.c &dev_attr_rdac4.attr, attr 563 drivers/misc/ad525x_dpot.c &dev_attr_rdac5.attr, attr 568 drivers/misc/ad525x_dpot.c &dev_attr_eeprom0.attr, attr 569 drivers/misc/ad525x_dpot.c &dev_attr_eeprom1.attr, attr 570 drivers/misc/ad525x_dpot.c &dev_attr_eeprom2.attr, attr 571 drivers/misc/ad525x_dpot.c &dev_attr_eeprom3.attr, attr 572 drivers/misc/ad525x_dpot.c &dev_attr_eeprom4.attr, attr 573 drivers/misc/ad525x_dpot.c &dev_attr_eeprom5.attr, attr 578 drivers/misc/ad525x_dpot.c &dev_attr_otp0.attr, attr 579 drivers/misc/ad525x_dpot.c &dev_attr_otp1.attr, attr 580 drivers/misc/ad525x_dpot.c &dev_attr_otp2.attr, attr 581 drivers/misc/ad525x_dpot.c &dev_attr_otp3.attr, attr 582 drivers/misc/ad525x_dpot.c &dev_attr_otp4.attr, attr 583 drivers/misc/ad525x_dpot.c &dev_attr_otp5.attr, attr 588 drivers/misc/ad525x_dpot.c &dev_attr_otp0en.attr, attr 589 drivers/misc/ad525x_dpot.c &dev_attr_otp1en.attr, attr 590 drivers/misc/ad525x_dpot.c &dev_attr_otp2en.attr, attr 591 drivers/misc/ad525x_dpot.c &dev_attr_otp3en.attr, attr 592 drivers/misc/ad525x_dpot.c &dev_attr_otp4en.attr, attr 593 drivers/misc/ad525x_dpot.c &dev_attr_otp5en.attr, attr 598 drivers/misc/ad525x_dpot.c &dev_attr_tolerance0.attr, attr 599 drivers/misc/ad525x_dpot.c &dev_attr_tolerance1.attr, attr 600 drivers/misc/ad525x_dpot.c &dev_attr_tolerance2.attr, attr 601 drivers/misc/ad525x_dpot.c &dev_attr_tolerance3.attr, attr 602 drivers/misc/ad525x_dpot.c &dev_attr_tolerance4.attr, attr 603 drivers/misc/ad525x_dpot.c &dev_attr_tolerance5.attr, attr 611 drivers/misc/ad525x_dpot.c struct device_attribute *attr, \ attr 614 drivers/misc/ad525x_dpot.c return sysfs_do_cmd(dev, attr, buf, count, _cmd); \ attr 624 drivers/misc/ad525x_dpot.c &dev_attr_inc_all.attr, attr 625 drivers/misc/ad525x_dpot.c &dev_attr_dec_all.attr, attr 626 drivers/misc/ad525x_dpot.c &dev_attr_inc_all_6db.attr, attr 627 drivers/misc/ad525x_dpot.c &dev_attr_dec_all_6db.attr, attr 33 drivers/misc/apds9802als.c struct device_attribute *attr, char *buf) attr 67 drivers/misc/apds9802als.c struct device_attribute *attr, char *buf) attr 109 drivers/misc/apds9802als.c struct device_attribute *attr, const char *buf, size_t count) attr 183 drivers/misc/apds9802als.c &dev_attr_lux0_sensor_range.attr, attr 184 drivers/misc/apds9802als.c &dev_attr_lux0_input.attr, attr 623 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 654 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 662 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 671 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 679 drivers/misc/apds990x.c struct device_attribute *attr, attr 699 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 711 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 744 drivers/misc/apds990x.c struct device_attribute *attr, attr 770 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 787 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 795 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 803 drivers/misc/apds990x.c struct device_attribute *attr, attr 836 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 845 drivers/misc/apds990x.c struct device_attribute *attr, attr 864 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 874 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 882 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 916 drivers/misc/apds990x.c struct device_attribute *attr, attr 928 drivers/misc/apds990x.c struct device_attribute *attr, attr 948 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 956 drivers/misc/apds990x.c struct device_attribute *attr, attr 984 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 991 drivers/misc/apds990x.c struct device_attribute *attr, attr 1021 drivers/misc/apds990x.c struct device_attribute *attr, char *buf) attr 1031 drivers/misc/apds990x.c &dev_attr_lux0_calibscale.attr, attr 1032 drivers/misc/apds990x.c &dev_attr_lux0_calibscale_default.attr, attr 1033 drivers/misc/apds990x.c &dev_attr_lux0_input.attr, attr 1034 drivers/misc/apds990x.c &dev_attr_lux0_sensor_range.attr, attr 1035 drivers/misc/apds990x.c &dev_attr_lux0_rate.attr, attr 1036 drivers/misc/apds990x.c &dev_attr_lux0_rate_avail.attr, attr 1037 drivers/misc/apds990x.c &dev_attr_lux0_thresh_above_value.attr, attr 1038 drivers/misc/apds990x.c &dev_attr_lux0_thresh_below_value.attr, attr 1039 drivers/misc/apds990x.c &dev_attr_prox0_raw_en.attr, attr 1040 drivers/misc/apds990x.c &dev_attr_prox0_raw.attr, attr 1041 drivers/misc/apds990x.c &dev_attr_prox0_sensor_range.attr, attr 1042 drivers/misc/apds990x.c &dev_attr_prox0_thresh_above_value.attr, attr 1043 drivers/misc/apds990x.c &dev_attr_prox0_reporting_mode.attr, attr 1044 drivers/misc/apds990x.c &dev_attr_prox0_reporting_mode_avail.attr, attr 1045 drivers/misc/apds990x.c &dev_attr_chip_id.attr, attr 1046 drivers/misc/apds990x.c &dev_attr_power_state.attr, attr 630 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 673 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 679 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 702 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 708 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 740 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 752 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 767 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 773 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 784 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 791 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 808 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 826 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 844 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 851 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 875 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 883 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 903 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 910 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 930 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 937 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 943 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 955 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 988 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 999 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 1006 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 1033 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 1040 drivers/misc/bh1770glc.c struct device_attribute *attr, char *buf) attr 1075 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 1086 drivers/misc/bh1770glc.c struct device_attribute *attr, attr 1139 drivers/misc/bh1770glc.c &dev_attr_lux0_calibscale.attr, attr 1140 drivers/misc/bh1770glc.c &dev_attr_lux0_calibscale_default.attr, attr 1141 drivers/misc/bh1770glc.c &dev_attr_lux0_input.attr, attr 1142 drivers/misc/bh1770glc.c &dev_attr_lux0_sensor_range.attr, attr 1143 drivers/misc/bh1770glc.c &dev_attr_lux0_rate.attr, attr 1144 drivers/misc/bh1770glc.c &dev_attr_lux0_rate_avail.attr, attr 1145 drivers/misc/bh1770glc.c &dev_attr_lux0_thresh_above_value.attr, attr 1146 drivers/misc/bh1770glc.c &dev_attr_lux0_thresh_below_value.attr, attr 1147 drivers/misc/bh1770glc.c &dev_attr_prox0_raw.attr, attr 1148 drivers/misc/bh1770glc.c &dev_attr_prox0_sensor_range.attr, attr 1149 drivers/misc/bh1770glc.c &dev_attr_prox0_raw_en.attr, attr 1150 drivers/misc/bh1770glc.c &dev_attr_prox0_thresh_above_count.attr, attr 1151 drivers/misc/bh1770glc.c &dev_attr_prox0_rate_above.attr, attr 1152 drivers/misc/bh1770glc.c &dev_attr_prox0_rate_below.attr, attr 1153 drivers/misc/bh1770glc.c &dev_attr_prox0_rate_avail.attr, attr 1154 drivers/misc/bh1770glc.c &dev_attr_prox0_thresh_above0_value.attr, attr 1155 drivers/misc/bh1770glc.c &dev_attr_prox0_thresh_above1_value.attr, attr 1156 drivers/misc/bh1770glc.c &dev_attr_chip_id.attr, attr 1157 drivers/misc/bh1770glc.c &dev_attr_power_state.attr, attr 304 drivers/misc/c2port/core.c struct device_attribute *attr, char *buf) attr 313 drivers/misc/c2port/core.c struct device_attribute *attr, char *buf) attr 323 drivers/misc/c2port/core.c struct device_attribute *attr, char *buf) attr 333 drivers/misc/c2port/core.c struct device_attribute *attr, char *buf) attr 342 drivers/misc/c2port/core.c static ssize_t access_show(struct device *dev, struct device_attribute *attr, attr 350 drivers/misc/c2port/core.c static ssize_t access_store(struct device *dev, struct device_attribute *attr, attr 380 drivers/misc/c2port/core.c struct device_attribute *attr, attr 417 drivers/misc/c2port/core.c struct device_attribute *attr, char *buf) attr 454 drivers/misc/c2port/core.c struct device_attribute *attr, char *buf) attr 475 drivers/misc/c2port/core.c struct device_attribute *attr, char *buf) attr 519 drivers/misc/c2port/core.c struct device_attribute *attr, attr 603 drivers/misc/c2port/core.c struct device_attribute *attr, attr 717 drivers/misc/c2port/core.c struct bin_attribute *attr, attr 832 drivers/misc/c2port/core.c struct bin_attribute *attr, attr 859 drivers/misc/c2port/core.c &dev_attr_name.attr, attr 860 drivers/misc/c2port/core.c &dev_attr_flash_blocks_num.attr, attr 861 drivers/misc/c2port/core.c &dev_attr_flash_block_size.attr, attr 862 drivers/misc/c2port/core.c &dev_attr_flash_size.attr, attr 863 drivers/misc/c2port/core.c &dev_attr_access.attr, attr 864 drivers/misc/c2port/core.c &dev_attr_reset.attr, attr 865 drivers/misc/c2port/core.c &dev_attr_dev_id.attr, attr 866 drivers/misc/c2port/core.c &dev_attr_rev_id.attr, attr 867 drivers/misc/c2port/core.c &dev_attr_flash_access.attr, attr 868 drivers/misc/c2port/core.c &dev_attr_flash_erase.attr, attr 171 drivers/misc/cxl/cxllib.c struct cxllib_pe_attributes *attr) attr 179 drivers/misc/cxl/cxllib.c attr->sr = cxl_calculate_sr(false, attr 183 drivers/misc/cxl/cxllib.c attr->lpid = mfspr(SPRN_LPID); attr 192 drivers/misc/cxl/cxllib.c attr->pid = mm->context.id; attr 194 drivers/misc/cxl/cxllib.c attr->tid = task->thread.tidr; attr 196 drivers/misc/cxl/cxllib.c attr->pid = 0; attr 197 drivers/misc/cxl/cxllib.c attr->tid = 0; attr 18 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 28 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 37 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 46 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 57 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 78 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 87 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 123 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 137 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 161 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 170 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 201 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 210 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 219 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 237 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 248 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 271 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 280 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 289 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 317 drivers/misc/cxl/sysfs.c struct device_attribute *attr, char *buf) attr 330 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 346 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 375 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 387 drivers/misc/cxl/sysfs.c static ssize_t mode_store(struct device *device, struct device_attribute *attr, attr 433 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 440 drivers/misc/cxl/sysfs.c struct device_attribute *attr, attr 474 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 484 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 498 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 517 drivers/misc/cxl/sysfs.c struct kobj_attribute *attr, char *buf) attr 525 drivers/misc/cxl/sysfs.c struct kobj_attribute *attr, char *buf) attr 533 drivers/misc/cxl/sysfs.c struct kobj_attribute *attr, char *buf) attr 568 drivers/misc/cxl/sysfs.c &vendor_attribute.attr, attr 569 drivers/misc/cxl/sysfs.c &device_attribute.attr, attr 570 drivers/misc/cxl/sysfs.c &class_attribute.attr, attr 619 drivers/misc/cxl/sysfs.c cr->config_attr.attr.name = "config"; attr 620 drivers/misc/cxl/sysfs.c cr->config_attr.attr.mode = S_IRUSR; attr 660 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 681 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 690 drivers/misc/cxl/sysfs.c sysfs_attr_init(&afu->attr_eb.attr); attr 692 drivers/misc/cxl/sysfs.c afu->attr_eb.attr.name = "afu_err_buff"; attr 693 drivers/misc/cxl/sysfs.c afu->attr_eb.attr.mode = S_IRUGO; attr 726 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 740 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 752 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 766 drivers/misc/cxl/sysfs.c if (cxl_ops->support_attributes(dev_attr->attr.name, attr 54 drivers/misc/ds1682.c static ssize_t ds1682_show(struct device *dev, struct device_attribute *attr, attr 57 drivers/misc/ds1682.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 63 drivers/misc/ds1682.c dev_dbg(dev, "ds1682_show() called on %s\n", attr->attr.name); attr 97 drivers/misc/ds1682.c static ssize_t ds1682_store(struct device *dev, struct device_attribute *attr, attr 100 drivers/misc/ds1682.c struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); attr 106 drivers/misc/ds1682.c dev_dbg(dev, "ds1682_store() called on %s\n", attr->attr.name); attr 145 drivers/misc/ds1682.c &sensor_dev_attr_elapsed_time.dev_attr.attr, attr 146 drivers/misc/ds1682.c &sensor_dev_attr_alarm_time.dev_attr.attr, attr 147 drivers/misc/ds1682.c &sensor_dev_attr_event_count.dev_attr.attr, attr 156 drivers/misc/ds1682.c struct bin_attribute *attr, attr 174 drivers/misc/ds1682.c struct bin_attribute *attr, attr 191 drivers/misc/ds1682.c .attr = { attr 164 drivers/misc/eeprom/ee1004.c .attr = { attr 109 drivers/misc/eeprom/eeprom.c .attr = { attr 327 drivers/misc/eeprom/eeprom_93xx46.c struct device_attribute *attr, attr 881 drivers/misc/eeprom/idt_89hpesx.c struct bin_attribute *attr, attr 905 drivers/misc/eeprom/idt_89hpesx.c struct bin_attribute *attr, attr 1334 drivers/misc/eeprom/idt_89hpesx.c pdev->ee_file->attr.mode &= ~0200; attr 125 drivers/misc/eeprom/max6875.c .attr = { attr 423 drivers/misc/enclosure.c struct device_attribute *attr, char *buf) attr 432 drivers/misc/enclosure.c struct device_attribute *attr, attr 444 drivers/misc/enclosure.c &dev_attr_components.attr, attr 445 drivers/misc/enclosure.c &dev_attr_id.attr, attr 475 drivers/misc/enclosure.c struct device_attribute *attr, char *buf) attr 486 drivers/misc/enclosure.c struct device_attribute *attr, attr 499 drivers/misc/enclosure.c struct device_attribute *attr,char *buf) attr 510 drivers/misc/enclosure.c struct device_attribute *attr, attr 533 drivers/misc/enclosure.c struct device_attribute *attr, char *buf) attr 544 drivers/misc/enclosure.c struct device_attribute *attr, attr 557 drivers/misc/enclosure.c struct device_attribute *attr, char *buf) attr 568 drivers/misc/enclosure.c struct device_attribute *attr, attr 581 drivers/misc/enclosure.c struct device_attribute *attr, attr 598 drivers/misc/enclosure.c struct device_attribute *attr, attr 620 drivers/misc/enclosure.c struct device_attribute *attr, char *buf) attr 628 drivers/misc/enclosure.c struct device_attribute *attr, char *buf) attr 656 drivers/misc/enclosure.c &dev_attr_fault.attr, attr 657 drivers/misc/enclosure.c &dev_attr_status.attr, attr 658 drivers/misc/enclosure.c &dev_attr_active.attr, attr 659 drivers/misc/enclosure.c &dev_attr_locate.attr, attr 660 drivers/misc/enclosure.c &dev_attr_power_status.attr, attr 661 drivers/misc/enclosure.c &dev_attr_type.attr, attr 662 drivers/misc/enclosure.c &dev_attr_slot.attr, attr 54 drivers/misc/fastrpc.c #define FASTRPC_BUILD_SCALARS(attr, method, in, out, oin, oout) \ attr 55 drivers/misc/fastrpc.c (((attr & 0x07) << 29) | \ attr 39 drivers/misc/genwqe/card_sysfs.c static ssize_t status_show(struct device *dev, struct device_attribute *attr, attr 49 drivers/misc/genwqe/card_sysfs.c static ssize_t appid_show(struct device *dev, struct device_attribute *attr, attr 60 drivers/misc/genwqe/card_sysfs.c static ssize_t version_show(struct device *dev, struct device_attribute *attr, attr 73 drivers/misc/genwqe/card_sysfs.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 85 drivers/misc/genwqe/card_sysfs.c static ssize_t tempsens_show(struct device *dev, struct device_attribute *attr, attr 97 drivers/misc/genwqe/card_sysfs.c struct device_attribute *attr, attr 109 drivers/misc/genwqe/card_sysfs.c struct device_attribute *attr, attr 121 drivers/misc/genwqe/card_sysfs.c struct device_attribute *attr, attr 149 drivers/misc/genwqe/card_sysfs.c struct device_attribute *attr, char *buf) attr 165 drivers/misc/genwqe/card_sysfs.c struct device_attribute *attr, char *buf) attr 185 drivers/misc/genwqe/card_sysfs.c struct device_attribute *attr, attr 211 drivers/misc/genwqe/card_sysfs.c struct device_attribute *attr, attr 239 drivers/misc/genwqe/card_sysfs.c &dev_attr_tempsens.attr, attr 240 drivers/misc/genwqe/card_sysfs.c &dev_attr_next_bitstream.attr, attr 241 drivers/misc/genwqe/card_sysfs.c &dev_attr_curr_bitstream.attr, attr 242 drivers/misc/genwqe/card_sysfs.c &dev_attr_base_clock.attr, attr 243 drivers/misc/genwqe/card_sysfs.c &dev_attr_type.attr, attr 244 drivers/misc/genwqe/card_sysfs.c &dev_attr_version.attr, attr 245 drivers/misc/genwqe/card_sysfs.c &dev_attr_appid.attr, attr 246 drivers/misc/genwqe/card_sysfs.c &dev_attr_status.attr, attr 247 drivers/misc/genwqe/card_sysfs.c &dev_attr_freerunning_timer.attr, attr 248 drivers/misc/genwqe/card_sysfs.c &dev_attr_queue_working_time.attr, attr 249 drivers/misc/genwqe/card_sysfs.c &dev_attr_reload_bitstream.attr, attr 254 drivers/misc/genwqe/card_sysfs.c &dev_attr_type.attr, attr 255 drivers/misc/genwqe/card_sysfs.c &dev_attr_version.attr, attr 256 drivers/misc/genwqe/card_sysfs.c &dev_attr_appid.attr, attr 257 drivers/misc/genwqe/card_sysfs.c &dev_attr_status.attr, attr 258 drivers/misc/genwqe/card_sysfs.c &dev_attr_freerunning_timer.attr, attr 259 drivers/misc/genwqe/card_sysfs.c &dev_attr_queue_working_time.attr, attr 270 drivers/misc/genwqe/card_sysfs.c struct attribute *attr, int n) attr 275 drivers/misc/genwqe/card_sysfs.c umode_t mode = attr->mode; attr 281 drivers/misc/genwqe/card_sysfs.c if (genwqe_normal_attributes[j] == attr) attr 200 drivers/misc/habanalabs/goya/goyaP.h long goya_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr); attr 201 drivers/misc/habanalabs/goya/goyaP.h long goya_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr); attr 202 drivers/misc/habanalabs/goya/goyaP.h long goya_get_current(struct hl_device *hdev, int sensor_index, u32 attr); attr 203 drivers/misc/habanalabs/goya/goyaP.h long goya_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr); attr 204 drivers/misc/habanalabs/goya/goyaP.h long goya_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr); attr 205 drivers/misc/habanalabs/goya/goyaP.h void goya_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, attr 35 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t mme_clk_show(struct device *dev, struct device_attribute *attr, attr 52 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t mme_clk_store(struct device *dev, struct device_attribute *attr, attr 84 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t tpc_clk_show(struct device *dev, struct device_attribute *attr, attr 101 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t tpc_clk_store(struct device *dev, struct device_attribute *attr, attr 133 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t ic_clk_show(struct device *dev, struct device_attribute *attr, attr 150 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t ic_clk_store(struct device *dev, struct device_attribute *attr, attr 183 drivers/misc/habanalabs/goya/goya_hwmgr.c struct device_attribute *attr, char *buf) attr 200 drivers/misc/habanalabs/goya/goya_hwmgr.c struct device_attribute *attr, char *buf) attr 217 drivers/misc/habanalabs/goya/goya_hwmgr.c struct device_attribute *attr, char *buf) attr 234 drivers/misc/habanalabs/goya/goya_hwmgr.c struct device_attribute *attr, char *buf) attr 248 drivers/misc/habanalabs/goya/goya_hwmgr.c struct device_attribute *attr, const char *buf, size_t count) attr 302 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t high_pll_show(struct device *dev, struct device_attribute *attr, attr 313 drivers/misc/habanalabs/goya/goya_hwmgr.c static ssize_t high_pll_store(struct device *dev, struct device_attribute *attr, attr 348 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_high_pll.attr, attr 349 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_ic_clk.attr, attr 350 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_ic_clk_curr.attr, attr 351 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_mme_clk.attr, attr 352 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_mme_clk_curr.attr, attr 353 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_pm_mng_profile.attr, attr 354 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_tpc_clk.attr, attr 355 drivers/misc/habanalabs/goya/goya_hwmgr.c &dev_attr_tpc_clk_curr.attr, attr 1560 drivers/misc/habanalabs/habanalabs.h long hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr); attr 1561 drivers/misc/habanalabs/habanalabs.h long hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr); attr 1562 drivers/misc/habanalabs/habanalabs.h long hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr); attr 1563 drivers/misc/habanalabs/habanalabs.h long hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr); attr 1564 drivers/misc/habanalabs/habanalabs.h long hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr); attr 1565 drivers/misc/habanalabs/habanalabs.h void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, attr 113 drivers/misc/habanalabs/hwmon.c u32 attr, int channel, long *val) attr 122 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 133 drivers/misc/habanalabs/hwmon.c *val = hl_get_temperature(hdev, channel, attr); attr 136 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 145 drivers/misc/habanalabs/hwmon.c *val = hl_get_voltage(hdev, channel, attr); attr 148 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 157 drivers/misc/habanalabs/hwmon.c *val = hl_get_current(hdev, channel, attr); attr 160 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 168 drivers/misc/habanalabs/hwmon.c *val = hl_get_fan_speed(hdev, channel, attr); attr 171 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 178 drivers/misc/habanalabs/hwmon.c *val = hl_get_pwm_info(hdev, channel, attr); attr 187 drivers/misc/habanalabs/hwmon.c u32 attr, int channel, long val) attr 196 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 203 drivers/misc/habanalabs/hwmon.c hl_set_pwm_info(hdev, channel, attr, val); attr 212 drivers/misc/habanalabs/hwmon.c u32 attr, int channel) attr 216 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 226 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 234 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 242 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 250 drivers/misc/habanalabs/hwmon.c switch (attr) { attr 268 drivers/misc/habanalabs/hwmon.c long hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr) attr 279 drivers/misc/habanalabs/hwmon.c pkt.type = __cpu_to_le16(attr); attr 294 drivers/misc/habanalabs/hwmon.c long hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr) attr 305 drivers/misc/habanalabs/hwmon.c pkt.type = __cpu_to_le16(attr); attr 320 drivers/misc/habanalabs/hwmon.c long hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr) attr 331 drivers/misc/habanalabs/hwmon.c pkt.type = __cpu_to_le16(attr); attr 346 drivers/misc/habanalabs/hwmon.c long hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr) attr 357 drivers/misc/habanalabs/hwmon.c pkt.type = __cpu_to_le16(attr); attr 372 drivers/misc/habanalabs/hwmon.c long hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr) attr 383 drivers/misc/habanalabs/hwmon.c pkt.type = __cpu_to_le16(attr); attr 398 drivers/misc/habanalabs/hwmon.c void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, attr 409 drivers/misc/habanalabs/hwmon.c pkt.type = __cpu_to_le16(attr); attr 105 drivers/misc/habanalabs/sysfs.c static ssize_t uboot_ver_show(struct device *dev, struct device_attribute *attr, attr 114 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, char *buf) attr 121 drivers/misc/habanalabs/sysfs.c static ssize_t armcp_ver_show(struct device *dev, struct device_attribute *attr, attr 129 drivers/misc/habanalabs/sysfs.c static ssize_t cpld_ver_show(struct device *dev, struct device_attribute *attr, attr 139 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, char *buf) attr 147 drivers/misc/habanalabs/sysfs.c static ssize_t fuse_ver_show(struct device *dev, struct device_attribute *attr, attr 156 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, char *buf) attr 164 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, char *buf) attr 172 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, const char *buf, attr 193 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, attr 214 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, char *buf) attr 232 drivers/misc/habanalabs/sysfs.c static ssize_t pci_addr_show(struct device *dev, struct device_attribute *attr, attr 244 drivers/misc/habanalabs/sysfs.c static ssize_t status_show(struct device *dev, struct device_attribute *attr, attr 261 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, char *buf) attr 269 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, char *buf) attr 276 drivers/misc/habanalabs/sysfs.c static ssize_t max_power_show(struct device *dev, struct device_attribute *attr, attr 291 drivers/misc/habanalabs/sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 317 drivers/misc/habanalabs/sysfs.c struct bin_attribute *attr, char *buf, loff_t offset, attr 362 drivers/misc/habanalabs/sysfs.c .attr = {.name = "eeprom", .mode = (0444)}, attr 368 drivers/misc/habanalabs/sysfs.c &dev_attr_armcp_kernel_ver.attr, attr 369 drivers/misc/habanalabs/sysfs.c &dev_attr_armcp_ver.attr, attr 370 drivers/misc/habanalabs/sysfs.c &dev_attr_cpld_ver.attr, attr 371 drivers/misc/habanalabs/sysfs.c &dev_attr_device_type.attr, attr 372 drivers/misc/habanalabs/sysfs.c &dev_attr_fuse_ver.attr, attr 373 drivers/misc/habanalabs/sysfs.c &dev_attr_hard_reset.attr, attr 374 drivers/misc/habanalabs/sysfs.c &dev_attr_hard_reset_cnt.attr, attr 375 drivers/misc/habanalabs/sysfs.c &dev_attr_infineon_ver.attr, attr 376 drivers/misc/habanalabs/sysfs.c &dev_attr_max_power.attr, attr 377 drivers/misc/habanalabs/sysfs.c &dev_attr_pci_addr.attr, attr 378 drivers/misc/habanalabs/sysfs.c &dev_attr_preboot_btl_ver.attr, attr 379 drivers/misc/habanalabs/sysfs.c &dev_attr_soft_reset.attr, attr 380 drivers/misc/habanalabs/sysfs.c &dev_attr_soft_reset_cnt.attr, attr 381 drivers/misc/habanalabs/sysfs.c &dev_attr_status.attr, attr 382 drivers/misc/habanalabs/sysfs.c &dev_attr_thermal_ver.attr, attr 383 drivers/misc/habanalabs/sysfs.c &dev_attr_uboot_ver.attr, attr 52 drivers/misc/hmc6352.c struct device_attribute *attr, const char *buf, size_t count) attr 58 drivers/misc/hmc6352.c struct device_attribute *attr, const char *buf, size_t count) attr 64 drivers/misc/hmc6352.c struct device_attribute *attr, char *buf) attr 93 drivers/misc/hmc6352.c &dev_attr_heading0_input.attr, attr 94 drivers/misc/hmc6352.c &dev_attr_calibration.attr, attr 95 drivers/misc/hmc6352.c &dev_attr_power_state.attr, attr 346 drivers/misc/ics932s401.c &dev_attr_spread_enabled.attr, attr 347 drivers/misc/ics932s401.c &dev_attr_cpu_clock_selection.attr, attr 348 drivers/misc/ics932s401.c &dev_attr_cpu_clock.attr, attr 349 drivers/misc/ics932s401.c &dev_attr_src_clock_selection.attr, attr 350 drivers/misc/ics932s401.c &dev_attr_src_clock.attr, attr 351 drivers/misc/ics932s401.c &dev_attr_pci_clock_selection.attr, attr 352 drivers/misc/ics932s401.c &dev_attr_pci_clock.attr, attr 353 drivers/misc/ics932s401.c &dev_attr_usb_clock.attr, attr 354 drivers/misc/ics932s401.c &dev_attr_ref_clock.attr, attr 355 drivers/misc/ics932s401.c &dev_attr_cpu_spread.attr, attr 356 drivers/misc/ics932s401.c &dev_attr_src_spread.attr, attr 185 drivers/misc/isl29003.c struct device_attribute *attr, char *buf) attr 193 drivers/misc/isl29003.c struct device_attribute *attr, attr 220 drivers/misc/isl29003.c struct device_attribute *attr, attr 229 drivers/misc/isl29003.c struct device_attribute *attr, attr 255 drivers/misc/isl29003.c struct device_attribute *attr, char *buf) attr 263 drivers/misc/isl29003.c struct device_attribute *attr, const char *buf, size_t count) attr 289 drivers/misc/isl29003.c struct device_attribute *attr, attr 298 drivers/misc/isl29003.c struct device_attribute *attr, attr 322 drivers/misc/isl29003.c struct device_attribute *attr, char *buf) attr 336 drivers/misc/isl29003.c &dev_attr_range.attr, attr 337 drivers/misc/isl29003.c &dev_attr_resolution.attr, attr 338 drivers/misc/isl29003.c &dev_attr_mode.attr, attr 339 drivers/misc/isl29003.c &dev_attr_power_state.attr, attr 340 drivers/misc/isl29003.c &dev_attr_lux.attr, attr 25 drivers/misc/isl29020.c struct device_attribute *attr, char *buf) attr 39 drivers/misc/isl29020.c struct device_attribute *attr, char *buf) attr 75 drivers/misc/isl29020.c struct device_attribute *attr, const char *buf, size_t count) attr 132 drivers/misc/isl29020.c &dev_attr_lux0_sensor_range.attr, attr 133 drivers/misc/isl29020.c &dev_attr_lux0_input.attr, attr 766 drivers/misc/lis3lv02d/lis3lv02d.c struct device_attribute *attr, char *buf) attr 794 drivers/misc/lis3lv02d/lis3lv02d.c struct device_attribute *attr, char *buf) attr 807 drivers/misc/lis3lv02d/lis3lv02d.c struct device_attribute *attr, char *buf) attr 816 drivers/misc/lis3lv02d/lis3lv02d.c struct device_attribute *attr, const char *buf, attr 840 drivers/misc/lis3lv02d/lis3lv02d.c &dev_attr_selftest.attr, attr 841 drivers/misc/lis3lv02d/lis3lv02d.c &dev_attr_position.attr, attr 842 drivers/misc/lis3lv02d/lis3lv02d.c &dev_attr_rate.attr, attr 795 drivers/misc/mei/bus.c &dev_attr_name.attr, attr 796 drivers/misc/mei/bus.c &dev_attr_uuid.attr, attr 797 drivers/misc/mei/bus.c &dev_attr_version.attr, attr 798 drivers/misc/mei/bus.c &dev_attr_modalias.attr, attr 713 drivers/misc/mei/main.c struct device_attribute *attr, char *buf) attr 745 drivers/misc/mei/main.c struct device_attribute *attr, char *buf) attr 768 drivers/misc/mei/main.c struct device_attribute *attr, char *buf) attr 775 drivers/misc/mei/main.c struct device_attribute *attr, char *buf) attr 788 drivers/misc/mei/main.c struct device_attribute *attr, attr 821 drivers/misc/mei/main.c struct device_attribute *attr, char *buf) attr 848 drivers/misc/mei/main.c struct device_attribute *attr, char *buf) attr 884 drivers/misc/mei/main.c &dev_attr_fw_status.attr, attr 885 drivers/misc/mei/main.c &dev_attr_hbm_ver.attr, attr 886 drivers/misc/mei/main.c &dev_attr_hbm_ver_drv.attr, attr 887 drivers/misc/mei/main.c &dev_attr_tx_queue_limit.attr, attr 888 drivers/misc/mei/main.c &dev_attr_fw_ver.attr, attr 889 drivers/misc/mei/main.c &dev_attr_dev_state.attr, attr 18 drivers/misc/mic/bus/mic_bus.c struct device_attribute *attr, char *buf) attr 26 drivers/misc/mic/bus/mic_bus.c struct device_attribute *attr, char *buf) attr 34 drivers/misc/mic/bus/mic_bus.c struct device_attribute *attr, char *buf) attr 43 drivers/misc/mic/bus/mic_bus.c &dev_attr_device.attr, attr 44 drivers/misc/mic/bus/mic_bus.c &dev_attr_vendor.attr, attr 45 drivers/misc/mic/bus/mic_bus.c &dev_attr_modalias.attr, attr 17 drivers/misc/mic/bus/scif_bus.c struct device_attribute *attr, char *buf) attr 26 drivers/misc/mic/bus/scif_bus.c struct device_attribute *attr, char *buf) attr 35 drivers/misc/mic/bus/scif_bus.c struct device_attribute *attr, char *buf) attr 45 drivers/misc/mic/bus/scif_bus.c &dev_attr_device.attr, attr 46 drivers/misc/mic/bus/scif_bus.c &dev_attr_vendor.attr, attr 47 drivers/misc/mic/bus/scif_bus.c &dev_attr_modalias.attr, attr 17 drivers/misc/mic/bus/vop_bus.c struct device_attribute *attr, char *buf) attr 26 drivers/misc/mic/bus/vop_bus.c struct device_attribute *attr, char *buf) attr 35 drivers/misc/mic/bus/vop_bus.c struct device_attribute *attr, char *buf) attr 45 drivers/misc/mic/bus/vop_bus.c &dev_attr_device.attr, attr 46 drivers/misc/mic/bus/vop_bus.c &dev_attr_vendor.attr, attr 47 drivers/misc/mic/bus/vop_bus.c &dev_attr_modalias.attr, attr 55 drivers/misc/mic/cosm/cosm_sysfs.c family_show(struct device *dev, struct device_attribute *attr, char *buf) attr 67 drivers/misc/mic/cosm/cosm_sysfs.c stepping_show(struct device *dev, struct device_attribute *attr, char *buf) attr 79 drivers/misc/mic/cosm/cosm_sysfs.c state_show(struct device *dev, struct device_attribute *attr, char *buf) attr 91 drivers/misc/mic/cosm/cosm_sysfs.c state_store(struct device *dev, struct device_attribute *attr, attr 122 drivers/misc/mic/cosm/cosm_sysfs.c struct device_attribute *attr, char *buf) attr 136 drivers/misc/mic/cosm/cosm_sysfs.c struct device_attribute *attr, char *buf) attr 148 drivers/misc/mic/cosm/cosm_sysfs.c struct device_attribute *attr, attr 175 drivers/misc/mic/cosm/cosm_sysfs.c cmdline_show(struct device *dev, struct device_attribute *attr, char *buf) attr 191 drivers/misc/mic/cosm/cosm_sysfs.c cmdline_store(struct device *dev, struct device_attribute *attr, attr 221 drivers/misc/mic/cosm/cosm_sysfs.c firmware_show(struct device *dev, struct device_attribute *attr, char *buf) attr 237 drivers/misc/mic/cosm/cosm_sysfs.c firmware_store(struct device *dev, struct device_attribute *attr, attr 266 drivers/misc/mic/cosm/cosm_sysfs.c ramdisk_show(struct device *dev, struct device_attribute *attr, char *buf) attr 282 drivers/misc/mic/cosm/cosm_sysfs.c ramdisk_store(struct device *dev, struct device_attribute *attr, attr 312 drivers/misc/mic/cosm/cosm_sysfs.c bootmode_show(struct device *dev, struct device_attribute *attr, char *buf) attr 328 drivers/misc/mic/cosm/cosm_sysfs.c bootmode_store(struct device *dev, struct device_attribute *attr, attr 361 drivers/misc/mic/cosm/cosm_sysfs.c log_buf_addr_show(struct device *dev, struct device_attribute *attr, attr 373 drivers/misc/mic/cosm/cosm_sysfs.c log_buf_addr_store(struct device *dev, struct device_attribute *attr, attr 395 drivers/misc/mic/cosm/cosm_sysfs.c log_buf_len_show(struct device *dev, struct device_attribute *attr, attr 407 drivers/misc/mic/cosm/cosm_sysfs.c log_buf_len_store(struct device *dev, struct device_attribute *attr, attr 429 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_family.attr, attr 430 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_stepping.attr, attr 431 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_state.attr, attr 432 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_shutdown_status.attr, attr 433 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_heartbeat_enable.attr, attr 434 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_cmdline.attr, attr 435 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_firmware.attr, attr 436 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_ramdisk.attr, attr 437 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_bootmode.attr, attr 438 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_log_buf_addr.attr, attr 439 drivers/misc/mic/cosm/cosm_sysfs.c &dev_attr_log_buf_len.attr, attr 14 drivers/misc/ocxl/sysfs.c struct device_attribute *attr, attr 24 drivers/misc/ocxl/sysfs.c struct device_attribute *attr, attr 34 drivers/misc/ocxl/sysfs.c struct device_attribute *attr, attr 45 drivers/misc/ocxl/sysfs.c struct device_attribute *attr, attr 119 drivers/misc/ocxl/sysfs.c sysfs_attr_init(&info->attr_global_mmio.attr); attr 120 drivers/misc/ocxl/sysfs.c info->attr_global_mmio.attr.name = "global_mmio_area"; attr 121 drivers/misc/ocxl/sysfs.c info->attr_global_mmio.attr.mode = 0600; attr 483 drivers/misc/pch_phub.c struct bin_attribute *attr, char *buf, attr 553 drivers/misc/pch_phub.c struct bin_attribute *attr, attr 607 drivers/misc/pch_phub.c static ssize_t show_pch_mac(struct device *dev, struct device_attribute *attr, attr 624 drivers/misc/pch_phub.c static ssize_t store_pch_mac(struct device *dev, struct device_attribute *attr, attr 650 drivers/misc/pch_phub.c .attr = { attr 711 drivers/misc/pch_phub.c &dev_attr_pch_mac.attr); attr 774 drivers/misc/pch_phub.c &dev_attr_pch_mac.attr); attr 791 drivers/misc/pch_phub.c &dev_attr_pch_mac.attr); attr 812 drivers/misc/pch_phub.c sysfs_remove_file(&pdev->dev.kobj, &dev_attr_pch_mac.attr); attr 830 drivers/misc/pch_phub.c sysfs_remove_file(&pdev->dev.kobj, &dev_attr_pch_mac.attr); attr 516 drivers/misc/phantom.c retval = class_create_file(phantom_class, &class_attr_version.attr); attr 542 drivers/misc/phantom.c class_remove_file(phantom_class, &class_attr_version.attr); attr 555 drivers/misc/phantom.c class_remove_file(phantom_class, &class_attr_version.attr); attr 26 drivers/misc/sram.c struct bin_attribute *attr, attr 31 drivers/misc/sram.c part = container_of(attr, struct sram_partition, battr); attr 41 drivers/misc/sram.c struct bin_attribute *attr, attr 46 drivers/misc/sram.c part = container_of(attr, struct sram_partition, battr); attr 79 drivers/misc/sram.c part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, attr 82 drivers/misc/sram.c if (!part->battr.attr.name) attr 85 drivers/misc/sram.c part->battr.attr.mode = S_IRUSR | S_IWUSR; attr 571 drivers/misc/ti-st/st_kim.c struct device_attribute *attr, char *buf) attr 579 drivers/misc/ti-st/st_kim.c struct device_attribute *attr, const char *buf, size_t count) attr 589 drivers/misc/ti-st/st_kim.c struct device_attribute *attr, const char *buf, size_t count) attr 600 drivers/misc/ti-st/st_kim.c struct device_attribute *attr, char *buf) attr 607 drivers/misc/ti-st/st_kim.c struct device_attribute *attr, char *buf) attr 614 drivers/misc/ti-st/st_kim.c struct device_attribute *attr, char *buf) attr 642 drivers/misc/ti-st/st_kim.c &ldisc_install.attr, attr 643 drivers/misc/ti-st/st_kim.c &uart_dev_name.attr, attr 644 drivers/misc/ti-st/st_kim.c &uart_baud_rate.attr, attr 645 drivers/misc/ti-st/st_kim.c &uart_flow_cntrl.attr, attr 138 drivers/misc/tifm_core.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 147 drivers/misc/tifm_core.c &dev_attr_type.attr, attr 178 drivers/misc/tsl2550.c struct device_attribute *attr, char *buf) attr 186 drivers/misc/tsl2550.c struct device_attribute *attr, const char *buf, size_t count) attr 210 drivers/misc/tsl2550.c struct device_attribute *attr, char *buf) attr 218 drivers/misc/tsl2550.c struct device_attribute *attr, const char *buf, size_t count) attr 271 drivers/misc/tsl2550.c struct device_attribute *attr, char *buf) attr 292 drivers/misc/tsl2550.c &dev_attr_power_state.attr, attr 293 drivers/misc/tsl2550.c &dev_attr_operating_mode.attr, attr 294 drivers/misc/tsl2550.c &dev_attr_lux1_input.attr, attr 208 drivers/mmc/core/block.c struct device_attribute *attr, char *buf) attr 228 drivers/mmc/core/block.c struct device_attribute *attr, const char *buf, size_t count) attr 272 drivers/mmc/core/block.c static ssize_t force_ro_show(struct device *dev, struct device_attribute *attr, attr 285 drivers/mmc/core/block.c static ssize_t force_ro_store(struct device *dev, struct device_attribute *attr, attr 2667 drivers/mmc/core/block.c sysfs_attr_init(&md->force_ro.attr); attr 2668 drivers/mmc/core/block.c md->force_ro.attr.name = "force_ro"; attr 2669 drivers/mmc/core/block.c md->force_ro.attr.mode = S_IRUGO | S_IWUSR; attr 2685 drivers/mmc/core/block.c sysfs_attr_init(&md->power_ro_lock.attr); attr 2686 drivers/mmc/core/block.c md->power_ro_lock.attr.mode = mode; attr 2687 drivers/mmc/core/block.c md->power_ro_lock.attr.name = attr 31 drivers/mmc/core/bus.c struct device_attribute *attr, char *buf) attr 51 drivers/mmc/core/bus.c &dev_attr_type.attr, attr 17 drivers/mmc/core/bus.h static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \ attr 796 drivers/mmc/core/mmc.c struct device_attribute *attr, attr 812 drivers/mmc/core/mmc.c struct device_attribute *attr, attr 828 drivers/mmc/core/mmc.c &dev_attr_cid.attr, attr 829 drivers/mmc/core/mmc.c &dev_attr_csd.attr, attr 830 drivers/mmc/core/mmc.c &dev_attr_date.attr, attr 831 drivers/mmc/core/mmc.c &dev_attr_erase_size.attr, attr 832 drivers/mmc/core/mmc.c &dev_attr_preferred_erase_size.attr, attr 833 drivers/mmc/core/mmc.c &dev_attr_fwrev.attr, attr 834 drivers/mmc/core/mmc.c &dev_attr_ffu_capable.attr, attr 835 drivers/mmc/core/mmc.c &dev_attr_hwrev.attr, attr 836 drivers/mmc/core/mmc.c &dev_attr_manfid.attr, attr 837 drivers/mmc/core/mmc.c &dev_attr_name.attr, attr 838 drivers/mmc/core/mmc.c &dev_attr_oemid.attr, attr 839 drivers/mmc/core/mmc.c &dev_attr_prv.attr, attr 840 drivers/mmc/core/mmc.c &dev_attr_rev.attr, attr 841 drivers/mmc/core/mmc.c &dev_attr_pre_eol_info.attr, attr 842 drivers/mmc/core/mmc.c &dev_attr_life_time.attr, attr 843 drivers/mmc/core/mmc.c &dev_attr_serial.attr, attr 844 drivers/mmc/core/mmc.c &dev_attr_enhanced_area_offset.attr, attr 845 drivers/mmc/core/mmc.c &dev_attr_enhanced_area_size.attr, attr 846 drivers/mmc/core/mmc.c &dev_attr_raw_rpmb_size_mult.attr, attr 847 drivers/mmc/core/mmc.c &dev_attr_rel_sectors.attr, attr 848 drivers/mmc/core/mmc.c &dev_attr_ocr.attr, attr 849 drivers/mmc/core/mmc.c &dev_attr_rca.attr, attr 850 drivers/mmc/core/mmc.c &dev_attr_dsr.attr, attr 851 drivers/mmc/core/mmc.c &dev_attr_cmdq_en.attr, attr 695 drivers/mmc/core/sd.c struct device_attribute *attr, attr 711 drivers/mmc/core/sd.c &dev_attr_cid.attr, attr 712 drivers/mmc/core/sd.c &dev_attr_csd.attr, attr 713 drivers/mmc/core/sd.c &dev_attr_scr.attr, attr 714 drivers/mmc/core/sd.c &dev_attr_ssr.attr, attr 715 drivers/mmc/core/sd.c &dev_attr_date.attr, attr 716 drivers/mmc/core/sd.c &dev_attr_erase_size.attr, attr 717 drivers/mmc/core/sd.c &dev_attr_preferred_erase_size.attr, attr 718 drivers/mmc/core/sd.c &dev_attr_fwrev.attr, attr 719 drivers/mmc/core/sd.c &dev_attr_hwrev.attr, attr 720 drivers/mmc/core/sd.c &dev_attr_manfid.attr, attr 721 drivers/mmc/core/sd.c &dev_attr_name.attr, attr 722 drivers/mmc/core/sd.c &dev_attr_oemid.attr, attr 723 drivers/mmc/core/sd.c &dev_attr_serial.attr, attr 724 drivers/mmc/core/sd.c &dev_attr_ocr.attr, attr 725 drivers/mmc/core/sd.c &dev_attr_rca.attr, attr 726 drivers/mmc/core/sd.c &dev_attr_dsr.attr, attr 33 drivers/mmc/core/sdio_bus.c field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 46 drivers/mmc/core/sdio_bus.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) attr 56 drivers/mmc/core/sdio_bus.c &dev_attr_class.attr, attr 57 drivers/mmc/core/sdio_bus.c &dev_attr_vendor.attr, attr 58 drivers/mmc/core/sdio_bus.c &dev_attr_device.attr, attr 59 drivers/mmc/core/sdio_bus.c &dev_attr_modalias.attr, attr 136 drivers/mmc/host/android-goldfish.c struct device_attribute *attr, char *buf) attr 446 drivers/mmc/host/cqhci.c __le32 *attr = (__le32 __force *)desc; attr 448 drivers/mmc/host/cqhci.c *attr = (CQHCI_VALID(1) | attr 307 drivers/mmc/host/omap.c mmc_omap_show_cover_switch(struct device *dev, struct device_attribute *attr, attr 320 drivers/mmc/host/omap.c mmc_omap_show_slot_name(struct device *dev, struct device_attribute *attr, attr 746 drivers/mmc/host/omap_hsmmc.c omap_hsmmc_show_slot_name(struct device *dev, struct device_attribute *attr, attr 644 drivers/mmc/host/renesas_sdhi_core.c const struct soc_device_attribute *attr; attr 655 drivers/mmc/host/renesas_sdhi_core.c attr = soc_device_match(sdhi_quirks_match); attr 656 drivers/mmc/host/renesas_sdhi_core.c if (attr) attr 657 drivers/mmc/host/renesas_sdhi_core.c quirks = attr->data; attr 1456 drivers/mtd/devices/docg3.c struct device_attribute *attr) attr 1461 drivers/mtd/devices/docg3.c floor = attr->attr.name[1] - '0'; attr 1469 drivers/mtd/devices/docg3.c struct device_attribute *attr, char *buf) attr 1471 drivers/mtd/devices/docg3.c struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); attr 1484 drivers/mtd/devices/docg3.c struct device_attribute *attr, char *buf) attr 1486 drivers/mtd/devices/docg3.c struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); attr 1499 drivers/mtd/devices/docg3.c struct device_attribute *attr, attr 1502 drivers/mtd/devices/docg3.c struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); attr 1518 drivers/mtd/devices/docg3.c struct device_attribute *attr, attr 1521 drivers/mtd/devices/docg3.c struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); attr 100 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 139 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 148 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 158 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 167 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 176 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 186 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 195 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 204 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 214 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 223 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 232 drivers/mtd/mtdcore.c struct device_attribute *attr, attr 241 drivers/mtd/mtdcore.c struct device_attribute *attr, attr 260 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 270 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 281 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 291 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 301 drivers/mtd/mtdcore.c struct device_attribute *attr, char *buf) attr 311 drivers/mtd/mtdcore.c &dev_attr_type.attr, attr 312 drivers/mtd/mtdcore.c &dev_attr_flags.attr, attr 313 drivers/mtd/mtdcore.c &dev_attr_size.attr, attr 314 drivers/mtd/mtdcore.c &dev_attr_erasesize.attr, attr 315 drivers/mtd/mtdcore.c &dev_attr_writesize.attr, attr 316 drivers/mtd/mtdcore.c &dev_attr_subpagesize.attr, attr 317 drivers/mtd/mtdcore.c &dev_attr_oobsize.attr, attr 318 drivers/mtd/mtdcore.c &dev_attr_oobavail.attr, attr 319 drivers/mtd/mtdcore.c &dev_attr_numeraseregions.attr, attr 320 drivers/mtd/mtdcore.c &dev_attr_name.attr, attr 321 drivers/mtd/mtdcore.c &dev_attr_ecc_strength.attr, attr 322 drivers/mtd/mtdcore.c &dev_attr_ecc_step_size.attr, attr 323 drivers/mtd/mtdcore.c &dev_attr_corrected_bits.attr, attr 324 drivers/mtd/mtdcore.c &dev_attr_ecc_failures.attr, attr 325 drivers/mtd/mtdcore.c &dev_attr_bad_blocks.attr, attr 326 drivers/mtd/mtdcore.c &dev_attr_bbt_blocks.attr, attr 327 drivers/mtd/mtdcore.c &dev_attr_bitflip_threshold.attr, attr 557 drivers/mtd/mtdpart.c struct device_attribute *attr, char *buf) attr 567 drivers/mtd/mtdpart.c &dev_attr_offset.attr, attr 587 drivers/mtd/nand/raw/r852.c struct device_attribute *attr, char *buf) attr 41 drivers/mtd/sm_ftl.c static ssize_t sm_attr_show(struct device *dev, struct device_attribute *attr, attr 45 drivers/mtd/sm_ftl.c container_of(attr, struct sm_sysfs_attribute, dev_attr); attr 72 drivers/mtd/sm_ftl.c sysfs_attr_init(&vendor_attribute->dev_attr.attr); attr 76 drivers/mtd/sm_ftl.c vendor_attribute->dev_attr.attr.name = "vendor"; attr 77 drivers/mtd/sm_ftl.c vendor_attribute->dev_attr.attr.mode = S_IRUGO; attr 86 drivers/mtd/sm_ftl.c attributes[0] = &vendor_attribute->dev_attr.attr; attr 112 drivers/mtd/sm_ftl.c struct device_attribute, attr); attr 95 drivers/mtd/ubi/build.c static ssize_t version_show(struct class *class, struct class_attribute *attr, attr 103 drivers/mtd/ubi/build.c &class_attr_version.attr, attr 116 drivers/mtd/ubi/build.c struct device_attribute *attr, char *buf); attr 337 drivers/mtd/ubi/build.c struct device_attribute *attr, char *buf) attr 357 drivers/mtd/ubi/build.c if (attr == &dev_eraseblock_size) attr 359 drivers/mtd/ubi/build.c else if (attr == &dev_avail_eraseblocks) attr 361 drivers/mtd/ubi/build.c else if (attr == &dev_total_eraseblocks) attr 363 drivers/mtd/ubi/build.c else if (attr == &dev_volumes_count) attr 365 drivers/mtd/ubi/build.c else if (attr == &dev_max_ec) attr 367 drivers/mtd/ubi/build.c else if (attr == &dev_reserved_for_bad) attr 369 drivers/mtd/ubi/build.c else if (attr == &dev_bad_peb_count) attr 371 drivers/mtd/ubi/build.c else if (attr == &dev_max_vol_count) attr 373 drivers/mtd/ubi/build.c else if (attr == &dev_min_io_size) attr 375 drivers/mtd/ubi/build.c else if (attr == &dev_bgt_enabled) attr 377 drivers/mtd/ubi/build.c else if (attr == &dev_mtd_num) attr 379 drivers/mtd/ubi/build.c else if (attr == &dev_ro_mode) attr 389 drivers/mtd/ubi/build.c &dev_eraseblock_size.attr, attr 390 drivers/mtd/ubi/build.c &dev_avail_eraseblocks.attr, attr 391 drivers/mtd/ubi/build.c &dev_total_eraseblocks.attr, attr 392 drivers/mtd/ubi/build.c &dev_volumes_count.attr, attr 393 drivers/mtd/ubi/build.c &dev_max_ec.attr, attr 394 drivers/mtd/ubi/build.c &dev_reserved_for_bad.attr, attr 395 drivers/mtd/ubi/build.c &dev_bad_peb_count.attr, attr 396 drivers/mtd/ubi/build.c &dev_max_vol_count.attr, attr 397 drivers/mtd/ubi/build.c &dev_min_io_size.attr, attr 398 drivers/mtd/ubi/build.c &dev_bgt_enabled.attr, attr 399 drivers/mtd/ubi/build.c &dev_mtd_num.attr, attr 400 drivers/mtd/ubi/build.c &dev_ro_mode.attr, attr 22 drivers/mtd/ubi/vmt.c struct device_attribute *attr, char *buf); attr 55 drivers/mtd/ubi/vmt.c struct device_attribute *attr, char *buf) attr 75 drivers/mtd/ubi/vmt.c if (attr == &attr_vol_reserved_ebs) attr 77 drivers/mtd/ubi/vmt.c else if (attr == &attr_vol_type) { attr 85 drivers/mtd/ubi/vmt.c } else if (attr == &attr_vol_name) attr 87 drivers/mtd/ubi/vmt.c else if (attr == &attr_vol_corrupted) attr 89 drivers/mtd/ubi/vmt.c else if (attr == &attr_vol_alignment) attr 91 drivers/mtd/ubi/vmt.c else if (attr == &attr_vol_usable_eb_size) attr 93 drivers/mtd/ubi/vmt.c else if (attr == &attr_vol_data_bytes) attr 95 drivers/mtd/ubi/vmt.c else if (attr == &attr_vol_upd_marker) attr 111 drivers/mtd/ubi/vmt.c &attr_vol_reserved_ebs.attr, attr 112 drivers/mtd/ubi/vmt.c &attr_vol_type.attr, attr 113 drivers/mtd/ubi/vmt.c &attr_vol_name.attr, attr 114 drivers/mtd/ubi/vmt.c &attr_vol_corrupted.attr, attr 115 drivers/mtd/ubi/vmt.c &attr_vol_alignment.attr, attr 116 drivers/mtd/ubi/vmt.c &attr_vol_usable_eb_size.attr, attr 117 drivers/mtd/ubi/vmt.c &attr_vol_data_bytes.attr, attr 118 drivers/mtd/ubi/vmt.c &attr_vol_upd_marker.attr, attr 97 drivers/net/arcnet/com20020-pci.c struct device_attribute *attr, attr 108 drivers/net/arcnet/com20020-pci.c &dev_attr_backplane_mode.attr, attr 249 drivers/net/bonding/bond_netlink.c struct nlattr *attr; attr 253 drivers/net/bonding/bond_netlink.c nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) { attr 256 drivers/net/bonding/bond_netlink.c if (nla_len(attr) < sizeof(target)) attr 259 drivers/net/bonding/bond_netlink.c target = nla_get_be32(attr); attr 688 drivers/net/bonding/bond_netlink.c static size_t bond_get_linkxstats_size(const struct net_device *dev, int attr) attr 690 drivers/net/bonding/bond_netlink.c switch (attr) { attr 703 drivers/net/bonding/bond_netlink.c int *prividx, int attr) attr 710 drivers/net/bonding/bond_netlink.c switch (attr) { attr 35 drivers/net/bonding/bond_sysfs.c struct class_attribute *attr, attr 39 drivers/net/bonding/bond_sysfs.c container_of(attr, struct bond_net, class_attr_bonding_masters); attr 79 drivers/net/bonding/bond_sysfs.c struct class_attribute *attr, attr 83 drivers/net/bonding/bond_sysfs.c container_of(attr, struct bond_net, class_attr_bonding_masters); attr 132 drivers/net/bonding/bond_sysfs.c .attr = { attr 142 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 150 drivers/net/bonding/bond_sysfs.c opt = bond_opt_get_by_name(attr->attr.name); attr 166 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, char *buf) attr 199 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, char *buf) attr 212 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 227 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 243 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 259 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 275 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 287 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 308 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 319 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 331 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 344 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 358 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 369 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 384 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 397 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 409 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 429 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 446 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 459 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 479 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 491 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 511 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 531 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 551 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 571 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 589 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 624 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 636 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 648 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 659 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 669 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 681 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 695 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 710 drivers/net/bonding/bond_sysfs.c struct device_attribute *attr, attr 724 drivers/net/bonding/bond_sysfs.c &dev_attr_slaves.attr, attr 725 drivers/net/bonding/bond_sysfs.c &dev_attr_mode.attr, attr 726 drivers/net/bonding/bond_sysfs.c &dev_attr_fail_over_mac.attr, attr 727 drivers/net/bonding/bond_sysfs.c &dev_attr_arp_validate.attr, attr 728 drivers/net/bonding/bond_sysfs.c &dev_attr_arp_all_targets.attr, attr 729 drivers/net/bonding/bond_sysfs.c &dev_attr_arp_interval.attr, attr 730 drivers/net/bonding/bond_sysfs.c &dev_attr_arp_ip_target.attr, attr 731 drivers/net/bonding/bond_sysfs.c &dev_attr_downdelay.attr, attr 732 drivers/net/bonding/bond_sysfs.c &dev_attr_updelay.attr, attr 733 drivers/net/bonding/bond_sysfs.c &dev_attr_peer_notif_delay.attr, attr 734 drivers/net/bonding/bond_sysfs.c &dev_attr_lacp_rate.attr, attr 735 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_select.attr, attr 736 drivers/net/bonding/bond_sysfs.c &dev_attr_xmit_hash_policy.attr, attr 737 drivers/net/bonding/bond_sysfs.c &dev_attr_num_grat_arp.attr, attr 738 drivers/net/bonding/bond_sysfs.c &dev_attr_num_unsol_na.attr, attr 739 drivers/net/bonding/bond_sysfs.c &dev_attr_miimon.attr, attr 740 drivers/net/bonding/bond_sysfs.c &dev_attr_primary.attr, attr 741 drivers/net/bonding/bond_sysfs.c &dev_attr_primary_reselect.attr, attr 742 drivers/net/bonding/bond_sysfs.c &dev_attr_use_carrier.attr, attr 743 drivers/net/bonding/bond_sysfs.c &dev_attr_active_slave.attr, attr 744 drivers/net/bonding/bond_sysfs.c &dev_attr_mii_status.attr, attr 745 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_aggregator.attr, attr 746 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_num_ports.attr, attr 747 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_actor_key.attr, attr 748 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_partner_key.attr, attr 749 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_partner_mac.attr, attr 750 drivers/net/bonding/bond_sysfs.c &dev_attr_queue_id.attr, attr 751 drivers/net/bonding/bond_sysfs.c &dev_attr_all_slaves_active.attr, attr 752 drivers/net/bonding/bond_sysfs.c &dev_attr_resend_igmp.attr, attr 753 drivers/net/bonding/bond_sysfs.c &dev_attr_min_links.attr, attr 754 drivers/net/bonding/bond_sysfs.c &dev_attr_lp_interval.attr, attr 755 drivers/net/bonding/bond_sysfs.c &dev_attr_packets_per_slave.attr, attr 756 drivers/net/bonding/bond_sysfs.c &dev_attr_tlb_dynamic_lb.attr, attr 757 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_actor_sys_prio.attr, attr 758 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_actor_system.attr, attr 759 drivers/net/bonding/bond_sysfs.c &dev_attr_ad_user_port_key.attr, attr 776 drivers/net/bonding/bond_sysfs.c sysfs_attr_init(&bn->class_attr_bonding_masters.attr); attr 793 drivers/net/bonding/bond_sysfs.c class_attr_bonding_masters.attr.name)) attr 795 drivers/net/bonding/bond_sysfs.c class_attr_bonding_masters.attr.name); attr 14 drivers/net/bonding/bond_sysfs_slave.c struct attribute attr; attr 20 drivers/net/bonding/bond_sysfs_slave.c .attr = {.name = __stringify(_name), \ attr 123 drivers/net/bonding/bond_sysfs_slave.c #define to_slave_attr(_at) container_of(_at, struct slave_attribute, attr) attr 127 drivers/net/bonding/bond_sysfs_slave.c struct attribute *attr, char *buf) attr 129 drivers/net/bonding/bond_sysfs_slave.c struct slave_attribute *slave_attr = to_slave_attr(attr); attr 158 drivers/net/bonding/bond_sysfs_slave.c err = sysfs_create_file(&slave->kobj, &((*a)->attr)); attr 173 drivers/net/bonding/bond_sysfs_slave.c sysfs_remove_file(&slave->kobj, &((*a)->attr)); attr 1180 drivers/net/can/at91_can.c struct device_attribute *attr, char *buf) attr 1191 drivers/net/can/at91_can.c struct device_attribute *attr, const char *buf, size_t count) attr 1228 drivers/net/can/at91_can.c &dev_attr_mb0_id.attr, attr 1561 drivers/net/can/grcan.c &dev_attr_enable0.attr, attr 1562 drivers/net/can/grcan.c &dev_attr_enable1.attr, attr 1563 drivers/net/can/grcan.c &dev_attr_select.attr, attr 1819 drivers/net/can/janz-ican3.c struct device_attribute *attr, attr 1838 drivers/net/can/janz-ican3.c struct device_attribute *attr, attr 1856 drivers/net/can/janz-ican3.c struct device_attribute *attr, attr 1869 drivers/net/can/janz-ican3.c &dev_attr_termination.attr, attr 1870 drivers/net/can/janz-ican3.c &dev_attr_fwinfo.attr, attr 549 drivers/net/can/softing/softing_main.c static ssize_t show_chip(struct device *dev, struct device_attribute *attr, attr 558 drivers/net/can/softing/softing_main.c static ssize_t show_output(struct device *dev, struct device_attribute *attr, attr 567 drivers/net/can/softing/softing_main.c static ssize_t store_output(struct device *dev, struct device_attribute *attr, attr 597 drivers/net/can/softing/softing_main.c &dev_attr_chip.attr, attr 598 drivers/net/can/softing/softing_main.c &dev_attr_output.attr, attr 684 drivers/net/can/softing/softing_main.c struct device_attribute *attr, char *buf) \ attr 693 drivers/net/can/softing/softing_main.c struct device_attribute *attr, char *buf) \ attr 708 drivers/net/can/softing/softing_main.c &dev_attr_serial.attr, attr 709 drivers/net/can/softing/softing_main.c &dev_attr_firmware.attr, attr 710 drivers/net/can/softing/softing_main.c &dev_attr_firmware_version.attr, attr 711 drivers/net/can/softing/softing_main.c &dev_attr_hardware.attr, attr 712 drivers/net/can/softing/softing_main.c &dev_attr_hardware_version.attr, attr 713 drivers/net/can/softing/softing_main.c &dev_attr_license.attr, attr 477 drivers/net/can/usb/esd_usb2.c struct device_attribute *attr, char *buf) attr 490 drivers/net/can/usb/esd_usb2.c struct device_attribute *attr, char *buf) attr 503 drivers/net/can/usb/esd_usb2.c struct device_attribute *attr, char *buf) attr 307 drivers/net/ethernet/amd/xgbe/xgbe-platform.c enum dev_dma_attr attr; attr 440 drivers/net/ethernet/amd/xgbe/xgbe-platform.c attr = device_get_dma_attr(dev); attr 441 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (attr == DEV_DMA_NOT_SUPPORTED) { attr 446 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->coherent = (attr == DEV_DMA_COHERENT); attr 18 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c u32 attr, int channel, long *value) attr 33 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c switch (attr) { attr 45 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c u32 attr, int channel, const char **str) attr 58 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c switch (attr) { attr 69 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c u32 attr, int channel) attr 74 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c switch (attr) { attr 7897 drivers/net/ethernet/broadcom/bnxt/bnxt.c char *attr; attr 7900 drivers/net/ethernet/broadcom/bnxt/bnxt.c attr = "TxRx"; attr 7902 drivers/net/ethernet/broadcom/bnxt/bnxt.c attr = "rx"; attr 7904 drivers/net/ethernet/broadcom/bnxt/bnxt.c attr = "tx"; attr 7907 drivers/net/ethernet/broadcom/bnxt/bnxt.c attr, i); attr 8942 drivers/net/ethernet/broadcom/bnxt/bnxt.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 11277 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct nlattr *attr, *br_spec; attr 11287 drivers/net/ethernet/broadcom/bnxt/bnxt.c nla_for_each_nested(attr, br_spec, rem) { attr 11290 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (nla_type(attr) != IFLA_BRIDGE_MODE) attr 11293 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (nla_len(attr) < sizeof(mode)) attr 11296 drivers/net/ethernet/broadcom/bnxt/bnxt.c mode = nla_get_u16(attr); attr 2354 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c u16 type, ext, ordinal, attr; attr 2383 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c attr = eeprom->offset & 0xffff; attr 2385 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c return bnxt_flash_nvram(dev, type, ordinal, ext, attr, data, attr 10826 drivers/net/ethernet/broadcom/tg3.c struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); attr 10831 drivers/net/ethernet/broadcom/tg3.c tg3_ape_scratchpad_read(tp, &temperature, attr->index, attr 10846 drivers/net/ethernet/broadcom/tg3.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 10847 drivers/net/ethernet/broadcom/tg3.c &sensor_dev_attr_temp1_crit.dev_attr.attr, attr 10848 drivers/net/ethernet/broadcom/tg3.c &sensor_dev_attr_temp1_max.dev_attr.attr, attr 75 drivers/net/ethernet/brocade/bna/bfa_cee.c memcpy(cee->attr, cee->attr_dma.kva, attr 77 drivers/net/ethernet/brocade/bna/bfa_cee.c bfa_cee_format_cee_cfg(cee->attr); attr 145 drivers/net/ethernet/brocade/bna/bfa_cee.c cee->attr = (struct bfa_cee_attr *) dma_kva; attr 158 drivers/net/ethernet/brocade/bna/bfa_cee.c bfa_nw_cee_get_attr(struct bfa_cee *cee, struct bfa_cee_attr *attr, attr 172 drivers/net/ethernet/brocade/bna/bfa_cee.c cee->attr = attr; attr 41 drivers/net/ethernet/brocade/bna/bfa_cee.h struct bfa_cee_attr *attr; attr 56 drivers/net/ethernet/brocade/bna/bfa_cee.h struct bfa_cee_attr *attr, attr 2105 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfi_ioc_attr *attr = ioc->attr; attr 2107 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->adapter_prop = ntohl(attr->adapter_prop); attr 2108 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->card_type = ntohl(attr->card_type); attr 2109 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->maxfrsize = ntohs(attr->maxfrsize); attr 2585 drivers/net/ethernet/brocade/bna/bfa_ioc.c ioc->attr = (struct bfi_ioc_attr *) dm_kva; attr 2751 drivers/net/ethernet/brocade/bna/bfa_ioc.c ioc_attr = ioc->attr; attr 2794 drivers/net/ethernet/brocade/bna/bfa_ioc.c return (ioc->attr->port_mode == BFI_PORT_MODE_FC) attr 2802 drivers/net/ethernet/brocade/bna/bfa_ioc.c (void *)ioc->attr->brcd_serialnum, attr 2809 drivers/net/ethernet/brocade/bna/bfa_ioc.c memcpy(fw_ver, ioc->attr->fw_version, BFA_VERSION_LEN); attr 2823 drivers/net/ethernet/brocade/bna/bfa_ioc.c chip_rev[4] = ioc->attr->asic_rev; attr 2830 drivers/net/ethernet/brocade/bna/bfa_ioc.c memcpy(optrom_ver, ioc->attr->optrom_version, attr 2848 drivers/net/ethernet/brocade/bna/bfa_ioc.c ioc_attr = ioc->attr; attr 2919 drivers/net/ethernet/brocade/bna/bfa_ioc.c return ioc->attr->pwwn; attr 2925 drivers/net/ethernet/brocade/bna/bfa_ioc.c ether_addr_copy(mac, ioc->attr->mac); attr 3139 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_flash_attr *attr, *f; attr 3141 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr = (struct bfa_flash_attr *) flash->ubuf; attr 3143 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->status = be32_to_cpu(f->status); attr 3144 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->npart = be32_to_cpu(f->npart); attr 3145 drivers/net/ethernet/brocade/bna/bfa_ioc.c for (i = 0; i < attr->npart; i++) { attr 3146 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->part[i].part_type = attr 3148 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->part[i].part_instance = attr 3150 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->part[i].part_off = attr 3152 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->part[i].part_size = attr 3154 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->part[i].part_len = attr 3156 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->part[i].part_status = attr 3254 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_flash_get_attr(struct bfa_flash *flash, struct bfa_flash_attr *attr, attr 3269 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->ubuf = (u8 *) attr; attr 180 drivers/net/ethernet/brocade/bna/bfa_ioc.h struct bfi_ioc_attr *attr; attr 228 drivers/net/ethernet/brocade/bna/bfa_ioc.h BFI_ADAPTER_GETP(SPEED, (__ioc)->attr->adapter_prop) attr 230 drivers/net/ethernet/brocade/bna/bfa_ioc.h BFI_ADAPTER_GETP(NPORTS, (__ioc)->attr->adapter_prop) attr 335 drivers/net/ethernet/brocade/bna/bfa_ioc.h struct bfa_flash_attr *attr, attr 248 drivers/net/ethernet/brocade/bna/bna.h #define bna_attr(_bna) (&(_bna)->ioceth.attr) attr 166 drivers/net/ethernet/brocade/bna/bna_enet.c if (!ioceth->attr.fw_query_complete) { attr 167 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_txq = ntohl(rsp->max_cfg); attr 168 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_rxp = ntohl(rsp->max_cfg); attr 169 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_ucmac = ntohl(rsp->max_ucmac); attr 170 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_mcmac = BFI_ENET_MAX_MCAM; attr 171 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.max_rit_size = ntohl(rsp->rit_size); attr 172 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.fw_query_complete = true; attr 1679 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_txq = BFI_ENET_DEF_TXQ; attr 1680 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_rxp = BFI_ENET_DEF_RXP; attr 1681 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_ucmac = BFI_ENET_DEF_UCAM; attr 1682 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.num_mcmac = BFI_ENET_MAX_MCAM; attr 1683 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.max_rit_size = BFI_ENET_DEF_RITSZ; attr 1684 drivers/net/ethernet/brocade/bna/bna_enet.c ioceth->attr.fw_query_complete = false; attr 1787 drivers/net/ethernet/brocade/bna/bna_enet.c for (i = 0; i < bna->ioceth.attr.num_ucmac; i++) attr 1792 drivers/net/ethernet/brocade/bna/bna_enet.c for (; i < (bna->ioceth.attr.num_ucmac * 2); i++) attr 1814 drivers/net/ethernet/brocade/bna/bna_enet.c for (i = 0; i < bna->ioceth.attr.num_mcmac; i++) attr 1821 drivers/net/ethernet/brocade/bna/bna_enet.c for (i = 0; i < bna->ioceth.attr.num_mcmac; i++) attr 1827 drivers/net/ethernet/brocade/bna/bna_enet.c for (; i < (bna->ioceth.attr.num_mcmac * 2); i++) attr 1898 drivers/net/ethernet/brocade/bna/bna_enet.c struct bna_attr *attr = &bna->ioceth.attr; attr 1906 drivers/net/ethernet/brocade/bna/bna_enet.c attr->num_txq * sizeof(struct bna_tx); attr 1914 drivers/net/ethernet/brocade/bna/bna_enet.c attr->num_txq * sizeof(struct bna_txq); attr 1922 drivers/net/ethernet/brocade/bna/bna_enet.c attr->num_rxp * sizeof(struct bna_rx); attr 1930 drivers/net/ethernet/brocade/bna/bna_enet.c attr->num_rxp * sizeof(struct bna_rxp); attr 1938 drivers/net/ethernet/brocade/bna/bna_enet.c (attr->num_rxp * 2) * sizeof(struct bna_rxq); attr 1946 drivers/net/ethernet/brocade/bna/bna_enet.c (attr->num_ucmac * 2) * sizeof(struct bna_mac); attr 1954 drivers/net/ethernet/brocade/bna/bna_enet.c (attr->num_mcmac * 2) * sizeof(struct bna_mac); attr 1962 drivers/net/ethernet/brocade/bna/bna_enet.c attr->num_mcmac * sizeof(struct bna_mcam_handle); attr 2028 drivers/net/ethernet/brocade/bna/bna_enet.c if (bna->ioceth.attr.fw_query_complete && attr 2029 drivers/net/ethernet/brocade/bna/bna_enet.c (num_txq <= bna->ioceth.attr.num_txq)) { attr 2030 drivers/net/ethernet/brocade/bna/bna_enet.c bna->ioceth.attr.num_txq = num_txq; attr 2040 drivers/net/ethernet/brocade/bna/bna_enet.c if (bna->ioceth.attr.fw_query_complete && attr 2041 drivers/net/ethernet/brocade/bna/bna_enet.c (num_rxp <= bna->ioceth.attr.num_rxp)) { attr 2042 drivers/net/ethernet/brocade/bna/bna_enet.c bna->ioceth.attr.num_rxp = num_rxp; attr 2051 drivers/net/ethernet/brocade/bna/bna_tx_rx.c for (index = 0; index < bna->ioceth.attr.num_rxp; index++) { attr 2065 drivers/net/ethernet/brocade/bna/bna_tx_rx.c for (index = 0; index < bna->ioceth.attr.num_rxp; index++) { attr 2072 drivers/net/ethernet/brocade/bna/bna_tx_rx.c for (index = 0; index < (bna->ioceth.attr.num_rxp * 2); index++) { attr 3595 drivers/net/ethernet/brocade/bna/bna_tx_rx.c for (i = 0; i < bna->ioceth.attr.num_txq; i++) { attr 319 drivers/net/ethernet/brocade/bna/bna_types.h struct bna_attr attr; attr 728 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static ssize_t show_##name(struct device *d, struct device_attribute *attr, \ attr 751 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static ssize_t store_nfilters(struct device *d, struct device_attribute *attr, attr 771 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static ssize_t store_nservers(struct device *d, struct device_attribute *attr, attr 790 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_cam_size.attr, attr 791 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_nfilters.attr, attr 792 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_nservers.attr, attr 852 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static ssize_t show_##name(struct device *d, struct device_attribute *attr, \ attr 857 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static ssize_t store_##name(struct device *d, struct device_attribute *attr, \ attr 874 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched0.attr, attr 875 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched1.attr, attr 876 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched2.attr, attr 877 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched3.attr, attr 878 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched4.attr, attr 879 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched5.attr, attr 880 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched6.attr, attr 881 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c &dev_attr_sched7.attr, attr 4963 drivers/net/ethernet/emulex/benet/be_main.c struct nlattr *attr, *br_spec; attr 4975 drivers/net/ethernet/emulex/benet/be_main.c nla_for_each_nested(attr, br_spec, rem) { attr 4976 drivers/net/ethernet/emulex/benet/be_main.c if (nla_type(attr) != IFLA_BRIDGE_MODE) attr 4979 drivers/net/ethernet/emulex/benet/be_main.c if (nla_len(attr) < sizeof(mode)) attr 4982 drivers/net/ethernet/emulex/benet/be_main.c mode = nla_get_u16(attr); attr 5885 drivers/net/ethernet/emulex/benet/be_main.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 40 drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c struct device_attribute *attr, char *buf) attr 53 drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c struct device_attribute *attr, char *buf) attr 130 drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c struct device_attribute *attr, char *buf) attr 2108 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c struct dpcon_attr attr; attr 2123 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c &attr); attr 2129 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c channel->dpcon_id = attr.id; attr 2130 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c channel->ch_id = attr.qbman_ch_id; attr 534 drivers/net/ethernet/freescale/dpaa2/dpni.c struct dpni_attr *attr) attr 553 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->options = le32_to_cpu(rsp_params->options); attr 554 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->num_queues = rsp_params->num_queues; attr 555 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->num_tcs = rsp_params->num_tcs; attr 556 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->mac_filter_entries = rsp_params->mac_filter_entries; attr 557 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->vlan_filter_entries = rsp_params->vlan_filter_entries; attr 558 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->qos_entries = rsp_params->qos_entries; attr 559 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->fs_entries = le16_to_cpu(rsp_params->fs_entries); attr 560 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->qos_key_size = rsp_params->qos_key_size; attr 561 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->fs_key_size = rsp_params->fs_key_size; attr 562 drivers/net/ethernet/freescale/dpaa2/dpni.c attr->wriop_version = le16_to_cpu(rsp_params->wriop_version); attr 218 drivers/net/ethernet/freescale/dpaa2/dpni.h struct dpni_attr *attr); attr 3269 drivers/net/ethernet/freescale/gianfar.c gfar_write(®s->attr, attrs); attr 826 drivers/net/ethernet/freescale/gianfar.h u32 attr; /* 0x.bf8 - Attributes Register */ attr 794 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_api_cmd_chain_attr *attr) attr 796 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = attr->hwif; attr 801 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c chain->chain_type = attr->chain_type; attr 802 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c chain->num_cells = attr->num_cells; attr 803 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c chain->cell_size = attr->cell_size; attr 847 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c api_cmd_create_chain(struct hinic_api_cmd_chain_attr *attr) attr 849 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_hwif *hwif = attr->hwif; attr 854 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c if (attr->num_cells & (attr->num_cells - 1)) { attr 863 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c err = api_chain_init(chain, attr); attr 913 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c struct hinic_api_cmd_chain_attr attr; attr 920 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c attr.hwif = hwif; attr 921 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c attr.num_cells = API_CHAIN_NUM_CELLS; attr 922 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c attr.cell_size = API_CMD_CELL_SIZE(hw_cell_sz); attr 926 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c attr.chain_type = chain_type; attr 931 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c chain[chain_type] = api_cmd_create_chain(&attr); attr 19 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c #define VALID_MSIX_IDX(attr, msix_index) ((msix_index) < (attr)->num_irqs) attr 40 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) attr 74 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) attr 99 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) attr 208 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.func_idx = HINIC_FA0_GET(attr0, FUNC_IDX); attr 209 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.pf_idx = HINIC_FA0_GET(attr0, PF_IDX); attr 210 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.pci_intf_idx = HINIC_FA0_GET(attr0, PCI_INTF_IDX); attr 211 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.func_type = HINIC_FA0_GET(attr0, FUNC_TYPE); attr 213 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_aeqs = BIT(HINIC_FA1_GET(attr1, AEQS_PER_FUNC)); attr 214 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_ceqs = BIT(HINIC_FA1_GET(attr1, CEQS_PER_FUNC)); attr 215 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_irqs = BIT(HINIC_FA1_GET(attr1, IRQS_PER_FUNC)); attr 216 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c hwif->attr.num_dma_attr = BIT(HINIC_FA1_GET(attr1, DMA_ATTR_PER_FUNC)); attr 242 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c struct hinic_func_attr *attr = &hwif->attr; attr 259 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c attr->ppf_idx = HINIC_PPF_ELECTION_GET(val, IDX); attr 260 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c if (attr->ppf_idx == HINIC_HWIF_FUNC_IDX(hwif)) attr 261 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c attr->func_type = HINIC_PPF; attr 134 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) attr 135 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) attr 136 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) attr 137 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx) attr 138 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx) attr 139 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx) attr 140 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx) attr 142 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h #define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type) attr 233 drivers/net/ethernet/huawei/hinic/hinic_hw_if.h struct hinic_func_attr attr; attr 263 drivers/net/ethernet/ibm/ehea/ehea.h struct ehea_eq_attr attr; attr 302 drivers/net/ethernet/ibm/ehea/ehea.h struct ehea_cq_attr attr; attr 1271 drivers/net/ethernet/ibm/ehea/ehea_main.c ret = ibmebus_request_irq(port->qp_eq->attr.ist1, attr 1276 drivers/net/ethernet/ibm/ehea/ehea_main.c port->qp_eq->attr.ist1); attr 1282 drivers/net/ethernet/ibm/ehea/ehea_main.c port->qp_eq->attr.ist1); attr 1289 drivers/net/ethernet/ibm/ehea/ehea_main.c ret = ibmebus_request_irq(pr->eq->attr.ist1, attr 1294 drivers/net/ethernet/ibm/ehea/ehea_main.c i, pr->eq->attr.ist1); attr 1299 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->eq->attr.ist1, i); attr 1307 drivers/net/ethernet/ibm/ehea/ehea_main.c u32 ist = port->port_res[i].eq->attr.ist1; attr 1312 drivers/net/ethernet/ibm/ehea/ehea_main.c ibmebus_free_irq(port->qp_eq->attr.ist1, port); attr 1329 drivers/net/ethernet/ibm/ehea/ehea_main.c ibmebus_free_irq(pr->eq->attr.ist1, pr); attr 1332 drivers/net/ethernet/ibm/ehea/ehea_main.c i, pr->eq->attr.ist1); attr 1336 drivers/net/ethernet/ibm/ehea/ehea_main.c ibmebus_free_irq(port->qp_eq->attr.ist1, port); attr 1339 drivers/net/ethernet/ibm/ehea/ehea_main.c port->qp_eq->attr.ist1); attr 1483 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->send_cq->attr.act_nr_of_cqes, attr 1484 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->recv_cq->attr.act_nr_of_cqes); attr 2870 drivers/net/ethernet/ibm/ehea/ehea_main.c struct device_attribute *attr, char *buf) attr 3116 drivers/net/ethernet/ibm/ehea/ehea_main.c struct device_attribute *attr, attr 3171 drivers/net/ethernet/ibm/ehea/ehea_main.c struct device_attribute *attr, attr 3433 drivers/net/ethernet/ibm/ehea/ehea_main.c ret = ibmebus_request_irq(adapter->neq->attr.ist1, attr 3482 drivers/net/ethernet/ibm/ehea/ehea_main.c ibmebus_free_irq(adapter->neq->attr.ist1, adapter); attr 121 drivers/net/ethernet/ibm/ehea/ehea_qmr.c cq->attr.max_nr_of_cqes = nr_of_cqe; attr 122 drivers/net/ethernet/ibm/ehea/ehea_qmr.c cq->attr.cq_token = cq_token; attr 123 drivers/net/ethernet/ibm/ehea/ehea_qmr.c cq->attr.eq_handle = eq_handle; attr 127 drivers/net/ethernet/ibm/ehea/ehea_qmr.c hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr, attr 134 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ret = hw_queue_ctor(&cq->hw_queue, cq->attr.nr_pages, attr 139 drivers/net/ethernet/ibm/ehea/ehea_qmr.c for (counter = 0; counter < cq->attr.nr_pages; counter++) { attr 152 drivers/net/ethernet/ibm/ehea/ehea_qmr.c cq, hret, counter, cq->attr.nr_pages); attr 156 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (counter == (cq->attr.nr_pages - 1)) { attr 243 drivers/net/ethernet/ibm/ehea/ehea_qmr.c eq->attr.type = type; attr 244 drivers/net/ethernet/ibm/ehea/ehea_qmr.c eq->attr.max_nr_of_eqes = max_nr_of_eqes; attr 245 drivers/net/ethernet/ibm/ehea/ehea_qmr.c eq->attr.eqe_gen = eqe_gen; attr 249 drivers/net/ethernet/ibm/ehea/ehea_qmr.c &eq->attr, &eq->fw_handle); attr 255 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ret = hw_queue_ctor(&eq->hw_queue, eq->attr.nr_pages, attr 262 drivers/net/ethernet/ibm/ehea/ehea_qmr.c for (i = 0; i < eq->attr.nr_pages; i++) { attr 276 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (i == (eq->attr.nr_pages - 1)) { attr 1745 drivers/net/ethernet/ibm/ibmveth.c struct attribute *attr, char *buf) attr 1751 drivers/net/ethernet/ibm/ibmveth.c if (attr == &veth_active_attr) attr 1753 drivers/net/ethernet/ibm/ibmveth.c else if (attr == &veth_num_attr) attr 1755 drivers/net/ethernet/ibm/ibmveth.c else if (attr == &veth_size_attr) attr 1760 drivers/net/ethernet/ibm/ibmveth.c static ssize_t veth_pool_store(struct kobject *kobj, struct attribute *attr, attr 1772 drivers/net/ethernet/ibm/ibmveth.c if (attr == &veth_active_attr) { attr 1818 drivers/net/ethernet/ibm/ibmveth.c } else if (attr == &veth_num_attr) { attr 1833 drivers/net/ethernet/ibm/ibmveth.c } else if (attr == &veth_size_attr) { attr 5053 drivers/net/ethernet/ibm/ibmvnic.c static ssize_t failover_store(struct device *dev, struct device_attribute *attr, attr 1478 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c const struct fm10k_tlv_attr *attr; attr 1491 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c attr = msg_data->attr; attr 1492 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c if (attr) { attr 1493 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c while (attr->id != FM10K_TLV_ERROR) { attr 1494 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c id = attr->id; attr 1495 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c attr++; attr 1497 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c if (id >= attr->id) attr 1505 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c if (attr->id != FM10K_TLV_ERROR) attr 38 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u32 *attr; attr 44 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; attr 50 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[len / 4] = attr_data; attr 62 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[(len + 3) / 4] = attr_data; attr 66 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[0] = len | attr_id; attr 84 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c static s32 fm10k_tlv_attr_get_null_string(u32 *attr, unsigned char *string) attr 89 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!string || !attr) attr 92 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c len = *attr >> FM10K_TLV_LEN_SHIFT; attr 93 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr++; attr 96 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c string[len] = (u8)(attr[len / 4] >> (8 * (len % 4))); attr 116 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u32 *attr; attr 122 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; attr 125 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[0] = len | attr_id; attr 128 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[1] = le32_to_cpu(*(const __le32 *)&mac_addr[0]); attr 129 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[2] = le16_to_cpu(*(const __le16 *)&mac_addr[4]); attr 130 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[2] |= (u32)vlan << 16; attr 149 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_attr_get_mac_vlan(u32 *attr, u8 *mac_addr, u16 *vlan) attr 152 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!mac_addr || !attr) attr 155 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *(__le32 *)&mac_addr[0] = cpu_to_le32(attr[1]); attr 156 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *(__le16 *)&mac_addr[4] = cpu_to_le16((u16)(attr[2])); attr 157 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *vlan = (u16)(attr[2] >> 16); attr 200 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u32 *attr; attr 206 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; attr 209 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[1] = (u32)value & (BIT(8 * len) - 1); attr 211 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[1] = (u32)value; attr 213 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[2] = (u32)(value >> 32); attr 218 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[0] = len | attr_id; attr 238 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_attr_get_value(u32 *attr, void *value, u32 len) attr 241 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!attr || !value) attr 244 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if ((*attr >> FM10K_TLV_LEN_SHIFT) != len) attr 248 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *(u64 *)value = ((u64)attr[2] << 32) | attr[1]; attr 250 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *(u32 *)value = attr[1]; attr 252 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *(u16 *)value = (u16)attr[1]; attr 254 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *(u8 *)value = (u8)attr[1]; attr 274 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u32 *attr; attr 281 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; attr 285 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[i + 1] = le32_to_cpu(le32_ptr[i]); attr 289 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[0] = len | attr_id; attr 309 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_attr_get_le_struct(u32 *attr, void *le_struct, u32 len) attr 315 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!le_struct || !attr) attr 318 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if ((*attr >> FM10K_TLV_LEN_SHIFT) != len) attr 321 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr++; attr 324 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c le32_ptr[i] = cpu_to_le32(attr[i]); attr 342 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u32 *attr; attr 348 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; attr 350 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr[0] = attr_id; attr 353 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c return attr; attr 367 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u32 *attr; attr 375 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; attr 376 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c len = (attr[0] >> FM10K_TLV_LEN_SHIFT) << FM10K_TLV_LEN_SHIFT; attr 398 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c static s32 fm10k_tlv_attr_validate(u32 *attr, attr 401 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u32 attr_id = *attr & FM10K_TLV_ID_MASK; attr 402 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c u16 len = *attr >> FM10K_TLV_LEN_SHIFT; attr 405 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (*attr & (FM10K_TLV_FLAGS_MSG << FM10K_TLV_FLAGS_SHIFT)) attr 417 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr++; attr 422 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c (attr[(len - 1) / 4] & (0xFF << (8 * ((len - 1) % 4))))) attr 471 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c static s32 fm10k_tlv_attr_parse(u32 *attr, u32 **results, attr 479 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!attr || !results) attr 487 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c len = *attr >> FM10K_TLV_LEN_SHIFT; attr 495 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c results[0] = attr; attr 500 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr++; attr 504 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr_id = *attr & FM10K_TLV_ID_MASK; attr 509 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c err = fm10k_tlv_attr_validate(attr, tlv_attr); attr 515 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c results[attr_id] = attr; attr 518 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c offset += FM10K_TLV_DWORD_LEN(*attr) * 4; attr 521 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &attr[FM10K_TLV_DWORD_LEN(*attr)]; attr 573 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c err = fm10k_tlv_attr_parse(msg, results, data->attr); attr 84 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h const struct fm10k_tlv_attr *attr; attr 89 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define FM10K_MSG_HANDLER(id, attr, func) { id, attr, func } attr 113 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_u8(attr, ptr) \ attr 114 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(u8)) attr 115 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_u16(attr, ptr) \ attr 116 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(u16)) attr 117 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_u32(attr, ptr) \ attr 118 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(u32)) attr 119 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_u64(attr, ptr) \ attr 120 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(u64)) attr 121 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_s8(attr, ptr) \ attr 122 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(s8)) attr 123 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_s16(attr, ptr) \ attr 124 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(s16)) attr 125 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_s32(attr, ptr) \ attr 126 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(s32)) attr 127 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_get_s64(attr, ptr) \ attr 128 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_get_value(attr, ptr, sizeof(s64)) attr 12349 drivers/net/ethernet/intel/i40e/i40e_main.c struct nlattr *attr, *br_spec; attr 12364 drivers/net/ethernet/intel/i40e/i40e_main.c nla_for_each_nested(attr, br_spec, rem) { attr 12367 drivers/net/ethernet/intel/i40e/i40e_main.c if (nla_type(attr) != IFLA_BRIDGE_MODE) attr 12370 drivers/net/ethernet/intel/i40e/i40e_main.c mode = nla_get_u16(attr); attr 4585 drivers/net/ethernet/intel/ice/ice_main.c struct nlattr *attr, *br_spec; attr 4595 drivers/net/ethernet/intel/ice/ice_main.c nla_for_each_nested(attr, br_spec, rem) { attr 4598 drivers/net/ethernet/intel/ice/ice_main.c if (nla_type(attr) != IFLA_BRIDGE_MODE) attr 4600 drivers/net/ethernet/intel/ice/ice_main.c mode = nla_get_u16(attr); attr 24 drivers/net/ethernet/intel/igb/igb_hwmon.c struct device_attribute *attr, attr 27 drivers/net/ethernet/intel/igb/igb_hwmon.c struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, attr 34 drivers/net/ethernet/intel/igb/igb_hwmon.c struct device_attribute *attr, attr 37 drivers/net/ethernet/intel/igb/igb_hwmon.c struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, attr 53 drivers/net/ethernet/intel/igb/igb_hwmon.c struct device_attribute *attr, attr 56 drivers/net/ethernet/intel/igb/igb_hwmon.c struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, attr 67 drivers/net/ethernet/intel/igb/igb_hwmon.c struct device_attribute *attr, attr 70 drivers/net/ethernet/intel/igb/igb_hwmon.c struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, attr 130 drivers/net/ethernet/intel/igb/igb_hwmon.c igb_attr->dev_attr.attr.mode = 0444; attr 131 drivers/net/ethernet/intel/igb/igb_hwmon.c igb_attr->dev_attr.attr.name = igb_attr->name; attr 132 drivers/net/ethernet/intel/igb/igb_hwmon.c sysfs_attr_init(&igb_attr->dev_attr.attr); attr 134 drivers/net/ethernet/intel/igb/igb_hwmon.c adapter->igb_hwmon_buff->attrs[n_attr] = &igb_attr->dev_attr.attr; attr 10019 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c struct nlattr *attr, *br_spec; attr 10029 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c nla_for_each_nested(attr, br_spec, rem) { attr 10033 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (nla_type(attr) != IFLA_BRIDGE_MODE) attr 10036 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (nla_len(attr) < sizeof(mode)) attr 10039 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c mode = nla_get_u16(attr); attr 18 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct device_attribute *attr, attr 21 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr, attr 28 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct device_attribute *attr, attr 31 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr, attr 47 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct device_attribute *attr, attr 50 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr, attr 61 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct device_attribute *attr, attr 64 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr, attr 124 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c ixgbe_attr->dev_attr.attr.mode = 0444; attr 125 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c ixgbe_attr->dev_attr.attr.name = ixgbe_attr->name; attr 126 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c sysfs_attr_init(&ixgbe_attr->dev_attr.attr); attr 128 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c adapter->ixgbe_hwmon_buff->attrs[n_attr] = &ixgbe_attr->dev_attr.attr; attr 981 drivers/net/ethernet/marvell/mvneta.c u8 target, u8 attr) attr 1009 drivers/net/ethernet/marvell/mvneta.c (attr << 8) | target); attr 1026 drivers/net/ethernet/marvell/mvneta.c u8 target, attr; attr 1031 drivers/net/ethernet/marvell/mvneta.c &target, &attr); attr 1039 drivers/net/ethernet/marvell/mvneta.c target, attr); attr 80 drivers/net/ethernet/marvell/mvneta_bm.c u8 target_id, u8 attr) attr 88 drivers/net/ethernet/marvell/mvneta_bm.c val |= MVNETA_BM_XBAR_ATTR_VAL(pool_id, attr); attr 120 drivers/net/ethernet/marvell/mvneta_bm.c u8 target_id, attr; attr 138 drivers/net/ethernet/marvell/mvneta_bm.c &attr); attr 149 drivers/net/ethernet/marvell/mvneta_bm.c mvneta_bm_pool_target_set(priv, bm_pool->id, target_id, attr); attr 43 drivers/net/ethernet/marvell/mvneta_bm.h #define MVNETA_BM_XBAR_ATTR_VAL(pool, attr) \ attr 44 drivers/net/ethernet/marvell/mvneta_bm.h ((attr) << MVNETA_BM_XBAR_ATTR_OFFS(pool)) attr 510 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c mvpp2_write(priv, MVPP22_CLS_C2_ATTR0, c2->attr[0]); attr 511 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c mvpp2_write(priv, MVPP22_CLS_C2_ATTR1, c2->attr[1]); attr 512 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c mvpp2_write(priv, MVPP22_CLS_C2_ATTR2, c2->attr[2]); attr 513 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c mvpp2_write(priv, MVPP22_CLS_C2_ATTR3, c2->attr[3]); attr 539 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2->attr[0] = mvpp2_read(priv, MVPP22_CLS_C2_ATTR0); attr 540 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2->attr[1] = mvpp2_read(priv, MVPP22_CLS_C2_ATTR1); attr 541 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2->attr[2] = mvpp2_read(priv, MVPP22_CLS_C2_ATTR2); attr 542 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2->attr[3] = mvpp2_read(priv, MVPP22_CLS_C2_ATTR3); attr 893 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2.attr[0] = MVPP22_CLS_C2_ATTR0_QHIGH(qh) | attr 997 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2.attr[0] = MVPP22_CLS_C2_ATTR0_QHIGH(qh) | attr 1000 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2.attr[2] |= MVPP22_CLS_C2_ATTR2_RSS_EN; attr 1016 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2.attr[0] = MVPP22_CLS_C2_ATTR0_QHIGH(qh) | attr 1019 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2.attr[2] &= ~MVPP22_CLS_C2_ATTR2_RSS_EN; attr 1125 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2.attr[2] |= MVPP22_CLS_C2_ATTR2_RSS_EN; attr 1154 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c c2.attr[0] = MVPP22_CLS_C2_ATTR0_QHIGH(qh) | attr 121 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h u32 attr[MVPP2_CLS_C2_ATTR_WORDS]; attr 213 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c qh = (c2.attr[0] >> MVPP22_CLS_C2_ATTR0_QHIGH_OFFS) & attr 216 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c ql = (c2.attr[0] >> MVPP22_CLS_C2_ATTR0_QLOW_OFFS) & attr 234 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c enabled = !!(c2.attr[2] & MVPP22_CLS_C2_ATTR2_RSS_EN); attr 432 drivers/net/ethernet/mellanox/mlx4/eq.c int mlx4_gen_slaves_port_mgt_ev(struct mlx4_dev *dev, u8 port, int attr) attr 442 drivers/net/ethernet/mellanox/mlx4/eq.c cpu_to_be32((u32) attr); attr 1157 drivers/net/ethernet/mellanox/mlx4/main.c struct device_attribute *attr, attr 1160 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_port_info *info = container_of(attr, struct mlx4_port_info, attr 1243 drivers/net/ethernet/mellanox/mlx4/main.c struct device_attribute *attr, attr 1246 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_port_info *info = container_of(attr, struct mlx4_port_info, attr 1308 drivers/net/ethernet/mellanox/mlx4/main.c struct device_attribute *attr, attr 1311 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_port_info *info = container_of(attr, struct mlx4_port_info, attr 1324 drivers/net/ethernet/mellanox/mlx4/main.c struct device_attribute *attr, attr 1327 drivers/net/ethernet/mellanox/mlx4/main.c struct mlx4_port_info *info = container_of(attr, struct mlx4_port_info, attr 3046 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.name = info->dev_name; attr 3048 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.mode = 0444; attr 3050 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.mode = 0644; attr 3054 drivers/net/ethernet/mellanox/mlx4/main.c sysfs_attr_init(&info->port_attr.attr); attr 3065 drivers/net/ethernet/mellanox/mlx4/main.c info->port_mtu_attr.attr.name = info->dev_mtu_name; attr 3067 drivers/net/ethernet/mellanox/mlx4/main.c info->port_mtu_attr.attr.mode = 0444; attr 3069 drivers/net/ethernet/mellanox/mlx4/main.c info->port_mtu_attr.attr.mode = 0644; attr 3073 drivers/net/ethernet/mellanox/mlx4/main.c sysfs_attr_init(&info->port_mtu_attr.attr); attr 439 drivers/net/ethernet/mellanox/mlx4/qp.c enum mlx4_update_qp_attr attr, attr 448 drivers/net/ethernet/mellanox/mlx4/qp.c if (!attr || (attr & ~MLX4_UPDATE_QP_SUPPORTED_ATTRS)) attr 457 drivers/net/ethernet/mellanox/mlx4/qp.c if (attr & MLX4_UPDATE_QP_SMAC) { attr 462 drivers/net/ethernet/mellanox/mlx4/qp.c if (attr & MLX4_UPDATE_QP_ETH_SRC_CHECK_MC_LB) { attr 479 drivers/net/ethernet/mellanox/mlx4/qp.c if (attr & MLX4_UPDATE_QP_VSD) { attr 485 drivers/net/ethernet/mellanox/mlx4/qp.c if (attr & MLX4_UPDATE_QP_RATE_LIMIT) { attr 490 drivers/net/ethernet/mellanox/mlx4/qp.c if (attr & MLX4_UPDATE_QP_QOS_VPORT) { attr 4562 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct nlattr *attr, *br_spec; attr 4571 drivers/net/ethernet/mellanox/mlx5/core/en_main.c nla_for_each_nested(attr, br_spec, rem) { attr 4572 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (nla_type(attr) != IFLA_BRIDGE_MODE) attr 4575 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (nla_len(attr) < sizeof(mode)) attr 4578 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mode = nla_get_u16(attr); attr 904 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_nic_flow_attr *attr = flow->nic_attr; attr 908 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c .action = attr->action, attr 915 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow_context->flow_tag = attr->flow_tag; attr 924 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c dest[dest_ix].ft = attr->hairpin_ft; attr 927 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c dest[dest_ix].tir_num = attr->hairpin_tirn; attr 930 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c } else if (attr->action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) { attr 936 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_COUNT) { attr 944 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->counter = counter; attr 947 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR) { attr 949 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow_act.modify_hdr = attr->modify_hdr; attr 984 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->match_level != MLX5_MATCH_NONE) attr 997 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_nic_flow_attr *attr = flow->nic_attr; attr 1000 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c counter = attr->counter; attr 1012 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR) attr 1034 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr) attr 1038 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c rule = mlx5_eswitch_add_offloaded_rule(esw, spec, attr); attr 1042 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->split_count) { attr 1043 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow->rule[1] = mlx5_eswitch_add_fwd_rule(esw, spec, attr); attr 1045 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_eswitch_del_offloaded_rule(esw, rule, attr); attr 1056 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr) attr 1060 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->split_count) attr 1061 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_eswitch_del_fwd_rule(esw, flow->rule[1], attr); attr 1063 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_eswitch_del_offloaded_rule(esw, flow->rule[0], attr); attr 1155 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr = flow->esw_attr; attr 1156 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5e_tc_flow_parse_attr *parse_attr = attr->parse_attr; attr 1166 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!mlx5_eswitch_prios_supported(esw) && attr->prio != 1) { attr 1171 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->chain > max_chain) { attr 1176 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->prio > max_prio) { attr 1184 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!(attr->dests[out_index].flags & MLX5_ESW_DEST_ENCAP)) attr 1197 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dests[out_index].rep = rpriv->rep; attr 1198 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dests[out_index].mdev = out_priv->mdev; attr 1201 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5_eswitch_add_vlan_action(esw, attr); attr 1205 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR) { attr 1212 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_COUNT) { attr 1213 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c counter = mlx5_fc_create(attr->counter_dev, true); attr 1217 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->counter = counter; attr 1230 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow->rule[0] = mlx5e_tc_offload_fdb_rules(esw, flow, &parse_attr->spec, attr); attr 1258 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr = flow->esw_attr; attr 1264 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c kvfree(attr->parse_attr); attr 1272 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5e_tc_unoffload_fdb_rules(esw, flow, attr); attr 1278 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_eswitch_del_vlan_action(esw, attr); attr 1281 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->dests[out_index].flags & MLX5_ESW_DEST_ENCAP) { attr 1283 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c kfree(attr->parse_attr->tun_info[out_index]); attr 1285 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c kvfree(attr->parse_attr); attr 1287 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR) attr 1290 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_COUNT) attr 1291 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_fc_destroy(attr->counter_dev, attr->counter); attr 2818 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_nic_flow_attr *attr = flow->nic_attr; attr 2827 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->flow_tag = MLX5_FS_DEFAULT_FLOW_TAG; attr 2890 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->flow_tag = mark; attr 2915 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->action = action; attr 2997 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr = flow->esw_attr; attr 3006 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c parse_attr = attr->parse_attr; attr 3078 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dests[out_index].pkt_reformat = e->pkt_reformat; attr 3079 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dests[out_index].flags |= MLX5_ESW_DEST_ENCAP_VALID; attr 3103 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr, attr 3106 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c u8 vlan_idx = attr->total_vlan; attr 3124 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->vlan_vid[vlan_idx] = act->vlan.vid; attr 3125 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->vlan_prio[vlan_idx] = act->vlan.prio; attr 3126 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->vlan_proto[vlan_idx] = act->vlan.proto; attr 3127 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!attr->vlan_proto[vlan_idx]) attr 3128 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->vlan_proto[vlan_idx] = htons(ETH_P_8021Q); attr 3149 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->total_vlan = vlan_idx + 1; attr 3155 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr, attr 3168 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = parse_tc_vlan_action(priv, &vlan_act, attr, action); attr 3175 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = add_vlan_push_action(priv, attr, out_dev, action); attr 3181 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr, attr 3189 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c nest_level = attr->parse_attr->filter_dev->lower_level - attr 3192 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = parse_tc_vlan_action(priv, &vlan_act, attr, action); attr 3217 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr = flow->esw_attr; attr 3218 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5e_tc_flow_parse_attr *parse_attr = attr->parse_attr; attr 3243 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->split_count = attr->out_count; attr 3265 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->out_count >= MLX5_MAX_FLOW_FWD_VPORTS) { attr 3269 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->out_count); attr 3276 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c parse_attr->mirred_ifindex[attr->out_count] = attr 3278 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c parse_attr->tun_info[attr->out_count] = dup_tun_info(info); attr 3279 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!parse_attr->tun_info[attr->out_count]) attr 3282 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dests[attr->out_count].flags |= attr 3284 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->out_count++; attr 3303 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = add_vlan_push_action(priv, attr, attr 3311 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = add_vlan_pop_action(priv, attr, attr 3327 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dests[attr->out_count].rep = rpriv->rep; attr 3328 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dests[attr->out_count].mdev = out_priv->mdev; attr 3329 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->out_count++; attr 3365 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = parse_tc_vlan_action(priv, act, attr, &action); attr 3370 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->split_count = attr->out_count; attr 3380 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->split_count = attr->out_count; attr 3389 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (dest_chain <= attr->chain) { attr 3398 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->dest_chain = dest_chain; attr 3434 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->split_count = 0; attr 3438 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->action = action; attr 3442 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->dest_chain) { attr 3443 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) { attr 3447 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; attr 3450 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!(attr->action & attr 3456 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (attr->split_count > 0 && !mlx5_esw_has_fwd_fdb(priv->mdev)) { attr 3505 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_esw_flow_attr *attr = flow->esw_attr; attr 3506 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c bool is_rep_ingress = attr->in_rep->vport != MLX5_VPORT_UPLINK && attr 3508 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c bool act_is_encap = !!(attr->action & attr 3510 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c bool esw_paired = mlx5_devcom_is_paired(attr->in_mdev->priv.devcom, attr 3516 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if ((mlx5_lag_is_sriov(attr->in_mdev) || attr 3517 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_lag_is_multipath(attr->in_mdev)) && attr 1440 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c __be32 *attr; attr 1455 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c attr = MLX5_ADDR_OF(scheduling_context, tsar_ctx, element_attributes); attr 1456 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c *attr = cpu_to_be32(TSAR_ELEMENT_TSAR_TYPE_DWRR << 16); attr 313 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_esw_flow_attr *attr, attr 325 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_esw_flow_attr *attr); attr 329 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_esw_flow_attr *attr); attr 333 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_esw_flow_attr *attr); attr 337 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_esw_flow_attr *attr); attr 418 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_esw_flow_attr *attr); attr 420 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_esw_flow_attr *attr); attr 94 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr) attr 105 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_eswitch_get_vport_metadata_for_match(attr->in_mdev->priv.eswitch, attr 106 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c attr->in_rep->vport)); attr 117 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_SET(fte_match_set_misc, misc, source_port, attr->in_rep->vport); attr 122 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_CAP_GEN(attr->in_mdev, vhca_id)); attr 134 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c attr->in_rep->vport == MLX5_VPORT_UPLINK) attr 141 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr) attr 145 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c bool split = !!(attr->split_count); attr 153 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.action = attr->action; attr 159 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.vlan[0].ethtype = ntohs(attr->vlan_proto[0]); attr 160 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.vlan[0].vid = attr->vlan_vid[0]; attr 161 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.vlan[0].prio = attr->vlan_prio[0]; attr 163 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.vlan[1].ethtype = ntohs(attr->vlan_proto[1]); attr 164 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.vlan[1].vid = attr->vlan_vid[1]; attr 165 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.vlan[1].prio = attr->vlan_prio[1]; attr 170 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dest_chain) { attr 173 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c ft = esw_get_prio_table(esw, attr->dest_chain, 1, 0); attr 183 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c for (j = attr->split_count; j < attr->out_count; j++) { attr 185 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c dest[i].vport.num = attr->dests[j].rep->vport; attr 187 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_CAP_GEN(attr->dests[j].mdev, vhca_id); attr 191 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dests[j].flags & MLX5_ESW_DEST_ENCAP) { attr 193 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.pkt_reformat = attr->dests[j].pkt_reformat; attr 196 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c attr->dests[j].pkt_reformat; attr 204 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c dest[i].counter_id = mlx5_fc_id(attr->counter); attr 208 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_eswitch_set_rule_source_port(esw, spec, attr); attr 210 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->outer_match_level != MLX5_MATCH_NONE) attr 212 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->inner_match_level != MLX5_MATCH_NONE) attr 216 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.modify_hdr = attr->modify_hdr; attr 218 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c fdb = esw_get_prio_table(esw, attr->chain, attr->prio, !!split); attr 225 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c rule = mlx5_eswitch_add_termtbl_rule(esw, fdb, spec, attr, attr 237 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->chain, attr->prio, !!split); attr 239 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dest_chain) attr 240 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->dest_chain, 1, 0); attr 248 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr) attr 257 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c fast_fdb = esw_get_prio_table(esw, attr->chain, attr->prio, 0); attr 263 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c fwd_fdb = esw_get_prio_table(esw, attr->chain, attr->prio, 1); attr 270 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c for (i = 0; i < attr->split_count; i++) { attr 272 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c dest[i].vport.num = attr->dests[i].rep->vport; attr 274 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_CAP_GEN(attr->dests[i].mdev, vhca_id); attr 277 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dests[i].flags & MLX5_ESW_DEST_ENCAP) { attr 279 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c dest[i].vport.pkt_reformat = attr->dests[i].pkt_reformat; attr 286 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_eswitch_set_rule_source_port(esw, spec, attr); attr 288 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->outer_match_level != MLX5_MATCH_NONE) attr 300 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->chain, attr->prio, 1); attr 302 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->chain, attr->prio, 0); attr 310 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr, attr 313 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c bool split = (attr->split_count > 0); attr 320 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dests[i].termtbl) attr 321 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_eswitch_termtbl_put(esw, attr->dests[i].termtbl); attr 327 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->chain, attr->prio, 1); attr 328 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->chain, attr->prio, 0); attr 330 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->chain, attr->prio, !!split); attr 331 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dest_chain) attr 332 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_put_prio_table(esw, attr->dest_chain, 1, 0); attr 339 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr) attr 341 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c __mlx5_eswitch_del_rule(esw, rule, attr, false); attr 347 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr) attr 349 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c __mlx5_eswitch_del_rule(esw, rule, attr, true); attr 372 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw_vlan_action_get_vport(struct mlx5_esw_flow_attr *attr, bool push, bool pop) attr 376 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c in_rep = attr->in_rep; attr 377 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c out_rep = attr->dests[0].rep; attr 389 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_add_vlan_action_check(struct mlx5_esw_flow_attr *attr, attr 397 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c in_rep = attr->in_rep; attr 398 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c out_rep = attr->dests[0].rep; attr 414 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (push && in_rep->vlan_refcount && (in_rep->vlan != attr->vlan_vid[0])) attr 424 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr) attr 435 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c push = !!(attr->action & MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH); attr 436 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c pop = !!(attr->action & MLX5_FLOW_CONTEXT_ACTION_VLAN_POP); attr 437 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c fwd = !!((attr->action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) && attr 438 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c !attr->dest_chain); attr 442 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c err = esw_add_vlan_action_check(attr, push, pop, fwd); attr 446 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c attr->vlan_handled = false; attr 448 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c vport = esw_vlan_action_get_vport(attr, push, pop); attr 452 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dests[0].rep->vport == MLX5_VPORT_UPLINK) { attr 454 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c attr->vlan_handled = true; attr 475 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c err = __mlx5_eswitch_set_vport_vlan(esw, vport->vport, attr->vlan_vid[0], 0, attr 479 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c vport->vlan = attr->vlan_vid[0]; attr 485 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c attr->vlan_handled = true; attr 492 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct mlx5_esw_flow_attr *attr) attr 503 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (!attr->vlan_handled) attr 506 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c push = !!(attr->action & MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH); attr 507 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c pop = !!(attr->action & MLX5_FLOW_CONTEXT_ACTION_VLAN_POP); attr 508 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c fwd = !!(attr->action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST); attr 512 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c vport = esw_vlan_action_get_vport(attr, push, pop); attr 516 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dests[0].rep->vport == MLX5_VPORT_UPLINK) attr 213 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c struct mlx5_esw_flow_attr *attr, attr 241 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c attr->dests[num_vport_dests].termtbl = tt; attr 268 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c struct mlx5_termtbl_handle *tt = attr->dests[curr_dest].termtbl; attr 851 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c struct mlx5_fpga_conn_attr *attr, attr 858 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c if (!attr->recv_cb) attr 870 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->recv_cb = attr->recv_cb; attr 871 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->cb_arg = attr->cb_arg; attr 910 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c (attr->tx_size + attr->rx_size) * 2); attr 919 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c err = mlx5_fpga_conn_create_qp(conn, attr->tx_size, attr->rx_size); attr 90 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.h struct mlx5_fpga_conn_attr *attr, attr 42 drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.c struct mlx5_fpga_conn_attr *attr) attr 44 drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.c return mlx5_fpga_conn_create(fdev, attr, MLX5_FPGA_QPC_QP_TYPE_SANDBOX_QP); attr 135 drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.h struct mlx5_fpga_conn_attr *attr); attr 410 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c struct dr_action_apply_attr *attr, attr 423 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->modify_actions, attr 424 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->modify_index); attr 430 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c for (i = 0; i < attr->vlans.count; i++) { attr 435 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->gvmi); attr 438 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->vlans.headers[i], attr 453 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->gvmi); attr 456 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->reformat_id, attr 457 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->reformat_size, attr 469 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c mlx5dr_ste_set_counter_id(last_ste, attr->ctr_id); attr 474 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c struct dr_action_apply_attr *attr, attr 478 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c mlx5dr_ste_set_counter_id(last_ste, attr->ctr_id); attr 482 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c mlx5dr_ste_set_rx_decap_l3(last_ste, attr->decap_with_vlan); attr 484 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->decap_actions, attr 485 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->decap_index); attr 494 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c for (i = 0; i < attr->vlans.count; i++) { attr 501 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->gvmi); attr 512 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->gvmi); attr 517 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->modify_actions, attr 518 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->modify_index); attr 526 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr->gvmi); attr 528 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c mlx5dr_ste_rx_set_flow_tag(last_ste, attr->flow_tag); attr 540 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c struct dr_action_apply_attr *attr, attr 546 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c dr_actions_apply_rx(action_type_set, last_ste, attr, &added_stes); attr 548 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c dr_actions_apply_tx(dmn, action_type_set, last_ste, attr, &added_stes); attr 553 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c mlx5dr_ste_set_hit_gvmi(last_ste, attr->hit_gvmi); attr 554 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c mlx5dr_ste_set_hit_addr(last_ste, attr->final_icm_addr, 1); attr 648 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c struct dr_action_apply_attr attr = {}; attr 654 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.gvmi = dmn->info.caps.gvmi; attr 655 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.hit_gvmi = dmn->info.caps.gvmi; attr 656 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.final_icm_addr = nic_dmn->default_icm_addr; attr 669 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.final_icm_addr = nic_dmn->drop_icm_addr; attr 684 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.final_icm_addr = rx_rule ? attr 709 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.final_icm_addr = rx_rule ? attr 718 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.ctr_id = action->ctr.ctr_id + attr 722 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.flow_tag = action->flow_tag; attr 727 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.decap_index = action->rewrite.index; attr 728 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.decap_actions = action->rewrite.num_of_actions; attr 729 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.decap_with_vlan = attr 730 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.decap_actions == WITH_VLAN_NUM_HW_ACTIONS; attr 733 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.modify_index = action->rewrite.index; attr 734 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.modify_actions = action->rewrite.num_of_actions; attr 739 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.reformat_size = action->reformat.reformat_size; attr 740 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.reformat_id = action->reformat.reformat_id; attr 743 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.hit_gvmi = action->vport.caps->vhca_gvmi; attr 750 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.final_icm_addr = action->vport.caps->icm_address_rx; attr 752 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.final_icm_addr = action->vport.caps->icm_address_tx; attr 757 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.vlans.count++; attr 761 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c if (attr.vlans.count == MAX_VLANS) attr 764 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c attr.vlans.headers[attr.vlans.count++] = action->push_vlan.vlan_hdr; attr 795 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c ret = dr_action_handle_cs_recalc(dmn, dest_action, &attr.final_icm_addr); attr 808 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c &attr, attr 448 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c u16 index, struct mlx5dr_cmd_gid_attr *attr) attr 464 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c memcpy(&attr->gid, attr 467 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c sizeof(attr->gid)); attr 468 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c memcpy(attr->mac, attr 471 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c sizeof(attr->mac)); attr 475 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c attr->roce_ver = MLX5_ROCE_VERSION_2; attr 477 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c attr->roce_ver = MLX5_ROCE_VERSION_1; attr 109 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c struct dr_qp_init_attr *attr) attr 131 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dr_qp->sq.wqe_cnt = roundup_pow_of_two(attr->max_send_wr); attr 164 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, pd, attr->pdn); attr 165 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, uar_page, attr->uar->index); attr 170 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, cqn_snd, attr->cqn); attr 171 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, cqn_rcv, attr->cqn); attr 191 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dr_qp->uar = attr->uar; attr 594 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c struct dr_qp_rts_attr *attr) attr 604 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, retry_count, attr->retry_cnt); attr 605 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, rnr_retry, attr->rnr_retry); attr 613 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c struct dr_qp_rtr_attr *attr) attr 622 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, mtu, attr->mtu); attr 624 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, remote_qpn, attr->qp_num); attr 626 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c attr->dgid_attr.mac, sizeof(attr->dgid_attr.mac)); attr 628 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c attr->dgid_attr.gid, sizeof(attr->dgid_attr.gid)); attr 630 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c attr->sgid_index); attr 632 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c if (attr->dgid_attr.roce_ver == MLX5_ROCE_VERSION_2) attr 634 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c attr->udp_src_port); attr 636 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, primary_address_path.vhca_port_num, attr->port_num); attr 942 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h u16 index, struct mlx5dr_cmd_gid_attr *attr); attr 48 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 52 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 71 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 75 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 94 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 98 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 123 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 127 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 142 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 146 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 163 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 167 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 183 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 187 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 209 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 213 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 232 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 236 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 275 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, char *buf) attr 278 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 297 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 301 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 320 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 324 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 332 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device_attribute *attr, attr 336 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c container_of(attr, struct mlxsw_hwmon_attr, dev_attr); attr 371 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 377 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 383 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0200; attr 389 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 395 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 402 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0644; attr 408 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 415 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 422 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 429 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 436 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 443 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; attr 453 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.name = mlxsw_hwmon_attr->name; attr 454 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c sysfs_attr_init(&mlxsw_hwmon_attr->dev_attr.attr); attr 456 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon->attrs[attr_index] = &mlxsw_hwmon_attr->dev_attr.attr; attr 828 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c const struct switchdev_attr *attr, attr 834 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c switch (attr->id) { attr 837 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->orig_dev, attr 838 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.stp_state); attr 843 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.brport_flags); attr 847 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->orig_dev, attr 848 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.brport_flags); attr 852 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.ageing_time); attr 856 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->orig_dev, attr 857 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.vlan_filtering); attr 861 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->orig_dev, attr 862 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.mrouter); attr 866 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->orig_dev, attr 867 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.mc_disabled); attr 871 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->orig_dev, attr 872 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c attr->u.mrouter); attr 1305 drivers/net/ethernet/mscc/ocelot.c const struct switchdev_attr *attr, attr 1311 drivers/net/ethernet/mscc/ocelot.c switch (attr->id) { attr 1314 drivers/net/ethernet/mscc/ocelot.c attr->u.stp_state); attr 1317 drivers/net/ethernet/mscc/ocelot.c ocelot_port_attr_ageing_set(ocelot_port, attr->u.ageing_time); attr 1320 drivers/net/ethernet/mscc/ocelot.c ocelot_port->vlan_aware = attr->u.vlan_filtering; attr 1324 drivers/net/ethernet/mscc/ocelot.c ocelot_port_attr_mc_set(ocelot_port, !attr->u.mc_disabled); attr 655 drivers/net/ethernet/natsemi/natsemi.c struct device_attribute *attr, char *buf); \ attr 657 drivers/net/ethernet/natsemi/natsemi.c struct device_attribute *attr, \ attr 669 drivers/net/ethernet/natsemi/natsemi.c struct device_attribute *attr, attr 678 drivers/net/ethernet/natsemi/natsemi.c struct device_attribute *attr, attr 1311 drivers/net/ethernet/neterion/vxge/vxge-config.c struct vxge_hw_device_attr *attr, attr 1337 drivers/net/ethernet/neterion/vxge/vxge-config.c hldev->bar0 = attr->bar0; attr 1338 drivers/net/ethernet/neterion/vxge/vxge-config.c hldev->pdev = attr->pdev; attr 1340 drivers/net/ethernet/neterion/vxge/vxge-config.c hldev->uld_callbacks = attr->uld_callbacks; attr 2794 drivers/net/ethernet/neterion/vxge/vxge-config.c struct vxge_hw_ring_attr *attr) attr 2806 drivers/net/ethernet/neterion/vxge/vxge-config.c if ((vp == NULL) || (attr == NULL)) { attr 2822 drivers/net/ethernet/neterion/vxge/vxge-config.c attr->per_rxd_space, attr 2823 drivers/net/ethernet/neterion/vxge/vxge-config.c attr->userdata); attr 2835 drivers/net/ethernet/neterion/vxge/vxge-config.c ring->callback = attr->callback; attr 2836 drivers/net/ethernet/neterion/vxge/vxge-config.c ring->rxd_init = attr->rxd_init; attr 2837 drivers/net/ethernet/neterion/vxge/vxge-config.c ring->rxd_term = attr->rxd_term; attr 2845 drivers/net/ethernet/neterion/vxge/vxge-config.c sizeof(struct __vxge_hw_ring_rxd_priv) + attr->per_rxd_space; attr 2846 drivers/net/ethernet/neterion/vxge/vxge-config.c ring->per_rxd_space = attr->per_rxd_space; attr 3441 drivers/net/ethernet/neterion/vxge/vxge-config.c struct vxge_hw_fifo_attr *attr) attr 3450 drivers/net/ethernet/neterion/vxge/vxge-config.c if ((vp == NULL) || (attr == NULL)) { attr 3464 drivers/net/ethernet/neterion/vxge/vxge-config.c attr->per_txdl_space, attr->userdata); attr 3511 drivers/net/ethernet/neterion/vxge/vxge-config.c sizeof(struct __vxge_hw_fifo_txdl_priv) + attr->per_txdl_space; attr 3515 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->per_txdl_space = attr->per_txdl_space; attr 3521 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->txdl_term = attr->txdl_term; attr 3522 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->callback = attr->callback; attr 4796 drivers/net/ethernet/neterion/vxge/vxge-config.c struct vxge_hw_vpath_attr *attr, attr 4803 drivers/net/ethernet/neterion/vxge/vxge-config.c vpath = &hldev->virtual_paths[attr->vp_id]; attr 4810 drivers/net/ethernet/neterion/vxge/vxge-config.c status = __vxge_hw_vp_initialize(hldev, attr->vp_id, attr 4811 drivers/net/ethernet/neterion/vxge/vxge-config.c &hldev->config.vp_config[attr->vp_id]); attr 4824 drivers/net/ethernet/neterion/vxge/vxge-config.c status = __vxge_hw_fifo_create(vp, &attr->fifo_attr); attr 4830 drivers/net/ethernet/neterion/vxge/vxge-config.c status = __vxge_hw_ring_create(vp, &attr->ring_attr); attr 4834 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_vpath_prc_configure(hldev, attr->vp_id); attr 4838 drivers/net/ethernet/neterion/vxge/vxge-config.c (attr->vp_id * VXGE_HW_MAX_INTR_PER_VP) + attr 4852 drivers/net/ethernet/neterion/vxge/vxge-config.c hldev->stats.hw_dev_info_stats.vpath_info[attr->vp_id] = attr 4856 drivers/net/ethernet/neterion/vxge/vxge-config.c &hldev->stats.hw_dev_info_stats.vpath_info_sav[attr->vp_id]; attr 4872 drivers/net/ethernet/neterion/vxge/vxge-config.c attr->fifo_attr.userdata = vpath->fifoh; attr 4873 drivers/net/ethernet/neterion/vxge/vxge-config.c attr->ring_attr.userdata = vpath->ringh; attr 4886 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_vp_terminate(hldev, attr->vp_id); attr 1882 drivers/net/ethernet/neterion/vxge/vxge-config.h struct vxge_hw_device_attr *attr, attr 1987 drivers/net/ethernet/neterion/vxge/vxge-config.h struct vxge_hw_vpath_attr *attr, attr 2022 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_hw_vpath_attr attr; attr 2047 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.vp_id = vpath->device_id; attr 2048 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.fifo_attr.callback = vxge_xmit_compl; attr 2049 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.fifo_attr.txdl_term = vxge_tx_term; attr 2050 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.fifo_attr.per_txdl_space = sizeof(struct vxge_tx_priv); attr 2051 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.fifo_attr.userdata = &vpath->fifo; attr 2053 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.ring_attr.callback = vxge_rx_1b_compl; attr 2054 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.ring_attr.rxd_init = vxge_rx_initial_replenish; attr 2055 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.ring_attr.rxd_term = vxge_rx_term; attr 2056 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.ring_attr.per_rxd_space = sizeof(struct vxge_rx_priv); attr 2057 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.ring_attr.userdata = &vpath->ring; attr 2062 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_vpath_open(vdev->devh, &attr, &vpath->handle); attr 2065 drivers/net/ethernet/neterion/vxge/vxge-main.c (struct __vxge_hw_fifo *)attr.fifo_attr.userdata; attr 2067 drivers/net/ethernet/neterion/vxge/vxge-main.c (struct __vxge_hw_ring *)attr.ring_attr.userdata; attr 4308 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_hw_device_attr attr; attr 4320 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.pdev = pdev; attr 4424 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.bar0 = pci_ioremap_bar(pdev, 0); attr 4425 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!attr.bar0) { attr 4433 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.bar0, attr 4436 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_device_hw_info_get(attr.bar0, attr 4496 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.uld_callbacks = &vxge_callbacks; attr 4498 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_device_initialize(&hldev, &attr, device_config); attr 4594 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->bar0 = attr.bar0; attr 4740 drivers/net/ethernet/neterion/vxge/vxge-main.c iounmap(attr.bar0); attr 27 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c nfp_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, attr 32 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c u32 attr; attr 44 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c if (const_vals[i].type == type && const_vals[i].attr == attr) { attr 57 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c if (type == hwmon_temp && attr == hwmon_temp_input) attr 59 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c if (type == hwmon_power && attr == hwmon_power_input) attr 66 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c nfp_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, attr 70 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c switch (attr) { attr 77 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c switch (attr) { attr 176 drivers/net/ethernet/pensando/ionic/ionic_dev.c .port_setattr.attr = IONIC_PORT_ATTR_STATE, attr 188 drivers/net/ethernet/pensando/ionic/ionic_dev.c .port_setattr.attr = IONIC_PORT_ATTR_SPEED, attr 200 drivers/net/ethernet/pensando/ionic/ionic_dev.c .port_setattr.attr = IONIC_PORT_ATTR_AUTONEG, attr 212 drivers/net/ethernet/pensando/ionic/ionic_dev.c .port_setattr.attr = IONIC_PORT_ATTR_FEC, attr 224 drivers/net/ethernet/pensando/ionic/ionic_dev.c .port_setattr.attr = IONIC_PORT_ATTR_PAUSE, attr 1194 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 attr; attr 1229 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 attr; attr 1311 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 attr; attr 1344 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 attr; attr 1409 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 attr; attr 1455 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 attr; attr 1073 drivers/net/ethernet/pensando/ionic/ionic_lif.c .attr = IONIC_LIF_ATTR_FEATURES, attr 1244 drivers/net/ethernet/pensando/ionic/ionic_lif.c .attr = IONIC_LIF_ATTR_MTU, attr 1341 drivers/net/ethernet/pensando/ionic/ionic_lif.c .attr = IONIC_LIF_ATTR_RSS, attr 1939 drivers/net/ethernet/pensando/ionic/ionic_lif.c .attr = IONIC_LIF_ATTR_MAC, attr 2085 drivers/net/ethernet/pensando/ionic/ionic_lif.c .attr = IONIC_LIF_ATTR_NAME, attr 2746 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct device_attribute *attr, const char *buf, size_t len) attr 2771 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct device_attribute *attr, char *buf) attr 2786 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "bridged_mode", .mode = 0644 }, attr 2793 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct device_attribute *attr, const char *buf, size_t len) attr 2809 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct device_attribute *attr, char *buf) attr 2818 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "diag_mode", .mode = 0644 }, attr 2851 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct bin_attribute *attr, attr 2879 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct bin_attribute *attr, attr 2920 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct bin_attribute *attr, attr 2941 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct bin_attribute *attr, char *buf, attr 2963 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "crb", .mode = 0644 }, attr 2970 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "mem", .mode = 0644 }, attr 2978 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct bin_attribute *attr, attr 2988 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (size < attr->size) { attr 3099 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "dimm", .mode = 0644 }, attr 84 drivers/net/ethernet/qlogic/qede/qede_ethtool.c #define _QEDE_STAT(stat_name, type, base, attr) \ attr 87 drivers/net/ethernet/qlogic/qede/qede_ethtool.c attr} attr 104 drivers/net/ethernet/qlogic/qede/qede_ethtool.c unsigned long attr; attr 184 drivers/net/ethernet/qlogic/qede/qede_ethtool.c test_bit(QEDE_STAT_PF_ONLY, &qede_stats_arr[i].attr) attr 186 drivers/net/ethernet/qlogic/qede/qede_ethtool.c test_bit(QEDE_STAT_BB_ONLY, &qede_stats_arr[i].attr) attr 188 drivers/net/ethernet/qlogic/qede/qede_ethtool.c test_bit(QEDE_STAT_AH_ONLY, &qede_stats_arr[i].attr) attr 909 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int qlcnic_dcb_get_num_tcs(struct net_device *netdev, int attr, u8 *num) attr 917 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c switch (attr) { attr 37 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device_attribute *attr, attr 61 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device_attribute *attr, attr 74 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device_attribute *attr, attr 90 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device_attribute *attr, char *buf) attr 216 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device_attribute *attr, attr 239 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device_attribute *attr, char *buf) attr 269 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, char *buf, attr 286 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, char *buf, attr 315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, char *buf, attr 337 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, char *buf, attr 401 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 451 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 544 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 628 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 680 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 727 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 774 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 809 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 844 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 873 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 903 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 943 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 1120 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct bin_attribute *attr, attr 1180 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "bridged_mode", .mode = 0644 }, attr 1186 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "diag_mode", .mode = 0644 }, attr 1192 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "beacon", .mode = 0644 }, attr 1198 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "crb", .mode = 0644 }, attr 1205 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "mem", .mode = 0644 }, attr 1212 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "npar_config", .mode = 0644 }, attr 1219 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "pci_config", .mode = 0644 }, attr 1226 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "port_stats", .mode = 0644 }, attr 1233 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "esw_stats", .mode = 0644 }, attr 1240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "esw_config", .mode = 0644 }, attr 1247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "pm_config", .mode = 0644 }, attr 1254 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "flash", .mode = 0644 }, attr 1285 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 1158 drivers/net/ethernet/rocker/rocker_main.c const struct rocker_tlv *attr; attr 1166 drivers/net/ethernet/rocker/rocker_main.c attr = info_attrs[ROCKER_TLV_CMD_PORT_SETTINGS_MACADDR]; attr 1167 drivers/net/ethernet/rocker/rocker_main.c if (!attr) attr 1170 drivers/net/ethernet/rocker/rocker_main.c if (rocker_tlv_len(attr) != ETH_ALEN) attr 1173 drivers/net/ethernet/rocker/rocker_main.c ether_addr_copy(macaddr, rocker_tlv_data(attr)); attr 1185 drivers/net/ethernet/rocker/rocker_main.c const struct rocker_tlv *attr; attr 1193 drivers/net/ethernet/rocker/rocker_main.c attr = info_attrs[ROCKER_TLV_CMD_PORT_SETTINGS_MODE]; attr 1194 drivers/net/ethernet/rocker/rocker_main.c if (!attr) attr 1214 drivers/net/ethernet/rocker/rocker_main.c const struct rocker_tlv *attr; attr 1224 drivers/net/ethernet/rocker/rocker_main.c attr = info_attrs[ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME]; attr 1225 drivers/net/ethernet/rocker/rocker_main.c if (!attr) attr 1228 drivers/net/ethernet/rocker/rocker_main.c len = min_t(size_t, rocker_tlv_len(attr), name->len); attr 1229 drivers/net/ethernet/rocker/rocker_main.c str = rocker_tlv_data(attr); attr 1841 drivers/net/ethernet/rocker/rocker_main.c struct rocker_tlv *attr; attr 1847 drivers/net/ethernet/rocker/rocker_main.c rocker_tlv_for_each_nested(attr, attrs[ROCKER_TLV_TX_FRAGS], rem) { attr 1852 drivers/net/ethernet/rocker/rocker_main.c if (rocker_tlv_type(attr) != ROCKER_TLV_TX_FRAG) attr 1855 drivers/net/ethernet/rocker/rocker_main.c attr); attr 2066 drivers/net/ethernet/rocker/rocker_main.c const struct switchdev_attr *attr, attr 2072 drivers/net/ethernet/rocker/rocker_main.c switch (attr->id) { attr 2075 drivers/net/ethernet/rocker/rocker_main.c attr->u.stp_state, attr 2080 drivers/net/ethernet/rocker/rocker_main.c attr->u.brport_flags, attr 2085 drivers/net/ethernet/rocker/rocker_main.c attr->u.brport_flags, attr 2090 drivers/net/ethernet/rocker/rocker_main.c attr->u.ageing_time, attr 2728 drivers/net/ethernet/rocker/rocker_main.c err = rocker_port_attr_set(netdev, port_attr_info->attr, attr 508 drivers/net/ethernet/sfc/ef10.c struct device_attribute *attr, attr 520 drivers/net/ethernet/sfc/ef10.c struct device_attribute *attr, attr 2519 drivers/net/ethernet/sfc/efx.c show_phy_type(struct device *dev, struct device_attribute *attr, char *buf) attr 2527 drivers/net/ethernet/sfc/efx.c static ssize_t show_mcdi_log(struct device *dev, struct device_attribute *attr, attr 2535 drivers/net/ethernet/sfc/efx.c static ssize_t set_mcdi_log(struct device *dev, struct device_attribute *attr, attr 2257 drivers/net/ethernet/sfc/falcon/efx.c show_phy_type(struct device *dev, struct device_attribute *attr, char *buf) attr 358 drivers/net/ethernet/sfc/falcon/falcon_boards.c struct device_attribute *attr, char *buf) attr 365 drivers/net/ethernet/sfc/falcon/falcon_boards.c struct device_attribute *attr, attr 187 drivers/net/ethernet/sfc/mcdi_mon.c struct device_attribute *attr, attr 191 drivers/net/ethernet/sfc/mcdi_mon.c container_of(attr, struct efx_mcdi_mon_attribute, dev_attr); attr 224 drivers/net/ethernet/sfc/mcdi_mon.c struct device_attribute *attr, attr 228 drivers/net/ethernet/sfc/mcdi_mon.c container_of(attr, struct efx_mcdi_mon_attribute, dev_attr); attr 251 drivers/net/ethernet/sfc/mcdi_mon.c struct device_attribute *attr, attr 255 drivers/net/ethernet/sfc/mcdi_mon.c container_of(attr, struct efx_mcdi_mon_attribute, dev_attr); attr 269 drivers/net/ethernet/sfc/mcdi_mon.c struct device_attribute *attr, attr 273 drivers/net/ethernet/sfc/mcdi_mon.c container_of(attr, struct efx_mcdi_mon_attribute, dev_attr); attr 286 drivers/net/ethernet/sfc/mcdi_mon.c struct efx_mcdi_mon_attribute *attr = &hwmon->attrs[hwmon->n_attrs]; attr 288 drivers/net/ethernet/sfc/mcdi_mon.c strlcpy(attr->name, name, sizeof(attr->name)); attr 289 drivers/net/ethernet/sfc/mcdi_mon.c attr->index = index; attr 290 drivers/net/ethernet/sfc/mcdi_mon.c attr->type = type; attr 292 drivers/net/ethernet/sfc/mcdi_mon.c attr->hwmon_type = efx_mcdi_sensor_type[type].hwmon_type; attr 294 drivers/net/ethernet/sfc/mcdi_mon.c attr->hwmon_type = EFX_HWMON_UNKNOWN; attr 295 drivers/net/ethernet/sfc/mcdi_mon.c attr->limit_value = limit_value; attr 296 drivers/net/ethernet/sfc/mcdi_mon.c sysfs_attr_init(&attr->dev_attr.attr); attr 297 drivers/net/ethernet/sfc/mcdi_mon.c attr->dev_attr.attr.name = attr->name; attr 298 drivers/net/ethernet/sfc/mcdi_mon.c attr->dev_attr.attr.mode = 0444; attr 299 drivers/net/ethernet/sfc/mcdi_mon.c attr->dev_attr.show = reader; attr 300 drivers/net/ethernet/sfc/mcdi_mon.c hwmon->group.attrs[hwmon->n_attrs++] = &attr->dev_attr.attr; attr 166 drivers/net/ethernet/sgi/ioc3-eth.c static inline unsigned long ioc3_map(dma_addr_t addr, unsigned long attr) attr 168 drivers/net/ethernet/sgi/ioc3-eth.c return (addr & ~PCI64_ATTR_BAR) | attr; attr 173 drivers/net/ethernet/sgi/ioc3-eth.c static inline unsigned long ioc3_map(dma_addr_t addr, unsigned long attr) attr 312 drivers/net/ethernet/socionext/netsec.c u32 attr; attr 610 drivers/net/ethernet/socionext/netsec.c u32 attr = (1 << NETSEC_RX_PKT_OWN_FIELD) | attr 615 drivers/net/ethernet/socionext/netsec.c attr |= (1 << NETSEC_RX_PKT_LD_FIELD); attr 620 drivers/net/ethernet/socionext/netsec.c de->attr = attr; attr 641 drivers/net/ethernet/socionext/netsec.c while (!(entry->attr & (1U << NETSEC_TX_SHIFT_OWN_FIELD)) && attr 647 drivers/net/ethernet/socionext/netsec.c eop = (entry->attr >> NETSEC_TX_LAST) & 1; attr 675 drivers/net/ethernet/socionext/netsec.c entry->attr = 1U << NETSEC_TX_SHIFT_OWN_FIELD; attr 781 drivers/net/ethernet/socionext/netsec.c u32 attr; attr 785 drivers/net/ethernet/socionext/netsec.c attr = (1 << NETSEC_TX_SHIFT_OWN_FIELD) | attr 794 drivers/net/ethernet/socionext/netsec.c attr |= (1 << NETSEC_TX_SHIFT_LD_FIELD); attr 799 drivers/net/ethernet/socionext/netsec.c de->attr = attr; attr 951 drivers/net/ethernet/socionext/netsec.c if (de->attr & (1U << NETSEC_RX_PKT_OWN_FIELD)) { attr 965 drivers/net/ethernet/socionext/netsec.c rx_info.err_code = (de->attr >> NETSEC_RX_PKT_ERR_FIELD) & attr 967 drivers/net/ethernet/socionext/netsec.c rx_info.err_flag = (de->attr >> NETSEC_RX_PKT_ER_FIELD) & 1; attr 979 drivers/net/ethernet/socionext/netsec.c (de->attr >> NETSEC_RX_PKT_CO_FIELD) & 3; attr 1266 drivers/net/ethernet/socionext/netsec.c de->attr = 1U << NETSEC_TX_SHIFT_OWN_FIELD; attr 58 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs *attr) attr 68 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c size = attr->size + STMMAC_TEST_PKT_SIZE; attr 69 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->vlan) { attr 71 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->vlan > 1) attr 75 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->tcp) attr 80 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->max_size && (attr->max_size > size)) attr 81 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c size = attr->max_size; attr 89 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->vlan > 1) attr 91 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c else if (attr->vlan) attr 93 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c else if (attr->remove_sa) attr 103 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->tcp) attr 108 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!attr->remove_sa) attr 111 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->src && !attr->remove_sa) attr 112 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ether_addr_copy(ehdr->h_source, attr->src); attr 113 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->dst) attr 114 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ether_addr_copy(ehdr->h_dest, attr->dst); attr 116 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!attr->remove_sa) { attr 125 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->vlan) { attr 128 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!attr->remove_sa) { attr 137 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tag[0] = htons(attr->vlan_id_out); attr 139 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->vlan > 1) { attr 142 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tag[2] = htons(attr->vlan_id_in); attr 147 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->tcp) { attr 148 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c thdr->source = htons(attr->sport); attr 149 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c thdr->dest = htons(attr->dport); attr 153 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->source = htons(attr->sport); attr 154 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->dest = htons(attr->dport); attr 155 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); attr 156 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->max_size) attr 157 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->len = htons(attr->max_size - attr 165 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->tcp) attr 169 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; attr 170 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->tcp) attr 175 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->max_size) attr 176 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c iplen = attr->max_size - sizeof(*ehdr); attr 180 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ihdr->saddr = htonl(attr->ip_src); attr 181 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ihdr->daddr = htonl(attr->ip_dst); attr 189 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr->id = stmmac_test_next_id; attr 192 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->size) attr 193 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb_put(skb, attr->size); attr 194 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->max_size && (attr->max_size > skb->len)) attr 195 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb_put(skb, attr->max_size - skb->len); attr 199 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->tcp) { attr 215 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs *attr) attr 217 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c __be32 ip_src = htonl(attr->ip_src); attr 218 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c __be32 ip_dst = htonl(attr->ip_dst); attr 222 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c NULL, attr->src, attr->dst); attr 316 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs *attr) attr 333 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = attr; attr 335 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!attr->dont_wait) attr 338 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb = stmmac_test_get_udp_skb(priv, attr); attr 344 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb_set_queue_mapping(skb, attr->queue_mapping); attr 349 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (attr->dont_wait) attr 352 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!attr->timeout) attr 353 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr->timeout = STMMAC_LB_TIMEOUT; attr 355 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c wait_for_completion_timeout(&tpriv->comp, attr->timeout); attr 359 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (!attr->dont_wait) attr 367 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 369 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 370 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c return __stmmac_test_loopback(priv, &attr); attr 375 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 385 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 386 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 532 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 556 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = gd_addr; attr 559 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 563 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = bd_addr; attr 566 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 578 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 600 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = gd_addr; attr 603 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 607 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = bd_addr; attr 610 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 622 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 646 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = uc_addr; attr 649 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 653 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = mc_addr; attr 656 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 668 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 692 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = mc_addr; attr 695 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 699 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = uc_addr; attr 702 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 774 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 776 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 777 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dont_wait = true; attr 778 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.size = 1400; attr 780 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 818 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 823 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 824 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.exp_hash = true; attr 825 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sport = 0x321; attr 826 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dport = 0x123; attr 828 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c return __stmmac_test_loopback(priv, &attr); attr 892 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 911 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; attr 926 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.vlan = 1; attr 927 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.vlan_id_out = tpriv->vlan_id + i; attr 928 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 929 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sport = 9; attr 930 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dport = 9; attr 932 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb = stmmac_test_get_udp_skb(priv, &attr); attr 967 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 987 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; attr 1002 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.vlan = 2; attr 1003 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.vlan_id_out = tpriv->vlan_id + i; attr 1004 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1005 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sport = 9; attr 1006 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dport = 9; attr 1008 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb = stmmac_test_get_udp_skb(priv, &attr); attr 1046 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1105 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1106 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.src = addr; attr 1108 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1134 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1140 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.remove_sa = true; attr 1141 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sarc = true; attr 1142 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.src = src; attr 1143 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1147 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1156 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1162 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sarc = true; attr 1163 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.src = src; attr 1164 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1168 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1177 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1183 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.remove_sa = true; attr 1184 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sarc = true; attr 1185 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.src = src; attr 1186 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1191 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1200 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1206 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sarc = true; attr 1207 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.src = src; attr 1208 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1213 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1221 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1244 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; attr 1252 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1254 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb = stmmac_test_get_udp_skb(priv, &attr); attr 1297 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1353 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1354 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.ip_dst = dst; attr 1355 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.ip_src = src; attr 1358 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1367 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1422 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1481 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1482 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.tcp = !udp; attr 1483 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.sport = src; attr 1484 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dport = dst; attr 1485 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.ip_dst = 0; attr 1488 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1497 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1581 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1602 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->packet = &attr; attr 1605 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.src = src; attr 1606 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.ip_src = ip_src; attr 1607 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = dst; attr 1608 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.ip_dst = ip_addr; attr 1610 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb = stmmac_test_get_arp_skb(priv, &attr); attr 1643 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1646 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1647 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.max_size = size - ETH_FCS_LEN; attr 1648 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.queue_mapping = queue; attr 1650 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c return __stmmac_test_loopback(priv, &attr); attr 1678 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct stmmac_packet_attrs attr = { }; attr 1685 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1686 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.tcp = false; attr 1688 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 1699 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.dst = priv->dev->dev_addr; attr 1700 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c attr.tcp = true; attr 1702 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = __stmmac_test_loopback(priv, &attr); attr 9327 drivers/net/ethernet/sun/niu.c struct device_attribute *attr, char *buf) attr 9357 drivers/net/ethernet/sun/niu.c struct device_attribute *attr, char *buf) attr 9385 drivers/net/ethernet/sun/niu.c struct device_attribute *attr, char *buf, attr 9407 drivers/net/ethernet/sun/niu.c struct device_attribute *attr, char *buf) attr 9409 drivers/net/ethernet/sun/niu.c return __show_chan_per_port(dev, attr, buf, 1); attr 9413 drivers/net/ethernet/sun/niu.c struct device_attribute *attr, char *buf) attr 9415 drivers/net/ethernet/sun/niu.c return __show_chan_per_port(dev, attr, buf, 1); attr 9419 drivers/net/ethernet/sun/niu.c struct device_attribute *attr, char *buf) attr 9448 drivers/net/ethernet/sun/niu.c for (i = 0; niu_parent_attributes[i].attr.name; i++) { attr 1239 drivers/net/ethernet/xilinx/ll_temac_main.c struct device_attribute *attr, char *buf) attr 1256 drivers/net/ethernet/xilinx/ll_temac_main.c &dev_attr_llink_regs.attr, attr 2418 drivers/net/macsec.c struct nlattr *attr; attr 2433 drivers/net/macsec.c attr = nla_nest_start_noflag(skb, MACSEC_ATTR_TXSC_STATS); attr 2434 drivers/net/macsec.c if (!attr) attr 2437 drivers/net/macsec.c nla_nest_cancel(skb, attr); attr 2440 drivers/net/macsec.c nla_nest_end(skb, attr); attr 2442 drivers/net/macsec.c attr = nla_nest_start_noflag(skb, MACSEC_ATTR_SECY_STATS); attr 2443 drivers/net/macsec.c if (!attr) attr 2446 drivers/net/macsec.c nla_nest_cancel(skb, attr); attr 2449 drivers/net/macsec.c nla_nest_end(skb, attr); attr 2476 drivers/net/macsec.c attr = nla_nest_start_noflag(skb, MACSEC_SA_ATTR_STATS); attr 2477 drivers/net/macsec.c if (!attr) { attr 2483 drivers/net/macsec.c nla_nest_cancel(skb, attr); attr 2488 drivers/net/macsec.c nla_nest_end(skb, attr); attr 2517 drivers/net/macsec.c attr = nla_nest_start_noflag(skb, MACSEC_RXSC_ATTR_STATS); attr 2518 drivers/net/macsec.c if (!attr) { attr 2524 drivers/net/macsec.c nla_nest_cancel(skb, attr); attr 2529 drivers/net/macsec.c nla_nest_end(skb, attr); attr 2554 drivers/net/macsec.c attr = nla_nest_start_noflag(skb, attr 2556 drivers/net/macsec.c if (!attr) { attr 2563 drivers/net/macsec.c nla_nest_cancel(skb, attr); attr 2569 drivers/net/macsec.c nla_nest_end(skb, attr); attr 47 drivers/net/netdevsim/bus.c nsim_bus_dev_numvfs_store(struct device *dev, struct device_attribute *attr, attr 83 drivers/net/netdevsim/bus.c struct device_attribute *attr, char *buf) attr 95 drivers/net/netdevsim/bus.c new_port_store(struct device *dev, struct device_attribute *attr, attr 112 drivers/net/netdevsim/bus.c del_port_store(struct device *dev, struct device_attribute *attr, attr 129 drivers/net/netdevsim/bus.c &nsim_bus_dev_numvfs_attr.attr, attr 130 drivers/net/netdevsim/bus.c &nsim_bus_dev_new_port_attr.attr, attr 131 drivers/net/netdevsim/bus.c &nsim_bus_dev_del_port_attr.attr, attr 232 drivers/net/netdevsim/bus.c &bus_attr_new_device.attr, attr 233 drivers/net/netdevsim/bus.c &bus_attr_del_device.attr, attr 34 drivers/net/phy/aquantia_hwmon.c u32 attr, int channel) attr 39 drivers/net/phy/aquantia_hwmon.c switch (attr) { attr 105 drivers/net/phy/aquantia_hwmon.c u32 attr, int channel, long *value) attr 113 drivers/net/phy/aquantia_hwmon.c switch (attr) { attr 158 drivers/net/phy/aquantia_hwmon.c u32 attr, int channel, long value) attr 165 drivers/net/phy/aquantia_hwmon.c switch (attr) { attr 1684 drivers/net/phy/marvell.c u32 attr, int channel, long *temp) attr 1689 drivers/net/phy/marvell.c switch (attr) { attr 1702 drivers/net/phy/marvell.c u32 attr, int channel) attr 1707 drivers/net/phy/marvell.c switch (attr) { attr 1815 drivers/net/phy/marvell.c u32 attr, int channel, long *temp) attr 1820 drivers/net/phy/marvell.c switch (attr) { attr 1839 drivers/net/phy/marvell.c u32 attr, int channel, long temp) attr 1844 drivers/net/phy/marvell.c switch (attr) { attr 1856 drivers/net/phy/marvell.c u32 attr, int channel) attr 1861 drivers/net/phy/marvell.c switch (attr) { attr 1959 drivers/net/phy/marvell.c u32 attr, int channel, long *temp) attr 1964 drivers/net/phy/marvell.c switch (attr) { attr 1977 drivers/net/phy/marvell.c u32 attr, int channel) attr 1982 drivers/net/phy/marvell.c switch (attr) { attr 72 drivers/net/phy/marvell10g.c u32 attr, int channel) attr 74 drivers/net/phy/marvell10g.c if (type == hwmon_chip && attr == hwmon_chip_update_interval) attr 76 drivers/net/phy/marvell10g.c if (type == hwmon_temp && attr == hwmon_temp_input) attr 82 drivers/net/phy/marvell10g.c u32 attr, int channel, long *value) attr 87 drivers/net/phy/marvell10g.c if (type == hwmon_chip && attr == hwmon_chip_update_interval) { attr 92 drivers/net/phy/marvell10g.c if (type == hwmon_temp && attr == hwmon_temp_input) { attr 275 drivers/net/phy/nxp-tja11xx.c u32 attr, int channel, long *value) attr 280 drivers/net/phy/nxp-tja11xx.c if (type == hwmon_in && attr == hwmon_in_lcrit_alarm) { attr 289 drivers/net/phy/nxp-tja11xx.c if (type == hwmon_temp && attr == hwmon_temp_crit_alarm) { attr 303 drivers/net/phy/nxp-tja11xx.c u32 attr, int channel) attr 305 drivers/net/phy/nxp-tja11xx.c if (type == hwmon_in && attr == hwmon_in_lcrit_alarm) attr 308 drivers/net/phy/nxp-tja11xx.c if (type == hwmon_temp && attr == hwmon_temp_crit_alarm) attr 512 drivers/net/phy/phy_device.c phy_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 521 drivers/net/phy/phy_device.c phy_interface_show(struct device *dev, struct device_attribute *attr, char *buf) attr 536 drivers/net/phy/phy_device.c phy_has_fixups_show(struct device *dev, struct device_attribute *attr, attr 546 drivers/net/phy/phy_device.c &dev_attr_phy_id.attr, attr 547 drivers/net/phy/phy_device.c &dev_attr_phy_interface.attr, attr 548 drivers/net/phy/phy_device.c &dev_attr_phy_has_fixups.attr, attr 1176 drivers/net/phy/phy_device.c phy_standalone_show(struct device *dev, struct device_attribute *attr, attr 1276 drivers/net/phy/phy_device.c &dev_attr_phy_standalone.attr); attr 1411 drivers/net/phy/phy_device.c &dev_attr_phy_standalone.attr); attr 413 drivers/net/phy/sfp.c u32 attr, int channel) attr 419 drivers/net/phy/sfp.c switch (attr) { attr 438 drivers/net/phy/sfp.c switch (attr) { attr 457 drivers/net/phy/sfp.c switch (attr) { attr 485 drivers/net/phy/sfp.c switch (attr) { attr 634 drivers/net/phy/sfp.c static int sfp_hwmon_temp(struct sfp *sfp, u32 attr, long *value) attr 639 drivers/net/phy/sfp.c switch (attr) { attr 700 drivers/net/phy/sfp.c static int sfp_hwmon_vcc(struct sfp *sfp, u32 attr, long *value) attr 705 drivers/net/phy/sfp.c switch (attr) { attr 767 drivers/net/phy/sfp.c static int sfp_hwmon_bias(struct sfp *sfp, u32 attr, long *value) attr 772 drivers/net/phy/sfp.c switch (attr) { attr 834 drivers/net/phy/sfp.c static int sfp_hwmon_tx_power(struct sfp *sfp, u32 attr, long *value) attr 839 drivers/net/phy/sfp.c switch (attr) { attr 901 drivers/net/phy/sfp.c static int sfp_hwmon_rx_power(struct sfp *sfp, u32 attr, long *value) attr 906 drivers/net/phy/sfp.c switch (attr) { attr 969 drivers/net/phy/sfp.c u32 attr, int channel, long *value) attr 975 drivers/net/phy/sfp.c return sfp_hwmon_temp(sfp, attr, value); attr 977 drivers/net/phy/sfp.c return sfp_hwmon_vcc(sfp, attr, value); attr 979 drivers/net/phy/sfp.c return sfp_hwmon_bias(sfp, attr, value); attr 983 drivers/net/phy/sfp.c return sfp_hwmon_tx_power(sfp, attr, value); attr 985 drivers/net/phy/sfp.c return sfp_hwmon_rx_power(sfp, attr, value); attr 1001 drivers/net/phy/sfp.c u32 attr, int channel, const char **str) attr 1005 drivers/net/phy/sfp.c switch (attr) { attr 1014 drivers/net/phy/sfp.c switch (attr) { attr 1023 drivers/net/phy/sfp.c switch (attr) { attr 1032 drivers/net/phy/sfp.c switch (attr) { attr 423 drivers/net/phy/spi_ks8995.c .attr = { attr 506 drivers/net/phy/spi_ks8995.c sysfs_attr_init(&ks->regs_attr.attr); attr 2538 drivers/net/team/team.c struct nlattr *attr; attr 2592 drivers/net/team/team.c attr = opt_attrs[TEAM_ATTR_OPTION_PORT_IFINDEX]; attr 2593 drivers/net/team/team.c if (attr) attr 2594 drivers/net/team/team.c opt_port_ifindex = nla_get_u32(attr); attr 2596 drivers/net/team/team.c attr = opt_attrs[TEAM_ATTR_OPTION_ARRAY_INDEX]; attr 2597 drivers/net/team/team.c if (attr) { attr 2599 drivers/net/team/team.c opt_array_index = nla_get_u32(attr); attr 2664 drivers/net/tun.c static ssize_t tun_show_flags(struct device *dev, struct device_attribute *attr, attr 2671 drivers/net/tun.c static ssize_t tun_show_owner(struct device *dev, struct device_attribute *attr, attr 2681 drivers/net/tun.c static ssize_t tun_show_group(struct device *dev, struct device_attribute *attr, attr 2696 drivers/net/tun.c &dev_attr_tun_flags.attr, attr 2697 drivers/net/tun.c &dev_attr_owner.attr, attr 2698 drivers/net/tun.c &dev_attr_group.attr, attr 191 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_show_min_tx_pkt(struct device *d, struct device_attribute *attr, char *buf) attr 199 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_show_rx_max(struct device *d, struct device_attribute *attr, char *buf) attr 207 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_show_tx_max(struct device *d, struct device_attribute *attr, char *buf) attr 215 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_show_tx_timer_usecs(struct device *d, struct device_attribute *attr, char *buf) attr 223 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_store_min_tx_pkt(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 237 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_store_rx_max(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 250 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_store_tx_max(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 263 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_store_tx_timer_usecs(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 289 drivers/net/usb/cdc_ncm.c static ssize_t ndp_to_end_show(struct device *d, struct device_attribute *attr, char *buf) attr 297 drivers/net/usb/cdc_ncm.c static ssize_t ndp_to_end_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 332 drivers/net/usb/cdc_ncm.c static ssize_t cdc_ncm_show_##name(struct device *d, struct device_attribute *attr, char *buf) \ attr 352 drivers/net/usb/cdc_ncm.c &dev_attr_min_tx_pkt.attr, attr 353 drivers/net/usb/cdc_ncm.c &dev_attr_ndp_to_end.attr, attr 354 drivers/net/usb/cdc_ncm.c &dev_attr_rx_max.attr, attr 355 drivers/net/usb/cdc_ncm.c &dev_attr_tx_max.attr, attr 356 drivers/net/usb/cdc_ncm.c &dev_attr_tx_timer_usecs.attr, attr 357 drivers/net/usb/cdc_ncm.c &dev_attr_bmNtbFormatsSupported.attr, attr 358 drivers/net/usb/cdc_ncm.c &dev_attr_dwNtbInMaxSize.attr, attr 359 drivers/net/usb/cdc_ncm.c &dev_attr_wNdpInDivisor.attr, attr 360 drivers/net/usb/cdc_ncm.c &dev_attr_wNdpInPayloadRemainder.attr, attr 361 drivers/net/usb/cdc_ncm.c &dev_attr_wNdpInAlignment.attr, attr 362 drivers/net/usb/cdc_ncm.c &dev_attr_dwNtbOutMaxSize.attr, attr 363 drivers/net/usb/cdc_ncm.c &dev_attr_wNdpOutDivisor.attr, attr 364 drivers/net/usb/cdc_ncm.c &dev_attr_wNdpOutPayloadRemainder.attr, attr 365 drivers/net/usb/cdc_ncm.c &dev_attr_wNdpOutAlignment.attr, attr 366 drivers/net/usb/cdc_ncm.c &dev_attr_wNtbOutMaxDatagrams.attr, attr 461 drivers/net/usb/hso.c struct device_attribute *attr, attr 511 drivers/net/usb/hso.c &dev_attr_hsotype.attr, attr 351 drivers/net/usb/qmi_wwan.c static ssize_t raw_ip_show(struct device *d, struct device_attribute *attr, char *buf) attr 359 drivers/net/usb/qmi_wwan.c static ssize_t raw_ip_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 403 drivers/net/usb/qmi_wwan.c static ssize_t add_mux_show(struct device *d, struct device_attribute *attr, char *buf) attr 421 drivers/net/usb/qmi_wwan.c static ssize_t add_mux_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 461 drivers/net/usb/qmi_wwan.c static ssize_t del_mux_show(struct device *d, struct device_attribute *attr, char *buf) attr 463 drivers/net/usb/qmi_wwan.c return add_mux_show(d, attr, buf); attr 466 drivers/net/usb/qmi_wwan.c static ssize_t del_mux_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) attr 508 drivers/net/usb/qmi_wwan.c &dev_attr_raw_ip.attr, attr 509 drivers/net/usb/qmi_wwan.c &dev_attr_add_mux.attr, attr 510 drivers/net/usb/qmi_wwan.c &dev_attr_del_mux.attr, attr 2921 drivers/net/virtio_net.c &mergeable_rx_buffer_size_attribute.attr, attr 121 drivers/net/vxlan.c static int vxlan_nla_put_addr(struct sk_buff *skb, int attr, attr 125 drivers/net/vxlan.c return nla_put_in6_addr(skb, attr, &ip->sin6.sin6_addr); attr 127 drivers/net/vxlan.c return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); attr 151 drivers/net/vxlan.c static int vxlan_nla_put_addr(struct sk_buff *skb, int attr, attr 154 drivers/net/vxlan.c return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); attr 29 drivers/net/wimax/i2400m/sysfs.c struct device_attribute *attr, attr 58 drivers/net/wimax/i2400m/sysfs.c &dev_attr_i2400m_idle_timeout.attr, attr 477 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.len = cpu_to_be32(sizeof(qinfo.attr)); attr 478 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.priority = cpu_to_be32(0); /* XXX */ attr 479 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.aifs = cpu_to_be32(3); attr 480 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.logcwmin = cpu_to_be32(4); attr 481 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.logcwmax = cpu_to_be32(10); attr 482 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.bursttime = cpu_to_be32(0); attr 483 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.mode = cpu_to_be32(0); attr 484 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.qflags = cpu_to_be32(1); /* XXX? */ attr 286 drivers/net/wireless/ath/ar5523/ar5523_hw.h struct ar5523_cmd_txq_attr attr; attr 1419 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1426 drivers/net/wireless/ath/ath10k/ce.c nentries = roundup_pow_of_two(attr->src_nentries); attr 1446 drivers/net/wireless/ath/ath10k/ce.c ath10k_ce_src_ring_dmax_set(ar, ctrl_addr, attr->src_sz_max); attr 1460 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1467 drivers/net/wireless/ath/ath10k/ce.c nentries = roundup_pow_of_two(attr->dest_nentries); attr 1514 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1517 drivers/net/wireless/ath/ath10k/ce.c u32 nentries = attr->src_nentries; attr 1572 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1575 drivers/net/wireless/ath/ath10k/ce.c u32 nentries = attr->src_nentries; attr 1629 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1635 drivers/net/wireless/ath/ath10k/ce.c nentries = roundup_pow_of_two(attr->dest_nentries); attr 1673 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1679 drivers/net/wireless/ath/ath10k/ce.c nentries = roundup_pow_of_two(attr->dest_nentries); attr 1728 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1732 drivers/net/wireless/ath/ath10k/ce.c if (attr->src_nentries) { attr 1733 drivers/net/wireless/ath/ath10k/ce.c ret = ath10k_ce_init_src_ring(ar, ce_id, attr); attr 1741 drivers/net/wireless/ath/ath10k/ce.c if (attr->dest_nentries) { attr 1742 drivers/net/wireless/ath/ath10k/ce.c ret = ath10k_ce_init_dest_ring(ar, ce_id, attr); attr 1934 drivers/net/wireless/ath/ath10k/ce.c const struct ce_attr *attr) attr 1956 drivers/net/wireless/ath/ath10k/ce.c ce_state->attr_flags = attr->flags; attr 1957 drivers/net/wireless/ath/ath10k/ce.c ce_state->src_sz_max = attr->src_sz_max; attr 1959 drivers/net/wireless/ath/ath10k/ce.c if (attr->src_nentries) attr 1960 drivers/net/wireless/ath/ath10k/ce.c ce_state->send_cb = attr->send_cb; attr 1962 drivers/net/wireless/ath/ath10k/ce.c if (attr->dest_nentries) attr 1963 drivers/net/wireless/ath/ath10k/ce.c ce_state->recv_cb = attr->recv_cb; attr 1965 drivers/net/wireless/ath/ath10k/ce.c if (attr->src_nentries) { attr 1967 drivers/net/wireless/ath/ath10k/ce.c ce_state->ops->ce_alloc_src_ring(ar, ce_id, attr); attr 1977 drivers/net/wireless/ath/ath10k/ce.c if (attr->dest_nentries) { attr 1980 drivers/net/wireless/ath/ath10k/ce.c attr); attr 224 drivers/net/wireless/ath/ath10k/ce.h const struct ce_attr *attr); attr 227 drivers/net/wireless/ath/ath10k/ce.h const struct ce_attr *attr); attr 305 drivers/net/wireless/ath/ath10k/ce.h const struct ce_attr *attr); attr 308 drivers/net/wireless/ath/ath10k/ce.h const struct ce_attr *attr); attr 2459 drivers/net/wireless/ath/ath10k/pci.c struct ce_attr *attr; attr 2467 drivers/net/wireless/ath/ath10k/pci.c attr = &host_ce_config_wlan[5]; attr 2468 drivers/net/wireless/ath/ath10k/pci.c attr->src_sz_max = 0; attr 2469 drivers/net/wireless/ath/ath10k/pci.c attr->dest_nentries = 0; attr 62 drivers/net/wireless/ath/ath10k/thermal.c struct device_attribute *attr, attr 120 drivers/net/wireless/ath/ath10k/thermal.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 38 drivers/net/wireless/ath/ath10k/usb.h #define ATH10K_USB_IS_BULK_EP(attr) (((attr) & 3) == 0x02) attr 39 drivers/net/wireless/ath/ath10k/usb.h #define ATH10K_USB_IS_INT_EP(attr) (((attr) & 3) == 0x03) attr 40 drivers/net/wireless/ath/ath10k/usb.h #define ATH10K_USB_IS_ISOC_EP(attr) (((attr) & 3) == 0x01) attr 12 drivers/net/wireless/ath/ath5k/sysfs.c struct device_attribute *attr, \ attr 21 drivers/net/wireless/ath/ath5k/sysfs.c struct device_attribute *attr, \ attr 39 drivers/net/wireless/ath/ath5k/sysfs.c struct device_attribute *attr, \ attr 64 drivers/net/wireless/ath/ath5k/sysfs.c struct device_attribute *attr, attr 73 drivers/net/wireless/ath/ath5k/sysfs.c struct device_attribute *attr, attr 82 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_ani_mode.attr, attr 83 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_noise_immunity_level.attr, attr 84 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_spur_level.attr, attr 85 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_firstep_level.attr, attr 86 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_ofdm_weak_signal_detection.attr, attr 87 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_cck_weak_signal_detection.attr, attr 88 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_noise_immunity_level_max.attr, attr 89 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_spur_level_max.attr, attr 90 drivers/net/wireless/ath/ath5k/sysfs.c &dev_attr_firstep_level_max.attr, attr 123 drivers/net/wireless/ath/ath6kl/usb.c #define ATH6KL_USB_IS_BULK_EP(attr) (((attr) & 3) == 0x02) attr 124 drivers/net/wireless/ath/ath6kl/usb.c #define ATH6KL_USB_IS_INT_EP(attr) (((attr) & 3) == 0x03) attr 125 drivers/net/wireless/ath/ath6kl/usb.c #define ATH6KL_USB_IS_ISOC_EP(attr) (((attr) & 3) == 0x01) attr 53 drivers/net/wireless/ath/carl9170/debug.c umode_t attr; attr 174 drivers/net/wireless/ath/carl9170/debug.c .attr = _attr, \ attr 819 drivers/net/wireless/ath/carl9170/debug.c debugfs_create_file(#name, carl_debugfs_##name ##_ops.attr, \ attr 132 drivers/net/wireless/ath/wcn36xx/testmode.c unsigned short attr; attr 143 drivers/net/wireless/ath/wcn36xx/testmode.c attr = nla_get_u16(tb[WCN36XX_TM_ATTR_CMD]); attr 145 drivers/net/wireless/ath/wcn36xx/testmode.c if (attr != WCN36XX_TM_CMD_PTT) attr 38 drivers/net/wireless/broadcom/b43/sysfs.c struct device_attribute *attr, attr 80 drivers/net/wireless/broadcom/b43/sysfs.c struct device_attribute *attr, attr 63 drivers/net/wireless/broadcom/b43legacy/sysfs.c struct device_attribute *attr, attr 97 drivers/net/wireless/broadcom/b43legacy/sysfs.c struct device_attribute *attr, attr 144 drivers/net/wireless/broadcom/b43legacy/sysfs.c struct device_attribute *attr, attr 168 drivers/net/wireless/broadcom/b43legacy/sysfs.c struct device_attribute *attr, attr 3509 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_pci(struct device *d, struct device_attribute *attr, attr 3531 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_cfg(struct device *d, struct device_attribute *attr, attr 3540 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_status(struct device *d, struct device_attribute *attr, attr 3549 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_capability(struct device *d, struct device_attribute *attr, attr 3793 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_registers(struct device *d, struct device_attribute *attr, attr 3815 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_hardware(struct device *d, struct device_attribute *attr, attr 3856 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_memory(struct device *d, struct device_attribute *attr, attr 3913 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t store_memory(struct device *d, struct device_attribute *attr, attr 3950 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_ordinals(struct device *d, struct device_attribute *attr, attr 3986 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_stats(struct device *d, struct device_attribute *attr, attr 4051 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_internals(struct device *d, struct device_attribute *attr, attr 4105 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr, attr 4174 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct device_attribute *attr, char *buf) attr 4199 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct device_attribute *attr, const char *buf, attr 4209 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_scan_age(struct device *d, struct device_attribute *attr, attr 4216 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t store_scan_age(struct device *d, struct device_attribute *attr, attr 4242 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t show_rf_kill(struct device *d, struct device_attribute *attr, attr 4286 drivers/net/wireless/intel/ipw2x00/ipw2100.c static ssize_t store_rf_kill(struct device *d, struct device_attribute *attr, attr 4297 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_hardware.attr, attr 4298 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_registers.attr, attr 4299 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_ordinals.attr, attr 4300 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_pci.attr, attr 4301 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_stats.attr, attr 4302 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_internals.attr, attr 4303 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_bssinfo.attr, attr 4304 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_memory.attr, attr 4305 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_scan_age.attr, attr 4306 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_fatal_error.attr, attr 4307 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_rf_kill.attr, attr 4308 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_cfg.attr, attr 4309 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_status.attr, attr 4310 drivers/net/wireless/intel/ipw2x00/ipw2100.c &dev_attr_capability.attr, attr 1263 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1295 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1330 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1343 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1373 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1418 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1435 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1455 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1466 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t show_scan_age(struct device *d, struct device_attribute *attr, attr 1473 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t store_scan_age(struct device *d, struct device_attribute *attr, attr 1509 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t show_led(struct device *d, struct device_attribute *attr, attr 1516 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t store_led(struct device *d, struct device_attribute *attr, attr 1543 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1551 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t show_cfg(struct device *d, struct device_attribute *attr, attr 1561 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1570 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1583 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t show_rtc(struct device *d, struct device_attribute *attr, attr 1602 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1609 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1620 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1629 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1644 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1653 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1667 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1680 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1694 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1707 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1721 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, char *buf) attr 1734 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 1759 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t show_rf_kill(struct device *d, struct device_attribute *attr, attr 1805 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t store_rf_kill(struct device *d, struct device_attribute *attr, attr 1817 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t show_speed_scan(struct device *d, struct device_attribute *attr, attr 1832 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t store_speed_scan(struct device *d, struct device_attribute *attr, attr 1870 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t show_net_stats(struct device *d, struct device_attribute *attr, attr 1877 drivers/net/wireless/intel/ipw2x00/ipw2200.c static ssize_t store_net_stats(struct device *d, struct device_attribute *attr, attr 1892 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct device_attribute *attr, attr 11453 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_rf_kill.attr, attr 11454 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_direct_dword.attr, attr 11455 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_indirect_byte.attr, attr 11456 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_indirect_dword.attr, attr 11457 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_mem_gpio_reg.attr, attr 11458 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_command_event_reg.attr, attr 11459 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_nic_type.attr, attr 11460 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_status.attr, attr 11461 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_cfg.attr, attr 11462 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_error.attr, attr 11463 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_event_log.attr, attr 11464 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_cmd_log.attr, attr 11465 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_eeprom_delay.attr, attr 11466 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_ucode_version.attr, attr 11467 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_rtc.attr, attr 11468 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_scan_age.attr, attr 11469 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_led.attr, attr 11470 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_speed_scan.attr, attr 11471 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_net_stats.attr, attr 11472 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_channels.attr, attr 11474 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_rtap_iface.attr, attr 11475 drivers/net/wireless/intel/ipw2x00/ipw2200.c &dev_attr_rtap_filter.attr, attr 3076 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_debug_level(struct device *d, struct device_attribute *attr, attr 3084 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_store_debug_level(struct device *d, struct device_attribute *attr, attr 3106 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_temperature(struct device *d, struct device_attribute *attr, attr 3120 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_tx_power(struct device *d, struct device_attribute *attr, char *buf) attr 3127 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_store_tx_power(struct device *d, struct device_attribute *attr, attr 3146 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_flags(struct device *d, struct device_attribute *attr, char *buf) attr 3154 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_store_flags(struct device *d, struct device_attribute *attr, attr 3179 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_filter_flags(struct device *d, struct device_attribute *attr, attr 3188 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_store_filter_flags(struct device *d, struct device_attribute *attr, attr 3215 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_measurement(struct device *d, struct device_attribute *attr, attr 3248 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_store_measurement(struct device *d, struct device_attribute *attr, attr 3286 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_store_retry_rate(struct device *d, struct device_attribute *attr, attr 3299 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_retry_rate(struct device *d, struct device_attribute *attr, attr 3310 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_channels(struct device *d, struct device_attribute *attr, char *buf) attr 3319 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_antenna(struct device *d, struct device_attribute *attr, char *buf) attr 3330 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_store_antenna(struct device *d, struct device_attribute *attr, attr 3356 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_show_status(struct device *d, struct device_attribute *attr, char *buf) attr 3367 drivers/net/wireless/intel/iwlegacy/3945-mac.c il3945_dump_error_log(struct device *d, struct device_attribute *attr, attr 3423 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_antenna.attr, attr 3424 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_channels.attr, attr 3425 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_dump_errors.attr, attr 3426 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_flags.attr, attr 3427 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_filter_flags.attr, attr 3428 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_measurement.attr, attr 3429 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_retry_rate.attr, attr 3430 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_status.attr, attr 3431 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_temperature.attr, attr 3432 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_tx_power.attr, attr 3434 drivers/net/wireless/intel/iwlegacy/3945-mac.c &dev_attr_debug_level.attr, attr 4552 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_show_debug_level(struct device *d, struct device_attribute *attr, attr 4560 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_store_debug_level(struct device *d, struct device_attribute *attr, attr 4582 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_show_temperature(struct device *d, struct device_attribute *attr, attr 4596 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_show_tx_power(struct device *d, struct device_attribute *attr, char *buf) attr 4607 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_store_tx_power(struct device *d, struct device_attribute *attr, attr 4631 drivers/net/wireless/intel/iwlegacy/4965-mac.c &dev_attr_temperature.attr, attr 4632 drivers/net/wireless/intel/iwlegacy/4965-mac.c &dev_attr_tx_power.attr, attr 4634 drivers/net/wireless/intel/iwlegacy/4965-mac.c &dev_attr_debug_level.attr, attr 1419 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c const struct iwl_fw_bcast_filter_attr *attr; attr 1421 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c attr = &filter->attrs[j]; attr 1422 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c if (!attr->mask) attr 1426 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c j, attr->offset, attr 1427 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c attr->offset_type ? "IP End" : attr 1429 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c be32_to_cpu(attr->mask), attr 1430 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c be32_to_cpu(attr->val), attr 1431 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c le16_to_cpu(attr->reserved1)); attr 1459 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c struct iwl_fw_bcast_filter_attr *attr = attr 1466 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c &attr->offset, &attr->offset_type, attr 1470 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c attr->mask = cpu_to_be32(mask); attr 1471 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c attr->val = cpu_to_be32(value); attr 1788 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c struct iwl_fw_bcast_filter_attr *attr; attr 1794 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c attr = &out_filter->attrs[i]; attr 1796 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (!attr->mask) attr 1799 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c switch (attr->reserved1) { attr 1802 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c attr->mask = 0; attr 1806 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c attr->val = vif->bss_conf.arp_addr_list[0]; attr 1809 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c attr->val = *(__be32 *)&vif->addr[2]; attr 1814 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c attr->reserved1 = 0; attr 160 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char * buf) attr 183 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, const char * buf, size_t count) attr 208 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char *buf) attr 235 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, const char *buf, size_t count) attr 268 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char * buf) attr 282 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, const char * buf, size_t count) attr 320 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_anycast_mask.attr, attr 321 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_prb_rsp_limit.attr, attr 360 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char *buf) attr 380 drivers/net/wireless/marvell/libertas/mesh.c static ssize_t bootflag_set(struct device *dev, struct device_attribute *attr, attr 410 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char *buf) attr 431 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, const char *buf, size_t count) attr 469 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char *buf) attr 489 drivers/net/wireless/marvell/libertas/mesh.c static ssize_t channel_set(struct device *dev, struct device_attribute *attr, attr 518 drivers/net/wireless/marvell/libertas/mesh.c static ssize_t mesh_id_get(struct device *dev, struct device_attribute *attr, attr 548 drivers/net/wireless/marvell/libertas/mesh.c static ssize_t mesh_id_set(struct device *dev, struct device_attribute *attr, attr 594 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char *buf) attr 615 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, const char *buf, size_t count) attr 655 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char *buf) attr 675 drivers/net/wireless/marvell/libertas/mesh.c static ssize_t metric_id_set(struct device *dev, struct device_attribute *attr, attr 716 drivers/net/wireless/marvell/libertas/mesh.c struct device_attribute *attr, char *buf) attr 736 drivers/net/wireless/marvell/libertas/mesh.c static ssize_t capability_set(struct device *dev, struct device_attribute *attr, attr 780 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_bootflag.attr, attr 781 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_boottime.attr, attr 782 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_channel.attr, attr 792 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_mesh_id.attr, attr 793 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_protocol_id.attr, attr 794 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_metric_id.attr, attr 795 drivers/net/wireless/marvell/libertas/mesh.c &dev_attr_capability.attr, attr 130 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c u32 attr; attr 132 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c attr = FIELD_PREP(MT_WCID_ATTR_BSS_IDX, vif_idx & 7) | attr 135 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c mt76_wr(dev, MT_WCID_ATTR(idx), attr); attr 358 drivers/net/wireless/mediatek/mt7601u/mac.c u32 attr; attr 360 drivers/net/wireless/mediatek/mt7601u/mac.c attr = FIELD_PREP(MT_WCID_ATTR_BSS_IDX, vif_idx & 7) | attr 363 drivers/net/wireless/mediatek/mt7601u/mac.c mt76_wr(dev, MT_WCID_ATTR(idx), attr); attr 16 drivers/net/wireless/ti/wlcore/sysfs.c struct device_attribute *attr, attr 34 drivers/net/wireless/ti/wlcore/sysfs.c struct device_attribute *attr, attr 79 drivers/net/wireless/ti/wlcore/sysfs.c struct device_attribute *attr, attr 132 drivers/net/wireless/ti/wlcore/sysfs.c .attr = { .name = "fwlog", .mode = 0400 }, attr 2102 drivers/net/xen-netfront.c struct device_attribute *attr, char *buf) attr 2108 drivers/net/xen-netfront.c struct device_attribute *attr, attr 2131 drivers/net/xen-netfront.c &dev_attr_rxbuf_min.attr, attr 2132 drivers/net/xen-netfront.c &dev_attr_rxbuf_max.attr, attr 2133 drivers/net/xen-netfront.c &dev_attr_rxbuf_cur.attr, attr 1977 drivers/ntb/hw/idt/ntb_hw_idt.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 1979 drivers/ntb/hw/idt/ntb_hw_idt.c enum idt_temp_val type = attr->index; attr 1999 drivers/ntb/hw/idt/ntb_hw_idt.c struct sensor_device_attribute *attr = to_sensor_dev_attr(da); attr 2001 drivers/ntb/hw/idt/ntb_hw_idt.c enum idt_temp_val type = attr->index; attr 2062 drivers/ntb/hw/idt/ntb_hw_idt.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 2063 drivers/ntb/hw/idt/ntb_hw_idt.c &sensor_dev_attr_temp1_lowest.dev_attr.attr, attr 2064 drivers/ntb/hw/idt/ntb_hw_idt.c &sensor_dev_attr_temp1_highest.dev_attr.attr, attr 2065 drivers/ntb/hw/idt/ntb_hw_idt.c &sensor_dev_attr_temp1_offset.dev_attr.attr, attr 2066 drivers/ntb/hw/idt/ntb_hw_idt.c &dev_attr_temp1_reset_history.attr, attr 52 drivers/nvdimm/btt_devs.c struct device_attribute *attr, char *buf) attr 60 drivers/nvdimm/btt_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 79 drivers/nvdimm/btt_devs.c struct device_attribute *attr, char *buf) attr 89 drivers/nvdimm/btt_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 105 drivers/nvdimm/btt_devs.c struct device_attribute *attr, char *buf) attr 118 drivers/nvdimm/btt_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 136 drivers/nvdimm/btt_devs.c struct device_attribute *attr, char *buf) attr 155 drivers/nvdimm/btt_devs.c struct device_attribute *attr, char *buf) attr 162 drivers/nvdimm/btt_devs.c &dev_attr_sector_size.attr, attr 163 drivers/nvdimm/btt_devs.c &dev_attr_namespace.attr, attr 164 drivers/nvdimm/btt_devs.c &dev_attr_uuid.attr, attr 165 drivers/nvdimm/btt_devs.c &dev_attr_size.attr, attr 166 drivers/nvdimm/btt_devs.c &dev_attr_log_zero_flags.attr, attr 648 drivers/nvdimm/bus.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 656 drivers/nvdimm/bus.c static ssize_t devtype_show(struct device *dev, struct device_attribute *attr, attr 664 drivers/nvdimm/bus.c &dev_attr_modalias.attr, attr 665 drivers/nvdimm/bus.c &dev_attr_devtype.attr, attr 678 drivers/nvdimm/bus.c struct device_attribute *attr, char *buf) attr 685 drivers/nvdimm/bus.c &dev_attr_numa_node.attr, attr 313 drivers/nvdimm/core.c struct device_attribute *attr, char *buf) attr 340 drivers/nvdimm/core.c struct device_attribute *attr, char *buf) attr 364 drivers/nvdimm/core.c struct device_attribute *attr, char *buf) attr 382 drivers/nvdimm/core.c &dev_attr_commands.attr, attr 383 drivers/nvdimm/core.c &dev_attr_wait_probe.attr, attr 384 drivers/nvdimm/core.c &dev_attr_provider.attr, attr 305 drivers/nvdimm/dimm_devs.c struct device_attribute *attr, char *buf) attr 321 drivers/nvdimm/dimm_devs.c struct device_attribute *attr, char *buf) attr 331 drivers/nvdimm/dimm_devs.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 348 drivers/nvdimm/dimm_devs.c struct device_attribute *attr, char *buf) attr 371 drivers/nvdimm/dimm_devs.c struct device_attribute *attr, char *buf) attr 387 drivers/nvdimm/dimm_devs.c struct device_attribute *attr, char *buf) attr 397 drivers/nvdimm/dimm_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 419 drivers/nvdimm/dimm_devs.c &dev_attr_state.attr, attr 420 drivers/nvdimm/dimm_devs.c &dev_attr_flags.attr, attr 421 drivers/nvdimm/dimm_devs.c &dev_attr_commands.attr, attr 422 drivers/nvdimm/dimm_devs.c &dev_attr_available_slots.attr, attr 423 drivers/nvdimm/dimm_devs.c &dev_attr_security.attr, attr 424 drivers/nvdimm/dimm_devs.c &dev_attr_frozen.attr, attr 433 drivers/nvdimm/dimm_devs.c if (a != &dev_attr_security.attr && a != &dev_attr_frozen.attr) attr 438 drivers/nvdimm/dimm_devs.c if (a == &dev_attr_security.attr) { attr 241 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 408 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 427 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1069 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 1163 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1185 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1271 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 1312 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1340 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1359 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 1397 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1500 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1539 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 1558 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1582 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1609 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 1622 drivers/nvdimm/namespace_devs.c struct device_attribute *attr, char *buf) attr 1629 drivers/nvdimm/namespace_devs.c &dev_attr_nstype.attr, attr 1630 drivers/nvdimm/namespace_devs.c &dev_attr_size.attr, attr 1631 drivers/nvdimm/namespace_devs.c &dev_attr_mode.attr, attr 1632 drivers/nvdimm/namespace_devs.c &dev_attr_uuid.attr, attr 1633 drivers/nvdimm/namespace_devs.c &dev_attr_holder.attr, attr 1634 drivers/nvdimm/namespace_devs.c &dev_attr_resource.attr, attr 1635 drivers/nvdimm/namespace_devs.c &dev_attr_alt_name.attr, attr 1636 drivers/nvdimm/namespace_devs.c &dev_attr_force_raw.attr, attr 1637 drivers/nvdimm/namespace_devs.c &dev_attr_sector_size.attr, attr 1638 drivers/nvdimm/namespace_devs.c &dev_attr_dpa_extents.attr, attr 1639 drivers/nvdimm/namespace_devs.c &dev_attr_holder_class.attr, attr 1648 drivers/nvdimm/namespace_devs.c if (a == &dev_attr_resource.attr) { attr 1655 drivers/nvdimm/namespace_devs.c if (a == &dev_attr_size.attr) attr 1661 drivers/nvdimm/namespace_devs.c if (a == &dev_attr_nstype.attr || a == &dev_attr_size.attr attr 1662 drivers/nvdimm/namespace_devs.c || a == &dev_attr_holder.attr attr 1663 drivers/nvdimm/namespace_devs.c || a == &dev_attr_holder_class.attr attr 1664 drivers/nvdimm/namespace_devs.c || a == &dev_attr_force_raw.attr attr 1665 drivers/nvdimm/namespace_devs.c || a == &dev_attr_mode.attr) attr 50 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, char *buf) attr 65 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 99 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, char *buf) attr 132 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 152 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, char *buf) attr 162 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 178 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, char *buf) attr 191 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 209 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, char *buf) attr 235 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, char *buf) attr 263 drivers/nvdimm/pfn_devs.c struct device_attribute *attr, char *buf) attr 273 drivers/nvdimm/pfn_devs.c &dev_attr_mode.attr, attr 274 drivers/nvdimm/pfn_devs.c &dev_attr_namespace.attr, attr 275 drivers/nvdimm/pfn_devs.c &dev_attr_uuid.attr, attr 276 drivers/nvdimm/pfn_devs.c &dev_attr_align.attr, attr 277 drivers/nvdimm/pfn_devs.c &dev_attr_resource.attr, attr 278 drivers/nvdimm/pfn_devs.c &dev_attr_size.attr, attr 279 drivers/nvdimm/pfn_devs.c &dev_attr_supported_alignments.attr, attr 285 drivers/nvdimm/pfn_devs.c if (a == &dev_attr_resource.attr) attr 250 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 268 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 279 drivers/nvdimm/region_devs.c static ssize_t deep_flush_store(struct device *dev, struct device_attribute *attr, attr 299 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 308 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 317 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 416 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 439 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 456 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 473 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 489 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 506 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 523 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 540 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 548 drivers/nvdimm/region_devs.c struct device_attribute *attr, const char *buf, size_t len) attr 563 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 580 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 589 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) attr 603 drivers/nvdimm/region_devs.c &dev_attr_size.attr, attr 604 drivers/nvdimm/region_devs.c &dev_attr_nstype.attr, attr 605 drivers/nvdimm/region_devs.c &dev_attr_mappings.attr, attr 606 drivers/nvdimm/region_devs.c &dev_attr_btt_seed.attr, attr 607 drivers/nvdimm/region_devs.c &dev_attr_pfn_seed.attr, attr 608 drivers/nvdimm/region_devs.c &dev_attr_dax_seed.attr, attr 609 drivers/nvdimm/region_devs.c &dev_attr_deep_flush.attr, attr 610 drivers/nvdimm/region_devs.c &dev_attr_read_only.attr, attr 611 drivers/nvdimm/region_devs.c &dev_attr_set_cookie.attr, attr 612 drivers/nvdimm/region_devs.c &dev_attr_available_size.attr, attr 613 drivers/nvdimm/region_devs.c &dev_attr_max_available_extent.attr, attr 614 drivers/nvdimm/region_devs.c &dev_attr_namespace_seed.attr, attr 615 drivers/nvdimm/region_devs.c &dev_attr_init_namespaces.attr, attr 616 drivers/nvdimm/region_devs.c &dev_attr_badblocks.attr, attr 617 drivers/nvdimm/region_devs.c &dev_attr_resource.attr, attr 618 drivers/nvdimm/region_devs.c &dev_attr_persistence_domain.attr, attr 629 drivers/nvdimm/region_devs.c if (!is_memory(dev) && a == &dev_attr_pfn_seed.attr) attr 632 drivers/nvdimm/region_devs.c if (!is_memory(dev) && a == &dev_attr_dax_seed.attr) attr 635 drivers/nvdimm/region_devs.c if (!is_memory(dev) && a == &dev_attr_badblocks.attr) attr 638 drivers/nvdimm/region_devs.c if (a == &dev_attr_resource.attr) { attr 645 drivers/nvdimm/region_devs.c if (a == &dev_attr_deep_flush.attr) { attr 656 drivers/nvdimm/region_devs.c if (a == &dev_attr_persistence_domain.attr) { attr 663 drivers/nvdimm/region_devs.c if (a != &dev_attr_set_cookie.attr attr 664 drivers/nvdimm/region_devs.c && a != &dev_attr_available_size.attr) attr 669 drivers/nvdimm/region_devs.c && a == &dev_attr_available_size.attr) attr 769 drivers/nvdimm/region_devs.c struct device_attribute *attr, char *buf) \ attr 823 drivers/nvdimm/region_devs.c &dev_attr_mapping0.attr, attr 824 drivers/nvdimm/region_devs.c &dev_attr_mapping1.attr, attr 825 drivers/nvdimm/region_devs.c &dev_attr_mapping2.attr, attr 826 drivers/nvdimm/region_devs.c &dev_attr_mapping3.attr, attr 827 drivers/nvdimm/region_devs.c &dev_attr_mapping4.attr, attr 828 drivers/nvdimm/region_devs.c &dev_attr_mapping5.attr, attr 829 drivers/nvdimm/region_devs.c &dev_attr_mapping6.attr, attr 830 drivers/nvdimm/region_devs.c &dev_attr_mapping7.attr, attr 831 drivers/nvdimm/region_devs.c &dev_attr_mapping8.attr, attr 832 drivers/nvdimm/region_devs.c &dev_attr_mapping9.attr, attr 833 drivers/nvdimm/region_devs.c &dev_attr_mapping10.attr, attr 834 drivers/nvdimm/region_devs.c &dev_attr_mapping11.attr, attr 835 drivers/nvdimm/region_devs.c &dev_attr_mapping12.attr, attr 836 drivers/nvdimm/region_devs.c &dev_attr_mapping13.attr, attr 837 drivers/nvdimm/region_devs.c &dev_attr_mapping14.attr, attr 838 drivers/nvdimm/region_devs.c &dev_attr_mapping15.attr, attr 839 drivers/nvdimm/region_devs.c &dev_attr_mapping16.attr, attr 840 drivers/nvdimm/region_devs.c &dev_attr_mapping17.attr, attr 841 drivers/nvdimm/region_devs.c &dev_attr_mapping18.attr, attr 842 drivers/nvdimm/region_devs.c &dev_attr_mapping19.attr, attr 843 drivers/nvdimm/region_devs.c &dev_attr_mapping20.attr, attr 844 drivers/nvdimm/region_devs.c &dev_attr_mapping21.attr, attr 845 drivers/nvdimm/region_devs.c &dev_attr_mapping22.attr, attr 846 drivers/nvdimm/region_devs.c &dev_attr_mapping23.attr, attr 847 drivers/nvdimm/region_devs.c &dev_attr_mapping24.attr, attr 848 drivers/nvdimm/region_devs.c &dev_attr_mapping25.attr, attr 849 drivers/nvdimm/region_devs.c &dev_attr_mapping26.attr, attr 850 drivers/nvdimm/region_devs.c &dev_attr_mapping27.attr, attr 851 drivers/nvdimm/region_devs.c &dev_attr_mapping28.attr, attr 852 drivers/nvdimm/region_devs.c &dev_attr_mapping29.attr, attr 853 drivers/nvdimm/region_devs.c &dev_attr_mapping30.attr, attr 854 drivers/nvdimm/region_devs.c &dev_attr_mapping31.attr, attr 2548 drivers/nvme/host/core.c struct device_attribute *attr, attr 2560 drivers/nvme/host/core.c struct device_attribute *attr, char *buf) \ attr 2574 drivers/nvme/host/core.c &subsys_attr_model.attr, attr 2575 drivers/nvme/host/core.c &subsys_attr_serial.attr, attr 2576 drivers/nvme/host/core.c &subsys_attr_firmware_rev.attr, attr 2577 drivers/nvme/host/core.c &subsys_attr_subsysnqn.attr, attr 2579 drivers/nvme/host/core.c &subsys_attr_iopolicy.attr, attr 3000 drivers/nvme/host/core.c struct device_attribute *attr, const char *buf, attr 3014 drivers/nvme/host/core.c struct device_attribute *attr, const char *buf, attr 3034 drivers/nvme/host/core.c static ssize_t wwid_show(struct device *dev, struct device_attribute *attr, attr 3065 drivers/nvme/host/core.c static ssize_t nguid_show(struct device *dev, struct device_attribute *attr, attr 3072 drivers/nvme/host/core.c static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, attr 3089 drivers/nvme/host/core.c static ssize_t eui_show(struct device *dev, struct device_attribute *attr, attr 3096 drivers/nvme/host/core.c static ssize_t nsid_show(struct device *dev, struct device_attribute *attr, attr 3104 drivers/nvme/host/core.c &dev_attr_wwid.attr, attr 3105 drivers/nvme/host/core.c &dev_attr_uuid.attr, attr 3106 drivers/nvme/host/core.c &dev_attr_nguid.attr, attr 3107 drivers/nvme/host/core.c &dev_attr_eui.attr, attr 3108 drivers/nvme/host/core.c &dev_attr_nsid.attr, attr 3110 drivers/nvme/host/core.c &dev_attr_ana_grpid.attr, attr 3111 drivers/nvme/host/core.c &dev_attr_ana_state.attr, attr 3122 drivers/nvme/host/core.c if (a == &dev_attr_uuid.attr) { attr 3127 drivers/nvme/host/core.c if (a == &dev_attr_nguid.attr) { attr 3131 drivers/nvme/host/core.c if (a == &dev_attr_eui.attr) { attr 3136 drivers/nvme/host/core.c if (a == &dev_attr_ana_grpid.attr || a == &dev_attr_ana_state.attr) { attr 3161 drivers/nvme/host/core.c struct device_attribute *attr, char *buf) \ attr 3175 drivers/nvme/host/core.c struct device_attribute *attr, char *buf) \ attr 3188 drivers/nvme/host/core.c struct device_attribute *attr, const char *buf, attr 3193 drivers/nvme/host/core.c if (device_remove_file_self(dev, attr)) attr 3200 drivers/nvme/host/core.c struct device_attribute *attr, attr 3210 drivers/nvme/host/core.c struct device_attribute *attr, attr 3233 drivers/nvme/host/core.c struct device_attribute *attr, attr 3243 drivers/nvme/host/core.c struct device_attribute *attr, attr 3253 drivers/nvme/host/core.c &dev_attr_reset_controller.attr, attr 3254 drivers/nvme/host/core.c &dev_attr_rescan_controller.attr, attr 3255 drivers/nvme/host/core.c &dev_attr_model.attr, attr 3256 drivers/nvme/host/core.c &dev_attr_serial.attr, attr 3257 drivers/nvme/host/core.c &dev_attr_firmware_rev.attr, attr 3258 drivers/nvme/host/core.c &dev_attr_cntlid.attr, attr 3259 drivers/nvme/host/core.c &dev_attr_delete_controller.attr, attr 3260 drivers/nvme/host/core.c &dev_attr_transport.attr, attr 3261 drivers/nvme/host/core.c &dev_attr_subsysnqn.attr, attr 3262 drivers/nvme/host/core.c &dev_attr_address.attr, attr 3263 drivers/nvme/host/core.c &dev_attr_state.attr, attr 3264 drivers/nvme/host/core.c &dev_attr_numa_node.attr, attr 3265 drivers/nvme/host/core.c &dev_attr_queue_count.attr, attr 3266 drivers/nvme/host/core.c &dev_attr_sqsize.attr, attr 3276 drivers/nvme/host/core.c if (a == &dev_attr_delete_controller.attr && !ctrl->ops->delete_ctrl) attr 3278 drivers/nvme/host/core.c if (a == &dev_attr_address.attr && !ctrl->ops->get_address) attr 22 drivers/nvme/host/fault_inject.c struct fault_attr *attr = &fault_inj->attr; attr 35 drivers/nvme/host/fault_inject.c *attr = fail_default_attr; attr 36 drivers/nvme/host/fault_inject.c dir = fault_create_debugfs_attr("fault_inject", parent, attr); attr 74 drivers/nvme/host/fault_inject.c if (fault_inject && should_fail(&fault_inject->attr, 1)) { attr 3363 drivers/nvme/host/fc.c struct device_attribute *attr, const char *buf, size_t count) attr 3424 drivers/nvme/host/fc.c &dev_attr_nvme_discovery.attr, attr 987 drivers/nvme/host/lightnvm.c struct attribute *attr; attr 992 drivers/nvme/host/lightnvm.c attr = &dattr->attr; attr 994 drivers/nvme/host/lightnvm.c if (strcmp(attr->name, "version") == 0) { attr 1002 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "capabilities") == 0) { attr 1004 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "read_typ") == 0) { attr 1006 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "read_max") == 0) { attr 1012 drivers/nvme/host/lightnvm.c attr->name, __func__); attr 1034 drivers/nvme/host/lightnvm.c struct attribute *attr; attr 1039 drivers/nvme/host/lightnvm.c attr = &dattr->attr; attr 1041 drivers/nvme/host/lightnvm.c if (strcmp(attr->name, "vendor_opcode") == 0) { attr 1043 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "device_mode") == 0) { attr 1046 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "media_manager") == 0) { attr 1048 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "ppa_format") == 0) { attr 1050 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "media_type") == 0) { /* u8 */ attr 1052 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "flash_media_type") == 0) { attr 1054 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "num_channels") == 0) { attr 1056 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "num_luns") == 0) { attr 1058 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "num_planes") == 0) { attr 1060 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "num_blocks") == 0) { /* u16 */ attr 1062 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "num_pages") == 0) { attr 1064 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "page_size") == 0) { attr 1066 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "hw_sector_size") == 0) { attr 1068 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "oob_sector_size") == 0) {/* u32 */ attr 1070 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "prog_typ") == 0) { attr 1072 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "prog_max") == 0) { attr 1074 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "erase_typ") == 0) { attr 1076 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "erase_max") == 0) { attr 1078 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "multiplane_modes") == 0) { attr 1080 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "media_capabilities") == 0) { attr 1082 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "max_phys_secs") == 0) { attr 1087 drivers/nvme/host/lightnvm.c attr->name, __func__); attr 1097 drivers/nvme/host/lightnvm.c struct attribute *attr; attr 1102 drivers/nvme/host/lightnvm.c attr = &dattr->attr; attr 1104 drivers/nvme/host/lightnvm.c if (strcmp(attr->name, "groups") == 0) { attr 1106 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "punits") == 0) { attr 1108 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "chunks") == 0) { attr 1110 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "clba") == 0) { attr 1112 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "ws_min") == 0) { attr 1114 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "ws_opt") == 0) { attr 1116 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "maxoc") == 0) { attr 1118 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "maxocpu") == 0) { attr 1120 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "mw_cunits") == 0) { attr 1122 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "write_typ") == 0) { attr 1124 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "write_max") == 0) { attr 1126 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "reset_typ") == 0) { attr 1128 drivers/nvme/host/lightnvm.c } else if (strcmp(attr->name, "reset_max") == 0) { attr 1133 drivers/nvme/host/lightnvm.c attr->name, __func__); attr 1191 drivers/nvme/host/lightnvm.c &dev_attr_version.attr, attr 1192 drivers/nvme/host/lightnvm.c &dev_attr_capabilities.attr, attr 1193 drivers/nvme/host/lightnvm.c &dev_attr_read_typ.attr, attr 1194 drivers/nvme/host/lightnvm.c &dev_attr_read_max.attr, attr 1197 drivers/nvme/host/lightnvm.c &dev_attr_vendor_opcode.attr, attr 1198 drivers/nvme/host/lightnvm.c &dev_attr_device_mode.attr, attr 1199 drivers/nvme/host/lightnvm.c &dev_attr_media_manager.attr, attr 1200 drivers/nvme/host/lightnvm.c &dev_attr_ppa_format.attr, attr 1201 drivers/nvme/host/lightnvm.c &dev_attr_media_type.attr, attr 1202 drivers/nvme/host/lightnvm.c &dev_attr_flash_media_type.attr, attr 1203 drivers/nvme/host/lightnvm.c &dev_attr_num_channels.attr, attr 1204 drivers/nvme/host/lightnvm.c &dev_attr_num_luns.attr, attr 1205 drivers/nvme/host/lightnvm.c &dev_attr_num_planes.attr, attr 1206 drivers/nvme/host/lightnvm.c &dev_attr_num_blocks.attr, attr 1207 drivers/nvme/host/lightnvm.c &dev_attr_num_pages.attr, attr 1208 drivers/nvme/host/lightnvm.c &dev_attr_page_size.attr, attr 1209 drivers/nvme/host/lightnvm.c &dev_attr_hw_sector_size.attr, attr 1210 drivers/nvme/host/lightnvm.c &dev_attr_oob_sector_size.attr, attr 1211 drivers/nvme/host/lightnvm.c &dev_attr_prog_typ.attr, attr 1212 drivers/nvme/host/lightnvm.c &dev_attr_prog_max.attr, attr 1213 drivers/nvme/host/lightnvm.c &dev_attr_erase_typ.attr, attr 1214 drivers/nvme/host/lightnvm.c &dev_attr_erase_max.attr, attr 1215 drivers/nvme/host/lightnvm.c &dev_attr_multiplane_modes.attr, attr 1216 drivers/nvme/host/lightnvm.c &dev_attr_media_capabilities.attr, attr 1217 drivers/nvme/host/lightnvm.c &dev_attr_max_phys_secs.attr, attr 1220 drivers/nvme/host/lightnvm.c &dev_attr_groups.attr, attr 1221 drivers/nvme/host/lightnvm.c &dev_attr_punits.attr, attr 1222 drivers/nvme/host/lightnvm.c &dev_attr_chunks.attr, attr 1223 drivers/nvme/host/lightnvm.c &dev_attr_clba.attr, attr 1224 drivers/nvme/host/lightnvm.c &dev_attr_ws_min.attr, attr 1225 drivers/nvme/host/lightnvm.c &dev_attr_ws_opt.attr, attr 1226 drivers/nvme/host/lightnvm.c &dev_attr_maxoc.attr, attr 1227 drivers/nvme/host/lightnvm.c &dev_attr_maxocpu.attr, attr 1228 drivers/nvme/host/lightnvm.c &dev_attr_mw_cunits.attr, attr 1230 drivers/nvme/host/lightnvm.c &dev_attr_write_typ.attr, attr 1231 drivers/nvme/host/lightnvm.c &dev_attr_write_max.attr, attr 1232 drivers/nvme/host/lightnvm.c &dev_attr_reset_typ.attr, attr 1233 drivers/nvme/host/lightnvm.c &dev_attr_reset_max.attr, attr 1239 drivers/nvme/host/lightnvm.c struct attribute *attr, int index) attr 1246 drivers/nvme/host/lightnvm.c container_of(attr, typeof(*dev_attr), attr); attr 1252 drivers/nvme/host/lightnvm.c return attr->mode; attr 1257 drivers/nvme/host/lightnvm.c return attr->mode; attr 1261 drivers/nvme/host/lightnvm.c return attr->mode; attr 599 drivers/nvme/host/multipath.c struct device_attribute *attr, char *buf) attr 609 drivers/nvme/host/multipath.c struct device_attribute *attr, const char *buf, size_t count) attr 627 drivers/nvme/host/multipath.c static ssize_t ana_grpid_show(struct device *dev, struct device_attribute *attr, attr 634 drivers/nvme/host/multipath.c static ssize_t ana_state_show(struct device *dev, struct device_attribute *attr, attr 173 drivers/nvme/host/nvme.h struct fault_attr attr; attr 1767 drivers/nvme/host/pci.c struct device_attribute *attr, attr 1834 drivers/nvme/host/pci.c &dev_attr_cmb.attr, NULL)) attr 1843 drivers/nvme/host/pci.c &dev_attr_cmb.attr, NULL); attr 890 drivers/nvme/target/fcloop.c fcloop_create_local_port(struct device *dev, struct device_attribute *attr, attr 974 drivers/nvme/target/fcloop.c fcloop_delete_local_port(struct device *dev, struct device_attribute *attr, attr 1101 drivers/nvme/target/fcloop.c fcloop_create_remote_port(struct device *dev, struct device_attribute *attr, attr 1165 drivers/nvme/target/fcloop.c fcloop_delete_remote_port(struct device *dev, struct device_attribute *attr, attr 1200 drivers/nvme/target/fcloop.c fcloop_create_target_port(struct device *dev, struct device_attribute *attr, attr 1260 drivers/nvme/target/fcloop.c fcloop_delete_target_port(struct device *dev, struct device_attribute *attr, attr 1303 drivers/nvme/target/fcloop.c &dev_attr_add_local_port.attr, attr 1304 drivers/nvme/target/fcloop.c &dev_attr_del_local_port.attr, attr 1305 drivers/nvme/target/fcloop.c &dev_attr_add_remote_port.attr, attr 1306 drivers/nvme/target/fcloop.c &dev_attr_del_remote_port.attr, attr 1307 drivers/nvme/target/fcloop.c &dev_attr_add_target_port.attr, attr 1308 drivers/nvme/target/fcloop.c &dev_attr_del_target_port.attr, attr 861 drivers/nvme/target/rdma.c srq_attr.attr.max_wr = srq_size; attr 862 drivers/nvme/target/rdma.c srq_attr.attr.max_sge = 1 + ndev->inline_page_count; attr 863 drivers/nvme/target/rdma.c srq_attr.attr.srq_limit = 0; attr 19 drivers/nvmem/nvmem-sysfs.c struct device_attribute *attr, char *buf) attr 29 drivers/nvmem/nvmem-sysfs.c &dev_attr_type.attr, attr 34 drivers/nvmem/nvmem-sysfs.c struct bin_attribute *attr, attr 41 drivers/nvmem/nvmem-sysfs.c if (attr->private) attr 42 drivers/nvmem/nvmem-sysfs.c dev = attr->private; attr 71 drivers/nvmem/nvmem-sysfs.c struct bin_attribute *attr, attr 78 drivers/nvmem/nvmem-sysfs.c if (attr->private) attr 79 drivers/nvmem/nvmem-sysfs.c dev = attr->private; attr 109 drivers/nvmem/nvmem-sysfs.c .attr = { attr 134 drivers/nvmem/nvmem-sysfs.c .attr = { attr 158 drivers/nvmem/nvmem-sysfs.c .attr = { attr 183 drivers/nvmem/nvmem-sysfs.c .attr = { attr 244 drivers/nvmem/nvmem-sysfs.c nvmem->eeprom.attr.name = "eeprom"; attr 247 drivers/nvmem/nvmem-sysfs.c nvmem->eeprom.attr.key = &eeprom_lock_key; attr 35 drivers/of/kobj.c struct property *pp = container_of(bin_attr, struct property, attr); attr 76 drivers/of/kobj.c sysfs_bin_attr_init(&pp->attr); attr 77 drivers/of/kobj.c pp->attr.attr.name = safe_name(&np->kobj, pp->name); attr 78 drivers/of/kobj.c pp->attr.attr.mode = secure ? 0400 : 0444; attr 79 drivers/of/kobj.c pp->attr.size = secure ? 0 : pp->length; attr 80 drivers/of/kobj.c pp->attr.read = of_node_property_read; attr 82 drivers/of/kobj.c rc = sysfs_create_bin_file(&np->kobj, &pp->attr); attr 92 drivers/of/kobj.c sysfs_remove_bin_file(&np->kobj, &prop->attr); attr 93 drivers/of/kobj.c kfree(prop->attr.attr.name); attr 23 drivers/oprofile/oprofile_perf.c struct perf_event_attr attr; attr 62 drivers/oprofile/oprofile_perf.c struct perf_event_attr *attr; attr 65 drivers/oprofile/oprofile_perf.c attr = &counter_config[i].attr; attr 66 drivers/oprofile/oprofile_perf.c memset(attr, 0, size); attr 67 drivers/oprofile/oprofile_perf.c attr->type = PERF_TYPE_RAW; attr 68 drivers/oprofile/oprofile_perf.c attr->size = size; attr 69 drivers/oprofile/oprofile_perf.c attr->config = counter_config[i].event; attr 70 drivers/oprofile/oprofile_perf.c attr->sample_period = counter_config[i].count; attr 71 drivers/oprofile/oprofile_perf.c attr->pinned = 1; attr 82 drivers/oprofile/oprofile_perf.c pevent = perf_event_create_kernel_counter(&counter_config[event].attr, attr 97 drivers/parisc/pdc_stable.c struct attribute attr; attr 111 drivers/parisc/pdc_stable.c .attr = {.name = __stringify(_name), .mode = _mode}, \ attr 118 drivers/parisc/pdc_stable.c .attr = {.name = __stringify(_name), .mode = _mode}, \ attr 123 drivers/parisc/pdc_stable.c #define to_pdcspath_attribute(_attr) container_of(_attr, struct pdcspath_attribute, attr) attr 435 drivers/parisc/pdc_stable.c pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) attr 438 drivers/parisc/pdc_stable.c struct pdcspath_attribute *pdcs_attr = to_pdcspath_attribute(attr); attr 455 drivers/parisc/pdc_stable.c pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, attr 459 drivers/parisc/pdc_stable.c struct pdcspath_attribute *pdcs_attr = to_pdcspath_attribute(attr); attr 481 drivers/parisc/pdc_stable.c &paths_attr_hwpath.attr, attr 482 drivers/parisc/pdc_stable.c &paths_attr_layer.attr, attr 516 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, attr 536 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, attr 561 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 563 drivers/parisc/pdc_stable.c return pdcs_auto_read(kobj, attr, buf, PF_AUTOBOOT); attr 571 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 573 drivers/parisc/pdc_stable.c return pdcs_auto_read(kobj, attr, buf, PF_AUTOSEARCH); attr 583 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 608 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 628 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 654 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 678 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 706 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, char *buf) attr 742 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, const char *buf, attr 814 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, attr 817 drivers/parisc/pdc_stable.c return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOBOOT); attr 830 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, attr 833 drivers/parisc/pdc_stable.c return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOSEARCH); attr 846 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, attr 883 drivers/parisc/pdc_stable.c struct kobj_attribute *attr, attr 932 drivers/parisc/pdc_stable.c &pdcs_attr_size.attr, attr 933 drivers/parisc/pdc_stable.c &pdcs_attr_autoboot.attr, attr 934 drivers/parisc/pdc_stable.c &pdcs_attr_autosearch.attr, attr 935 drivers/parisc/pdc_stable.c &pdcs_attr_timer.attr, attr 936 drivers/parisc/pdc_stable.c &pdcs_attr_osid.attr, attr 937 drivers/parisc/pdc_stable.c &pdcs_attr_osdep1.attr, attr 938 drivers/parisc/pdc_stable.c &pdcs_attr_diagnostic.attr, attr 939 drivers/parisc/pdc_stable.c &pdcs_attr_fastsize.attr, attr 940 drivers/parisc/pdc_stable.c &pdcs_attr_osdep2.attr, attr 730 drivers/pci/controller/pci-mvebu.c unsigned int *attr) attr 737 drivers/pci/controller/pci-mvebu.c *attr = -1; attr 762 drivers/pci/controller/pci-mvebu.c *attr = DT_CPUADDR_TO_ATTR(cpuaddr); attr 97 drivers/pci/hotplug/acpiphp_ibm.c .attr = { attr 119 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "power", .mode = S_IFREG | S_IRUGO | S_IWUSR}, attr 164 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "attention", .mode = S_IFREG | S_IRUGO | S_IWUSR}, attr 182 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "latch", .mode = S_IFREG | S_IRUGO}, attr 199 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "adapter", .mode = S_IFREG | S_IRUGO}, attr 230 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "test", .mode = S_IFREG | S_IRUGO | S_IWUSR}, attr 301 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_power.attr); attr 308 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_attention.attr); attr 315 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_latch.attr); attr 322 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_presence.attr); attr 329 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_test.attr); attr 339 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_presence.attr); attr 342 drivers/pci/hotplug/pci_hotplug_core.c sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_latch.attr); attr 346 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_attention.attr); attr 349 drivers/pci/hotplug/pci_hotplug_core.c sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_power.attr); attr 359 drivers/pci/hotplug/pci_hotplug_core.c sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_power.attr); attr 363 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_attention.attr); attr 366 drivers/pci/hotplug/pci_hotplug_core.c sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_latch.attr); attr 370 drivers/pci/hotplug/pci_hotplug_core.c &hotplug_slot_attr_presence.attr); attr 373 drivers/pci/hotplug/pci_hotplug_core.c sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_test.attr); attr 27 drivers/pci/hotplug/rpadlpar_sysfs.c static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, attr 52 drivers/pci/hotplug/rpadlpar_sysfs.c struct kobj_attribute *attr, char *buf) attr 58 drivers/pci/hotplug/rpadlpar_sysfs.c struct kobj_attribute *attr, attr 83 drivers/pci/hotplug/rpadlpar_sysfs.c struct kobj_attribute *attr, char *buf) attr 95 drivers/pci/hotplug/rpadlpar_sysfs.c &add_slot_attr.attr, attr 96 drivers/pci/hotplug/rpadlpar_sysfs.c &remove_slot_attr.attr, attr 24 drivers/pci/hotplug/shpchp_sysfs.c static ssize_t show_ctrl(struct device *dev, struct device_attribute *attr, char *buf) attr 243 drivers/pci/iov.c struct device_attribute *attr, attr 252 drivers/pci/iov.c struct device_attribute *attr, attr 268 drivers/pci/iov.c struct device_attribute *attr, attr 326 drivers/pci/iov.c struct device_attribute *attr, attr 335 drivers/pci/iov.c struct device_attribute *attr, attr 344 drivers/pci/iov.c struct device_attribute *attr, attr 353 drivers/pci/iov.c struct device_attribute *attr, attr 362 drivers/pci/iov.c struct device_attribute *attr, attr 384 drivers/pci/iov.c &dev_attr_sriov_totalvfs.attr, attr 385 drivers/pci/iov.c &dev_attr_sriov_numvfs.attr, attr 386 drivers/pci/iov.c &dev_attr_sriov_offset.attr, attr 387 drivers/pci/iov.c &dev_attr_sriov_stride.attr, attr 388 drivers/pci/iov.c &dev_attr_sriov_vf_device.attr, attr 389 drivers/pci/iov.c &dev_attr_sriov_drivers_autoprobe.attr, attr 394 drivers/pci/msi.c struct device_attribute, attr); attr 395 drivers/pci/msi.c kfree(dev_attr->attr.name); attr 461 drivers/pci/msi.c static ssize_t msi_mode_show(struct device *dev, struct device_attribute *attr, attr 468 drivers/pci/msi.c retval = kstrtoul(attr->attr.name, 10, &irq); attr 508 drivers/pci/msi.c msi_attrs[count] = &msi_dev_attr->attr; attr 510 drivers/pci/msi.c sysfs_attr_init(&msi_dev_attr->attr); attr 511 drivers/pci/msi.c msi_dev_attr->attr.name = kasprintf(GFP_KERNEL, "%d", attr 513 drivers/pci/msi.c if (!msi_dev_attr->attr.name) attr 515 drivers/pci/msi.c msi_dev_attr->attr.mode = S_IRUGO; attr 547 drivers/pci/msi.c msi_dev_attr = container_of(msi_attr, struct device_attribute, attr); attr 47 drivers/pci/p2pdma.c static ssize_t size_show(struct device *dev, struct device_attribute *attr, attr 60 drivers/pci/p2pdma.c static ssize_t available_show(struct device *dev, struct device_attribute *attr, attr 73 drivers/pci/p2pdma.c static ssize_t published_show(struct device *dev, struct device_attribute *attr, attr 84 drivers/pci/p2pdma.c &dev_attr_size.attr, attr 85 drivers/pci/p2pdma.c &dev_attr_available.attr, attr 86 drivers/pci/p2pdma.c &dev_attr_published.attr, attr 203 drivers/pci/pci-driver.c &driver_attr_new_id.attr, attr 204 drivers/pci/pci-driver.c &driver_attr_remove_id.attr, attr 80 drivers/pci/pci-label.c struct attribute *attr, int n) attr 93 drivers/pci/pci-label.c struct device_attribute *attr, char *buf) attr 103 drivers/pci/pci-label.c struct device_attribute *attr, char *buf) attr 113 drivers/pci/pci-label.c .attr = {.name = "label", .mode = 0444}, attr 118 drivers/pci/pci-label.c .attr = {.name = "index", .mode = 0444}, attr 123 drivers/pci/pci-label.c &smbios_attr_label.attr, attr 124 drivers/pci/pci-label.c &smbios_attr_instance.attr, attr 170 drivers/pci/pci-label.c enum acpi_attr_enum attr) attr 195 drivers/pci/pci-label.c if (attr == ACPI_ATTR_INDEX_SHOW) { attr 197 drivers/pci/pci-label.c } else if (attr == ACPI_ATTR_LABEL_SHOW) { attr 225 drivers/pci/pci-label.c struct attribute *attr, int n) attr 238 drivers/pci/pci-label.c struct device_attribute *attr, char *buf) attr 244 drivers/pci/pci-label.c struct device_attribute *attr, char *buf) attr 250 drivers/pci/pci-label.c .attr = {.name = "label", .mode = 0444}, attr 255 drivers/pci/pci-label.c .attr = {.name = "acpi_index", .mode = 0444}, attr 260 drivers/pci/pci-label.c &acpi_attr_label.attr, attr 261 drivers/pci/pci-label.c &acpi_attr_index.attr, attr 37 drivers/pci/pci-sysfs.c field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 55 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 63 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 79 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 93 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 95 drivers/pci/pci-sysfs.c return pci_dev_show_local_cpu(dev, false, attr, buf); attr 100 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 102 drivers/pci/pci-sysfs.c return pci_dev_show_local_cpu(dev, true, attr, buf); attr 110 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 119 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 128 drivers/pci/pci-sysfs.c static ssize_t resource_show(struct device *dev, struct device_attribute *attr, attr 155 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 164 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 173 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 209 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 225 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 241 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 257 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 266 drivers/pci/pci-sysfs.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 279 drivers/pci/pci-sysfs.c static ssize_t enable_store(struct device *dev, struct device_attribute *attr, attr 307 drivers/pci/pci-sysfs.c static ssize_t enable_show(struct device *dev, struct device_attribute *attr, attr 319 drivers/pci/pci-sysfs.c struct device_attribute *attr, const char *buf, attr 346 drivers/pci/pci-sysfs.c static ssize_t numa_node_show(struct device *dev, struct device_attribute *attr, attr 355 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 364 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 371 drivers/pci/pci-sysfs.c static ssize_t msi_bus_show(struct device *dev, struct device_attribute *attr, attr 382 drivers/pci/pci-sysfs.c static ssize_t msi_bus_store(struct device *dev, struct device_attribute *attr, attr 437 drivers/pci/pci-sysfs.c &bus_attr_rescan.attr, attr 451 drivers/pci/pci-sysfs.c struct device_attribute *attr, const char *buf, attr 470 drivers/pci/pci-sysfs.c static ssize_t remove_store(struct device *dev, struct device_attribute *attr, attr 478 drivers/pci/pci-sysfs.c if (val && device_remove_file_self(dev, attr)) attr 486 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 510 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 531 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 541 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 554 drivers/pci/pci-sysfs.c struct device_attribute *attr, attr 588 drivers/pci/pci-sysfs.c struct device_attribute *attr, char *buf) attr 601 drivers/pci/pci-sysfs.c &dev_attr_resource.attr, attr 602 drivers/pci/pci-sysfs.c &dev_attr_vendor.attr, attr 603 drivers/pci/pci-sysfs.c &dev_attr_device.attr, attr 604 drivers/pci/pci-sysfs.c &dev_attr_subsystem_vendor.attr, attr 605 drivers/pci/pci-sysfs.c &dev_attr_subsystem_device.attr, attr 606 drivers/pci/pci-sysfs.c &dev_attr_revision.attr, attr 607 drivers/pci/pci-sysfs.c &dev_attr_class.attr, attr 608 drivers/pci/pci-sysfs.c &dev_attr_irq.attr, attr 609 drivers/pci/pci-sysfs.c &dev_attr_local_cpus.attr, attr 610 drivers/pci/pci-sysfs.c &dev_attr_local_cpulist.attr, attr 611 drivers/pci/pci-sysfs.c &dev_attr_modalias.attr, attr 613 drivers/pci/pci-sysfs.c &dev_attr_numa_node.attr, attr 615 drivers/pci/pci-sysfs.c &dev_attr_dma_mask_bits.attr, attr 616 drivers/pci/pci-sysfs.c &dev_attr_consistent_dma_mask_bits.attr, attr 617 drivers/pci/pci-sysfs.c &dev_attr_enable.attr, attr 618 drivers/pci/pci-sysfs.c &dev_attr_broken_parity_status.attr, attr 619 drivers/pci/pci-sysfs.c &dev_attr_msi_bus.attr, attr 621 drivers/pci/pci-sysfs.c &dev_attr_d3cold_allowed.attr, attr 624 drivers/pci/pci-sysfs.c &dev_attr_devspec.attr, attr 626 drivers/pci/pci-sysfs.c &dev_attr_driver_override.attr, attr 627 drivers/pci/pci-sysfs.c &dev_attr_ari_enabled.attr, attr 632 drivers/pci/pci-sysfs.c &dev_attr_subordinate_bus_number.attr, attr 633 drivers/pci/pci-sysfs.c &dev_attr_secondary_bus_number.attr, attr 638 drivers/pci/pci-sysfs.c &dev_attr_current_link_speed.attr, attr 639 drivers/pci/pci-sysfs.c &dev_attr_current_link_width.attr, attr 640 drivers/pci/pci-sysfs.c &dev_attr_max_link_width.attr, attr 641 drivers/pci/pci-sysfs.c &dev_attr_max_link_speed.attr, attr 646 drivers/pci/pci-sysfs.c &dev_attr_bus_rescan.attr, attr 647 drivers/pci/pci-sysfs.c &dev_attr_cpuaffinity.attr, attr 648 drivers/pci/pci-sysfs.c &dev_attr_cpulistaffinity.attr, attr 661 drivers/pci/pci-sysfs.c static ssize_t boot_vga_show(struct device *dev, struct device_attribute *attr, attr 881 drivers/pci/pci-sysfs.c struct bin_attribute *attr, attr 901 drivers/pci/pci-sysfs.c struct bin_attribute *attr, attr 942 drivers/pci/pci-sysfs.c b->legacy_io->attr.name = "legacy_io"; attr 944 drivers/pci/pci-sysfs.c b->legacy_io->attr.mode = 0600; attr 956 drivers/pci/pci-sysfs.c b->legacy_mem->attr.name = "legacy_mem"; attr 958 drivers/pci/pci-sysfs.c b->legacy_mem->attr.mode = 0600; attr 1019 drivers/pci/pci-sysfs.c static int pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, attr 1023 drivers/pci/pci-sysfs.c int bar = (unsigned long)attr->private; attr 1044 drivers/pci/pci-sysfs.c struct bin_attribute *attr, attr 1047 drivers/pci/pci-sysfs.c return pci_mmap_resource(kobj, attr, vma, 0); attr 1051 drivers/pci/pci-sysfs.c struct bin_attribute *attr, attr 1054 drivers/pci/pci-sysfs.c return pci_mmap_resource(kobj, attr, vma, 1); attr 1058 drivers/pci/pci-sysfs.c struct bin_attribute *attr, char *buf, attr 1062 drivers/pci/pci-sysfs.c int bar = (unsigned long)attr->private; attr 1097 drivers/pci/pci-sysfs.c struct bin_attribute *attr, char *buf, attr 1100 drivers/pci/pci-sysfs.c return pci_resource_io(filp, kobj, attr, buf, off, count, false); attr 1104 drivers/pci/pci-sysfs.c struct bin_attribute *attr, char *buf, attr 1113 drivers/pci/pci-sysfs.c return pci_resource_io(filp, kobj, attr, buf, off, count, true); attr 1175 drivers/pci/pci-sysfs.c res_attr->attr.name = res_attr_name; attr 1176 drivers/pci/pci-sysfs.c res_attr->attr.mode = 0600; attr 1287 drivers/pci/pci-sysfs.c .attr = { attr 1297 drivers/pci/pci-sysfs.c .attr = { attr 1306 drivers/pci/pci-sysfs.c static ssize_t reset_store(struct device *dev, struct device_attribute *attr, attr 1354 drivers/pci/pci-sysfs.c struct bin_attribute *attr; attr 1373 drivers/pci/pci-sysfs.c attr = kzalloc(sizeof(*attr), GFP_ATOMIC); attr 1374 drivers/pci/pci-sysfs.c if (!attr) { attr 1378 drivers/pci/pci-sysfs.c sysfs_bin_attr_init(attr); attr 1379 drivers/pci/pci-sysfs.c attr->size = rom_size; attr 1380 drivers/pci/pci-sysfs.c attr->attr.name = "rom"; attr 1381 drivers/pci/pci-sysfs.c attr->attr.mode = 0600; attr 1382 drivers/pci/pci-sysfs.c attr->read = pci_read_rom; attr 1383 drivers/pci/pci-sysfs.c attr->write = pci_write_rom; attr 1384 drivers/pci/pci-sysfs.c retval = sysfs_create_bin_file(&pdev->dev.kobj, attr); attr 1386 drivers/pci/pci-sysfs.c kfree(attr); attr 1389 drivers/pci/pci-sysfs.c pdev->rom_attr = attr; attr 1476 drivers/pci/pci-sysfs.c &dev_attr_boot_vga.attr, attr 1486 drivers/pci/pci-sysfs.c if (a == &dev_attr_boot_vga.attr) attr 1494 drivers/pci/pci-sysfs.c &dev_attr_remove.attr, attr 1495 drivers/pci/pci-sysfs.c &dev_attr_dev_rescan.attr, attr 254 drivers/pci/pci.h struct attribute attr; attr 258 drivers/pci/pci.h #define to_pci_slot_attr(s) container_of(s, struct pci_slot_attribute, attr) attr 575 drivers/pci/pcie/aer.c name##_show(struct device *dev, struct device_attribute *attr, \ attr 609 drivers/pci/pcie/aer.c name##_show(struct device *dev, struct device_attribute *attr, \ attr 625 drivers/pci/pcie/aer.c &dev_attr_aer_dev_correctable.attr, attr 626 drivers/pci/pcie/aer.c &dev_attr_aer_dev_fatal.attr, attr 627 drivers/pci/pcie/aer.c &dev_attr_aer_dev_nonfatal.attr, attr 628 drivers/pci/pcie/aer.c &dev_attr_aer_rootport_total_err_cor.attr, attr 629 drivers/pci/pcie/aer.c &dev_attr_aer_rootport_total_err_fatal.attr, attr 630 drivers/pci/pcie/aer.c &dev_attr_aer_rootport_total_err_nonfatal.attr, attr 643 drivers/pci/pcie/aer.c if ((a == &dev_attr_aer_rootport_total_err_cor.attr || attr 644 drivers/pci/pcie/aer.c a == &dev_attr_aer_rootport_total_err_fatal.attr || attr 645 drivers/pci/pcie/aer.c a == &dev_attr_aer_rootport_total_err_nonfatal.attr) && attr 1198 drivers/pci/pcie/aspm.c struct device_attribute *attr, attr 1208 drivers/pci/pcie/aspm.c struct device_attribute *attr, attr 1237 drivers/pci/pcie/aspm.c struct device_attribute *attr, attr 1247 drivers/pci/pcie/aspm.c struct device_attribute *attr, attr 1279 drivers/pci/pcie/aspm.c &dev_attr_link_state.attr, power_group); attr 1282 drivers/pci/pcie/aspm.c &dev_attr_clk_ctl.attr, power_group); attr 1294 drivers/pci/pcie/aspm.c &dev_attr_link_state.attr, power_group); attr 1297 drivers/pci/pcie/aspm.c &dev_attr_clk_ctl.attr, power_group); attr 19 drivers/pci/slot.c struct attribute *attr, char *buf) attr 22 drivers/pci/slot.c struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); attr 27 drivers/pci/slot.c struct attribute *attr, const char *buf, size_t len) attr 30 drivers/pci/slot.c struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); attr 130 drivers/pci/slot.c &pci_slot_attr_address.attr, attr 131 drivers/pci/slot.c &pci_slot_attr_max_speed.attr, attr 132 drivers/pci/slot.c &pci_slot_attr_cur_speed.attr, attr 274 drivers/pci/switch/switchtec.c struct device_attribute *attr, char *buf) attr 286 drivers/pci/switch/switchtec.c struct device_attribute *attr, char *buf) attr 297 drivers/pci/switch/switchtec.c static ssize_t io_string_show(char *buf, void __iomem *attr, size_t len) attr 301 drivers/pci/switch/switchtec.c memcpy_fromio(buf, attr, len); attr 317 drivers/pci/switch/switchtec.c struct device_attribute *attr, char *buf) \ attr 332 drivers/pci/switch/switchtec.c struct device_attribute *attr, char *buf) attr 342 drivers/pci/switch/switchtec.c struct device_attribute *attr, char *buf) attr 352 drivers/pci/switch/switchtec.c struct device_attribute *attr, char *buf) attr 361 drivers/pci/switch/switchtec.c struct device_attribute *attr, char *buf) attr 370 drivers/pci/switch/switchtec.c &dev_attr_device_version.attr, attr 371 drivers/pci/switch/switchtec.c &dev_attr_fw_version.attr, attr 372 drivers/pci/switch/switchtec.c &dev_attr_vendor_id.attr, attr 373 drivers/pci/switch/switchtec.c &dev_attr_product_id.attr, attr 374 drivers/pci/switch/switchtec.c &dev_attr_product_revision.attr, attr 375 drivers/pci/switch/switchtec.c &dev_attr_component_vendor.attr, attr 376 drivers/pci/switch/switchtec.c &dev_attr_component_id.attr, attr 377 drivers/pci/switch/switchtec.c &dev_attr_component_revision.attr, attr 378 drivers/pci/switch/switchtec.c &dev_attr_partition.attr, attr 379 drivers/pci/switch/switchtec.c &dev_attr_partition_count.attr, attr 24 drivers/pci/vpd.c struct bin_attribute *attr; /* Descriptor for sysfs VPD entry */ attr 435 drivers/pci/vpd.c struct bin_attribute *attr; attr 440 drivers/pci/vpd.c attr = kzalloc(sizeof(*attr), GFP_ATOMIC); attr 441 drivers/pci/vpd.c if (!attr) attr 444 drivers/pci/vpd.c sysfs_bin_attr_init(attr); attr 445 drivers/pci/vpd.c attr->size = 0; attr 446 drivers/pci/vpd.c attr->attr.name = "vpd"; attr 447 drivers/pci/vpd.c attr->attr.mode = S_IRUSR | S_IWUSR; attr 448 drivers/pci/vpd.c attr->read = read_vpd_attr; attr 449 drivers/pci/vpd.c attr->write = write_vpd_attr; attr 450 drivers/pci/vpd.c retval = sysfs_create_bin_file(&dev->dev.kobj, attr); attr 452 drivers/pci/vpd.c kfree(attr); attr 456 drivers/pci/vpd.c dev->vpd->attr = attr; attr 461 drivers/pci/vpd.c if (dev->vpd && dev->vpd->attr) { attr 462 drivers/pci/vpd.c sysfs_remove_bin_file(&dev->dev.kobj, dev->vpd->attr); attr 463 drivers/pci/vpd.c kfree(dev->vpd->attr); attr 133 drivers/pcmcia/cistpl.c int pcmcia_read_cis_mem(struct pcmcia_socket *s, int attr, u_int addr, attr 139 drivers/pcmcia/cistpl.c dev_dbg(&s->dev, "pcmcia_read_cis_mem(%d, %#x, %u)\n", attr, addr, len); attr 141 drivers/pcmcia/cistpl.c if (attr & IS_INDIRECT) { attr 145 drivers/pcmcia/cistpl.c if (attr & IS_ATTR) { attr 176 drivers/pcmcia/cistpl.c if (attr) { attr 214 drivers/pcmcia/cistpl.c int pcmcia_write_cis_mem(struct pcmcia_socket *s, int attr, u_int addr, attr 221 drivers/pcmcia/cistpl.c "pcmcia_write_cis_mem(%d, %#x, %u)\n", attr, addr, len); attr 223 drivers/pcmcia/cistpl.c if (attr & IS_INDIRECT) { attr 227 drivers/pcmcia/cistpl.c if (attr & IS_ATTR) { attr 250 drivers/pcmcia/cistpl.c if (attr & IS_ATTR) { attr 286 drivers/pcmcia/cistpl.c static int read_cis_cache(struct pcmcia_socket *s, int attr, u_int addr, attr 308 drivers/pcmcia/cistpl.c if (cis->addr == addr && cis->len == len && cis->attr == attr) { attr 315 drivers/pcmcia/cistpl.c ret = pcmcia_read_cis_mem(s, attr, addr, len, ptr); attr 323 drivers/pcmcia/cistpl.c cis->attr = attr; attr 334 drivers/pcmcia/cistpl.c remove_cis_cache(struct pcmcia_socket *s, int attr, u_int addr, u_int len) attr 340 drivers/pcmcia/cistpl.c if (cis->addr == addr && cis->len == len && cis->attr == attr) { attr 391 drivers/pcmcia/cistpl.c ret = pcmcia_read_cis_mem(s, cis->attr, cis->addr, len, buf); attr 524 drivers/pcmcia/cistpl.c int ofs, i, attr; attr 534 drivers/pcmcia/cistpl.c attr = SPACE(tuple->Flags); attr 540 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs, 2, link); attr 554 drivers/pcmcia/cistpl.c attr = SPACE(tuple->Flags); attr 555 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs, 2, link); attr 570 drivers/pcmcia/cistpl.c LINK_SPACE(tuple->Flags) = attr | IS_ATTR; attr 571 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs+2, 4, attr 578 drivers/pcmcia/cistpl.c LINK_SPACE(tuple->Flags) = attr & ~IS_ATTR; attr 579 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs+2, 4, attr 592 drivers/pcmcia/cistpl.c LINK_SPACE(tuple->Flags) = attr; attr 595 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs+2, attr 1605 drivers/pcmcia/cistpl.c .attr = { .name = "cis", .mode = S_IRUGO | S_IWUSR }, attr 42 drivers/pcmcia/cs_internal.h unsigned int attr; attr 49 drivers/pcmcia/cs_internal.h unsigned int attr, attr 154 drivers/pcmcia/cs_internal.h int pcmcia_read_cis_mem(struct pcmcia_socket *s, int attr, attr 156 drivers/pcmcia/cs_internal.h int pcmcia_write_cis_mem(struct pcmcia_socket *s, int attr, attr 1003 drivers/pcmcia/ds.c static ssize_t field##_show (struct device *dev, struct device_attribute *attr, char *buf) \ attr 1011 drivers/pcmcia/ds.c static ssize_t name##_show (struct device *dev, struct device_attribute *attr, char *buf) \ attr 1026 drivers/pcmcia/ds.c static ssize_t function_show(struct device *dev, struct device_attribute *attr, attr 1035 drivers/pcmcia/ds.c struct device_attribute *attr, char *buf) attr 1048 drivers/pcmcia/ds.c static ssize_t pm_state_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1058 drivers/pcmcia/ds.c static ssize_t pm_state_store(struct device *dev, struct device_attribute *attr, attr 1076 drivers/pcmcia/ds.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1100 drivers/pcmcia/ds.c struct device_attribute *attr, const char *buf, size_t count) attr 1117 drivers/pcmcia/ds.c &dev_attr_resources.attr, attr 1118 drivers/pcmcia/ds.c &dev_attr_pm_state.attr, attr 1119 drivers/pcmcia/ds.c &dev_attr_function.attr, attr 1120 drivers/pcmcia/ds.c &dev_attr_func_id.attr, attr 1121 drivers/pcmcia/ds.c &dev_attr_manf_id.attr, attr 1122 drivers/pcmcia/ds.c &dev_attr_card_id.attr, attr 1123 drivers/pcmcia/ds.c &dev_attr_prod_id1.attr, attr 1124 drivers/pcmcia/ds.c &dev_attr_prod_id2.attr, attr 1125 drivers/pcmcia/ds.c &dev_attr_prod_id3.attr, attr 1126 drivers/pcmcia/ds.c &dev_attr_prod_id4.attr, attr 1127 drivers/pcmcia/ds.c &dev_attr_modalias.attr, attr 1128 drivers/pcmcia/ds.c &dev_attr_allow_func_id_match.attr, attr 158 drivers/pcmcia/pcmcia_resource.c int attr, unsigned int addr, attr 172 drivers/pcmcia/pxa2xx_base.c pxa2xx_pcmcia_set_mcatt(sock, timing.attr, clk); attr 84 drivers/pcmcia/rsrc_iodyn.c static int iodyn_find_io(struct pcmcia_socket *s, unsigned int attr, attr 110 drivers/pcmcia/rsrc_iodyn.c (attr & IORESOURCE_BITS)) attr 125 drivers/pcmcia/rsrc_iodyn.c (attr & IORESOURCE_BITS)); attr 45 drivers/pcmcia/rsrc_mgr.c static int static_find_io(struct pcmcia_socket *s, unsigned int attr, attr 713 drivers/pcmcia/rsrc_nonstatic.c static int nonstatic_find_io(struct pcmcia_socket *s, unsigned int attr, attr 739 drivers/pcmcia/rsrc_nonstatic.c (attr & IORESOURCE_BITS)) attr 755 drivers/pcmcia/rsrc_nonstatic.c (attr & IORESOURCE_BITS)); attr 1066 drivers/pcmcia/rsrc_nonstatic.c struct device_attribute *attr, char *buf) attr 1090 drivers/pcmcia/rsrc_nonstatic.c struct device_attribute *attr, attr 1122 drivers/pcmcia/rsrc_nonstatic.c struct device_attribute *attr, char *buf) attr 1156 drivers/pcmcia/rsrc_nonstatic.c struct device_attribute *attr, attr 1188 drivers/pcmcia/rsrc_nonstatic.c &dev_attr_available_resources_io.attr, attr 1189 drivers/pcmcia/rsrc_nonstatic.c &dev_attr_available_resources_mem.attr, attr 90 drivers/pcmcia/sa11xx_base.c bs_attr = skt->ops->get_timing(skt, cpu_clock, timing.attr); attr 156 drivers/pcmcia/sa11xx_base.c p+=sprintf(p, "attribute: %uns (%uns)\n", timing.attr, attr 141 drivers/pcmcia/soc_common.c timing->attr = attr 707 drivers/pcmcia/soc_common.c struct device *dev, struct device_attribute *attr, char *buf) attr 150 drivers/pcmcia/soc_common.h unsigned short attr; attr 33 drivers/pcmcia/socket_sysfs.c static ssize_t pccard_show_type(struct device *dev, struct device_attribute *attr, attr 46 drivers/pcmcia/socket_sysfs.c static ssize_t pccard_show_voltage(struct device *dev, struct device_attribute *attr, attr 60 drivers/pcmcia/socket_sysfs.c static ssize_t pccard_show_vpp(struct device *dev, struct device_attribute *attr, attr 70 drivers/pcmcia/socket_sysfs.c static ssize_t pccard_show_vcc(struct device *dev, struct device_attribute *attr, attr 81 drivers/pcmcia/socket_sysfs.c static ssize_t pccard_store_insert(struct device *dev, struct device_attribute *attr, attr 97 drivers/pcmcia/socket_sysfs.c struct device_attribute *attr, attr 105 drivers/pcmcia/socket_sysfs.c struct device_attribute *attr, attr 128 drivers/pcmcia/socket_sysfs.c struct device_attribute *attr, attr 144 drivers/pcmcia/socket_sysfs.c struct device_attribute *attr, attr 152 drivers/pcmcia/socket_sysfs.c struct device_attribute *attr, attr 177 drivers/pcmcia/socket_sysfs.c struct device_attribute *attr, char *buf) attr 184 drivers/pcmcia/socket_sysfs.c struct device_attribute *attr, attr 204 drivers/pcmcia/socket_sysfs.c &dev_attr_card_type.attr, attr 205 drivers/pcmcia/socket_sysfs.c &dev_attr_card_voltage.attr, attr 206 drivers/pcmcia/socket_sysfs.c &dev_attr_card_vpp.attr, attr 207 drivers/pcmcia/socket_sysfs.c &dev_attr_card_vcc.attr, attr 208 drivers/pcmcia/socket_sysfs.c &dev_attr_card_insert.attr, attr 209 drivers/pcmcia/socket_sysfs.c &dev_attr_card_pm_state.attr, attr 210 drivers/pcmcia/socket_sysfs.c &dev_attr_card_eject.attr, attr 211 drivers/pcmcia/socket_sysfs.c &dev_attr_card_irq_mask.attr, attr 212 drivers/pcmcia/socket_sysfs.c &dev_attr_available_resources_setup_done.attr, attr 174 drivers/pcmcia/yenta_socket.c static ssize_t show_yenta_registers(struct device *yentadev, struct device_attribute *attr, char *buf) attr 134 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf); attr 136 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf); attr 141 drivers/perf/arm-cci.c })[0].attr.attr attr 214 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf); attr 305 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf) attr 307 drivers/perf/arm-cci.c struct dev_ext_attribute *eattr = container_of(attr, attr 308 drivers/perf/arm-cci.c struct dev_ext_attribute, attr); attr 450 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf); attr 523 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf) attr 525 drivers/perf/arm-cci.c struct dev_ext_attribute *eattr = container_of(attr, attr 526 drivers/perf/arm-cci.c struct dev_ext_attribute, attr); attr 695 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf) attr 697 drivers/perf/arm-cci.c struct dev_ext_attribute *eattr = container_of(attr, attr 698 drivers/perf/arm-cci.c struct dev_ext_attribute, attr); attr 703 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf) attr 705 drivers/perf/arm-cci.c struct dev_ext_attribute *eattr = container_of(attr, attr 706 drivers/perf/arm-cci.c struct dev_ext_attribute, attr); attr 821 drivers/perf/arm-cci.c if (event->attr.type < PERF_TYPE_MAX || attr 825 drivers/perf/arm-cci.c return cci_pmu->model->validate_hw_event(cci_pmu, event->attr.config); attr 1247 drivers/perf/arm-cci.c if (event->state == PERF_EVENT_STATE_OFF && !event->attr.enable_on_exec) attr 1289 drivers/perf/arm-cci.c pr_debug("event %x:%llx not supported\n", event->attr.type, attr 1290 drivers/perf/arm-cci.c event->attr.config); attr 1323 drivers/perf/arm-cci.c if (event->attr.type != event->pmu->type) attr 1363 drivers/perf/arm-cci.c struct device_attribute *attr, char *buf) attr 1375 drivers/perf/arm-cci.c &pmu_cpumask_attr.attr, attr 219 drivers/perf/arm-ccn.c struct device_attribute *attr, char *buf) attr 221 drivers/perf/arm-ccn.c struct dev_ext_attribute *ea = container_of(attr, attr 222 drivers/perf/arm-ccn.c struct dev_ext_attribute, attr); attr 245 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_node.attr.attr, attr 246 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_xp.attr.attr, attr 247 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_type.attr.attr, attr 248 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_event.attr.attr, attr 249 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_port.attr.attr, attr 250 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_bus.attr.attr, attr 251 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_vc.attr.attr, attr 252 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_dir.attr.attr, attr 253 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_mask.attr.attr, attr 254 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_cmp_l.attr.attr, attr 255 drivers/perf/arm-ccn.c &arm_ccn_pmu_format_attr_cmp_h.attr.attr, attr 266 drivers/perf/arm-ccn.c struct device_attribute attr; attr 286 drivers/perf/arm-ccn.c #define CCN_EVENT_MN(_name, _def, _mask) { .attr = CCN_EVENT_ATTR(mn_##_name), \ attr 292 drivers/perf/arm-ccn.c .attr = CCN_EVENT_ATTR(hni_##_name), .type = CCN_TYPE_HNI, \ attr 297 drivers/perf/arm-ccn.c .attr = CCN_EVENT_ATTR(sbsx_##_name), .type = CCN_TYPE_SBSX, \ attr 301 drivers/perf/arm-ccn.c #define CCN_EVENT_HNF(_name, _event) { .attr = CCN_EVENT_ATTR(hnf_##_name), \ attr 304 drivers/perf/arm-ccn.c #define CCN_EVENT_XP(_name, _event) { .attr = CCN_EVENT_ATTR(xp_##_name), \ attr 313 drivers/perf/arm-ccn.c #define CCN_EVENT_RNI(_name, _event) { .attr = CCN_EVENT_ATTR(rni_##_name), \ attr 316 drivers/perf/arm-ccn.c #define CCN_EVENT_SBAS(_name, _event) { .attr = CCN_EVENT_ATTR(sbas_##_name), \ attr 319 drivers/perf/arm-ccn.c #define CCN_EVENT_CYCLES(_name) { .attr = CCN_EVENT_ATTR(_name), \ attr 324 drivers/perf/arm-ccn.c struct device_attribute *attr, char *buf) attr 327 drivers/perf/arm-ccn.c struct arm_ccn_pmu_event *event = container_of(attr, attr 328 drivers/perf/arm-ccn.c struct arm_ccn_pmu_event, attr); attr 371 drivers/perf/arm-ccn.c struct attribute *attr, int index) attr 375 drivers/perf/arm-ccn.c struct device_attribute *dev_attr = container_of(attr, attr 376 drivers/perf/arm-ccn.c struct device_attribute, attr); attr 378 drivers/perf/arm-ccn.c struct arm_ccn_pmu_event, attr); attr 385 drivers/perf/arm-ccn.c return attr->mode; attr 474 drivers/perf/arm-ccn.c struct device_attribute *attr, char *buf) attr 477 drivers/perf/arm-ccn.c u64 *mask = arm_ccn_pmu_get_cmp_mask(ccn, attr->attr.name); attr 483 drivers/perf/arm-ccn.c struct device_attribute *attr, const char *buf, size_t count) attr 486 drivers/perf/arm-ccn.c u64 *mask = arm_ccn_pmu_get_cmp_mask(ccn, attr->attr.name); attr 530 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_0l.attr, &arm_ccn_pmu_cmp_mask_attr_0h.attr, attr 531 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_1l.attr, &arm_ccn_pmu_cmp_mask_attr_1h.attr, attr 532 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_2l.attr, &arm_ccn_pmu_cmp_mask_attr_2h.attr, attr 533 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_3l.attr, &arm_ccn_pmu_cmp_mask_attr_3h.attr, attr 534 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_4l.attr, &arm_ccn_pmu_cmp_mask_attr_4h.attr, attr 535 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_5l.attr, &arm_ccn_pmu_cmp_mask_attr_5h.attr, attr 536 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_6l.attr, &arm_ccn_pmu_cmp_mask_attr_6h.attr, attr 537 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_7l.attr, &arm_ccn_pmu_cmp_mask_attr_7h.attr, attr 538 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_8l.attr, &arm_ccn_pmu_cmp_mask_attr_8h.attr, attr 539 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_9l.attr, &arm_ccn_pmu_cmp_mask_attr_9h.attr, attr 540 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_al.attr, &arm_ccn_pmu_cmp_mask_attr_ah.attr, attr 541 drivers/perf/arm-ccn.c &arm_ccn_pmu_cmp_mask_attr_bl.attr, &arm_ccn_pmu_cmp_mask_attr_bh.attr, attr 551 drivers/perf/arm-ccn.c struct device_attribute *attr, char *buf) attr 562 drivers/perf/arm-ccn.c &arm_ccn_pmu_cpumask_attr.attr, attr 644 drivers/perf/arm-ccn.c node_xp = CCN_CONFIG_NODE(event->attr.config); attr 645 drivers/perf/arm-ccn.c type = CCN_CONFIG_TYPE(event->attr.config); attr 646 drivers/perf/arm-ccn.c event_id = CCN_CONFIG_EVENT(event->attr.config); attr 705 drivers/perf/arm-ccn.c if (CCN_CONFIG_TYPE(event->attr.config) == CCN_TYPE_XP && attr 706 drivers/perf/arm-ccn.c CCN_CONFIG_EVENT(event->attr.config) == attr 727 drivers/perf/arm-ccn.c if (event->attr.type != event->pmu->type) attr 757 drivers/perf/arm-ccn.c node_xp = CCN_CONFIG_NODE(event->attr.config); attr 758 drivers/perf/arm-ccn.c type = CCN_CONFIG_TYPE(event->attr.config); attr 759 drivers/perf/arm-ccn.c event_id = CCN_CONFIG_EVENT(event->attr.config); attr 794 drivers/perf/arm-ccn.c u32 port = CCN_CONFIG_PORT(event->attr.config); attr 795 drivers/perf/arm-ccn.c u32 vc = CCN_CONFIG_VC(event->attr.config); attr 827 drivers/perf/arm-ccn.c arm_ccn_pmu_config_set(&event->attr.config, attr 900 drivers/perf/arm-ccn.c if (CCN_CONFIG_TYPE(event->attr.config) == CCN_TYPE_XP) attr 901 drivers/perf/arm-ccn.c xp = &ccn->xp[CCN_CONFIG_XP(event->attr.config)]; attr 904 drivers/perf/arm-ccn.c CCN_CONFIG_NODE(event->attr.config))]; attr 956 drivers/perf/arm-ccn.c u64 cmp_l = event->attr.config1; attr 957 drivers/perf/arm-ccn.c u64 cmp_h = event->attr.config2; attr 958 drivers/perf/arm-ccn.c u64 mask_l = ccn->dt.cmp_mask[CCN_CONFIG_MASK(event->attr.config)].l; attr 959 drivers/perf/arm-ccn.c u64 mask_h = ccn->dt.cmp_mask[CCN_CONFIG_MASK(event->attr.config)].h; attr 967 drivers/perf/arm-ccn.c val |= CCN_CONFIG_DIR(event->attr.config) << attr 971 drivers/perf/arm-ccn.c val |= CCN_CONFIG_PORT(event->attr.config) << attr 975 drivers/perf/arm-ccn.c val |= CCN_CONFIG_VC(event->attr.config) << attr 1006 drivers/perf/arm-ccn.c id = (CCN_CONFIG_VC(event->attr.config) << 4) | attr 1007 drivers/perf/arm-ccn.c (CCN_CONFIG_BUS(event->attr.config) << 3) | attr 1008 drivers/perf/arm-ccn.c (CCN_CONFIG_EVENT(event->attr.config) << 0); attr 1023 drivers/perf/arm-ccn.c u32 type = CCN_CONFIG_TYPE(event->attr.config); attr 1026 drivers/perf/arm-ccn.c port = arm_ccn_node_to_xp_port(CCN_CONFIG_NODE(event->attr.config)); attr 1049 drivers/perf/arm-ccn.c val |= CCN_CONFIG_EVENT(event->attr.config) << attr 1064 drivers/perf/arm-ccn.c if (CCN_CONFIG_TYPE(event->attr.config) == CCN_TYPE_XP) attr 1065 drivers/perf/arm-ccn.c xp = CCN_CONFIG_XP(event->attr.config); attr 1067 drivers/perf/arm-ccn.c xp = arm_ccn_node_to_xp(CCN_CONFIG_NODE(event->attr.config)); attr 1079 drivers/perf/arm-ccn.c if (CCN_CONFIG_TYPE(event->attr.config) == CCN_TYPE_XP) { attr 1080 drivers/perf/arm-ccn.c if (CCN_CONFIG_EVENT(event->attr.config) == attr 1564 drivers/perf/arm-ccn.c arm_ccn_pmu_events_attrs[i] = &arm_ccn_pmu_events[i].attr.attr; attr 78 drivers/perf/arm_dsu_pmu.c .attr = __ATTR(_name, 0444, _func, NULL), \ attr 81 drivers/perf/arm_dsu_pmu.c })[0].attr.attr) attr 133 drivers/perf/arm_dsu_pmu.c struct device_attribute *attr, attr 136 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute *eattr = container_of(attr, attr 137 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute, attr); attr 143 drivers/perf/arm_dsu_pmu.c struct device_attribute *attr, attr 146 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute *eattr = container_of(attr, attr 147 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute, attr); attr 152 drivers/perf/arm_dsu_pmu.c struct device_attribute *attr, attr 157 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute *eattr = container_of(attr, attr 158 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute, attr); attr 198 drivers/perf/arm_dsu_pmu.c dsu_pmu_event_attr_is_visible(struct kobject *kobj, struct attribute *attr, attr 203 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute *eattr = container_of(attr, attr 204 drivers/perf/arm_dsu_pmu.c struct dev_ext_attribute, attr.attr); attr 207 drivers/perf/arm_dsu_pmu.c return test_bit(evt, dsu_pmu->cpmceid_bitmap) ? attr->mode : 0; attr 303 drivers/perf/arm_dsu_pmu.c unsigned long evtype = event->attr.config; attr 547 drivers/perf/arm_dsu_pmu.c if (event->attr.type != event->pmu->type) attr 584 drivers/perf/arm_dsu_pmu.c event->hw.config_base = event->attr.config; attr 102 drivers/perf/arm_pmu.c u64 config = event->attr.config; attr 103 drivers/perf/arm_pmu.c int type = event->attr.type; attr 303 drivers/perf/arm_pmu.c if (event->state == PERF_EVENT_STATE_OFF && !event->attr.enable_on_exec) attr 371 drivers/perf/arm_pmu.c pr_debug("event %x:%llx not supported\n", event->attr.type, attr 372 drivers/perf/arm_pmu.c event->attr.config); attr 391 drivers/perf/arm_pmu.c armpmu->set_event_filter(hwc, &event->attr)) { attr 491 drivers/perf/arm_pmu.c struct device_attribute *attr, char *buf) attr 500 drivers/perf/arm_pmu.c &dev_attr_cpus.attr, attr 124 drivers/perf/arm_smmuv3_pmu.c event->attr._config); \ attr 350 drivers/perf/arm_smmuv3_pmu.c if (event->attr.type != event->pmu->type) attr 478 drivers/perf/arm_smmuv3_pmu.c struct device_attribute *attr, attr 490 drivers/perf/arm_smmuv3_pmu.c &smmu_pmu_cpumask_attr.attr, attr 501 drivers/perf/arm_smmuv3_pmu.c struct device_attribute *attr, char *page) attr 505 drivers/perf/arm_smmuv3_pmu.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 523 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_cycles.attr.attr, attr 524 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_transaction.attr.attr, attr 525 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_tlb_miss.attr.attr, attr 526 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_config_cache_miss.attr.attr, attr 527 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_trans_table_walk_access.attr.attr, attr 528 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_config_struct_access.attr.attr, attr 529 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_pcie_ats_trans_rq.attr.attr, attr 530 drivers/perf/arm_smmuv3_pmu.c &smmu_event_attr_pcie_ats_trans_passed.attr.attr, attr 535 drivers/perf/arm_smmuv3_pmu.c struct attribute *attr, int unused) attr 541 drivers/perf/arm_smmuv3_pmu.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); attr 544 drivers/perf/arm_smmuv3_pmu.c return attr->mode; attr 562 drivers/perf/arm_smmuv3_pmu.c &format_attr_event.attr, attr 563 drivers/perf/arm_smmuv3_pmu.c &format_attr_filter_stream_id.attr, attr 564 drivers/perf/arm_smmuv3_pmu.c &format_attr_filter_span.attr, attr 565 drivers/perf/arm_smmuv3_pmu.c &format_attr_filter_enable.attr, attr 121 drivers/perf/arm_spe_pmu.c struct device_attribute *attr, attr 126 drivers/perf/arm_spe_pmu.c container_of(attr, struct dev_ext_attribute, attr); attr 136 drivers/perf/arm_spe_pmu.c })[0].attr.attr attr 198 drivers/perf/arm_spe_pmu.c #define _ATTR_CFG_GET_FLD(attr, cfg, lo, hi) \ attr 199 drivers/perf/arm_spe_pmu.c ((((attr)->cfg) >> lo) & GENMASK(hi - lo, 0)) attr 201 drivers/perf/arm_spe_pmu.c #define ATTR_CFG_GET_FLD(attr, name) \ attr 202 drivers/perf/arm_spe_pmu.c _ATTR_CFG_GET_FLD(attr, \ attr 218 drivers/perf/arm_spe_pmu.c &format_attr_ts_enable.attr, attr 219 drivers/perf/arm_spe_pmu.c &format_attr_pa_enable.attr, attr 220 drivers/perf/arm_spe_pmu.c &format_attr_pct_enable.attr, attr 221 drivers/perf/arm_spe_pmu.c &format_attr_jitter.attr, attr 222 drivers/perf/arm_spe_pmu.c &format_attr_branch_filter.attr, attr 223 drivers/perf/arm_spe_pmu.c &format_attr_load_filter.attr, attr 224 drivers/perf/arm_spe_pmu.c &format_attr_store_filter.attr, attr 225 drivers/perf/arm_spe_pmu.c &format_attr_event_filter.attr, attr 226 drivers/perf/arm_spe_pmu.c &format_attr_min_latency.attr, attr 236 drivers/perf/arm_spe_pmu.c struct device_attribute *attr, attr 246 drivers/perf/arm_spe_pmu.c &dev_attr_cpumask.attr, attr 264 drivers/perf/arm_spe_pmu.c struct perf_event_attr *attr = &event->attr; attr 267 drivers/perf/arm_spe_pmu.c reg |= ATTR_CFG_GET_FLD(attr, ts_enable) << SYS_PMSCR_EL1_TS_SHIFT; attr 268 drivers/perf/arm_spe_pmu.c reg |= ATTR_CFG_GET_FLD(attr, pa_enable) << SYS_PMSCR_EL1_PA_SHIFT; attr 269 drivers/perf/arm_spe_pmu.c reg |= ATTR_CFG_GET_FLD(attr, pct_enable) << SYS_PMSCR_EL1_PCT_SHIFT; attr 271 drivers/perf/arm_spe_pmu.c if (!attr->exclude_user) attr 274 drivers/perf/arm_spe_pmu.c if (!attr->exclude_kernel) attr 302 drivers/perf/arm_spe_pmu.c struct perf_event_attr *attr = &event->attr; attr 307 drivers/perf/arm_spe_pmu.c reg |= ATTR_CFG_GET_FLD(attr, jitter) << SYS_PMSIRR_EL1_RND_SHIFT; attr 315 drivers/perf/arm_spe_pmu.c struct perf_event_attr *attr = &event->attr; attr 318 drivers/perf/arm_spe_pmu.c reg |= ATTR_CFG_GET_FLD(attr, load_filter) << SYS_PMSFCR_EL1_LD_SHIFT; attr 319 drivers/perf/arm_spe_pmu.c reg |= ATTR_CFG_GET_FLD(attr, store_filter) << SYS_PMSFCR_EL1_ST_SHIFT; attr 320 drivers/perf/arm_spe_pmu.c reg |= ATTR_CFG_GET_FLD(attr, branch_filter) << SYS_PMSFCR_EL1_B_SHIFT; attr 325 drivers/perf/arm_spe_pmu.c if (ATTR_CFG_GET_FLD(attr, event_filter)) attr 328 drivers/perf/arm_spe_pmu.c if (ATTR_CFG_GET_FLD(attr, min_latency)) attr 336 drivers/perf/arm_spe_pmu.c struct perf_event_attr *attr = &event->attr; attr 337 drivers/perf/arm_spe_pmu.c return ATTR_CFG_GET_FLD(attr, event_filter); attr 342 drivers/perf/arm_spe_pmu.c struct perf_event_attr *attr = &event->attr; attr 343 drivers/perf/arm_spe_pmu.c return ATTR_CFG_GET_FLD(attr, min_latency) attr 662 drivers/perf/arm_spe_pmu.c struct perf_event_attr *attr = &event->attr; attr 666 drivers/perf/arm_spe_pmu.c if (attr->type != event->pmu->type) attr 676 drivers/perf/arm_spe_pmu.c if (attr->exclude_idle) attr 686 drivers/perf/arm_spe_pmu.c if (attr->freq) attr 83 drivers/perf/fsl_imx8_ddr_perf.c struct device_attribute *attr, char *buf) attr 94 drivers/perf/fsl_imx8_ddr_perf.c &ddr_perf_cpumask_attr.attr, attr 103 drivers/perf/fsl_imx8_ddr_perf.c ddr_pmu_event_show(struct device *dev, struct device_attribute *attr, attr 108 drivers/perf/fsl_imx8_ddr_perf.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 114 drivers/perf/fsl_imx8_ddr_perf.c { .attr = __ATTR(_name, 0444, ddr_pmu_event_show, NULL),\ attr 116 drivers/perf/fsl_imx8_ddr_perf.c })[0].attr.attr) attr 164 drivers/perf/fsl_imx8_ddr_perf.c &format_attr_event.attr, attr 165 drivers/perf/fsl_imx8_ddr_perf.c &format_attr_axi_id.attr, attr 166 drivers/perf/fsl_imx8_ddr_perf.c &format_attr_axi_mask.attr, attr 184 drivers/perf/fsl_imx8_ddr_perf.c return event->attr.config == 0x41 || event->attr.config == 0x42; attr 189 drivers/perf/fsl_imx8_ddr_perf.c return event->attr.config1; attr 262 drivers/perf/fsl_imx8_ddr_perf.c if (event->attr.type != event->pmu->type) attr 354 drivers/perf/fsl_imx8_ddr_perf.c ddr_perf_counter_enable(pmu, event->attr.config, counter, true); attr 364 drivers/perf/fsl_imx8_ddr_perf.c int cfg = event->attr.config; attr 365 drivers/perf/fsl_imx8_ddr_perf.c int cfg1 = event->attr.config1; attr 407 drivers/perf/fsl_imx8_ddr_perf.c ddr_perf_counter_enable(pmu, event->attr.config, counter, false); attr 306 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c &dev_attr_cpumask.attr, attr 317 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c &dev_attr_cpumask.attr, attr 307 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c &dev_attr_cpumask.attr, attr 29 drivers/perf/hisilicon/hisi_uncore_pmu.c struct device_attribute *attr, char *buf) attr 33 drivers/perf/hisilicon/hisi_uncore_pmu.c eattr = container_of(attr, struct dev_ext_attribute, attr); attr 42 drivers/perf/hisilicon/hisi_uncore_pmu.c struct device_attribute *attr, char *page) attr 46 drivers/perf/hisilicon/hisi_uncore_pmu.c eattr = container_of(attr, struct dev_ext_attribute, attr); attr 55 drivers/perf/hisilicon/hisi_uncore_pmu.c struct device_attribute *attr, char *buf) attr 131 drivers/perf/hisilicon/hisi_uncore_pmu.c if (event->attr.type != event->pmu->type) attr 157 drivers/perf/hisilicon/hisi_uncore_pmu.c if (event->attr.config > hisi_pmu->check_event) attr 168 drivers/perf/hisilicon/hisi_uncore_pmu.c hwc->config_base = event->attr.config; attr 29 drivers/perf/hisilicon/hisi_uncore_pmu.h })[0].attr.attr) attr 92 drivers/perf/hisilicon/hisi_uncore_pmu.h struct device_attribute *attr, char *buf); attr 94 drivers/perf/hisilicon/hisi_uncore_pmu.h struct device_attribute *attr, char *buf); attr 96 drivers/perf/hisilicon/hisi_uncore_pmu.h struct device_attribute *attr, char *buf); attr 487 drivers/perf/qcom_l2_pmu.c if (event->attr.type != event->pmu->type) attr 504 drivers/perf/qcom_l2_pmu.c if (((L2_EVT_GROUP(event->attr.config) > L2_EVT_GROUP_MAX) || attr 505 drivers/perf/qcom_l2_pmu.c ((event->attr.config & ~L2_EVT_MASK) != 0)) && attr 506 drivers/perf/qcom_l2_pmu.c (event->attr.config != L2CYCLE_CTR_RAW_CODE)) { attr 509 drivers/perf/qcom_l2_pmu.c event->attr.config); attr 549 drivers/perf/qcom_l2_pmu.c (L2_EVT_GROUP(event->group_leader->attr.config) == attr 550 drivers/perf/qcom_l2_pmu.c L2_EVT_GROUP(event->attr.config))) { attr 553 drivers/perf/qcom_l2_pmu.c event->group_leader->attr.config, attr 554 drivers/perf/qcom_l2_pmu.c event->attr.config); attr 561 drivers/perf/qcom_l2_pmu.c (L2_EVT_GROUP(sibling->attr.config) == attr 562 drivers/perf/qcom_l2_pmu.c L2_EVT_GROUP(event->attr.config))) { attr 565 drivers/perf/qcom_l2_pmu.c sibling->attr.config, attr 566 drivers/perf/qcom_l2_pmu.c event->attr.config); attr 572 drivers/perf/qcom_l2_pmu.c hwc->config_base = event->attr.config; attr 678 drivers/perf/qcom_l2_pmu.c struct device_attribute *attr, attr 690 drivers/perf/qcom_l2_pmu.c &l2_cache_pmu_cpumask_attr.attr, attr 704 drivers/perf/qcom_l2_pmu.c &format_attr_l2_code.attr, attr 705 drivers/perf/qcom_l2_pmu.c &format_attr_l2_group.attr, attr 706 drivers/perf/qcom_l2_pmu.c &format_attr_event.attr, attr 716 drivers/perf/qcom_l2_pmu.c struct device_attribute *attr, char *page) attr 720 drivers/perf/qcom_l2_pmu.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 726 drivers/perf/qcom_l2_pmu.c { .attr = __ATTR(_name, 0444, l2cache_pmu_event_show, NULL), \ attr 728 drivers/perf/qcom_l2_pmu.c })[0].attr.attr) attr 138 drivers/perf/qcom_l3_pmu.c return (event->attr.config) & L3_EVTYPE_MASK; attr 143 drivers/perf/qcom_l3_pmu.c return !!(event->attr.config & BIT_ULL(L3_EVENT_LC_BIT)); attr 486 drivers/perf/qcom_l3_pmu.c if (event->attr.type != event->pmu->type) attr 613 drivers/perf/qcom_l3_pmu.c struct device_attribute *attr, char *buf) attr 617 drivers/perf/qcom_l3_pmu.c eattr = container_of(attr, struct dev_ext_attribute, attr); attr 623 drivers/perf/qcom_l3_pmu.c { .attr = __ATTR(_name, 0444, l3cache_pmu_format_show, NULL), \ attr 625 drivers/perf/qcom_l3_pmu.c })[0].attr.attr) attr 641 drivers/perf/qcom_l3_pmu.c struct device_attribute *attr, char *page) attr 645 drivers/perf/qcom_l3_pmu.c pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); attr 651 drivers/perf/qcom_l3_pmu.c { .attr = __ATTR(_name, 0444, l3cache_pmu_event_show, NULL), \ attr 653 drivers/perf/qcom_l3_pmu.c })[0].attr.attr) attr 674 drivers/perf/qcom_l3_pmu.c struct device_attribute *attr, char *buf) attr 684 drivers/perf/qcom_l3_pmu.c &dev_attr_cpumask.attr, attr 98 drivers/perf/thunderx2_pmu.c &format_attr_event.attr, attr 103 drivers/perf/thunderx2_pmu.c &format_attr_event.attr, attr 121 drivers/perf/thunderx2_pmu.c struct device_attribute *attr, char *buf) attr 125 drivers/perf/thunderx2_pmu.c eattr = container_of(attr, struct dev_ext_attribute, attr); attr 143 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_read_request.attr.attr, attr 144 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_writeback_request.attr.attr, attr 145 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_inv_nwrite_request.attr.attr, attr 146 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_inv_request.attr.attr, attr 147 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_evict_request.attr.attr, attr 148 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_inv_nwrite_hit.attr.attr, attr 149 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_inv_hit.attr.attr, attr 150 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_read_hit.attr.attr, attr 160 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_cnt_cycles.attr.attr, attr 161 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_write_txns.attr.attr, attr 162 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_data_transfers.attr.attr, attr 163 drivers/perf/thunderx2_pmu.c &tx2_pmu_event_attr_read_txns.attr.attr, attr 180 drivers/perf/thunderx2_pmu.c static ssize_t cpumask_show(struct device *dev, struct device_attribute *attr, attr 191 drivers/perf/thunderx2_pmu.c &dev_attr_cpumask.attr, attr 416 drivers/perf/thunderx2_pmu.c if (event->attr.type != event->pmu->type) attr 435 drivers/perf/thunderx2_pmu.c if (event->attr.config >= tx2_pmu->max_events) attr 439 drivers/perf/thunderx2_pmu.c hwc->config = event->attr.config; attr 168 drivers/perf/xgene_pmu.c struct device_attribute *attr, char *buf) attr 172 drivers/perf/xgene_pmu.c eattr = container_of(attr, struct dev_ext_attribute, attr); attr 178 drivers/perf/xgene_pmu.c { .attr = __ATTR(_name, S_IRUGO, xgene_pmu_format_show, NULL), \ attr 180 drivers/perf/xgene_pmu.c })[0].attr.attr) attr 279 drivers/perf/xgene_pmu.c struct device_attribute *attr, char *buf) attr 283 drivers/perf/xgene_pmu.c eattr = container_of(attr, struct dev_ext_attribute, attr); attr 289 drivers/perf/xgene_pmu.c { .attr = __ATTR(_name, S_IRUGO, xgene_pmu_event_show, NULL), \ attr 291 drivers/perf/xgene_pmu.c })[0].attr.attr) attr 608 drivers/perf/xgene_pmu.c struct device_attribute *attr, char *buf) attr 618 drivers/perf/xgene_pmu.c &dev_attr_cpumask.attr, attr 897 drivers/perf/xgene_pmu.c if (event->attr.type != event->pmu->type) attr 921 drivers/perf/xgene_pmu.c hw->config = event->attr.config; attr 928 drivers/perf/xgene_pmu.c hw->config_base = event->attr.config1; attr 173 drivers/phy/broadcom/phy-brcm-usb.c struct device_attribute *attr, attr 186 drivers/phy/broadcom/phy-brcm-usb.c struct device_attribute *attr, attr 205 drivers/phy/broadcom/phy-brcm-usb.c struct device_attribute *attr, attr 222 drivers/phy/broadcom/phy-brcm-usb.c &dev_attr_dr_mode.attr, attr 223 drivers/phy/broadcom/phy-brcm-usb.c &dev_attr_dual_select.attr, attr 314 drivers/phy/renesas/phy-rcar-gen3-usb2.c static ssize_t role_store(struct device *dev, struct device_attribute *attr, attr 354 drivers/phy/renesas/phy-rcar-gen3-usb2.c static ssize_t role_show(struct device *dev, struct device_attribute *attr, attr 548 drivers/phy/ti/phy-twl4030-usb.c struct device_attribute *attr, char *buf) attr 33 drivers/platform/chrome/cros_ec_lightbar.c struct device_attribute *attr, char *buf) attr 41 drivers/platform/chrome/cros_ec_lightbar.c struct device_attribute *attr, attr 156 drivers/platform/chrome/cros_ec_lightbar.c struct device_attribute *attr, char *buf) attr 174 drivers/platform/chrome/cros_ec_lightbar.c struct device_attribute *attr, attr 220 drivers/platform/chrome/cros_ec_lightbar.c static ssize_t led_rgb_store(struct device *dev, struct device_attribute *attr, attr 291 drivers/platform/chrome/cros_ec_lightbar.c struct device_attribute *attr, char *buf) attr 395 drivers/platform/chrome/cros_ec_lightbar.c static ssize_t sequence_store(struct device *dev, struct device_attribute *attr, attr 444 drivers/platform/chrome/cros_ec_lightbar.c static ssize_t program_store(struct device *dev, struct device_attribute *attr, attr 507 drivers/platform/chrome/cros_ec_lightbar.c struct device_attribute *attr, attr 514 drivers/platform/chrome/cros_ec_lightbar.c struct device_attribute *attr, attr 541 drivers/platform/chrome/cros_ec_lightbar.c &dev_attr_interval_msec.attr, attr 542 drivers/platform/chrome/cros_ec_lightbar.c &dev_attr_version.attr, attr 543 drivers/platform/chrome/cros_ec_lightbar.c &dev_attr_brightness.attr, attr 544 drivers/platform/chrome/cros_ec_lightbar.c &dev_attr_led_rgb.attr, attr 545 drivers/platform/chrome/cros_ec_lightbar.c &dev_attr_sequence.attr, attr 546 drivers/platform/chrome/cros_ec_lightbar.c &dev_attr_program.attr, attr 547 drivers/platform/chrome/cros_ec_lightbar.c &dev_attr_userspace_control.attr, attr 27 drivers/platform/chrome/cros_ec_sysfs.c struct device_attribute *attr, char *buf) attr 39 drivers/platform/chrome/cros_ec_sysfs.c struct device_attribute *attr, attr 112 drivers/platform/chrome/cros_ec_sysfs.c struct device_attribute *attr, char *buf) attr 214 drivers/platform/chrome/cros_ec_sysfs.c struct device_attribute *attr, char *buf) attr 248 drivers/platform/chrome/cros_ec_sysfs.c struct device_attribute *attr, char *buf) attr 280 drivers/platform/chrome/cros_ec_sysfs.c struct device_attribute *attr, attr 320 drivers/platform/chrome/cros_ec_sysfs.c &dev_attr_kb_wake_angle.attr, attr 321 drivers/platform/chrome/cros_ec_sysfs.c &dev_attr_reboot.attr, attr 322 drivers/platform/chrome/cros_ec_sysfs.c &dev_attr_version.attr, attr 323 drivers/platform/chrome/cros_ec_sysfs.c &dev_attr_flashinfo.attr, attr 333 drivers/platform/chrome/cros_ec_sysfs.c if (a == &dev_attr_kb_wake_angle.attr && !ec->has_kb_wake_angle) attr 58 drivers/platform/chrome/cros_ec_vbc.c struct bin_attribute *attr, char *buf, attr 46 drivers/platform/chrome/wilco_ec/sysfs.c struct device_attribute *attr, attr 102 drivers/platform/chrome/wilco_ec/sysfs.c static ssize_t version_show(struct device *dev, struct device_attribute *attr, attr 111 drivers/platform/chrome/wilco_ec/sysfs.c struct device_attribute *attr, char *buf) attr 119 drivers/platform/chrome/wilco_ec/sysfs.c struct device_attribute *attr, char *buf) attr 127 drivers/platform/chrome/wilco_ec/sysfs.c struct device_attribute *attr, char *buf) attr 136 drivers/platform/chrome/wilco_ec/sysfs.c &dev_attr_boot_on_ac.attr, attr 137 drivers/platform/chrome/wilco_ec/sysfs.c &dev_attr_build_date.attr, attr 138 drivers/platform/chrome/wilco_ec/sysfs.c &dev_attr_build_revision.attr, attr 139 drivers/platform/chrome/wilco_ec/sysfs.c &dev_attr_model_number.attr, attr 140 drivers/platform/chrome/wilco_ec/sysfs.c &dev_attr_version.attr, attr 158 drivers/platform/mellanox/mlxreg-hotplug.c struct device_attribute *attr, attr 163 drivers/platform/mellanox/mlxreg-hotplug.c int index = to_sensor_dev_attr_2(attr)->index; attr 164 drivers/platform/mellanox/mlxreg-hotplug.c int nr = to_sensor_dev_attr_2(attr)->nr; attr 210 drivers/platform/mellanox/mlxreg-hotplug.c PRIV_ATTR(id) = &PRIV_DEV_ATTR(id).dev_attr.attr; attr 221 drivers/platform/mellanox/mlxreg-hotplug.c PRIV_DEV_ATTR(id).dev_attr.attr.name = attr 223 drivers/platform/mellanox/mlxreg-hotplug.c PRIV_DEV_ATTR(id).dev_attr.attr.mode = 0444; attr 228 drivers/platform/mellanox/mlxreg-hotplug.c sysfs_attr_init(&PRIV_DEV_ATTR(id).dev_attr.attr); attr 93 drivers/platform/mellanox/mlxreg-io.c mlxreg_io_attr_show(struct device *dev, struct device_attribute *attr, attr 97 drivers/platform/mellanox/mlxreg-io.c int index = to_sensor_dev_attr(attr)->index; attr 113 drivers/platform/mellanox/mlxreg-io.c mlxreg_io_attr_store(struct device *dev, struct device_attribute *attr, attr 117 drivers/platform/mellanox/mlxreg-io.c int index = to_sensor_dev_attr(attr)->index; attr 164 drivers/platform/mellanox/mlxreg-io.c &priv->mlxreg_io_dev_attr[i].dev_attr.attr; attr 179 drivers/platform/mellanox/mlxreg-io.c priv->mlxreg_io_dev_attr[i].dev_attr.attr.mode = attr 181 drivers/platform/mellanox/mlxreg-io.c priv->mlxreg_io_dev_attr[i].dev_attr.attr.name = attr 184 drivers/platform/mellanox/mlxreg-io.c sysfs_attr_init(&priv->mlxreg_io_dev_attr[i].dev_attr.attr); attr 47 drivers/platform/mips/cpu_hwmon.c struct device_attribute *attr, char *buf); attr 51 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_name.dev_attr.attr, attr 62 drivers/platform/mips/cpu_hwmon.c struct device_attribute *attr, char *buf) attr 68 drivers/platform/mips/cpu_hwmon.c struct device_attribute *attr, char *buf); attr 70 drivers/platform/mips/cpu_hwmon.c struct device_attribute *attr, char *buf); attr 83 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 84 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp1_label.dev_attr.attr, attr 88 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp2_input.dev_attr.attr, attr 89 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp2_label.dev_attr.attr, attr 93 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp3_input.dev_attr.attr, attr 94 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp3_label.dev_attr.attr, attr 98 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp4_input.dev_attr.attr, attr 99 drivers/platform/mips/cpu_hwmon.c &sensor_dev_attr_temp4_label.dev_attr.attr, attr 105 drivers/platform/mips/cpu_hwmon.c struct device_attribute *attr, char *buf) attr 107 drivers/platform/mips/cpu_hwmon.c int id = (to_sensor_dev_attr(attr))->index - 1; attr 112 drivers/platform/mips/cpu_hwmon.c struct device_attribute *attr, char *buf) attr 114 drivers/platform/mips/cpu_hwmon.c int id = (to_sensor_dev_attr(attr))->index - 1; attr 192 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr; attr 263 drivers/platform/x86/alienware-wmi.c static struct platform_zone *match_zone(struct device_attribute *attr) attr 268 drivers/platform/x86/alienware-wmi.c if ((struct device_attribute *)zone_data[zone].attr == attr) { attr 320 drivers/platform/x86/alienware-wmi.c static ssize_t zone_show(struct device *dev, struct device_attribute *attr, attr 324 drivers/platform/x86/alienware-wmi.c target_zone = match_zone(attr); attr 333 drivers/platform/x86/alienware-wmi.c static ssize_t zone_set(struct device *dev, struct device_attribute *attr, attr 338 drivers/platform/x86/alienware-wmi.c target_zone = match_zone(attr); attr 398 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, char *buf) attr 408 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, attr 473 drivers/platform/x86/alienware-wmi.c sysfs_attr_init(&zone_dev_attrs[zone].attr); attr 474 drivers/platform/x86/alienware-wmi.c zone_dev_attrs[zone].attr.name = name; attr 475 drivers/platform/x86/alienware-wmi.c zone_dev_attrs[zone].attr.mode = 0644; attr 479 drivers/platform/x86/alienware-wmi.c zone_attrs[zone] = &zone_dev_attrs[zone].attr; attr 480 drivers/platform/x86/alienware-wmi.c zone_data[zone].attr = &zone_dev_attrs[zone]; attr 482 drivers/platform/x86/alienware-wmi.c zone_attrs[quirks->num_zones] = &dev_attr_lighting_control_state.attr; attr 498 drivers/platform/x86/alienware-wmi.c kfree(zone_dev_attrs[zone].attr.name); attr 538 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, char *buf) attr 561 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, char *buf) attr 585 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, attr 611 drivers/platform/x86/alienware-wmi.c &dev_attr_cable.attr, attr 612 drivers/platform/x86/alienware-wmi.c &dev_attr_source.attr, attr 643 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, char *buf) attr 668 drivers/platform/x86/alienware-wmi.c &dev_attr_status.attr, attr 698 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, char *buf) attr 723 drivers/platform/x86/alienware-wmi.c struct device_attribute *attr, attr 749 drivers/platform/x86/alienware-wmi.c &dev_attr_deepsleep.attr, attr 848 drivers/platform/x86/asus-laptop.c static ssize_t infos_show(struct device *dev, struct device_attribute *attr, attr 938 drivers/platform/x86/asus-laptop.c static ssize_t ledd_show(struct device *dev, struct device_attribute *attr, attr 946 drivers/platform/x86/asus-laptop.c static ssize_t ledd_store(struct device *dev, struct device_attribute *attr, attr 998 drivers/platform/x86/asus-laptop.c static ssize_t wlan_show(struct device *dev, struct device_attribute *attr, attr 1006 drivers/platform/x86/asus-laptop.c static ssize_t wlan_store(struct device *dev, struct device_attribute *attr, attr 1027 drivers/platform/x86/asus-laptop.c static ssize_t bluetooth_show(struct device *dev, struct device_attribute *attr, attr 1036 drivers/platform/x86/asus-laptop.c struct device_attribute *attr, const char *buf, attr 1057 drivers/platform/x86/asus-laptop.c static ssize_t wimax_show(struct device *dev, struct device_attribute *attr, attr 1065 drivers/platform/x86/asus-laptop.c static ssize_t wimax_store(struct device *dev, struct device_attribute *attr, attr 1086 drivers/platform/x86/asus-laptop.c static ssize_t wwan_show(struct device *dev, struct device_attribute *attr, attr 1094 drivers/platform/x86/asus-laptop.c static ssize_t wwan_store(struct device *dev, struct device_attribute *attr, attr 1121 drivers/platform/x86/asus-laptop.c static ssize_t display_store(struct device *dev, struct device_attribute *attr, attr 1156 drivers/platform/x86/asus-laptop.c static ssize_t ls_switch_show(struct device *dev, struct device_attribute *attr, attr 1165 drivers/platform/x86/asus-laptop.c struct device_attribute *attr, const char *buf, attr 1187 drivers/platform/x86/asus-laptop.c static ssize_t ls_level_show(struct device *dev, struct device_attribute *attr, attr 1195 drivers/platform/x86/asus-laptop.c static ssize_t ls_level_store(struct device *dev, struct device_attribute *attr, attr 1228 drivers/platform/x86/asus-laptop.c static ssize_t ls_value_show(struct device *dev, struct device_attribute *attr, attr 1269 drivers/platform/x86/asus-laptop.c static ssize_t gps_show(struct device *dev, struct device_attribute *attr, attr 1277 drivers/platform/x86/asus-laptop.c static ssize_t gps_store(struct device *dev, struct device_attribute *attr, attr 1562 drivers/platform/x86/asus-laptop.c &dev_attr_infos.attr, attr 1563 drivers/platform/x86/asus-laptop.c &dev_attr_wlan.attr, attr 1564 drivers/platform/x86/asus-laptop.c &dev_attr_bluetooth.attr, attr 1565 drivers/platform/x86/asus-laptop.c &dev_attr_wimax.attr, attr 1566 drivers/platform/x86/asus-laptop.c &dev_attr_wwan.attr, attr 1567 drivers/platform/x86/asus-laptop.c &dev_attr_display.attr, attr 1568 drivers/platform/x86/asus-laptop.c &dev_attr_ledd.attr, attr 1569 drivers/platform/x86/asus-laptop.c &dev_attr_ls_value.attr, attr 1570 drivers/platform/x86/asus-laptop.c &dev_attr_ls_level.attr, attr 1571 drivers/platform/x86/asus-laptop.c &dev_attr_ls_switch.attr, attr 1572 drivers/platform/x86/asus-laptop.c &dev_attr_gps.attr, attr 1577 drivers/platform/x86/asus-laptop.c struct attribute *attr, attr 1587 drivers/platform/x86/asus-laptop.c if (attr == &dev_attr_ls_switch.attr) attr 1589 drivers/platform/x86/asus-laptop.c else if (attr == &dev_attr_ls_level.attr) attr 1594 drivers/platform/x86/asus-laptop.c return supported ? attr->mode : 0; attr 1598 drivers/platform/x86/asus-laptop.c if (attr == &dev_attr_wlan.attr) { attr 1601 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_bluetooth.attr) { attr 1604 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_display.attr) { attr 1607 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_wimax.attr) { attr 1611 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_wwan.attr) { attr 1614 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_ledd.attr) { attr 1617 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_ls_switch.attr || attr 1618 drivers/platform/x86/asus-laptop.c attr == &dev_attr_ls_level.attr) { attr 1621 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_ls_value.attr) { attr 1623 drivers/platform/x86/asus-laptop.c } else if (attr == &dev_attr_gps.attr) { attr 1631 drivers/platform/x86/asus-laptop.c return supported ? attr->mode : 0; attr 382 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 409 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1326 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1362 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1385 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1422 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1440 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1494 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1501 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 1527 drivers/platform/x86/asus-wmi.c &dev_attr_pwm1.attr, attr 1528 drivers/platform/x86/asus-wmi.c &dev_attr_pwm1_enable.attr, attr 1529 drivers/platform/x86/asus-wmi.c &dev_attr_fan1_input.attr, attr 1530 drivers/platform/x86/asus-wmi.c &dev_attr_fan1_label.attr, attr 1532 drivers/platform/x86/asus-wmi.c &dev_attr_temp1_input.attr, attr 1537 drivers/platform/x86/asus-wmi.c struct attribute *attr, int idx) attr 1543 drivers/platform/x86/asus-wmi.c if (attr == &dev_attr_pwm1.attr) { attr 1546 drivers/platform/x86/asus-wmi.c } else if (attr == &dev_attr_fan1_input.attr attr 1547 drivers/platform/x86/asus-wmi.c || attr == &dev_attr_fan1_label.attr attr 1548 drivers/platform/x86/asus-wmi.c || attr == &dev_attr_pwm1_enable.attr) { attr 1551 drivers/platform/x86/asus-wmi.c } else if (attr == &dev_attr_temp1_input.attr) { attr 1567 drivers/platform/x86/asus-wmi.c return attr->mode; attr 1683 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, char *buf) attr 1691 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, attr 2097 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, \ attr 2105 drivers/platform/x86/asus-wmi.c struct device_attribute *attr, \ attr 2113 drivers/platform/x86/asus-wmi.c .attr = { \ attr 2126 drivers/platform/x86/asus-wmi.c static ssize_t cpufv_store(struct device *dev, struct device_attribute *attr, attr 2148 drivers/platform/x86/asus-wmi.c &dev_attr_cpufv.attr, attr 2149 drivers/platform/x86/asus-wmi.c &dev_attr_camera.attr, attr 2150 drivers/platform/x86/asus-wmi.c &dev_attr_cardr.attr, attr 2151 drivers/platform/x86/asus-wmi.c &dev_attr_touchpad.attr, attr 2152 drivers/platform/x86/asus-wmi.c &dev_attr_lid_resume.attr, attr 2153 drivers/platform/x86/asus-wmi.c &dev_attr_als_enable.attr, attr 2154 drivers/platform/x86/asus-wmi.c &dev_attr_fan_boost_mode.attr, attr 2159 drivers/platform/x86/asus-wmi.c struct attribute *attr, int idx) attr 2166 drivers/platform/x86/asus-wmi.c if (attr == &dev_attr_camera.attr) attr 2168 drivers/platform/x86/asus-wmi.c else if (attr == &dev_attr_cardr.attr) attr 2170 drivers/platform/x86/asus-wmi.c else if (attr == &dev_attr_touchpad.attr) attr 2172 drivers/platform/x86/asus-wmi.c else if (attr == &dev_attr_lid_resume.attr) attr 2174 drivers/platform/x86/asus-wmi.c else if (attr == &dev_attr_als_enable.attr) attr 2176 drivers/platform/x86/asus-wmi.c else if (attr == &dev_attr_fan_boost_mode.attr) attr 2182 drivers/platform/x86/asus-wmi.c return ok ? attr->mode : 0; attr 202 drivers/platform/x86/classmate-laptop.c struct device_attribute *attr, attr 217 drivers/platform/x86/classmate-laptop.c struct device_attribute *attr, attr 245 drivers/platform/x86/classmate-laptop.c .attr = { .name = "sensitivity", .mode = 0660 }, attr 251 drivers/platform/x86/classmate-laptop.c struct device_attribute *attr, attr 266 drivers/platform/x86/classmate-laptop.c struct device_attribute *attr, attr 294 drivers/platform/x86/classmate-laptop.c .attr = { .name = "g_select", .mode = 0660 }, attr 545 drivers/platform/x86/classmate-laptop.c struct device_attribute *attr, attr 560 drivers/platform/x86/classmate-laptop.c struct device_attribute *attr, attr 584 drivers/platform/x86/classmate-laptop.c .attr = { .name = "sensitivity", .mode = 0660 }, attr 371 drivers/platform/x86/compal-laptop.c struct device_attribute *attr, char *buf) \ attr 376 drivers/platform/x86/compal-laptop.c struct device_attribute *attr, const char *buf, size_t count) \ attr 395 drivers/platform/x86/compal-laptop.c struct device_attribute *attr, char *buf) attr 402 drivers/platform/x86/compal-laptop.c struct device_attribute *attr, const char *buf, size_t count) attr 433 drivers/platform/x86/compal-laptop.c static ssize_t pwm_show(struct device *dev, struct device_attribute *attr, attr 440 drivers/platform/x86/compal-laptop.c static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, attr 462 drivers/platform/x86/compal-laptop.c static ssize_t fan_show(struct device *dev, struct device_attribute *attr, attr 472 drivers/platform/x86/compal-laptop.c struct device_attribute *attr, char *buf) \ attr 477 drivers/platform/x86/compal-laptop.c struct device_attribute *attr, char *buf) \ attr 694 drivers/platform/x86/compal-laptop.c &dev_attr_wake_up_pme.attr, attr 695 drivers/platform/x86/compal-laptop.c &dev_attr_wake_up_modem.attr, attr 696 drivers/platform/x86/compal-laptop.c &dev_attr_wake_up_lan.attr, attr 697 drivers/platform/x86/compal-laptop.c &dev_attr_wake_up_wlan.attr, attr 698 drivers/platform/x86/compal-laptop.c &dev_attr_wake_up_key.attr, attr 699 drivers/platform/x86/compal-laptop.c &dev_attr_wake_up_mouse.attr, attr 707 drivers/platform/x86/compal-laptop.c &dev_attr_pwm1_enable.attr, attr 708 drivers/platform/x86/compal-laptop.c &dev_attr_pwm1.attr, attr 709 drivers/platform/x86/compal-laptop.c &dev_attr_fan1_input.attr, attr 710 drivers/platform/x86/compal-laptop.c &dev_attr_temp1_input.attr, attr 711 drivers/platform/x86/compal-laptop.c &dev_attr_temp2_input.attr, attr 712 drivers/platform/x86/compal-laptop.c &dev_attr_temp3_input.attr, attr 713 drivers/platform/x86/compal-laptop.c &dev_attr_temp4_input.attr, attr 714 drivers/platform/x86/compal-laptop.c &dev_attr_temp5_input.attr, attr 715 drivers/platform/x86/compal-laptop.c &dev_attr_temp6_input.attr, attr 716 drivers/platform/x86/compal-laptop.c &dev_attr_temp1_label.attr, attr 717 drivers/platform/x86/compal-laptop.c &dev_attr_temp2_label.attr, attr 718 drivers/platform/x86/compal-laptop.c &dev_attr_temp3_label.attr, attr 719 drivers/platform/x86/compal-laptop.c &dev_attr_temp4_label.attr, attr 720 drivers/platform/x86/compal-laptop.c &dev_attr_temp5_label.attr, attr 721 drivers/platform/x86/compal-laptop.c &dev_attr_temp6_label.attr, attr 118 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 125 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 132 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 186 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 193 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 210 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 217 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 225 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 232 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 299 drivers/platform/x86/dcdbas.c struct device_attribute *attr, attr 624 drivers/platform/x86/dcdbas.c &dev_attr_smi_data_buf_size.attr, attr 625 drivers/platform/x86/dcdbas.c &dev_attr_smi_data_buf_phys_addr.attr, attr 626 drivers/platform/x86/dcdbas.c &dev_attr_smi_request.attr, attr 627 drivers/platform/x86/dcdbas.c &dev_attr_host_control_action.attr, attr 628 drivers/platform/x86/dcdbas.c &dev_attr_host_control_smi_type.attr, attr 629 drivers/platform/x86/dcdbas.c &dev_attr_host_control_on_shutdown.attr, attr 61 drivers/platform/x86/dcdbas.h .attr = { .name = __stringify(_name), \ attr 1534 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, attr 1651 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, char *buf) attr 1700 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, attr 1794 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, char *buf) attr 1834 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, attr 1893 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, attr 1912 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, attr 1944 drivers/platform/x86/dell-laptop.c struct device_attribute *attr, attr 1961 drivers/platform/x86/dell-laptop.c &dev_attr_stop_timeout.attr, attr 1962 drivers/platform/x86/dell-laptop.c &dev_attr_start_triggers.attr, attr 1971 drivers/platform/x86/dell-laptop.c &dev_attr_als_enabled.attr, attr 1972 drivers/platform/x86/dell-laptop.c &dev_attr_als_setting.attr, attr 420 drivers/platform/x86/dell-smbios-base.c struct device_attribute *attr) attr 427 drivers/platform/x86/dell-smbios-base.c if (strcmp(token_attrs[i]->name, attr->attr.name) == 0) attr 430 drivers/platform/x86/dell-smbios-base.c dev_dbg(dev, "couldn't match: %s\n", attr->attr.name); attr 435 drivers/platform/x86/dell-smbios-base.c struct device_attribute *attr, char *buf) attr 442 drivers/platform/x86/dell-smbios-base.c i = match_attribute(dev, attr); attr 449 drivers/platform/x86/dell-smbios-base.c struct device_attribute *attr, char *buf) attr 456 drivers/platform/x86/dell-smbios-base.c i = match_attribute(dev, attr); attr 504 drivers/platform/x86/dell-smbios-base.c sysfs_attr_init(&token_location_attrs[i].attr); attr 505 drivers/platform/x86/dell-smbios-base.c token_location_attrs[i].attr.name = location_name; attr 506 drivers/platform/x86/dell-smbios-base.c token_location_attrs[i].attr.mode = 0444; attr 508 drivers/platform/x86/dell-smbios-base.c token_attrs[j++] = &token_location_attrs[i].attr; attr 515 drivers/platform/x86/dell-smbios-base.c sysfs_attr_init(&token_value_attrs[i].attr); attr 516 drivers/platform/x86/dell-smbios-base.c token_value_attrs[i].attr.name = value_name; attr 517 drivers/platform/x86/dell-smbios-base.c token_value_attrs[i].attr.mode = 0444; attr 519 drivers/platform/x86/dell-smbios-base.c token_attrs[j++] = &token_value_attrs[i].attr; attr 535 drivers/platform/x86/dell-smbios-base.c kfree(token_location_attrs[i].attr.name); attr 536 drivers/platform/x86/dell-smbios-base.c kfree(token_value_attrs[i].attr.name); attr 554 drivers/platform/x86/dell-smbios-base.c kfree(token_location_attrs[i].attr.name); attr 555 drivers/platform/x86/dell-smbios-base.c kfree(token_value_attrs[i].attr.name); attr 657 drivers/platform/x86/dell_rbu.c .attr = {.name = "data", .mode = 0444}, attr 662 drivers/platform/x86/dell_rbu.c .attr = {.name = "image_type", .mode = 0644}, attr 668 drivers/platform/x86/dell_rbu.c .attr = {.name = "packet_size", .mode = 0644}, attr 294 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, \ attr 302 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, \ attr 340 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, attr 357 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, attr 369 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, attr 392 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, attr 401 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, attr 430 drivers/platform/x86/eeepc-laptop.c &dev_attr_camera.attr, attr 431 drivers/platform/x86/eeepc-laptop.c &dev_attr_cardr.attr, attr 432 drivers/platform/x86/eeepc-laptop.c &dev_attr_disp.attr, attr 433 drivers/platform/x86/eeepc-laptop.c &dev_attr_cpufv.attr, attr 434 drivers/platform/x86/eeepc-laptop.c &dev_attr_available_cpufv.attr, attr 435 drivers/platform/x86/eeepc-laptop.c &dev_attr_cpufv_disabled.attr, attr 1036 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, \ attr 1044 drivers/platform/x86/eeepc-laptop.c struct device_attribute *attr, \ attr 1066 drivers/platform/x86/eeepc-laptop.c &dev_attr_pwm1.attr, attr 1067 drivers/platform/x86/eeepc-laptop.c &dev_attr_fan1_input.attr, attr 1068 drivers/platform/x86/eeepc-laptop.c &dev_attr_pwm1_enable.attr, attr 272 drivers/platform/x86/fujitsu-laptop.c static ssize_t lid_show(struct device *dev, struct device_attribute *attr, attr 285 drivers/platform/x86/fujitsu-laptop.c static ssize_t dock_show(struct device *dev, struct device_attribute *attr, attr 298 drivers/platform/x86/fujitsu-laptop.c static ssize_t radios_show(struct device *dev, struct device_attribute *attr, attr 316 drivers/platform/x86/fujitsu-laptop.c &dev_attr_lid.attr, attr 317 drivers/platform/x86/fujitsu-laptop.c &dev_attr_dock.attr, attr 318 drivers/platform/x86/fujitsu-laptop.c &dev_attr_radios.attr, attr 343 drivers/platform/x86/hdaps.c struct device_attribute *attr, char *buf) attr 355 drivers/platform/x86/hdaps.c struct device_attribute *attr, char *buf) attr 367 drivers/platform/x86/hdaps.c struct device_attribute *attr, char *buf) attr 380 drivers/platform/x86/hdaps.c struct device_attribute *attr, char *buf) attr 393 drivers/platform/x86/hdaps.c struct device_attribute *attr, attr 400 drivers/platform/x86/hdaps.c struct device_attribute *attr, attr 407 drivers/platform/x86/hdaps.c struct device_attribute *attr, char *buf) attr 413 drivers/platform/x86/hdaps.c struct device_attribute *attr, attr 424 drivers/platform/x86/hdaps.c struct device_attribute *attr, char *buf) attr 430 drivers/platform/x86/hdaps.c struct device_attribute *attr, attr 455 drivers/platform/x86/hdaps.c &dev_attr_position.attr, attr 456 drivers/platform/x86/hdaps.c &dev_attr_variance.attr, attr 457 drivers/platform/x86/hdaps.c &dev_attr_temp1.attr, attr 458 drivers/platform/x86/hdaps.c &dev_attr_temp2.attr, attr 459 drivers/platform/x86/hdaps.c &dev_attr_keyboard_activity.attr, attr 460 drivers/platform/x86/hdaps.c &dev_attr_mouse_activity.attr, attr 461 drivers/platform/x86/hdaps.c &dev_attr_calibrate.attr, attr 462 drivers/platform/x86/hdaps.c &dev_attr_invert.attr, attr 406 drivers/platform/x86/hp-wmi.c static ssize_t display_show(struct device *dev, struct device_attribute *attr, attr 415 drivers/platform/x86/hp-wmi.c static ssize_t hddtemp_show(struct device *dev, struct device_attribute *attr, attr 424 drivers/platform/x86/hp-wmi.c static ssize_t als_show(struct device *dev, struct device_attribute *attr, attr 433 drivers/platform/x86/hp-wmi.c static ssize_t dock_show(struct device *dev, struct device_attribute *attr, attr 442 drivers/platform/x86/hp-wmi.c static ssize_t tablet_show(struct device *dev, struct device_attribute *attr, attr 451 drivers/platform/x86/hp-wmi.c static ssize_t postcode_show(struct device *dev, struct device_attribute *attr, attr 461 drivers/platform/x86/hp-wmi.c static ssize_t als_store(struct device *dev, struct device_attribute *attr, attr 473 drivers/platform/x86/hp-wmi.c static ssize_t postcode_store(struct device *dev, struct device_attribute *attr, attr 506 drivers/platform/x86/hp-wmi.c &dev_attr_display.attr, attr 507 drivers/platform/x86/hp-wmi.c &dev_attr_hddtemp.attr, attr 508 drivers/platform/x86/hp-wmi.c &dev_attr_als.attr, attr 509 drivers/platform/x86/hp-wmi.c &dev_attr_dock.attr, attr 510 drivers/platform/x86/hp-wmi.c &dev_attr_tablet.attr, attr 511 drivers/platform/x86/hp-wmi.c &dev_attr_postcode.attr, attr 143 drivers/platform/x86/ibm_rtl.c struct device_attribute *attr, attr 150 drivers/platform/x86/ibm_rtl.c struct device_attribute *attr, attr 157 drivers/platform/x86/ibm_rtl.c struct device_attribute *attr, attr 340 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 352 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 371 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 383 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 404 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 417 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 437 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 449 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 471 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 487 drivers/platform/x86/ideapad-laptop.c struct device_attribute *attr, attr 510 drivers/platform/x86/ideapad-laptop.c &dev_attr_camera_power.attr, attr 511 drivers/platform/x86/ideapad-laptop.c &dev_attr_fan_mode.attr, attr 512 drivers/platform/x86/ideapad-laptop.c &dev_attr_touchpad.attr, attr 513 drivers/platform/x86/ideapad-laptop.c &dev_attr_conservation_mode.attr, attr 514 drivers/platform/x86/ideapad-laptop.c &dev_attr_fn_lock.attr, attr 519 drivers/platform/x86/ideapad-laptop.c struct attribute *attr, attr 526 drivers/platform/x86/ideapad-laptop.c if (attr == &dev_attr_camera_power.attr) attr 528 drivers/platform/x86/ideapad-laptop.c else if (attr == &dev_attr_fan_mode.attr) { attr 532 drivers/platform/x86/ideapad-laptop.c } else if (attr == &dev_attr_conservation_mode.attr) { attr 535 drivers/platform/x86/ideapad-laptop.c } else if (attr == &dev_attr_fn_lock.attr) { attr 541 drivers/platform/x86/ideapad-laptop.c return supported ? attr->mode : 0; attr 13 drivers/platform/x86/intel-rst.c struct device_attribute *attr, attr 30 drivers/platform/x86/intel-rst.c struct device_attribute *attr, attr 52 drivers/platform/x86/intel-rst.c .attr = { .name = "wakeup_events", .mode = 0600 }, attr 58 drivers/platform/x86/intel-rst.c struct device_attribute *attr, char *buf) attr 74 drivers/platform/x86/intel-rst.c struct device_attribute *attr, attr 96 drivers/platform/x86/intel-rst.c .attr = { .name = "wakeup_time", .mode = 0600 }, attr 23 drivers/platform/x86/intel-wmi-thunderbolt.c struct device_attribute *attr, attr 51 drivers/platform/x86/intel-wmi-thunderbolt.c &dev_attr_force_power.attr, attr 225 drivers/platform/x86/intel_menlow.c struct device_attribute attr; attr 295 drivers/platform/x86/intel_menlow.c container_of(_attr, struct intel_menlow_attribute, attr) attr 300 drivers/platform/x86/intel_menlow.c struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); attr 304 drivers/platform/x86/intel_menlow.c result = sensor_get_auxtrip(attr->handle, idx, &value); attr 324 drivers/platform/x86/intel_menlow.c struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); attr 335 drivers/platform/x86/intel_menlow.c result = sensor_set_auxtrip(attr->handle, idx, attr 357 drivers/platform/x86/intel_menlow.c struct device_attribute *attr, char *buf) attr 373 drivers/platform/x86/intel_menlow.c struct intel_menlow_attribute *attr; attr 376 drivers/platform/x86/intel_menlow.c attr = kzalloc(sizeof(struct intel_menlow_attribute), GFP_KERNEL); attr 377 drivers/platform/x86/intel_menlow.c if (!attr) attr 380 drivers/platform/x86/intel_menlow.c sysfs_attr_init(&attr->attr.attr); /* That is consistent naming :D */ attr 381 drivers/platform/x86/intel_menlow.c attr->attr.attr.name = name; attr 382 drivers/platform/x86/intel_menlow.c attr->attr.attr.mode = mode; attr 383 drivers/platform/x86/intel_menlow.c attr->attr.show = show; attr 384 drivers/platform/x86/intel_menlow.c attr->attr.store = store; attr 385 drivers/platform/x86/intel_menlow.c attr->device = dev; attr 386 drivers/platform/x86/intel_menlow.c attr->handle = handle; attr 388 drivers/platform/x86/intel_menlow.c result = device_create_file(dev, &attr->attr); attr 390 drivers/platform/x86/intel_menlow.c kfree(attr); attr 395 drivers/platform/x86/intel_menlow.c list_add_tail(&attr->node, &intel_menlow_attr_list); attr 474 drivers/platform/x86/intel_menlow.c device_remove_file(pos->device, &pos->attr); attr 562 drivers/platform/x86/intel_pmc_ipc.c struct device_attribute *attr, attr 584 drivers/platform/x86/intel_pmc_ipc.c struct device_attribute *attr, attr 612 drivers/platform/x86/intel_pmc_ipc.c &dev_attr_northpeak.attr, attr 613 drivers/platform/x86/intel_pmc_ipc.c &dev_attr_simplecmd.attr, attr 275 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, attr 307 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, char *buffer) attr 328 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, attr 348 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, char *buffer) attr 370 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, attr 390 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, char *buffer) attr 412 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, attr 432 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, char *buffer) attr 453 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, attr 478 drivers/platform/x86/lg-laptop.c struct device_attribute *attr, attr 508 drivers/platform/x86/lg-laptop.c &dev_attr_fan_mode.attr, attr 509 drivers/platform/x86/lg-laptop.c &dev_attr_usb_charge.attr, attr 510 drivers/platform/x86/lg-laptop.c &dev_attr_reader_mode.attr, attr 511 drivers/platform/x86/lg-laptop.c &dev_attr_fn_lock.attr, attr 512 drivers/platform/x86/lg-laptop.c &dev_attr_battery_care_limit.attr, attr 308 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 326 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, const char *buf, size_t count) attr 332 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 350 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, const char *buf, size_t count) attr 356 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 373 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, const char *buf, size_t count) attr 379 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 392 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, const char *buf, size_t count) attr 409 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 422 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, const char *buf, size_t count) attr 438 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 452 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 466 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 480 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 495 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, char *buf) attr 509 drivers/platform/x86/msi-laptop.c struct device_attribute *attr, const char *buf, size_t count) attr 537 drivers/platform/x86/msi-laptop.c &dev_attr_bluetooth.attr, attr 538 drivers/platform/x86/msi-laptop.c &dev_attr_wlan.attr, attr 539 drivers/platform/x86/msi-laptop.c &dev_attr_touchpad.attr, attr 540 drivers/platform/x86/msi-laptop.c &dev_attr_turbo_mode.attr, attr 541 drivers/platform/x86/msi-laptop.c &dev_attr_eco_mode.attr, attr 542 drivers/platform/x86/msi-laptop.c &dev_attr_turbo_cooldown.attr, attr 543 drivers/platform/x86/msi-laptop.c &dev_attr_auto_fan.attr, attr 548 drivers/platform/x86/msi-laptop.c &dev_attr_lcd_level.attr, attr 549 drivers/platform/x86/msi-laptop.c &dev_attr_auto_brightness.attr, attr 985 drivers/platform/x86/msi-laptop.c dev_attr_bluetooth.attr.mode |= S_IWUSR; attr 986 drivers/platform/x86/msi-laptop.c dev_attr_wlan.attr.mode |= S_IWUSR; attr 987 drivers/platform/x86/msi-laptop.c dev_attr_threeg.attr.mode |= S_IWUSR; attr 350 drivers/platform/x86/panasonic-laptop.c static ssize_t show_numbatt(struct device *dev, struct device_attribute *attr, attr 362 drivers/platform/x86/panasonic-laptop.c static ssize_t show_lcdtype(struct device *dev, struct device_attribute *attr, attr 374 drivers/platform/x86/panasonic-laptop.c static ssize_t show_mute(struct device *dev, struct device_attribute *attr, attr 386 drivers/platform/x86/panasonic-laptop.c static ssize_t show_sticky(struct device *dev, struct device_attribute *attr, attr 398 drivers/platform/x86/panasonic-laptop.c static ssize_t set_sticky(struct device *dev, struct device_attribute *attr, attr 420 drivers/platform/x86/panasonic-laptop.c &dev_attr_numbatt.attr, attr 421 drivers/platform/x86/panasonic-laptop.c &dev_attr_lcdtype.attr, attr 422 drivers/platform/x86/panasonic-laptop.c &dev_attr_mute.attr, attr 423 drivers/platform/x86/panasonic-laptop.c &dev_attr_sticky_key.attr, attr 656 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, char *buf) attr 680 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, const char *buf, attr 747 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, attr 761 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, attr 816 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, attr 830 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, attr 881 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, attr 895 drivers/platform/x86/samsung-laptop.c struct device_attribute *attr, attr 915 drivers/platform/x86/samsung-laptop.c &dev_attr_performance_level.attr, attr 916 drivers/platform/x86/samsung-laptop.c &dev_attr_battery_life_extender.attr, attr 917 drivers/platform/x86/samsung-laptop.c &dev_attr_usb_charge.attr, attr 918 drivers/platform/x86/samsung-laptop.c &dev_attr_lid_handling.attr, attr 1212 drivers/platform/x86/samsung-laptop.c struct attribute *attr, int idx) attr 1218 drivers/platform/x86/samsung-laptop.c if (attr == &dev_attr_performance_level.attr) attr 1220 drivers/platform/x86/samsung-laptop.c if (attr == &dev_attr_battery_life_extender.attr) attr 1222 drivers/platform/x86/samsung-laptop.c if (attr == &dev_attr_usb_charge.attr) attr 1224 drivers/platform/x86/samsung-laptop.c if (attr == &dev_attr_lid_handling.attr) attr 1227 drivers/platform/x86/samsung-laptop.c return ok ? attr->mode : 0; attr 824 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 858 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&handles->devattr.attr); attr 859 drivers/platform/x86/sony-laptop.c handles->devattr.attr.name = "handles"; attr 860 drivers/platform/x86/sony-laptop.c handles->devattr.attr.mode = S_IRUGO; attr 956 drivers/platform/x86/sony-laptop.c static ssize_t sony_nc_sysfs_show(struct device *dev, struct device_attribute *attr, attr 961 drivers/platform/x86/sony-laptop.c container_of(attr, struct sony_nc_value, devattr); attr 978 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 984 drivers/platform/x86/sony-laptop.c container_of(attr, struct sony_nc_value, devattr); attr 1799 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 1819 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 1843 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 1863 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 1923 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&kbdbl_ctl->mode_attr.attr); attr 1924 drivers/platform/x86/sony-laptop.c kbdbl_ctl->mode_attr.attr.name = "kbd_backlight"; attr 1925 drivers/platform/x86/sony-laptop.c kbdbl_ctl->mode_attr.attr.mode = S_IRUGO | S_IWUSR; attr 1936 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&kbdbl_ctl->timeout_attr.attr); attr 1937 drivers/platform/x86/sony-laptop.c kbdbl_ctl->timeout_attr.attr.name = "kbd_backlight_timeout"; attr 1938 drivers/platform/x86/sony-laptop.c kbdbl_ctl->timeout_attr.attr.mode = S_IRUGO | S_IWUSR; attr 1981 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2038 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2065 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2089 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&bcare_ctl->attrs[0].attr); attr 2090 drivers/platform/x86/sony-laptop.c bcare_ctl->attrs[0].attr.name = "battery_care_limiter"; attr 2091 drivers/platform/x86/sony-laptop.c bcare_ctl->attrs[0].attr.mode = S_IRUGO | S_IWUSR; attr 2103 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&bcare_ctl->attrs[1].attr); attr 2104 drivers/platform/x86/sony-laptop.c bcare_ctl->attrs[1].attr.name = "battery_care_health"; attr 2105 drivers/platform/x86/sony-laptop.c bcare_ctl->attrs[1].attr.mode = S_IRUGO; attr 2183 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2199 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2223 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2256 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&th_handle->profiles_attr.attr); attr 2257 drivers/platform/x86/sony-laptop.c th_handle->profiles_attr.attr.name = "thermal_profiles"; attr 2258 drivers/platform/x86/sony-laptop.c th_handle->profiles_attr.attr.mode = S_IRUGO; attr 2261 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&th_handle->mode_attr.attr); attr 2262 drivers/platform/x86/sony-laptop.c th_handle->mode_attr.attr.name = "thermal_control"; attr 2263 drivers/platform/x86/sony-laptop.c th_handle->mode_attr.attr.mode = S_IRUGO | S_IWUSR; attr 2318 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2337 drivers/platform/x86/sony-laptop.c if (&lid_ctl->attrs[pos].attr == &attr->attr) attr 2359 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2365 drivers/platform/x86/sony-laptop.c if (&lid_ctl->attrs[pos].attr == &attr->attr) attr 2389 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&lid_ctl->attrs[0].attr); attr 2390 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S5].attr.name = "lid_resume_S5"; attr 2391 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S5].attr.mode = S_IRUGO | S_IWUSR; attr 2396 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&lid_ctl->attrs[1].attr); attr 2397 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S4].attr.name = "lid_resume_S4"; attr 2398 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S4].attr.mode = S_IRUGO | S_IWUSR; attr 2402 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&lid_ctl->attrs[2].attr); attr 2403 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S3].attr.name = "lid_resume_S3"; attr 2404 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S3].attr.mode = S_IRUGO | S_IWUSR; attr 2409 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[i].attr.name; i++) { attr 2433 drivers/platform/x86/sony-laptop.c if (!lid_ctl->attrs[i].attr.name) attr 2451 drivers/platform/x86/sony-laptop.c struct device_attribute attr; attr 2493 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2518 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&gfxs_ctl->attr.attr); attr 2519 drivers/platform/x86/sony-laptop.c gfxs_ctl->attr.attr.name = "gfx_switch_status"; attr 2520 drivers/platform/x86/sony-laptop.c gfxs_ctl->attr.attr.mode = S_IRUGO; attr 2521 drivers/platform/x86/sony-laptop.c gfxs_ctl->attr.show = sony_nc_gfx_switch_status_show; attr 2523 drivers/platform/x86/sony-laptop.c result = device_create_file(&pd->dev, &gfxs_ctl->attr); attr 2539 drivers/platform/x86/sony-laptop.c device_remove_file(&pd->dev, &gfxs_ctl->attr); attr 2550 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2569 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2595 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&hsc_handle->attr); attr 2596 drivers/platform/x86/sony-laptop.c hsc_handle->attr.name = "battery_highspeed_charging"; attr 2597 drivers/platform/x86/sony-laptop.c hsc_handle->attr.mode = S_IRUGO | S_IWUSR; attr 2624 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2643 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2661 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&lowbatt_handle->attr); attr 2662 drivers/platform/x86/sony-laptop.c lowbatt_handle->attr.name = "lowbatt_hibernate"; attr 2663 drivers/platform/x86/sony-laptop.c lowbatt_handle->attr.mode = S_IRUGO | S_IWUSR; attr 2690 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2709 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2720 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2744 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&fan_handle->attr); attr 2745 drivers/platform/x86/sony-laptop.c fan_handle->attr.name = "fanspeed"; attr 2746 drivers/platform/x86/sony-laptop.c fan_handle->attr.mode = S_IRUGO; attr 2750 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&hsf_handle->attr); attr 2751 drivers/platform/x86/sony-laptop.c hsf_handle->attr.name = "fan_forced"; attr 2752 drivers/platform/x86/sony-laptop.c hsf_handle->attr.mode = S_IRUGO | S_IWUSR; attr 2797 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2816 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2842 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&uc_handle->attr); attr 2843 drivers/platform/x86/sony-laptop.c uc_handle->attr.name = "usb_charge"; attr 2844 drivers/platform/x86/sony-laptop.c uc_handle->attr.mode = S_IRUGO | S_IWUSR; attr 2871 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 2889 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&panel_handle->attr); attr 2890 drivers/platform/x86/sony-laptop.c panel_handle->attr.name = "panel_id"; attr 2891 drivers/platform/x86/sony-laptop.c panel_handle->attr.mode = S_IRUGO; attr 2918 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 2944 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&sc_handle->attr); attr 2945 drivers/platform/x86/sony-laptop.c sc_handle->attr.name = "smart_connect"; attr 2946 drivers/platform/x86/sony-laptop.c sc_handle->attr.mode = S_IWUSR; attr 2971 drivers/platform/x86/sony-laptop.c struct device_attribute attr; attr 2977 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, const char *buffer, size_t count) attr 2999 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 3020 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&tp_ctl->attr.attr); attr 3021 drivers/platform/x86/sony-laptop.c tp_ctl->attr.attr.name = "touchpad"; attr 3022 drivers/platform/x86/sony-laptop.c tp_ctl->attr.attr.mode = S_IRUGO | S_IWUSR; attr 3023 drivers/platform/x86/sony-laptop.c tp_ctl->attr.show = sony_nc_touchpad_show; attr 3024 drivers/platform/x86/sony-laptop.c tp_ctl->attr.store = sony_nc_touchpad_store; attr 3026 drivers/platform/x86/sony-laptop.c ret = device_create_file(&pd->dev, &tp_ctl->attr); attr 3038 drivers/platform/x86/sony-laptop.c device_remove_file(&pd->dev, &tp_ctl->attr); attr 3234 drivers/platform/x86/sony-laptop.c item->devattr.attr.mode |= S_IRUGO; attr 3245 drivers/platform/x86/sony-laptop.c item->devattr.attr.mode |= S_IWUSR; attr 3250 drivers/platform/x86/sony-laptop.c if (item->devattr.attr.mode != 0) { attr 3901 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 3919 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 3940 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 3958 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 3981 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, attr 3998 drivers/platform/x86/sony-laptop.c struct device_attribute *attr, char *buffer) attr 4017 drivers/platform/x86/sony-laptop.c &spic_attr_bluetoothpower.attr, attr 4018 drivers/platform/x86/sony-laptop.c &spic_attr_wwanpower.attr, attr 4019 drivers/platform/x86/sony-laptop.c &spic_attr_fanspeed.attr, attr 127 drivers/platform/x86/tc1100-wmi.c show_bool_##value(struct device *dev, struct device_attribute *attr, \ attr 138 drivers/platform/x86/tc1100-wmi.c set_bool_##value(struct device *dev, struct device_attribute *attr, \ attr 154 drivers/platform/x86/tc1100-wmi.c &dev_attr_wireless.attr, attr 155 drivers/platform/x86/tc1100-wmi.c &dev_attr_jogdial.attr, attr 1049 drivers/platform/x86/thinkpad_acpi.c static int add_to_attr_set(struct attribute_set *s, struct attribute *attr) attr 1051 drivers/platform/x86/thinkpad_acpi.c if (!s || !attr) attr 1057 drivers/platform/x86/thinkpad_acpi.c s->group.attrs[s->members] = attr; attr 1064 drivers/platform/x86/thinkpad_acpi.c struct attribute **attr, attr 1070 drivers/platform/x86/thinkpad_acpi.c res = add_to_attr_set(s, attr[i]); attr 1345 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 1350 drivers/platform/x86/thinkpad_acpi.c printk_deprecated_rfkill_attribute(attr->attr.name); attr 1366 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 1372 drivers/platform/x86/thinkpad_acpi.c printk_deprecated_rfkill_attribute(attr->attr.name); attr 1377 drivers/platform/x86/thinkpad_acpi.c tpacpi_disclose_usertask(attr->attr.name, "set to %ld\n", t); attr 2750 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2766 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2787 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2794 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2823 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2833 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2845 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2856 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2867 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2881 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2888 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2932 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2939 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2966 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 2992 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 3014 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 3030 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 3059 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 3072 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 3088 drivers/platform/x86/thinkpad_acpi.c &dev_attr_adaptive_kbd_mode.attr, attr 3099 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_enable.attr, attr 3100 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_bios_enabled.attr, attr 3101 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_bios_mask.attr, attr 3102 drivers/platform/x86/thinkpad_acpi.c &dev_attr_wakeup_reason.attr, attr 3103 drivers/platform/x86/thinkpad_acpi.c &dev_attr_wakeup_hotunplug_complete.attr, attr 3104 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_mask.attr, attr 3105 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_all_mask.attr, attr 3106 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_adaptive_all_mask.attr, attr 3107 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_recommended_mask.attr, attr 3109 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_source_mask.attr, attr 3110 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_poll_freq.attr, attr 3252 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_tablet_mode.attr); attr 3636 drivers/platform/x86/thinkpad_acpi.c &dev_attr_hotkey_radio_sw.attr); attr 4432 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 4436 drivers/platform/x86/thinkpad_acpi.c attr, buf); attr 4440 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 4444 drivers/platform/x86/thinkpad_acpi.c attr, buf, count); attr 4452 drivers/platform/x86/thinkpad_acpi.c &dev_attr_bluetooth_enable.attr, attr 4688 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 4692 drivers/platform/x86/thinkpad_acpi.c attr, buf); attr 4696 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 4700 drivers/platform/x86/thinkpad_acpi.c attr, buf, count); attr 4709 drivers/platform/x86/thinkpad_acpi.c &dev_attr_wwan_enable.attr, attr 5686 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 6392 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 6396 drivers/platform/x86/thinkpad_acpi.c to_sensor_dev_attr(attr); attr 6434 drivers/platform/x86/thinkpad_acpi.c &sensor_dev_attr_thermal_temp_input[X].dev_attr.attr attr 8569 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 8590 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 8635 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 8656 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 8695 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 8712 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 8755 drivers/platform/x86/thinkpad_acpi.c &dev_attr_pwm1_enable.attr, &dev_attr_pwm1.attr, attr 8756 drivers/platform/x86/thinkpad_acpi.c &dev_attr_fan1_input.attr, attr 8875 drivers/platform/x86/thinkpad_acpi.c &dev_attr_fan2_input.attr; attr 9615 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 9622 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 9629 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 9636 drivers/platform/x86/thinkpad_acpi.c struct device_attribute *attr, attr 9646 drivers/platform/x86/thinkpad_acpi.c &dev_attr_charge_start_threshold.attr, attr 9647 drivers/platform/x86/thinkpad_acpi.c &dev_attr_charge_stop_threshold.attr, attr 1733 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 1740 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 1762 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 1777 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 1853 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 1867 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 1876 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 1891 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 1934 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 1948 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 1970 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 1985 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 1999 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2040 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2063 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2102 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 2116 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2138 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 2152 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2174 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 2188 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2217 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 2231 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2255 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 2269 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2298 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, char *buf) attr 2312 drivers/platform/x86/toshiba_acpi.c struct device_attribute *attr, attr 2346 drivers/platform/x86/toshiba_acpi.c &dev_attr_version.attr, attr 2347 drivers/platform/x86/toshiba_acpi.c &dev_attr_fan.attr, attr 2348 drivers/platform/x86/toshiba_acpi.c &dev_attr_kbd_backlight_mode.attr, attr 2349 drivers/platform/x86/toshiba_acpi.c &dev_attr_kbd_type.attr, attr 2350 drivers/platform/x86/toshiba_acpi.c &dev_attr_available_kbd_modes.attr, attr 2351 drivers/platform/x86/toshiba_acpi.c &dev_attr_kbd_backlight_timeout.attr, attr 2352 drivers/platform/x86/toshiba_acpi.c &dev_attr_touchpad.attr, attr 2353 drivers/platform/x86/toshiba_acpi.c &dev_attr_usb_sleep_charge.attr, attr 2354 drivers/platform/x86/toshiba_acpi.c &dev_attr_sleep_functions_on_battery.attr, attr 2355 drivers/platform/x86/toshiba_acpi.c &dev_attr_usb_rapid_charge.attr, attr 2356 drivers/platform/x86/toshiba_acpi.c &dev_attr_usb_sleep_music.attr, attr 2357 drivers/platform/x86/toshiba_acpi.c &dev_attr_kbd_function_keys.attr, attr 2358 drivers/platform/x86/toshiba_acpi.c &dev_attr_panel_power_on.attr, attr 2359 drivers/platform/x86/toshiba_acpi.c &dev_attr_usb_three.attr, attr 2360 drivers/platform/x86/toshiba_acpi.c &dev_attr_cooling_method.attr, attr 2365 drivers/platform/x86/toshiba_acpi.c struct attribute *attr, int idx) attr 2371 drivers/platform/x86/toshiba_acpi.c if (attr == &dev_attr_fan.attr) attr 2373 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_kbd_backlight_mode.attr) attr 2375 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_kbd_backlight_timeout.attr) attr 2377 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_touchpad.attr) attr 2379 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_usb_sleep_charge.attr) attr 2381 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_sleep_functions_on_battery.attr) attr 2383 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_usb_rapid_charge.attr) attr 2385 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_usb_sleep_music.attr) attr 2387 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_kbd_function_keys.attr) attr 2389 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_panel_power_on.attr) attr 2391 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_usb_three.attr) attr 2393 drivers/platform/x86/toshiba_acpi.c else if (attr == &dev_attr_cooling_method.attr) attr 2396 drivers/platform/x86/toshiba_acpi.c return exists ? attr->mode : 0; attr 59 drivers/platform/x86/toshiba_haps.c struct device_attribute *attr, char *buf) attr 67 drivers/platform/x86/toshiba_haps.c struct device_attribute *attr, attr 96 drivers/platform/x86/toshiba_haps.c struct device_attribute *attr, attr 120 drivers/platform/x86/toshiba_haps.c &dev_attr_protection_level.attr, attr 121 drivers/platform/x86/toshiba_haps.c &dev_attr_reset_protection.attr, attr 30 drivers/platform/x86/wmi-bmof.c struct bin_attribute *attr, attr 34 drivers/platform/x86/wmi-bmof.c container_of(attr, struct bmof_priv, bmof_bin_attr); attr 73 drivers/platform/x86/wmi-bmof.c priv->bmof_bin_attr.attr.name = "bmof"; attr 74 drivers/platform/x86/wmi-bmof.c priv->bmof_bin_attr.attr.mode = 0400; attr 673 drivers/platform/x86/wmi.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 682 drivers/platform/x86/wmi.c static ssize_t guid_show(struct device *dev, struct device_attribute *attr, attr 692 drivers/platform/x86/wmi.c struct device_attribute *attr, char *buf) attr 701 drivers/platform/x86/wmi.c struct device_attribute *attr, char *buf) attr 711 drivers/platform/x86/wmi.c &dev_attr_modalias.attr, attr 712 drivers/platform/x86/wmi.c &dev_attr_guid.attr, attr 713 drivers/platform/x86/wmi.c &dev_attr_instance_count.attr, attr 714 drivers/platform/x86/wmi.c &dev_attr_expensive.attr, attr 719 drivers/platform/x86/wmi.c static ssize_t notify_id_show(struct device *dev, struct device_attribute *attr, attr 729 drivers/platform/x86/wmi.c &dev_attr_notify_id.attr, attr 734 drivers/platform/x86/wmi.c static ssize_t object_id_show(struct device *dev, struct device_attribute *attr, attr 744 drivers/platform/x86/wmi.c static ssize_t setable_show(struct device *dev, struct device_attribute *attr, attr 754 drivers/platform/x86/wmi.c &dev_attr_object_id.attr, attr 755 drivers/platform/x86/wmi.c &dev_attr_setable.attr, attr 761 drivers/platform/x86/wmi.c &dev_attr_object_id.attr, attr 185 drivers/pnp/card.c struct device_attribute *attr, char *buf) attr 197 drivers/pnp/card.c struct device_attribute *attr, char *buf) attr 207 drivers/pnp/interface.c static ssize_t options_show(struct device *dmdev, struct device_attribute *attr, attr 248 drivers/pnp/interface.c struct device_attribute *attr, char *buf) attr 336 drivers/pnp/interface.c struct device_attribute *attr, const char *ubuf, attr 440 drivers/pnp/interface.c static ssize_t id_show(struct device *dmdev, struct device_attribute *attr, attr 456 drivers/pnp/interface.c &dev_attr_resources.attr, attr 457 drivers/pnp/interface.c &dev_attr_options.attr, attr 458 drivers/pnp/interface.c &dev_attr_id.attr, attr 54 drivers/power/reset/vexpress-poweroff.c struct device_attribute *attr, char *buf) attr 60 drivers/power/reset/vexpress-poweroff.c struct device_attribute *attr, const char *buf, size_t count) attr 2422 drivers/power/supply/ab8500_fg.c struct attribute attr; attr 2474 drivers/power/supply/ab8500_fg.c ab8500_fg_show(struct kobject *kobj, struct attribute *attr, char *buf) attr 2479 drivers/power/supply/ab8500_fg.c entry = container_of(attr, struct ab8500_fg_sysfs_entry, attr); attr 2488 drivers/power/supply/ab8500_fg.c ab8500_fg_store(struct kobject *kobj, struct attribute *attr, const char *buf, attr 2494 drivers/power/supply/ab8500_fg.c entry = container_of(attr, struct ab8500_fg_sysfs_entry, attr); attr 2509 drivers/power/supply/ab8500_fg.c &charge_full_attr.attr, attr 2510 drivers/power/supply/ab8500_fg.c &charge_now_attr.attr, attr 2551 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2574 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2601 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2625 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2652 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2675 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2703 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2726 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2749 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2770 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2797 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2821 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2844 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 2871 drivers/power/supply/ab8500_fg.c struct device_attribute *attr, attr 274 drivers/power/supply/abx500_chargalg.c struct attribute attr; attr 1839 drivers/power/supply/abx500_chargalg.c struct attribute *attr, char *buf) attr 1841 drivers/power/supply/abx500_chargalg.c struct abx500_chargalg_sysfs_entry *entry = container_of(attr, attr 1842 drivers/power/supply/abx500_chargalg.c struct abx500_chargalg_sysfs_entry, attr); attr 1854 drivers/power/supply/abx500_chargalg.c struct attribute *attr, const char *buf, size_t length) attr 1856 drivers/power/supply/abx500_chargalg.c struct abx500_chargalg_sysfs_entry *entry = container_of(attr, attr 1857 drivers/power/supply/abx500_chargalg.c struct abx500_chargalg_sysfs_entry, attr); attr 1869 drivers/power/supply/abx500_chargalg.c &abx500_chargalg_en_charger.attr, attr 1870 drivers/power/supply/abx500_chargalg.c &abx500_chargalg_curr_step.attr, attr 1040 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1048 drivers/power/supply/bq2415x_charger.c if (strcmp(attr->attr.name, "otg_status") == 0) attr 1050 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "charge_status") == 0) attr 1052 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "boost_status") == 0) attr 1054 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "fault_status") == 0) attr 1072 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1094 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1117 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1170 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1207 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1234 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1270 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1287 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1299 drivers/power/supply/bq2415x_charger.c if (strcmp(attr->attr.name, "current_limit") == 0) attr 1301 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "weak_battery_voltage") == 0) attr 1303 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "battery_regulation_voltage") == 0) attr 1305 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "charge_current") == 0) attr 1307 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "termination_current") == 0) attr 1319 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1326 drivers/power/supply/bq2415x_charger.c if (strcmp(attr->attr.name, "current_limit") == 0) attr 1328 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "weak_battery_voltage") == 0) attr 1330 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "battery_regulation_voltage") == 0) attr 1332 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "charge_current") == 0) attr 1334 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "termination_current") == 0) attr 1346 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1359 drivers/power/supply/bq2415x_charger.c if (strcmp(attr->attr.name, "charge_termination_enable") == 0) attr 1362 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "high_impedance_enable") == 0) attr 1365 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "otg_pin_enable") == 0) attr 1368 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "stat_pin_enable") == 0) attr 1382 drivers/power/supply/bq2415x_charger.c struct device_attribute *attr, attr 1390 drivers/power/supply/bq2415x_charger.c if (strcmp(attr->attr.name, "charge_termination_enable") == 0) attr 1392 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "high_impedance_enable") == 0) attr 1394 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "otg_pin_enable") == 0) attr 1396 drivers/power/supply/bq2415x_charger.c else if (strcmp(attr->attr.name, "stat_pin_enable") == 0) attr 1447 drivers/power/supply/bq2415x_charger.c &dev_attr_current_limit.attr, attr 1448 drivers/power/supply/bq2415x_charger.c &dev_attr_weak_battery_voltage.attr, attr 1449 drivers/power/supply/bq2415x_charger.c &dev_attr_battery_regulation_voltage.attr, attr 1450 drivers/power/supply/bq2415x_charger.c &dev_attr_charge_current.attr, attr 1451 drivers/power/supply/bq2415x_charger.c &dev_attr_termination_current.attr, attr 1453 drivers/power/supply/bq2415x_charger.c &dev_attr_charge_termination_enable.attr, attr 1454 drivers/power/supply/bq2415x_charger.c &dev_attr_high_impedance_enable.attr, attr 1455 drivers/power/supply/bq2415x_charger.c &dev_attr_otg_pin_enable.attr, attr 1456 drivers/power/supply/bq2415x_charger.c &dev_attr_stat_pin_enable.attr, attr 1458 drivers/power/supply/bq2415x_charger.c &dev_attr_reported_mode.attr, attr 1459 drivers/power/supply/bq2415x_charger.c &dev_attr_mode.attr, attr 1460 drivers/power/supply/bq2415x_charger.c &dev_attr_timer.attr, attr 1462 drivers/power/supply/bq2415x_charger.c &dev_attr_registers.attr, attr 1464 drivers/power/supply/bq2415x_charger.c &dev_attr_otg_status.attr, attr 1465 drivers/power/supply/bq2415x_charger.c &dev_attr_charge_status.attr, attr 1466 drivers/power/supply/bq2415x_charger.c &dev_attr_boost_status.attr, attr 1467 drivers/power/supply/bq2415x_charger.c &dev_attr_fault_status.attr, attr 333 drivers/power/supply/bq24190_charger.c .attr = __ATTR(f_##_name, m, bq24190_sysfs_show, store), \ attr 347 drivers/power/supply/bq24190_charger.c struct device_attribute *attr, char *buf); attr 349 drivers/power/supply/bq24190_charger.c struct device_attribute *attr, const char *buf, size_t count); attr 352 drivers/power/supply/bq24190_charger.c struct device_attribute attr; attr 416 drivers/power/supply/bq24190_charger.c bq24190_sysfs_attrs[i] = &bq24190_sysfs_field_tbl[i].attr.attr; attr 427 drivers/power/supply/bq24190_charger.c if (!strcmp(name, bq24190_sysfs_field_tbl[i].attr.attr.name)) attr 437 drivers/power/supply/bq24190_charger.c struct device_attribute *attr, char *buf) attr 446 drivers/power/supply/bq24190_charger.c info = bq24190_sysfs_field_lookup(attr->attr.name); attr 467 drivers/power/supply/bq24190_charger.c struct device_attribute *attr, const char *buf, size_t count) attr 475 drivers/power/supply/bq24190_charger.c info = bq24190_sysfs_field_lookup(attr->attr.name); attr 764 drivers/power/supply/bq24257_charger.c struct device_attribute *attr, attr 775 drivers/power/supply/bq24257_charger.c struct device_attribute *attr, attr 786 drivers/power/supply/bq24257_charger.c struct device_attribute *attr, attr 793 drivers/power/supply/bq24257_charger.c if (strcmp(attr->attr.name, "high_impedance_enable") == 0) attr 795 drivers/power/supply/bq24257_charger.c else if (strcmp(attr->attr.name, "sysoff_enable") == 0) attr 807 drivers/power/supply/bq24257_charger.c struct device_attribute *attr, attr 819 drivers/power/supply/bq24257_charger.c if (strcmp(attr->attr.name, "high_impedance_enable") == 0) attr 821 drivers/power/supply/bq24257_charger.c else if (strcmp(attr->attr.name, "sysoff_enable") == 0) attr 840 drivers/power/supply/bq24257_charger.c &dev_attr_ovp_voltage.attr, attr 841 drivers/power/supply/bq24257_charger.c &dev_attr_in_dpm_voltage.attr, attr 842 drivers/power/supply/bq24257_charger.c &dev_attr_high_impedance_enable.attr, attr 843 drivers/power/supply/bq24257_charger.c &dev_attr_sysoff_enable.attr, attr 1267 drivers/power/supply/charger-manager.c struct device_attribute *attr, char *buf) attr 1270 drivers/power/supply/charger-manager.c = container_of(attr, struct charger_regulator, attr_name); attr 1276 drivers/power/supply/charger-manager.c struct device_attribute *attr, char *buf) attr 1279 drivers/power/supply/charger-manager.c = container_of(attr, struct charger_regulator, attr_state); attr 1289 drivers/power/supply/charger-manager.c struct device_attribute *attr, char *buf) attr 1291 drivers/power/supply/charger-manager.c struct charger_regulator *charger = container_of(attr, attr 1298 drivers/power/supply/charger-manager.c struct device_attribute *attr, const char *buf, attr 1302 drivers/power/supply/charger-manager.c = container_of(attr, struct charger_regulator, attr 1380 drivers/power/supply/charger-manager.c charger->attrs[0] = &charger->attr_name.attr; attr 1381 drivers/power/supply/charger-manager.c charger->attrs[1] = &charger->attr_state.attr; attr 1382 drivers/power/supply/charger-manager.c charger->attrs[2] = &charger->attr_externally_control.attr; attr 1389 drivers/power/supply/charger-manager.c sysfs_attr_init(&charger->attr_name.attr); attr 1390 drivers/power/supply/charger-manager.c charger->attr_name.attr.name = "name"; attr 1391 drivers/power/supply/charger-manager.c charger->attr_name.attr.mode = 0444; attr 1394 drivers/power/supply/charger-manager.c sysfs_attr_init(&charger->attr_state.attr); attr 1395 drivers/power/supply/charger-manager.c charger->attr_state.attr.name = "state"; attr 1396 drivers/power/supply/charger-manager.c charger->attr_state.attr.mode = 0444; attr 1399 drivers/power/supply/charger-manager.c sysfs_attr_init(&charger->attr_externally_control.attr); attr 1400 drivers/power/supply/charger-manager.c charger->attr_externally_control.attr.name attr 1402 drivers/power/supply/charger-manager.c charger->attr_externally_control.attr.mode = 0644; attr 444 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 462 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 498 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 515 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 536 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 552 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 579 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 596 drivers/power/supply/ds2780_battery.c struct device_attribute *attr, attr 658 drivers/power/supply/ds2780_battery.c .attr = { attr 703 drivers/power/supply/ds2780_battery.c .attr = { attr 722 drivers/power/supply/ds2780_battery.c &dev_attr_pmod_enabled.attr, attr 723 drivers/power/supply/ds2780_battery.c &dev_attr_sense_resistor_value.attr, attr 724 drivers/power/supply/ds2780_battery.c &dev_attr_rsgain_setting.attr, attr 725 drivers/power/supply/ds2780_battery.c &dev_attr_pio_pin.attr, attr 446 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 464 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 500 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 517 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 538 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 554 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 581 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 598 drivers/power/supply/ds2781_battery.c struct device_attribute *attr, attr 660 drivers/power/supply/ds2781_battery.c .attr = { attr 706 drivers/power/supply/ds2781_battery.c .attr = { attr 725 drivers/power/supply/ds2781_battery.c &dev_attr_pmod_enabled.attr, attr 726 drivers/power/supply/ds2781_battery.c &dev_attr_sense_resistor_value.attr, attr 727 drivers/power/supply/ds2781_battery.c &dev_attr_rsgain_setting.attr, attr 728 drivers/power/supply/ds2781_battery.c &dev_attr_pio_pin.attr, attr 597 drivers/power/supply/lp8788-charger.c struct device_attribute *attr, char *buf) attr 622 drivers/power/supply/lp8788-charger.c struct device_attribute *attr, char *buf) attr 639 drivers/power/supply/lp8788-charger.c struct device_attribute *attr, char *buf) attr 666 drivers/power/supply/lp8788-charger.c &dev_attr_charger_status.attr, attr 667 drivers/power/supply/lp8788-charger.c &dev_attr_eoc_time.attr, attr 668 drivers/power/supply/lp8788-charger.c &dev_attr_eoc_level.attr, attr 509 drivers/power/supply/max14577_charger.c struct device_attribute *attr, char *buf) attr 539 drivers/power/supply/max14577_charger.c struct device_attribute *attr, const char *buf, size_t count) attr 256 drivers/power/supply/max77693_charger.c struct device_attribute *attr, const char *buf, size_t count, attr 275 drivers/power/supply/max77693_charger.c struct device_attribute *attr, char *buf) attr 334 drivers/power/supply/max77693_charger.c struct device_attribute *attr, const char *buf, size_t count) attr 336 drivers/power/supply/max77693_charger.c return device_attr_store(dev, attr, buf, count, attr 341 drivers/power/supply/max77693_charger.c struct device_attribute *attr, char *buf) attr 385 drivers/power/supply/max77693_charger.c struct device_attribute *attr, const char *buf, size_t count) attr 387 drivers/power/supply/max77693_charger.c return device_attr_store(dev, attr, buf, count, attr 392 drivers/power/supply/max77693_charger.c struct device_attribute *attr, char *buf) attr 428 drivers/power/supply/max77693_charger.c struct device_attribute *attr, const char *buf, size_t count) attr 430 drivers/power/supply/max77693_charger.c return device_attr_store(dev, attr, buf, count, attr 530 drivers/power/supply/olpc_battery.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) attr 551 drivers/power/supply/olpc_battery.c .attr = { attr 562 drivers/power/supply/olpc_battery.c struct device_attribute *attr, char *buf) attr 575 drivers/power/supply/olpc_battery.c .attr = { attr 583 drivers/power/supply/olpc_battery.c &olpc_bat_error.attr, attr 149 drivers/power/supply/pcf50633-charger.c show_chgmode(struct device *dev, struct device_attribute *attr, char *buf) attr 161 drivers/power/supply/pcf50633-charger.c show_usblim(struct device *dev, struct device_attribute *attr, char *buf) attr 181 drivers/power/supply/pcf50633-charger.c struct device_attribute *attr, const char *buf, size_t count) attr 199 drivers/power/supply/pcf50633-charger.c show_chglim(struct device *dev, struct device_attribute *attr, char *buf) attr 214 drivers/power/supply/pcf50633-charger.c struct device_attribute *attr, const char *buf, size_t count) attr 244 drivers/power/supply/pcf50633-charger.c &dev_attr_chgmode.attr, attr 245 drivers/power/supply/pcf50633-charger.c &dev_attr_usb_curlim.attr, attr 246 drivers/power/supply/pcf50633-charger.c &dev_attr_chg_curlim.attr, attr 16 drivers/power/supply/power_supply_hwmon.c static int power_supply_hwmon_in_to_property(u32 attr) attr 18 drivers/power/supply/power_supply_hwmon.c switch (attr) { attr 32 drivers/power/supply/power_supply_hwmon.c static int power_supply_hwmon_curr_to_property(u32 attr) attr 34 drivers/power/supply/power_supply_hwmon.c switch (attr) { attr 46 drivers/power/supply/power_supply_hwmon.c static int power_supply_hwmon_temp_to_property(u32 attr, int channel) attr 49 drivers/power/supply/power_supply_hwmon.c switch (attr) { attr 60 drivers/power/supply/power_supply_hwmon.c switch (attr) { attr 81 drivers/power/supply/power_supply_hwmon.c u32 attr, int channel) attr 85 drivers/power/supply/power_supply_hwmon.c return power_supply_hwmon_in_to_property(attr); attr 87 drivers/power/supply/power_supply_hwmon.c return power_supply_hwmon_curr_to_property(attr); attr 89 drivers/power/supply/power_supply_hwmon.c return power_supply_hwmon_temp_to_property(attr, channel); attr 96 drivers/power/supply/power_supply_hwmon.c u32 attr) attr 98 drivers/power/supply/power_supply_hwmon.c return type == hwmon_temp && attr == hwmon_temp_label; attr 102 drivers/power/supply/power_supply_hwmon.c u32 attr) attr 106 drivers/power/supply/power_supply_hwmon.c return attr == hwmon_in_min || attr 107 drivers/power/supply/power_supply_hwmon.c attr == hwmon_in_max; attr 109 drivers/power/supply/power_supply_hwmon.c return attr == hwmon_curr_max; attr 111 drivers/power/supply/power_supply_hwmon.c return attr == hwmon_temp_max || attr 112 drivers/power/supply/power_supply_hwmon.c attr == hwmon_temp_min || attr 113 drivers/power/supply/power_supply_hwmon.c attr == hwmon_temp_min_alarm || attr 114 drivers/power/supply/power_supply_hwmon.c attr == hwmon_temp_max_alarm; attr 122 drivers/power/supply/power_supply_hwmon.c u32 attr, int channel) attr 128 drivers/power/supply/power_supply_hwmon.c if (power_supply_hwmon_is_a_label(type, attr)) attr 131 drivers/power/supply/power_supply_hwmon.c prop = power_supply_hwmon_to_property(type, attr, channel); attr 136 drivers/power/supply/power_supply_hwmon.c power_supply_hwmon_is_writable(type, attr)) attr 144 drivers/power/supply/power_supply_hwmon.c u32 attr, int channel, attr 153 drivers/power/supply/power_supply_hwmon.c u32 attr, int channel, long *val) attr 160 drivers/power/supply/power_supply_hwmon.c prop = power_supply_hwmon_to_property(type, attr, channel); attr 197 drivers/power/supply/power_supply_hwmon.c u32 attr, int channel, long val) attr 204 drivers/power/supply/power_supply_hwmon.c prop = power_supply_hwmon_to_property(type, attr, channel); attr 35 drivers/power/supply/power_supply_sysfs.c .attr = { .name = #_name }, \ attr 116 drivers/power/supply/power_supply_sysfs.c struct device_attribute *attr, attr 120 drivers/power/supply/power_supply_sysfs.c enum power_supply_property psp = attr - power_supply_attrs; attr 131 drivers/power/supply/power_supply_sysfs.c attr->attr.name); attr 135 drivers/power/supply/power_supply_sysfs.c attr->attr.name, ret); attr 185 drivers/power/supply/power_supply_sysfs.c struct device_attribute *attr, attr 189 drivers/power/supply/power_supply_sysfs.c enum power_supply_property psp = attr - power_supply_attrs; attr 319 drivers/power/supply/power_supply_sysfs.c struct attribute *attr, attr 362 drivers/power/supply/power_supply_sysfs.c __power_supply_attrs[i] = &power_supply_attrs[i].attr; attr 403 drivers/power/supply/power_supply_sysfs.c struct device_attribute *attr; attr 406 drivers/power/supply/power_supply_sysfs.c attr = &power_supply_attrs[psy->desc->properties[j]]; attr 408 drivers/power/supply/power_supply_sysfs.c ret = power_supply_show_property(dev, attr, prop_buf); attr 423 drivers/power/supply/power_supply_sysfs.c attrname = kstruprdup(attr->attr.name, GFP_KERNEL); attr 117 drivers/power/supply/qcom_smbb.c unsigned int attr[_ATTR_CNT]; attr 308 drivers/power/supply/qcom_smbb.c chg->attr[which] = out; attr 330 drivers/power/supply/qcom_smbb.c chg->attr[which] = val; attr 503 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_USBIN_IMAX]; attr 551 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_DCIN_IMAX]; attr 637 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_BAT_IMAX]; attr 640 drivers/power/supply/qcom_smbb.c val->intval = chg->attr[ATTR_BAT_VMAX]; attr 687 drivers/power/supply/twl4030_charger.c twl4030_bci_mode_store(struct device *dev, struct device_attribute *attr, attr 717 drivers/power/supply/twl4030_charger.c struct device_attribute *attr, char *buf) attr 157 drivers/power/supply/wm8350_power.c struct device_attribute *attr, char *buf) attr 70 drivers/powercap/powercap_sys.c if (!sscanf(dev_attr->attr.name, "constraint_%d_", &id)) \ attr 95 drivers/powercap/powercap_sys.c if (!sscanf(dev_attr->attr.name, "constraint_%d_", &id)) \ attr 164 drivers/powercap/powercap_sys.c if (!sscanf(dev_attr->attr.name, "constraint_%d_", &id)) attr 194 drivers/powercap/powercap_sys.c dev_attr->attr.name = kasprintf(GFP_KERNEL, "constraint_%d_%s", attr 196 drivers/powercap/powercap_sys.c if (!dev_attr->attr.name) attr 198 drivers/powercap/powercap_sys.c dev_attr->attr.mode = mode; attr 210 drivers/powercap/powercap_sys.c kfree(constraint_attrs[i].power_limit_attr.attr.name); attr 211 drivers/powercap/powercap_sys.c kfree(constraint_attrs[i].time_window_attr.attr.name); attr 212 drivers/powercap/powercap_sys.c kfree(constraint_attrs[i].name_attr.attr.name); attr 213 drivers/powercap/powercap_sys.c kfree(constraint_attrs[i].max_power_attr.attr.name); attr 214 drivers/powercap/powercap_sys.c kfree(constraint_attrs[i].min_power_attr.attr.name); attr 215 drivers/powercap/powercap_sys.c kfree(constraint_attrs[i].max_time_window_attr.attr.name); attr 216 drivers/powercap/powercap_sys.c kfree(constraint_attrs[i].min_time_window_attr.attr.name); attr 305 drivers/powercap/powercap_sys.c &constraint_attrs[i].power_limit_attr.attr; attr 307 drivers/powercap/powercap_sys.c &constraint_attrs[i].time_window_attr.attr; attr 310 drivers/powercap/powercap_sys.c &constraint_attrs[i].name_attr.attr; attr 313 drivers/powercap/powercap_sys.c &constraint_attrs[i].max_power_attr.attr; attr 316 drivers/powercap/powercap_sys.c &constraint_attrs[i].min_power_attr.attr; attr 319 drivers/powercap/powercap_sys.c &constraint_attrs[i].max_time_window_attr.attr; attr 322 drivers/powercap/powercap_sys.c &constraint_attrs[i].min_time_window_attr.attr; attr 348 drivers/powercap/powercap_sys.c struct device_attribute *attr, attr 364 drivers/powercap/powercap_sys.c power_zone->zone_dev_attrs[count++] = &dev_attr_name.attr; attr 367 drivers/powercap/powercap_sys.c &dev_attr_max_energy_range_uj.attr; attr 370 drivers/powercap/powercap_sys.c dev_attr_energy_uj.attr.mode = S_IWUSR | S_IRUGO; attr 372 drivers/powercap/powercap_sys.c dev_attr_energy_uj.attr.mode = S_IRUGO; attr 374 drivers/powercap/powercap_sys.c &dev_attr_energy_uj.attr; attr 378 drivers/powercap/powercap_sys.c &dev_attr_power_uw.attr; attr 381 drivers/powercap/powercap_sys.c &dev_attr_max_power_range_uw.attr; attr 422 drivers/powercap/powercap_sys.c struct device_attribute *attr, attr 445 drivers/powercap/powercap_sys.c struct device_attribute *attr, attr 471 drivers/powercap/powercap_sys.c &dev_attr_enabled.attr, attr 18 drivers/pps/sysfs.c static ssize_t assert_show(struct device *dev, struct device_attribute *attr, attr 32 drivers/pps/sysfs.c static ssize_t clear_show(struct device *dev, struct device_attribute *attr, attr 46 drivers/pps/sysfs.c static ssize_t mode_show(struct device *dev, struct device_attribute *attr, attr 55 drivers/pps/sysfs.c static ssize_t echo_show(struct device *dev, struct device_attribute *attr, attr 64 drivers/pps/sysfs.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 73 drivers/pps/sysfs.c static ssize_t path_show(struct device *dev, struct device_attribute *attr, attr 83 drivers/pps/sysfs.c &dev_attr_assert.attr, attr 84 drivers/pps/sysfs.c &dev_attr_clear.attr, attr 85 drivers/pps/sysfs.c &dev_attr_mode.attr, attr 86 drivers/pps/sysfs.c &dev_attr_echo.attr, attr 87 drivers/pps/sysfs.c &dev_attr_name.attr, attr 88 drivers/pps/sysfs.c &dev_attr_path.attr, attr 255 drivers/ps3/ps3-sys-manager.c enum ps3_sys_manager_attr attr) attr 266 drivers/ps3/ps3-sys-manager.c dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, attr); attr 276 drivers/ps3/ps3-sys-manager.c payload.attribute = attr; attr 13 drivers/ptp/ptp_sysfs.c struct device_attribute *attr, char *page) attr 22 drivers/ptp/ptp_sysfs.c struct device_attribute *attr, char *page) \ attr 37 drivers/ptp/ptp_sysfs.c struct device_attribute *attr, attr 63 drivers/ptp/ptp_sysfs.c struct device_attribute *attr, char *page) attr 97 drivers/ptp/ptp_sysfs.c struct device_attribute *attr, attr 125 drivers/ptp/ptp_sysfs.c struct device_attribute *attr, attr 152 drivers/ptp/ptp_sysfs.c &dev_attr_clock_name.attr, attr 154 drivers/ptp/ptp_sysfs.c &dev_attr_max_adjustment.attr, attr 155 drivers/ptp/ptp_sysfs.c &dev_attr_n_alarms.attr, attr 156 drivers/ptp/ptp_sysfs.c &dev_attr_n_external_timestamps.attr, attr 157 drivers/ptp/ptp_sysfs.c &dev_attr_n_periodic_outputs.attr, attr 158 drivers/ptp/ptp_sysfs.c &dev_attr_n_programmable_pins.attr, attr 159 drivers/ptp/ptp_sysfs.c &dev_attr_pps_available.attr, attr 161 drivers/ptp/ptp_sysfs.c &dev_attr_extts_enable.attr, attr 162 drivers/ptp/ptp_sysfs.c &dev_attr_fifo.attr, attr 163 drivers/ptp/ptp_sysfs.c &dev_attr_period.attr, attr 164 drivers/ptp/ptp_sysfs.c &dev_attr_pps_enable.attr, attr 169 drivers/ptp/ptp_sysfs.c struct attribute *attr, int n) attr 174 drivers/ptp/ptp_sysfs.c umode_t mode = attr->mode; attr 176 drivers/ptp/ptp_sysfs.c if (attr == &dev_attr_extts_enable.attr || attr 177 drivers/ptp/ptp_sysfs.c attr == &dev_attr_fifo.attr) { attr 180 drivers/ptp/ptp_sysfs.c } else if (attr == &dev_attr_period.attr) { attr 183 drivers/ptp/ptp_sysfs.c } else if (attr == &dev_attr_pps_enable.attr) { attr 211 drivers/ptp/ptp_sysfs.c static ssize_t ptp_pin_show(struct device *dev, struct device_attribute *attr, attr 218 drivers/ptp/ptp_sysfs.c index = ptp_pin_name2index(ptp, attr->attr.name); attr 233 drivers/ptp/ptp_sysfs.c static ssize_t ptp_pin_store(struct device *dev, struct device_attribute *attr, attr 244 drivers/ptp/ptp_sysfs.c index = ptp_pin_name2index(ptp, attr->attr.name); attr 277 drivers/ptp/ptp_sysfs.c sysfs_attr_init(&da->attr); attr 278 drivers/ptp/ptp_sysfs.c da->attr.name = info->pin_config[i].name; attr 279 drivers/ptp/ptp_sysfs.c da->attr.mode = 0644; attr 282 drivers/ptp/ptp_sysfs.c ptp->pin_attr[i] = &da->attr; attr 37 drivers/pwm/sysfs.c struct device_attribute *attr, attr 49 drivers/pwm/sysfs.c struct device_attribute *attr, attr 72 drivers/pwm/sysfs.c struct device_attribute *attr, attr 84 drivers/pwm/sysfs.c struct device_attribute *attr, attr 107 drivers/pwm/sysfs.c struct device_attribute *attr, attr 119 drivers/pwm/sysfs.c struct device_attribute *attr, attr 155 drivers/pwm/sysfs.c struct device_attribute *attr, attr 178 drivers/pwm/sysfs.c struct device_attribute *attr, attr 204 drivers/pwm/sysfs.c struct device_attribute *attr, attr 225 drivers/pwm/sysfs.c &dev_attr_period.attr, attr 226 drivers/pwm/sysfs.c &dev_attr_duty_cycle.attr, attr 227 drivers/pwm/sysfs.c &dev_attr_enable.attr, attr 228 drivers/pwm/sysfs.c &dev_attr_polarity.attr, attr 229 drivers/pwm/sysfs.c &dev_attr_capture.attr, attr 311 drivers/pwm/sysfs.c struct device_attribute *attr, attr 339 drivers/pwm/sysfs.c struct device_attribute *attr, attr 359 drivers/pwm/sysfs.c static ssize_t npwm_show(struct device *parent, struct device_attribute *attr, attr 369 drivers/pwm/sysfs.c &dev_attr_export.attr, attr 370 drivers/pwm/sysfs.c &dev_attr_unexport.attr, attr 371 drivers/pwm/sysfs.c &dev_attr_npwm.attr, attr 2363 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport_attr attr; attr 2413 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_query_mport(mport, &attr); attr 2415 drivers/rapidio/devices/rio_mport_cdev.c md->properties.flags = attr.flags; attr 2416 drivers/rapidio/devices/rio_mport_cdev.c md->properties.link_speed = attr.link_speed; attr 2417 drivers/rapidio/devices/rio_mport_cdev.c md->properties.link_width = attr.link_width; attr 2418 drivers/rapidio/devices/rio_mport_cdev.c md->properties.dma_max_sge = attr.dma_max_sge; attr 2419 drivers/rapidio/devices/rio_mport_cdev.c md->properties.dma_max_size = attr.dma_max_size; attr 2420 drivers/rapidio/devices/rio_mport_cdev.c md->properties.dma_align = attr.dma_align; attr 2547 drivers/rapidio/devices/tsi721.c struct rio_mport_attr *attr) attr 2555 drivers/rapidio/devices/tsi721.c attr->link_speed = (rval & RIO_PORT_N_CTL2_SEL_BAUD) >> 28; attr 2557 drivers/rapidio/devices/tsi721.c attr->link_width = (rval & RIO_PORT_N_CTL_IPW) >> 27; attr 2559 drivers/rapidio/devices/tsi721.c attr->link_speed = RIO_LINK_DOWN; attr 2562 drivers/rapidio/devices/tsi721.c attr->flags = RIO_MPORT_DMA | RIO_MPORT_DMA_SG; attr 2563 drivers/rapidio/devices/tsi721.c attr->dma_max_sge = 0; attr 2564 drivers/rapidio/devices/tsi721.c attr->dma_max_size = TSI721_BDMA_MAX_BCOUNT; attr 2565 drivers/rapidio/devices/tsi721.c attr->dma_align = 0; attr 2567 drivers/rapidio/devices/tsi721.c attr->flags = 0; attr 20 drivers/rapidio/rio-sysfs.c field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 37 drivers/rapidio/rio-sysfs.c static ssize_t routes_show(struct device *dev, struct device_attribute *attr, char *buf) attr 57 drivers/rapidio/rio-sysfs.c struct device_attribute *attr, char *buf) attr 67 drivers/rapidio/rio-sysfs.c struct device_attribute *attr, char *buf) attr 88 drivers/rapidio/rio-sysfs.c struct device_attribute *attr, char *buf) attr 98 drivers/rapidio/rio-sysfs.c &dev_attr_did.attr, attr 99 drivers/rapidio/rio-sysfs.c &dev_attr_vid.attr, attr 100 drivers/rapidio/rio-sysfs.c &dev_attr_device_rev.attr, attr 101 drivers/rapidio/rio-sysfs.c &dev_attr_asm_did.attr, attr 102 drivers/rapidio/rio-sysfs.c &dev_attr_asm_vid.attr, attr 103 drivers/rapidio/rio-sysfs.c &dev_attr_asm_rev.attr, attr 104 drivers/rapidio/rio-sysfs.c &dev_attr_lprev.attr, attr 105 drivers/rapidio/rio-sysfs.c &dev_attr_destid.attr, attr 106 drivers/rapidio/rio-sysfs.c &dev_attr_modalias.attr, attr 109 drivers/rapidio/rio-sysfs.c &dev_attr_routes.attr, attr 110 drivers/rapidio/rio-sysfs.c &dev_attr_lnext.attr, attr 111 drivers/rapidio/rio-sysfs.c &dev_attr_hopcount.attr, attr 245 drivers/rapidio/rio-sysfs.c .attr = { attr 260 drivers/rapidio/rio-sysfs.c struct attribute *attr, int n) attr 263 drivers/rapidio/rio-sysfs.c umode_t mode = attr->mode; attr 266 drivers/rapidio/rio-sysfs.c (attr == &dev_attr_routes.attr || attr 267 drivers/rapidio/rio-sysfs.c attr == &dev_attr_lnext.attr || attr 268 drivers/rapidio/rio-sysfs.c attr == &dev_attr_hopcount.attr)) { attr 315 drivers/rapidio/rio-sysfs.c &bus_attr_scan.attr, attr 329 drivers/rapidio/rio-sysfs.c port_destid_show(struct device *dev, struct device_attribute *attr, attr 341 drivers/rapidio/rio-sysfs.c static ssize_t sys_size_show(struct device *dev, struct device_attribute *attr, attr 354 drivers/rapidio/rio-sysfs.c &dev_attr_port_destid.attr, attr 355 drivers/rapidio/rio-sysfs.c &dev_attr_sys_size.attr, attr 369 drivers/rapidio/switches/idt_gen2.c idtg2_show_errlog(struct device *dev, struct device_attribute *attr, char *buf) attr 168 drivers/regulator/bd9571mwv-regulator.c struct device_attribute *attr, char *buf) attr 176 drivers/regulator/bd9571mwv-regulator.c struct device_attribute *attr, attr 568 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 584 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 592 drivers/regulator/core.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 622 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 641 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 655 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 702 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 714 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 726 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 738 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 750 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 766 drivers/regulator/core.c static ssize_t num_users_show(struct device *dev, struct device_attribute *attr, attr 774 drivers/regulator/core.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 790 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 800 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 810 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 820 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 831 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 842 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 853 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 864 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 875 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 886 drivers/regulator/core.c struct device_attribute *attr, char *buf) attr 4633 drivers/regulator/core.c &dev_attr_name.attr, attr 4634 drivers/regulator/core.c &dev_attr_num_users.attr, attr 4635 drivers/regulator/core.c &dev_attr_type.attr, attr 4636 drivers/regulator/core.c &dev_attr_microvolts.attr, attr 4637 drivers/regulator/core.c &dev_attr_microamps.attr, attr 4638 drivers/regulator/core.c &dev_attr_opmode.attr, attr 4639 drivers/regulator/core.c &dev_attr_state.attr, attr 4640 drivers/regulator/core.c &dev_attr_status.attr, attr 4641 drivers/regulator/core.c &dev_attr_bypass.attr, attr 4642 drivers/regulator/core.c &dev_attr_requested_microamps.attr, attr 4643 drivers/regulator/core.c &dev_attr_min_microvolts.attr, attr 4644 drivers/regulator/core.c &dev_attr_max_microvolts.attr, attr 4645 drivers/regulator/core.c &dev_attr_min_microamps.attr, attr 4646 drivers/regulator/core.c &dev_attr_max_microamps.attr, attr 4647 drivers/regulator/core.c &dev_attr_suspend_standby_state.attr, attr 4648 drivers/regulator/core.c &dev_attr_suspend_mem_state.attr, attr 4649 drivers/regulator/core.c &dev_attr_suspend_disk_state.attr, attr 4650 drivers/regulator/core.c &dev_attr_suspend_standby_microvolts.attr, attr 4651 drivers/regulator/core.c &dev_attr_suspend_mem_microvolts.attr, attr 4652 drivers/regulator/core.c &dev_attr_suspend_disk_microvolts.attr, attr 4653 drivers/regulator/core.c &dev_attr_suspend_standby_mode.attr, attr 4654 drivers/regulator/core.c &dev_attr_suspend_mem_mode.attr, attr 4655 drivers/regulator/core.c &dev_attr_suspend_disk_mode.attr, attr 4664 drivers/regulator/core.c struct attribute *attr, int idx) attr 4669 drivers/regulator/core.c umode_t mode = attr->mode; attr 4672 drivers/regulator/core.c if (attr == &dev_attr_name.attr || attr 4673 drivers/regulator/core.c attr == &dev_attr_num_users.attr || attr 4674 drivers/regulator/core.c attr == &dev_attr_type.attr) attr 4678 drivers/regulator/core.c if (attr == &dev_attr_microvolts.attr) { attr 4687 drivers/regulator/core.c if (attr == &dev_attr_microamps.attr) attr 4690 drivers/regulator/core.c if (attr == &dev_attr_opmode.attr) attr 4693 drivers/regulator/core.c if (attr == &dev_attr_state.attr) attr 4696 drivers/regulator/core.c if (attr == &dev_attr_status.attr) attr 4699 drivers/regulator/core.c if (attr == &dev_attr_bypass.attr) attr 4703 drivers/regulator/core.c if (attr == &dev_attr_min_microvolts.attr || attr 4704 drivers/regulator/core.c attr == &dev_attr_max_microvolts.attr) attr 4707 drivers/regulator/core.c if (attr == &dev_attr_min_microamps.attr || attr 4708 drivers/regulator/core.c attr == &dev_attr_max_microamps.attr) attr 4711 drivers/regulator/core.c if (attr == &dev_attr_suspend_standby_state.attr || attr 4712 drivers/regulator/core.c attr == &dev_attr_suspend_mem_state.attr || attr 4713 drivers/regulator/core.c attr == &dev_attr_suspend_disk_state.attr) attr 4716 drivers/regulator/core.c if (attr == &dev_attr_suspend_standby_microvolts.attr || attr 4717 drivers/regulator/core.c attr == &dev_attr_suspend_mem_microvolts.attr || attr 4718 drivers/regulator/core.c attr == &dev_attr_suspend_disk_microvolts.attr) attr 4721 drivers/regulator/core.c if (attr == &dev_attr_suspend_standby_mode.attr || attr 4722 drivers/regulator/core.c attr == &dev_attr_suspend_mem_mode.attr || attr 4723 drivers/regulator/core.c attr == &dev_attr_suspend_disk_mode.attr) attr 33 drivers/regulator/userspace-consumer.c struct device_attribute *attr, char *buf) attr 41 drivers/regulator/userspace-consumer.c struct device_attribute *attr, char *buf) attr 51 drivers/regulator/userspace-consumer.c static ssize_t reg_set_state(struct device *dev, struct device_attribute *attr, attr 94 drivers/regulator/userspace-consumer.c &dev_attr_name.attr, attr 95 drivers/regulator/userspace-consumer.c &dev_attr_state.attr, attr 108 drivers/regulator/virtual.c struct device_attribute *attr, char *buf) attr 114 drivers/regulator/virtual.c static ssize_t set_min_uV(struct device *dev, struct device_attribute *attr, attr 134 drivers/regulator/virtual.c struct device_attribute *attr, char *buf) attr 140 drivers/regulator/virtual.c static ssize_t set_max_uV(struct device *dev, struct device_attribute *attr, attr 160 drivers/regulator/virtual.c struct device_attribute *attr, char *buf) attr 166 drivers/regulator/virtual.c static ssize_t set_min_uA(struct device *dev, struct device_attribute *attr, attr 186 drivers/regulator/virtual.c struct device_attribute *attr, char *buf) attr 192 drivers/regulator/virtual.c static ssize_t set_max_uA(struct device *dev, struct device_attribute *attr, attr 212 drivers/regulator/virtual.c struct device_attribute *attr, char *buf) attr 230 drivers/regulator/virtual.c static ssize_t set_mode(struct device *dev, struct device_attribute *attr, attr 272 drivers/regulator/virtual.c &dev_attr_min_microvolts.attr, attr 273 drivers/regulator/virtual.c &dev_attr_max_microvolts.attr, attr 274 drivers/regulator/virtual.c &dev_attr_min_microamps.attr, attr 275 drivers/regulator/virtual.c &dev_attr_max_microamps.attr, attr 276 drivers/regulator/virtual.c &dev_attr_mode.attr, attr 13 drivers/remoteproc/remoteproc_sysfs.c static ssize_t firmware_show(struct device *dev, struct device_attribute *attr, attr 23 drivers/remoteproc/remoteproc_sysfs.c struct device_attribute *attr, attr 78 drivers/remoteproc/remoteproc_sysfs.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 90 drivers/remoteproc/remoteproc_sysfs.c struct device_attribute *attr, attr 117 drivers/remoteproc/remoteproc_sysfs.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 127 drivers/remoteproc/remoteproc_sysfs.c &dev_attr_firmware.attr, attr 128 drivers/remoteproc/remoteproc_sysfs.c &dev_attr_state.attr, attr 129 drivers/remoteproc/remoteproc_sysfs.c &dev_attr_name.attr, attr 1423 drivers/rpmsg/qcom_smd.c struct device_attribute *attr, char *buf) attr 1432 drivers/rpmsg/qcom_smd.c &dev_attr_rpmsg_name.attr, attr 298 drivers/rpmsg/rpmsg_char.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 307 drivers/rpmsg/rpmsg_char.c static ssize_t src_show(struct device *dev, struct device_attribute *attr, attr 316 drivers/rpmsg/rpmsg_char.c static ssize_t dst_show(struct device *dev, struct device_attribute *attr, attr 326 drivers/rpmsg/rpmsg_char.c &dev_attr_name.attr, attr 327 drivers/rpmsg/rpmsg_char.c &dev_attr_src.attr, attr 328 drivers/rpmsg/rpmsg_char.c &dev_attr_dst.attr, attr 321 drivers/rpmsg/rpmsg_core.c struct device_attribute *attr, char *buf) \ attr 331 drivers/rpmsg/rpmsg_core.c field##_store(struct device *dev, struct device_attribute *attr, \ attr 358 drivers/rpmsg/rpmsg_core.c struct device_attribute *attr, char *buf) \ attr 374 drivers/rpmsg/rpmsg_core.c struct device_attribute *attr, char *buf) attr 388 drivers/rpmsg/rpmsg_core.c &dev_attr_name.attr, attr 389 drivers/rpmsg/rpmsg_core.c &dev_attr_modalias.attr, attr 390 drivers/rpmsg/rpmsg_core.c &dev_attr_dst.attr, attr 391 drivers/rpmsg/rpmsg_core.c &dev_attr_src.attr, attr 392 drivers/rpmsg/rpmsg_core.c &dev_attr_announce.attr, attr 393 drivers/rpmsg/rpmsg_core.c &dev_attr_driver_override.attr, attr 23 drivers/rtc/nvmem.c struct bin_attribute *attr, attr 28 drivers/rtc/nvmem.c return nvmem_device_read(attr->private, off, count, buf); attr 33 drivers/rtc/nvmem.c struct bin_attribute *attr, attr 38 drivers/rtc/nvmem.c return nvmem_device_write(attr->private, off, count, buf); attr 50 drivers/rtc/nvmem.c rtc->nvram->attr.name = "nvram"; attr 51 drivers/rtc/nvmem.c rtc->nvram->attr.mode = 0644; attr 273 drivers/rtc/rtc-ab-eoz9.c u32 attr, int channel, long *temp) attr 291 drivers/rtc/rtc-ab-eoz9.c switch (attr) { attr 311 drivers/rtc/rtc-ab-eoz9.c u32 attr, int channel) attr 313 drivers/rtc/rtc-ab-eoz9.c switch (attr) { attr 278 drivers/rtc/rtc-ab8500.c struct device_attribute *attr, attr 295 drivers/rtc/rtc-ab8500.c struct device_attribute *attr, char *buf) attr 315 drivers/rtc/rtc-ab8500.c &dev_attr_rtc_calibration.attr, attr 392 drivers/rtc/rtc-abx80x.c struct device_attribute *attr, attr 410 drivers/rtc/rtc-abx80x.c struct device_attribute *attr, char *buf) attr 427 drivers/rtc/rtc-abx80x.c struct device_attribute *attr, attr 469 drivers/rtc/rtc-abx80x.c struct device_attribute *attr, char *buf) attr 491 drivers/rtc/rtc-abx80x.c &dev_attr_autocalibration.attr, attr 492 drivers/rtc/rtc-abx80x.c &dev_attr_oscillator.attr, attr 194 drivers/rtc/rtc-bq32k.c struct device_attribute *attr, attr 207 drivers/rtc/rtc-bq32k.c struct device_attribute *attr, attr 1124 drivers/rtc/rtc-ds1307.c struct device_attribute *attr, attr 1144 drivers/rtc/rtc-ds1307.c struct device_attribute *attr, attr 1159 drivers/rtc/rtc-ds1307.c &dev_attr_frequency_test.attr, attr 1266 drivers/rtc/rtc-ds1307.c struct device_attribute *attr, char *buf) attr 1281 drivers/rtc/rtc-ds1307.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 111 drivers/rtc/rtc-ds1343.c struct device_attribute *attr, char *buf) attr 127 drivers/rtc/rtc-ds1343.c struct device_attribute *attr, attr 169 drivers/rtc/rtc-ds1343.c struct device_attribute *attr, char *buf) attr 957 drivers/rtc/rtc-ds1685.c struct device_attribute *attr, char *buf) attr 977 drivers/rtc/rtc-ds1685.c struct device_attribute *attr, char *buf) attr 999 drivers/rtc/rtc-ds1685.c struct device_attribute *attr, char *buf) attr 1017 drivers/rtc/rtc-ds1685.c &dev_attr_battery.attr, attr 1018 drivers/rtc/rtc-ds1685.c &dev_attr_auxbatt.attr, attr 1019 drivers/rtc/rtc-ds1685.c &dev_attr_serial.attr, attr 311 drivers/rtc/rtc-ds3232.c u32 attr, int channel) attr 316 drivers/rtc/rtc-ds3232.c switch (attr) { attr 326 drivers/rtc/rtc-ds3232.c u32 attr, int channel, long *temp) attr 330 drivers/rtc/rtc-ds3232.c switch (attr) { attr 91 drivers/rtc/rtc-ep93xx.c struct device_attribute *attr, char *buf) attr 102 drivers/rtc/rtc-ep93xx.c struct device_attribute *attr, char *buf) attr 113 drivers/rtc/rtc-ep93xx.c &dev_attr_comp_preload.attr, attr 114 drivers/rtc/rtc-ep93xx.c &dev_attr_comp_delete.attr, attr 525 drivers/rtc/rtc-isl1208.c struct device_attribute *attr, attr 548 drivers/rtc/rtc-isl1208.c struct device_attribute *attr, char *buf) attr 641 drivers/rtc/rtc-isl1208.c dev_attr_timestamp0.attr.name); attr 659 drivers/rtc/rtc-isl1208.c struct device_attribute *attr, char *buf) attr 672 drivers/rtc/rtc-isl1208.c struct device_attribute *attr, char *buf) attr 685 drivers/rtc/rtc-isl1208.c struct device_attribute *attr, char *buf) attr 696 drivers/rtc/rtc-isl1208.c struct device_attribute *attr, attr 722 drivers/rtc/rtc-isl1208.c &dev_attr_atrim.attr, attr 723 drivers/rtc/rtc-isl1208.c &dev_attr_dtrim.attr, attr 724 drivers/rtc/rtc-isl1208.c &dev_attr_usr.attr, attr 733 drivers/rtc/rtc-isl1208.c &dev_attr_timestamp0.attr, attr 328 drivers/rtc/rtc-pcf2127.c struct device_attribute *attr, attr 356 drivers/rtc/rtc-pcf2127.c struct device_attribute *attr, char *buf) attr 408 drivers/rtc/rtc-pcf2127.c &dev_attr_timestamp0.attr, attr 500 drivers/rtc/rtc-rs5c372.c struct device_attribute *attr, char *buf) attr 513 drivers/rtc/rtc-rs5c372.c struct device_attribute *attr, char *buf) attr 92 drivers/rtc/rtc-rv3028.c struct device_attribute *attr, attr 104 drivers/rtc/rtc-rv3028.c struct device_attribute *attr, char *buf) attr 141 drivers/rtc/rtc-rv3028.c struct device_attribute *attr, char *buf) attr 156 drivers/rtc/rtc-rv3028.c &dev_attr_timestamp0.attr, attr 157 drivers/rtc/rtc-rv3028.c &dev_attr_timestamp0_count.attr, attr 205 drivers/rtc/rtc-rv3028.c dev_attr_timestamp0.attr.name); attr 688 drivers/rtc/rtc-rv3029c2.c struct device_attribute *attr, attr 701 drivers/rtc/rtc-rv3029c2.c struct device_attribute *attr, attr 728 drivers/rtc/rtc-rv3029c2.c struct device_attribute *attr, attr 758 drivers/rtc/rtc-rv3029c2.c &sensor_dev_attr_temp1_input.dev_attr.attr, attr 759 drivers/rtc/rtc-rv3029c2.c &sensor_dev_attr_update_interval.dev_attr.attr, attr 461 drivers/rtc/rtc-rx8025.c struct device_attribute *attr, attr 474 drivers/rtc/rtc-rx8025.c struct device_attribute *attr, attr 570 drivers/rtc/rtc-x1205.c struct device_attribute *attr, char *buf) attr 583 drivers/rtc/rtc-x1205.c struct device_attribute *attr, char *buf) attr 24 drivers/rtc/sysfs.c name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 32 drivers/rtc/sysfs.c date_show(struct device *dev, struct device_attribute *attr, char *buf) attr 46 drivers/rtc/sysfs.c time_show(struct device *dev, struct device_attribute *attr, char *buf) attr 60 drivers/rtc/sysfs.c since_epoch_show(struct device *dev, struct device_attribute *attr, char *buf) attr 78 drivers/rtc/sysfs.c max_user_freq_show(struct device *dev, struct device_attribute *attr, char *buf) attr 84 drivers/rtc/sysfs.c max_user_freq_store(struct device *dev, struct device_attribute *attr, attr 111 drivers/rtc/sysfs.c hctosys_show(struct device *dev, struct device_attribute *attr, char *buf) attr 124 drivers/rtc/sysfs.c wakealarm_show(struct device *dev, struct device_attribute *attr, char *buf) attr 148 drivers/rtc/sysfs.c wakealarm_store(struct device *dev, struct device_attribute *attr, attr 215 drivers/rtc/sysfs.c offset_show(struct device *dev, struct device_attribute *attr, char *buf) attr 228 drivers/rtc/sysfs.c offset_store(struct device *dev, struct device_attribute *attr, attr 243 drivers/rtc/sysfs.c range_show(struct device *dev, struct device_attribute *attr, char *buf) attr 251 drivers/rtc/sysfs.c &dev_attr_name.attr, attr 252 drivers/rtc/sysfs.c &dev_attr_date.attr, attr 253 drivers/rtc/sysfs.c &dev_attr_time.attr, attr 254 drivers/rtc/sysfs.c &dev_attr_since_epoch.attr, attr 255 drivers/rtc/sysfs.c &dev_attr_max_user_freq.attr, attr 256 drivers/rtc/sysfs.c &dev_attr_hctosys.attr, attr 257 drivers/rtc/sysfs.c &dev_attr_wakealarm.attr, attr 258 drivers/rtc/sysfs.c &dev_attr_offset.attr, attr 259 drivers/rtc/sysfs.c &dev_attr_range.attr, attr 277 drivers/rtc/sysfs.c struct attribute *attr, int n) attr 281 drivers/rtc/sysfs.c umode_t mode = attr->mode; attr 283 drivers/rtc/sysfs.c if (attr == &dev_attr_wakealarm.attr) { attr 286 drivers/rtc/sysfs.c } else if (attr == &dev_attr_offset.attr) { attr 289 drivers/rtc/sysfs.c } else if (attr == &dev_attr_range.attr) { attr 715 drivers/s390/block/dasd_devmap.c static ssize_t dasd_ff_show(struct device *dev, struct device_attribute *attr, attr 729 drivers/s390/block/dasd_devmap.c static ssize_t dasd_ff_store(struct device *dev, struct device_attribute *attr, attr 749 drivers/s390/block/dasd_devmap.c dasd_ro_show(struct device *dev, struct device_attribute *attr, char *buf) attr 772 drivers/s390/block/dasd_devmap.c dasd_ro_store(struct device *dev, struct device_attribute *attr, attr 819 drivers/s390/block/dasd_devmap.c dasd_erplog_show(struct device *dev, struct device_attribute *attr, char *buf) attr 833 drivers/s390/block/dasd_devmap.c dasd_erplog_store(struct device *dev, struct device_attribute *attr, attr 854 drivers/s390/block/dasd_devmap.c dasd_use_diag_show(struct device *dev, struct device_attribute *attr, char *buf) attr 868 drivers/s390/block/dasd_devmap.c dasd_use_diag_store(struct device *dev, struct device_attribute *attr, attr 903 drivers/s390/block/dasd_devmap.c dasd_use_raw_show(struct device *dev, struct device_attribute *attr, char *buf) attr 917 drivers/s390/block/dasd_devmap.c dasd_use_raw_store(struct device *dev, struct device_attribute *attr, attr 949 drivers/s390/block/dasd_devmap.c dasd_safe_offline_store(struct device *dev, struct device_attribute *attr, attr 987 drivers/s390/block/dasd_devmap.c dasd_access_show(struct device *dev, struct device_attribute *attr, attr 1015 drivers/s390/block/dasd_devmap.c dasd_discipline_show(struct device *dev, struct device_attribute *attr, attr 1041 drivers/s390/block/dasd_devmap.c dasd_device_status_show(struct device *dev, struct device_attribute *attr, attr 1081 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, char *buf) attr 1106 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, char *buf) attr 1133 drivers/s390/block/dasd_devmap.c dasd_uid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1186 drivers/s390/block/dasd_devmap.c dasd_eer_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1200 drivers/s390/block/dasd_devmap.c dasd_eer_store(struct device *dev, struct device_attribute *attr, attr 1230 drivers/s390/block/dasd_devmap.c dasd_expires_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1244 drivers/s390/block/dasd_devmap.c dasd_expires_store(struct device *dev, struct device_attribute *attr, attr 1270 drivers/s390/block/dasd_devmap.c dasd_retries_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1284 drivers/s390/block/dasd_devmap.c dasd_retries_store(struct device *dev, struct device_attribute *attr, attr 1310 drivers/s390/block/dasd_devmap.c dasd_timeout_show(struct device *dev, struct device_attribute *attr, attr 1325 drivers/s390/block/dasd_devmap.c dasd_timeout_store(struct device *dev, struct device_attribute *attr, attr 1360 drivers/s390/block/dasd_devmap.c dasd_path_reset_store(struct device *dev, struct device_attribute *attr, attr 1382 drivers/s390/block/dasd_devmap.c static ssize_t dasd_hpf_show(struct device *dev, struct device_attribute *attr, attr 1403 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, attr 1424 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, attr 1444 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, attr 1465 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, attr 1490 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, char *buf) attr 1518 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, char *buf) attr 1532 drivers/s390/block/dasd_devmap.c dasd_path_threshold_store(struct device *dev, struct device_attribute *attr, attr 1562 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, char *buf) attr 1578 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, attr 1603 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, char *buf) attr 1617 drivers/s390/block/dasd_devmap.c dasd_path_interval_store(struct device *dev, struct device_attribute *attr, attr 1647 drivers/s390/block/dasd_devmap.c struct device_attribute *attr, \ attr 1675 drivers/s390/block/dasd_devmap.c &dev_attr_readonly.attr, attr 1676 drivers/s390/block/dasd_devmap.c &dev_attr_discipline.attr, attr 1677 drivers/s390/block/dasd_devmap.c &dev_attr_status.attr, attr 1678 drivers/s390/block/dasd_devmap.c &dev_attr_alias.attr, attr 1679 drivers/s390/block/dasd_devmap.c &dev_attr_vendor.attr, attr 1680 drivers/s390/block/dasd_devmap.c &dev_attr_uid.attr, attr 1681 drivers/s390/block/dasd_devmap.c &dev_attr_use_diag.attr, attr 1682 drivers/s390/block/dasd_devmap.c &dev_attr_raw_track_access.attr, attr 1683 drivers/s390/block/dasd_devmap.c &dev_attr_eer_enabled.attr, attr 1684 drivers/s390/block/dasd_devmap.c &dev_attr_erplog.attr, attr 1685 drivers/s390/block/dasd_devmap.c &dev_attr_failfast.attr, attr 1686 drivers/s390/block/dasd_devmap.c &dev_attr_expires.attr, attr 1687 drivers/s390/block/dasd_devmap.c &dev_attr_retries.attr, attr 1688 drivers/s390/block/dasd_devmap.c &dev_attr_timeout.attr, attr 1689 drivers/s390/block/dasd_devmap.c &dev_attr_reservation_policy.attr, attr 1690 drivers/s390/block/dasd_devmap.c &dev_attr_last_known_reservation_state.attr, attr 1691 drivers/s390/block/dasd_devmap.c &dev_attr_safe_offline.attr, attr 1692 drivers/s390/block/dasd_devmap.c &dev_attr_host_access_count.attr, attr 1693 drivers/s390/block/dasd_devmap.c &dev_attr_path_masks.attr, attr 1694 drivers/s390/block/dasd_devmap.c &dev_attr_path_threshold.attr, attr 1695 drivers/s390/block/dasd_devmap.c &dev_attr_path_autodisable.attr, attr 1696 drivers/s390/block/dasd_devmap.c &dev_attr_path_interval.attr, attr 1697 drivers/s390/block/dasd_devmap.c &dev_attr_path_reset.attr, attr 1698 drivers/s390/block/dasd_devmap.c &dev_attr_hpf.attr, attr 1699 drivers/s390/block/dasd_devmap.c &dev_attr_ese.attr, attr 1708 drivers/s390/block/dasd_devmap.c &dev_attr_space_configured.attr, attr 1709 drivers/s390/block/dasd_devmap.c &dev_attr_space_allocated.attr, attr 1710 drivers/s390/block/dasd_devmap.c &dev_attr_logical_capacity.attr, attr 1720 drivers/s390/block/dasd_devmap.c &dev_attr_pool_id.attr, attr 1721 drivers/s390/block/dasd_devmap.c &dev_attr_extent_size.attr, attr 1722 drivers/s390/block/dasd_devmap.c &dev_attr_warn_threshold.attr, attr 1723 drivers/s390/block/dasd_devmap.c &dev_attr_cap_at_warnlevel.attr, attr 1724 drivers/s390/block/dasd_devmap.c &dev_attr_pool_oos.attr, attr 92 drivers/s390/block/dcssblk.c static ssize_t dcssblk_add_store(struct device * dev, struct device_attribute *attr, const char * buf, attr 94 drivers/s390/block/dcssblk.c static ssize_t dcssblk_remove_store(struct device * dev, struct device_attribute *attr, const char * buf, attr 336 drivers/s390/block/dcssblk.c dcssblk_shared_show(struct device *dev, struct device_attribute *attr, char *buf) attr 345 drivers/s390/block/dcssblk.c dcssblk_shared_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) attr 422 drivers/s390/block/dcssblk.c if (device_remove_file_self(dev, attr)) { attr 442 drivers/s390/block/dcssblk.c dcssblk_save_show(struct device *dev, struct device_attribute *attr, char *buf) attr 451 drivers/s390/block/dcssblk.c dcssblk_save_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) attr 506 drivers/s390/block/dcssblk.c dcssblk_seglist_show(struct device *dev, struct device_attribute *attr, attr 530 drivers/s390/block/dcssblk.c &dev_attr_shared.attr, attr 531 drivers/s390/block/dcssblk.c &dev_attr_save.attr, attr 532 drivers/s390/block/dcssblk.c &dev_attr_seglist.attr, attr 547 drivers/s390/block/dcssblk.c dcssblk_add_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 742 drivers/s390/block/dcssblk.c dcssblk_remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1057 drivers/s390/char/raw3270.c raw3270_model_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1065 drivers/s390/char/raw3270.c raw3270_rows_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1073 drivers/s390/char/raw3270.c raw3270_columns_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1081 drivers/s390/char/raw3270.c &dev_attr_model.attr, attr 1082 drivers/s390/char/raw3270.c &dev_attr_rows.attr, attr 1083 drivers/s390/char/raw3270.c &dev_attr_columns.attr, attr 1141 drivers/s390/char/sclp.c &driver_attr_con_pages.attr, attr 1142 drivers/s390/char/sclp.c &driver_attr_con_drop.attr, attr 1143 drivers/s390/char/sclp.c &driver_attr_con_full.attr, attr 142 drivers/s390/char/sclp_config.c .attr = { attr 179 drivers/s390/char/sclp_cpi_sys.c static int check_string(const char *attr, const char *str) attr 202 drivers/s390/char/sclp_cpi_sys.c static void set_string(char *attr, const char *value) attr 214 drivers/s390/char/sclp_cpi_sys.c attr[i] = toupper(value[i]); attr 216 drivers/s390/char/sclp_cpi_sys.c attr[i] = ' '; attr 221 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, char *page) attr 232 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, attr 253 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, char *page) attr 264 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, attr 285 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, char *page) attr 296 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, attr 317 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, char *page) attr 328 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, attr 354 drivers/s390/char/sclp_cpi_sys.c struct kobj_attribute *attr, attr 371 drivers/s390/char/sclp_cpi_sys.c &system_name_attr.attr, attr 372 drivers/s390/char/sclp_cpi_sys.c &sysplex_name_attr.attr, attr 373 drivers/s390/char/sclp_cpi_sys.c &system_type_attr.attr, attr 374 drivers/s390/char/sclp_cpi_sys.c &system_level_attr.attr, attr 375 drivers/s390/char/sclp_cpi_sys.c &set_attr.attr, attr 97 drivers/s390/char/sclp_ocf.c struct kobj_attribute *attr, char *page) attr 111 drivers/s390/char/sclp_ocf.c struct kobj_attribute *attr, char *page) attr 125 drivers/s390/char/sclp_ocf.c &cpc_name_attr.attr, attr 126 drivers/s390/char/sclp_ocf.c &hmc_network_attr.attr, attr 420 drivers/s390/char/sclp_sd.c static ssize_t reload_store(struct kobject *kobj, struct kobj_attribute *attr, attr 433 drivers/s390/char/sclp_sd.c &reload_attr.attr, attr 455 drivers/s390/char/sclp_sd.c struct bin_attribute *attr, char *buffer, attr 516 drivers/s390/char/sclp_sd.c sd_file->data_attr.attr.name = "data"; attr 517 drivers/s390/char/sclp_sd.c sd_file->data_attr.attr.mode = 0444; attr 94 drivers/s390/char/tape_core.c tape_medium_state_show(struct device *dev, struct device_attribute *attr, char *buf) attr 106 drivers/s390/char/tape_core.c tape_first_minor_show(struct device *dev, struct device_attribute *attr, char *buf) attr 118 drivers/s390/char/tape_core.c tape_state_show(struct device *dev, struct device_attribute *attr, char *buf) attr 131 drivers/s390/char/tape_core.c tape_operation_show(struct device *dev, struct device_attribute *attr, char *buf) attr 158 drivers/s390/char/tape_core.c tape_blocksize_show(struct device *dev, struct device_attribute *attr, char *buf) attr 171 drivers/s390/char/tape_core.c &dev_attr_medium_state.attr, attr 172 drivers/s390/char/tape_core.c &dev_attr_first_minor.attr, attr 173 drivers/s390/char/tape_core.c &dev_attr_state.attr, attr 174 drivers/s390/char/tape_core.c &dev_attr_operation.attr, attr 175 drivers/s390/char/tape_core.c &dev_attr_blocksize.attr, attr 1400 drivers/s390/char/tty3270.c int i, attr; attr 1403 drivers/s390/char/tty3270.c attr = tp->esc_par[i]; attr 1404 drivers/s390/char/tty3270.c switch (attr) { attr 1441 drivers/s390/char/tty3270.c tp->f_color = f_colors[attr - 30]; attr 510 drivers/s390/char/vmlogrdr.c struct device_attribute *attr, attr 531 drivers/s390/char/vmlogrdr.c struct device_attribute *attr, attr 544 drivers/s390/char/vmlogrdr.c struct device_attribute *attr, attr 584 drivers/s390/char/vmlogrdr.c struct device_attribute *attr, attr 605 drivers/s390/char/vmlogrdr.c struct device_attribute *attr, attr 618 drivers/s390/char/vmlogrdr.c struct device_attribute *attr, attr 656 drivers/s390/char/vmlogrdr.c &driver_attr_recording_status.attr, attr 668 drivers/s390/char/vmlogrdr.c &dev_attr_autopurge.attr, attr 669 drivers/s390/char/vmlogrdr.c &dev_attr_purge.attr, attr 670 drivers/s390/char/vmlogrdr.c &dev_attr_autorecording.attr, attr 671 drivers/s390/char/vmlogrdr.c &dev_attr_recording.attr, attr 336 drivers/s390/char/vmur.c struct device_attribute *attr, char *buf) attr 128 drivers/s390/cio/ccwgroup.c struct device_attribute *attr, attr 157 drivers/s390/cio/ccwgroup.c struct device_attribute *attr, attr 184 drivers/s390/cio/ccwgroup.c struct device_attribute *attr, attr 198 drivers/s390/cio/ccwgroup.c if (device_remove_file_self(dev, attr)) attr 214 drivers/s390/cio/ccwgroup.c &dev_attr_online.attr, attr 215 drivers/s390/cio/ccwgroup.c &dev_attr_ungroup.attr, attr 148 drivers/s390/cio/chp.c .attr = { attr 202 drivers/s390/cio/chp.c .attr = { attr 233 drivers/s390/cio/chp.c struct device_attribute *attr, char *buf) attr 246 drivers/s390/cio/chp.c struct device_attribute *attr, attr 275 drivers/s390/cio/chp.c struct device_attribute *attr, char *buf) attr 291 drivers/s390/cio/chp.c struct device_attribute *attr, attr 311 drivers/s390/cio/chp.c static ssize_t chp_type_show(struct device *dev, struct device_attribute *attr, attr 325 drivers/s390/cio/chp.c static ssize_t chp_cmg_show(struct device *dev, struct device_attribute *attr, attr 340 drivers/s390/cio/chp.c struct device_attribute *attr, char *buf) attr 353 drivers/s390/cio/chp.c static ssize_t chp_chid_show(struct device *dev, struct device_attribute *attr, attr 371 drivers/s390/cio/chp.c struct device_attribute *attr, char *buf) attr 388 drivers/s390/cio/chp.c struct bin_attribute *attr, char *buf, attr 410 drivers/s390/cio/chp.c &dev_attr_status.attr, attr 411 drivers/s390/cio/chp.c &dev_attr_configure.attr, attr 412 drivers/s390/cio/chp.c &dev_attr_type.attr, attr 413 drivers/s390/cio/chp.c &dev_attr_cmg.attr, attr 414 drivers/s390/cio/chp.c &dev_attr_shared.attr, attr 415 drivers/s390/cio/chp.c &dev_attr_chid.attr, attr 416 drivers/s390/cio/chp.c &dev_attr_chid_external.attr, attr 984 drivers/s390/cio/cmf.c struct device_attribute *attr, attr 1004 drivers/s390/cio/cmf.c struct device_attribute *attr, attr 1014 drivers/s390/cio/cmf.c struct device_attribute *attr, char *buf) \ attr 1020 drivers/s390/cio/cmf.c struct device_attribute *attr, char *buf) \ attr 1039 drivers/s390/cio/cmf.c &dev_attr_avg_sample_interval.attr, attr 1040 drivers/s390/cio/cmf.c &dev_attr_avg_utilization.attr, attr 1041 drivers/s390/cio/cmf.c &dev_attr_ssch_rsch_count.attr, attr 1042 drivers/s390/cio/cmf.c &dev_attr_sample_count.attr, attr 1043 drivers/s390/cio/cmf.c &dev_attr_avg_device_connect_time.attr, attr 1044 drivers/s390/cio/cmf.c &dev_attr_avg_function_pending_time.attr, attr 1045 drivers/s390/cio/cmf.c &dev_attr_avg_device_disconnect_time.attr, attr 1046 drivers/s390/cio/cmf.c &dev_attr_avg_control_unit_queuing_time.attr, attr 1047 drivers/s390/cio/cmf.c &dev_attr_avg_device_active_only_time.attr, attr 1057 drivers/s390/cio/cmf.c &dev_attr_avg_sample_interval.attr, attr 1058 drivers/s390/cio/cmf.c &dev_attr_avg_utilization.attr, attr 1059 drivers/s390/cio/cmf.c &dev_attr_ssch_rsch_count.attr, attr 1060 drivers/s390/cio/cmf.c &dev_attr_sample_count.attr, attr 1061 drivers/s390/cio/cmf.c &dev_attr_avg_device_connect_time.attr, attr 1062 drivers/s390/cio/cmf.c &dev_attr_avg_function_pending_time.attr, attr 1063 drivers/s390/cio/cmf.c &dev_attr_avg_device_disconnect_time.attr, attr 1064 drivers/s390/cio/cmf.c &dev_attr_avg_control_unit_queuing_time.attr, attr 1065 drivers/s390/cio/cmf.c &dev_attr_avg_device_active_only_time.attr, attr 1066 drivers/s390/cio/cmf.c &dev_attr_avg_device_busy_time.attr, attr 1067 drivers/s390/cio/cmf.c &dev_attr_avg_initial_command_response_time.attr, attr 1077 drivers/s390/cio/cmf.c struct device_attribute *attr, attr 1086 drivers/s390/cio/cmf.c struct device_attribute *attr, const char *buf, attr 312 drivers/s390/cio/css.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 322 drivers/s390/cio/css.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 333 drivers/s390/cio/css.c struct device_attribute *attr, attr 367 drivers/s390/cio/css.c struct device_attribute *attr, char *buf) attr 380 drivers/s390/cio/css.c &dev_attr_type.attr, attr 381 drivers/s390/cio/css.c &dev_attr_modalias.attr, attr 382 drivers/s390/cio/css.c &dev_attr_driver_override.attr, attr 396 drivers/s390/cio/css.c struct device_attribute *attr, attr 418 drivers/s390/cio/css.c struct device_attribute *attr, attr 430 drivers/s390/cio/css.c &dev_attr_chpids.attr, attr 431 drivers/s390/cio/css.c &dev_attr_pimpampom.attr, attr 920 drivers/s390/cio/css.c static umode_t cm_enable_mode(struct kobject *kobj, struct attribute *attr, attr 923 drivers/s390/cio/css.c return css_chsc_characteristics.secm ? attr->mode : 0; attr 927 drivers/s390/cio/css.c &dev_attr_real_cssid.attr, attr 936 drivers/s390/cio/css.c &dev_attr_cm_enable.attr, attr 212 drivers/s390/cio/device.c devtype_show (struct device *dev, struct device_attribute *attr, char *buf) attr 225 drivers/s390/cio/device.c cutype_show (struct device *dev, struct device_attribute *attr, char *buf) attr 235 drivers/s390/cio/device.c modalias_show (struct device *dev, struct device_attribute *attr, char *buf) attr 247 drivers/s390/cio/device.c online_show (struct device *dev, struct device_attribute *attr, char *buf) attr 500 drivers/s390/cio/device.c static ssize_t online_store (struct device *dev, struct device_attribute *attr, attr 551 drivers/s390/cio/device.c available_show (struct device *dev, struct device_attribute *attr, char *buf) attr 576 drivers/s390/cio/device.c initiate_logging(struct device *dev, struct device_attribute *attr, attr 593 drivers/s390/cio/device.c static ssize_t vpm_show(struct device *dev, struct device_attribute *attr, attr 610 drivers/s390/cio/device.c &dev_attr_logging.attr, attr 611 drivers/s390/cio/device.c &dev_attr_vpm.attr, attr 620 drivers/s390/cio/device.c &dev_attr_devtype.attr, attr 621 drivers/s390/cio/device.c &dev_attr_cutype.attr, attr 622 drivers/s390/cio/device.c &dev_attr_modalias.attr, attr 623 drivers/s390/cio/device.c &dev_attr_online.attr, attr 624 drivers/s390/cio/device.c &dev_attr_cmb_enable.attr, attr 625 drivers/s390/cio/device.c &dev_attr_availability.attr, attr 87 drivers/s390/cio/scm.c struct device_attribute *attr, char *buf) \ attr 108 drivers/s390/cio/scm.c &dev_attr_persistence.attr, attr 109 drivers/s390/cio/scm.c &dev_attr_oper_state.attr, attr 110 drivers/s390/cio/scm.c &dev_attr_data_state.attr, attr 111 drivers/s390/cio/scm.c &dev_attr_rank.attr, attr 112 drivers/s390/cio/scm.c &dev_attr_release.attr, attr 113 drivers/s390/cio/scm.c &dev_attr_res_id.attr, attr 97 drivers/s390/cio/vfio_ccw_ops.c &mdev_type_attr_name.attr, attr 98 drivers/s390/cio/vfio_ccw_ops.c &mdev_type_attr_device_api.attr, attr 99 drivers/s390/cio/vfio_ccw_ops.c &mdev_type_attr_available_instances.attr, attr 22 drivers/s390/crypto/ap_card.c struct device_attribute *attr, char *buf) attr 32 drivers/s390/crypto/ap_card.c struct device_attribute *attr, char *buf) attr 41 drivers/s390/crypto/ap_card.c static ssize_t depth_show(struct device *dev, struct device_attribute *attr, attr 52 drivers/s390/crypto/ap_card.c struct device_attribute *attr, char *buf) attr 62 drivers/s390/crypto/ap_card.c struct device_attribute *attr, attr 76 drivers/s390/crypto/ap_card.c struct device_attribute *attr, attr 94 drivers/s390/crypto/ap_card.c struct device_attribute *attr, char *buf) attr 111 drivers/s390/crypto/ap_card.c struct device_attribute *attr, char *buf) attr 128 drivers/s390/crypto/ap_card.c struct device_attribute *attr, char *buf) attr 136 drivers/s390/crypto/ap_card.c &dev_attr_hwtype.attr, attr 137 drivers/s390/crypto/ap_card.c &dev_attr_raw_hwtype.attr, attr 138 drivers/s390/crypto/ap_card.c &dev_attr_depth.attr, attr 139 drivers/s390/crypto/ap_card.c &dev_attr_ap_functions.attr, attr 140 drivers/s390/crypto/ap_card.c &dev_attr_request_count.attr, attr 141 drivers/s390/crypto/ap_card.c &dev_attr_requestq_count.attr, attr 142 drivers/s390/crypto/ap_card.c &dev_attr_pendingq_count.attr, attr 143 drivers/s390/crypto/ap_card.c &dev_attr_modalias.attr, attr 478 drivers/s390/crypto/ap_queue.c struct device_attribute *attr, attr 491 drivers/s390/crypto/ap_queue.c struct device_attribute *attr, attr 506 drivers/s390/crypto/ap_queue.c struct device_attribute *attr, char *buf) attr 520 drivers/s390/crypto/ap_queue.c struct device_attribute *attr, char *buf) attr 534 drivers/s390/crypto/ap_queue.c struct device_attribute *attr, char *buf) attr 557 drivers/s390/crypto/ap_queue.c struct device_attribute *attr, attr 577 drivers/s390/crypto/ap_queue.c struct device_attribute *attr, char *buf) attr 596 drivers/s390/crypto/ap_queue.c &dev_attr_request_count.attr, attr 597 drivers/s390/crypto/ap_queue.c &dev_attr_requestq_count.attr, attr 598 drivers/s390/crypto/ap_queue.c &dev_attr_pendingq_count.attr, attr 599 drivers/s390/crypto/ap_queue.c &dev_attr_reset.attr, attr 600 drivers/s390/crypto/ap_queue.c &dev_attr_interrupt.attr, attr 1196 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1206 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1216 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1226 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1236 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1300 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1310 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1320 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1330 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1340 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1412 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1422 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1432 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1442 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 1452 drivers/s390/crypto/pkey_api.c struct bin_attribute *attr, attr 393 drivers/s390/crypto/vfio_ap_ops.c &mdev_type_attr_name.attr, attr 394 drivers/s390/crypto/vfio_ap_ops.c &mdev_type_attr_device_api.attr, attr 395 drivers/s390/crypto/vfio_ap_ops.c &mdev_type_attr_available_instances.attr, attr 600 drivers/s390/crypto/vfio_ap_ops.c struct device_attribute *attr, attr 666 drivers/s390/crypto/vfio_ap_ops.c struct device_attribute *attr, attr 746 drivers/s390/crypto/vfio_ap_ops.c struct device_attribute *attr, attr 808 drivers/s390/crypto/vfio_ap_ops.c struct device_attribute *attr, attr 852 drivers/s390/crypto/vfio_ap_ops.c struct device_attribute *attr, attr 901 drivers/s390/crypto/vfio_ap_ops.c struct device_attribute *attr, attr 952 drivers/s390/crypto/vfio_ap_ops.c static ssize_t matrix_show(struct device *dev, struct device_attribute *attr, attr 1003 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_assign_adapter.attr, attr 1004 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_unassign_adapter.attr, attr 1005 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_assign_domain.attr, attr 1006 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_unassign_domain.attr, attr 1007 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_assign_control_domain.attr, attr 1008 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_unassign_control_domain.attr, attr 1009 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_control_domains.attr, attr 1010 drivers/s390/crypto/vfio_ap_ops.c &dev_attr_matrix.attr, attr 162 drivers/s390/crypto/zcrypt_api.c struct device_attribute *attr, attr 187 drivers/s390/crypto/zcrypt_api.c struct device_attribute *attr, attr 204 drivers/s390/crypto/zcrypt_api.c struct device_attribute *attr, attr 229 drivers/s390/crypto/zcrypt_api.c struct device_attribute *attr, attr 246 drivers/s390/crypto/zcrypt_api.c struct device_attribute *attr, attr 271 drivers/s390/crypto/zcrypt_api.c struct device_attribute *attr, attr 288 drivers/s390/crypto/zcrypt_api.c &dev_attr_ioctlmask.attr, attr 289 drivers/s390/crypto/zcrypt_api.c &dev_attr_apmask.attr, attr 290 drivers/s390/crypto/zcrypt_api.c &dev_attr_aqmask.attr, attr 304 drivers/s390/crypto/zcrypt_api.c struct class_attribute *attr, attr 322 drivers/s390/crypto/zcrypt_api.c struct class_attribute *attr, attr 40 drivers/s390/crypto/zcrypt_card.c struct device_attribute *attr, char *buf) attr 50 drivers/s390/crypto/zcrypt_card.c struct device_attribute *attr, attr 59 drivers/s390/crypto/zcrypt_card.c struct device_attribute *attr, attr 84 drivers/s390/crypto/zcrypt_card.c struct device_attribute *attr, attr 95 drivers/s390/crypto/zcrypt_card.c &dev_attr_type.attr, attr 96 drivers/s390/crypto/zcrypt_card.c &dev_attr_online.attr, attr 97 drivers/s390/crypto/zcrypt_card.c &dev_attr_load.attr, attr 294 drivers/s390/crypto/zcrypt_ccamisc.c u16 attr; attr 354 drivers/s390/crypto/zcrypt_ccamisc.c preqparm->lv2.keyid[i].attr = (i == 2 ? 0x30 : 0x10); attr 433 drivers/s390/crypto/zcrypt_ccamisc.c u16 attr; attr 492 drivers/s390/crypto/zcrypt_ccamisc.c plv2->keyid.attr = 0x30; attr 77 drivers/s390/crypto/zcrypt_cex4.c struct device_attribute *attr, attr 94 drivers/s390/crypto/zcrypt_cex4.c &dev_attr_serialnr.attr, attr 106 drivers/s390/crypto/zcrypt_cex4.c struct device_attribute *attr, attr 144 drivers/s390/crypto/zcrypt_cex4.c &dev_attr_mkvps.attr, attr 40 drivers/s390/crypto/zcrypt_queue.c struct device_attribute *attr, attr 49 drivers/s390/crypto/zcrypt_queue.c struct device_attribute *attr, attr 76 drivers/s390/crypto/zcrypt_queue.c struct device_attribute *attr, attr 87 drivers/s390/crypto/zcrypt_queue.c &dev_attr_online.attr, attr 88 drivers/s390/crypto/zcrypt_queue.c &dev_attr_load.attr, attr 1783 drivers/s390/net/ctcm_main.c &driver_attr_group.attr, attr 25 drivers/s390/net/ctcm_sysfs.c struct device_attribute *attr, char *buf) attr 35 drivers/s390/net/ctcm_sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 114 drivers/s390/net/ctcm_sysfs.c struct device_attribute *attr, char *buf) attr 125 drivers/s390/net/ctcm_sysfs.c static ssize_t stats_write(struct device *dev, struct device_attribute *attr, attr 138 drivers/s390/net/ctcm_sysfs.c struct device_attribute *attr, char *buf) attr 148 drivers/s390/net/ctcm_sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 178 drivers/s390/net/ctcm_sysfs.c struct device_attribute *attr, char *buf) attr 196 drivers/s390/net/ctcm_sysfs.c &dev_attr_protocol.attr, attr 197 drivers/s390/net/ctcm_sysfs.c &dev_attr_type.attr, attr 198 drivers/s390/net/ctcm_sysfs.c &dev_attr_buffer.attr, attr 199 drivers/s390/net/ctcm_sysfs.c &dev_attr_stats.attr, attr 1899 drivers/s390/net/lcs.c lcs_portno_show (struct device *dev, struct device_attribute *attr, char *buf) attr 1915 drivers/s390/net/lcs.c lcs_portno_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1950 drivers/s390/net/lcs.c lcs_type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1964 drivers/s390/net/lcs.c lcs_timeout_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1974 drivers/s390/net/lcs.c lcs_timeout_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 1998 drivers/s390/net/lcs.c lcs_dev_recover_store(struct device *dev, struct device_attribute *attr, attr 2018 drivers/s390/net/lcs.c &dev_attr_portno.attr, attr 2019 drivers/s390/net/lcs.c &dev_attr_type.attr, attr 2020 drivers/s390/net/lcs.c &dev_attr_lancmd_timeout.attr, attr 2021 drivers/s390/net/lcs.c &dev_attr_recover.attr, attr 2402 drivers/s390/net/lcs.c &driver_attr_group.attr, attr 1419 drivers/s390/net/netiucv.c static ssize_t user_show(struct device *dev, struct device_attribute *attr, attr 1476 drivers/s390/net/netiucv.c static ssize_t user_write(struct device *dev, struct device_attribute *attr, attr 1515 drivers/s390/net/netiucv.c static ssize_t buffer_show (struct device *dev, struct device_attribute *attr, attr 1524 drivers/s390/net/netiucv.c static ssize_t buffer_write (struct device *dev, struct device_attribute *attr, attr 1573 drivers/s390/net/netiucv.c static ssize_t dev_fsm_show (struct device *dev, struct device_attribute *attr, attr 1585 drivers/s390/net/netiucv.c struct device_attribute *attr, char *buf) attr 1596 drivers/s390/net/netiucv.c struct device_attribute *attr, char *buf) attr 1605 drivers/s390/net/netiucv.c struct device_attribute *attr, attr 1617 drivers/s390/net/netiucv.c static ssize_t maxcq_show (struct device *dev, struct device_attribute *attr, attr 1626 drivers/s390/net/netiucv.c static ssize_t maxcq_write (struct device *dev, struct device_attribute *attr, attr 1638 drivers/s390/net/netiucv.c static ssize_t sdoio_show (struct device *dev, struct device_attribute *attr, attr 1647 drivers/s390/net/netiucv.c static ssize_t sdoio_write (struct device *dev, struct device_attribute *attr, attr 1659 drivers/s390/net/netiucv.c static ssize_t mdoio_show (struct device *dev, struct device_attribute *attr, attr 1668 drivers/s390/net/netiucv.c static ssize_t mdoio_write (struct device *dev, struct device_attribute *attr, attr 1680 drivers/s390/net/netiucv.c static ssize_t txlen_show (struct device *dev, struct device_attribute *attr, attr 1689 drivers/s390/net/netiucv.c static ssize_t txlen_write (struct device *dev, struct device_attribute *attr, attr 1701 drivers/s390/net/netiucv.c static ssize_t txtime_show (struct device *dev, struct device_attribute *attr, attr 1710 drivers/s390/net/netiucv.c static ssize_t txtime_write (struct device *dev, struct device_attribute *attr, attr 1722 drivers/s390/net/netiucv.c static ssize_t txpend_show (struct device *dev, struct device_attribute *attr, attr 1731 drivers/s390/net/netiucv.c static ssize_t txpend_write (struct device *dev, struct device_attribute *attr, attr 1743 drivers/s390/net/netiucv.c static ssize_t txmpnd_show (struct device *dev, struct device_attribute *attr, attr 1752 drivers/s390/net/netiucv.c static ssize_t txmpnd_write (struct device *dev, struct device_attribute *attr, attr 1765 drivers/s390/net/netiucv.c &dev_attr_buffer.attr, attr 1766 drivers/s390/net/netiucv.c &dev_attr_user.attr, attr 1775 drivers/s390/net/netiucv.c &dev_attr_device_fsm_state.attr, attr 1776 drivers/s390/net/netiucv.c &dev_attr_connection_fsm_state.attr, attr 1777 drivers/s390/net/netiucv.c &dev_attr_max_tx_buffer_used.attr, attr 1778 drivers/s390/net/netiucv.c &dev_attr_max_chained_skbs.attr, attr 1779 drivers/s390/net/netiucv.c &dev_attr_tx_single_write_ops.attr, attr 1780 drivers/s390/net/netiucv.c &dev_attr_tx_multi_write_ops.attr, attr 1781 drivers/s390/net/netiucv.c &dev_attr_netto_bytes.attr, attr 1782 drivers/s390/net/netiucv.c &dev_attr_max_tx_io_time.attr, attr 1783 drivers/s390/net/netiucv.c &dev_attr_tx_pending.attr, attr 1784 drivers/s390/net/netiucv.c &dev_attr_tx_max_pending.attr, attr 2121 drivers/s390/net/netiucv.c &driver_attr_connection.attr, attr 2122 drivers/s390/net/netiucv.c &driver_attr_remove.attr, attr 5813 drivers/s390/net/qeth_core_main.c &driver_attr_group.attr, attr 20 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 45 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 57 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 68 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 94 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 106 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 116 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 151 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 157 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 170 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 193 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 261 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 272 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 304 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 326 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 337 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 369 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 380 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 452 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 472 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 519 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 554 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 567 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 644 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 652 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 666 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 674 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 686 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, char *buf) attr 695 drivers/s390/net/qeth_core_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 707 drivers/s390/net/qeth_core_sys.c &dev_attr_total.attr, attr 708 drivers/s390/net/qeth_core_sys.c &dev_attr_inter.attr, attr 709 drivers/s390/net/qeth_core_sys.c &dev_attr_inter_jumbo.attr, attr 719 drivers/s390/net/qeth_core_sys.c &dev_attr_state.attr, attr 720 drivers/s390/net/qeth_core_sys.c &dev_attr_chpid.attr, attr 721 drivers/s390/net/qeth_core_sys.c &dev_attr_if_name.attr, attr 722 drivers/s390/net/qeth_core_sys.c &dev_attr_card_type.attr, attr 723 drivers/s390/net/qeth_core_sys.c &dev_attr_inbuf_size.attr, attr 724 drivers/s390/net/qeth_core_sys.c &dev_attr_portno.attr, attr 725 drivers/s390/net/qeth_core_sys.c &dev_attr_portname.attr, attr 726 drivers/s390/net/qeth_core_sys.c &dev_attr_priority_queueing.attr, attr 727 drivers/s390/net/qeth_core_sys.c &dev_attr_buffer_count.attr, attr 728 drivers/s390/net/qeth_core_sys.c &dev_attr_recover.attr, attr 729 drivers/s390/net/qeth_core_sys.c &dev_attr_performance_stats.attr, attr 730 drivers/s390/net/qeth_core_sys.c &dev_attr_layer2.attr, attr 731 drivers/s390/net/qeth_core_sys.c &dev_attr_isolation.attr, attr 732 drivers/s390/net/qeth_core_sys.c &dev_attr_hw_trap.attr, attr 733 drivers/s390/net/qeth_core_sys.c &dev_attr_switch_attrs.attr, attr 748 drivers/s390/net/qeth_core_sys.c &dev_attr_state.attr, attr 749 drivers/s390/net/qeth_core_sys.c &dev_attr_chpid.attr, attr 750 drivers/s390/net/qeth_core_sys.c &dev_attr_if_name.attr, attr 751 drivers/s390/net/qeth_core_sys.c &dev_attr_card_type.attr, attr 752 drivers/s390/net/qeth_core_sys.c &dev_attr_buffer_count.attr, attr 753 drivers/s390/net/qeth_core_sys.c &dev_attr_recover.attr, attr 13 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, char *buf, attr 67 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, char *buf) attr 74 drivers/s390/net/qeth_l2_sys.c return qeth_bridge_port_role_state_show(dev, attr, buf, 0); attr 78 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 120 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, char *buf) attr 127 drivers/s390/net/qeth_l2_sys.c return qeth_bridge_port_role_state_show(dev, attr, buf, 1); attr 134 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, char *buf) attr 151 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 187 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, char *buf) attr 210 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 255 drivers/s390/net/qeth_l2_sys.c &dev_attr_bridge_role.attr, attr 256 drivers/s390/net/qeth_l2_sys.c &dev_attr_bridge_state.attr, attr 257 drivers/s390/net/qeth_l2_sys.c &dev_attr_bridge_hostnotify.attr, attr 258 drivers/s390/net/qeth_l2_sys.c &dev_attr_bridge_reflect_promisc.attr, attr 325 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, char *buf) attr 344 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, attr 366 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, char *buf) attr 376 drivers/s390/net/qeth_l2_sys.c vnicc = qeth_l2_vnicc_sysfs_attr_to_char(attr->attr.name); attr 388 drivers/s390/net/qeth_l2_sys.c struct device_attribute *attr, attr 402 drivers/s390/net/qeth_l2_sys.c vnicc = qeth_l2_vnicc_sysfs_attr_to_char(attr->attr.name); attr 425 drivers/s390/net/qeth_l2_sys.c &dev_attr_flooding.attr, attr 426 drivers/s390/net/qeth_l2_sys.c &dev_attr_mcast_flooding.attr, attr 427 drivers/s390/net/qeth_l2_sys.c &dev_attr_learning.attr, attr 428 drivers/s390/net/qeth_l2_sys.c &dev_attr_learning_timeout.attr, attr 429 drivers/s390/net/qeth_l2_sys.c &dev_attr_takeover_setvmac.attr, attr 430 drivers/s390/net/qeth_l2_sys.c &dev_attr_takeover_learning.attr, attr 431 drivers/s390/net/qeth_l2_sys.c &dev_attr_bridge_invisible.attr, attr 432 drivers/s390/net/qeth_l2_sys.c &dev_attr_rx_bcast.attr, attr 59 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 108 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 123 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 134 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 149 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 160 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 189 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 200 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 253 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 270 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 338 drivers/s390/net/qeth_l3_sys.c &dev_attr_route4.attr, attr 339 drivers/s390/net/qeth_l3_sys.c &dev_attr_route6.attr, attr 340 drivers/s390/net/qeth_l3_sys.c &dev_attr_fake_broadcast.attr, attr 341 drivers/s390/net/qeth_l3_sys.c &dev_attr_sniffer.attr, attr 342 drivers/s390/net/qeth_l3_sys.c &dev_attr_hsuid.attr, attr 351 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 362 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 400 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 411 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, attr 475 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 543 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 573 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 587 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 598 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 632 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, char *buf) attr 643 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 658 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 672 drivers/s390/net/qeth_l3_sys.c &dev_attr_ipato_enable.attr, attr 673 drivers/s390/net/qeth_l3_sys.c &dev_attr_ipato_invert4.attr, attr 674 drivers/s390/net/qeth_l3_sys.c &dev_attr_ipato_add4.attr, attr 675 drivers/s390/net/qeth_l3_sys.c &dev_attr_ipato_del4.attr, attr 676 drivers/s390/net/qeth_l3_sys.c &dev_attr_ipato_invert6.attr, attr 677 drivers/s390/net/qeth_l3_sys.c &dev_attr_ipato_add6.attr, attr 678 drivers/s390/net/qeth_l3_sys.c &dev_attr_ipato_del6.attr, attr 724 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, attr 756 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 786 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 800 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, attr 808 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 823 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 837 drivers/s390/net/qeth_l3_sys.c &dev_attr_vipa_add4.attr, attr 838 drivers/s390/net/qeth_l3_sys.c &dev_attr_vipa_del4.attr, attr 839 drivers/s390/net/qeth_l3_sys.c &dev_attr_vipa_add6.attr, attr 840 drivers/s390/net/qeth_l3_sys.c &dev_attr_vipa_del6.attr, attr 850 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, attr 899 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 929 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 943 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, attr 951 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 966 drivers/s390/net/qeth_l3_sys.c struct device_attribute *attr, const char *buf, size_t count) attr 980 drivers/s390/net/qeth_l3_sys.c &dev_attr_rxip_add4.attr, attr 981 drivers/s390/net/qeth_l3_sys.c &dev_attr_rxip_del4.attr, attr 982 drivers/s390/net/qeth_l3_sys.c &dev_attr_rxip_add6.attr, attr 983 drivers/s390/net/qeth_l3_sys.c &dev_attr_rxip_del6.attr, attr 91 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 103 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 123 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 141 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 167 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 187 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 213 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 286 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 329 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_failed.attr, attr 330 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_in_recovery.attr, attr 331 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_port_remove.attr, attr 332 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_port_rescan.attr, attr 333 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_peer_wwnn.attr, attr 334 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_peer_wwpn.attr, attr 335 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_peer_d_id.attr, attr 336 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_card_version.attr, attr 337 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_lic_version.attr, attr 338 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_status.attr, attr 339 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_adapter_hardware_version.attr, attr 348 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 367 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 384 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_add.attr, attr 385 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_remove.attr, attr 386 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_port_failed.attr, attr 387 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_port_in_recovery.attr, attr 388 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_port_status.attr, attr 389 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_port_access_denied.attr, attr 401 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_failed.attr, attr 402 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_in_recovery.attr, attr 403 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_status.attr, attr 404 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_access_denied.attr, attr 405 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_access_shared.attr, attr 406 drivers/s390/scsi/zfcp_sysfs.c &dev_attr_unit_access_readonly.attr, attr 420 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, \ attr 450 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, \ attr 480 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr,\ attr 496 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 510 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 521 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 563 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 615 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr,\ attr 642 drivers/s390/scsi/zfcp_sysfs.c struct device_attribute *attr, attr 156 drivers/scsi/3w-9xxx.c struct device_attribute *attr, char *buf) attr 192 drivers/scsi/3w-9xxx.c .attr = { attr 120 drivers/scsi/3w-sas.c .attr = { attr 151 drivers/scsi/3w-sas.c .attr = { attr 161 drivers/scsi/3w-sas.c struct device_attribute *attr, char *buf) attr 193 drivers/scsi/3w-sas.c .attr = { attr 490 drivers/scsi/3w-xxxx.c static ssize_t tw_show_stats(struct device *dev, struct device_attribute *attr, attr 527 drivers/scsi/3w-xxxx.c .attr = { attr 2059 drivers/scsi/53c700.c NCR_700_show_active_tags(struct device *dev, struct device_attribute *attr, char *buf) attr 2067 drivers/scsi/53c700.c .attr = { attr 552 drivers/scsi/aacraid/linit.c static ssize_t aac_show_raid_level(struct device *dev, struct device_attribute *attr, char *buf) attr 565 drivers/scsi/aacraid/linit.c .attr = { attr 573 drivers/scsi/aacraid/linit.c struct device_attribute *attr, char *buf) attr 593 drivers/scsi/aacraid/linit.c .attr = { attr 1216 drivers/scsi/aacraid/linit.c struct device_attribute *attr, char *buf) attr 1235 drivers/scsi/aacraid/linit.c struct device_attribute *attr, char *buf) attr 1256 drivers/scsi/aacraid/linit.c struct device_attribute *attr, char *buf) attr 1282 drivers/scsi/aacraid/linit.c struct device_attribute *attr, attr 1296 drivers/scsi/aacraid/linit.c struct device_attribute *attr, attr 1310 drivers/scsi/aacraid/linit.c struct device_attribute *attr, attr 1324 drivers/scsi/aacraid/linit.c struct device_attribute *attr, attr 1331 drivers/scsi/aacraid/linit.c struct device_attribute *attr, char *buf) attr 1351 drivers/scsi/aacraid/linit.c struct device_attribute *attr, char *buf) attr 1358 drivers/scsi/aacraid/linit.c struct device_attribute *attr, char *buf) attr 1365 drivers/scsi/aacraid/linit.c struct device_attribute *attr, attr 1382 drivers/scsi/aacraid/linit.c struct device_attribute *attr, attr 1396 drivers/scsi/aacraid/linit.c .attr = { attr 1403 drivers/scsi/aacraid/linit.c .attr = { attr 1410 drivers/scsi/aacraid/linit.c .attr = { attr 1417 drivers/scsi/aacraid/linit.c .attr = { attr 1424 drivers/scsi/aacraid/linit.c .attr = { attr 1431 drivers/scsi/aacraid/linit.c .attr = { attr 1438 drivers/scsi/aacraid/linit.c .attr = { attr 1445 drivers/scsi/aacraid/linit.c .attr = { attr 1452 drivers/scsi/aacraid/linit.c .attr = { attr 1459 drivers/scsi/aacraid/linit.c .attr = { attr 1466 drivers/scsi/aacraid/linit.c .attr = { attr 259 drivers/scsi/aic94xx/aic94xx_init.c struct device_attribute *attr, char *buf) attr 268 drivers/scsi/aic94xx/aic94xx_init.c struct device_attribute *attr,char *buf) attr 276 drivers/scsi/aic94xx/aic94xx_init.c struct device_attribute *attr, char *buf) attr 323 drivers/scsi/aic94xx/aic94xx_init.c struct device_attribute *attr, attr 438 drivers/scsi/aic94xx/aic94xx_init.c struct device_attribute *attr, char *buf) attr 194 drivers/scsi/arcmsr/arcmsr_attr.c .attr = { attr 203 drivers/scsi/arcmsr/arcmsr_attr.c .attr = { attr 212 drivers/scsi/arcmsr/arcmsr_attr.c .attr = { attr 261 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 270 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 282 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 294 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 305 drivers/scsi/arcmsr/arcmsr_attr.c arcmsr_attr_host_fw_model(struct device *dev, struct device_attribute *attr, attr 318 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 331 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 344 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 357 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 370 drivers/scsi/arcmsr/arcmsr_attr.c struct device_attribute *attr, char *buf) attr 438 drivers/scsi/arm/eesox.c static ssize_t eesoxscsi_show_term(struct device *dev, struct device_attribute *attr, char *buf) attr 447 drivers/scsi/arm/eesox.c static ssize_t eesoxscsi_store_term(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) attr 253 drivers/scsi/arm/powertec.c static ssize_t powertecscsi_show_term(struct device *dev, struct device_attribute *attr, char *buf) attr 263 drivers/scsi/arm/powertec.c powertecscsi_store_term(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) attr 102 drivers/scsi/be2iscsi/be_main.c struct device_attribute *attr, const char *buf,\ attr 1135 drivers/scsi/be2iscsi/be_mgmt.c beiscsi_drvr_ver_disp(struct device *dev, struct device_attribute *attr, attr 1151 drivers/scsi/be2iscsi/be_mgmt.c beiscsi_fw_ver_disp(struct device *dev, struct device_attribute *attr, attr 1170 drivers/scsi/be2iscsi/be_mgmt.c beiscsi_active_session_disp(struct device *dev, struct device_attribute *attr, attr 1202 drivers/scsi/be2iscsi/be_mgmt.c beiscsi_free_session_disp(struct device *dev, struct device_attribute *attr, attr 1232 drivers/scsi/be2iscsi/be_mgmt.c beiscsi_adap_family_disp(struct device *dev, struct device_attribute *attr, attr 1271 drivers/scsi/be2iscsi/be_mgmt.c beiscsi_phys_port_disp(struct device *dev, struct device_attribute *attr, attr 203 drivers/scsi/be2iscsi/be_mgmt.h struct device_attribute *attr, char *buf); attr 206 drivers/scsi/be2iscsi/be_mgmt.h struct device_attribute *attr, char *buf); attr 209 drivers/scsi/be2iscsi/be_mgmt.h struct device_attribute *attr, char *buf); attr 212 drivers/scsi/be2iscsi/be_mgmt.h struct device_attribute *attr, char *buf); attr 216 drivers/scsi/be2iscsi/be_mgmt.h struct device_attribute *attr, char *buf); attr 219 drivers/scsi/be2iscsi/be_mgmt.h struct device_attribute *attr, char *buf); attr 415 drivers/scsi/bfa/bfa.h void bfa_iocfc_get_attr(struct bfa_s *bfa, struct bfa_iocfc_attr_s *attr); attr 419 drivers/scsi/bfa/bfa.h struct bfa_iocfc_intr_attr_s *attr); attr 1309 drivers/scsi/bfa/bfa_core.c bfa->ioc.attr->pwwn = bfa->iocfc.cfgrsp->pbc_cfg.pbc_pwwn; attr 1310 drivers/scsi/bfa/bfa_core.c bfa->ioc.attr->nwwn = bfa->iocfc.cfgrsp->pbc_cfg.pbc_nwwn; attr 1340 drivers/scsi/bfa/bfa_core.c bfa->ioc.attr->pwwn = msg->pwwn; attr 1341 drivers/scsi/bfa/bfa_core.c bfa->ioc.attr->nwwn = msg->nwwn; attr 1354 drivers/scsi/bfa/bfa_core.c u32 card_type = bfa->ioc.attr->card_type; attr 1367 drivers/scsi/bfa/bfa_core.c bfa_faa_query(struct bfa_s *bfa, struct bfa_faa_attr_s *attr, attr 1381 drivers/scsi/bfa/bfa_core.c iocfc->faa_args.faa_attr = attr; attr 1608 drivers/scsi/bfa/bfa_core.c bfa_iocfc_get_attr(struct bfa_s *bfa, struct bfa_iocfc_attr_s *attr) attr 1612 drivers/scsi/bfa/bfa_core.c attr->intr_attr.coalesce = iocfc->cfginfo->intr_attr.coalesce; attr 1614 drivers/scsi/bfa/bfa_core.c attr->intr_attr.delay = iocfc->cfginfo->intr_attr.delay ? attr 1618 drivers/scsi/bfa/bfa_core.c attr->intr_attr.latency = iocfc->cfginfo->intr_attr.latency ? attr 1622 drivers/scsi/bfa/bfa_core.c attr->config = iocfc->cfg; attr 1626 drivers/scsi/bfa/bfa_core.c bfa_iocfc_israttr_set(struct bfa_s *bfa, struct bfa_iocfc_intr_attr_s *attr) attr 1631 drivers/scsi/bfa/bfa_core.c iocfc->cfginfo->intr_attr.coalesce = attr->coalesce; attr 1632 drivers/scsi/bfa/bfa_core.c iocfc->cfginfo->intr_attr.delay = cpu_to_be16(attr->delay); attr 1633 drivers/scsi/bfa/bfa_core.c iocfc->cfginfo->intr_attr.latency = cpu_to_be16(attr->latency); attr 1648 drivers/scsi/bfa/bfa_core.c bfa_trc(bfa, attr->delay); attr 1649 drivers/scsi/bfa/bfa_core.c bfa_trc(bfa, attr->latency); attr 1108 drivers/scsi/bfa/bfa_defs_svc.h } attr; attr 60 drivers/scsi/bfa/bfa_fcs.c port_cfg->nwwn = ioc->attr->nwwn; attr 61 drivers/scsi/bfa/bfa_fcs.c port_cfg->pwwn = ioc->attr->pwwn; attr 747 drivers/scsi/bfa/bfa_fcs.c port_cfg->nwwn = fabric->fcs->bfa->ioc.attr->nwwn; attr 748 drivers/scsi/bfa/bfa_fcs.c port_cfg->pwwn = fabric->fcs->bfa->ioc.attr->pwwn; attr 462 drivers/scsi/bfa/bfa_fcs.h struct bfa_rport_attr_s *attr); attr 588 drivers/scsi/bfa/bfa_fcs.h struct bfa_itnim_attr_s *attr); attr 594 drivers/scsi/bfa/bfa_fcs.h struct bfa_itnim_attr_s *attr); attr 759 drivers/scsi/bfa/bfa_fcs_fcpim.c struct bfa_itnim_attr_s *attr) attr 768 drivers/scsi/bfa/bfa_fcs_fcpim.c attr->state = bfa_sm_to_state(itnim_sm_table, itnim->sm); attr 769 drivers/scsi/bfa/bfa_fcs_fcpim.c attr->retry = itnim->seq_rec; attr 770 drivers/scsi/bfa/bfa_fcs_fcpim.c attr->rec_support = itnim->rec_support; attr 771 drivers/scsi/bfa/bfa_fcs_fcpim.c attr->conf_comp = itnim->conf_comp; attr 772 drivers/scsi/bfa/bfa_fcs_fcpim.c attr->task_retry_id = itnim->task_retry_id; attr 1906 drivers/scsi/bfa/bfa_fcs_lport.c struct fdmi_attr_s *attr; attr 1933 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 1934 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_NODENAME); attr 1936 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &bfa_fcs_lport_get_nwwn(port), templen); attr 1937 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 1940 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 1946 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 1947 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MANUFACTURER); attr 1949 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->manufacturer, templen); attr 1951 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 1954 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 1960 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 1961 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_SERIALNUM); attr 1963 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->serial_num, templen); attr 1965 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 1968 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 1974 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 1975 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MODEL); attr 1977 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->model, templen); attr 1979 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 1982 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 1988 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 1989 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MODEL_DESC); attr 1991 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->model_desc, templen); attr 1993 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 1996 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2003 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2004 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_HW_VERSION); attr 2006 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->hw_version, templen); attr 2008 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2011 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2018 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2019 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_DRIVER_VERSION); attr 2021 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->driver_version, templen); attr 2023 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2026 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2033 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2034 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_ROM_VERSION); attr 2036 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->option_rom_ver, templen); attr 2038 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2041 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2045 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2046 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_FW_VERSION); attr 2048 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->fw_version, templen); attr 2050 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2053 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2060 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2061 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_OS_NAME); attr 2063 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_hba_attr->os_name, templen); attr 2065 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2068 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2075 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2076 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MAX_CT); attr 2078 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_hba_attr->max_ct_pyld, templen); attr 2080 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2083 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2089 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2090 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_NODE_SYM_NAME); attr 2092 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_hba_attr->node_sym_name, templen); attr 2094 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2097 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2100 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2101 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_VENDOR_ID); attr 2103 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_hba_attr->vendor_info, templen); attr 2105 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2108 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2111 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2112 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_NUM_PORTS); attr 2114 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_hba_attr->num_ports, templen); attr 2116 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2119 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2122 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2123 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_FABRIC_NAME); attr 2125 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_hba_attr->fabric_name, templen); attr 2127 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2130 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2133 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2134 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_BIOS_VER); attr 2136 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_hba_attr->bios_ver, templen); attr 2137 drivers/scsi/bfa/bfa_fcs_lport.c templen = fc_roundup(attr->len, sizeof(u32)); attr 2138 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2141 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2148 drivers/scsi/bfa/bfa_fcs_lport.c len += ((sizeof(attr->type) + sizeof(attr->len)) * count); attr 2241 drivers/scsi/bfa/bfa_fcs_lport.c struct fdmi_attr_s *attr; attr 2262 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2263 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_FC4_TYPES); attr 2265 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_port_attr.supp_fc4_types, templen); attr 2266 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2269 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = attr 2270 drivers/scsi/bfa/bfa_fcs_lport.c cpu_to_be16(templen + sizeof(attr->type) + attr 2276 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2277 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_SUPP_SPEED); attr 2279 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.supp_speed, templen); attr 2280 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2283 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = attr 2284 drivers/scsi/bfa/bfa_fcs_lport.c cpu_to_be16(templen + sizeof(attr->type) + attr 2290 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2291 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_PORT_SPEED); attr 2293 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.curr_speed, templen); attr 2294 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2297 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2303 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2304 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_FRAME_SIZE); attr 2306 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.max_frm_size, templen); attr 2307 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2310 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2317 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2318 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_DEV_NAME); attr 2320 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_port_attr.os_device_name, templen); attr 2322 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2325 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2332 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2333 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_HOST_NAME); attr 2335 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_port_attr.host_name, templen); attr 2337 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2340 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2345 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2346 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_NODE_NAME); attr 2348 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.node_name, templen); attr 2350 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2353 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2356 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2357 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_PORT_NAME); attr 2359 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.port_name, templen); attr 2361 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(attr->len) + templen; attr 2364 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2368 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2369 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = attr 2372 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, attr 2375 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + attr 2379 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + attr 2380 drivers/scsi/bfa/bfa_fcs_lport.c sizeof(attr->type) + sizeof(templen)); attr 2383 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2384 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_PORT_TYPE); attr 2386 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.port_type, templen); attr 2388 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2391 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2394 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2395 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_SUPP_COS); attr 2397 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.scos, templen); attr 2399 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2402 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2405 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2406 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_PORT_FAB_NAME); attr 2408 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.port_fabric_name, templen); attr 2410 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2413 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2416 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2417 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_PORT_FC4_TYPE); attr 2419 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, fcs_port_attr.port_act_fc4_type, attr 2422 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2425 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2428 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2429 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_PORT_STATE); attr 2431 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.port_state, templen); attr 2433 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2436 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2439 drivers/scsi/bfa/bfa_fcs_lport.c attr = (struct fdmi_attr_s *) curr_ptr; attr 2440 drivers/scsi/bfa/bfa_fcs_lport.c attr->type = cpu_to_be16(FDMI_PORT_ATTRIB_PORT_NUM_RPRT); attr 2442 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.num_ports, templen); attr 2444 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; attr 2447 drivers/scsi/bfa/bfa_fcs_lport.c attr->len = cpu_to_be16(templen + sizeof(attr->type) + attr 2455 drivers/scsi/bfa/bfa_fcs_lport.c len += ((sizeof(attr->type) + sizeof(attr->len)) * count); attr 6851 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_vport_attr_s *attr) attr 6853 drivers/scsi/bfa/bfa_fcs_lport.c if (vport == NULL || attr == NULL) attr 6856 drivers/scsi/bfa/bfa_fcs_lport.c memset(attr, 0, sizeof(struct bfa_vport_attr_s)); attr 6858 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_lport_get_attr(&vport->lport, &attr->port_attr); attr 6859 drivers/scsi/bfa/bfa_fcs_lport.c attr->vport_state = bfa_sm_to_state(vport_sm_table, vport->sm); attr 1966 drivers/scsi/bfa/bfa_ioc.c struct bfi_ioc_attr_s *attr = ioc->attr; attr 1968 drivers/scsi/bfa/bfa_ioc.c attr->adapter_prop = be32_to_cpu(attr->adapter_prop); attr 1969 drivers/scsi/bfa/bfa_ioc.c attr->card_type = be32_to_cpu(attr->card_type); attr 1970 drivers/scsi/bfa/bfa_ioc.c attr->maxfrsize = be16_to_cpu(attr->maxfrsize); attr 1971 drivers/scsi/bfa/bfa_ioc.c ioc->fcmode = (attr->port_mode == BFI_PORT_MODE_FC); attr 1972 drivers/scsi/bfa/bfa_ioc.c attr->mfg_year = be16_to_cpu(attr->mfg_year); attr 2491 drivers/scsi/bfa/bfa_ioc.c ioc->attr = (struct bfi_ioc_attr_s *) dm_kva; attr 2698 drivers/scsi/bfa/bfa_ioc.c ioc_attr = ioc->attr; attr 2722 drivers/scsi/bfa/bfa_ioc.c ad_attr->pwwn = ioc->attr->pwwn; attr 2749 drivers/scsi/bfa/bfa_ioc.c return (ioc->attr->port_mode == BFI_PORT_MODE_FC) attr 2758 drivers/scsi/bfa/bfa_ioc.c (void *)ioc->attr->brcd_serialnum, attr 2766 drivers/scsi/bfa/bfa_ioc.c memcpy(fw_ver, ioc->attr->fw_version, BFA_VERSION_LEN); attr 2780 drivers/scsi/bfa/bfa_ioc.c chip_rev[4] = ioc->attr->asic_rev; attr 2788 drivers/scsi/bfa/bfa_ioc.c memcpy(optrom_ver, ioc->attr->optrom_version, attr 2808 drivers/scsi/bfa/bfa_ioc.c ioc_attr = ioc->attr; attr 2887 drivers/scsi/bfa/bfa_ioc.c return ioc->attr->fcoe_mac; attr 2889 drivers/scsi/bfa/bfa_ioc.c return ioc->attr->mac; attr 2897 drivers/scsi/bfa/bfa_ioc.c m = ioc->attr->mfg_mac; attr 2898 drivers/scsi/bfa/bfa_ioc.c if (bfa_mfg_is_old_wwn_mac_model(ioc->attr->card_type)) attr 2924 drivers/scsi/bfa/bfa_ioc.c aen_entry->aen_data.ioc.pwwn = ioc->attr->pwwn; attr 2927 drivers/scsi/bfa/bfa_ioc.c aen_entry->aen_data.ioc.pwwn = ioc->attr->pwwn; attr 3723 drivers/scsi/bfa/bfa_ioc.c aen_entry->aen_data.port.pwwn = sfp->ioc->attr->pwwn; attr 4144 drivers/scsi/bfa/bfa_ioc.c if (bfa_mfg_is_mezz(sfp->ioc->attr->card_type)) attr 4203 drivers/scsi/bfa/bfa_ioc.c aen_entry->aen_data.audit.pwwn = ioc->attr->pwwn; attr 4372 drivers/scsi/bfa/bfa_ioc.c struct bfa_flash_attr_s *attr, *f; attr 4374 drivers/scsi/bfa/bfa_ioc.c attr = (struct bfa_flash_attr_s *) flash->ubuf; attr 4376 drivers/scsi/bfa/bfa_ioc.c attr->status = be32_to_cpu(f->status); attr 4377 drivers/scsi/bfa/bfa_ioc.c attr->npart = be32_to_cpu(f->npart); attr 4378 drivers/scsi/bfa/bfa_ioc.c bfa_trc(flash, attr->status); attr 4379 drivers/scsi/bfa/bfa_ioc.c bfa_trc(flash, attr->npart); attr 4380 drivers/scsi/bfa/bfa_ioc.c for (i = 0; i < attr->npart; i++) { attr 4381 drivers/scsi/bfa/bfa_ioc.c attr->part[i].part_type = attr 4383 drivers/scsi/bfa/bfa_ioc.c attr->part[i].part_instance = attr 4385 drivers/scsi/bfa/bfa_ioc.c attr->part[i].part_off = attr 4387 drivers/scsi/bfa/bfa_ioc.c attr->part[i].part_size = attr 4389 drivers/scsi/bfa/bfa_ioc.c attr->part[i].part_len = attr 4391 drivers/scsi/bfa/bfa_ioc.c attr->part[i].part_status = attr 4535 drivers/scsi/bfa/bfa_ioc.c bfa_flash_get_attr(struct bfa_flash_s *flash, struct bfa_flash_attr_s *attr, attr 4551 drivers/scsi/bfa/bfa_ioc.c flash->ubuf = (u8 *) attr; attr 5313 drivers/scsi/bfa/bfa_ioc.c return (phy->ioc->attr->card_type == BFA_MFG_TYPE_LIGHTNING); attr 5529 drivers/scsi/bfa/bfa_ioc.c struct bfa_phy_attr_s *attr, bfa_cb_phy_t cbfn, void *cbarg) attr 5549 drivers/scsi/bfa/bfa_ioc.c phy->ubuf = (uint8_t *) attr; attr 5732 drivers/scsi/bfa/bfa_ioc.c struct bfa_phy_attr_s *attr = attr 5734 drivers/scsi/bfa/bfa_ioc.c bfa_phy_ntoh32((u32 *)attr, (u32 *)phy->dbuf_kva, attr 5736 drivers/scsi/bfa/bfa_ioc.c bfa_trc(phy, attr->status); attr 5737 drivers/scsi/bfa/bfa_ioc.c bfa_trc(phy, attr->length); attr 6359 drivers/scsi/bfa/bfa_ioc.c fru->ioc->attr->card_type != BFA_MFG_TYPE_CHINOOK2) attr 6362 drivers/scsi/bfa/bfa_ioc.c if (fru->ioc->attr->card_type != BFA_MFG_TYPE_CHINOOK) attr 6411 drivers/scsi/bfa/bfa_ioc.c if (fru->ioc->attr->card_type != BFA_MFG_TYPE_CHINOOK && attr 6412 drivers/scsi/bfa/bfa_ioc.c fru->ioc->attr->card_type != BFA_MFG_TYPE_CHINOOK2) attr 6453 drivers/scsi/bfa/bfa_ioc.c if (fru->ioc->attr->card_type == BFA_MFG_TYPE_CHINOOK || attr 6454 drivers/scsi/bfa/bfa_ioc.c fru->ioc->attr->card_type == BFA_MFG_TYPE_CHINOOK2) attr 315 drivers/scsi/bfa/bfa_ioc.h struct bfi_ioc_attr_s *attr; attr 498 drivers/scsi/bfa/bfa_ioc.h struct bfa_flash_attr_s *attr, attr 690 drivers/scsi/bfa/bfa_ioc.h struct bfa_phy_attr_s *attr, attr 819 drivers/scsi/bfa/bfa_ioc.h #define bfa_ioc_maxfrsize(__ioc) ((__ioc)->attr->maxfrsize) attr 820 drivers/scsi/bfa/bfa_ioc.h #define bfa_ioc_rx_bbcredit(__ioc) ((__ioc)->attr->rx_bbcredit) attr 823 drivers/scsi/bfa/bfa_ioc.h BFI_ADAPTER_GETP(SPEED, (__ioc)->attr->adapter_prop)) attr 825 drivers/scsi/bfa/bfa_ioc.h BFI_ADAPTER_GETP(NPORTS, (__ioc)->attr->adapter_prop) attr 518 drivers/scsi/bfa/bfa_port.c struct bfa_cee_lldp_cfg_s *lldp_cfg = &cee->attr->lldp_remote; attr 524 drivers/scsi/bfa/bfa_port.c memcpy(cee->attr, cee->attr_dma.kva, attr 628 drivers/scsi/bfa/bfa_port.c cee->attr = (struct bfa_cee_attr_s *) dma_kva; attr 645 drivers/scsi/bfa/bfa_port.c bfa_cee_get_attr(struct bfa_cee_s *cee, struct bfa_cee_attr_s *attr, attr 662 drivers/scsi/bfa/bfa_port.c cee->attr = attr; attr 93 drivers/scsi/bfa/bfa_port.h struct bfa_cee_attr_s *attr; attr 111 drivers/scsi/bfa/bfa_port.h struct bfa_cee_attr_s *attr, attr 2217 drivers/scsi/bfa/bfa_svc.c pevent->link_state.attr.vc_fcf.fcf.fipenabled); attr 2219 drivers/scsi/bfa/bfa_svc.c pevent->link_state.attr.vc_fcf.fcf.fipfailed); attr 2221 drivers/scsi/bfa/bfa_svc.c if (pevent->link_state.attr.vc_fcf.fcf.fipfailed) attr 3110 drivers/scsi/bfa/bfa_svc.c &pevent->link_state.attr.loop_info); attr 3116 drivers/scsi/bfa/bfa_svc.c fcport->qos_vc_attr = pevent->link_state.attr.vc_fcf.qos_vc_attr; attr 3119 drivers/scsi/bfa/bfa_svc.c fcport->bbcr_attr = pevent->link_state.attr.bbcr_attr; attr 3127 drivers/scsi/bfa/bfa_svc.c trunk->attr.state = BFA_TRUNK_DISABLED; attr 3131 drivers/scsi/bfa/bfa_svc.c be16_to_cpu(pevent->link_state.attr.vc_fcf.fcf.vlan); attr 3227 drivers/scsi/bfa/bfa_svc.c fcport->pwwn = fcport->bfa->ioc.attr->pwwn; attr 3228 drivers/scsi/bfa/bfa_svc.c fcport->nwwn = fcport->bfa->ioc.attr->nwwn; attr 3426 drivers/scsi/bfa/bfa_svc.c bfa_trc(fcport->bfa, trunk->attr.state); attr 3433 drivers/scsi/bfa/bfa_svc.c state_prev = trunk->attr.state; attr 3434 drivers/scsi/bfa/bfa_svc.c if (fcport->cfg.trunked && (trunk->attr.state != BFA_TRUNK_DISABLED)) attr 3435 drivers/scsi/bfa/bfa_svc.c trunk->attr.state = scn->trunk_state; attr 3436 drivers/scsi/bfa/bfa_svc.c trunk->attr.speed = scn->trunk_speed; attr 3438 drivers/scsi/bfa/bfa_svc.c lattr = &trunk->attr.link_attr[i]; attr 3481 drivers/scsi/bfa/bfa_svc.c if ((state_prev != trunk->attr.state) || attr 3498 drivers/scsi/bfa/bfa_svc.c if (fcport->trunk.attr.state == BFA_TRUNK_ONLINE) attr 3501 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.state = BFA_TRUNK_OFFLINE; attr 3502 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.speed = BFA_PORT_SPEED_UNKNOWN; attr 3504 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.link_attr[i].trunk_wwn = 0; attr 3505 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.link_attr[i].fctl = attr 3507 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.link_attr[i].link_state = attr 3509 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.link_attr[i].speed = attr 3511 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.link_attr[i].deskew = 0; attr 3571 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.state = attr 3574 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.state = attr 3807 drivers/scsi/bfa/bfa_svc.c (fcport->trunk.attr.state != BFA_TRUNK_DISABLED)) attr 3812 drivers/scsi/bfa/bfa_svc.c if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type)) attr 3958 drivers/scsi/bfa/bfa_svc.c bfa_fcport_get_attr(struct bfa_s *bfa, struct bfa_port_attr_s *attr) attr 3962 drivers/scsi/bfa/bfa_svc.c memset(attr, 0, sizeof(struct bfa_port_attr_s)); attr 3964 drivers/scsi/bfa/bfa_svc.c attr->nwwn = fcport->nwwn; attr 3965 drivers/scsi/bfa/bfa_svc.c attr->pwwn = fcport->pwwn; attr 3967 drivers/scsi/bfa/bfa_svc.c attr->factorypwwn = bfa->ioc.attr->mfg_pwwn; attr 3968 drivers/scsi/bfa/bfa_svc.c attr->factorynwwn = bfa->ioc.attr->mfg_nwwn; attr 3970 drivers/scsi/bfa/bfa_svc.c memcpy(&attr->pport_cfg, &fcport->cfg, attr 3973 drivers/scsi/bfa/bfa_svc.c attr->pport_cfg.speed = fcport->cfg.speed; attr 3974 drivers/scsi/bfa/bfa_svc.c attr->speed_supported = fcport->speed_sup; attr 3975 drivers/scsi/bfa/bfa_svc.c attr->speed = fcport->speed; attr 3976 drivers/scsi/bfa/bfa_svc.c attr->cos_supported = FC_CLASS_3; attr 3979 drivers/scsi/bfa/bfa_svc.c attr->pport_cfg.topology = fcport->cfg.topology; attr 3980 drivers/scsi/bfa/bfa_svc.c attr->topology = fcport->topology; attr 3981 drivers/scsi/bfa/bfa_svc.c attr->pport_cfg.trunked = fcport->cfg.trunked; attr 3984 drivers/scsi/bfa/bfa_svc.c attr->beacon = fcport->beacon; attr 3985 drivers/scsi/bfa/bfa_svc.c attr->link_e2e_beacon = fcport->link_e2e_beacon; attr 3987 drivers/scsi/bfa/bfa_svc.c attr->pport_cfg.path_tov = bfa_fcpim_path_tov_get(bfa); attr 3988 drivers/scsi/bfa/bfa_svc.c attr->pport_cfg.q_depth = bfa_fcpim_qdepth_get(bfa); attr 3989 drivers/scsi/bfa/bfa_svc.c attr->port_state = bfa_sm_to_state(hal_port_sm_table, fcport->sm); attr 3991 drivers/scsi/bfa/bfa_svc.c attr->fec_state = fcport->fec_state; attr 3995 drivers/scsi/bfa/bfa_svc.c attr->port_state = BFA_PORT_ST_PREBOOT_DISABLED; attr 3998 drivers/scsi/bfa/bfa_svc.c attr->port_state = BFA_PORT_ST_IOCDIS; attr 4000 drivers/scsi/bfa/bfa_svc.c attr->port_state = BFA_PORT_ST_FWMISMATCH; attr 4004 drivers/scsi/bfa/bfa_svc.c attr->fcoe_vlan = fcport->fcoe_vlan; attr 4177 drivers/scsi/bfa/bfa_svc.c fcport->trunk.attr.state == BFA_TRUNK_ONLINE); attr 4206 drivers/scsi/bfa/bfa_svc.c if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type) && attr 4207 drivers/scsi/bfa/bfa_svc.c (bfa->ioc.attr->card_type != BFA_MFG_TYPE_CHINOOK)) attr 5950 drivers/scsi/bfa/bfa_svc.c struct bfa_port_attr_s attr; attr 5981 drivers/scsi/bfa/bfa_svc.c bfa_fcport_get_attr(bfa, &attr); attr 5982 drivers/scsi/bfa/bfa_svc.c bfa_trc(fcdiag, attr.speed_supported); attr 5983 drivers/scsi/bfa/bfa_svc.c if (speed > attr.speed_supported) attr 6002 drivers/scsi/bfa/bfa_svc.c if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type)) { attr 6649 drivers/scsi/bfa/bfa_svc.c if (bfa_mfg_is_mezz(dport->bfa->ioc.attr->card_type)) { attr 453 drivers/scsi/bfa/bfa_svc.h struct bfa_trunk_attr_s attr; attr 540 drivers/scsi/bfa/bfa_svc.h void bfa_fcport_get_attr(struct bfa_s *bfa, struct bfa_port_attr_s *attr); attr 682 drivers/scsi/bfa/bfa_svc.h bfa_status_t bfa_faa_query(struct bfa_s *bfa, struct bfa_faa_attr_s *attr, attr 151 drivers/scsi/bfa/bfad_attr.c struct bfa_port_attr_s attr; attr 153 drivers/scsi/bfa/bfad_attr.c bfa_fcport_get_attr(&bfad->bfa, &attr); attr 155 drivers/scsi/bfa/bfad_attr.c switch (attr.port_state) { attr 207 drivers/scsi/bfa/bfad_attr.c struct bfa_port_attr_s attr; attr 209 drivers/scsi/bfa/bfad_attr.c bfa_fcport_get_attr(&bfad->bfa, &attr); attr 210 drivers/scsi/bfa/bfad_attr.c switch (attr.speed) { attr 704 drivers/scsi/bfa/bfad_attr.c bfad_im_serial_num_show(struct device *dev, struct device_attribute *attr, attr 718 drivers/scsi/bfa/bfad_attr.c bfad_im_model_show(struct device *dev, struct device_attribute *attr, attr 732 drivers/scsi/bfa/bfad_attr.c bfad_im_model_desc_show(struct device *dev, struct device_attribute *attr, attr 812 drivers/scsi/bfa/bfad_attr.c bfad_im_node_name_show(struct device *dev, struct device_attribute *attr, attr 826 drivers/scsi/bfa/bfad_attr.c bfad_im_symbolic_name_show(struct device *dev, struct device_attribute *attr, attr 843 drivers/scsi/bfa/bfad_attr.c bfad_im_hw_version_show(struct device *dev, struct device_attribute *attr, attr 857 drivers/scsi/bfa/bfad_attr.c bfad_im_drv_version_show(struct device *dev, struct device_attribute *attr, attr 865 drivers/scsi/bfa/bfad_attr.c struct device_attribute *attr, char *buf) attr 878 drivers/scsi/bfa/bfad_attr.c bfad_im_fw_version_show(struct device *dev, struct device_attribute *attr, attr 892 drivers/scsi/bfa/bfad_attr.c bfad_im_num_of_ports_show(struct device *dev, struct device_attribute *attr, attr 905 drivers/scsi/bfa/bfad_attr.c bfad_im_drv_name_show(struct device *dev, struct device_attribute *attr, attr 913 drivers/scsi/bfa/bfad_attr.c struct device_attribute *attr, char *buf) attr 241 drivers/scsi/bfa/bfad_bsg.c iocmd->status = bfa_iocfc_israttr_set(&bfad->bfa, &iocmd->attr); attr 298 drivers/scsi/bfa/bfad_bsg.c bfa_fcport_get_attr(&bfad->bfa, &iocmd->attr); attr 302 drivers/scsi/bfa/bfad_bsg.c if (iocmd->attr.topology != BFA_PORT_TOPOLOGY_NONE) attr 303 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.pid = port_attr.pid; attr 305 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.pid = 0; attr 307 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.port_type = port_attr.port_type; attr 308 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.loopback = port_attr.loopback; attr 309 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.authfail = port_attr.authfail; attr 310 drivers/scsi/bfa/bfad_bsg.c strlcpy(iocmd->attr.port_symname.symname, attr 312 drivers/scsi/bfa/bfad_bsg.c sizeof(iocmd->attr.port_symname.symname)); attr 438 drivers/scsi/bfa/bfad_bsg.c bfa_fcport_get_bbcr_attr(&bfad->bfa, &iocmd->attr); attr 623 drivers/scsi/bfa/bfad_bsg.c bfa_fcs_rport_get_attr(fcs_rport, &iocmd->attr); attr 1069 drivers/scsi/bfa/bfad_bsg.c iocmd->rpwwn, &iocmd->attr); attr 1516 drivers/scsi/bfa/bfad_bsg.c iocmd->status = bfa_flash_get_attr(BFA_FLASH(&bfad->bfa), &iocmd->attr, attr 1883 drivers/scsi/bfa/bfad_bsg.c &iocmd->attr, bfad_hcb_comp, &fcomp); attr 1951 drivers/scsi/bfa/bfad_bsg.c struct bfa_vhba_attr_s *attr = &iocmd->attr; attr 1955 drivers/scsi/bfa/bfad_bsg.c attr->pwwn = bfad->bfa.ioc.attr->pwwn; attr 1956 drivers/scsi/bfa/bfad_bsg.c attr->nwwn = bfad->bfa.ioc.attr->nwwn; attr 1957 drivers/scsi/bfa/bfad_bsg.c attr->plog_enabled = (bfa_boolean_t)bfad->bfa.plog->plog_enabled; attr 1958 drivers/scsi/bfa/bfad_bsg.c attr->io_profile = bfa_fcpim_get_io_profile(&bfad->bfa); attr 1959 drivers/scsi/bfa/bfad_bsg.c attr->path_tov = bfa_fcpim_path_tov_get(&bfad->bfa); attr 2306 drivers/scsi/bfa/bfad_bsg.c trunk->attr.state = BFA_TRUNK_OFFLINE; attr 2310 drivers/scsi/bfa/bfad_bsg.c trunk->attr.state = BFA_TRUNK_DISABLED; attr 2339 drivers/scsi/bfa/bfad_bsg.c memcpy((void *)&iocmd->attr, (void *)&trunk->attr, attr 2341 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.port_id = bfa_lps_get_base_pid(&bfad->bfa); attr 2389 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.state = fcport->qos_attr.state; attr 2390 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.total_bb_cr = attr 2392 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high; attr 2393 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; attr 2394 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low; attr 2395 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op; attr 2414 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.total_vc_count = be16_to_cpu(bfa_vc_attr->total_vc_count); attr 2415 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.shared_credit = be16_to_cpu(bfa_vc_attr->shared_credit); attr 2416 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.elp_opmode_flags = attr 2420 drivers/scsi/bfa/bfad_bsg.c while (i < iocmd->attr.total_vc_count) { attr 2421 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.vc_info[i].vc_credit = attr 2423 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.vc_info[i].borrow_credit = attr 2425 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.vc_info[i].priority = attr 256 drivers/scsi/bfa/bfad_bsg.h struct bfa_iocfc_intr_attr_s attr; attr 263 drivers/scsi/bfa/bfad_bsg.h struct bfa_port_attr_s attr; attr 331 drivers/scsi/bfa/bfad_bsg.h struct bfa_rport_attr_s attr; attr 441 drivers/scsi/bfa/bfad_bsg.h struct bfa_itnim_attr_s attr; attr 505 drivers/scsi/bfa/bfad_bsg.h struct bfa_bbcr_attr_s attr; attr 551 drivers/scsi/bfa/bfad_bsg.h struct bfa_flash_attr_s attr; attr 657 drivers/scsi/bfa/bfad_bsg.h struct bfa_phy_attr_s attr; attr 689 drivers/scsi/bfa/bfad_bsg.h struct bfa_vhba_attr_s attr; attr 717 drivers/scsi/bfa/bfad_bsg.h struct bfa_trunk_attr_s attr; attr 724 drivers/scsi/bfa/bfad_bsg.h struct bfa_qos_attr_s attr; attr 731 drivers/scsi/bfa/bfad_bsg.h struct bfa_qos_vc_attr_s attr; attr 2915 drivers/scsi/bnx2fc/bnx2fc_fcoe.c bnx2fc_tm_timeout_show(struct device *dev, struct device_attribute *attr, attr 2929 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct device_attribute *attr, const char *buf, size_t count) attr 39 drivers/scsi/bnx2i/bnx2i_sysfs.c struct device_attribute *attr, char *buf) attr 58 drivers/scsi/bnx2i/bnx2i_sysfs.c struct device_attribute *attr, attr 95 drivers/scsi/bnx2i/bnx2i_sysfs.c struct device_attribute *attr, char *buf) attr 112 drivers/scsi/bnx2i/bnx2i_sysfs.c struct device_attribute *attr, attr 1363 drivers/scsi/csiostor/csio_scsi.c struct device_attribute *attr, char *buf) attr 1377 drivers/scsi/csiostor/csio_scsi.c struct device_attribute *attr, const char *buf, size_t count) attr 1403 drivers/scsi/csiostor/csio_scsi.c struct device_attribute *attr, const char *buf, size_t count) attr 1429 drivers/scsi/csiostor/csio_scsi.c struct device_attribute *attr, char *buf) attr 1439 drivers/scsi/csiostor/csio_scsi.c struct device_attribute *attr, const char *buf, size_t count) attr 1473 drivers/scsi/csiostor/csio_scsi.c struct device_attribute *attr, char *buf) attr 2623 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2640 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2657 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2674 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2691 drivers/scsi/cxlflash/main.c struct device_attribute *attr, char *buf) attr 2722 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2761 drivers/scsi/cxlflash/main.c struct device_attribute *attr, char *buf) attr 2816 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2833 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2850 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2867 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2887 drivers/scsi/cxlflash/main.c struct device_attribute *attr, char *buf) attr 2908 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 2965 drivers/scsi/cxlflash/main.c struct device_attribute *attr, char *buf) attr 2988 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 3050 drivers/scsi/cxlflash/main.c struct device_attribute *attr, char *buf) attr 3073 drivers/scsi/cxlflash/main.c struct device_attribute *attr, attr 3109 drivers/scsi/cxlflash/main.c struct device_attribute *attr, char *buf) attr 69 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 78 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 87 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 96 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 112 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 121 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 130 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 141 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 161 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 172 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 190 drivers/scsi/esas2r/esas2r_main.c struct bin_attribute *attr, attr 215 drivers/scsi/esas2r/esas2r_main.c .attr = \ attr 228 drivers/scsi/esas2r/esas2r_main.c .attr = { .name = "default_nvram", .mode = S_IRUGO }, attr 138 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, \ attr 150 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, \ attr 163 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, \ attr 172 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, \ attr 245 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 259 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 273 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 322 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 367 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 385 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 409 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 438 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 452 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 465 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 479 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 493 drivers/scsi/fcoe/fcoe_sysfs.c struct device_attribute *attr, attr 537 drivers/scsi/fcoe/fcoe_sysfs.c store_fcoe_fcf_dev_loss_tmo(struct device *dev, struct device_attribute *attr, attr 558 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_link_fail.attr, attr 559 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_vlink_fail.attr, attr 560 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_miss_fka.attr, attr 561 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_symb_err.attr, attr 562 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_err_block.attr, attr 563 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_fcs_error.attr, attr 573 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_fip_vlan_responder.attr, attr 574 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_fcf_dev_loss_tmo.attr, attr 575 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_r_a_tov.attr, attr 576 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_e_d_tov.attr, attr 577 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_enabled.attr, attr 578 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_ctlr_mode.attr, attr 593 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_fabric_name.attr, attr 594 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_switch_name.attr, attr 595 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_dev_loss_tmo.attr, attr 596 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_fc_map.attr, attr 597 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_vfid.attr, attr 598 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_mac.attr, attr 599 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_priority.attr, attr 600 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_fka_period.attr, attr 601 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_state.attr, attr 602 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_selected.attr, attr 603 drivers/scsi/fcoe/fcoe_sysfs.c &device_attr_fcoe_fcf_vlan_id.attr, attr 677 drivers/scsi/fcoe/fcoe_sysfs.c &bus_attr_ctlr_create.attr, attr 678 drivers/scsi/fcoe/fcoe_sysfs.c &bus_attr_ctlr_destroy.attr, attr 24 drivers/scsi/fnic/fnic_attrs.c struct device_attribute *attr, char *buf) attr 33 drivers/scsi/fnic/fnic_attrs.c struct device_attribute *attr, char *buf) attr 39 drivers/scsi/fnic/fnic_attrs.c struct device_attribute *attr, char *buf) attr 2621 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct device_attribute *attr, char *buf) attr 2648 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct device_attribute *attr, attr 2659 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct device_attribute *attr, attr 2688 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c *attr, char *buf) attr 2699 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c *attr, const char *buf, size_t count) attr 435 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 448 drivers/scsi/hpsa.c struct device_attribute *attr, attr 472 drivers/scsi/hpsa.c struct device_attribute *attr, attr 497 drivers/scsi/hpsa.c struct device_attribute *attr, attr 508 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 523 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 533 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 545 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 629 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 662 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 696 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 718 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 746 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 769 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 797 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 882 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 892 drivers/scsi/hpsa.c struct device_attribute *attr, char *buf) attr 1120 drivers/scsi/hptiop.c struct device_attribute *attr, char *buf) attr 1126 drivers/scsi/hptiop.c struct device_attribute *attr, char *buf) attr 1139 drivers/scsi/hptiop.c .attr = { attr 1147 drivers/scsi/hptiop.c .attr = { attr 2908 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, char *buf) attr 2918 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, char *buf) attr 2928 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, char *buf) attr 2938 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, char *buf) attr 2948 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, char *buf) attr 2956 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, char *buf) attr 2972 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, char *buf) attr 2994 drivers/scsi/ibmvscsi/ibmvfc.c struct device_attribute *attr, attr 3054 drivers/scsi/ibmvscsi/ibmvfc.c .attr = { attr 760 drivers/scsi/ibmvscsi/ibmvfc.h #define ibmvfc_create_trace_file(kobj, attr) sysfs_create_bin_file(kobj, attr) attr 761 drivers/scsi/ibmvscsi/ibmvfc.h #define ibmvfc_remove_trace_file(kobj, attr) sysfs_remove_bin_file(kobj, attr) attr 763 drivers/scsi/ibmvscsi/ibmvfc.h #define ibmvfc_create_trace_file(kobj, attr) 0 attr 764 drivers/scsi/ibmvscsi/ibmvfc.h #define ibmvfc_remove_trace_file(kobj, attr) do { } while (0) attr 1885 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, char *buf) attr 1897 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 1905 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, char *buf) attr 1917 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 1925 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, char *buf) attr 1937 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 1945 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, attr 1958 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 1966 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, attr 1979 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 1987 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, char *buf) attr 1999 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 2007 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, char *buf) attr 2019 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 2027 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_attribute *attr, char *buf) attr 2033 drivers/scsi/ibmvscsi/ibmvscsi.c .attr = { attr 2676 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c int attr = 0; attr 2707 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c attr = TCM_SIMPLE_TAG; attr 2710 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c attr = TCM_ORDERED_TAG; attr 2713 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c attr = TCM_HEAD_TAG; attr 2716 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c attr = TCM_ACA_TAG; attr 2734 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c data_len, attr, dir, 0); attr 3634 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct device_attribute *attr, char *buf) attr 3640 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct device_attribute *attr, char *buf) attr 3646 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct device_attribute *attr, char *buf) attr 4075 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c &dev_attr_system_id.attr, attr 4076 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c &dev_attr_partition_number.attr, attr 4077 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c &dev_attr_unit_address.attr, attr 3475 drivers/scsi/ipr.c .attr = { attr 3493 drivers/scsi/ipr.c struct device_attribute *attr, char *buf) attr 3511 drivers/scsi/ipr.c .attr = { attr 3527 drivers/scsi/ipr.c struct device_attribute *attr, char *buf) attr 3549 drivers/scsi/ipr.c struct device_attribute *attr, attr 3563 drivers/scsi/ipr.c .attr = { attr 3584 drivers/scsi/ipr.c struct device_attribute *attr, attr 3625 drivers/scsi/ipr.c .attr = { attr 3641 drivers/scsi/ipr.c struct device_attribute *attr, char *buf) attr 3669 drivers/scsi/ipr.c struct device_attribute *attr, attr 3700 drivers/scsi/ipr.c .attr = { attr 3720 drivers/scsi/ipr.c struct device_attribute *attr, attr 3741 drivers/scsi/ipr.c .attr = { attr 3758 drivers/scsi/ipr.c struct device_attribute *attr, char *buf) attr 3781 drivers/scsi/ipr.c struct device_attribute *attr, attr 3826 drivers/scsi/ipr.c .attr = { attr 4072 drivers/scsi/ipr.c struct device_attribute *attr, attr 4132 drivers/scsi/ipr.c .attr = { attr 4148 drivers/scsi/ipr.c struct device_attribute *attr, char *buf) attr 4162 drivers/scsi/ipr.c .attr = { attr 4218 drivers/scsi/ipr.c .attr = { attr 4467 drivers/scsi/ipr.c .attr = { attr 4514 drivers/scsi/ipr.c static ssize_t ipr_show_adapter_handle(struct device *dev, struct device_attribute *attr, char *buf) attr 4531 drivers/scsi/ipr.c .attr = { attr 4548 drivers/scsi/ipr.c static ssize_t ipr_show_resource_path(struct device *dev, struct device_attribute *attr, char *buf) attr 4572 drivers/scsi/ipr.c .attr = { attr 4588 drivers/scsi/ipr.c static ssize_t ipr_show_device_id(struct device *dev, struct device_attribute *attr, char *buf) attr 4608 drivers/scsi/ipr.c .attr = { attr 4624 drivers/scsi/ipr.c static ssize_t ipr_show_resource_type(struct device *dev, struct device_attribute *attr, char *buf) attr 4643 drivers/scsi/ipr.c .attr = { attr 4659 drivers/scsi/ipr.c struct device_attribute *attr, char *buf) attr 4686 drivers/scsi/ipr.c struct device_attribute *attr, attr 4713 drivers/scsi/ipr.c .attr = { attr 1760 drivers/scsi/ipr.h #define ipr_create_trace_file(kobj, attr) sysfs_create_bin_file(kobj, attr) attr 1761 drivers/scsi/ipr.h #define ipr_remove_trace_file(kobj, attr) sysfs_remove_bin_file(kobj, attr) attr 1763 drivers/scsi/ipr.h #define ipr_create_trace_file(kobj, attr) 0 attr 1764 drivers/scsi/ipr.h #define ipr_remove_trace_file(kobj, attr) do { } while(0) attr 1768 drivers/scsi/ipr.h #define ipr_create_dump_file(kobj, attr) sysfs_create_bin_file(kobj, attr) attr 1769 drivers/scsi/ipr.h #define ipr_remove_dump_file(kobj, attr) sysfs_remove_bin_file(kobj, attr) attr 1771 drivers/scsi/ipr.h #define ipr_create_dump_file(kobj, attr) 0 attr 1772 drivers/scsi/ipr.h #define ipr_remove_dump_file(kobj, attr) do { } while(0) attr 134 drivers/scsi/isci/init.c static ssize_t isci_show_id(struct device *dev, struct device_attribute *attr, char *buf) attr 24 drivers/scsi/iscsi_boot_sysfs.c struct attribute attr; attr 33 drivers/scsi/iscsi_boot_sysfs.c struct attribute *attr, char *buf) attr 38 drivers/scsi/iscsi_boot_sysfs.c container_of(attr, struct iscsi_boot_attr, attr); attr 71 drivers/scsi/iscsi_boot_sysfs.c .attr = { .name = __stringify(sysfs_name), .mode = 0444 }, \ attr 92 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_index.attr, attr 93 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_flags.attr, attr 94 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_ip.attr, attr 95 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_port.attr, attr 96 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_lun.attr, attr 97 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_chap.attr, attr 98 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_nic.attr, attr 99 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_name.attr, attr 100 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_chap_name.attr, attr 101 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_chap_secret.attr, attr 102 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_chap_rev_name.attr, attr 103 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_tgt_chap_rev_secret.attr, attr 108 drivers/scsi/iscsi_boot_sysfs.c struct attribute *attr, int i) attr 113 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_tgt_index.attr) attr 116 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_flags.attr) attr 119 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_ip.attr) attr 122 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_port.attr) attr 125 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_lun.attr) attr 128 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_chap.attr) attr 131 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_nic.attr) attr 134 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_name.attr) attr 137 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_chap_name.attr) attr 140 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_chap_secret.attr) attr 143 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_chap_rev_name.attr) attr 146 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_tgt_chap_rev_secret.attr) attr 174 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_index.attr, attr 175 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_flags.attr, attr 176 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_ip.attr, attr 177 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_prefix.attr, attr 178 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_subnet.attr, attr 179 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_origin.attr, attr 180 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_gateway.attr, attr 181 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_primary_dns.attr, attr 182 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_secondary_dns.attr, attr 183 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_dhcp.attr, attr 184 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_vlan.attr, attr 185 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_mac.attr, attr 186 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_eth_hostname.attr, attr 191 drivers/scsi/iscsi_boot_sysfs.c struct attribute *attr, int i) attr 196 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_eth_index.attr) attr 199 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_flags.attr) attr 202 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_ip.attr) attr 205 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_prefix.attr) attr 208 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_subnet.attr) attr 211 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_origin.attr) attr 214 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_gateway.attr) attr 217 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_primary_dns.attr) attr 220 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_secondary_dns.attr) attr 223 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_dhcp.attr) attr 226 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_vlan.attr) attr 229 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_mac.attr) attr 232 drivers/scsi/iscsi_boot_sysfs.c else if (attr == &iscsi_boot_attr_eth_hostname.attr) attr 255 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_ini_index.attr, attr 256 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_ini_flags.attr, attr 257 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_ini_isns.attr, attr 258 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_ini_slp.attr, attr 259 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_ini_primary_radius.attr, attr 260 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_ini_secondary_radius.attr, attr 261 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_ini_name.attr, attr 266 drivers/scsi/iscsi_boot_sysfs.c struct attribute *attr, int i) attr 271 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_ini_index.attr) attr 274 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_ini_flags.attr) attr 277 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_ini_isns.attr) attr 280 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_ini_slp.attr) attr 283 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_ini_primary_radius.attr) attr 286 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_ini_secondary_radius.attr) attr 289 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_ini_name.attr) attr 308 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_acpitbl_signature.attr, attr 309 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_acpitbl_oem_id.attr, attr 310 drivers/scsi/iscsi_boot_sysfs.c &iscsi_boot_attr_acpitbl_oem_table_id.attr, attr 315 drivers/scsi/iscsi_boot_sysfs.c struct attribute *attr, int i) attr 320 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_acpitbl_signature.attr) attr 323 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_acpitbl_oem_id.attr) attr 326 drivers/scsi/iscsi_boot_sysfs.c if (attr == &iscsi_boot_attr_acpitbl_oem_table_id.attr) attr 545 drivers/scsi/libsas/sas_init.c struct device_attribute *attr, char *buf) attr 554 drivers/scsi/libsas/sas_init.c struct device_attribute *attr, attr 131 drivers/scsi/lpfc/lpfc_attr.c lpfc_drvr_version_show(struct device *dev, struct device_attribute *attr, attr 146 drivers/scsi/lpfc/lpfc_attr.c lpfc_enable_fip_show(struct device *dev, struct device_attribute *attr, attr 160 drivers/scsi/lpfc/lpfc_attr.c lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr, attr 533 drivers/scsi/lpfc/lpfc_attr.c lpfc_scsi_stat_show(struct device *dev, struct device_attribute *attr, attr 584 drivers/scsi/lpfc/lpfc_attr.c lpfc_bg_info_show(struct device *dev, struct device_attribute *attr, attr 604 drivers/scsi/lpfc/lpfc_attr.c lpfc_bg_guard_err_show(struct device *dev, struct device_attribute *attr, attr 616 drivers/scsi/lpfc/lpfc_attr.c lpfc_bg_apptag_err_show(struct device *dev, struct device_attribute *attr, attr 628 drivers/scsi/lpfc/lpfc_attr.c lpfc_bg_reftag_err_show(struct device *dev, struct device_attribute *attr, attr 648 drivers/scsi/lpfc/lpfc_attr.c lpfc_info_show(struct device *dev, struct device_attribute *attr, attr 665 drivers/scsi/lpfc/lpfc_attr.c lpfc_serialnum_show(struct device *dev, struct device_attribute *attr, attr 688 drivers/scsi/lpfc/lpfc_attr.c lpfc_temp_sensor_show(struct device *dev, struct device_attribute *attr, attr 706 drivers/scsi/lpfc/lpfc_attr.c lpfc_modeldesc_show(struct device *dev, struct device_attribute *attr, attr 725 drivers/scsi/lpfc/lpfc_attr.c lpfc_modelname_show(struct device *dev, struct device_attribute *attr, attr 744 drivers/scsi/lpfc/lpfc_attr.c lpfc_programtype_show(struct device *dev, struct device_attribute *attr, attr 763 drivers/scsi/lpfc/lpfc_attr.c lpfc_mlomgmt_show(struct device *dev, struct device_attribute *attr, char *buf) attr 782 drivers/scsi/lpfc/lpfc_attr.c lpfc_vportnum_show(struct device *dev, struct device_attribute *attr, attr 801 drivers/scsi/lpfc/lpfc_attr.c lpfc_fwrev_show(struct device *dev, struct device_attribute *attr, attr 835 drivers/scsi/lpfc/lpfc_attr.c lpfc_hdw_show(struct device *dev, struct device_attribute *attr, char *buf) attr 857 drivers/scsi/lpfc/lpfc_attr.c lpfc_option_rom_version_show(struct device *dev, struct device_attribute *attr, attr 885 drivers/scsi/lpfc/lpfc_attr.c lpfc_link_state_show(struct device *dev, struct device_attribute *attr, attr 1010 drivers/scsi/lpfc/lpfc_attr.c lpfc_sli4_protocol_show(struct device *dev, struct device_attribute *attr, attr 1039 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_supported_show(struct device *dev, struct device_attribute *attr, attr 1063 drivers/scsi/lpfc/lpfc_attr.c lpfc_link_state_store(struct device *dev, struct device_attribute *attr, attr 1099 drivers/scsi/lpfc/lpfc_attr.c struct device_attribute *attr, char *buf) attr 1435 drivers/scsi/lpfc/lpfc_attr.c lpfc_issue_reset(struct device *dev, struct device_attribute *attr, attr 1630 drivers/scsi/lpfc/lpfc_attr.c lpfc_nport_evt_cnt_show(struct device *dev, struct device_attribute *attr, attr 1709 drivers/scsi/lpfc/lpfc_attr.c lpfc_board_mode_show(struct device *dev, struct device_attribute *attr, attr 1743 drivers/scsi/lpfc/lpfc_attr.c lpfc_board_mode_store(struct device *dev, struct device_attribute *attr, attr 1943 drivers/scsi/lpfc/lpfc_attr.c lpfc_max_rpi_show(struct device *dev, struct device_attribute *attr, attr 1971 drivers/scsi/lpfc/lpfc_attr.c lpfc_used_rpi_show(struct device *dev, struct device_attribute *attr, attr 1999 drivers/scsi/lpfc/lpfc_attr.c lpfc_max_xri_show(struct device *dev, struct device_attribute *attr, attr 2027 drivers/scsi/lpfc/lpfc_attr.c lpfc_used_xri_show(struct device *dev, struct device_attribute *attr, attr 2055 drivers/scsi/lpfc/lpfc_attr.c lpfc_max_vpi_show(struct device *dev, struct device_attribute *attr, attr 2083 drivers/scsi/lpfc/lpfc_attr.c lpfc_used_vpi_show(struct device *dev, struct device_attribute *attr, attr 2110 drivers/scsi/lpfc/lpfc_attr.c lpfc_npiv_info_show(struct device *dev, struct device_attribute *attr, attr 2136 drivers/scsi/lpfc/lpfc_attr.c lpfc_poll_show(struct device *dev, struct device_attribute *attr, attr 2161 drivers/scsi/lpfc/lpfc_attr.c lpfc_poll_store(struct device *dev, struct device_attribute *attr, attr 2240 drivers/scsi/lpfc/lpfc_attr.c lpfc_fips_level_show(struct device *dev, struct device_attribute *attr, attr 2259 drivers/scsi/lpfc/lpfc_attr.c lpfc_fips_rev_show(struct device *dev, struct device_attribute *attr, attr 2278 drivers/scsi/lpfc/lpfc_attr.c lpfc_dss_show(struct device *dev, struct device_attribute *attr, attr 2305 drivers/scsi/lpfc/lpfc_attr.c struct device_attribute *attr, attr 2366 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_param_show(attr) \ attr 2368 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_show(struct device *dev, struct device_attribute *attr, \ attr 2375 drivers/scsi/lpfc/lpfc_attr.c phba->cfg_##attr);\ attr 2392 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_param_hex_show(attr) \ attr 2394 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_show(struct device *dev, struct device_attribute *attr, \ attr 2401 drivers/scsi/lpfc/lpfc_attr.c val = phba->cfg_##attr;\ attr 2403 drivers/scsi/lpfc/lpfc_attr.c phba->cfg_##attr);\ attr 2425 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_param_init(attr, default, minval, maxval) \ attr 2427 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_init(struct lpfc_hba *phba, uint val) \ attr 2430 drivers/scsi/lpfc/lpfc_attr.c phba->cfg_##attr = val;\ attr 2434 drivers/scsi/lpfc/lpfc_attr.c "0449 lpfc_"#attr" attribute cannot be set to %d, "\ attr 2436 drivers/scsi/lpfc/lpfc_attr.c phba->cfg_##attr = default;\ attr 2460 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_param_set(attr, default, minval, maxval) \ attr 2462 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_set(struct lpfc_hba *phba, uint val) \ attr 2466 drivers/scsi/lpfc/lpfc_attr.c "3052 lpfc_" #attr " changed from %d to %d\n", \ attr 2467 drivers/scsi/lpfc/lpfc_attr.c phba->cfg_##attr, val); \ attr 2468 drivers/scsi/lpfc/lpfc_attr.c phba->cfg_##attr = val;\ attr 2472 drivers/scsi/lpfc/lpfc_attr.c "0450 lpfc_"#attr" attribute cannot be set to %d, "\ attr 2498 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_param_store(attr) \ attr 2500 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_store(struct device *dev, struct device_attribute *attr, \ attr 2511 drivers/scsi/lpfc/lpfc_attr.c if (lpfc_##attr##_set(phba, val) == 0) \ attr 2531 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_vport_param_show(attr) \ attr 2533 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_show(struct device *dev, struct device_attribute *attr, \ attr 2538 drivers/scsi/lpfc/lpfc_attr.c return scnprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_##attr);\ attr 2556 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_vport_param_hex_show(attr) \ attr 2558 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_show(struct device *dev, struct device_attribute *attr, \ attr 2563 drivers/scsi/lpfc/lpfc_attr.c return scnprintf(buf, PAGE_SIZE, "%#x\n", vport->cfg_##attr);\ attr 2584 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_vport_param_init(attr, default, minval, maxval) \ attr 2586 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_init(struct lpfc_vport *vport, uint val) \ attr 2589 drivers/scsi/lpfc/lpfc_attr.c vport->cfg_##attr = val;\ attr 2593 drivers/scsi/lpfc/lpfc_attr.c "0423 lpfc_"#attr" attribute cannot be set to %d, "\ attr 2595 drivers/scsi/lpfc/lpfc_attr.c vport->cfg_##attr = default;\ attr 2616 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_vport_param_set(attr, default, minval, maxval) \ attr 2618 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_set(struct lpfc_vport *vport, uint val) \ attr 2622 drivers/scsi/lpfc/lpfc_attr.c "3053 lpfc_" #attr \ attr 2624 drivers/scsi/lpfc/lpfc_attr.c vport->cfg_##attr, vport->cfg_##attr, \ attr 2626 drivers/scsi/lpfc/lpfc_attr.c vport->cfg_##attr = val;\ attr 2630 drivers/scsi/lpfc/lpfc_attr.c "0424 lpfc_"#attr" attribute cannot be set to %d, "\ attr 2652 drivers/scsi/lpfc/lpfc_attr.c #define lpfc_vport_param_store(attr) \ attr 2654 drivers/scsi/lpfc/lpfc_attr.c lpfc_##attr##_store(struct device *dev, struct device_attribute *attr, \ attr 2664 drivers/scsi/lpfc/lpfc_attr.c if (lpfc_##attr##_set(vport, val) == 0) \ attr 2770 drivers/scsi/lpfc/lpfc_attr.c lpfc_soft_wwn_enable_store(struct device *dev, struct device_attribute *attr, attr 2828 drivers/scsi/lpfc/lpfc_attr.c lpfc_soft_wwpn_show(struct device *dev, struct device_attribute *attr, attr 2853 drivers/scsi/lpfc/lpfc_attr.c lpfc_soft_wwpn_store(struct device *dev, struct device_attribute *attr, attr 2927 drivers/scsi/lpfc/lpfc_attr.c lpfc_soft_wwnn_show(struct device *dev, struct device_attribute *attr, attr 2947 drivers/scsi/lpfc/lpfc_attr.c lpfc_soft_wwnn_store(struct device *dev, struct device_attribute *attr, attr 2992 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_tgt_show(struct device *dev, struct device_attribute *attr, attr 3016 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_tgt_store(struct device *dev, struct device_attribute *attr, attr 3060 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_priority_show(struct device *dev, struct device_attribute *attr, attr 3083 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_priority_store(struct device *dev, struct device_attribute *attr, attr 3123 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_vpt_show(struct device *dev, struct device_attribute *attr, attr 3147 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_vpt_store(struct device *dev, struct device_attribute *attr, attr 3194 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_lun_state_show(struct device *dev, struct device_attribute *attr, attr 3218 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_lun_state_store(struct device *dev, struct device_attribute *attr, attr 3255 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_lun_status_show(struct device *dev, struct device_attribute *attr, attr 3389 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_lun_show(struct device *dev, struct device_attribute *attr, attr 3437 drivers/scsi/lpfc/lpfc_attr.c lpfc_oas_lun_store(struct device *dev, struct device_attribute *attr, attr 3545 drivers/scsi/lpfc/lpfc_attr.c lpfc_iocb_hw_show(struct device *dev, struct device_attribute *attr, char *buf) attr 3556 drivers/scsi/lpfc/lpfc_attr.c lpfc_txq_hw_show(struct device *dev, struct device_attribute *attr, char *buf) attr 3569 drivers/scsi/lpfc/lpfc_attr.c lpfc_txcmplq_hw_show(struct device *dev, struct device_attribute *attr, attr 3606 drivers/scsi/lpfc/lpfc_attr.c lpfc_nodev_tmo_show(struct device *dev, struct device_attribute *attr, attr 4068 drivers/scsi/lpfc/lpfc_attr.c lpfc_topology_store(struct device *dev, struct device_attribute *attr, attr 4144 drivers/scsi/lpfc/lpfc_attr.c lpfc_static_vport_show(struct device *dev, struct device_attribute *attr, attr 4182 drivers/scsi/lpfc/lpfc_attr.c lpfc_stat_data_ctrl_store(struct device *dev, struct device_attribute *attr, attr 4336 drivers/scsi/lpfc/lpfc_attr.c lpfc_stat_data_ctrl_show(struct device *dev, struct device_attribute *attr, attr 4478 drivers/scsi/lpfc/lpfc_attr.c .attr = { attr 4510 drivers/scsi/lpfc/lpfc_attr.c lpfc_link_speed_store(struct device *dev, struct device_attribute *attr, attr 4689 drivers/scsi/lpfc/lpfc_attr.c lpfc_aer_support_store(struct device *dev, struct device_attribute *attr, attr 4764 drivers/scsi/lpfc/lpfc_attr.c lpfc_aer_cleanup_state(struct device *dev, struct device_attribute *attr, attr 4831 drivers/scsi/lpfc/lpfc_attr.c lpfc_sriov_nr_virtfn_store(struct device *dev, struct device_attribute *attr, attr 4908 drivers/scsi/lpfc/lpfc_attr.c struct device_attribute *attr, attr 4980 drivers/scsi/lpfc/lpfc_attr.c lpfc_force_rscn_store(struct device *dev, struct device_attribute *attr, attr 5038 drivers/scsi/lpfc/lpfc_attr.c lpfc_fcp_imax_store(struct device *dev, struct device_attribute *attr, attr 5157 drivers/scsi/lpfc/lpfc_attr.c lpfc_cq_max_proc_limit_store(struct device *dev, struct device_attribute *attr, attr 5264 drivers/scsi/lpfc/lpfc_attr.c lpfc_fcp_cpu_map_show(struct device *dev, struct device_attribute *attr, attr 5375 drivers/scsi/lpfc/lpfc_attr.c lpfc_fcp_cpu_map_store(struct device *dev, struct device_attribute *attr, attr 5874 drivers/scsi/lpfc/lpfc_attr.c lpfc_sg_seg_cnt_show(struct device *dev, struct device_attribute *attr, attr 6238 drivers/scsi/lpfc/lpfc_attr.c .attr = { attr 6296 drivers/scsi/lpfc/lpfc_attr.c .attr = { attr 6902 drivers/scsi/lpfc/lpfc_attr.c struct device_attribute *attr, \ attr 124 drivers/scsi/megaraid/megaraid_mbox.c static ssize_t megaraid_sysfs_show_app_hndl(struct device *, struct device_attribute *attr, char *); attr 125 drivers/scsi/megaraid/megaraid_mbox.c static ssize_t megaraid_sysfs_show_ldnum(struct device *, struct device_attribute *attr, char *); attr 3983 drivers/scsi/megaraid/megaraid_mbox.c megaraid_sysfs_show_app_hndl(struct device *dev, struct device_attribute *attr, attr 4012 drivers/scsi/megaraid/megaraid_mbox.c megaraid_sysfs_show_ldnum(struct device *dev, struct device_attribute *attr, char *buf) attr 3164 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, const char *buf, size_t count) attr 3183 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, char *buf) attr 3228 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, char *buf) attr 3240 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, const char *buf, size_t count) attr 3275 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, char *buf) attr 3286 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, char *buf) attr 3292 drivers/scsi/megaraid/megaraid_sas_base.c ldio_outstanding_show(struct device *cdev, struct device_attribute *attr, attr 3303 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, char *buf) attr 3313 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, char *buf) attr 3323 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, const char *buf, size_t count) attr 3355 drivers/scsi/megaraid/megaraid_sas_base.c struct device_attribute *attr, char *buf) attr 3365 drivers/scsi/megaraid/megaraid_sas_base.c raid_map_id_show(struct device *cdev, struct device_attribute *attr, attr 2515 drivers/scsi/mpt3sas/mpt3sas_ctl.c version_fw_show(struct device *cdev, struct device_attribute *attr, attr 2538 drivers/scsi/mpt3sas/mpt3sas_ctl.c version_bios_show(struct device *cdev, struct device_attribute *attr, attr 2563 drivers/scsi/mpt3sas/mpt3sas_ctl.c version_mpi_show(struct device *cdev, struct device_attribute *attr, attr 2583 drivers/scsi/mpt3sas/mpt3sas_ctl.c version_product_show(struct device *cdev, struct device_attribute *attr, attr 2603 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 2623 drivers/scsi/mpt3sas/mpt3sas_ctl.c *attr, char *buf) attr 2642 drivers/scsi/mpt3sas/mpt3sas_ctl.c board_name_show(struct device *cdev, struct device_attribute *attr, attr 2661 drivers/scsi/mpt3sas/mpt3sas_ctl.c board_assembly_show(struct device *cdev, struct device_attribute *attr, attr 2680 drivers/scsi/mpt3sas/mpt3sas_ctl.c board_tracer_show(struct device *cdev, struct device_attribute *attr, attr 2702 drivers/scsi/mpt3sas/mpt3sas_ctl.c io_delay_show(struct device *cdev, struct device_attribute *attr, attr 2724 drivers/scsi/mpt3sas/mpt3sas_ctl.c device_delay_show(struct device *cdev, struct device_attribute *attr, attr 2745 drivers/scsi/mpt3sas/mpt3sas_ctl.c fw_queue_depth_show(struct device *cdev, struct device_attribute *attr, attr 2766 drivers/scsi/mpt3sas/mpt3sas_ctl.c host_sas_address_show(struct device *cdev, struct device_attribute *attr, attr 2787 drivers/scsi/mpt3sas/mpt3sas_ctl.c logging_level_show(struct device *cdev, struct device_attribute *attr, attr 2796 drivers/scsi/mpt3sas/mpt3sas_ctl.c logging_level_store(struct device *cdev, struct device_attribute *attr, attr 2823 drivers/scsi/mpt3sas/mpt3sas_ctl.c fwfault_debug_show(struct device *cdev, struct device_attribute *attr, attr 2832 drivers/scsi/mpt3sas/mpt3sas_ctl.c fwfault_debug_store(struct device *cdev, struct device_attribute *attr, attr 2860 drivers/scsi/mpt3sas/mpt3sas_ctl.c ioc_reset_count_show(struct device *cdev, struct device_attribute *attr, attr 2882 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 2909 drivers/scsi/mpt3sas/mpt3sas_ctl.c BRM_status_show(struct device *cdev, struct device_attribute *attr, attr 2993 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3039 drivers/scsi/mpt3sas/mpt3sas_ctl.c host_trace_buffer_show(struct device *cdev, struct device_attribute *attr, attr 3071 drivers/scsi/mpt3sas/mpt3sas_ctl.c host_trace_buffer_store(struct device *cdev, struct device_attribute *attr, attr 3101 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3119 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, const char *buf, size_t count) attr 3182 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3208 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, const char *buf, size_t count) attr 3239 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3264 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, const char *buf, size_t count) attr 3295 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3320 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, const char *buf, size_t count) attr 3349 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3374 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, const char *buf, size_t count) attr 3407 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3426 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3446 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, const char *buf, size_t count) attr 3561 drivers/scsi/mpt3sas/mpt3sas_ctl.c sas_address_show(struct device *dev, struct device_attribute *attr, attr 3583 drivers/scsi/mpt3sas/mpt3sas_ctl.c sas_device_handle_show(struct device *dev, struct device_attribute *attr, attr 3604 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, char *buf) attr 3615 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct device_attribute *attr, attr 697 drivers/scsi/mvsas/mv_init.c struct device_attribute *attr, char *buffer) attr 709 drivers/scsi/mvsas/mv_init.c struct device_attribute *attr, attr 749 drivers/scsi/mvsas/mv_init.c struct device_attribute *attr, char *buffer) attr 1790 drivers/scsi/myrb.c struct device_attribute *attr, char *buf) attr 1835 drivers/scsi/myrb.c struct device_attribute *attr, const char *buf, size_t count) attr 1903 drivers/scsi/myrb.c struct device_attribute *attr, char *buf) attr 1925 drivers/scsi/myrb.c struct device_attribute *attr, char *buf) attr 1947 drivers/scsi/myrb.c struct device_attribute *attr, const char *buf, size_t count) attr 2052 drivers/scsi/myrb.c struct device_attribute *attr, const char *buf, size_t count) attr 2158 drivers/scsi/myrb.c struct device_attribute *attr, char *buf) attr 2160 drivers/scsi/myrb.c return rebuild_show(dev, attr, buf); attr 2165 drivers/scsi/myrb.c struct device_attribute *attr, char *buf) attr 2175 drivers/scsi/myrb.c struct device_attribute *attr, char *buf) attr 2185 drivers/scsi/myrb.c struct device_attribute *attr, char *buf) attr 2195 drivers/scsi/myrb.c struct device_attribute *attr, const char *buf, size_t count) attr 938 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 973 drivers/scsi/myrs.c struct device_attribute *attr, const char *buf, size_t count) attr 1057 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1083 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1112 drivers/scsi/myrs.c struct device_attribute *attr, const char *buf, size_t count) attr 1188 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1213 drivers/scsi/myrs.c struct device_attribute *attr, const char *buf, size_t count) attr 1300 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1313 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1336 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1388 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1398 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1408 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1418 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1431 drivers/scsi/myrs.c struct device_attribute *attr, const char *buf, size_t count) attr 1469 drivers/scsi/myrs.c struct device_attribute *attr, const char *buf, size_t count) attr 1488 drivers/scsi/myrs.c struct device_attribute *attr, char *buf) attr 1497 drivers/scsi/myrs.c struct device_attribute *attr, const char *buf, size_t count) attr 8238 drivers/scsi/ncr53c8xx.c struct device_attribute *attr, char *buf) attr 8247 drivers/scsi/ncr53c8xx.c .attr = { .name = "revision", .mode = S_IRUGO, }, attr 614 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_show_pio(struct device *dev, struct device_attribute *attr, attr 625 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_store_pio(struct device *dev, struct device_attribute *attr, attr 647 drivers/scsi/pcmcia/sym53c500_cs.c .attr = { attr 55 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 80 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 110 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 135 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 161 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 184 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 210 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 254 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 283 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 302 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 311 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, const char *buf, size_t count) attr 335 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 370 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 403 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 434 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 472 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 490 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 528 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 532 drivers/scsi/pm8001/pm8001_ctl.c count = pm80xx_get_fatal_dump(cdev, attr, buf); attr 546 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 707 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, attr 784 drivers/scsi/pm8001/pm8001_ctl.c struct device_attribute *attr, char *buf) attr 725 drivers/scsi/pm8001/pm8001_sas.h struct device_attribute *attr, char *buf); attr 88 drivers/scsi/pm8001/pm80xx_hwi.c struct device_attribute *attr, char *buf) attr 3995 drivers/scsi/pmcraid.c struct device_attribute *attr, attr 4015 drivers/scsi/pmcraid.c struct device_attribute *attr, attr 4038 drivers/scsi/pmcraid.c .attr = { attr 4056 drivers/scsi/pmcraid.c struct device_attribute *attr, attr 4065 drivers/scsi/pmcraid.c .attr = { attr 4082 drivers/scsi/pmcraid.c struct device_attribute *attr, attr 4099 drivers/scsi/pmcraid.c .attr = { attr 29 drivers/scsi/qedf/qedf_attr.c struct device_attribute *attr, char *buf) attr 47 drivers/scsi/qedf/qedf_attr.c struct device_attribute *attr, char *buf) attr 159 drivers/scsi/qedf/qedf_attr.c .attr = { attr 163 drivers/scsi/qedf/qedf_dbg.c iter->attr); attr 175 drivers/scsi/qedf/qedf_dbg.c sysfs_remove_bin_file(&shost->shost_gendev.kobj, iter->attr); attr 102 drivers/scsi/qedf/qedf_dbg.h struct bin_attribute *attr; attr 114 drivers/scsi/qedi/qedi_dbg.c iter->attr); attr 126 drivers/scsi/qedi/qedi_dbg.c sysfs_remove_bin_file(&shost->shost_gendev.kobj, iter->attr); attr 95 drivers/scsi/qedi/qedi_dbg.h struct bin_attribute *attr; attr 20 drivers/scsi/qedi/qedi_sysfs.c struct device_attribute *attr, attr 32 drivers/scsi/qedi/qedi_sysfs.c struct device_attribute *attr, char *buf) attr 143 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 258 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 320 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 505 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 618 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 655 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 791 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 834 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 897 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 955 drivers/scsi/qla2xxx/qla_attr.c .attr = { attr 965 drivers/scsi/qla2xxx/qla_attr.c struct bin_attribute *attr; attr 997 drivers/scsi/qla2xxx/qla_attr.c iter->attr); attr 1028 drivers/scsi/qla2xxx/qla_attr.c iter->attr); attr 1039 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1046 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1057 drivers/scsi/qla2xxx/qla_attr.c qla2x00_serial_num_show(struct device *dev, struct device_attribute *attr, attr 1078 drivers/scsi/qla2xxx/qla_attr.c qla2x00_isp_name_show(struct device *dev, struct device_attribute *attr, attr 1087 drivers/scsi/qla2xxx/qla_attr.c qla2x00_isp_id_show(struct device *dev, struct device_attribute *attr, attr 1103 drivers/scsi/qla2xxx/qla_attr.c qla2x00_model_name_show(struct device *dev, struct device_attribute *attr, attr 1112 drivers/scsi/qla2xxx/qla_attr.c qla2x00_model_desc_show(struct device *dev, struct device_attribute *attr, attr 1121 drivers/scsi/qla2xxx/qla_attr.c qla2x00_pci_info_show(struct device *dev, struct device_attribute *attr, attr 1133 drivers/scsi/qla2xxx/qla_attr.c qla2x00_link_state_show(struct device *dev, struct device_attribute *attr, attr 1173 drivers/scsi/qla2xxx/qla_attr.c qla2x00_zio_show(struct device *dev, struct device_attribute *attr, attr 1191 drivers/scsi/qla2xxx/qla_attr.c qla2x00_zio_store(struct device *dev, struct device_attribute *attr, attr 1219 drivers/scsi/qla2xxx/qla_attr.c qla2x00_zio_timer_show(struct device *dev, struct device_attribute *attr, attr 1228 drivers/scsi/qla2xxx/qla_attr.c qla2x00_zio_timer_store(struct device *dev, struct device_attribute *attr, attr 1247 drivers/scsi/qla2xxx/qla_attr.c qla_zio_threshold_show(struct device *dev, struct device_attribute *attr, attr 1257 drivers/scsi/qla2xxx/qla_attr.c qla_zio_threshold_store(struct device *dev, struct device_attribute *attr, attr 1275 drivers/scsi/qla2xxx/qla_attr.c qla2x00_beacon_show(struct device *dev, struct device_attribute *attr, attr 1289 drivers/scsi/qla2xxx/qla_attr.c qla2x00_beacon_store(struct device *dev, struct device_attribute *attr, attr 1326 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1337 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1348 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1359 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1371 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1387 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1397 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1419 drivers/scsi/qla2xxx/qla_attr.c qla2x00_serdes_version_show(struct device *dev, struct device_attribute *attr, attr 1434 drivers/scsi/qla2xxx/qla_attr.c qla2x00_mpi_version_show(struct device *dev, struct device_attribute *attr, attr 1450 drivers/scsi/qla2xxx/qla_attr.c qla2x00_phy_version_show(struct device *dev, struct device_attribute *attr, attr 1465 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1474 drivers/scsi/qla2xxx/qla_attr.c qla2x00_vlan_id_show(struct device *dev, struct device_attribute *attr, attr 1487 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1498 drivers/scsi/qla2xxx/qla_attr.c qla2x00_fabric_param_show(struct device *dev, struct device_attribute *attr, attr 1508 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1537 drivers/scsi/qla2xxx/qla_attr.c qla2x00_fw_state_show(struct device *dev, struct device_attribute *attr, attr 1546 drivers/scsi/qla2xxx/qla_attr.c pstate = qlafx00_fw_state_show(dev, attr, buf); attr 1575 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1587 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1599 drivers/scsi/qla2xxx/qla_attr.c qla2x00_fw_dump_size_show(struct device *dev, struct device_attribute *attr, attr 1618 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1631 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, const char *buf, size_t count) attr 1648 drivers/scsi/qla2xxx/qla_attr.c qla2x00_pep_version_show(struct device *dev, struct device_attribute *attr, attr 1663 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1682 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 1697 drivers/scsi/qla2xxx/qla_attr.c qla2x00_port_speed_store(struct device *dev, struct device_attribute *attr, attr 1763 drivers/scsi/qla2xxx/qla_attr.c qla2x00_port_speed_show(struct device *dev, struct device_attribute *attr, attr 1784 drivers/scsi/qla2xxx/qla_attr.c qlini_mode_show(struct device *dev, struct device_attribute *attr, char *buf) attr 2106 drivers/scsi/qla2xxx/qla_attr.c qlini_mode_store(struct device *dev, struct device_attribute *attr, attr 2135 drivers/scsi/qla2xxx/qla_attr.c ql2xexchoffld_show(struct device *dev, struct device_attribute *attr, attr 2153 drivers/scsi/qla2xxx/qla_attr.c ql2xexchoffld_store(struct device *dev, struct device_attribute *attr, attr 2172 drivers/scsi/qla2xxx/qla_attr.c ql2xiniexchg_show(struct device *dev, struct device_attribute *attr, attr 2190 drivers/scsi/qla2xxx/qla_attr.c ql2xiniexchg_store(struct device *dev, struct device_attribute *attr, attr 2210 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 2224 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute *attr, char *buf) attr 2240 drivers/scsi/qla2xxx/qla_attr.c qla2x00_port_no_show(struct device *dev, struct device_attribute *attr, attr 2361 drivers/scsi/qla2xxx/qla_attr.c struct device_attribute **attr; attr 2364 drivers/scsi/qla2xxx/qla_attr.c for (attr = &qla2x00_host_attrs[0]; *attr; ++attr) attr 2367 drivers/scsi/qla2xxx/qla_attr.c *attr = &dev_attr_qlini_mode; attr 2368 drivers/scsi/qla2xxx/qla_attr.c attr++; attr 2369 drivers/scsi/qla2xxx/qla_attr.c *attr = &dev_attr_ql2xiniexchg; attr 2370 drivers/scsi/qla2xxx/qla_attr.c attr++; attr 2371 drivers/scsi/qla2xxx/qla_attr.c *attr = &dev_attr_ql2xexchoffld; attr 2084 drivers/scsi/qla2xxx/qla_mr.c qlafx00_fw_state_show(struct device *dev, struct device_attribute *attr, attr 2109 drivers/scsi/qla2xxx/qla_target.c mcmd->abort_io_attr = abort_cmd->atio.u.isp24.attr; attr 2223 drivers/scsi/qla2xxx/qla_target.c temp = (atio->u.isp24.attr << 9)| attr 2280 drivers/scsi/qla2xxx/qla_target.c temp = (atio->u.isp24.attr << 9) | attr 2581 drivers/scsi/qla2xxx/qla_target.c temp = atio->u.isp24.attr << 9; attr 3099 drivers/scsi/qla2xxx/qla_target.c t16 = (atio->u.isp24.attr << 9); attr 3647 drivers/scsi/qla2xxx/qla_target.c temp = (atio->u.isp24.attr << 9) | CTIO7_FLAGS_STATUS_MODE_1 | attr 3935 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, cmd->atio.u.isp24.attr, attr 5308 drivers/scsi/qla2xxx/qla_target.c temp = (atio->u.isp24.attr << 9) | attr 342 drivers/scsi/qla2xxx/qla_target.h uint8_t attr:4; attr 109 drivers/scsi/qla4xxx/ql4_attr.c .attr = { attr 120 drivers/scsi/qla4xxx/ql4_attr.c struct bin_attribute *attr; attr 134 drivers/scsi/qla4xxx/ql4_attr.c iter->attr); attr 149 drivers/scsi/qla4xxx/ql4_attr.c iter->attr); attr 155 drivers/scsi/qla4xxx/ql4_attr.c struct device_attribute *attr, char *buf) attr 170 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_serial_num_show(struct device *dev, struct device_attribute *attr, attr 178 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_iscsi_version_show(struct device *dev, struct device_attribute *attr, attr 187 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_optrom_version_show(struct device *dev, struct device_attribute *attr, attr 197 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_board_id_show(struct device *dev, struct device_attribute *attr, attr 205 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_fw_state_show(struct device *dev, struct device_attribute *attr, attr 216 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_phy_port_cnt_show(struct device *dev, struct device_attribute *attr, attr 228 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_phy_port_num_show(struct device *dev, struct device_attribute *attr, attr 240 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_iscsi_func_cnt_show(struct device *dev, struct device_attribute *attr, attr 252 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_hba_model_show(struct device *dev, struct device_attribute *attr, attr 261 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_fw_timestamp_show(struct device *dev, struct device_attribute *attr, attr 270 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_fw_build_user_show(struct device *dev, struct device_attribute *attr, attr 278 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_fw_ext_timestamp_show(struct device *dev, struct device_attribute *attr, attr 286 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_fw_load_src_show(struct device *dev, struct device_attribute *attr, attr 308 drivers/scsi/qla4xxx/ql4_attr.c qla4xxx_fw_uptime_show(struct device *dev, struct device_attribute *attr, attr 932 drivers/scsi/qla4xxx/ql4_os.c struct nlattr *attr; attr 941 drivers/scsi/qla4xxx/ql4_os.c nla_for_each_attr(attr, data, len, rem) { attr 942 drivers/scsi/qla4xxx/ql4_os.c param_info = nla_data(attr); attr 2705 drivers/scsi/qla4xxx/ql4_os.c struct nlattr *attr; attr 2725 drivers/scsi/qla4xxx/ql4_os.c nla_for_each_attr(attr, data, len, rem) { attr 2726 drivers/scsi/qla4xxx/ql4_os.c iface_param = nla_data(attr); attr 8089 drivers/scsi/qla4xxx/ql4_os.c struct nlattr *attr; attr 8095 drivers/scsi/qla4xxx/ql4_os.c nla_for_each_attr(attr, data, len, rem) { attr 8096 drivers/scsi/qla4xxx/ql4_os.c fnode_param = nla_data(attr); attr 174 drivers/scsi/raid_class.c #define raid_attr_show_internal(attr, fmt, var, code) \ attr 175 drivers/scsi/raid_class.c static ssize_t raid_show_##attr(struct device *dev, \ attr 176 drivers/scsi/raid_class.c struct device_attribute *attr, \ attr 184 drivers/scsi/raid_class.c #define raid_attr_ro_states(attr, states, code) \ attr 185 drivers/scsi/raid_class.c raid_attr_show_internal(attr, %s, name, \ attr 188 drivers/scsi/raid_class.c name = raid_##states##_name(rd->attr); \ attr 190 drivers/scsi/raid_class.c static DEVICE_ATTR(attr, S_IRUGO, raid_show_##attr, NULL) attr 193 drivers/scsi/raid_class.c #define raid_attr_ro_internal(attr, code) \ attr 194 drivers/scsi/raid_class.c raid_attr_show_internal(attr, %d, rd->attr, code) \ attr 195 drivers/scsi/raid_class.c static DEVICE_ATTR(attr, S_IRUGO, raid_show_##attr, NULL) attr 197 drivers/scsi/raid_class.c #define ATTR_CODE(attr) \ attr 199 drivers/scsi/raid_class.c if (i->f->get_##attr) \ attr 200 drivers/scsi/raid_class.c i->f->get_##attr(dev->parent); attr 202 drivers/scsi/raid_class.c #define raid_attr_ro(attr) raid_attr_ro_internal(attr, ) attr 203 drivers/scsi/raid_class.c #define raid_attr_ro_fn(attr) raid_attr_ro_internal(attr, ATTR_CODE(attr)) attr 204 drivers/scsi/raid_class.c #define raid_attr_ro_state(attr) raid_attr_ro_states(attr, attr, ) attr 205 drivers/scsi/raid_class.c #define raid_attr_ro_state_fn(attr) raid_attr_ro_states(attr, attr, ATTR_CODE(attr)) attr 5189 drivers/scsi/scsi_debug.c &driver_attr_delay.attr, attr 5190 drivers/scsi/scsi_debug.c &driver_attr_opts.attr, attr 5191 drivers/scsi/scsi_debug.c &driver_attr_ptype.attr, attr 5192 drivers/scsi/scsi_debug.c &driver_attr_dsense.attr, attr 5193 drivers/scsi/scsi_debug.c &driver_attr_fake_rw.attr, attr 5194 drivers/scsi/scsi_debug.c &driver_attr_no_lun_0.attr, attr 5195 drivers/scsi/scsi_debug.c &driver_attr_num_tgts.attr, attr 5196 drivers/scsi/scsi_debug.c &driver_attr_dev_size_mb.attr, attr 5197 drivers/scsi/scsi_debug.c &driver_attr_num_parts.attr, attr 5198 drivers/scsi/scsi_debug.c &driver_attr_every_nth.attr, attr 5199 drivers/scsi/scsi_debug.c &driver_attr_max_luns.attr, attr 5200 drivers/scsi/scsi_debug.c &driver_attr_max_queue.attr, attr 5201 drivers/scsi/scsi_debug.c &driver_attr_no_uld.attr, attr 5202 drivers/scsi/scsi_debug.c &driver_attr_scsi_level.attr, attr 5203 drivers/scsi/scsi_debug.c &driver_attr_virtual_gb.attr, attr 5204 drivers/scsi/scsi_debug.c &driver_attr_add_host.attr, attr 5205 drivers/scsi/scsi_debug.c &driver_attr_vpd_use_hostno.attr, attr 5206 drivers/scsi/scsi_debug.c &driver_attr_sector_size.attr, attr 5207 drivers/scsi/scsi_debug.c &driver_attr_statistics.attr, attr 5208 drivers/scsi/scsi_debug.c &driver_attr_submit_queues.attr, attr 5209 drivers/scsi/scsi_debug.c &driver_attr_dix.attr, attr 5210 drivers/scsi/scsi_debug.c &driver_attr_dif.attr, attr 5211 drivers/scsi/scsi_debug.c &driver_attr_guard.attr, attr 5212 drivers/scsi/scsi_debug.c &driver_attr_ato.attr, attr 5213 drivers/scsi/scsi_debug.c &driver_attr_map.attr, attr 5214 drivers/scsi/scsi_debug.c &driver_attr_removable.attr, attr 5215 drivers/scsi/scsi_debug.c &driver_attr_host_lock.attr, attr 5216 drivers/scsi/scsi_debug.c &driver_attr_ndelay.attr, attr 5217 drivers/scsi/scsi_debug.c &driver_attr_strict.attr, attr 5218 drivers/scsi/scsi_debug.c &driver_attr_uuid_ctl.attr, attr 5219 drivers/scsi/scsi_debug.c &driver_attr_cdb_len.attr, attr 161 drivers/scsi/scsi_sysfs.c show_##name (struct device *dev, struct device_attribute *attr, \ attr 184 drivers/scsi/scsi_sysfs.c store_scan(struct device *dev, struct device_attribute *attr, attr 198 drivers/scsi/scsi_sysfs.c store_shost_state(struct device *dev, struct device_attribute *attr, attr 222 drivers/scsi/scsi_sysfs.c show_shost_state(struct device *dev, struct device_attribute *attr, char *buf) attr 254 drivers/scsi/scsi_sysfs.c show_shost_supported_mode(struct device *dev, struct device_attribute *attr, attr 271 drivers/scsi/scsi_sysfs.c struct device_attribute *attr, char *buf) attr 294 drivers/scsi/scsi_sysfs.c store_host_reset(struct device *dev, struct device_attribute *attr, attr 321 drivers/scsi/scsi_sysfs.c struct device_attribute *attr, char *buf) attr 331 drivers/scsi/scsi_sysfs.c store_shost_eh_deadline(struct device *dev, struct device_attribute *attr, attr 382 drivers/scsi/scsi_sysfs.c show_host_busy(struct device *dev, struct device_attribute *attr, char *buf) attr 390 drivers/scsi/scsi_sysfs.c show_use_blk_mq(struct device *dev, struct device_attribute *attr, char *buf) attr 397 drivers/scsi/scsi_sysfs.c &dev_attr_use_blk_mq.attr, attr 398 drivers/scsi/scsi_sysfs.c &dev_attr_unique_id.attr, attr 399 drivers/scsi/scsi_sysfs.c &dev_attr_host_busy.attr, attr 400 drivers/scsi/scsi_sysfs.c &dev_attr_cmd_per_lun.attr, attr 401 drivers/scsi/scsi_sysfs.c &dev_attr_can_queue.attr, attr 402 drivers/scsi/scsi_sysfs.c &dev_attr_sg_tablesize.attr, attr 403 drivers/scsi/scsi_sysfs.c &dev_attr_sg_prot_tablesize.attr, attr 404 drivers/scsi/scsi_sysfs.c &dev_attr_unchecked_isa_dma.attr, attr 405 drivers/scsi/scsi_sysfs.c &dev_attr_proc_name.attr, attr 406 drivers/scsi/scsi_sysfs.c &dev_attr_scan.attr, attr 407 drivers/scsi/scsi_sysfs.c &dev_attr_hstate.attr, attr 408 drivers/scsi/scsi_sysfs.c &dev_attr_supported_mode.attr, attr 409 drivers/scsi/scsi_sysfs.c &dev_attr_active_mode.attr, attr 410 drivers/scsi/scsi_sysfs.c &dev_attr_prot_capabilities.attr, attr 411 drivers/scsi/scsi_sysfs.c &dev_attr_prot_guard_type.attr, attr 412 drivers/scsi/scsi_sysfs.c &dev_attr_host_reset.attr, attr 413 drivers/scsi/scsi_sysfs.c &dev_attr_eh_deadline.attr, attr 561 drivers/scsi/scsi_sysfs.c sdev_show_##field (struct device *dev, struct device_attribute *attr, \ attr 586 drivers/scsi/scsi_sysfs.c sdev_store_##field (struct device *dev, struct device_attribute *attr, \ attr 607 drivers/scsi/scsi_sysfs.c sdev_store_##field (struct device *dev, struct device_attribute *attr, \ attr 649 drivers/scsi/scsi_sysfs.c sdev_show_device_busy(struct device *dev, struct device_attribute *attr, attr 658 drivers/scsi/scsi_sysfs.c sdev_show_device_blocked(struct device *dev, struct device_attribute *attr, attr 670 drivers/scsi/scsi_sysfs.c sdev_show_timeout (struct device *dev, struct device_attribute *attr, char *buf) attr 678 drivers/scsi/scsi_sysfs.c sdev_store_timeout (struct device *dev, struct device_attribute *attr, attr 691 drivers/scsi/scsi_sysfs.c sdev_show_eh_timeout(struct device *dev, struct device_attribute *attr, char *buf) attr 699 drivers/scsi/scsi_sysfs.c sdev_store_eh_timeout(struct device *dev, struct device_attribute *attr, attr 720 drivers/scsi/scsi_sysfs.c store_rescan_field (struct device *dev, struct device_attribute *attr, attr 729 drivers/scsi/scsi_sysfs.c sdev_store_delete(struct device *dev, struct device_attribute *attr, attr 742 drivers/scsi/scsi_sysfs.c kn = sysfs_break_active_protection(&dev->kobj, &attr->attr); attr 754 drivers/scsi/scsi_sysfs.c device_remove_file(dev, attr); attr 764 drivers/scsi/scsi_sysfs.c store_state_field(struct device *dev, struct device_attribute *attr, attr 801 drivers/scsi/scsi_sysfs.c show_state_field(struct device *dev, struct device_attribute *attr, char *buf) attr 815 drivers/scsi/scsi_sysfs.c show_queue_type_field(struct device *dev, struct device_attribute *attr, attr 828 drivers/scsi/scsi_sysfs.c store_queue_type_field(struct device *dev, struct device_attribute *attr, attr 864 drivers/scsi/scsi_sysfs.c .attr = {.name = __stringify(vpd_##_page), .mode = S_IRUGO }, \ attr 887 drivers/scsi/scsi_sysfs.c .attr = { attr 896 drivers/scsi/scsi_sysfs.c show_iostat_counterbits(struct device *dev, struct device_attribute *attr, attr 906 drivers/scsi/scsi_sysfs.c show_iostat_##field(struct device *dev, struct device_attribute *attr, \ attr 920 drivers/scsi/scsi_sysfs.c sdev_show_modalias(struct device *dev, struct device_attribute *attr, char *buf) attr 930 drivers/scsi/scsi_sysfs.c sdev_show_evt_##name(struct device *dev, struct device_attribute *attr, \ attr 940 drivers/scsi/scsi_sysfs.c sdev_store_evt_##name(struct device *dev, struct device_attribute *attr,\ attr 959 drivers/scsi/scsi_sysfs.c #define REF_EVT(name) &dev_attr_evt_##name.attr attr 969 drivers/scsi/scsi_sysfs.c sdev_store_queue_depth(struct device *dev, struct device_attribute *attr, attr 998 drivers/scsi/scsi_sysfs.c sdev_show_wwid(struct device *dev, struct device_attribute *attr, attr 1021 drivers/scsi/scsi_sysfs.c sdev_show_blacklist(struct device *dev, struct device_attribute *attr, attr 1051 drivers/scsi/scsi_sysfs.c sdev_show_dh_state(struct device *dev, struct device_attribute *attr, attr 1063 drivers/scsi/scsi_sysfs.c sdev_store_dh_state(struct device *dev, struct device_attribute *attr, attr 1104 drivers/scsi/scsi_sysfs.c struct device_attribute *attr, attr 1124 drivers/scsi/scsi_sysfs.c struct device_attribute *attr, attr 1142 drivers/scsi/scsi_sysfs.c struct device_attribute *attr, attr 1153 drivers/scsi/scsi_sysfs.c struct device_attribute *attr, attr 1171 drivers/scsi/scsi_sysfs.c struct attribute *attr, int i) attr 1177 drivers/scsi/scsi_sysfs.c if (attr == &dev_attr_queue_depth.attr && attr 1181 drivers/scsi/scsi_sysfs.c if (attr == &dev_attr_queue_ramp_up_period.attr && attr 1186 drivers/scsi/scsi_sysfs.c if (attr == &dev_attr_access_state.attr && attr 1189 drivers/scsi/scsi_sysfs.c if (attr == &dev_attr_preferred_path.attr && attr 1193 drivers/scsi/scsi_sysfs.c return attr->mode; attr 1197 drivers/scsi/scsi_sysfs.c struct bin_attribute *attr, int i) attr 1203 drivers/scsi/scsi_sysfs.c if (attr == &dev_attr_vpd_pg80 && !sdev->vpd_pg80) attr 1206 drivers/scsi/scsi_sysfs.c if (attr == &dev_attr_vpd_pg83 && !sdev->vpd_pg83) attr 1214 drivers/scsi/scsi_sysfs.c &dev_attr_device_blocked.attr, attr 1215 drivers/scsi/scsi_sysfs.c &dev_attr_type.attr, attr 1216 drivers/scsi/scsi_sysfs.c &dev_attr_scsi_level.attr, attr 1217 drivers/scsi/scsi_sysfs.c &dev_attr_device_busy.attr, attr 1218 drivers/scsi/scsi_sysfs.c &dev_attr_vendor.attr, attr 1219 drivers/scsi/scsi_sysfs.c &dev_attr_model.attr, attr 1220 drivers/scsi/scsi_sysfs.c &dev_attr_rev.attr, attr 1221 drivers/scsi/scsi_sysfs.c &dev_attr_rescan.attr, attr 1222 drivers/scsi/scsi_sysfs.c &dev_attr_delete.attr, attr 1223 drivers/scsi/scsi_sysfs.c &dev_attr_state.attr, attr 1224 drivers/scsi/scsi_sysfs.c &dev_attr_timeout.attr, attr 1225 drivers/scsi/scsi_sysfs.c &dev_attr_eh_timeout.attr, attr 1226 drivers/scsi/scsi_sysfs.c &dev_attr_iocounterbits.attr, attr 1227 drivers/scsi/scsi_sysfs.c &dev_attr_iorequest_cnt.attr, attr 1228 drivers/scsi/scsi_sysfs.c &dev_attr_iodone_cnt.attr, attr 1229 drivers/scsi/scsi_sysfs.c &dev_attr_ioerr_cnt.attr, attr 1230 drivers/scsi/scsi_sysfs.c &dev_attr_modalias.attr, attr 1231 drivers/scsi/scsi_sysfs.c &dev_attr_queue_depth.attr, attr 1232 drivers/scsi/scsi_sysfs.c &dev_attr_queue_type.attr, attr 1233 drivers/scsi/scsi_sysfs.c &dev_attr_wwid.attr, attr 1234 drivers/scsi/scsi_sysfs.c &dev_attr_blacklist.attr, attr 1236 drivers/scsi/scsi_sysfs.c &dev_attr_dh_state.attr, attr 1237 drivers/scsi/scsi_sysfs.c &dev_attr_access_state.attr, attr 1238 drivers/scsi/scsi_sysfs.c &dev_attr_preferred_path.attr, attr 1240 drivers/scsi/scsi_sysfs.c &dev_attr_queue_ramp_up_period.attr, attr 692 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 708 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 748 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 768 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 783 drivers/scsi/scsi_transport_fc.c i->private_rport_attrs[count].attr.mode = S_IRUGO; \ attr 791 drivers/scsi/scsi_transport_fc.c i->private_rport_attrs[count].attr.mode = S_IRUGO; \ attr 799 drivers/scsi/scsi_transport_fc.c i->private_rport_attrs[count].attr.mode = S_IRUGO; \ attr 822 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 883 drivers/scsi/scsi_transport_fc.c store_fc_rport_dev_loss_tmo(struct device *dev, struct device_attribute *attr, attr 910 drivers/scsi/scsi_transport_fc.c show_fc_rport_roles (struct device *dev, struct device_attribute *attr, attr 950 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 961 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, const char *buf, attr 1007 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 1033 drivers/scsi/scsi_transport_fc.c i->private_starget_attrs[count].attr.mode = S_IRUGO; \ attr 1042 drivers/scsi/scsi_transport_fc.c i->private_starget_attrs[count].attr.mode = S_IRUGO; \ attr 1062 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 1076 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 1096 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 1134 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 1143 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 1180 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 1196 drivers/scsi/scsi_transport_fc.c i->private_vport_attrs[count].attr.mode = S_IRUGO; \ attr 1205 drivers/scsi/scsi_transport_fc.c i->private_vport_attrs[count].attr.mode = S_IRUGO; \ attr 1220 drivers/scsi/scsi_transport_fc.c i->private_vport_attrs[count].attr.mode = S_IRUGO; \ attr 1249 drivers/scsi/scsi_transport_fc.c show_fc_vport_roles (struct device *dev, struct device_attribute *attr, attr 1269 drivers/scsi/scsi_transport_fc.c store_fc_vport_delete(struct device *dev, struct device_attribute *attr, attr 1296 drivers/scsi/scsi_transport_fc.c store_fc_vport_disable(struct device *dev, struct device_attribute *attr, attr 1331 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 1343 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 1361 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 1398 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 1414 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ attr 1422 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ attr 1430 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ attr 1441 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) \ attr 1459 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ attr 1476 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 1490 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 1500 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 1533 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 1548 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 1582 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, char *buf) attr 1598 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, const char *buf, size_t count) attr 1631 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, const char *buf, size_t count) attr 1651 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, attr 1709 drivers/scsi/scsi_transport_fc.c struct device_attribute *attr, \ attr 1748 drivers/scsi/scsi_transport_fc.c fc_reset_statistics(struct device *dev, struct device_attribute *attr, attr 1766 drivers/scsi/scsi_transport_fc.c &device_attr_host_seconds_since_last_reset.attr, attr 1767 drivers/scsi/scsi_transport_fc.c &device_attr_host_tx_frames.attr, attr 1768 drivers/scsi/scsi_transport_fc.c &device_attr_host_tx_words.attr, attr 1769 drivers/scsi/scsi_transport_fc.c &device_attr_host_rx_frames.attr, attr 1770 drivers/scsi/scsi_transport_fc.c &device_attr_host_rx_words.attr, attr 1771 drivers/scsi/scsi_transport_fc.c &device_attr_host_lip_count.attr, attr 1772 drivers/scsi/scsi_transport_fc.c &device_attr_host_nos_count.attr, attr 1773 drivers/scsi/scsi_transport_fc.c &device_attr_host_error_frames.attr, attr 1774 drivers/scsi/scsi_transport_fc.c &device_attr_host_dumped_frames.attr, attr 1775 drivers/scsi/scsi_transport_fc.c &device_attr_host_link_failure_count.attr, attr 1776 drivers/scsi/scsi_transport_fc.c &device_attr_host_loss_of_sync_count.attr, attr 1777 drivers/scsi/scsi_transport_fc.c &device_attr_host_loss_of_signal_count.attr, attr 1778 drivers/scsi/scsi_transport_fc.c &device_attr_host_prim_seq_protocol_err_count.attr, attr 1779 drivers/scsi/scsi_transport_fc.c &device_attr_host_invalid_tx_word_count.attr, attr 1780 drivers/scsi/scsi_transport_fc.c &device_attr_host_invalid_crc_count.attr, attr 1781 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_input_requests.attr, attr 1782 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_output_requests.attr, attr 1783 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_control_requests.attr, attr 1784 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_input_megabytes.attr, attr 1785 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_output_megabytes.attr, attr 1786 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_packet_alloc_failures.attr, attr 1787 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_packet_aborts.attr, attr 1788 drivers/scsi/scsi_transport_fc.c &device_attr_host_fcp_frame_alloc_failures.attr, attr 1789 drivers/scsi/scsi_transport_fc.c &device_attr_host_fc_no_free_exch.attr, attr 1790 drivers/scsi/scsi_transport_fc.c &device_attr_host_fc_no_free_exch_xid.attr, attr 1791 drivers/scsi/scsi_transport_fc.c &device_attr_host_fc_xid_not_found.attr, attr 1792 drivers/scsi/scsi_transport_fc.c &device_attr_host_fc_xid_busy.attr, attr 1793 drivers/scsi/scsi_transport_fc.c &device_attr_host_fc_seq_not_found.attr, attr 1794 drivers/scsi/scsi_transport_fc.c &device_attr_host_fc_non_bls_resp.attr, attr 1795 drivers/scsi/scsi_transport_fc.c &device_attr_host_reset_statistics.attr, attr 1843 drivers/scsi/scsi_transport_fc.c store_fc_host_vport_create(struct device *dev, struct device_attribute *attr, attr 1890 drivers/scsi/scsi_transport_fc.c store_fc_host_vport_delete(struct device *dev, struct device_attribute *attr, attr 123 drivers/scsi/scsi_transport_iscsi.c show_transport_handle(struct device *dev, struct device_attribute *attr, attr 134 drivers/scsi/scsi_transport_iscsi.c struct device_attribute *attr,char *buf) \ attr 144 drivers/scsi/scsi_transport_iscsi.c &dev_attr_handle.attr, attr 145 drivers/scsi/scsi_transport_iscsi.c &dev_attr_caps.attr, attr 175 drivers/scsi/scsi_transport_iscsi.c show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) attr 183 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ep_handle.attr, attr 305 drivers/scsi/scsi_transport_iscsi.c show_##type##_##name(struct device *dev, struct device_attribute *attr, \ attr 426 drivers/scsi/scsi_transport_iscsi.c struct attribute *attr, int i) attr 434 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_iface_enabled.attr) attr 436 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_vlan_id.attr) attr 438 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_vlan_priority.attr) attr 440 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_vlan_enabled.attr) attr 442 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_mtu.attr) attr 444 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_port.attr) attr 446 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_ipaddress_state.attr) attr 448 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_delayed_ack_en.attr) attr 450 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_tcp_nagle_disable.attr) attr 452 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_tcp_wsf_disable.attr) attr 454 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_tcp_wsf.attr) attr 456 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_tcp_timer_scale.attr) attr 458 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_tcp_timestamp_en.attr) attr 460 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_cache_id.attr) attr 462 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_redirect_en.attr) attr 464 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_def_taskmgmt_tmo.attr) attr 466 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_header_digest.attr) attr 468 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_data_digest.attr) attr 470 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_immediate_data.attr) attr 472 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_initial_r2t.attr) attr 474 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_data_seq_in_order.attr) attr 476 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_data_pdu_in_order.attr) attr 478 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_erl.attr) attr 480 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_max_recv_dlength.attr) attr 482 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_first_burst_len.attr) attr 484 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_max_outstanding_r2t.attr) attr 486 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_max_burst_len.attr) attr 488 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_chap_auth.attr) attr 490 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_bidi_chap.attr) attr 492 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_discovery_auth_optional.attr) attr 494 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_discovery_logout.attr) attr 496 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_strict_login_comp_en.attr) attr 498 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_iface_initiator_name.attr) attr 501 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_ipv4_iface_ipaddress.attr) attr 503 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_gateway.attr) attr 505 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_subnet.attr) attr 507 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_bootproto.attr) attr 509 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 510 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_dns_address_en.attr) attr 512 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 513 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_slp_da_info_en.attr) attr 515 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_tos_en.attr) attr 517 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_tos.attr) attr 519 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_grat_arp_en.attr) attr 521 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 522 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_alt_client_id_en.attr) attr 524 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_dhcp_alt_client_id.attr) attr 526 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 527 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_req_vendor_id_en.attr) attr 529 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 530 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_use_vendor_id_en.attr) attr 532 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_dhcp_vendor_id.attr) attr 534 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 535 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_learn_iqn_en.attr) attr 537 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 538 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_fragment_disable.attr) attr 540 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 541 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_incoming_forwarding_en.attr) attr 543 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv4_iface_ttl.attr) attr 548 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_ipv6_iface_ipaddress.attr) attr 550 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_link_local_addr.attr) attr 552 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_router_addr.attr) attr 554 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_ipaddr_autocfg.attr) attr 556 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_link_local_autocfg.attr) attr 558 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_link_local_state.attr) attr 560 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_router_state.attr) attr 562 drivers/scsi/scsi_transport_iscsi.c else if (attr == attr 563 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_grat_neighbor_adv_en.attr) attr 565 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_mld_en.attr) attr 567 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_flow_label.attr) attr 569 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_traffic_class.attr) attr 571 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_hop_limit.attr) attr 573 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_nd_reachable_tmo.attr) attr 575 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_nd_rexmit_time.attr) attr 577 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_nd_stale_tmo.attr) attr 579 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_dup_addr_detect_cnt.attr) attr 581 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_ipv6_iface_router_adv_link_mtu.attr) attr 619 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_enabled.attr, attr 620 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_vlan_id.attr, attr 621 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_vlan_priority.attr, attr 622 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_vlan_enabled.attr, attr 623 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_ipaddress.attr, attr 624 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_gateway.attr, attr 625 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_subnet.attr, attr 626 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_bootproto.attr, attr 627 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_ipaddress.attr, attr 628 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_link_local_addr.attr, attr 629 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_router_addr.attr, attr 630 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_ipaddr_autocfg.attr, attr 631 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_link_local_autocfg.attr, attr 632 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_mtu.attr, attr 633 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_port.attr, attr 634 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_ipaddress_state.attr, attr 635 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_delayed_ack_en.attr, attr 636 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_tcp_nagle_disable.attr, attr 637 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_tcp_wsf_disable.attr, attr 638 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_tcp_wsf.attr, attr 639 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_tcp_timer_scale.attr, attr 640 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_tcp_timestamp_en.attr, attr 641 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_cache_id.attr, attr 642 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_redirect_en.attr, attr 643 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_def_taskmgmt_tmo.attr, attr 644 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_header_digest.attr, attr 645 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_data_digest.attr, attr 646 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_immediate_data.attr, attr 647 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_initial_r2t.attr, attr 648 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_data_seq_in_order.attr, attr 649 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_data_pdu_in_order.attr, attr 650 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_erl.attr, attr 651 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_max_recv_dlength.attr, attr 652 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_first_burst_len.attr, attr 653 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_max_outstanding_r2t.attr, attr 654 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_max_burst_len.attr, attr 655 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_chap_auth.attr, attr 656 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_bidi_chap.attr, attr 657 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_discovery_auth_optional.attr, attr 658 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_discovery_logout.attr, attr 659 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_strict_login_comp_en.attr, attr 660 drivers/scsi/scsi_transport_iscsi.c &dev_attr_iface_initiator_name.attr, attr 661 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_dns_address_en.attr, attr 662 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_slp_da_info_en.attr, attr 663 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_tos_en.attr, attr 664 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_tos.attr, attr 665 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_grat_arp_en.attr, attr 666 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_alt_client_id_en.attr, attr 667 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_alt_client_id.attr, attr 668 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_req_vendor_id_en.attr, attr 669 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_use_vendor_id_en.attr, attr 670 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_vendor_id.attr, attr 671 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_dhcp_learn_iqn_en.attr, attr 672 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_fragment_disable.attr, attr 673 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_incoming_forwarding_en.attr, attr 674 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv4_iface_ttl.attr, attr 675 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_link_local_state.attr, attr 676 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_router_state.attr, attr 677 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_grat_neighbor_adv_en.attr, attr 678 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_mld_en.attr, attr 679 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_flow_label.attr, attr 680 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_traffic_class.attr, attr 681 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_hop_limit.attr, attr 682 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_nd_reachable_tmo.attr, attr 683 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_nd_rexmit_time.attr, attr 684 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_nd_stale_tmo.attr, attr 685 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_dup_addr_detect_cnt.attr, attr 686 drivers/scsi/scsi_transport_iscsi.c &dev_attr_ipv6_iface_router_adv_link_mtu.attr, attr 816 drivers/scsi/scsi_transport_iscsi.c show_##type##_##name(struct device *dev, struct device_attribute *attr, \ attr 878 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_auto_snd_tgt_disable.attr, attr 879 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_discovery_session.attr, attr 880 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_portal_type.attr, attr 881 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_entry_enable.attr, attr 882 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_immediate_data.attr, attr 883 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_initial_r2t.attr, attr 884 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_data_seq_in_order.attr, attr 885 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_data_pdu_in_order.attr, attr 886 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_chap_auth.attr, attr 887 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_discovery_logout.attr, attr 888 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_bidi_chap.attr, attr 889 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_discovery_auth_optional.attr, attr 890 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_erl.attr, attr 891 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_first_burst_len.attr, attr 892 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_def_time2wait.attr, attr 893 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_def_time2retain.attr, attr 894 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_max_outstanding_r2t.attr, attr 895 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_isid.attr, attr 896 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tsid.attr, attr 897 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_max_burst_len.attr, attr 898 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_def_taskmgmt_tmo.attr, attr 899 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_targetalias.attr, attr 900 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_targetname.attr, attr 901 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tpgt.attr, attr 902 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_discovery_parent_idx.attr, attr 903 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_discovery_parent_type.attr, attr 904 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_chap_in_idx.attr, attr 905 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_chap_out_idx.attr, attr 906 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_username.attr, attr 907 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_username_in.attr, attr 908 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_password.attr, attr 909 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_password_in.attr, attr 910 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_is_boot_target.attr, attr 915 drivers/scsi/scsi_transport_iscsi.c struct attribute *attr, attr 924 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_fnode_auto_snd_tgt_disable.attr) { attr 926 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_discovery_session.attr) { attr 928 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_portal_type.attr) { attr 930 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_entry_enable.attr) { attr 932 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_immediate_data.attr) { attr 934 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_initial_r2t.attr) { attr 936 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_data_seq_in_order.attr) { attr 938 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_data_pdu_in_order.attr) { attr 940 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_chap_auth.attr) { attr 942 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_discovery_logout.attr) { attr 944 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_bidi_chap.attr) { attr 946 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_discovery_auth_optional.attr) { attr 948 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_erl.attr) { attr 950 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_first_burst_len.attr) { attr 952 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_def_time2wait.attr) { attr 954 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_def_time2retain.attr) { attr 956 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_max_outstanding_r2t.attr) { attr 958 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_isid.attr) { attr 960 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tsid.attr) { attr 962 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_max_burst_len.attr) { attr 964 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_def_taskmgmt_tmo.attr) { attr 966 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_targetalias.attr) { attr 968 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_targetname.attr) { attr 970 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tpgt.attr) { attr 972 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_discovery_parent_idx.attr) { attr 974 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_discovery_parent_type.attr) { attr 976 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_chap_in_idx.attr) { attr 978 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_chap_out_idx.attr) { attr 980 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_username.attr) { attr 982 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_username_in.attr) { attr 984 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_password.attr) { attr 986 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_password_in.attr) { attr 988 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_is_boot_target.attr) { attr 1028 drivers/scsi/scsi_transport_iscsi.c show_##type##_##name(struct device *dev, struct device_attribute *attr, \ attr 1087 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_is_fw_assigned_ipv6.attr, attr 1088 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_header_digest.attr, attr 1089 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_data_digest.attr, attr 1090 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_snack_req.attr, attr 1091 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tcp_timestamp_stat.attr, attr 1092 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tcp_nagle_disable.attr, attr 1093 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tcp_wsf_disable.attr, attr 1094 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tcp_timer_scale.attr, attr 1095 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tcp_timestamp_enable.attr, attr 1096 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_fragment_disable.attr, attr 1097 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_max_recv_dlength.attr, attr 1098 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_max_xmit_dlength.attr, attr 1099 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_keepalive_tmo.attr, attr 1100 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_port.attr, attr 1101 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_ipaddress.attr, attr 1102 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_redirect_ipaddr.attr, attr 1103 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_max_segment_size.attr, attr 1104 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_local_port.attr, attr 1105 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_ipv4_tos.attr, attr 1106 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_ipv6_traffic_class.attr, attr 1107 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_ipv6_flow_label.attr, attr 1108 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_link_local_ipv6.attr, attr 1109 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tcp_xmit_wsf.attr, attr 1110 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_tcp_recv_wsf.attr, attr 1111 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_statsn.attr, attr 1112 drivers/scsi/scsi_transport_iscsi.c &dev_attr_fnode_exp_statsn.attr, attr 1117 drivers/scsi/scsi_transport_iscsi.c struct attribute *attr, attr 1125 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_fnode_is_fw_assigned_ipv6.attr) { attr 1127 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_header_digest.attr) { attr 1129 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_data_digest.attr) { attr 1131 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_snack_req.attr) { attr 1133 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tcp_timestamp_stat.attr) { attr 1135 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tcp_nagle_disable.attr) { attr 1137 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tcp_wsf_disable.attr) { attr 1139 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tcp_timer_scale.attr) { attr 1141 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tcp_timestamp_enable.attr) { attr 1143 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_fragment_disable.attr) { attr 1145 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_max_recv_dlength.attr) { attr 1147 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_max_xmit_dlength.attr) { attr 1149 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_keepalive_tmo.attr) { attr 1151 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_port.attr) { attr 1153 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_ipaddress.attr) { attr 1155 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_redirect_ipaddr.attr) { attr 1157 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_max_segment_size.attr) { attr 1159 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_local_port.attr) { attr 1161 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_ipv4_tos.attr) { attr 1163 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_ipv6_traffic_class.attr) { attr 1165 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_ipv6_flow_label.attr) { attr 1167 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_link_local_ipv6.attr) { attr 1169 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tcp_xmit_wsf.attr) { attr 1171 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_tcp_recv_wsf.attr) { attr 1173 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_statsn.attr) { attr 1175 drivers/scsi/scsi_transport_iscsi.c } else if (attr == &dev_attr_fnode_exp_statsn.attr) { attr 3760 drivers/scsi/scsi_transport_iscsi.c struct device_attribute *attr, char *buf) \ attr 3804 drivers/scsi/scsi_transport_iscsi.c struct device_attribute *attr,\ attr 3840 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_max_recv_dlength.attr, attr 3841 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_max_xmit_dlength.attr, attr 3842 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_header_digest.attr, attr 3843 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_data_digest.attr, attr 3844 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_ifmarker.attr, attr 3845 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_ofmarker.attr, attr 3846 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_address.attr, attr 3847 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_port.attr, attr 3848 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_exp_statsn.attr, attr 3849 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_persistent_address.attr, attr 3850 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_persistent_port.attr, attr 3851 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_ping_tmo.attr, attr 3852 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_recv_tmo.attr, attr 3853 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_local_port.attr, attr 3854 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_statsn.attr, attr 3855 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_keepalive_tmo.attr, attr 3856 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_max_segment_size.attr, attr 3857 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_tcp_timestamp_stat.attr, attr 3858 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_tcp_wsf_disable.attr, attr 3859 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_tcp_nagle_disable.attr, attr 3860 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_tcp_timer_scale.attr, attr 3861 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_tcp_timestamp_enable.attr, attr 3862 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_fragment_disable.attr, attr 3863 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_ipv4_tos.attr, attr 3864 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_ipv6_traffic_class.attr, attr 3865 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_ipv6_flow_label.attr, attr 3866 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_is_fw_assigned_ipv6.attr, attr 3867 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_tcp_xmit_wsf.attr, attr 3868 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_tcp_recv_wsf.attr, attr 3869 drivers/scsi/scsi_transport_iscsi.c &dev_attr_conn_local_ipaddr.attr, attr 3874 drivers/scsi/scsi_transport_iscsi.c struct attribute *attr, int i) attr 3881 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_conn_max_recv_dlength.attr) attr 3883 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_max_xmit_dlength.attr) attr 3885 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_header_digest.attr) attr 3887 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_data_digest.attr) attr 3889 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_ifmarker.attr) attr 3891 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_ofmarker.attr) attr 3893 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_address.attr) attr 3895 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_port.attr) attr 3897 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_exp_statsn.attr) attr 3899 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_persistent_address.attr) attr 3901 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_persistent_port.attr) attr 3903 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_ping_tmo.attr) attr 3905 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_recv_tmo.attr) attr 3907 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_local_port.attr) attr 3909 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_statsn.attr) attr 3911 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_keepalive_tmo.attr) attr 3913 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_max_segment_size.attr) attr 3915 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_tcp_timestamp_stat.attr) attr 3917 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_tcp_wsf_disable.attr) attr 3919 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_tcp_nagle_disable.attr) attr 3921 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_tcp_timer_scale.attr) attr 3923 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_tcp_timestamp_enable.attr) attr 3925 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_fragment_disable.attr) attr 3927 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_ipv4_tos.attr) attr 3929 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_ipv6_traffic_class.attr) attr 3931 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_ipv6_flow_label.attr) attr 3933 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_is_fw_assigned_ipv6.attr) attr 3935 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_tcp_xmit_wsf.attr) attr 3937 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_tcp_recv_wsf.attr) attr 3939 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_conn_local_ipaddr.attr) attr 3960 drivers/scsi/scsi_transport_iscsi.c struct device_attribute *attr, char *buf) \ attr 4018 drivers/scsi/scsi_transport_iscsi.c show_priv_session_state(struct device *dev, struct device_attribute *attr, attr 4027 drivers/scsi/scsi_transport_iscsi.c show_priv_session_creator(struct device *dev, struct device_attribute *attr, attr 4036 drivers/scsi/scsi_transport_iscsi.c show_priv_session_target_id(struct device *dev, struct device_attribute *attr, attr 4048 drivers/scsi/scsi_transport_iscsi.c struct device_attribute *attr, char *buf) \ attr 4060 drivers/scsi/scsi_transport_iscsi.c struct device_attribute *attr, \ attr 4093 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_initial_r2t.attr, attr 4094 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_max_outstanding_r2t.attr, attr 4095 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_immediate_data.attr, attr 4096 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_first_burst_len.attr, attr 4097 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_max_burst_len.attr, attr 4098 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_data_pdu_in_order.attr, attr 4099 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_data_seq_in_order.attr, attr 4100 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_erl.attr, attr 4101 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_targetname.attr, attr 4102 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_tpgt.attr, attr 4103 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_password.attr, attr 4104 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_password_in.attr, attr 4105 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_username.attr, attr 4106 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_username_in.attr, attr 4107 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_fast_abort.attr, attr 4108 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_abort_tmo.attr, attr 4109 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_lu_reset_tmo.attr, attr 4110 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_tgt_reset_tmo.attr, attr 4111 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_ifacename.attr, attr 4112 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_initiatorname.attr, attr 4113 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_targetalias.attr, attr 4114 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_boot_root.attr, attr 4115 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_boot_nic.attr, attr 4116 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_boot_target.attr, attr 4117 drivers/scsi/scsi_transport_iscsi.c &dev_attr_priv_sess_recovery_tmo.attr, attr 4118 drivers/scsi/scsi_transport_iscsi.c &dev_attr_priv_sess_state.attr, attr 4119 drivers/scsi/scsi_transport_iscsi.c &dev_attr_priv_sess_creator.attr, attr 4120 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_chap_out_idx.attr, attr 4121 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_chap_in_idx.attr, attr 4122 drivers/scsi/scsi_transport_iscsi.c &dev_attr_priv_sess_target_id.attr, attr 4123 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_auto_snd_tgt_disable.attr, attr 4124 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_discovery_session.attr, attr 4125 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_portal_type.attr, attr 4126 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_chap_auth.attr, attr 4127 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_discovery_logout.attr, attr 4128 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_bidi_chap.attr, attr 4129 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_discovery_auth_optional.attr, attr 4130 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_def_time2wait.attr, attr 4131 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_def_time2retain.attr, attr 4132 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_isid.attr, attr 4133 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_tsid.attr, attr 4134 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_def_taskmgmt_tmo.attr, attr 4135 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_discovery_parent_idx.attr, attr 4136 drivers/scsi/scsi_transport_iscsi.c &dev_attr_sess_discovery_parent_type.attr, attr 4141 drivers/scsi/scsi_transport_iscsi.c struct attribute *attr, int i) attr 4148 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_sess_initial_r2t.attr) attr 4150 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_max_outstanding_r2t.attr) attr 4152 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_immediate_data.attr) attr 4154 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_first_burst_len.attr) attr 4156 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_max_burst_len.attr) attr 4158 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_data_pdu_in_order.attr) attr 4160 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_data_seq_in_order.attr) attr 4162 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_erl.attr) attr 4164 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_targetname.attr) attr 4166 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_tpgt.attr) attr 4168 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_chap_in_idx.attr) attr 4170 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_chap_out_idx.attr) attr 4172 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_password.attr) attr 4174 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_password_in.attr) attr 4176 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_username.attr) attr 4178 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_username_in.attr) attr 4180 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_fast_abort.attr) attr 4182 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_abort_tmo.attr) attr 4184 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_lu_reset_tmo.attr) attr 4186 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_tgt_reset_tmo.attr) attr 4188 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_ifacename.attr) attr 4190 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_initiatorname.attr) attr 4192 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_targetalias.attr) attr 4194 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_boot_root.attr) attr 4196 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_boot_nic.attr) attr 4198 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_boot_target.attr) attr 4200 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_auto_snd_tgt_disable.attr) attr 4202 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_discovery_session.attr) attr 4204 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_portal_type.attr) attr 4206 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_chap_auth.attr) attr 4208 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_discovery_logout.attr) attr 4210 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_bidi_chap.attr) attr 4212 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_discovery_auth_optional.attr) attr 4214 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_def_time2wait.attr) attr 4216 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_def_time2retain.attr) attr 4218 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_isid.attr) attr 4220 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_tsid.attr) attr 4222 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_def_taskmgmt_tmo.attr) attr 4224 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_discovery_parent_idx.attr) attr 4226 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_sess_discovery_parent_type.attr) attr 4228 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_priv_sess_recovery_tmo.attr) attr 4230 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_priv_sess_state.attr) attr 4232 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_priv_sess_creator.attr) attr 4234 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_priv_sess_target_id.attr) attr 4255 drivers/scsi/scsi_transport_iscsi.c struct device_attribute *attr, char *buf) \ attr 4275 drivers/scsi/scsi_transport_iscsi.c &dev_attr_host_netdev.attr, attr 4276 drivers/scsi/scsi_transport_iscsi.c &dev_attr_host_hwaddress.attr, attr 4277 drivers/scsi/scsi_transport_iscsi.c &dev_attr_host_ipaddress.attr, attr 4278 drivers/scsi/scsi_transport_iscsi.c &dev_attr_host_initiatorname.attr, attr 4279 drivers/scsi/scsi_transport_iscsi.c &dev_attr_host_port_state.attr, attr 4280 drivers/scsi/scsi_transport_iscsi.c &dev_attr_host_port_speed.attr, attr 4285 drivers/scsi/scsi_transport_iscsi.c struct attribute *attr, int i) attr 4292 drivers/scsi/scsi_transport_iscsi.c if (attr == &dev_attr_host_netdev.attr) attr 4294 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_host_hwaddress.attr) attr 4296 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_host_ipaddress.attr) attr 4298 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_host_initiatorname.attr) attr 4300 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_host_port_state.attr) attr 4302 drivers/scsi/scsi_transport_iscsi.c else if (attr == &dev_attr_host_port_speed.attr) attr 420 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 434 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 450 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 461 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, \ attr 494 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 514 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) attr 540 drivers/scsi/scsi_transport_sas.c store_sas_phy_enable(struct device *dev, struct device_attribute *attr, attr 561 drivers/scsi/scsi_transport_sas.c show_sas_phy_enable(struct device *dev, struct device_attribute *attr, attr 588 drivers/scsi/scsi_transport_sas.c store_sas_link_reset(struct device *dev, struct device_attribute *attr, attr 596 drivers/scsi/scsi_transport_sas.c store_sas_hard_reset(struct device *dev, struct device_attribute *attr, attr 786 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 1133 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 1148 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 1164 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) attr 1179 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) attr 1199 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) attr 1268 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 1297 drivers/scsi/scsi_transport_sas.c struct device_attribute *attr, char *buf) \ attr 1686 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = perm; \ attr 1693 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = perm; \ attr 1695 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = ro_perm; \ attr 269 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, char *buf) \ attr 282 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, \ attr 299 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, char *buf) \ attr 314 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, \ attr 332 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, \ attr 397 drivers/scsi/scsi_transport_spi.c store_spi_revalidate(struct device *dev, struct device_attribute *attr, attr 478 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, char *buf) attr 493 drivers/scsi/scsi_transport_spi.c store_spi_transport_period(struct device *cdev, struct device_attribute *attr, attr 522 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, char *buf) attr 538 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, attr 556 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, attr 568 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, attr 588 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, attr 599 drivers/scsi/scsi_transport_spi.c struct device_attribute *attr, attr 1424 drivers/scsi/scsi_transport_spi.c &dev_attr_signalling.attr, attr 1425 drivers/scsi/scsi_transport_spi.c &dev_attr_host_width.attr, attr 1426 drivers/scsi/scsi_transport_spi.c &dev_attr_hba_id.attr, attr 1441 drivers/scsi/scsi_transport_spi.c struct attribute *attr = &dev_attr_signalling.attr; attr 1445 drivers/scsi/scsi_transport_spi.c rc = sysfs_chmod_file(kobj, attr, attr->mode | S_IWUSR); attr 1458 drivers/scsi/scsi_transport_spi.c struct attribute *attr, int i) attr 1465 drivers/scsi/scsi_transport_spi.c if (attr == &dev_attr_period.attr && attr 1468 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_min_period.attr && attr 1471 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_offset.attr && attr 1474 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_max_offset.attr && attr 1477 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_width.attr && attr 1480 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_max_width.attr && attr 1483 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_iu.attr && attr 1486 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_max_iu.attr && attr 1489 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_dt.attr && attr 1492 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_qas.attr && attr 1495 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_max_qas.attr && attr 1498 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_wr_flow.attr && attr 1501 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_rd_strm.attr && attr 1504 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_rti.attr && attr 1507 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_pcomp_en.attr && attr 1510 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_hold_mcs.attr && attr 1513 drivers/scsi/scsi_transport_spi.c else if (attr == &dev_attr_revalidate.attr) attr 1520 drivers/scsi/scsi_transport_spi.c &dev_attr_period.attr, attr 1521 drivers/scsi/scsi_transport_spi.c &dev_attr_min_period.attr, attr 1522 drivers/scsi/scsi_transport_spi.c &dev_attr_offset.attr, attr 1523 drivers/scsi/scsi_transport_spi.c &dev_attr_max_offset.attr, attr 1524 drivers/scsi/scsi_transport_spi.c &dev_attr_width.attr, attr 1525 drivers/scsi/scsi_transport_spi.c &dev_attr_max_width.attr, attr 1526 drivers/scsi/scsi_transport_spi.c &dev_attr_iu.attr, attr 1527 drivers/scsi/scsi_transport_spi.c &dev_attr_max_iu.attr, attr 1528 drivers/scsi/scsi_transport_spi.c &dev_attr_dt.attr, attr 1529 drivers/scsi/scsi_transport_spi.c &dev_attr_qas.attr, attr 1530 drivers/scsi/scsi_transport_spi.c &dev_attr_max_qas.attr, attr 1531 drivers/scsi/scsi_transport_spi.c &dev_attr_wr_flow.attr, attr 1532 drivers/scsi/scsi_transport_spi.c &dev_attr_rd_strm.attr, attr 1533 drivers/scsi/scsi_transport_spi.c &dev_attr_rti.attr, attr 1534 drivers/scsi/scsi_transport_spi.c &dev_attr_pcomp_en.attr, attr 1535 drivers/scsi/scsi_transport_spi.c &dev_attr_hold_mcs.attr, attr 1536 drivers/scsi/scsi_transport_spi.c &dev_attr_revalidate.attr, attr 121 drivers/scsi/scsi_transport_srp.c show_srp_rport_id(struct device *dev, struct device_attribute *attr, attr 139 drivers/scsi/scsi_transport_srp.c show_srp_rport_roles(struct device *dev, struct device_attribute *attr, attr 157 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, attr 175 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, attr 213 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, char *buf) attr 221 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, attr 253 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, char *buf) attr 263 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, attr 272 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, attr 298 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, attr 307 drivers/scsi/scsi_transport_srp.c struct device_attribute *attr, attr 158 drivers/scsi/sd.c cache_type_store(struct device *dev, struct device_attribute *attr, attr 227 drivers/scsi/sd.c manage_start_stop_show(struct device *dev, struct device_attribute *attr, attr 237 drivers/scsi/sd.c manage_start_stop_store(struct device *dev, struct device_attribute *attr, attr 257 drivers/scsi/sd.c allow_restart_show(struct device *dev, struct device_attribute *attr, char *buf) attr 265 drivers/scsi/sd.c allow_restart_store(struct device *dev, struct device_attribute *attr, attr 288 drivers/scsi/sd.c cache_type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 298 drivers/scsi/sd.c FUA_show(struct device *dev, struct device_attribute *attr, char *buf) attr 307 drivers/scsi/sd.c protection_type_show(struct device *dev, struct device_attribute *attr, attr 316 drivers/scsi/sd.c protection_type_store(struct device *dev, struct device_attribute *attr, attr 339 drivers/scsi/sd.c protection_mode_show(struct device *dev, struct device_attribute *attr, attr 362 drivers/scsi/sd.c app_tag_own_show(struct device *dev, struct device_attribute *attr, char *buf) attr 371 drivers/scsi/sd.c thin_provisioning_show(struct device *dev, struct device_attribute *attr, attr 391 drivers/scsi/sd.c provisioning_mode_show(struct device *dev, struct device_attribute *attr, attr 400 drivers/scsi/sd.c provisioning_mode_store(struct device *dev, struct device_attribute *attr, attr 437 drivers/scsi/sd.c zeroing_mode_show(struct device *dev, struct device_attribute *attr, attr 446 drivers/scsi/sd.c zeroing_mode_store(struct device *dev, struct device_attribute *attr, attr 467 drivers/scsi/sd.c struct device_attribute *attr, char *buf) attr 476 drivers/scsi/sd.c struct device_attribute *attr, const char *buf, attr 492 drivers/scsi/sd.c max_write_same_blocks_show(struct device *dev, struct device_attribute *attr, attr 501 drivers/scsi/sd.c max_write_same_blocks_store(struct device *dev, struct device_attribute *attr, attr 534 drivers/scsi/sd.c &dev_attr_cache_type.attr, attr 535 drivers/scsi/sd.c &dev_attr_FUA.attr, attr 536 drivers/scsi/sd.c &dev_attr_allow_restart.attr, attr 537 drivers/scsi/sd.c &dev_attr_manage_start_stop.attr, attr 538 drivers/scsi/sd.c &dev_attr_protection_type.attr, attr 539 drivers/scsi/sd.c &dev_attr_protection_mode.attr, attr 540 drivers/scsi/sd.c &dev_attr_app_tag_own.attr, attr 541 drivers/scsi/sd.c &dev_attr_thin_provisioning.attr, attr 542 drivers/scsi/sd.c &dev_attr_provisioning_mode.attr, attr 543 drivers/scsi/sd.c &dev_attr_zeroing_mode.attr, attr 544 drivers/scsi/sd.c &dev_attr_max_write_same_blocks.attr, attr 545 drivers/scsi/sd.c &dev_attr_max_medium_access_timeouts.attr, attr 6104 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6116 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6129 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6141 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6153 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6165 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, const char *buffer, size_t count) attr 6175 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6195 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, const char *buffer, size_t count) attr 6235 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6273 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6301 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buf) attr 6385 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6412 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 6435 drivers/scsi/smartpqi/smartpqi_init.c struct device_attribute *attr, char *buffer) attr 25 drivers/scsi/snic/snic_attrs.c struct device_attribute *attr, attr 35 drivers/scsi/snic/snic_attrs.c struct device_attribute *attr, attr 46 drivers/scsi/snic/snic_attrs.c struct device_attribute *attr, attr 54 drivers/scsi/snic/snic_attrs.c struct device_attribute *attr, attr 4590 drivers/scsi/st.c &driver_attr_try_direct_io.attr, attr 4591 drivers/scsi/st.c &driver_attr_fixed_buffer_size.attr, attr 4592 drivers/scsi/st.c &driver_attr_max_sg_segs.attr, attr 4593 drivers/scsi/st.c &driver_attr_version.attr, attr 4595 drivers/scsi/st.c &driver_attr_debug_flag.attr, attr 4603 drivers/scsi/st.c defined_show(struct device *dev, struct device_attribute *attr, char *buf) attr 4614 drivers/scsi/st.c default_blksize_show(struct device *dev, struct device_attribute *attr, attr 4626 drivers/scsi/st.c default_density_show(struct device *dev, struct device_attribute *attr, attr 4640 drivers/scsi/st.c default_compression_show(struct device *dev, struct device_attribute *attr, attr 4652 drivers/scsi/st.c options_show(struct device *dev, struct device_attribute *attr, char *buf) attr 4689 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4707 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4723 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4740 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4757 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4774 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4792 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4812 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4831 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4849 drivers/scsi/st.c struct device_attribute *attr, char *buf) attr 4859 drivers/scsi/st.c &dev_attr_defined.attr, attr 4860 drivers/scsi/st.c &dev_attr_default_blksize.attr, attr 4861 drivers/scsi/st.c &dev_attr_default_density.attr, attr 4862 drivers/scsi/st.c &dev_attr_default_compression.attr, attr 4863 drivers/scsi/st.c &dev_attr_options.attr, attr 4868 drivers/scsi/st.c &dev_attr_read_cnt.attr, attr 4869 drivers/scsi/st.c &dev_attr_read_byte_cnt.attr, attr 4870 drivers/scsi/st.c &dev_attr_read_ns.attr, attr 4871 drivers/scsi/st.c &dev_attr_write_cnt.attr, attr 4872 drivers/scsi/st.c &dev_attr_write_byte_cnt.attr, attr 4873 drivers/scsi/st.c &dev_attr_write_ns.attr, attr 4874 drivers/scsi/st.c &dev_attr_in_flight.attr, attr 4875 drivers/scsi/st.c &dev_attr_io_ns.attr, attr 4876 drivers/scsi/st.c &dev_attr_other_cnt.attr, attr 4877 drivers/scsi/st.c &dev_attr_resid_cnt.attr, attr 676 drivers/scsi/ufs/ufs-qcom.c show_ufs_to_mem_max_bus_bw(struct device *dev, struct device_attribute *attr, attr 687 drivers/scsi/ufs/ufs-qcom.c store_ufs_to_mem_max_bus_bw(struct device *dev, struct device_attribute *attr, attr 738 drivers/scsi/ufs/ufs-qcom.c sysfs_attr_init(&host->bus_vote.max_bus_bw.attr); attr 739 drivers/scsi/ufs/ufs-qcom.c host->bus_vote.max_bus_bw.attr.name = "max_bus_bw"; attr 740 drivers/scsi/ufs/ufs-qcom.c host->bus_vote.max_bus_bw.attr.mode = S_IRUGO | S_IWUSR; attr 35 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, attr 58 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 66 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 68 drivers/scsi/ufs/ufs-sysfs.c return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, true); attr 72 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 81 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 90 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 98 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 100 drivers/scsi/ufs/ufs-sysfs.c return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); attr 104 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 113 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 166 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 177 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, attr 206 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_rpm_lvl.attr, attr 207 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_rpm_target_dev_state.attr, attr 208 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_rpm_target_link_state.attr, attr 209 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_spm_lvl.attr, attr 210 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_spm_target_dev_state.attr, attr 211 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_spm_target_link_state.attr, attr 212 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_auto_hibern8.attr, attr 260 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) \ attr 299 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_device_type.attr, attr 300 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_device_class.attr, attr 301 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_device_sub_class.attr, attr 302 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_protocol.attr, attr 303 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_number_of_luns.attr, attr 304 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_number_of_wluns.attr, attr 305 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_boot_enable.attr, attr 306 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_descriptor_access_enable.attr, attr 307 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_initial_power_mode.attr, attr 308 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_high_priority_lun.attr, attr 309 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_secure_removal_type.attr, attr 310 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_support_security_lun.attr, attr 311 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_bkops_termination_latency.attr, attr 312 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_initial_active_icc_level.attr, attr 313 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_specification_version.attr, attr 314 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_manufacturing_date.attr, attr 315 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_manufacturer_id.attr, attr 316 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_rtt_capability.attr, attr 317 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_rtc_update.attr, attr 318 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_ufs_features.attr, attr 319 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_ffu_timeout.attr, attr 320 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_queue_depth.attr, attr 321 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_device_version.attr, attr 322 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_number_of_secure_wpa.attr, attr 323 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_psa_max_data_size.attr, attr 324 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_psa_state_timeout.attr, attr 340 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_unipro_version.attr, attr 341 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_mphy_version.attr, attr 396 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_raw_device_capacity.attr, attr 397 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_max_number_of_luns.attr, attr 398 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_segment_size.attr, attr 399 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_allocation_unit_size.attr, attr 400 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_min_addressable_block_size.attr, attr 401 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_optimal_read_block_size.attr, attr 402 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_optimal_write_block_size.attr, attr 403 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_max_in_buffer_size.attr, attr 404 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_max_out_buffer_size.attr, attr 405 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_rpmb_rw_size.attr, attr 406 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_dyn_capacity_resource_policy.attr, attr 407 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_data_ordering.attr, attr 408 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_max_number_of_contexts.attr, attr 409 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_sys_data_tag_unit_size.attr, attr 410 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_sys_data_tag_resource_size.attr, attr 411 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_secure_removal_types.attr, attr 412 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_memory_types.attr, attr 413 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_sys_code_memory_max_alloc_units.attr, attr 414 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_sys_code_memory_capacity_adjustment_factor.attr, attr 415 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_non_persist_memory_max_alloc_units.attr, attr 416 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_non_persist_memory_capacity_adjustment_factor.attr, attr 417 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh1_memory_max_alloc_units.attr, attr 418 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh1_memory_capacity_adjustment_factor.attr, attr 419 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh2_memory_max_alloc_units.attr, attr 420 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh2_memory_capacity_adjustment_factor.attr, attr 421 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh3_memory_max_alloc_units.attr, attr 422 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh3_memory_capacity_adjustment_factor.attr, attr 423 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh4_memory_max_alloc_units.attr, attr 424 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_enh4_memory_capacity_adjustment_factor.attr, attr 441 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_eol_info.attr, attr 442 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_life_time_estimation_a.attr, attr 443 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_life_time_estimation_b.attr, attr 454 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) \ attr 512 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc0.attr, attr 513 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc1.attr, attr 514 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc2.attr, attr 515 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc3.attr, attr 516 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc4.attr, attr 517 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc5.attr, attr 518 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc6.attr, attr 519 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc7.attr, attr 520 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc8.attr, attr 521 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc9.attr, attr 522 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc10.attr, attr 523 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc11.attr, attr 524 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc12.attr, attr 525 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc13.attr, attr 526 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc14.attr, attr 527 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vcc15.attr, attr 528 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq0.attr, attr 529 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq1.attr, attr 530 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq2.attr, attr 531 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq3.attr, attr 532 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq4.attr, attr 533 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq5.attr, attr 534 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq6.attr, attr 535 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq7.attr, attr 536 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq8.attr, attr 537 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq9.attr, attr 538 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq10.attr, attr 539 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq11.attr, attr 540 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq12.attr, attr 541 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq13.attr, attr 542 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq14.attr, attr 543 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq15.attr, attr 544 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq20.attr, attr 545 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq21.attr, attr 546 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq22.attr, attr 547 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq23.attr, attr 548 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq24.attr, attr 549 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq25.attr, attr 550 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq26.attr, attr 551 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq27.attr, attr 552 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq28.attr, attr 553 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq29.attr, attr 554 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq210.attr, attr 555 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq211.attr, attr 556 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq212.attr, attr 557 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq213.attr, attr 558 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq214.attr, attr 559 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_levels_vccq215.attr, attr 570 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) \ attr 609 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_manufacturer_name.attr, attr 610 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_product_name.attr, attr 611 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_oem_id.attr, attr 612 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_serial_number.attr, attr 613 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_product_revision.attr, attr 624 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) \ attr 645 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_device_init.attr, attr 646 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_permanent_wpe.attr, attr 647 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_power_on_wpe.attr, attr 648 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_bkops_enable.attr, attr 649 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_life_span_mode_enable.attr, attr 650 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_phy_resource_removal.attr, attr 651 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_busy_rtc.attr, attr 652 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_disable_fw_update.attr, attr 663 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) \ attr 692 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_boot_lun_enabled.attr, attr 693 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_current_power_mode.attr, attr 694 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_active_icc_level.attr, attr 695 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_ooo_data_enabled.attr, attr 696 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_bkops_status.attr, attr 697 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_purge_status.attr, attr 698 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_max_data_in_size.attr, attr 699 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_max_data_out_size.attr, attr 700 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_reference_clock_frequency.attr, attr 701 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_configuration_descriptor_lock.attr, attr 702 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_max_number_of_rtt.attr, attr 703 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_exception_event_control.attr, attr 704 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_exception_event_status.attr, attr 705 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_ffu_status.attr, attr 706 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_psa_state.attr, attr 707 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_psa_data_size.attr, attr 731 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) \ attr 761 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_boot_lun_id.attr, attr 762 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_lun_write_protect.attr, attr 763 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_lun_queue_depth.attr, attr 764 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_psa_sensitive.attr, attr 765 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_lun_memory_type.attr, attr 766 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_data_reliability.attr, attr 767 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_logical_block_size.attr, attr 768 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_logical_block_count.attr, attr 769 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_erase_block_size.attr, attr 770 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_provisioning_type.attr, attr 771 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_physical_memory_resourse_count.attr, attr 772 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_context_capabilities.attr, attr 773 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_large_unit_granularity.attr, attr 783 drivers/scsi/ufs/ufs-sysfs.c struct device_attribute *attr, char *buf) attr 798 drivers/scsi/ufs/ufs-sysfs.c &dev_attr_dyn_cap_needed_attribute.attr, attr 42 drivers/scsi/ufs/ufshcd-pci.c u32 attr = UIC_ARG_MIB(PA_LOCAL_TX_LCC_ENABLE); attr 45 drivers/scsi/ufs/ufshcd-pci.c ufshcd_dme_get(hba, attr, &lcc_enable); attr 47 drivers/scsi/ufs/ufshcd-pci.c ufshcd_dme_set(hba, attr, 0); attr 1416 drivers/scsi/ufs/ufshcd.c struct device_attribute *attr, char *buf) attr 1424 drivers/scsi/ufs/ufshcd.c struct device_attribute *attr, const char *buf, size_t count) attr 1465 drivers/scsi/ufs/ufshcd.c sysfs_attr_init(&hba->clk_scaling.enable_attr.attr); attr 1466 drivers/scsi/ufs/ufshcd.c hba->clk_scaling.enable_attr.attr.name = "clkscale_enable"; attr 1467 drivers/scsi/ufs/ufshcd.c hba->clk_scaling.enable_attr.attr.mode = 0644; attr 1701 drivers/scsi/ufs/ufshcd.c struct device_attribute *attr, char *buf) attr 1709 drivers/scsi/ufs/ufshcd.c struct device_attribute *attr, const char *buf, size_t count) attr 1724 drivers/scsi/ufs/ufshcd.c struct device_attribute *attr, char *buf) attr 1732 drivers/scsi/ufs/ufshcd.c struct device_attribute *attr, const char *buf, size_t count) attr 1806 drivers/scsi/ufs/ufshcd.c sysfs_attr_init(&hba->clk_gating.delay_attr.attr); attr 1807 drivers/scsi/ufs/ufshcd.c hba->clk_gating.delay_attr.attr.name = "clkgate_delay_ms"; attr 1808 drivers/scsi/ufs/ufshcd.c hba->clk_gating.delay_attr.attr.mode = 0644; attr 1814 drivers/scsi/ufs/ufshcd.c sysfs_attr_init(&hba->clk_gating.enable_attr.attr); attr 1815 drivers/scsi/ufs/ufshcd.c hba->clk_gating.enable_attr.attr.name = "clkgate_enable"; attr 1816 drivers/scsi/ufs/ufshcd.c hba->clk_gating.enable_attr.attr.mode = 0644; attr 258 drivers/scsi/ufs/ufshci.h #define UIC_ARG_MIB_SEL(attr, sel) ((((attr) & 0xFFFF) << 16) |\ attr 260 drivers/scsi/ufs/ufshci.h #define UIC_ARG_MIB(attr) UIC_ARG_MIB_SEL(attr, 0) attr 68 drivers/scsi/ufs/unipro.h #define is_mphy_tx_attr(attr) (attr < RX_MODE) attr 180 drivers/sfi/sfi_acpi.c container_of(bin_attr, struct sfi_table_attr, attr); attr 210 drivers/sfi/sfi_acpi.c tbl_attr->attr.read = sfi_acpi_table_show; attr 395 drivers/sfi/sfi_core.c container_of(bin_attr, struct sfi_table_attr, attr); attr 435 drivers/sfi/sfi_core.c sysfs_attr_init(&tbl_attr->attr.attr); attr 438 drivers/sfi/sfi_core.c tbl_attr->attr.size = 0; attr 439 drivers/sfi/sfi_core.c tbl_attr->attr.read = sfi_table_show; attr 440 drivers/sfi/sfi_core.c tbl_attr->attr.attr.name = tbl_attr->name; attr 441 drivers/sfi/sfi_core.c tbl_attr->attr.attr.mode = 0400; attr 444 drivers/sfi/sfi_core.c &tbl_attr->attr); attr 69 drivers/sfi/sfi_core.h struct bin_attribute attr; attr 475 drivers/sh/intc/core.c show_intc_name(struct device *dev, struct device_attribute *attr, char *buf) attr 24 drivers/sh/intc/userimask.c struct device_attribute *attr, char *buf) attr 31 drivers/sh/intc/userimask.c struct device_attribute *attr, attr 18 drivers/sh/superhyway/superhyway-sysfs.c static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 37 drivers/sh/superhyway/superhyway-sysfs.c &dev_attr_perr_flags.attr, attr 38 drivers/sh/superhyway/superhyway-sysfs.c &dev_attr_merr_flags.attr, attr 39 drivers/sh/superhyway/superhyway-sysfs.c &dev_attr_mod_vers.attr, attr 40 drivers/sh/superhyway/superhyway-sysfs.c &dev_attr_mod_id.attr, attr 41 drivers/sh/superhyway/superhyway-sysfs.c &dev_attr_bot_mb.attr, attr 42 drivers/sh/superhyway/superhyway-sysfs.c &dev_attr_top_mb.attr, attr 43 drivers/sh/superhyway/superhyway-sysfs.c &dev_attr_resource.attr, attr 385 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 395 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 405 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 415 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 432 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 449 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 466 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 483 drivers/siox/siox-core.c &dev_attr_type.attr, attr 484 drivers/siox/siox-core.c &dev_attr_inbytes.attr, attr 485 drivers/siox/siox-core.c &dev_attr_outbytes.attr, attr 486 drivers/siox/siox-core.c &dev_attr_status_errors.attr, attr 487 drivers/siox/siox-core.c &dev_attr_connected.attr, attr 488 drivers/siox/siox-core.c &dev_attr_watchdog.attr, attr 489 drivers/siox/siox-core.c &dev_attr_watchdog_errors.attr, attr 551 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 559 drivers/siox/siox-core.c struct device_attribute *attr, attr 588 drivers/siox/siox-core.c struct device_attribute *attr, attr 615 drivers/siox/siox-core.c struct device_attribute *attr, attr 629 drivers/siox/siox-core.c struct device_attribute *attr, char *buf) attr 637 drivers/siox/siox-core.c struct device_attribute *attr, attr 660 drivers/siox/siox-core.c &dev_attr_active.attr, attr 661 drivers/siox/siox-core.c &dev_attr_device_add.attr, attr 662 drivers/siox/siox-core.c &dev_attr_device_remove.attr, attr 663 drivers/siox/siox-core.c &dev_attr_poll_interval_ns.attr, attr 139 drivers/soc/fsl/dpio/dpio.c struct dpio_attr *attr) attr 156 drivers/soc/fsl/dpio/dpio.c attr->id = le32_to_cpu(dpio_rsp->id); attr 157 drivers/soc/fsl/dpio/dpio.c attr->qbman_portal_id = le16_to_cpu(dpio_rsp->qbman_portal_id); attr 158 drivers/soc/fsl/dpio/dpio.c attr->num_priorities = dpio_rsp->num_priorities; attr 159 drivers/soc/fsl/dpio/dpio.c attr->channel_mode = dpio_rsp->channel_mode & DPIO_CHANNEL_MODE_MASK; attr 160 drivers/soc/fsl/dpio/dpio.c attr->qbman_portal_ce_offset = attr 162 drivers/soc/fsl/dpio/dpio.c attr->qbman_portal_ci_offset = attr 164 drivers/soc/fsl/dpio/dpio.c attr->qbman_version = le32_to_cpu(dpio_rsp->qbman_version); attr 76 drivers/soc/fsl/dpio/dpio.h struct dpio_attr *attr); attr 37 drivers/soc/imx/soc-imx-scu.c struct device_attribute *attr, char *buf) attr 33 drivers/soc/imx/soc-imx8.c struct device_attribute *attr, char *buf) attr 37 drivers/soc/qcom/rmtfs_mem.c struct device_attribute *attr, attr 45 drivers/soc/qcom/rmtfs_mem.c struct device_attribute *attr, attr 52 drivers/soc/qcom/rmtfs_mem.c if (attr == &dev_attr_phys_addr) attr 54 drivers/soc/qcom/rmtfs_mem.c if (attr == &dev_attr_size) attr 56 drivers/soc/qcom/rmtfs_mem.c if (attr == &dev_attr_client_id) attr 63 drivers/soc/qcom/rmtfs_mem.c &dev_attr_phys_addr.attr, attr 64 drivers/soc/qcom/rmtfs_mem.c &dev_attr_size.attr, attr 65 drivers/soc/qcom/rmtfs_mem.c &dev_attr_client_id.attr, attr 150 drivers/soc/qcom/socinfo.c struct soc_device_attribute attr; attr 428 drivers/soc/qcom/socinfo.c qs->attr.family = "Snapdragon"; attr 429 drivers/soc/qcom/socinfo.c qs->attr.machine = socinfo_machine(&pdev->dev, attr 431 drivers/soc/qcom/socinfo.c qs->attr.revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u.%u", attr 435 drivers/soc/qcom/socinfo.c qs->attr.serial_number = devm_kasprintf(&pdev->dev, GFP_KERNEL, attr 439 drivers/soc/qcom/socinfo.c qs->soc_dev = soc_device_register(&qs->attr); attr 46 drivers/soc/tegra/fuse/fuse-tegra.c struct bin_attribute *attr, char *buf, attr 53 drivers/soc/tegra/fuse/fuse-tegra.c if (pos < 0 || pos >= attr->size) attr 56 drivers/soc/tegra/fuse/fuse-tegra.c if (size > attr->size - pos) attr 57 drivers/soc/tegra/fuse/fuse-tegra.c size = attr->size - pos; attr 66 drivers/soc/tegra/fuse/fuse-tegra.c .attr = { .name = "fuse", .mode = S_IRUGO, }, attr 217 drivers/soc/tegra/fuse/fuse-tegra.c struct soc_device_attribute *attr; attr 220 drivers/soc/tegra/fuse/fuse-tegra.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 221 drivers/soc/tegra/fuse/fuse-tegra.c if (!attr) attr 224 drivers/soc/tegra/fuse/fuse-tegra.c attr->family = kasprintf(GFP_KERNEL, "Tegra"); attr 225 drivers/soc/tegra/fuse/fuse-tegra.c attr->revision = kasprintf(GFP_KERNEL, "%d", tegra_sku_info.revision); attr 226 drivers/soc/tegra/fuse/fuse-tegra.c attr->soc_id = kasprintf(GFP_KERNEL, "%u", tegra_get_chip_id()); attr 228 drivers/soc/tegra/fuse/fuse-tegra.c dev = soc_device_register(attr); attr 230 drivers/soc/tegra/fuse/fuse-tegra.c kfree(attr->soc_id); attr 231 drivers/soc/tegra/fuse/fuse-tegra.c kfree(attr->revision); attr 232 drivers/soc/tegra/fuse/fuse-tegra.c kfree(attr->family); attr 233 drivers/soc/tegra/fuse/fuse-tegra.c kfree(attr); attr 1785 drivers/soc/tegra/pmc.c struct device_attribute *attr, char *buf) attr 1802 drivers/soc/tegra/pmc.c struct device_attribute *attr, char *buf) attr 150 drivers/soc/ux500/ux500-soc-id.c struct device_attribute *attr, attr 60 drivers/soc/versatile/soc-integrator.c struct device_attribute *attr, attr 70 drivers/soc/versatile/soc-integrator.c struct device_attribute *attr, attr 80 drivers/soc/versatile/soc-integrator.c struct device_attribute *attr, attr 90 drivers/soc/versatile/soc-integrator.c struct device_attribute *attr, attr 43 drivers/soc/versatile/soc-realview.c struct device_attribute *attr, attr 53 drivers/soc/versatile/soc-realview.c struct device_attribute *attr, attr 63 drivers/soc/versatile/soc-realview.c struct device_attribute *attr, attr 73 drivers/soc/versatile/soc-realview.c struct device_attribute *attr, attr 72 drivers/soc/xilinx/zynqmp_power.c struct device_attribute *attr, char *buf) attr 92 drivers/soc/xilinx/zynqmp_power.c struct device_attribute *attr, attr 150 drivers/soc/xilinx/zynqmp_power.c ret = sysfs_create_file(&pdev->dev.kobj, &dev_attr_suspend_mode.attr); attr 161 drivers/soc/xilinx/zynqmp_power.c sysfs_remove_file(&pdev->dev.kobj, &dev_attr_suspend_mode.attr); attr 419 drivers/spi/spi-dln2.c u16 data_len, u8 attr) attr 424 drivers/spi/spi-dln2.c u8 attr; attr 436 drivers/spi/spi-dln2.c tx->attr = attr; attr 448 drivers/spi/spi-dln2.c u16 data_len, u8 attr) attr 454 drivers/spi/spi-dln2.c u8 attr; attr 469 drivers/spi/spi-dln2.c tx.attr = attr; attr 489 drivers/spi/spi-dln2.c u8 *rx_data, u16 data_len, u8 attr) attr 495 drivers/spi/spi-dln2.c u8 attr; attr 520 drivers/spi/spi-dln2.c tx->attr = attr; attr 546 drivers/spi/spi-dln2.c u8 *rx_data, u16 data_len, u8 attr) { attr 559 drivers/spi/spi-dln2.c temp_attr = attr; attr 657 drivers/spi/spi-dln2.c u8 attr = 0; attr 668 drivers/spi/spi-dln2.c attr = DLN2_SPI_ATTR_LEAVE_SS_LOW; attr 671 drivers/spi/spi-dln2.c xfer->len, attr); attr 36 drivers/spi/spi-tle62x0.c static int to_gpio_num(struct device_attribute *attr); attr 97 drivers/spi/spi-tle62x0.c struct device_attribute *attr, char *buf) attr 134 drivers/spi/spi-tle62x0.c struct device_attribute *attr, char *buf) attr 137 drivers/spi/spi-tle62x0.c int gpio_num = to_gpio_num(attr); attr 148 drivers/spi/spi-tle62x0.c struct device_attribute *attr, attr 152 drivers/spi/spi-tle62x0.c int gpio_num = to_gpio_num(attr); attr 227 drivers/spi/spi-tle62x0.c static int to_gpio_num(struct device_attribute *attr) attr 232 drivers/spi/spi-tle62x0.c if (gpio_attrs[ptr] == attr) attr 120 drivers/spi/spi.c struct device_attribute *attr, \ attr 128 drivers/spi/spi.c .attr = { .name = file, .mode = 0444 }, \ attr 132 drivers/spi/spi.c struct device_attribute *attr, \ attr 139 drivers/spi/spi.c .attr = { .name = file, .mode = 0444 }, \ attr 198 drivers/spi/spi.c &dev_attr_modalias.attr, attr 199 drivers/spi/spi.c &dev_attr_driver_override.attr, attr 208 drivers/spi/spi.c &dev_attr_spi_device_messages.attr, attr 209 drivers/spi/spi.c &dev_attr_spi_device_transfers.attr, attr 210 drivers/spi/spi.c &dev_attr_spi_device_errors.attr, attr 211 drivers/spi/spi.c &dev_attr_spi_device_timedout.attr, attr 212 drivers/spi/spi.c &dev_attr_spi_device_spi_sync.attr, attr 213 drivers/spi/spi.c &dev_attr_spi_device_spi_sync_immediate.attr, attr 214 drivers/spi/spi.c &dev_attr_spi_device_spi_async.attr, attr 215 drivers/spi/spi.c &dev_attr_spi_device_bytes.attr, attr 216 drivers/spi/spi.c &dev_attr_spi_device_bytes_rx.attr, attr 217 drivers/spi/spi.c &dev_attr_spi_device_bytes_tx.attr, attr 218 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo0.attr, attr 219 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo1.attr, attr 220 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo2.attr, attr 221 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo3.attr, attr 222 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo4.attr, attr 223 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo5.attr, attr 224 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo6.attr, attr 225 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo7.attr, attr 226 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo8.attr, attr 227 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo9.attr, attr 228 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo10.attr, attr 229 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo11.attr, attr 230 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo12.attr, attr 231 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo13.attr, attr 232 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo14.attr, attr 233 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo15.attr, attr 234 drivers/spi/spi.c &dev_attr_spi_device_transfer_bytes_histo16.attr, attr 235 drivers/spi/spi.c &dev_attr_spi_device_transfers_split_maxsize.attr, attr 251 drivers/spi/spi.c &dev_attr_spi_controller_messages.attr, attr 252 drivers/spi/spi.c &dev_attr_spi_controller_transfers.attr, attr 253 drivers/spi/spi.c &dev_attr_spi_controller_errors.attr, attr 254 drivers/spi/spi.c &dev_attr_spi_controller_timedout.attr, attr 255 drivers/spi/spi.c &dev_attr_spi_controller_spi_sync.attr, attr 256 drivers/spi/spi.c &dev_attr_spi_controller_spi_sync_immediate.attr, attr 257 drivers/spi/spi.c &dev_attr_spi_controller_spi_async.attr, attr 258 drivers/spi/spi.c &dev_attr_spi_controller_bytes.attr, attr 259 drivers/spi/spi.c &dev_attr_spi_controller_bytes_rx.attr, attr 260 drivers/spi/spi.c &dev_attr_spi_controller_bytes_tx.attr, attr 261 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo0.attr, attr 262 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo1.attr, attr 263 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo2.attr, attr 264 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo3.attr, attr 265 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo4.attr, attr 266 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo5.attr, attr 267 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo6.attr, attr 268 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo7.attr, attr 269 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo8.attr, attr 270 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo9.attr, attr 271 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo10.attr, attr 272 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo11.attr, attr 273 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo12.attr, attr 274 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo13.attr, attr 275 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo14.attr, attr 276 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo15.attr, attr 277 drivers/spi/spi.c &dev_attr_spi_controller_transfer_bytes_histo16.attr, attr 278 drivers/spi/spi.c &dev_attr_spi_controller_transfers_split_maxsize.attr, attr 2110 drivers/spi/spi.c static ssize_t slave_show(struct device *dev, struct device_attribute *attr, attr 2122 drivers/spi/spi.c static ssize_t slave_store(struct device *dev, struct device_attribute *attr, attr 2164 drivers/spi/spi.c &dev_attr_slave.attr, attr 356 drivers/ssb/main.c attrib##_show(struct device *dev, struct device_attribute *attr, char *buf) \ attr 368 drivers/ssb/main.c name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 376 drivers/ssb/main.c &dev_attr_name.attr, attr 377 drivers/ssb/main.c &dev_attr_core_num.attr, attr 378 drivers/ssb/main.c &dev_attr_coreid.attr, attr 379 drivers/ssb/main.c &dev_attr_vendor.attr, attr 380 drivers/ssb/main.c &dev_attr_revision.attr, attr 381 drivers/ssb/main.c &dev_attr_irq.attr, attr 1121 drivers/ssb/pci.c struct device_attribute *attr, attr 1135 drivers/ssb/pci.c struct device_attribute *attr, attr 727 drivers/ssb/pcmcia.c struct device_attribute *attr, attr 743 drivers/ssb/pcmcia.c struct device_attribute *attr, attr 185 drivers/staging/axis-fifo/axis-fifo.c static ssize_t isr_store(struct device *dev, struct device_attribute *attr, attr 192 drivers/staging/axis-fifo/axis-fifo.c struct device_attribute *attr, char *buf) attr 199 drivers/staging/axis-fifo/axis-fifo.c static ssize_t ier_store(struct device *dev, struct device_attribute *attr, attr 206 drivers/staging/axis-fifo/axis-fifo.c struct device_attribute *attr, char *buf) attr 213 drivers/staging/axis-fifo/axis-fifo.c static ssize_t tdfr_store(struct device *dev, struct device_attribute *attr, attr 222 drivers/staging/axis-fifo/axis-fifo.c struct device_attribute *attr, char *buf) attr 229 drivers/staging/axis-fifo/axis-fifo.c static ssize_t tdfd_store(struct device *dev, struct device_attribute *attr, attr 237 drivers/staging/axis-fifo/axis-fifo.c static ssize_t tlr_store(struct device *dev, struct device_attribute *attr, attr 245 drivers/staging/axis-fifo/axis-fifo.c static ssize_t rdfr_store(struct device *dev, struct device_attribute *attr, attr 254 drivers/staging/axis-fifo/axis-fifo.c struct device_attribute *attr, char *buf) attr 262 drivers/staging/axis-fifo/axis-fifo.c struct device_attribute *attr, char *buf) attr 270 drivers/staging/axis-fifo/axis-fifo.c struct device_attribute *attr, char *buf) attr 277 drivers/staging/axis-fifo/axis-fifo.c static ssize_t srr_store(struct device *dev, struct device_attribute *attr, attr 285 drivers/staging/axis-fifo/axis-fifo.c static ssize_t tdr_store(struct device *dev, struct device_attribute *attr, attr 294 drivers/staging/axis-fifo/axis-fifo.c struct device_attribute *attr, char *buf) attr 302 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_isr.attr, attr 303 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_ier.attr, attr 304 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_tdfr.attr, attr 305 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_tdfv.attr, attr 306 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_tdfd.attr, attr 307 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_tlr.attr, attr 308 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_rdfr.attr, attr 309 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_rdfo.attr, attr 310 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_rdfd.attr, attr 311 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_rlr.attr, attr 312 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_srr.attr, attr 313 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_tdr.attr, attr 314 drivers/staging/axis-fifo/axis-fifo.c &dev_attr_rdr.attr, attr 379 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, char *buf) attr 401 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, attr 435 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, char *buf) attr 457 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, attr 491 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, attr 514 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, attr 548 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, char *buf) attr 570 drivers/staging/comedi/comedi_fops.c struct device_attribute *attr, attr 604 drivers/staging/comedi/comedi_fops.c &dev_attr_max_read_buffer_kb.attr, attr 605 drivers/staging/comedi/comedi_fops.c &dev_attr_read_buffer_kb.attr, attr 606 drivers/staging/comedi/comedi_fops.c &dev_attr_max_write_buffer_kb.attr, attr 607 drivers/staging/comedi/comedi_fops.c &dev_attr_write_buffer_kb.attr, attr 283 drivers/staging/exfat/exfat.h u32 attr; attr 416 drivers/staging/exfat/exfat.h u8 attr; attr 433 drivers/staging/exfat/exfat.h u8 attr; attr 446 drivers/staging/exfat/exfat.h u8 attr[2]; attr 569 drivers/staging/exfat/exfat.h void (*set_entry_attr)(struct dentry_t *p_entry, u32 attr); attr 822 drivers/staging/exfat/exfat.h void fat_set_entry_attr(struct dentry_t *p_entry, u32 attr); attr 823 drivers/staging/exfat/exfat.h void exfat_set_entry_attr(struct dentry_t *p_entry, u32 attr); attr 919 drivers/staging/exfat/exfat_core.c else if (ep->attr == ATTR_EXTEND) attr 922 drivers/staging/exfat/exfat_core.c else if ((ep->attr & (ATTR_SUBDIR | ATTR_VOLUME)) == ATTR_VOLUME) attr 925 drivers/staging/exfat/exfat_core.c else if ((ep->attr & (ATTR_SUBDIR | ATTR_VOLUME)) == ATTR_SUBDIR) attr 949 drivers/staging/exfat/exfat_core.c if (GET16_A(ep->attr) & ATTR_SUBDIR) attr 987 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_EXTEND; attr 990 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_SUBDIR; attr 993 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_ARCHIVE; attr 996 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_ARCHIVE | ATTR_SYMLINK; attr 1019 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, ATTR_SUBDIR); attr 1022 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, ATTR_ARCHIVE); attr 1025 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, ATTR_ARCHIVE | ATTR_SYMLINK); attr 1033 drivers/staging/exfat/exfat_core.c return (u32)ep->attr; attr 1040 drivers/staging/exfat/exfat_core.c return (u32)GET16_A(ep->attr); attr 1043 drivers/staging/exfat/exfat_core.c void fat_set_entry_attr(struct dentry_t *p_entry, u32 attr) attr 1047 drivers/staging/exfat/exfat_core.c ep->attr = (u8)attr; attr 1050 drivers/staging/exfat/exfat_core.c void exfat_set_entry_attr(struct dentry_t *p_entry, u32 attr) attr 1054 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, (u16)attr); attr 3293 drivers/staging/exfat/exfat_core.c fid->attr = ATTR_SUBDIR; attr 3343 drivers/staging/exfat/exfat_core.c fid->attr = ATTR_ARCHIVE | mode; attr 3435 drivers/staging/exfat/exfat_core.c fid->attr |= ATTR_ARCHIVE; attr 3471 drivers/staging/exfat/exfat_core.c fid->attr |= ATTR_ARCHIVE; attr 3545 drivers/staging/exfat/exfat_core.c fid->attr |= ATTR_ARCHIVE; attr 315 drivers/staging/exfat/exfat_super.c static inline mode_t exfat_make_mode(struct exfat_sb_info *sbi, u32 attr, attr 318 drivers/staging/exfat/exfat_super.c if ((attr & ATTR_READONLY) && !(attr & ATTR_SUBDIR)) attr 321 drivers/staging/exfat/exfat_super.c if (attr & ATTR_SUBDIR) attr 323 drivers/staging/exfat/exfat_super.c else if (attr & ATTR_SYMLINK) attr 333 drivers/staging/exfat/exfat_super.c return (EXFAT_I(inode)->fid.attr) | ATTR_READONLY; attr 335 drivers/staging/exfat/exfat_super.c return EXFAT_I(inode)->fid.attr; attr 338 drivers/staging/exfat/exfat_super.c static inline void exfat_save_attr(struct inode *inode, u32 attr) attr 341 drivers/staging/exfat/exfat_super.c EXFAT_I(inode)->fid.attr = attr & ATTR_RWMASK; attr 343 drivers/staging/exfat/exfat_super.c EXFAT_I(inode)->fid.attr = attr & (ATTR_RWMASK | ATTR_READONLY); attr 595 drivers/staging/exfat/exfat_super.c fid->attr = ATTR_SUBDIR; attr 620 drivers/staging/exfat/exfat_super.c fid->attr = p_fs->fs_func->get_entry_attr(ep); attr 994 drivers/staging/exfat/exfat_super.c fid->attr |= ATTR_ARCHIVE; attr 1019 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, fid->attr); attr 1129 drivers/staging/exfat/exfat_super.c fid->attr |= ATTR_ARCHIVE; attr 1154 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, fid->attr); attr 1409 drivers/staging/exfat/exfat_super.c static int ffsSetAttr(struct inode *inode, u32 attr) attr 1421 drivers/staging/exfat/exfat_super.c if (fid->attr == attr) { attr 1457 drivers/staging/exfat/exfat_super.c if (((type == TYPE_FILE) && (attr & ATTR_SUBDIR)) || attr 1458 drivers/staging/exfat/exfat_super.c ((type == TYPE_DIR) && (!(attr & ATTR_SUBDIR)))) { attr 1472 drivers/staging/exfat/exfat_super.c fid->attr = attr; attr 1473 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, attr); attr 2929 drivers/staging/exfat/exfat_super.c static int exfat_setattr(struct dentry *dentry, struct iattr *attr) attr 2939 drivers/staging/exfat/exfat_super.c if ((attr->ia_valid & ATTR_SIZE) attr 2940 drivers/staging/exfat/exfat_super.c && (attr->ia_size > i_size_read(inode))) { attr 2941 drivers/staging/exfat/exfat_super.c error = exfat_cont_expand(inode, attr->ia_size); attr 2942 drivers/staging/exfat/exfat_super.c if (error || attr->ia_valid == ATTR_SIZE) attr 2944 drivers/staging/exfat/exfat_super.c attr->ia_valid &= ~ATTR_SIZE; attr 2947 drivers/staging/exfat/exfat_super.c ia_valid = attr->ia_valid; attr 2951 drivers/staging/exfat/exfat_super.c attr->ia_valid &= ~(ATTR_MTIME_SET | attr 2956 drivers/staging/exfat/exfat_super.c error = setattr_prepare(dentry, attr); attr 2957 drivers/staging/exfat/exfat_super.c attr->ia_valid = ia_valid; attr 2961 drivers/staging/exfat/exfat_super.c if (((attr->ia_valid & ATTR_UID) && attr 2962 drivers/staging/exfat/exfat_super.c (!uid_eq(attr->ia_uid, sbi->options.fs_uid))) || attr 2963 drivers/staging/exfat/exfat_super.c ((attr->ia_valid & ATTR_GID) && attr 2964 drivers/staging/exfat/exfat_super.c (!gid_eq(attr->ia_gid, sbi->options.fs_gid))) || attr 2965 drivers/staging/exfat/exfat_super.c ((attr->ia_valid & ATTR_MODE) && attr 2966 drivers/staging/exfat/exfat_super.c (attr->ia_mode & ~(S_IFREG | S_IFLNK | S_IFDIR | 0777)))) { attr 2974 drivers/staging/exfat/exfat_super.c if (attr->ia_valid & ATTR_MODE) { attr 2975 drivers/staging/exfat/exfat_super.c if (exfat_sanitize_mode(sbi, inode, &attr->ia_mode) < 0) attr 2976 drivers/staging/exfat/exfat_super.c attr->ia_valid &= ~ATTR_MODE; attr 2981 drivers/staging/exfat/exfat_super.c if (attr->ia_valid & ATTR_SIZE) { attr 2984 drivers/staging/exfat/exfat_super.c truncate_setsize(inode, attr->ia_size); attr 2988 drivers/staging/exfat/exfat_super.c setattr_copy(inode, attr); attr 3225 drivers/staging/exfat/exfat_super.c if (!(err < 0) && !(fid->attr & ATTR_ARCHIVE)) { attr 3227 drivers/staging/exfat/exfat_super.c fid->attr |= ATTR_ARCHIVE; attr 111 drivers/staging/fbtft/fbtft-sysfs.c struct device_attribute *attr, attr 137 drivers/staging/fbtft/fbtft-sysfs.c struct device_attribute *attr, char *buf) attr 177 drivers/staging/fbtft/fbtft-sysfs.c struct device_attribute *attr, attr 193 drivers/staging/fbtft/fbtft-sysfs.c struct device_attribute *attr, char *buf) attr 167 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct device_attribute *attr, char *buf) attr 176 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct device_attribute *attr, char *buf) attr 185 drivers/staging/fieldbus/anybuss/arcx-anybus.c &dev_attr_version.attr, attr 186 drivers/staging/fieldbus/anybuss/arcx-anybus.c &dev_attr_design_number.attr, attr 29 drivers/staging/fieldbus/dev_core.c static ssize_t online_show(struct device *dev, struct device_attribute *attr, attr 38 drivers/staging/fieldbus/dev_core.c static ssize_t enabled_show(struct device *dev, struct device_attribute *attr, attr 48 drivers/staging/fieldbus/dev_core.c static ssize_t enabled_store(struct device *dev, struct device_attribute *attr, attr 67 drivers/staging/fieldbus/dev_core.c static ssize_t card_name_show(struct device *dev, struct device_attribute *attr, attr 81 drivers/staging/fieldbus/dev_core.c struct device_attribute *attr, char *buf) attr 90 drivers/staging/fieldbus/dev_core.c struct device_attribute *attr, char *buf) attr 99 drivers/staging/fieldbus/dev_core.c struct device_attribute *attr, char *buf) attr 108 drivers/staging/fieldbus/dev_core.c struct device_attribute *attr, char *buf) attr 127 drivers/staging/fieldbus/dev_core.c &dev_attr_enabled.attr, attr 128 drivers/staging/fieldbus/dev_core.c &dev_attr_card_name.attr, attr 129 drivers/staging/fieldbus/dev_core.c &dev_attr_fieldbus_id.attr, attr 130 drivers/staging/fieldbus/dev_core.c &dev_attr_read_area_size.attr, attr 131 drivers/staging/fieldbus/dev_core.c &dev_attr_write_area_size.attr, attr 132 drivers/staging/fieldbus/dev_core.c &dev_attr_online.attr, attr 133 drivers/staging/fieldbus/dev_core.c &dev_attr_fieldbus_type.attr, attr 137 drivers/staging/fieldbus/dev_core.c static umode_t fieldbus_is_visible(struct kobject *kobj, struct attribute *attr, attr 142 drivers/staging/fieldbus/dev_core.c umode_t mode = attr->mode; attr 144 drivers/staging/fieldbus/dev_core.c if (attr == &dev_attr_enabled.attr) { attr 324 drivers/staging/fsl-dpaa2/ethsw/dpsw.c struct dpsw_attr *attr) attr 342 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->num_ifs = le16_to_cpu(rsp_params->num_ifs); attr 343 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->max_fdbs = rsp_params->max_fdbs; attr 344 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->num_fdbs = rsp_params->num_fdbs; attr 345 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->max_vlans = le16_to_cpu(rsp_params->max_vlans); attr 346 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->num_vlans = le16_to_cpu(rsp_params->num_vlans); attr 347 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->max_fdb_entries = le16_to_cpu(rsp_params->max_fdb_entries); attr 348 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->fdb_aging_time = le16_to_cpu(rsp_params->fdb_aging_time); attr 349 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->id = le32_to_cpu(rsp_params->dpsw_id); attr 350 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->mem_size = le16_to_cpu(rsp_params->mem_size); attr 351 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->max_fdb_mc_groups = le16_to_cpu(rsp_params->max_fdb_mc_groups); attr 352 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->max_meters_per_if = rsp_params->max_meters_per_if; attr 353 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->options = le64_to_cpu(rsp_params->options); attr 354 drivers/staging/fsl-dpaa2/ethsw/dpsw.c attr->component_type = dpsw_get_field(rsp_params->component_type, attr 176 drivers/staging/fsl-dpaa2/ethsw/dpsw.h struct dpsw_attr *attr); attr 856 drivers/staging/fsl-dpaa2/ethsw/ethsw.c const struct switchdev_attr *attr, attr 861 drivers/staging/fsl-dpaa2/ethsw/ethsw.c switch (attr->id) { attr 864 drivers/staging/fsl-dpaa2/ethsw/ethsw.c attr->u.stp_state); attr 868 drivers/staging/fsl-dpaa2/ethsw/ethsw.c attr->u.brport_flags); attr 872 drivers/staging/fsl-dpaa2/ethsw/ethsw.c attr->u.brport_flags); attr 1103 drivers/staging/fsl-dpaa2/ethsw/ethsw.c err = swdev_port_attr_set(netdev, port_attr_info->attr, attr 505 drivers/staging/gasket/apex_driver.c static ssize_t sysfs_show(struct device *device, struct device_attribute *attr, attr 521 drivers/staging/gasket/apex_driver.c gasket_attr = gasket_sysfs_get_attr(device, attr); attr 542 drivers/staging/gasket/apex_driver.c attr->attr.name); attr 467 drivers/staging/gasket/gasket_core.c struct device_attribute *attr, char *buf) attr 483 drivers/staging/gasket/gasket_core.c gasket_attr = gasket_sysfs_get_attr(device, attr); attr 569 drivers/staging/gasket/gasket_core.c attr->attr.name); attr 260 drivers/staging/gasket/gasket_interrupt.c struct device_attribute *attr, char *buf) attr 275 drivers/staging/gasket/gasket_interrupt.c gasket_attr = gasket_sysfs_get_attr(device, attr); attr 299 drivers/staging/gasket/gasket_interrupt.c attr->attr.name); attr 107 drivers/staging/gasket/gasket_sysfs.c mapping->attributes[i].attr; attr 231 drivers/staging/gasket/gasket_sysfs.c for (i = 0; attrs[i].attr.attr.name != NULL; i++) { attr 240 drivers/staging/gasket/gasket_sysfs.c ret = device_create_file(device, &attrs[i].attr); attr 297 drivers/staging/gasket/gasket_sysfs.c gasket_sysfs_get_attr(struct device *device, struct device_attribute *attr) attr 310 drivers/staging/gasket/gasket_sysfs.c if (!strcmp(attrs[i].attr.attr.name, attr->attr.name)) attr 315 drivers/staging/gasket/gasket_sysfs.c attr->attr.name); attr 321 drivers/staging/gasket/gasket_sysfs.c struct gasket_sysfs_attribute *attr) attr 334 drivers/staging/gasket/gasket_sysfs.c if (&attrs[i] == attr) { attr 341 drivers/staging/gasket/gasket_sysfs.c attr->attr.attr.name); attr 346 drivers/staging/gasket/gasket_sysfs.c struct device_attribute *attr, attr 378 drivers/staging/gasket/gasket_sysfs.c gasket_attr = gasket_sysfs_get_attr(device, attr); attr 39 drivers/staging/gasket/gasket_sysfs.h .attr = __ATTR_NULL, \ attr 49 drivers/staging/gasket/gasket_sysfs.h struct device_attribute attr; attr 68 drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute *attr, attr 74 drivers/staging/gasket/gasket_sysfs.h .attr = __ATTR(_name, S_IRUGO, _show_function, NULL), \ attr 155 drivers/staging/gasket/gasket_sysfs.h gasket_sysfs_get_attr(struct device *device, struct device_attribute *attr); attr 164 drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute *attr); attr 172 drivers/staging/gasket/gasket_sysfs.h struct device_attribute *attr, attr 249 drivers/staging/greybus/arche-apb-ctrl.c struct device_attribute *attr, attr 296 drivers/staging/greybus/arche-apb-ctrl.c struct device_attribute *attr, char *buf) attr 308 drivers/staging/greybus/arche-platform.c struct device_attribute *attr, attr 372 drivers/staging/greybus/arche-platform.c struct device_attribute *attr, char *buf) attr 14 drivers/staging/greybus/audio_manager_module.c container_of(x, struct gb_audio_manager_module_attribute, attr) attr 19 drivers/staging/greybus/audio_manager_module.c struct attribute attr; attr 21 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, attr 24 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, attr 29 drivers/staging/greybus/audio_manager_module.c struct attribute *attr, char *buf) attr 34 drivers/staging/greybus/audio_manager_module.c attribute = to_gb_audio_module_attr(attr); attr 44 drivers/staging/greybus/audio_manager_module.c struct attribute *attr, attr 50 drivers/staging/greybus/audio_manager_module.c attribute = to_gb_audio_module_attr(attr); attr 75 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, char *buf) attr 85 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, char *buf) attr 95 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, char *buf) attr 105 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, char *buf) attr 116 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, char *buf) attr 127 drivers/staging/greybus/audio_manager_module.c struct gb_audio_manager_module_attribute *attr, char *buf) attr 137 drivers/staging/greybus/audio_manager_module.c &gb_audio_module_name_attribute.attr, attr 138 drivers/staging/greybus/audio_manager_module.c &gb_audio_module_vid_attribute.attr, attr 139 drivers/staging/greybus/audio_manager_module.c &gb_audio_module_pid_attribute.attr, attr 140 drivers/staging/greybus/audio_manager_module.c &gb_audio_module_intf_id_attribute.attr, attr 141 drivers/staging/greybus/audio_manager_module.c &gb_audio_module_ip_devices_attribute.attr, attr 142 drivers/staging/greybus/audio_manager_module.c &gb_audio_module_op_devices_attribute.attr, attr 15 drivers/staging/greybus/audio_manager_sysfs.c struct kobj_attribute *attr, attr 40 drivers/staging/greybus/audio_manager_sysfs.c struct kobj_attribute *attr, attr 61 drivers/staging/greybus/audio_manager_sysfs.c struct kobj_attribute *attr, attr 89 drivers/staging/greybus/audio_manager_sysfs.c err = sysfs_create_file(kobj, &kattr->attr); attr 92 drivers/staging/greybus/audio_manager_sysfs.c kattr->attr.name, err); attr 30 drivers/staging/greybus/gbphy.c struct device_attribute *attr, char *buf) attr 39 drivers/staging/greybus/gbphy.c &dev_attr_protocol_id.attr, attr 188 drivers/staging/greybus/light.c struct device_attribute *attr, \ attr 198 drivers/staging/greybus/light.c struct device_attribute *attr, \ attr 235 drivers/staging/greybus/light.c static ssize_t color_show(struct device *dev, struct device_attribute *attr, attr 244 drivers/staging/greybus/light.c static ssize_t color_store(struct device *dev, struct device_attribute *attr, attr 278 drivers/staging/greybus/light.c int attr = 0; attr 303 drivers/staging/greybus/light.c channel->attrs[attr++] = &dev_attr_color.attr; attr 305 drivers/staging/greybus/light.c channel->attrs[attr++] = &dev_attr_fade_in.attr; attr 306 drivers/staging/greybus/light.c channel->attrs[attr++] = &dev_attr_fade_out.attr; attr 124 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 134 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 147 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 172 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 179 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 198 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 208 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 215 drivers/staging/greybus/loopback.c struct device_attribute *attr, \ attr 317 drivers/staging/greybus/loopback.c &dev_attr_latency_min.attr, attr 318 drivers/staging/greybus/loopback.c &dev_attr_latency_max.attr, attr 319 drivers/staging/greybus/loopback.c &dev_attr_latency_avg.attr, attr 320 drivers/staging/greybus/loopback.c &dev_attr_requests_per_second_min.attr, attr 321 drivers/staging/greybus/loopback.c &dev_attr_requests_per_second_max.attr, attr 322 drivers/staging/greybus/loopback.c &dev_attr_requests_per_second_avg.attr, attr 323 drivers/staging/greybus/loopback.c &dev_attr_throughput_min.attr, attr 324 drivers/staging/greybus/loopback.c &dev_attr_throughput_max.attr, attr 325 drivers/staging/greybus/loopback.c &dev_attr_throughput_avg.attr, attr 326 drivers/staging/greybus/loopback.c &dev_attr_apbridge_unipro_latency_min.attr, attr 327 drivers/staging/greybus/loopback.c &dev_attr_apbridge_unipro_latency_max.attr, attr 328 drivers/staging/greybus/loopback.c &dev_attr_apbridge_unipro_latency_avg.attr, attr 329 drivers/staging/greybus/loopback.c &dev_attr_gbphy_firmware_latency_min.attr, attr 330 drivers/staging/greybus/loopback.c &dev_attr_gbphy_firmware_latency_max.attr, attr 331 drivers/staging/greybus/loopback.c &dev_attr_gbphy_firmware_latency_avg.attr, attr 332 drivers/staging/greybus/loopback.c &dev_attr_type.attr, attr 333 drivers/staging/greybus/loopback.c &dev_attr_size.attr, attr 334 drivers/staging/greybus/loopback.c &dev_attr_us_wait.attr, attr 335 drivers/staging/greybus/loopback.c &dev_attr_iteration_count.attr, attr 336 drivers/staging/greybus/loopback.c &dev_attr_iteration_max.attr, attr 337 drivers/staging/greybus/loopback.c &dev_attr_async.attr, attr 338 drivers/staging/greybus/loopback.c &dev_attr_error.attr, attr 339 drivers/staging/greybus/loopback.c &dev_attr_requests_completed.attr, attr 340 drivers/staging/greybus/loopback.c &dev_attr_requests_timedout.attr, attr 341 drivers/staging/greybus/loopback.c &dev_attr_timeout.attr, attr 342 drivers/staging/greybus/loopback.c &dev_attr_outstanding_operations_max.attr, attr 343 drivers/staging/greybus/loopback.c &dev_attr_timeout_min.attr, attr 344 drivers/staging/greybus/loopback.c &dev_attr_timeout_max.attr, attr 78 drivers/staging/greybus/vibrator.c static ssize_t timeout_store(struct device *dev, struct device_attribute *attr, attr 103 drivers/staging/greybus/vibrator.c &dev_attr_timeout.attr, attr 203 drivers/staging/iio/accel/adis16240.c struct device_attribute *attr, attr 212 drivers/staging/iio/accel/adis16240.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 227 drivers/staging/iio/accel/adis16240.c struct device_attribute *attr, attr 230 drivers/staging/iio/accel/adis16240.c return adis16240_spi_read_signed(dev, attr, buf, 12); attr 339 drivers/staging/iio/accel/adis16240.c &iio_dev_attr_in_accel_xyz_squared_peak_raw.dev_attr.attr, attr 340 drivers/staging/iio/accel/adis16240.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 340 drivers/staging/iio/adc/ad7192.c struct device_attribute *attr, attr 350 drivers/staging/iio/adc/ad7192.c struct device_attribute *attr, attr 360 drivers/staging/iio/adc/ad7192.c struct device_attribute *attr, attr 366 drivers/staging/iio/adc/ad7192.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 424 drivers/staging/iio/adc/ad7192.c struct device_attribute *attr, attr 456 drivers/staging/iio/adc/ad7192.c &iio_dev_attr_filter_low_pass_3db_frequency_available.dev_attr.attr, attr 457 drivers/staging/iio/adc/ad7192.c &iio_dev_attr_bridge_switch_en.dev_attr.attr, attr 458 drivers/staging/iio/adc/ad7192.c &iio_dev_attr_ac_excitation_en.dev_attr.attr, attr 467 drivers/staging/iio/adc/ad7192.c &iio_dev_attr_filter_low_pass_3db_frequency_available.dev_attr.attr, attr 468 drivers/staging/iio/adc/ad7192.c &iio_dev_attr_bridge_switch_en.dev_attr.attr, attr 400 drivers/staging/iio/adc/ad7280a.c struct device_attribute *attr, attr 405 drivers/staging/iio/adc/ad7280a.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 413 drivers/staging/iio/adc/ad7280a.c struct device_attribute *attr, attr 419 drivers/staging/iio/adc/ad7280a.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 445 drivers/staging/iio/adc/ad7280a.c struct device_attribute *attr, attr 450 drivers/staging/iio/adc/ad7280a.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 468 drivers/staging/iio/adc/ad7280a.c struct device_attribute *attr, attr 474 drivers/staging/iio/adc/ad7280a.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 599 drivers/staging/iio/adc/ad7280a.c static int ad7280_balance_switch_attr_init(struct iio_dev_attr *attr, attr 602 drivers/staging/iio/adc/ad7280a.c attr->address = addr; attr 603 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.attr.mode = 0644; attr 604 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.show = ad7280_show_balance_sw; attr 605 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.store = ad7280_store_balance_sw; attr 606 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.attr.name = devm_kasprintf(dev, GFP_KERNEL, attr 609 drivers/staging/iio/adc/ad7280a.c if (!attr->dev_attr.attr.name) attr 615 drivers/staging/iio/adc/ad7280a.c static int ad7280_balance_timer_attr_init(struct iio_dev_attr *attr, attr 618 drivers/staging/iio/adc/ad7280a.c attr->address = addr; attr 619 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.attr.mode = 0644; attr 620 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.show = ad7280_show_balance_timer; attr 621 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.store = ad7280_store_balance_timer; attr 622 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.attr.name = devm_kasprintf(dev, GFP_KERNEL, attr 625 drivers/staging/iio/adc/ad7280a.c if (!attr->dev_attr.attr.name) attr 646 drivers/staging/iio/adc/ad7280a.c ad7280_attributes[*cnt] = &iio_attr->dev_attr.attr; attr 656 drivers/staging/iio/adc/ad7280a.c ad7280_attributes[*cnt] = &iio_attr->dev_attr.attr; attr 685 drivers/staging/iio/adc/ad7280a.c struct device_attribute *attr, attr 690 drivers/staging/iio/adc/ad7280a.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 714 drivers/staging/iio/adc/ad7280a.c struct device_attribute *attr, attr 720 drivers/staging/iio/adc/ad7280a.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 854 drivers/staging/iio/adc/ad7280a.c &iio_dev_attr_in_thresh_low_value.dev_attr.attr, attr 855 drivers/staging/iio/adc/ad7280a.c &iio_dev_attr_in_thresh_high_value.dev_attr.attr, attr 856 drivers/staging/iio/adc/ad7280a.c &iio_dev_attr_in_temp_thresh_low_value.dev_attr.attr, attr 857 drivers/staging/iio/adc/ad7280a.c &iio_dev_attr_in_temp_thresh_high_value.dev_attr.attr, attr 120 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 132 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 156 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 166 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 176 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 214 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 242 drivers/staging/iio/adc/ad7816.c &iio_dev_attr_available_modes.dev_attr.attr, attr 243 drivers/staging/iio/adc/ad7816.c &iio_dev_attr_mode.dev_attr.attr, attr 244 drivers/staging/iio/adc/ad7816.c &iio_dev_attr_channel.dev_attr.attr, attr 245 drivers/staging/iio/adc/ad7816.c &iio_dev_attr_value.dev_attr.attr, attr 270 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 290 drivers/staging/iio/adc/ad7816.c struct device_attribute *attr, attr 334 drivers/staging/iio/adc/ad7816.c &iio_dev_attr_oti.dev_attr.attr, attr 222 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 252 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 277 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 290 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 321 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 334 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 362 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 371 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 409 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 455 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 476 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 487 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 515 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 526 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 554 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 564 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 592 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 602 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 630 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 645 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 676 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 690 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 722 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 733 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 761 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 772 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 800 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 811 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 843 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 868 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 903 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 921 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 961 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 972 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1000 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1011 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1039 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1054 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1175 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1186 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1198 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1212 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1223 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1234 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1288 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1298 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1314 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1324 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1340 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1351 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1367 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1378 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1472 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1482 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1496 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1506 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1520 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1530 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1544 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1554 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1568 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1586 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1605 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1623 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1644 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_all_modes.dev_attr.attr, attr 1645 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_mode.dev_attr.attr, attr 1646 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enabled.dev_attr.attr, attr 1647 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ad_channel.dev_attr.attr, attr 1648 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_all_ad_channels.dev_attr.attr, attr 1649 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_disable_averaging.dev_attr.attr, attr 1650 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enable_smbus_timeout.dev_attr.attr, attr 1651 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_powerdown.dev_attr.attr, attr 1652 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_fast_ad_clock.dev_attr.attr, attr 1653 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_da_high_resolution.dev_attr.attr, attr 1654 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enable_proportion_DACA.dev_attr.attr, attr 1655 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enable_proportion_DACB.dev_attr.attr, attr 1656 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_2Vref_channels_mask.dev_attr.attr, attr 1657 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_update_mode.dev_attr.attr, attr 1658 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_all_DAC_update_modes.dev_attr.attr, attr 1659 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_update_DAC.dev_attr.attr, attr 1660 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DA_AB_Vref_bypass.dev_attr.attr, attr 1661 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DA_CD_Vref_bypass.dev_attr.attr, attr 1662 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_internal_Vref.dev_attr.attr, attr 1663 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_VDD.dev_attr.attr, attr 1664 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp.dev_attr.attr, attr 1665 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp.dev_attr.attr, attr 1666 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp_offset.dev_attr.attr, attr 1667 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp_offset.dev_attr.attr, attr 1668 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_analog_temp_offset.dev_attr.attr, attr 1669 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_analog_temp_offset.dev_attr.attr, attr 1670 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_A.dev_attr.attr, attr 1671 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_B.dev_attr.attr, attr 1672 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_C.dev_attr.attr, attr 1673 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_D.dev_attr.attr, attr 1674 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_device_id.dev_attr.attr, attr 1675 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_manufactorer_id.dev_attr.attr, attr 1676 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_device_rev.dev_attr.attr, attr 1677 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_bus_type.dev_attr.attr, attr 1686 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_all_modes.dev_attr.attr, attr 1687 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_mode.dev_attr.attr, attr 1688 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_select_ex_temp.dev_attr.attr, attr 1689 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enabled.dev_attr.attr, attr 1690 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ad_channel.dev_attr.attr, attr 1691 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_all_ad_channels.dev_attr.attr, attr 1692 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_disable_averaging.dev_attr.attr, attr 1693 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enable_smbus_timeout.dev_attr.attr, attr 1694 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_powerdown.dev_attr.attr, attr 1695 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_fast_ad_clock.dev_attr.attr, attr 1696 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_AIN_internal_Vref.dev_attr.attr, attr 1697 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_da_high_resolution.dev_attr.attr, attr 1698 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enable_proportion_DACA.dev_attr.attr, attr 1699 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_enable_proportion_DACB.dev_attr.attr, attr 1700 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_2Vref_channels_mask.dev_attr.attr, attr 1701 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_update_mode.dev_attr.attr, attr 1702 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_all_DAC_update_modes.dev_attr.attr, attr 1703 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_update_DAC.dev_attr.attr, attr 1704 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_internal_Vref.dev_attr.attr, attr 1705 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_VDD.dev_attr.attr, attr 1706 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp.dev_attr.attr, attr 1707 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp_AIN1.dev_attr.attr, attr 1708 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_AIN2.dev_attr.attr, attr 1709 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_AIN3.dev_attr.attr, attr 1710 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_AIN4.dev_attr.attr, attr 1711 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp_offset.dev_attr.attr, attr 1712 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp_offset.dev_attr.attr, attr 1713 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_analog_temp_offset.dev_attr.attr, attr 1714 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_analog_temp_offset.dev_attr.attr, attr 1715 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_A.dev_attr.attr, attr 1716 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_B.dev_attr.attr, attr 1717 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_C.dev_attr.attr, attr 1718 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_DAC_D.dev_attr.attr, attr 1719 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_device_id.dev_attr.attr, attr 1720 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_manufactorer_id.dev_attr.attr, attr 1721 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_device_rev.dev_attr.attr, attr 1722 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_bus_type.dev_attr.attr, attr 1842 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1855 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1896 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1899 drivers/staging/iio/addac/adt7316.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 1926 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1930 drivers/staging/iio/addac/adt7316.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 1967 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 1977 drivers/staging/iio/addac/adt7316.c struct device_attribute *attr, attr 2059 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_int_mask.dev_attr.attr, attr 2060 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp_high_value.dev_attr.attr, attr 2061 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp_low_value.dev_attr.attr, attr 2062 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp_high_value.dev_attr.attr, attr 2063 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp_low_value.dev_attr.attr, attr 2064 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_int_enabled.dev_attr.attr, attr 2074 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_int_mask.dev_attr.attr, attr 2075 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp_high_value.dev_attr.attr, attr 2076 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_in_temp_low_value.dev_attr.attr, attr 2077 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp_ain1_high_value.dev_attr.attr, attr 2078 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ex_temp_ain1_low_value.dev_attr.attr, attr 2079 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ain2_high_value.dev_attr.attr, attr 2080 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ain2_low_value.dev_attr.attr, attr 2081 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ain3_high_value.dev_attr.attr, attr 2082 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ain3_low_value.dev_attr.attr, attr 2083 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ain4_high_value.dev_attr.attr, attr 2084 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_ain4_low_value.dev_attr.attr, attr 2085 drivers/staging/iio/addac/adt7316.c &iio_dev_attr_int_enabled.dev_attr.attr, attr 345 drivers/staging/iio/cdc/ad7150.c struct device_attribute *attr, attr 350 drivers/staging/iio/cdc/ad7150.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 373 drivers/staging/iio/cdc/ad7150.c struct device_attribute *attr, attr 379 drivers/staging/iio/cdc/ad7150.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 541 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 543 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 545 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 547 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 549 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 551 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 553 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 555 drivers/staging/iio/cdc/ad7150.c .dev_attr.attr, attr 284 drivers/staging/iio/cdc/ad7746.c struct device_attribute *attr, attr 325 drivers/staging/iio/cdc/ad7746.c struct device_attribute *attr, attr 331 drivers/staging/iio/cdc/ad7746.c &ad7746_channels[to_iio_dev_attr(attr)->address]); attr 335 drivers/staging/iio/cdc/ad7746.c return ad7746_start_calib(dev, attr, buf, len, attr 340 drivers/staging/iio/cdc/ad7746.c struct device_attribute *attr, attr 346 drivers/staging/iio/cdc/ad7746.c &ad7746_channels[to_iio_dev_attr(attr)->address]); attr 350 drivers/staging/iio/cdc/ad7746.c return ad7746_start_calib(dev, attr, buf, len, attr 406 drivers/staging/iio/cdc/ad7746.c &iio_dev_attr_in_capacitance0_calibbias_calibration.dev_attr.attr, attr 407 drivers/staging/iio/cdc/ad7746.c &iio_dev_attr_in_capacitance0_calibscale_calibration.dev_attr.attr, attr 408 drivers/staging/iio/cdc/ad7746.c &iio_dev_attr_in_capacitance1_calibscale_calibration.dev_attr.attr, attr 409 drivers/staging/iio/cdc/ad7746.c &iio_dev_attr_in_capacitance1_calibbias_calibration.dev_attr.attr, attr 410 drivers/staging/iio/cdc/ad7746.c &iio_dev_attr_in_voltage0_calibscale_calibration.dev_attr.attr, attr 411 drivers/staging/iio/cdc/ad7746.c &iio_const_attr_in_voltage_sampling_frequency_available.dev_attr.attr, attr 412 drivers/staging/iio/cdc/ad7746.c &iio_const_attr_in_capacitance_sampling_frequency_available.dev_attr.attr, attr 171 drivers/staging/iio/frequency/ad9832.c static ssize_t ad9832_write(struct device *dev, struct device_attribute *attr, attr 176 drivers/staging/iio/frequency/ad9832.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 274 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_frequency0.dev_attr.attr, attr 275 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_frequency1.dev_attr.attr, attr 276 drivers/staging/iio/frequency/ad9832.c &iio_const_attr_out_altvoltage0_frequency_scale.dev_attr.attr, attr 277 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_phase0.dev_attr.attr, attr 278 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_phase1.dev_attr.attr, attr 279 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_phase2.dev_attr.attr, attr 280 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_phase3.dev_attr.attr, attr 281 drivers/staging/iio/frequency/ad9832.c &iio_const_attr_out_altvoltage0_phase_scale.dev_attr.attr, attr 282 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_pincontrol_en.dev_attr.attr, attr 283 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_frequencysymbol.dev_attr.attr, attr 284 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_phasesymbol.dev_attr.attr, attr 285 drivers/staging/iio/frequency/ad9832.c &iio_dev_attr_out_altvoltage0_out_enable.dev_attr.attr, attr 143 drivers/staging/iio/frequency/ad9834.c struct device_attribute *attr, attr 149 drivers/staging/iio/frequency/ad9834.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 221 drivers/staging/iio/frequency/ad9834.c struct device_attribute *attr, attr 227 drivers/staging/iio/frequency/ad9834.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 281 drivers/staging/iio/frequency/ad9834.c struct device_attribute *attr, attr 303 drivers/staging/iio/frequency/ad9834.c struct device_attribute *attr, attr 344 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_frequency0.dev_attr.attr, attr 345 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_frequency1.dev_attr.attr, attr 346 drivers/staging/iio/frequency/ad9834.c &iio_const_attr_out_altvoltage0_frequency_scale.dev_attr.attr, attr 347 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_phase0.dev_attr.attr, attr 348 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_phase1.dev_attr.attr, attr 349 drivers/staging/iio/frequency/ad9834.c &iio_const_attr_out_altvoltage0_phase_scale.dev_attr.attr, attr 350 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_pincontrol_en.dev_attr.attr, attr 351 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_frequencysymbol.dev_attr.attr, attr 352 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_phasesymbol.dev_attr.attr, attr 353 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out_enable.dev_attr.attr, attr 354 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out1_enable.dev_attr.attr, attr 355 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out0_wavetype.dev_attr.attr, attr 356 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out1_wavetype.dev_attr.attr, attr 357 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out0_wavetype_available.dev_attr.attr, attr 358 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out1_wavetype_available.dev_attr.attr, attr 363 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_frequency0.dev_attr.attr, attr 364 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_frequency1.dev_attr.attr, attr 365 drivers/staging/iio/frequency/ad9834.c &iio_const_attr_out_altvoltage0_frequency_scale.dev_attr.attr, attr 366 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_phase0.dev_attr.attr, attr 367 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_phase1.dev_attr.attr, attr 368 drivers/staging/iio/frequency/ad9834.c &iio_const_attr_out_altvoltage0_phase_scale.dev_attr.attr, attr 369 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_frequencysymbol.dev_attr.attr, attr 370 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_phasesymbol.dev_attr.attr, attr 371 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out_enable.dev_attr.attr, attr 372 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out0_wavetype.dev_attr.attr, attr 373 drivers/staging/iio/frequency/ad9834.c &iio_dev_attr_out_altvoltage0_out0_wavetype_available.dev_attr.attr, attr 262 drivers/staging/iio/impedance-analyzer/ad5933.c struct device_attribute *attr, attr 267 drivers/staging/iio/impedance-analyzer/ad5933.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 292 drivers/staging/iio/impedance-analyzer/ad5933.c struct device_attribute *attr, attr 298 drivers/staging/iio/impedance-analyzer/ad5933.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 329 drivers/staging/iio/impedance-analyzer/ad5933.c struct device_attribute *attr, attr 334 drivers/staging/iio/impedance-analyzer/ad5933.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 371 drivers/staging/iio/impedance-analyzer/ad5933.c struct device_attribute *attr, attr 377 drivers/staging/iio/impedance-analyzer/ad5933.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 483 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_out_altvoltage0_raw.dev_attr.attr, attr 484 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_out_altvoltage0_scale_available.dev_attr.attr, attr 485 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_out_altvoltage0_frequency_start.dev_attr.attr, attr 486 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_out_altvoltage0_frequency_increment.dev_attr.attr, attr 487 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_out_altvoltage0_frequency_points.dev_attr.attr, attr 488 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_out_altvoltage0_settling_cycles.dev_attr.attr, attr 489 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_in_voltage0_scale.dev_attr.attr, attr 490 drivers/staging/iio/impedance-analyzer/ad5933.c &iio_dev_attr_in_voltage0_scale_available.dev_attr.attr, attr 25 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 32 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 42 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 49 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 59 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 66 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 76 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 81 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 93 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 97 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 114 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 118 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 135 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 139 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 156 drivers/staging/iio/meter/ade7854.c struct device_attribute *attr, attr 160 drivers/staging/iio/meter/ade7854.c struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); attr 455 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_aigain.dev_attr.attr, attr 456 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bigain.dev_attr.attr, attr 457 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cigain.dev_attr.attr, attr 458 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_nigain.dev_attr.attr, attr 459 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_avgain.dev_attr.attr, attr 460 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bvgain.dev_attr.attr, attr 461 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cvgain.dev_attr.attr, attr 462 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_linecyc.dev_attr.attr, attr 463 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_sagcyc.dev_attr.attr, attr 464 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cfcyc.dev_attr.attr, attr 465 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_peakcyc.dev_attr.attr, attr 466 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_chksum.dev_attr.attr, attr 467 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_apparent_power_a_gain.dev_attr.attr, attr 468 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_apparent_power_b_gain.dev_attr.attr, attr 469 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_apparent_power_c_gain.dev_attr.attr, attr 470 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_active_power_a_offset.dev_attr.attr, attr 471 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_active_power_b_offset.dev_attr.attr, attr 472 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_active_power_c_offset.dev_attr.attr, attr 473 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_reactive_power_a_gain.dev_attr.attr, attr 474 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_reactive_power_b_gain.dev_attr.attr, attr 475 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_reactive_power_c_gain.dev_attr.attr, attr 476 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_reactive_power_a_offset.dev_attr.attr, attr 477 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_reactive_power_b_offset.dev_attr.attr, attr 478 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_reactive_power_c_offset.dev_attr.attr, attr 479 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_awatthr.dev_attr.attr, attr 480 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bwatthr.dev_attr.attr, attr 481 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cwatthr.dev_attr.attr, attr 482 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_afwatthr.dev_attr.attr, attr 483 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bfwatthr.dev_attr.attr, attr 484 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cfwatthr.dev_attr.attr, attr 485 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_avarhr.dev_attr.attr, attr 486 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bvarhr.dev_attr.attr, attr 487 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cvarhr.dev_attr.attr, attr 488 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_angle0.dev_attr.attr, attr 489 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_angle1.dev_attr.attr, attr 490 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_angle2.dev_attr.attr, attr 491 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_avahr.dev_attr.attr, attr 492 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bvahr.dev_attr.attr, attr 493 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cvahr.dev_attr.attr, attr 494 drivers/staging/iio/meter/ade7854.c &iio_const_attr_sampling_frequency_available.dev_attr.attr, attr 495 drivers/staging/iio/meter/ade7854.c &iio_const_attr_name.dev_attr.attr, attr 496 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_vpeak.dev_attr.attr, attr 497 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_ipeak.dev_attr.attr, attr 498 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_aphcal.dev_attr.attr, attr 499 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bphcal.dev_attr.attr, attr 500 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cphcal.dev_attr.attr, attr 501 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cf1den.dev_attr.attr, attr 502 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cf2den.dev_attr.attr, attr 503 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cf3den.dev_attr.attr, attr 504 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_airms.dev_attr.attr, attr 505 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_birms.dev_attr.attr, attr 506 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cirms.dev_attr.attr, attr 507 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_nirms.dev_attr.attr, attr 508 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_avrms.dev_attr.attr, attr 509 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bvrms.dev_attr.attr, attr 510 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cvrms.dev_attr.attr, attr 511 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_airmsos.dev_attr.attr, attr 512 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_birmsos.dev_attr.attr, attr 513 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cirmsos.dev_attr.attr, attr 514 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_avrmsos.dev_attr.attr, attr 515 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_bvrmsos.dev_attr.attr, attr 516 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_cvrmsos.dev_attr.attr, attr 517 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_volt_a.dev_attr.attr, attr 518 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_volt_b.dev_attr.attr, attr 519 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_volt_c.dev_attr.attr, attr 520 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_current_a.dev_attr.attr, attr 521 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_current_b.dev_attr.attr, attr 522 drivers/staging/iio/meter/ade7854.c &iio_dev_attr_current_c.dev_attr.attr, attr 200 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 209 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 239 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 248 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 276 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 289 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 331 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 340 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 386 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, char *buf) attr 399 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 423 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 427 drivers/staging/iio/resolver/ad2s1210.c struct iio_dev_attr *iattr = to_iio_dev_attr(attr); attr 438 drivers/staging/iio/resolver/ad2s1210.c struct device_attribute *attr, attr 444 drivers/staging/iio/resolver/ad2s1210.c struct iio_dev_attr *iattr = to_iio_dev_attr(attr); attr 573 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_fclkin.dev_attr.attr, attr 574 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_fexcit.dev_attr.attr, attr 575 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_control.dev_attr.attr, attr 576 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_bits.dev_attr.attr, attr 577 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_fault.dev_attr.attr, attr 578 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_los_thrd.dev_attr.attr, attr 579 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_dos_ovr_thrd.dev_attr.attr, attr 580 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_dos_mis_thrd.dev_attr.attr, attr 581 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_dos_rst_max_thrd.dev_attr.attr, attr 582 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_dos_rst_min_thrd.dev_attr.attr, attr 583 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_lot_high_thrd.dev_attr.attr, attr 584 drivers/staging/iio/resolver/ad2s1210.c &iio_dev_attr_lot_low_thrd.dev_attr.attr, attr 16 drivers/staging/isdn/gigaset/proc.c struct device_attribute *attr, char *buf) attr 23 drivers/staging/isdn/gigaset/proc.c static ssize_t set_cidmode(struct device *dev, struct device_attribute *attr, attr 146 drivers/staging/kpc2000/kpc2000/cell_probe.c static ssize_t offset_show(struct device *dev, struct device_attribute *attr, attr 155 drivers/staging/kpc2000/kpc2000/cell_probe.c static ssize_t size_show(struct device *dev, struct device_attribute *attr, attr 164 drivers/staging/kpc2000/kpc2000/cell_probe.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 173 drivers/staging/kpc2000/kpc2000/cell_probe.c static ssize_t s2c_dma_show(struct device *dev, struct device_attribute *attr, attr 185 drivers/staging/kpc2000/kpc2000/cell_probe.c static ssize_t c2s_dma_show(struct device *dev, struct device_attribute *attr, attr 197 drivers/staging/kpc2000/kpc2000/cell_probe.c static ssize_t irq_count_show(struct device *dev, struct device_attribute *attr, attr 207 drivers/staging/kpc2000/kpc2000/cell_probe.c struct device_attribute *attr, char *buf) attr 215 drivers/staging/kpc2000/kpc2000/cell_probe.c static ssize_t core_num_show(struct device *dev, struct device_attribute *attr, attr 225 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_offset.attr, attr 226 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_size.attr, attr 227 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_type.attr, attr 228 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_s2c_dma.attr, attr 229 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_c2s_dma.attr, attr 230 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_irq_count.attr, attr 231 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_irq_base_num.attr, attr 232 drivers/staging/kpc2000/kpc2000/cell_probe.c &dev_attr_core_num.attr, attr 34 drivers/staging/kpc2000/kpc2000/core.c static ssize_t ssid_show(struct device *dev, struct device_attribute *attr, attr 43 drivers/staging/kpc2000/kpc2000/core.c static ssize_t ddna_show(struct device *dev, struct device_attribute *attr, attr 52 drivers/staging/kpc2000/kpc2000/core.c static ssize_t card_id_show(struct device *dev, struct device_attribute *attr, attr 61 drivers/staging/kpc2000/kpc2000/core.c static ssize_t hw_rev_show(struct device *dev, struct device_attribute *attr, attr 70 drivers/staging/kpc2000/kpc2000/core.c static ssize_t build_show(struct device *dev, struct device_attribute *attr, attr 80 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, char *buf) attr 89 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, char *buf) attr 97 drivers/staging/kpc2000/kpc2000/core.c static ssize_t cpld_reg_show(struct device *dev, struct device_attribute *attr, attr 109 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, attr 130 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, char *buf) attr 141 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, char *buf) attr 152 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, attr 164 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, char *buf) attr 173 drivers/staging/kpc2000/kpc2000/core.c struct device_attribute *attr, char *buf) attr 182 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_ssid.attr, attr 183 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_ddna.attr, attr 184 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_card_id.attr, attr 185 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_hw_rev.attr, attr 186 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_build.attr, attr 187 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_build_date.attr, attr 188 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_build_time.attr, attr 189 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_cpld_reg.attr, attr 190 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_cpld_reconfigure.attr, attr 191 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_irq_mask_reg.attr, attr 192 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_irq_active_reg.attr, attr 193 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_pcie_error_count_reg.attr, attr 194 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_core_table_offset.attr, attr 195 drivers/staging/kpc2000/kpc2000/core.c &dev_attr_core_table_length.attr, attr 54 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c static ssize_t show_engine_regs(struct device *dev, struct device_attribute *attr, char *buf) attr 87 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c &dev_attr_engine_regs.attr, attr 1265 drivers/staging/ks7010/ks_hostif.c enum mib_attribute attr, attr 1278 drivers/staging/ks7010/ks_hostif.c pp->mib_attribute = cpu_to_le32(attr); attr 1287 drivers/staging/ks7010/ks_hostif.c enum mib_attribute attr, int val) attr 1292 drivers/staging/ks7010/ks_hostif.c hostif_mib_set_request(priv, attr, MIB_VALUE_TYPE_INT, &v, size); attr 1296 drivers/staging/ks7010/ks_hostif.c enum mib_attribute attr, attr 1302 drivers/staging/ks7010/ks_hostif.c hostif_mib_set_request(priv, attr, MIB_VALUE_TYPE_BOOL, &v, size); attr 1306 drivers/staging/ks7010/ks_hostif.c enum mib_attribute attr, attr 1309 drivers/staging/ks7010/ks_hostif.c hostif_mib_set_request(priv, attr, MIB_VALUE_TYPE_OSTRING, data, size); attr 178 drivers/staging/most/core.c struct device_attribute *attr, attr 194 drivers/staging/most/core.c struct device_attribute *attr, attr 214 drivers/staging/most/core.c struct device_attribute *attr, attr 225 drivers/staging/most/core.c struct device_attribute *attr, attr 236 drivers/staging/most/core.c struct device_attribute *attr, attr 247 drivers/staging/most/core.c struct device_attribute *attr, attr 258 drivers/staging/most/core.c struct device_attribute *attr, attr 267 drivers/staging/most/core.c struct device_attribute *attr, attr 276 drivers/staging/most/core.c struct device_attribute *attr, attr 285 drivers/staging/most/core.c struct device_attribute *attr, attr 298 drivers/staging/most/core.c struct device_attribute *attr, attr 313 drivers/staging/most/core.c struct device_attribute *attr, attr 322 drivers/staging/most/core.c struct device_attribute *attr, attr 331 drivers/staging/most/core.c struct device_attribute *attr, char *buf) attr 338 drivers/staging/most/core.c #define to_dev_attr(a) container_of(a, struct device_attribute, attr) attr 340 drivers/staging/most/core.c struct attribute *attr, int index) attr 342 drivers/staging/most/core.c struct device_attribute *dev_attr = to_dev_attr(attr); attr 346 drivers/staging/most/core.c if (!strcmp(dev_attr->attr.name, "set_dbr_size") && attr 349 drivers/staging/most/core.c if (!strcmp(dev_attr->attr.name, "set_packets_per_xact") && attr 353 drivers/staging/most/core.c return attr->mode; attr 356 drivers/staging/most/core.c #define DEV_ATTR(_name) (&dev_attr_##_name.attr) attr 402 drivers/staging/most/core.c struct device_attribute *attr, attr 411 drivers/staging/most/core.c struct device_attribute *attr, attr 789 drivers/staging/most/core.c #define DRV_ATTR(_name) (&driver_attr_##_name.attr) attr 16 drivers/staging/most/dim2/sysfs.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 27 drivers/staging/most/dim2/sysfs.c &dev_attr_state.attr, attr 916 drivers/staging/most/usb/usb.c static ssize_t value_show(struct device *dev, struct device_attribute *attr, attr 919 drivers/staging/most/usb/usb.c const char *name = attr->attr.name; attr 941 drivers/staging/most/usb/usb.c static ssize_t value_store(struct device *dev, struct device_attribute *attr, attr 946 drivers/staging/most/usb/usb.c const char *name = attr->attr.name; attr 991 drivers/staging/most/usb/usb.c &dev_attr_ni_state.attr, attr 992 drivers/staging/most/usb/usb.c &dev_attr_packet_bandwidth.attr, attr 993 drivers/staging/most/usb/usb.c &dev_attr_node_address.attr, attr 994 drivers/staging/most/usb/usb.c &dev_attr_node_position.attr, attr 995 drivers/staging/most/usb/usb.c &dev_attr_sync_ep.attr, attr 996 drivers/staging/most/usb/usb.c &dev_attr_mep_filter.attr, attr 997 drivers/staging/most/usb/usb.c &dev_attr_mep_hash0.attr, attr 998 drivers/staging/most/usb/usb.c &dev_attr_mep_hash1.attr, attr 999 drivers/staging/most/usb/usb.c &dev_attr_mep_hash2.attr, attr 1000 drivers/staging/most/usb/usb.c &dev_attr_mep_hash3.attr, attr 1001 drivers/staging/most/usb/usb.c &dev_attr_mep_eui48_hi.attr, attr 1002 drivers/staging/most/usb/usb.c &dev_attr_mep_eui48_mi.attr, attr 1003 drivers/staging/most/usb/usb.c &dev_attr_mep_eui48_lo.attr, attr 1004 drivers/staging/most/usb/usb.c &dev_attr_arb_address.attr, attr 1005 drivers/staging/most/usb/usb.c &dev_attr_arb_value.attr, attr 324 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c const struct soc_device_attribute *attr; attr 341 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c attr = soc_device_match(mt7621_pci_quirks_match); attr 342 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c if (attr) attr 653 drivers/staging/mt7621-pci/pci-mt7621.c const struct soc_device_attribute *attr; attr 671 drivers/staging/mt7621-pci/pci-mt7621.c attr = soc_device_match(mt7621_pci_quirks_match); attr 672 drivers/staging/mt7621-pci/pci-mt7621.c if (attr) attr 389 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 398 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 407 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 416 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 425 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 432 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 448 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 477 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 494 drivers/staging/olpc_dcon/olpc_dcon.c struct device_attribute *attr, attr 76 drivers/staging/rtl8188eu/os_dep/mon.c struct rx_pkt_attrib *attr; attr 86 drivers/staging/rtl8188eu/os_dep/mon.c attr = &frame->attrib; attr 91 drivers/staging/rtl8188eu/os_dep/mon.c SET_ICE_IV_LEN(iv_len, icv_len, attr->encrypt); attr 93 drivers/staging/rtl8188eu/os_dep/mon.c if (attr->bdecrypted) attr 109 drivers/staging/rtl8188eu/os_dep/mon.c struct pkt_attrib *attr; attr 118 drivers/staging/rtl8188eu/os_dep/mon.c attr = &frame->attrib; attr 123 drivers/staging/rtl8188eu/os_dep/mon.c for (i = 0; i < attr->nr_frags - 1; i++) { attr 124 drivers/staging/rtl8188eu/os_dep/mon.c mon_recv_decrypted(dev, data, frag_len, attr->iv_len, 0); attr 129 drivers/staging/rtl8188eu/os_dep/mon.c mon_recv_decrypted(dev, data, attr->last_txcmdsz, attr->iv_len, 0); attr 30 drivers/staging/speakup/kobjects.c struct kobj_attribute *attr, char *buf) attr 44 drivers/staging/speakup/kobjects.c if (strcmp("characters", attr->attr.name) == 0) { attr 110 drivers/staging/speakup/kobjects.c struct kobj_attribute *attr, attr 128 drivers/staging/speakup/kobjects.c int do_characters = !strcmp(attr->attr.name, "characters"); attr 229 drivers/staging/speakup/kobjects.c static ssize_t keymap_show(struct kobject *kobj, struct kobj_attribute *attr, attr 265 drivers/staging/speakup/kobjects.c static ssize_t keymap_store(struct kobject *kobj, struct kobj_attribute *attr, attr 332 drivers/staging/speakup/kobjects.c static ssize_t silent_store(struct kobject *kobj, struct kobj_attribute *attr, attr 371 drivers/staging/speakup/kobjects.c static ssize_t synth_show(struct kobject *kobj, struct kobj_attribute *attr, attr 386 drivers/staging/speakup/kobjects.c static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr, attr 413 drivers/staging/speakup/kobjects.c struct kobj_attribute *attr, attr 443 drivers/staging/speakup/kobjects.c static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, attr 459 drivers/staging/speakup/kobjects.c static ssize_t punc_show(struct kobject *kobj, struct kobj_attribute *attr, attr 470 drivers/staging/speakup/kobjects.c p_header = spk_var_header_by_name(attr->attr.name); attr 473 drivers/staging/speakup/kobjects.c attr->attr.name); attr 499 drivers/staging/speakup/kobjects.c static ssize_t punc_store(struct kobject *kobj, struct kobj_attribute *attr, attr 512 drivers/staging/speakup/kobjects.c p_header = spk_var_header_by_name(attr->attr.name); attr 515 drivers/staging/speakup/kobjects.c attr->attr.name); attr 546 drivers/staging/speakup/kobjects.c ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr, attr 557 drivers/staging/speakup/kobjects.c param = spk_var_header_by_name(attr->attr.name); attr 622 drivers/staging/speakup/kobjects.c ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr, attr 633 drivers/staging/speakup/kobjects.c param = spk_var_header_by_name(attr->attr.name); attr 840 drivers/staging/speakup/kobjects.c struct kobj_attribute *attr, char *buf) attr 843 drivers/staging/speakup/kobjects.c struct msg_group_t *group = spk_find_msg_group(attr->attr.name); attr 855 drivers/staging/speakup/kobjects.c static ssize_t message_store(struct kobject *kobj, struct kobj_attribute *attr, attr 858 drivers/staging/speakup/kobjects.c struct msg_group_t *group = spk_find_msg_group(attr->attr.name); attr 947 drivers/staging/speakup/kobjects.c &keymap_attribute.attr, attr 948 drivers/staging/speakup/kobjects.c &silent_attribute.attr, attr 949 drivers/staging/speakup/kobjects.c &synth_attribute.attr, attr 950 drivers/staging/speakup/kobjects.c &synth_direct_attribute.attr, attr 951 drivers/staging/speakup/kobjects.c &version_attribute.attr, attr 952 drivers/staging/speakup/kobjects.c &delimiters_attribute.attr, attr 953 drivers/staging/speakup/kobjects.c &ex_num_attribute.attr, attr 954 drivers/staging/speakup/kobjects.c &punc_all_attribute.attr, attr 955 drivers/staging/speakup/kobjects.c &punc_most_attribute.attr, attr 956 drivers/staging/speakup/kobjects.c &punc_some_attribute.attr, attr 957 drivers/staging/speakup/kobjects.c &repeats_attribute.attr, attr 958 drivers/staging/speakup/kobjects.c &attrib_bleep_attribute.attr, attr 959 drivers/staging/speakup/kobjects.c &bell_pos_attribute.attr, attr 960 drivers/staging/speakup/kobjects.c &bleep_time_attribute.attr, attr 961 drivers/staging/speakup/kobjects.c &bleeps_attribute.attr, attr 962 drivers/staging/speakup/kobjects.c &cursor_time_attribute.attr, attr 963 drivers/staging/speakup/kobjects.c &key_echo_attribute.attr, attr 964 drivers/staging/speakup/kobjects.c &no_interrupt_attribute.attr, attr 965 drivers/staging/speakup/kobjects.c &punc_level_attribute.attr, attr 966 drivers/staging/speakup/kobjects.c &reading_punc_attribute.attr, attr 967 drivers/staging/speakup/kobjects.c &say_control_attribute.attr, attr 968 drivers/staging/speakup/kobjects.c &say_word_ctl_attribute.attr, attr 969 drivers/staging/speakup/kobjects.c &spell_delay_attribute.attr, attr 974 drivers/staging/speakup/kobjects.c &announcements_attribute.attr, attr 975 drivers/staging/speakup/kobjects.c &characters_attribute.attr, attr 976 drivers/staging/speakup/kobjects.c &chartab_attribute.attr, attr 977 drivers/staging/speakup/kobjects.c &ctl_keys_attribute.attr, attr 978 drivers/staging/speakup/kobjects.c &colors_attribute.attr, attr 979 drivers/staging/speakup/kobjects.c &formatted_attribute.attr, attr 980 drivers/staging/speakup/kobjects.c &function_names_attribute.attr, attr 981 drivers/staging/speakup/kobjects.c &key_names_attribute.attr, attr 982 drivers/staging/speakup/kobjects.c &states_attribute.attr, attr 80 drivers/staging/speakup/speakup_acntpc.c &caps_start_attribute.attr, attr 81 drivers/staging/speakup/speakup_acntpc.c &caps_stop_attribute.attr, attr 82 drivers/staging/speakup/speakup_acntpc.c &pitch_attribute.attr, attr 83 drivers/staging/speakup/speakup_acntpc.c &rate_attribute.attr, attr 84 drivers/staging/speakup/speakup_acntpc.c &tone_attribute.attr, attr 85 drivers/staging/speakup/speakup_acntpc.c &vol_attribute.attr, attr 86 drivers/staging/speakup/speakup_acntpc.c &delay_time_attribute.attr, attr 87 drivers/staging/speakup/speakup_acntpc.c &direct_attribute.attr, attr 88 drivers/staging/speakup/speakup_acntpc.c &full_time_attribute.attr, attr 89 drivers/staging/speakup/speakup_acntpc.c &jiffy_delta_attribute.attr, attr 90 drivers/staging/speakup/speakup_acntpc.c &trigger_time_attribute.attr, attr 65 drivers/staging/speakup/speakup_acntsa.c &caps_start_attribute.attr, attr 66 drivers/staging/speakup/speakup_acntsa.c &caps_stop_attribute.attr, attr 67 drivers/staging/speakup/speakup_acntsa.c &pitch_attribute.attr, attr 68 drivers/staging/speakup/speakup_acntsa.c &rate_attribute.attr, attr 69 drivers/staging/speakup/speakup_acntsa.c &tone_attribute.attr, attr 70 drivers/staging/speakup/speakup_acntsa.c &vol_attribute.attr, attr 71 drivers/staging/speakup/speakup_acntsa.c &delay_time_attribute.attr, attr 72 drivers/staging/speakup/speakup_acntsa.c &direct_attribute.attr, attr 73 drivers/staging/speakup/speakup_acntsa.c &full_time_attribute.attr, attr 74 drivers/staging/speakup/speakup_acntsa.c &jiffy_delta_attribute.attr, attr 75 drivers/staging/speakup/speakup_acntsa.c &trigger_time_attribute.attr, attr 73 drivers/staging/speakup/speakup_apollo.c &caps_start_attribute.attr, attr 74 drivers/staging/speakup/speakup_apollo.c &caps_stop_attribute.attr, attr 75 drivers/staging/speakup/speakup_apollo.c &lang_attribute.attr, attr 76 drivers/staging/speakup/speakup_apollo.c &pitch_attribute.attr, attr 77 drivers/staging/speakup/speakup_apollo.c &rate_attribute.attr, attr 78 drivers/staging/speakup/speakup_apollo.c &voice_attribute.attr, attr 79 drivers/staging/speakup/speakup_apollo.c &vol_attribute.attr, attr 80 drivers/staging/speakup/speakup_apollo.c &delay_time_attribute.attr, attr 81 drivers/staging/speakup/speakup_apollo.c &direct_attribute.attr, attr 82 drivers/staging/speakup/speakup_apollo.c &full_time_attribute.attr, attr 83 drivers/staging/speakup/speakup_apollo.c &jiffy_delta_attribute.attr, attr 84 drivers/staging/speakup/speakup_apollo.c &trigger_time_attribute.attr, attr 68 drivers/staging/speakup/speakup_audptr.c &caps_start_attribute.attr, attr 69 drivers/staging/speakup/speakup_audptr.c &caps_stop_attribute.attr, attr 70 drivers/staging/speakup/speakup_audptr.c &pitch_attribute.attr, attr 71 drivers/staging/speakup/speakup_audptr.c &punct_attribute.attr, attr 72 drivers/staging/speakup/speakup_audptr.c &rate_attribute.attr, attr 73 drivers/staging/speakup/speakup_audptr.c &tone_attribute.attr, attr 74 drivers/staging/speakup/speakup_audptr.c &vol_attribute.attr, attr 75 drivers/staging/speakup/speakup_audptr.c &delay_time_attribute.attr, attr 76 drivers/staging/speakup/speakup_audptr.c &direct_attribute.attr, attr 77 drivers/staging/speakup/speakup_audptr.c &full_time_attribute.attr, attr 78 drivers/staging/speakup/speakup_audptr.c &jiffy_delta_attribute.attr, attr 79 drivers/staging/speakup/speakup_audptr.c &trigger_time_attribute.attr, attr 62 drivers/staging/speakup/speakup_bns.c &caps_start_attribute.attr, attr 63 drivers/staging/speakup/speakup_bns.c &caps_stop_attribute.attr, attr 64 drivers/staging/speakup/speakup_bns.c &pitch_attribute.attr, attr 65 drivers/staging/speakup/speakup_bns.c &rate_attribute.attr, attr 66 drivers/staging/speakup/speakup_bns.c &tone_attribute.attr, attr 67 drivers/staging/speakup/speakup_bns.c &vol_attribute.attr, attr 68 drivers/staging/speakup/speakup_bns.c &delay_time_attribute.attr, attr 69 drivers/staging/speakup/speakup_bns.c &direct_attribute.attr, attr 70 drivers/staging/speakup/speakup_bns.c &full_time_attribute.attr, attr 71 drivers/staging/speakup/speakup_bns.c &jiffy_delta_attribute.attr, attr 72 drivers/staging/speakup/speakup_bns.c &trigger_time_attribute.attr, attr 87 drivers/staging/speakup/speakup_decext.c &caps_start_attribute.attr, attr 88 drivers/staging/speakup/speakup_decext.c &caps_stop_attribute.attr, attr 89 drivers/staging/speakup/speakup_decext.c &pitch_attribute.attr, attr 90 drivers/staging/speakup/speakup_decext.c &punct_attribute.attr, attr 91 drivers/staging/speakup/speakup_decext.c &rate_attribute.attr, attr 92 drivers/staging/speakup/speakup_decext.c &voice_attribute.attr, attr 93 drivers/staging/speakup/speakup_decext.c &vol_attribute.attr, attr 94 drivers/staging/speakup/speakup_decext.c &delay_time_attribute.attr, attr 95 drivers/staging/speakup/speakup_decext.c &direct_attribute.attr, attr 96 drivers/staging/speakup/speakup_decext.c &full_time_attribute.attr, attr 97 drivers/staging/speakup/speakup_decext.c &jiffy_delta_attribute.attr, attr 98 drivers/staging/speakup/speakup_decext.c &trigger_time_attribute.attr, attr 183 drivers/staging/speakup/speakup_decpc.c &caps_start_attribute.attr, attr 184 drivers/staging/speakup/speakup_decpc.c &caps_stop_attribute.attr, attr 185 drivers/staging/speakup/speakup_decpc.c &pitch_attribute.attr, attr 186 drivers/staging/speakup/speakup_decpc.c &punct_attribute.attr, attr 187 drivers/staging/speakup/speakup_decpc.c &rate_attribute.attr, attr 188 drivers/staging/speakup/speakup_decpc.c &voice_attribute.attr, attr 189 drivers/staging/speakup/speakup_decpc.c &vol_attribute.attr, attr 190 drivers/staging/speakup/speakup_decpc.c &delay_time_attribute.attr, attr 191 drivers/staging/speakup/speakup_decpc.c &direct_attribute.attr, attr 192 drivers/staging/speakup/speakup_decpc.c &full_time_attribute.attr, attr 193 drivers/staging/speakup/speakup_decpc.c &jiffy_delta_attribute.attr, attr 194 drivers/staging/speakup/speakup_decpc.c &trigger_time_attribute.attr, attr 89 drivers/staging/speakup/speakup_dectlk.c &caps_start_attribute.attr, attr 90 drivers/staging/speakup/speakup_dectlk.c &caps_stop_attribute.attr, attr 91 drivers/staging/speakup/speakup_dectlk.c &pitch_attribute.attr, attr 92 drivers/staging/speakup/speakup_dectlk.c &punct_attribute.attr, attr 93 drivers/staging/speakup/speakup_dectlk.c &rate_attribute.attr, attr 94 drivers/staging/speakup/speakup_dectlk.c &voice_attribute.attr, attr 95 drivers/staging/speakup/speakup_dectlk.c &vol_attribute.attr, attr 96 drivers/staging/speakup/speakup_dectlk.c &delay_time_attribute.attr, attr 97 drivers/staging/speakup/speakup_dectlk.c &direct_attribute.attr, attr 98 drivers/staging/speakup/speakup_dectlk.c &full_time_attribute.attr, attr 99 drivers/staging/speakup/speakup_dectlk.c &jiffy_delta_attribute.attr, attr 100 drivers/staging/speakup/speakup_dectlk.c &trigger_time_attribute.attr, attr 92 drivers/staging/speakup/speakup_dtlk.c &caps_start_attribute.attr, attr 93 drivers/staging/speakup/speakup_dtlk.c &caps_stop_attribute.attr, attr 94 drivers/staging/speakup/speakup_dtlk.c &freq_attribute.attr, attr 95 drivers/staging/speakup/speakup_dtlk.c &pitch_attribute.attr, attr 96 drivers/staging/speakup/speakup_dtlk.c &punct_attribute.attr, attr 97 drivers/staging/speakup/speakup_dtlk.c &rate_attribute.attr, attr 98 drivers/staging/speakup/speakup_dtlk.c &tone_attribute.attr, attr 99 drivers/staging/speakup/speakup_dtlk.c &voice_attribute.attr, attr 100 drivers/staging/speakup/speakup_dtlk.c &vol_attribute.attr, attr 101 drivers/staging/speakup/speakup_dtlk.c &delay_time_attribute.attr, attr 102 drivers/staging/speakup/speakup_dtlk.c &direct_attribute.attr, attr 103 drivers/staging/speakup/speakup_dtlk.c &full_time_attribute.attr, attr 104 drivers/staging/speakup/speakup_dtlk.c &jiffy_delta_attribute.attr, attr 105 drivers/staging/speakup/speakup_dtlk.c &trigger_time_attribute.attr, attr 65 drivers/staging/speakup/speakup_dummy.c &caps_start_attribute.attr, attr 66 drivers/staging/speakup/speakup_dummy.c &caps_stop_attribute.attr, attr 67 drivers/staging/speakup/speakup_dummy.c &pitch_attribute.attr, attr 68 drivers/staging/speakup/speakup_dummy.c &rate_attribute.attr, attr 69 drivers/staging/speakup/speakup_dummy.c &tone_attribute.attr, attr 70 drivers/staging/speakup/speakup_dummy.c &vol_attribute.attr, attr 71 drivers/staging/speakup/speakup_dummy.c &delay_time_attribute.attr, attr 72 drivers/staging/speakup/speakup_dummy.c &direct_attribute.attr, attr 73 drivers/staging/speakup/speakup_dummy.c &full_time_attribute.attr, attr 74 drivers/staging/speakup/speakup_dummy.c &jiffy_delta_attribute.attr, attr 75 drivers/staging/speakup/speakup_dummy.c &trigger_time_attribute.attr, attr 73 drivers/staging/speakup/speakup_keypc.c &caps_start_attribute.attr, attr 74 drivers/staging/speakup/speakup_keypc.c &caps_stop_attribute.attr, attr 75 drivers/staging/speakup/speakup_keypc.c &pitch_attribute.attr, attr 76 drivers/staging/speakup/speakup_keypc.c &rate_attribute.attr, attr 77 drivers/staging/speakup/speakup_keypc.c &delay_time_attribute.attr, attr 78 drivers/staging/speakup/speakup_keypc.c &direct_attribute.attr, attr 79 drivers/staging/speakup/speakup_keypc.c &full_time_attribute.attr, attr 80 drivers/staging/speakup/speakup_keypc.c &jiffy_delta_attribute.attr, attr 81 drivers/staging/speakup/speakup_keypc.c &trigger_time_attribute.attr, attr 73 drivers/staging/speakup/speakup_ltlk.c &caps_start_attribute.attr, attr 74 drivers/staging/speakup/speakup_ltlk.c &caps_stop_attribute.attr, attr 75 drivers/staging/speakup/speakup_ltlk.c &freq_attribute.attr, attr 76 drivers/staging/speakup/speakup_ltlk.c &pitch_attribute.attr, attr 77 drivers/staging/speakup/speakup_ltlk.c &punct_attribute.attr, attr 78 drivers/staging/speakup/speakup_ltlk.c &rate_attribute.attr, attr 79 drivers/staging/speakup/speakup_ltlk.c &tone_attribute.attr, attr 80 drivers/staging/speakup/speakup_ltlk.c &voice_attribute.attr, attr 81 drivers/staging/speakup/speakup_ltlk.c &vol_attribute.attr, attr 82 drivers/staging/speakup/speakup_ltlk.c &delay_time_attribute.attr, attr 83 drivers/staging/speakup/speakup_ltlk.c &direct_attribute.attr, attr 84 drivers/staging/speakup/speakup_ltlk.c &full_time_attribute.attr, attr 85 drivers/staging/speakup/speakup_ltlk.c &jiffy_delta_attribute.attr, attr 86 drivers/staging/speakup/speakup_ltlk.c &trigger_time_attribute.attr, attr 96 drivers/staging/speakup/speakup_soft.c &caps_start_attribute.attr, attr 97 drivers/staging/speakup/speakup_soft.c &caps_stop_attribute.attr, attr 98 drivers/staging/speakup/speakup_soft.c &freq_attribute.attr, attr 100 drivers/staging/speakup/speakup_soft.c &pitch_attribute.attr, attr 101 drivers/staging/speakup/speakup_soft.c &punct_attribute.attr, attr 102 drivers/staging/speakup/speakup_soft.c &rate_attribute.attr, attr 103 drivers/staging/speakup/speakup_soft.c &tone_attribute.attr, attr 104 drivers/staging/speakup/speakup_soft.c &voice_attribute.attr, attr 105 drivers/staging/speakup/speakup_soft.c &vol_attribute.attr, attr 106 drivers/staging/speakup/speakup_soft.c &delay_time_attribute.attr, attr 107 drivers/staging/speakup/speakup_soft.c &direct_attribute.attr, attr 108 drivers/staging/speakup/speakup_soft.c &full_time_attribute.attr, attr 109 drivers/staging/speakup/speakup_soft.c &jiffy_delta_attribute.attr, attr 110 drivers/staging/speakup/speakup_soft.c &trigger_time_attribute.attr, attr 66 drivers/staging/speakup/speakup_spkout.c &caps_start_attribute.attr, attr 67 drivers/staging/speakup/speakup_spkout.c &caps_stop_attribute.attr, attr 68 drivers/staging/speakup/speakup_spkout.c &pitch_attribute.attr, attr 69 drivers/staging/speakup/speakup_spkout.c &punct_attribute.attr, attr 70 drivers/staging/speakup/speakup_spkout.c &rate_attribute.attr, attr 71 drivers/staging/speakup/speakup_spkout.c &tone_attribute.attr, attr 72 drivers/staging/speakup/speakup_spkout.c &vol_attribute.attr, attr 73 drivers/staging/speakup/speakup_spkout.c &delay_time_attribute.attr, attr 74 drivers/staging/speakup/speakup_spkout.c &direct_attribute.attr, attr 75 drivers/staging/speakup/speakup_spkout.c &full_time_attribute.attr, attr 76 drivers/staging/speakup/speakup_spkout.c &jiffy_delta_attribute.attr, attr 77 drivers/staging/speakup/speakup_spkout.c &trigger_time_attribute.attr, attr 61 drivers/staging/speakup/speakup_txprt.c &caps_start_attribute.attr, attr 62 drivers/staging/speakup/speakup_txprt.c &caps_stop_attribute.attr, attr 63 drivers/staging/speakup/speakup_txprt.c &pitch_attribute.attr, attr 64 drivers/staging/speakup/speakup_txprt.c &rate_attribute.attr, attr 65 drivers/staging/speakup/speakup_txprt.c &tone_attribute.attr, attr 66 drivers/staging/speakup/speakup_txprt.c &vol_attribute.attr, attr 67 drivers/staging/speakup/speakup_txprt.c &delay_time_attribute.attr, attr 68 drivers/staging/speakup/speakup_txprt.c &direct_attribute.attr, attr 69 drivers/staging/speakup/speakup_txprt.c &full_time_attribute.attr, attr 70 drivers/staging/speakup/speakup_txprt.c &jiffy_delta_attribute.attr, attr 71 drivers/staging/speakup/speakup_txprt.c &trigger_time_attribute.attr, attr 50 drivers/staging/speakup/spk_priv.h ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr, attr 52 drivers/staging/speakup/spk_priv.h ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr, attr 295 drivers/staging/uwb/address.c struct device_attribute *attr, char *buf) attr 317 drivers/staging/uwb/address.c struct device_attribute *attr, attr 565 drivers/staging/uwb/beacon.c struct device_attribute *attr, char *buf) attr 581 drivers/staging/uwb/beacon.c struct device_attribute *attr, attr 64 drivers/staging/uwb/driver.c struct class_attribute *attr, attr 72 drivers/staging/uwb/driver.c struct class_attribute *attr, attr 86 drivers/staging/uwb/driver.c &class_attr_beacon_timeout_ms.attr, attr 105 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, char *buf) attr 116 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, char *buf) attr 133 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, char *buf) attr 161 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, char *buf) attr 170 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, char *buf) attr 183 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, attr 198 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, char *buf) attr 211 drivers/staging/uwb/lc-dev.c struct device_attribute *attr, attr 227 drivers/staging/uwb/lc-dev.c &dev_attr_EUI_48.attr, attr 228 drivers/staging/uwb/lc-dev.c &dev_attr_DevAddr.attr, attr 229 drivers/staging/uwb/lc-dev.c &dev_attr_BPST.attr, attr 230 drivers/staging/uwb/lc-dev.c &dev_attr_IEs.attr, attr 231 drivers/staging/uwb/lc-dev.c &dev_attr_LQE.attr, attr 232 drivers/staging/uwb/lc-dev.c &dev_attr_RSSI.attr, attr 115 drivers/staging/uwb/lc-rc.c struct device_attribute *attr, char *buf) attr 150 drivers/staging/uwb/lc-rc.c struct device_attribute *attr, attr 210 drivers/staging/uwb/lc-rc.c &dev_attr_mac_address.attr, attr 211 drivers/staging/uwb/lc-rc.c &dev_attr_scan.attr, attr 212 drivers/staging/uwb/lc-rc.c &dev_attr_beacon.attr, attr 213 drivers/staging/uwb/lc-rc.c &dev_attr_ASIE.attr, attr 86 drivers/staging/uwb/scan.c struct device_attribute *attr, char *buf) attr 102 drivers/staging/uwb/scan.c struct device_attribute *attr, attr 165 drivers/staging/uwb/umc-bus.c static ssize_t capability_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 173 drivers/staging/uwb/umc-bus.c static ssize_t version_show(struct device *dev, struct device_attribute *attr, char *buf) attr 182 drivers/staging/uwb/umc-bus.c &dev_attr_capability_id.attr, attr 183 drivers/staging/uwb/umc-bus.c &dev_attr_version.attr, attr 300 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 310 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 345 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 355 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 372 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 382 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 412 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, char *buf) attr 421 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 452 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 466 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 526 drivers/staging/wusbcore/cbaf.c struct device_attribute *attr, attr 558 drivers/staging/wusbcore/cbaf.c &dev_attr_wusb_host_name.attr, attr 559 drivers/staging/wusbcore/cbaf.c &dev_attr_wusb_host_band_groups.attr, attr 560 drivers/staging/wusbcore/cbaf.c &dev_attr_wusb_chid.attr, attr 561 drivers/staging/wusbcore/cbaf.c &dev_attr_wusb_cdid.attr, attr 562 drivers/staging/wusbcore/cbaf.c &dev_attr_wusb_device_name.attr, attr 563 drivers/staging/wusbcore/cbaf.c &dev_attr_wusb_device_band_groups.attr, attr 564 drivers/staging/wusbcore/cbaf.c &dev_attr_wusb_ck.attr, attr 18 drivers/staging/wusbcore/dev-sysfs.c struct device_attribute *attr, attr 45 drivers/staging/wusbcore/dev-sysfs.c struct device_attribute *attr, char *buf) attr 60 drivers/staging/wusbcore/dev-sysfs.c struct device_attribute *attr, attr 96 drivers/staging/wusbcore/dev-sysfs.c &dev_attr_wusb_disconnect.attr, attr 97 drivers/staging/wusbcore/dev-sysfs.c &dev_attr_wusb_cdid.attr, attr 98 drivers/staging/wusbcore/dev-sysfs.c &dev_attr_wusb_ck.attr, attr 44 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 53 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 79 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, char *buf) attr 101 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 133 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 142 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 161 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 171 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 191 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 200 drivers/staging/wusbcore/wusbhc.c struct device_attribute *attr, attr 221 drivers/staging/wusbcore/wusbhc.c &dev_attr_wusb_trust_timeout.attr, attr 222 drivers/staging/wusbcore/wusbhc.c &dev_attr_wusb_chid.attr, attr 223 drivers/staging/wusbcore/wusbhc.c &dev_attr_wusb_phy_rate.attr, attr 224 drivers/staging/wusbcore/wusbhc.c &dev_attr_wusb_dnts.attr, attr 225 drivers/staging/wusbcore/wusbhc.c &dev_attr_wusb_retry_count.attr, attr 231 drivers/tee/optee/call.c msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | attr 233 drivers/tee/optee/call.c msg_arg->params[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | attr 603 drivers/tee/optee/call.c msg_arg->params->attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | attr 637 drivers/tee/optee/call.c msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_RMEM_INPUT; attr 47 drivers/tee/optee/core.c u32 attr = mp->attr & OPTEE_MSG_ATTR_TYPE_MASK; attr 49 drivers/tee/optee/core.c switch (attr) { attr 51 drivers/tee/optee/core.c p->attr = TEE_IOCTL_PARAM_ATTR_TYPE_NONE; attr 57 drivers/tee/optee/core.c p->attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INPUT + attr 58 drivers/tee/optee/core.c attr - OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; attr 66 drivers/tee/optee/core.c p->attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT + attr 67 drivers/tee/optee/core.c attr - OPTEE_MSG_ATTR_TYPE_TMEM_INPUT; attr 95 drivers/tee/optee/core.c p->attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT + attr 96 drivers/tee/optee/core.c attr - OPTEE_MSG_ATTR_TYPE_RMEM_INPUT; attr 124 drivers/tee/optee/core.c mp->attr = OPTEE_MSG_ATTR_TYPE_TMEM_INPUT + p->attr - attr 140 drivers/tee/optee/core.c mp->attr |= OPTEE_MSG_ATTR_CACHE_PREDEFINED << attr 149 drivers/tee/optee/core.c mp->attr = OPTEE_MSG_ATTR_TYPE_RMEM_INPUT + p->attr - attr 175 drivers/tee/optee/core.c switch (p->attr) { attr 177 drivers/tee/optee/core.c mp->attr = TEE_IOCTL_PARAM_ATTR_TYPE_NONE; attr 183 drivers/tee/optee/core.c mp->attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT + p->attr - attr 50 drivers/tee/optee/device.c param[0].attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_OUTPUT; attr 157 drivers/tee/optee/optee_msg.h u64 attr; attr 38 drivers/tee/optee/rpc.c if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != attr 100 drivers/tee/optee/rpc.c if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != attr 128 drivers/tee/optee/rpc.c if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != attr 177 drivers/tee/optee/rpc.c param.attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT; attr 205 drivers/tee/optee/rpc.c arg->params[0].attr != OPTEE_MSG_ATTR_TYPE_VALUE_INPUT) { attr 211 drivers/tee/optee/rpc.c if (arg->params[n].attr != OPTEE_MSG_ATTR_TYPE_NONE) { attr 262 drivers/tee/optee/rpc.c arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | attr 277 drivers/tee/optee/rpc.c arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT; attr 293 drivers/tee/optee/rpc.c param.attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT; attr 322 drivers/tee/optee/rpc.c arg->params[0].attr != OPTEE_MSG_ATTR_TYPE_VALUE_INPUT) { attr 206 drivers/tee/optee/supp.c if (params[n].attr && attr 207 drivers/tee/optee/supp.c params[n].attr != TEE_IOCTL_PARAM_ATTR_META) attr 211 drivers/tee/optee/supp.c if (params->attr == TEE_IOCTL_PARAM_ATTR_META) attr 272 drivers/tee/optee/supp.c param->attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT | attr 299 drivers/tee/optee/supp.c const u32 attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT | attr 306 drivers/tee/optee/supp.c if (param->attr != attr) attr 361 drivers/tee/optee/supp.c switch (p->attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { attr 217 drivers/tee/tee_core.c if (ip.attr & ~TEE_IOCTL_PARAM_ATTR_MASK) attr 220 drivers/tee/tee_core.c params[n].attr = ip.attr; attr 221 drivers/tee/tee_core.c switch (ip.attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { attr 278 drivers/tee/tee_core.c switch (p->attr) { attr 470 drivers/tee/tee_core.c ip.attr = p->attr; attr 471 drivers/tee/tee_core.c switch (p->attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { attr 568 drivers/tee/tee_core.c if (ip.attr & ~TEE_IOCTL_PARAM_ATTR_MASK) attr 571 drivers/tee/tee_core.c p->attr = ip.attr; attr 572 drivers/tee/tee_core.c switch (ip.attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { attr 793 drivers/tee/tee_core.c struct device_attribute *attr, char *buf) attr 804 drivers/tee/tee_core.c &dev_attr_implementation_id.attr, attr 58 drivers/thermal/intel/int340x_thermal/int3400_thermal.c struct device_attribute *attr, attr 90 drivers/thermal/intel/int340x_thermal/int3400_thermal.c struct device_attribute *attr, attr 111 drivers/thermal/intel/int340x_thermal/int3400_thermal.c &dev_attr_available_uuids.attr, attr 112 drivers/thermal/intel/int340x_thermal/int3400_thermal.c &dev_attr_current_uuid.attr, attr 86 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c struct device_attribute *attr, \ attr 125 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_0_min_uw.attr, attr 126 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_1_min_uw.attr, attr 127 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_0_max_uw.attr, attr 128 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_1_max_uw.attr, attr 129 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_0_step_uw.attr, attr 130 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_1_step_uw.attr, attr 131 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_0_tmin_us.attr, attr 132 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_1_tmin_us.attr, attr 133 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_0_tmax_us.attr, attr 134 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c &dev_attr_power_limit_1_tmax_us.attr, attr 144 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c struct device_attribute *attr, char *buf) attr 182 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c struct device_attribute *attr, const char *buf, attr 404 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c sysfs_remove_file(&proc_priv->dev->kobj, &dev_attr_tcc_offset_degree_celsius.attr); attr 428 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c ret = sysfs_create_file(&pdev->dev.kobj, &dev_attr_tcc_offset_degree_celsius.attr); attr 434 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c sysfs_remove_file(&pdev->dev.kobj, &dev_attr_tcc_offset_degree_celsius.attr); attr 668 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c ret = sysfs_create_file(&pdev->dev.kobj, &dev_attr_tcc_offset_degree_celsius.attr); attr 674 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c sysfs_remove_file(&pdev->dev.kobj, &dev_attr_tcc_offset_degree_celsius.attr); attr 743 drivers/thermal/thermal_core.c sysfs_attr_init(&dev->attr.attr); attr 744 drivers/thermal/thermal_core.c dev->attr.attr.name = dev->attr_name; attr 745 drivers/thermal/thermal_core.c dev->attr.attr.mode = 0444; attr 746 drivers/thermal/thermal_core.c dev->attr.show = trip_point_show; attr 747 drivers/thermal/thermal_core.c result = device_create_file(&tz->device, &dev->attr); attr 752 drivers/thermal/thermal_core.c sysfs_attr_init(&dev->weight_attr.attr); attr 753 drivers/thermal/thermal_core.c dev->weight_attr.attr.name = dev->weight_attr_name; attr 754 drivers/thermal/thermal_core.c dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; attr 781 drivers/thermal/thermal_core.c device_remove_file(&tz->device, &dev->attr); attr 830 drivers/thermal/thermal_core.c device_remove_file(&tz->device, &pos->attr); attr 1485 drivers/thermal/thermal_core.c struct nlattr *attr; attr 1513 drivers/thermal/thermal_core.c attr = nla_reserve(skb, THERMAL_GENL_ATTR_EVENT, attr 1516 drivers/thermal/thermal_core.c if (!attr) { attr 1521 drivers/thermal/thermal_core.c thermal_event = nla_data(attr); attr 49 drivers/thermal/thermal_core.h struct device_attribute attr; attr 30 drivers/thermal/thermal_hwmon.c struct device_attribute attr; attr 47 drivers/thermal/thermal_hwmon.c temp_input_show(struct device *dev, struct device_attribute *attr, char *buf) attr 52 drivers/thermal/thermal_hwmon.c = container_of(attr, struct thermal_hwmon_attr, attr); attr 67 drivers/thermal/thermal_hwmon.c temp_crit_show(struct device *dev, struct device_attribute *attr, char *buf) attr 70 drivers/thermal/thermal_hwmon.c = container_of(attr, struct thermal_hwmon_attr, attr); attr 169 drivers/thermal/thermal_hwmon.c temp->temp_input.attr.attr.name = temp->temp_input.name; attr 170 drivers/thermal/thermal_hwmon.c temp->temp_input.attr.attr.mode = 0444; attr 171 drivers/thermal/thermal_hwmon.c temp->temp_input.attr.show = temp_input_show; attr 172 drivers/thermal/thermal_hwmon.c sysfs_attr_init(&temp->temp_input.attr.attr); attr 173 drivers/thermal/thermal_hwmon.c result = device_create_file(hwmon->device, &temp->temp_input.attr); attr 181 drivers/thermal/thermal_hwmon.c temp->temp_crit.attr.attr.name = temp->temp_crit.name; attr 182 drivers/thermal/thermal_hwmon.c temp->temp_crit.attr.attr.mode = 0444; attr 183 drivers/thermal/thermal_hwmon.c temp->temp_crit.attr.show = temp_crit_show; attr 184 drivers/thermal/thermal_hwmon.c sysfs_attr_init(&temp->temp_crit.attr.attr); attr 186 drivers/thermal/thermal_hwmon.c &temp->temp_crit.attr); attr 200 drivers/thermal/thermal_hwmon.c device_remove_file(hwmon->device, &temp->temp_input.attr); attr 233 drivers/thermal/thermal_hwmon.c device_remove_file(hwmon->device, &temp->temp_input.attr); attr 235 drivers/thermal/thermal_hwmon.c device_remove_file(hwmon->device, &temp->temp_crit.attr); attr 27 drivers/thermal/thermal_sysfs.c type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 35 drivers/thermal/thermal_sysfs.c temp_show(struct device *dev, struct device_attribute *attr, char *buf) attr 49 drivers/thermal/thermal_sysfs.c mode_show(struct device *dev, struct device_attribute *attr, char *buf) attr 67 drivers/thermal/thermal_sysfs.c mode_store(struct device *dev, struct device_attribute *attr, attr 90 drivers/thermal/thermal_sysfs.c trip_point_type_show(struct device *dev, struct device_attribute *attr, attr 100 drivers/thermal/thermal_sysfs.c if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1) attr 122 drivers/thermal/thermal_sysfs.c trip_point_temp_store(struct device *dev, struct device_attribute *attr, attr 132 drivers/thermal/thermal_sysfs.c if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) attr 148 drivers/thermal/thermal_sysfs.c trip_point_temp_show(struct device *dev, struct device_attribute *attr, attr 158 drivers/thermal/thermal_sysfs.c if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) attr 170 drivers/thermal/thermal_sysfs.c trip_point_hyst_store(struct device *dev, struct device_attribute *attr, attr 180 drivers/thermal/thermal_sysfs.c if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) attr 200 drivers/thermal/thermal_sysfs.c trip_point_hyst_show(struct device *dev, struct device_attribute *attr, attr 210 drivers/thermal/thermal_sysfs.c if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) attr 219 drivers/thermal/thermal_sysfs.c passive_store(struct device *dev, struct device_attribute *attr, attr 253 drivers/thermal/thermal_sysfs.c passive_show(struct device *dev, struct device_attribute *attr, attr 262 drivers/thermal/thermal_sysfs.c policy_store(struct device *dev, struct device_attribute *attr, attr 295 drivers/thermal/thermal_sysfs.c emul_temp_store(struct device *dev, struct device_attribute *attr, attr 409 drivers/thermal/thermal_sysfs.c &dev_attr_type.attr, attr 410 drivers/thermal/thermal_sysfs.c &dev_attr_temp.attr, attr 412 drivers/thermal/thermal_sysfs.c &dev_attr_emul_temp.attr, attr 414 drivers/thermal/thermal_sysfs.c &dev_attr_policy.attr, attr 415 drivers/thermal/thermal_sysfs.c &dev_attr_available_policies.attr, attr 416 drivers/thermal/thermal_sysfs.c &dev_attr_sustainable_power.attr, attr 417 drivers/thermal/thermal_sysfs.c &dev_attr_k_po.attr, attr 418 drivers/thermal/thermal_sysfs.c &dev_attr_k_pu.attr, attr 419 drivers/thermal/thermal_sysfs.c &dev_attr_k_i.attr, attr 420 drivers/thermal/thermal_sysfs.c &dev_attr_k_d.attr, attr 421 drivers/thermal/thermal_sysfs.c &dev_attr_integral_cutoff.attr, attr 422 drivers/thermal/thermal_sysfs.c &dev_attr_slope.attr, attr 423 drivers/thermal/thermal_sysfs.c &dev_attr_offset.attr, attr 433 drivers/thermal/thermal_sysfs.c &dev_attr_mode.attr, attr 438 drivers/thermal/thermal_sysfs.c struct attribute *attr, attr 447 drivers/thermal/thermal_sysfs.c return attr->mode; attr 459 drivers/thermal/thermal_sysfs.c &dev_attr_passive.attr, attr 464 drivers/thermal/thermal_sysfs.c struct attribute *attr, attr 482 drivers/thermal/thermal_sysfs.c return attr->mode; attr 555 drivers/thermal/thermal_sysfs.c sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); attr 556 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].attr.attr.name = attr 558 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; attr 559 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].attr.show = trip_point_type_show; attr 560 drivers/thermal/thermal_sysfs.c attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; attr 566 drivers/thermal/thermal_sysfs.c sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); attr 567 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.name = attr 569 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; attr 570 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; attr 573 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; attr 574 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.store = attr 577 drivers/thermal/thermal_sysfs.c attrs[indx + tz->trips] = &tz->trip_temp_attrs[indx].attr.attr; attr 585 drivers/thermal/thermal_sysfs.c sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr); attr 586 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.name = attr 588 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; attr 589 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; attr 591 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; attr 592 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.store = attr 596 drivers/thermal/thermal_sysfs.c &tz->trip_hyst_attrs[indx].attr.attr; attr 668 drivers/thermal/thermal_sysfs.c cdev_type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 675 drivers/thermal/thermal_sysfs.c static ssize_t max_state_show(struct device *dev, struct device_attribute *attr, attr 688 drivers/thermal/thermal_sysfs.c static ssize_t cur_state_show(struct device *dev, struct device_attribute *attr, attr 702 drivers/thermal/thermal_sysfs.c cur_state_store(struct device *dev, struct device_attribute *attr, attr 731 drivers/thermal/thermal_sysfs.c &dev_attr_cdev_type.attr, attr 732 drivers/thermal/thermal_sysfs.c &dev_attr_max_state.attr, attr 733 drivers/thermal/thermal_sysfs.c &dev_attr_cur_state.attr, attr 788 drivers/thermal/thermal_sysfs.c struct device_attribute *attr, char *buf) attr 802 drivers/thermal/thermal_sysfs.c time_in_state_ms_show(struct device *dev, struct device_attribute *attr, attr 823 drivers/thermal/thermal_sysfs.c reset_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 846 drivers/thermal/thermal_sysfs.c struct device_attribute *attr, char *buf) attr 895 drivers/thermal/thermal_sysfs.c &dev_attr_total_trans.attr, attr 896 drivers/thermal/thermal_sysfs.c &dev_attr_time_in_state_ms.attr, attr 897 drivers/thermal/thermal_sysfs.c &dev_attr_reset.attr, attr 898 drivers/thermal/thermal_sysfs.c &dev_attr_trans_table.attr, attr 967 drivers/thermal/thermal_sysfs.c trip_point_show(struct device *dev, struct device_attribute *attr, char *buf) attr 972 drivers/thermal/thermal_sysfs.c container_of(attr, struct thermal_instance, attr); attr 981 drivers/thermal/thermal_sysfs.c weight_show(struct device *dev, struct device_attribute *attr, char *buf) attr 985 drivers/thermal/thermal_sysfs.c instance = container_of(attr, struct thermal_instance, weight_attr); attr 990 drivers/thermal/thermal_sysfs.c ssize_t weight_store(struct device *dev, struct device_attribute *attr, attr 1000 drivers/thermal/thermal_sysfs.c instance = container_of(attr, struct thermal_instance, weight_attr); attr 123 drivers/thunderbolt/domain.c static ssize_t boot_acl_show(struct device *dev, struct device_attribute *attr, attr 165 drivers/thunderbolt/domain.c static ssize_t boot_acl_store(struct device *dev, struct device_attribute *attr, attr 242 drivers/thunderbolt/domain.c struct device_attribute *attr, attr 255 drivers/thunderbolt/domain.c static ssize_t security_show(struct device *dev, struct device_attribute *attr, attr 269 drivers/thunderbolt/domain.c &dev_attr_boot_acl.attr, attr 270 drivers/thunderbolt/domain.c &dev_attr_iommu_dma_protection.attr, attr 271 drivers/thunderbolt/domain.c &dev_attr_security.attr, attr 276 drivers/thunderbolt/domain.c struct attribute *attr, int n) attr 281 drivers/thunderbolt/domain.c if (attr == &dev_attr_boot_acl.attr) { attr 285 drivers/thunderbolt/domain.c return attr->mode; attr 289 drivers/thunderbolt/domain.c return attr->mode; attr 1045 drivers/thunderbolt/switch.c struct device_attribute *attr, attr 1094 drivers/thunderbolt/switch.c struct device_attribute *attr, attr 1116 drivers/thunderbolt/switch.c static ssize_t boot_show(struct device *dev, struct device_attribute *attr, attr 1125 drivers/thunderbolt/switch.c static ssize_t device_show(struct device *dev, struct device_attribute *attr, attr 1135 drivers/thunderbolt/switch.c device_name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1143 drivers/thunderbolt/switch.c static ssize_t key_show(struct device *dev, struct device_attribute *attr, attr 1161 drivers/thunderbolt/switch.c static ssize_t key_store(struct device *dev, struct device_attribute *attr, attr 1220 drivers/thunderbolt/switch.c struct device_attribute *attr, char *buf) attr 1230 drivers/thunderbolt/switch.c struct device_attribute *attr, const char *buf, size_t count) attr 1293 drivers/thunderbolt/switch.c struct device_attribute *attr, char *buf) attr 1314 drivers/thunderbolt/switch.c static ssize_t vendor_show(struct device *dev, struct device_attribute *attr, attr 1324 drivers/thunderbolt/switch.c vendor_name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1332 drivers/thunderbolt/switch.c static ssize_t unique_id_show(struct device *dev, struct device_attribute *attr, attr 1342 drivers/thunderbolt/switch.c &dev_attr_authorized.attr, attr 1343 drivers/thunderbolt/switch.c &dev_attr_boot.attr, attr 1344 drivers/thunderbolt/switch.c &dev_attr_device.attr, attr 1345 drivers/thunderbolt/switch.c &dev_attr_device_name.attr, attr 1346 drivers/thunderbolt/switch.c &dev_attr_key.attr, attr 1347 drivers/thunderbolt/switch.c &dev_attr_nvm_authenticate.attr, attr 1348 drivers/thunderbolt/switch.c &dev_attr_nvm_version.attr, attr 1349 drivers/thunderbolt/switch.c &dev_attr_vendor.attr, attr 1350 drivers/thunderbolt/switch.c &dev_attr_vendor_name.attr, attr 1351 drivers/thunderbolt/switch.c &dev_attr_unique_id.attr, attr 1356 drivers/thunderbolt/switch.c struct attribute *attr, int n) attr 1361 drivers/thunderbolt/switch.c if (attr == &dev_attr_device.attr) { attr 1364 drivers/thunderbolt/switch.c } else if (attr == &dev_attr_device_name.attr) { attr 1367 drivers/thunderbolt/switch.c } else if (attr == &dev_attr_vendor.attr) { attr 1370 drivers/thunderbolt/switch.c } else if (attr == &dev_attr_vendor_name.attr) { attr 1373 drivers/thunderbolt/switch.c } else if (attr == &dev_attr_key.attr) { attr 1377 drivers/thunderbolt/switch.c return attr->mode; attr 1379 drivers/thunderbolt/switch.c } else if (attr == &dev_attr_nvm_authenticate.attr) { attr 1381 drivers/thunderbolt/switch.c return attr->mode; attr 1383 drivers/thunderbolt/switch.c } else if (attr == &dev_attr_nvm_version.attr) { attr 1385 drivers/thunderbolt/switch.c return attr->mode; attr 1387 drivers/thunderbolt/switch.c } else if (attr == &dev_attr_boot.attr) { attr 1389 drivers/thunderbolt/switch.c return attr->mode; attr 1393 drivers/thunderbolt/switch.c return sw->safe_mode ? 0 : attr->mode; attr 630 drivers/thunderbolt/xdomain.c static ssize_t key_show(struct device *dev, struct device_attribute *attr, attr 649 drivers/thunderbolt/xdomain.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 660 drivers/thunderbolt/xdomain.c static ssize_t prtcid_show(struct device *dev, struct device_attribute *attr, attr 669 drivers/thunderbolt/xdomain.c static ssize_t prtcvers_show(struct device *dev, struct device_attribute *attr, attr 678 drivers/thunderbolt/xdomain.c static ssize_t prtcrevs_show(struct device *dev, struct device_attribute *attr, attr 687 drivers/thunderbolt/xdomain.c static ssize_t prtcstns_show(struct device *dev, struct device_attribute *attr, attr 697 drivers/thunderbolt/xdomain.c &dev_attr_key.attr, attr 698 drivers/thunderbolt/xdomain.c &dev_attr_modalias.attr, attr 699 drivers/thunderbolt/xdomain.c &dev_attr_prtcid.attr, attr 700 drivers/thunderbolt/xdomain.c &dev_attr_prtcvers.attr, attr 701 drivers/thunderbolt/xdomain.c &dev_attr_prtcrevs.attr, attr 702 drivers/thunderbolt/xdomain.c &dev_attr_prtcstns.attr, attr 1056 drivers/thunderbolt/xdomain.c static ssize_t device_show(struct device *dev, struct device_attribute *attr, attr 1066 drivers/thunderbolt/xdomain.c device_name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1080 drivers/thunderbolt/xdomain.c static ssize_t vendor_show(struct device *dev, struct device_attribute *attr, attr 1090 drivers/thunderbolt/xdomain.c vendor_name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1104 drivers/thunderbolt/xdomain.c static ssize_t unique_id_show(struct device *dev, struct device_attribute *attr, attr 1114 drivers/thunderbolt/xdomain.c &dev_attr_device.attr, attr 1115 drivers/thunderbolt/xdomain.c &dev_attr_device_name.attr, attr 1116 drivers/thunderbolt/xdomain.c &dev_attr_unique_id.attr, attr 1117 drivers/thunderbolt/xdomain.c &dev_attr_vendor.attr, attr 1118 drivers/thunderbolt/xdomain.c &dev_attr_vendor_name.attr, attr 1001 drivers/tty/hvc/hvc_iucv.c struct device_attribute *attr, attr 1015 drivers/tty/hvc/hvc_iucv.c struct device_attribute *attr, attr 1023 drivers/tty/hvc/hvc_iucv.c struct device_attribute *attr, attr 1073 drivers/tty/hvc/hvc_iucv.c &dev_attr_termid.attr, attr 1074 drivers/tty/hvc/hvc_iucv.c &dev_attr_state.attr, attr 1075 drivers/tty/hvc/hvc_iucv.c &dev_attr_peer.attr, attr 338 drivers/tty/hvc/hvcs.c static ssize_t hvcs_partner_vtys_show(struct device *dev, struct device_attribute *attr, char *buf) attr 352 drivers/tty/hvc/hvcs.c static ssize_t hvcs_partner_clcs_show(struct device *dev, struct device_attribute *attr, char *buf) attr 366 drivers/tty/hvc/hvcs.c static ssize_t hvcs_current_vty_store(struct device *dev, struct device_attribute *attr, const char * buf, attr 377 drivers/tty/hvc/hvcs.c static ssize_t hvcs_current_vty_show(struct device *dev, struct device_attribute *attr, char *buf) attr 393 drivers/tty/hvc/hvcs.c static ssize_t hvcs_vterm_state_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 431 drivers/tty/hvc/hvcs.c static ssize_t hvcs_vterm_state_show(struct device *dev, struct device_attribute *attr, char *buf) attr 446 drivers/tty/hvc/hvcs.c static ssize_t hvcs_index_show(struct device *dev, struct device_attribute *attr, char *buf) attr 462 drivers/tty/hvc/hvcs.c &dev_attr_partner_vtys.attr, attr 463 drivers/tty/hvc/hvcs.c &dev_attr_partner_clcs.attr, attr 464 drivers/tty/hvc/hvcs.c &dev_attr_current_vty.attr, attr 465 drivers/tty/hvc/hvcs.c &dev_attr_vterm_state.attr, attr 466 drivers/tty/hvc/hvcs.c &dev_attr_index.attr, attr 1282 drivers/tty/nozomi.c static ssize_t card_type_show(struct device *dev, struct device_attribute *attr, attr 1291 drivers/tty/nozomi.c static ssize_t open_ttys_show(struct device *dev, struct device_attribute *attr, attr 26 drivers/tty/serdev/core.c struct device_attribute *attr, char *buf) attr 39 drivers/tty/serdev/core.c &dev_attr_modalias.attr, attr 65 drivers/tty/serial/8250/8250_aspeed_vuart.c struct device_attribute *attr, char *buf) attr 77 drivers/tty/serial/8250/8250_aspeed_vuart.c struct device_attribute *attr, attr 97 drivers/tty/serial/8250/8250_aspeed_vuart.c struct device_attribute *attr, char *buf) attr 109 drivers/tty/serial/8250/8250_aspeed_vuart.c static ssize_t sirq_store(struct device *dev, struct device_attribute *attr, attr 135 drivers/tty/serial/8250/8250_aspeed_vuart.c &dev_attr_sirq.attr, attr 136 drivers/tty/serial/8250/8250_aspeed_vuart.c &dev_attr_lpc_address.attr, attr 2899 drivers/tty/serial/8250/8250_port.c struct device_attribute *attr, char *buf) attr 2945 drivers/tty/serial/8250/8250_port.c struct device_attribute *attr, const char *buf, size_t count) attr 2970 drivers/tty/serial/8250/8250_port.c &dev_attr_rx_trig_bytes.attr, attr 166 drivers/tty/serial/qcom_geni_serial.c struct device_attribute *attr, char *buf) attr 174 drivers/tty/serial/qcom_geni_serial.c struct device_attribute *attr, const char *buf, attr 2608 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2618 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2627 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2637 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2651 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2661 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2671 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2682 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2693 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2703 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2713 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2723 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2733 drivers/tty/serial/serial_core.c struct device_attribute *attr, char *buf) attr 2757 drivers/tty/serial/serial_core.c &dev_attr_type.attr, attr 2758 drivers/tty/serial/serial_core.c &dev_attr_line.attr, attr 2759 drivers/tty/serial/serial_core.c &dev_attr_port.attr, attr 2760 drivers/tty/serial/serial_core.c &dev_attr_irq.attr, attr 2761 drivers/tty/serial/serial_core.c &dev_attr_flags.attr, attr 2762 drivers/tty/serial/serial_core.c &dev_attr_xmit_fifo_size.attr, attr 2763 drivers/tty/serial/serial_core.c &dev_attr_uartclk.attr, attr 2764 drivers/tty/serial/serial_core.c &dev_attr_close_delay.attr, attr 2765 drivers/tty/serial/serial_core.c &dev_attr_closing_wait.attr, attr 2766 drivers/tty/serial/serial_core.c &dev_attr_custom_divisor.attr, attr 2767 drivers/tty/serial/serial_core.c &dev_attr_io_type.attr, attr 2768 drivers/tty/serial/serial_core.c &dev_attr_iomem_base.attr, attr 2769 drivers/tty/serial/serial_core.c &dev_attr_iomem_reg_shift.attr, attr 1103 drivers/tty/serial/sh-sci.c struct device_attribute *attr, char *buf) attr 1112 drivers/tty/serial/sh-sci.c struct device_attribute *attr, attr 1134 drivers/tty/serial/sh-sci.c struct device_attribute *attr, attr 1150 drivers/tty/serial/sh-sci.c struct device_attribute *attr, attr 3427 drivers/tty/tty_io.c struct device_attribute *attr, char *buf) attr 3466 drivers/tty/tty_io.c &dev_attr_active.attr, attr 486 drivers/tty/vcc.c struct device_attribute *attr, attr 518 drivers/tty/vcc.c struct device_attribute *attr, attr 546 drivers/tty/vcc.c &dev_attr_domain.attr, attr 547 drivers/tty/vcc.c &dev_attr_break.attr, attr 250 drivers/tty/vt/vc_screen.c int attr, uni_mode, row, col, maxcol, viewed; attr 267 drivers/tty/vt/vc_screen.c attr = use_attributes(inode); attr 340 drivers/tty/vt/vc_screen.c } else if (!attr) { attr 452 drivers/tty/vt/vc_screen.c long attr, size, written; attr 473 drivers/tty/vt/vc_screen.c attr = use_attributes(inode); attr 538 drivers/tty/vt/vc_screen.c if (!attr) { attr 680 drivers/tty/vt/vc_screen.c bool attr = use_attributes(inode); attr 685 drivers/tty/vt/vc_screen.c if (attr && uni_mode) attr 3449 drivers/tty/vt/vt.c struct device_attribute *attr, char *buf) attr 3456 drivers/tty/vt/vt.c &dev_attr_active.attr, attr 3789 drivers/tty/vt/vt.c static ssize_t store_bind(struct device *dev, struct device_attribute *attr, attr 3807 drivers/tty/vt/vt.c static ssize_t show_bind(struct device *dev, struct device_attribute *attr, attr 3820 drivers/tty/vt/vt.c static ssize_t show_name(struct device *dev, struct device_attribute *attr, attr 3835 drivers/tty/vt/vt.c &dev_attr_bind.attr, attr 3836 drivers/tty/vt/vt.c &dev_attr_name.attr, attr 72 drivers/uio/uio.c struct attribute attr; attr 87 drivers/uio/uio.c &name_attribute.attr, attr 88 drivers/uio/uio.c &addr_attribute.attr, attr 89 drivers/uio/uio.c &size_attribute.attr, attr 90 drivers/uio/uio.c &offset_attribute.attr, attr 100 drivers/uio/uio.c static ssize_t map_type_show(struct kobject *kobj, struct attribute *attr, attr 107 drivers/uio/uio.c entry = container_of(attr, struct map_sysfs_entry, attr); attr 160 drivers/uio/uio.c struct attribute attr; attr 175 drivers/uio/uio.c &portio_name_attribute.attr, attr 176 drivers/uio/uio.c &portio_start_attribute.attr, attr 177 drivers/uio/uio.c &portio_size_attribute.attr, attr 178 drivers/uio/uio.c &portio_porttype_attribute.attr, attr 188 drivers/uio/uio.c static ssize_t portio_type_show(struct kobject *kobj, struct attribute *attr, attr 195 drivers/uio/uio.c entry = container_of(attr, struct portio_sysfs_entry, attr); attr 214 drivers/uio/uio.c struct device_attribute *attr, char *buf) attr 235 drivers/uio/uio.c struct device_attribute *attr, char *buf) attr 256 drivers/uio/uio.c struct device_attribute *attr, char *buf) attr 264 drivers/uio/uio.c &dev_attr_name.attr, attr 265 drivers/uio/uio.c &dev_attr_version.attr, attr 266 drivers/uio/uio.c &dev_attr_event.attr, attr 66 drivers/uio/uio_fsl_elbc_gpcm.c static ssize_t reg_show(struct device *dev, struct device_attribute *attr, attr 68 drivers/uio/uio_fsl_elbc_gpcm.c static ssize_t reg_store(struct device *dev, struct device_attribute *attr, attr 75 drivers/uio/uio_fsl_elbc_gpcm.c &dev_attr_reg_br.attr, attr 76 drivers/uio/uio_fsl_elbc_gpcm.c &dev_attr_reg_or.attr, attr 81 drivers/uio/uio_fsl_elbc_gpcm.c static ssize_t reg_show(struct device *dev, struct device_attribute *attr, attr 88 drivers/uio/uio_fsl_elbc_gpcm.c if (attr == &dev_attr_reg_br) { attr 92 drivers/uio/uio_fsl_elbc_gpcm.c } else if (attr == &dev_attr_reg_or) { attr 100 drivers/uio/uio_fsl_elbc_gpcm.c static ssize_t reg_store(struct device *dev, struct device_attribute *attr, attr 120 drivers/uio/uio_fsl_elbc_gpcm.c if (attr == &dev_attr_reg_br) { attr 134 drivers/uio/uio_fsl_elbc_gpcm.c } else if (attr == &dev_attr_reg_or) { attr 127 drivers/uio/uio_hv_generic.c struct bin_attribute *attr, attr 142 drivers/uio/uio_hv_generic.c .attr = { attr 209 drivers/usb/atm/cxacru.c struct device_attribute *attr, char *buf) \ attr 304 drivers/usb/atm/cxacru.c struct device_attribute *attr, char *buf) attr 317 drivers/usb/atm/cxacru.c struct device_attribute *attr, char *buf) attr 334 drivers/usb/atm/cxacru.c struct device_attribute *attr, const char *buf, size_t count) attr 437 drivers/usb/atm/cxacru.c struct device_attribute *attr, const char *buf, size_t count) attr 543 drivers/usb/atm/cxacru.c &dev_attr_adsl_config.attr, attr 544 drivers/usb/atm/cxacru.c &dev_attr_adsl_state.attr, attr 545 drivers/usb/atm/cxacru.c &dev_attr_adsl_controller_version.attr, attr 546 drivers/usb/atm/cxacru.c &dev_attr_adsl_headend_environment.attr, attr 547 drivers/usb/atm/cxacru.c &dev_attr_adsl_headend.attr, attr 548 drivers/usb/atm/cxacru.c &dev_attr_modulation.attr, attr 549 drivers/usb/atm/cxacru.c &dev_attr_line_startable.attr, attr 550 drivers/usb/atm/cxacru.c &dev_attr_downstream_hec_errors.attr, attr 551 drivers/usb/atm/cxacru.c &dev_attr_upstream_hec_errors.attr, attr 552 drivers/usb/atm/cxacru.c &dev_attr_downstream_fec_errors.attr, attr 553 drivers/usb/atm/cxacru.c &dev_attr_upstream_fec_errors.attr, attr 554 drivers/usb/atm/cxacru.c &dev_attr_downstream_crc_errors.attr, attr 555 drivers/usb/atm/cxacru.c &dev_attr_upstream_crc_errors.attr, attr 556 drivers/usb/atm/cxacru.c &dev_attr_startup_attempts.attr, attr 557 drivers/usb/atm/cxacru.c &dev_attr_downstream_bits_per_frame.attr, attr 558 drivers/usb/atm/cxacru.c &dev_attr_upstream_bits_per_frame.attr, attr 559 drivers/usb/atm/cxacru.c &dev_attr_transmitter_power.attr, attr 560 drivers/usb/atm/cxacru.c &dev_attr_downstream_attenuation.attr, attr 561 drivers/usb/atm/cxacru.c &dev_attr_upstream_attenuation.attr, attr 562 drivers/usb/atm/cxacru.c &dev_attr_downstream_snr_margin.attr, attr 563 drivers/usb/atm/cxacru.c &dev_attr_upstream_snr_margin.attr, attr 564 drivers/usb/atm/cxacru.c &dev_attr_mac_address.attr, attr 565 drivers/usb/atm/cxacru.c &dev_attr_line_status.attr, attr 566 drivers/usb/atm/cxacru.c &dev_attr_link_status.attr, attr 567 drivers/usb/atm/cxacru.c &dev_attr_upstream_rate.attr, attr 568 drivers/usb/atm/cxacru.c &dev_attr_downstream_rate.attr, attr 2245 drivers/usb/atm/ueagle-atm.c static ssize_t stat_status_show(struct device *dev, struct device_attribute *attr, attr 2261 drivers/usb/atm/ueagle-atm.c static ssize_t stat_status_store(struct device *dev, struct device_attribute *attr, attr 2281 drivers/usb/atm/ueagle-atm.c struct device_attribute *attr, char *buf) attr 2343 drivers/usb/atm/ueagle-atm.c static ssize_t stat_delin_show(struct device *dev, struct device_attribute *attr, attr 2378 drivers/usb/atm/ueagle-atm.c struct device_attribute *attr, char *buf) \ attr 2468 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_status.attr, attr 2469 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_mflags.attr, attr 2470 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_human_status.attr, attr 2471 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_delin.attr, attr 2472 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_vidcpe.attr, attr 2473 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_usrate.attr, attr 2474 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_dsrate.attr, attr 2475 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_usattenuation.attr, attr 2476 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_dsattenuation.attr, attr 2477 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_usmargin.attr, attr 2478 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_dsmargin.attr, attr 2479 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_txflow.attr, attr 2480 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_rxflow.attr, attr 2481 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_uscorr.attr, attr 2482 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_dscorr.attr, attr 2483 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_usunc.attr, attr 2484 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_dsunc.attr, attr 2485 drivers/usb/atm/ueagle-atm.c &dev_attr_stat_firmid.attr, attr 926 drivers/usb/chipidea/core.c static ssize_t role_show(struct device *dev, struct device_attribute *attr, attr 938 drivers/usb/chipidea/core.c struct device_attribute *attr, const char *buf, size_t n) attr 971 drivers/usb/chipidea/core.c &dev_attr_role.attr, attr 32 drivers/usb/chipidea/otg_fsm.c a_bus_req_show(struct device *dev, struct device_attribute *attr, char *buf) attr 48 drivers/usb/chipidea/otg_fsm.c a_bus_req_store(struct device *dev, struct device_attribute *attr, attr 81 drivers/usb/chipidea/otg_fsm.c a_bus_drop_show(struct device *dev, struct device_attribute *attr, char *buf) attr 97 drivers/usb/chipidea/otg_fsm.c a_bus_drop_store(struct device *dev, struct device_attribute *attr, attr 121 drivers/usb/chipidea/otg_fsm.c b_bus_req_show(struct device *dev, struct device_attribute *attr, char *buf) attr 137 drivers/usb/chipidea/otg_fsm.c b_bus_req_store(struct device *dev, struct device_attribute *attr, attr 165 drivers/usb/chipidea/otg_fsm.c a_clr_err_store(struct device *dev, struct device_attribute *attr, attr 185 drivers/usb/chipidea/otg_fsm.c &dev_attr_a_bus_req.attr, attr 186 drivers/usb/chipidea/otg_fsm.c &dev_attr_a_bus_drop.attr, attr 187 drivers/usb/chipidea/otg_fsm.c &dev_attr_b_bus_req.attr, attr 188 drivers/usb/chipidea/otg_fsm.c &dev_attr_a_clr_err.attr, attr 240 drivers/usb/class/cdc-acm.c (struct device *dev, struct device_attribute *attr, char *buf) attr 250 drivers/usb/class/cdc-acm.c (struct device *dev, struct device_attribute *attr, char *buf) attr 262 drivers/usb/class/cdc-acm.c (struct device *dev, struct device_attribute *attr, char *buf) attr 1074 drivers/usb/class/usblp.c static ssize_t ieee1284_id_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1089 drivers/usb/class/usblp.c &dev_attr_ieee1284_id.attr, attr 1825 drivers/usb/class/usbtmc.c struct device_attribute *attr, char *buf) \ attr 1840 drivers/usb/class/usbtmc.c &dev_attr_interface_capabilities.attr, attr 1841 drivers/usb/class/usbtmc.c &dev_attr_device_capabilities.attr, attr 1842 drivers/usb/class/usbtmc.c &dev_attr_usb488_interface_capabilities.attr, attr 1843 drivers/usb/class/usbtmc.c &dev_attr_usb488_device_capabilities.attr, attr 101 drivers/usb/common/ulpi.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 117 drivers/usb/common/ulpi.c &dev_attr_modalias.attr, attr 29 drivers/usb/core/endpoint.c struct attribute attr; attr 34 drivers/usb/core/endpoint.c container_of(_attr, struct ep_attribute, attr) attr 38 drivers/usb/core/endpoint.c struct device_attribute *attr, \ attr 52 drivers/usb/core/endpoint.c struct device_attribute *attr, char *buf) attr 59 drivers/usb/core/endpoint.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 83 drivers/usb/core/endpoint.c static ssize_t interval_show(struct device *dev, struct device_attribute *attr, attr 129 drivers/usb/core/endpoint.c static ssize_t direction_show(struct device *dev, struct device_attribute *attr, attr 146 drivers/usb/core/endpoint.c &dev_attr_bLength.attr, attr 147 drivers/usb/core/endpoint.c &dev_attr_bEndpointAddress.attr, attr 148 drivers/usb/core/endpoint.c &dev_attr_bmAttributes.attr, attr 149 drivers/usb/core/endpoint.c &dev_attr_bInterval.attr, attr 150 drivers/usb/core/endpoint.c &dev_attr_wMaxPacketSize.attr, attr 151 drivers/usb/core/endpoint.c &dev_attr_interval.attr, attr 152 drivers/usb/core/endpoint.c &dev_attr_type.attr, attr 153 drivers/usb/core/endpoint.c &dev_attr_direction.attr, attr 29 drivers/usb/core/ledtrig-usbport.c struct device_attribute attr; attr 84 drivers/usb/core/ledtrig-usbport.c struct device_attribute *attr, char *buf) attr 86 drivers/usb/core/ledtrig-usbport.c struct usbport_trig_port *port = container_of(attr, attr 88 drivers/usb/core/ledtrig-usbport.c attr); attr 94 drivers/usb/core/ledtrig-usbport.c struct device_attribute *attr, attr 97 drivers/usb/core/ledtrig-usbport.c struct usbport_trig_port *port = container_of(attr, attr 99 drivers/usb/core/ledtrig-usbport.c attr); attr 212 drivers/usb/core/ledtrig-usbport.c sysfs_attr_init(&port->attr.attr); attr 213 drivers/usb/core/ledtrig-usbport.c port->attr.attr.name = port->port_name; attr 214 drivers/usb/core/ledtrig-usbport.c port->attr.attr.mode = S_IRUSR | S_IWUSR; attr 215 drivers/usb/core/ledtrig-usbport.c port->attr.show = usbport_trig_port_show; attr 216 drivers/usb/core/ledtrig-usbport.c port->attr.store = usbport_trig_port_store; attr 218 drivers/usb/core/ledtrig-usbport.c err = sysfs_add_file_to_group(&led_cdev->dev->kobj, &port->attr.attr, attr 254 drivers/usb/core/ledtrig-usbport.c sysfs_remove_file_from_group(&led_cdev->dev->kobj, &port->attr.attr, attr 20 drivers/usb/core/port.c struct device_attribute *attr, char *buf) attr 29 drivers/usb/core/port.c struct device_attribute *attr, char *buf) attr 54 drivers/usb/core/port.c struct device_attribute *attr, char *buf) attr 63 drivers/usb/core/port.c struct device_attribute *attr, char *buf) attr 70 drivers/usb/core/port.c static ssize_t quirks_store(struct device *dev, struct device_attribute *attr, attr 85 drivers/usb/core/port.c struct device_attribute *attr, char *buf) attr 106 drivers/usb/core/port.c struct device_attribute *attr, attr 151 drivers/usb/core/port.c &dev_attr_connect_type.attr, attr 152 drivers/usb/core/port.c &dev_attr_location.attr, attr 153 drivers/usb/core/port.c &dev_attr_quirks.attr, attr 154 drivers/usb/core/port.c &dev_attr_over_current_count.attr, attr 168 drivers/usb/core/port.c &dev_attr_usb3_lpm_permit.attr, attr 26 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) \ attr 52 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 71 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 93 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 112 drivers/usb/core/sysfs.c static ssize_t devspec_show(struct device *dev, struct device_attribute *attr, attr 125 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) \ attr 144 drivers/usb/core/sysfs.c static ssize_t speed_show(struct device *dev, struct device_attribute *attr, attr 179 drivers/usb/core/sysfs.c static ssize_t rx_lanes_show(struct device *dev, struct device_attribute *attr, attr 189 drivers/usb/core/sysfs.c static ssize_t tx_lanes_show(struct device *dev, struct device_attribute *attr, attr 199 drivers/usb/core/sysfs.c static ssize_t busnum_show(struct device *dev, struct device_attribute *attr, attr 209 drivers/usb/core/sysfs.c static ssize_t devnum_show(struct device *dev, struct device_attribute *attr, attr 219 drivers/usb/core/sysfs.c static ssize_t devpath_show(struct device *dev, struct device_attribute *attr, attr 229 drivers/usb/core/sysfs.c static ssize_t version_show(struct device *dev, struct device_attribute *attr, attr 241 drivers/usb/core/sysfs.c static ssize_t maxchild_show(struct device *dev, struct device_attribute *attr, attr 251 drivers/usb/core/sysfs.c static ssize_t quirks_show(struct device *dev, struct device_attribute *attr, attr 262 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 271 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 291 drivers/usb/core/sysfs.c static ssize_t urbnum_show(struct device *dev, struct device_attribute *attr, attr 301 drivers/usb/core/sysfs.c static ssize_t removable_show(struct device *dev, struct device_attribute *attr, attr 325 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 335 drivers/usb/core/sysfs.c static ssize_t persist_show(struct device *dev, struct device_attribute *attr, attr 343 drivers/usb/core/sysfs.c static ssize_t persist_store(struct device *dev, struct device_attribute *attr, attr 377 drivers/usb/core/sysfs.c &dev_attr_persist.attr, attr 386 drivers/usb/core/sysfs.c &dev_attr_persist.attr, attr 391 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 408 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 422 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 428 drivers/usb/core/sysfs.c struct device_attribute *attr, const char *buf, attr 456 drivers/usb/core/sysfs.c static ssize_t level_show(struct device *dev, struct device_attribute *attr, attr 468 drivers/usb/core/sysfs.c static ssize_t level_store(struct device *dev, struct device_attribute *attr, attr 503 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 517 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 548 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 556 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 572 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 579 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 595 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 617 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 639 drivers/usb/core/sysfs.c &dev_attr_usb2_hardware_lpm.attr, attr 640 drivers/usb/core/sysfs.c &dev_attr_usb2_lpm_l1_timeout.attr, attr 641 drivers/usb/core/sysfs.c &dev_attr_usb2_lpm_besl.attr, attr 650 drivers/usb/core/sysfs.c &dev_attr_usb3_hardware_lpm_u1.attr, attr 651 drivers/usb/core/sysfs.c &dev_attr_usb3_hardware_lpm_u2.attr, attr 660 drivers/usb/core/sysfs.c &dev_attr_autosuspend.attr, attr 661 drivers/usb/core/sysfs.c &dev_attr_level.attr, attr 662 drivers/usb/core/sysfs.c &dev_attr_connected_duration.attr, attr 663 drivers/usb/core/sysfs.c &dev_attr_active_duration.attr, attr 711 drivers/usb/core/sysfs.c field##_show(struct device *dev, struct device_attribute *attr, \ attr 728 drivers/usb/core/sysfs.c field##_show(struct device *dev, struct device_attribute *attr, \ attr 747 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 759 drivers/usb/core/sysfs.c struct device_attribute *attr, const char *buf, attr 778 drivers/usb/core/sysfs.c static ssize_t remove_store(struct device *dev, struct device_attribute *attr, attr 801 drivers/usb/core/sysfs.c &dev_attr_configuration.attr, attr 802 drivers/usb/core/sysfs.c &dev_attr_bNumInterfaces.attr, attr 803 drivers/usb/core/sysfs.c &dev_attr_bConfigurationValue.attr, attr 804 drivers/usb/core/sysfs.c &dev_attr_bmAttributes.attr, attr 805 drivers/usb/core/sysfs.c &dev_attr_bMaxPower.attr, attr 807 drivers/usb/core/sysfs.c &dev_attr_urbnum.attr, attr 808 drivers/usb/core/sysfs.c &dev_attr_idVendor.attr, attr 809 drivers/usb/core/sysfs.c &dev_attr_idProduct.attr, attr 810 drivers/usb/core/sysfs.c &dev_attr_bcdDevice.attr, attr 811 drivers/usb/core/sysfs.c &dev_attr_bDeviceClass.attr, attr 812 drivers/usb/core/sysfs.c &dev_attr_bDeviceSubClass.attr, attr 813 drivers/usb/core/sysfs.c &dev_attr_bDeviceProtocol.attr, attr 814 drivers/usb/core/sysfs.c &dev_attr_bNumConfigurations.attr, attr 815 drivers/usb/core/sysfs.c &dev_attr_bMaxPacketSize0.attr, attr 816 drivers/usb/core/sysfs.c &dev_attr_speed.attr, attr 817 drivers/usb/core/sysfs.c &dev_attr_rx_lanes.attr, attr 818 drivers/usb/core/sysfs.c &dev_attr_tx_lanes.attr, attr 819 drivers/usb/core/sysfs.c &dev_attr_busnum.attr, attr 820 drivers/usb/core/sysfs.c &dev_attr_devnum.attr, attr 821 drivers/usb/core/sysfs.c &dev_attr_devpath.attr, attr 822 drivers/usb/core/sysfs.c &dev_attr_version.attr, attr 823 drivers/usb/core/sysfs.c &dev_attr_maxchild.attr, attr 824 drivers/usb/core/sysfs.c &dev_attr_quirks.attr, attr 825 drivers/usb/core/sysfs.c &dev_attr_avoid_reset_quirk.attr, attr 826 drivers/usb/core/sysfs.c &dev_attr_authorized.attr, attr 827 drivers/usb/core/sysfs.c &dev_attr_remove.attr, attr 828 drivers/usb/core/sysfs.c &dev_attr_removable.attr, attr 829 drivers/usb/core/sysfs.c &dev_attr_ltm_capable.attr, attr 831 drivers/usb/core/sysfs.c &dev_attr_devspec.attr, attr 843 drivers/usb/core/sysfs.c &dev_attr_manufacturer.attr, attr 844 drivers/usb/core/sysfs.c &dev_attr_product.attr, attr 845 drivers/usb/core/sysfs.c &dev_attr_serial.attr, attr 855 drivers/usb/core/sysfs.c if (a == &dev_attr_manufacturer.attr) { attr 858 drivers/usb/core/sysfs.c } else if (a == &dev_attr_product.attr) { attr 861 drivers/usb/core/sysfs.c } else if (a == &dev_attr_serial.attr) { attr 883 drivers/usb/core/sysfs.c struct bin_attribute *attr, attr 921 drivers/usb/core/sysfs.c .attr = {.name = "descriptors", .mode = 0444}, attr 930 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 941 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 971 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 987 drivers/usb/core/sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 1008 drivers/usb/core/sysfs.c &dev_attr_authorized_default.attr, attr 1009 drivers/usb/core/sysfs.c &dev_attr_interface_authorized_default.attr, attr 1080 drivers/usb/core/sysfs.c iad_##field##_show(struct device *dev, struct device_attribute *attr, \ attr 1099 drivers/usb/core/sysfs.c field##_show(struct device *dev, struct device_attribute *attr, \ attr 1116 drivers/usb/core/sysfs.c static ssize_t interface_show(struct device *dev, struct device_attribute *attr, attr 1130 drivers/usb/core/sysfs.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 1157 drivers/usb/core/sysfs.c struct device_attribute *attr, attr 1178 drivers/usb/core/sysfs.c struct device_attribute *attr, char *buf) attr 1189 drivers/usb/core/sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 1209 drivers/usb/core/sysfs.c &dev_attr_bInterfaceNumber.attr, attr 1210 drivers/usb/core/sysfs.c &dev_attr_bAlternateSetting.attr, attr 1211 drivers/usb/core/sysfs.c &dev_attr_bNumEndpoints.attr, attr 1212 drivers/usb/core/sysfs.c &dev_attr_bInterfaceClass.attr, attr 1213 drivers/usb/core/sysfs.c &dev_attr_bInterfaceSubClass.attr, attr 1214 drivers/usb/core/sysfs.c &dev_attr_bInterfaceProtocol.attr, attr 1215 drivers/usb/core/sysfs.c &dev_attr_modalias.attr, attr 1216 drivers/usb/core/sysfs.c &dev_attr_supports_autosuspend.attr, attr 1217 drivers/usb/core/sysfs.c &dev_attr_interface_authorized.attr, attr 1225 drivers/usb/core/sysfs.c &dev_attr_iad_bFirstInterface.attr, attr 1226 drivers/usb/core/sysfs.c &dev_attr_iad_bInterfaceCount.attr, attr 1227 drivers/usb/core/sysfs.c &dev_attr_iad_bFunctionClass.attr, attr 1228 drivers/usb/core/sysfs.c &dev_attr_iad_bFunctionSubClass.attr, attr 1229 drivers/usb/core/sysfs.c &dev_attr_iad_bFunctionProtocol.attr, attr 2014 drivers/usb/gadget/composite.c static ssize_t suspended_show(struct device *dev, struct device_attribute *attr, attr 2505 drivers/usb/gadget/function/f_mass_storage.c static ssize_t ro_show(struct device *dev, struct device_attribute *attr, char *buf) attr 2512 drivers/usb/gadget/function/f_mass_storage.c static ssize_t nofua_show(struct device *dev, struct device_attribute *attr, attr 2520 drivers/usb/gadget/function/f_mass_storage.c static ssize_t file_show(struct device *dev, struct device_attribute *attr, attr 2529 drivers/usb/gadget/function/f_mass_storage.c static ssize_t ro_store(struct device *dev, struct device_attribute *attr, attr 2538 drivers/usb/gadget/function/f_mass_storage.c static ssize_t nofua_store(struct device *dev, struct device_attribute *attr, attr 2546 drivers/usb/gadget/function/f_mass_storage.c static ssize_t file_store(struct device *dev, struct device_attribute *attr, attr 2709 drivers/usb/gadget/function/f_mass_storage.c &dev_attr_ro.attr, attr 2710 drivers/usb/gadget/function/f_mass_storage.c &dev_attr_file.attr, attr 2711 drivers/usb/gadget/function/f_mass_storage.c &dev_attr_nofua.attr, attr 2716 drivers/usb/gadget/function/f_mass_storage.c struct attribute *attr, int idx) attr 2721 drivers/usb/gadget/function/f_mass_storage.c if (attr == &dev_attr_ro.attr) attr 2723 drivers/usb/gadget/function/f_mass_storage.c if (attr == &dev_attr_file.attr) attr 2725 drivers/usb/gadget/function/f_mass_storage.c return attr->mode; attr 404 drivers/usb/gadget/function/f_uvc.c struct device_attribute *attr, char *buf) attr 1463 drivers/usb/gadget/udc/core.c struct device_attribute *attr, const char *buf, size_t n) attr 1475 drivers/usb/gadget/udc/core.c struct device_attribute *attr, const char *buf, size_t n) attr 1499 drivers/usb/gadget/udc/core.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 1509 drivers/usb/gadget/udc/core.c static ssize_t function_show(struct device *dev, struct device_attribute *attr, attr 1523 drivers/usb/gadget/udc/core.c struct device_attribute *attr, char *buf) \ attr 1536 drivers/usb/gadget/udc/core.c struct device_attribute *attr, char *buf) \ attr 1553 drivers/usb/gadget/udc/core.c &dev_attr_srp.attr, attr 1554 drivers/usb/gadget/udc/core.c &dev_attr_soft_connect.attr, attr 1555 drivers/usb/gadget/udc/core.c &dev_attr_state.attr, attr 1556 drivers/usb/gadget/udc/core.c &dev_attr_function.attr, attr 1557 drivers/usb/gadget/udc/core.c &dev_attr_current_speed.attr, attr 1558 drivers/usb/gadget/udc/core.c &dev_attr_maximum_speed.attr, attr 1560 drivers/usb/gadget/udc/core.c &dev_attr_is_otg.attr, attr 1561 drivers/usb/gadget/udc/core.c &dev_attr_is_a_peripheral.attr, attr 1562 drivers/usb/gadget/udc/core.c &dev_attr_b_hnp_enable.attr, attr 1563 drivers/usb/gadget/udc/core.c &dev_attr_a_hnp_support.attr, attr 1564 drivers/usb/gadget/udc/core.c &dev_attr_a_alt_hnp_support.attr, attr 1565 drivers/usb/gadget/udc/core.c &dev_attr_is_selfpowered.attr, attr 936 drivers/usb/gadget/udc/dummy_hcd.c static ssize_t function_show(struct device *dev, struct device_attribute *attr, attr 2407 drivers/usb/gadget/udc/dummy_hcd.c static ssize_t urbs_show(struct device *dev, struct device_attribute *attr, attr 1166 drivers/usb/gadget/udc/net2272.c registers_show(struct device *_dev, struct device_attribute *attr, char *buf) attr 1642 drivers/usb/gadget/udc/net2280.c static ssize_t function_show(struct device *_dev, struct device_attribute *attr, attr 1655 drivers/usb/gadget/udc/net2280.c struct device_attribute *attr, char *buf) attr 1805 drivers/usb/gadget/udc/net2280.c static ssize_t queues_show(struct device *_dev, struct device_attribute *attr, attr 2443 drivers/usb/gadget/udc/renesas_usb3.c static ssize_t role_store(struct device *dev, struct device_attribute *attr, attr 2470 drivers/usb/gadget/udc/renesas_usb3.c static ssize_t role_show(struct device *dev, struct device_attribute *attr, attr 2739 drivers/usb/gadget/udc/renesas_usb3.c const struct soc_device_attribute *attr; attr 2741 drivers/usb/gadget/udc/renesas_usb3.c attr = soc_device_match(renesas_usb3_quirks_match); attr 2742 drivers/usb/gadget/udc/renesas_usb3.c if (attr) attr 2743 drivers/usb/gadget/udc/renesas_usb3.c priv = attr->data; attr 11 drivers/usb/host/ehci-sysfs.c struct device_attribute *attr, attr 38 drivers/usb/host/ehci-sysfs.c struct device_attribute *attr, attr 69 drivers/usb/host/ehci-sysfs.c struct device_attribute *attr, attr 82 drivers/usb/host/ehci-sysfs.c struct device_attribute *attr, attr 4691 drivers/usb/host/fotg210-hcd.c struct device_attribute *attr, char *buf) attr 4703 drivers/usb/host/fotg210-hcd.c struct device_attribute *attr, const char *buf, size_t count) attr 874 drivers/usb/host/xhci-dbgcap.c struct device_attribute *attr, attr 911 drivers/usb/host/xhci-dbgcap.c struct device_attribute *attr, attr 134 drivers/usb/host/xhci-rcar.c const struct soc_device_attribute *attr; attr 137 drivers/usb/host/xhci-rcar.c attr = soc_device_match(rcar_quirks_match); attr 138 drivers/usb/host/xhci-rcar.c if (attr) attr 139 drivers/usb/host/xhci-rcar.c quirks = (uintptr_t)attr->data; attr 116 drivers/usb/misc/cypress_cy7c63.c static ssize_t write_port(struct device *dev, struct device_attribute *attr, attr 148 drivers/usb/misc/cypress_cy7c63.c struct device_attribute *attr, attr 151 drivers/usb/misc/cypress_cy7c63.c return write_port(dev, attr, buf, count, 0, CYPRESS_WRITE_PORT_ID0); attr 156 drivers/usb/misc/cypress_cy7c63.c struct device_attribute *attr, attr 159 drivers/usb/misc/cypress_cy7c63.c return write_port(dev, attr, buf, count, 1, CYPRESS_WRITE_PORT_ID1); attr 163 drivers/usb/misc/cypress_cy7c63.c static ssize_t read_port(struct device *dev, struct device_attribute *attr, attr 182 drivers/usb/misc/cypress_cy7c63.c struct device_attribute *attr, char *buf) attr 184 drivers/usb/misc/cypress_cy7c63.c return read_port(dev, attr, buf, 0, CYPRESS_READ_PORT_ID0); attr 190 drivers/usb/misc/cypress_cy7c63.c struct device_attribute *attr, char *buf) attr 192 drivers/usb/misc/cypress_cy7c63.c return read_port(dev, attr, buf, 1, CYPRESS_READ_PORT_ID1); attr 197 drivers/usb/misc/cypress_cy7c63.c &dev_attr_port0.attr, attr 198 drivers/usb/misc/cypress_cy7c63.c &dev_attr_port1.attr, attr 67 drivers/usb/misc/cytherm.c static ssize_t brightness_show(struct device *dev, struct device_attribute *attr, char *buf) attr 75 drivers/usb/misc/cytherm.c static ssize_t brightness_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 116 drivers/usb/misc/cytherm.c static ssize_t temp_show(struct device *dev, struct device_attribute *attr, char *buf) attr 153 drivers/usb/misc/cytherm.c static ssize_t button_show(struct device *dev, struct device_attribute *attr, char *buf) attr 183 drivers/usb/misc/cytherm.c static ssize_t port0_show(struct device *dev, struct device_attribute *attr, char *buf) attr 207 drivers/usb/misc/cytherm.c static ssize_t port0_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 238 drivers/usb/misc/cytherm.c static ssize_t port1_show(struct device *dev, struct device_attribute *attr, char *buf) attr 262 drivers/usb/misc/cytherm.c static ssize_t port1_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 294 drivers/usb/misc/cytherm.c &dev_attr_brightness.attr, attr 295 drivers/usb/misc/cytherm.c &dev_attr_temp.attr, attr 296 drivers/usb/misc/cytherm.c &dev_attr_button.attr, attr 297 drivers/usb/misc/cytherm.c &dev_attr_port0.attr, attr 298 drivers/usb/misc/cytherm.c &dev_attr_port1.attr, attr 102 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 131 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 160 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 179 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 198 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 227 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 256 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 294 drivers/usb/misc/lvstest.c struct device_attribute *attr, const char *buf, size_t count) attr 314 drivers/usb/misc/lvstest.c &dev_attr_get_dev_desc.attr, attr 315 drivers/usb/misc/lvstest.c &dev_attr_u1_timeout.attr, attr 316 drivers/usb/misc/lvstest.c &dev_attr_u2_timeout.attr, attr 317 drivers/usb/misc/lvstest.c &dev_attr_hot_reset.attr, attr 318 drivers/usb/misc/lvstest.c &dev_attr_warm_reset.attr, attr 319 drivers/usb/misc/lvstest.c &dev_attr_u3_entry.attr, attr 320 drivers/usb/misc/lvstest.c &dev_attr_u3_exit.attr, attr 321 drivers/usb/misc/lvstest.c &dev_attr_enable_compliance.attr, attr 308 drivers/usb/misc/sisusbvga/sisusb_con.c u8 attr = color; attr 311 drivers/usb/misc/sisusbvga/sisusb_con.c attr = (attr & 0xf0) | c->vc_ulcolor; attr 313 drivers/usb/misc/sisusbvga/sisusb_con.c attr = (attr & 0xf0) | c->vc_halfcolor; attr 316 drivers/usb/misc/sisusbvga/sisusb_con.c attr = ((attr) & 0x88) | attr 317 drivers/usb/misc/sisusbvga/sisusb_con.c ((((attr) >> 4) | attr 318 drivers/usb/misc/sisusbvga/sisusb_con.c ((attr) << 4)) & 0x77); attr 321 drivers/usb/misc/sisusbvga/sisusb_con.c attr ^= 0x80; attr 324 drivers/usb/misc/sisusbvga/sisusb_con.c attr ^= 0x08; attr 326 drivers/usb/misc/sisusbvga/sisusb_con.c return attr; attr 33 drivers/usb/misc/trancevibrator.c static ssize_t speed_show(struct device *dev, struct device_attribute *attr, attr 42 drivers/usb/misc/trancevibrator.c static ssize_t speed_store(struct device *dev, struct device_attribute *attr, attr 77 drivers/usb/misc/trancevibrator.c &dev_attr_speed.attr, attr 169 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, char *buf) \ attr 178 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, const char *buf, size_t count) \ attr 191 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, char *buf) attr 200 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, const char *buf, size_t count) attr 222 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, char *buf) attr 244 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, const char *buf, size_t count) attr 271 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, char *buf) attr 297 drivers/usb/misc/usbsevseg.c struct device_attribute *attr, const char *buf, size_t count) attr 320 drivers/usb/misc/usbsevseg.c &dev_attr_powered.attr, attr 321 drivers/usb/misc/usbsevseg.c &dev_attr_text.attr, attr 322 drivers/usb/misc/usbsevseg.c &dev_attr_textmode.attr, attr 323 drivers/usb/misc/usbsevseg.c &dev_attr_decimals.attr, attr 324 drivers/usb/misc/usbsevseg.c &dev_attr_mode_msb.attr, attr 325 drivers/usb/misc/usbsevseg.c &dev_attr_mode_lsb.attr, attr 744 drivers/usb/misc/usbtest.c u32 attr; attr 753 drivers/usb/misc/usbtest.c attr = le32_to_cpu(ext->bmAttributes); attr 755 drivers/usb/misc/usbtest.c if (attr & ~0xfffe) { /* reserved == 0 */ attr 1720 drivers/usb/musb/musb_core.c mode_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1734 drivers/usb/musb/musb_core.c mode_store(struct device *dev, struct device_attribute *attr, attr 1757 drivers/usb/musb/musb_core.c vbus_store(struct device *dev, struct device_attribute *attr, attr 1781 drivers/usb/musb/musb_core.c vbus_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1813 drivers/usb/musb/musb_core.c static ssize_t srp_store(struct device *dev, struct device_attribute *attr, attr 1833 drivers/usb/musb/musb_core.c &dev_attr_mode.attr, attr 1834 drivers/usb/musb/musb_core.c &dev_attr_vbus.attr, attr 1835 drivers/usb/musb/musb_core.c &dev_attr_srp.attr, attr 964 drivers/usb/phy/phy-fsl-usb.c struct device_attribute *attr, char *buf) attr 1047 drivers/usb/phy/phy-fsl-usb.c &dev_attr_fsl_usb2_otg_state.attr, attr 520 drivers/usb/phy/phy-mv-usb.c a_bus_req_show(struct device *dev, struct device_attribute *attr, char *buf) attr 528 drivers/usb/phy/phy-mv-usb.c a_bus_req_store(struct device *dev, struct device_attribute *attr, attr 563 drivers/usb/phy/phy-mv-usb.c a_clr_err_store(struct device *dev, struct device_attribute *attr, attr 590 drivers/usb/phy/phy-mv-usb.c a_bus_drop_show(struct device *dev, struct device_attribute *attr, attr 599 drivers/usb/phy/phy-mv-usb.c a_bus_drop_store(struct device *dev, struct device_attribute *attr, attr 633 drivers/usb/phy/phy-mv-usb.c &dev_attr_a_bus_req.attr, attr 634 drivers/usb/phy/phy-mv-usb.c &dev_attr_a_clr_err.attr, attr 635 drivers/usb/phy/phy-mv-usb.c &dev_attr_a_bus_drop.attr, attr 63 drivers/usb/phy/phy-tahvo.c struct device_attribute *attr, char *buf) attr 260 drivers/usb/phy/phy-tahvo.c struct device_attribute *attr, char *buf) attr 275 drivers/usb/phy/phy-tahvo.c struct device_attribute *attr, attr 316 drivers/usb/phy/phy-tahvo.c &dev_attr_vbus.attr, attr 317 drivers/usb/phy/phy-tahvo.c &dev_attr_otg_mode.attr, attr 172 drivers/usb/phy/phy-twl6030-usb.c struct device_attribute *attr, char *buf) attr 200 drivers/usb/phy/phy-twl6030-usb.c &dev_attr_vbus.attr, attr 179 drivers/usb/roles/class.c usb_role_switch_is_visible(struct kobject *kobj, struct attribute *attr, int n) attr 185 drivers/usb/roles/class.c return attr->mode; attr 197 drivers/usb/roles/class.c role_show(struct device *dev, struct device_attribute *attr, char *buf) attr 205 drivers/usb/roles/class.c static ssize_t role_store(struct device *dev, struct device_attribute *attr, attr 230 drivers/usb/roles/class.c &dev_attr_role.attr, attr 147 drivers/usb/serial/bus.c &driver_attr_new_id.attr, attr 1681 drivers/usb/serial/ftdi_sio.c struct device_attribute *attr, char *buf) attr 1693 drivers/usb/serial/ftdi_sio.c struct device_attribute *attr, attr 1715 drivers/usb/serial/ftdi_sio.c struct device_attribute *attr, const char *valbuf, size_t count) attr 2646 drivers/usb/serial/io_ti.c struct device_attribute *attr, char *buf) attr 2655 drivers/usb/serial/io_ti.c struct device_attribute *attr, const char *valbuf, size_t count) attr 1104 drivers/usb/serial/iuu_phoenix.c struct device_attribute *attr, char *buf) attr 1113 drivers/usb/serial/iuu_phoenix.c struct device_attribute *attr, const char *buf, size_t count) attr 693 drivers/usb/serial/usb-serial.c struct device_attribute *attr, char *buf) attr 702 drivers/usb/serial/usb-serial.c &dev_attr_port_number.attr, attr 569 drivers/usb/storage/scsiglue.c static ssize_t max_sectors_show(struct device *dev, struct device_attribute *attr, char *buf) attr 577 drivers/usb/storage/scsiglue.c static ssize_t max_sectors_store(struct device *dev, struct device_attribute *attr, const char *buf, attr 93 drivers/usb/storage/sierra_ms.c static ssize_t truinst_show(struct device *dev, struct device_attribute *attr, attr 325 drivers/usb/typec/altmodes/displayport.c configuration_store(struct device *dev, struct device_attribute *attr, attr 371 drivers/usb/typec/altmodes/displayport.c struct device_attribute *attr, char *buf) attr 411 drivers/usb/typec/altmodes/displayport.c pin_assignment_store(struct device *dev, struct device_attribute *attr, attr 464 drivers/usb/typec/altmodes/displayport.c struct device_attribute *attr, char *buf) attr 500 drivers/usb/typec/altmodes/displayport.c &dev_attr_configuration.attr, attr 501 drivers/usb/typec/altmodes/displayport.c &dev_attr_pin_assignment.attr, attr 289 drivers/usb/typec/bus.c description_show(struct device *dev, struct device_attribute *attr, char *buf) attr 298 drivers/usb/typec/bus.c &dev_attr_description.attr, attr 97 drivers/usb/typec/class.c static ssize_t id_header_show(struct device *dev, struct device_attribute *attr, attr 106 drivers/usb/typec/class.c static ssize_t cert_stat_show(struct device *dev, struct device_attribute *attr, attr 115 drivers/usb/typec/class.c static ssize_t product_show(struct device *dev, struct device_attribute *attr, attr 125 drivers/usb/typec/class.c &dev_attr_id_header.attr, attr 126 drivers/usb/typec/class.c &dev_attr_cert_stat.attr, attr 127 drivers/usb/typec/class.c &dev_attr_product.attr, attr 322 drivers/usb/typec/class.c vdo_show(struct device *dev, struct device_attribute *attr, char *buf) attr 331 drivers/usb/typec/class.c description_show(struct device *dev, struct device_attribute *attr, char *buf) attr 340 drivers/usb/typec/class.c active_show(struct device *dev, struct device_attribute *attr, char *buf) attr 347 drivers/usb/typec/class.c static ssize_t active_store(struct device *dev, struct device_attribute *attr, attr 387 drivers/usb/typec/class.c supported_roles_show(struct device *dev, struct device_attribute *attr, attr 410 drivers/usb/typec/class.c mode_show(struct device *dev, struct device_attribute *attr, char *buf) attr 419 drivers/usb/typec/class.c svid_show(struct device *dev, struct device_attribute *attr, char *buf) attr 428 drivers/usb/typec/class.c &dev_attr_active.attr, attr 429 drivers/usb/typec/class.c &dev_attr_mode.attr, attr 430 drivers/usb/typec/class.c &dev_attr_svid.attr, attr 431 drivers/usb/typec/class.c &dev_attr_vdo.attr, attr 499 drivers/usb/typec/class.c alt->attrs[0] = &dev_attr_vdo.attr; attr 500 drivers/usb/typec/class.c alt->attrs[1] = &dev_attr_description.attr; attr 501 drivers/usb/typec/class.c alt->attrs[2] = &dev_attr_active.attr; attr 504 drivers/usb/typec/class.c alt->attrs[3] = &dev_attr_supported_roles.attr; attr 559 drivers/usb/typec/class.c struct device_attribute *attr, attr 569 drivers/usb/typec/class.c struct device_attribute *attr, attr 579 drivers/usb/typec/class.c &dev_attr_accessory_mode.attr, attr 580 drivers/usb/typec/class.c &dev_attr_supports_usb_power_delivery.attr, attr 791 drivers/usb/typec/class.c type_show(struct device *dev, struct device_attribute *attr, char *buf) attr 808 drivers/usb/typec/class.c struct device_attribute *attr, char *buf) attr 817 drivers/usb/typec/class.c &dev_attr_type.attr, attr 818 drivers/usb/typec/class.c &dev_attr_plug_type.attr, attr 946 drivers/usb/typec/class.c preferred_role_store(struct device *dev, struct device_attribute *attr, attr 980 drivers/usb/typec/class.c preferred_role_show(struct device *dev, struct device_attribute *attr, attr 996 drivers/usb/typec/class.c struct device_attribute *attr, attr 1028 drivers/usb/typec/class.c struct device_attribute *attr, char *buf) attr 1041 drivers/usb/typec/class.c struct device_attribute *attr, attr 1085 drivers/usb/typec/class.c struct device_attribute *attr, char *buf) attr 1098 drivers/usb/typec/class.c port_type_store(struct device *dev, struct device_attribute *attr, attr 1135 drivers/usb/typec/class.c port_type_show(struct device *dev, struct device_attribute *attr, attr 1156 drivers/usb/typec/class.c struct device_attribute *attr, attr 1166 drivers/usb/typec/class.c struct device_attribute *attr, attr 1195 drivers/usb/typec/class.c struct device_attribute *attr, char *buf) attr 1205 drivers/usb/typec/class.c struct device_attribute *attr, attr 1228 drivers/usb/typec/class.c struct device_attribute *attr, attr 1239 drivers/usb/typec/class.c struct device_attribute *attr, attr 1249 drivers/usb/typec/class.c &dev_attr_data_role.attr, attr 1250 drivers/usb/typec/class.c &dev_attr_power_operation_mode.attr, attr 1251 drivers/usb/typec/class.c &dev_attr_power_role.attr, attr 1252 drivers/usb/typec/class.c &dev_attr_preferred_role.attr, attr 1253 drivers/usb/typec/class.c &dev_attr_supported_accessory_modes.attr, attr 1254 drivers/usb/typec/class.c &dev_attr_usb_power_delivery_revision.attr, attr 1255 drivers/usb/typec/class.c &dev_attr_usb_typec_revision.attr, attr 1256 drivers/usb/typec/class.c &dev_attr_vconn_source.attr, attr 1257 drivers/usb/typec/class.c &dev_attr_port_type.attr, attr 1059 drivers/usb/typec/ucsi/ucsi_ccg.c struct device_attribute *attr, attr 1083 drivers/usb/typec/ucsi/ucsi_ccg.c &dev_attr_do_flash.attr, attr 19 drivers/usb/usbip/stub_dev.c struct device_attribute *attr, char *buf) attr 42 drivers/usb/usbip/stub_dev.c static ssize_t usbip_sockfd_store(struct device *dev, struct device_attribute *attr, attr 110 drivers/usb/usbip/stub_dev.c &dev_attr_usbip_status.attr, attr 111 drivers/usb/usbip/stub_dev.c &dev_attr_usbip_sockfd.attr, attr 112 drivers/usb/usbip/stub_dev.c &dev_attr_usbip_debug.attr, attr 37 drivers/usb/usbip/usbip_common.c struct device_attribute *attr, char *buf) attr 43 drivers/usb/usbip/usbip_common.c struct device_attribute *attr, const char *buf, attr 148 drivers/usb/usbip/vhci_sysfs.c struct device_attribute *attr, char *out) attr 156 drivers/usb/usbip/vhci_sysfs.c pdev_nr = status_name_to_id(attr->attr.name); attr 165 drivers/usb/usbip/vhci_sysfs.c static ssize_t nports_show(struct device *dev, struct device_attribute *attr, attr 228 drivers/usb/usbip/vhci_sysfs.c static ssize_t detach_store(struct device *dev, struct device_attribute *attr, attr 303 drivers/usb/usbip/vhci_sysfs.c static ssize_t attach_store(struct device *dev, struct device_attribute *attr, attr 403 drivers/usb/usbip/vhci_sysfs.c struct device_attribute attr; attr 418 drivers/usb/usbip/vhci_sysfs.c status->attr.attr.name = status->name; attr 419 drivers/usb/usbip/vhci_sysfs.c status->attr.attr.mode = S_IRUGO; attr 420 drivers/usb/usbip/vhci_sysfs.c status->attr.show = status_show; attr 421 drivers/usb/usbip/vhci_sysfs.c sysfs_attr_init(&status->attr.attr); attr 463 drivers/usb/usbip/vhci_sysfs.c *attrs = &dev_attr_nports.attr; attr 464 drivers/usb/usbip/vhci_sysfs.c *(attrs + 1) = &dev_attr_detach.attr; attr 465 drivers/usb/usbip/vhci_sysfs.c *(attrs + 2) = &dev_attr_attach.attr; attr 466 drivers/usb/usbip/vhci_sysfs.c *(attrs + 3) = &dev_attr_usbip_debug.attr; attr 468 drivers/usb/usbip/vhci_sysfs.c *(attrs + i + 4) = &((status_attrs + i)->attr.attr); attr 70 drivers/usb/usbip/vudc_sysfs.c struct bin_attribute *attr, char *out, attr 93 drivers/usb/usbip/vudc_sysfs.c static ssize_t usbip_sockfd_store(struct device *dev, struct device_attribute *attr, attr 190 drivers/usb/usbip/vudc_sysfs.c struct device_attribute *attr, char *out) attr 208 drivers/usb/usbip/vudc_sysfs.c &dev_attr_usbip_sockfd.attr, attr 209 drivers/usb/usbip/vudc_sysfs.c &dev_attr_usbip_status.attr, attr 50 drivers/vfio/mdev/mdev_private.h container_of(_attr, struct mdev_type_attribute, attr) attr 24 drivers/vfio/mdev/mdev_sysfs.c struct mdev_type_attribute *attr = to_mdev_type_attr(__attr); attr 28 drivers/vfio/mdev/mdev_sysfs.c if (attr->show) attr 29 drivers/vfio/mdev/mdev_sysfs.c ret = attr->show(kobj, type->parent->dev, buf); attr 37 drivers/vfio/mdev/mdev_sysfs.c struct mdev_type_attribute *attr = to_mdev_type_attr(__attr); attr 41 drivers/vfio/mdev/mdev_sysfs.c if (attr->store) attr 42 drivers/vfio/mdev/mdev_sysfs.c ret = attr->store(&type->kobj, type->parent->dev, buf, count); attr 117 drivers/vfio/mdev/mdev_sysfs.c ret = sysfs_create_file(&type->kobj, &mdev_type_attr_create.attr); attr 141 drivers/vfio/mdev/mdev_sysfs.c sysfs_remove_file(&type->kobj, &mdev_type_attr_create.attr); attr 153 drivers/vfio/mdev/mdev_sysfs.c sysfs_remove_file(&type->kobj, &mdev_type_attr_create.attr); attr 225 drivers/vfio/mdev/mdev_sysfs.c static ssize_t remove_store(struct device *dev, struct device_attribute *attr, attr 233 drivers/vfio/mdev/mdev_sysfs.c if (val && device_remove_file_self(dev, attr)) { attr 247 drivers/vfio/mdev/mdev_sysfs.c &dev_attr_remove.attr, attr 1729 drivers/vfio/vfio_iommu_type1.c int attr = 1; attr 1732 drivers/vfio/vfio_iommu_type1.c &attr); attr 739 drivers/vhost/scsi.c static int vhost_scsi_to_tcm_attr(int attr) attr 741 drivers/vhost/scsi.c switch (attr) { attr 178 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, char *buf) attr 184 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, attr 193 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, char *buf) attr 199 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, attr 208 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, char *buf) attr 214 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, attr 230 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, char *buf) attr 236 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, attr 245 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, char *buf) attr 251 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, attr 260 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, char *buf) attr 266 drivers/video/backlight/adp5520_bl.c struct device_attribute *attr, attr 275 drivers/video/backlight/adp5520_bl.c &dev_attr_dark_max.attr, attr 276 drivers/video/backlight/adp5520_bl.c &dev_attr_dark_dim.attr, attr 277 drivers/video/backlight/adp5520_bl.c &dev_attr_office_max.attr, attr 278 drivers/video/backlight/adp5520_bl.c &dev_attr_office_dim.attr, attr 279 drivers/video/backlight/adp5520_bl.c &dev_attr_daylight_max.attr, attr 280 drivers/video/backlight/adp5520_bl.c &dev_attr_daylight_dim.attr, attr 464 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 470 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 479 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 485 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 493 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 499 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 513 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 519 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, attr 528 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 534 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, attr 543 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 549 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, attr 559 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 586 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, char *buf) attr 604 drivers/video/backlight/adp8860_bl.c struct device_attribute *attr, attr 642 drivers/video/backlight/adp8860_bl.c &dev_attr_l3_dark_max.attr, attr 643 drivers/video/backlight/adp8860_bl.c &dev_attr_l3_dark_dim.attr, attr 644 drivers/video/backlight/adp8860_bl.c &dev_attr_l2_office_max.attr, attr 645 drivers/video/backlight/adp8860_bl.c &dev_attr_l2_office_dim.attr, attr 646 drivers/video/backlight/adp8860_bl.c &dev_attr_l1_daylight_max.attr, attr 647 drivers/video/backlight/adp8860_bl.c &dev_attr_l1_daylight_dim.attr, attr 649 drivers/video/backlight/adp8860_bl.c &dev_attr_ambient_light_level.attr, attr 650 drivers/video/backlight/adp8860_bl.c &dev_attr_ambient_light_zone.attr, attr 585 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 591 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 600 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 606 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 615 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 621 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 630 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 636 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 644 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 650 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, const char *buf, size_t count) attr 664 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 670 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, attr 679 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 685 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, attr 695 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 701 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, attr 710 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 716 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, attr 725 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 731 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, attr 741 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 770 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, char *buf) attr 788 drivers/video/backlight/adp8870_bl.c struct device_attribute *attr, attr 826 drivers/video/backlight/adp8870_bl.c &dev_attr_l5_dark_max.attr, attr 827 drivers/video/backlight/adp8870_bl.c &dev_attr_l5_dark_dim.attr, attr 828 drivers/video/backlight/adp8870_bl.c &dev_attr_l4_indoor_max.attr, attr 829 drivers/video/backlight/adp8870_bl.c &dev_attr_l4_indoor_dim.attr, attr 830 drivers/video/backlight/adp8870_bl.c &dev_attr_l3_office_max.attr, attr 831 drivers/video/backlight/adp8870_bl.c &dev_attr_l3_office_dim.attr, attr 832 drivers/video/backlight/adp8870_bl.c &dev_attr_l2_bright_max.attr, attr 833 drivers/video/backlight/adp8870_bl.c &dev_attr_l2_bright_dim.attr, attr 834 drivers/video/backlight/adp8870_bl.c &dev_attr_l1_daylight_max.attr, attr 835 drivers/video/backlight/adp8870_bl.c &dev_attr_l1_daylight_dim.attr, attr 837 drivers/video/backlight/adp8870_bl.c &dev_attr_ambient_light_level.attr, attr 838 drivers/video/backlight/adp8870_bl.c &dev_attr_ambient_light_zone.attr, attr 131 drivers/video/backlight/backlight.c static ssize_t bl_power_show(struct device *dev, struct device_attribute *attr, attr 139 drivers/video/backlight/backlight.c static ssize_t bl_power_store(struct device *dev, struct device_attribute *attr, attr 173 drivers/video/backlight/backlight.c struct device_attribute *attr, char *buf) attr 204 drivers/video/backlight/backlight.c struct device_attribute *attr, const char *buf, size_t count) attr 220 drivers/video/backlight/backlight.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 230 drivers/video/backlight/backlight.c struct device_attribute *attr, char *buf) attr 239 drivers/video/backlight/backlight.c struct device_attribute *attr, char *buf) attr 256 drivers/video/backlight/backlight.c struct device_attribute *attr, char *buf) attr 309 drivers/video/backlight/backlight.c &dev_attr_bl_power.attr, attr 310 drivers/video/backlight/backlight.c &dev_attr_brightness.attr, attr 311 drivers/video/backlight/backlight.c &dev_attr_actual_brightness.attr, attr 312 drivers/video/backlight/backlight.c &dev_attr_max_brightness.attr, attr 313 drivers/video/backlight/backlight.c &dev_attr_scale.attr, attr 314 drivers/video/backlight/backlight.c &dev_attr_type.attr, attr 73 drivers/video/backlight/lcd.c static ssize_t lcd_power_show(struct device *dev, struct device_attribute *attr, attr 90 drivers/video/backlight/lcd.c struct device_attribute *attr, const char *buf, size_t count) attr 115 drivers/video/backlight/lcd.c struct device_attribute *attr, char *buf) attr 129 drivers/video/backlight/lcd.c struct device_attribute *attr, const char *buf, size_t count) attr 154 drivers/video/backlight/lcd.c struct device_attribute *attr, char *buf) attr 171 drivers/video/backlight/lcd.c &dev_attr_lcd_power.attr, attr 172 drivers/video/backlight/lcd.c &dev_attr_contrast.attr, attr 173 drivers/video/backlight/lcd.c &dev_attr_max_contrast.attr, attr 71 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, char *buf) attr 79 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, char *buf) attr 88 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, char *buf) attr 108 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, attr 137 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, char *buf) attr 160 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, attr 188 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, attr 203 drivers/video/backlight/lm3533_bl.c struct device_attribute *attr, attr 227 drivers/video/backlight/lm3533_bl.c &dev_attr_als_channel.attr, attr 228 drivers/video/backlight/lm3533_bl.c &dev_attr_als_en.attr, attr 229 drivers/video/backlight/lm3533_bl.c &dev_attr_id.attr, attr 230 drivers/video/backlight/lm3533_bl.c &dev_attr_linear.attr, attr 231 drivers/video/backlight/lm3533_bl.c &dev_attr_pwm.attr, attr 236 drivers/video/backlight/lm3533_bl.c struct attribute *attr, int n) attr 240 drivers/video/backlight/lm3533_bl.c umode_t mode = attr->mode; attr 242 drivers/video/backlight/lm3533_bl.c if (attr == &dev_attr_als_channel.attr || attr 243 drivers/video/backlight/lm3533_bl.c attr == &dev_attr_als_en.attr) { attr 310 drivers/video/backlight/lp855x_bl.c struct device_attribute *attr, char *buf) attr 318 drivers/video/backlight/lp855x_bl.c struct device_attribute *attr, char *buf) attr 335 drivers/video/backlight/lp855x_bl.c &dev_attr_chip_id.attr, attr 336 drivers/video/backlight/lp855x_bl.c &dev_attr_bl_ctl_mode.attr, attr 230 drivers/video/backlight/lp8788_bl.c struct device_attribute *attr, char *buf) attr 249 drivers/video/backlight/lp8788_bl.c &dev_attr_bl_ctl_mode.attr, attr 72 drivers/video/backlight/sky81452-backlight.c struct device_attribute *attr, const char *buf, size_t count) attr 91 drivers/video/backlight/sky81452-backlight.c struct device_attribute *attr, char *buf) attr 98 drivers/video/backlight/sky81452-backlight.c reg = !strcmp(attr->attr.name, "open") ? SKY81452_REG5 : SKY81452_REG4; attr 121 drivers/video/backlight/sky81452-backlight.c struct device_attribute *attr, char *buf) attr 149 drivers/video/backlight/sky81452-backlight.c &dev_attr_enable.attr, attr 150 drivers/video/backlight/sky81452-backlight.c &dev_attr_open.attr, attr 151 drivers/video/backlight/sky81452-backlight.c &dev_attr_short.attr, attr 152 drivers/video/backlight/sky81452-backlight.c &dev_attr_fault.attr, attr 382 drivers/video/console/mdacon.c u16 attr = 0x0700; attr 389 drivers/video/console/mdacon.c if (ch & 0x0800) attr = 0x7000; /* reverse */ attr 390 drivers/video/console/mdacon.c else if (ch & 0x0400) attr = 0x0100; /* underline */ attr 394 drivers/video/console/mdacon.c (ch & 0x00ff) | attr; attr 294 drivers/video/console/sticon.c u8 attr = ((color & 0x70) >> 1) | ((color & 7)); attr 300 drivers/video/console/sticon.c return attr; attr 635 drivers/video/console/vgacon.c u8 attr = color; attr 639 drivers/video/console/vgacon.c attr = (attr & 0xF0) | c->vc_itcolor; attr 641 drivers/video/console/vgacon.c attr = (attr & 0xf0) | c->vc_ulcolor; attr 643 drivers/video/console/vgacon.c attr = (attr & 0xf0) | c->vc_halfcolor; attr 646 drivers/video/console/vgacon.c attr = attr 647 drivers/video/console/vgacon.c ((attr) & 0x88) | ((((attr) >> 4) | ((attr) << 4)) & attr 650 drivers/video/console/vgacon.c attr ^= 0x80; attr 652 drivers/video/console/vgacon.c attr ^= 0x08; attr 655 drivers/video/console/vgacon.c attr = (attr & 0xF8) | 0x02; attr 657 drivers/video/console/vgacon.c attr = (attr & 0xf8) | 0x01; attr 659 drivers/video/console/vgacon.c attr = (attr & 0xf0) | 0x08; attr 661 drivers/video/console/vgacon.c return attr; attr 2239 drivers/video/fbdev/aty/radeon_base.c .attr = { attr 2248 drivers/video/fbdev/aty/radeon_base.c .attr = { attr 734 drivers/video/fbdev/broadsheetfb.c struct device_attribute *attr, attr 78 drivers/video/fbdev/core/bitblit.c const u16 *s, u32 attr, u32 cnt, attr 90 drivers/video/fbdev/core/bitblit.c if (attr) { attr 91 drivers/video/fbdev/core/bitblit.c update_attr(buf, src, attr, vc); attr 110 drivers/video/fbdev/core/bitblit.c u32 attr, u32 cnt, u32 d_pitch, attr 125 drivers/video/fbdev/core/bitblit.c if (attr) { attr 126 drivers/video/fbdev/core/bitblit.c update_attr(buf, src, attr, vc); attr 1665 drivers/video/fbdev/core/fbcon.c unsigned short attr = 1; attr 1671 drivers/video/fbdev/core/fbcon.c if (attr != (c & 0xff00)) { attr 1672 drivers/video/fbdev/core/fbcon.c attr = c & 0xff00; attr 1719 drivers/video/fbdev/core/fbcon.c unsigned short attr = 1; attr 1723 drivers/video/fbdev/core/fbcon.c if (attr != (c & 0xff00)) { attr 1724 drivers/video/fbdev/core/fbcon.c attr = c & 0xff00; attr 1804 drivers/video/fbdev/core/fbcon.c unsigned short attr = 1; attr 1808 drivers/video/fbdev/core/fbcon.c if (attr != (c & 0xff00)) { attr 1809 drivers/video/fbdev/core/fbcon.c attr = c & 0xff00; attr 3418 drivers/video/fbdev/core/fbcon.c struct device_attribute *attr, const char *buf, attr 3440 drivers/video/fbdev/core/fbcon.c struct device_attribute *attr,const char *buf, attr 3462 drivers/video/fbdev/core/fbcon.c struct device_attribute *attr,char *buf) attr 3481 drivers/video/fbdev/core/fbcon.c struct device_attribute *attr, char *buf) attr 3506 drivers/video/fbdev/core/fbcon.c struct device_attribute *attr, attr 99 drivers/video/fbdev/core/fbcon_ccw.c const u16 *s, u32 attr, u32 cnt, attr 111 drivers/video/fbdev/core/fbcon_ccw.c if (attr) { attr 112 drivers/video/fbdev/core/fbcon_ccw.c ccw_update_attr(buf, src, attr, vc); attr 84 drivers/video/fbdev/core/fbcon_cw.c const u16 *s, u32 attr, u32 cnt, attr 96 drivers/video/fbdev/core/fbcon_cw.c if (attr) { attr 97 drivers/video/fbdev/core/fbcon_cw.c cw_update_attr(buf, src, attr, vc); attr 86 drivers/video/fbdev/core/fbcon_ud.c const u16 *s, u32 attr, u32 cnt, attr 98 drivers/video/fbdev/core/fbcon_ud.c if (attr) { attr 99 drivers/video/fbdev/core/fbcon_ud.c ud_update_attr(buf, src, attr, vc); attr 118 drivers/video/fbdev/core/fbcon_ud.c u32 attr, u32 cnt, u32 d_pitch, attr 133 drivers/video/fbdev/core/fbcon_ud.c if (attr) { attr 134 drivers/video/fbdev/core/fbcon_ud.c ud_update_attr(buf, src, attr, vc); attr 125 drivers/video/fbdev/core/fbsysfs.c static ssize_t store_mode(struct device *device, struct device_attribute *attr, attr 156 drivers/video/fbdev/core/fbsysfs.c static ssize_t show_mode(struct device *device, struct device_attribute *attr, attr 168 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 196 drivers/video/fbdev/core/fbsysfs.c static ssize_t show_modes(struct device *device, struct device_attribute *attr, attr 214 drivers/video/fbdev/core/fbsysfs.c static ssize_t store_bpp(struct device *device, struct device_attribute *attr, attr 229 drivers/video/fbdev/core/fbsysfs.c static ssize_t show_bpp(struct device *device, struct device_attribute *attr, attr 237 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 256 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 264 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 285 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 293 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 300 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 319 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 326 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 334 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 341 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 349 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 356 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 381 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 389 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 397 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 418 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 426 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, attr 467 drivers/video/fbdev/core/fbsysfs.c struct device_attribute *attr, char *buf) attr 261 drivers/video/fbdev/core/svgalib.c int attr = (0x0F & rect->bg) << 4 | (0x0F & rect->fg); attr 269 drivers/video/fbdev/core/svgalib.c fb_writeb(attr, fb2 + 1); attr 282 drivers/video/fbdev/core/svgalib.c int attr = (0x0F & blit->bg) << 4 | (0x0F & blit->fg); attr 291 drivers/video/fbdev/core/svgalib.c fb_writeb(attr, fb2 + 1); attr 311 drivers/video/fbdev/efifb.c struct device_attribute *attr, \ attr 325 drivers/video/fbdev/efifb.c &dev_attr_base.attr, attr 326 drivers/video/fbdev/efifb.c &dev_attr_linelength.attr, attr 327 drivers/video/fbdev/efifb.c &dev_attr_width.attr, attr 328 drivers/video/fbdev/efifb.c &dev_attr_height.attr, attr 329 drivers/video/fbdev/efifb.c &dev_attr_depth.attr, attr 1644 drivers/video/fbdev/fsl-diu-fb.c struct device_attribute *attr, const char *buf, size_t count) attr 1648 drivers/video/fbdev/fsl-diu-fb.c container_of(attr, struct fsl_diu_data, dev_attr); attr 1666 drivers/video/fbdev/fsl-diu-fb.c struct device_attribute *attr, char *buf) attr 1669 drivers/video/fbdev/fsl-diu-fb.c container_of(attr, struct fsl_diu_data, dev_attr); attr 1802 drivers/video/fbdev/fsl-diu-fb.c sysfs_attr_init(&data->dev_attr.attr); attr 1803 drivers/video/fbdev/fsl-diu-fb.c data->dev_attr.attr.name = "monitor"; attr 1804 drivers/video/fbdev/fsl-diu-fb.c data->dev_attr.attr.mode = S_IRUGO|S_IWUSR; attr 1810 drivers/video/fbdev/fsl-diu-fb.c data->dev_attr.attr.name); attr 1063 drivers/video/fbdev/gbefb.c static ssize_t gbefb_show_memsize(struct device *dev, struct device_attribute *attr, char *buf) attr 1070 drivers/video/fbdev/gbefb.c static ssize_t gbefb_show_rev(struct device *device, struct device_attribute *attr, char *buf) attr 544 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c struct device_attribute *attr, char *buf) attr 49 drivers/video/fbdev/nvidia/nv_type.h u8 attr[NUM_ATC_REGS]; attr 234 drivers/video/fbdev/nvidia/nvidia.c state->attr[i] = NVReadAttr(par, i); attr 289 drivers/video/fbdev/nvidia/nvidia.c printk("ATTR[%02x] = %08x\n", i, state->attr[i]); attr 291 drivers/video/fbdev/nvidia/nvidia.c NVWriteAttr(par, i, state->attr[i]); attr 363 drivers/video/fbdev/nvidia/nvidia.c state->attr[0x10] = 0x01; attr 366 drivers/video/fbdev/nvidia/nvidia.c state->attr[0x11] = 0x00; attr 501 drivers/video/fbdev/nvidia/nvidia.c state->attr[i] = i; attr 502 drivers/video/fbdev/nvidia/nvidia.c state->attr[0x10] = 0x41; attr 503 drivers/video/fbdev/nvidia/nvidia.c state->attr[0x11] = 0xff; attr 504 drivers/video/fbdev/nvidia/nvidia.c state->attr[0x12] = 0x0f; attr 505 drivers/video/fbdev/nvidia/nvidia.c state->attr[0x13] = 0x00; attr 506 drivers/video/fbdev/nvidia/nvidia.c state->attr[0x14] = 0x00; attr 1239 drivers/video/fbdev/omap/omapfb_main.c struct device_attribute *attr, char *buf) attr 1259 drivers/video/fbdev/omap/omapfb_main.c struct device_attribute *attr, char *buf) attr 1306 drivers/video/fbdev/omap/omapfb_main.c struct device_attribute *attr, char *buf) attr 1314 drivers/video/fbdev/omap/omapfb_main.c struct device_attribute *attr, attr 1329 drivers/video/fbdev/omap/omapfb_main.c struct device_attribute *attr, attr 1349 drivers/video/fbdev/omap/omapfb_main.c struct device_attribute *attr, char *buf) attr 1369 drivers/video/fbdev/omap/omapfb_main.c &dev_attr_panel_name.attr, attr 1370 drivers/video/fbdev/omap/omapfb_main.c &dev_attr_backlight_level.attr, attr 1371 drivers/video/fbdev/omap/omapfb_main.c &dev_attr_backlight_max.attr, attr 1382 drivers/video/fbdev/omap/omapfb_main.c struct device_attribute *attr, char *buf) attr 1393 drivers/video/fbdev/omap/omapfb_main.c &dev_attr_ctrl_name.attr, attr 385 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct device_attribute *attr, char *buf) attr 416 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct device_attribute *attr, char *buf) attr 446 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct device_attribute *attr, attr 480 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct device_attribute *attr, attr 494 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct device_attribute *attr, attr 525 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct device_attribute *attr, attr 546 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c &dev_attr_num_dsi_errors.attr, attr 547 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c &dev_attr_hw_revision.attr, attr 548 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c &dev_attr_ulps.attr, attr 549 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c &dev_attr_ulps_timeout.attr, attr 417 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct device_attribute *attr, attr 438 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct device_attribute *attr, attr 471 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct device_attribute *attr, attr 496 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c &dev_attr_cabc_mode.attr, attr 497 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c &dev_attr_cabc_available_modes.attr, attr 168 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct device_attribute *attr, char *buf) attr 176 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct device_attribute *attr, const char *buf, size_t count) attr 198 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct device_attribute *attr, char *buf) attr 206 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct device_attribute *attr, const char *buf, size_t count) attr 225 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct device_attribute *attr, char *buf) attr 245 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct device_attribute *attr, const char *buf, size_t count) attr 275 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c &dev_attr_vmirror.attr, attr 276 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c &dev_attr_mode.attr, attr 277 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c &dev_attr_gamma.attr, attr 233 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c struct attribute attr; attr 258 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_name.attr, attr 259 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_display_name.attr, attr 260 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_enabled.attr, attr 261 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_tear_elim.attr, attr 262 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_timings.attr, attr 263 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_rotate.attr, attr 264 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_mirror.attr, attr 265 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c &display_attr_wss.attr, attr 269 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c static ssize_t display_attr_show(struct kobject *kobj, struct attribute *attr, attr 276 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c display_attr = container_of(attr, struct display_attribute, attr); attr 284 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c static ssize_t display_attr_store(struct kobject *kobj, struct attribute *attr, attr 291 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c display_attr = container_of(attr, struct display_attribute, attr); attr 416 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c struct attribute attr; attr 449 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_name.attr, attr 450 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_display.attr, attr 451 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_default_color.attr, attr 452 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_trans_key_type.attr, attr 453 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_trans_key_value.attr, attr 454 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_trans_key_enabled.attr, attr 455 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_alpha_blending_enabled.attr, attr 456 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_cpr_enable.attr, attr 457 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &manager_attr_cpr_coef.attr, attr 461 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c static ssize_t manager_attr_show(struct kobject *kobj, struct attribute *attr, attr 468 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c manager_attr = container_of(attr, struct manager_attribute, attr); attr 476 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c static ssize_t manager_attr_store(struct kobject *kobj, struct attribute *attr, attr 483 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c manager_attr = container_of(attr, struct manager_attribute, attr); attr 352 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c struct attribute attr; attr 381 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_name.attr, attr 382 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_manager.attr, attr 383 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_input_size.attr, attr 384 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_screen_width.attr, attr 385 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_position.attr, attr 386 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_output_size.attr, attr 387 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_enabled.attr, attr 388 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_global_alpha.attr, attr 389 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_pre_mult_alpha.attr, attr 390 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c &overlay_attr_zorder.attr, attr 394 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c static ssize_t overlay_attr_show(struct kobject *kobj, struct attribute *attr, attr 401 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c overlay_attr = container_of(attr, struct overlay_attribute, attr); attr 409 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c static ssize_t overlay_attr_store(struct kobject *kobj, struct attribute *attr, attr 416 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c overlay_attr = container_of(attr, struct overlay_attribute, attr); attr 27 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 36 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, attr 81 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 90 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, attr 131 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 179 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c static ssize_t store_overlays(struct device *dev, struct device_attribute *attr, attr 321 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 343 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, const char *buf, size_t count) attr 413 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 421 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c static ssize_t store_size(struct device *dev, struct device_attribute *attr, attr 490 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 499 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 508 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct device_attribute *attr, char *buf) attr 522 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c static ssize_t store_upd_mode(struct device *dev, struct device_attribute *attr, attr 603 drivers/video/fbdev/riva/fbdev.c regs->attr[i] = ATTRin(par, i); attr 652 drivers/video/fbdev/riva/fbdev.c ATTRout(par, i, regs->attr[i]); attr 27 drivers/video/fbdev/riva/rivafb.h u8 attr[NUM_ATC_REGS]; attr 592 drivers/video/fbdev/s3c2410fb.c struct device_attribute *attr, char *buf) attr 598 drivers/video/fbdev/s3c2410fb.c struct device_attribute *attr, attr 1193 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_alpha_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1202 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_alpha_store(struct device *dev, struct device_attribute *attr, attr 1231 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_mode_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1240 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_mode_store(struct device *dev, struct device_attribute *attr, attr 1269 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_position_show(struct device *dev, struct device_attribute *attr, attr 1279 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_position_store(struct device *dev, struct device_attribute *attr, attr 1311 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_rop3_show(struct device *dev, struct device_attribute *attr, char *buf) attr 1320 drivers/video/fbdev/sh_mobile_lcdcfb.c overlay_rop3_store(struct device *dev, struct device_attribute *attr, attr 1161 drivers/video/fbdev/sm501fb.c struct device_attribute *attr, char *buf) attr 1178 drivers/video/fbdev/sm501fb.c struct device_attribute *attr, attr 1242 drivers/video/fbdev/sm501fb.c struct device_attribute *attr, char *buf) attr 1261 drivers/video/fbdev/sm501fb.c struct device_attribute *attr, char *buf) attr 1275 drivers/video/fbdev/sm501fb.c &dev_attr_crt_src.attr, attr 1276 drivers/video/fbdev/sm501fb.c &dev_attr_fbregs_pnl.attr, attr 1277 drivers/video/fbdev/sm501fb.c &dev_attr_fbregs_crt.attr, attr 718 drivers/video/fbdev/sstfb.c static ssize_t store_vgapass(struct device *device, struct device_attribute *attr, attr 731 drivers/video/fbdev/sstfb.c static ssize_t show_vgapass(struct device *device, struct device_attribute *attr, attr 1507 drivers/video/fbdev/udlfb.c struct device_attribute *attr, attr 1522 drivers/video/fbdev/udlfb.c .attr.name = "edid", attr 1523 drivers/video/fbdev/udlfb.c .attr.mode = 0666, attr 1649 drivers/video/fbdev/udlfb.c const struct device_attribute *attr; attr 1744 drivers/video/fbdev/udlfb.c attr = &fb_device_attrs[i]; attr 1745 drivers/video/fbdev/udlfb.c retval = device_create_file(info->dev, attr); attr 1749 drivers/video/fbdev/udlfb.c attr->attr.name, retval); attr 1755 drivers/video/fbdev/udlfb.c edid_attr.attr.name, retval); attr 1545 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, char *buf) attr 1556 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, char *buf) attr 1575 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, char *buf) attr 1590 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, char *buf) attr 1605 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, char *buf) attr 1620 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, char *buf) attr 1635 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, char *buf) attr 1644 drivers/video/fbdev/uvesafb.c struct device_attribute *attr, const char *buf, size_t count) attr 1662 drivers/video/fbdev/uvesafb.c &dev_attr_vbe_version.attr, attr 1663 drivers/video/fbdev/uvesafb.c &dev_attr_vbe_modes.attr, attr 1664 drivers/video/fbdev/uvesafb.c &dev_attr_oem_vendor.attr, attr 1665 drivers/video/fbdev/uvesafb.c &dev_attr_oem_product_name.attr, attr 1666 drivers/video/fbdev/uvesafb.c &dev_attr_oem_product_rev.attr, attr 1667 drivers/video/fbdev/uvesafb.c &dev_attr_oem_string.attr, attr 1668 drivers/video/fbdev/uvesafb.c &dev_attr_nocrtc.attr, attr 79 drivers/video/fbdev/w100fb.c static ssize_t flip_show(struct device *dev, struct device_attribute *attr, char *buf) attr 87 drivers/video/fbdev/w100fb.c static ssize_t flip_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 111 drivers/video/fbdev/w100fb.c static ssize_t w100fb_reg_read(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 122 drivers/video/fbdev/w100fb.c static ssize_t w100fb_reg_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 138 drivers/video/fbdev/w100fb.c static ssize_t fastpllclk_show(struct device *dev, struct device_attribute *attr, char *buf) attr 146 drivers/video/fbdev/w100fb.c static ssize_t fastpllclk_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) attr 168 drivers/video/fbdev/w100fb.c &dev_attr_fastpllclk.attr, attr 169 drivers/video/fbdev/w100fb.c &dev_attr_reg_read.attr, attr 170 drivers/video/fbdev/w100fb.c &dev_attr_reg_write.attr, attr 171 drivers/video/fbdev/w100fb.c &dev_attr_flip.attr, attr 152 drivers/video/fbdev/wm8505fb.c struct device_attribute *attr, char *buf) attr 161 drivers/video/fbdev/wm8505fb.c struct device_attribute *attr, attr 180 drivers/video/fbdev/wm8505fb.c &dev_attr_contrast.attr, attr 27 drivers/video/vgastate.c __u8 *attr; attr 245 drivers/video/vgastate.c saved->attr[i] = vga_rattr(state->vgabase, i); attr 295 drivers/video/vgastate.c vga_wattr(state->vgabase, i, saved->attr[i]); attr 344 drivers/video/vgastate.c vfree(saved->attr); attr 384 drivers/video/vgastate.c saved->attr = vmalloc(total); attr 385 drivers/video/vgastate.c if (!saved->attr) { attr 389 drivers/video/vgastate.c saved->crtc = saved->attr + state->num_attr; attr 259 drivers/virt/vboxguest/vboxguest_linux.c struct device_attribute *attr, char *buf) attr 267 drivers/virt/vboxguest/vboxguest_linux.c struct device_attribute *attr, char *buf) attr 13 drivers/virtio/virtio.c struct device_attribute *attr, char *buf) attr 21 drivers/virtio/virtio.c struct device_attribute *attr, char *buf) attr 29 drivers/virtio/virtio.c struct device_attribute *attr, char *buf) attr 37 drivers/virtio/virtio.c struct device_attribute *attr, char *buf) attr 46 drivers/virtio/virtio.c struct device_attribute *attr, char *buf) attr 63 drivers/virtio/virtio.c &dev_attr_device.attr, attr 64 drivers/virtio/virtio.c &dev_attr_vendor.attr, attr 65 drivers/virtio/virtio.c &dev_attr_status.attr, attr 66 drivers/virtio/virtio.c &dev_attr_modalias.attr, attr 67 drivers/virtio/virtio.c &dev_attr_features.attr, attr 31 drivers/visorbus/visorbus_main.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 44 drivers/visorbus/visorbus_main.c &dev_attr_modalias.attr, attr 238 drivers/visorbus/visorbus_main.c static ssize_t physaddr_show(struct device *dev, struct device_attribute *attr, attr 248 drivers/visorbus/visorbus_main.c static ssize_t nbytes_show(struct device *dev, struct device_attribute *attr, attr 259 drivers/visorbus/visorbus_main.c struct device_attribute *attr, char *buf) attr 268 drivers/visorbus/visorbus_main.c static ssize_t typeguid_show(struct device *dev, struct device_attribute *attr, attr 279 drivers/visorbus/visorbus_main.c static ssize_t zoneguid_show(struct device *dev, struct device_attribute *attr, attr 290 drivers/visorbus/visorbus_main.c static ssize_t typename_show(struct device *dev, struct device_attribute *attr, attr 309 drivers/visorbus/visorbus_main.c &dev_attr_physaddr.attr, attr 310 drivers/visorbus/visorbus_main.c &dev_attr_nbytes.attr, attr 311 drivers/visorbus/visorbus_main.c &dev_attr_clientpartition.attr, attr 312 drivers/visorbus/visorbus_main.c &dev_attr_typeguid.attr, attr 313 drivers/visorbus/visorbus_main.c &dev_attr_zoneguid.attr, attr 314 drivers/visorbus/visorbus_main.c &dev_attr_typename.attr, attr 327 drivers/visorbus/visorbus_main.c struct device_attribute *attr, char *buf) attr 337 drivers/visorbus/visorbus_main.c struct device_attribute *attr, char *buf) attr 346 drivers/visorbus/visorbus_main.c struct device_attribute *attr, char *buf) attr 355 drivers/visorbus/visorbus_main.c struct device_attribute *attr, char *buf) attr 365 drivers/visorbus/visorbus_main.c struct device_attribute *attr, char *buf) attr 375 drivers/visorbus/visorbus_main.c struct device_attribute *attr, char *buf) attr 388 drivers/visorbus/visorbus_main.c &dev_attr_partition_handle.attr, attr 389 drivers/visorbus/visorbus_main.c &dev_attr_partition_guid.attr, attr 390 drivers/visorbus/visorbus_main.c &dev_attr_partition_name.attr, attr 391 drivers/visorbus/visorbus_main.c &dev_attr_channel_addr.attr, attr 392 drivers/visorbus/visorbus_main.c &dev_attr_channel_bytes.attr, attr 393 drivers/visorbus/visorbus_main.c &dev_attr_channel_id.attr, attr 110 drivers/visorbus/visorchipset.c struct device_attribute *attr, attr 126 drivers/visorbus/visorchipset.c struct device_attribute *attr, attr 145 drivers/visorbus/visorchipset.c struct device_attribute *attr, attr 162 drivers/visorbus/visorchipset.c struct device_attribute *attr, attr 182 drivers/visorbus/visorchipset.c static ssize_t error_show(struct device *dev, struct device_attribute *attr, attr 197 drivers/visorbus/visorchipset.c static ssize_t error_store(struct device *dev, struct device_attribute *attr, attr 215 drivers/visorbus/visorchipset.c static ssize_t textid_show(struct device *dev, struct device_attribute *attr, attr 230 drivers/visorbus/visorchipset.c static ssize_t textid_store(struct device *dev, struct device_attribute *attr, attr 249 drivers/visorbus/visorchipset.c struct device_attribute *attr, char *buf) attr 264 drivers/visorbus/visorchipset.c struct device_attribute *attr, attr 958 drivers/visorbus/visorchipset.c struct device_attribute *attr, attr 987 drivers/visorbus/visorchipset.c struct device_attribute *attr, attr 1000 drivers/visorbus/visorchipset.c &dev_attr_toolaction.attr, attr 1001 drivers/visorbus/visorchipset.c &dev_attr_boottotool.attr, attr 1002 drivers/visorbus/visorchipset.c &dev_attr_error.attr, attr 1003 drivers/visorbus/visorchipset.c &dev_attr_textid.attr, attr 1004 drivers/visorbus/visorchipset.c &dev_attr_remaining_steps.attr, attr 1014 drivers/visorbus/visorchipset.c &dev_attr_devicedisabled.attr, attr 1015 drivers/visorbus/visorchipset.c &dev_attr_deviceenabled.attr, attr 1419 drivers/vme/bridges/vme_tsi148.c static int tsi148_dma_set_vme_src_attributes(struct device *dev, __be32 *attr, attr 1424 drivers/vme/bridges/vme_tsi148.c val = be32_to_cpu(*attr); attr 1514 drivers/vme/bridges/vme_tsi148.c *attr = cpu_to_be32(val); attr 1519 drivers/vme/bridges/vme_tsi148.c static int tsi148_dma_set_vme_dest_attributes(struct device *dev, __be32 *attr, attr 1524 drivers/vme/bridges/vme_tsi148.c val = be32_to_cpu(*attr); attr 1614 drivers/vme/bridges/vme_tsi148.c *attr = cpu_to_be32(val); attr 72 drivers/w1/slaves/w1_ds2405.c struct device_attribute *attr, char *buf) attr 109 drivers/w1/slaves/w1_ds2405.c struct device_attribute *attr, char *buf) attr 138 drivers/w1/slaves/w1_ds2405.c struct device_attribute *attr, attr 202 drivers/w1/slaves/w1_ds2405.c &dev_attr_state.attr, attr 203 drivers/w1/slaves/w1_ds2405.c &dev_attr_output.attr, attr 100 drivers/w1/slaves/w1_ds2406.c .attr = { attr 108 drivers/w1/slaves/w1_ds2406.c .attr = { attr 73 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); attr 85 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); attr 98 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); attr 111 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); attr 38 drivers/w1/slaves/w1_ds2413.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); attr 31 drivers/w1/slaves/w1_ds2423.c struct device_attribute *attr, char *out_buf) attr 115 drivers/w1/slaves/w1_ds2423.c &dev_attr_w1_slave.attr, attr 265 drivers/w1/slaves/w1_ds2805.c .attr = { attr 339 drivers/w1/slaves/w1_ds28e04.c static ssize_t crccheck_show(struct device *dev, struct device_attribute *attr, attr 348 drivers/w1/slaves/w1_ds28e04.c static ssize_t crccheck_store(struct device *dev, struct device_attribute *attr, attr 373 drivers/w1/slaves/w1_ds28e04.c &dev_attr_crccheck.attr, attr 574 drivers/w1/slaves/w1_ds28e17.c static ssize_t speed_show(struct device *dev, struct device_attribute *attr, attr 589 drivers/w1/slaves/w1_ds28e17.c static ssize_t speed_store(struct device *dev, struct device_attribute *attr, attr 629 drivers/w1/slaves/w1_ds28e17.c static ssize_t stretch_show(struct device *dev, struct device_attribute *attr, attr 639 drivers/w1/slaves/w1_ds28e17.c static ssize_t stretch_store(struct device *dev, struct device_attribute *attr, attr 665 drivers/w1/slaves/w1_ds28e17.c &dev_attr_speed.attr, attr 666 drivers/w1/slaves/w1_ds28e17.c &dev_attr_stretch.attr, attr 82 drivers/w1/slaves/w1_therm.c struct device_attribute *attr, char *buf); attr 85 drivers/w1/slaves/w1_therm.c struct device_attribute *attr, const char *buf, size_t size); attr 88 drivers/w1/slaves/w1_therm.c struct device_attribute *attr, char *buf); attr 94 drivers/w1/slaves/w1_therm.c &dev_attr_w1_slave.attr, attr 99 drivers/w1/slaves/w1_therm.c &dev_attr_w1_slave.attr, attr 100 drivers/w1/slaves/w1_therm.c &dev_attr_w1_seq.attr, attr 108 drivers/w1/slaves/w1_therm.c static int w1_read_temp(struct device *dev, u32 attr, int channel, attr 112 drivers/w1/slaves/w1_therm.c u32 attr, int channel) attr 114 drivers/w1/slaves/w1_therm.c return attr == hwmon_temp_input ? 0444 : 0; attr 118 drivers/w1/slaves/w1_therm.c u32 attr, int channel, long *val) attr 122 drivers/w1/slaves/w1_therm.c return w1_read_temp(dev, attr, channel, val); attr 449 drivers/w1/slaves/w1_therm.c struct device_attribute *attr, const char *buf, attr 568 drivers/w1/slaves/w1_therm.c struct device_attribute *attr, char *buf) attr 601 drivers/w1/slaves/w1_therm.c static int w1_read_temp(struct device *device, u32 attr, int channel, attr 609 drivers/w1/slaves/w1_therm.c switch (attr) { attr 643 drivers/w1/slaves/w1_therm.c struct device_attribute *attr, char *buf) attr 88 drivers/w1/w1.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, char *buf) attr 97 drivers/w1/w1.c struct device_attribute *attr, char *buf) attr 108 drivers/w1/w1.c &dev_attr_name.attr, attr 109 drivers/w1/w1.c &dev_attr_id.attr, attr 208 drivers/w1/w1.c static ssize_t w1_master_attribute_show_name(struct device *dev, struct device_attribute *attr, char *buf) attr 221 drivers/w1/w1.c struct device_attribute *attr, attr 243 drivers/w1/w1.c struct device_attribute *attr, attr 257 drivers/w1/w1.c struct device_attribute *attr, attr 276 drivers/w1/w1.c struct device_attribute *attr, attr 289 drivers/w1/w1.c static ssize_t w1_master_attribute_show_pointer(struct device *dev, struct device_attribute *attr, char *buf) attr 300 drivers/w1/w1.c static ssize_t w1_master_attribute_show_timeout(struct device *dev, struct device_attribute *attr, char *buf) attr 308 drivers/w1/w1.c struct device_attribute *attr, char *buf) attr 316 drivers/w1/w1.c struct device_attribute *attr, const char *buf, size_t count) attr 333 drivers/w1/w1.c static ssize_t w1_master_attribute_show_max_slave_count(struct device *dev, struct device_attribute *attr, char *buf) attr 344 drivers/w1/w1.c static ssize_t w1_master_attribute_show_attempts(struct device *dev, struct device_attribute *attr, char *buf) attr 355 drivers/w1/w1.c static ssize_t w1_master_attribute_show_slave_count(struct device *dev, struct device_attribute *attr, char *buf) attr 367 drivers/w1/w1.c struct device_attribute *attr, char *buf) attr 390 drivers/w1/w1.c struct device_attribute *attr, char *buf) attr 458 drivers/w1/w1.c struct device_attribute *attr, attr 487 drivers/w1/w1.c struct device_attribute *attr, char *buf) attr 496 drivers/w1/w1.c struct device_attribute *attr, attr 549 drivers/w1/w1.c &w1_master_attribute_name.attr, attr 550 drivers/w1/w1.c &w1_master_attribute_slaves.attr, attr 551 drivers/w1/w1.c &w1_master_attribute_slave_count.attr, attr 552 drivers/w1/w1.c &w1_master_attribute_max_slave_count.attr, attr 553 drivers/w1/w1.c &w1_master_attribute_attempts.attr, attr 554 drivers/w1/w1.c &w1_master_attribute_timeout.attr, attr 555 drivers/w1/w1.c &w1_master_attribute_timeout_us.attr, attr 556 drivers/w1/w1.c &w1_master_attribute_pointer.attr, attr 557 drivers/w1/w1.c &w1_master_attribute_search.attr, attr 558 drivers/w1/w1.c &w1_master_attribute_pullup.attr, attr 559 drivers/w1/w1.c &w1_master_attribute_add.attr, attr 560 drivers/w1/w1.c &w1_master_attribute_remove.attr, attr 173 drivers/watchdog/aspeed_wdt.c struct device_attribute *attr, char *buf) attr 183 drivers/watchdog/aspeed_wdt.c struct device_attribute *attr, const char *buf, attr 220 drivers/watchdog/aspeed_wdt.c &dev_attr_access_cs0.attr, attr 175 drivers/watchdog/renesas_wdt.c const struct soc_device_attribute *attr; attr 177 drivers/watchdog/renesas_wdt.c attr = soc_device_match(rwdt_quirks_match); attr 178 drivers/watchdog/renesas_wdt.c if (attr && setup_max_cpus > (uintptr_t)attr->data) { attr 179 drivers/watchdog/renesas_wdt.c dev_info(dev, "Watchdog blacklisted on %s %s\n", attr->soc_id, attr 180 drivers/watchdog/renesas_wdt.c attr->revision); attr 448 drivers/watchdog/watchdog_dev.c static ssize_t nowayout_show(struct device *dev, struct device_attribute *attr, attr 457 drivers/watchdog/watchdog_dev.c static ssize_t status_show(struct device *dev, struct device_attribute *attr, attr 473 drivers/watchdog/watchdog_dev.c struct device_attribute *attr, char *buf) attr 481 drivers/watchdog/watchdog_dev.c static ssize_t timeleft_show(struct device *dev, struct device_attribute *attr, attr 499 drivers/watchdog/watchdog_dev.c static ssize_t timeout_show(struct device *dev, struct device_attribute *attr, attr 509 drivers/watchdog/watchdog_dev.c struct device_attribute *attr, char *buf) attr 517 drivers/watchdog/watchdog_dev.c static ssize_t identity_show(struct device *dev, struct device_attribute *attr, attr 526 drivers/watchdog/watchdog_dev.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 539 drivers/watchdog/watchdog_dev.c struct device_attribute *attr, char *buf) attr 546 drivers/watchdog/watchdog_dev.c struct device_attribute *attr, attr 555 drivers/watchdog/watchdog_dev.c struct device_attribute *attr, attr 568 drivers/watchdog/watchdog_dev.c static umode_t wdt_is_visible(struct kobject *kobj, struct attribute *attr, attr 573 drivers/watchdog/watchdog_dev.c umode_t mode = attr->mode; attr 575 drivers/watchdog/watchdog_dev.c if (attr == &dev_attr_timeleft.attr && !wdd->ops->get_timeleft) attr 577 drivers/watchdog/watchdog_dev.c else if (attr == &dev_attr_pretimeout.attr && attr 580 drivers/watchdog/watchdog_dev.c else if ((attr == &dev_attr_pretimeout_governor.attr || attr 581 drivers/watchdog/watchdog_dev.c attr == &dev_attr_pretimeout_available_governors.attr) && attr 589 drivers/watchdog/watchdog_dev.c &dev_attr_state.attr, attr 590 drivers/watchdog/watchdog_dev.c &dev_attr_identity.attr, attr 591 drivers/watchdog/watchdog_dev.c &dev_attr_timeout.attr, attr 592 drivers/watchdog/watchdog_dev.c &dev_attr_pretimeout.attr, attr 593 drivers/watchdog/watchdog_dev.c &dev_attr_timeleft.attr, attr 594 drivers/watchdog/watchdog_dev.c &dev_attr_bootstatus.attr, attr 595 drivers/watchdog/watchdog_dev.c &dev_attr_status.attr, attr 596 drivers/watchdog/watchdog_dev.c &dev_attr_nowayout.attr, attr 597 drivers/watchdog/watchdog_dev.c &dev_attr_pretimeout_governor.attr, attr 598 drivers/watchdog/watchdog_dev.c &dev_attr_pretimeout_available_governors.attr, attr 438 drivers/watchdog/ziirave_wdt.c struct device_attribute *attr, attr 461 drivers/watchdog/ziirave_wdt.c struct device_attribute *attr, attr 484 drivers/watchdog/ziirave_wdt.c struct device_attribute *attr, attr 506 drivers/watchdog/ziirave_wdt.c struct device_attribute *attr, attr 561 drivers/watchdog/ziirave_wdt.c &dev_attr_firmware_version.attr, attr 562 drivers/watchdog/ziirave_wdt.c &dev_attr_bootloader_version.attr, attr 563 drivers/watchdog/ziirave_wdt.c &dev_attr_reset_reason.attr, attr 564 drivers/watchdog/ziirave_wdt.c &dev_attr_update_firmware.attr, attr 120 drivers/xen/efi.c u32 *attr, unsigned long *data_size, attr 136 drivers/xen/efi.c if (attr) attr 137 drivers/xen/efi.c *attr = efi_data(op).misc; attr 166 drivers/xen/efi.c u32 attr, unsigned long data_size, attr 172 drivers/xen/efi.c efi_data(op).misc = attr; attr 185 drivers/xen/efi.c static efi_status_t xen_efi_query_variable_info(u32 attr, u64 *storage_space, attr 194 drivers/xen/efi.c efi_data(op).u.query_variable_info.attr = attr; attr 96 drivers/xen/pcpu.c struct device_attribute *attr, attr 105 drivers/xen/pcpu.c struct device_attribute *attr, attr 136 drivers/xen/pcpu.c &dev_attr_online.attr, attr 141 drivers/xen/pcpu.c struct attribute *attr, int idx) attr 149 drivers/xen/pcpu.c return dev->id ? attr->mode : 0; attr 32 drivers/xen/sys-hypervisor.c struct attribute attr; attr 38 drivers/xen/sys-hypervisor.c static ssize_t type_show(struct hyp_sysfs_attr *attr, char *buffer) attr 47 drivers/xen/sys-hypervisor.c return sysfs_create_file(hypervisor_kobj, &type_attr.attr); attr 50 drivers/xen/sys-hypervisor.c static ssize_t guest_type_show(struct hyp_sysfs_attr *attr, char *buffer) attr 76 drivers/xen/sys-hypervisor.c return sysfs_create_file(hypervisor_kobj, &guest_type_attr.attr); attr 80 drivers/xen/sys-hypervisor.c static ssize_t major_show(struct hyp_sysfs_attr *attr, char *buffer) attr 90 drivers/xen/sys-hypervisor.c static ssize_t minor_show(struct hyp_sysfs_attr *attr, char *buffer) attr 100 drivers/xen/sys-hypervisor.c static ssize_t extra_show(struct hyp_sysfs_attr *attr, char *buffer) attr 119 drivers/xen/sys-hypervisor.c &major_attr.attr, attr 120 drivers/xen/sys-hypervisor.c &minor_attr.attr, attr 121 drivers/xen/sys-hypervisor.c &extra_attr.attr, attr 137 drivers/xen/sys-hypervisor.c static ssize_t uuid_show_fallback(struct hyp_sysfs_attr *attr, char *buffer) attr 158 drivers/xen/sys-hypervisor.c static ssize_t uuid_show(struct hyp_sysfs_attr *attr, char *buffer) attr 164 drivers/xen/sys-hypervisor.c return uuid_show_fallback(attr, buffer); attr 173 drivers/xen/sys-hypervisor.c return sysfs_create_file(hypervisor_kobj, &uuid_attr.attr); attr 178 drivers/xen/sys-hypervisor.c static ssize_t compiler_show(struct hyp_sysfs_attr *attr, char *buffer) attr 196 drivers/xen/sys-hypervisor.c static ssize_t compiled_by_show(struct hyp_sysfs_attr *attr, char *buffer) attr 214 drivers/xen/sys-hypervisor.c static ssize_t compile_date_show(struct hyp_sysfs_attr *attr, char *buffer) attr 233 drivers/xen/sys-hypervisor.c &compiler_attr.attr, attr 234 drivers/xen/sys-hypervisor.c &compiled_by_attr.attr, attr 235 drivers/xen/sys-hypervisor.c &compile_date_attr.attr, attr 251 drivers/xen/sys-hypervisor.c static ssize_t capabilities_show(struct hyp_sysfs_attr *attr, char *buffer) attr 269 drivers/xen/sys-hypervisor.c static ssize_t changeset_show(struct hyp_sysfs_attr *attr, char *buffer) attr 287 drivers/xen/sys-hypervisor.c static ssize_t virtual_start_show(struct hyp_sysfs_attr *attr, char *buffer) attr 307 drivers/xen/sys-hypervisor.c static ssize_t pagesize_show(struct hyp_sysfs_attr *attr, char *buffer) attr 333 drivers/xen/sys-hypervisor.c static ssize_t features_show(struct hyp_sysfs_attr *attr, char *buffer) attr 356 drivers/xen/sys-hypervisor.c static ssize_t buildid_show(struct hyp_sysfs_attr *attr, char *buffer) attr 384 drivers/xen/sys-hypervisor.c &capabilities_attr.attr, attr 385 drivers/xen/sys-hypervisor.c &changeset_attr.attr, attr 386 drivers/xen/sys-hypervisor.c &virtual_start_attr.attr, attr 387 drivers/xen/sys-hypervisor.c &pagesize_attr.attr, attr 388 drivers/xen/sys-hypervisor.c &features_attr.attr, attr 389 drivers/xen/sys-hypervisor.c &buildid_attr.attr, attr 416 drivers/xen/sys-hypervisor.c static ssize_t pmu_mode_store(struct hyp_sysfs_attr *attr, attr 442 drivers/xen/sys-hypervisor.c static ssize_t pmu_mode_show(struct hyp_sysfs_attr *attr, char *buffer) attr 465 drivers/xen/sys-hypervisor.c static ssize_t pmu_features_store(struct hyp_sysfs_attr *attr, attr 486 drivers/xen/sys-hypervisor.c static ssize_t pmu_features_show(struct hyp_sysfs_attr *attr, char *buffer) attr 502 drivers/xen/sys-hypervisor.c &pmu_mode_attr.attr, attr 503 drivers/xen/sys-hypervisor.c &pmu_features_attr.attr, attr 556 drivers/xen/sys-hypervisor.c sysfs_remove_file(hypervisor_kobj, &uuid_attr.attr); attr 562 drivers/xen/sys-hypervisor.c sysfs_remove_file(hypervisor_kobj, &guest_type_attr.attr); attr 564 drivers/xen/sys-hypervisor.c sysfs_remove_file(hypervisor_kobj, &type_attr.attr); attr 571 drivers/xen/sys-hypervisor.c struct attribute *attr, attr 575 drivers/xen/sys-hypervisor.c hyp_attr = container_of(attr, struct hyp_sysfs_attr, attr); attr 582 drivers/xen/sys-hypervisor.c struct attribute *attr, attr 587 drivers/xen/sys-hypervisor.c hyp_attr = container_of(attr, struct hyp_sysfs_attr, attr); attr 138 drivers/xen/xen-balloon.c struct device_attribute *attr, \ attr 155 drivers/xen/xen-balloon.c static ssize_t show_target_kb(struct device *dev, struct device_attribute *attr, attr 162 drivers/xen/xen-balloon.c struct device_attribute *attr, attr 183 drivers/xen/xen-balloon.c static ssize_t show_target(struct device *dev, struct device_attribute *attr, attr 192 drivers/xen/xen-balloon.c struct device_attribute *attr, attr 214 drivers/xen/xen-balloon.c &dev_attr_target_kb.attr, attr 215 drivers/xen/xen-balloon.c &dev_attr_target.attr, attr 216 drivers/xen/xen-balloon.c &dev_attr_schedule_delay.attr.attr, attr 217 drivers/xen/xen-balloon.c &dev_attr_max_schedule_delay.attr.attr, attr 218 drivers/xen/xen-balloon.c &dev_attr_retry_count.attr.attr, attr 219 drivers/xen/xen-balloon.c &dev_attr_max_retry_count.attr.attr, attr 220 drivers/xen/xen-balloon.c &dev_attr_scrub_pages.attr.attr, attr 229 drivers/xen/xen-balloon.c &dev_attr_current_kb.attr, attr 230 drivers/xen/xen-balloon.c &dev_attr_low_kb.attr, attr 231 drivers/xen/xen-balloon.c &dev_attr_high_kb.attr, attr 384 drivers/xen/xenbus/xenbus_probe.c struct device_attribute *attr, char *buf) attr 391 drivers/xen/xenbus/xenbus_probe.c struct device_attribute *attr, char *buf) attr 398 drivers/xen/xenbus/xenbus_probe.c struct device_attribute *attr, char *buf) attr 406 drivers/xen/xenbus/xenbus_probe.c struct device_attribute *attr, char *buf) attr 414 drivers/xen/xenbus/xenbus_probe.c &dev_attr_nodename.attr, attr 415 drivers/xen/xenbus/xenbus_probe.c &dev_attr_devtype.attr, attr 416 drivers/xen/xenbus/xenbus_probe.c &dev_attr_modalias.attr, attr 417 drivers/xen/xenbus/xenbus_probe.c &dev_attr_state.attr, attr 27 drivers/zorro/zorro-sysfs.c struct device_attribute *attr, char *buf) \ attr 41 drivers/zorro/zorro-sysfs.c static ssize_t serial_show(struct device *dev, struct device_attribute *attr, attr 51 drivers/zorro/zorro-sysfs.c static ssize_t resource_show(struct device *dev, struct device_attribute *attr, attr 63 drivers/zorro/zorro-sysfs.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 73 drivers/zorro/zorro-sysfs.c &dev_attr_id.attr, attr 74 drivers/zorro/zorro-sysfs.c &dev_attr_type.attr, attr 75 drivers/zorro/zorro-sysfs.c &dev_attr_serial.attr, attr 76 drivers/zorro/zorro-sysfs.c &dev_attr_slotaddr.attr, attr 77 drivers/zorro/zorro-sysfs.c &dev_attr_slotsize.attr, attr 78 drivers/zorro/zorro-sysfs.c &dev_attr_resource.attr, attr 79 drivers/zorro/zorro-sysfs.c &dev_attr_modalias.attr, attr 102 drivers/zorro/zorro-sysfs.c .attr = { attr 553 fs/9p/v9fs.c struct kobj_attribute *attr, attr 582 fs/9p/v9fs.c &v9fs_attr_cache.attr, attr 39 fs/adfs/adfs.h unsigned int attr; /* RISC OS permissions */ attr 117 fs/adfs/adfs.h __u8 attr; /* RISC OS attributes */ attr 144 fs/adfs/adfs.h int adfs_notify_change(struct dentry *dentry, struct iattr *attr); attr 42 fs/adfs/dir.c if (!(obj->attr & ADFS_NDA_DIRECTORY) && ADFS_SB(dir->sb)->s_ftsuffix) { attr 210 fs/adfs/dir_f.c obj->attr = de->newdiratts; attr 225 fs/adfs/dir_f.c de->newdiratts = obj->attr; attr 181 fs/adfs/dir_fplus.c obj->attr = le32_to_cpu(bde.bigdirattr); attr 88 fs/adfs/inode.c unsigned int attr = ADFS_I(inode)->attr; attr 92 fs/adfs/inode.c if (attr & ADFS_NDA_DIRECTORY) { attr 111 fs/adfs/inode.c if (attr & ADFS_NDA_OWNER_READ) attr 114 fs/adfs/inode.c if (attr & ADFS_NDA_OWNER_WRITE) attr 117 fs/adfs/inode.c if (attr & ADFS_NDA_PUBLIC_READ) attr 120 fs/adfs/inode.c if (attr & ADFS_NDA_PUBLIC_WRITE) attr 133 fs/adfs/inode.c int attr; attr 138 fs/adfs/inode.c return ADFS_I(inode)->attr; attr 141 fs/adfs/inode.c attr = ADFS_NDA_DIRECTORY; attr 143 fs/adfs/inode.c attr = 0; attr 147 fs/adfs/inode.c attr |= ADFS_NDA_OWNER_READ; attr 149 fs/adfs/inode.c attr |= ADFS_NDA_OWNER_WRITE; attr 154 fs/adfs/inode.c attr |= ADFS_NDA_PUBLIC_READ; attr 156 fs/adfs/inode.c attr |= ADFS_NDA_PUBLIC_WRITE; attr 158 fs/adfs/inode.c return attr; attr 265 fs/adfs/inode.c ADFS_I(inode)->attr = obj->attr; attr 294 fs/adfs/inode.c adfs_notify_change(struct dentry *dentry, struct iattr *attr) attr 298 fs/adfs/inode.c unsigned int ia_valid = attr->ia_valid; attr 301 fs/adfs/inode.c error = setattr_prepare(dentry, attr); attr 307 fs/adfs/inode.c if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, ADFS_SB(sb)->s_uid)) || attr 308 fs/adfs/inode.c (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid))) attr 316 fs/adfs/inode.c truncate_setsize(inode, attr->ia_size); attr 319 fs/adfs/inode.c inode->i_mtime = attr->ia_mtime; attr 320 fs/adfs/inode.c adfs_unix2adfs_time(inode, attr->ia_mtime.tv_sec); attr 327 fs/adfs/inode.c inode->i_atime = attr->ia_atime; attr 329 fs/adfs/inode.c inode->i_ctime = attr->ia_ctime; attr 331 fs/adfs/inode.c ADFS_I(inode)->attr = adfs_mode2atts(sb, inode); attr 361 fs/adfs/inode.c obj.attr = ADFS_I(inode)->attr; attr 488 fs/adfs/super.c root_obj.attr = ADFS_NDA_DIRECTORY | ADFS_NDA_OWNER_READ | attr 184 fs/affs/affs.h extern int affs_notify_change(struct dentry *dentry, struct iattr *attr); attr 219 fs/affs/inode.c affs_notify_change(struct dentry *dentry, struct iattr *attr) attr 224 fs/affs/inode.c pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid); attr 226 fs/affs/inode.c error = setattr_prepare(dentry, attr); attr 230 fs/affs/inode.c if (((attr->ia_valid & ATTR_UID) && attr 232 fs/affs/inode.c ((attr->ia_valid & ATTR_GID) && attr 234 fs/affs/inode.c ((attr->ia_valid & ATTR_MODE) && attr 242 fs/affs/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 243 fs/affs/inode.c attr->ia_size != i_size_read(inode)) { attr 244 fs/affs/inode.c error = inode_newsize_ok(inode, attr->ia_size); attr 248 fs/affs/inode.c truncate_setsize(inode, attr->ia_size); attr 252 fs/affs/inode.c setattr_copy(inode, attr); attr 255 fs/affs/inode.c if (attr->ia_valid & ATTR_MODE) attr 183 fs/afs/fsclient.c static void xdr_encode_AFS_StoreStatus(__be32 **_bp, struct iattr *attr) attr 189 fs/afs/fsclient.c if (attr->ia_valid & ATTR_MTIME) { attr 191 fs/afs/fsclient.c mtime = attr->ia_mtime.tv_sec; attr 194 fs/afs/fsclient.c if (attr->ia_valid & ATTR_UID) { attr 196 fs/afs/fsclient.c owner = from_kuid(&init_user_ns, attr->ia_uid); attr 199 fs/afs/fsclient.c if (attr->ia_valid & ATTR_GID) { attr 201 fs/afs/fsclient.c group = from_kgid(&init_user_ns, attr->ia_gid); attr 204 fs/afs/fsclient.c if (attr->ia_valid & ATTR_MODE) { attr 206 fs/afs/fsclient.c mode = attr->ia_mode & S_IALLUGO; attr 1325 fs/afs/fsclient.c static int afs_fs_setattr_size64(struct afs_fs_cursor *fc, struct iattr *attr, attr 1336 fs/afs/fsclient.c ASSERT(attr->ia_valid & ATTR_SIZE); attr 1354 fs/afs/fsclient.c xdr_encode_AFS_StoreStatus(&bp, attr); attr 1356 fs/afs/fsclient.c *bp++ = htonl(attr->ia_size >> 32); /* position of start of write */ attr 1357 fs/afs/fsclient.c *bp++ = htonl((u32) attr->ia_size); attr 1360 fs/afs/fsclient.c *bp++ = htonl(attr->ia_size >> 32); /* new file length */ attr 1361 fs/afs/fsclient.c *bp++ = htonl((u32) attr->ia_size); attr 1374 fs/afs/fsclient.c static int afs_fs_setattr_size(struct afs_fs_cursor *fc, struct iattr *attr, attr 1385 fs/afs/fsclient.c ASSERT(attr->ia_valid & ATTR_SIZE); attr 1386 fs/afs/fsclient.c if (attr->ia_size >> 32) attr 1387 fs/afs/fsclient.c return afs_fs_setattr_size64(fc, attr, scb); attr 1405 fs/afs/fsclient.c xdr_encode_AFS_StoreStatus(&bp, attr); attr 1407 fs/afs/fsclient.c *bp++ = htonl(attr->ia_size); /* position of start of write */ attr 1409 fs/afs/fsclient.c *bp++ = htonl(attr->ia_size); /* new file length */ attr 1422 fs/afs/fsclient.c int afs_fs_setattr(struct afs_fs_cursor *fc, struct iattr *attr, attr 1431 fs/afs/fsclient.c return yfs_fs_setattr(fc, attr, scb); attr 1433 fs/afs/fsclient.c if (attr->ia_valid & ATTR_SIZE) attr 1434 fs/afs/fsclient.c return afs_fs_setattr_size(fc, attr, scb); attr 1455 fs/afs/fsclient.c xdr_encode_AFS_StoreStatus(&bp, attr); attr 815 fs/afs/inode.c int afs_setattr(struct dentry *dentry, struct iattr *attr) attr 825 fs/afs/inode.c attr->ia_valid); attr 827 fs/afs/inode.c if (!(attr->ia_valid & (ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID | attr 841 fs/afs/inode.c if (attr->ia_valid & ATTR_FILE) { attr 842 fs/afs/inode.c key = afs_file_key(attr->ia_file); attr 855 fs/afs/inode.c if (attr->ia_valid & ATTR_SIZE) attr 860 fs/afs/inode.c afs_fs_setattr(&fc, attr, scb); attr 869 fs/afs/inode.c if (!(attr->ia_valid & ATTR_FILE)) attr 275 fs/afs/yfsclient.c static __be32 *xdr_encode_YFS_StoreStatus(__be32 *bp, struct iattr *attr) attr 282 fs/afs/yfsclient.c if (attr->ia_valid & ATTR_MTIME) { attr 284 fs/afs/yfsclient.c mtime = linux_to_yfs_time(&attr->ia_mtime); attr 287 fs/afs/yfsclient.c if (attr->ia_valid & ATTR_UID) { attr 289 fs/afs/yfsclient.c owner = from_kuid(&init_user_ns, attr->ia_uid); attr 292 fs/afs/yfsclient.c if (attr->ia_valid & ATTR_GID) { attr 294 fs/afs/yfsclient.c group = from_kgid(&init_user_ns, attr->ia_gid); attr 297 fs/afs/yfsclient.c if (attr->ia_valid & ATTR_MODE) { attr 299 fs/afs/yfsclient.c mode = attr->ia_mode & S_IALLUGO; attr 1334 fs/afs/yfsclient.c static int yfs_fs_setattr_size(struct afs_fs_cursor *fc, struct iattr *attr, attr 1363 fs/afs/yfsclient.c bp = xdr_encode_YFS_StoreStatus(bp, attr); attr 1364 fs/afs/yfsclient.c bp = xdr_encode_u64(bp, attr->ia_size); /* position of start of write */ attr 1366 fs/afs/yfsclient.c bp = xdr_encode_u64(bp, attr->ia_size); /* new file length */ attr 1380 fs/afs/yfsclient.c int yfs_fs_setattr(struct afs_fs_cursor *fc, struct iattr *attr, attr 1388 fs/afs/yfsclient.c if (attr->ia_valid & ATTR_SIZE) attr 1389 fs/afs/yfsclient.c return yfs_fs_setattr_size(fc, attr, scb); attr 1411 fs/afs/yfsclient.c bp = xdr_encode_YFS_StoreStatus(bp, attr); attr 61 fs/attr.c int setattr_prepare(struct dentry *dentry, struct iattr *attr) attr 64 fs/attr.c unsigned int ia_valid = attr->ia_valid; attr 71 fs/attr.c int error = inode_newsize_ok(inode, attr->ia_size); attr 81 fs/attr.c if ((ia_valid & ATTR_UID) && !chown_ok(inode, attr->ia_uid)) attr 85 fs/attr.c if ((ia_valid & ATTR_GID) && !chgrp_ok(inode, attr->ia_gid)) attr 93 fs/attr.c if (!in_group_p((ia_valid & ATTR_GID) ? attr->ia_gid : attr 96 fs/attr.c attr->ia_mode &= ~S_ISGID; attr 178 fs/attr.c void setattr_copy(struct inode *inode, const struct iattr *attr) attr 180 fs/attr.c unsigned int ia_valid = attr->ia_valid; attr 183 fs/attr.c inode->i_uid = attr->ia_uid; attr 185 fs/attr.c inode->i_gid = attr->ia_gid; attr 187 fs/attr.c inode->i_atime = attr->ia_atime; attr 189 fs/attr.c inode->i_mtime = attr->ia_mtime; attr 191 fs/attr.c inode->i_ctime = attr->ia_ctime; attr 193 fs/attr.c umode_t mode = attr->ia_mode; attr 223 fs/attr.c int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) attr 229 fs/attr.c unsigned int ia_valid = attr->ia_valid; attr 254 fs/attr.c umode_t amode = attr->ia_mode; attr 262 fs/attr.c attr->ia_ctime = now; attr 264 fs/attr.c attr->ia_atime = now; attr 266 fs/attr.c attr->ia_atime = timestamp_truncate(attr->ia_atime, inode); attr 268 fs/attr.c attr->ia_mtime = now; attr 270 fs/attr.c attr->ia_mtime = timestamp_truncate(attr->ia_mtime, inode); attr 277 fs/attr.c ia_valid = attr->ia_valid &= ~ATTR_KILL_PRIV; attr 293 fs/attr.c ia_valid = attr->ia_valid |= ATTR_MODE; attr 294 fs/attr.c attr->ia_mode = (inode->i_mode & ~S_ISUID); attr 300 fs/attr.c ia_valid = attr->ia_valid |= ATTR_MODE; attr 301 fs/attr.c attr->ia_mode = inode->i_mode; attr 303 fs/attr.c attr->ia_mode &= ~S_ISGID; attr 306 fs/attr.c if (!(attr->ia_valid & ~(ATTR_KILL_SUID | ATTR_KILL_SGID))) attr 314 fs/attr.c !kuid_has_mapping(inode->i_sb->s_user_ns, attr->ia_uid)) attr 317 fs/attr.c !kgid_has_mapping(inode->i_sb->s_user_ns, attr->ia_gid)) attr 328 fs/attr.c error = security_inode_setattr(dentry, attr); attr 336 fs/attr.c error = inode->i_op->setattr(dentry, attr); attr 338 fs/attr.c error = simple_setattr(dentry, attr); attr 80 fs/btrfs/inode.c static int btrfs_setsize(struct inode *inode, struct iattr *attr); attr 5294 fs/btrfs/inode.c static int btrfs_setsize(struct inode *inode, struct iattr *attr) attr 5299 fs/btrfs/inode.c loff_t newsize = attr->ia_size; attr 5300 fs/btrfs/inode.c int mask = attr->ia_valid; attr 5381 fs/btrfs/inode.c static int btrfs_setattr(struct dentry *dentry, struct iattr *attr) attr 5390 fs/btrfs/inode.c err = setattr_prepare(dentry, attr); attr 5394 fs/btrfs/inode.c if (S_ISREG(inode->i_mode) && (attr->ia_valid & ATTR_SIZE)) { attr 5395 fs/btrfs/inode.c err = btrfs_setsize(inode, attr); attr 5400 fs/btrfs/inode.c if (attr->ia_valid) { attr 5401 fs/btrfs/inode.c setattr_copy(inode, attr); attr 5405 fs/btrfs/inode.c if (!err && attr->ia_valid & ATTR_MODE) attr 576 fs/btrfs/send.c static int tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len) attr 586 fs/btrfs/send.c hdr->tlv_type = cpu_to_le16(attr); attr 596 fs/btrfs/send.c u##bits attr, u##bits value) \ attr 599 fs/btrfs/send.c return tlv_put(sctx, attr, &__tmp, sizeof(__tmp)); \ attr 604 fs/btrfs/send.c static int tlv_put_string(struct send_ctx *sctx, u16 attr, attr 609 fs/btrfs/send.c return tlv_put(sctx, attr, str, len); attr 612 fs/btrfs/send.c static int tlv_put_uuid(struct send_ctx *sctx, u16 attr, attr 615 fs/btrfs/send.c return tlv_put(sctx, attr, uuid, BTRFS_UUID_SIZE); attr 618 fs/btrfs/send.c static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr, attr 624 fs/btrfs/send.c return tlv_put(sctx, attr, &bts, sizeof(bts)); attr 35 fs/btrfs/sysfs.c .attr = { .name = __stringify(_name), .mode = _mode }, \ attr 49 fs/btrfs/sysfs.c (&btrfs_attr_##_prefix##_##_name.attr) attr 60 fs/btrfs/sysfs.c (&btrfs_attr_features_##_name.kobj_attr.attr) attr 77 fs/btrfs/sysfs.c static struct kobj_attribute *attr_to_btrfs_attr(struct attribute *attr) attr 79 fs/btrfs/sysfs.c return container_of(attr, struct kobj_attribute, attr); attr 83 fs/btrfs/sysfs.c struct attribute *attr) attr 85 fs/btrfs/sysfs.c return to_btrfs_feature_attr(attr_to_btrfs_attr(attr)); attr 202 fs/btrfs/sysfs.c val ? "En" : "Dis", fa->kobj_attr.attr.name); attr 207 fs/btrfs/sysfs.c val ? "Setting" : "Clearing", fa->kobj_attr.attr.name); attr 228 fs/btrfs/sysfs.c struct attribute *attr, int unused) attr 231 fs/btrfs/sysfs.c umode_t mode = attr->mode; attr 237 fs/btrfs/sysfs.c fa = attr_to_btrfs_feature_attr(attr); attr 366 fs/btrfs/sysfs.c struct kobj_attribute *attr, char *buf); attr 371 fs/btrfs/sysfs.c struct kobj_attribute *attr, char *buf) attr 381 fs/btrfs/sysfs.c if (&attr->attr == BTRFS_ATTR_PTR(raid, total_bytes)) attr 680 fs/btrfs/sysfs.c attrs[0] = &fa->kobj_attr.attr; attr 769 fs/btrfs/sysfs.c name = btrfs_feature_attrs[set][i].kobj_attr.attr.name; attr 799 fs/btrfs/sysfs.c fa->kobj_attr.attr.name = sfa->kobj_attr.attr.name; attr 807 fs/btrfs/sysfs.c if (fa->kobj_attr.attr.name) attr 813 fs/btrfs/sysfs.c fa->kobj_attr.attr.name = name; attr 814 fs/btrfs/sysfs.c fa->kobj_attr.attr.mode = S_IRUGO; attr 1990 fs/ceph/inode.c int __ceph_setattr(struct inode *inode, struct iattr *attr) attr 1993 fs/ceph/inode.c unsigned int ia_valid = attr->ia_valid; attr 2034 fs/ceph/inode.c from_kuid(&init_user_ns, attr->ia_uid)); attr 2036 fs/ceph/inode.c inode->i_uid = attr->ia_uid; attr 2039 fs/ceph/inode.c !uid_eq(attr->ia_uid, inode->i_uid)) { attr 2041 fs/ceph/inode.c from_kuid(&init_user_ns, attr->ia_uid)); attr 2049 fs/ceph/inode.c from_kgid(&init_user_ns, attr->ia_gid)); attr 2051 fs/ceph/inode.c inode->i_gid = attr->ia_gid; attr 2054 fs/ceph/inode.c !gid_eq(attr->ia_gid, inode->i_gid)) { attr 2056 fs/ceph/inode.c from_kgid(&init_user_ns, attr->ia_gid)); attr 2063 fs/ceph/inode.c attr->ia_mode); attr 2065 fs/ceph/inode.c inode->i_mode = attr->ia_mode; attr 2068 fs/ceph/inode.c attr->ia_mode != inode->i_mode) { attr 2069 fs/ceph/inode.c inode->i_mode = attr->ia_mode; attr 2070 fs/ceph/inode.c req->r_args.setattr.mode = cpu_to_le32(attr->ia_mode); attr 2079 fs/ceph/inode.c attr->ia_atime.tv_sec, attr->ia_atime.tv_nsec); attr 2082 fs/ceph/inode.c inode->i_atime = attr->ia_atime; attr 2086 fs/ceph/inode.c &attr->ia_atime) < 0) { attr 2087 fs/ceph/inode.c inode->i_atime = attr->ia_atime; attr 2090 fs/ceph/inode.c !timespec64_equal(&inode->i_atime, &attr->ia_atime)) { attr 2092 fs/ceph/inode.c &attr->ia_atime); attr 2100 fs/ceph/inode.c inode->i_size, attr->ia_size); attr 2102 fs/ceph/inode.c attr->ia_size > inode->i_size) { attr 2103 fs/ceph/inode.c i_size_write(inode, attr->ia_size); attr 2104 fs/ceph/inode.c inode->i_blocks = calc_inode_blocks(attr->ia_size); attr 2105 fs/ceph/inode.c ci->i_reported_size = attr->ia_size; attr 2109 fs/ceph/inode.c attr->ia_size != inode->i_size) { attr 2110 fs/ceph/inode.c req->r_args.setattr.size = cpu_to_le64(attr->ia_size); attr 2121 fs/ceph/inode.c attr->ia_mtime.tv_sec, attr->ia_mtime.tv_nsec); attr 2124 fs/ceph/inode.c inode->i_mtime = attr->ia_mtime; attr 2128 fs/ceph/inode.c &attr->ia_mtime) < 0) { attr 2129 fs/ceph/inode.c inode->i_mtime = attr->ia_mtime; attr 2132 fs/ceph/inode.c !timespec64_equal(&inode->i_mtime, &attr->ia_mtime)) { attr 2134 fs/ceph/inode.c &attr->ia_mtime); attr 2147 fs/ceph/inode.c attr->ia_ctime.tv_sec, attr->ia_ctime.tv_nsec, attr 2171 fs/ceph/inode.c inode->i_ctime = attr->ia_ctime; attr 2189 fs/ceph/inode.c req->r_stamp = attr->ia_ctime; attr 2207 fs/ceph/inode.c int ceph_setattr(struct dentry *dentry, struct iattr *attr) attr 2216 fs/ceph/inode.c err = setattr_prepare(dentry, attr); attr 2220 fs/ceph/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 2221 fs/ceph/inode.c attr->ia_size > max(inode->i_size, fsc->max_file_size)) attr 2224 fs/ceph/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 2225 fs/ceph/inode.c ceph_quota_is_max_bytes_exceeded(inode, attr->ia_size)) attr 2228 fs/ceph/inode.c err = __ceph_setattr(inode, attr); attr 2230 fs/ceph/inode.c if (err >= 0 && (attr->ia_valid & ATTR_MODE)) attr 2231 fs/ceph/inode.c err = posix_acl_chmod(inode, attr->ia_mode); attr 933 fs/ceph/super.h extern int __ceph_setattr(struct inode *inode, struct iattr *attr); attr 934 fs/ceph/super.h extern int ceph_setattr(struct dentry *dentry, struct iattr *attr); attr 1261 fs/cifs/cifspdu.h __le16 attr; attr 1270 fs/cifs/cifspdu.h __le16 attr; attr 4173 fs/cifs/cifssmb.c cpu_to_le32(le16_to_cpu(pSMBr->attr)); attr 5989 fs/cifs/cifssmb.c pSMB->attr = cpu_to_le16(dos_attrs); attr 26 fs/coda/cnode.c static void coda_fill_inode(struct inode *inode, struct coda_vattr *attr) attr 28 fs/coda/cnode.c coda_vattr_to_iattr(inode, attr); attr 42 fs/coda/cnode.c init_special_inode(inode, inode->i_mode, huge_decode_dev(attr->va_rdev)); attr 61 fs/coda/cnode.c struct coda_vattr * attr) attr 82 fs/coda/cnode.c coda_fill_inode(inode, attr); attr 94 fs/coda/cnode.c struct coda_vattr attr; attr 99 fs/coda/cnode.c error = venus_getattr(sb, fid, &attr); attr 103 fs/coda/cnode.c inode = coda_iget(sb, fid, &attr); attr 53 fs/coda/coda_fs_i.h struct inode *coda_iget(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr); attr 90 fs/coda/coda_linux.c void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr) attr 96 fs/coda/coda_linux.c switch (attr->va_type) { attr 114 fs/coda/coda_linux.c if (attr->va_mode != (u_short) -1) attr 115 fs/coda/coda_linux.c inode->i_mode = attr->va_mode | inode_type; attr 116 fs/coda/coda_linux.c if (attr->va_uid != -1) attr 117 fs/coda/coda_linux.c inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid); attr 118 fs/coda/coda_linux.c if (attr->va_gid != -1) attr 119 fs/coda/coda_linux.c inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); attr 120 fs/coda/coda_linux.c if (attr->va_nlink != -1) attr 121 fs/coda/coda_linux.c set_nlink(inode, attr->va_nlink); attr 122 fs/coda/coda_linux.c if (attr->va_size != -1) attr 123 fs/coda/coda_linux.c inode->i_size = attr->va_size; attr 124 fs/coda/coda_linux.c if (attr->va_size != -1) attr 125 fs/coda/coda_linux.c inode->i_blocks = (attr->va_size + 511) >> 9; attr 126 fs/coda/coda_linux.c if (attr->va_atime.tv_sec != -1) attr 127 fs/coda/coda_linux.c inode->i_atime = coda_to_timespec64(attr->va_atime); attr 128 fs/coda/coda_linux.c if (attr->va_mtime.tv_sec != -1) attr 129 fs/coda/coda_linux.c inode->i_mtime = coda_to_timespec64(attr->va_mtime); attr 130 fs/coda/coda_linux.c if (attr->va_ctime.tv_sec != -1) attr 131 fs/coda/coda_linux.c inode->i_ctime = coda_to_timespec64(attr->va_ctime); attr 50 fs/coda/coda_psdev.h struct coda_vattr *attr); attr 520 fs/coda/dir.c struct coda_vattr attr; attr 530 fs/coda/dir.c error = venus_getattr(inode->i_sb, &(cii->c_fid), &attr); attr 541 fs/coda/dir.c coda_vattr_to_iattr(inode, &attr); attr 93 fs/coda/upcall.c struct coda_vattr *attr) attr 105 fs/coda/upcall.c *attr = outp->coda_getattr.attr; attr 122 fs/coda/upcall.c inp->coda_setattr.attr = *vattr; attr 215 fs/coda/upcall.c inp->coda_mkdir.attr = *attrs; attr 223 fs/coda/upcall.c *attrs = outp->coda_mkdir.attr; attr 283 fs/coda/upcall.c inp->coda_create.attr.va_mode = mode; attr 294 fs/coda/upcall.c *attrs = outp->coda_create.attr; attr 116 fs/configfs/configfs_internal.h struct configfs_attribute *attr = to_attr(dentry); attr 118 fs/configfs/configfs_internal.h return container_of(attr, struct configfs_bin_attribute, cb_attr); attr 427 fs/configfs/dir.c struct configfs_attribute * attr = sd->s_element; attr 435 fs/configfs/dir.c inode = configfs_create(dentry, (attr->ca_mode & S_IALLUGO) | S_IFREG); attr 599 fs/configfs/dir.c struct configfs_attribute *attr; attr 607 fs/configfs/dir.c for (i = 0; (attr = t->ct_attrs[i]) != NULL; i++) { attr 608 fs/configfs/dir.c if ((error = configfs_create_file(item, attr))) attr 46 fs/configfs/file.c struct configfs_attribute *attr; attr 70 fs/configfs/file.c count = buffer->attr->show(buffer->item, buffer->page); attr 251 fs/configfs/file.c res = buffer->attr->store(buffer->item, buffer->page, count); attr 360 fs/configfs/file.c struct configfs_attribute *attr; attr 379 fs/configfs/file.c attr = to_attr(dentry); attr 380 fs/configfs/file.c if (!attr) attr 387 fs/configfs/file.c buffer->attr = attr; attr 390 fs/configfs/file.c buffer->owner = attr->ca_owner; attr 409 fs/configfs/file.c if ((type & CONFIGFS_ITEM_ATTR) && !attr->store) attr 422 fs/configfs/file.c if ((type & CONFIGFS_ITEM_ATTR) && !attr->show) attr 521 fs/configfs/file.c int configfs_create_file(struct config_item * item, const struct configfs_attribute * attr) attr 525 fs/configfs/file.c umode_t mode = (attr->ca_mode & S_IALLUGO) | S_IFREG; attr 529 fs/configfs/file.c error = configfs_make_dirent(parent_sd, NULL, (void *) attr, mode, attr 192 fs/configfs/inode.c struct configfs_attribute *attr; attr 201 fs/configfs/inode.c attr = sd->s_element; attr 202 fs/configfs/inode.c return attr->ca_name; attr 115 fs/dlm/lockspace.c struct attribute attr; attr 121 fs/dlm/lockspace.c .attr = {.name = "control", .mode = S_IWUSR}, attr 126 fs/dlm/lockspace.c .attr = {.name = "event_done", .mode = S_IWUSR}, attr 131 fs/dlm/lockspace.c .attr = {.name = "id", .mode = S_IRUGO | S_IWUSR}, attr 137 fs/dlm/lockspace.c .attr = {.name = "nodir", .mode = S_IRUGO | S_IWUSR}, attr 143 fs/dlm/lockspace.c .attr = {.name = "recover_status", .mode = S_IRUGO}, attr 148 fs/dlm/lockspace.c .attr = {.name = "recover_nodeid", .mode = S_IRUGO}, attr 153 fs/dlm/lockspace.c &dlm_attr_control.attr, attr 154 fs/dlm/lockspace.c &dlm_attr_event.attr, attr 155 fs/dlm/lockspace.c &dlm_attr_id.attr, attr 156 fs/dlm/lockspace.c &dlm_attr_nodir.attr, attr 157 fs/dlm/lockspace.c &dlm_attr_recover_status.attr, attr 158 fs/dlm/lockspace.c &dlm_attr_recover_nodeid.attr, attr 163 fs/dlm/lockspace.c static ssize_t dlm_attr_show(struct kobject *kobj, struct attribute *attr, attr 167 fs/dlm/lockspace.c struct dlm_attr *a = container_of(attr, struct dlm_attr, attr); attr 171 fs/dlm/lockspace.c static ssize_t dlm_attr_store(struct kobject *kobj, struct attribute *attr, attr 175 fs/dlm/lockspace.c struct dlm_attr *a = container_of(attr, struct dlm_attr, attr); attr 758 fs/ecryptfs/main.c struct kobj_attribute *attr, char *buff) attr 766 fs/ecryptfs/main.c &version_attr.attr, attr 5541 fs/ext4/inode.c int ext4_setattr(struct dentry *dentry, struct iattr *attr) attr 5546 fs/ext4/inode.c const unsigned int ia_valid = attr->ia_valid; attr 5559 fs/ext4/inode.c error = setattr_prepare(dentry, attr); attr 5563 fs/ext4/inode.c error = fscrypt_prepare_setattr(dentry, attr); attr 5567 fs/ext4/inode.c error = fsverity_prepare_setattr(dentry, attr); attr 5571 fs/ext4/inode.c if (is_quota_modification(inode, attr)) { attr 5576 fs/ext4/inode.c if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, inode->i_uid)) || attr 5577 fs/ext4/inode.c (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, inode->i_gid))) { attr 5594 fs/ext4/inode.c error = dquot_transfer(inode, attr); attr 5603 fs/ext4/inode.c if (attr->ia_valid & ATTR_UID) attr 5604 fs/ext4/inode.c inode->i_uid = attr->ia_uid; attr 5605 fs/ext4/inode.c if (attr->ia_valid & ATTR_GID) attr 5606 fs/ext4/inode.c inode->i_gid = attr->ia_gid; attr 5611 fs/ext4/inode.c if (attr->ia_valid & ATTR_SIZE) { attr 5614 fs/ext4/inode.c int shrink = (attr->ia_size < inode->i_size); attr 5619 fs/ext4/inode.c if (attr->ia_size > sbi->s_bitmap_maxbytes) attr 5625 fs/ext4/inode.c if (IS_I_VERSION(inode) && attr->ia_size != inode->i_size) attr 5631 fs/ext4/inode.c attr->ia_size); attr 5650 fs/ext4/inode.c if (attr->ia_size != inode->i_size) { attr 5669 fs/ext4/inode.c EXT4_I(inode)->i_disksize = attr->ia_size; attr 5679 fs/ext4/inode.c i_size_write(inode, attr->ia_size); attr 5701 fs/ext4/inode.c if (attr->ia_size <= oldsize) { attr 5711 fs/ext4/inode.c setattr_copy(inode, attr); attr 46 fs/ext4/sysfs.c struct attribute attr; attr 139 fs/ext4/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 149 fs/ext4/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 165 fs/ext4/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 173 fs/ext4/sysfs.c #define ATTR_LIST(name) &ext4_attr_##name.attr attr 291 fs/ext4/sysfs.c struct attribute *attr, char *buf) attr 295 fs/ext4/sysfs.c struct ext4_attr *a = container_of(attr, struct ext4_attr, attr); attr 340 fs/ext4/sysfs.c struct attribute *attr, attr 345 fs/ext4/sysfs.c struct ext4_attr *a = container_of(attr, struct ext4_attr, attr); attr 2931 fs/f2fs/f2fs.h int f2fs_setattr(struct dentry *dentry, struct iattr *attr); attr 747 fs/f2fs/file.c static void __setattr_copy(struct inode *inode, const struct iattr *attr) attr 749 fs/f2fs/file.c unsigned int ia_valid = attr->ia_valid; attr 752 fs/f2fs/file.c inode->i_uid = attr->ia_uid; attr 754 fs/f2fs/file.c inode->i_gid = attr->ia_gid; attr 756 fs/f2fs/file.c inode->i_atime = attr->ia_atime; attr 758 fs/f2fs/file.c inode->i_mtime = attr->ia_mtime; attr 760 fs/f2fs/file.c inode->i_ctime = attr->ia_ctime; attr 762 fs/f2fs/file.c umode_t mode = attr->ia_mode; attr 773 fs/f2fs/file.c int f2fs_setattr(struct dentry *dentry, struct iattr *attr) attr 781 fs/f2fs/file.c err = setattr_prepare(dentry, attr); attr 785 fs/f2fs/file.c err = fscrypt_prepare_setattr(dentry, attr); attr 789 fs/f2fs/file.c err = fsverity_prepare_setattr(dentry, attr); attr 793 fs/f2fs/file.c if (is_quota_modification(inode, attr)) { attr 798 fs/f2fs/file.c if ((attr->ia_valid & ATTR_UID && attr 799 fs/f2fs/file.c !uid_eq(attr->ia_uid, inode->i_uid)) || attr 800 fs/f2fs/file.c (attr->ia_valid & ATTR_GID && attr 801 fs/f2fs/file.c !gid_eq(attr->ia_gid, inode->i_gid))) { attr 803 fs/f2fs/file.c err = dquot_transfer(inode, attr); attr 814 fs/f2fs/file.c if (attr->ia_valid & ATTR_UID) attr 815 fs/f2fs/file.c inode->i_uid = attr->ia_uid; attr 816 fs/f2fs/file.c if (attr->ia_valid & ATTR_GID) attr 817 fs/f2fs/file.c inode->i_gid = attr->ia_gid; attr 822 fs/f2fs/file.c if (attr->ia_valid & ATTR_SIZE) { attr 825 fs/f2fs/file.c if (attr->ia_size > MAX_INLINE_DATA(inode)) { attr 838 fs/f2fs/file.c truncate_setsize(inode, attr->ia_size); attr 840 fs/f2fs/file.c if (attr->ia_size <= old_size) attr 857 fs/f2fs/file.c __setattr_copy(inode, attr); attr 859 fs/f2fs/file.c if (attr->ia_valid & ATTR_MODE) { attr 200 fs/f2fs/recovery.c struct iattr attr; attr 205 fs/f2fs/recovery.c memset(&attr, 0, sizeof(attr)); attr 207 fs/f2fs/recovery.c attr.ia_uid = make_kuid(inode->i_sb->s_user_ns, i_uid); attr 208 fs/f2fs/recovery.c attr.ia_gid = make_kgid(inode->i_sb->s_user_ns, i_gid); attr 210 fs/f2fs/recovery.c if (!uid_eq(attr.ia_uid, inode->i_uid)) attr 211 fs/f2fs/recovery.c attr.ia_valid |= ATTR_UID; attr 212 fs/f2fs/recovery.c if (!gid_eq(attr.ia_gid, inode->i_gid)) attr 213 fs/f2fs/recovery.c attr.ia_valid |= ATTR_GID; attr 215 fs/f2fs/recovery.c if (!attr.ia_valid) attr 218 fs/f2fs/recovery.c err = dquot_transfer(inode, &attr); attr 36 fs/f2fs/sysfs.c struct attribute attr; attr 177 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "extension_list")) { attr 216 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "extension_list")) { attr 276 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "discard_granularity")) { attr 285 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "migration_granularity")) { attr 290 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "trim_sections")) attr 293 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "gc_urgent")) { attr 307 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "gc_idle")) { attr 318 fs/f2fs/sysfs.c if (!strcmp(a->attr.name, "iostat_enable")) { attr 335 fs/f2fs/sysfs.c bool gc_entry = (!strcmp(a->attr.name, "gc_urgent") || attr 350 fs/f2fs/sysfs.c struct attribute *attr, char *buf) attr 354 fs/f2fs/sysfs.c struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); attr 359 fs/f2fs/sysfs.c static ssize_t f2fs_attr_store(struct kobject *kobj, struct attribute *attr, attr 364 fs/f2fs/sysfs.c struct f2fs_attr *a = container_of(attr, struct f2fs_attr, attr); attr 416 fs/f2fs/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ attr 433 fs/f2fs/sysfs.c .attr = {.name = __stringify(_name), .mode = 0444 }, \ attr 504 fs/f2fs/sysfs.c #define ATTR_LIST(name) (&f2fs_attr_##name.attr) attr 321 fs/fat/dir.c if (ds->attr != ATTR_EXT) attr 330 fs/fat/dir.c if ((*de)->attr == ATTR_EXT) attr 332 fs/fat/dir.c if (IS_FREE((*de)->name) || ((*de)->attr & ATTR_VOLUME)) attr 365 fs/fat/dir.c if (!isvfat && dot_hidden && (de->attr & ATTR_HIDDEN)) { attr 484 fs/fat/dir.c if (de->attr != ATTR_EXT && (de->attr & ATTR_VOLUME)) attr 486 fs/fat/dir.c if (de->attr != ATTR_EXT && IS_FREE(de->name)) attr 488 fs/fat/dir.c if (de->attr == ATTR_EXT) { attr 601 fs/fat/dir.c if (de->attr != ATTR_EXT && (de->attr & ATTR_VOLUME)) attr 603 fs/fat/dir.c if (de->attr != ATTR_EXT && IS_FREE(de->name)) attr 606 fs/fat/dir.c if ((de->attr & ATTR_VOLUME) || IS_FREE(de->name)) attr 610 fs/fat/dir.c if (isvfat && de->attr == ATTR_EXT) { attr 678 fs/fat/dir.c (de->attr & ATTR_DIR) ? DT_DIR : DT_REG)) attr 879 fs/fat/dir.c if (!IS_FREE((*de)->name) && !((*de)->attr & ATTR_VOLUME)) attr 944 fs/fat/dir.c if (de->attr & ATTR_DIR) attr 1167 fs/fat/dir.c de->attr = de[1].attr = ATTR_DIR; attr 400 fs/fat/fat.h extern int fat_setattr(struct dentry *dentry, struct iattr *attr); attr 26 fs/fat/file.c u32 attr; attr 29 fs/fat/file.c attr = fat_make_attrs(inode); attr 32 fs/fat/file.c return put_user(attr, user_attr); attr 40 fs/fat/file.c u32 attr, oldattr; attr 44 fs/fat/file.c err = get_user(attr, user_attr); attr 59 fs/fat/file.c attr &= 0xff & ~(ATTR_VOLUME | ATTR_DIR); attr 61 fs/fat/file.c attr |= (MSDOS_I(inode)->i_attrs & ATTR_VOLUME) | attr 69 fs/fat/file.c ia.ia_mode = fat_make_mode(sbi, attr, S_IRWXUGO); attr 71 fs/fat/file.c ia.ia_mode = fat_make_mode(sbi, attr, attr 76 fs/fat/file.c if (inode->i_ino == MSDOS_ROOT_INO && attr != ATTR_DIR) { attr 82 fs/fat/file.c ((attr | oldattr) & ATTR_SYS) && attr 104 fs/fat/file.c if (attr & ATTR_SYS) attr 110 fs/fat/file.c fat_save_attrs(inode, attr); attr 480 fs/fat/file.c int fat_setattr(struct dentry *dentry, struct iattr *attr) attr 488 fs/fat/file.c ia_valid = attr->ia_valid; attr 491 fs/fat/file.c attr->ia_valid &= ~TIMES_SET_FLAGS; attr 494 fs/fat/file.c error = setattr_prepare(dentry, attr); attr 495 fs/fat/file.c attr->ia_valid = ia_valid; attr 508 fs/fat/file.c if (attr->ia_valid & ATTR_SIZE) { attr 511 fs/fat/file.c if (attr->ia_size > inode->i_size) { attr 512 fs/fat/file.c error = fat_cont_expand(inode, attr->ia_size); attr 513 fs/fat/file.c if (error || attr->ia_valid == ATTR_SIZE) attr 515 fs/fat/file.c attr->ia_valid &= ~ATTR_SIZE; attr 519 fs/fat/file.c if (((attr->ia_valid & ATTR_UID) && attr 520 fs/fat/file.c (!uid_eq(attr->ia_uid, sbi->options.fs_uid))) || attr 521 fs/fat/file.c ((attr->ia_valid & ATTR_GID) && attr 522 fs/fat/file.c (!gid_eq(attr->ia_gid, sbi->options.fs_gid))) || attr 523 fs/fat/file.c ((attr->ia_valid & ATTR_MODE) && attr 524 fs/fat/file.c (attr->ia_mode & ~FAT_VALID_MODE))) attr 537 fs/fat/file.c if (attr->ia_valid & ATTR_MODE) { attr 538 fs/fat/file.c if (fat_sanitize_mode(sbi, inode, &attr->ia_mode) < 0) attr 539 fs/fat/file.c attr->ia_valid &= ~ATTR_MODE; attr 542 fs/fat/file.c if (attr->ia_valid & ATTR_SIZE) { attr 543 fs/fat/file.c error = fat_block_truncate_page(inode, attr->ia_size); attr 547 fs/fat/file.c truncate_setsize(inode, attr->ia_size); attr 548 fs/fat/file.c fat_truncate_blocks(inode, attr->ia_size); attr 556 fs/fat/file.c if (attr->ia_valid & ATTR_ATIME) attr 557 fs/fat/file.c fat_truncate_time(inode, &attr->ia_atime, S_ATIME); attr 558 fs/fat/file.c if (attr->ia_valid & ATTR_CTIME) attr 559 fs/fat/file.c fat_truncate_time(inode, &attr->ia_ctime, S_CTIME); attr 560 fs/fat/file.c if (attr->ia_valid & ATTR_MTIME) attr 561 fs/fat/file.c fat_truncate_time(inode, &attr->ia_mtime, S_MTIME); attr 562 fs/fat/file.c attr->ia_valid &= ~(ATTR_ATIME|ATTR_CTIME|ATTR_MTIME); attr 564 fs/fat/file.c setattr_copy(inode, attr); attr 526 fs/fat/inode.c if ((de->attr & ATTR_DIR) && !IS_FREE(de->name)) { attr 528 fs/fat/inode.c inode->i_mode = fat_make_mode(sbi, de->attr, S_IRWXUGO); attr 546 fs/fat/inode.c inode->i_mode = fat_make_mode(sbi, de->attr, attr 558 fs/fat/inode.c if (de->attr & ATTR_SYS) { attr 562 fs/fat/inode.c fat_save_attrs(inode, de->attr); attr 884 fs/fat/inode.c raw_entry->attr = fat_make_attrs(inode); attr 133 fs/fat/namei_msdos.c if (!(sinfo->de->attr & ATTR_HIDDEN)) attr 136 fs/fat/namei_msdos.c if (sinfo->de->attr & ATTR_HIDDEN) attr 237 fs/fat/namei_msdos.c de.attr = is_dir ? ATTR_DIR : ATTR_ARCH; attr 239 fs/fat/namei_msdos.c de.attr |= ATTR_HIDDEN; attr 627 fs/fat/namei_vfat.c ps->attr = ATTR_EXT; attr 643 fs/fat/namei_vfat.c de->attr = is_dir ? ATTR_DIR : ATTR_ARCH; attr 579 fs/fuse/cuse.c struct device_attribute *attr, char *buf) attr 588 fs/fuse/cuse.c struct device_attribute *attr, attr 599 fs/fuse/cuse.c &dev_attr_waiting.attr, attr 600 fs/fuse/cuse.c &dev_attr_abort.attr, attr 251 fs/fuse/dir.c if (ret || fuse_invalid_attr(&outarg.attr) || attr 252 fs/fuse/dir.c (outarg.attr.mode ^ inode->i_mode) & S_IFMT) attr 256 fs/fuse/dir.c fuse_change_attributes(inode, &outarg.attr, attr 323 fs/fuse/dir.c bool fuse_invalid_attr(struct fuse_attr *attr) attr 325 fs/fuse/dir.c return !fuse_valid_type(attr->mode) || attr 326 fs/fuse/dir.c attr->size > LLONG_MAX; attr 360 fs/fuse/dir.c if (fuse_invalid_attr(&outarg->attr)) attr 364 fs/fuse/dir.c &outarg->attr, entry_attr_timeout(outarg), attr 485 fs/fuse/dir.c if (!S_ISREG(outentry.attr.mode) || invalid_nodeid(outentry.nodeid) || attr 486 fs/fuse/dir.c fuse_invalid_attr(&outentry.attr)) attr 493 fs/fuse/dir.c &outentry.attr, entry_attr_timeout(&outentry), 0); attr 594 fs/fuse/dir.c if (invalid_nodeid(outarg.nodeid) || fuse_invalid_attr(&outarg.attr)) attr 597 fs/fuse/dir.c if ((outarg.attr.mode ^ mode) & S_IFMT) attr 601 fs/fuse/dir.c &outarg.attr, entry_attr_timeout(&outarg), 0); attr 884 fs/fuse/dir.c static void fuse_fillattr(struct inode *inode, struct fuse_attr *attr, attr 892 fs/fuse/dir.c attr->size = i_size_read(inode); attr 893 fs/fuse/dir.c attr->mtime = inode->i_mtime.tv_sec; attr 894 fs/fuse/dir.c attr->mtimensec = inode->i_mtime.tv_nsec; attr 895 fs/fuse/dir.c attr->ctime = inode->i_ctime.tv_sec; attr 896 fs/fuse/dir.c attr->ctimensec = inode->i_ctime.tv_nsec; attr 900 fs/fuse/dir.c stat->ino = attr->ino; attr 901 fs/fuse/dir.c stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); attr 902 fs/fuse/dir.c stat->nlink = attr->nlink; attr 903 fs/fuse/dir.c stat->uid = make_kuid(fc->user_ns, attr->uid); attr 904 fs/fuse/dir.c stat->gid = make_kgid(fc->user_ns, attr->gid); attr 906 fs/fuse/dir.c stat->atime.tv_sec = attr->atime; attr 907 fs/fuse/dir.c stat->atime.tv_nsec = attr->atimensec; attr 908 fs/fuse/dir.c stat->mtime.tv_sec = attr->mtime; attr 909 fs/fuse/dir.c stat->mtime.tv_nsec = attr->mtimensec; attr 910 fs/fuse/dir.c stat->ctime.tv_sec = attr->ctime; attr 911 fs/fuse/dir.c stat->ctime.tv_nsec = attr->ctimensec; attr 912 fs/fuse/dir.c stat->size = attr->size; attr 913 fs/fuse/dir.c stat->blocks = attr->blocks; attr 915 fs/fuse/dir.c if (attr->blksize != 0) attr 916 fs/fuse/dir.c blkbits = ilog2(attr->blksize); attr 954 fs/fuse/dir.c if (fuse_invalid_attr(&outarg.attr) || attr 955 fs/fuse/dir.c (inode->i_mode ^ outarg.attr.mode) & S_IFMT) { attr 959 fs/fuse/dir.c fuse_change_attributes(inode, &outarg.attr, attr 963 fs/fuse/dir.c fuse_fillattr(inode, &outarg.attr, stat); attr 1490 fs/fuse/dir.c int fuse_do_setattr(struct dentry *dentry, struct iattr *attr, attr 1506 fs/fuse/dir.c attr->ia_valid |= ATTR_FORCE; attr 1508 fs/fuse/dir.c err = setattr_prepare(dentry, attr); attr 1512 fs/fuse/dir.c if (attr->ia_valid & ATTR_OPEN) { attr 1514 fs/fuse/dir.c WARN_ON(!(attr->ia_valid & ATTR_SIZE)); attr 1515 fs/fuse/dir.c WARN_ON(attr->ia_size != 0); attr 1529 fs/fuse/dir.c if (attr->ia_valid & ATTR_SIZE) { attr 1537 fs/fuse/dir.c attr->ia_valid & attr 1551 fs/fuse/dir.c if (trust_local_cmtime && attr->ia_size != inode->i_size) attr 1552 fs/fuse/dir.c attr->ia_valid |= ATTR_MTIME | ATTR_CTIME; attr 1557 fs/fuse/dir.c iattr_to_fattr(fc, attr, &inarg, trust_local_cmtime); attr 1563 fs/fuse/dir.c if (attr->ia_valid & ATTR_SIZE) { attr 1576 fs/fuse/dir.c if (fuse_invalid_attr(&outarg.attr) || attr 1577 fs/fuse/dir.c (inode->i_mode ^ outarg.attr.mode) & S_IFMT) { attr 1586 fs/fuse/dir.c if (attr->ia_valid & ATTR_MTIME) attr 1587 fs/fuse/dir.c inode->i_mtime = attr->ia_mtime; attr 1588 fs/fuse/dir.c if (attr->ia_valid & ATTR_CTIME) attr 1589 fs/fuse/dir.c inode->i_ctime = attr->ia_ctime; attr 1593 fs/fuse/dir.c fuse_change_attributes_common(inode, &outarg.attr, attr 1598 fs/fuse/dir.c i_size_write(inode, outarg.attr.size); attr 1611 fs/fuse/dir.c S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { attr 1612 fs/fuse/dir.c truncate_pagecache(inode, outarg.attr.size); attr 1627 fs/fuse/dir.c static int fuse_setattr(struct dentry *entry, struct iattr *attr) attr 1631 fs/fuse/dir.c struct file *file = (attr->ia_valid & ATTR_FILE) ? attr->ia_file : NULL; attr 1637 fs/fuse/dir.c if (attr->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) { attr 1638 fs/fuse/dir.c attr->ia_valid &= ~(ATTR_KILL_SUID | ATTR_KILL_SGID | attr 1656 fs/fuse/dir.c attr->ia_mode = inode->i_mode; attr 1658 fs/fuse/dir.c attr->ia_valid |= ATTR_MODE; attr 1659 fs/fuse/dir.c attr->ia_mode &= ~S_ISUID; attr 1662 fs/fuse/dir.c attr->ia_valid |= ATTR_MODE; attr 1663 fs/fuse/dir.c attr->ia_mode &= ~S_ISGID; attr 1667 fs/fuse/dir.c if (!attr->ia_valid) attr 1670 fs/fuse/dir.c ret = fuse_do_setattr(entry, attr, file); attr 1680 fs/fuse/dir.c if (d_is_dir(entry) && (attr->ia_valid & ATTR_MODE)) attr 3045 fs/fuse/file.c struct iattr attr; attr 3047 fs/fuse/file.c attr.ia_valid = ATTR_SIZE; attr 3048 fs/fuse/file.c attr.ia_size = i_size_read(inode); attr 3050 fs/fuse/file.c attr.ia_file = file; attr 3051 fs/fuse/file.c attr.ia_valid |= ATTR_FILE; attr 3053 fs/fuse/file.c fuse_do_setattr(file_dentry(file), &attr, file); attr 804 fs/fuse/fuse_i.h int generation, struct fuse_attr *attr, attr 896 fs/fuse/fuse_i.h void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, attr 899 fs/fuse/fuse_i.h void fuse_change_attributes_common(struct inode *inode, struct fuse_attr *attr, attr 994 fs/fuse/fuse_i.h bool fuse_invalid_attr(struct fuse_attr *attr); attr 1058 fs/fuse/fuse_i.h int fuse_do_setattr(struct dentry *dentry, struct iattr *attr, attr 145 fs/fuse/inode.c void fuse_change_attributes_common(struct inode *inode, struct fuse_attr *attr, attr 157 fs/fuse/inode.c inode->i_ino = fuse_squash_ino(attr->ino); attr 158 fs/fuse/inode.c inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); attr 159 fs/fuse/inode.c set_nlink(inode, attr->nlink); attr 160 fs/fuse/inode.c inode->i_uid = make_kuid(fc->user_ns, attr->uid); attr 161 fs/fuse/inode.c inode->i_gid = make_kgid(fc->user_ns, attr->gid); attr 162 fs/fuse/inode.c inode->i_blocks = attr->blocks; attr 163 fs/fuse/inode.c inode->i_atime.tv_sec = attr->atime; attr 164 fs/fuse/inode.c inode->i_atime.tv_nsec = attr->atimensec; attr 167 fs/fuse/inode.c inode->i_mtime.tv_sec = attr->mtime; attr 168 fs/fuse/inode.c inode->i_mtime.tv_nsec = attr->mtimensec; attr 169 fs/fuse/inode.c inode->i_ctime.tv_sec = attr->ctime; attr 170 fs/fuse/inode.c inode->i_ctime.tv_nsec = attr->ctimensec; attr 173 fs/fuse/inode.c if (attr->blksize != 0) attr 174 fs/fuse/inode.c inode->i_blkbits = ilog2(attr->blksize); attr 187 fs/fuse/inode.c fi->orig_ino = attr->ino; attr 190 fs/fuse/inode.c void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, attr 207 fs/fuse/inode.c fuse_change_attributes_common(inode, attr, attr_valid); attr 216 fs/fuse/inode.c i_size_write(inode, attr->size); attr 222 fs/fuse/inode.c if (oldsize != attr->size) { attr 223 fs/fuse/inode.c truncate_pagecache(inode, attr->size); attr 228 fs/fuse/inode.c .tv_sec = attr->mtime, attr 229 fs/fuse/inode.c .tv_nsec = attr->mtimensec, attr 245 fs/fuse/inode.c static void fuse_init_inode(struct inode *inode, struct fuse_attr *attr) attr 247 fs/fuse/inode.c inode->i_mode = attr->mode & S_IFMT; attr 248 fs/fuse/inode.c inode->i_size = attr->size; attr 249 fs/fuse/inode.c inode->i_mtime.tv_sec = attr->mtime; attr 250 fs/fuse/inode.c inode->i_mtime.tv_nsec = attr->mtimensec; attr 251 fs/fuse/inode.c inode->i_ctime.tv_sec = attr->ctime; attr 252 fs/fuse/inode.c inode->i_ctime.tv_nsec = attr->ctimensec; attr 264 fs/fuse/inode.c new_decode_dev(attr->rdev)); attr 286 fs/fuse/inode.c int generation, struct fuse_attr *attr, attr 300 fs/fuse/inode.c if (!fc->writeback_cache || !S_ISREG(attr->mode)) attr 303 fs/fuse/inode.c fuse_init_inode(inode, attr); attr 305 fs/fuse/inode.c } else if ((inode->i_mode ^ attr->mode) & S_IFMT) { attr 316 fs/fuse/inode.c fuse_change_attributes(inode, attr, attr_valid, attr_version); attr 397 fs/fuse/inode.c static void convert_fuse_statfs(struct kstatfs *stbuf, struct fuse_kstatfs *attr) attr 400 fs/fuse/inode.c stbuf->f_bsize = attr->bsize; attr 401 fs/fuse/inode.c stbuf->f_frsize = attr->frsize; attr 402 fs/fuse/inode.c stbuf->f_blocks = attr->blocks; attr 403 fs/fuse/inode.c stbuf->f_bfree = attr->bfree; attr 404 fs/fuse/inode.c stbuf->f_bavail = attr->bavail; attr 405 fs/fuse/inode.c stbuf->f_files = attr->files; attr 406 fs/fuse/inode.c stbuf->f_ffree = attr->ffree; attr 407 fs/fuse/inode.c stbuf->f_namelen = attr->namelen; attr 656 fs/fuse/inode.c struct fuse_attr attr; attr 657 fs/fuse/inode.c memset(&attr, 0, sizeof(attr)); attr 659 fs/fuse/inode.c attr.mode = mode; attr 660 fs/fuse/inode.c attr.ino = FUSE_ROOT_ID; attr 661 fs/fuse/inode.c attr.nlink = 1; attr 662 fs/fuse/inode.c return fuse_iget(sb, 1, 0, &attr, 0, 0); attr 187 fs/fuse/readdir.c if (fuse_invalid_attr(&o->attr)) attr 205 fs/fuse/readdir.c ((o->attr.mode ^ inode->i_mode) & S_IFMT)) { attr 221 fs/fuse/readdir.c fuse_change_attributes(inode, &o->attr, attr 230 fs/fuse/readdir.c &o->attr, entry_attr_timeout(o), attr 1833 fs/gfs2/inode.c static int __gfs2_setattr_simple(struct inode *inode, struct iattr *attr) attr 1835 fs/gfs2/inode.c setattr_copy(inode, attr); attr 1848 fs/gfs2/inode.c int gfs2_setattr_simple(struct inode *inode, struct iattr *attr) attr 1853 fs/gfs2/inode.c return __gfs2_setattr_simple(inode, attr); attr 1859 fs/gfs2/inode.c error = __gfs2_setattr_simple(inode, attr); attr 1864 fs/gfs2/inode.c static int setattr_chown(struct inode *inode, struct iattr *attr) attr 1875 fs/gfs2/inode.c nuid = attr->ia_uid; attr 1876 fs/gfs2/inode.c ngid = attr->ia_gid; attr 1878 fs/gfs2/inode.c if (!(attr->ia_valid & ATTR_UID) || uid_eq(ouid, nuid)) attr 1880 fs/gfs2/inode.c if (!(attr->ia_valid & ATTR_GID) || gid_eq(ogid, ngid)) attr 1908 fs/gfs2/inode.c error = gfs2_setattr_simple(inode, attr); attr 1937 fs/gfs2/inode.c static int gfs2_setattr(struct dentry *dentry, struct iattr *attr) attr 1956 fs/gfs2/inode.c error = setattr_prepare(dentry, attr); attr 1960 fs/gfs2/inode.c if (attr->ia_valid & ATTR_SIZE) attr 1961 fs/gfs2/inode.c error = gfs2_setattr_size(inode, attr->ia_size); attr 1962 fs/gfs2/inode.c else if (attr->ia_valid & (ATTR_UID | ATTR_GID)) attr 1963 fs/gfs2/inode.c error = setattr_chown(inode, attr); attr 1965 fs/gfs2/inode.c error = gfs2_setattr_simple(inode, attr); attr 1966 fs/gfs2/inode.c if (!error && attr->ia_valid & ATTR_MODE) attr 103 fs/gfs2/inode.h extern int gfs2_setattr_simple(struct inode *inode, struct iattr *attr); attr 31 fs/gfs2/sys.c struct attribute attr; attr 36 fs/gfs2/sys.c static ssize_t gfs2_attr_show(struct kobject *kobj, struct attribute *attr, attr 40 fs/gfs2/sys.c struct gfs2_attr *a = container_of(attr, struct gfs2_attr, attr); attr 44 fs/gfs2/sys.c static ssize_t gfs2_attr_store(struct kobject *kobj, struct attribute *attr, attr 48 fs/gfs2/sys.c struct gfs2_attr *a = container_of(attr, struct gfs2_attr, attr); attr 287 fs/gfs2/sys.c &gfs2_attr_id.attr, attr 288 fs/gfs2/sys.c &gfs2_attr_fsname.attr, attr 289 fs/gfs2/sys.c &gfs2_attr_uuid.attr, attr 290 fs/gfs2/sys.c &gfs2_attr_freeze.attr, attr 291 fs/gfs2/sys.c &gfs2_attr_withdraw.attr, attr 292 fs/gfs2/sys.c &gfs2_attr_statfs_sync.attr, attr 293 fs/gfs2/sys.c &gfs2_attr_quota_sync.attr, attr 294 fs/gfs2/sys.c &gfs2_attr_quota_refresh_user.attr, attr 295 fs/gfs2/sys.c &gfs2_attr_quota_refresh_group.attr, attr 296 fs/gfs2/sys.c &gfs2_attr_demote_rq.attr, attr 531 fs/gfs2/sys.c &gdlm_attr_proto_name.attr, attr 532 fs/gfs2/sys.c &gdlm_attr_block.attr, attr 533 fs/gfs2/sys.c &gdlm_attr_withdraw.attr, attr 534 fs/gfs2/sys.c &gdlm_attr_jid.attr, attr 535 fs/gfs2/sys.c &gdlm_attr_first.attr, attr 536 fs/gfs2/sys.c &gdlm_attr_first_done.attr, attr 537 fs/gfs2/sys.c &gdlm_attr_recover.attr, attr 538 fs/gfs2/sys.c &gdlm_attr_recover_done.attr, attr 539 fs/gfs2/sys.c &gdlm_attr_recover_status.attr, attr 623 fs/gfs2/sys.c &tune_attr_quota_warn_period.attr, attr 624 fs/gfs2/sys.c &tune_attr_quota_quantum.attr, attr 625 fs/gfs2/sys.c &tune_attr_max_readahead.attr, attr 626 fs/gfs2/sys.c &tune_attr_complain_secs.attr, attr 627 fs/gfs2/sys.c &tune_attr_statfs_slow.attr, attr 628 fs/gfs2/sys.c &tune_attr_statfs_quantum.attr, attr 629 fs/gfs2/sys.c &tune_attr_quota_scale.attr, attr 630 fs/gfs2/sys.c &tune_attr_new_files_jdata.attr, attr 604 fs/hfs/inode.c int hfs_inode_setattr(struct dentry *dentry, struct iattr * attr) attr 610 fs/hfs/inode.c error = setattr_prepare(dentry, attr); /* basic permission checks */ attr 615 fs/hfs/inode.c if (((attr->ia_valid & ATTR_UID) && attr 616 fs/hfs/inode.c (!uid_eq(attr->ia_uid, hsb->s_uid))) || attr 617 fs/hfs/inode.c ((attr->ia_valid & ATTR_GID) && attr 618 fs/hfs/inode.c (!gid_eq(attr->ia_gid, hsb->s_gid))) || attr 619 fs/hfs/inode.c ((attr->ia_valid & ATTR_MODE) && attr 621 fs/hfs/inode.c (attr->ia_mode != inode->i_mode)) || attr 622 fs/hfs/inode.c (attr->ia_mode & ~HFS_VALID_MODE_BITS)))) { attr 626 fs/hfs/inode.c if (attr->ia_valid & ATTR_MODE) { attr 628 fs/hfs/inode.c if (attr->ia_mode & S_IWUSR) attr 629 fs/hfs/inode.c attr->ia_mode = inode->i_mode | S_IWUGO; attr 631 fs/hfs/inode.c attr->ia_mode = inode->i_mode & ~S_IWUGO; attr 632 fs/hfs/inode.c attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; attr 635 fs/hfs/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 636 fs/hfs/inode.c attr->ia_size != i_size_read(inode)) { attr 639 fs/hfs/inode.c error = inode_newsize_ok(inode, attr->ia_size); attr 643 fs/hfs/inode.c truncate_setsize(inode, attr->ia_size); attr 649 fs/hfs/inode.c setattr_copy(inode, attr); attr 40 fs/hfsplus/attributes.c k1_cnid = k1->attr.cnid; attr 41 fs/hfsplus/attributes.c k2_cnid = k2->attr.cnid; attr 46 fs/hfsplus/attributes.c (const struct hfsplus_unistr *)&k1->attr.key_name, attr 47 fs/hfsplus/attributes.c (const struct hfsplus_unistr *)&k2->attr.key_name); attr 56 fs/hfsplus/attributes.c key->attr.cnid = cpu_to_be32(cnid); attr 59 fs/hfsplus/attributes.c (struct hfsplus_unistr *)&key->attr.key_name, attr 63 fs/hfsplus/attributes.c len = be16_to_cpu(key->attr.key_name.length); attr 65 fs/hfsplus/attributes.c key->attr.key_name.length = 0; attr 70 fs/hfsplus/bfind.c cur_cnid = fd->key->attr.cnid; attr 71 fs/hfsplus/bfind.c search_cnid = fd->search_key->attr.cnid; attr 405 fs/hfsplus/hfsplus_raw.h struct hfsplus_attr_key attr; attr 244 fs/hfsplus/inode.c static int hfsplus_setattr(struct dentry *dentry, struct iattr *attr) attr 249 fs/hfsplus/inode.c error = setattr_prepare(dentry, attr); attr 253 fs/hfsplus/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 254 fs/hfsplus/inode.c attr->ia_size != i_size_read(inode)) { attr 256 fs/hfsplus/inode.c if (attr->ia_size > inode->i_size) { attr 258 fs/hfsplus/inode.c attr->ia_size); attr 262 fs/hfsplus/inode.c truncate_setsize(inode, attr->ia_size); attr 267 fs/hfsplus/inode.c setattr_copy(inode, attr); attr 738 fs/hfsplus/xattr.c (const struct hfsplus_unistr *)&fd.key->attr.key_name, attr 788 fs/hostfs/hostfs_kern.c static int hostfs_setattr(struct dentry *dentry, struct iattr *attr) attr 797 fs/hostfs/hostfs_kern.c err = setattr_prepare(dentry, attr); attr 802 fs/hostfs/hostfs_kern.c attr->ia_valid &= ~ATTR_SIZE; attr 805 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_MODE) { attr 807 fs/hostfs/hostfs_kern.c attrs.ia_mode = attr->ia_mode; attr 809 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_UID) { attr 811 fs/hostfs/hostfs_kern.c attrs.ia_uid = from_kuid(&init_user_ns, attr->ia_uid); attr 813 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_GID) { attr 815 fs/hostfs/hostfs_kern.c attrs.ia_gid = from_kgid(&init_user_ns, attr->ia_gid); attr 817 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_SIZE) { attr 819 fs/hostfs/hostfs_kern.c attrs.ia_size = attr->ia_size; attr 821 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_ATIME) { attr 823 fs/hostfs/hostfs_kern.c attrs.ia_atime = timespec64_to_timespec(attr->ia_atime); attr 825 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_MTIME) { attr 827 fs/hostfs/hostfs_kern.c attrs.ia_mtime = timespec64_to_timespec(attr->ia_mtime); attr 829 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_CTIME) { attr 831 fs/hostfs/hostfs_kern.c attrs.ia_ctime = timespec64_to_timespec(attr->ia_ctime); attr 833 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_ATIME_SET) { attr 836 fs/hostfs/hostfs_kern.c if (attr->ia_valid & ATTR_MTIME_SET) { attr 847 fs/hostfs/hostfs_kern.c if ((attr->ia_valid & ATTR_SIZE) && attr 848 fs/hostfs/hostfs_kern.c attr->ia_size != i_size_read(inode)) attr 849 fs/hostfs/hostfs_kern.c truncate_setsize(inode, attr->ia_size); attr 851 fs/hostfs/hostfs_kern.c setattr_copy(inode, attr); attr 260 fs/hpfs/inode.c int hpfs_setattr(struct dentry *dentry, struct iattr *attr) attr 268 fs/hpfs/inode.c if ((attr->ia_valid & ATTR_UID) && attr 269 fs/hpfs/inode.c from_kuid(&init_user_ns, attr->ia_uid) >= 0x10000) attr 271 fs/hpfs/inode.c if ((attr->ia_valid & ATTR_GID) && attr 272 fs/hpfs/inode.c from_kgid(&init_user_ns, attr->ia_gid) >= 0x10000) attr 274 fs/hpfs/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) attr 277 fs/hpfs/inode.c error = setattr_prepare(dentry, attr); attr 281 fs/hpfs/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 282 fs/hpfs/inode.c attr->ia_size != i_size_read(inode)) { attr 283 fs/hpfs/inode.c error = inode_newsize_ok(inode, attr->ia_size); attr 287 fs/hpfs/inode.c truncate_setsize(inode, attr->ia_size); attr 291 fs/hpfs/inode.c setattr_copy(inode, attr); attr 694 fs/hugetlbfs/inode.c static int hugetlbfs_setattr(struct dentry *dentry, struct iattr *attr) attr 699 fs/hugetlbfs/inode.c unsigned int ia_valid = attr->ia_valid; attr 704 fs/hugetlbfs/inode.c error = setattr_prepare(dentry, attr); attr 710 fs/hugetlbfs/inode.c loff_t newsize = attr->ia_size; attr 723 fs/hugetlbfs/inode.c setattr_copy(inode, attr); attr 243 fs/jffs2/acl.c struct iattr attr; attr 245 fs/jffs2/acl.c attr.ia_valid = ATTR_MODE | ATTR_CTIME; attr 246 fs/jffs2/acl.c attr.ia_mode = mode; attr 247 fs/jffs2/acl.c attr.ia_ctime = current_time(inode); attr 248 fs/jffs2/acl.c rc = jffs2_do_setattr(inode, &attr); attr 67 fs/kernfs/file.c return kn->attr.ops; attr 165 fs/kernfs/file.c of->event = atomic_read(&of->kn->attr.open->event); attr 167 fs/kernfs/file.c return of->kn->attr.ops->seq_show(sf, v); attr 210 fs/kernfs/file.c of->event = atomic_read(&of->kn->attr.open->event); attr 551 fs/kernfs/file.c if (!kn->attr.open && new_on) { attr 552 fs/kernfs/file.c kn->attr.open = new_on; attr 556 fs/kernfs/file.c on = kn->attr.open; attr 596 fs/kernfs/file.c struct kernfs_open_node *on = kn->attr.open; attr 606 fs/kernfs/file.c kn->attr.open = NULL; attr 763 fs/kernfs/file.c kn->attr.ops->release(of); attr 796 fs/kernfs/file.c on = kn->attr.open; attr 837 fs/kernfs/file.c struct kernfs_open_node *on = kn->attr.open; attr 856 fs/kernfs/file.c if (kn->attr.ops->poll) attr 857 fs/kernfs/file.c ret = kn->attr.ops->poll(of, wait); attr 877 fs/kernfs/file.c kernfs_notify_list = kn->attr.notify_next; attr 878 fs/kernfs/file.c kn->attr.notify_next = NULL; attr 942 fs/kernfs/file.c on = kn->attr.open; attr 951 fs/kernfs/file.c if (!kn->attr.notify_next) { attr 953 fs/kernfs/file.c kn->attr.notify_next = kernfs_notify_list; attr 1006 fs/kernfs/file.c kn->attr.ops = ops; attr 1007 fs/kernfs/file.c kn->attr.size = size; attr 218 fs/kernfs/inode.c inode->i_size = kn->attr.size; attr 822 fs/libfs.c struct simple_attr *attr; attr 824 fs/libfs.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 825 fs/libfs.c if (!attr) attr 828 fs/libfs.c attr->get = get; attr 829 fs/libfs.c attr->set = set; attr 830 fs/libfs.c attr->data = inode->i_private; attr 831 fs/libfs.c attr->fmt = fmt; attr 832 fs/libfs.c mutex_init(&attr->mutex); attr 834 fs/libfs.c file->private_data = attr; attr 851 fs/libfs.c struct simple_attr *attr; attr 855 fs/libfs.c attr = file->private_data; attr 857 fs/libfs.c if (!attr->get) attr 860 fs/libfs.c ret = mutex_lock_interruptible(&attr->mutex); attr 864 fs/libfs.c if (*ppos && attr->get_buf[0]) { attr 866 fs/libfs.c size = strlen(attr->get_buf); attr 870 fs/libfs.c ret = attr->get(attr->data, &val); attr 874 fs/libfs.c size = scnprintf(attr->get_buf, sizeof(attr->get_buf), attr 875 fs/libfs.c attr->fmt, (unsigned long long)val); attr 878 fs/libfs.c ret = simple_read_from_buffer(buf, len, ppos, attr->get_buf, size); attr 880 fs/libfs.c mutex_unlock(&attr->mutex); attr 889 fs/libfs.c struct simple_attr *attr; attr 894 fs/libfs.c attr = file->private_data; attr 895 fs/libfs.c if (!attr->set) attr 898 fs/libfs.c ret = mutex_lock_interruptible(&attr->mutex); attr 903 fs/libfs.c size = min(sizeof(attr->set_buf) - 1, len); attr 904 fs/libfs.c if (copy_from_user(attr->set_buf, buf, size)) attr 907 fs/libfs.c attr->set_buf[size] = '\0'; attr 908 fs/libfs.c val = simple_strtoll(attr->set_buf, NULL, 0); attr 909 fs/libfs.c ret = attr->set(attr->data, val); attr 913 fs/libfs.c mutex_unlock(&attr->mutex); attr 1237 fs/libfs.c static int empty_dir_setattr(struct dentry *dentry, struct iattr *attr) attr 25 fs/minix/file.c static int minix_setattr(struct dentry *dentry, struct iattr *attr) attr 30 fs/minix/file.c error = setattr_prepare(dentry, attr); attr 34 fs/minix/file.c if ((attr->ia_valid & ATTR_SIZE) && attr 35 fs/minix/file.c attr->ia_size != i_size_read(inode)) { attr 36 fs/minix/file.c error = inode_newsize_ok(inode, attr->ia_size); attr 40 fs/minix/file.c truncate_setsize(inode, attr->ia_size); attr 44 fs/minix/file.c setattr_copy(inode, attr); attr 1523 fs/nfs/dir.c struct iattr attr = { .ia_valid = ATTR_OPEN }; attr 1563 fs/nfs/dir.c attr.ia_valid |= ATTR_MODE; attr 1564 fs/nfs/dir.c attr.ia_mode = mode; attr 1567 fs/nfs/dir.c attr.ia_valid |= ATTR_SIZE; attr 1568 fs/nfs/dir.c attr.ia_size = 0; attr 1588 fs/nfs/dir.c inode = NFS_PROTO(dir)->open_context(dir, ctx, open_flags, &attr, &created); attr 1759 fs/nfs/dir.c struct iattr attr; attr 1766 fs/nfs/dir.c attr.ia_mode = mode; attr 1767 fs/nfs/dir.c attr.ia_valid = ATTR_MODE; attr 1770 fs/nfs/dir.c error = NFS_PROTO(dir)->create(dir, dentry, &attr, open_flags); attr 1787 fs/nfs/dir.c struct iattr attr; attr 1793 fs/nfs/dir.c attr.ia_mode = mode; attr 1794 fs/nfs/dir.c attr.ia_valid = ATTR_MODE; attr 1797 fs/nfs/dir.c status = NFS_PROTO(dir)->mknod(dir, dentry, &attr, rdev); attr 1813 fs/nfs/dir.c struct iattr attr; attr 1819 fs/nfs/dir.c attr.ia_valid = ATTR_MODE; attr 1820 fs/nfs/dir.c attr.ia_mode = mode | S_IFDIR; attr 1823 fs/nfs/dir.c error = NFS_PROTO(dir)->mkdir(dir, dentry, &attr); attr 1960 fs/nfs/dir.c struct iattr attr; attr 1970 fs/nfs/dir.c attr.ia_mode = S_IFLNK | S_IRWXUGO; attr 1971 fs/nfs/dir.c attr.ia_valid = ATTR_MODE; attr 1983 fs/nfs/dir.c error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); attr 585 fs/nfs/inode.c nfs_setattr(struct dentry *dentry, struct iattr *attr) attr 594 fs/nfs/inode.c if (attr->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) attr 595 fs/nfs/inode.c attr->ia_valid &= ~ATTR_MODE; attr 597 fs/nfs/inode.c if (attr->ia_valid & ATTR_SIZE) { attr 600 fs/nfs/inode.c error = inode_newsize_ok(inode, attr->ia_size); attr 604 fs/nfs/inode.c if (attr->ia_size == i_size_read(inode)) attr 605 fs/nfs/inode.c attr->ia_valid &= ~ATTR_SIZE; attr 609 fs/nfs/inode.c attr->ia_valid &= NFS_VALID_ATTRS; attr 610 fs/nfs/inode.c if ((attr->ia_valid & ~(ATTR_FILE|ATTR_OPEN)) == 0) attr 625 fs/nfs/inode.c error = NFS_PROTO(inode)->setattr(dentry, fattr, attr); attr 676 fs/nfs/inode.c void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr, attr 684 fs/nfs/inode.c if ((attr->ia_valid & ATTR_SIZE) != 0) { attr 687 fs/nfs/inode.c nfs_vmtruncate(inode, attr->ia_size); attr 689 fs/nfs/inode.c if ((attr->ia_valid & (ATTR_MODE|ATTR_UID|ATTR_GID)) != 0) { attr 691 fs/nfs/inode.c if ((attr->ia_valid & ATTR_MODE) != 0) { attr 692 fs/nfs/inode.c int mode = attr->ia_mode & S_IALLUGO; attr 696 fs/nfs/inode.c if ((attr->ia_valid & ATTR_UID) != 0) attr 697 fs/nfs/inode.c inode->i_uid = attr->ia_uid; attr 698 fs/nfs/inode.c if ((attr->ia_valid & ATTR_GID) != 0) attr 699 fs/nfs/inode.c inode->i_gid = attr->ia_gid; attr 708 fs/nfs/inode.c if (attr->ia_valid & (ATTR_ATIME_SET|ATTR_ATIME)) { attr 713 fs/nfs/inode.c else if (attr->ia_valid & ATTR_ATIME_SET) attr 714 fs/nfs/inode.c inode->i_atime = attr->ia_atime; attr 724 fs/nfs/inode.c if (attr->ia_valid & (ATTR_MTIME_SET|ATTR_MTIME)) { attr 729 fs/nfs/inode.c else if (attr->ia_valid & ATTR_MTIME_SET) attr 730 fs/nfs/inode.c inode->i_mtime = attr->ia_mtime; attr 181 fs/nfs/namespace.c nfs_namespace_setattr(struct dentry *dentry, struct iattr *attr) attr 184 fs/nfs/namespace.c return nfs_setattr(dentry, attr); attr 339 fs/nfs/nfs2xdr.c static void encode_sattr(struct xdr_stream *xdr, const struct iattr *attr, attr 347 fs/nfs/nfs2xdr.c if (attr->ia_valid & ATTR_MODE) attr 348 fs/nfs/nfs2xdr.c *p++ = cpu_to_be32(attr->ia_mode); attr 351 fs/nfs/nfs2xdr.c if (attr->ia_valid & ATTR_UID) attr 352 fs/nfs/nfs2xdr.c *p++ = cpu_to_be32(from_kuid_munged(userns, attr->ia_uid)); attr 355 fs/nfs/nfs2xdr.c if (attr->ia_valid & ATTR_GID) attr 356 fs/nfs/nfs2xdr.c *p++ = cpu_to_be32(from_kgid_munged(userns, attr->ia_gid)); attr 359 fs/nfs/nfs2xdr.c if (attr->ia_valid & ATTR_SIZE) attr 360 fs/nfs/nfs2xdr.c *p++ = cpu_to_be32((u32)attr->ia_size); attr 364 fs/nfs/nfs2xdr.c if (attr->ia_valid & ATTR_ATIME_SET) { attr 365 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_atime); attr 367 fs/nfs/nfs2xdr.c } else if (attr->ia_valid & ATTR_ATIME) { attr 368 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_atime); attr 372 fs/nfs/nfs2xdr.c if (attr->ia_valid & ATTR_MTIME_SET) { attr 373 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_mtime); attr 375 fs/nfs/nfs2xdr.c } else if (attr->ia_valid & ATTR_MTIME) { attr 376 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_mtime); attr 533 fs/nfs/nfs3xdr.c static void encode_sattr3(struct xdr_stream *xdr, const struct iattr *attr, attr 547 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_MODE) attr 549 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_UID) attr 551 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_GID) attr 553 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_SIZE) attr 555 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_ATIME_SET) attr 557 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_MTIME_SET) attr 561 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_MODE) { attr 563 fs/nfs/nfs3xdr.c *p++ = cpu_to_be32(attr->ia_mode & S_IALLUGO); attr 567 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_UID) { attr 569 fs/nfs/nfs3xdr.c *p++ = cpu_to_be32(from_kuid_munged(userns, attr->ia_uid)); attr 573 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_GID) { attr 575 fs/nfs/nfs3xdr.c *p++ = cpu_to_be32(from_kgid_munged(userns, attr->ia_gid)); attr 579 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_SIZE) { attr 581 fs/nfs/nfs3xdr.c p = xdr_encode_hyper(p, (u64)attr->ia_size); attr 585 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_ATIME_SET) { attr 588 fs/nfs/nfs3xdr.c ts = timespec64_to_timespec(attr->ia_atime); attr 590 fs/nfs/nfs3xdr.c } else if (attr->ia_valid & ATTR_ATIME) { attr 595 fs/nfs/nfs3xdr.c if (attr->ia_valid & ATTR_MTIME_SET) { attr 597 fs/nfs/nfs3xdr.c ts = timespec64_to_timespec(attr->ia_mtime); attr 599 fs/nfs/nfs3xdr.c } else if (attr->ia_valid & ATTR_MTIME) { attr 33 fs/nfs/nfs4file.c struct iattr attr; attr 65 fs/nfs/nfs4file.c attr.ia_valid = ATTR_OPEN; attr 67 fs/nfs/nfs4file.c attr.ia_valid |= ATTR_SIZE; attr 68 fs/nfs/nfs4file.c attr.ia_size = 0; attr 72 fs/nfs/nfs4file.c inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, NULL); attr 3697 fs/nfs/nfs4proc.c int open_flags, struct iattr *attr, int *opened) attr 3702 fs/nfs/nfs4proc.c label = nfs4_label_init_security(dir, ctx->dentry, attr, &l); attr 3705 fs/nfs/nfs4proc.c state = nfs4_do_open(dir, ctx, open_flags, attr, label, opened); attr 77 fs/nfs/sysfs.c struct kobj_attribute *attr, char *buf) attr 94 fs/nfs/sysfs.c struct kobj_attribute *attr, attr 138 fs/nfs/sysfs.c &nfs_netns_client_id.attr, attr 222 fs/nfsd/nfs3proc.c struct iattr *attr; attr 232 fs/nfsd/nfs3proc.c attr = &argp->attrs; attr 235 fs/nfsd/nfs3proc.c attr->ia_mode &= ~S_IFMT; attr 236 fs/nfsd/nfs3proc.c if (!(attr->ia_valid & ATTR_MODE)) { attr 237 fs/nfsd/nfs3proc.c attr->ia_valid |= ATTR_MODE; attr 238 fs/nfsd/nfs3proc.c attr->ia_mode = S_IFREG; attr 240 fs/nfsd/nfs3proc.c attr->ia_mode = (attr->ia_mode & ~S_IFMT) | S_IFREG; attr 245 fs/nfsd/nfs3proc.c attr, newfhp, attr 246 fs/nfsd/nfsproc.c struct iattr *attr = &argp->attrs; attr 252 fs/nfsd/nfsproc.c dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); attr 302 fs/nfsd/nfsproc.c if (attr->ia_valid & ATTR_MODE) { attr 303 fs/nfsd/nfsproc.c type = attr->ia_mode & S_IFMT; attr 304 fs/nfsd/nfsproc.c mode = attr->ia_mode & ~S_IFMT; attr 315 fs/nfsd/nfsproc.c attr->ia_valid |= ATTR_SIZE; attr 342 fs/nfsd/nfsproc.c attr->ia_valid |= ATTR_MODE; attr 343 fs/nfsd/nfsproc.c attr->ia_mode = mode; attr 351 fs/nfsd/nfsproc.c } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) { attr 361 fs/nfsd/nfsproc.c attr->ia_valid &= ~ATTR_SIZE; attr 373 fs/nfsd/nfsproc.c argp->len, attr, type, rdev, newfhp); attr 376 fs/nfsd/nfsproc.c argp->name, attr->ia_valid, (long) attr->ia_size); attr 381 fs/nfsd/nfsproc.c attr->ia_valid &= ATTR_SIZE; attr 382 fs/nfsd/nfsproc.c if (attr->ia_valid) attr 383 fs/nfsd/nfsproc.c nfserr = nfsd_setattr(rqstp, newfhp, attr, 0, (time_t)0); attr 37 fs/nilfs2/sysfs.c struct attribute *attr, char *buf) \ attr 42 fs/nilfs2/sysfs.c struct nilfs_##name##_attr *a = container_of(attr, \ attr 44 fs/nilfs2/sysfs.c attr); \ attr 48 fs/nilfs2/sysfs.c struct attribute *attr, \ attr 54 fs/nilfs2/sysfs.c struct nilfs_##name##_attr *a = container_of(attr, \ attr 56 fs/nilfs2/sysfs.c attr); \ attr 110 fs/nilfs2/sysfs.c nilfs_snapshot_inodes_count_show(struct nilfs_snapshot_attr *attr, attr 118 fs/nilfs2/sysfs.c nilfs_snapshot_blocks_count_show(struct nilfs_snapshot_attr *attr, attr 131 fs/nilfs2/sysfs.c nilfs_snapshot_README_show(struct nilfs_snapshot_attr *attr, attr 149 fs/nilfs2/sysfs.c struct attribute *attr, char *buf) attr 154 fs/nilfs2/sysfs.c container_of(attr, struct nilfs_snapshot_attr, attr); attr 160 fs/nilfs2/sysfs.c struct attribute *attr, attr 166 fs/nilfs2/sysfs.c container_of(attr, struct nilfs_snapshot_attr, attr); attr 232 fs/nilfs2/sysfs.c nilfs_mounted_snapshots_README_show(struct nilfs_mounted_snapshots_attr *attr, attr 254 fs/nilfs2/sysfs.c nilfs_checkpoints_checkpoints_number_show(struct nilfs_checkpoints_attr *attr, attr 277 fs/nilfs2/sysfs.c nilfs_checkpoints_snapshots_number_show(struct nilfs_checkpoints_attr *attr, attr 300 fs/nilfs2/sysfs.c nilfs_checkpoints_last_seg_checkpoint_show(struct nilfs_checkpoints_attr *attr, attr 314 fs/nilfs2/sysfs.c nilfs_checkpoints_next_checkpoint_show(struct nilfs_checkpoints_attr *attr, attr 337 fs/nilfs2/sysfs.c nilfs_checkpoints_README_show(struct nilfs_checkpoints_attr *attr, attr 367 fs/nilfs2/sysfs.c nilfs_segments_segments_number_show(struct nilfs_segments_attr *attr, attr 375 fs/nilfs2/sysfs.c nilfs_segments_blocks_per_segment_show(struct nilfs_segments_attr *attr, attr 383 fs/nilfs2/sysfs.c nilfs_segments_clean_segments_show(struct nilfs_segments_attr *attr, attr 397 fs/nilfs2/sysfs.c nilfs_segments_dirty_segments_show(struct nilfs_segments_attr *attr, attr 425 fs/nilfs2/sysfs.c nilfs_segments_README_show(struct nilfs_segments_attr *attr, attr 456 fs/nilfs2/sysfs.c nilfs_segctor_last_pseg_block_show(struct nilfs_segctor_attr *attr, attr 471 fs/nilfs2/sysfs.c nilfs_segctor_last_seg_sequence_show(struct nilfs_segctor_attr *attr, attr 485 fs/nilfs2/sysfs.c nilfs_segctor_last_seg_checkpoint_show(struct nilfs_segctor_attr *attr, attr 499 fs/nilfs2/sysfs.c nilfs_segctor_current_seg_sequence_show(struct nilfs_segctor_attr *attr, attr 513 fs/nilfs2/sysfs.c nilfs_segctor_current_last_full_seg_show(struct nilfs_segctor_attr *attr, attr 527 fs/nilfs2/sysfs.c nilfs_segctor_next_full_seg_show(struct nilfs_segctor_attr *attr, attr 541 fs/nilfs2/sysfs.c nilfs_segctor_next_pseg_offset_show(struct nilfs_segctor_attr *attr, attr 555 fs/nilfs2/sysfs.c nilfs_segctor_next_checkpoint_show(struct nilfs_segctor_attr *attr, attr 569 fs/nilfs2/sysfs.c nilfs_segctor_last_seg_write_time_show(struct nilfs_segctor_attr *attr, attr 583 fs/nilfs2/sysfs.c nilfs_segctor_last_seg_write_time_secs_show(struct nilfs_segctor_attr *attr, attr 597 fs/nilfs2/sysfs.c nilfs_segctor_last_nongc_write_time_show(struct nilfs_segctor_attr *attr, attr 611 fs/nilfs2/sysfs.c nilfs_segctor_last_nongc_write_time_secs_show(struct nilfs_segctor_attr *attr, attr 625 fs/nilfs2/sysfs.c nilfs_segctor_dirty_data_blocks_count_show(struct nilfs_segctor_attr *attr, attr 669 fs/nilfs2/sysfs.c nilfs_segctor_README_show(struct nilfs_segctor_attr *attr, attr 717 fs/nilfs2/sysfs.c nilfs_superblock_sb_write_time_show(struct nilfs_superblock_attr *attr, attr 731 fs/nilfs2/sysfs.c nilfs_superblock_sb_write_time_secs_show(struct nilfs_superblock_attr *attr, attr 745 fs/nilfs2/sysfs.c nilfs_superblock_sb_write_count_show(struct nilfs_superblock_attr *attr, attr 759 fs/nilfs2/sysfs.c nilfs_superblock_sb_update_frequency_show(struct nilfs_superblock_attr *attr, attr 773 fs/nilfs2/sysfs.c nilfs_superblock_sb_update_frequency_store(struct nilfs_superblock_attr *attr, attr 814 fs/nilfs2/sysfs.c nilfs_superblock_README_show(struct nilfs_superblock_attr *attr, attr 844 fs/nilfs2/sysfs.c ssize_t nilfs_dev_revision_show(struct nilfs_dev_attr *attr, attr 856 fs/nilfs2/sysfs.c ssize_t nilfs_dev_blocksize_show(struct nilfs_dev_attr *attr, attr 864 fs/nilfs2/sysfs.c ssize_t nilfs_dev_device_size_show(struct nilfs_dev_attr *attr, attr 875 fs/nilfs2/sysfs.c ssize_t nilfs_dev_free_blocks_show(struct nilfs_dev_attr *attr, attr 887 fs/nilfs2/sysfs.c ssize_t nilfs_dev_uuid_show(struct nilfs_dev_attr *attr, attr 897 fs/nilfs2/sysfs.c ssize_t nilfs_dev_volume_name_show(struct nilfs_dev_attr *attr, attr 917 fs/nilfs2/sysfs.c static ssize_t nilfs_dev_README_show(struct nilfs_dev_attr *attr, attr 944 fs/nilfs2/sysfs.c struct attribute *attr, char *buf) attr 948 fs/nilfs2/sysfs.c struct nilfs_dev_attr *a = container_of(attr, struct nilfs_dev_attr, attr 949 fs/nilfs2/sysfs.c attr); attr 955 fs/nilfs2/sysfs.c struct attribute *attr, attr 960 fs/nilfs2/sysfs.c struct nilfs_dev_attr *a = container_of(attr, struct nilfs_dev_attr, attr 961 fs/nilfs2/sysfs.c attr); attr 1065 fs/nilfs2/sysfs.c struct attribute *attr, char *buf) attr 1077 fs/nilfs2/sysfs.c struct attribute *attr, attr 55 fs/nilfs2/sysfs.h struct attribute attr; \ attr 66 fs/nilfs2/sysfs.h struct attribute attr; \ attr 82 fs/nilfs2/sysfs.h struct attribute attr; \ attr 151 fs/nilfs2/sysfs.h (&nilfs_feature_attr_##name.attr) attr 153 fs/nilfs2/sysfs.h (&nilfs_dev_attr_##name.attr) attr 155 fs/nilfs2/sysfs.h (&nilfs_segments_attr_##name.attr) attr 157 fs/nilfs2/sysfs.h (&nilfs_mounted_snapshots_attr_##name.attr) attr 159 fs/nilfs2/sysfs.h (&nilfs_checkpoints_attr_##name.attr) attr 161 fs/nilfs2/sysfs.h (&nilfs_snapshot_attr_##name.attr) attr 163 fs/nilfs2/sysfs.h (&nilfs_superblock_attr_##name.attr) attr 165 fs/nilfs2/sysfs.h (&nilfs_segctor_attr_##name.attr) attr 479 fs/ntfs/aops.c attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); attr 491 fs/ntfs/aops.c memcpy(addr, (u8*)ctx->attr + attr 492 fs/ntfs/aops.c le16_to_cpu(ctx->attr->data.resident.value_offset), attr 1469 fs/ntfs/aops.c attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); attr 1478 fs/ntfs/aops.c err = ntfs_resident_attr_value_resize(ctx->mrec, ctx->attr, attr 1485 fs/ntfs/aops.c memcpy((u8*)ctx->attr + attr 1486 fs/ntfs/aops.c le16_to_cpu(ctx->attr->data.resident.value_offset), attr 103 fs/ntfs/attrib.c a = ctx->attr; attr 159 fs/ntfs/attrib.c BUG_ON(!ctx->attr->non_resident); attr 161 fs/ntfs/attrib.c a = ctx->attr; attr 243 fs/ntfs/attrib.c old_ctx.attr = (ATTR_RECORD*)( attr 245 fs/ntfs/attrib.c ((u8*)old_ctx.attr - attr 589 fs/ntfs/attrib.c a = ctx->attr; attr 592 fs/ntfs/attrib.c a = (ATTR_RECORD*)((u8*)ctx->attr + attr 593 fs/ntfs/attrib.c le32_to_cpu(ctx->attr->length)); attr 598 fs/ntfs/attrib.c ctx->attr = a; attr 867 fs/ntfs/attrib.c ctx->base_attr = ctx->attr; attr 1007 fs/ntfs/attrib.c ctx->attr = (ATTR_RECORD*)((u8*)ctx->mrec + attr 1025 fs/ntfs/attrib.c a = ctx->attr; attr 1052 fs/ntfs/attrib.c ctx->attr = a; attr 1081 fs/ntfs/attrib.c ctx->attr = ctx->base_attr; attr 1112 fs/ntfs/attrib.c ctx->attr = (ATTR_RECORD*)((u8*)ctx->mrec + attr 1209 fs/ntfs/attrib.c .attr = (ATTR_RECORD*)((u8*)mrec + attr 1232 fs/ntfs/attrib.c ctx->attr = (ATTR_RECORD*)((u8*)ctx->mrec + attr 1618 fs/ntfs/attrib.c a = ctx->attr; attr 2024 fs/ntfs/attrib.c a = ctx->attr; attr 2321 fs/ntfs/attrib.c a = ctx->attr; attr 2401 fs/ntfs/attrib.c ctx->attr->data.non_resident.highest_vcn = cpu_to_sle64( attr 2412 fs/ntfs/attrib.c a = ctx->attr; attr 40 fs/ntfs/attrib.h ATTR_RECORD *attr; attr 112 fs/ntfs/dir.c ir = (INDEX_ROOT*)((u8*)ctx->attr + attr 113 fs/ntfs/dir.c le16_to_cpu(ctx->attr->data.resident.value_offset)); attr 663 fs/ntfs/dir.c ir = (INDEX_ROOT*)((u8*)ctx->attr + attr 664 fs/ntfs/dir.c le16_to_cpu(ctx->attr->data.resident.value_offset)); attr 1160 fs/ntfs/dir.c rc = le32_to_cpu(ctx->attr->data.resident.value_length); attr 1167 fs/ntfs/dir.c memcpy(ir, (u8*)ctx->attr + attr 1168 fs/ntfs/dir.c le16_to_cpu(ctx->attr->data.resident.value_offset), rc); attr 150 fs/ntfs/file.c a = ctx->attr; attr 194 fs/ntfs/file.c a = ctx->attr; attr 291 fs/ntfs/file.c a = ctx->attr; attr 1034 fs/ntfs/file.c a = ctx->attr; attr 1140 fs/ntfs/file.c a = ctx->attr; attr 1248 fs/ntfs/file.c a = ctx->attr; attr 1472 fs/ntfs/file.c a = ctx->attr; attr 1598 fs/ntfs/file.c a = ctx->attr; attr 161 fs/ntfs/index.c ir = (INDEX_ROOT*)((u8*)actx->attr + attr 162 fs/ntfs/index.c le16_to_cpu(actx->attr->data.resident.value_offset)); attr 445 fs/ntfs/inode.c ATTR_RECORD *attr = ctx->attr; attr 453 fs/ntfs/inode.c p = (u8*)attr + le32_to_cpu(attr->length); attr 461 fs/ntfs/inode.c if (attr->non_resident) { attr 466 fs/ntfs/inode.c if (attr->flags) { attr 472 fs/ntfs/inode.c if (!(attr->data.resident.flags & RESIDENT_ATTR_IS_INDEXED)) { attr 477 fs/ntfs/inode.c file_name_attr = (FILE_NAME_ATTR*)((u8*)attr + attr 478 fs/ntfs/inode.c le16_to_cpu(attr->data.resident.value_offset)); attr 479 fs/ntfs/inode.c p2 = (u8*)attr + le32_to_cpu(attr->data.resident.value_length); attr 480 fs/ntfs/inode.c if (p2 < (u8*)attr || p2 > p) attr 629 fs/ntfs/inode.c a = ctx->attr; attr 671 fs/ntfs/inode.c a = ctx->attr; attr 773 fs/ntfs/inode.c a = ctx->attr; attr 900 fs/ntfs/inode.c a = ctx->attr; attr 1023 fs/ntfs/inode.c a = ctx->attr; attr 1236 fs/ntfs/inode.c a = ctx->attr; attr 1505 fs/ntfs/inode.c a = ctx->attr; attr 1602 fs/ntfs/inode.c a = ctx->attr; attr 1847 fs/ntfs/inode.c a = ctx->attr; attr 1992 fs/ntfs/inode.c a = ctx->attr; attr 2392 fs/ntfs/inode.c a = ctx->attr; attr 2675 fs/ntfs/inode.c a = ctx->attr; attr 2858 fs/ntfs/inode.c int ntfs_setattr(struct dentry *dentry, struct iattr *attr) attr 2862 fs/ntfs/inode.c unsigned int ia_valid = attr->ia_valid; attr 2864 fs/ntfs/inode.c err = setattr_prepare(dentry, attr); attr 2875 fs/ntfs/inode.c if (attr->ia_size != i_size_read(vi)) { attr 2889 fs/ntfs/inode.c truncate_setsize(vi, attr->ia_size); attr 2903 fs/ntfs/inode.c vi->i_atime = attr->ia_atime; attr 2905 fs/ntfs/inode.c vi->i_mtime = attr->ia_mtime; attr 2907 fs/ntfs/inode.c vi->i_ctime = attr->ia_ctime; attr 2971 fs/ntfs/inode.c si = (STANDARD_INFORMATION*)((u8*)ctx->attr + attr 2972 fs/ntfs/inode.c le16_to_cpu(ctx->attr->data.resident.value_offset)); attr 294 fs/ntfs/inode.h extern int ntfs_setattr(struct dentry *dentry, struct iattr *attr); attr 1405 fs/ntfs/mft.c a = ctx->attr; attr 1477 fs/ntfs/mft.c a = ctx->attr; attr 1512 fs/ntfs/mft.c a = ctx->attr; attr 1608 fs/ntfs/mft.c a = ctx->attr; attr 1663 fs/ntfs/mft.c a = ctx->attr; attr 1837 fs/ntfs/mft.c a = ctx->attr; attr 1916 fs/ntfs/mft.c a = ctx->attr; attr 1950 fs/ntfs/mft.c ctx->attr->data.non_resident.highest_vcn = attr 1958 fs/ntfs/mft.c a = ctx->attr; attr 2476 fs/ntfs/mft.c a = ctx->attr; attr 212 fs/ntfs/namei.c a = ctx->attr; attr 219 fs/ntfs/namei.c fn = (FILE_NAME_ATTR*)((u8*)ctx->attr + le16_to_cpu( attr 220 fs/ntfs/namei.c ctx->attr->data.resident.value_offset)); attr 292 fs/ntfs/namei.c ATTR_RECORD *attr; attr 320 fs/ntfs/namei.c attr = ctx->attr; attr 321 fs/ntfs/namei.c if (unlikely(attr->non_resident)) attr 323 fs/ntfs/namei.c fn = (FILE_NAME_ATTR *)((u8 *)attr + attr 324 fs/ntfs/namei.c le16_to_cpu(attr->data.resident.value_offset)); attr 325 fs/ntfs/namei.c if (unlikely((u8 *)fn + le32_to_cpu(attr->data.resident.value_length) > attr 326 fs/ntfs/namei.c (u8*)attr + le32_to_cpu(attr->length))) attr 736 fs/ntfs/runlist.c const ATTR_RECORD *attr, runlist_element *old_rl) attr 751 fs/ntfs/runlist.c if (!attr || !attr->non_resident || sle64_to_cpu( attr 752 fs/ntfs/runlist.c attr->data.non_resident.lowest_vcn) < (VCN)0) { attr 758 fs/ntfs/runlist.c vcn = sle64_to_cpu(attr->data.non_resident.lowest_vcn); attr 761 fs/ntfs/runlist.c buf = (u8*)attr + le16_to_cpu( attr 762 fs/ntfs/runlist.c attr->data.non_resident.mapping_pairs_offset); attr 763 fs/ntfs/runlist.c attr_end = (u8*)attr + le32_to_cpu(attr->length); attr 764 fs/ntfs/runlist.c if (unlikely(buf < (u8*)attr || buf > attr_end)) { attr 891 fs/ntfs/runlist.c deltaxcn = sle64_to_cpu(attr->data.non_resident.highest_vcn); attr 899 fs/ntfs/runlist.c if (!attr->data.non_resident.lowest_vcn) { attr 903 fs/ntfs/runlist.c attr->data.non_resident.allocated_size) + attr 63 fs/ntfs/runlist.h const ATTR_RECORD *attr, runlist_element *old_rl); attr 388 fs/ntfs/super.c vi = (VOLUME_INFORMATION*)((u8*)ctx->attr + attr 389 fs/ntfs/super.c le16_to_cpu(ctx->attr->data.resident.value_offset)); attr 1866 fs/ntfs/super.c ctx) || ctx->attr->non_resident || ctx->attr->flags) { attr 1873 fs/ntfs/super.c vi = (VOLUME_INFORMATION*)((char*)ctx->attr + attr 1874 fs/ntfs/super.c le16_to_cpu(ctx->attr->data.resident.value_offset)); attr 1876 fs/ntfs/super.c if ((u8*)vi < (u8*)ctx->attr || (u8*)vi + attr 1877 fs/ntfs/super.c le32_to_cpu(ctx->attr->data.resident.value_length) > attr 1878 fs/ntfs/super.c (u8*)ctx->attr + le32_to_cpu(ctx->attr->length)) attr 88 fs/ocfs2/cluster/masklog.c struct attribute attr; attr 92 fs/ocfs2/cluster/masklog.c #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr) attr 95 fs/ocfs2/cluster/masklog.c .attr = { \ attr 127 fs/ocfs2/cluster/masklog.c static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, attr 130 fs/ocfs2/cluster/masklog.c struct mlog_attribute *mlog_attr = to_mlog_attr(attr); attr 135 fs/ocfs2/cluster/masklog.c static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, attr 138 fs/ocfs2/cluster/masklog.c struct mlog_attribute *mlog_attr = to_mlog_attr(attr); attr 161 fs/ocfs2/cluster/masklog.c while (mlog_attrs[i].attr.mode) { attr 162 fs/ocfs2/cluster/masklog.c mlog_attr_ptrs[i] = &mlog_attrs[i].attr; attr 23 fs/ocfs2/cluster/sys.c static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, attr 32 fs/ocfs2/cluster/sys.c &attr_version.attr, attr 193 fs/ocfs2/dlmfs/dlmfs.c static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr) attr 198 fs/ocfs2/dlmfs/dlmfs.c attr->ia_valid &= ~ATTR_SIZE; attr 199 fs/ocfs2/dlmfs/dlmfs.c error = setattr_prepare(dentry, attr); attr 203 fs/ocfs2/dlmfs/dlmfs.c setattr_copy(inode, attr); attr 1115 fs/ocfs2/file.c int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) attr 1132 fs/ocfs2/file.c attr->ia_valid, attr->ia_mode, attr 1133 fs/ocfs2/file.c from_kuid(&init_user_ns, attr->ia_uid), attr 1134 fs/ocfs2/file.c from_kgid(&init_user_ns, attr->ia_gid)); attr 1138 fs/ocfs2/file.c attr->ia_valid &= ~ATTR_SIZE; attr 1142 fs/ocfs2/file.c if (!(attr->ia_valid & OCFS2_VALID_ATTRS)) attr 1145 fs/ocfs2/file.c status = setattr_prepare(dentry, attr); attr 1149 fs/ocfs2/file.c if (is_quota_modification(inode, attr)) { attr 1154 fs/ocfs2/file.c size_change = S_ISREG(inode->i_mode) && attr->ia_valid & ATTR_SIZE; attr 1198 fs/ocfs2/file.c status = inode_newsize_ok(inode, attr->ia_size); attr 1202 fs/ocfs2/file.c if (i_size_read(inode) >= attr->ia_size) { attr 1205 fs/ocfs2/file.c attr->ia_size); attr 1209 fs/ocfs2/file.c status = ocfs2_truncate_file(inode, bh, attr->ia_size); attr 1211 fs/ocfs2/file.c status = ocfs2_extend_file(inode, bh, attr->ia_size); attr 1220 fs/ocfs2/file.c if ((attr->ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, inode->i_uid)) || attr 1221 fs/ocfs2/file.c (attr->ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, inode->i_gid))) { attr 1227 fs/ocfs2/file.c if (attr->ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, inode->i_uid) attr 1230 fs/ocfs2/file.c transfer_to[USRQUOTA] = dqget(sb, make_kqid_uid(attr->ia_uid)); attr 1237 fs/ocfs2/file.c if (attr->ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, inode->i_gid) attr 1240 fs/ocfs2/file.c transfer_to[GRPQUOTA] = dqget(sb, make_kqid_gid(attr->ia_gid)); attr 1266 fs/ocfs2/file.c setattr_copy(inode, attr); attr 1289 fs/ocfs2/file.c if (!status && attr->ia_valid & ATTR_MODE) { attr 54 fs/ocfs2/file.h int ocfs2_setattr(struct dentry *dentry, struct iattr *attr); attr 76 fs/ocfs2/filecheck.c struct kobj_attribute *attr, attr 79 fs/ocfs2/filecheck.c struct kobj_attribute *attr, attr 94 fs/ocfs2/filecheck.c &ocfs2_filecheck_attr_chk.attr, attr 95 fs/ocfs2/filecheck.c &ocfs2_filecheck_attr_fix.attr, attr 96 fs/ocfs2/filecheck.c &ocfs2_filecheck_attr_set.attr, attr 109 fs/ocfs2/filecheck.c ocfs2_filecheck_show(struct kobject *kobj, struct attribute *attr, char *buf) attr 112 fs/ocfs2/filecheck.c struct kobj_attribute *kattr = container_of(attr, attr 113 fs/ocfs2/filecheck.c struct kobj_attribute, attr); attr 123 fs/ocfs2/filecheck.c ocfs2_filecheck_store(struct kobject *kobj, struct attribute *attr, attr 127 fs/ocfs2/filecheck.c struct kobj_attribute *kattr = container_of(attr, attr 128 fs/ocfs2/filecheck.c struct kobj_attribute, attr); attr 300 fs/ocfs2/filecheck.c struct kobj_attribute *attr, attr 310 fs/ocfs2/filecheck.c if (ocfs2_filecheck_type_parse(attr->attr.name, &type)) attr 452 fs/ocfs2/filecheck.c struct kobj_attribute *attr, attr 464 fs/ocfs2/filecheck.c if (ocfs2_filecheck_args_parse(attr->attr.name, buf, count, &args)) attr 475 fs/ocfs2/stackglue.c struct kobj_attribute *attr, attr 495 fs/ocfs2/stackglue.c struct kobj_attribute *attr, attr 527 fs/ocfs2/stackglue.c struct kobj_attribute *attr, attr 549 fs/ocfs2/stackglue.c struct kobj_attribute *attr, attr 561 fs/ocfs2/stackglue.c struct kobj_attribute *attr, attr 601 fs/ocfs2/stackglue.c struct kobj_attribute *attr, attr 612 fs/ocfs2/stackglue.c &ocfs2_attr_max_locking_protocol.attr, attr 613 fs/ocfs2/stackglue.c &ocfs2_attr_loaded_cluster_plugins.attr, attr 614 fs/ocfs2/stackglue.c &ocfs2_attr_active_cluster_plugin.attr, attr 615 fs/ocfs2/stackglue.c &ocfs2_attr_cluster_stack.attr, attr 616 fs/ocfs2/stackglue.c &ocfs2_attr_dlm_recover_support.attr, attr 347 fs/omfs/file.c static int omfs_setattr(struct dentry *dentry, struct iattr *attr) attr 352 fs/omfs/file.c error = setattr_prepare(dentry, attr); attr 356 fs/omfs/file.c if ((attr->ia_valid & ATTR_SIZE) && attr 357 fs/omfs/file.c attr->ia_size != i_size_read(inode)) { attr 358 fs/omfs/file.c error = inode_newsize_ok(inode, attr->ia_size); attr 361 fs/omfs/file.c truncate_setsize(inode, attr->ia_size); attr 365 fs/omfs/file.c setattr_copy(inode, attr); attr 166 fs/orangefs/orangefs-sysfs.c struct attribute attr; attr 168 fs/orangefs/orangefs-sysfs.c struct orangefs_attribute *attr, attr 171 fs/orangefs/orangefs-sysfs.c struct orangefs_attribute *attr, attr 177 fs/orangefs/orangefs-sysfs.c struct attribute *attr, attr 182 fs/orangefs/orangefs-sysfs.c attribute = container_of(attr, struct orangefs_attribute, attr); attr 189 fs/orangefs/orangefs-sysfs.c struct attribute *attr, attr 199 fs/orangefs/orangefs-sysfs.c attribute = container_of(attr, struct orangefs_attribute, attr); attr 211 fs/orangefs/orangefs-sysfs.c struct orangefs_attribute *attr, char *buf) attr 219 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "op_timeout_secs")) { attr 225 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 232 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 239 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 246 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 258 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "reads")) { attr 264 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "writes")) { attr 281 fs/orangefs/orangefs-sysfs.c struct orangefs_attribute *attr, const char *buf, size_t count) attr 287 fs/orangefs/orangefs-sysfs.c attr->attr.name, buf); attr 289 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "op_timeout_secs")) { attr 292 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "slot_timeout_secs")) { attr 295 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "cache_timeout_msecs")) { attr 298 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "dcache_timeout_msecs")) { attr 301 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "getattr_timeout_msecs")) { attr 321 fs/orangefs/orangefs-sysfs.c struct orangefs_attribute *attr, char *buf) attr 356 fs/orangefs/orangefs-sysfs.c (!strcmp(attr->attr.name, "readahead_count") || attr 357 fs/orangefs/orangefs-sysfs.c !strcmp(attr->attr.name, "readahead_size") || attr 358 fs/orangefs/orangefs-sysfs.c !strcmp(attr->attr.name, "readahead_count_size") || attr 359 fs/orangefs/orangefs-sysfs.c !strcmp(attr->attr.name, "readahead_readcnt"))) { attr 364 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "perf_history_size")) attr 367 fs/orangefs/orangefs-sysfs.c else if (!strcmp(attr->attr.name, attr 371 fs/orangefs/orangefs-sysfs.c else if (!strcmp(attr->attr.name, attr 376 fs/orangefs/orangefs-sysfs.c else if (!strcmp(attr->attr.name, attr 381 fs/orangefs/orangefs-sysfs.c else if (!strcmp(attr->attr.name, attr 386 fs/orangefs/orangefs-sysfs.c else if (!strcmp(attr->attr.name, attr 391 fs/orangefs/orangefs-sysfs.c else if (!strcmp(attr->attr.name, attr 396 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "timeout_msecs")) attr 400 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) attr 404 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "soft_limit")) attr 408 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "reclaim_percentage")) attr 413 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "timeout_secs")) attr 417 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) attr 421 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "soft_limit")) attr 425 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "reclaim_percentage")) attr 430 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "timeout_secs")) attr 434 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) attr 438 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "soft_limit")) attr 442 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "reclaim_percentage")) attr 447 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "timeout_msecs")) attr 451 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) attr 455 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "soft_limit")) attr 459 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "reclaim_percentage")) attr 464 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, ACACHE_KOBJ_ID)) attr 468 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, CAPCACHE_KOBJ_ID)) attr 472 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, NCACHE_KOBJ_ID)) attr 536 fs/orangefs/orangefs-sysfs.c struct orangefs_attribute *attr, const char *buf, size_t count) attr 564 fs/orangefs/orangefs-sysfs.c strcmp(attr->attr.name, "readahead_count_size")) { attr 575 fs/orangefs/orangefs-sysfs.c (!strcmp(attr->attr.name, "readahead_count") || attr 576 fs/orangefs/orangefs-sysfs.c !strcmp(attr->attr.name, "readahead_size") || attr 577 fs/orangefs/orangefs-sysfs.c !strcmp(attr->attr.name, "readahead_count_size") || attr 578 fs/orangefs/orangefs-sysfs.c !strcmp(attr->attr.name, "readahead_readcnt"))) { attr 583 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "perf_history_size")) { attr 591 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 600 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 609 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 618 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 627 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 645 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 657 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) { attr 665 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "soft_limit")) { attr 673 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 682 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "timeout_msecs")) { attr 693 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) { attr 701 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "soft_limit")) { attr 709 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 718 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "timeout_secs")) { attr 729 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) { attr 737 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "soft_limit")) { attr 745 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 754 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "timeout_secs")) { attr 765 fs/orangefs/orangefs-sysfs.c if (!strcmp(attr->attr.name, "hard_limit")) { attr 773 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "soft_limit")) { attr 781 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, attr 790 fs/orangefs/orangefs-sysfs.c } else if (!strcmp(attr->attr.name, "timeout_msecs")) { attr 883 fs/orangefs/orangefs-sysfs.c &op_timeout_secs_attribute.attr, attr 884 fs/orangefs/orangefs-sysfs.c &slot_timeout_secs_attribute.attr, attr 885 fs/orangefs/orangefs-sysfs.c &cache_timeout_msecs_attribute.attr, attr 886 fs/orangefs/orangefs-sysfs.c &dcache_timeout_msecs_attribute.attr, attr 887 fs/orangefs/orangefs-sysfs.c &getattr_timeout_msecs_attribute.attr, attr 888 fs/orangefs/orangefs-sysfs.c &readahead_count_attribute.attr, attr 889 fs/orangefs/orangefs-sysfs.c &readahead_size_attribute.attr, attr 890 fs/orangefs/orangefs-sysfs.c &readahead_count_size_attribute.attr, attr 891 fs/orangefs/orangefs-sysfs.c &readahead_readcnt_attribute.attr, attr 892 fs/orangefs/orangefs-sysfs.c &perf_counter_reset_attribute.attr, attr 893 fs/orangefs/orangefs-sysfs.c &perf_history_size_attribute.attr, attr 894 fs/orangefs/orangefs-sysfs.c &perf_time_interval_secs_attribute.attr, attr 928 fs/orangefs/orangefs-sysfs.c &acache_hard_limit_attribute.attr, attr 929 fs/orangefs/orangefs-sysfs.c &acache_reclaim_percent_attribute.attr, attr 930 fs/orangefs/orangefs-sysfs.c &acache_soft_limit_attribute.attr, attr 931 fs/orangefs/orangefs-sysfs.c &acache_timeout_msecs_attribute.attr, attr 965 fs/orangefs/orangefs-sysfs.c &capcache_hard_limit_attribute.attr, attr 966 fs/orangefs/orangefs-sysfs.c &capcache_reclaim_percent_attribute.attr, attr 967 fs/orangefs/orangefs-sysfs.c &capcache_soft_limit_attribute.attr, attr 968 fs/orangefs/orangefs-sysfs.c &capcache_timeout_secs_attribute.attr, attr 1002 fs/orangefs/orangefs-sysfs.c &ccache_hard_limit_attribute.attr, attr 1003 fs/orangefs/orangefs-sysfs.c &ccache_reclaim_percent_attribute.attr, attr 1004 fs/orangefs/orangefs-sysfs.c &ccache_soft_limit_attribute.attr, attr 1005 fs/orangefs/orangefs-sysfs.c &ccache_timeout_secs_attribute.attr, attr 1039 fs/orangefs/orangefs-sysfs.c &ncache_hard_limit_attribute.attr, attr 1040 fs/orangefs/orangefs-sysfs.c &ncache_reclaim_percent_attribute.attr, attr 1041 fs/orangefs/orangefs-sysfs.c &ncache_soft_limit_attribute.attr, attr 1042 fs/orangefs/orangefs-sysfs.c &ncache_timeout_msecs_attribute.attr, attr 1070 fs/orangefs/orangefs-sysfs.c &pc_acache_attribute.attr, attr 1071 fs/orangefs/orangefs-sysfs.c &pc_capcache_attribute.attr, attr 1072 fs/orangefs/orangefs-sysfs.c &pc_ncache_attribute.attr, attr 1094 fs/orangefs/orangefs-sysfs.c &stats_reads_attribute.attr, attr 1095 fs/orangefs/orangefs-sysfs.c &stats_writes_attribute.attr, attr 182 fs/overlayfs/copy_up.c struct iattr attr = { attr 187 fs/overlayfs/copy_up.c return notify_change(upperdentry, &attr, NULL); attr 192 fs/overlayfs/copy_up.c struct iattr attr = { attr 199 fs/overlayfs/copy_up.c return notify_change(upperdentry, &attr, NULL); attr 207 fs/overlayfs/copy_up.c struct iattr attr = { attr 211 fs/overlayfs/copy_up.c err = notify_change(upperdentry, &attr, NULL); attr 214 fs/overlayfs/copy_up.c struct iattr attr = { attr 219 fs/overlayfs/copy_up.c err = notify_change(upperdentry, &attr, NULL); attr 148 fs/overlayfs/dir.c struct ovl_cattr *attr) attr 159 fs/overlayfs/dir.c if (attr->hardlink) { attr 160 fs/overlayfs/dir.c err = ovl_do_link(attr->hardlink, dir, newdentry); attr 162 fs/overlayfs/dir.c switch (attr->mode & S_IFMT) { attr 164 fs/overlayfs/dir.c err = ovl_do_create(dir, newdentry, attr->mode); attr 169 fs/overlayfs/dir.c err = ovl_mkdir_real(dir, &newdentry, attr->mode); attr 176 fs/overlayfs/dir.c err = ovl_do_mknod(dir, newdentry, attr->mode, attr 177 fs/overlayfs/dir.c attr->rdev); attr 181 fs/overlayfs/dir.c err = ovl_do_symlink(dir, newdentry, attr->link); attr 203 fs/overlayfs/dir.c struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr) attr 206 fs/overlayfs/dir.c attr); attr 292 fs/overlayfs/dir.c struct ovl_cattr *attr) attr 299 fs/overlayfs/dir.c if (!attr->hardlink && !IS_POSIXACL(udir)) attr 300 fs/overlayfs/dir.c attr->mode &= ~current_umask(); attr 307 fs/overlayfs/dir.c attr); attr 317 fs/overlayfs/dir.c err = ovl_instantiate(dentry, inode, newdentry, !!attr->hardlink); attr 477 fs/overlayfs/dir.c struct iattr attr = { attr 482 fs/overlayfs/dir.c err = notify_change(newdentry, &attr, NULL); attr 536 fs/overlayfs/dir.c struct ovl_cattr *attr, bool origin) attr 564 fs/overlayfs/dir.c if (!attr->hardlink) { attr 566 fs/overlayfs/dir.c attr->mode, &dentry->d_name, old_cred, attr 577 fs/overlayfs/dir.c err = ovl_create_upper(dentry, inode, attr); attr 579 fs/overlayfs/dir.c err = ovl_create_over_whiteout(dentry, inode, attr); attr 591 fs/overlayfs/dir.c struct ovl_cattr attr = { attr 611 fs/overlayfs/dir.c attr.mode = inode->i_mode; attr 613 fs/overlayfs/dir.c err = ovl_create_or_link(dentry, inode, &attr, false); attr 16 fs/overlayfs/inode.c int ovl_setattr(struct dentry *dentry, struct iattr *attr) attr 23 fs/overlayfs/inode.c err = setattr_prepare(dentry, attr); attr 31 fs/overlayfs/inode.c if (attr->ia_valid & ATTR_SIZE) { attr 51 fs/overlayfs/inode.c if (attr->ia_valid & ATTR_SIZE) { attr 58 fs/overlayfs/inode.c if (attr->ia_valid & (ATTR_KILL_SUID|ATTR_KILL_SGID)) attr 59 fs/overlayfs/inode.c attr->ia_valid &= ~ATTR_MODE; attr 63 fs/overlayfs/inode.c err = notify_change(upperdentry, attr, NULL); attr 352 fs/overlayfs/overlayfs.h int ovl_setattr(struct dentry *dentry, struct iattr *attr); attr 413 fs/overlayfs/overlayfs.h struct ovl_cattr *attr); attr 415 fs/overlayfs/overlayfs.h struct dentry *ovl_create_temp(struct dentry *workdir, struct ovl_cattr *attr); attr 631 fs/overlayfs/super.c struct iattr attr = { attr 650 fs/overlayfs/super.c work = ovl_create_real(dir, work, OVL_CATTR(attr.ia_mode)); attr 678 fs/overlayfs/super.c err = notify_change(work, &attr, NULL); attr 677 fs/proc/base.c int proc_setattr(struct dentry *dentry, struct iattr *attr) attr 682 fs/proc/base.c if (attr->ia_valid & ATTR_MODE) attr 685 fs/proc/base.c error = setattr_prepare(dentry, attr); attr 689 fs/proc/base.c setattr_copy(inode, attr); attr 835 fs/proc/proc_sysctl.c static int proc_sys_setattr(struct dentry *dentry, struct iattr *attr) attr 840 fs/proc/proc_sysctl.c if (attr->ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) attr 843 fs/proc/proc_sysctl.c error = setattr_prepare(dentry, attr); attr 847 fs/proc/proc_sysctl.c setattr_copy(inode, attr); attr 3290 fs/reiserfs/inode.c int reiserfs_setattr(struct dentry *dentry, struct iattr *attr) attr 3296 fs/reiserfs/inode.c error = setattr_prepare(dentry, attr); attr 3301 fs/reiserfs/inode.c ia_valid = attr->ia_valid &= ~(ATTR_KILL_SUID|ATTR_KILL_SGID); attr 3303 fs/reiserfs/inode.c if (is_quota_modification(inode, attr)) { attr 3309 fs/reiserfs/inode.c if (attr->ia_valid & ATTR_SIZE) { attr 3315 fs/reiserfs/inode.c attr->ia_size > MAX_NON_LFS) { attr 3324 fs/reiserfs/inode.c if (attr->ia_size > inode->i_size) { attr 3325 fs/reiserfs/inode.c error = generic_cont_expand_simple(inode, attr->ia_size); attr 3346 fs/reiserfs/inode.c attr->ia_valid |= (ATTR_MTIME | ATTR_CTIME); attr 3351 fs/reiserfs/inode.c if ((((attr->ia_valid & ATTR_UID) && (from_kuid(&init_user_ns, attr->ia_uid) & ~0xffff)) || attr 3352 fs/reiserfs/inode.c ((attr->ia_valid & ATTR_GID) && (from_kgid(&init_user_ns, attr->ia_gid) & ~0xffff))) && attr 3359 fs/reiserfs/inode.c if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, inode->i_uid)) || attr 3360 fs/reiserfs/inode.c (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, inode->i_gid))) { attr 3368 fs/reiserfs/inode.c error = reiserfs_chown_xattrs(inode, attr); attr 3382 fs/reiserfs/inode.c error = dquot_transfer(inode, attr); attr 3394 fs/reiserfs/inode.c if (attr->ia_valid & ATTR_UID) attr 3395 fs/reiserfs/inode.c inode->i_uid = attr->ia_uid; attr 3396 fs/reiserfs/inode.c if (attr->ia_valid & ATTR_GID) attr 3397 fs/reiserfs/inode.c inode->i_gid = attr->ia_gid; attr 3405 fs/reiserfs/inode.c if ((attr->ia_valid & ATTR_SIZE) && attr 3406 fs/reiserfs/inode.c attr->ia_size != i_size_read(inode)) { attr 3407 fs/reiserfs/inode.c error = inode_newsize_ok(inode, attr->ia_size); attr 3414 fs/reiserfs/inode.c truncate_setsize(inode, attr->ia_size); attr 3421 fs/reiserfs/inode.c setattr_copy(inode, attr); attr 3426 fs/reiserfs/inode.c if (attr->ia_valid & ATTR_MODE) attr 3105 fs/reiserfs/reiserfs.h int reiserfs_setattr(struct dentry *dentry, struct iattr *attr); attr 172 fs/sysfs/file.c void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) attr 181 fs/sysfs/file.c if (kn && attr) { attr 182 fs/sysfs/file.c tmp = kernfs_find_and_get(kn, attr); attr 246 fs/sysfs/file.c const struct attribute *attr, bool is_bin, attr 284 fs/sysfs/file.c struct bin_attribute *battr = (void *)attr; attr 301 fs/sysfs/file.c if (!attr->ignore_lockdep) attr 302 fs/sysfs/file.c key = attr->key ?: (struct lock_class_key *)&attr->skey; attr 305 fs/sysfs/file.c kn = __kernfs_create_file(parent, attr->name, mode & 0777, uid, gid, attr 306 fs/sysfs/file.c size, ops, (void *)attr, ns, key); attr 309 fs/sysfs/file.c sysfs_warn_dup(parent, attr->name); attr 321 fs/sysfs/file.c int sysfs_create_file_ns(struct kobject *kobj, const struct attribute *attr, attr 327 fs/sysfs/file.c if (WARN_ON(!kobj || !kobj->sd || !attr)) attr 331 fs/sysfs/file.c return sysfs_add_file_mode_ns(kobj->sd, attr, false, attr->mode, attr 358 fs/sysfs/file.c const struct attribute *attr, const char *group) attr 376 fs/sysfs/file.c error = sysfs_add_file_mode_ns(parent, attr, false, attr 377 fs/sysfs/file.c attr->mode, uid, gid, NULL); attr 391 fs/sysfs/file.c int sysfs_chmod_file(struct kobject *kobj, const struct attribute *attr, attr 398 fs/sysfs/file.c kn = kernfs_find_and_get(kobj->sd, attr->name); attr 423 fs/sysfs/file.c const struct attribute *attr) attr 428 fs/sysfs/file.c kn = kernfs_find_and_get(kobj->sd, attr->name); attr 464 fs/sysfs/file.c void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, attr 469 fs/sysfs/file.c kernfs_remove_by_name_ns(parent, attr->name, ns); attr 480 fs/sysfs/file.c bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr) attr 486 fs/sysfs/file.c kn = kernfs_find_and_get(parent, attr->name); attr 512 fs/sysfs/file.c const struct attribute *attr, const char *group) attr 524 fs/sysfs/file.c kernfs_remove_by_name(parent, attr->name); attr 536 fs/sysfs/file.c const struct bin_attribute *attr) attr 541 fs/sysfs/file.c if (WARN_ON(!kobj || !kobj->sd || !attr)) attr 545 fs/sysfs/file.c return sysfs_add_file_mode_ns(kobj->sd, &attr->attr, true, attr 546 fs/sysfs/file.c attr->attr.mode, uid, gid, NULL); attr 556 fs/sysfs/file.c const struct bin_attribute *attr) attr 558 fs/sysfs/file.c kernfs_remove_by_name(kobj->sd, attr->attr.name); attr 22 fs/sysfs/group.c struct attribute *const *attr; attr 26 fs/sysfs/group.c for (attr = grp->attrs; *attr; attr++) attr 27 fs/sysfs/group.c kernfs_remove_by_name(parent, (*attr)->name); attr 30 fs/sysfs/group.c kernfs_remove_by_name(parent, (*bin_attr)->attr.name); attr 37 fs/sysfs/group.c struct attribute *const *attr; attr 42 fs/sysfs/group.c for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { attr 43 fs/sysfs/group.c umode_t mode = (*attr)->mode; attr 51 fs/sysfs/group.c kernfs_remove_by_name(parent, (*attr)->name); attr 53 fs/sysfs/group.c mode = grp->is_visible(kobj, *attr, i); attr 60 fs/sysfs/group.c (*attr)->name, mode); attr 63 fs/sysfs/group.c error = sysfs_add_file_mode_ns(parent, *attr, false, attr 76 fs/sysfs/group.c umode_t mode = (*bin_attr)->attr.mode; attr 80 fs/sysfs/group.c (*bin_attr)->attr.name); attr 89 fs/sysfs/group.c (*bin_attr)->attr.name, mode); attr 93 fs/sysfs/group.c &(*bin_attr)->attr, true, attr 332 fs/sysfs/group.c struct attribute *const *attr; attr 341 fs/sysfs/group.c for ((i = 0, attr = grp->attrs); *attr && !error; (++i, ++attr)) attr 342 fs/sysfs/group.c error = sysfs_add_file_mode_ns(parent, *attr, false, attr 343 fs/sysfs/group.c (*attr)->mode, uid, gid, NULL); attr 346 fs/sysfs/group.c kernfs_remove_by_name(parent, (*--attr)->name); attr 363 fs/sysfs/group.c struct attribute *const *attr; attr 367 fs/sysfs/group.c for (attr = grp->attrs; *attr; ++attr) attr 368 fs/sysfs/group.c kernfs_remove_by_name(parent, (*attr)->name); attr 31 fs/sysfs/sysfs.h const struct attribute *attr, bool is_bin, attr 32 fs/sysv/file.c static int sysv_setattr(struct dentry *dentry, struct iattr *attr) attr 37 fs/sysv/file.c error = setattr_prepare(dentry, attr); attr 41 fs/sysv/file.c if ((attr->ia_valid & ATTR_SIZE) && attr 42 fs/sysv/file.c attr->ia_size != i_size_read(inode)) { attr 43 fs/sysv/file.c error = inode_newsize_ok(inode, attr->ia_size); attr 46 fs/sysv/file.c truncate_setsize(inode, attr->ia_size); attr 50 fs/sysv/file.c setattr_copy(inode, attr); attr 1077 fs/ubifs/file.c static void do_attr_changes(struct inode *inode, const struct iattr *attr) attr 1079 fs/ubifs/file.c if (attr->ia_valid & ATTR_UID) attr 1080 fs/ubifs/file.c inode->i_uid = attr->ia_uid; attr 1081 fs/ubifs/file.c if (attr->ia_valid & ATTR_GID) attr 1082 fs/ubifs/file.c inode->i_gid = attr->ia_gid; attr 1083 fs/ubifs/file.c if (attr->ia_valid & ATTR_ATIME) attr 1084 fs/ubifs/file.c inode->i_atime = attr->ia_atime; attr 1085 fs/ubifs/file.c if (attr->ia_valid & ATTR_MTIME) attr 1086 fs/ubifs/file.c inode->i_mtime = attr->ia_mtime; attr 1087 fs/ubifs/file.c if (attr->ia_valid & ATTR_CTIME) attr 1088 fs/ubifs/file.c inode->i_ctime = attr->ia_ctime; attr 1089 fs/ubifs/file.c if (attr->ia_valid & ATTR_MODE) { attr 1090 fs/ubifs/file.c umode_t mode = attr->ia_mode; attr 1109 fs/ubifs/file.c const struct iattr *attr) attr 1113 fs/ubifs/file.c loff_t old_size = inode->i_size, new_size = attr->ia_size; attr 1190 fs/ubifs/file.c do_attr_changes(inode, attr); attr 1215 fs/ubifs/file.c const struct iattr *attr) attr 1218 fs/ubifs/file.c loff_t new_size = attr->ia_size; attr 1227 fs/ubifs/file.c if (attr->ia_valid & ATTR_SIZE) { attr 1233 fs/ubifs/file.c if (attr->ia_valid & ATTR_SIZE) { attr 1240 fs/ubifs/file.c do_attr_changes(inode, attr); attr 1243 fs/ubifs/file.c if (attr->ia_valid & ATTR_SIZE) attr 1260 fs/ubifs/file.c int ubifs_setattr(struct dentry *dentry, struct iattr *attr) attr 1267 fs/ubifs/file.c inode->i_ino, inode->i_mode, attr->ia_valid); attr 1268 fs/ubifs/file.c err = setattr_prepare(dentry, attr); attr 1276 fs/ubifs/file.c err = fscrypt_prepare_setattr(dentry, attr); attr 1280 fs/ubifs/file.c if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) attr 1282 fs/ubifs/file.c err = do_truncation(c, inode, attr); attr 1284 fs/ubifs/file.c err = do_setattr(c, inode, attr); attr 1991 fs/ubifs/ubifs.h int ubifs_setattr(struct dentry *dentry, struct iattr *attr); attr 257 fs/udf/file.c static int udf_setattr(struct dentry *dentry, struct iattr *attr) attr 263 fs/udf/file.c error = setattr_prepare(dentry, attr); attr 267 fs/udf/file.c if ((attr->ia_valid & ATTR_UID) && attr 269 fs/udf/file.c !uid_eq(attr->ia_uid, UDF_SB(sb)->s_uid)) attr 271 fs/udf/file.c if ((attr->ia_valid & ATTR_GID) && attr 273 fs/udf/file.c !gid_eq(attr->ia_gid, UDF_SB(sb)->s_gid)) attr 276 fs/udf/file.c if ((attr->ia_valid & ATTR_SIZE) && attr 277 fs/udf/file.c attr->ia_size != i_size_read(inode)) { attr 278 fs/udf/file.c error = udf_setsize(inode, attr->ia_size); attr 283 fs/udf/file.c if (attr->ia_valid & ATTR_MODE) attr 284 fs/udf/file.c udf_update_extra_perms(inode, attr->ia_mode); attr 286 fs/udf/file.c setattr_copy(inode, attr); attr 1214 fs/ufs/inode.c int ufs_setattr(struct dentry *dentry, struct iattr *attr) attr 1217 fs/ufs/inode.c unsigned int ia_valid = attr->ia_valid; attr 1220 fs/ufs/inode.c error = setattr_prepare(dentry, attr); attr 1224 fs/ufs/inode.c if (ia_valid & ATTR_SIZE && attr->ia_size != inode->i_size) { attr 1225 fs/ufs/inode.c error = ufs_truncate(inode, attr->ia_size); attr 1230 fs/ufs/inode.c setattr_copy(inode, attr); attr 126 fs/ufs/ufs.h extern int ufs_setattr(struct dentry *dentry, struct iattr *attr); attr 319 fs/verity/open.c int fsverity_prepare_setattr(struct dentry *dentry, struct iattr *attr) attr 321 fs/verity/open.c if (IS_VERITY(d_inode(dentry)) && (attr->ia_valid & ATTR_SIZE)) { attr 59 fs/xfs/xfs_error.c struct attribute attr; attr 64 fs/xfs/xfs_error.c to_attr(struct attribute *attr) attr 66 fs/xfs/xfs_error.c return container_of(attr, struct xfs_errortag_attr, attr); attr 80 fs/xfs/xfs_error.c struct attribute *attr, attr 85 fs/xfs/xfs_error.c struct xfs_errortag_attr *xfs_attr = to_attr(attr); attr 106 fs/xfs/xfs_error.c struct attribute *attr, attr 110 fs/xfs/xfs_error.c struct xfs_errortag_attr *xfs_attr = to_attr(attr); attr 123 fs/xfs/xfs_error.c .attr = {.name = __stringify(_name), \ attr 128 fs/xfs/xfs_error.c #define XFS_ERRORTAG_ATTR_LIST(_name) &xfs_errortag_attr_##_name.attr attr 1114 fs/xfs/xfs_ioctl.c bool attr, attr 1123 fs/xfs/xfs_ioctl.c if (attr) { attr 1142 fs/xfs/xfs_ioctl.c int attr, attr 1148 fs/xfs/xfs_ioctl.c xfs_fill_fsxattr(ip, attr, &fa); attr 17 fs/xfs/xfs_sysfs.c struct attribute attr; attr 24 fs/xfs/xfs_sysfs.c to_attr(struct attribute *attr) attr 26 fs/xfs/xfs_sysfs.c return container_of(attr, struct xfs_sysfs_attr, attr); attr 36 fs/xfs/xfs_sysfs.c #define ATTR_LIST(name) &xfs_sysfs_attr_##name.attr attr 41 fs/xfs/xfs_sysfs.c struct attribute *attr, attr 44 fs/xfs/xfs_sysfs.c struct xfs_sysfs_attr *xfs_attr = to_attr(attr); attr 52 fs/xfs/xfs_sysfs.c struct attribute *attr, attr 56 fs/xfs/xfs_sysfs.c struct xfs_sysfs_attr *xfs_attr = to_attr(attr); attr 590 include/acpi/acpi_bus.h int acpi_dma_configure(struct device *dev, enum dev_dma_attr attr); attr 1088 include/drm/drm_connector.h struct device_attribute *attr; attr 82 include/kvm/arm_arch_timer.h int kvm_arm_timer_set_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr); attr 83 include/kvm/arm_arch_timer.h int kvm_arm_timer_get_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr); attr 84 include/kvm/arm_arch_timer.h int kvm_arm_timer_has_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr); attr 52 include/kvm/arm_pmu.h struct kvm_device_attr *attr); attr 54 include/kvm/arm_pmu.h struct kvm_device_attr *attr); attr 56 include/kvm/arm_pmu.h struct kvm_device_attr *attr); attr 93 include/kvm/arm_pmu.h struct kvm_device_attr *attr) attr 98 include/kvm/arm_pmu.h struct kvm_device_attr *attr) attr 103 include/kvm/arm_pmu.h struct kvm_device_attr *attr) attr 857 include/linux/acpi.h enum dev_dma_attr attr) attr 368 include/linux/audit.h extern void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr); attr 428 include/linux/audit.h static inline void audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) attr 431 include/linux/audit.h __audit_mq_open(oflag, mode, attr); attr 599 include/linux/audit.h static inline void audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) attr 91 include/linux/bpf-cgroup.h int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, attr 99 include/linux/bpf-cgroup.h int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, attr 329 include/linux/bpf-cgroup.h int cgroup_bpf_prog_attach(const union bpf_attr *attr, attr 331 include/linux/bpf-cgroup.h int cgroup_bpf_prog_detach(const union bpf_attr *attr, attr 333 include/linux/bpf-cgroup.h int cgroup_bpf_prog_query(const union bpf_attr *attr, attr 342 include/linux/bpf-cgroup.h static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, attr 349 include/linux/bpf-cgroup.h static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr, attr 355 include/linux/bpf-cgroup.h static inline int cgroup_bpf_prog_query(const union bpf_attr *attr, attr 33 include/linux/bpf.h int (*map_alloc_check)(union bpf_attr *attr); attr 34 include/linux/bpf.h struct bpf_map *(*map_alloc)(union bpf_attr *attr); attr 665 include/linux/bpf.h void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr); attr 712 include/linux/bpf.h int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, attr 734 include/linux/bpf.h static inline int bpf_map_attr_numa_node(const union bpf_attr *attr) attr 736 include/linux/bpf.h return (attr->map_flags & BPF_F_NUMA_NODE) ? attr 737 include/linux/bpf.h attr->numa_node : NUMA_NO_NODE; attr 741 include/linux/bpf.h int array_map_alloc_check(union bpf_attr *attr); attr 917 include/linux/bpf.h int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr); attr 929 include/linux/bpf.h struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr); attr 933 include/linux/bpf.h union bpf_attr *attr) attr 948 include/linux/bpf.h static inline struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) attr 960 include/linux/bpf.h int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog); attr 968 include/linux/bpf.h static inline int sock_map_get_from_fd(const union bpf_attr *attr, attr 8 include/linux/bpf_lirc.h int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); attr 9 include/linux/bpf_lirc.h int lirc_prog_detach(const union bpf_attr *attr); attr 10 include/linux/bpf_lirc.h int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); attr 12 include/linux/bpf_lirc.h static inline int lirc_prog_attach(const union bpf_attr *attr, attr 18 include/linux/bpf_lirc.h static inline int lirc_prog_detach(const union bpf_attr *attr) attr 23 include/linux/bpf_lirc.h static inline int lirc_prog_query(const union bpf_attr *attr, attr 17 include/linux/btf.h int btf_new_fd(const union bpf_attr *attr); attr 20 include/linux/btf.h const union bpf_attr *attr, attr 44 include/linux/cpu.h extern int cpu_add_dev_attr(struct device_attribute *attr); attr 45 include/linux/cpu.h extern void cpu_remove_dev_attr(struct device_attribute *attr); attr 51 include/linux/cpu.h struct device_attribute *attr, char *buf); attr 53 include/linux/cpu.h struct device_attribute *attr, char *buf); attr 55 include/linux/cpu.h struct device_attribute *attr, char *buf); attr 57 include/linux/cpu.h struct device_attribute *attr, char *buf); attr 59 include/linux/cpu.h struct device_attribute *attr, char *buf); attr 61 include/linux/cpu.h struct device_attribute *attr, char *buf); attr 63 include/linux/cpu.h struct device_attribute *attr, attr 66 include/linux/cpu.h struct device_attribute *attr, char *buf); attr 262 include/linux/cpufreq.h struct attribute attr; attr 364 include/linux/cpufreq.h struct freq_attr **attr; attr 606 include/linux/cpufreq.h struct attribute attr; attr 48 include/linux/device.h struct attribute attr; attr 407 include/linux/device.h struct attribute attr; attr 421 include/linux/device.h const struct driver_attribute *attr); attr 423 include/linux/device.h const struct driver_attribute *attr); attr 711 include/linux/device.h struct attribute attr; attr 712 include/linux/device.h ssize_t (*show)(struct class *class, struct class_attribute *attr, attr 714 include/linux/device.h ssize_t (*store)(struct class *class, struct class_attribute *attr, attr 726 include/linux/device.h const struct class_attribute *attr, attr 729 include/linux/device.h const struct class_attribute *attr, attr 733 include/linux/device.h const struct class_attribute *attr) attr 735 include/linux/device.h return class_create_file_ns(class, attr, NULL); attr 739 include/linux/device.h const struct class_attribute *attr) attr 741 include/linux/device.h return class_remove_file_ns(class, attr, NULL); attr 746 include/linux/device.h struct class_attribute attr; attr 757 include/linux/device.h extern ssize_t show_class_attr_string(struct class *class, struct class_attribute *attr, attr 806 include/linux/device.h struct attribute attr; attr 807 include/linux/device.h ssize_t (*show)(struct device *dev, struct device_attribute *attr, attr 809 include/linux/device.h ssize_t (*store)(struct device *dev, struct device_attribute *attr, attr 814 include/linux/device.h struct device_attribute attr; attr 818 include/linux/device.h ssize_t device_show_ulong(struct device *dev, struct device_attribute *attr, attr 820 include/linux/device.h ssize_t device_store_ulong(struct device *dev, struct device_attribute *attr, attr 822 include/linux/device.h ssize_t device_show_int(struct device *dev, struct device_attribute *attr, attr 824 include/linux/device.h ssize_t device_store_int(struct device *dev, struct device_attribute *attr, attr 826 include/linux/device.h ssize_t device_show_bool(struct device *dev, struct device_attribute *attr, attr 828 include/linux/device.h ssize_t device_store_bool(struct device *dev, struct device_attribute *attr, attr 858 include/linux/device.h const struct device_attribute *attr); attr 860 include/linux/device.h const struct device_attribute *attr); attr 862 include/linux/device.h const struct bin_attribute *attr); attr 864 include/linux/device.h const struct bin_attribute *attr); attr 578 include/linux/efi.h typedef efi_status_t efi_get_variable_t (efi_char16_t *name, efi_guid_t *vendor, u32 *attr, attr 583 include/linux/efi.h u32 attr, unsigned long data_size, attr 592 include/linux/efi.h typedef efi_status_t efi_query_variable_info_t(u32 attr, attr 58 include/linux/elevator.h struct attribute attr; attr 24 include/linux/evm.h extern int evm_inode_setattr(struct dentry *dentry, struct iattr *attr); attr 64 include/linux/evm.h static inline int evm_inode_setattr(struct dentry *dentry, struct iattr *attr) attr 45 include/linux/fault-inject.h int setup_fault_attr(struct fault_attr *attr, char *str); attr 46 include/linux/fault-inject.h bool should_fail(struct fault_attr *attr, ssize_t size); attr 51 include/linux/fault-inject.h struct dentry *parent, struct fault_attr *attr); attr 56 include/linux/fault-inject.h struct dentry *parent, struct fault_attr *attr) attr 3362 include/linux/fs.h extern void setattr_copy(struct inode *inode, const struct iattr *attr); attr 698 include/linux/fscrypt.h struct iattr *attr) attr 700 include/linux/fscrypt.h if (attr->ia_valid & ATTR_SIZE) attr 509 include/linux/fsl/mc.h struct dpbp_attr *attr); attr 556 include/linux/fsl/mc.h struct dpcon_attr *attr); attr 128 include/linux/fsverity.h extern int fsverity_prepare_setattr(struct dentry *dentry, struct iattr *attr); attr 167 include/linux/fsverity.h struct iattr *attr) attr 648 include/linux/genhd.h struct device_attribute *attr, char *buf); attr 650 include/linux/genhd.h struct device_attribute *attr, char *buf); attr 652 include/linux/genhd.h struct device_attribute *attr, char *buf); attr 655 include/linux/genhd.h struct device_attribute *attr, char *buf); attr 657 include/linux/genhd.h struct device_attribute *attr, attr 1030 include/linux/greybus/greybus_protocols.h __le16 attr; attr 1041 include/linux/greybus/greybus_protocols.h __le16 attr; attr 84 include/linux/greybus/svc.h int gb_svc_dme_peer_get(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector, attr 86 include/linux/greybus/svc.h int gb_svc_dme_peer_set(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector, attr 70 include/linux/huge_mm.h struct kobj_attribute *attr, attr 74 include/linux/huge_mm.h struct kobj_attribute *attr, char *buf, attr 12 include/linux/hw_breakpoint.h static inline void hw_breakpoint_init(struct perf_event_attr *attr) attr 14 include/linux/hw_breakpoint.h memset(attr, 0, sizeof(*attr)); attr 16 include/linux/hw_breakpoint.h attr->type = PERF_TYPE_BREAKPOINT; attr 17 include/linux/hw_breakpoint.h attr->size = sizeof(*attr); attr 22 include/linux/hw_breakpoint.h attr->pinned = 1; attr 23 include/linux/hw_breakpoint.h attr->sample_period = 1; attr 26 include/linux/hw_breakpoint.h static inline void ptrace_breakpoint_init(struct perf_event_attr *attr) attr 28 include/linux/hw_breakpoint.h hw_breakpoint_init(attr); attr 29 include/linux/hw_breakpoint.h attr->exclude_kernel = 1; attr 34 include/linux/hw_breakpoint.h return bp->attr.bp_addr; attr 39 include/linux/hw_breakpoint.h return bp->attr.bp_type; attr 44 include/linux/hw_breakpoint.h return bp->attr.bp_len; attr 48 include/linux/hw_breakpoint.h register_user_hw_breakpoint(struct perf_event_attr *attr, attr 55 include/linux/hw_breakpoint.h modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr); attr 57 include/linux/hw_breakpoint.h modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, attr 64 include/linux/hw_breakpoint.h register_wide_hw_breakpoint_cpu(struct perf_event_attr *attr, attr 70 include/linux/hw_breakpoint.h register_wide_hw_breakpoint(struct perf_event_attr *attr, attr 96 include/linux/hw_breakpoint.h register_user_hw_breakpoint(struct perf_event_attr *attr, attr 102 include/linux/hw_breakpoint.h struct perf_event_attr *attr) { return -ENOSYS; } attr 104 include/linux/hw_breakpoint.h modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, attr 108 include/linux/hw_breakpoint.h register_wide_hw_breakpoint_cpu(struct perf_event_attr *attr, attr 113 include/linux/hw_breakpoint.h register_wide_hw_breakpoint(struct perf_event_attr *attr, attr 356 include/linux/hwmon.h u32 attr, int channel); attr 358 include/linux/hwmon.h u32 attr, int channel, long *val); attr 360 include/linux/hwmon.h u32 attr, int channel, const char **str); attr 362 include/linux/hwmon.h u32 attr, int channel, long val); attr 1162 include/linux/ide.h ssize_t ide_park_show(struct device *dev, struct device_attribute *attr, attr 1164 include/linux/ide.h ssize_t ide_park_store(struct device *dev, struct device_attribute *attr, attr 313 include/linux/iio/common/st_sensors.h struct device_attribute *attr, char *buf); attr 316 include/linux/iio/common/st_sensors.h struct device_attribute *attr, char *buf); attr 383 include/linux/iio/consumer.h const char *attr, char *buf); attr 397 include/linux/iio/consumer.h ssize_t iio_write_channel_ext_info(struct iio_channel *chan, const char *attr, attr 32 include/linux/iio/sysfs.h struct device_attribute *attr, attr 53 include/linux/inetdevice.h #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1]) attr 54 include/linux/inetdevice.h #define IPV4_DEVCONF_ALL(net, attr) \ attr 55 include/linux/inetdevice.h IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr) attr 76 include/linux/inetdevice.h #define IN_DEV_CONF_GET(in_dev, attr) \ attr 77 include/linux/inetdevice.h ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr) attr 78 include/linux/inetdevice.h #define IN_DEV_CONF_SET(in_dev, attr, val) \ attr 79 include/linux/inetdevice.h ipv4_devconf_set((in_dev), IPV4_DEVCONF_ ## attr, (val)) attr 81 include/linux/inetdevice.h #define IN_DEV_ANDCONF(in_dev, attr) \ attr 82 include/linux/inetdevice.h (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \ attr 83 include/linux/inetdevice.h IN_DEV_CONF_GET((in_dev), attr)) attr 85 include/linux/inetdevice.h #define IN_DEV_NET_ORCONF(in_dev, net, attr) \ attr 86 include/linux/inetdevice.h (IPV4_DEVCONF_ALL(net, attr) || \ attr 87 include/linux/inetdevice.h IN_DEV_CONF_GET((in_dev), attr)) attr 89 include/linux/inetdevice.h #define IN_DEV_ORCONF(in_dev, attr) \ attr 90 include/linux/inetdevice.h IN_DEV_NET_ORCONF(in_dev, dev_net(in_dev->dev), attr) attr 92 include/linux/inetdevice.h #define IN_DEV_MAXCONF(in_dev, attr) \ attr 93 include/linux/inetdevice.h (max(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr), \ attr 94 include/linux/inetdevice.h IN_DEV_CONF_GET((in_dev), attr))) attr 271 include/linux/iommu.h enum iommu_attr attr, void *data); attr 273 include/linux/iommu.h enum iommu_attr attr, void *data); attr 857 include/linux/iommu.h enum iommu_attr attr, void *data) attr 863 include/linux/iommu.h enum iommu_attr attr, void *data) attr 153 include/linux/kernfs.h struct kernfs_elem_attr attr; attr 165 include/linux/kobject.h struct attribute attr; attr 166 include/linux/kobject.h ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr, attr 168 include/linux/kobject.h ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr, attr 1291 include/linux/kvm_host.h int (*set_attr)(struct kvm_device *dev, struct kvm_device_attr *attr); attr 1292 include/linux/kvm_host.h int (*get_attr)(struct kvm_device *dev, struct kvm_device_attr *attr); attr 1293 include/linux/kvm_host.h int (*has_attr)(struct kvm_device *dev, struct kvm_device_attr *attr); attr 363 include/linux/leds.h ssize_t led_trigger_store(struct device *dev, struct device_attribute *attr, attr 365 include/linux/leds.h ssize_t led_trigger_show(struct device *dev, struct device_attribute *attr, attr 1574 include/linux/lsm_hooks.h int (*inode_setattr)(struct dentry *dentry, struct iattr *attr); attr 1811 include/linux/lsm_hooks.h int (*bpf)(int cmd, union bpf_attr *attr, attr 61 include/linux/mbus.h u8 *attr); attr 72 include/linux/mbus.h u8 *target, u8 *attr) attr 89 include/linux/mbus.h int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr); attr 103 include/linux/mbus.h u8 *attr) attr 99 include/linux/mdev.h struct attribute attr; attr 1470 include/linux/mlx4/device.h int mlx4_gen_slaves_port_mgt_ev(struct mlx4_dev *dev, u8 port, int attr); attr 475 include/linux/mlx4/qp.h enum mlx4_update_qp_attr attr, attr 51 include/linux/module.h struct attribute attr; attr 257 include/linux/module.h .attr = { \ attr 755 include/linux/netdevice.h struct attribute attr; attr 362 include/linux/netfilter.h const struct nlattr *attr); attr 463 include/linux/netfilter.h int (*parse)(const struct nlattr *attr, struct nf_conn *ct); attr 464 include/linux/netfilter.h int (*attach_expect)(const struct nlattr *attr, struct nf_conn *ct, attr 399 include/linux/netfilter/ipset/ip_set.h ip_set_get_h32(const struct nlattr *attr) attr 401 include/linux/netfilter/ipset/ip_set.h return ntohl(nla_get_be32(attr)); attr 405 include/linux/netfilter/ipset/ip_set.h ip_set_get_h16(const struct nlattr *attr) attr 407 include/linux/netfilter/ipset/ip_set.h return ntohs(nla_get_be16(attr)); attr 98 include/linux/netlink.h #define NL_SET_BAD_ATTR(extack, attr) do { \ attr 100 include/linux/netlink.h (extack)->bad_attr = (attr); \ attr 103 include/linux/netlink.h #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) do { \ attr 109 include/linux/netlink.h __extack->bad_attr = (attr); \ attr 390 include/linux/nfs_fs.h extern void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr, struct nfs_fattr *); attr 43 include/linux/of.h struct bin_attribute attr; attr 91 include/linux/perf/arm_pmu.h struct perf_event_attr *attr); attr 639 include/linux/perf_event.h struct perf_event_attr attr; attr 919 include/linux/perf_event.h perf_event_create_kernel_counter(struct perf_event_attr *attr, attr 1044 include/linux/perf_event.h struct perf_event_attr *attr = &event->attr; attr 1046 include/linux/perf_event.h return attr->exclude_idle || attr->exclude_user || attr 1047 include/linux/perf_event.h attr->exclude_kernel || attr->exclude_hv || attr 1048 include/linux/perf_event.h attr->exclude_guest || attr->exclude_host; attr 1053 include/linux/perf_event.h return event->attr.sample_period != 0; attr 1277 include/linux/perf_event.h return event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK; attr 1282 include/linux/perf_event.h return event->attr.branch_sample_type != 0; attr 1292 include/linux/perf_event.h return !!event->attr.write_backward; attr 1434 include/linux/perf_event.h struct device_attribute attr; attr 1440 include/linux/perf_event.h struct device_attribute attr; attr 1446 include/linux/perf_event.h ssize_t perf_event_sysfs_show(struct device *dev, struct device_attribute *attr, attr 1451 include/linux/perf_event.h .attr = __ATTR(_name, 0444, _show, NULL), \ attr 1457 include/linux/perf_event.h .attr = __ATTR(_name, 0444, perf_event_sysfs_show, NULL), \ attr 1465 include/linux/perf_event.h struct device_attribute *attr, \ attr 54 include/linux/raid_class.h #define DEFINE_RAID_ATTRIBUTE(type, attr) \ attr 56 include/linux/raid_class.h raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \ attr 62 include/linux/raid_class.h rd->attr = value; \ attr 65 include/linux/raid_class.h raid_get_##attr(struct raid_template *r, struct device *dev) { \ attr 71 include/linux/raid_class.h return rd->attr; \ attr 424 include/linux/rio.h struct rio_mport_attr *attr); attr 340 include/linux/security.h int security_inode_setattr(struct dentry *dentry, struct iattr *attr); attr 806 include/linux/security.h struct iattr *attr) attr 1858 include/linux/security.h extern int security_bpf(int cmd, union bpf_attr *attr, unsigned int size); attr 1866 include/linux/security.h static inline int security_bpf(int cmd, union bpf_attr *attr, attr 1255 include/linux/skbuff.h int skb_flow_dissector_prog_query(const union bpf_attr *attr, attr 1257 include/linux/skbuff.h int skb_flow_dissector_bpf_prog_attach(const union bpf_attr *attr, attr 1260 include/linux/skbuff.h int skb_flow_dissector_bpf_prog_detach(const union bpf_attr *attr); attr 1262 include/linux/skbuff.h static inline int skb_flow_dissector_prog_query(const union bpf_attr *attr, attr 1268 include/linux/skbuff.h static inline int skb_flow_dissector_bpf_prog_attach(const union bpf_attr *attr, attr 1274 include/linux/skbuff.h static inline int skb_flow_dissector_bpf_prog_detach(const union bpf_attr *attr) attr 32 include/linux/sock_diag.h int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr); attr 753 include/linux/syscalls.h asmlinkage long sys_mq_open(const char __user *name, int oflag, umode_t mode, struct mq_attr __user *attr); attr 953 include/linux/syscalls.h struct sched_attr __user *attr, attr 956 include/linux/syscalls.h struct sched_attr __user *attr, attr 967 include/linux/syscalls.h asmlinkage long sys_bpf(int cmd, union bpf_attr *attr, unsigned int size); attr 51 include/linux/sysfs.h #define sysfs_attr_init(attr) \ attr 55 include/linux/sysfs.h (attr)->key = &__key; \ attr 58 include/linux/sysfs.h #define sysfs_attr_init(attr) do {} while (0) attr 102 include/linux/sysfs.h .attr = {.name = __stringify(_name), \ attr 109 include/linux/sysfs.h .attr = {.name = __stringify(_name), \ attr 116 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0444 }, \ attr 121 include/linux/sysfs.h .attr = { .name = __stringify(_name), \ attr 127 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0200 }, \ attr 133 include/linux/sysfs.h #define __ATTR_NULL { .attr = { .name = NULL } } attr 137 include/linux/sysfs.h .attr = {.name = __stringify(_name), .mode = _mode, \ attr 162 include/linux/sysfs.h struct attribute attr; attr 169 include/linux/sysfs.h int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr, attr 183 include/linux/sysfs.h #define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr) attr 187 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = _mode }, \ attr 194 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0444 }, \ attr 200 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0200 }, \ attr 243 include/linux/sysfs.h const struct attribute *attr, attr 246 include/linux/sysfs.h const struct attribute * const *attr); attr 248 include/linux/sysfs.h const struct attribute *attr, umode_t mode); attr 250 include/linux/sysfs.h const struct attribute *attr); attr 252 include/linux/sysfs.h void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, attr 254 include/linux/sysfs.h bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr); attr 255 include/linux/sysfs.h void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr); attr 258 include/linux/sysfs.h const struct bin_attribute *attr); attr 260 include/linux/sysfs.h const struct bin_attribute *attr); attr 289 include/linux/sysfs.h const struct attribute *attr, const char *group); attr 291 include/linux/sysfs.h const struct attribute *attr, const char *group); attr 304 include/linux/sysfs.h void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); attr 349 include/linux/sysfs.h const struct attribute *attr, attr 356 include/linux/sysfs.h const struct attribute * const *attr) attr 362 include/linux/sysfs.h const struct attribute *attr, umode_t mode) attr 369 include/linux/sysfs.h const struct attribute *attr) attr 379 include/linux/sysfs.h const struct attribute *attr, attr 385 include/linux/sysfs.h const struct attribute *attr) attr 391 include/linux/sysfs.h const struct attribute * const *attr) attr 396 include/linux/sysfs.h const struct bin_attribute *attr) attr 402 include/linux/sysfs.h const struct bin_attribute *attr) attr 470 include/linux/sysfs.h const struct attribute *attr, const char *group) attr 476 include/linux/sysfs.h const struct attribute *attr, const char *group) attr 512 include/linux/sysfs.h const char *attr) attr 528 include/linux/sysfs.h const struct attribute *attr) attr 530 include/linux/sysfs.h return sysfs_create_file_ns(kobj, attr, NULL); attr 534 include/linux/sysfs.h const struct attribute *attr) attr 536 include/linux/sysfs.h sysfs_remove_file_ns(kobj, attr, NULL); attr 72 include/linux/tee_drv.h u64 attr; attr 543 include/linux/tee_drv.h switch (param->attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { attr 145 include/linux/thermal.h struct device_attribute attr; attr 110 include/misc/cxllib.h unsigned long translation_mode, struct cxllib_pe_attributes *attr); attr 209 include/net/9p/client.h int p9_client_setattr(struct p9_fid *fid, struct p9_iattr_dotl *attr); attr 6107 include/net/cfg80211.h enum nl80211_attrs attr, attr 6113 include/net/cfg80211.h enum nl80211_attrs attr, attr 7141 include/net/cfg80211.h enum ieee80211_p2p_attr_id attr, attr 117 include/net/genetlink.h const struct nlattr *attr) attr 119 include/net/genetlink.h info->extack->bad_attr = attr; attr 760 include/net/ip.h int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, u8 family, attr 114 include/net/lwtunnel.h int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int len, attr 203 include/net/lwtunnel.h static inline int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int len, attr 6173 include/net/mac80211.h int ieee80211_parse_p2p_noa(const struct ieee80211_p2p_noa_attr *attr, attr 94 include/net/neighbour.h #define NEIGH_VAR(p, attr) ((p)->data[NEIGH_VAR_ ## attr]) attr 99 include/net/neighbour.h #define NEIGH_VAR_INIT(p, attr, val) (NEIGH_VAR(p, attr) = val) attr 100 include/net/neighbour.h #define NEIGH_VAR_SET(p, attr, val) neigh_var_set(p, NEIGH_VAR_ ## attr, val) attr 52 include/net/netfilter/nf_conntrack_helper.h int (*from_nlattr)(struct nlattr *attr, struct nf_conn *ct); attr 102 include/net/netfilter/nf_conntrack_helper.h int (*from_nlattr)(struct nlattr *attr, attr 192 include/net/netfilter/nf_tables.h int nft_data_dump(struct sk_buff *skb, int attr, const struct nft_data *data, attr 205 include/net/netfilter/nf_tables.h int nft_parse_u32_check(const struct nlattr *attr, int max, u32 *dest); attr 206 include/net/netfilter/nf_tables.h unsigned int nft_parse_register(const struct nlattr *attr); attr 207 include/net/netfilter/nf_tables.h int nft_dump_register(struct sk_buff *skb, unsigned int attr, unsigned int reg); attr 835 include/net/netfilter/nf_tables.h int nft_expr_dump(struct sk_buff *skb, unsigned int attr, attr 205 include/net/netlabel.h } attr; attr 368 include/net/netlabel.h netlbl_catmap_free(secattr->attr.mls.cat); attr 300 include/net/netlink.h int (*validate)(const struct nlattr *attr, attr 313 include/net/nfc/nfc.h enum nfc_attrs attr, attr 109 include/net/rtnetlink.h int attr); attr 112 include/net/rtnetlink.h int *prividx, int attr); attr 146 include/net/rtnetlink.h const struct nlattr *attr); attr 148 include/net/rtnetlink.h const struct nlattr *attr); attr 139 include/net/switchdev.h const struct switchdev_attr *attr; attr 160 include/net/switchdev.h const struct switchdev_attr *attr); attr 200 include/net/switchdev.h const struct switchdev_attr *attr, attr 209 include/net/switchdev.h const struct switchdev_attr *attr) attr 293 include/net/switchdev.h const struct switchdev_attr *attr, attr 1070 include/net/tcp.h size_t (*get_info)(struct sock *sk, u32 ext, int *attr, attr 378 include/pcmcia/cistpl.h u_char attr; attr 57 include/rdma/ib_cache.h int rdma_read_gid_l2_fields(const struct ib_gid_attr *attr, attr 59 include/rdma/ib_cache.h struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr); attr 137 include/rdma/ib_cache.h void rdma_put_gid_attr(const struct ib_gid_attr *attr); attr 138 include/rdma/ib_cache.h void rdma_hold_gid_attr(const struct ib_gid_attr *attr); attr 218 include/rdma/ib_verbs.h rdma_gid_attr_network_type(const struct ib_gid_attr *attr) attr 220 include/rdma/ib_verbs.h if (attr->gid_type == IB_GID_TYPE_IB) attr 223 include/rdma/ib_verbs.h if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) attr 1027 include/rdma/ib_verbs.h struct ib_srq_attr attr; attr 2349 include/rdma/ib_verbs.h int (*add_gid)(const struct ib_gid_attr *attr, void **context); attr 2358 include/rdma/ib_verbs.h int (*del_gid)(const struct ib_gid_attr *attr, void **context); attr 2389 include/rdma/ib_verbs.h int (*create_cq)(struct ib_cq *cq, const struct ib_cq_init_attr *attr, attr 2437 include/rdma/ib_verbs.h const struct ib_flow_action_attrs_esp *attr, attr 2442 include/rdma/ib_verbs.h const struct ib_flow_action_attrs_esp *attr, attr 2456 include/rdma/ib_verbs.h int (*modify_wq)(struct ib_wq *wq, struct ib_wq_attr *attr, attr 2465 include/rdma/ib_verbs.h struct ib_dm_alloc_attr *attr, attr 2469 include/rdma/ib_verbs.h struct ib_dm_mr_attr *attr, attr 3614 include/rdma/ib_verbs.h struct ib_qp_attr *attr, attr 4326 include/rdma/ib_verbs.h int ib_modify_wq(struct ib_wq *wq, struct ib_wq_attr *attr, attr 4361 include/rdma/ib_verbs.h static inline u8 *rdma_ah_retrieve_dmac(struct rdma_ah_attr *attr) attr 4363 include/rdma/ib_verbs.h if (attr->type == RDMA_AH_ATTR_TYPE_ROCE) attr 4364 include/rdma/ib_verbs.h return attr->roce.dmac; attr 4368 include/rdma/ib_verbs.h static inline void rdma_ah_set_dlid(struct rdma_ah_attr *attr, u32 dlid) attr 4370 include/rdma/ib_verbs.h if (attr->type == RDMA_AH_ATTR_TYPE_IB) attr 4371 include/rdma/ib_verbs.h attr->ib.dlid = (u16)dlid; attr 4372 include/rdma/ib_verbs.h else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) attr 4373 include/rdma/ib_verbs.h attr->opa.dlid = dlid; attr 4376 include/rdma/ib_verbs.h static inline u32 rdma_ah_get_dlid(const struct rdma_ah_attr *attr) attr 4378 include/rdma/ib_verbs.h if (attr->type == RDMA_AH_ATTR_TYPE_IB) attr 4379 include/rdma/ib_verbs.h return attr->ib.dlid; attr 4380 include/rdma/ib_verbs.h else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) attr 4381 include/rdma/ib_verbs.h return attr->opa.dlid; attr 4385 include/rdma/ib_verbs.h static inline void rdma_ah_set_sl(struct rdma_ah_attr *attr, u8 sl) attr 4387 include/rdma/ib_verbs.h attr->sl = sl; attr 4390 include/rdma/ib_verbs.h static inline u8 rdma_ah_get_sl(const struct rdma_ah_attr *attr) attr 4392 include/rdma/ib_verbs.h return attr->sl; attr 4395 include/rdma/ib_verbs.h static inline void rdma_ah_set_path_bits(struct rdma_ah_attr *attr, attr 4398 include/rdma/ib_verbs.h if (attr->type == RDMA_AH_ATTR_TYPE_IB) attr 4399 include/rdma/ib_verbs.h attr->ib.src_path_bits = src_path_bits; attr 4400 include/rdma/ib_verbs.h else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) attr 4401 include/rdma/ib_verbs.h attr->opa.src_path_bits = src_path_bits; attr 4404 include/rdma/ib_verbs.h static inline u8 rdma_ah_get_path_bits(const struct rdma_ah_attr *attr) attr 4406 include/rdma/ib_verbs.h if (attr->type == RDMA_AH_ATTR_TYPE_IB) attr 4407 include/rdma/ib_verbs.h return attr->ib.src_path_bits; attr 4408 include/rdma/ib_verbs.h else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) attr 4409 include/rdma/ib_verbs.h return attr->opa.src_path_bits; attr 4413 include/rdma/ib_verbs.h static inline void rdma_ah_set_make_grd(struct rdma_ah_attr *attr, attr 4416 include/rdma/ib_verbs.h if (attr->type == RDMA_AH_ATTR_TYPE_OPA) attr 4417 include/rdma/ib_verbs.h attr->opa.make_grd = make_grd; attr 4420 include/rdma/ib_verbs.h static inline bool rdma_ah_get_make_grd(const struct rdma_ah_attr *attr) attr 4422 include/rdma/ib_verbs.h if (attr->type == RDMA_AH_ATTR_TYPE_OPA) attr 4423 include/rdma/ib_verbs.h return attr->opa.make_grd; attr 4427 include/rdma/ib_verbs.h static inline void rdma_ah_set_port_num(struct rdma_ah_attr *attr, u8 port_num) attr 4429 include/rdma/ib_verbs.h attr->port_num = port_num; attr 4432 include/rdma/ib_verbs.h static inline u8 rdma_ah_get_port_num(const struct rdma_ah_attr *attr) attr 4434 include/rdma/ib_verbs.h return attr->port_num; attr 4437 include/rdma/ib_verbs.h static inline void rdma_ah_set_static_rate(struct rdma_ah_attr *attr, attr 4440 include/rdma/ib_verbs.h attr->static_rate = static_rate; attr 4443 include/rdma/ib_verbs.h static inline u8 rdma_ah_get_static_rate(const struct rdma_ah_attr *attr) attr 4445 include/rdma/ib_verbs.h return attr->static_rate; attr 4448 include/rdma/ib_verbs.h static inline void rdma_ah_set_ah_flags(struct rdma_ah_attr *attr, attr 4451 include/rdma/ib_verbs.h attr->ah_flags = flag; attr 4455 include/rdma/ib_verbs.h rdma_ah_get_ah_flags(const struct rdma_ah_attr *attr) attr 4457 include/rdma/ib_verbs.h return attr->ah_flags; attr 4461 include/rdma/ib_verbs.h *rdma_ah_read_grh(const struct rdma_ah_attr *attr) attr 4463 include/rdma/ib_verbs.h return &attr->grh; attr 4468 include/rdma/ib_verbs.h *rdma_ah_retrieve_grh(struct rdma_ah_attr *attr) attr 4470 include/rdma/ib_verbs.h return &attr->grh; attr 4473 include/rdma/ib_verbs.h static inline void rdma_ah_set_dgid_raw(struct rdma_ah_attr *attr, void *dgid) attr 4475 include/rdma/ib_verbs.h struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); attr 4480 include/rdma/ib_verbs.h static inline void rdma_ah_set_subnet_prefix(struct rdma_ah_attr *attr, attr 4483 include/rdma/ib_verbs.h struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); attr 4488 include/rdma/ib_verbs.h static inline void rdma_ah_set_interface_id(struct rdma_ah_attr *attr, attr 4491 include/rdma/ib_verbs.h struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); attr 4496 include/rdma/ib_verbs.h static inline void rdma_ah_set_grh(struct rdma_ah_attr *attr, attr 4501 include/rdma/ib_verbs.h struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); attr 4503 include/rdma/ib_verbs.h attr->ah_flags = IB_AH_GRH; attr 4514 include/rdma/ib_verbs.h void rdma_move_grh_sgid_attr(struct rdma_ah_attr *attr, union ib_gid *dgid, attr 118 include/rdma/opa_addr.h static inline bool rdma_is_valid_unicast_lid(struct rdma_ah_attr *attr) attr 120 include/rdma/opa_addr.h if (attr->type == RDMA_AH_ATTR_TYPE_IB) { attr 121 include/rdma/opa_addr.h if (!rdma_ah_get_dlid(attr) || attr 122 include/rdma/opa_addr.h rdma_ah_get_dlid(attr) >= attr 125 include/rdma/opa_addr.h } else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) { attr 126 include/rdma/opa_addr.h if (!rdma_ah_get_dlid(attr) || attr 127 include/rdma/opa_addr.h rdma_ah_get_dlid(attr) >= attr 205 include/rdma/rdma_vt.h struct rdma_ah_attr attr; attr 311 include/rdma/rdma_vt.h struct ib_qp_attr *attr); attr 386 include/rdma/rdma_vt.h int (*check_modify_qp)(struct rvt_qp *qp, struct ib_qp_attr *attr, attr 390 include/rdma/rdma_vt.h void (*modify_qp)(struct rvt_qp *qp, struct ib_qp_attr *attr, attr 173 include/rdma/rdmavt_qp.h struct rdma_ah_attr *attr; attr 239 include/rdma/rdmavt_qp.h return swqe->ud_wr.attr; attr 767 include/rdma/rdmavt_qp.h rdma_destroy_ah_attr(wqe->ud_wr.attr); attr 69 include/rdma/rw.h void rdma_rw_init_qp(struct ib_device *dev, struct ib_qp_init_attr *attr); attr 70 include/rdma/rw.h int rdma_rw_init_mrs(struct ib_qp *qp, struct ib_qp_init_attr *attr); attr 323 include/rdma/uverbs_ioctl.h struct uverbs_attr_spec attr; attr 521 include/rdma/uverbs_ioctl.h .attr = { .type = UVERBS_ATTR_TYPE_IDRS_ARRAY, \ attr 537 include/rdma/uverbs_ioctl.h .attr = { .type = UVERBS_ATTR_TYPE_IDR, \ attr 547 include/rdma/uverbs_ioctl.h .attr = { .type = UVERBS_ATTR_TYPE_FD, \ attr 555 include/rdma/uverbs_ioctl.h .attr = { .type = UVERBS_ATTR_TYPE_PTR_IN, \ attr 562 include/rdma/uverbs_ioctl.h .attr = { .type = UVERBS_ATTR_TYPE_PTR_OUT, \ attr 570 include/rdma/uverbs_ioctl.h .attr = { .type = UVERBS_ATTR_TYPE_ENUM_IN, \ attr 698 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); attr 700 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) attr 701 include/rdma/uverbs_ioctl.h return PTR_ERR(attr); attr 703 include/rdma/uverbs_ioctl.h return attr->ptr_attr.enum_id; attr 709 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr; attr 711 include/rdma/uverbs_ioctl.h attr = uverbs_attr_get(attrs_bundle, idx); attr 712 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) attr 713 include/rdma/uverbs_ioctl.h return ERR_CAST(attr); attr 715 include/rdma/uverbs_ioctl.h return attr->obj_attr.uobject->object; attr 721 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); attr 723 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) attr 724 include/rdma/uverbs_ioctl.h return ERR_CAST(attr); attr 726 include/rdma/uverbs_ioctl.h return attr->obj_attr.uobject; attr 732 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); attr 734 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) attr 735 include/rdma/uverbs_ioctl.h return PTR_ERR(attr); attr 737 include/rdma/uverbs_ioctl.h return attr->ptr_attr.len; attr 774 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr = attr 777 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) { attr 782 include/rdma/uverbs_ioctl.h *arr = attr->objs_arr_attr.uobjects; attr 784 include/rdma/uverbs_ioctl.h return attr->objs_arr_attr.len; attr 787 include/rdma/uverbs_ioctl.h static inline bool uverbs_attr_ptr_is_inline(const struct uverbs_attr *attr) attr 789 include/rdma/uverbs_ioctl.h return attr->ptr_attr.len <= sizeof(attr->ptr_attr.data); attr 795 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); attr 797 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) attr 798 include/rdma/uverbs_ioctl.h return (void *)attr; attr 800 include/rdma/uverbs_ioctl.h return uverbs_attr_ptr_is_inline(attr) ? (void *)&attr->ptr_attr.data : attr 801 include/rdma/uverbs_ioctl.h attr->ptr_attr.ptr; attr 809 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); attr 811 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) attr 812 include/rdma/uverbs_ioctl.h return PTR_ERR(attr); attr 819 include/rdma/uverbs_ioctl.h if (unlikely(size < attr->ptr_attr.len)) attr 822 include/rdma/uverbs_ioctl.h if (uverbs_attr_ptr_is_inline(attr)) attr 823 include/rdma/uverbs_ioctl.h memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); attr 824 include/rdma/uverbs_ioctl.h else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), attr 825 include/rdma/uverbs_ioctl.h attr->ptr_attr.len)) attr 836 include/rdma/uverbs_ioctl.h const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); attr 839 include/rdma/uverbs_ioctl.h if (IS_ERR(attr)) attr 840 include/rdma/uverbs_ioctl.h return PTR_ERR(attr); attr 842 include/rdma/uverbs_ioctl.h min_size = min_t(size_t, size, attr->ptr_attr.len); attr 844 include/rdma/uverbs_ioctl.h if (uverbs_attr_ptr_is_inline(attr)) attr 845 include/rdma/uverbs_ioctl.h memcpy(to, &attr->ptr_attr.data, min_size); attr 846 include/rdma/uverbs_ioctl.h else if (copy_from_user(to, u64_to_user_ptr(attr->ptr_attr.data), attr 128 include/scsi/fc/fc_ms.h struct fc_fdmi_attr_entry attr[1]; attr 245 include/scsi/fc_encode.h entry = (struct fc_fdmi_attr_entry *)hba_attrs->attr; attr 388 include/scsi/fc_encode.h entry = (struct fc_fdmi_attr_entry *)hba_attrs->attr; attr 77 include/scsi/libsas.h attr) attr 336 include/scsi/sas.h u8 attr:3; attr 569 include/scsi/sas.h u8 attr:3; attr 392 include/uapi/linux/coda.h struct coda_vattr attr; attr 400 include/uapi/linux/coda.h struct coda_vattr attr; attr 442 include/uapi/linux/coda.h struct coda_vattr attr; attr 451 include/uapi/linux/coda.h struct coda_vattr attr; attr 496 include/uapi/linux/coda.h struct coda_vattr attr; attr 503 include/uapi/linux/coda.h struct coda_vattr attr; attr 523 include/uapi/linux/coda.h struct coda_vattr attr; attr 500 include/uapi/linux/fuse.h struct fuse_attr attr; attr 529 include/uapi/linux/fuse.h struct fuse_attr attr; attr 1202 include/uapi/linux/kvm.h __u64 attr; /* group-defined */ attr 174 include/uapi/linux/msdos_fs.h __u8 attr; /* attribute bits */ attr 189 include/uapi/linux/msdos_fs.h __u8 attr; /* attribute byte */ attr 35 include/uapi/linux/netfilter/nfnetlink_compat.h #define NFA_TYPE(attr) ((attr)->nfa_type & 0x7fff) attr 195 include/uapi/linux/tee.h __u64 attr; attr 874 include/uapi/rdma/ib_user_verbs.h struct ib_uverbs_ah_attr attr; attr 1298 include/uapi/rdma/ib_user_verbs.h struct ib_uverbs_cq_moderation attr; attr 192 include/xen/interface/platform.h uint32_t attr; attr 273 include/xen/interface/platform.h uint64_t attr; attr 81 ipc/mqueue.c struct mq_attr attr; attr 168 ipc/mqueue.c info->attr.mq_curmsgs++; attr 204 ipc/mqueue.c if (info->attr.mq_curmsgs) { attr 208 ipc/mqueue.c info->attr.mq_curmsgs = 0; attr 227 ipc/mqueue.c info->attr.mq_curmsgs--; attr 234 ipc/mqueue.c struct mq_attr *attr) attr 269 ipc/mqueue.c memset(&info->attr, 0, sizeof(info->attr)); attr 270 ipc/mqueue.c info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max, attr 272 ipc/mqueue.c info->attr.mq_msgsize = min(ipc_ns->mq_msgsize_max, attr 274 ipc/mqueue.c if (attr) { attr 275 ipc/mqueue.c info->attr.mq_maxmsg = attr->mq_maxmsg; attr 276 ipc/mqueue.c info->attr.mq_msgsize = attr->mq_msgsize; attr 293 ipc/mqueue.c if (info->attr.mq_maxmsg <= 0 || info->attr.mq_msgsize <= 0) attr 296 ipc/mqueue.c if (info->attr.mq_maxmsg > HARD_MSGMAX || attr 297 ipc/mqueue.c info->attr.mq_msgsize > HARD_MSGSIZEMAX) attr 300 ipc/mqueue.c if (info->attr.mq_maxmsg > ipc_ns->mq_msg_max || attr 301 ipc/mqueue.c info->attr.mq_msgsize > ipc_ns->mq_msgsize_max) attr 306 ipc/mqueue.c if (info->attr.mq_msgsize > ULONG_MAX/info->attr.mq_maxmsg) attr 308 ipc/mqueue.c mq_treesize = info->attr.mq_maxmsg * sizeof(struct msg_msg) + attr 309 ipc/mqueue.c min_t(unsigned int, info->attr.mq_maxmsg, MQ_PRIO_MAX) * attr 311 ipc/mqueue.c mq_bytes = info->attr.mq_maxmsg * info->attr.mq_msgsize; attr 469 ipc/mqueue.c mq_treesize = info->attr.mq_maxmsg * sizeof(struct msg_msg) + attr 470 ipc/mqueue.c min_t(unsigned int, info->attr.mq_maxmsg, MQ_PRIO_MAX) * attr 473 ipc/mqueue.c mq_bytes = mq_treesize + (info->attr.mq_maxmsg * attr 474 ipc/mqueue.c info->attr.mq_msgsize); attr 497 ipc/mqueue.c struct mq_attr *attr = arg; attr 516 ipc/mqueue.c inode = mqueue_get_inode(dir->i_sb, ipc_ns, mode, attr); attr 610 ipc/mqueue.c if (info->attr.mq_curmsgs) attr 613 ipc/mqueue.c if (info->attr.mq_curmsgs < info->attr.mq_maxmsg) attr 712 ipc/mqueue.c info->attr.mq_curmsgs == 1) { attr 790 ipc/mqueue.c struct mq_attr *attr) attr 803 ipc/mqueue.c mqueue_create_attr, attr); attr 816 ipc/mqueue.c struct mq_attr *attr) attr 825 ipc/mqueue.c audit_mq_open(oflag, mode, attr); attr 842 ipc/mqueue.c error = prepare_open(path.dentry, oflag, ro, mode, name, attr); attr 867 ipc/mqueue.c struct mq_attr attr; attr 868 ipc/mqueue.c if (u_attr && copy_from_user(&attr, u_attr, sizeof(struct mq_attr))) attr 871 ipc/mqueue.c return do_mq_open(u_name, oflag, mode, u_attr ? &attr : NULL); attr 1024 ipc/mqueue.c if (unlikely(msg_len > info->attr.mq_msgsize)) { attr 1058 ipc/mqueue.c if (info->attr.mq_curmsgs == info->attr.mq_maxmsg) { attr 1138 ipc/mqueue.c if (unlikely(msg_len < info->attr.mq_msgsize)) { attr 1161 ipc/mqueue.c if (info->attr.mq_curmsgs == 0) { attr 1392 ipc/mqueue.c *old = info->attr; attr 1447 ipc/mqueue.c static inline int get_compat_mq_attr(struct mq_attr *attr, attr 1455 ipc/mqueue.c memset(attr, 0, sizeof(*attr)); attr 1456 ipc/mqueue.c attr->mq_flags = v.mq_flags; attr 1457 ipc/mqueue.c attr->mq_maxmsg = v.mq_maxmsg; attr 1458 ipc/mqueue.c attr->mq_msgsize = v.mq_msgsize; attr 1459 ipc/mqueue.c attr->mq_curmsgs = v.mq_curmsgs; attr 1463 ipc/mqueue.c static inline int put_compat_mq_attr(const struct mq_attr *attr, attr 1469 ipc/mqueue.c v.mq_flags = attr->mq_flags; attr 1470 ipc/mqueue.c v.mq_maxmsg = attr->mq_maxmsg; attr 1471 ipc/mqueue.c v.mq_msgsize = attr->mq_msgsize; attr 1472 ipc/mqueue.c v.mq_curmsgs = attr->mq_curmsgs; attr 1482 ipc/mqueue.c struct mq_attr attr, *p = NULL; attr 1484 ipc/mqueue.c p = &attr; attr 1485 ipc/mqueue.c if (get_compat_mq_attr(&attr, u_attr)) attr 178 kernel/audit.h struct mq_attr attr; attr 1242 kernel/auditsc.c context->mq_open.attr.mq_flags, attr 1243 kernel/auditsc.c context->mq_open.attr.mq_maxmsg, attr 1244 kernel/auditsc.c context->mq_open.attr.mq_msgsize, attr 1245 kernel/auditsc.c context->mq_open.attr.mq_curmsgs); attr 1263 kernel/auditsc.c struct mq_attr *attr = &context->mq_getsetattr.mqstat; attr 1268 kernel/auditsc.c attr->mq_flags, attr->mq_maxmsg, attr 1269 kernel/auditsc.c attr->mq_msgsize, attr->mq_curmsgs); attr 2193 kernel/auditsc.c void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) attr 2197 kernel/auditsc.c if (attr) attr 2198 kernel/auditsc.c memcpy(&context->mq_open.attr, attr, sizeof(struct mq_attr)); attr 2200 kernel/auditsc.c memset(&context->mq_open.attr, 0, sizeof(struct mq_attr)); attr 49 kernel/bpf/arraymap.c int array_map_alloc_check(union bpf_attr *attr) attr 51 kernel/bpf/arraymap.c bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; attr 52 kernel/bpf/arraymap.c int numa_node = bpf_map_attr_numa_node(attr); attr 55 kernel/bpf/arraymap.c if (attr->max_entries == 0 || attr->key_size != 4 || attr 56 kernel/bpf/arraymap.c attr->value_size == 0 || attr 57 kernel/bpf/arraymap.c attr->map_flags & ~ARRAY_CREATE_FLAG_MASK || attr 58 kernel/bpf/arraymap.c !bpf_map_flags_access_ok(attr->map_flags) || attr 62 kernel/bpf/arraymap.c if (attr->value_size > KMALLOC_MAX_SIZE) attr 71 kernel/bpf/arraymap.c static struct bpf_map *array_map_alloc(union bpf_attr *attr) attr 73 kernel/bpf/arraymap.c bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; attr 74 kernel/bpf/arraymap.c int ret, numa_node = bpf_map_attr_numa_node(attr); attr 81 kernel/bpf/arraymap.c elem_size = round_up(attr->value_size, 8); attr 83 kernel/bpf/arraymap.c max_entries = attr->max_entries; attr 100 kernel/bpf/arraymap.c if (max_entries < attr->max_entries) attr 113 kernel/bpf/arraymap.c cost += (u64)attr->max_entries * elem_size * num_possible_cpus(); attr 129 kernel/bpf/arraymap.c bpf_map_init_from_attr(&array->map, attr); attr 474 kernel/bpf/arraymap.c static int fd_array_map_alloc_check(union bpf_attr *attr) attr 477 kernel/bpf/arraymap.c if (attr->value_size != sizeof(u32)) attr 480 kernel/bpf/arraymap.c if (attr->map_flags & (BPF_F_RDONLY_PROG | BPF_F_WRONLY_PROG)) attr 482 kernel/bpf/arraymap.c return array_map_alloc_check(attr); attr 764 kernel/bpf/arraymap.c static struct bpf_map *array_of_map_alloc(union bpf_attr *attr) attr 768 kernel/bpf/arraymap.c inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); attr 772 kernel/bpf/arraymap.c map = array_map_alloc(attr); attr 3405 kernel/bpf/btf.c int btf_new_fd(const union bpf_attr *attr) attr 3410 kernel/bpf/btf.c btf = btf_parse(u64_to_user_ptr(attr->btf), attr 3411 kernel/bpf/btf.c attr->btf_size, attr->btf_log_level, attr 3412 kernel/bpf/btf.c u64_to_user_ptr(attr->btf_log_buf), attr 3413 kernel/bpf/btf.c attr->btf_log_size); attr 3459 kernel/bpf/btf.c const union bpf_attr *attr, attr 3468 kernel/bpf/btf.c uinfo = u64_to_user_ptr(attr->info.info); attr 3469 kernel/bpf/btf.c uinfo_len = attr->info.info_len; attr 501 kernel/bpf/cgroup.c int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, attr 504 kernel/bpf/cgroup.c __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); attr 505 kernel/bpf/cgroup.c enum bpf_attach_type type = attr->query.attach_type; attr 514 kernel/bpf/cgroup.c if (attr->query.query_flags & BPF_F_QUERY_EFFECTIVE) attr 523 kernel/bpf/cgroup.c if (attr->query.prog_cnt == 0 || !prog_ids || !cnt) attr 526 kernel/bpf/cgroup.c if (attr->query.prog_cnt < cnt) { attr 527 kernel/bpf/cgroup.c cnt = attr->query.prog_cnt; attr 531 kernel/bpf/cgroup.c if (attr->query.query_flags & BPF_F_QUERY_EFFECTIVE) { attr 549 kernel/bpf/cgroup.c int cgroup_bpf_prog_attach(const union bpf_attr *attr, attr 555 kernel/bpf/cgroup.c cgrp = cgroup_get_from_fd(attr->target_fd); attr 559 kernel/bpf/cgroup.c ret = cgroup_bpf_attach(cgrp, prog, attr->attach_type, attr 560 kernel/bpf/cgroup.c attr->attach_flags); attr 565 kernel/bpf/cgroup.c int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) attr 571 kernel/bpf/cgroup.c cgrp = cgroup_get_from_fd(attr->target_fd); attr 575 kernel/bpf/cgroup.c prog = bpf_prog_get_type(attr->attach_bpf_fd, ptype); attr 579 kernel/bpf/cgroup.c ret = cgroup_bpf_detach(cgrp, prog, attr->attach_type, 0); attr 587 kernel/bpf/cgroup.c int cgroup_bpf_prog_query(const union bpf_attr *attr, attr 593 kernel/bpf/cgroup.c cgrp = cgroup_get_from_fd(attr->query.target_fd); attr 597 kernel/bpf/cgroup.c ret = cgroup_bpf_query(cgrp, attr, uattr); attr 80 kernel/bpf/cpumap.c static struct bpf_map *cpu_map_alloc(union bpf_attr *attr) attr 91 kernel/bpf/cpumap.c if (attr->max_entries == 0 || attr->key_size != 4 || attr 92 kernel/bpf/cpumap.c attr->value_size != 4 || attr->map_flags & ~BPF_F_NUMA_NODE) attr 99 kernel/bpf/cpumap.c bpf_map_init_from_attr(&cmap->map, attr); attr 110 kernel/bpf/devmap.c static int dev_map_init_map(struct bpf_dtab *dtab, union bpf_attr *attr) attr 116 kernel/bpf/devmap.c if (attr->max_entries == 0 || attr->key_size != 4 || attr 117 kernel/bpf/devmap.c attr->value_size != 4 || attr->map_flags & ~DEV_CREATE_FLAG_MASK) attr 123 kernel/bpf/devmap.c attr->map_flags |= BPF_F_RDONLY_PROG; attr 126 kernel/bpf/devmap.c bpf_map_init_from_attr(&dtab->map, attr); attr 131 kernel/bpf/devmap.c if (attr->map_type == BPF_MAP_TYPE_DEVMAP_HASH) { attr 153 kernel/bpf/devmap.c if (attr->map_type == BPF_MAP_TYPE_DEVMAP_HASH) { attr 176 kernel/bpf/devmap.c static struct bpf_map *dev_map_alloc(union bpf_attr *attr) attr 188 kernel/bpf/devmap.c err = dev_map_init_map(dtab, attr); attr 226 kernel/bpf/hashtab.c static int htab_map_alloc_check(union bpf_attr *attr) attr 228 kernel/bpf/hashtab.c bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || attr 229 kernel/bpf/hashtab.c attr->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH); attr 230 kernel/bpf/hashtab.c bool lru = (attr->map_type == BPF_MAP_TYPE_LRU_HASH || attr 231 kernel/bpf/hashtab.c attr->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH); attr 237 kernel/bpf/hashtab.c bool percpu_lru = (attr->map_flags & BPF_F_NO_COMMON_LRU); attr 238 kernel/bpf/hashtab.c bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); attr 239 kernel/bpf/hashtab.c bool zero_seed = (attr->map_flags & BPF_F_ZERO_SEED); attr 240 kernel/bpf/hashtab.c int numa_node = bpf_map_attr_numa_node(attr); attr 257 kernel/bpf/hashtab.c if (attr->map_flags & ~HTAB_CREATE_FLAG_MASK || attr 258 kernel/bpf/hashtab.c !bpf_map_flags_access_ok(attr->map_flags)) attr 273 kernel/bpf/hashtab.c if (attr->max_entries == 0 || attr->key_size == 0 || attr 274 kernel/bpf/hashtab.c attr->value_size == 0) attr 277 kernel/bpf/hashtab.c if (attr->key_size > MAX_BPF_STACK) attr 283 kernel/bpf/hashtab.c if (attr->value_size >= KMALLOC_MAX_SIZE - attr 295 kernel/bpf/hashtab.c static struct bpf_map *htab_map_alloc(union bpf_attr *attr) attr 297 kernel/bpf/hashtab.c bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || attr 298 kernel/bpf/hashtab.c attr->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH); attr 299 kernel/bpf/hashtab.c bool lru = (attr->map_type == BPF_MAP_TYPE_LRU_HASH || attr 300 kernel/bpf/hashtab.c attr->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH); attr 306 kernel/bpf/hashtab.c bool percpu_lru = (attr->map_flags & BPF_F_NO_COMMON_LRU); attr 307 kernel/bpf/hashtab.c bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); attr 316 kernel/bpf/hashtab.c bpf_map_init_from_attr(&htab->map, attr); attr 323 kernel/bpf/hashtab.c htab->map.max_entries = roundup(attr->max_entries, attr 325 kernel/bpf/hashtab.c if (htab->map.max_entries < attr->max_entries) attr 326 kernel/bpf/hashtab.c htab->map.max_entries = rounddown(attr->max_entries, attr 1384 kernel/bpf/hashtab.c static int fd_htab_map_alloc_check(union bpf_attr *attr) attr 1386 kernel/bpf/hashtab.c if (attr->value_size != sizeof(u32)) attr 1388 kernel/bpf/hashtab.c return htab_map_alloc_check(attr); attr 1451 kernel/bpf/hashtab.c static struct bpf_map *htab_of_map_alloc(union bpf_attr *attr) attr 1455 kernel/bpf/hashtab.c inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); attr 1459 kernel/bpf/hashtab.c map = htab_map_alloc(attr); attr 271 kernel/bpf/local_storage.c static struct bpf_map *cgroup_storage_map_alloc(union bpf_attr *attr) attr 273 kernel/bpf/local_storage.c int numa_node = bpf_map_attr_numa_node(attr); attr 278 kernel/bpf/local_storage.c if (attr->key_size != sizeof(struct bpf_cgroup_storage_key)) attr 281 kernel/bpf/local_storage.c if (attr->value_size == 0) attr 284 kernel/bpf/local_storage.c if (attr->value_size > PAGE_SIZE) attr 287 kernel/bpf/local_storage.c if (attr->map_flags & ~LOCAL_STORAGE_CREATE_FLAG_MASK || attr 288 kernel/bpf/local_storage.c !bpf_map_flags_access_ok(attr->map_flags)) attr 291 kernel/bpf/local_storage.c if (attr->max_entries) attr 309 kernel/bpf/local_storage.c bpf_map_init_from_attr(&map->map, attr); attr 540 kernel/bpf/lpm_trie.c static struct bpf_map *trie_alloc(union bpf_attr *attr) attr 550 kernel/bpf/lpm_trie.c if (attr->max_entries == 0 || attr 551 kernel/bpf/lpm_trie.c !(attr->map_flags & BPF_F_NO_PREALLOC) || attr 552 kernel/bpf/lpm_trie.c attr->map_flags & ~LPM_CREATE_FLAG_MASK || attr 553 kernel/bpf/lpm_trie.c !bpf_map_flags_access_ok(attr->map_flags) || attr 554 kernel/bpf/lpm_trie.c attr->key_size < LPM_KEY_SIZE_MIN || attr 555 kernel/bpf/lpm_trie.c attr->key_size > LPM_KEY_SIZE_MAX || attr 556 kernel/bpf/lpm_trie.c attr->value_size < LPM_VAL_SIZE_MIN || attr 557 kernel/bpf/lpm_trie.c attr->value_size > LPM_VAL_SIZE_MAX) attr 565 kernel/bpf/lpm_trie.c bpf_map_init_from_attr(&trie->map, attr); attr 566 kernel/bpf/lpm_trie.c trie->data_size = attr->key_size - attr 571 kernel/bpf/lpm_trie.c attr->value_size + trie->data_size; attr 572 kernel/bpf/lpm_trie.c cost += (u64) attr->max_entries * cost_per_node; attr 80 kernel/bpf/offload.c int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr) attr 86 kernel/bpf/offload.c if (attr->prog_type != BPF_PROG_TYPE_SCHED_CLS && attr 87 kernel/bpf/offload.c attr->prog_type != BPF_PROG_TYPE_XDP) attr 90 kernel/bpf/offload.c if (attr->prog_flags) attr 100 kernel/bpf/offload.c attr->prog_ifindex); attr 362 kernel/bpf/offload.c struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) attr 371 kernel/bpf/offload.c if (attr->map_type != BPF_MAP_TYPE_ARRAY && attr 372 kernel/bpf/offload.c attr->map_type != BPF_MAP_TYPE_HASH) attr 379 kernel/bpf/offload.c bpf_map_init_from_attr(&offmap->map, attr); attr 383 kernel/bpf/offload.c offmap->netdev = __dev_get_by_index(net, attr->map_ifindex); attr 46 kernel/bpf/queue_stack_maps.c static int queue_stack_map_alloc_check(union bpf_attr *attr) attr 52 kernel/bpf/queue_stack_maps.c if (attr->max_entries == 0 || attr->key_size != 0 || attr 53 kernel/bpf/queue_stack_maps.c attr->value_size == 0 || attr 54 kernel/bpf/queue_stack_maps.c attr->map_flags & ~QUEUE_STACK_CREATE_FLAG_MASK || attr 55 kernel/bpf/queue_stack_maps.c !bpf_map_flags_access_ok(attr->map_flags)) attr 58 kernel/bpf/queue_stack_maps.c if (attr->value_size > KMALLOC_MAX_SIZE) attr 67 kernel/bpf/queue_stack_maps.c static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr) attr 69 kernel/bpf/queue_stack_maps.c int ret, numa_node = bpf_map_attr_numa_node(attr); attr 74 kernel/bpf/queue_stack_maps.c size = (u64) attr->max_entries + 1; attr 75 kernel/bpf/queue_stack_maps.c cost = queue_size = sizeof(*qs) + size * attr->value_size; attr 89 kernel/bpf/queue_stack_maps.c bpf_map_init_from_attr(&qs->map, attr); attr 40 kernel/bpf/reuseport_array.c static int reuseport_array_alloc_check(union bpf_attr *attr) attr 42 kernel/bpf/reuseport_array.c if (attr->value_size != sizeof(u32) && attr 43 kernel/bpf/reuseport_array.c attr->value_size != sizeof(u64)) attr 46 kernel/bpf/reuseport_array.c return array_map_alloc_check(attr); attr 150 kernel/bpf/reuseport_array.c static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr) attr 152 kernel/bpf/reuseport_array.c int err, numa_node = bpf_map_attr_numa_node(attr); attr 161 kernel/bpf/reuseport_array.c array_size += (u64)attr->max_entries * sizeof(struct sock *); attr 175 kernel/bpf/reuseport_array.c bpf_map_init_from_attr(&array->map, attr); attr 85 kernel/bpf/stackmap.c static struct bpf_map *stack_map_alloc(union bpf_attr *attr) attr 87 kernel/bpf/stackmap.c u32 value_size = attr->value_size; attr 96 kernel/bpf/stackmap.c if (attr->map_flags & ~STACK_CREATE_FLAG_MASK) attr 100 kernel/bpf/stackmap.c if (attr->max_entries == 0 || attr->key_size != 4 || attr 105 kernel/bpf/stackmap.c if (attr->map_flags & BPF_F_STACK_BUILD_ID) { attr 114 kernel/bpf/stackmap.c n_buckets = roundup_pow_of_two(attr->max_entries); attr 122 kernel/bpf/stackmap.c smap = bpf_map_area_alloc(cost, bpf_map_attr_numa_node(attr)); attr 128 kernel/bpf/stackmap.c bpf_map_init_from_attr(&smap->map, attr); attr 100 kernel/bpf/syscall.c static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) attr 103 kernel/bpf/syscall.c u32 type = attr->map_type; attr 115 kernel/bpf/syscall.c err = ops->map_alloc_check(attr); attr 119 kernel/bpf/syscall.c if (attr->map_ifindex) attr 121 kernel/bpf/syscall.c map = ops->map_alloc(attr); attr 176 kernel/bpf/syscall.c void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) attr 178 kernel/bpf/syscall.c map->map_type = attr->map_type; attr 179 kernel/bpf/syscall.c map->key_size = attr->key_size; attr 180 kernel/bpf/syscall.c map->value_size = attr->value_size; attr 181 kernel/bpf/syscall.c map->max_entries = attr->max_entries; attr 182 kernel/bpf/syscall.c map->map_flags = bpf_map_flags_retain_permanent(attr->map_flags); attr 183 kernel/bpf/syscall.c map->numa_node = bpf_map_attr_numa_node(attr); attr 464 kernel/bpf/syscall.c memchr_inv((void *) &attr->CMD##_LAST_FIELD + \ attr 465 kernel/bpf/syscall.c sizeof(attr->CMD##_LAST_FIELD), 0, \ attr 466 kernel/bpf/syscall.c sizeof(*attr) - \ attr 468 kernel/bpf/syscall.c sizeof(attr->CMD##_LAST_FIELD)) != NULL attr 550 kernel/bpf/syscall.c static int map_create(union bpf_attr *attr) attr 552 kernel/bpf/syscall.c int numa_node = bpf_map_attr_numa_node(attr); attr 562 kernel/bpf/syscall.c f_flags = bpf_get_file_flag(attr->map_flags); attr 572 kernel/bpf/syscall.c map = find_and_alloc_map(attr); attr 576 kernel/bpf/syscall.c err = bpf_obj_name_cpy(map->name, attr->map_name); attr 583 kernel/bpf/syscall.c if (attr->btf_key_type_id || attr->btf_value_type_id) { attr 586 kernel/bpf/syscall.c if (!attr->btf_value_type_id) { attr 591 kernel/bpf/syscall.c btf = btf_get_by_fd(attr->btf_fd); attr 597 kernel/bpf/syscall.c err = map_check_btf(map, btf, attr->btf_key_type_id, attr 598 kernel/bpf/syscall.c attr->btf_value_type_id); attr 605 kernel/bpf/syscall.c map->btf_key_type_id = attr->btf_key_type_id; attr 606 kernel/bpf/syscall.c map->btf_value_type_id = attr->btf_value_type_id; attr 739 kernel/bpf/syscall.c static int map_lookup_elem(union bpf_attr *attr) attr 741 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); attr 742 kernel/bpf/syscall.c void __user *uvalue = u64_to_user_ptr(attr->value); attr 743 kernel/bpf/syscall.c int ufd = attr->map_fd; attr 753 kernel/bpf/syscall.c if (attr->flags & ~BPF_F_LOCK) attr 765 kernel/bpf/syscall.c if ((attr->flags & BPF_F_LOCK) && attr 829 kernel/bpf/syscall.c if (attr->flags & BPF_F_LOCK) attr 874 kernel/bpf/syscall.c static int map_update_elem(union bpf_attr *attr) attr 876 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); attr 877 kernel/bpf/syscall.c void __user *uvalue = u64_to_user_ptr(attr->value); attr 878 kernel/bpf/syscall.c int ufd = attr->map_fd; attr 897 kernel/bpf/syscall.c if ((attr->flags & BPF_F_LOCK) && attr 928 kernel/bpf/syscall.c err = bpf_map_offload_update_elem(map, key, value, attr->flags); attr 933 kernel/bpf/syscall.c err = map->ops->map_update_elem(map, key, value, attr->flags); attr 944 kernel/bpf/syscall.c err = bpf_percpu_hash_update(map, key, value, attr->flags); attr 946 kernel/bpf/syscall.c err = bpf_percpu_array_update(map, key, value, attr->flags); attr 949 kernel/bpf/syscall.c attr->flags); attr 953 kernel/bpf/syscall.c attr->flags); attr 958 kernel/bpf/syscall.c attr->flags); attr 963 kernel/bpf/syscall.c attr->flags); attr 966 kernel/bpf/syscall.c err = map->ops->map_push_elem(map, value, attr->flags); attr 969 kernel/bpf/syscall.c err = map->ops->map_update_elem(map, key, value, attr->flags); attr 987 kernel/bpf/syscall.c static int map_delete_elem(union bpf_attr *attr) attr 989 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); attr 990 kernel/bpf/syscall.c int ufd = attr->map_fd; attr 1037 kernel/bpf/syscall.c static int map_get_next_key(union bpf_attr *attr) attr 1039 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); attr 1040 kernel/bpf/syscall.c void __user *unext_key = u64_to_user_ptr(attr->next_key); attr 1041 kernel/bpf/syscall.c int ufd = attr->map_fd; attr 1103 kernel/bpf/syscall.c static int map_lookup_and_delete_elem(union bpf_attr *attr) attr 1105 kernel/bpf/syscall.c void __user *ukey = u64_to_user_ptr(attr->key); attr 1106 kernel/bpf/syscall.c void __user *uvalue = u64_to_user_ptr(attr->value); attr 1107 kernel/bpf/syscall.c int ufd = attr->map_fd; attr 1167 kernel/bpf/syscall.c static int map_freeze(const union bpf_attr *attr) attr 1169 kernel/bpf/syscall.c int err = 0, ufd = attr->map_fd; attr 1566 kernel/bpf/syscall.c static void bpf_prog_load_fixup_attach_type(union bpf_attr *attr) attr 1568 kernel/bpf/syscall.c switch (attr->prog_type) { attr 1573 kernel/bpf/syscall.c if (!attr->expected_attach_type) attr 1574 kernel/bpf/syscall.c attr->expected_attach_type = attr 1632 kernel/bpf/syscall.c static int bpf_prog_load(union bpf_attr *attr, union bpf_attr __user *uattr) attr 1634 kernel/bpf/syscall.c enum bpf_prog_type type = attr->prog_type; attr 1643 kernel/bpf/syscall.c if (attr->prog_flags & ~(BPF_F_STRICT_ALIGNMENT | attr 1650 kernel/bpf/syscall.c (attr->prog_flags & BPF_F_ANY_ALIGNMENT) && attr 1655 kernel/bpf/syscall.c if (strncpy_from_user(license, u64_to_user_ptr(attr->license), attr 1663 kernel/bpf/syscall.c if (attr->insn_cnt == 0 || attr 1664 kernel/bpf/syscall.c attr->insn_cnt > (capable(CAP_SYS_ADMIN) ? BPF_COMPLEXITY_LIMIT_INSNS : BPF_MAXINSNS)) attr 1671 kernel/bpf/syscall.c bpf_prog_load_fixup_attach_type(attr); attr 1672 kernel/bpf/syscall.c if (bpf_prog_load_check_attach_type(type, attr->expected_attach_type)) attr 1676 kernel/bpf/syscall.c prog = bpf_prog_alloc(bpf_prog_size(attr->insn_cnt), GFP_USER); attr 1680 kernel/bpf/syscall.c prog->expected_attach_type = attr->expected_attach_type; attr 1682 kernel/bpf/syscall.c prog->aux->offload_requested = !!attr->prog_ifindex; attr 1692 kernel/bpf/syscall.c prog->len = attr->insn_cnt; attr 1695 kernel/bpf/syscall.c if (copy_from_user(prog->insns, u64_to_user_ptr(attr->insns), attr 1706 kernel/bpf/syscall.c err = bpf_prog_offload_init(prog, attr); attr 1717 kernel/bpf/syscall.c err = bpf_obj_name_cpy(prog->aux->name, attr->prog_name); attr 1722 kernel/bpf/syscall.c err = bpf_check(&prog, attr, uattr); attr 1774 kernel/bpf/syscall.c static int bpf_obj_pin(const union bpf_attr *attr) attr 1776 kernel/bpf/syscall.c if (CHECK_ATTR(BPF_OBJ) || attr->file_flags != 0) attr 1779 kernel/bpf/syscall.c return bpf_obj_pin_user(attr->bpf_fd, u64_to_user_ptr(attr->pathname)); attr 1782 kernel/bpf/syscall.c static int bpf_obj_get(const union bpf_attr *attr) attr 1784 kernel/bpf/syscall.c if (CHECK_ATTR(BPF_OBJ) || attr->bpf_fd != 0 || attr 1785 kernel/bpf/syscall.c attr->file_flags & ~BPF_OBJ_FLAG_MASK) attr 1788 kernel/bpf/syscall.c return bpf_obj_get_user(u64_to_user_ptr(attr->pathname), attr 1789 kernel/bpf/syscall.c attr->file_flags); attr 1818 kernel/bpf/syscall.c static int bpf_raw_tracepoint_open(const union bpf_attr *attr) attr 1826 kernel/bpf/syscall.c if (strncpy_from_user(tp_name, u64_to_user_ptr(attr->raw_tracepoint.name), attr 1842 kernel/bpf/syscall.c prog = bpf_prog_get(attr->raw_tracepoint.prog_fd); attr 1898 kernel/bpf/syscall.c static int bpf_prog_attach(const union bpf_attr *attr) attr 1910 kernel/bpf/syscall.c if (attr->attach_flags & ~BPF_F_ATTACH_MASK) attr 1913 kernel/bpf/syscall.c switch (attr->attach_type) { attr 1963 kernel/bpf/syscall.c prog = bpf_prog_get_type(attr->attach_bpf_fd, ptype); attr 1967 kernel/bpf/syscall.c if (bpf_prog_attach_check_attach_type(prog, attr->attach_type)) { attr 1975 kernel/bpf/syscall.c ret = sock_map_get_from_fd(attr, prog); attr 1978 kernel/bpf/syscall.c ret = lirc_prog_attach(attr, prog); attr 1981 kernel/bpf/syscall.c ret = skb_flow_dissector_bpf_prog_attach(attr, prog); attr 1984 kernel/bpf/syscall.c ret = cgroup_bpf_prog_attach(attr, ptype, prog); attr 1994 kernel/bpf/syscall.c static int bpf_prog_detach(const union bpf_attr *attr) attr 2004 kernel/bpf/syscall.c switch (attr->attach_type) { attr 2031 kernel/bpf/syscall.c return sock_map_get_from_fd(attr, NULL); attr 2034 kernel/bpf/syscall.c return sock_map_get_from_fd(attr, NULL); attr 2036 kernel/bpf/syscall.c return lirc_prog_detach(attr); attr 2038 kernel/bpf/syscall.c return skb_flow_dissector_bpf_prog_detach(attr); attr 2050 kernel/bpf/syscall.c return cgroup_bpf_prog_detach(attr, ptype); attr 2055 kernel/bpf/syscall.c static int bpf_prog_query(const union bpf_attr *attr, attr 2062 kernel/bpf/syscall.c if (attr->query.query_flags & ~BPF_F_QUERY_EFFECTIVE) attr 2065 kernel/bpf/syscall.c switch (attr->query.attach_type) { attr 2086 kernel/bpf/syscall.c return lirc_prog_query(attr, uattr); attr 2088 kernel/bpf/syscall.c return skb_flow_dissector_prog_query(attr, uattr); attr 2093 kernel/bpf/syscall.c return cgroup_bpf_prog_query(attr, uattr); attr 2098 kernel/bpf/syscall.c static int bpf_prog_test_run(const union bpf_attr *attr, attr 2109 kernel/bpf/syscall.c if ((attr->test.ctx_size_in && !attr->test.ctx_in) || attr 2110 kernel/bpf/syscall.c (!attr->test.ctx_size_in && attr->test.ctx_in)) attr 2113 kernel/bpf/syscall.c if ((attr->test.ctx_size_out && !attr->test.ctx_out) || attr 2114 kernel/bpf/syscall.c (!attr->test.ctx_size_out && attr->test.ctx_out)) attr 2117 kernel/bpf/syscall.c prog = bpf_prog_get(attr->test.prog_fd); attr 2122 kernel/bpf/syscall.c ret = prog->aux->ops->test_run(prog, attr, uattr); attr 2130 kernel/bpf/syscall.c static int bpf_obj_get_next_id(const union bpf_attr *attr, attr 2135 kernel/bpf/syscall.c u32 next_id = attr->start_id; attr 2158 kernel/bpf/syscall.c static int bpf_prog_get_fd_by_id(const union bpf_attr *attr) attr 2161 kernel/bpf/syscall.c u32 id = attr->prog_id; attr 2190 kernel/bpf/syscall.c static int bpf_map_get_fd_by_id(const union bpf_attr *attr) attr 2193 kernel/bpf/syscall.c u32 id = attr->map_id; attr 2198 kernel/bpf/syscall.c attr->open_flags & ~BPF_OBJ_FLAG_MASK) attr 2204 kernel/bpf/syscall.c f_flags = bpf_get_file_flag(attr->open_flags); attr 2326 kernel/bpf/syscall.c const union bpf_attr *attr, attr 2329 kernel/bpf/syscall.c struct bpf_prog_info __user *uinfo = u64_to_user_ptr(attr->info.info); attr 2331 kernel/bpf/syscall.c u32 info_len = attr->info.info_len; attr 2602 kernel/bpf/syscall.c const union bpf_attr *attr, attr 2605 kernel/bpf/syscall.c struct bpf_map_info __user *uinfo = u64_to_user_ptr(attr->info.info); attr 2607 kernel/bpf/syscall.c u32 info_len = attr->info.info_len; attr 2644 kernel/bpf/syscall.c const union bpf_attr *attr, attr 2647 kernel/bpf/syscall.c struct bpf_btf_info __user *uinfo = u64_to_user_ptr(attr->info.info); attr 2648 kernel/bpf/syscall.c u32 info_len = attr->info.info_len; attr 2655 kernel/bpf/syscall.c return btf_get_info_by_fd(btf, attr, uattr); attr 2660 kernel/bpf/syscall.c static int bpf_obj_get_info_by_fd(const union bpf_attr *attr, attr 2663 kernel/bpf/syscall.c int ufd = attr->info.bpf_fd; attr 2675 kernel/bpf/syscall.c err = bpf_prog_get_info_by_fd(f.file->private_data, attr, attr 2678 kernel/bpf/syscall.c err = bpf_map_get_info_by_fd(f.file->private_data, attr, attr 2681 kernel/bpf/syscall.c err = bpf_btf_get_info_by_fd(f.file->private_data, attr, uattr); attr 2691 kernel/bpf/syscall.c static int bpf_btf_load(const union bpf_attr *attr) attr 2699 kernel/bpf/syscall.c return btf_new_fd(attr); attr 2704 kernel/bpf/syscall.c static int bpf_btf_get_fd_by_id(const union bpf_attr *attr) attr 2712 kernel/bpf/syscall.c return btf_get_fd_by_id(attr->btf_id); attr 2715 kernel/bpf/syscall.c static int bpf_task_fd_query_copy(const union bpf_attr *attr, attr 2721 kernel/bpf/syscall.c char __user *ubuf = u64_to_user_ptr(attr->task_fd_query.buf); attr 2727 kernel/bpf/syscall.c input_len = attr->task_fd_query.buf_len; attr 2764 kernel/bpf/syscall.c static int bpf_task_fd_query(const union bpf_attr *attr, attr 2767 kernel/bpf/syscall.c pid_t pid = attr->task_fd_query.pid; attr 2768 kernel/bpf/syscall.c u32 fd = attr->task_fd_query.fd; attr 2781 kernel/bpf/syscall.c if (attr->task_fd_query.flags != 0) attr 2810 kernel/bpf/syscall.c err = bpf_task_fd_query_copy(attr, uattr, attr 2827 kernel/bpf/syscall.c err = bpf_task_fd_query_copy(attr, uattr, prog_id, attr 2843 kernel/bpf/syscall.c union bpf_attr attr; attr 2849 kernel/bpf/syscall.c err = bpf_check_uarg_tail_zero(uattr, sizeof(attr), size); attr 2852 kernel/bpf/syscall.c size = min_t(u32, size, sizeof(attr)); attr 2855 kernel/bpf/syscall.c memset(&attr, 0, sizeof(attr)); attr 2856 kernel/bpf/syscall.c if (copy_from_user(&attr, uattr, size) != 0) attr 2859 kernel/bpf/syscall.c err = security_bpf(cmd, &attr, size); attr 2865 kernel/bpf/syscall.c err = map_create(&attr); attr 2868 kernel/bpf/syscall.c err = map_lookup_elem(&attr); attr 2871 kernel/bpf/syscall.c err = map_update_elem(&attr); attr 2874 kernel/bpf/syscall.c err = map_delete_elem(&attr); attr 2877 kernel/bpf/syscall.c err = map_get_next_key(&attr); attr 2880 kernel/bpf/syscall.c err = map_freeze(&attr); attr 2883 kernel/bpf/syscall.c err = bpf_prog_load(&attr, uattr); attr 2886 kernel/bpf/syscall.c err = bpf_obj_pin(&attr); attr 2889 kernel/bpf/syscall.c err = bpf_obj_get(&attr); attr 2892 kernel/bpf/syscall.c err = bpf_prog_attach(&attr); attr 2895 kernel/bpf/syscall.c err = bpf_prog_detach(&attr); attr 2898 kernel/bpf/syscall.c err = bpf_prog_query(&attr, uattr); attr 2901 kernel/bpf/syscall.c err = bpf_prog_test_run(&attr, uattr); attr 2904 kernel/bpf/syscall.c err = bpf_obj_get_next_id(&attr, uattr, attr 2908 kernel/bpf/syscall.c err = bpf_obj_get_next_id(&attr, uattr, attr 2912 kernel/bpf/syscall.c err = bpf_obj_get_next_id(&attr, uattr, attr 2916 kernel/bpf/syscall.c err = bpf_prog_get_fd_by_id(&attr); attr 2919 kernel/bpf/syscall.c err = bpf_map_get_fd_by_id(&attr); attr 2922 kernel/bpf/syscall.c err = bpf_obj_get_info_by_fd(&attr, uattr); attr 2925 kernel/bpf/syscall.c err = bpf_raw_tracepoint_open(&attr); attr 2928 kernel/bpf/syscall.c err = bpf_btf_load(&attr); attr 2931 kernel/bpf/syscall.c err = bpf_btf_get_fd_by_id(&attr); attr 2934 kernel/bpf/syscall.c err = bpf_task_fd_query(&attr, uattr); attr 2937 kernel/bpf/syscall.c err = map_lookup_and_delete_elem(&attr); attr 25 kernel/bpf/sysfs_btf.c .attr = { .name = "vmlinux", .mode = 0444, }, attr 6485 kernel/bpf/verifier.c const union bpf_attr *attr, attr 6498 kernel/bpf/verifier.c nfuncs = attr->func_info_cnt; attr 6507 kernel/bpf/verifier.c urec_size = attr->func_info_rec_size; attr 6518 kernel/bpf/verifier.c urecord = u64_to_user_ptr(attr->func_info); attr 6605 kernel/bpf/verifier.c const union bpf_attr *attr, attr 6616 kernel/bpf/verifier.c nr_linfo = attr->line_info_cnt; attr 6620 kernel/bpf/verifier.c rec_size = attr->line_info_rec_size; attr 6639 kernel/bpf/verifier.c ulinfo = u64_to_user_ptr(attr->line_info); attr 6727 kernel/bpf/verifier.c const union bpf_attr *attr, attr 6733 kernel/bpf/verifier.c if (!attr->func_info_cnt && !attr->line_info_cnt) attr 6736 kernel/bpf/verifier.c btf = btf_get_by_fd(attr->prog_btf_fd); attr 6741 kernel/bpf/verifier.c err = check_btf_func(env, attr, uattr); attr 6745 kernel/bpf/verifier.c err = check_btf_line(env, attr, uattr); attr 8488 kernel/bpf/verifier.c const union bpf_attr *attr) attr 8497 kernel/bpf/verifier.c rnd_hi32 = attr->prog_flags & BPF_F_TEST_RND_HI32; attr 9293 kernel/bpf/verifier.c int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, attr 9330 kernel/bpf/verifier.c if (attr->log_level || attr->log_buf || attr->log_size) { attr 9334 kernel/bpf/verifier.c log->level = attr->log_level; attr 9335 kernel/bpf/verifier.c log->ubuf = (char __user *) (unsigned long) attr->log_buf; attr 9336 kernel/bpf/verifier.c log->len_total = attr->log_size; attr 9345 kernel/bpf/verifier.c env->strict_alignment = !!(attr->prog_flags & BPF_F_STRICT_ALIGNMENT); attr 9348 kernel/bpf/verifier.c if (attr->prog_flags & BPF_F_ANY_ALIGNMENT) attr 9354 kernel/bpf/verifier.c env->test_state_freq = attr->prog_flags & BPF_F_TEST_STATE_FREQ; attr 9377 kernel/bpf/verifier.c ret = check_btf_info(env, attr, uattr); attr 9425 kernel/bpf/verifier.c ret = opt_subreg_zext_lo32_rnd_hi32(env, attr); attr 81 kernel/bpf/xskmap.c static struct bpf_map *xsk_map_alloc(union bpf_attr *attr) attr 90 kernel/bpf/xskmap.c if (attr->max_entries == 0 || attr->key_size != 4 || attr 91 kernel/bpf/xskmap.c attr->value_size != 4 || attr 92 kernel/bpf/xskmap.c attr->map_flags & ~(BPF_F_NUMA_NODE | BPF_F_RDONLY | BPF_F_WRONLY)) attr 99 kernel/bpf/xskmap.c bpf_map_init_from_attr(&m->map, attr); attr 6449 kernel/cgroup/cgroup.c int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, attr 6455 kernel/cgroup/cgroup.c ret = __cgroup_bpf_query(cgrp, attr, uattr); attr 6484 kernel/cgroup/cgroup.c static ssize_t delegate_show(struct kobject *kobj, struct kobj_attribute *attr, attr 6503 kernel/cgroup/cgroup.c static ssize_t features_show(struct kobject *kobj, struct kobj_attribute *attr, attr 6511 kernel/cgroup/cgroup.c &cgroup_delegate_attr.attr, attr 6512 kernel/cgroup/cgroup.c &cgroup_features_attr.attr, attr 984 kernel/cgroup/cpuset.c struct sched_domain_attr *attr; attr 1005 kernel/cgroup/cpuset.c ndoms = generate_sched_domains(&doms, &attr); attr 1008 kernel/cgroup/cpuset.c partition_and_rebuild_sched_domains(ndoms, doms, attr); attr 1991 kernel/cpu.c struct device_attribute *attr, char *buf) attr 2000 kernel/cpu.c struct device_attribute *attr, attr 2040 kernel/cpu.c struct device_attribute *attr, char *buf) attr 2050 kernel/cpu.c struct device_attribute *attr, attr 2087 kernel/cpu.c struct device_attribute *attr, char *buf) attr 2097 kernel/cpu.c &dev_attr_state.attr, attr 2098 kernel/cpu.c &dev_attr_target.attr, attr 2099 kernel/cpu.c &dev_attr_fail.attr, attr 2110 kernel/cpu.c struct device_attribute *attr, char *buf) attr 2131 kernel/cpu.c &dev_attr_states.attr, attr 2144 kernel/cpu.c __store_smt_control(struct device *dev, struct device_attribute *attr, attr 2186 kernel/cpu.c __store_smt_control(struct device *dev, struct device_attribute *attr, attr 2202 kernel/cpu.c show_smt_control(struct device *dev, struct device_attribute *attr, char *buf) attr 2210 kernel/cpu.c store_smt_control(struct device *dev, struct device_attribute *attr, attr 2213 kernel/cpu.c return __store_smt_control(dev, attr, buf, count); attr 2218 kernel/cpu.c show_smt_active(struct device *dev, struct device_attribute *attr, char *buf) attr 2225 kernel/cpu.c &dev_attr_control.attr, attr 2226 kernel/cpu.c &dev_attr_active.attr, attr 900 kernel/events/core.c struct perf_event_attr *attr, attr 1027 kernel/events/core.c struct perf_event_attr *attr, attr 1486 kernel/events/core.c event_type = event->attr.pinned ? EVENT_PINNED : EVENT_FLEXIBLE; attr 1509 kernel/events/core.c if (event->attr.pinned) attr 1693 kernel/events/core.c if (event->attr.inherit_stat) attr 1704 kernel/events/core.c event->state = event->attr.disabled ? PERF_EVENT_STATE_OFF : attr 1714 kernel/events/core.c if (event->attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) attr 1717 kernel/events/core.c if (event->attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) attr 1720 kernel/events/core.c if (event->attr.read_format & PERF_FORMAT_ID) attr 1723 kernel/events/core.c if (event->attr.read_format & PERF_FORMAT_GROUP) { attr 1772 kernel/events/core.c __perf_event_header_size(event, event->attr.sample_type); attr 1778 kernel/events/core.c u64 sample_type = event->attr.sample_type; attr 1809 kernel/events/core.c __perf_event_header_size(event, event->attr.sample_type & ~PERF_SAMPLE_READ); attr 1874 kernel/events/core.c if (event->attr.inherit_stat) attr 2021 kernel/events/core.c struct list_head *list = sibling->attr.pinned ? attr 2112 kernel/events/core.c if (event->attr.freq && event->attr.sample_freq) attr 2114 kernel/events/core.c if (event->attr.exclusive || !cpuctx->active_oncpu) attr 2142 kernel/events/core.c if (group_event->attr.exclusive) attr 2383 kernel/events/core.c if (event->attr.freq && event->attr.sample_freq) attr 2386 kernel/events/core.c if (event->attr.exclusive) attr 2470 kernel/events/core.c if (event->attr.exclusive && cpuctx->active_oncpu) attr 2945 kernel/events/core.c if (event->attr.inherit || !is_sampling_event(event)) attr 2971 kernel/events/core.c struct perf_event_attr *attr) attr 2977 kernel/events/core.c err = modify_user_hw_breakpoint_check(bp, attr, true); attr 2979 kernel/events/core.c if (!bp->attr.disabled) attr 2986 kernel/events/core.c struct perf_event_attr *attr) attr 2988 kernel/events/core.c if (event->attr.type != attr->type) attr 2991 kernel/events/core.c switch (event->attr.type) { attr 2993 kernel/events/core.c return perf_event_modify_breakpoint(event, attr); attr 3112 kernel/events/core.c if (!event->attr.inherit_stat) attr 3596 kernel/events/core.c u64 frequency = event->attr.sample_freq; attr 3740 kernel/events/core.c if (!event->attr.freq || !event->attr.sample_freq) attr 3873 kernel/events/core.c if (!event->attr.enable_on_exec) attr 3876 kernel/events/core.c event->attr.enable_on_exec = 0; attr 4041 kernel/events/core.c if (event->attr.inherit) { attr 4061 kernel/events/core.c if (event->attr.pinned && event->oncpu != smp_processor_id()) { attr 4348 kernel/events/core.c struct perf_event_attr *attr = &event->attr; attr 4356 kernel/events/core.c if (attr->mmap || attr->mmap_data || attr->mmap2 || attr 4357 kernel/events/core.c attr->comm || attr->comm_exec || attr 4358 kernel/events/core.c attr->task || attr->ksymbol || attr 4359 kernel/events/core.c attr->context_switch || attr 4360 kernel/events/core.c attr->bpf_event) attr 4411 kernel/events/core.c if (event->attr.mmap || event->attr.mmap_data) attr 4413 kernel/events/core.c if (event->attr.comm) attr 4415 kernel/events/core.c if (event->attr.namespaces) attr 4417 kernel/events/core.c if (event->attr.task) attr 4419 kernel/events/core.c if (event->attr.freq) attr 4421 kernel/events/core.c if (event->attr.context_switch) { attr 4429 kernel/events/core.c if (event->attr.ksymbol) attr 4431 kernel/events/core.c if (event->attr.bpf_event) attr 4563 kernel/events/core.c if (event->attr.sample_type & PERF_SAMPLE_CALLCHAIN) attr 4970 kernel/events/core.c u64 read_format = event->attr.read_format; attr 5080 kernel/events/core.c if (event->attr.freq) { attr 5081 kernel/events/core.c event->attr.sample_freq = value; attr 5083 kernel/events/core.c event->attr.sample_period = value; attr 5127 kernel/events/core.c if (event->attr.freq && value > sysctl_perf_event_sample_rate) attr 5133 kernel/events/core.c if (!event->attr.freq && (value & (1ULL << 63))) attr 5162 kernel/events/core.c struct perf_event_attr *attr); attr 5721 kernel/events/core.c if (event->cpu == -1 && event->attr.inherit) attr 5873 kernel/events/core.c event->attr.watermark ? event->attr.wakeup_watermark : 0, attr 5891 kernel/events/core.c event->attr.aux_watermark, flags); attr 6194 kernel/events/core.c u64 sample_type = event->attr.sample_type; attr 6224 kernel/events/core.c if (event->attr.sample_id_all) attr 6256 kernel/events/core.c if (event->attr.sample_id_all) attr 6264 kernel/events/core.c u64 read_format = event->attr.read_format; attr 6288 kernel/events/core.c u64 read_format = event->attr.read_format; attr 6339 kernel/events/core.c u64 read_format = event->attr.read_format; attr 6353 kernel/events/core.c if (event->attr.read_format & PERF_FORMAT_GROUP) attr 6467 kernel/events/core.c u64 mask = event->attr.sample_regs_user; attr 6498 kernel/events/core.c u64 mask = event->attr.sample_regs_intr; attr 6509 kernel/events/core.c if (!event->attr.watermark) { attr 6510 kernel/events/core.c int wakeup_events = event->attr.wakeup_events; attr 6564 kernel/events/core.c bool kernel = !event->attr.exclude_callchain_kernel; attr 6565 kernel/events/core.c bool user = !event->attr.exclude_callchain_user; attr 6568 kernel/events/core.c const u32 max_stack = event->attr.sample_max_stack; attr 6584 kernel/events/core.c u64 sample_type = event->attr.sample_type; attr 6651 kernel/events/core.c u64 mask = event->attr.sample_regs_user; attr 6665 kernel/events/core.c u16 stack_size = event->attr.sample_stack_user; attr 6690 kernel/events/core.c u64 mask = event->attr.sample_regs_intr; attr 7035 kernel/events/core.c return event->attr.comm || event->attr.mmap || attr 7036 kernel/events/core.c event->attr.mmap2 || event->attr.mmap_data || attr 7037 kernel/events/core.c event->attr.task; attr 7141 kernel/events/core.c return event->attr.comm; attr 7240 kernel/events/core.c return event->attr.namespaces; attr 7383 kernel/events/core.c return (!executable && event->attr.mmap_data) || attr 7384 kernel/events/core.c (executable && (event->attr.mmap || event->attr.mmap2)); attr 7400 kernel/events/core.c if (event->attr.mmap2) { attr 7421 kernel/events/core.c if (event->attr.mmap2) { attr 7782 kernel/events/core.c return event->attr.context_switch; attr 7913 kernel/events/core.c return event->attr.ksymbol; attr 8003 kernel/events/core.c return event->attr.bpf_event; attr 8160 kernel/events/core.c if (event->attr.freq) { attr 8313 kernel/events/core.c if ((event->attr.sample_type & PERF_SAMPLE_PERIOD) && !event->attr.freq) { attr 8319 kernel/events/core.c if (nr == 1 && hwc->sample_period == 1 && !event->attr.freq) attr 8335 kernel/events/core.c if (event->attr.exclude_user && user_mode(regs)) attr 8338 kernel/events/core.c if (event->attr.exclude_kernel && !user_mode(regs)) attr 8351 kernel/events/core.c if (event->attr.type != type) attr 8354 kernel/events/core.c if (event->attr.config != event_id) attr 8396 kernel/events/core.c u32 event_id = event->attr.config; attr 8397 kernel/events/core.c u64 type = event->attr.type; attr 8611 kernel/events/core.c u64 event_id = event->attr.config; attr 8621 kernel/events/core.c u64 event_id = event->attr.config; attr 8623 kernel/events/core.c if (event->attr.type != PERF_TYPE_SOFTWARE) attr 8696 kernel/events/core.c if (event->attr.exclude_kernel && !user_mode(regs)) attr 8762 kernel/events/core.c if (event->attr.type != PERF_TYPE_TRACEPOINT) attr 8764 kernel/events/core.c if (event->attr.config != entry->type) attr 8786 kernel/events/core.c if (event->attr.type != PERF_TYPE_TRACEPOINT) attr 8841 kernel/events/core.c &format_attr_retprobe.attr, attr 8872 kernel/events/core.c if (event->attr.type != perf_kprobe.type) attr 8884 kernel/events/core.c is_retprobe = event->attr.config & PERF_PROBE_CONFIG_IS_RETPROBE; attr 8899 kernel/events/core.c &format_attr_retprobe.attr, attr 8900 kernel/events/core.c &format_attr_ref_ctr_offset.attr, attr 8932 kernel/events/core.c if (event->attr.type != perf_uprobe.type) attr 8944 kernel/events/core.c is_retprobe = event->attr.config & PERF_PROBE_CONFIG_IS_RETPROBE; attr 8945 kernel/events/core.c ref_ctr_offset = event->attr.config >> PERF_UPROBE_REF_CTR_OFFSET_SHIFT; attr 9145 kernel/events/core.c perf_sample_data_init(&sample, bp->attr.bp_addr, 0); attr 9430 kernel/events/core.c if (kernel && event->attr.exclude_kernel) attr 9562 kernel/events/core.c ret = ftrace_profile_set_filter(event, event->attr.config, filter_str); attr 9596 kernel/events/core.c if (!(event->attr.exclude_idle && is_idle_task(current))) attr 9654 kernel/events/core.c if (event->attr.freq) { attr 9655 kernel/events/core.c long freq = event->attr.sample_freq; attr 9657 kernel/events/core.c event->attr.sample_period = NSEC_PER_SEC / freq; attr 9658 kernel/events/core.c hwc->sample_period = event->attr.sample_period; attr 9661 kernel/events/core.c event->attr.freq = 0; attr 9712 kernel/events/core.c if (event->attr.type != PERF_TYPE_SOFTWARE) attr 9715 kernel/events/core.c if (event->attr.config != PERF_COUNT_SW_CPU_CLOCK) attr 9793 kernel/events/core.c if (event->attr.type != PERF_TYPE_SOFTWARE) attr 9796 kernel/events/core.c if (event->attr.config != PERF_COUNT_SW_TASK_CLOCK) attr 9919 kernel/events/core.c struct device_attribute *attr, attr 9931 kernel/events/core.c type_show(struct device *dev, struct device_attribute *attr, char *page) attr 9941 kernel/events/core.c struct device_attribute *attr, attr 9953 kernel/events/core.c struct device_attribute *attr, attr 9991 kernel/events/core.c &dev_attr_type.attr, attr 9992 kernel/events/core.c &dev_attr_perf_event_mux_interval_ms.attr, attr 10203 kernel/events/core.c return (event->attr.sample_regs_user & PERF_REG_EXTENDED_MASK) || attr 10204 kernel/events/core.c (event->attr.sample_regs_intr & PERF_REG_EXTENDED_MASK); attr 10273 kernel/events/core.c pmu = idr_find(&pmu_idr, event->attr.type); attr 10360 kernel/events/core.c if (event->attr.mmap || event->attr.mmap_data) attr 10362 kernel/events/core.c if (event->attr.comm) attr 10364 kernel/events/core.c if (event->attr.namespaces) attr 10366 kernel/events/core.c if (event->attr.task) attr 10368 kernel/events/core.c if (event->attr.freq) attr 10370 kernel/events/core.c if (event->attr.context_switch) { attr 10378 kernel/events/core.c if (event->attr.ksymbol) attr 10380 kernel/events/core.c if (event->attr.bpf_event) attr 10420 kernel/events/core.c perf_event_alloc(struct perf_event_attr *attr, int cpu, attr 10470 kernel/events/core.c event->attr = *attr; attr 10530 kernel/events/core.c hwc->sample_period = attr->sample_period; attr 10531 kernel/events/core.c if (attr->freq && attr->sample_freq) attr 10541 kernel/events/core.c if (attr->inherit && (attr->sample_type & PERF_SAMPLE_READ)) attr 10545 kernel/events/core.c event->attr.branch_sample_type = 0; attr 10548 kernel/events/core.c err = perf_cgroup_connect(cgroup_fd, event, attr, group_leader); attr 10568 kernel/events/core.c if (event->attr.aux_output && attr 10606 kernel/events/core.c if (event->attr.sample_type & PERF_SAMPLE_CALLCHAIN) { attr 10607 kernel/events/core.c err = get_callchain_buffers(attr->sample_max_stack); attr 10641 kernel/events/core.c struct perf_event_attr *attr) attr 10647 kernel/events/core.c memset(attr, 0, sizeof(*attr)); attr 10659 kernel/events/core.c ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); attr 10666 kernel/events/core.c attr->size = size; attr 10668 kernel/events/core.c if (attr->__reserved_1 || attr->__reserved_2) attr 10671 kernel/events/core.c if (attr->sample_type & ~(PERF_SAMPLE_MAX-1)) attr 10674 kernel/events/core.c if (attr->read_format & ~(PERF_FORMAT_MAX-1)) attr 10677 kernel/events/core.c if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) { attr 10678 kernel/events/core.c u64 mask = attr->branch_sample_type; attr 10692 kernel/events/core.c if (!attr->exclude_kernel) attr 10695 kernel/events/core.c if (!attr->exclude_user) attr 10698 kernel/events/core.c if (!attr->exclude_hv) attr 10703 kernel/events/core.c attr->branch_sample_type = mask; attr 10711 kernel/events/core.c if (attr->sample_type & PERF_SAMPLE_REGS_USER) { attr 10712 kernel/events/core.c ret = perf_reg_validate(attr->sample_regs_user); attr 10717 kernel/events/core.c if (attr->sample_type & PERF_SAMPLE_STACK_USER) { attr 10726 kernel/events/core.c if (attr->sample_stack_user >= USHRT_MAX) attr 10728 kernel/events/core.c else if (!IS_ALIGNED(attr->sample_stack_user, sizeof(u64))) attr 10732 kernel/events/core.c if (!attr->sample_max_stack) attr 10733 kernel/events/core.c attr->sample_max_stack = sysctl_perf_event_max_stack; attr 10735 kernel/events/core.c if (attr->sample_type & PERF_SAMPLE_REGS_INTR) attr 10736 kernel/events/core.c ret = perf_reg_validate(attr->sample_regs_intr); attr 10741 kernel/events/core.c put_user(sizeof(*attr), &uattr->size); attr 10905 kernel/events/core.c struct perf_event_attr attr; attr 10921 kernel/events/core.c err = perf_copy_attr(attr_uptr, &attr); attr 10925 kernel/events/core.c if (!attr.exclude_kernel) { attr 10930 kernel/events/core.c if (attr.namespaces) { attr 10935 kernel/events/core.c if (attr.freq) { attr 10936 kernel/events/core.c if (attr.sample_freq > sysctl_perf_event_sample_rate) attr 10939 kernel/events/core.c if (attr.sample_period & (1ULL << 63)) attr 10944 kernel/events/core.c if ((attr.sample_type & PERF_SAMPLE_PHYS_ADDR) && attr 10949 kernel/events/core.c if (err && (attr.sample_type & PERF_SAMPLE_REGS_INTR)) attr 10991 kernel/events/core.c group_leader->attr.inherit != attr.inherit) { attr 11017 kernel/events/core.c event = perf_event_alloc(&attr, cpu, task, group_leader, NULL, attr 11037 kernel/events/core.c if (attr.use_clockid) { attr 11038 kernel/events/core.c err = perf_event_set_clock(event, attr.clockid); attr 11122 kernel/events/core.c if (attr.exclusive || attr.pinned) attr 11208 kernel/events/core.c if (event->attr.aux_output && !perf_get_aux_event(event, group_leader)) { attr 11348 kernel/events/core.c perf_event_create_kernel_counter(struct perf_event_attr *attr, int cpu, attr 11361 kernel/events/core.c if (attr->aux_output) attr 11364 kernel/events/core.c event = perf_event_alloc(attr, cpu, task, NULL, NULL, attr 11498 kernel/events/core.c if (child_event->attr.inherit_stat) attr 11779 kernel/events/core.c return &event->attr; attr 11811 kernel/events/core.c child_event = perf_event_alloc(&parent_event->attr, attr 11859 kernel/events/core.c if (parent_event->attr.freq) { attr 11958 kernel/events/core.c if (!event->attr.inherit) { attr 12258 kernel/events/core.c ssize_t perf_event_sysfs_show(struct device *dev, struct device_attribute *attr, attr 12262 kernel/events/core.c container_of(attr, struct perf_pmu_events_attr, attr); attr 113 kernel/events/hw_breakpoint.c find_slot_idx(iter->attr.bp_type) == type && attr 308 kernel/events/hw_breakpoint.c ret = __reserve_bp_slot(bp, bp->attr.bp_type); attr 330 kernel/events/hw_breakpoint.c __release_bp_slot(bp, bp->attr.bp_type); attr 377 kernel/events/hw_breakpoint.c return __reserve_bp_slot(bp, bp->attr.bp_type); attr 385 kernel/events/hw_breakpoint.c __release_bp_slot(bp, bp->attr.bp_type); attr 391 kernel/events/hw_breakpoint.c const struct perf_event_attr *attr, attr 396 kernel/events/hw_breakpoint.c err = hw_breakpoint_arch_parse(bp, attr, hw); attr 401 kernel/events/hw_breakpoint.c if (attr->exclude_kernel) attr 423 kernel/events/hw_breakpoint.c err = hw_breakpoint_parse(bp, &bp->attr, &hw); attr 441 kernel/events/hw_breakpoint.c register_user_hw_breakpoint(struct perf_event_attr *attr, attr 446 kernel/events/hw_breakpoint.c return perf_event_create_kernel_counter(attr, -1, tsk, triggered, attr 461 kernel/events/hw_breakpoint.c modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, attr 467 kernel/events/hw_breakpoint.c err = hw_breakpoint_parse(bp, attr, &hw); attr 474 kernel/events/hw_breakpoint.c old_attr = bp->attr; attr 475 kernel/events/hw_breakpoint.c hw_breakpoint_copy_attr(&old_attr, attr); attr 476 kernel/events/hw_breakpoint.c if (memcmp(&old_attr, attr, sizeof(*attr))) attr 480 kernel/events/hw_breakpoint.c if (bp->attr.bp_type != attr->bp_type) { attr 481 kernel/events/hw_breakpoint.c err = modify_bp_slot(bp, bp->attr.bp_type, attr->bp_type); attr 486 kernel/events/hw_breakpoint.c hw_breakpoint_copy_attr(&bp->attr, attr); attr 497 kernel/events/hw_breakpoint.c int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr) attr 512 kernel/events/hw_breakpoint.c err = modify_user_hw_breakpoint_check(bp, attr, false); attr 514 kernel/events/hw_breakpoint.c if (!bp->attr.disabled) attr 541 kernel/events/hw_breakpoint.c register_wide_hw_breakpoint(struct perf_event_attr *attr, attr 555 kernel/events/hw_breakpoint.c bp = perf_event_create_kernel_counter(attr, cpu, NULL, attr 604 kernel/events/hw_breakpoint.c if (bp->attr.type != PERF_TYPE_BREAKPOINT) attr 185 kernel/events/ring_buffer.c if (event->attr.sample_id_all) attr 58 kernel/fail_function.c struct fei_attr *attr; attr 60 kernel/fail_function.c attr = kzalloc(sizeof(*attr), GFP_KERNEL); attr 61 kernel/fail_function.c if (attr) { attr 62 kernel/fail_function.c attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); attr 63 kernel/fail_function.c if (!attr->kp.symbol_name) { attr 64 kernel/fail_function.c kfree(attr); attr 67 kernel/fail_function.c attr->kp.pre_handler = fei_kprobe_handler; attr 68 kernel/fail_function.c attr->kp.post_handler = fei_post_handler; attr 69 kernel/fail_function.c attr->retval = adjust_error_retval(addr, 0); attr 70 kernel/fail_function.c INIT_LIST_HEAD(&attr->list); attr 72 kernel/fail_function.c return attr; attr 75 kernel/fail_function.c static void fei_attr_free(struct fei_attr *attr) attr 77 kernel/fail_function.c if (attr) { attr 78 kernel/fail_function.c kfree(attr->kp.symbol_name); attr 79 kernel/fail_function.c kfree(attr); attr 85 kernel/fail_function.c struct fei_attr *attr; attr 87 kernel/fail_function.c list_for_each_entry(attr, &fei_attr_list, list) { attr 88 kernel/fail_function.c if (!strcmp(attr->kp.symbol_name, sym)) attr 89 kernel/fail_function.c return attr; attr 97 kernel/fail_function.c struct fei_attr *attr; attr 99 kernel/fail_function.c list_for_each_entry(attr, &fei_attr_list, list) { attr 100 kernel/fail_function.c if (attr == _attr) attr 109 kernel/fail_function.c struct fei_attr *attr = data; attr 119 kernel/fail_function.c if (!fei_attr_is_valid(attr)) { attr 124 kernel/fail_function.c if (attr->kp.addr) { attr 125 kernel/fail_function.c if (adjust_error_retval((unsigned long)attr->kp.addr, attr 130 kernel/fail_function.c attr->retval = val; attr 139 kernel/fail_function.c struct fei_attr *attr = data; attr 144 kernel/fail_function.c if (!fei_attr_is_valid(attr)) attr 147 kernel/fail_function.c *val = attr->retval; attr 155 kernel/fail_function.c static void fei_debugfs_add_attr(struct fei_attr *attr) attr 159 kernel/fail_function.c dir = debugfs_create_dir(attr->kp.symbol_name, fei_debugfs_dir); attr 161 kernel/fail_function.c debugfs_create_file("retval", 0600, dir, attr, &fei_retval_ops); attr 164 kernel/fail_function.c static void fei_debugfs_remove_attr(struct fei_attr *attr) attr 168 kernel/fail_function.c dir = debugfs_lookup(attr->kp.symbol_name, fei_debugfs_dir); attr 174 kernel/fail_function.c struct fei_attr *attr = container_of(kp, struct fei_attr, kp); attr 177 kernel/fail_function.c regs_set_return_value(regs, attr->retval); attr 204 kernel/fail_function.c struct fei_attr *attr = list_entry(v, struct fei_attr, list); attr 206 kernel/fail_function.c seq_printf(m, "%ps\n", attr->kp.addr); attr 222 kernel/fail_function.c static void fei_attr_remove(struct fei_attr *attr) attr 224 kernel/fail_function.c fei_debugfs_remove_attr(attr); attr 225 kernel/fail_function.c unregister_kprobe(&attr->kp); attr 226 kernel/fail_function.c list_del(&attr->list); attr 227 kernel/fail_function.c fei_attr_free(attr); attr 232 kernel/fail_function.c struct fei_attr *attr, *n; attr 234 kernel/fail_function.c list_for_each_entry_safe(attr, n, &fei_attr_list, list) { attr 235 kernel/fail_function.c fei_attr_remove(attr); attr 242 kernel/fail_function.c struct fei_attr *attr; attr 271 kernel/fail_function.c attr = fei_attr_lookup(sym + 1); attr 272 kernel/fail_function.c if (!attr) { attr 276 kernel/fail_function.c fei_attr_remove(attr); attr 294 kernel/fail_function.c attr = fei_attr_new(sym, addr); attr 295 kernel/fail_function.c if (!attr) { attr 300 kernel/fail_function.c ret = register_kprobe(&attr->kp); attr 302 kernel/fail_function.c fei_debugfs_add_attr(attr); attr 304 kernel/fail_function.c fei_attr_remove(attr); attr 306 kernel/fail_function.c list_add_tail(&attr->list, &fei_attr_list); attr 278 kernel/futex.c struct fault_attr attr; attr 282 kernel/futex.c .attr = FAULT_ATTR_INITIALIZER, attr 288 kernel/futex.c return setup_fault_attr(&fail_futex.attr, str); attr 297 kernel/futex.c return should_fail(&fail_futex.attr, 1); attr 308 kernel/futex.c &fail_futex.attr); attr 147 kernel/irq/irqdesc.c struct kobj_attribute *attr, char *buf) attr 167 kernel/irq/irqdesc.c struct kobj_attribute *attr, char *buf) attr 184 kernel/irq/irqdesc.c struct kobj_attribute *attr, char *buf) attr 199 kernel/irq/irqdesc.c struct kobj_attribute *attr, char *buf) attr 215 kernel/irq/irqdesc.c struct kobj_attribute *attr, char *buf) attr 231 kernel/irq/irqdesc.c struct kobj_attribute *attr, char *buf) attr 246 kernel/irq/irqdesc.c struct kobj_attribute *attr, char *buf) attr 269 kernel/irq/irqdesc.c &per_cpu_count_attr.attr, attr 270 kernel/irq/irqdesc.c &chip_name_attr.attr, attr 271 kernel/irq/irqdesc.c &hwirq_attr.attr, attr 272 kernel/irq/irqdesc.c &type_attr.attr, attr 273 kernel/irq/irqdesc.c &wakeup_attr.attr, attr 274 kernel/irq/irqdesc.c &name_attr.attr, attr 275 kernel/irq/irqdesc.c &actions_attr.attr, attr 42 kernel/kheaders.c .attr = { attr 32 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 41 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 46 kernel/ksysfs.c struct kobj_attribute *attr, attr 62 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 67 kernel/ksysfs.c struct kobj_attribute *attr, attr 93 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 100 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 107 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 112 kernel/ksysfs.c struct kobj_attribute *attr, attr 131 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 143 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 152 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 157 kernel/ksysfs.c struct kobj_attribute *attr, attr 169 kernel/ksysfs.c struct kobj_attribute *attr, char *buf) attr 174 kernel/ksysfs.c struct kobj_attribute *attr, attr 201 kernel/ksysfs.c .attr = { attr 212 kernel/ksysfs.c &fscaps_attr.attr, attr 213 kernel/ksysfs.c &uevent_seqnum_attr.attr, attr 215 kernel/ksysfs.c &uevent_helper_attr.attr, attr 218 kernel/ksysfs.c &profiling_attr.attr, attr 221 kernel/ksysfs.c &kexec_loaded_attr.attr, attr 222 kernel/ksysfs.c &kexec_crash_loaded_attr.attr, attr 223 kernel/ksysfs.c &kexec_crash_size_attr.attr, attr 226 kernel/ksysfs.c &vmcoreinfo_attr.attr, attr 229 kernel/ksysfs.c &rcu_expedited_attr.attr, attr 230 kernel/ksysfs.c &rcu_normal_attr.attr, attr 311 kernel/livepatch/core.c static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, attr 355 kernel/livepatch/core.c struct kobj_attribute *attr, char *buf) attr 364 kernel/livepatch/core.c struct kobj_attribute *attr, char *buf) attr 373 kernel/livepatch/core.c static ssize_t force_store(struct kobject *kobj, struct kobj_attribute *attr, attr 406 kernel/livepatch/core.c &enabled_kobj_attr.attr, attr 407 kernel/livepatch/core.c &transition_kobj_attr.attr, attr 408 kernel/livepatch/core.c &force_kobj_attr.attr, attr 793 kernel/module.c .attr = { .name = __stringify(field), .mode = 0444 }, \ attr 1574 kernel/module.c sysfs_attr_init(&sattr->mattr.attr); attr 1577 kernel/module.c sattr->mattr.attr.name = sattr->name; attr 1578 kernel/module.c sattr->mattr.attr.mode = S_IRUSR; attr 1579 kernel/module.c *(gattr++) = &(sattr++)->mattr.attr; attr 1669 kernel/module.c nattr->attr.name = mod->sect_attrs->attrs[loaded].name; attr 1670 kernel/module.c nattr->attr.mode = S_IRUGO; attr 1758 kernel/module.c struct module_attribute *attr; attr 1770 kernel/module.c for (i = 0; (attr = modinfo_attrs[i]); i++) { attr 1771 kernel/module.c if (!attr->test || attr->test(mod)) { attr 1772 kernel/module.c memcpy(temp_attr, attr, sizeof(*temp_attr)); attr 1773 kernel/module.c sysfs_attr_init(&temp_attr->attr); attr 1775 kernel/module.c &temp_attr->attr); attr 1794 kernel/module.c struct module_attribute *attr; attr 1797 kernel/module.c for (i = 0; (attr = &mod->modinfo_attrs[i]); i++) { attr 1801 kernel/module.c if (!attr->attr.name) attr 1803 kernel/module.c sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); attr 1804 kernel/module.c if (attr->free) attr 1805 kernel/module.c attr->free(mod); attr 2574 kernel/module.c struct module_attribute *attr; attr 2577 kernel/module.c for (i = 0; (attr = modinfo_attrs[i]); i++) { attr 2578 kernel/module.c if (attr->setup) attr 2579 kernel/module.c attr->setup(mod, get_modinfo(info, attr->attr.name)); attr 2585 kernel/module.c struct module_attribute *attr; attr 2588 kernel/module.c for (i = 0; (attr = modinfo_attrs[i]); i++) { attr 2589 kernel/module.c if (attr->free) attr 2590 kernel/module.c attr->free(mod); attr 837 kernel/padata.c container_of(_attr, struct padata_sysfs_entry, attr) attr 846 kernel/padata.c struct attribute attr; attr 853 kernel/padata.c struct attribute *attr, char *buf) attr 859 kernel/padata.c if (!strcmp(attr->name, "serial_cpumask")) attr 871 kernel/padata.c struct attribute *attr, attr 886 kernel/padata.c mask_type = !strcmp(attr->name, "serial_cpumask") ? attr 913 kernel/padata.c &serial_cpumask_attr.attr, attr 914 kernel/padata.c ¶llel_cpumask_attr.attr, attr 920 kernel/padata.c struct attribute *attr, char *buf) attr 927 kernel/padata.c pentry = attr2pentry(attr); attr 929 kernel/padata.c ret = pentry->show(pinst, attr, buf); attr 934 kernel/padata.c static ssize_t padata_sysfs_store(struct kobject *kobj, struct attribute *attr, attr 942 kernel/padata.c pentry = attr2pentry(attr); attr 944 kernel/padata.c ret = pentry->store(pinst, attr, buf, count); attr 519 kernel/params.c #define to_module_attr(n) container_of(n, struct module_attribute, attr) attr 650 kernel/params.c sysfs_attr_init(&mk->mp->attrs[mk->mp->num].mattr.attr); attr 658 kernel/params.c mk->mp->attrs[mk->mp->num].mattr.attr.name = (char *)name; attr 659 kernel/params.c mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm; attr 664 kernel/params.c mk->mp->grp.attrs[i] = &mk->mp->attrs[i].mattr.attr; attr 761 kernel/params.c err = sysfs_create_file(&mk->kobj, &module_uevent.attr); attr 859 kernel/params.c err = sysfs_create_file(&mk->kobj, &vattr->mattr.attr); attr 870 kernel/params.c struct attribute *attr, attr 877 kernel/params.c attribute = to_module_attr(attr); attr 889 kernel/params.c struct attribute *attr, attr 896 kernel/params.c attribute = to_module_attr(attr); attr 964 kernel/power/hibernate.c static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, attr 999 kernel/power/hibernate.c static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, attr 1050 kernel/power/hibernate.c static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, attr 1057 kernel/power/hibernate.c static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, attr 1087 kernel/power/hibernate.c struct kobj_attribute *attr, char *buf) attr 1093 kernel/power/hibernate.c struct kobj_attribute *attr, const char *buf, attr 1109 kernel/power/hibernate.c static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, attr 1115 kernel/power/hibernate.c static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, attr 1131 kernel/power/hibernate.c struct kobj_attribute *attr, char *buf) attr 1137 kernel/power/hibernate.c struct kobj_attribute *attr, attr 1153 kernel/power/hibernate.c &disk_attr.attr, attr 1154 kernel/power/hibernate.c &resume_offset_attr.attr, attr 1155 kernel/power/hibernate.c &resume_attr.attr, attr 1156 kernel/power/hibernate.c &image_size_attr.attr, attr 1157 kernel/power/hibernate.c &reserved_size_attr.attr, attr 100 kernel/power/main.c static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, attr 106 kernel/power/main.c static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, attr 124 kernel/power/main.c static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, attr 166 kernel/power/main.c static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, attr 207 kernel/power/main.c static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, attr 228 kernel/power/main.c static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, attr 280 kernel/power/main.c struct kobj_attribute *attr, char *buf) \ attr 298 kernel/power/main.c struct kobj_attribute *attr, char *buf) attr 312 kernel/power/main.c struct kobj_attribute *attr, char *buf) attr 326 kernel/power/main.c struct kobj_attribute *attr, char *buf) attr 342 kernel/power/main.c &success.attr, attr 343 kernel/power/main.c &fail.attr, attr 344 kernel/power/main.c &failed_freeze.attr, attr 345 kernel/power/main.c &failed_prepare.attr, attr 346 kernel/power/main.c &failed_suspend.attr, attr 347 kernel/power/main.c &failed_suspend_late.attr, attr 348 kernel/power/main.c &failed_suspend_noirq.attr, attr 349 kernel/power/main.c &failed_resume.attr, attr 350 kernel/power/main.c &failed_resume_early.attr, attr 351 kernel/power/main.c &failed_resume_noirq.attr, attr 352 kernel/power/main.c &last_failed_dev.attr, attr 353 kernel/power/main.c &last_failed_errno.attr, attr 354 kernel/power/main.c &last_failed_step.attr, attr 443 kernel/power/main.c struct kobj_attribute *attr, char *buf) attr 449 kernel/power/main.c struct kobj_attribute *attr, attr 472 kernel/power/main.c struct kobj_attribute *attr, attr 483 kernel/power/main.c struct kobj_attribute *attr, char *buf) attr 489 kernel/power/main.c struct kobj_attribute *attr, attr 552 kernel/power/main.c static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr, attr 599 kernel/power/main.c static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr, attr 663 kernel/power/main.c struct kobj_attribute *attr, attr 673 kernel/power/main.c struct kobj_attribute *attr, attr 705 kernel/power/main.c struct kobj_attribute *attr, attr 726 kernel/power/main.c struct kobj_attribute *attr, attr 748 kernel/power/main.c struct kobj_attribute *attr, attr 755 kernel/power/main.c struct kobj_attribute *attr, attr 765 kernel/power/main.c struct kobj_attribute *attr, attr 772 kernel/power/main.c struct kobj_attribute *attr, attr 787 kernel/power/main.c static ssize_t pm_trace_show(struct kobject *kobj, struct kobj_attribute *attr, attr 794 kernel/power/main.c pm_trace_store(struct kobject *kobj, struct kobj_attribute *attr, attr 813 kernel/power/main.c struct kobj_attribute *attr, attr 825 kernel/power/main.c struct kobj_attribute *attr, char *buf) attr 831 kernel/power/main.c struct kobj_attribute *attr, attr 848 kernel/power/main.c &state_attr.attr, attr 850 kernel/power/main.c &pm_trace_attr.attr, attr 851 kernel/power/main.c &pm_trace_dev_match_attr.attr, attr 854 kernel/power/main.c &pm_async_attr.attr, attr 855 kernel/power/main.c &wakeup_count_attr.attr, attr 857 kernel/power/main.c &mem_sleep_attr.attr, attr 860 kernel/power/main.c &autosleep_attr.attr, attr 863 kernel/power/main.c &wake_lock_attr.attr, attr 864 kernel/power/main.c &wake_unlock_attr.attr, attr 867 kernel/power/main.c &pm_test_attr.attr, attr 868 kernel/power/main.c &pm_print_times_attr.attr, attr 869 kernel/power/main.c &pm_wakeup_irq_attr.attr, attr 870 kernel/power/main.c &pm_debug_messages_attr.attr, attr 874 kernel/power/main.c &pm_freeze_timeout_attr.attr, attr 80 kernel/power/power.h .attr = { \ attr 90 kernel/power/power.h .attr = { \ attr 1169 kernel/sched/core.c const struct sched_attr *attr) attr 1174 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP_MIN) attr 1175 kernel/sched/core.c lower_bound = attr->sched_util_min; attr 1176 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP_MAX) attr 1177 kernel/sched/core.c upper_bound = attr->sched_util_max; attr 1188 kernel/sched/core.c const struct sched_attr *attr) attr 1211 kernel/sched/core.c if (likely(!(attr->sched_flags & SCHED_FLAG_UTIL_CLAMP))) attr 1214 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP_MIN) { attr 1216 kernel/sched/core.c attr->sched_util_min, true); attr 1219 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP_MAX) { attr 1221 kernel/sched/core.c attr->sched_util_max, true); attr 1275 kernel/sched/core.c const struct sched_attr *attr) attr 1280 kernel/sched/core.c const struct sched_attr *attr) { } attr 4680 kernel/sched/core.c const struct sched_attr *attr) attr 4682 kernel/sched/core.c int policy = attr->sched_policy; attr 4690 kernel/sched/core.c __setparam_dl(p, attr); attr 4692 kernel/sched/core.c p->static_prio = NICE_TO_PRIO(attr->sched_nice); attr 4699 kernel/sched/core.c p->rt_priority = attr->sched_priority; attr 4706 kernel/sched/core.c const struct sched_attr *attr, bool keep_boost) attr 4712 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_KEEP_PARAMS) attr 4715 kernel/sched/core.c __setscheduler_params(p, attr); attr 4750 kernel/sched/core.c const struct sched_attr *attr, attr 4753 kernel/sched/core.c int newprio = dl_policy(attr->sched_policy) ? MAX_DL_PRIO - 1 : attr 4754 kernel/sched/core.c MAX_RT_PRIO - 1 - attr->sched_priority; attr 4756 kernel/sched/core.c int new_effective_prio, policy = attr->sched_policy; attr 4771 kernel/sched/core.c reset_on_fork = !!(attr->sched_flags & SCHED_FLAG_RESET_ON_FORK); attr 4777 kernel/sched/core.c if (attr->sched_flags & ~(SCHED_FLAG_ALL | SCHED_FLAG_SUGOV)) attr 4785 kernel/sched/core.c if ((p->mm && attr->sched_priority > MAX_USER_RT_PRIO-1) || attr 4786 kernel/sched/core.c (!p->mm && attr->sched_priority > MAX_RT_PRIO-1)) attr 4788 kernel/sched/core.c if ((dl_policy(policy) && !__checkparam_dl(attr)) || attr 4789 kernel/sched/core.c (rt_policy(policy) != (attr->sched_priority != 0))) attr 4797 kernel/sched/core.c if (attr->sched_nice < task_nice(p) && attr 4798 kernel/sched/core.c !can_nice(p, attr->sched_nice)) attr 4811 kernel/sched/core.c if (attr->sched_priority > p->rt_priority && attr 4812 kernel/sched/core.c attr->sched_priority > rlim_rtprio) attr 4844 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_SUGOV) attr 4853 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP) { attr 4854 kernel/sched/core.c retval = uclamp_validate(p, attr); attr 4885 kernel/sched/core.c if (fair_policy(policy) && attr->sched_nice != task_nice(p)) attr 4887 kernel/sched/core.c if (rt_policy(policy) && attr->sched_priority != p->rt_priority) attr 4889 kernel/sched/core.c if (dl_policy(policy) && dl_param_changed(p, attr)) attr 4891 kernel/sched/core.c if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP) attr 4915 kernel/sched/core.c !(attr->sched_flags & SCHED_FLAG_SUGOV)) { attr 4946 kernel/sched/core.c if ((dl_policy(policy) || dl_task(p)) && sched_dl_overflow(p, policy, attr)) { attr 4976 kernel/sched/core.c __setscheduler(rq, p, attr, pi); attr 4977 kernel/sched/core.c __setscheduler_uclamp(p, attr); attr 5019 kernel/sched/core.c struct sched_attr attr = { attr 5027 kernel/sched/core.c attr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; attr 5029 kernel/sched/core.c attr.sched_policy = policy; attr 5032 kernel/sched/core.c return __sched_setscheduler(p, &attr, check, true); attr 5051 kernel/sched/core.c int sched_setattr(struct task_struct *p, const struct sched_attr *attr) attr 5053 kernel/sched/core.c return __sched_setscheduler(p, attr, true, true); attr 5057 kernel/sched/core.c int sched_setattr_nocheck(struct task_struct *p, const struct sched_attr *attr) attr 5059 kernel/sched/core.c return __sched_setscheduler(p, attr, false, true); attr 5112 kernel/sched/core.c static int sched_copy_attr(struct sched_attr __user *uattr, struct sched_attr *attr) attr 5118 kernel/sched/core.c memset(attr, 0, sizeof(*attr)); attr 5130 kernel/sched/core.c ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); attr 5137 kernel/sched/core.c if ((attr->sched_flags & SCHED_FLAG_UTIL_CLAMP) && attr 5145 kernel/sched/core.c attr->sched_nice = clamp(attr->sched_nice, MIN_NICE, MAX_NICE); attr 5150 kernel/sched/core.c put_user(sizeof(*attr), &uattr->size); attr 5191 kernel/sched/core.c struct sched_attr attr; attr 5198 kernel/sched/core.c retval = sched_copy_attr(uattr, &attr); attr 5202 kernel/sched/core.c if ((int)attr.sched_policy < 0) attr 5204 kernel/sched/core.c if (attr.sched_flags & SCHED_FLAG_KEEP_POLICY) attr 5205 kernel/sched/core.c attr.sched_policy = SETPARAM_POLICY; attr 5215 kernel/sched/core.c retval = sched_setattr(p, &attr); attr 6827 kernel/sched/core.c struct sched_attr attr = { attr 6854 kernel/sched/core.c __sched_setscheduler(p, &attr, false, false); attr 622 kernel/sched/cpufreq_schedutil.c &rate_limit_us.attr, attr 657 kernel/sched/cpufreq_schedutil.c struct sched_attr attr = { attr 688 kernel/sched/cpufreq_schedutil.c ret = sched_setattr_nocheck(thread, &attr); attr 2553 kernel/sched/deadline.c const struct sched_attr *attr) attr 2556 kernel/sched/deadline.c u64 period = attr->sched_period ?: attr->sched_deadline; attr 2557 kernel/sched/deadline.c u64 runtime = attr->sched_runtime; attr 2561 kernel/sched/deadline.c if (attr->sched_flags & SCHED_FLAG_SUGOV) attr 2615 kernel/sched/deadline.c void __setparam_dl(struct task_struct *p, const struct sched_attr *attr) attr 2619 kernel/sched/deadline.c dl_se->dl_runtime = attr->sched_runtime; attr 2620 kernel/sched/deadline.c dl_se->dl_deadline = attr->sched_deadline; attr 2621 kernel/sched/deadline.c dl_se->dl_period = attr->sched_period ?: dl_se->dl_deadline; attr 2622 kernel/sched/deadline.c dl_se->flags = attr->sched_flags; attr 2627 kernel/sched/deadline.c void __getparam_dl(struct task_struct *p, struct sched_attr *attr) attr 2631 kernel/sched/deadline.c attr->sched_priority = p->rt_priority; attr 2632 kernel/sched/deadline.c attr->sched_runtime = dl_se->dl_runtime; attr 2633 kernel/sched/deadline.c attr->sched_deadline = dl_se->dl_deadline; attr 2634 kernel/sched/deadline.c attr->sched_period = dl_se->dl_period; attr 2635 kernel/sched/deadline.c attr->sched_flags = dl_se->flags; attr 2648 kernel/sched/deadline.c bool __checkparam_dl(const struct sched_attr *attr) attr 2651 kernel/sched/deadline.c if (attr->sched_flags & SCHED_FLAG_SUGOV) attr 2655 kernel/sched/deadline.c if (attr->sched_deadline == 0) attr 2662 kernel/sched/deadline.c if (attr->sched_runtime < (1ULL << DL_SCALE)) attr 2669 kernel/sched/deadline.c if (attr->sched_deadline & (1ULL << 63) || attr 2670 kernel/sched/deadline.c attr->sched_period & (1ULL << 63)) attr 2674 kernel/sched/deadline.c if ((attr->sched_period != 0 && attr 2675 kernel/sched/deadline.c attr->sched_period < attr->sched_deadline) || attr 2676 kernel/sched/deadline.c attr->sched_deadline < attr->sched_runtime) attr 2702 kernel/sched/deadline.c bool dl_param_changed(struct task_struct *p, const struct sched_attr *attr) attr 2706 kernel/sched/deadline.c if (dl_se->dl_runtime != attr->sched_runtime || attr 2707 kernel/sched/deadline.c dl_se->dl_deadline != attr->sched_deadline || attr 2708 kernel/sched/deadline.c dl_se->dl_period != attr->sched_period || attr 2709 kernel/sched/deadline.c dl_se->flags != attr->sched_flags) attr 318 kernel/sched/sched.h extern int sched_dl_overflow(struct task_struct *p, int policy, const struct sched_attr *attr); attr 319 kernel/sched/sched.h extern void __setparam_dl(struct task_struct *p, const struct sched_attr *attr); attr 320 kernel/sched/sched.h extern void __getparam_dl(struct task_struct *p, struct sched_attr *attr); attr 321 kernel/sched/sched.h extern bool __checkparam_dl(const struct sched_attr *attr); attr 322 kernel/sched/sched.h extern bool dl_param_changed(struct task_struct *p, const struct sched_attr *attr); attr 1197 kernel/sched/topology.c struct sched_domain_attr *attr) attr 1201 kernel/sched/topology.c if (!attr || attr->relax_domain_level < 0) { attr 1207 kernel/sched/topology.c request = attr->relax_domain_level; attr 1856 kernel/sched/topology.c const struct cpumask *cpu_map, struct sched_domain_attr *attr, attr 1880 kernel/sched/topology.c set_domain_attribute(sd, attr); attr 1985 kernel/sched/topology.c build_sched_domains(const struct cpumask *cpu_map, struct sched_domain_attr *attr) attr 2020 kernel/sched/topology.c sd = build_sched_domain(tl, cpu_map, attr, sd, dflags, i); attr 672 kernel/time/clockevents.c struct device_attribute *attr, attr 689 kernel/time/clockevents.c struct device_attribute *attr, attr 1042 kernel/time/clocksource.c struct device_attribute *attr, attr 1082 kernel/time/clocksource.c struct device_attribute *attr, attr 1109 kernel/time/clocksource.c struct device_attribute *attr, attr 1143 kernel/time/clocksource.c struct device_attribute *attr, attr 1171 kernel/time/clocksource.c &dev_attr_current_clocksource.attr, attr 1172 kernel/time/clocksource.c &dev_attr_unbind_clocksource.attr, attr 1173 kernel/time/clocksource.c &dev_attr_available_clocksource.attr, attr 1681 kernel/trace/blktrace.c struct device_attribute *attr, attr 1684 kernel/trace/blktrace.c struct device_attribute *attr, attr 1698 kernel/trace/blktrace.c &dev_attr_enable.attr, attr 1699 kernel/trace/blktrace.c &dev_attr_act_mask.attr, attr 1700 kernel/trace/blktrace.c &dev_attr_pid.attr, attr 1701 kernel/trace/blktrace.c &dev_attr_start_lba.attr, attr 1702 kernel/trace/blktrace.c &dev_attr_end_lba.attr, attr 1793 kernel/trace/blktrace.c struct device_attribute *attr, attr 1814 kernel/trace/blktrace.c if (attr == &dev_attr_enable) { attr 1821 kernel/trace/blktrace.c else if (attr == &dev_attr_act_mask) attr 1823 kernel/trace/blktrace.c else if (attr == &dev_attr_pid) attr 1825 kernel/trace/blktrace.c else if (attr == &dev_attr_start_lba) attr 1827 kernel/trace/blktrace.c else if (attr == &dev_attr_end_lba) attr 1839 kernel/trace/blktrace.c struct device_attribute *attr, attr 1852 kernel/trace/blktrace.c if (attr == &dev_attr_act_mask) { attr 1878 kernel/trace/blktrace.c if (attr == &dev_attr_enable) { attr 1898 kernel/trace/blktrace.c if (attr == &dev_attr_act_mask) attr 1900 kernel/trace/blktrace.c else if (attr == &dev_attr_pid) attr 1902 kernel/trace/blktrace.c else if (attr == &dev_attr_start_lba) attr 1904 kernel/trace/blktrace.c else if (attr == &dev_attr_end_lba) attr 439 kernel/trace/bpf_trace.c if (unlikely(event->attr.type != PERF_TYPE_SOFTWARE || attr 440 kernel/trace/bpf_trace.c event->attr.config != PERF_COUNT_SW_BPF_OUTPUT)) attr 1275 kernel/trace/bpf_trace.c if (event->attr.type != PERF_TYPE_TRACEPOINT) attr 1445 kernel/trace/bpf_trace.c event->attr.type == PERF_TYPE_TRACEPOINT); attr 1451 kernel/trace/bpf_trace.c event->attr.type == PERF_TYPE_TRACEPOINT); attr 60 kernel/trace/trace_event_perf.c if (!p_event->attr.exclude_callchain_user) attr 67 kernel/trace/trace_event_perf.c if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER) attr 72 kernel/trace/trace_event_perf.c if (!(p_event->attr.sample_type & PERF_SAMPLE_RAW)) attr 215 kernel/trace/trace_event_perf.c u64 event_id = p_event->attr.config; attr 249 kernel/trace/trace_event_perf.c if (p_event->attr.kprobe_func) { attr 254 kernel/trace/trace_event_perf.c func, u64_to_user_ptr(p_event->attr.kprobe_func), attr 268 kernel/trace/trace_event_perf.c func, (void *)(unsigned long)(p_event->attr.kprobe_addr), attr 269 kernel/trace/trace_event_perf.c p_event->attr.probe_offset, is_retprobe); attr 304 kernel/trace/trace_event_perf.c if (!p_event->attr.uprobe_path) attr 307 kernel/trace/trace_event_perf.c path = strndup_user(u64_to_user_ptr(p_event->attr.uprobe_path), attr 318 kernel/trace/trace_event_perf.c tp_event = create_local_trace_uprobe(path, p_event->attr.probe_offset, attr 1050 kernel/trace/trace_selftest.c static const struct sched_attr attr = { attr 1058 kernel/trace/trace_selftest.c sched_setattr(current, &attr); attr 1245 kernel/trace/trace_uprobe.c event->parent || event->attr.enable_on_exec || attr 5349 kernel/workqueue.c static ssize_t per_cpu_show(struct device *dev, struct device_attribute *attr, attr 5359 kernel/workqueue.c struct device_attribute *attr, char *buf) attr 5367 kernel/workqueue.c struct device_attribute *attr, const char *buf, attr 5382 kernel/workqueue.c &dev_attr_per_cpu.attr, attr 5383 kernel/workqueue.c &dev_attr_max_active.attr, attr 5389 kernel/workqueue.c struct device_attribute *attr, char *buf) attr 5410 kernel/workqueue.c static ssize_t wq_nice_show(struct device *dev, struct device_attribute *attr, attr 5438 kernel/workqueue.c static ssize_t wq_nice_store(struct device *dev, struct device_attribute *attr, attr 5464 kernel/workqueue.c struct device_attribute *attr, char *buf) attr 5477 kernel/workqueue.c struct device_attribute *attr, attr 5500 kernel/workqueue.c static ssize_t wq_numa_show(struct device *dev, struct device_attribute *attr, attr 5514 kernel/workqueue.c static ssize_t wq_numa_store(struct device *dev, struct device_attribute *attr, attr 5553 kernel/workqueue.c struct device_attribute *attr, char *buf) attr 5566 kernel/workqueue.c struct device_attribute *attr, const char *buf, size_t count) attr 5656 kernel/workqueue.c struct device_attribute *attr; attr 5658 kernel/workqueue.c for (attr = wq_sysfs_unbound_attrs; attr->attr.name; attr++) { attr 5659 kernel/workqueue.c ret = device_create_file(&wq_dev->dev, attr); attr 18 lib/fault-inject.c int setup_fault_attr(struct fault_attr *attr, char *str) attr 33 lib/fault-inject.c attr->probability = probability; attr 34 lib/fault-inject.c attr->interval = interval; attr 35 lib/fault-inject.c atomic_set(&attr->times, times); attr 36 lib/fault-inject.c atomic_set(&attr->space, space); attr 42 lib/fault-inject.c static void fail_dump(struct fault_attr *attr) attr 44 lib/fault-inject.c if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { attr 47 lib/fault-inject.c "space %d, times %d\n", attr->dname, attr 48 lib/fault-inject.c attr->interval, attr->probability, attr 49 lib/fault-inject.c atomic_read(&attr->space), attr 50 lib/fault-inject.c atomic_read(&attr->times)); attr 51 lib/fault-inject.c if (attr->verbose > 1) attr 58 lib/fault-inject.c static bool fail_task(struct fault_attr *attr, struct task_struct *task) attr 67 lib/fault-inject.c static bool fail_stacktrace(struct fault_attr *attr) attr 69 lib/fault-inject.c int depth = attr->stacktrace_depth; attr 72 lib/fault-inject.c bool found = (attr->require_start == 0 && attr->require_end == ULONG_MAX); attr 79 lib/fault-inject.c if (attr->reject_start <= entries[n] && attr 80 lib/fault-inject.c entries[n] < attr->reject_end) attr 82 lib/fault-inject.c if (attr->require_start <= entries[n] && attr 83 lib/fault-inject.c entries[n] < attr->require_end) attr 91 lib/fault-inject.c static inline bool fail_stacktrace(struct fault_attr *attr) attr 103 lib/fault-inject.c bool should_fail(struct fault_attr *attr, ssize_t size) attr 117 lib/fault-inject.c if (attr->probability == 0) attr 120 lib/fault-inject.c if (attr->task_filter && !fail_task(attr, current)) attr 123 lib/fault-inject.c if (atomic_read(&attr->times) == 0) attr 126 lib/fault-inject.c if (atomic_read(&attr->space) > size) { attr 127 lib/fault-inject.c atomic_sub(size, &attr->space); attr 131 lib/fault-inject.c if (attr->interval > 1) { attr 132 lib/fault-inject.c attr->count++; attr 133 lib/fault-inject.c if (attr->count % attr->interval) attr 137 lib/fault-inject.c if (attr->probability <= prandom_u32() % 100) attr 140 lib/fault-inject.c if (!fail_stacktrace(attr)) attr 144 lib/fault-inject.c fail_dump(attr); attr 146 lib/fault-inject.c if (atomic_read(&attr->times) != -1) attr 147 lib/fault-inject.c atomic_dec_not_zero(&attr->times); attr 198 lib/fault-inject.c struct dentry *parent, struct fault_attr *attr) attr 207 lib/fault-inject.c debugfs_create_ul("probability", mode, dir, &attr->probability); attr 208 lib/fault-inject.c debugfs_create_ul("interval", mode, dir, &attr->interval); attr 209 lib/fault-inject.c debugfs_create_atomic_t("times", mode, dir, &attr->times); attr 210 lib/fault-inject.c debugfs_create_atomic_t("space", mode, dir, &attr->space); attr 211 lib/fault-inject.c debugfs_create_ul("verbose", mode, dir, &attr->verbose); attr 213 lib/fault-inject.c &attr->ratelimit_state.interval); attr 215 lib/fault-inject.c &attr->ratelimit_state.burst); attr 216 lib/fault-inject.c debugfs_create_bool("task-filter", mode, dir, &attr->task_filter); attr 220 lib/fault-inject.c &attr->stacktrace_depth); attr 221 lib/fault-inject.c debugfs_create_ul("require-start", mode, dir, &attr->require_start); attr 222 lib/fault-inject.c debugfs_create_ul("require-end", mode, dir, &attr->require_end); attr 223 lib/fault-inject.c debugfs_create_ul("reject-start", mode, dir, &attr->reject_start); attr 224 lib/fault-inject.c debugfs_create_ul("reject-end", mode, dir, &attr->reject_end); attr 227 lib/fault-inject.c attr->dname = dget(dir); attr 69 lib/kobject.c struct attribute *attr; attr 74 lib/kobject.c for (i = 0; (attr = t->default_attrs[i]) != NULL; i++) { attr 75 lib/kobject.c error = sysfs_create_file(kobj, attr); attr 822 lib/kobject.c static ssize_t kobj_attr_show(struct kobject *kobj, struct attribute *attr, attr 828 lib/kobject.c kattr = container_of(attr, struct kobj_attribute, attr); attr 834 lib/kobject.c static ssize_t kobj_attr_store(struct kobject *kobj, struct attribute *attr, attr 840 lib/kobject.c kattr = container_of(attr, struct kobj_attribute, attr); attr 198 lib/test_firmware.c struct device_attribute *attr, attr 226 lib/test_firmware.c struct device_attribute *attr, attr 269 lib/test_firmware.c struct device_attribute *attr, attr 368 lib/test_firmware.c struct device_attribute *attr, attr 376 lib/test_firmware.c struct device_attribute *attr, attr 398 lib/test_firmware.c struct device_attribute *attr, attr 406 lib/test_firmware.c struct device_attribute *attr, attr 415 lib/test_firmware.c struct device_attribute *attr, attr 423 lib/test_firmware.c struct device_attribute *attr, attr 437 lib/test_firmware.c struct device_attribute *attr, attr 445 lib/test_firmware.c struct device_attribute *attr, attr 453 lib/test_firmware.c struct device_attribute *attr, attr 461 lib/test_firmware.c struct device_attribute *attr, attr 469 lib/test_firmware.c struct device_attribute *attr, attr 478 lib/test_firmware.c struct device_attribute *attr, attr 519 lib/test_firmware.c struct device_attribute *attr, attr 562 lib/test_firmware.c struct device_attribute *attr, attr 658 lib/test_firmware.c struct device_attribute *attr, attr 755 lib/test_firmware.c struct device_attribute *attr, attr 828 lib/test_firmware.c struct device_attribute *attr, attr 836 lib/test_firmware.c struct device_attribute *attr, attr 845 lib/test_firmware.c struct device_attribute *attr, attr 889 lib/test_firmware.c #define TEST_FW_DEV_ATTR(name) &dev_attr_##name.attr attr 460 lib/test_kmod.c struct device_attribute *attr, attr 565 lib/test_kmod.c struct device_attribute *attr, attr 653 lib/test_kmod.c struct device_attribute *attr, attr 688 lib/test_kmod.c struct device_attribute *attr, attr 700 lib/test_kmod.c struct device_attribute *attr, attr 719 lib/test_kmod.c struct device_attribute *attr, attr 846 lib/test_kmod.c struct device_attribute *attr, attr 983 lib/test_kmod.c struct device_attribute *attr, attr 994 lib/test_kmod.c struct device_attribute *attr, attr 1006 lib/test_kmod.c struct device_attribute *attr, attr 1017 lib/test_kmod.c struct device_attribute *attr, attr 1030 lib/test_kmod.c struct device_attribute *attr, attr 1041 lib/test_kmod.c struct device_attribute *attr, attr 1051 lib/test_kmod.c #define TEST_KMOD_DEV_ATTR(name) &dev_attr_##name.attr attr 136 mm/backing-dev.c struct device_attribute *attr, attr 156 mm/backing-dev.c struct device_attribute *attr, char *page) \ attr 167 mm/backing-dev.c struct device_attribute *attr, const char *buf, size_t count) attr 186 mm/backing-dev.c struct device_attribute *attr, const char *buf, size_t count) attr 205 mm/backing-dev.c struct device_attribute *attr, attr 216 mm/backing-dev.c &dev_attr_read_ahead_kb.attr, attr 217 mm/backing-dev.c &dev_attr_min_ratio.attr, attr 218 mm/backing-dev.c &dev_attr_max_ratio.attr, attr 219 mm/backing-dev.c &dev_attr_stable_pages_required.attr, attr 2468 mm/compaction.c struct device_attribute *attr, attr 65 mm/dmapool.c show_pools(struct device *dev, struct device_attribute *attr, char *buf) attr 8 mm/failslab.c struct fault_attr attr; attr 12 mm/failslab.c .attr = FAULT_ATTR_INITIALIZER, attr 33 mm/failslab.c return should_fail(&failslab.attr, s->object_size); attr 38 mm/failslab.c return setup_fault_attr(&failslab.attr, str); attr 48 mm/failslab.c dir = fault_create_debugfs_attr("failslab", NULL, &failslab.attr); attr 164 mm/huge_memory.c struct kobj_attribute *attr, char *buf) attr 175 mm/huge_memory.c struct kobj_attribute *attr, attr 203 mm/huge_memory.c struct kobj_attribute *attr, char *buf, attr 211 mm/huge_memory.c struct kobj_attribute *attr, attr 233 mm/huge_memory.c struct kobj_attribute *attr, char *buf) attr 247 mm/huge_memory.c struct kobj_attribute *attr, attr 284 mm/huge_memory.c struct kobj_attribute *attr, char *buf) attr 286 mm/huge_memory.c return single_hugepage_flag_show(kobj, attr, buf, attr 290 mm/huge_memory.c struct kobj_attribute *attr, const char *buf, size_t count) attr 292 mm/huge_memory.c return single_hugepage_flag_store(kobj, attr, buf, count, attr 299 mm/huge_memory.c struct kobj_attribute *attr, char *buf) attr 308 mm/huge_memory.c struct kobj_attribute *attr, char *buf) attr 310 mm/huge_memory.c return single_hugepage_flag_show(kobj, attr, buf, attr 314 mm/huge_memory.c struct kobj_attribute *attr, attr 317 mm/huge_memory.c return single_hugepage_flag_store(kobj, attr, buf, count, attr 325 mm/huge_memory.c &enabled_attr.attr, attr 326 mm/huge_memory.c &defrag_attr.attr, attr 327 mm/huge_memory.c &use_zero_page_attr.attr, attr 328 mm/huge_memory.c &hpage_pmd_size_attr.attr, attr 330 mm/huge_memory.c &shmem_enabled_attr.attr, attr 333 mm/huge_memory.c &debug_cow_attr.attr, attr 2579 mm/hugetlb.c struct kobj_attribute *attr, char *buf) attr 2645 mm/hugetlb.c struct kobj_attribute *attr, char *buf) attr 2647 mm/hugetlb.c return nr_hugepages_show_common(kobj, attr, buf); attr 2651 mm/hugetlb.c struct kobj_attribute *attr, const char *buf, size_t len) attr 2664 mm/hugetlb.c struct kobj_attribute *attr, char *buf) attr 2666 mm/hugetlb.c return nr_hugepages_show_common(kobj, attr, buf); attr 2670 mm/hugetlb.c struct kobj_attribute *attr, const char *buf, size_t len) attr 2679 mm/hugetlb.c struct kobj_attribute *attr, char *buf) attr 2686 mm/hugetlb.c struct kobj_attribute *attr, const char *buf, size_t count) attr 2708 mm/hugetlb.c struct kobj_attribute *attr, char *buf) attr 2725 mm/hugetlb.c struct kobj_attribute *attr, char *buf) attr 2733 mm/hugetlb.c struct kobj_attribute *attr, char *buf) attr 2750 mm/hugetlb.c &nr_hugepages_attr.attr, attr 2751 mm/hugetlb.c &nr_overcommit_hugepages_attr.attr, attr 2752 mm/hugetlb.c &free_hugepages_attr.attr, attr 2753 mm/hugetlb.c &resv_hugepages_attr.attr, attr 2754 mm/hugetlb.c &surplus_hugepages_attr.attr, attr 2756 mm/hugetlb.c &nr_hugepages_mempolicy_attr.attr, attr 2819 mm/hugetlb.c &nr_hugepages_attr.attr, attr 2820 mm/hugetlb.c &free_hugepages_attr.attr, attr 2821 mm/hugetlb.c &surplus_hugepages_attr.attr, attr 118 mm/khugepaged.c struct kobj_attribute *attr, attr 125 mm/khugepaged.c struct kobj_attribute *attr, attr 146 mm/khugepaged.c struct kobj_attribute *attr, attr 153 mm/khugepaged.c struct kobj_attribute *attr, attr 174 mm/khugepaged.c struct kobj_attribute *attr, attr 180 mm/khugepaged.c struct kobj_attribute *attr, attr 199 mm/khugepaged.c struct kobj_attribute *attr, attr 208 mm/khugepaged.c struct kobj_attribute *attr, attr 217 mm/khugepaged.c struct kobj_attribute *attr, char *buf) attr 219 mm/khugepaged.c return single_hugepage_flag_show(kobj, attr, buf, attr 223 mm/khugepaged.c struct kobj_attribute *attr, attr 226 mm/khugepaged.c return single_hugepage_flag_store(kobj, attr, buf, count, attr 242 mm/khugepaged.c struct kobj_attribute *attr, attr 248 mm/khugepaged.c struct kobj_attribute *attr, attr 267 mm/khugepaged.c struct kobj_attribute *attr, attr 274 mm/khugepaged.c struct kobj_attribute *attr, attr 294 mm/khugepaged.c &khugepaged_defrag_attr.attr, attr 295 mm/khugepaged.c &khugepaged_max_ptes_none_attr.attr, attr 296 mm/khugepaged.c &pages_to_scan_attr.attr, attr 297 mm/khugepaged.c &pages_collapsed_attr.attr, attr 298 mm/khugepaged.c &full_scans_attr.attr, attr 299 mm/khugepaged.c &scan_sleep_millisecs_attr.attr, attr 300 mm/khugepaged.c &alloc_sleep_millisecs_attr.attr, attr 301 mm/khugepaged.c &khugepaged_max_ptes_swap_attr.attr, attr 2854 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 2860 mm/ksm.c struct kobj_attribute *attr, attr 2878 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 2884 mm/ksm.c struct kobj_attribute *attr, attr 2900 mm/ksm.c static ssize_t run_show(struct kobject *kobj, struct kobj_attribute *attr, attr 2906 mm/ksm.c static ssize_t run_store(struct kobject *kobj, struct kobj_attribute *attr, attr 2950 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 2956 mm/ksm.c struct kobj_attribute *attr, attr 3007 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3012 mm/ksm.c struct kobj_attribute *attr, attr 3029 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3035 mm/ksm.c struct kobj_attribute *attr, attr 3070 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3077 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3084 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3091 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3108 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3115 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3123 mm/ksm.c struct kobj_attribute *attr, attr 3131 mm/ksm.c struct kobj_attribute *attr, attr 3148 mm/ksm.c struct kobj_attribute *attr, char *buf) attr 3155 mm/ksm.c &sleep_millisecs_attr.attr, attr 3156 mm/ksm.c &pages_to_scan_attr.attr, attr 3157 mm/ksm.c &run_attr.attr, attr 3158 mm/ksm.c &pages_shared_attr.attr, attr 3159 mm/ksm.c &pages_sharing_attr.attr, attr 3160 mm/ksm.c &pages_unshared_attr.attr, attr 3161 mm/ksm.c &pages_volatile_attr.attr, attr 3162 mm/ksm.c &full_scans_attr.attr, attr 3164 mm/ksm.c &merge_across_nodes_attr.attr, attr 3166 mm/ksm.c &max_page_sharing_attr.attr, attr 3167 mm/ksm.c &stable_node_chains_attr.attr, attr 3168 mm/ksm.c &stable_node_dups_attr.attr, attr 3169 mm/ksm.c &stable_node_chains_prune_millisecs_attr.attr, attr 3170 mm/ksm.c &use_zero_pages_attr.attr, attr 3322 mm/page_alloc.c struct fault_attr attr; attr 3328 mm/page_alloc.c .attr = FAULT_ATTR_INITIALIZER, attr 3336 mm/page_alloc.c return setup_fault_attr(&fail_page_alloc.attr, str); attr 3352 mm/page_alloc.c return should_fail(&fail_page_alloc.attr, 1 << order); attr 3363 mm/page_alloc.c &fail_page_alloc.attr); attr 122 mm/page_idle.c struct bin_attribute *attr, char *buf, attr 167 mm/page_idle.c struct bin_attribute *attr, char *buf, attr 1017 mm/shmem.c static int shmem_setattr(struct dentry *dentry, struct iattr *attr) attr 1024 mm/shmem.c error = setattr_prepare(dentry, attr); attr 1028 mm/shmem.c if (S_ISREG(inode->i_mode) && (attr->ia_valid & ATTR_SIZE)) { attr 1030 mm/shmem.c loff_t newsize = attr->ia_size; attr 1078 mm/shmem.c setattr_copy(inode, attr); attr 1079 mm/shmem.c if (attr->ia_valid & ATTR_MODE) attr 3937 mm/shmem.c struct kobj_attribute *attr, char *buf) attr 3960 mm/shmem.c struct kobj_attribute *attr, const char *buf, size_t count) attr 4926 mm/slub.c #define to_slab_attr(n) container_of(n, struct slab_attribute, attr) attr 4930 mm/slub.c struct attribute attr; attr 5442 mm/slub.c &slab_size_attr.attr, attr 5443 mm/slub.c &object_size_attr.attr, attr 5444 mm/slub.c &objs_per_slab_attr.attr, attr 5445 mm/slub.c &order_attr.attr, attr 5446 mm/slub.c &min_partial_attr.attr, attr 5447 mm/slub.c &cpu_partial_attr.attr, attr 5448 mm/slub.c &objects_attr.attr, attr 5449 mm/slub.c &objects_partial_attr.attr, attr 5450 mm/slub.c &partial_attr.attr, attr 5451 mm/slub.c &cpu_slabs_attr.attr, attr 5452 mm/slub.c &ctor_attr.attr, attr 5453 mm/slub.c &aliases_attr.attr, attr 5454 mm/slub.c &align_attr.attr, attr 5455 mm/slub.c &hwcache_align_attr.attr, attr 5456 mm/slub.c &reclaim_account_attr.attr, attr 5457 mm/slub.c &destroy_by_rcu_attr.attr, attr 5458 mm/slub.c &shrink_attr.attr, attr 5459 mm/slub.c &slabs_cpu_partial_attr.attr, attr 5461 mm/slub.c &total_objects_attr.attr, attr 5462 mm/slub.c &slabs_attr.attr, attr 5463 mm/slub.c &sanity_checks_attr.attr, attr 5464 mm/slub.c &trace_attr.attr, attr 5465 mm/slub.c &red_zone_attr.attr, attr 5466 mm/slub.c &poison_attr.attr, attr 5467 mm/slub.c &store_user_attr.attr, attr 5468 mm/slub.c &validate_attr.attr, attr 5469 mm/slub.c &alloc_calls_attr.attr, attr 5470 mm/slub.c &free_calls_attr.attr, attr 5473 mm/slub.c &cache_dma_attr.attr, attr 5476 mm/slub.c &remote_node_defrag_ratio_attr.attr, attr 5479 mm/slub.c &alloc_fastpath_attr.attr, attr 5480 mm/slub.c &alloc_slowpath_attr.attr, attr 5481 mm/slub.c &free_fastpath_attr.attr, attr 5482 mm/slub.c &free_slowpath_attr.attr, attr 5483 mm/slub.c &free_frozen_attr.attr, attr 5484 mm/slub.c &free_add_partial_attr.attr, attr 5485 mm/slub.c &free_remove_partial_attr.attr, attr 5486 mm/slub.c &alloc_from_partial_attr.attr, attr 5487 mm/slub.c &alloc_slab_attr.attr, attr 5488 mm/slub.c &alloc_refill_attr.attr, attr 5489 mm/slub.c &alloc_node_mismatch_attr.attr, attr 5490 mm/slub.c &free_slab_attr.attr, attr 5491 mm/slub.c &cpuslab_flush_attr.attr, attr 5492 mm/slub.c &deactivate_full_attr.attr, attr 5493 mm/slub.c &deactivate_empty_attr.attr, attr 5494 mm/slub.c &deactivate_to_head_attr.attr, attr 5495 mm/slub.c &deactivate_to_tail_attr.attr, attr 5496 mm/slub.c &deactivate_remote_frees_attr.attr, attr 5497 mm/slub.c &deactivate_bypass_attr.attr, attr 5498 mm/slub.c &order_fallback_attr.attr, attr 5499 mm/slub.c &cmpxchg_double_fail_attr.attr, attr 5500 mm/slub.c &cmpxchg_double_cpu_fail_attr.attr, attr 5501 mm/slub.c &cpu_partial_alloc_attr.attr, attr 5502 mm/slub.c &cpu_partial_free_attr.attr, attr 5503 mm/slub.c &cpu_partial_node_attr.attr, attr 5504 mm/slub.c &cpu_partial_drain_attr.attr, attr 5507 mm/slub.c &failslab_attr.attr, attr 5509 mm/slub.c &usersize_attr.attr, attr 5519 mm/slub.c struct attribute *attr, attr 5526 mm/slub.c attribute = to_slab_attr(attr); attr 5538 mm/slub.c struct attribute *attr, attr 5545 mm/slub.c attribute = to_slab_attr(attr); attr 5607 mm/slub.c struct slab_attribute *attr = to_slab_attr(slab_attrs[i]); attr 5610 mm/slub.c if (!attr || !attr->store || !attr->show) attr 5633 mm/slub.c len = attr->show(root_cache, buf); attr 5635 mm/slub.c attr->store(s, buf, len); attr 791 mm/swap_state.c struct kobj_attribute *attr, char *buf) attr 796 mm/swap_state.c struct kobj_attribute *attr, attr 813 mm/swap_state.c &vma_ra_enabled_attr.attr, attr 137 net/802/garp.c static int garp_attr_cmp(const struct garp_attr *attr, attr 140 net/802/garp.c if (attr->type != type) attr 141 net/802/garp.c return attr->type - type; attr 142 net/802/garp.c if (attr->dlen != len) attr 143 net/802/garp.c return attr->dlen - len; attr 144 net/802/garp.c return memcmp(attr->data, data, len); attr 151 net/802/garp.c struct garp_attr *attr; attr 155 net/802/garp.c attr = rb_entry(parent, struct garp_attr, node); attr 156 net/802/garp.c d = garp_attr_cmp(attr, data, len, type); attr 162 net/802/garp.c return attr; attr 171 net/802/garp.c struct garp_attr *attr; attr 176 net/802/garp.c attr = rb_entry(parent, struct garp_attr, node); attr 177 net/802/garp.c d = garp_attr_cmp(attr, data, len, type); attr 184 net/802/garp.c return attr; attr 187 net/802/garp.c attr = kmalloc(sizeof(*attr) + len, GFP_ATOMIC); attr 188 net/802/garp.c if (!attr) attr 189 net/802/garp.c return attr; attr 190 net/802/garp.c attr->state = GARP_APPLICANT_VO; attr 191 net/802/garp.c attr->type = type; attr 192 net/802/garp.c attr->dlen = len; attr 193 net/802/garp.c memcpy(attr->data, data, len); attr 195 net/802/garp.c rb_link_node(&attr->node, parent, p); attr 196 net/802/garp.c rb_insert_color(&attr->node, &app->gid); attr 197 net/802/garp.c return attr; attr 200 net/802/garp.c static void garp_attr_destroy(struct garp_applicant *app, struct garp_attr *attr) attr 202 net/802/garp.c rb_erase(&attr->node, &app->gid); attr 203 net/802/garp.c kfree(attr); attr 275 net/802/garp.c const struct garp_attr *attr, attr 288 net/802/garp.c if (garp_cb(app->pdu)->cur_type != attr->type) { attr 292 net/802/garp.c if (garp_pdu_append_msg(app, attr->type) < 0) attr 296 net/802/garp.c len = sizeof(*ga) + attr->dlen; attr 302 net/802/garp.c memcpy(ga->data, attr->data, attr->dlen); attr 311 net/802/garp.c struct garp_attr *attr, enum garp_event event) attr 315 net/802/garp.c state = garp_applicant_state_table[attr->state][event].state; attr 319 net/802/garp.c switch (garp_applicant_state_table[attr->state][event].action) { attr 325 net/802/garp.c if (garp_pdu_append_attr(app, attr, GARP_JOIN_IN) < 0) attr 329 net/802/garp.c garp_pdu_append_attr(app, attr, GARP_LEAVE_EMPTY); attr 332 net/802/garp.c garp_attr_destroy(app, attr); attr 338 net/802/garp.c attr->state = state; attr 347 net/802/garp.c struct garp_attr *attr; attr 350 net/802/garp.c attr = garp_attr_create(app, data, len, type); attr 351 net/802/garp.c if (!attr) { attr 355 net/802/garp.c garp_attr_event(app, attr, GARP_EVENT_REQ_JOIN); attr 367 net/802/garp.c struct garp_attr *attr; attr 370 net/802/garp.c attr = garp_attr_lookup(app, data, len, type); attr 371 net/802/garp.c if (!attr) { attr 375 net/802/garp.c garp_attr_event(app, attr, GARP_EVENT_REQ_LEAVE); attr 383 net/802/garp.c struct garp_attr *attr; attr 388 net/802/garp.c attr = rb_entry(node, struct garp_attr, node); attr 389 net/802/garp.c garp_attr_event(app, attr, event); attr 429 net/802/garp.c struct garp_attr *attr; attr 471 net/802/garp.c attr = garp_attr_lookup(app, ga->data, dlen, attrtype); attr 472 net/802/garp.c if (attr == NULL) attr 474 net/802/garp.c garp_attr_event(app, attr, event); attr 226 net/802/mrp.c static int mrp_attr_cmp(const struct mrp_attr *attr, attr 229 net/802/mrp.c if (attr->type != type) attr 230 net/802/mrp.c return attr->type - type; attr 231 net/802/mrp.c if (attr->len != len) attr 232 net/802/mrp.c return attr->len - len; attr 233 net/802/mrp.c return memcmp(attr->value, value, len); attr 240 net/802/mrp.c struct mrp_attr *attr; attr 244 net/802/mrp.c attr = rb_entry(parent, struct mrp_attr, node); attr 245 net/802/mrp.c d = mrp_attr_cmp(attr, value, len, type); attr 251 net/802/mrp.c return attr; attr 260 net/802/mrp.c struct mrp_attr *attr; attr 265 net/802/mrp.c attr = rb_entry(parent, struct mrp_attr, node); attr 266 net/802/mrp.c d = mrp_attr_cmp(attr, value, len, type); attr 273 net/802/mrp.c return attr; attr 276 net/802/mrp.c attr = kmalloc(sizeof(*attr) + len, GFP_ATOMIC); attr 277 net/802/mrp.c if (!attr) attr 278 net/802/mrp.c return attr; attr 279 net/802/mrp.c attr->state = MRP_APPLICANT_VO; attr 280 net/802/mrp.c attr->type = type; attr 281 net/802/mrp.c attr->len = len; attr 282 net/802/mrp.c memcpy(attr->value, value, len); attr 284 net/802/mrp.c rb_link_node(&attr->node, parent, p); attr 285 net/802/mrp.c rb_insert_color(&attr->node, &app->mad); attr 286 net/802/mrp.c return attr; attr 289 net/802/mrp.c static void mrp_attr_destroy(struct mrp_applicant *app, struct mrp_attr *attr) attr 291 net/802/mrp.c rb_erase(&attr->node, &app->mad); attr 292 net/802/mrp.c kfree(attr); attr 391 net/802/mrp.c const struct mrp_attr *attr, attr 409 net/802/mrp.c mrp_cb(app->pdu)->mh->attrtype != attr->type || attr 410 net/802/mrp.c mrp_cb(app->pdu)->mh->attrlen != attr->len) { attr 411 net/802/mrp.c if (mrp_pdu_append_msg_hdr(app, attr->type, attr->len) < 0) attr 420 net/802/mrp.c memcmp(mrp_cb(app->pdu)->attrvalue, attr->value, attr->len)) { attr 421 net/802/mrp.c if (mrp_pdu_append_vecattr_hdr(app, attr->value, attr->len) < 0) attr 458 net/802/mrp.c mrp_attrvalue_inc(mrp_cb(app->pdu)->attrvalue, attr->len); attr 468 net/802/mrp.c struct mrp_attr *attr, enum mrp_event event) attr 472 net/802/mrp.c state = mrp_applicant_state_table[attr->state][event]; attr 483 net/802/mrp.c switch (mrp_tx_action_table[attr->state]) { attr 490 net/802/mrp.c app, attr, MRP_VECATTR_EVENT_NEW) < 0) attr 495 net/802/mrp.c app, attr, MRP_VECATTR_EVENT_JOIN_IN) < 0) attr 500 net/802/mrp.c app, attr, MRP_VECATTR_EVENT_LV) < 0) attr 506 net/802/mrp.c mrp_attr_destroy(app, attr); attr 513 net/802/mrp.c attr->state = state; attr 523 net/802/mrp.c struct mrp_attr *attr; attr 530 net/802/mrp.c attr = mrp_attr_create(app, value, len, type); attr 531 net/802/mrp.c if (!attr) { attr 535 net/802/mrp.c mrp_attr_event(app, attr, MRP_EVENT_JOIN); attr 548 net/802/mrp.c struct mrp_attr *attr; attr 555 net/802/mrp.c attr = mrp_attr_lookup(app, value, len, type); attr 556 net/802/mrp.c if (!attr) { attr 560 net/802/mrp.c mrp_attr_event(app, attr, MRP_EVENT_LV); attr 568 net/802/mrp.c struct mrp_attr *attr; attr 573 net/802/mrp.c attr = rb_entry(node, struct mrp_attr, node); attr 574 net/802/mrp.c mrp_attr_event(app, attr, event); attr 634 net/802/mrp.c struct mrp_attr *attr; attr 637 net/802/mrp.c attr = mrp_attr_lookup(app, mrp_cb(skb)->attrvalue, attr 640 net/802/mrp.c if (attr == NULL) attr 666 net/802/mrp.c mrp_attr_event(app, attr, event); attr 31 net/8021q/vlan_netlink.c static inline int vlan_validate_qos_map(struct nlattr *attr) attr 33 net/8021q/vlan_netlink.c if (!attr) attr 35 net/8021q/vlan_netlink.c return nla_validate_nested_deprecated(attr, IFLA_VLAN_QOS_MAX, attr 110 net/8021q/vlan_netlink.c struct nlattr *attr; attr 120 net/8021q/vlan_netlink.c nla_for_each_nested(attr, data[IFLA_VLAN_INGRESS_QOS], rem) { attr 121 net/8021q/vlan_netlink.c m = nla_data(attr); attr 126 net/8021q/vlan_netlink.c nla_for_each_nested(attr, data[IFLA_VLAN_EGRESS_QOS], rem) { attr 127 net/8021q/vlan_netlink.c m = nla_data(attr); attr 527 net/9p/trans_virtio.c struct device_attribute *attr, char *buf) attr 601 net/9p/trans_virtio.c err = sysfs_create_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); attr 720 net/9p/trans_virtio.c sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); attr 15 net/atm/atm_sysfs.c struct device_attribute *attr, char *buf) attr 23 net/atm/atm_sysfs.c struct device_attribute *attr, char *buf) attr 31 net/atm/atm_sysfs.c struct device_attribute *attr, char *buf) attr 60 net/atm/atm_sysfs.c struct device_attribute *attr, char *buf) attr 68 net/atm/atm_sysfs.c struct device_attribute *attr, char *buf) attr 77 net/atm/atm_sysfs.c struct device_attribute *attr, char *buf) attr 166 net/batman-adv/debugfs.c struct attribute attr; attr 200 net/batman-adv/debugfs.c .attr = { \ attr 268 net/batman-adv/debugfs.c .attr = { \ attr 299 net/batman-adv/debugfs.c debugfs_create_file(((*bat_debug)->attr).name, attr 300 net/batman-adv/debugfs.c S_IFREG | ((*bat_debug)->attr).mode, attr 330 net/batman-adv/debugfs.c debugfs_create_file(((*bat_debug)->attr).name, attr 331 net/batman-adv/debugfs.c S_IFREG | ((*bat_debug)->attr).mode, attr 393 net/batman-adv/debugfs.c debugfs_create_file(((*bat_debug)->attr).name, attr 394 net/batman-adv/debugfs.c S_IFREG | ((*bat_debug)->attr).mode, attr 165 net/batman-adv/netlink.c struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype); attr 167 net/batman-adv/netlink.c return (attr && nla_len(attr) == sizeof(u32)) ? nla_get_u32(attr) : 0; attr 201 net/batman-adv/netlink.c static int batadv_netlink_set_mesh_ap_isolation(struct nlattr *attr, attr 210 net/batman-adv/netlink.c atomic_set(&vlan->ap_isolation, !!nla_get_u8(attr)); attr 443 net/batman-adv/netlink.c struct nlattr *attr; attr 446 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_AGGREGATED_OGMS_ENABLED]; attr 448 net/batman-adv/netlink.c atomic_set(&bat_priv->aggregated_ogms, !!nla_get_u8(attr)); attr 452 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_AP_ISOLATION_ENABLED]; attr 454 net/batman-adv/netlink.c batadv_netlink_set_mesh_ap_isolation(attr, bat_priv); attr 458 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_ISOLATION_MARK]; attr 460 net/batman-adv/netlink.c bat_priv->isolation_mark = nla_get_u32(attr); attr 464 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_ISOLATION_MASK]; attr 466 net/batman-adv/netlink.c bat_priv->isolation_mark_mask = nla_get_u32(attr); attr 470 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_BONDING_ENABLED]; attr 472 net/batman-adv/netlink.c atomic_set(&bat_priv->bonding, !!nla_get_u8(attr)); attr 477 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED]; attr 480 net/batman-adv/netlink.c !!nla_get_u8(attr)); attr 487 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED]; attr 490 net/batman-adv/netlink.c !!nla_get_u8(attr)); attr 496 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_FRAGMENTATION_ENABLED]; attr 498 net/batman-adv/netlink.c atomic_set(&bat_priv->fragmentation, !!nla_get_u8(attr)); attr 503 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_GW_BANDWIDTH_DOWN]; attr 505 net/batman-adv/netlink.c atomic_set(&bat_priv->gw.bandwidth_down, nla_get_u32(attr)); attr 510 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_GW_BANDWIDTH_UP]; attr 512 net/batman-adv/netlink.c atomic_set(&bat_priv->gw.bandwidth_up, nla_get_u32(attr)); attr 519 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_GW_MODE]; attr 520 net/batman-adv/netlink.c gw_mode = nla_get_u8(attr); attr 555 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_GW_SEL_CLASS]; attr 556 net/batman-adv/netlink.c sel_class = nla_get_u32(attr); attr 568 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_HOP_PENALTY]; attr 570 net/batman-adv/netlink.c atomic_set(&bat_priv->hop_penalty, nla_get_u8(attr)); attr 575 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_LOG_LEVEL]; attr 578 net/batman-adv/netlink.c nla_get_u32(attr) & BATADV_DBG_ALL); attr 584 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED]; attr 586 net/batman-adv/netlink.c atomic_set(&bat_priv->multicast_mode, !nla_get_u8(attr)); attr 590 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_MULTICAST_FANOUT]; attr 592 net/batman-adv/netlink.c atomic_set(&bat_priv->multicast_fanout, nla_get_u32(attr)); attr 598 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_NETWORK_CODING_ENABLED]; attr 600 net/batman-adv/netlink.c atomic_set(&bat_priv->network_coding, !!nla_get_u8(attr)); attr 608 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_ORIG_INTERVAL]; attr 609 net/batman-adv/netlink.c orig_interval = nla_get_u32(attr); attr 925 net/batman-adv/netlink.c struct nlattr *attr; attr 928 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_ELP_INTERVAL]; attr 930 net/batman-adv/netlink.c atomic_set(&hard_iface->bat_v.elp_interval, nla_get_u32(attr)); attr 934 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_THROUGHPUT_OVERRIDE]; attr 937 net/batman-adv/netlink.c nla_get_u32(attr)); attr 1124 net/batman-adv/netlink.c struct nlattr *attr; attr 1127 net/batman-adv/netlink.c attr = info->attrs[BATADV_ATTR_AP_ISOLATION_ENABLED]; attr 1129 net/batman-adv/netlink.c atomic_set(&vlan->ap_isolation, !!nla_get_u8(attr)); attr 50 net/batman-adv/sysfs.c static void batadv_sysfs_deprecated(struct attribute *attr) attr 53 net/batman-adv/sysfs.c current->comm, task_pid_nr(current), attr->name); attr 121 net/batman-adv/sysfs.c .attr = {.name = __stringify(_name), \ attr 130 net/batman-adv/sysfs.c .attr = {.name = __stringify(_name), \ attr 138 net/batman-adv/sysfs.c struct attribute *attr, char *buff, \ attr 145 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 146 net/batman-adv/sysfs.c length = __batadv_store_bool_attr(buff, count, _post_func, attr,\ attr 156 net/batman-adv/sysfs.c struct attribute *attr, char *buff) \ attr 160 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 177 net/batman-adv/sysfs.c struct attribute *attr, char *buff, \ attr 184 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 186 net/batman-adv/sysfs.c _post_func, attr, \ attr 197 net/batman-adv/sysfs.c struct attribute *attr, char *buff) \ attr 201 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 216 net/batman-adv/sysfs.c struct attribute *attr, char *buff, \ attr 223 net/batman-adv/sysfs.c attr, &vlan->_name, \ attr 226 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 238 net/batman-adv/sysfs.c struct attribute *attr, char *buff) \ attr 247 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 261 net/batman-adv/sysfs.c struct attribute *attr, char *buff, \ attr 269 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 275 net/batman-adv/sysfs.c _post_func, attr, \ attr 291 net/batman-adv/sysfs.c struct attribute *attr, char *buff) \ attr 297 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); \ attr 320 net/batman-adv/sysfs.c const char *attr_name, atomic_t *attr, attr 346 net/batman-adv/sysfs.c if (atomic_read(attr) == enabled) attr 350 net/batman-adv/sysfs.c atomic_read(attr) == 1 ? "enabled" : "disabled", attr 355 net/batman-adv/sysfs.c atomic_set(attr, (unsigned int)enabled); attr 362 net/batman-adv/sysfs.c struct attribute *attr, attr 368 net/batman-adv/sysfs.c ret = batadv_store_bool_attr(buff, count, net_dev, attr->name, attr 381 net/batman-adv/sysfs.c atomic_t *attr) attr 406 net/batman-adv/sysfs.c if (atomic_read(attr) == uint_val) attr 413 net/batman-adv/sysfs.c attr_name, ifname, atomic_read(attr), uint_val); attr 415 net/batman-adv/sysfs.c atomic_set(attr, uint_val); attr 422 net/batman-adv/sysfs.c const struct attribute *attr, attr 430 net/batman-adv/sysfs.c attr->name, min, max, attr_store); attr 438 net/batman-adv/sysfs.c struct attribute *attr, char *buff) attr 442 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 453 net/batman-adv/sysfs.c static ssize_t batadv_show_gw_mode(struct kobject *kobj, struct attribute *attr, attr 459 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 487 net/batman-adv/sysfs.c struct attribute *attr, char *buff, attr 495 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 567 net/batman-adv/sysfs.c struct attribute *attr, char *buff) attr 571 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 587 net/batman-adv/sysfs.c struct attribute *attr, char *buff, attr 593 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 610 net/batman-adv/sysfs.c batadv_post_gw_reselect, attr, attr 620 net/batman-adv/sysfs.c struct attribute *attr, char *buff) attr 625 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 635 net/batman-adv/sysfs.c struct attribute *attr, char *buff, attr 642 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 664 net/batman-adv/sysfs.c struct attribute *attr, char *buff) attr 668 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 684 net/batman-adv/sysfs.c struct attribute *attr, char *buff, attr 692 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 818 net/batman-adv/sysfs.c &((*bat_attr)->attr)); attr 822 net/batman-adv/sysfs.c ((*bat_attr)->attr).name); attr 831 net/batman-adv/sysfs.c sysfs_remove_file(bat_priv->mesh_obj, &((*bat_attr)->attr)); attr 851 net/batman-adv/sysfs.c sysfs_remove_file(bat_priv->mesh_obj, &((*bat_attr)->attr)); attr 895 net/batman-adv/sysfs.c &((*bat_attr)->attr)); attr 899 net/batman-adv/sysfs.c ((*bat_attr)->attr).name); attr 908 net/batman-adv/sysfs.c sysfs_remove_file(vlan->kobj, &((*bat_attr)->attr)); attr 931 net/batman-adv/sysfs.c sysfs_remove_file(vlan->kobj, &((*bat_attr)->attr)); attr 942 net/batman-adv/sysfs.c struct attribute *attr, char *buff) attr 949 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 1049 net/batman-adv/sysfs.c struct attribute *attr, char *buff, attr 1055 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 1082 net/batman-adv/sysfs.c struct attribute *attr, char *buff) attr 1088 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 1131 net/batman-adv/sysfs.c struct attribute *attr, attr 1141 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 1178 net/batman-adv/sysfs.c struct attribute *attr, attr 1185 net/batman-adv/sysfs.c batadv_sysfs_deprecated(attr); attr 1243 net/batman-adv/sysfs.c err = sysfs_create_file(*hardif_obj, &((*bat_attr)->attr)); attr 1247 net/batman-adv/sysfs.c ((*bat_attr)->attr).name); attr 1256 net/batman-adv/sysfs.c sysfs_remove_file(*hardif_obj, &((*bat_attr)->attr)); attr 31 net/batman-adv/sysfs.h struct attribute attr; attr 36 net/batman-adv/sysfs.h ssize_t (*show)(struct kobject *kobj, struct attribute *attr, attr 43 net/batman-adv/sysfs.h ssize_t (*store)(struct kobject *kobj, struct attribute *attr, attr 201 net/bluetooth/rfcomm/tty.c static ssize_t show_address(struct device *tty_dev, struct device_attribute *attr, char *buf) attr 207 net/bluetooth/rfcomm/tty.c static ssize_t show_channel(struct device *tty_dev, struct device_attribute *attr, char *buf) attr 646 net/bridge/br_multicast.c struct switchdev_attr attr = { attr 653 net/bridge/br_multicast.c switchdev_port_attr_set(p->dev, &attr); attr 814 net/bridge/br_multicast.c struct switchdev_attr attr = { attr 821 net/bridge/br_multicast.c switchdev_port_attr_set(dev, &attr); attr 1139 net/bridge/br_multicast.c struct switchdev_attr attr = { attr 1146 net/bridge/br_multicast.c switchdev_port_attr_set(p->dev, &attr); attr 620 net/bridge/br_netlink.c struct nlattr *attr; attr 625 net/bridge/br_netlink.c nla_for_each_nested(attr, af_spec, rem) { attr 627 net/bridge/br_netlink.c switch (nla_type(attr)) { attr 631 net/bridge/br_netlink.c err = br_parse_vlan_tunnel_info(attr, &tinfo_curr); attr 642 net/bridge/br_netlink.c if (nla_len(attr) != sizeof(struct bridge_vlan_info)) attr 644 net/bridge/br_netlink.c vinfo_curr = nla_data(attr); attr 1507 net/bridge/br_netlink.c static size_t br_get_linkxstats_size(const struct net_device *dev, int attr) attr 1515 net/bridge/br_netlink.c switch (attr) { attr 1544 net/bridge/br_netlink.c int *prividx, int attr) attr 1554 net/bridge/br_netlink.c switch (attr) { attr 219 net/bridge/br_netlink_tunnel.c int br_parse_vlan_tunnel_info(struct nlattr *attr, attr 230 net/bridge/br_netlink_tunnel.c attr, vlan_tunnel_policy, NULL); attr 19 net/bridge/br_private_tunnel.h int br_parse_vlan_tunnel_info(struct nlattr *attr, attr 31 net/bridge/br_stp.c struct switchdev_attr attr = { attr 40 net/bridge/br_stp.c err = switchdev_port_attr_set(p->dev, &attr); attr 564 net/bridge/br_stp.c struct switchdev_attr attr = { attr 572 net/bridge/br_stp.c err = switchdev_port_attr_set(dev, &attr); attr 65 net/bridge/br_switchdev.c struct switchdev_attr attr = { attr 71 net/bridge/br_switchdev.c .attr = &attr, attr 91 net/bridge/br_switchdev.c attr.id = SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS; attr 92 net/bridge/br_switchdev.c attr.flags = SWITCHDEV_F_DEFER; attr 93 net/bridge/br_switchdev.c attr.u.brport_flags = flags; attr 95 net/bridge/br_switchdev.c err = switchdev_port_attr_set(p->dev, &attr); attr 56 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 63 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 70 net/bridge/br_sysfs_br.c static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, attr 78 net/bridge/br_sysfs_br.c struct device_attribute *attr, const char *buf, attr 85 net/bridge/br_sysfs_br.c static ssize_t max_age_show(struct device *d, struct device_attribute *attr, attr 92 net/bridge/br_sysfs_br.c static ssize_t max_age_store(struct device *d, struct device_attribute *attr, attr 100 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 112 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 120 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 135 net/bridge/br_sysfs_br.c struct device_attribute *attr, const char *buf, attr 143 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 161 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 169 net/bridge/br_sysfs_br.c static ssize_t priority_show(struct device *d, struct device_attribute *attr, attr 183 net/bridge/br_sysfs_br.c static ssize_t priority_store(struct device *d, struct device_attribute *attr, attr 190 net/bridge/br_sysfs_br.c static ssize_t root_id_show(struct device *d, struct device_attribute *attr, attr 197 net/bridge/br_sysfs_br.c static ssize_t bridge_id_show(struct device *d, struct device_attribute *attr, attr 204 net/bridge/br_sysfs_br.c static ssize_t root_port_show(struct device *d, struct device_attribute *attr, attr 212 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 219 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 226 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 235 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 242 net/bridge/br_sysfs_br.c static ssize_t tcn_timer_show(struct device *d, struct device_attribute *attr, attr 251 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 259 net/bridge/br_sysfs_br.c static ssize_t gc_timer_show(struct device *d, struct device_attribute *attr, attr 268 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 275 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 320 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 328 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 341 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 350 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 357 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 365 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 373 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 381 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 397 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 405 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 413 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 421 net/bridge/br_sysfs_br.c struct device_attribute *attr, char *buf) attr 434 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 441 net/bridge/br_sysfs_br.c static ssize_t hash_max_show(struct device *d, struct device_attribute *attr, attr 454 net/bridge/br_sysfs_br.c static ssize_t hash_max_store(struct device *d, struct device_attribute *attr, attr 462 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 471 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 479 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 493 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 501 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 514 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 522 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 536 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 544 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 558 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 566 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 581 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 589 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 604 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 612 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 627 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 635 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 650 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 658 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 674 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 684 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 693 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 703 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 716 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 724 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 737 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 745 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, char *buf) attr 758 net/bridge/br_sysfs_br.c struct device *d, struct device_attribute *attr, const char *buf, attr 767 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 775 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 783 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 791 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 799 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 807 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 815 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 823 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 831 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 839 net/bridge/br_sysfs_br.c struct device_attribute *attr, attr 848 net/bridge/br_sysfs_br.c &dev_attr_forward_delay.attr, attr 849 net/bridge/br_sysfs_br.c &dev_attr_hello_time.attr, attr 850 net/bridge/br_sysfs_br.c &dev_attr_max_age.attr, attr 851 net/bridge/br_sysfs_br.c &dev_attr_ageing_time.attr, attr 852 net/bridge/br_sysfs_br.c &dev_attr_stp_state.attr, attr 853 net/bridge/br_sysfs_br.c &dev_attr_group_fwd_mask.attr, attr 854 net/bridge/br_sysfs_br.c &dev_attr_priority.attr, attr 855 net/bridge/br_sysfs_br.c &dev_attr_bridge_id.attr, attr 856 net/bridge/br_sysfs_br.c &dev_attr_root_id.attr, attr 857 net/bridge/br_sysfs_br.c &dev_attr_root_path_cost.attr, attr 858 net/bridge/br_sysfs_br.c &dev_attr_root_port.attr, attr 859 net/bridge/br_sysfs_br.c &dev_attr_topology_change.attr, attr 860 net/bridge/br_sysfs_br.c &dev_attr_topology_change_detected.attr, attr 861 net/bridge/br_sysfs_br.c &dev_attr_hello_timer.attr, attr 862 net/bridge/br_sysfs_br.c &dev_attr_tcn_timer.attr, attr 863 net/bridge/br_sysfs_br.c &dev_attr_topology_change_timer.attr, attr 864 net/bridge/br_sysfs_br.c &dev_attr_gc_timer.attr, attr 865 net/bridge/br_sysfs_br.c &dev_attr_group_addr.attr, attr 866 net/bridge/br_sysfs_br.c &dev_attr_flush.attr, attr 867 net/bridge/br_sysfs_br.c &dev_attr_no_linklocal_learn.attr, attr 869 net/bridge/br_sysfs_br.c &dev_attr_multicast_router.attr, attr 870 net/bridge/br_sysfs_br.c &dev_attr_multicast_snooping.attr, attr 871 net/bridge/br_sysfs_br.c &dev_attr_multicast_querier.attr, attr 872 net/bridge/br_sysfs_br.c &dev_attr_multicast_query_use_ifaddr.attr, attr 873 net/bridge/br_sysfs_br.c &dev_attr_hash_elasticity.attr, attr 874 net/bridge/br_sysfs_br.c &dev_attr_hash_max.attr, attr 875 net/bridge/br_sysfs_br.c &dev_attr_multicast_last_member_count.attr, attr 876 net/bridge/br_sysfs_br.c &dev_attr_multicast_startup_query_count.attr, attr 877 net/bridge/br_sysfs_br.c &dev_attr_multicast_last_member_interval.attr, attr 878 net/bridge/br_sysfs_br.c &dev_attr_multicast_membership_interval.attr, attr 879 net/bridge/br_sysfs_br.c &dev_attr_multicast_querier_interval.attr, attr 880 net/bridge/br_sysfs_br.c &dev_attr_multicast_query_interval.attr, attr 881 net/bridge/br_sysfs_br.c &dev_attr_multicast_query_response_interval.attr, attr 882 net/bridge/br_sysfs_br.c &dev_attr_multicast_startup_query_interval.attr, attr 883 net/bridge/br_sysfs_br.c &dev_attr_multicast_stats_enabled.attr, attr 884 net/bridge/br_sysfs_br.c &dev_attr_multicast_igmp_version.attr, attr 886 net/bridge/br_sysfs_br.c &dev_attr_multicast_mld_version.attr, attr 890 net/bridge/br_sysfs_br.c &dev_attr_nf_call_iptables.attr, attr 891 net/bridge/br_sysfs_br.c &dev_attr_nf_call_ip6tables.attr, attr 892 net/bridge/br_sysfs_br.c &dev_attr_nf_call_arptables.attr, attr 895 net/bridge/br_sysfs_br.c &dev_attr_vlan_filtering.attr, attr 896 net/bridge/br_sysfs_br.c &dev_attr_vlan_protocol.attr, attr 897 net/bridge/br_sysfs_br.c &dev_attr_default_pvid.attr, attr 898 net/bridge/br_sysfs_br.c &dev_attr_vlan_stats_enabled.attr, attr 899 net/bridge/br_sysfs_br.c &dev_attr_vlan_stats_per_port.attr, attr 938 net/bridge/br_sysfs_br.c .attr = { .name = SYSFS_BRIDGE_FDB, attr 970 net/bridge/br_sysfs_br.c __func__, dev->name, bridge_forward.attr.name); attr 21 net/bridge/br_sysfs_if.c struct attribute attr; attr 29 net/bridge/br_sysfs_if.c .attr = {.name = __stringify(_name), \ attr 37 net/bridge/br_sysfs_if.c .attr = {.name = __stringify(_name), \ attr 289 net/bridge/br_sysfs_if.c #define to_brport_attr(_at) container_of(_at, struct brport_attribute, attr) attr 292 net/bridge/br_sysfs_if.c struct attribute *attr, char *buf) attr 294 net/bridge/br_sysfs_if.c struct brport_attribute *brport_attr = to_brport_attr(attr); attr 304 net/bridge/br_sysfs_if.c struct attribute *attr, attr 307 net/bridge/br_sysfs_if.c struct brport_attribute *brport_attr = to_brport_attr(attr); attr 372 net/bridge/br_sysfs_if.c err = sysfs_create_file(&p->kobj, &((*a)->attr)); attr 764 net/bridge/br_vlan.c struct switchdev_attr attr = { attr 775 net/bridge/br_vlan.c err = switchdev_port_attr_set(br->dev, &attr); attr 1084 net/bridge/br_vlan.c struct switchdev_attr attr = { attr 1097 net/bridge/br_vlan.c ret = switchdev_port_attr_set(p->dev, &attr); attr 609 net/core/bpf_sk_storage.c static int bpf_sk_storage_map_alloc_check(union bpf_attr *attr) attr 611 net/core/bpf_sk_storage.c if (attr->map_flags & ~SK_STORAGE_CREATE_FLAG_MASK || attr 612 net/core/bpf_sk_storage.c !(attr->map_flags & BPF_F_NO_PREALLOC) || attr 613 net/core/bpf_sk_storage.c attr->max_entries || attr 614 net/core/bpf_sk_storage.c attr->key_size != sizeof(int) || !attr->value_size || attr 616 net/core/bpf_sk_storage.c !attr->btf_key_type_id || !attr->btf_value_type_id) attr 622 net/core/bpf_sk_storage.c if (attr->value_size >= KMALLOC_MAX_SIZE - attr 627 net/core/bpf_sk_storage.c attr->value_size > U16_MAX - sizeof(struct bpf_sk_storage_elem)) attr 633 net/core/bpf_sk_storage.c static struct bpf_map *bpf_sk_storage_map_alloc(union bpf_attr *attr) attr 644 net/core/bpf_sk_storage.c bpf_map_init_from_attr(&smap->map, attr); attr 671 net/core/bpf_sk_storage.c smap->elem_size = sizeof(struct bpf_sk_storage_elem) + attr->value_size; attr 3969 net/core/devlink.c static int devlink_info_version_put(struct devlink_info_req *req, int attr, attr 3976 net/core/devlink.c nest = nla_nest_start_noflag(req->msg, attr); attr 5283 net/core/devlink.c struct nlattr *attr; attr 5287 net/core/devlink.c attr = info->attrs[DEVLINK_ATTR_TRAP_NAME]; attr 5289 net/core/devlink.c return devlink_trap_item_lookup(devlink, nla_data(attr)); attr 5314 net/core/devlink.c struct nlattr *attr; attr 5316 net/core/devlink.c attr = nla_nest_start(msg, DEVLINK_ATTR_TRAP_METADATA); attr 5317 net/core/devlink.c if (!attr) attr 5324 net/core/devlink.c nla_nest_end(msg, attr); attr 5329 net/core/devlink.c nla_nest_cancel(msg, attr); attr 5360 net/core/devlink.c struct nlattr *attr; attr 5364 net/core/devlink.c attr = nla_nest_start(msg, DEVLINK_ATTR_STATS); attr 5365 net/core/devlink.c if (!attr) attr 5376 net/core/devlink.c nla_nest_end(msg, attr); attr 5381 net/core/devlink.c nla_nest_cancel(msg, attr); attr 324 net/core/drop_monitor.c struct nlattr *attr; attr 326 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRY); attr 327 net/core/drop_monitor.c if (!attr) attr 336 net/core/drop_monitor.c nla_nest_end(msg, attr); attr 341 net/core/drop_monitor.c nla_nest_cancel(msg, attr); attr 348 net/core/drop_monitor.c struct nlattr *attr; attr 351 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRIES); attr 352 net/core/drop_monitor.c if (!attr) attr 363 net/core/drop_monitor.c nla_nest_end(msg, attr); attr 368 net/core/drop_monitor.c nla_nest_cancel(msg, attr); attr 573 net/core/drop_monitor.c struct nlattr *attr; attr 575 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_IN_PORT); attr 576 net/core/drop_monitor.c if (!attr) attr 586 net/core/drop_monitor.c nla_nest_end(msg, attr); attr 591 net/core/drop_monitor.c nla_nest_cancel(msg, attr); attr 600 net/core/drop_monitor.c struct nlattr *attr; attr 636 net/core/drop_monitor.c attr = skb_put(msg, nla_total_size(payload_len)); attr 637 net/core/drop_monitor.c attr->nla_type = NET_DM_ATTR_PAYLOAD; attr 638 net/core/drop_monitor.c attr->nla_len = nla_attr_size(payload_len); attr 639 net/core/drop_monitor.c if (skb_copy_bits(skb, 0, nla_data(attr), payload_len)) attr 737 net/core/drop_monitor.c struct nlattr *attr; attr 781 net/core/drop_monitor.c attr = skb_put(msg, nla_total_size(payload_len)); attr 782 net/core/drop_monitor.c attr->nla_type = NET_DM_ATTR_PAYLOAD; attr 783 net/core/drop_monitor.c attr->nla_len = nla_attr_size(payload_len); attr 784 net/core/drop_monitor.c if (skb_copy_bits(skb, 0, nla_data(attr), payload_len)) attr 1364 net/core/drop_monitor.c struct nlattr *attr; attr 1368 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_STATS); attr 1369 net/core/drop_monitor.c if (!attr) attr 1376 net/core/drop_monitor.c nla_nest_end(msg, attr); attr 1381 net/core/drop_monitor.c nla_nest_cancel(msg, attr); attr 1408 net/core/drop_monitor.c struct nlattr *attr; attr 1412 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_HW_STATS); attr 1413 net/core/drop_monitor.c if (!attr) attr 1420 net/core/drop_monitor.c nla_nest_end(msg, attr); attr 1425 net/core/drop_monitor.c nla_nest_cancel(msg, attr); attr 73 net/core/flow_dissector.c int skb_flow_dissector_prog_query(const union bpf_attr *attr, attr 76 net/core/flow_dissector.c __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); attr 81 net/core/flow_dissector.c if (attr->query.query_flags) attr 84 net/core/flow_dissector.c net = get_net_ns_by_fd(attr->query.target_fd); attr 103 net/core/flow_dissector.c if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) attr 112 net/core/flow_dissector.c int skb_flow_dissector_bpf_prog_attach(const union bpf_attr *attr, attr 170 net/core/flow_dissector.c int skb_flow_dissector_bpf_prog_detach(const union bpf_attr *attr) attr 333 net/core/lwt_bpf.c static int bpf_parse_prog(struct nlattr *attr, struct bpf_lwt_prog *prog, attr 341 net/core/lwt_bpf.c ret = nla_parse_nested_deprecated(tb, LWT_BPF_PROG_MAX, attr, attr 444 net/core/lwt_bpf.c static int bpf_fill_lwt_prog(struct sk_buff *skb, int attr, attr 452 net/core/lwt_bpf.c nest = nla_nest_start_noflag(skb, attr); attr 177 net/core/lwtunnel.c int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining, attr 180 net/core/lwtunnel.c struct rtnexthop *rtnh = (struct rtnexthop *)attr; attr 3537 net/core/neighbour.c #define NEIGH_SYSCTL_ENTRY(attr, data_attr, name, mval, proc) \ attr 3538 net/core/neighbour.c [NEIGH_VAR_ ## attr] = { \ attr 3546 net/core/neighbour.c #define NEIGH_SYSCTL_ZERO_INTMAX_ENTRY(attr, name) \ attr 3547 net/core/neighbour.c NEIGH_SYSCTL_ENTRY(attr, attr, name, 0644, neigh_proc_dointvec_zero_intmax) attr 3549 net/core/neighbour.c #define NEIGH_SYSCTL_JIFFIES_ENTRY(attr, name) \ attr 3550 net/core/neighbour.c NEIGH_SYSCTL_ENTRY(attr, attr, name, 0644, neigh_proc_dointvec_jiffies) attr 3552 net/core/neighbour.c #define NEIGH_SYSCTL_USERHZ_JIFFIES_ENTRY(attr, name) \ attr 3553 net/core/neighbour.c NEIGH_SYSCTL_ENTRY(attr, attr, name, 0644, neigh_proc_dointvec_userhz_jiffies) attr 3555 net/core/neighbour.c #define NEIGH_SYSCTL_MS_JIFFIES_ENTRY(attr, name) \ attr 3556 net/core/neighbour.c NEIGH_SYSCTL_ENTRY(attr, attr, name, 0644, neigh_proc_dointvec_ms_jiffies) attr 3558 net/core/neighbour.c #define NEIGH_SYSCTL_MS_JIFFIES_REUSED_ENTRY(attr, data_attr, name) \ attr 3559 net/core/neighbour.c NEIGH_SYSCTL_ENTRY(attr, data_attr, name, 0644, neigh_proc_dointvec_ms_jiffies) attr 3561 net/core/neighbour.c #define NEIGH_SYSCTL_UNRES_QLEN_REUSED_ENTRY(attr, data_attr, name) \ attr 3562 net/core/neighbour.c NEIGH_SYSCTL_ENTRY(attr, data_attr, name, 0644, neigh_proc_dointvec_unres_qlen) attr 41 net/core/net-sysfs.c struct device_attribute *attr, char *buf, attr 62 net/core/net-sysfs.c struct device_attribute *attr, char *buf) \ attr 64 net/core/net-sysfs.c return netdev_show(dev, attr, buf, format_##field); \ attr 76 net/core/net-sysfs.c static ssize_t netdev_store(struct device *dev, struct device_attribute *attr, attr 113 net/core/net-sysfs.c static ssize_t iflink_show(struct device *dev, struct device_attribute *attr, attr 128 net/core/net-sysfs.c struct device_attribute *attr, attr 135 net/core/net-sysfs.c ret = netdev_show(dev, attr, buf, format_name_assign_type); attr 142 net/core/net-sysfs.c static ssize_t address_show(struct device *dev, struct device_attribute *attr, attr 157 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 174 net/core/net-sysfs.c static ssize_t carrier_store(struct device *dev, struct device_attribute *attr, attr 177 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_carrier); attr 181 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 193 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 213 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 247 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 269 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 288 net/core/net-sysfs.c struct device_attribute *attr, attr 300 net/core/net-sysfs.c struct device_attribute *attr, attr 310 net/core/net-sysfs.c struct device_attribute *attr, attr 326 net/core/net-sysfs.c static ssize_t mtu_store(struct device *dev, struct device_attribute *attr, attr 329 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_mtu); attr 338 net/core/net-sysfs.c static ssize_t flags_store(struct device *dev, struct device_attribute *attr, attr 341 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_flags); attr 346 net/core/net-sysfs.c struct device_attribute *attr, attr 352 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, dev_change_tx_queue_len); attr 363 net/core/net-sysfs.c struct device_attribute *attr, attr 369 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_gro_flush_timeout); attr 373 net/core/net-sysfs.c static ssize_t ifalias_store(struct device *dev, struct device_attribute *attr, attr 405 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 424 net/core/net-sysfs.c static ssize_t group_store(struct device *dev, struct device_attribute *attr, attr 427 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_group); attr 438 net/core/net-sysfs.c struct device_attribute *attr, attr 441 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_proto_down); attr 446 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 468 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 490 net/core/net-sysfs.c struct device_attribute *attr, char *buf) attr 512 net/core/net-sysfs.c &dev_attr_netdev_group.attr, attr 513 net/core/net-sysfs.c &dev_attr_type.attr, attr 514 net/core/net-sysfs.c &dev_attr_dev_id.attr, attr 515 net/core/net-sysfs.c &dev_attr_dev_port.attr, attr 516 net/core/net-sysfs.c &dev_attr_iflink.attr, attr 517 net/core/net-sysfs.c &dev_attr_ifindex.attr, attr 518 net/core/net-sysfs.c &dev_attr_name_assign_type.attr, attr 519 net/core/net-sysfs.c &dev_attr_addr_assign_type.attr, attr 520 net/core/net-sysfs.c &dev_attr_addr_len.attr, attr 521 net/core/net-sysfs.c &dev_attr_link_mode.attr, attr 522 net/core/net-sysfs.c &dev_attr_address.attr, attr 523 net/core/net-sysfs.c &dev_attr_broadcast.attr, attr 524 net/core/net-sysfs.c &dev_attr_speed.attr, attr 525 net/core/net-sysfs.c &dev_attr_duplex.attr, attr 526 net/core/net-sysfs.c &dev_attr_dormant.attr, attr 527 net/core/net-sysfs.c &dev_attr_operstate.attr, attr 528 net/core/net-sysfs.c &dev_attr_carrier_changes.attr, attr 529 net/core/net-sysfs.c &dev_attr_ifalias.attr, attr 530 net/core/net-sysfs.c &dev_attr_carrier.attr, attr 531 net/core/net-sysfs.c &dev_attr_mtu.attr, attr 532 net/core/net-sysfs.c &dev_attr_flags.attr, attr 533 net/core/net-sysfs.c &dev_attr_tx_queue_len.attr, attr 534 net/core/net-sysfs.c &dev_attr_gro_flush_timeout.attr, attr 535 net/core/net-sysfs.c &dev_attr_phys_port_id.attr, attr 536 net/core/net-sysfs.c &dev_attr_phys_port_name.attr, attr 537 net/core/net-sysfs.c &dev_attr_phys_switch_id.attr, attr 538 net/core/net-sysfs.c &dev_attr_proto_down.attr, attr 539 net/core/net-sysfs.c &dev_attr_carrier_up_count.attr, attr 540 net/core/net-sysfs.c &dev_attr_carrier_down_count.attr, attr 547 net/core/net-sysfs.c struct device_attribute *attr, char *buf, attr 570 net/core/net-sysfs.c struct device_attribute *attr, char *buf) \ attr 572 net/core/net-sysfs.c return netstat_show(d, attr, buf, \ attr 603 net/core/net-sysfs.c &dev_attr_rx_packets.attr, attr 604 net/core/net-sysfs.c &dev_attr_tx_packets.attr, attr 605 net/core/net-sysfs.c &dev_attr_rx_bytes.attr, attr 606 net/core/net-sysfs.c &dev_attr_tx_bytes.attr, attr 607 net/core/net-sysfs.c &dev_attr_rx_errors.attr, attr 608 net/core/net-sysfs.c &dev_attr_tx_errors.attr, attr 609 net/core/net-sysfs.c &dev_attr_rx_dropped.attr, attr 610 net/core/net-sysfs.c &dev_attr_tx_dropped.attr, attr 611 net/core/net-sysfs.c &dev_attr_multicast.attr, attr 612 net/core/net-sysfs.c &dev_attr_collisions.attr, attr 613 net/core/net-sysfs.c &dev_attr_rx_length_errors.attr, attr 614 net/core/net-sysfs.c &dev_attr_rx_over_errors.attr, attr 615 net/core/net-sysfs.c &dev_attr_rx_crc_errors.attr, attr 616 net/core/net-sysfs.c &dev_attr_rx_frame_errors.attr, attr 617 net/core/net-sysfs.c &dev_attr_rx_fifo_errors.attr, attr 618 net/core/net-sysfs.c &dev_attr_rx_missed_errors.attr, attr 619 net/core/net-sysfs.c &dev_attr_tx_aborted_errors.attr, attr 620 net/core/net-sysfs.c &dev_attr_tx_carrier_errors.attr, attr 621 net/core/net-sysfs.c &dev_attr_tx_fifo_errors.attr, attr 622 net/core/net-sysfs.c &dev_attr_tx_heartbeat_errors.attr, attr 623 net/core/net-sysfs.c &dev_attr_tx_window_errors.attr, attr 624 net/core/net-sysfs.c &dev_attr_rx_compressed.attr, attr 625 net/core/net-sysfs.c &dev_attr_tx_compressed.attr, attr 626 net/core/net-sysfs.c &dev_attr_rx_nohandler.attr, attr 652 net/core/net-sysfs.c container_of(_attr, struct rx_queue_attribute, attr) attr 656 net/core/net-sysfs.c static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, attr 659 net/core/net-sysfs.c const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); attr 668 net/core/net-sysfs.c static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, attr 671 net/core/net-sysfs.c const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); attr 857 net/core/net-sysfs.c &rps_cpus_attribute.attr, attr 858 net/core/net-sysfs.c &rps_dev_flow_table_cnt_attribute.attr, attr 989 net/core/net-sysfs.c struct attribute attr; attr 995 net/core/net-sysfs.c container_of(_attr, struct netdev_queue_attribute, attr) attr 1000 net/core/net-sysfs.c struct attribute *attr, char *buf) attr 1003 net/core/net-sysfs.c = to_netdev_queue_attr(attr); attr 1013 net/core/net-sysfs.c struct attribute *attr, attr 1017 net/core/net-sysfs.c = to_netdev_queue_attr(attr); attr 1220 net/core/net-sysfs.c &bql_limit_attribute.attr, attr 1221 net/core/net-sysfs.c &bql_limit_max_attribute.attr, attr 1222 net/core/net-sysfs.c &bql_limit_min_attribute.attr, attr 1223 net/core/net-sysfs.c &bql_hold_time_attribute.attr, attr 1224 net/core/net-sysfs.c &bql_inflight_attribute.attr, attr 1412 net/core/net-sysfs.c &queue_trans_timeout.attr, attr 1413 net/core/net-sysfs.c &queue_traffic_class.attr, attr 1415 net/core/net-sysfs.c &xps_cpus_attribute.attr, attr 1416 net/core/net-sysfs.c &xps_rxqs_attribute.attr, attr 1417 net/core/net-sysfs.c &queue_tx_maxrate.attr, attr 1169 net/core/rtnetlink.c struct nlattr *attr; attr 1171 net/core/rtnetlink.c attr = nla_reserve_64bit(skb, IFLA_STATS64, attr 1173 net/core/rtnetlink.c if (!attr) attr 1176 net/core/rtnetlink.c sp = nla_data(attr); attr 1179 net/core/rtnetlink.c attr = nla_reserve(skb, IFLA_STATS, attr 1181 net/core/rtnetlink.c if (!attr) attr 1184 net/core/rtnetlink.c copy_rtnl_link_stats(nla_data(attr), sp); attr 1391 net/core/rtnetlink.c u32 *prog_id, u8 *mode, u8 tgt_mode, u32 attr, attr 1402 net/core/rtnetlink.c err = nla_put_u32(skb, attr, curr_id); attr 2224 net/core/rtnetlink.c struct nlattr *attr; attr 2231 net/core/rtnetlink.c nla_for_each_nested(attr, tb[IFLA_VF_VLAN_LIST], rem) { attr 2232 net/core/rtnetlink.c if (nla_type(attr) != IFLA_VF_VLAN_INFO || attr 2233 net/core/rtnetlink.c nla_len(attr) < NLA_HDRLEN) { attr 2238 net/core/rtnetlink.c ivvl[len] = nla_data(attr); attr 2591 net/core/rtnetlink.c struct nlattr *attr; attr 2594 net/core/rtnetlink.c nla_for_each_nested(attr, tb[IFLA_VFINFO_LIST], rem) { attr 2595 net/core/rtnetlink.c if (nla_type(attr) != IFLA_VF_INFO || attr 2596 net/core/rtnetlink.c nla_len(attr) < NLA_HDRLEN) { attr 2601 net/core/rtnetlink.c attr, attr 2616 net/core/rtnetlink.c struct nlattr *attr; attr 2624 net/core/rtnetlink.c nla_for_each_nested(attr, tb[IFLA_VF_PORTS], rem) { attr 2625 net/core/rtnetlink.c if (nla_type(attr) != IFLA_VF_PORT || attr 2626 net/core/rtnetlink.c nla_len(attr) < NLA_HDRLEN) { attr 2631 net/core/rtnetlink.c attr, attr 3019 net/core/rtnetlink.c struct nlattr **attr, struct netlink_ext_ack *extack) attr 3098 net/core/rtnetlink.c err = nla_parse_nested_deprecated(attr, ops->maxtype, attr 3103 net/core/rtnetlink.c data = attr; attr 3278 net/core/rtnetlink.c struct nlattr **attr; attr 3281 net/core/rtnetlink.c attr = kmalloc_array(RTNL_MAX_TYPE + 1, sizeof(*attr), GFP_KERNEL); attr 3282 net/core/rtnetlink.c if (!attr) attr 3285 net/core/rtnetlink.c ret = __rtnl_newlink(skb, nlh, attr, extack); attr 3286 net/core/rtnetlink.c kfree(attr); attr 4556 net/core/rtnetlink.c struct nlattr *br_spec, *attr = NULL; attr 4576 net/core/rtnetlink.c nla_for_each_nested(attr, br_spec, rem) { attr 4577 net/core/rtnetlink.c if (nla_type(attr) == IFLA_BRIDGE_FLAGS) { attr 4578 net/core/rtnetlink.c if (nla_len(attr) < sizeof(flags)) attr 4582 net/core/rtnetlink.c flags = nla_get_u16(attr); attr 4622 net/core/rtnetlink.c memcpy(nla_data(attr), &flags, sizeof(flags)); attr 4633 net/core/rtnetlink.c struct nlattr *br_spec, *attr = NULL; attr 4653 net/core/rtnetlink.c nla_for_each_nested(attr, br_spec, rem) { attr 4654 net/core/rtnetlink.c if (nla_type(attr) == IFLA_BRIDGE_FLAGS) { attr 4655 net/core/rtnetlink.c if (nla_len(attr) < sizeof(flags)) attr 4659 net/core/rtnetlink.c flags = nla_get_u16(attr); attr 4698 net/core/rtnetlink.c memcpy(nla_data(attr), &flags, sizeof(flags)); attr 4723 net/core/rtnetlink.c struct nlattr *attr = NULL; attr 4744 net/core/rtnetlink.c attr = nla_reserve_64bit(skb, attr_id, size, attr 4746 net/core/rtnetlink.c if (!attr) attr 4749 net/core/rtnetlink.c attr_data = nla_data(attr); attr 4757 net/core/rtnetlink.c if (!attr) attr 4801 net/core/rtnetlink.c struct nlattr *attr; attr 4821 net/core/rtnetlink.c attr = nla_reserve_64bit(skb, IFLA_STATS_LINK_64, attr 4824 net/core/rtnetlink.c if (!attr) attr 4827 net/core/rtnetlink.c sp = nla_data(attr); attr 4836 net/core/rtnetlink.c attr = nla_nest_start_noflag(skb, attr 4838 net/core/rtnetlink.c if (!attr) attr 4842 net/core/rtnetlink.c nla_nest_end(skb, attr); attr 4859 net/core/rtnetlink.c attr = nla_nest_start_noflag(skb, attr 4861 net/core/rtnetlink.c if (!attr) attr 4865 net/core/rtnetlink.c nla_nest_end(skb, attr); attr 4875 net/core/rtnetlink.c attr = nla_nest_start_noflag(skb, attr 4877 net/core/rtnetlink.c if (!attr) attr 4882 net/core/rtnetlink.c nla_nest_cancel(skb, attr); attr 4884 net/core/rtnetlink.c nla_nest_end(skb, attr); attr 4895 net/core/rtnetlink.c attr = nla_nest_start_noflag(skb, IFLA_STATS_AF_SPEC); attr 4896 net/core/rtnetlink.c if (!attr) attr 4925 net/core/rtnetlink.c nla_nest_end(skb, attr); attr 4954 net/core/rtnetlink.c int attr = IFLA_STATS_LINK_XSTATS; attr 4958 net/core/rtnetlink.c attr)); attr 4974 net/core/rtnetlink.c int attr = IFLA_STATS_LINK_XSTATS_SLAVE; attr 4977 net/core/rtnetlink.c attr)); attr 75 net/core/sock_diag.c struct nlattr *attr; attr 95 net/core/sock_diag.c attr = nla_reserve(skb, attrtype, flen); attr 96 net/core/sock_diag.c if (attr == NULL) { attr 101 net/core/sock_diag.c memcpy(nla_data(attr), fprog->filter, flen); attr 24 net/core/sock_map.c static struct bpf_map *sock_map_alloc(union bpf_attr *attr) attr 32 net/core/sock_map.c if (attr->max_entries == 0 || attr 33 net/core/sock_map.c attr->key_size != 4 || attr 34 net/core/sock_map.c attr->value_size != 4 || attr 35 net/core/sock_map.c attr->map_flags & ~SOCK_CREATE_FLAG_MASK) attr 42 net/core/sock_map.c bpf_map_init_from_attr(&stab->map, attr); attr 63 net/core/sock_map.c int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog) attr 65 net/core/sock_map.c u32 ufd = attr->target_fd; attr 74 net/core/sock_map.c ret = sock_map_prog_update(map, prog, attr->attach_type); attr 803 net/core/sock_map.c static struct bpf_map *sock_hash_alloc(union bpf_attr *attr) attr 811 net/core/sock_map.c if (attr->max_entries == 0 || attr 812 net/core/sock_map.c attr->key_size == 0 || attr 813 net/core/sock_map.c attr->value_size != 4 || attr 814 net/core/sock_map.c attr->map_flags & ~SOCK_CREATE_FLAG_MASK) attr 816 net/core/sock_map.c if (attr->key_size > MAX_BPF_STACK) attr 823 net/core/sock_map.c bpf_map_init_from_attr(&htab->map, attr); attr 1484 net/dcb/dcbnl.c struct nlattr *attr; attr 1487 net/dcb/dcbnl.c nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) { attr 1490 net/dcb/dcbnl.c if (nla_type(attr) != DCB_ATTR_IEEE_APP) attr 1493 net/dcb/dcbnl.c if (nla_len(attr) < sizeof(struct dcb_app)) { attr 1498 net/dcb/dcbnl.c app_data = nla_data(attr); attr 1545 net/dcb/dcbnl.c struct nlattr *attr; attr 1548 net/dcb/dcbnl.c nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) { attr 1551 net/dcb/dcbnl.c if (nla_type(attr) != DCB_ATTR_IEEE_APP) attr 1553 net/dcb/dcbnl.c app_data = nla_data(attr); attr 150 net/decnet/dn_fib.c static int dn_fib_count_nhs(const struct nlattr *attr) attr 152 net/decnet/dn_fib.c struct rtnexthop *nhp = nla_data(attr); attr 153 net/decnet/dn_fib.c int nhs = 0, nhlen = nla_len(attr); attr 164 net/decnet/dn_fib.c static int dn_fib_get_nhs(struct dn_fib_info *fi, const struct nlattr *attr, attr 167 net/decnet/dn_fib.c struct rtnexthop *nhp = nla_data(attr); attr 168 net/decnet/dn_fib.c int nhlen = nla_len(attr); attr 298 net/decnet/dn_fib.c struct nlattr *attr; attr 301 net/decnet/dn_fib.c nla_for_each_nested(attr, attrs[RTA_METRICS], rem) { attr 302 net/decnet/dn_fib.c int type = nla_type(attr); attr 306 net/decnet/dn_fib.c nla_len(attr) < 4) attr 309 net/decnet/dn_fib.c fi->fib_metrics[type-1] = nla_get_u32(attr); attr 267 net/dsa/master.c static ssize_t tagging_show(struct device *d, struct device_attribute *attr, attr 279 net/dsa/master.c &dev_attr_tagging.attr, attr 276 net/dsa/slave.c const struct switchdev_attr *attr, attr 282 net/dsa/slave.c switch (attr->id) { attr 284 net/dsa/slave.c ret = dsa_port_set_state(dp, attr->u.stp_state, trans); attr 287 net/dsa/slave.c ret = dsa_port_vlan_filtering(dp, attr->u.vlan_filtering, attr 291 net/dsa/slave.c ret = dsa_port_ageing_time(dp, attr->u.ageing_time, trans); attr 294 net/dsa/slave.c ret = dsa_port_pre_bridge_flags(dp, attr->u.brport_flags, attr 298 net/dsa/slave.c ret = dsa_port_bridge_flags(dp, attr->u.brport_flags, trans); attr 301 net/dsa/slave.c ret = dsa_port_mrouter(dp->cpu_dp, attr->u.mrouter, trans); attr 309 net/ieee802154/nl802154.c nl802154_put_flags(struct sk_buff *msg, int attr, u32 mask) attr 311 net/ieee802154/nl802154.c struct nlattr *nl_flags = nla_nest_start_noflag(msg, attr); attr 28 net/ieee802154/sysfs.c struct device_attribute *attr, \ attr 38 net/ieee802154/sysfs.c struct device_attribute *attr, attr 55 net/ieee802154/sysfs.c &dev_attr_index.attr, attr 56 net/ieee802154/sysfs.c &dev_attr_name.attr, attr 810 net/ipv4/cipso_ipv4.c host_spot = netlbl_catmap_walk(secattr->attr.mls.cat, attr 893 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, attr 959 net/ipv4/cipso_ipv4.c cat = netlbl_catmap_walk(secattr->attr.mls.cat, cat + 1); attr 994 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, attr 1074 net/ipv4/cipso_ipv4.c iter = netlbl_catmap_walk(secattr->attr.mls.cat, iter + 1); attr 1082 net/ipv4/cipso_ipv4.c iter = netlbl_catmap_walkrng(secattr->attr.mls.cat, iter); attr 1134 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setrng(&secattr->attr.mls.cat, attr 1195 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl, attr 1248 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl = level; attr 1257 net/ipv4/cipso_ipv4.c netlbl_catmap_free(secattr->attr.mls.cat); attr 1261 net/ipv4/cipso_ipv4.c if (secattr->attr.mls.cat) attr 1293 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl, attr 1340 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl = level; attr 1349 net/ipv4/cipso_ipv4.c netlbl_catmap_free(secattr->attr.mls.cat); attr 1384 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl, attr 1430 net/ipv4/cipso_ipv4.c secattr->attr.mls.lvl = level; attr 1439 net/ipv4/cipso_ipv4.c netlbl_catmap_free(secattr->attr.mls.cat); attr 1443 net/ipv4/cipso_ipv4.c if (secattr->attr.mls.cat) attr 1472 net/ipv4/cipso_ipv4.c *(u32 *)&buffer[2] = secattr->attr.secid; attr 1492 net/ipv4/cipso_ipv4.c secattr->attr.secid = *(u32 *)&tag[2]; attr 93 net/ipv4/devinet.c #define IPV4_DEVCONF_DFLT(net, attr) \ attr 94 net/ipv4/devinet.c IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr) attr 2481 net/ipv4/devinet.c #define DEVINET_SYSCTL_ENTRY(attr, name, mval, proc) \ attr 2485 net/ipv4/devinet.c IPV4_DEVCONF_ ## attr - 1, \ attr 2492 net/ipv4/devinet.c #define DEVINET_SYSCTL_RW_ENTRY(attr, name) \ attr 2493 net/ipv4/devinet.c DEVINET_SYSCTL_ENTRY(attr, name, 0644, devinet_conf_proc) attr 2495 net/ipv4/devinet.c #define DEVINET_SYSCTL_RO_ENTRY(attr, name) \ attr 2496 net/ipv4/devinet.c DEVINET_SYSCTL_ENTRY(attr, name, 0444, devinet_conf_proc) attr 2498 net/ipv4/devinet.c #define DEVINET_SYSCTL_COMPLEX_ENTRY(attr, name, proc) \ attr 2499 net/ipv4/devinet.c DEVINET_SYSCTL_ENTRY(attr, name, 0644, proc) attr 2501 net/ipv4/devinet.c #define DEVINET_SYSCTL_FLUSHING_ENTRY(attr, name) \ attr 2502 net/ipv4/devinet.c DEVINET_SYSCTL_COMPLEX_ENTRY(attr, name, ipv4_doint_and_flush) attr 733 net/ipv4/fib_frontend.c struct nlattr *attr; attr 764 net/ipv4/fib_frontend.c nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) { attr 765 net/ipv4/fib_frontend.c switch (nla_type(attr)) { attr 767 net/ipv4/fib_frontend.c cfg->fc_dst = nla_get_be32(attr); attr 770 net/ipv4/fib_frontend.c cfg->fc_oif = nla_get_u32(attr); attr 774 net/ipv4/fib_frontend.c cfg->fc_gw4 = nla_get_be32(attr); attr 780 net/ipv4/fib_frontend.c err = fib_gw_from_via(cfg, attr, extack); attr 785 net/ipv4/fib_frontend.c cfg->fc_priority = nla_get_u32(attr); attr 788 net/ipv4/fib_frontend.c cfg->fc_prefsrc = nla_get_be32(attr); attr 791 net/ipv4/fib_frontend.c cfg->fc_mx = nla_data(attr); attr 792 net/ipv4/fib_frontend.c cfg->fc_mx_len = nla_len(attr); attr 795 net/ipv4/fib_frontend.c err = lwtunnel_valid_encap_type_attr(nla_data(attr), attr 796 net/ipv4/fib_frontend.c nla_len(attr), attr 800 net/ipv4/fib_frontend.c cfg->fc_mp = nla_data(attr); attr 801 net/ipv4/fib_frontend.c cfg->fc_mp_len = nla_len(attr); attr 804 net/ipv4/fib_frontend.c cfg->fc_flow = nla_get_u32(attr); attr 807 net/ipv4/fib_frontend.c cfg->fc_table = nla_get_u32(attr); attr 810 net/ipv4/fib_frontend.c cfg->fc_encap = attr; attr 813 net/ipv4/fib_frontend.c cfg->fc_encap_type = nla_get_u16(attr); attr 820 net/ipv4/fib_frontend.c cfg->fc_nh_id = nla_get_u32(attr); attr 675 net/ipv4/fou.c struct nlattr *attr; attr 715 net/ipv4/fou.c attr = info->attrs[FOU_ATTR_LOCAL_V4]; attr 716 net/ipv4/fou.c cfg->udp_config.local_ip.s_addr = nla_get_in_addr(attr); attr 721 net/ipv4/fou.c attr = info->attrs[FOU_ATTR_PEER_V4]; attr 722 net/ipv4/fou.c cfg->udp_config.peer_ip.s_addr = nla_get_in_addr(attr); attr 728 net/ipv4/fou.c attr = info->attrs[FOU_ATTR_LOCAL_V6]; attr 729 net/ipv4/fou.c cfg->udp_config.local_ip6 = nla_get_in6_addr(attr); attr 734 net/ipv4/fou.c attr = info->attrs[FOU_ATTR_PEER_V6]; attr 735 net/ipv4/fou.c cfg->udp_config.peer_ip6 = nla_get_in6_addr(attr); attr 185 net/ipv4/inet_diag.c struct nlattr *attr; attr 260 net/ipv4/inet_diag.c attr = nla_reserve_64bit(skb, INET_DIAG_INFO, attr 263 net/ipv4/inet_diag.c if (!attr) attr 266 net/ipv4/inet_diag.c info = nla_data(attr); attr 290 net/ipv4/inet_diag.c int attr; attr 295 net/ipv4/inet_diag.c sz = ca_ops->get_info(sk, ext, &attr, &info); attr 297 net/ipv4/inet_diag.c if (sz && nla_put(skb, attr, sz, &info) < 0) attr 783 net/ipv4/inet_diag.c static int inet_diag_bc_audit(const struct nlattr *attr, attr 790 net/ipv4/inet_diag.c if (!attr || nla_len(attr) < sizeof(struct inet_diag_bc_op)) attr 793 net/ipv4/inet_diag.c bytecode = bc = nla_data(attr); attr 794 net/ipv4/inet_diag.c len = bytecode_len = nla_len(attr); attr 1129 net/ipv4/inet_diag.c struct nlattr *attr; attr 1132 net/ipv4/inet_diag.c attr = nlmsg_find_attr(nlh, hdrlen, attr 1134 net/ipv4/inet_diag.c err = inet_diag_bc_audit(attr, skb); attr 1160 net/ipv4/inet_diag.c struct nlattr *attr; attr 1163 net/ipv4/inet_diag.c attr = nlmsg_find_attr(h, hdrlen, attr 1165 net/ipv4/inet_diag.c err = inet_diag_bc_audit(attr, skb); attr 1185 net/ipv4/inet_diag.c struct nlattr *attr; attr 1213 net/ipv4/inet_diag.c attr = handler->idiag_info_size attr 1218 net/ipv4/inet_diag.c if (attr) attr 1219 net/ipv4/inet_diag.c info = nla_data(attr); attr 222 net/ipv4/ip_tunnel_core.c static int ip_tun_build_state(struct nlattr *attr, attr 232 net/ipv4/ip_tunnel_core.c err = nla_parse_nested_deprecated(tb, LWTUNNEL_IP_MAX, attr, attr 339 net/ipv4/ip_tunnel_core.c static int ip6_tun_build_state(struct nlattr *attr, attr 349 net/ipv4/ip_tunnel_core.c err = nla_parse_nested_deprecated(tb, LWTUNNEL_IP6_MAX, attr, attr 2669 net/ipv4/ipmr.c struct nlattr *attr; attr 2689 net/ipv4/ipmr.c nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), rem) { attr 2690 net/ipv4/ipmr.c switch (nla_type(attr)) { attr 2692 net/ipv4/ipmr.c mfcc->mfcc_origin.s_addr = nla_get_be32(attr); attr 2695 net/ipv4/ipmr.c mfcc->mfcc_mcastgrp.s_addr = nla_get_be32(attr); attr 2698 net/ipv4/ipmr.c dev = __dev_get_by_index(net, nla_get_u32(attr)); attr 2705 net/ipv4/ipmr.c if (ipmr_nla_get_ttls(attr, mfcc) < 0) { attr 2714 net/ipv4/ipmr.c tblid = nla_get_u32(attr); attr 10 net/ipv4/netlink.c int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, u8 family, attr 13 net/ipv4/netlink.c *ip_proto = nla_get_u8(attr); attr 3484 net/ipv4/tcp.c int attr; attr 3491 net/ipv4/tcp.c sz = ca_ops->get_info(sk, ~0U, &attr, &info); attr 1104 net/ipv4/tcp_bbr.c static size_t bbr_get_info(struct sock *sk, u32 ext, int *attr, attr 1120 net/ipv4/tcp_bbr.c *attr = INET_DIAG_BBRINFO; attr 181 net/ipv4/tcp_dctcp.c static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr, attr 203 net/ipv4/tcp_dctcp.c *attr = INET_DIAG_DCTCPINFO; attr 60 net/ipv4/tcp_diag.c struct nlattr *attr; attr 68 net/ipv4/tcp_diag.c attr = nla_reserve(skb, INET_DIAG_MD5SIG, attr 70 net/ipv4/tcp_diag.c if (!attr) attr 73 net/ipv4/tcp_diag.c info = nla_data(attr); attr 305 net/ipv4/tcp_illinois.c static size_t tcp_illinois_info(struct sock *sk, u32 ext, int *attr, attr 322 net/ipv4/tcp_illinois.c *attr = INET_DIAG_VEGASINFO; attr 454 net/ipv4/tcp_nv.c static size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr, attr 465 net/ipv4/tcp_nv.c *attr = INET_DIAG_VEGASINFO; attr 290 net/ipv4/tcp_vegas.c size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr, attr 301 net/ipv4/tcp_vegas.c *attr = INET_DIAG_VEGASINFO; attr 23 net/ipv4/tcp_vegas.h size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr, attr 261 net/ipv4/tcp_westwood.c static size_t tcp_westwood_info(struct sock *sk, u32 ext, int *attr, attr 272 net/ipv4/tcp_westwood.c *attr = INET_DIAG_VEGASINFO; attr 622 net/ipv6/calipso.c spot = netlbl_catmap_walk(secattr->attr.mls.cat, attr 670 net/ipv6/calipso.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, attr 764 net/ipv6/calipso.c calipso[7] = secattr->attr.mls.lvl, attr 1037 net/ipv6/calipso.c secattr->attr.mls.lvl = calipso[7]; attr 1046 net/ipv6/calipso.c netlbl_catmap_free(secattr->attr.mls.cat); attr 1050 net/ipv6/calipso.c if (secattr->attr.mls.cat) attr 3736 net/mac80211/util.c int ieee80211_parse_p2p_noa(const struct ieee80211_p2p_noa_attr *attr, attr 3745 net/mac80211/util.c const struct ieee80211_p2p_noa_desc *desc = &attr->desc[i]; attr 155 net/ncsi/ncsi-netlink.c struct nlattr *attr; attr 186 net/ncsi/ncsi-netlink.c attr = nla_nest_start_noflag(skb, NCSI_ATTR_PACKAGE_LIST); attr 187 net/ncsi/ncsi-netlink.c if (!attr) { attr 194 net/ncsi/ncsi-netlink.c nla_nest_cancel(skb, attr); attr 198 net/ncsi/ncsi-netlink.c nla_nest_end(skb, attr); attr 215 net/ncsi/ncsi-netlink.c struct nlattr *attr; attr 249 net/ncsi/ncsi-netlink.c attr = nla_nest_start_noflag(skb, NCSI_ATTR_PACKAGE_LIST); attr 250 net/ncsi/ncsi-netlink.c if (!attr) { attr 256 net/ncsi/ncsi-netlink.c nla_nest_cancel(skb, attr); attr 260 net/ncsi/ncsi-netlink.c nla_nest_end(skb, attr); attr 893 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 901 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 913 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr) || attr 914 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME] || attr 915 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_TYPENAME] || attr 916 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_REVISION] || attr 917 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_FAMILY] || attr 918 net/netfilter/ipset/ip_set_core.c (attr[IPSET_ATTR_DATA] && attr 919 net/netfilter/ipset/ip_set_core.c !flag_nested(attr[IPSET_ATTR_DATA])))) attr 922 net/netfilter/ipset/ip_set_core.c name = nla_data(attr[IPSET_ATTR_SETNAME]); attr 923 net/netfilter/ipset/ip_set_core.c typename = nla_data(attr[IPSET_ATTR_TYPENAME]); attr 924 net/netfilter/ipset/ip_set_core.c family = nla_get_u8(attr[IPSET_ATTR_FAMILY]); attr 925 net/netfilter/ipset/ip_set_core.c revision = nla_get_u8(attr[IPSET_ATTR_REVISION]); attr 952 net/netfilter/ipset/ip_set_core.c if (attr[IPSET_ATTR_DATA] && attr 953 net/netfilter/ipset/ip_set_core.c nla_parse_nested(tb, IPSET_ATTR_CREATE_MAX, attr[IPSET_ATTR_DATA], attr 1043 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1051 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr))) attr 1068 net/netfilter/ipset/ip_set_core.c if (!attr[IPSET_ATTR_SETNAME]) { attr 1088 net/netfilter/ipset/ip_set_core.c s = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), attr 1122 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1129 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr))) attr 1132 net/netfilter/ipset/ip_set_core.c if (!attr[IPSET_ATTR_SETNAME]) { attr 1139 net/netfilter/ipset/ip_set_core.c s = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); attr 1162 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1171 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr) || attr 1172 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME] || attr 1173 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME2])) attr 1176 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); attr 1186 net/netfilter/ipset/ip_set_core.c name2 = nla_data(attr[IPSET_ATTR_SETNAME2]); attr 1212 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1220 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr) || attr 1221 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME] || attr 1222 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME2])) attr 1225 net/netfilter/ipset/ip_set_core.c from = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), attr 1230 net/netfilter/ipset/ip_set_core.c to = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME2]), attr 1292 net/netfilter/ipset/ip_set_core.c const struct nlattr *attr; attr 1296 net/netfilter/ipset/ip_set_core.c nlmsg_for_each_attr(attr, nlh, sizeof(struct nfgenmsg), rem) { attr 1297 net/netfilter/ipset/ip_set_core.c pr_debug("type: %u, len %u\n", nla_type(attr), attr->nla_len); attr 1315 net/netfilter/ipset/ip_set_core.c struct nlattr *attr = (void *)nlh + min_len; attr 1321 net/netfilter/ipset/ip_set_core.c ret = nla_parse(cda, IPSET_ATTR_CMD_MAX, attr, attr 1503 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1506 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr))) attr 1597 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1608 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr) || attr 1609 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME] || attr 1610 net/netfilter/ipset/ip_set_core.c !((attr[IPSET_ATTR_DATA] != NULL) ^ attr 1611 net/netfilter/ipset/ip_set_core.c (attr[IPSET_ATTR_ADT] != NULL)) || attr 1612 net/netfilter/ipset/ip_set_core.c (attr[IPSET_ATTR_DATA] && attr 1613 net/netfilter/ipset/ip_set_core.c !flag_nested(attr[IPSET_ATTR_DATA])) || attr 1614 net/netfilter/ipset/ip_set_core.c (attr[IPSET_ATTR_ADT] && attr 1615 net/netfilter/ipset/ip_set_core.c (!flag_nested(attr[IPSET_ATTR_ADT]) || attr 1616 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_LINENO])))) attr 1619 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); attr 1623 net/netfilter/ipset/ip_set_core.c use_lineno = !!attr[IPSET_ATTR_LINENO]; attr 1624 net/netfilter/ipset/ip_set_core.c if (attr[IPSET_ATTR_DATA]) { attr 1626 net/netfilter/ipset/ip_set_core.c attr[IPSET_ATTR_DATA], attr 1634 net/netfilter/ipset/ip_set_core.c nla_for_each_nested(nla, attr[IPSET_ATTR_ADT], nla_rem) { attr 1651 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1655 net/netfilter/ipset/ip_set_core.c IPSET_ADD, nlh, attr, extack); attr 1660 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1664 net/netfilter/ipset/ip_set_core.c IPSET_DEL, nlh, attr, extack); attr 1669 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1678 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr) || attr 1679 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME] || attr 1680 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_DATA] || attr 1681 net/netfilter/ipset/ip_set_core.c !flag_nested(attr[IPSET_ATTR_DATA]))) attr 1684 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); attr 1688 net/netfilter/ipset/ip_set_core.c if (nla_parse_nested(tb, IPSET_ATTR_ADT_MAX, attr[IPSET_ATTR_DATA], attr 1706 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1715 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr) || attr 1716 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME])) attr 1719 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); attr 1731 net/netfilter/ipset/ip_set_core.c if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) || attr 1763 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1772 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_min_failed(attr) || attr 1773 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_TYPENAME] || attr 1774 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_FAMILY])) attr 1777 net/netfilter/ipset/ip_set_core.c family = nla_get_u8(attr[IPSET_ATTR_FAMILY]); attr 1778 net/netfilter/ipset/ip_set_core.c typename = nla_data(attr[IPSET_ATTR_TYPENAME]); attr 1791 net/netfilter/ipset/ip_set_core.c if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) || attr 1822 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1829 net/netfilter/ipset/ip_set_core.c if (unlikely(!attr[IPSET_ATTR_PROTOCOL])) attr 1863 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1873 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_failed(attr) || attr 1874 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_SETNAME])) attr 1877 net/netfilter/ipset/ip_set_core.c set = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), &id); attr 1889 net/netfilter/ipset/ip_set_core.c if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) || attr 1915 net/netfilter/ipset/ip_set_core.c const struct nlattr * const attr[], attr 1925 net/netfilter/ipset/ip_set_core.c if (unlikely(protocol_failed(attr) || attr 1926 net/netfilter/ipset/ip_set_core.c !attr[IPSET_ATTR_INDEX])) attr 1929 net/netfilter/ipset/ip_set_core.c id = ip_set_get_h16(attr[IPSET_ATTR_INDEX]); attr 1944 net/netfilter/ipset/ip_set_core.c if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) || attr 548 net/netfilter/nf_conntrack_ftp.c static int nf_ct_ftp_from_nlattr(struct nlattr *attr, struct nf_conn *ct) attr 85 net/netfilter/nf_conntrack_h323_asn1.c unsigned short attr; attr 335 net/netfilter/nf_conntrack_h323_asn1.c if (base && (f->attr & DECODE)) { /* timeToLive */ attr 366 net/netfilter/nf_conntrack_h323_asn1.c if ((f->attr & EXT) && get_bit(bs)) { attr 444 net/netfilter/nf_conntrack_h323_asn1.c if (base && (f->attr & DECODE)) { attr 526 net/netfilter/nf_conntrack_h323_asn1.c base = (base && (f->attr & DECODE)) ? base + f->offset : NULL; attr 531 net/netfilter/nf_conntrack_h323_asn1.c ext = (f->attr & EXT) ? get_bit(bs) : 0; attr 542 net/netfilter/nf_conntrack_h323_asn1.c if (son->attr & STOP) { attr 548 net/netfilter/nf_conntrack_h323_asn1.c if (son->attr & OPT) { /* Optional component */ attr 554 net/netfilter/nf_conntrack_h323_asn1.c if (son->attr & OPEN) { /* Open field */ attr 560 net/netfilter/nf_conntrack_h323_asn1.c if (!base || !(son->attr & DECODE)) { attr 611 net/netfilter/nf_conntrack_h323_asn1.c if (son->attr & STOP) { attr 625 net/netfilter/nf_conntrack_h323_asn1.c if (!base || !(son->attr & DECODE)) { attr 655 net/netfilter/nf_conntrack_h323_asn1.c base = (base && (f->attr & DECODE)) ? base + f->offset : NULL; attr 699 net/netfilter/nf_conntrack_h323_asn1.c if (son->attr & OPEN) { attr 706 net/netfilter/nf_conntrack_h323_asn1.c if (!base || !(son->attr & DECODE)) { attr 751 net/netfilter/nf_conntrack_h323_asn1.c base = (base && (f->attr & DECODE)) ? base + f->offset : NULL; attr 756 net/netfilter/nf_conntrack_h323_asn1.c if ((f->attr & EXT) && get_bit(bs)) { attr 788 net/netfilter/nf_conntrack_h323_asn1.c if (son->attr & STOP) { attr 793 net/netfilter/nf_conntrack_h323_asn1.c if (ext || (son->attr & OPEN)) { attr 800 net/netfilter/nf_conntrack_h323_asn1.c if (!base || !(son->attr & DECODE)) { attr 486 net/netfilter/nf_conntrack_helper.c int (*from_nlattr)(struct nlattr *attr, attr 239 net/netfilter/nf_conntrack_netlink.c enum ctattr_type attr = dir ? CTA_COUNTERS_REPLY: CTA_COUNTERS_ORIG; attr 252 net/netfilter/nf_conntrack_netlink.c nest_count = nla_nest_start(skb, attr); attr 1020 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_parse_tuple_ip(struct nlattr *attr, attr 1026 net/netfilter/nf_conntrack_netlink.c ret = nla_parse_nested_deprecated(tb, CTA_IP_MAX, attr, NULL, NULL); attr 1030 net/netfilter/nf_conntrack_netlink.c ret = nla_validate_nested_deprecated(attr, CTA_IP_MAX, attr 1051 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_parse_tuple_proto(struct nlattr *attr, attr 1058 net/netfilter/nf_conntrack_netlink.c ret = nla_parse_nested_deprecated(tb, CTA_PROTO_MAX, attr, attr 1071 net/netfilter/nf_conntrack_netlink.c ret = nla_validate_nested_deprecated(attr, CTA_PROTO_MAX, attr 1084 net/netfilter/nf_conntrack_netlink.c ctnetlink_parse_zone(const struct nlattr *attr, attr 1090 net/netfilter/nf_conntrack_netlink.c if (attr) attr 1091 net/netfilter/nf_conntrack_netlink.c zone->id = ntohs(nla_get_be16(attr)); attr 1093 net/netfilter/nf_conntrack_netlink.c if (attr) attr 1100 net/netfilter/nf_conntrack_netlink.c ctnetlink_parse_tuple_zone(struct nlattr *attr, enum ctattr_type type, attr 1108 net/netfilter/nf_conntrack_netlink.c ret = ctnetlink_parse_zone(attr, zone); attr 1181 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_parse_help(const struct nlattr *attr, char **helper_name, attr 1187 net/netfilter/nf_conntrack_netlink.c err = nla_parse_nested_deprecated(tb, CTA_HELP_MAX, attr, attr 1511 net/netfilter/nf_conntrack_netlink.c const struct nlattr *attr) attr 1535 net/netfilter/nf_conntrack_netlink.c err = nat_hook->parse_nat_setup(ct, manip, attr); attr 1725 net/netfilter/nf_conntrack_netlink.c const struct nlattr *attr = cda[CTA_PROTOINFO]; attr 1730 net/netfilter/nf_conntrack_netlink.c err = nla_parse_nested_deprecated(tb, CTA_PROTOINFO_MAX, attr, attr 1749 net/netfilter/nf_conntrack_netlink.c const struct nlattr * const attr) attr 1754 net/netfilter/nf_conntrack_netlink.c err = nla_parse_nested_deprecated(cda, CTA_SEQADJ_MAX, attr, attr 2559 net/netfilter/nf_conntrack_netlink.c ctnetlink_glue_parse(const struct nlattr *attr, struct nf_conn *ct) attr 2564 net/netfilter/nf_conntrack_netlink.c ret = nla_parse_nested_deprecated(cda, CTA_MAX, attr, ct_nla_policy, attr 2589 net/netfilter/nf_conntrack_netlink.c ctnetlink_glue_attach_expect(const struct nlattr *attr, struct nf_conn *ct, attr 2598 net/netfilter/nf_conntrack_netlink.c err = nla_parse_nested_deprecated(cda, CTA_EXPECT_MAX, attr, attr 3212 net/netfilter/nf_conntrack_netlink.c ctnetlink_parse_expect_nat(const struct nlattr *attr, attr 3221 net/netfilter/nf_conntrack_netlink.c err = nla_parse_nested_deprecated(tb, CTA_EXPECT_NAT_MAX, attr, attr 631 net/netfilter/nf_conntrack_proto_dccp.c struct nlattr *attr = cda[CTA_PROTOINFO_DCCP]; attr 635 net/netfilter/nf_conntrack_proto_dccp.c if (!attr) attr 638 net/netfilter/nf_conntrack_proto_dccp.c err = nla_parse_nested_deprecated(tb, CTA_PROTOINFO_DCCP_MAX, attr, attr 555 net/netfilter/nf_conntrack_proto_sctp.c struct nlattr *attr = cda[CTA_PROTOINFO_SCTP]; attr 560 net/netfilter/nf_conntrack_proto_sctp.c if (!attr) attr 563 net/netfilter/nf_conntrack_proto_sctp.c err = nla_parse_nested_deprecated(tb, CTA_PROTOINFO_SCTP_MAX, attr, attr 1264 net/netfilter/nf_conntrack_proto_tcp.c struct nf_ct_tcp_flags *attr = attr 1266 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.seen[0].flags &= ~attr->mask; attr 1267 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.seen[0].flags |= attr->flags & attr->mask; attr 1271 net/netfilter/nf_conntrack_proto_tcp.c struct nf_ct_tcp_flags *attr = attr 1273 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.seen[1].flags &= ~attr->mask; attr 1274 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.seen[1].flags |= attr->flags & attr->mask; attr 883 net/netfilter/nf_nat_core.c static int nfnetlink_parse_nat_proto(struct nlattr *attr, attr 890 net/netfilter/nf_nat_core.c err = nla_parse_nested_deprecated(tb, CTA_PROTONAT_MAX, attr, attr 979 net/netfilter/nf_nat_core.c const struct nlattr *attr) attr 991 net/netfilter/nf_nat_core.c if (attr == NULL) attr 994 net/netfilter/nf_nat_core.c err = nfnetlink_parse_nat(attr, ct, &range); attr 1004 net/netfilter/nf_nat_core.c const struct nlattr *attr) attr 905 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 912 net/netfilter/nf_tables_api.c attr = nla[NFTA_TABLE_NAME]; attr 913 net/netfilter/nf_tables_api.c table = nft_table_lookup(net, attr, family, genmask); attr 919 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 940 net/netfilter/nf_tables_api.c table->name = nla_strdup(attr, GFP_KERNEL); attr 1076 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 1086 net/netfilter/nf_tables_api.c attr = nla[NFTA_TABLE_HANDLE]; attr 1087 net/netfilter/nf_tables_api.c table = nft_table_lookup_byhandle(net, attr, genmask); attr 1089 net/netfilter/nf_tables_api.c attr = nla[NFTA_TABLE_NAME]; attr 1090 net/netfilter/nf_tables_api.c table = nft_table_lookup(net, attr, family, genmask); attr 1094 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 1460 net/netfilter/nf_tables_api.c static struct nft_stats __percpu *nft_stats_alloc(const struct nlattr *attr) attr 1467 net/netfilter/nf_tables_api.c err = nla_parse_nested_deprecated(tb, NFTA_COUNTER_MAX, attr, attr 1886 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 1903 net/netfilter/nf_tables_api.c attr = nla[NFTA_CHAIN_NAME]; attr 1912 net/netfilter/nf_tables_api.c attr = nla[NFTA_CHAIN_HANDLE]; attr 1914 net/netfilter/nf_tables_api.c chain = nft_chain_lookup(net, table, attr, genmask); attr 1917 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 1956 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 1977 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 1993 net/netfilter/nf_tables_api.c attr = nla[NFTA_CHAIN_HANDLE]; attr 1994 net/netfilter/nf_tables_api.c handle = be64_to_cpu(nla_get_be64(attr)); attr 1997 net/netfilter/nf_tables_api.c attr = nla[NFTA_CHAIN_NAME]; attr 1998 net/netfilter/nf_tables_api.c chain = nft_chain_lookup(net, table, attr, genmask); attr 2001 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 2026 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 2154 net/netfilter/nf_tables_api.c int nft_expr_dump(struct sk_buff *skb, unsigned int attr, attr 2159 net/netfilter/nf_tables_api.c nest = nla_nest_start_noflag(skb, attr); attr 3793 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 3809 net/netfilter/nf_tables_api.c attr = nla[NFTA_SET_HANDLE]; attr 3810 net/netfilter/nf_tables_api.c set = nft_set_lookup_byhandle(ctx.table, attr, genmask); attr 3812 net/netfilter/nf_tables_api.c attr = nla[NFTA_SET_NAME]; attr 3813 net/netfilter/nf_tables_api.c set = nft_set_lookup(ctx.table, attr, genmask); attr 3817 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 3822 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 4249 net/netfilter/nf_tables_api.c const struct nlattr *attr, u32 *flags) attr 4251 net/netfilter/nf_tables_api.c if (attr == NULL) attr 4254 net/netfilter/nf_tables_api.c *flags = ntohl(nla_get_be32(attr)); attr 4265 net/netfilter/nf_tables_api.c const struct nlattr *attr) attr 4275 net/netfilter/nf_tables_api.c err = nla_parse_nested_deprecated(nla, NFTA_SET_ELEM_MAX, attr, attr 4335 net/netfilter/nf_tables_api.c struct nlattr *attr; attr 4367 net/netfilter/nf_tables_api.c nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) { attr 4368 net/netfilter/nf_tables_api.c err = nft_get_set_elem(&ctx, set, attr); attr 4492 net/netfilter/nf_tables_api.c const struct nlattr *attr, u32 nlmsg_flags) attr 4512 net/netfilter/nf_tables_api.c err = nla_parse_nested_deprecated(nla, NFTA_SET_ELEM_MAX, attr, attr 4729 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 4750 net/netfilter/nf_tables_api.c nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) { attr 4751 net/netfilter/nf_tables_api.c err = nft_add_set_elem(&ctx, set, attr, nlh->nlmsg_flags); attr 4810 net/netfilter/nf_tables_api.c const struct nlattr *attr) attr 4822 net/netfilter/nf_tables_api.c err = nla_parse_nested_deprecated(nla, NFTA_SET_ELEM_MAX, attr, attr 4926 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 4952 net/netfilter/nf_tables_api.c nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) { attr 4953 net/netfilter/nf_tables_api.c err = nft_del_setelem(&ctx, set, attr); attr 5085 net/netfilter/nf_tables_api.c const struct nlattr *attr) attr 5096 net/netfilter/nf_tables_api.c if (attr) { attr 5097 net/netfilter/nf_tables_api.c err = nla_parse_nested_deprecated(tb, type->maxattr, attr, attr 5136 net/netfilter/nf_tables_api.c static int nft_object_dump(struct sk_buff *skb, unsigned int attr, attr 5141 net/netfilter/nf_tables_api.c nest = nla_nest_start_noflag(skb, attr); attr 5185 net/netfilter/nf_tables_api.c const struct nlattr *attr, attr 5197 net/netfilter/nf_tables_api.c newobj = nft_obj_init(ctx, type, attr); attr 5527 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 5545 net/netfilter/nf_tables_api.c attr = nla[NFTA_OBJ_HANDLE]; attr 5546 net/netfilter/nf_tables_api.c obj = nft_obj_lookup_byhandle(table, attr, objtype, genmask); attr 5548 net/netfilter/nf_tables_api.c attr = nla[NFTA_OBJ_NAME]; attr 5549 net/netfilter/nf_tables_api.c obj = nft_obj_lookup(net, table, attr, objtype, genmask); attr 5553 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 5557 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 5675 net/netfilter/nf_tables_api.c const struct nlattr *attr, attr 5683 net/netfilter/nf_tables_api.c nla_for_each_nested(tmp, attr, rem) { attr 5718 net/netfilter/nf_tables_api.c const struct nlattr *attr, attr 5727 net/netfilter/nf_tables_api.c err = nla_parse_nested_deprecated(tb, NFTA_FLOWTABLE_HOOK_MAX, attr, attr 5945 net/netfilter/nf_tables_api.c const struct nlattr *attr; attr 5962 net/netfilter/nf_tables_api.c attr = nla[NFTA_FLOWTABLE_HANDLE]; attr 5963 net/netfilter/nf_tables_api.c flowtable = nft_flowtable_lookup_byhandle(table, attr, genmask); attr 5965 net/netfilter/nf_tables_api.c attr = nla[NFTA_FLOWTABLE_NAME]; attr 5966 net/netfilter/nf_tables_api.c flowtable = nft_flowtable_lookup(table, attr, genmask); attr 5970 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 5974 net/netfilter/nf_tables_api.c NL_SET_BAD_ATTR(extack, attr); attr 7328 net/netfilter/nf_tables_api.c int nft_parse_u32_check(const struct nlattr *attr, int max, u32 *dest) attr 7332 net/netfilter/nf_tables_api.c val = ntohl(nla_get_be32(attr)); attr 7350 net/netfilter/nf_tables_api.c unsigned int nft_parse_register(const struct nlattr *attr) attr 7354 net/netfilter/nf_tables_api.c reg = ntohl(nla_get_be32(attr)); attr 7375 net/netfilter/nf_tables_api.c int nft_dump_register(struct sk_buff *skb, unsigned int attr, unsigned int reg) attr 7382 net/netfilter/nf_tables_api.c return nla_put_be32(skb, attr, htonl(reg)); attr 7640 net/netfilter/nf_tables_api.c int nft_data_dump(struct sk_buff *skb, int attr, const struct nft_data *data, attr 7646 net/netfilter/nf_tables_api.c nest = nla_nest_start_noflag(skb, attr); attr 199 net/netfilter/nfnetlink.c struct nlattr *attr = (void *)nlh + min_len; attr 210 net/netfilter/nfnetlink.c attr, attrlen, attr 416 net/netfilter/nfnetlink.c struct nlattr *attr = (void *)nlh + min_len; attr 427 net/netfilter/nfnetlink.c attr, attrlen, attr 511 net/netfilter/nfnetlink.c struct nlattr *attr = (void *)nlh + min_len; attr 526 net/netfilter/nfnetlink.c err = nla_parse_deprecated(cda, NFNL_BATCH_MAX, attr, attrlen, attr 240 net/netfilter/nfnetlink_acct.c const struct nlattr *const attr = cb->data; attr 245 net/netfilter/nfnetlink_acct.c if (!attr) attr 248 net/netfilter/nfnetlink_acct.c err = nla_parse_nested_deprecated(tb, NFACCT_FILTER_MAX, attr, attr 73 net/netfilter/nfnetlink_cthelper.c const struct nlattr *attr) attr 78 net/netfilter/nfnetlink_cthelper.c err = nla_parse_nested_deprecated(tb, NFCTH_TUPLE_MAX, attr, attr 96 net/netfilter/nfnetlink_cthelper.c nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct) attr 100 net/netfilter/nfnetlink_cthelper.c if (attr == NULL) attr 106 net/netfilter/nfnetlink_cthelper.c nla_memcpy(help->data, attr, sizeof(help->data)); attr 134 net/netfilter/nfnetlink_cthelper.c const struct nlattr *attr) attr 139 net/netfilter/nfnetlink_cthelper.c err = nla_parse_nested_deprecated(tb, NFCTH_POLICY_MAX, attr, attr 169 net/netfilter/nfnetlink_cthelper.c const struct nlattr *attr) attr 176 net/netfilter/nfnetlink_cthelper.c ret = nla_parse_nested_deprecated(tb, NFCTH_POLICY_SET_MAX, attr, attr 286 net/netfilter/nfnetlink_cthelper.c const struct nlattr *attr) attr 291 net/netfilter/nfnetlink_cthelper.c err = nla_parse_nested_deprecated(tb, NFCTH_POLICY_MAX, attr, attr 357 net/netfilter/nfnetlink_cthelper.c const struct nlattr *attr) attr 363 net/netfilter/nfnetlink_cthelper.c err = nla_parse_nested_deprecated(tb, NFCTH_POLICY_SET_MAX, attr, attr 48 net/netfilter/nfnetlink_cttimeout.c struct net *net, const struct nlattr *attr) attr 61 net/netfilter/nfnetlink_cttimeout.c attr, attr 192 net/netfilter/nft_compat.c static int nft_parse_compat(const struct nlattr *attr, u16 *proto, bool *inv) attr 198 net/netfilter/nft_compat.c err = nla_parse_nested_deprecated(tb, NFTA_RULE_COMPAT_MAX, attr, attr 269 net/netfilter/nft_compat.c static int nft_extension_dump_info(struct sk_buff *skb, int attr, attr 276 net/netfilter/nft_compat.c nla = nla_reserve(skb, attr, aligned_size); attr 795 net/netfilter/nft_ct.c struct net *net, const struct nlattr *attr) attr 808 net/netfilter/nft_ct.c attr, attr 163 net/netfilter/nft_tunnel.c const struct nlattr *attr, attr 169 net/netfilter/nft_tunnel.c err = nla_parse_nested_deprecated(tb, NFTA_TUNNEL_KEY_IP_MAX, attr, attr 192 net/netfilter/nft_tunnel.c const struct nlattr *attr, attr 198 net/netfilter/nft_tunnel.c err = nla_parse_nested_deprecated(tb, NFTA_TUNNEL_KEY_IP6_MAX, attr, attr 228 net/netfilter/nft_tunnel.c static int nft_tunnel_obj_vxlan_init(const struct nlattr *attr, attr 234 net/netfilter/nft_tunnel.c err = nla_parse_nested_deprecated(tb, NFTA_TUNNEL_KEY_VXLAN_MAX, attr, attr 257 net/netfilter/nft_tunnel.c static int nft_tunnel_obj_erspan_init(const struct nlattr *attr, attr 265 net/netfilter/nft_tunnel.c attr, nft_tunnel_opts_erspan_policy, attr 310 net/netfilter/nft_tunnel.c const struct nlattr *attr, attr 317 net/netfilter/nft_tunnel.c err = nla_parse_nested_deprecated(tb, NFTA_TUNNEL_KEY_OPTS_MAX, attr, attr 37 net/netfilter/xt_IDLETIMER.c struct device_attribute attr; attr 53 net/netfilter/xt_IDLETIMER.c if (!strcmp(label, entry->attr.attr.name)) attr 61 net/netfilter/xt_IDLETIMER.c struct device_attribute *attr, char *buf) attr 68 net/netfilter/xt_IDLETIMER.c timer = __idletimer_tg_find_by_label(attr->attr.name); attr 86 net/netfilter/xt_IDLETIMER.c sysfs_notify(idletimer_tg_kobj, NULL, timer->attr.attr.name); attr 93 net/netfilter/xt_IDLETIMER.c pr_debug("timer %s expired\n", timer->attr.attr.name); attr 128 net/netfilter/xt_IDLETIMER.c sysfs_attr_init(&info->timer->attr.attr); attr 129 net/netfilter/xt_IDLETIMER.c info->timer->attr.attr.name = kstrdup(info->label, GFP_KERNEL); attr 130 net/netfilter/xt_IDLETIMER.c if (!info->timer->attr.attr.name) { attr 134 net/netfilter/xt_IDLETIMER.c info->timer->attr.attr.mode = 0444; attr 135 net/netfilter/xt_IDLETIMER.c info->timer->attr.show = idletimer_tg_show; attr 137 net/netfilter/xt_IDLETIMER.c ret = sysfs_create_file(idletimer_tg_kobj, &info->timer->attr.attr); attr 156 net/netfilter/xt_IDLETIMER.c kfree(info->timer->attr.attr.name); attr 239 net/netfilter/xt_IDLETIMER.c sysfs_remove_file(idletimer_tg_kobj, &info->timer->attr.attr); attr 240 net/netfilter/xt_IDLETIMER.c kfree(info->timer->attr.attr.name); attr 1483 net/netlabel/netlabel_unlabeled.c secattr->attr.secid = netlbl_unlhsh_addr4_entry(addr4)->secid; attr 1496 net/netlabel/netlabel_unlabeled.c secattr->attr.secid = netlbl_unlhsh_addr6_entry(addr6)->secid; attr 1137 net/nfc/netlink.c struct nlattr *attr, *sdp_attrs[NFC_SDP_ATTR_MAX+1]; attr 1173 net/nfc/netlink.c nla_for_each_nested(attr, info->attrs[NFC_ATTR_LLC_SDP], rem) { attr 1175 net/nfc/netlink.c attr, nfc_sdp_genl_policy, attr 1596 net/nfc/netlink.c enum nfc_attrs attr, attr 1630 net/nfc/netlink.c enum nfc_attrs attr, attr 1639 net/nfc/netlink.c dev->cur_cmd_info->snd_seq, attr, attr 161 net/openvswitch/actions.c const struct nlattr *attr, int len); attr 911 net/openvswitch/actions.c struct sw_flow_key *key, const struct nlattr *attr, attr 923 net/openvswitch/actions.c for (a = nla_data(attr), rem = nla_len(attr); rem > 0; attr 968 net/openvswitch/actions.c struct sw_flow_key *key, const struct nlattr *attr, attr 973 net/openvswitch/actions.c int rem = nla_len(attr); attr 978 net/openvswitch/actions.c sample_arg = nla_data(attr); attr 999 net/openvswitch/actions.c struct sw_flow_key *key, const struct nlattr *attr, attr 1004 net/openvswitch/actions.c int rem = nla_len(attr); attr 1008 net/openvswitch/actions.c clone_arg = nla_data(attr); attr 1017 net/openvswitch/actions.c const struct nlattr *attr) attr 1019 net/openvswitch/actions.c struct ovs_action_hash *hash_act = nla_data(attr); attr 1147 net/openvswitch/actions.c const struct nlattr *attr, bool last) attr 1151 net/openvswitch/actions.c int rem = nla_len(attr); attr 1157 net/openvswitch/actions.c cpl_arg = nla_data(attr); attr 1182 net/openvswitch/actions.c const struct nlattr *attr, int len) attr 1187 net/openvswitch/actions.c for (a = attr, rem = len; rem > 0; attr 1223 net/openvswitch/actions.c output_userspace(dp, skb, key, a, attr, attr 1360 net/openvswitch/conntrack.c static int parse_nat(const struct nlattr *attr, attr 1369 net/openvswitch/conntrack.c nla_for_each_nested(a, attr, rem) { attr 1506 net/openvswitch/conntrack.c static int parse_ct(const struct nlattr *attr, struct ovs_conntrack_info *info, attr 1512 net/openvswitch/conntrack.c nla_for_each_nested(a, attr, rem) { attr 1628 net/openvswitch/conntrack.c bool ovs_ct_verify(struct net *net, enum ovs_key_attr attr) attr 1630 net/openvswitch/conntrack.c if (attr == OVS_KEY_ATTR_CT_STATE) attr 1633 net/openvswitch/conntrack.c attr == OVS_KEY_ATTR_CT_ZONE) attr 1636 net/openvswitch/conntrack.c attr == OVS_KEY_ATTR_CT_MARK) attr 1639 net/openvswitch/conntrack.c attr == OVS_KEY_ATTR_CT_LABELS) { attr 1648 net/openvswitch/conntrack.c int ovs_ct_copy_action(struct net *net, const struct nlattr *attr, attr 1669 net/openvswitch/conntrack.c err = parse_ct(attr, &ct_info, &helper, log); attr 18 net/openvswitch/conntrack.h bool ovs_ct_verify(struct net *, enum ovs_key_attr attr); attr 44 net/openvswitch/conntrack.h static inline bool ovs_ct_verify(struct net *net, int attr) attr 898 net/openvswitch/flow.c int ovs_flow_key_extract_userspace(struct net *net, const struct nlattr *attr, attr 906 net/openvswitch/flow.c err = parse_flow_nlattrs(attr, a, &attrs, log); attr 278 net/openvswitch/flow.h int ovs_flow_key_extract_userspace(struct net *net, const struct nlattr *attr, attr 461 net/openvswitch/flow_netlink.c static int __parse_flow_nlattrs(const struct nlattr *attr, attr 470 net/openvswitch/flow_netlink.c nla_for_each_nested(nla, attr, rem) { attr 506 net/openvswitch/flow_netlink.c static int parse_flow_mask_nlattrs(const struct nlattr *attr, attr 510 net/openvswitch/flow_netlink.c return __parse_flow_nlattrs(attr, a, attrsp, log, true); attr 513 net/openvswitch/flow_netlink.c int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], attr 516 net/openvswitch/flow_netlink.c return __parse_flow_nlattrs(attr, a, attrsp, log, false); attr 570 net/openvswitch/flow_netlink.c static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, attr 582 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { attr 653 net/openvswitch/flow_netlink.c static int ip_tun_from_nlattr(const struct nlattr *attr, attr 664 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { attr 1280 net/openvswitch/flow_netlink.c int nsh_hdr_from_nlattr(const struct nlattr *attr, attr 1294 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { attr 1334 net/openvswitch/flow_netlink.c int nsh_key_from_nlattr(const struct nlattr *attr, attr 1342 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { attr 1374 net/openvswitch/flow_netlink.c static int nsh_key_put_from_nlattr(const struct nlattr *attr, attr 1389 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { attr 1719 net/openvswitch/flow_netlink.c static void nlattr_set(struct nlattr *attr, u8 val, attr 1726 net/openvswitch/flow_netlink.c nla_for_each_nested(nla, attr, rem) { attr 1737 net/openvswitch/flow_netlink.c static void mask_set_nlattr(struct nlattr *attr, u8 val) attr 1739 net/openvswitch/flow_netlink.c nlattr_set(attr, val, ovs_key_lens); attr 1837 net/openvswitch/flow_netlink.c static size_t get_ufid_len(const struct nlattr *attr, bool log) attr 1841 net/openvswitch/flow_netlink.c if (!attr) attr 1844 net/openvswitch/flow_netlink.c len = nla_len(attr); attr 1847 net/openvswitch/flow_netlink.c nla_len(attr), MAX_UFID_LENGTH); attr 1857 net/openvswitch/flow_netlink.c bool ovs_nla_get_ufid(struct sw_flow_id *sfid, const struct nlattr *attr, attr 1860 net/openvswitch/flow_netlink.c sfid->ufid_len = get_ufid_len(attr, log); attr 1862 net/openvswitch/flow_netlink.c memcpy(sfid->ufid, nla_data(attr), sfid->ufid_len); attr 1885 net/openvswitch/flow_netlink.c u32 ovs_nla_get_ufid_flags(const struct nlattr *attr) attr 1887 net/openvswitch/flow_netlink.c return attr ? nla_get_u32(attr) : 0; attr 2211 net/openvswitch/flow_netlink.c const struct sw_flow_key *output, int attr, bool is_mask, attr 2217 net/openvswitch/flow_netlink.c nla = nla_nest_start_noflag(skb, attr); attr 2406 net/openvswitch/flow_netlink.c static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, attr 2411 net/openvswitch/flow_netlink.c static int validate_and_copy_sample(struct net *net, const struct nlattr *attr, attr 2424 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { attr 2477 net/openvswitch/flow_netlink.c const struct nlattr *attr, attr 2486 net/openvswitch/flow_netlink.c if (nla_len(attr) && nla_len(attr) < NLA_HDRLEN) attr 2493 net/openvswitch/flow_netlink.c exec = last || !actions_may_change_flow(attr); attr 2500 net/openvswitch/flow_netlink.c err = __ovs_nla_copy_actions(net, attr, key, sfa, attr 2556 net/openvswitch/flow_netlink.c static int validate_and_copy_set_tun(const struct nlattr *attr, attr 2570 net/openvswitch/flow_netlink.c opts_type = ip_tun_from_nlattr(nla_data(attr), &match, false, log); attr 2637 net/openvswitch/flow_netlink.c static bool validate_nsh(const struct nlattr *attr, bool is_mask, attr 2645 net/openvswitch/flow_netlink.c ret = nsh_key_put_from_nlattr(attr, &match, is_mask, attr 2834 net/openvswitch/flow_netlink.c static int validate_userspace(const struct nlattr *attr) attr 2844 net/openvswitch/flow_netlink.c error = nla_parse_nested_deprecated(a, OVS_USERSPACE_ATTR_MAX, attr, attr 2863 net/openvswitch/flow_netlink.c const struct nlattr *attr, attr 2876 net/openvswitch/flow_netlink.c nla_data(attr), nla_len(attr), attr 2952 net/openvswitch/flow_netlink.c static int __ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, attr 2961 net/openvswitch/flow_netlink.c nla_for_each_nested(a, attr, rem) { attr 3217 net/openvswitch/flow_netlink.c int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, attr 3223 net/openvswitch/flow_netlink.c *sfa = nla_alloc_flow_actions(min(nla_len(attr), MAX_ACTIONS_BUFSIZE)); attr 3227 net/openvswitch/flow_netlink.c (*sfa)->orig_len = nla_len(attr); attr 3228 net/openvswitch/flow_netlink.c err = __ovs_nla_copy_actions(net, attr, key, sfa, key->eth.type, attr 3236 net/openvswitch/flow_netlink.c static int sample_action_to_attr(const struct nlattr *attr, attr 3240 net/openvswitch/flow_netlink.c int err = 0, rem = nla_len(attr); attr 3248 net/openvswitch/flow_netlink.c sample_arg = nla_data(attr); attr 3277 net/openvswitch/flow_netlink.c static int clone_action_to_attr(const struct nlattr *attr, attr 3281 net/openvswitch/flow_netlink.c int err = 0, rem = nla_len(attr); attr 3287 net/openvswitch/flow_netlink.c err = ovs_nla_put_actions(nla_data(attr), rem, skb); attr 3297 net/openvswitch/flow_netlink.c static int check_pkt_len_action_to_attr(const struct nlattr *attr, attr 3303 net/openvswitch/flow_netlink.c int err = 0, rem = nla_len(attr); attr 3312 net/openvswitch/flow_netlink.c cpl_arg = nla_data(attr); attr 3421 net/openvswitch/flow_netlink.c int ovs_nla_put_actions(const struct nlattr *attr, int len, struct sk_buff *skb) attr 3426 net/openvswitch/flow_netlink.c nla_for_each_attr(a, attr, len, rem) { attr 34 net/openvswitch/flow_netlink.h int attr, bool is_mask, struct sk_buff *); attr 35 net/openvswitch/flow_netlink.h int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], attr 55 net/openvswitch/flow_netlink.h u32 ovs_nla_get_ufid_flags(const struct nlattr *attr); attr 57 net/openvswitch/flow_netlink.h int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, attr 62 net/openvswitch/flow_netlink.h int ovs_nla_put_actions(const struct nlattr *attr, attr 68 net/openvswitch/flow_netlink.h int nsh_key_from_nlattr(const struct nlattr *attr, struct ovs_key_nsh *nsh, attr 70 net/openvswitch/flow_netlink.h int nsh_hdr_from_nlattr(const struct nlattr *attr, struct nshhdr *nh, attr 224 net/openvswitch/meter.c struct nlattr *attr[OVS_BAND_ATTR_MAX + 1]; attr 227 net/openvswitch/meter.c err = nla_parse_deprecated((struct nlattr **)&attr, attr 233 net/openvswitch/meter.c if (!attr[OVS_BAND_ATTR_TYPE] || attr 234 net/openvswitch/meter.c !attr[OVS_BAND_ATTR_RATE] || attr 235 net/openvswitch/meter.c !attr[OVS_BAND_ATTR_BURST]) { attr 240 net/openvswitch/meter.c band->type = nla_get_u32(attr[OVS_BAND_ATTR_TYPE]); attr 241 net/openvswitch/meter.c band->rate = nla_get_u32(attr[OVS_BAND_ATTR_RATE]); attr 247 net/openvswitch/meter.c band->burst_size = nla_get_u32(attr[OVS_BAND_ATTR_BURST]); attr 51 net/openvswitch/vport-vxlan.c static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, attr 57 net/openvswitch/vport-vxlan.c if (nla_len(attr) < sizeof(struct nlattr)) attr 60 net/openvswitch/vport-vxlan.c err = nla_parse_nested_deprecated(exts, OVS_VXLAN_EXT_MAX, attr, attr 84 net/rds/ib_cm.c rds_ib_tune_rnr(struct rds_ib_connection *ic, struct ib_qp_attr *attr) attr 88 net/rds/ib_cm.c attr->min_rnr_timer = IB_RNR_TIMER_000_32; attr 89 net/rds/ib_cm.c ret = ib_modify_qp(ic->i_cm_id->qp, attr, IB_QP_MIN_RNR_TIMER); attr 450 net/rds/ib_cm.c struct ib_qp_init_attr attr; attr 527 net/rds/ib_cm.c memset(&attr, 0, sizeof(attr)); attr 528 net/rds/ib_cm.c attr.event_handler = rds_ib_qp_event_handler; attr 529 net/rds/ib_cm.c attr.qp_context = conn; attr 531 net/rds/ib_cm.c attr.cap.max_send_wr = ic->i_send_ring.w_nr + fr_queue_space + 1; attr 532 net/rds/ib_cm.c attr.cap.max_recv_wr = ic->i_recv_ring.w_nr + 1; attr 533 net/rds/ib_cm.c attr.cap.max_send_sge = rds_ibdev->max_sge; attr 534 net/rds/ib_cm.c attr.cap.max_recv_sge = RDS_IB_RECV_SGE; attr 535 net/rds/ib_cm.c attr.sq_sig_type = IB_SIGNAL_REQ_WR; attr 536 net/rds/ib_cm.c attr.qp_type = IB_QPT_RC; attr 537 net/rds/ib_cm.c attr.send_cq = ic->i_send_cq; attr 538 net/rds/ib_cm.c attr.recv_cq = ic->i_recv_cq; attr 544 net/rds/ib_cm.c ret = rdma_create_qp(ic->i_cm_id, ic->i_pd, &attr); attr 669 net/rfkill/core.c static ssize_t name_show(struct device *dev, struct device_attribute *attr, attr 678 net/rfkill/core.c static ssize_t type_show(struct device *dev, struct device_attribute *attr, attr 687 net/rfkill/core.c static ssize_t index_show(struct device *dev, struct device_attribute *attr, attr 697 net/rfkill/core.c struct device_attribute *attr, char *buf) attr 705 net/rfkill/core.c static ssize_t hard_show(struct device *dev, struct device_attribute *attr, attr 714 net/rfkill/core.c static ssize_t soft_show(struct device *dev, struct device_attribute *attr, attr 722 net/rfkill/core.c static ssize_t soft_store(struct device *dev, struct device_attribute *attr, attr 757 net/rfkill/core.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, attr 765 net/rfkill/core.c static ssize_t state_store(struct device *dev, struct device_attribute *attr, attr 792 net/rfkill/core.c &dev_attr_name.attr, attr 793 net/rfkill/core.c &dev_attr_type.attr, attr 794 net/rfkill/core.c &dev_attr_index.attr, attr 795 net/rfkill/core.c &dev_attr_persistent.attr, attr 796 net/rfkill/core.c &dev_attr_state.attr, attr 797 net/rfkill/core.c &dev_attr_soft.attr, attr 798 net/rfkill/core.c &dev_attr_hard.attr, attr 111 net/sched/act_mpls.c static int valid_label(const struct nlattr *attr, attr 114 net/sched/act_mpls.c const u32 *label = nla_data(attr); attr 123 net/sched/act_tunnel_key.c const struct nlattr *attr, *head = nla_data(nla); attr 130 net/sched/act_tunnel_key.c nla_for_each_attr(attr, head, len, rem) { attr 131 net/sched/act_tunnel_key.c switch (nla_type(attr)) { attr 133 net/sched/act_tunnel_key.c opt_len = tunnel_key_copy_geneve_opt(attr, dst, attr 2819 net/sched/sch_cake.c #define PUT_STAT_U32(attr, data) do { \ attr 2820 net/sched/sch_cake.c if (nla_put_u32(d->skb, TCA_CAKE_STATS_ ## attr, data)) \ attr 2823 net/sched/sch_cake.c #define PUT_STAT_U64(attr, data) do { \ attr 2824 net/sched/sch_cake.c if (nla_put_u64_64bit(d->skb, TCA_CAKE_STATS_ ## attr, \ attr 2845 net/sched/sch_cake.c #define PUT_TSTAT_U32(attr, data) do { \ attr 2846 net/sched/sch_cake.c if (nla_put_u32(d->skb, TCA_CAKE_TIN_STATS_ ## attr, data)) \ attr 2849 net/sched/sch_cake.c #define PUT_TSTAT_U64(attr, data) do { \ attr 2850 net/sched/sch_cake.c if (nla_put_u64_64bit(d->skb, TCA_CAKE_TIN_STATS_ ## attr, \ attr 2982 net/sched/sch_cake.c #define PUT_STAT_U32(attr, data) do { \ attr 2983 net/sched/sch_cake.c if (nla_put_u32(d->skb, TCA_CAKE_STATS_ ## attr, data)) \ attr 2986 net/sched/sch_cake.c #define PUT_STAT_S32(attr, data) do { \ attr 2987 net/sched/sch_cake.c if (nla_put_s32(d->skb, TCA_CAKE_STATS_ ## attr, data)) \ attr 547 net/sched/sch_gred.c const struct nlattr *attr; attr 550 net/sched/sch_gred.c nla_for_each_nested(attr, vqs, rem) { attr 551 net/sched/sch_gred.c switch (nla_type(attr)) { attr 553 net/sched/sch_gred.c gred_vq_apply(table, attr); attr 606 net/sched/sch_gred.c const struct nlattr *attr; attr 614 net/sched/sch_gred.c nla_for_each_nested(attr, vqs, rem) { attr 615 net/sched/sch_gred.c switch (nla_type(attr)) { attr 617 net/sched/sch_gred.c err = gred_vq_validate(table, cdp, attr, extack); attr 1254 net/sched/sch_hfsc.c hfsc_dump_sc(struct sk_buff *skb, int attr, struct internal_sc *sc) attr 1261 net/sched/sch_hfsc.c if (nla_put(skb, attr, sizeof(tsc), &tsc)) attr 143 net/sched/sch_mqprio.c struct nlattr *attr; attr 191 net/sched/sch_mqprio.c nla_for_each_nested(attr, tb[TCA_MQPRIO_MIN_RATE64], attr 193 net/sched/sch_mqprio.c if (nla_type(attr) != TCA_MQPRIO_MIN_RATE64) attr 197 net/sched/sch_mqprio.c priv->min_rate[i] = *(u64 *)nla_data(attr); attr 207 net/sched/sch_mqprio.c nla_for_each_nested(attr, tb[TCA_MQPRIO_MAX_RATE64], attr 209 net/sched/sch_mqprio.c if (nla_type(attr) != TCA_MQPRIO_MAX_RATE64) attr 213 net/sched/sch_mqprio.c priv->max_rate[i] = *(u64 *)nla_data(attr); attr 777 net/sched/sch_netem.c const struct nlattr *attr) attr 779 net/sched/sch_netem.c size_t n = nla_len(attr)/sizeof(__s16); attr 780 net/sched/sch_netem.c const __s16 *data = nla_data(attr); attr 806 net/sched/sch_netem.c static void get_slot(struct netem_sched_data *q, const struct nlattr *attr) attr 808 net/sched/sch_netem.c const struct tc_netem_slot *c = nla_data(attr); attr 824 net/sched/sch_netem.c static void get_correlation(struct netem_sched_data *q, const struct nlattr *attr) attr 826 net/sched/sch_netem.c const struct tc_netem_corr *c = nla_data(attr); attr 833 net/sched/sch_netem.c static void get_reorder(struct netem_sched_data *q, const struct nlattr *attr) attr 835 net/sched/sch_netem.c const struct tc_netem_reorder *r = nla_data(attr); attr 841 net/sched/sch_netem.c static void get_corrupt(struct netem_sched_data *q, const struct nlattr *attr) attr 843 net/sched/sch_netem.c const struct tc_netem_corrupt *r = nla_data(attr); attr 849 net/sched/sch_netem.c static void get_rate(struct netem_sched_data *q, const struct nlattr *attr) attr 851 net/sched/sch_netem.c const struct tc_netem_rate *r = nla_data(attr); attr 863 net/sched/sch_netem.c static int get_loss_clg(struct netem_sched_data *q, const struct nlattr *attr) attr 868 net/sched/sch_netem.c nla_for_each_nested(la, attr, rem) { attr 1385 net/sched/sch_taprio.c static int taprio_new_flags(const struct nlattr *attr, u32 old, attr 1390 net/sched/sch_taprio.c if (attr) attr 1391 net/sched/sch_taprio.c new = nla_get_u32(attr); attr 77 net/sctp/diag.c struct nlattr *attr; attr 83 net/sctp/diag.c attr = nla_reserve(skb, INET_DIAG_LOCALS, addrlen * addrcnt); attr 84 net/sctp/diag.c if (!attr) attr 87 net/sctp/diag.c info = nla_data(attr); attr 102 net/sctp/diag.c struct nlattr *attr; attr 105 net/sctp/diag.c attr = nla_reserve(skb, INET_DIAG_PEERS, attr 107 net/sctp/diag.c if (!attr) attr 110 net/sctp/diag.c info = nla_data(attr); attr 186 net/sctp/diag.c struct nlattr *attr; attr 188 net/sctp/diag.c attr = nla_reserve_64bit(skb, INET_DIAG_INFO, attr 191 net/sctp/diag.c if (!attr) attr 194 net/sctp/diag.c info = nla_data(attr); attr 148 net/smc/smc_ib.c const struct ib_gid_attr *attr; attr 151 net/smc/smc_ib.c attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); attr 152 net/smc/smc_ib.c if (IS_ERR(attr)) attr 155 net/smc/smc_ib.c rc = rdma_read_gid_l2_fields(attr, NULL, smcibdev->mac[ibport - 1]); attr 156 net/smc/smc_ib.c rdma_put_gid_attr(attr); attr 182 net/smc/smc_ib.c const struct ib_gid_attr *attr; attr 187 net/smc/smc_ib.c attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, i); attr 188 net/smc/smc_ib.c if (IS_ERR(attr)) attr 192 net/smc/smc_ib.c ndev = rdma_read_gid_attr_ndev_rcu(attr); attr 194 net/smc/smc_ib.c ((!vlan_id && !is_vlan_dev(attr->ndev)) || attr 195 net/smc/smc_ib.c (vlan_id && is_vlan_dev(attr->ndev) && attr 196 net/smc/smc_ib.c vlan_dev_vlan_id(attr->ndev) == vlan_id)) && attr 197 net/smc/smc_ib.c attr->gid_type == IB_GID_TYPE_ROCE) { attr 200 net/smc/smc_ib.c memcpy(gid, &attr->gid, SMC_GID_SIZE); attr 202 net/smc/smc_ib.c *sgid_index = attr->index; attr 203 net/smc/smc_ib.c rdma_put_gid_attr(attr); attr 207 net/smc/smc_ib.c rdma_put_gid_attr(attr); attr 432 net/smc/smc_wr.c struct ib_qp_attr *attr = &lnk->qp_attr; attr 435 net/smc/smc_wr.c memset(attr, 0, sizeof(*attr)); attr 437 net/smc/smc_wr.c ib_query_qp(lnk->roce_qp, attr, attr 378 net/sunrpc/auth_gss/gss_rpc_xdr.c struct gssx_name_attr *attr) attr 383 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &attr->attr); attr 388 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &attr->value); attr 393 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_dec_opt_array(xdr, &attr->extensions); attr 417 net/sunrpc/auth_gss/gss_rpc_xdr.c struct gssx_name_attr dummy = { .attr = {.len = 0} }; attr 61 net/sunrpc/auth_gss/gss_rpc_xdr.h gssx_buffer attr; attr 103 net/switchdev/switchdev.c const struct switchdev_attr *attr, attr 110 net/switchdev/switchdev.c .attr = attr, attr 130 net/switchdev/switchdev.c const struct switchdev_attr *attr) attr 143 net/switchdev/switchdev.c err = switchdev_port_attr_notify(SWITCHDEV_PORT_ATTR_SET, dev, attr, attr 154 net/switchdev/switchdev.c err = switchdev_port_attr_notify(SWITCHDEV_PORT_ATTR_SET, dev, attr, attr 157 net/switchdev/switchdev.c dev->name, attr->id); attr 165 net/switchdev/switchdev.c const struct switchdev_attr *attr = data; attr 168 net/switchdev/switchdev.c err = switchdev_port_attr_set_now(dev, attr); attr 171 net/switchdev/switchdev.c err, attr->id); attr 172 net/switchdev/switchdev.c if (attr->complete) attr 173 net/switchdev/switchdev.c attr->complete(dev, err, attr->complete_priv); attr 177 net/switchdev/switchdev.c const struct switchdev_attr *attr) attr 179 net/switchdev/switchdev.c return switchdev_deferred_enqueue(dev, attr, sizeof(*attr), attr 197 net/switchdev/switchdev.c const struct switchdev_attr *attr) attr 199 net/switchdev/switchdev.c if (attr->flags & SWITCHDEV_F_DEFER) attr 200 net/switchdev/switchdev.c return switchdev_port_attr_set_defer(dev, attr); attr 202 net/switchdev/switchdev.c return switchdev_port_attr_set_now(dev, attr); attr 558 net/switchdev/switchdev.c const struct switchdev_attr *attr, attr 567 net/switchdev/switchdev.c return set_cb(dev, port_attr_info->attr, attr 592 net/switchdev/switchdev.c const struct switchdev_attr *attr, attr 236 net/tipc/bearer.c struct nlattr *attr[]) attr 304 net/tipc/bearer.c res = m->enable_media(net, b, attr); attr 377 net/tipc/bearer.c struct nlattr *attr[]) attr 108 net/tipc/bearer.h struct nlattr *attr[]); attr 272 net/tipc/netlink.c int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr) attr 276 net/tipc/netlink.c *attr = genl_family_attrbuf(&tipc_genl_family); attr 277 net/tipc/netlink.c if (!*attr) attr 280 net/tipc/netlink.c return nlmsg_parse_deprecated(nlh, GENL_HDRLEN, *attr, maxattr, attr 617 net/tipc/udp_media.c int tipc_udp_nl_bearer_add(struct tipc_bearer *b, struct nlattr *attr) attr 624 net/tipc/udp_media.c if (nla_parse_nested_deprecated(opts, TIPC_NLA_UDP_MAX, attr, tipc_nl_udp_policy, NULL)) attr 44 net/tipc/udp_media.h int tipc_udp_nl_bearer_add(struct tipc_bearer *b, struct nlattr *attr); attr 63 net/unix/diag.c struct nlattr *attr; attr 70 net/unix/diag.c attr = nla_reserve(nlskb, UNIX_DIAG_ICONS, attr 72 net/unix/diag.c if (!attr) attr 75 net/unix/diag.c buf = nla_data(attr); attr 353 net/wimax/op-msg.c struct nlattr *attr = info->attrs[WIMAX_GNL_MSG_PIPE_NAME]; attr 354 net/wimax/op-msg.c size_t attr_len = nla_len(attr); attr 357 net/wimax/op-msg.c pipe_name = kstrndup(nla_data(attr), attr_len + 1, GFP_KERNEL); attr 204 net/wireless/nl80211.c static int validate_beacon_head(const struct nlattr *attr, attr 207 net/wireless/nl80211.c const u8 *data = nla_data(attr); attr 208 net/wireless/nl80211.c unsigned int len = nla_len(attr); attr 232 net/wireless/nl80211.c NL_SET_ERR_MSG_ATTR(extack, attr, "malformed beacon head"); attr 236 net/wireless/nl80211.c static int validate_ie_attr(const struct nlattr *attr, attr 239 net/wireless/nl80211.c const u8 *data = nla_data(attr); attr 240 net/wireless/nl80211.c unsigned int len = nla_len(attr); attr 250 net/wireless/nl80211.c NL_SET_ERR_MSG_ATTR(extack, attr, "malformed information elements"); attr 998 net/wireless/nl80211.c #define PUT_TXQVAL_U32(attr, memb) do { \ attr 999 net/wireless/nl80211.c if (txqstats->filled & BIT(NL80211_TXQ_STATS_ ## attr) && \ attr 1000 net/wireless/nl80211.c nla_put_u32(msg, NL80211_TXQ_STATS_ ## attr, txqstats->memb)) \ attr 1319 net/wireless/nl80211.c static int nl80211_put_iftypes(struct sk_buff *msg, u32 attr, u16 ifmodes) attr 1321 net/wireless/nl80211.c struct nlattr *nl_modes = nla_nest_start_noflag(msg, attr); attr 2258 net/wireless/nl80211.c void *attr; attr 2260 net/wireless/nl80211.c attr = nla_nest_start(msg, NL80211_ATTR_MAC_ADDRS); attr 2261 net/wireless/nl80211.c if (!attr) attr 2269 net/wireless/nl80211.c nla_nest_end(msg, attr); attr 4024 net/wireless/nl80211.c struct nlattr *attr; attr 4027 net/wireless/nl80211.c nla_for_each_nested(attr, nl_attr, tmp) { attr 4028 net/wireless/nl80211.c if (nla_len(attr) != ETH_ALEN) attr 4046 net/wireless/nl80211.c struct nlattr *attr; attr 4075 net/wireless/nl80211.c nla_for_each_nested(attr, info->attrs[NL80211_ATTR_MAC_ADDRS], tmp) { attr 4076 net/wireless/nl80211.c memcpy(acl->mac_addrs[i].addr, nla_data(attr), ETH_ALEN); attr 4952 net/wireless/nl80211.c bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info, int attr) attr 4959 net/wireless/nl80211.c rate = nla_nest_start_noflag(msg, attr); attr 5040 net/wireless/nl80211.c void *attr; attr 5046 net/wireless/nl80211.c attr = nla_nest_start_noflag(msg, id); attr 5047 net/wireless/nl80211.c if (!attr) attr 5058 net/wireless/nl80211.c nla_nest_end(msg, attr); attr 5087 net/wireless/nl80211.c #define PUT_SINFO(attr, memb, type) do { \ attr 5089 net/wireless/nl80211.c if (sinfo->filled & BIT_ULL(NL80211_STA_INFO_ ## attr) && \ attr 5090 net/wireless/nl80211.c nla_put_ ## type(msg, NL80211_STA_INFO_ ## attr, \ attr 5094 net/wireless/nl80211.c #define PUT_SINFO_U64(attr, memb) do { \ attr 5095 net/wireless/nl80211.c if (sinfo->filled & BIT_ULL(NL80211_STA_INFO_ ## attr) && \ attr 5096 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_STA_INFO_ ## attr, \ attr 5235 net/wireless/nl80211.c #define PUT_TIDVAL_U64(attr, memb) do { \ attr 5236 net/wireless/nl80211.c if (tidstats->filled & BIT(NL80211_TID_STATS_ ## attr) && \ attr 5237 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_TID_STATS_ ## attr, \ attr 6714 net/wireless/nl80211.c #define FILL_IN_MESH_PARAM_IF_SET(tb, cfg, param, mask, attr, fn) \ attr 6716 net/wireless/nl80211.c if (tb[attr]) { \ attr 6717 net/wireless/nl80211.c cfg->param = fn(tb[attr]); \ attr 6718 net/wireless/nl80211.c mask |= BIT((attr) - 1); \ attr 7303 net/wireless/nl80211.c struct nlattr *attr[NL80211_BSS_SELECT_ATTR_MAX + 1]; attr 7314 net/wireless/nl80211.c err = nla_parse_nested_deprecated(attr, NL80211_BSS_SELECT_ATTR_MAX, attr 7322 net/wireless/nl80211.c if (attr[i]) { attr 7331 net/wireless/nl80211.c if (attr[NL80211_BSS_SELECT_ATTR_RSSI]) attr 7334 net/wireless/nl80211.c if (attr[NL80211_BSS_SELECT_ATTR_BAND_PREF]) { attr 7337 net/wireless/nl80211.c nla_get_u32(attr[NL80211_BSS_SELECT_ATTR_BAND_PREF]); attr 7342 net/wireless/nl80211.c if (attr[NL80211_BSS_SELECT_ATTR_RSSI_ADJUST]) { attr 7345 net/wireless/nl80211.c adj_param = nla_data(attr[NL80211_BSS_SELECT_ATTR_RSSI_ADJUST]); attr 7506 net/wireless/nl80211.c struct nlattr *attr; attr 7536 net/wireless/nl80211.c nla_for_each_nested(attr, info->attrs[NL80211_ATTR_SCAN_SSIDS], tmp) attr 7576 net/wireless/nl80211.c nla_for_each_nested(attr, info->attrs[NL80211_ATTR_SCAN_FREQUENCIES], tmp) { attr 7579 net/wireless/nl80211.c chan = ieee80211_get_channel(wiphy, nla_get_u32(attr)); attr 7644 net/wireless/nl80211.c nla_for_each_nested(attr, info->attrs[NL80211_ATTR_SCAN_SSIDS], tmp) { attr 7645 net/wireless/nl80211.c if (nla_len(attr) > IEEE80211_MAX_SSID_LEN) { attr 7649 net/wireless/nl80211.c request->ssids[i].ssid_len = nla_len(attr); attr 7650 net/wireless/nl80211.c memcpy(request->ssids[i].ssid, nla_data(attr), nla_len(attr)); attr 7668 net/wireless/nl80211.c nla_for_each_nested(attr, attr 7671 net/wireless/nl80211.c enum nl80211_band band = nla_type(attr); attr 7682 net/wireless/nl80211.c nla_data(attr), attr 7683 net/wireless/nl80211.c nla_len(attr), attr 7775 net/wireless/nl80211.c struct nlattr *attr; attr 7803 net/wireless/nl80211.c nla_for_each_nested(attr, attrs[NL80211_ATTR_SCHED_SCAN_PLANS], tmp) { attr 7811 net/wireless/nl80211.c attr, nl80211_plan_policy, attr 7860 net/wireless/nl80211.c struct nlattr *attr; attr 7877 net/wireless/nl80211.c nla_for_each_nested(attr, tb_band_rssi, tmp) { attr 7878 net/wireless/nl80211.c enum nl80211_band band = nla_type(attr); attr 7883 net/wireless/nl80211.c match_sets->per_band_rssi_thold[band] = nla_get_s32(attr); attr 7894 net/wireless/nl80211.c struct nlattr *attr; attr 7911 net/wireless/nl80211.c nla_for_each_nested(attr, attrs[NL80211_ATTR_SCAN_SSIDS], attr 7928 net/wireless/nl80211.c nla_for_each_nested(attr, attr 7935 net/wireless/nl80211.c attr, attr 7981 net/wireless/nl80211.c nla_for_each_nested(attr, attr 8052 net/wireless/nl80211.c nla_for_each_nested(attr, attr 8057 net/wireless/nl80211.c chan = ieee80211_get_channel(wiphy, nla_get_u32(attr)); attr 8101 net/wireless/nl80211.c nla_for_each_nested(attr, attrs[NL80211_ATTR_SCAN_SSIDS], attr 8103 net/wireless/nl80211.c if (nla_len(attr) > IEEE80211_MAX_SSID_LEN) { attr 8107 net/wireless/nl80211.c request->ssids[i].ssid_len = nla_len(attr); attr 8108 net/wireless/nl80211.c memcpy(request->ssids[i].ssid, nla_data(attr), attr 8109 net/wireless/nl80211.c nla_len(attr)); attr 8116 net/wireless/nl80211.c nla_for_each_nested(attr, attr 8123 net/wireless/nl80211.c attr, attr 9633 net/wireless/nl80211.c enum nl80211_attrs attr, attr 9673 net/wireless/nl80211.c data = nla_nest_start_noflag(skb, attr); attr 9691 net/wireless/nl80211.c enum nl80211_attrs attr, attr 9717 net/wireless/nl80211.c cmd, attr, info, gfp); attr 11378 net/wireless/nl80211.c struct nlattr *attr, attr 11392 net/wireless/nl80211.c err = nla_parse_nested_deprecated(tb, MAX_NL80211_WOWLAN_TCP, attr, attr 11523 net/wireless/nl80211.c struct nlattr *attr, attr 11538 net/wireless/nl80211.c err = nla_parse_nested_deprecated(tb, NL80211_ATTR_MAX, attr, attr 12281 net/wireless/nl80211.c struct nlattr *attr; attr 12284 net/wireless/nl80211.c nla_for_each_nested(attr, filter_attr, rem) { attr 12285 net/wireless/nl80211.c len += nla_len(attr); attr 12299 net/wireless/nl80211.c struct nlattr *attr; attr 12314 net/wireless/nl80211.c nla_for_each_nested(attr, attr_filter, rem) { attr 12315 net/wireless/nl80211.c filter[i].filter = nla_memdup(attr, GFP_KERNEL); attr 12316 net/wireless/nl80211.c filter[i].len = nla_len(attr); attr 12480 net/wireless/nl80211.c struct nlattr *attr, *mac_attr = attr 12504 net/wireless/nl80211.c nla_for_each_nested(attr, mac_attr, rem) attr 12505 net/wireless/nl80211.c memcpy(func->srf_macs[i++].addr, nla_data(attr), attr 12881 net/wireless/nl80211.c struct nlattr *attr, attr 12885 net/wireless/nl80211.c if (attr->nla_type & NLA_F_NESTED) { attr 12886 net/wireless/nl80211.c NL_SET_ERR_MSG_ATTR(extack, attr, attr 12894 net/wireless/nl80211.c if (!(attr->nla_type & NLA_F_NESTED)) { attr 12895 net/wireless/nl80211.c NL_SET_ERR_MSG_ATTR(extack, attr, "expected nested data"); attr 12899 net/wireless/nl80211.c return nl80211_validate_nested(attr, vcmd->maxattr, vcmd->policy, attr 13180 net/wireless/nl80211.c enum nl80211_attrs attr, attr 13191 net/wireless/nl80211.c cmd, attr, NULL, GFP_KERNEL); attr 16193 net/wireless/nl80211.c struct nlattr *attr; attr 16210 net/wireless/nl80211.c attr = nla_nest_start_noflag(msg, NL80211_ATTR_PMKSA_CANDIDATE); attr 16211 net/wireless/nl80211.c if (!attr) attr 16220 net/wireless/nl80211.c nla_nest_end(msg, attr); attr 19 net/wireless/nl80211.h int attr); attr 350 net/wireless/pmsr.c #define PUT(tp, attr, val) \ attr 353 net/wireless/pmsr.c NL80211_PMSR_FTM_RESP_ATTR_##attr, \ attr 358 net/wireless/pmsr.c #define PUTOPT(tp, attr, val) \ attr 361 net/wireless/pmsr.c PUT(tp, attr, val); \ attr 364 net/wireless/pmsr.c #define PUT_U64(attr, val) \ attr 367 net/wireless/pmsr.c NL80211_PMSR_FTM_RESP_ATTR_##attr,\ attr 373 net/wireless/pmsr.c #define PUTOPT_U64(attr, val) \ attr 376 net/wireless/pmsr.c PUT_U64(attr, val); \ attr 28 net/wireless/sysfs.c struct device_attribute *attr, \ attr 40 net/wireless/sysfs.c struct device_attribute *attr, attr 50 net/wireless/sysfs.c struct device_attribute *attr, attr 68 net/wireless/sysfs.c &dev_attr_index.attr, attr 69 net/wireless/sysfs.c &dev_attr_macaddress.attr, attr 70 net/wireless/sysfs.c &dev_attr_address_mask.attr, attr 71 net/wireless/sysfs.c &dev_attr_addresses.attr, attr 72 net/wireless/sysfs.c &dev_attr_name.attr, attr 1319 net/wireless/util.c enum ieee80211_p2p_attr_id attr, attr 1382 net/wireless/util.c desired_attr = iedata[0] == attr; attr 816 net/xfrm/xfrm_user.c struct nlattr *attr; attr 819 net/xfrm/xfrm_user.c attr = nla_reserve(skb, XFRMA_SEC_CTX, ctx_size); attr 820 net/xfrm/xfrm_user.c if (attr == NULL) attr 823 net/xfrm/xfrm_user.c uctx = nla_data(attr); attr 837 net/xfrm/xfrm_user.c struct nlattr *attr; attr 839 net/xfrm/xfrm_user.c attr = nla_reserve(skb, XFRMA_OFFLOAD_DEV, sizeof(*xuo)); attr 840 net/xfrm/xfrm_user.c if (attr == NULL) attr 843 net/xfrm/xfrm_user.c xuo = nla_data(attr); attr 2859 net/xfrm/xfrm_user.c struct nlattr *attr; attr 2868 net/xfrm/xfrm_user.c attr = nla_reserve(skb, XFRMA_SA, sizeof(*p)); attr 2870 net/xfrm/xfrm_user.c if (attr == NULL) attr 2873 net/xfrm/xfrm_user.c p = nla_data(attr); attr 3128 net/xfrm/xfrm_user.c struct nlattr *attr; attr 3138 net/xfrm/xfrm_user.c attr = nla_reserve(skb, XFRMA_POLICY, sizeof(*p)); attr 3140 net/xfrm/xfrm_user.c if (attr == NULL) attr 3143 net/xfrm/xfrm_user.c p = nla_data(attr); attr 94 samples/bpf/bpf_load.c struct perf_event_attr attr = {}; attr 96 samples/bpf/bpf_load.c attr.type = PERF_TYPE_TRACEPOINT; attr 97 samples/bpf/bpf_load.c attr.sample_type = PERF_SAMPLE_RAW; attr 98 samples/bpf/bpf_load.c attr.sample_period = 1; attr 99 samples/bpf/bpf_load.c attr.wakeup_events = 1; attr 241 samples/bpf/bpf_load.c attr.config = id; attr 243 samples/bpf/bpf_load.c efd = sys_perf_event_open(&attr, -1/*pid*/, 0/*cpu*/, -1/*group_fd*/, 0); attr 127 samples/bpf/task_fd_query_user.c struct perf_event_attr attr = {}; attr 136 samples/bpf/task_fd_query_user.c attr.sample_period = 1; attr 137 samples/bpf/task_fd_query_user.c attr.wakeup_events = 1; attr 139 samples/bpf/task_fd_query_user.c attr.config |= 1 << is_return_bit; attr 142 samples/bpf/task_fd_query_user.c attr.config1 = ptr_to_u64((void *)name); attr 143 samples/bpf/task_fd_query_user.c attr.config2 = offset; attr 145 samples/bpf/task_fd_query_user.c attr.config1 = 0; attr 146 samples/bpf/task_fd_query_user.c attr.config2 = addr; attr 148 samples/bpf/task_fd_query_user.c attr.size = sizeof(attr); attr 149 samples/bpf/task_fd_query_user.c attr.type = type; attr 151 samples/bpf/task_fd_query_user.c fd = sys_perf_event_open(&attr, -1, 0, -1, 0); attr 219 samples/bpf/task_fd_query_user.c struct perf_event_attr attr = {}; attr 253 samples/bpf/task_fd_query_user.c attr.config = strtol(buf, NULL, 0); attr 254 samples/bpf/task_fd_query_user.c attr.type = PERF_TYPE_TRACEPOINT; attr 255 samples/bpf/task_fd_query_user.c attr.sample_period = 1; attr 256 samples/bpf/task_fd_query_user.c attr.wakeup_events = 1; attr 257 samples/bpf/task_fd_query_user.c kfd = sys_perf_event_open(&attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); attr 137 samples/bpf/trace_event_user.c static void test_perf_event_all_cpu(struct perf_event_attr *attr) attr 144 samples/bpf/trace_event_user.c attr->inherit = 0; attr 148 samples/bpf/trace_event_user.c pmu_fd[i] = sys_perf_event_open(attr, -1, i, -1, 0); attr 173 samples/bpf/trace_event_user.c static void test_perf_event_task(struct perf_event_attr *attr) attr 180 samples/bpf/trace_event_user.c attr->inherit = 1; attr 183 samples/bpf/trace_event_user.c pmu_fd = sys_perf_event_open(attr, 0, -1, -1, 0); attr 24 samples/bpf/tracex6_user.c static void check_on_cpu(int cpu, struct perf_event_attr *attr) attr 36 samples/bpf/tracex6_user.c pmu_fd = sys_perf_event_open(attr, -1/*pid*/, cpu/*cpu*/, -1/*group_fd*/, 0); attr 72 samples/bpf/tracex6_user.c static void test_perf_event_array(struct perf_event_attr *attr, attr 85 samples/bpf/tracex6_user.c check_on_cpu(i, attr); attr 43 samples/hw_breakpoint/data_breakpoint.c struct perf_event_attr attr; attr 45 samples/hw_breakpoint/data_breakpoint.c hw_breakpoint_init(&attr); attr 46 samples/hw_breakpoint/data_breakpoint.c attr.bp_addr = kallsyms_lookup_name(ksym_name); attr 47 samples/hw_breakpoint/data_breakpoint.c attr.bp_len = HW_BREAKPOINT_LEN_4; attr 48 samples/hw_breakpoint/data_breakpoint.c attr.bp_type = HW_BREAKPOINT_W | HW_BREAKPOINT_R; attr 50 samples/hw_breakpoint/data_breakpoint.c sample_hbp = register_wide_hw_breakpoint(&attr, sample_hbp_handler, NULL); attr 28 samples/kobject/kobject-example.c static ssize_t foo_show(struct kobject *kobj, struct kobj_attribute *attr, attr 34 samples/kobject/kobject-example.c static ssize_t foo_store(struct kobject *kobj, struct kobj_attribute *attr, attr 54 samples/kobject/kobject-example.c static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, attr 59 samples/kobject/kobject-example.c if (strcmp(attr->attr.name, "baz") == 0) attr 66 samples/kobject/kobject-example.c static ssize_t b_store(struct kobject *kobj, struct kobj_attribute *attr, attr 75 samples/kobject/kobject-example.c if (strcmp(attr->attr.name, "baz") == 0) attr 93 samples/kobject/kobject-example.c &foo_attribute.attr, attr 94 samples/kobject/kobject-example.c &baz_attribute.attr, attr 95 samples/kobject/kobject-example.c &bar_attribute.attr, attr 39 samples/kobject/kset-example.c struct attribute attr; attr 40 samples/kobject/kset-example.c ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf); attr 41 samples/kobject/kset-example.c ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count); attr 43 samples/kobject/kset-example.c #define to_foo_attr(x) container_of(x, struct foo_attribute, attr) attr 53 samples/kobject/kset-example.c struct attribute *attr, attr 59 samples/kobject/kset-example.c attribute = to_foo_attr(attr); attr 73 samples/kobject/kset-example.c struct attribute *attr, attr 79 samples/kobject/kset-example.c attribute = to_foo_attr(attr); attr 112 samples/kobject/kset-example.c static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr, attr 118 samples/kobject/kset-example.c static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, attr 138 samples/kobject/kset-example.c static ssize_t b_show(struct foo_obj *foo_obj, struct foo_attribute *attr, attr 143 samples/kobject/kset-example.c if (strcmp(attr->attr.name, "baz") == 0) attr 150 samples/kobject/kset-example.c static ssize_t b_store(struct foo_obj *foo_obj, struct foo_attribute *attr, attr 159 samples/kobject/kset-example.c if (strcmp(attr->attr.name, "baz") == 0) attr 176 samples/kobject/kset-example.c &foo_attribute.attr, attr 177 samples/kobject/kset-example.c &baz_attribute.attr, attr 178 samples/kobject/kset-example.c &bar_attribute.attr, attr 1332 samples/vfio-mdev/mbochs.c memory_show(struct device *dev, struct device_attribute *attr, attr 1343 samples/vfio-mdev/mbochs.c &dev_attr_memory.attr, attr 1392 samples/vfio-mdev/mbochs.c &mdev_type_attr_name.attr, attr 1393 samples/vfio-mdev/mbochs.c &mdev_type_attr_description.attr, attr 1394 samples/vfio-mdev/mbochs.c &mdev_type_attr_device_api.attr, attr 1395 samples/vfio-mdev/mbochs.c &mdev_type_attr_available_instances.attr, attr 639 samples/vfio-mdev/mdpy.c resolution_show(struct device *dev, struct device_attribute *attr, attr 652 samples/vfio-mdev/mdpy.c &dev_attr_resolution.attr, attr 699 samples/vfio-mdev/mdpy.c &mdev_type_attr_name.attr, attr 700 samples/vfio-mdev/mdpy.c &mdev_type_attr_description.attr, attr 701 samples/vfio-mdev/mdpy.c &mdev_type_attr_device_api.attr, attr 702 samples/vfio-mdev/mdpy.c &mdev_type_attr_available_instances.attr, attr 1261 samples/vfio-mdev/mtty.c sample_mtty_dev_show(struct device *dev, struct device_attribute *attr, attr 1270 samples/vfio-mdev/mtty.c &dev_attr_sample_mtty_dev.attr, attr 1285 samples/vfio-mdev/mtty.c sample_mdev_dev_show(struct device *dev, struct device_attribute *attr, attr 1297 samples/vfio-mdev/mtty.c &dev_attr_sample_mdev_dev.attr, attr 1368 samples/vfio-mdev/mtty.c &mdev_type_attr_name.attr, attr 1369 samples/vfio-mdev/mtty.c &mdev_type_attr_device_api.attr, attr 1370 samples/vfio-mdev/mtty.c &mdev_type_attr_available_instances.attr, attr 202 scripts/kconfig/lxdialog/dialog.h void attr_clear(WINDOW * win, int height, int width, chtype attr); attr 229 scripts/kconfig/lxdialog/util.c void attr_clear(WINDOW * win, int height, int width, chtype attr) attr 233 scripts/kconfig/lxdialog/util.c wattrset(win, attr); attr 71 scripts/kconfig/nconf.gui.c #define mkattr(name, attr) do { \ attr 72 scripts/kconfig/nconf.gui.c attributes[name] = attr | COLOR_PAIR(name); } while (0) attr 103 scripts/kconfig/nconf.gui.c #define mkattrn(name, attr) { attributes[name] = attr; } attr 473 security/integrity/evm/evm_main.c int evm_inode_setattr(struct dentry *dentry, struct iattr *attr) attr 475 security/integrity/evm/evm_main.c unsigned int ia_valid = attr->ia_valid; attr 1205 security/security.c int security_inode_setattr(struct dentry *dentry, struct iattr *attr) attr 1211 security/security.c ret = call_int_hook(inode_setattr, 0, dentry, attr); attr 1214 security/security.c return evm_inode_setattr(dentry, attr); attr 2372 security/security.c int security_bpf(int cmd, union bpf_attr *attr, unsigned int size) attr 2374 security/security.c return call_int_hook(bpf, 0, cmd, attr, size); attr 6684 security/selinux/hooks.c static int selinux_bpf(int cmd, union bpf_attr *attr, attr 110 security/selinux/netlabel.c (secattr->attr.secid == sid)) attr 42 security/selinux/ss/constraint.h u32 attr; /* attribute */ attr 569 security/selinux/ss/mls.c secattr->attr.mls.lvl = context->range.level[0].sens - 1; attr 590 security/selinux/ss/mls.c context->range.level[0].sens = secattr->attr.mls.lvl + 1; attr 614 security/selinux/ss/mls.c &secattr->attr.mls.cat); attr 615 security/selinux/ss/mls.c if (rc == 0 && secattr->attr.mls.cat != NULL) attr 643 security/selinux/ss/mls.c secattr->attr.mls.cat); attr 1226 security/selinux/ss/policydb.c e->attr = le32_to_cpu(buf[1]); attr 1246 security/selinux/ss/policydb.c if (!allowxtarget && (e->attr & CEXPR_XTARGET)) attr 2826 security/selinux/ss/policydb.c buf[1] = cpu_to_le32(e->attr); attr 295 security/selinux/ss/services.c switch (e->attr) { attr 395 security/selinux/ss/services.c if (e->attr & CEXPR_TARGET) attr 397 security/selinux/ss/services.c else if (e->attr & CEXPR_XTARGET) { attr 404 security/selinux/ss/services.c if (e->attr & CEXPR_USER) attr 406 security/selinux/ss/services.c else if (e->attr & CEXPR_ROLE) attr 408 security/selinux/ss/services.c else if (e->attr & CEXPR_TYPE) attr 3602 security/selinux/ss/services.c *sid = secattr->attr.secid; attr 3675 security/selinux/ss/services.c secattr->attr.secid = sid; attr 495 security/smack/smack_access.c sap->attr.mls.lvl = level; attr 496 security/smack/smack_access.c sap->attr.mls.cat = NULL; attr 502 security/smack/smack_access.c rc = netlbl_catmap_setbit(&sap->attr.mls.cat, attr 505 security/smack/smack_access.c netlbl_catmap_free(sap->attr.mls.cat); attr 3729 security/smack/smack_lsm.c if (sap->attr.mls.lvl != skp->smk_netlabel.attr.mls.lvl) attr 3741 security/smack/smack_lsm.c acat = netlbl_catmap_walk(sap->attr.mls.cat, attr 3744 security/smack/smack_lsm.c skp->smk_netlabel.attr.mls.cat, attr 3767 security/smack/smack_lsm.c return smack_from_secid(sap->attr.secid); attr 772 security/smack/smackfs.c struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat; attr 787 security/smack/smackfs.c seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl); attr 917 security/smack/smackfs.c netlbl_catmap_free(skp->smk_netlabel.attr.mls.cat); attr 918 security/smack/smackfs.c skp->smk_netlabel.attr.mls.cat = ncats.attr.mls.cat; attr 919 security/smack/smackfs.c skp->smk_netlabel.attr.mls.lvl = ncats.attr.mls.lvl; attr 966 security/smack/smackfs.c struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat; attr 970 security/smack/smackfs.c seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl); attr 1678 security/smack/smackfs.c if (skp->smk_netlabel.attr.mls.lvl == attr 1680 security/smack/smackfs.c skp->smk_netlabel.attr.mls.lvl = i; attr 1756 security/smack/smackfs.c if (skp->smk_netlabel.attr.mls.lvl == attr 1758 security/smack/smackfs.c skp->smk_netlabel.attr.mls.lvl = i; attr 240 sound/ac97/bus.c struct device_attribute *attr, const char *buf, attr 254 sound/ac97/bus.c struct device_attribute *attr, const char *buf, attr 271 sound/ac97/bus.c &dev_attr_cold_reset.attr, attr 272 sound/ac97/bus.c &dev_attr_warm_reset.attr, attr 459 sound/ac97/bus.c struct device_attribute *attr, char *buf) attr 468 sound/ac97/bus.c &dev_attr_vendor_id.attr, attr 8 sound/aoa/soundbus/sysfs.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 30 sound/aoa/soundbus/sysfs.c struct device_attribute *attr, char *buf) attr 40 sound/aoa/soundbus/sysfs.c struct device_attribute *attr, char *buf) attr 50 sound/aoa/soundbus/sysfs.c &dev_attr_name.attr, attr 51 sound/aoa/soundbus/sysfs.c &dev_attr_type.attr, attr 52 sound/aoa/soundbus/sysfs.c &dev_attr_modalias.attr, attr 648 sound/core/init.c struct device_attribute *attr, char *buf) attr 655 sound/core/init.c card_id_store_attr(struct device *dev, struct device_attribute *attr, attr 688 sound/core/init.c struct device_attribute *attr, char *buf) attr 697 sound/core/init.c &dev_attr_id.attr, attr 698 sound/core/init.c &dev_attr_number.attr, attr 1006 sound/core/pcm.c struct device_attribute *attr, char *buf) attr 1027 sound/core/pcm.c &dev_attr_pcm_class.attr, attr 21 sound/hda/hdac_sysfs.c struct device_attribute *attr, \ attr 31 sound/hda/hdac_sysfs.c struct device_attribute *attr, \ attr 49 sound/hda/hdac_sysfs.c static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, attr 57 sound/hda/hdac_sysfs.c &dev_attr_type.attr, attr 58 sound/hda/hdac_sysfs.c &dev_attr_vendor_id.attr, attr 59 sound/hda/hdac_sysfs.c &dev_attr_subsystem_id.attr, attr 60 sound/hda/hdac_sysfs.c &dev_attr_revision_id.attr, attr 61 sound/hda/hdac_sysfs.c &dev_attr_afg.attr, attr 62 sound/hda/hdac_sysfs.c &dev_attr_mfg.attr, attr 63 sound/hda/hdac_sysfs.c &dev_attr_vendor_name.attr, attr 64 sound/hda/hdac_sysfs.c &dev_attr_chip_name.attr, attr 65 sound/hda/hdac_sysfs.c &dev_attr_modalias.attr, attr 88 sound/hda/hdac_sysfs.c struct attribute attr; attr 90 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf); attr 92 sound/hda/hdac_sysfs.c struct widget_attribute *attr, attr 109 sound/hda/hdac_sysfs.c static ssize_t widget_attr_show(struct kobject *kobj, struct attribute *attr, attr 113 sound/hda/hdac_sysfs.c container_of(attr, struct widget_attribute, attr); attr 125 sound/hda/hdac_sysfs.c static ssize_t widget_attr_store(struct kobject *kobj, struct attribute *attr, attr 129 sound/hda/hdac_sysfs.c container_of(attr, struct widget_attribute, attr); attr 162 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 168 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 177 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 202 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 211 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 220 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 229 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 238 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 247 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 254 sound/hda/hdac_sysfs.c struct widget_attribute *attr, char *buf) attr 281 sound/hda/hdac_sysfs.c &wid_attr_caps.attr, attr 282 sound/hda/hdac_sysfs.c &wid_attr_pin_caps.attr, attr 283 sound/hda/hdac_sysfs.c &wid_attr_pin_cfg.attr, attr 284 sound/hda/hdac_sysfs.c &wid_attr_pcm_caps.attr, attr 285 sound/hda/hdac_sysfs.c &wid_attr_pcm_formats.attr, attr 286 sound/hda/hdac_sysfs.c &wid_attr_amp_in_caps.attr, attr 287 sound/hda/hdac_sysfs.c &wid_attr_amp_out_caps.attr, attr 288 sound/hda/hdac_sysfs.c &wid_attr_power_caps.attr, attr 289 sound/hda/hdac_sysfs.c &wid_attr_connections.attr, attr 294 sound/hda/hdac_sysfs.c &wid_attr_pcm_caps.attr, attr 295 sound/hda/hdac_sysfs.c &wid_attr_pcm_formats.attr, attr 296 sound/hda/hdac_sysfs.c &wid_attr_amp_in_caps.attr, attr 297 sound/hda/hdac_sysfs.c &wid_attr_amp_out_caps.attr, attr 298 sound/hda/hdac_sysfs.c &wid_attr_power_caps.attr, attr 299 sound/hda/hdac_sysfs.c &wid_attr_gpio_caps.attr, attr 127 sound/pci/hda/hda_auto_parser.c int attr; attr 136 sound/pci/hda/hda_auto_parser.c attr = snd_hda_get_input_pin_attr(def_conf); attr 137 sound/pci/hda/hda_auto_parser.c if (attr <= INPUT_PIN_ATTR_DOCK) attr 486 sound/pci/hda/hda_auto_parser.c int attr; attr 498 sound/pci/hda/hda_auto_parser.c attr = snd_hda_get_input_pin_attr(def_conf); attr 499 sound/pci/hda/hda_auto_parser.c if (!attr) attr 501 sound/pci/hda/hda_auto_parser.c return mic_names[attr - 1]; attr 505 sound/pci/hda/hda_auto_parser.c attr = snd_hda_get_input_pin_attr(def_conf); attr 506 sound/pci/hda/hda_auto_parser.c if (!attr) attr 508 sound/pci/hda/hda_auto_parser.c if (attr == INPUT_PIN_ATTR_DOCK) attr 535 sound/pci/hda/hda_auto_parser.c int i, attr, attr2; attr 538 sound/pci/hda/hda_auto_parser.c attr = snd_hda_get_input_pin_attr(defc); attr 540 sound/pci/hda/hda_auto_parser.c if (attr <= INPUT_PIN_ATTR_NORMAL) attr 543 sound/pci/hda/hda_auto_parser.c attr = 0; attr 548 sound/pci/hda/hda_auto_parser.c if (attr && attr != attr2) attr 550 sound/pci/hda/hda_auto_parser.c attr = attr2; attr 621 sound/pci/hda/hda_auto_parser.c int attr = snd_hda_get_input_pin_attr(def_conf); attr 624 sound/pci/hda/hda_auto_parser.c switch (attr) { attr 656 sound/pci/hda/hda_auto_parser.c int attr = snd_hda_get_input_pin_attr(def_conf); attr 660 sound/pci/hda/hda_auto_parser.c if (!strcmp(name, "Line Out") && attr == INPUT_PIN_ATTR_INT) attr 4859 sound/pci/hda/hda_generic.c return (int)(a->attr - b->attr); attr 4880 sound/pci/hda/hda_generic.c unsigned int attr; attr 4881 sound/pci/hda/hda_generic.c attr = snd_hda_codec_get_pincfg(codec, nid); attr 4882 sound/pci/hda/hda_generic.c attr = snd_hda_get_input_pin_attr(attr); attr 4883 sound/pci/hda/hda_generic.c if (types & (1 << attr)) attr 4885 sound/pci/hda/hda_generic.c switch (attr) { attr 4904 sound/pci/hda/hda_generic.c types |= (1 << attr); attr 4906 sound/pci/hda/hda_generic.c spec->am_entry[num_pins].attr = attr; attr 58 sound/pci/hda/hda_generic.h unsigned int attr; /* pin attribute (INPUT_PIN_ATTR_*) */ attr 31 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 40 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 54 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, \ attr 63 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, \ attr 96 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 104 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 168 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, \ attr 182 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, \ attr 203 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, \ attr 217 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 256 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 267 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 361 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 372 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 396 sound/pci/hda/hda_sysfs.c struct device_attribute *attr, attr 741 sound/pci/hda/hda_sysfs.c &dev_attr_vendor_id.attr, attr 742 sound/pci/hda/hda_sysfs.c &dev_attr_subsystem_id.attr, attr 743 sound/pci/hda/hda_sysfs.c &dev_attr_revision_id.attr, attr 744 sound/pci/hda/hda_sysfs.c &dev_attr_afg.attr, attr 745 sound/pci/hda/hda_sysfs.c &dev_attr_mfg.attr, attr 746 sound/pci/hda/hda_sysfs.c &dev_attr_vendor_name.attr, attr 747 sound/pci/hda/hda_sysfs.c &dev_attr_chip_name.attr, attr 748 sound/pci/hda/hda_sysfs.c &dev_attr_modelname.attr, attr 749 sound/pci/hda/hda_sysfs.c &dev_attr_init_pin_configs.attr, attr 750 sound/pci/hda/hda_sysfs.c &dev_attr_driver_pin_configs.attr, attr 752 sound/pci/hda/hda_sysfs.c &dev_attr_power_on_acct.attr, attr 753 sound/pci/hda/hda_sysfs.c &dev_attr_power_off_acct.attr, attr 756 sound/pci/hda/hda_sysfs.c &dev_attr_init_verbs.attr, attr 757 sound/pci/hda/hda_sysfs.c &dev_attr_hints.attr, attr 758 sound/pci/hda/hda_sysfs.c &dev_attr_user_pin_configs.attr, attr 759 sound/pci/hda/hda_sysfs.c &dev_attr_reconfig.attr, attr 760 sound/pci/hda/hda_sysfs.c &dev_attr_clear.attr, attr 959 sound/soc/codecs/cs42l52.c struct device_attribute *attr, attr 1023 sound/soc/codecs/cs42l56.c struct device_attribute *attr, attr 1675 sound/soc/codecs/cs43130.c struct device_attribute *attr, char *buf) attr 1681 sound/soc/codecs/cs43130.c struct device_attribute *attr, char *buf) attr 1722 sound/soc/codecs/cs43130.c struct device_attribute *attr, char *buf) attr 1728 sound/soc/codecs/cs43130.c struct device_attribute *attr, char *buf) attr 264 sound/soc/codecs/tlv320aic26.c struct device_attribute *attr, char *buf) attr 279 sound/soc/codecs/tlv320aic26.c struct device_attribute *attr, attr 3215 sound/soc/codecs/wm8962.c struct device_attribute *attr, attr 239 sound/soc/intel/atom/sst/sst.c struct device_attribute *attr, char *buf) attr 256 sound/soc/intel/atom/sst/sst.c &dev_attr_firmware_version.attr, attr 153 sound/soc/intel/skylake/skl-nhlt.c struct device_attribute *attr, char *buf) attr 175 sound/soc/intel/skylake/skl-nhlt.c if (sysfs_create_file(&dev->kobj, &dev_attr_platform_id.attr)) attr 185 sound/soc/intel/skylake/skl-nhlt.c sysfs_remove_file(&dev->kobj, &dev_attr_platform_id.attr); attr 94 sound/soc/soc-core.c struct device_attribute *attr, char *buf) attr 102 sound/soc/soc-core.c struct device_attribute *attr, attr 118 sound/soc/soc-core.c &dev_attr_pmdown_time.attr, attr 123 sound/soc/soc-core.c struct attribute *attr, int idx) attr 128 sound/soc/soc-core.c if (attr == &dev_attr_pmdown_time.attr) attr 129 sound/soc/soc-core.c return attr->mode; /* always visible */ attr 130 sound/soc/soc-core.c return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ attr 2446 sound/soc/soc-dapm.c struct device_attribute *attr, char *buf) attr 2468 sound/soc/soc-dapm.c &dev_attr_dapm_widget.attr, attr 241 sound/soc/ti/omap-mcbsp-st.c struct device_attribute *attr, char *buf) attr 260 sound/soc/ti/omap-mcbsp-st.c struct device_attribute *attr, attr 299 sound/soc/ti/omap-mcbsp-st.c &dev_attr_st_taps.attr, attr 520 sound/soc/ti/omap-mcbsp.c struct device_attribute *attr, char *buf) \ attr 528 sound/soc/ti/omap-mcbsp.c struct device_attribute *attr, \ attr 556 sound/soc/ti/omap-mcbsp.c struct device_attribute *attr, char *buf) attr 577 sound/soc/ti/omap-mcbsp.c struct device_attribute *attr, const char *buf, attr 603 sound/soc/ti/omap-mcbsp.c &dev_attr_max_tx_thres.attr, attr 604 sound/soc/ti/omap-mcbsp.c &dev_attr_max_rx_thres.attr, attr 605 sound/soc/ti/omap-mcbsp.c &dev_attr_dma_op_mode.attr, attr 191 sound/usb/line6/driver.h extern ssize_t line6_set_raw(struct device *dev, struct device_attribute *attr, attr 233 sound/usb/line6/pod.c struct device_attribute *attr, char *buf) attr 245 sound/usb/line6/pod.c struct device_attribute *attr, char *buf) attr 258 sound/usb/line6/pod.c struct device_attribute *attr, char *buf) attr 302 sound/usb/line6/pod.c &dev_attr_device_id.attr, attr 303 sound/usb/line6/pod.c &dev_attr_firmware_version.attr, attr 304 sound/usb/line6/pod.c &dev_attr_serial_number.attr, attr 140 sound/usb/line6/podhd.c struct device_attribute *attr, char *buf) attr 149 sound/usb/line6/podhd.c struct device_attribute *attr, char *buf) attr 161 sound/usb/line6/podhd.c &dev_attr_firmware_version.attr, attr 162 sound/usb/line6/podhd.c &dev_attr_serial_number.attr, attr 88 sound/usb/pcm.c int cur_attr = 0, attr; attr 106 sound/usb/pcm.c attr = fp->ep_attr & USB_ENDPOINT_SYNCTYPE; attr 109 sound/usb/pcm.c cur_attr = attr; attr 117 sound/usb/pcm.c if (attr != cur_attr) { attr 118 sound/usb/pcm.c if ((attr == USB_ENDPOINT_SYNC_ASYNC && attr 120 sound/usb/pcm.c (attr == USB_ENDPOINT_SYNC_ADAPTIVE && attr 128 sound/usb/pcm.c cur_attr = attr; attr 135 sound/usb/pcm.c cur_attr = attr; attr 312 sound/usb/pcm.c unsigned int attr) attr 360 sound/usb/pcm.c if (attr == USB_ENDPOINT_SYNC_ASYNC && attr 401 sound/usb/pcm.c unsigned int ep, attr; attr 410 sound/usb/pcm.c attr = fmt->ep_attr & USB_ENDPOINT_SYNCTYPE; attr 412 sound/usb/pcm.c if ((is_playback && (attr != USB_ENDPOINT_SYNC_ASYNC)) || attr 413 sound/usb/pcm.c (!is_playback && (attr != USB_ENDPOINT_SYNC_ADAPTIVE))) { attr 426 sound/usb/pcm.c err = set_sync_ep_implicit_fb_quirk(subs, dev, altsd, attr); attr 437 sound/usb/pcm.c if ((is_playback && (attr == USB_ENDPOINT_SYNC_SYNC || attr 438 sound/usb/pcm.c attr == USB_ENDPOINT_SYNC_ADAPTIVE)) || attr 439 sound/usb/pcm.c (!is_playback && attr != USB_ENDPOINT_SYNC_ADAPTIVE)) attr 461 sound/usb/pcm.c if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) attr 474 sound/usb/pcm.c if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) attr 488 sound/usb/pcm.c if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) attr 110 tools/arch/x86/include/asm/inat.h static inline int inat_is_legacy_prefix(insn_attr_t attr) attr 112 tools/arch/x86/include/asm/inat.h attr &= INAT_PFX_MASK; attr 113 tools/arch/x86/include/asm/inat.h return attr && attr <= INAT_LGCPFX_MAX; attr 116 tools/arch/x86/include/asm/inat.h static inline int inat_is_address_size_prefix(insn_attr_t attr) attr 118 tools/arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; attr 121 tools/arch/x86/include/asm/inat.h static inline int inat_is_operand_size_prefix(insn_attr_t attr) attr 123 tools/arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; attr 126 tools/arch/x86/include/asm/inat.h static inline int inat_is_rex_prefix(insn_attr_t attr) attr 128 tools/arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_REX; attr 131 tools/arch/x86/include/asm/inat.h static inline int inat_last_prefix_id(insn_attr_t attr) attr 133 tools/arch/x86/include/asm/inat.h if ((attr & INAT_PFX_MASK) > INAT_LSTPFX_MAX) attr 136 tools/arch/x86/include/asm/inat.h return attr & INAT_PFX_MASK; attr 139 tools/arch/x86/include/asm/inat.h static inline int inat_is_vex_prefix(insn_attr_t attr) attr 141 tools/arch/x86/include/asm/inat.h attr &= INAT_PFX_MASK; attr 142 tools/arch/x86/include/asm/inat.h return attr == INAT_PFX_VEX2 || attr == INAT_PFX_VEX3 || attr 143 tools/arch/x86/include/asm/inat.h attr == INAT_PFX_EVEX; attr 146 tools/arch/x86/include/asm/inat.h static inline int inat_is_evex_prefix(insn_attr_t attr) attr 148 tools/arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_EVEX; attr 151 tools/arch/x86/include/asm/inat.h static inline int inat_is_vex3_prefix(insn_attr_t attr) attr 153 tools/arch/x86/include/asm/inat.h return (attr & INAT_PFX_MASK) == INAT_PFX_VEX3; attr 156 tools/arch/x86/include/asm/inat.h static inline int inat_is_escape(insn_attr_t attr) attr 158 tools/arch/x86/include/asm/inat.h return attr & INAT_ESC_MASK; attr 161 tools/arch/x86/include/asm/inat.h static inline int inat_escape_id(insn_attr_t attr) attr 163 tools/arch/x86/include/asm/inat.h return (attr & INAT_ESC_MASK) >> INAT_ESC_OFFS; attr 166 tools/arch/x86/include/asm/inat.h static inline int inat_is_group(insn_attr_t attr) attr 168 tools/arch/x86/include/asm/inat.h return attr & INAT_GRP_MASK; attr 171 tools/arch/x86/include/asm/inat.h static inline int inat_group_id(insn_attr_t attr) attr 173 tools/arch/x86/include/asm/inat.h return (attr & INAT_GRP_MASK) >> INAT_GRP_OFFS; attr 176 tools/arch/x86/include/asm/inat.h static inline int inat_group_common_attribute(insn_attr_t attr) attr 178 tools/arch/x86/include/asm/inat.h return attr & ~INAT_GRP_MASK; attr 181 tools/arch/x86/include/asm/inat.h static inline int inat_has_immediate(insn_attr_t attr) attr 183 tools/arch/x86/include/asm/inat.h return attr & INAT_IMM_MASK; attr 186 tools/arch/x86/include/asm/inat.h static inline int inat_immediate_size(insn_attr_t attr) attr 188 tools/arch/x86/include/asm/inat.h return (attr & INAT_IMM_MASK) >> INAT_IMM_OFFS; attr 191 tools/arch/x86/include/asm/inat.h static inline int inat_has_modrm(insn_attr_t attr) attr 193 tools/arch/x86/include/asm/inat.h return attr & INAT_MODRM; attr 196 tools/arch/x86/include/asm/inat.h static inline int inat_is_force64(insn_attr_t attr) attr 198 tools/arch/x86/include/asm/inat.h return attr & INAT_FORCE64; attr 201 tools/arch/x86/include/asm/inat.h static inline int inat_has_second_immediate(insn_attr_t attr) attr 203 tools/arch/x86/include/asm/inat.h return attr & INAT_SCNDIMM; attr 206 tools/arch/x86/include/asm/inat.h static inline int inat_has_moffset(insn_attr_t attr) attr 208 tools/arch/x86/include/asm/inat.h return attr & INAT_MOFFSET; attr 211 tools/arch/x86/include/asm/inat.h static inline int inat_has_variant(insn_attr_t attr) attr 213 tools/arch/x86/include/asm/inat.h return attr & INAT_VARIANT; attr 216 tools/arch/x86/include/asm/inat.h static inline int inat_accept_vex(insn_attr_t attr) attr 218 tools/arch/x86/include/asm/inat.h return attr & INAT_VEXOK; attr 221 tools/arch/x86/include/asm/inat.h static inline int inat_must_vex(insn_attr_t attr) attr 223 tools/arch/x86/include/asm/inat.h return attr & (INAT_VEXONLY | INAT_EVEXONLY); attr 226 tools/arch/x86/include/asm/inat.h static inline int inat_must_evex(insn_attr_t attr) attr 228 tools/arch/x86/include/asm/inat.h return attr & INAT_EVEXONLY; attr 48 tools/arch/x86/include/asm/insn.h insn_attr_t attr; attr 72 tools/arch/x86/lib/insn.c insn_attr_t attr; attr 82 tools/arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 83 tools/arch/x86/lib/insn.c while (inat_is_legacy_prefix(attr)) { attr 92 tools/arch/x86/lib/insn.c if (inat_is_address_size_prefix(attr)) { attr 98 tools/arch/x86/lib/insn.c } else if (inat_is_operand_size_prefix(attr)) { attr 107 tools/arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 124 tools/arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 125 tools/arch/x86/lib/insn.c if (inat_is_rex_prefix(attr)) { attr 138 tools/arch/x86/lib/insn.c attr = inat_get_opcode_attribute(b); attr 139 tools/arch/x86/lib/insn.c if (inat_is_vex_prefix(attr)) { attr 152 tools/arch/x86/lib/insn.c if (inat_is_evex_prefix(attr)) { attr 162 tools/arch/x86/lib/insn.c } else if (inat_is_vex3_prefix(attr)) { attr 220 tools/arch/x86/lib/insn.c insn->attr = inat_get_avx_attribute(op, m, p); attr 221 tools/arch/x86/lib/insn.c if ((inat_must_evex(insn->attr) && !insn_is_evex(insn)) || attr 222 tools/arch/x86/lib/insn.c (!inat_accept_vex(insn->attr) && attr 223 tools/arch/x86/lib/insn.c !inat_is_group(insn->attr))) attr 224 tools/arch/x86/lib/insn.c insn->attr = 0; /* This instruction is bad */ attr 228 tools/arch/x86/lib/insn.c insn->attr = inat_get_opcode_attribute(op); attr 229 tools/arch/x86/lib/insn.c while (inat_is_escape(insn->attr)) { attr 234 tools/arch/x86/lib/insn.c insn->attr = inat_get_escape_attribute(op, pfx_id, insn->attr); attr 236 tools/arch/x86/lib/insn.c if (inat_must_vex(insn->attr)) attr 237 tools/arch/x86/lib/insn.c insn->attr = 0; /* This instruction is bad */ attr 262 tools/arch/x86/lib/insn.c if (inat_has_modrm(insn->attr)) { attr 266 tools/arch/x86/lib/insn.c if (inat_is_group(insn->attr)) { attr 268 tools/arch/x86/lib/insn.c insn->attr = inat_get_group_attribute(mod, pfx_id, attr 269 tools/arch/x86/lib/insn.c insn->attr); attr 270 tools/arch/x86/lib/insn.c if (insn_is_avx(insn) && !inat_accept_vex(insn->attr)) attr 271 tools/arch/x86/lib/insn.c insn->attr = 0; /* This is bad */ attr 275 tools/arch/x86/lib/insn.c if (insn->x86_64 && inat_is_force64(insn->attr)) attr 522 tools/arch/x86/lib/insn.c if (inat_has_moffset(insn->attr)) { attr 528 tools/arch/x86/lib/insn.c if (!inat_has_immediate(insn->attr)) attr 532 tools/arch/x86/lib/insn.c switch (inat_immediate_size(insn->attr)) { attr 567 tools/arch/x86/lib/insn.c if (inat_has_second_immediate(insn->attr)) { attr 1133 tools/bpf/bpftool/map.c struct bpf_create_map_attr attr = { NULL, }; attr 1148 tools/bpf/bpftool/map.c if (attr.map_type) { attr 1153 tools/bpf/bpftool/map.c attr.map_type = map_type_from_str(*argv); attr 1154 tools/bpf/bpftool/map.c if ((int)attr.map_type < 0) { attr 1161 tools/bpf/bpftool/map.c attr.name = GET_ARG(); attr 1163 tools/bpf/bpftool/map.c if (parse_u32_arg(&argc, &argv, &attr.key_size, attr 1167 tools/bpf/bpftool/map.c if (parse_u32_arg(&argc, &argv, &attr.value_size, attr 1171 tools/bpf/bpftool/map.c if (parse_u32_arg(&argc, &argv, &attr.max_entries, attr 1175 tools/bpf/bpftool/map.c if (parse_u32_arg(&argc, &argv, &attr.map_flags, attr 1181 tools/bpf/bpftool/map.c if (attr.map_ifindex) { attr 1186 tools/bpf/bpftool/map.c attr.map_ifindex = if_nametoindex(*argv); attr 1187 tools/bpf/bpftool/map.c if (!attr.map_ifindex) { attr 1199 tools/bpf/bpftool/map.c if (!attr.name) { attr 1206 tools/bpf/bpftool/map.c fd = bpf_create_map_xattr(&attr); attr 194 tools/bpf/bpftool/map_perf_ring.c opts.attr = &perf_attr; attr 14 tools/bpf/bpftool/netlink_dumper.c static void xdp_dump_prog_id(struct nlattr **tb, int attr, attr 18 tools/bpf/bpftool/netlink_dumper.c if (!tb[attr]) attr 24 tools/bpf/bpftool/netlink_dumper.c NET_DUMP_UINT("id", " id %u", libbpf_nla_getattr_u32(tb[attr])) attr 29 tools/bpf/bpftool/netlink_dumper.c static int do_xdp_dump_one(struct nlattr *attr, unsigned int ifindex, attr 35 tools/bpf/bpftool/netlink_dumper.c if (libbpf_nla_parse_nested(tb, IFLA_XDP_MAX, attr, NULL) < 0) attr 81 tools/bpf/bpftool/netlink_dumper.c static int do_bpf_dump_one_act(struct nlattr *attr) attr 85 tools/bpf/bpftool/netlink_dumper.c if (libbpf_nla_parse_nested(tb, TCA_ACT_BPF_MAX, attr, NULL) < 0) attr 102 tools/bpf/bpftool/netlink_dumper.c static int do_dump_one_act(struct nlattr *attr) attr 106 tools/bpf/bpftool/netlink_dumper.c if (!attr) attr 109 tools/bpf/bpftool/netlink_dumper.c if (libbpf_nla_parse_nested(tb, TCA_ACT_MAX, attr, NULL) < 0) attr 119 tools/bpf/bpftool/netlink_dumper.c static int do_bpf_act_dump(struct nlattr *attr) attr 124 tools/bpf/bpftool/netlink_dumper.c if (libbpf_nla_parse_nested(tb, TCA_ACT_MAX_PRIO, attr, NULL) < 0) attr 138 tools/bpf/bpftool/netlink_dumper.c static int do_bpf_filter_dump(struct nlattr *attr) attr 143 tools/bpf/bpftool/netlink_dumper.c if (libbpf_nla_parse_nested(tb, TCA_BPF_MAX, attr, NULL) < 0) attr 24 tools/build/feature/test-bpf.c union bpf_attr attr; attr 27 tools/build/feature/test-bpf.c attr.prog_type = BPF_PROG_TYPE_KPROBE; attr 28 tools/build/feature/test-bpf.c attr.insn_cnt = 0; attr 29 tools/build/feature/test-bpf.c attr.insns = 0; attr 30 tools/build/feature/test-bpf.c attr.license = 0; attr 31 tools/build/feature/test-bpf.c attr.log_buf = 0; attr 32 tools/build/feature/test-bpf.c attr.log_size = 0; attr 33 tools/build/feature/test-bpf.c attr.log_level = 0; attr 34 tools/build/feature/test-bpf.c attr.kern_version = 0; attr 35 tools/build/feature/test-bpf.c attr.prog_flags = 0; attr 41 tools/build/feature/test-bpf.c return syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); attr 8 tools/build/feature/test-dwarf_getlocations.c Dwarf_Attribute attr; attr 12 tools/build/feature/test-dwarf_getlocations.c return (int)dwarf_getlocations(&attr, offset, &base, &start, &end, &op, &nops); attr 1202 tools/include/uapi/linux/kvm.h __u64 attr; /* group-defined */ attr 62 tools/lib/bpf/bpf.c static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, attr 65 tools/lib/bpf/bpf.c return syscall(__NR_bpf, cmd, attr, size); attr 68 tools/lib/bpf/bpf.c static inline int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size) attr 73 tools/lib/bpf/bpf.c fd = sys_bpf(BPF_PROG_LOAD, attr, size); attr 81 tools/lib/bpf/bpf.c union bpf_attr attr; attr 83 tools/lib/bpf/bpf.c memset(&attr, '\0', sizeof(attr)); attr 85 tools/lib/bpf/bpf.c attr.map_type = create_attr->map_type; attr 86 tools/lib/bpf/bpf.c attr.key_size = create_attr->key_size; attr 87 tools/lib/bpf/bpf.c attr.value_size = create_attr->value_size; attr 88 tools/lib/bpf/bpf.c attr.max_entries = create_attr->max_entries; attr 89 tools/lib/bpf/bpf.c attr.map_flags = create_attr->map_flags; attr 91 tools/lib/bpf/bpf.c memcpy(attr.map_name, create_attr->name, attr 93 tools/lib/bpf/bpf.c attr.numa_node = create_attr->numa_node; attr 94 tools/lib/bpf/bpf.c attr.btf_fd = create_attr->btf_fd; attr 95 tools/lib/bpf/bpf.c attr.btf_key_type_id = create_attr->btf_key_type_id; attr 96 tools/lib/bpf/bpf.c attr.btf_value_type_id = create_attr->btf_value_type_id; attr 97 tools/lib/bpf/bpf.c attr.map_ifindex = create_attr->map_ifindex; attr 98 tools/lib/bpf/bpf.c attr.inner_map_fd = create_attr->inner_map_fd; attr 100 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_CREATE, &attr, sizeof(attr)); attr 157 tools/lib/bpf/bpf.c union bpf_attr attr; attr 159 tools/lib/bpf/bpf.c memset(&attr, '\0', sizeof(attr)); attr 161 tools/lib/bpf/bpf.c attr.map_type = map_type; attr 162 tools/lib/bpf/bpf.c attr.key_size = key_size; attr 163 tools/lib/bpf/bpf.c attr.value_size = 4; attr 164 tools/lib/bpf/bpf.c attr.inner_map_fd = inner_map_fd; attr 165 tools/lib/bpf/bpf.c attr.max_entries = max_entries; attr 166 tools/lib/bpf/bpf.c attr.map_flags = map_flags; attr 168 tools/lib/bpf/bpf.c memcpy(attr.map_name, name, attr 172 tools/lib/bpf/bpf.c attr.map_flags |= BPF_F_NUMA_NODE; attr 173 tools/lib/bpf/bpf.c attr.numa_node = node; attr 176 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_CREATE, &attr, sizeof(attr)); attr 217 tools/lib/bpf/bpf.c union bpf_attr attr; attr 228 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 229 tools/lib/bpf/bpf.c attr.prog_type = load_attr->prog_type; attr 230 tools/lib/bpf/bpf.c attr.expected_attach_type = load_attr->expected_attach_type; attr 231 tools/lib/bpf/bpf.c attr.insn_cnt = (__u32)load_attr->insns_cnt; attr 232 tools/lib/bpf/bpf.c attr.insns = ptr_to_u64(load_attr->insns); attr 233 tools/lib/bpf/bpf.c attr.license = ptr_to_u64(load_attr->license); attr 235 tools/lib/bpf/bpf.c attr.log_level = log_level; attr 237 tools/lib/bpf/bpf.c attr.log_buf = ptr_to_u64(log_buf); attr 238 tools/lib/bpf/bpf.c attr.log_size = log_buf_sz; attr 240 tools/lib/bpf/bpf.c attr.log_buf = ptr_to_u64(NULL); attr 241 tools/lib/bpf/bpf.c attr.log_size = 0; attr 244 tools/lib/bpf/bpf.c attr.kern_version = load_attr->kern_version; attr 245 tools/lib/bpf/bpf.c attr.prog_ifindex = load_attr->prog_ifindex; attr 246 tools/lib/bpf/bpf.c attr.prog_btf_fd = load_attr->prog_btf_fd; attr 247 tools/lib/bpf/bpf.c attr.func_info_rec_size = load_attr->func_info_rec_size; attr 248 tools/lib/bpf/bpf.c attr.func_info_cnt = load_attr->func_info_cnt; attr 249 tools/lib/bpf/bpf.c attr.func_info = ptr_to_u64(load_attr->func_info); attr 250 tools/lib/bpf/bpf.c attr.line_info_rec_size = load_attr->line_info_rec_size; attr 251 tools/lib/bpf/bpf.c attr.line_info_cnt = load_attr->line_info_cnt; attr 252 tools/lib/bpf/bpf.c attr.line_info = ptr_to_u64(load_attr->line_info); attr 254 tools/lib/bpf/bpf.c memcpy(attr.prog_name, load_attr->name, attr 256 tools/lib/bpf/bpf.c attr.prog_flags = load_attr->prog_flags; attr 258 tools/lib/bpf/bpf.c fd = sys_bpf_prog_load(&attr, sizeof(attr)); attr 267 tools/lib/bpf/bpf.c if (!finfo && attr.func_info_cnt && attr 268 tools/lib/bpf/bpf.c attr.func_info_rec_size < load_attr->func_info_rec_size) { attr 273 tools/lib/bpf/bpf.c attr.func_info_rec_size); attr 277 tools/lib/bpf/bpf.c attr.func_info = ptr_to_u64(finfo); attr 278 tools/lib/bpf/bpf.c attr.func_info_rec_size = load_attr->func_info_rec_size; attr 279 tools/lib/bpf/bpf.c } else if (!linfo && attr.line_info_cnt && attr 280 tools/lib/bpf/bpf.c attr.line_info_rec_size < attr 285 tools/lib/bpf/bpf.c attr.line_info_rec_size); attr 289 tools/lib/bpf/bpf.c attr.line_info = ptr_to_u64(linfo); attr 290 tools/lib/bpf/bpf.c attr.line_info_rec_size = load_attr->line_info_rec_size; attr 295 tools/lib/bpf/bpf.c fd = sys_bpf_prog_load(&attr, sizeof(attr)); attr 305 tools/lib/bpf/bpf.c attr.log_buf = ptr_to_u64(log_buf); attr 306 tools/lib/bpf/bpf.c attr.log_size = log_buf_sz; attr 307 tools/lib/bpf/bpf.c attr.log_level = 1; attr 309 tools/lib/bpf/bpf.c fd = sys_bpf_prog_load(&attr, sizeof(attr)); attr 340 tools/lib/bpf/bpf.c union bpf_attr attr; attr 342 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 343 tools/lib/bpf/bpf.c attr.prog_type = type; attr 344 tools/lib/bpf/bpf.c attr.insn_cnt = (__u32)insns_cnt; attr 345 tools/lib/bpf/bpf.c attr.insns = ptr_to_u64(insns); attr 346 tools/lib/bpf/bpf.c attr.license = ptr_to_u64(license); attr 347 tools/lib/bpf/bpf.c attr.log_buf = ptr_to_u64(log_buf); attr 348 tools/lib/bpf/bpf.c attr.log_size = log_buf_sz; attr 349 tools/lib/bpf/bpf.c attr.log_level = log_level; attr 351 tools/lib/bpf/bpf.c attr.kern_version = kern_version; attr 352 tools/lib/bpf/bpf.c attr.prog_flags = prog_flags; attr 354 tools/lib/bpf/bpf.c return sys_bpf_prog_load(&attr, sizeof(attr)); attr 360 tools/lib/bpf/bpf.c union bpf_attr attr; attr 362 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 363 tools/lib/bpf/bpf.c attr.map_fd = fd; attr 364 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); attr 365 tools/lib/bpf/bpf.c attr.value = ptr_to_u64(value); attr 366 tools/lib/bpf/bpf.c attr.flags = flags; attr 368 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_UPDATE_ELEM, &attr, sizeof(attr)); attr 373 tools/lib/bpf/bpf.c union bpf_attr attr; attr 375 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 376 tools/lib/bpf/bpf.c attr.map_fd = fd; attr 377 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); attr 378 tools/lib/bpf/bpf.c attr.value = ptr_to_u64(value); attr 380 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_LOOKUP_ELEM, &attr, sizeof(attr)); attr 385 tools/lib/bpf/bpf.c union bpf_attr attr; attr 387 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 388 tools/lib/bpf/bpf.c attr.map_fd = fd; attr 389 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); attr 390 tools/lib/bpf/bpf.c attr.value = ptr_to_u64(value); attr 391 tools/lib/bpf/bpf.c attr.flags = flags; attr 393 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_LOOKUP_ELEM, &attr, sizeof(attr)); attr 398 tools/lib/bpf/bpf.c union bpf_attr attr; attr 400 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 401 tools/lib/bpf/bpf.c attr.map_fd = fd; attr 402 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); attr 403 tools/lib/bpf/bpf.c attr.value = ptr_to_u64(value); attr 405 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_LOOKUP_AND_DELETE_ELEM, &attr, sizeof(attr)); attr 410 tools/lib/bpf/bpf.c union bpf_attr attr; attr 412 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 413 tools/lib/bpf/bpf.c attr.map_fd = fd; attr 414 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); attr 416 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_DELETE_ELEM, &attr, sizeof(attr)); attr 421 tools/lib/bpf/bpf.c union bpf_attr attr; attr 423 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 424 tools/lib/bpf/bpf.c attr.map_fd = fd; attr 425 tools/lib/bpf/bpf.c attr.key = ptr_to_u64(key); attr 426 tools/lib/bpf/bpf.c attr.next_key = ptr_to_u64(next_key); attr 428 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_GET_NEXT_KEY, &attr, sizeof(attr)); attr 433 tools/lib/bpf/bpf.c union bpf_attr attr; attr 435 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 436 tools/lib/bpf/bpf.c attr.map_fd = fd; attr 438 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_FREEZE, &attr, sizeof(attr)); attr 443 tools/lib/bpf/bpf.c union bpf_attr attr; attr 445 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 446 tools/lib/bpf/bpf.c attr.pathname = ptr_to_u64((void *)pathname); attr 447 tools/lib/bpf/bpf.c attr.bpf_fd = fd; attr 449 tools/lib/bpf/bpf.c return sys_bpf(BPF_OBJ_PIN, &attr, sizeof(attr)); attr 454 tools/lib/bpf/bpf.c union bpf_attr attr; attr 456 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 457 tools/lib/bpf/bpf.c attr.pathname = ptr_to_u64((void *)pathname); attr 459 tools/lib/bpf/bpf.c return sys_bpf(BPF_OBJ_GET, &attr, sizeof(attr)); attr 465 tools/lib/bpf/bpf.c union bpf_attr attr; attr 467 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 468 tools/lib/bpf/bpf.c attr.target_fd = target_fd; attr 469 tools/lib/bpf/bpf.c attr.attach_bpf_fd = prog_fd; attr 470 tools/lib/bpf/bpf.c attr.attach_type = type; attr 471 tools/lib/bpf/bpf.c attr.attach_flags = flags; attr 473 tools/lib/bpf/bpf.c return sys_bpf(BPF_PROG_ATTACH, &attr, sizeof(attr)); attr 478 tools/lib/bpf/bpf.c union bpf_attr attr; attr 480 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 481 tools/lib/bpf/bpf.c attr.target_fd = target_fd; attr 482 tools/lib/bpf/bpf.c attr.attach_type = type; attr 484 tools/lib/bpf/bpf.c return sys_bpf(BPF_PROG_DETACH, &attr, sizeof(attr)); attr 489 tools/lib/bpf/bpf.c union bpf_attr attr; attr 491 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 492 tools/lib/bpf/bpf.c attr.target_fd = target_fd; attr 493 tools/lib/bpf/bpf.c attr.attach_bpf_fd = prog_fd; attr 494 tools/lib/bpf/bpf.c attr.attach_type = type; attr 496 tools/lib/bpf/bpf.c return sys_bpf(BPF_PROG_DETACH, &attr, sizeof(attr)); attr 502 tools/lib/bpf/bpf.c union bpf_attr attr; attr 505 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 506 tools/lib/bpf/bpf.c attr.query.target_fd = target_fd; attr 507 tools/lib/bpf/bpf.c attr.query.attach_type = type; attr 508 tools/lib/bpf/bpf.c attr.query.query_flags = query_flags; attr 509 tools/lib/bpf/bpf.c attr.query.prog_cnt = *prog_cnt; attr 510 tools/lib/bpf/bpf.c attr.query.prog_ids = ptr_to_u64(prog_ids); attr 512 tools/lib/bpf/bpf.c ret = sys_bpf(BPF_PROG_QUERY, &attr, sizeof(attr)); attr 514 tools/lib/bpf/bpf.c *attach_flags = attr.query.attach_flags; attr 515 tools/lib/bpf/bpf.c *prog_cnt = attr.query.prog_cnt; attr 523 tools/lib/bpf/bpf.c union bpf_attr attr; attr 526 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 527 tools/lib/bpf/bpf.c attr.test.prog_fd = prog_fd; attr 528 tools/lib/bpf/bpf.c attr.test.data_in = ptr_to_u64(data); attr 529 tools/lib/bpf/bpf.c attr.test.data_out = ptr_to_u64(data_out); attr 530 tools/lib/bpf/bpf.c attr.test.data_size_in = size; attr 531 tools/lib/bpf/bpf.c attr.test.repeat = repeat; attr 533 tools/lib/bpf/bpf.c ret = sys_bpf(BPF_PROG_TEST_RUN, &attr, sizeof(attr)); attr 535 tools/lib/bpf/bpf.c *size_out = attr.test.data_size_out; attr 537 tools/lib/bpf/bpf.c *retval = attr.test.retval; attr 539 tools/lib/bpf/bpf.c *duration = attr.test.duration; attr 545 tools/lib/bpf/bpf.c union bpf_attr attr; attr 551 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 552 tools/lib/bpf/bpf.c attr.test.prog_fd = test_attr->prog_fd; attr 553 tools/lib/bpf/bpf.c attr.test.data_in = ptr_to_u64(test_attr->data_in); attr 554 tools/lib/bpf/bpf.c attr.test.data_out = ptr_to_u64(test_attr->data_out); attr 555 tools/lib/bpf/bpf.c attr.test.data_size_in = test_attr->data_size_in; attr 556 tools/lib/bpf/bpf.c attr.test.data_size_out = test_attr->data_size_out; attr 557 tools/lib/bpf/bpf.c attr.test.ctx_in = ptr_to_u64(test_attr->ctx_in); attr 558 tools/lib/bpf/bpf.c attr.test.ctx_out = ptr_to_u64(test_attr->ctx_out); attr 559 tools/lib/bpf/bpf.c attr.test.ctx_size_in = test_attr->ctx_size_in; attr 560 tools/lib/bpf/bpf.c attr.test.ctx_size_out = test_attr->ctx_size_out; attr 561 tools/lib/bpf/bpf.c attr.test.repeat = test_attr->repeat; attr 563 tools/lib/bpf/bpf.c ret = sys_bpf(BPF_PROG_TEST_RUN, &attr, sizeof(attr)); attr 564 tools/lib/bpf/bpf.c test_attr->data_size_out = attr.test.data_size_out; attr 565 tools/lib/bpf/bpf.c test_attr->ctx_size_out = attr.test.ctx_size_out; attr 566 tools/lib/bpf/bpf.c test_attr->retval = attr.test.retval; attr 567 tools/lib/bpf/bpf.c test_attr->duration = attr.test.duration; attr 573 tools/lib/bpf/bpf.c union bpf_attr attr; attr 576 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 577 tools/lib/bpf/bpf.c attr.start_id = start_id; attr 579 tools/lib/bpf/bpf.c err = sys_bpf(cmd, &attr, sizeof(attr)); attr 581 tools/lib/bpf/bpf.c *next_id = attr.next_id; attr 603 tools/lib/bpf/bpf.c union bpf_attr attr; attr 605 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 606 tools/lib/bpf/bpf.c attr.prog_id = id; attr 608 tools/lib/bpf/bpf.c return sys_bpf(BPF_PROG_GET_FD_BY_ID, &attr, sizeof(attr)); attr 613 tools/lib/bpf/bpf.c union bpf_attr attr; attr 615 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 616 tools/lib/bpf/bpf.c attr.map_id = id; attr 618 tools/lib/bpf/bpf.c return sys_bpf(BPF_MAP_GET_FD_BY_ID, &attr, sizeof(attr)); attr 623 tools/lib/bpf/bpf.c union bpf_attr attr; attr 625 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 626 tools/lib/bpf/bpf.c attr.btf_id = id; attr 628 tools/lib/bpf/bpf.c return sys_bpf(BPF_BTF_GET_FD_BY_ID, &attr, sizeof(attr)); attr 633 tools/lib/bpf/bpf.c union bpf_attr attr; attr 636 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 637 tools/lib/bpf/bpf.c attr.info.bpf_fd = prog_fd; attr 638 tools/lib/bpf/bpf.c attr.info.info_len = *info_len; attr 639 tools/lib/bpf/bpf.c attr.info.info = ptr_to_u64(info); attr 641 tools/lib/bpf/bpf.c err = sys_bpf(BPF_OBJ_GET_INFO_BY_FD, &attr, sizeof(attr)); attr 643 tools/lib/bpf/bpf.c *info_len = attr.info.info_len; attr 650 tools/lib/bpf/bpf.c union bpf_attr attr; attr 652 tools/lib/bpf/bpf.c memset(&attr, 0, sizeof(attr)); attr 653 tools/lib/bpf/bpf.c attr.raw_tracepoint.name = ptr_to_u64(name); attr 654 tools/lib/bpf/bpf.c attr.raw_tracepoint.prog_fd = prog_fd; attr 656 tools/lib/bpf/bpf.c return sys_bpf(BPF_RAW_TRACEPOINT_OPEN, &attr, sizeof(attr)); attr 662 tools/lib/bpf/bpf.c union bpf_attr attr = {}; attr 665 tools/lib/bpf/bpf.c attr.btf = ptr_to_u64(btf); attr 666 tools/lib/bpf/bpf.c attr.btf_size = btf_size; attr 670 tools/lib/bpf/bpf.c attr.btf_log_level = 1; attr 671 tools/lib/bpf/bpf.c attr.btf_log_size = log_buf_size; attr 672 tools/lib/bpf/bpf.c attr.btf_log_buf = ptr_to_u64(log_buf); attr 675 tools/lib/bpf/bpf.c fd = sys_bpf(BPF_BTF_LOAD, &attr, sizeof(attr)); attr 688 tools/lib/bpf/bpf.c union bpf_attr attr = {}; attr 691 tools/lib/bpf/bpf.c attr.task_fd_query.pid = pid; attr 692 tools/lib/bpf/bpf.c attr.task_fd_query.fd = fd; attr 693 tools/lib/bpf/bpf.c attr.task_fd_query.flags = flags; attr 694 tools/lib/bpf/bpf.c attr.task_fd_query.buf = ptr_to_u64(buf); attr 695 tools/lib/bpf/bpf.c attr.task_fd_query.buf_len = *buf_len; attr 697 tools/lib/bpf/bpf.c err = sys_bpf(BPF_TASK_FD_QUERY, &attr, sizeof(attr)); attr 698 tools/lib/bpf/bpf.c *buf_len = attr.task_fd_query.buf_len; attr 699 tools/lib/bpf/bpf.c *prog_id = attr.task_fd_query.prog_id; attr 700 tools/lib/bpf/bpf.c *fd_type = attr.task_fd_query.fd_type; attr 701 tools/lib/bpf/bpf.c *probe_offset = attr.task_fd_query.probe_offset; attr 702 tools/lib/bpf/bpf.c *probe_addr = attr.task_fd_query.probe_addr; attr 1954 tools/lib/bpf/libbpf.c struct bpf_load_program_attr attr; attr 1964 tools/lib/bpf/libbpf.c memset(&attr, 0, sizeof(attr)); attr 1965 tools/lib/bpf/libbpf.c attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; attr 1966 tools/lib/bpf/libbpf.c attr.insns = insns; attr 1967 tools/lib/bpf/libbpf.c attr.insns_cnt = ARRAY_SIZE(insns); attr 1968 tools/lib/bpf/libbpf.c attr.license = "GPL"; attr 1970 tools/lib/bpf/libbpf.c ret = bpf_load_program_xattr(&attr, NULL, 0); attr 1981 tools/lib/bpf/libbpf.c attr.name = "test"; attr 1982 tools/lib/bpf/libbpf.c ret = bpf_load_program_xattr(&attr, NULL, 0); attr 3637 tools/lib/bpf/libbpf.c struct bpf_object *__bpf_object__open_xattr(struct bpf_object_open_attr *attr, attr 3641 tools/lib/bpf/libbpf.c if (!attr->file) attr 3644 tools/lib/bpf/libbpf.c pr_debug("loading %s\n", attr->file); attr 3646 tools/lib/bpf/libbpf.c return __bpf_object__open(attr->file, NULL, 0, attr 3647 tools/lib/bpf/libbpf.c bpf_prog_type__needs_kver(attr->prog_type), attr 3651 tools/lib/bpf/libbpf.c struct bpf_object *bpf_object__open_xattr(struct bpf_object_open_attr *attr) attr 3653 tools/lib/bpf/libbpf.c return __bpf_object__open_xattr(attr, 0); attr 3658 tools/lib/bpf/libbpf.c struct bpf_object_open_attr attr = { attr 3663 tools/lib/bpf/libbpf.c return bpf_object__open_xattr(&attr); attr 3703 tools/lib/bpf/libbpf.c int bpf_object__load_xattr(struct bpf_object_load_attr *attr) attr 3708 tools/lib/bpf/libbpf.c if (!attr) attr 3710 tools/lib/bpf/libbpf.c obj = attr->obj; attr 3722 tools/lib/bpf/libbpf.c CHECK_ERR(bpf_object__relocate(obj, attr->target_btf_path), err, out); attr 3723 tools/lib/bpf/libbpf.c CHECK_ERR(bpf_object__load_progs(obj, attr->log_level), err, out); attr 3734 tools/lib/bpf/libbpf.c struct bpf_object_load_attr attr = { attr 3738 tools/lib/bpf/libbpf.c return bpf_object__load_xattr(&attr); attr 4802 tools/lib/bpf/libbpf.c struct bpf_prog_load_attr attr; attr 4804 tools/lib/bpf/libbpf.c memset(&attr, 0, sizeof(struct bpf_prog_load_attr)); attr 4805 tools/lib/bpf/libbpf.c attr.file = file; attr 4806 tools/lib/bpf/libbpf.c attr.prog_type = type; attr 4807 tools/lib/bpf/libbpf.c attr.expected_attach_type = 0; attr 4809 tools/lib/bpf/libbpf.c return bpf_prog_load_xattr(&attr, pobj, prog_fd); attr 4812 tools/lib/bpf/libbpf.c int bpf_prog_load_xattr(const struct bpf_prog_load_attr *attr, attr 4823 tools/lib/bpf/libbpf.c if (!attr) attr 4825 tools/lib/bpf/libbpf.c if (!attr->file) attr 4828 tools/lib/bpf/libbpf.c open_attr.file = attr->file; attr 4829 tools/lib/bpf/libbpf.c open_attr.prog_type = attr->prog_type; attr 4840 tools/lib/bpf/libbpf.c prog_type = attr->prog_type; attr 4841 tools/lib/bpf/libbpf.c prog->prog_ifindex = attr->ifindex; attr 4842 tools/lib/bpf/libbpf.c expected_attach_type = attr->expected_attach_type; attr 4856 tools/lib/bpf/libbpf.c prog->log_level = attr->log_level; attr 4857 tools/lib/bpf/libbpf.c prog->prog_flags = attr->prog_flags; attr 4864 tools/lib/bpf/libbpf.c map->map_ifindex = attr->ifindex; attr 5024 tools/lib/bpf/libbpf.c struct perf_event_attr attr = {}; attr 5047 tools/lib/bpf/libbpf.c attr.config |= 1 << bit; attr 5049 tools/lib/bpf/libbpf.c attr.size = sizeof(attr); attr 5050 tools/lib/bpf/libbpf.c attr.type = type; attr 5051 tools/lib/bpf/libbpf.c attr.config1 = ptr_to_u64(name); /* kprobe_func or uprobe_path */ attr 5052 tools/lib/bpf/libbpf.c attr.config2 = offset; /* kprobe_addr or probe_offset */ attr 5055 tools/lib/bpf/libbpf.c pfd = syscall(__NR_perf_event_open, &attr, attr 5154 tools/lib/bpf/libbpf.c struct perf_event_attr attr = {}; attr 5166 tools/lib/bpf/libbpf.c attr.type = PERF_TYPE_TRACEPOINT; attr 5167 tools/lib/bpf/libbpf.c attr.size = sizeof(attr); attr 5168 tools/lib/bpf/libbpf.c attr.config = tp_id; attr 5170 tools/lib/bpf/libbpf.c pfd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, 0 /* cpu */, attr 5301 tools/lib/bpf/libbpf.c struct perf_event_attr *attr; attr 5376 tools/lib/bpf/libbpf.c perf_buffer__open_cpu_buf(struct perf_buffer *pb, struct perf_event_attr *attr, attr 5391 tools/lib/bpf/libbpf.c cpu_buf->fd = syscall(__NR_perf_event_open, attr, -1 /* pid */, cpu, attr 5432 tools/lib/bpf/libbpf.c struct perf_event_attr attr = { 0, }; attr 5434 tools/lib/bpf/libbpf.c attr.config = PERF_COUNT_SW_BPF_OUTPUT, attr 5435 tools/lib/bpf/libbpf.c attr.type = PERF_TYPE_SOFTWARE; attr 5436 tools/lib/bpf/libbpf.c attr.sample_type = PERF_SAMPLE_RAW; attr 5437 tools/lib/bpf/libbpf.c attr.sample_period = 1; attr 5438 tools/lib/bpf/libbpf.c attr.wakeup_events = 1; attr 5440 tools/lib/bpf/libbpf.c p.attr = &attr; attr 5454 tools/lib/bpf/libbpf.c p.attr = opts->attr; attr 5547 tools/lib/bpf/libbpf.c cpu_buf = perf_buffer__open_cpu_buf(pb, p->attr, cpu, map_key); attr 72 tools/lib/bpf/libbpf.h bpf_object__open_xattr(struct bpf_object_open_attr *attr); attr 73 tools/lib/bpf/libbpf.h struct bpf_object *__bpf_object__open_xattr(struct bpf_object_open_attr *attr, attr 100 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__load_xattr(struct bpf_object_load_attr *attr); attr 354 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_prog_load_xattr(const struct bpf_prog_load_attr *attr, attr 197 tools/lib/bpf/libbpf_probes.c struct bpf_create_map_attr attr = {}; attr 274 tools/lib/bpf/libbpf_probes.c attr.map_type = map_type; attr 275 tools/lib/bpf/libbpf_probes.c attr.key_size = key_size; attr 276 tools/lib/bpf/libbpf_probes.c attr.value_size = value_size; attr 277 tools/lib/bpf/libbpf_probes.c attr.max_entries = max_entries; attr 278 tools/lib/bpf/libbpf_probes.c attr.map_flags = map_flags; attr 279 tools/lib/bpf/libbpf_probes.c attr.map_ifindex = ifindex; attr 281 tools/lib/bpf/libbpf_probes.c attr.btf_fd = btf_fd; attr 282 tools/lib/bpf/libbpf_probes.c attr.btf_key_type_id = btf_key_type_id; attr 283 tools/lib/bpf/libbpf_probes.c attr.btf_value_type_id = btf_value_type_id; attr 286 tools/lib/bpf/libbpf_probes.c fd = bpf_create_map_xattr(&attr); attr 193 tools/lib/bpf/netlink.c struct nlattr *tb[IFLA_MAX + 1], *attr; attr 198 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); attr 199 tools/lib/bpf/netlink.c if (libbpf_nla_parse(tb, IFLA_MAX, attr, len, NULL) != 0) attr 310 tools/lib/bpf/netlink.c struct nlattr *tb[TCA_MAX + 1], *attr; attr 315 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); attr 316 tools/lib/bpf/netlink.c if (libbpf_nla_parse(tb, TCA_MAX, attr, len, NULL) != 0) attr 349 tools/lib/bpf/netlink.c struct nlattr *tb[TCA_MAX + 1], *attr; attr 354 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); attr 355 tools/lib/bpf/netlink.c if (libbpf_nla_parse(tb, TCA_MAX, attr, len, NULL) != 0) attr 388 tools/lib/bpf/netlink.c struct nlattr *tb[TCA_MAX + 1], *attr; attr 393 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); attr 394 tools/lib/bpf/netlink.c if (libbpf_nla_parse(tb, TCA_MAX, attr, len, NULL) != 0) attr 163 tools/lib/bpf/nlattr.c struct nlattr *tb[NLMSGERR_ATTR_MAX + 1], *attr; attr 179 tools/lib/bpf/nlattr.c attr = (struct nlattr *) ((void *) err + hlen); attr 182 tools/lib/bpf/nlattr.c if (libbpf_nla_parse(tb, NLMSGERR_ATTR_MAX, attr, alen, attr 24 tools/lib/lockdep/include/liblockdep/rwlock.h const pthread_rwlockattr_t *attr) attr 28 tools/lib/lockdep/include/liblockdep/rwlock.h return pthread_rwlock_init(&lock->rwlock, attr); attr 31 tools/lib/lockdep/include/liblockdep/rwlock.h #define liblockdep_pthread_rwlock_init(lock, attr) \ attr 35 tools/lib/lockdep/include/liblockdep/rwlock.h __rwlock_init((lock), #lock, &__key, (attr)); \ attr 45 tools/lib/lockdep/preload.c extern int __pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr); attr 58 tools/lib/lockdep/preload.c const pthread_mutexattr_t *attr) = __pthread_mutex_init; attr 67 tools/lib/lockdep/preload.c extern int __pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr); attr 85 tools/lib/lockdep/preload.c const pthread_rwlockattr_t *attr) = __pthread_rwlock_init; attr 221 tools/lib/lockdep/preload.c const pthread_mutexattr_t *attr) attr 237 tools/lib/lockdep/preload.c r = ll_pthread_mutex_init(mutex, attr); attr 327 tools/lib/lockdep/preload.c const pthread_rwlockattr_t *attr) attr 333 tools/lib/lockdep/preload.c r = ll_pthread_rwlock_init(rwlock, attr); attr 74 tools/perf/arch/arm/util/auxtrace.c evsel->core.attr.type == cs_etm_pmu->type) attr 81 tools/perf/arch/arm/util/auxtrace.c if (evsel->core.attr.type == arm_spe_pmus[i]->type) { attr 102 tools/perf/arch/arm/util/cs-etm.c evsel->core.attr.config |= (1 << ETM_OPT_CTXTID); attr 151 tools/perf/arch/arm/util/cs-etm.c evsel->core.attr.config |= (1 << ETM_OPT_TS); attr 222 tools/perf/arch/arm/util/cs-etm.c if (evsel->core.attr.config2 & GENMASK(31, 0)) attr 240 tools/perf/arch/arm/util/cs-etm.c evsel->core.attr.config2 |= hash; attr 271 tools/perf/arch/arm/util/cs-etm.c if (evsel->core.attr.type == cs_etm_pmu->type) { attr 277 tools/perf/arch/arm/util/cs-etm.c evsel->core.attr.freq = 0; attr 278 tools/perf/arch/arm/util/cs-etm.c evsel->core.attr.sample_period = 1; attr 423 tools/perf/arch/arm/util/cs-etm.c tracking_evsel->core.attr.freq = 0; attr 424 tools/perf/arch/arm/util/cs-etm.c tracking_evsel->core.attr.sample_period = 1; attr 445 tools/perf/arch/arm/util/cs-etm.c if (evsel->core.attr.type == cs_etm_pmu->type) { attr 454 tools/perf/arch/arm/util/cs-etm.c config = evsel->core.attr.config; attr 827 tools/perf/arch/arm/util/cs-etm.c if (evsel->core.attr.type == ptr->cs_etm_pmu->type) attr 840 tools/perf/arch/arm/util/cs-etm.c if (evsel->core.attr.type == ptr->cs_etm_pmu->type) attr 868 tools/perf/arch/arm/util/cs-etm.c if (evsel->core.attr.type == ptr->cs_etm_pmu->type) { attr 78 tools/perf/arch/arm64/util/arm-spe.c if (evsel->core.attr.type == arm_spe_pmu->type) { attr 83 tools/perf/arch/arm64/util/arm-spe.c evsel->core.attr.freq = 0; attr 84 tools/perf/arch/arm64/util/arm-spe.c evsel->core.attr.sample_period = 1; attr 135 tools/perf/arch/arm64/util/arm-spe.c tracking_evsel->core.attr.freq = 0; attr 136 tools/perf/arch/arm64/util/arm-spe.c tracking_evsel->core.attr.sample_period = 1; attr 168 tools/perf/arch/arm64/util/arm-spe.c if (evsel->core.attr.type == sper->arm_spe_pmu->type) { attr 210 tools/perf/arch/arm64/util/arm-spe.c struct perf_event_attr *attr; attr 212 tools/perf/arch/arm64/util/arm-spe.c attr = zalloc(sizeof(struct perf_event_attr)); attr 213 tools/perf/arch/arm64/util/arm-spe.c if (!attr) { attr 223 tools/perf/arch/arm64/util/arm-spe.c &attr->sample_period) != 1) { attr 225 tools/perf/arch/arm64/util/arm-spe.c attr->sample_period = 4096; attr 231 tools/perf/arch/arm64/util/arm-spe.c return attr; attr 99 tools/perf/arch/s390/util/auxtrace.c if (pos->core.attr.config == PERF_EVENT_CPUM_SF_DIAG) { attr 93 tools/perf/arch/x86/tests/intel-cqm.c pe.type = evsel->attr.type; attr 94 tools/perf/arch/x86/tests/intel-cqm.c pe.config = evsel->attr.config; attr 88 tools/perf/arch/x86/tests/perf-time-to-tsc.c evsel->core.attr.comm = 1; attr 89 tools/perf/arch/x86/tests/perf-time-to-tsc.c evsel->core.attr.disabled = 1; attr 90 tools/perf/arch/x86/tests/perf-time-to-tsc.c evsel->core.attr.enable_on_exec = 0; attr 102 tools/perf/arch/x86/tests/rdpmc.c struct perf_event_attr attr = { attr 116 tools/perf/arch/x86/tests/rdpmc.c fd = sys_perf_event_open(&attr, 0, -1, -1, attr 32 tools/perf/arch/x86/util/auxtrace.c if (intel_pt_pmu && evsel->core.attr.type == intel_pt_pmu->type) attr 34 tools/perf/arch/x86/util/auxtrace.c if (intel_bts_pmu && evsel->core.attr.type == intel_bts_pmu->type) attr 120 tools/perf/arch/x86/util/intel-bts.c if (evsel->core.attr.type == intel_bts_pmu->type) { attr 125 tools/perf/arch/x86/util/intel-bts.c evsel->core.attr.freq = 0; attr 126 tools/perf/arch/x86/util/intel-bts.c evsel->core.attr.sample_period = 1; attr 238 tools/perf/arch/x86/util/intel-bts.c tracking_evsel->core.attr.freq = 0; attr 239 tools/perf/arch/x86/util/intel-bts.c tracking_evsel->core.attr.sample_period = 1; attr 323 tools/perf/arch/x86/util/intel-bts.c if (evsel->core.attr.type == btsr->intel_bts_pmu->type) attr 336 tools/perf/arch/x86/util/intel-bts.c if (evsel->core.attr.type == btsr->intel_bts_pmu->type) attr 418 tools/perf/arch/x86/util/intel-bts.c if (evsel->core.attr.type == btsr->intel_bts_pmu->type) { attr 65 tools/perf/arch/x86/util/intel-pt.c struct perf_event_attr attr = { .size = 0, }; attr 78 tools/perf/arch/x86/util/intel-pt.c attr.config = *config; attr 79 tools/perf/arch/x86/util/intel-pt.c err = perf_pmu__config_terms(formats, &attr, terms, true, NULL); attr 83 tools/perf/arch/x86/util/intel-pt.c *config = attr.config; attr 128 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == intel_pt_pmu->type) { attr 129 tools/perf/arch/x86/util/intel-pt.c *res = intel_pt_masked_bits(mask, evsel->core.attr.config); attr 261 tools/perf/arch/x86/util/intel-pt.c struct perf_event_attr *attr; attr 263 tools/perf/arch/x86/util/intel-pt.c attr = zalloc(sizeof(struct perf_event_attr)); attr 264 tools/perf/arch/x86/util/intel-pt.c if (!attr) attr 267 tools/perf/arch/x86/util/intel-pt.c attr->config = intel_pt_default_config(intel_pt_pmu); attr 271 tools/perf/arch/x86/util/intel-pt.c return attr; attr 280 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == intel_pt_pmu->type) attr 532 tools/perf/arch/x86/util/intel-pt.c !(evsel->core.attr.config & 1)) { attr 534 tools/perf/arch/x86/util/intel-pt.c evsel->core.attr.config |= 1; attr 539 tools/perf/arch/x86/util/intel-pt.c evsel->core.attr.config); attr 545 tools/perf/arch/x86/util/intel-pt.c evsel->core.attr.config); attr 551 tools/perf/arch/x86/util/intel-pt.c evsel->core.attr.config); attr 564 tools/perf/arch/x86/util/intel-pt.c aux_output_cnt += !!evsel->core.attr.aux_output; attr 592 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == intel_pt_pmu->type) { attr 597 tools/perf/arch/x86/util/intel-pt.c evsel->core.attr.freq = 0; attr 598 tools/perf/arch/x86/util/intel-pt.c evsel->core.attr.sample_period = 1; attr 699 tools/perf/arch/x86/util/intel-pt.c if (opts->full_auxtrace && (intel_pt_evsel->core.attr.config & tsc_bit)) attr 722 tools/perf/arch/x86/util/intel-pt.c switch_evsel->core.attr.freq = 0; attr 723 tools/perf/arch/x86/util/intel-pt.c switch_evsel->core.attr.sample_period = 1; attr 724 tools/perf/arch/x86/util/intel-pt.c switch_evsel->core.attr.context_switch = 1; attr 782 tools/perf/arch/x86/util/intel-pt.c tracking_evsel->core.attr.freq = 0; attr 783 tools/perf/arch/x86/util/intel-pt.c tracking_evsel->core.attr.sample_period = 1; attr 816 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == ptr->intel_pt_pmu->type) attr 829 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == ptr->intel_pt_pmu->type) attr 1102 tools/perf/arch/x86/util/intel-pt.c if (evsel->core.attr.type == ptr->intel_pt_pmu->type) { attr 278 tools/perf/arch/x86/util/perf_regs.c struct perf_event_attr attr = { attr 291 tools/perf/arch/x86/util/perf_regs.c attr.sample_period = 1; attr 293 tools/perf/arch/x86/util/perf_regs.c event_attr_init(&attr); attr 295 tools/perf/arch/x86/util/perf_regs.c fd = sys_perf_event_open(&attr, 0, -1, -1, 0); attr 57 tools/perf/bench/bench.h static inline int pthread_attr_setaffinity_np(pthread_attr_t *attr __maybe_unused, attr 475 tools/perf/bench/numa.c pthread_mutexattr_t attr; attr 477 tools/perf/bench/numa.c pthread_mutexattr_init(&attr); attr 478 tools/perf/bench/numa.c pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED); attr 479 tools/perf/bench/numa.c pthread_mutex_init(mutex, &attr); attr 139 tools/perf/bench/sched-messaging.c pthread_attr_t attr; attr 161 tools/perf/bench/sched-messaging.c if (pthread_attr_init(&attr) != 0) attr 165 tools/perf/bench/sched-messaging.c if (pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN) != 0) attr 169 tools/perf/bench/sched-messaging.c ret = pthread_create(&childid, &attr, func, ctx); attr 484 tools/perf/builtin-annotate.c .attr = perf_event__process_attr, attr 39 tools/perf/builtin-evlist.c if (pos->core.attr.type == PERF_TYPE_TRACEPOINT) attr 535 tools/perf/builtin-inject.c perf_event__synthesize_sample(event_sw, evsel->core.attr.sample_type, attr 536 tools/perf/builtin-inject.c evsel->core.attr.read_format, &sample_sw); attr 549 tools/perf/builtin-inject.c struct perf_event_attr *attr = &evsel->core.attr; attr 552 tools/perf/builtin-inject.c if (!(attr->sample_type & sample_type)) { attr 583 tools/perf/builtin-inject.c return evsel->core.attr.mmap || evsel->core.attr.mmap2 || evsel->core.attr.comm || attr 584 tools/perf/builtin-inject.c evsel->core.attr.task; attr 608 tools/perf/builtin-inject.c if ((evsel->core.attr.sample_type & COMPAT_MASK) == attr 609 tools/perf/builtin-inject.c (evsel_to_remove->core.attr.sample_type & COMPAT_MASK)) attr 761 tools/perf/builtin-inject.c .attr = perf_event__repipe_attr, attr 1032 tools/perf/builtin-kvm.c struct perf_event_attr *attr = &pos->core.attr; attr 1045 tools/perf/builtin-kvm.c attr->mmap = 0; attr 1046 tools/perf/builtin-kvm.c attr->comm = 0; attr 1047 tools/perf/builtin-kvm.c attr->task = 0; attr 1049 tools/perf/builtin-kvm.c attr->sample_period = 1; attr 1051 tools/perf/builtin-kvm.c attr->watermark = 0; attr 1052 tools/perf/builtin-kvm.c attr->wakeup_events = 1000; attr 1055 tools/perf/builtin-kvm.c attr->disabled = 1; attr 763 tools/perf/builtin-record.c pos->core.attr.enable_on_exec = 1; attr 1055 tools/perf/builtin-report.c .attr = perf_event__process_attr, attr 558 tools/perf/builtin-sched.c struct perf_event_attr attr; attr 564 tools/perf/builtin-sched.c memset(&attr, 0, sizeof(attr)); attr 566 tools/perf/builtin-sched.c attr.type = PERF_TYPE_SOFTWARE; attr 567 tools/perf/builtin-sched.c attr.config = PERF_COUNT_SW_TASK_CLOCK; attr 570 tools/perf/builtin-sched.c fd = sys_perf_event_open(&attr, 0, -1, -1, attr 662 tools/perf/builtin-sched.c pthread_attr_t attr; attr 666 tools/perf/builtin-sched.c err = pthread_attr_init(&attr); attr 668 tools/perf/builtin-sched.c err = pthread_attr_setstacksize(&attr, attr 685 tools/perf/builtin-sched.c err = pthread_create(&task->thread, &attr, thread_func, parms); attr 2984 tools/perf/builtin-sched.c sched->tool.attr = perf_event__process_attr; attr 350 tools/perf/builtin-script.c #define PRINT_FIELD(x) (output[output_type(attr->type)].fields & PERF_OUTPUT_##x) attr 357 tools/perf/builtin-script.c struct perf_event_attr *attr = &evsel->core.attr; attr 358 tools/perf/builtin-script.c int type = output_type(attr->type); attr 361 tools/perf/builtin-script.c if (attr->sample_type & sample_type) attr 395 tools/perf/builtin-script.c struct perf_event_attr *attr = &evsel->core.attr; attr 430 tools/perf/builtin-script.c !(evsel->core.attr.sample_type & (PERF_SAMPLE_IP|PERF_SAMPLE_ADDR))) { attr 442 tools/perf/builtin-script.c !(evsel->core.attr.sample_type & (PERF_SAMPLE_IP|PERF_SAMPLE_ADDR))) { attr 491 tools/perf/builtin-script.c static void set_print_ip_opts(struct perf_event_attr *attr) attr 493 tools/perf/builtin-script.c unsigned int type = output_type(attr->type); attr 543 tools/perf/builtin-script.c set_print_ip_opts(&evsel->core.attr); attr 570 tools/perf/builtin-script.c if (evsel->core.attr.type != j) attr 578 tools/perf/builtin-script.c set_print_ip_opts(&evsel->core.attr); attr 611 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 614 tools/perf/builtin-script.c attr->sample_regs_intr, fp); attr 618 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 621 tools/perf/builtin-script.c attr->sample_regs_user, fp); attr 629 tools/perf/builtin-script.c struct perf_event_attr *attr = &evsel->core.attr; attr 735 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 782 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 827 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 972 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 1010 tools/perf/builtin-script.c struct perf_event_attr *attr, attr 1039 tools/perf/builtin-script.c x.cpumode, x.cpu, &lastsym, attr, fp); attr 1069 tools/perf/builtin-script.c printed += ip__fprintf_sym(ip, thread, x.cpumode, x.cpu, &lastsym, attr, fp); attr 1115 tools/perf/builtin-script.c printed += ip__fprintf_sym(start, thread, x.cpumode, x.cpu, &lastsym, attr, fp); attr 1150 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 1155 tools/perf/builtin-script.c if (!sample_addr_correlates_sym(attr)) attr 1184 tools/perf/builtin-script.c struct perf_event_attr *attr = &evsel->core.attr; attr 1188 tools/perf/builtin-script.c if (sample_addr_correlates_sym(attr)) { attr 1211 tools/perf/builtin-script.c struct perf_event_attr *attr = &evsel->core.attr; attr 1262 tools/perf/builtin-script.c struct perf_event_attr *attr, attr 1281 tools/perf/builtin-script.c printed += perf_sample__fprintf_brstackinsn(sample, thread, attr, machine, fp); attr 1287 tools/perf/builtin-script.c struct perf_event_attr *attr, FILE *fp) attr 1306 tools/perf/builtin-script.c struct perf_event_attr *attr = &evsel->core.attr; attr 1307 tools/perf/builtin-script.c unsigned int type = output_type(attr->type); attr 1339 tools/perf/builtin-script.c ((evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) && attr 1342 tools/perf/builtin-script.c printed += perf_sample__fprintf_addr(sample, thread, attr, fp); attr 1345 tools/perf/builtin-script.c printed += perf_sample__fprintf_ipc(sample, attr, fp); attr 1350 tools/perf/builtin-script.c printed += perf_sample__fprintf_insn(sample, attr, thread, machine, fp); attr 1612 tools/perf/builtin-script.c switch (evsel->core.attr.config) { attr 1811 tools/perf/builtin-script.c struct perf_event_attr *attr = &evsel->core.attr; attr 1812 tools/perf/builtin-script.c unsigned int type = output_type(attr->type); attr 1845 tools/perf/builtin-script.c if (is_bts_event(attr)) { attr 1855 tools/perf/builtin-script.c if (attr->type == PERF_TYPE_SYNTH && PRINT_FIELD(SYNTH)) attr 1859 tools/perf/builtin-script.c perf_sample__fprintf_addr(sample, thread, attr, fp); attr 1881 tools/perf/builtin-script.c perf_sample__fprintf_iregs(sample, attr, fp); attr 1884 tools/perf/builtin-script.c perf_sample__fprintf_uregs(sample, attr, fp); attr 1887 tools/perf/builtin-script.c perf_sample__fprintf_brstack(sample, thread, attr, fp); attr 1889 tools/perf/builtin-script.c perf_sample__fprintf_brstacksym(sample, thread, attr, fp); attr 1891 tools/perf/builtin-script.c perf_sample__fprintf_brstackoff(sample, thread, attr, fp); attr 1895 tools/perf/builtin-script.c perf_sample__fprintf_insn(sample, attr, thread, machine, fp); attr 1900 tools/perf/builtin-script.c perf_sample__fprintf_ipc(sample, attr, fp); attr 2068 tools/perf/builtin-script.c if (evsel->core.attr.type >= PERF_TYPE_MAX && attr 2069 tools/perf/builtin-script.c evsel->core.attr.type != PERF_TYPE_SYNTH) attr 2073 tools/perf/builtin-script.c if (pos->core.attr.type == evsel->core.attr.type && pos != evsel) attr 2077 tools/perf/builtin-script.c set_print_ip_opts(&evsel->core.attr); attr 2079 tools/perf/builtin-script.c if (evsel->core.attr.sample_type) attr 2105 tools/perf/builtin-script.c if (!evsel->core.attr.sample_id_all) { attr 2143 tools/perf/builtin-script.c if (!evsel->core.attr.sample_id_all) { attr 2179 tools/perf/builtin-script.c if (!evsel->core.attr.sample_id_all) { attr 2211 tools/perf/builtin-script.c if (!evsel->core.attr.sample_id_all) { attr 2249 tools/perf/builtin-script.c if (!evsel->core.attr.sample_id_all) { attr 2283 tools/perf/builtin-script.c if (!evsel->core.attr.sample_id_all) { attr 2382 tools/perf/builtin-script.c if (!evsel->core.attr.sample_id_all) { attr 3426 tools/perf/builtin-script.c .attr = process_attr, attr 398 tools/perf/builtin-stat.c return STAT_RECORD || counter->core.attr.read_format & PERF_FORMAT_ID; attr 1083 tools/perf/builtin-stat.c static int topdown_filter_events(const char **attr, char **str, bool use_group) attr 1090 tools/perf/builtin-stat.c for (i = 0; attr[i]; i++) { attr 1091 tools/perf/builtin-stat.c if (pmu_have_event("cpu", attr[i])) { attr 1092 tools/perf/builtin-stat.c len += strlen(attr[i]) + 1; attr 1093 tools/perf/builtin-stat.c attr[i - off] = attr[i]; attr 1097 tools/perf/builtin-stat.c attr[i - off] = NULL; attr 1109 tools/perf/builtin-stat.c for (i = 0; attr[i]; i++) { attr 1110 tools/perf/builtin-stat.c strcpy(s, attr[i]); attr 1597 tools/perf/builtin-stat.c .attr = perf_event__process_attr, attr 560 tools/perf/builtin-timechart.c if (evsel->core.attr.sample_type & PERF_SAMPLE_TIME) { attr 994 tools/perf/builtin-top.c counter->core.attr.write_backward = false; attr 2061 tools/perf/builtin-trace.c int max_stack = evsel->core.attr.sample_max_stack ? attr 2062 tools/perf/builtin-trace.c evsel->core.attr.sample_max_stack : attr 2477 tools/perf/builtin-trace.c if (evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MAJ) attr 2490 tools/perf/builtin-trace.c evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MAJ ? attr 2538 tools/perf/builtin-trace.c (evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) attr 2662 tools/perf/builtin-trace.c struct perf_event_attr attr = { attr 2667 tools/perf/builtin-trace.c attr.config = config; attr 2668 tools/perf/builtin-trace.c attr.sample_period = 1; attr 2670 tools/perf/builtin-trace.c event_attr_init(&attr); attr 2672 tools/perf/builtin-trace.c evsel = evsel__new(&attr); attr 2700 tools/perf/builtin-trace.c if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT && attr 2746 tools/perf/builtin-trace.c sys_exit->core.attr.exclude_callchain_kernel = 1; attr 3432 tools/perf/builtin-trace.c evlist__first(evlist)->core.attr.inherit; attr 3442 tools/perf/builtin-trace.c evsel->core.attr.sample_max_stack == 0) attr 3443 tools/perf/builtin-trace.c evsel->core.attr.sample_max_stack = trace->max_stack; attr 3579 tools/perf/builtin-trace.c trace->tool.attr = perf_event__process_attr; attr 3636 tools/perf/builtin-trace.c if (evsel->core.attr.type == PERF_TYPE_SOFTWARE && attr 3637 tools/perf/builtin-trace.c (evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MAJ || attr 3638 tools/perf/builtin-trace.c evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS_MIN || attr 3639 tools/perf/builtin-trace.c evsel->core.attr.config == PERF_COUNT_SW_PAGE_FAULTS)) attr 179 tools/perf/lib/evlist.c return first->attr.read_format; attr 230 tools/perf/lib/evlist.c if (!(evsel->attr.read_format & PERF_FORMAT_ID) || attr 234 tools/perf/lib/evlist.c if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) attr 236 tools/perf/lib/evlist.c if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) attr 19 tools/perf/lib/evsel.c void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr) attr 22 tools/perf/lib/evsel.c evsel->attr = *attr; attr 25 tools/perf/lib/evsel.c struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr) attr 30 tools/perf/lib/evsel.c perf_evsel__init(evsel, attr); attr 59 tools/perf/lib/evsel.c sys_perf_event_open(struct perf_event_attr *attr, attr 63 tools/perf/lib/evsel.c return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags); attr 103 tools/perf/lib/evsel.c fd = sys_perf_event_open(&evsel->attr, attr 145 tools/perf/lib/evsel.c u64 read_format = evsel->attr.read_format; attr 231 tools/perf/lib/evsel.c return &evsel->attr; attr 39 tools/perf/lib/include/internal/evsel.h struct perf_event_attr attr; attr 121 tools/perf/lib/include/perf/event.h struct perf_event_attr attr; attr 363 tools/perf/lib/include/perf/event.h struct perf_record_header_attr attr; attr 25 tools/perf/lib/include/perf/evsel.h struct perf_event_attr *attr); attr 26 tools/perf/lib/include/perf/evsel.h LIBPERF_API struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr); attr 20 tools/perf/lib/tests/test-evsel.c struct perf_event_attr attr = { attr 29 tools/perf/lib/tests/test-evsel.c evsel = perf_evsel__new(&attr); attr 54 tools/perf/lib/tests/test-evsel.c struct perf_event_attr attr = { attr 65 tools/perf/lib/tests/test-evsel.c evsel = perf_evsel__new(&attr); attr 86 tools/perf/lib/tests/test-evsel.c struct perf_event_attr attr = { attr 98 tools/perf/lib/tests/test-evsel.c evsel = perf_evsel__new(&attr); attr 15 tools/perf/perf-sys.h void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, attr 23 tools/perf/perf-sys.h sys_perf_event_open(struct perf_event_attr *attr, attr 29 tools/perf/perf-sys.h fd = syscall(__NR_perf_event_open, attr, pid, cpu, attr 34 tools/perf/perf-sys.h test_attr__open(attr, pid, cpu, fd, group_fd, flags); attr 65 tools/perf/tests/attr.c #define WRITE_ASS(field, fmt) __WRITE_ASS(field, fmt, attr->field) attr 67 tools/perf/tests/attr.c static int store_event(struct perf_event_attr *attr, pid_t pid, int cpu, attr 77 tools/perf/tests/attr.c attr->type, attr->config, fd); attr 86 tools/perf/tests/attr.c attr->type, attr->config, fd) < 0) { attr 146 tools/perf/tests/attr.c void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, attr 151 tools/perf/tests/attr.c if ((fd != -1) && store_event(attr, pid, cpu, fd, group_fd, flags)) { attr 33 tools/perf/tests/bp_account.c static int __event(bool is_x, void *addr, struct perf_event_attr *attr) attr 37 tools/perf/tests/bp_account.c memset(attr, 0, sizeof(struct perf_event_attr)); attr 38 tools/perf/tests/bp_account.c attr->type = PERF_TYPE_BREAKPOINT; attr 39 tools/perf/tests/bp_account.c attr->size = sizeof(struct perf_event_attr); attr 41 tools/perf/tests/bp_account.c attr->config = 0; attr 42 tools/perf/tests/bp_account.c attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; attr 43 tools/perf/tests/bp_account.c attr->bp_addr = (unsigned long) addr; attr 44 tools/perf/tests/bp_account.c attr->bp_len = sizeof(long); attr 46 tools/perf/tests/bp_account.c attr->sample_period = 1; attr 47 tools/perf/tests/bp_account.c attr->sample_type = PERF_SAMPLE_IP; attr 49 tools/perf/tests/bp_account.c attr->exclude_kernel = 1; attr 50 tools/perf/tests/bp_account.c attr->exclude_hv = 1; attr 52 tools/perf/tests/bp_account.c fd = sys_perf_event_open(attr, -1, 0, -1, attr 55 tools/perf/tests/bp_account.c pr_debug("failed opening event %llx\n", attr->config); attr 62 tools/perf/tests/bp_account.c static int wp_event(void *addr, struct perf_event_attr *attr) attr 64 tools/perf/tests/bp_account.c return __event(false, addr, attr); attr 67 tools/perf/tests/bp_account.c static int bp_event(void *addr, struct perf_event_attr *attr) attr 69 tools/perf/tests/bp_account.c return __event(true, addr, attr); attr 74 tools/perf/tests/bp_account.c struct perf_event_attr attr, attr_mod, attr_new; attr 78 tools/perf/tests/bp_account.c fd[i] = wp_event((void *)&the_var, &attr); attr 83 tools/perf/tests/bp_account.c attr_mod = attr; attr 106 tools/perf/tests/bp_account.c struct perf_event_attr attr; attr 115 tools/perf/tests/bp_account.c fd[cnt] = __event(is_x, addr, &attr); attr 130 tools/perf/tests/bp_account.c struct perf_event_attr attr; attr 133 tools/perf/tests/bp_account.c fd = wp_event((void *) &the_var, &attr); attr 135 tools/perf/tests/bp_account.c ret = ioctl(fd, PERF_EVENT_IOC_MODIFY_ATTRIBUTES, &attr); attr 144 tools/perf/tests/bp_account.c struct perf_event_attr attr; attr 148 tools/perf/tests/bp_account.c fd[i] = wp_event((void *)&the_var, &attr); attr 153 tools/perf/tests/bp_account.c fd[i] = bp_event((void *)test_function, &attr); attr 657 tools/perf/tests/code-reading.c evsel->core.attr.comm = 1; attr 658 tools/perf/tests/code-reading.c evsel->core.attr.disabled = 1; attr 659 tools/perf/tests/code-reading.c evsel->core.attr.enable_on_exec = 0; attr 41 tools/perf/tests/event-times.c evsel->core.attr.enable_on_exec = 1; attr 73 tools/perf/tests/event-times.c evsel->core.attr.disabled = 1; attr 126 tools/perf/tests/event-times.c evsel->core.attr.disabled = 1; attr 184 tools/perf/tests/event-times.c evsel->core.attr.read_format |= attr 98 tools/perf/tests/keep-tracking.c evsel->core.attr.comm = 1; attr 99 tools/perf/tests/keep-tracking.c evsel->core.attr.disabled = 1; attr 100 tools/perf/tests/keep-tracking.c evsel->core.attr.enable_on_exec = 0; attr 87 tools/perf/tests/mmap-basic.c evsels[i]->core.attr.wakeup_events = 1; attr 53 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); attr 55 tools/perf/tests/parse-events.c PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); attr 56 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); attr 69 tools/perf/tests/parse-events.c PERF_TYPE_TRACEPOINT == evsel->core.attr.type); attr 71 tools/perf/tests/parse-events.c PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); attr 73 tools/perf/tests/parse-events.c 1 == evsel->core.attr.sample_period); attr 83 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 84 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); attr 93 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); attr 94 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); attr 103 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 105 tools/perf/tests/parse-events.c PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); attr 114 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 116 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 122 tools/perf/tests/parse-events.c 0 == evsel->core.attr.sample_period); attr 124 tools/perf/tests/parse-events.c 0 == evsel->core.attr.config1); attr 126 tools/perf/tests/parse-events.c 1 == evsel->core.attr.config2); attr 135 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); attr 137 tools/perf/tests/parse-events.c PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config); attr 146 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type); attr 147 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", (1 << 16) == evsel->core.attr.config); attr 156 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); attr 157 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); attr 159 tools/perf/tests/parse-events.c evsel->core.attr.bp_type); attr 161 tools/perf/tests/parse-events.c evsel->core.attr.bp_len); attr 170 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); attr 171 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); attr 173 tools/perf/tests/parse-events.c HW_BREAKPOINT_X == evsel->core.attr.bp_type); attr 174 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong bp_len", sizeof(long) == evsel->core.attr.bp_len); attr 184 tools/perf/tests/parse-events.c PERF_TYPE_BREAKPOINT == evsel->core.attr.type); attr 185 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); attr 187 tools/perf/tests/parse-events.c HW_BREAKPOINT_R == evsel->core.attr.bp_type); attr 189 tools/perf/tests/parse-events.c HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); attr 199 tools/perf/tests/parse-events.c PERF_TYPE_BREAKPOINT == evsel->core.attr.type); attr 200 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); attr 202 tools/perf/tests/parse-events.c HW_BREAKPOINT_W == evsel->core.attr.bp_type); attr 204 tools/perf/tests/parse-events.c HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); attr 214 tools/perf/tests/parse-events.c PERF_TYPE_BREAKPOINT == evsel->core.attr.type); attr 215 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); attr 217 tools/perf/tests/parse-events.c (HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->core.attr.bp_type); attr 219 tools/perf/tests/parse-events.c HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); attr 227 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 228 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 229 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 230 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 244 tools/perf/tests/parse-events.c !evsel->core.attr.exclude_user); attr 246 tools/perf/tests/parse-events.c evsel->core.attr.exclude_kernel); attr 247 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 248 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 258 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 259 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 260 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 261 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 270 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 271 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 272 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 273 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 282 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 283 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 284 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 285 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 294 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 295 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 304 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 305 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 314 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 315 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 316 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 317 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 326 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 327 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 328 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 329 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 338 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); attr 339 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 340 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 341 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 342 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 343 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 344 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 353 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); attr 354 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 355 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 356 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 357 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 358 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 359 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 369 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 370 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 371 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 372 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 383 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 384 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 385 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 386 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 397 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 398 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 399 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 400 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 411 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 412 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 413 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 414 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 425 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 426 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 427 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 428 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 441 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 442 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 10 == evsel->core.attr.config); attr 443 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config1", 1 == evsel->core.attr.config1); attr 444 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config2", 3 == evsel->core.attr.config2); attr 449 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); attr 461 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 462 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); attr 463 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config1", 0 == evsel->core.attr.config1); attr 464 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2); attr 465 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 466 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 467 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 468 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 472 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); attr 474 tools/perf/tests/parse-events.c PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); attr 475 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); attr 476 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 477 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 478 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 479 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 483 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); attr 484 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); attr 485 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 486 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 487 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 488 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 499 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 500 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); attr 506 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 507 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config); attr 520 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 521 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); attr 527 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); attr 529 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); attr 533 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 534 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config); attr 540 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); attr 542 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); attr 552 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 554 tools/perf/tests/parse-events.c !evsel->core.attr.exclude_user); attr 556 tools/perf/tests/parse-events.c evsel->core.attr.exclude_kernel); attr 557 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 558 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 559 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); attr 572 tools/perf/tests/parse-events.c !evsel->core.attr.exclude_user); attr 574 tools/perf/tests/parse-events.c evsel->core.attr.exclude_kernel); attr 575 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 576 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 577 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); attr 582 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); attr 584 tools/perf/tests/parse-events.c !evsel->core.attr.exclude_user); attr 586 tools/perf/tests/parse-events.c evsel->core.attr.exclude_kernel); attr 587 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 588 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 589 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); attr 646 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 648 tools/perf/tests/parse-events.c PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); attr 649 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 650 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 651 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 652 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 653 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 654 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 662 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 664 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 665 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 666 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 667 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 669 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 670 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 671 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); attr 688 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); attr 690 tools/perf/tests/parse-events.c PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config); attr 691 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 692 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 693 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 694 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 695 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 696 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 704 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 706 tools/perf/tests/parse-events.c PERF_COUNT_HW_CACHE_REFERENCES == evsel->core.attr.config); attr 707 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 708 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 709 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 710 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 711 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 712 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 719 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 721 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 722 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 723 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 724 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 725 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 726 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 727 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 743 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); attr 745 tools/perf/tests/parse-events.c PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); attr 746 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); attr 747 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 748 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 749 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 750 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 751 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 752 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 762 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 764 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 765 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 766 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 767 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 769 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 770 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 771 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 3); attr 779 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 781 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 782 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 783 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 784 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 785 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 786 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 787 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 797 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); attr 798 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 3 == evsel->core.attr.config); attr 799 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 800 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 801 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 802 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 803 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 804 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 811 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 813 tools/perf/tests/parse-events.c PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); attr 814 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 815 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 816 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 817 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 818 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 819 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 835 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 837 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 838 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 839 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 840 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 842 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 843 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 844 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 1); attr 853 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 855 tools/perf/tests/parse-events.c PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); attr 856 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 857 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 858 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 860 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 861 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 862 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); attr 879 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 881 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 882 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 883 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 884 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 885 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 886 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 887 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 896 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 898 tools/perf/tests/parse-events.c PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); attr 899 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 900 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 901 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 902 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 903 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 904 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 911 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 913 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 914 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 915 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 916 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 917 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 918 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 919 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 928 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 930 tools/perf/tests/parse-events.c PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); attr 931 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 932 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 933 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 934 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 935 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 936 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 942 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 944 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 945 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 946 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 947 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 948 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 949 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 950 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 965 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 967 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 968 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 969 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 970 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 971 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 972 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 973 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 981 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 983 tools/perf/tests/parse-events.c PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); attr 984 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 985 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 986 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 987 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 988 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 989 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1005 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1007 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 1008 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1009 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 1010 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 1011 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 1012 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 1013 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1021 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1023 tools/perf/tests/parse-events.c PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); attr 1024 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1025 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 1026 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 1027 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 1028 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1029 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1045 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1047 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 1048 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1049 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1050 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1051 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 1052 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 1053 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1061 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1063 tools/perf/tests/parse-events.c PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); attr 1064 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1065 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1066 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1067 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 1068 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1069 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1085 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1087 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 1088 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1089 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1090 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1091 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 1092 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); attr 1093 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1101 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1103 tools/perf/tests/parse-events.c PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); attr 1104 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1105 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1106 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1107 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); attr 1108 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1109 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1124 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1126 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 1127 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1128 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 1129 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 1130 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 1131 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1132 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1139 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1141 tools/perf/tests/parse-events.c PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); attr 1142 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1143 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 1144 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 1145 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 1146 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1147 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1153 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1155 tools/perf/tests/parse-events.c PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); attr 1156 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1157 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); attr 1158 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); attr 1159 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 1160 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1161 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1177 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1179 tools/perf/tests/parse-events.c PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); attr 1180 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1181 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1182 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1183 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 1184 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1185 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1192 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1194 tools/perf/tests/parse-events.c PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); attr 1195 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1196 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1197 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1198 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); attr 1199 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); attr 1200 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1212 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1213 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1214 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1215 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); attr 1216 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); attr 1229 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1231 tools/perf/tests/parse-events.c PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); attr 1234 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); attr 1238 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); attr 1240 tools/perf/tests/parse-events.c PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); attr 1241 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); attr 1246 tools/perf/tests/parse-events.c PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); attr 1247 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); attr 1257 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); attr 1258 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); attr 1260 tools/perf/tests/parse-events.c evsel->core.attr.bp_type); attr 1262 tools/perf/tests/parse-events.c evsel->core.attr.bp_len); attr 1272 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); attr 1273 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); attr 1275 tools/perf/tests/parse-events.c evsel->core.attr.bp_type); attr 1277 tools/perf/tests/parse-events.c evsel->core.attr.bp_len); attr 1287 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); attr 1288 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1289 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); attr 1290 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); attr 1300 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); attr 1302 tools/perf/tests/parse-events.c PERF_COUNT_SW_TASK_CLOCK == evsel->core.attr.config); attr 1363 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE); attr 1364 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES); attr 1365 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); attr 1373 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE); attr 1374 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES); attr 1375 tools/perf/tests/parse-events.c TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); attr 54 tools/perf/tests/parse-no-sample-id-all.c struct perf_event_attr attr; attr 151 tools/perf/tests/pmu.c struct perf_event_attr attr; attr 153 tools/perf/tests/pmu.c memset(&attr, 0, sizeof(attr)); attr 159 tools/perf/tests/pmu.c ret = perf_pmu__config_terms(&formats, &attr, terms, attr 166 tools/perf/tests/pmu.c if (attr.config != 0xc00000000002a823) attr 168 tools/perf/tests/pmu.c if (attr.config1 != 0x8000400000000145) attr 170 tools/perf/tests/pmu.c if (attr.config2 != 0x0400000020041d07) attr 161 tools/perf/tests/sample-parsing.c . attr = { attr 228 tools/perf/tests/sample-parsing.c evsel.core.attr.sample_regs_user = sample_regs; attr 231 tools/perf/tests/sample-parsing.c evsel.core.attr.sample_regs_intr = sample_regs; attr 36 tools/perf/tests/sw-clock.c struct perf_event_attr attr = { attr 48 tools/perf/tests/sw-clock.c attr.sample_freq = 500; attr 56 tools/perf/tests/sw-clock.c evsel = evsel__new(&attr); attr 82 tools/perf/tests/sw-clock.c knob, (u64)attr.sample_freq); attr 428 tools/perf/tests/switch-tracking.c tracking_evsel->core.attr.freq = 0; attr 429 tools/perf/tests/switch-tracking.c tracking_evsel->core.attr.sample_period = 1; attr 443 tools/perf/tests/switch-tracking.c if (!tracking_evsel->core.attr.mmap || !tracking_evsel->core.attr.comm) { attr 451 tools/perf/tests/switch-tracking.c if (evsel->core.attr.mmap || evsel->core.attr.comm) { attr 93 tools/perf/tests/task-exit.c evsel->core.attr.task = 1; attr 95 tools/perf/tests/task-exit.c evsel->core.attr.sample_freq = 1000000; attr 97 tools/perf/tests/task-exit.c evsel->core.attr.sample_freq = 1; attr 99 tools/perf/tests/task-exit.c evsel->core.attr.inherit = 0; attr 100 tools/perf/tests/task-exit.c evsel->core.attr.watermark = 0; attr 101 tools/perf/tests/task-exit.c evsel->core.attr.wakeup_events = 1; attr 102 tools/perf/tests/task-exit.c evsel->core.attr.exclude_kernel = 1; attr 35 tools/perf/tests/wp.c static void get__perf_event_attr(struct perf_event_attr *attr, int wp_type, attr 38 tools/perf/tests/wp.c memset(attr, 0, sizeof(struct perf_event_attr)); attr 39 tools/perf/tests/wp.c attr->type = PERF_TYPE_BREAKPOINT; attr 40 tools/perf/tests/wp.c attr->size = sizeof(struct perf_event_attr); attr 41 tools/perf/tests/wp.c attr->config = 0; attr 42 tools/perf/tests/wp.c attr->bp_type = wp_type; attr 43 tools/perf/tests/wp.c attr->bp_addr = (unsigned long)wp_addr; attr 44 tools/perf/tests/wp.c attr->bp_len = wp_len; attr 45 tools/perf/tests/wp.c attr->sample_period = 1; attr 46 tools/perf/tests/wp.c attr->sample_type = PERF_SAMPLE_IP; attr 47 tools/perf/tests/wp.c attr->exclude_kernel = 1; attr 48 tools/perf/tests/wp.c attr->exclude_hv = 1; attr 54 tools/perf/tests/wp.c struct perf_event_attr attr; attr 56 tools/perf/tests/wp.c get__perf_event_attr(&attr, wp_type, wp_addr, wp_len); attr 57 tools/perf/tests/wp.c fd = sys_perf_event_open(&attr, 0, -1, -1, attr 60 tools/perf/tests/wp.c pr_debug("failed opening event %x\n", attr.bp_type); attr 74 tools/perf/ui/browsers/res_sample.c attr_to_script(extra_format, &evsel->core.attr); attr 34 tools/perf/ui/browsers/scripts.c void attr_to_script(char *extra_format, struct perf_event_attr *attr) attr 37 tools/perf/ui/browsers/scripts.c if (attr->read_format & PERF_FORMAT_GROUP) attr 39 tools/perf/ui/browsers/scripts.c if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) attr 41 tools/perf/ui/browsers/scripts.c if (attr->sample_type & PERF_SAMPLE_REGS_INTR) attr 43 tools/perf/ui/browsers/scripts.c if (attr->sample_type & PERF_SAMPLE_REGS_USER) attr 45 tools/perf/ui/browsers/scripts.c if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR) attr 108 tools/perf/ui/browsers/scripts.c attr_to_script(scriptc.extra_format, &evsel->core.attr); attr 2160 tools/perf/util/auxtrace.c if (pmu->type == evsel->core.attr.type) attr 424 tools/perf/util/bpf-event.c struct perf_event_attr attr = { attr 430 tools/perf/util/bpf-event.c .size = sizeof(attr), /* to capture ABI version */ attr 437 tools/perf/util/bpf-event.c attr.wakeup_watermark = 1; attr 439 tools/perf/util/bpf-event.c return perf_evlist__add_sb_event(evlist, &attr, bpf_event__sb_cb, env); attr 1410 tools/perf/util/bpf-loader.c struct perf_event_attr *attr; attr 1427 tools/perf/util/bpf-loader.c attr = &evsel->core.attr; attr 1428 tools/perf/util/bpf-loader.c if (attr->inherit) { attr 1435 tools/perf/util/bpf-loader.c if (attr->type == PERF_TYPE_RAW) attr 1437 tools/perf/util/bpf-loader.c if (attr->type == PERF_TYPE_HARDWARE) attr 89 tools/perf/util/build-id.c .attr = perf_event__process_attr, attr 32 tools/perf/util/cloexec.c struct perf_event_attr attr = { attr 53 tools/perf/util/cloexec.c fd = sys_perf_event_open(&attr, pid, cpu, -1, attr 74 tools/perf/util/cloexec.c fd = sys_perf_event_open(&attr, pid, cpu, -1, 0); attr 1248 tools/perf/util/cs-etm.c struct perf_event_attr *attr, u64 id) attr 1255 tools/perf/util/cs-etm.c return perf_event__synthesize_attr(&cs_etm_synth.dummy_tool, attr, 1, attr 1264 tools/perf/util/cs-etm.c struct perf_event_attr attr; attr 1270 tools/perf/util/cs-etm.c if (evsel->core.attr.type == etm->pmu_type) { attr 1281 tools/perf/util/cs-etm.c memset(&attr, 0, sizeof(struct perf_event_attr)); attr 1282 tools/perf/util/cs-etm.c attr.size = sizeof(struct perf_event_attr); attr 1283 tools/perf/util/cs-etm.c attr.type = PERF_TYPE_HARDWARE; attr 1284 tools/perf/util/cs-etm.c attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; attr 1285 tools/perf/util/cs-etm.c attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | attr 1288 tools/perf/util/cs-etm.c attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; attr 1290 tools/perf/util/cs-etm.c attr.sample_type |= PERF_SAMPLE_TIME; attr 1292 tools/perf/util/cs-etm.c attr.exclude_user = evsel->core.attr.exclude_user; attr 1293 tools/perf/util/cs-etm.c attr.exclude_kernel = evsel->core.attr.exclude_kernel; attr 1294 tools/perf/util/cs-etm.c attr.exclude_hv = evsel->core.attr.exclude_hv; attr 1295 tools/perf/util/cs-etm.c attr.exclude_host = evsel->core.attr.exclude_host; attr 1296 tools/perf/util/cs-etm.c attr.exclude_guest = evsel->core.attr.exclude_guest; attr 1297 tools/perf/util/cs-etm.c attr.sample_id_all = evsel->core.attr.sample_id_all; attr 1298 tools/perf/util/cs-etm.c attr.read_format = evsel->core.attr.read_format; attr 1307 tools/perf/util/cs-etm.c attr.config = PERF_COUNT_HW_BRANCH_INSTRUCTIONS; attr 1308 tools/perf/util/cs-etm.c attr.sample_period = 1; attr 1309 tools/perf/util/cs-etm.c attr.sample_type |= PERF_SAMPLE_ADDR; attr 1310 tools/perf/util/cs-etm.c err = cs_etm__synth_event(session, &attr, id); attr 1314 tools/perf/util/cs-etm.c etm->branches_sample_type = attr.sample_type; attr 1317 tools/perf/util/cs-etm.c attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; attr 1321 tools/perf/util/cs-etm.c attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; attr 1324 tools/perf/util/cs-etm.c attr.config = PERF_COUNT_HW_INSTRUCTIONS; attr 1325 tools/perf/util/cs-etm.c attr.sample_period = etm->synth_opts.period; attr 1326 tools/perf/util/cs-etm.c etm->instructions_sample_period = attr.sample_period; attr 1327 tools/perf/util/cs-etm.c err = cs_etm__synth_event(session, &attr, id); attr 1331 tools/perf/util/cs-etm.c etm->instructions_sample_type = attr.sample_type; attr 2343 tools/perf/util/cs-etm.c if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) attr 591 tools/perf/util/data-convert-bt.c u64 type = evsel->core.attr.sample_type; attr 761 tools/perf/util/data-convert-bt.c if (evsel->core.attr.sample_type & PERF_SAMPLE_CPU) attr 799 tools/perf/util/data-convert-bt.c unsigned long type = evsel->core.attr.sample_type; attr 824 tools/perf/util/data-convert-bt.c if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) { attr 1091 tools/perf/util/data-convert-bt.c u64 type = evsel->core.attr.sample_type; attr 1161 tools/perf/util/data-convert-bt.c pr("Adding event '%s' (type %d)\n", name, evsel->core.attr.type); attr 1171 tools/perf/util/data-convert-bt.c if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) { attr 392 tools/perf/util/db-export.c if ((evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) && attr 393 tools/perf/util/db-export.c sample_addr_correlates_sym(&evsel->core.attr)) { attr 56 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 57 tools/perf/util/dwarf-aux.c if (dwarf_attr(cu_die, DW_AT_comp_dir, &attr) == NULL) attr 59 tools/perf/util/dwarf-aux.c return dwarf_formstring(&attr); attr 131 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 133 tools/perf/util/dwarf-aux.c if (dwarf_attr_integrate(dw_die, DW_AT_linkage_name, &attr) == NULL) attr 135 tools/perf/util/dwarf-aux.c return dwarf_formstring(&attr); attr 185 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 188 tools/perf/util/dwarf-aux.c if (!dwarf_attr(in_die, DW_AT_call_line, &attr)) attr 191 tools/perf/util/dwarf-aux.c dwarf_formudata(&attr, &ret); attr 205 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 207 tools/perf/util/dwarf-aux.c if (dwarf_attr_integrate(vr_die, DW_AT_type, &attr) && attr 208 tools/perf/util/dwarf-aux.c dwarf_formref_die(&attr, die_mem)) attr 255 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 257 tools/perf/util/dwarf-aux.c if (dwarf_attr(tp_die, attr_name, &attr) == NULL || attr 258 tools/perf/util/dwarf-aux.c dwarf_formudata(&attr, result) != 0) attr 268 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 270 tools/perf/util/dwarf-aux.c if (dwarf_attr(tp_die, attr_name, &attr) == NULL || attr 271 tools/perf/util/dwarf-aux.c dwarf_formsdata(&attr, result) != 0) attr 304 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 307 tools/perf/util/dwarf-aux.c dwarf_attr(dw_die, DW_AT_declaration, &attr) == NULL); attr 365 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 370 tools/perf/util/dwarf-aux.c if (dwarf_attr(mb_die, DW_AT_data_member_location, &attr) == NULL) attr 373 tools/perf/util/dwarf-aux.c if (dwarf_formudata(&attr, offs) != 0) { attr 375 tools/perf/util/dwarf-aux.c ret = dwarf_getlocation(&attr, &expr, &nexpr); attr 627 tools/perf/util/dwarf-aux.c Dwarf_Attribute *attr; attr 634 tools/perf/util/dwarf-aux.c attr = dwarf_attr(inst, DW_AT_abstract_origin, &attr_mem); attr 635 tools/perf/util/dwarf-aux.c if (attr == NULL) attr 638 tools/perf/util/dwarf-aux.c origin = dwarf_formref_die(attr, &origin_mem); attr 893 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 901 tools/perf/util/dwarf-aux.c (dwarf_attr(die_mem, DW_AT_external, &attr) || attr 902 tools/perf/util/dwarf-aux.c dwarf_attr(die_mem, DW_AT_location, &attr))) attr 1103 tools/perf/util/dwarf-aux.c Dwarf_Attribute attr; attr 1115 tools/perf/util/dwarf-aux.c if (dwarf_attr(vr_die, DW_AT_location, &attr) == NULL) attr 1118 tools/perf/util/dwarf-aux.c while ((offset = dwarf_getlocations(&attr, offset, &base, attr 622 tools/perf/util/event.c bool is_bts_event(struct perf_event_attr *attr) attr 624 tools/perf/util/event.c return attr->type == PERF_TYPE_HARDWARE && attr 625 tools/perf/util/event.c (attr->config & PERF_COUNT_HW_BRANCH_INSTRUCTIONS) && attr 626 tools/perf/util/event.c attr->sample_period == 1; attr 629 tools/perf/util/event.c bool sample_addr_correlates_sym(struct perf_event_attr *attr) attr 631 tools/perf/util/event.c if (attr->type == PERF_TYPE_SOFTWARE && attr 632 tools/perf/util/event.c (attr->config == PERF_COUNT_SW_PAGE_FAULTS || attr 633 tools/perf/util/event.c attr->config == PERF_COUNT_SW_PAGE_FAULTS_MIN || attr 634 tools/perf/util/event.c attr->config == PERF_COUNT_SW_PAGE_FAULTS_MAJ)) attr 637 tools/perf/util/event.c if (is_bts_event(attr)) attr 356 tools/perf/util/event.h bool is_bts_event(struct perf_event_attr *attr); attr 357 tools/perf/util/event.h bool sample_addr_correlates_sym(struct perf_event_attr *attr); attr 384 tools/perf/util/event.h void event_attr_init(struct perf_event_attr *attr); attr 224 tools/perf/util/evlist.c struct perf_event_attr attr = { attr 227 tools/perf/util/evlist.c .size = sizeof(attr), /* to capture ABI version */ attr 229 tools/perf/util/evlist.c struct evsel *evsel = perf_evsel__new_idx(&attr, evlist->core.nr_entries); attr 279 tools/perf/util/evlist.c if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT && attr 280 tools/perf/util/evlist.c (int)evsel->core.attr.config == id) attr 294 tools/perf/util/evlist.c if ((evsel->core.attr.type == PERF_TYPE_TRACEPOINT) && attr 523 tools/perf/util/evlist.c if (!first->core.attr.sample_id_all && attr 628 tools/perf/util/evlist.c if (evsel->core.attr.write_backward) attr 648 tools/perf/util/evlist.c if (evsel->core.attr.write_backward) { attr 699 tools/perf/util/evlist.c if (evsel->core.attr.read_format & PERF_FORMAT_ID) { attr 920 tools/perf/util/evlist.c if ((evsel->core.attr.read_format & PERF_FORMAT_ID) && attr 1033 tools/perf/util/evlist.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) attr 1103 tools/perf/util/evlist.c evlist->combined_sample_type |= evsel->core.attr.sample_type; attr 1120 tools/perf/util/evlist.c branch_type |= evsel->core.attr.branch_sample_type; attr 1127 tools/perf/util/evlist.c u64 read_format = first->core.attr.read_format; attr 1128 tools/perf/util/evlist.c u64 sample_type = first->core.attr.sample_type; attr 1131 tools/perf/util/evlist.c if (read_format != pos->core.attr.read_format) attr 1151 tools/perf/util/evlist.c if (!first->core.attr.sample_id_all) attr 1154 tools/perf/util/evlist.c sample_type = first->core.attr.sample_type; attr 1182 tools/perf/util/evlist.c if (first->core.attr.sample_id_all != pos->core.attr.sample_id_all) attr 1192 tools/perf/util/evlist.c return first->core.attr.sample_id_all; attr 1459 tools/perf/util/evlist.c if (first->core.attr.sample_freq < (u64)max_freq) attr 1466 tools/perf/util/evlist.c emsg, max_freq, first->core.attr.sample_freq); attr 1621 tools/perf/util/evlist.c if (!evsel->core.attr.exclude_kernel) attr 1671 tools/perf/util/evlist.c struct perf_event_attr *attr, attr 1683 tools/perf/util/evlist.c if (!attr->sample_id_all) { attr 1685 tools/perf/util/evlist.c attr->sample_id_all = 1; attr 1688 tools/perf/util/evlist.c evsel = perf_evsel__new_idx(attr, (*evlist)->core.nr_entries); attr 111 tools/perf/util/evlist.h struct perf_event_attr *attr, attr 183 tools/perf/util/evsel.c evsel->id_pos = __perf_evsel__calc_id_pos(evsel->core.attr.sample_type); attr 184 tools/perf/util/evsel.c evsel->is_pos = __perf_evsel__calc_is_pos(evsel->core.attr.sample_type); attr 190 tools/perf/util/evsel.c if (!(evsel->core.attr.sample_type & bit)) { attr 191 tools/perf/util/evsel.c evsel->core.attr.sample_type |= bit; attr 200 tools/perf/util/evsel.c if (evsel->core.attr.sample_type & bit) { attr 201 tools/perf/util/evsel.c evsel->core.attr.sample_type &= ~bit; attr 216 tools/perf/util/evsel.c evsel->core.attr.read_format |= PERF_FORMAT_ID; attr 238 tools/perf/util/evsel.c struct perf_event_attr *attr, int idx) attr 240 tools/perf/util/evsel.c perf_evsel__init(&evsel->core, attr); attr 252 tools/perf/util/evsel.c evsel->sample_size = __perf_evsel__sample_size(attr->sample_type); attr 262 tools/perf/util/evsel.c struct evsel *perf_evsel__new_idx(struct perf_event_attr *attr, int idx) attr 268 tools/perf/util/evsel.c evsel__init(evsel, attr, idx); attr 271 tools/perf/util/evsel.c evsel->core.attr.sample_type |= (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME | attr 273 tools/perf/util/evsel.c evsel->core.attr.sample_period = 1; attr 297 tools/perf/util/evsel.c struct perf_event_attr attr = { attr 304 tools/perf/util/evsel.c event_attr_init(&attr); attr 314 tools/perf/util/evsel.c evsel = evsel__new(&attr); attr 322 tools/perf/util/evsel.c (attr.precise_ip || attr.exclude_kernel) ? ":" : "", attr 323 tools/perf/util/evsel.c attr.exclude_kernel ? "u" : "", attr 324 tools/perf/util/evsel.c attr.precise_ip ? attr.precise_ip + 1 : 0, "ppp") < 0) attr 345 tools/perf/util/evsel.c struct perf_event_attr attr = { attr 360 tools/perf/util/evsel.c event_attr_init(&attr); attr 361 tools/perf/util/evsel.c attr.config = evsel->tp_format->id; attr 362 tools/perf/util/evsel.c attr.sample_period = 1; attr 363 tools/perf/util/evsel.c evsel__init(evsel, &attr, idx); attr 399 tools/perf/util/evsel.c struct perf_event_attr *attr = &evsel->core.attr; attr 403 tools/perf/util/evsel.c if (!attr->exclude_##context) { \ attr 408 tools/perf/util/evsel.c if (attr->exclude_kernel || attr->exclude_user || attr->exclude_hv) { attr 415 tools/perf/util/evsel.c if (attr->precise_ip) { attr 418 tools/perf/util/evsel.c r += scnprintf(bf + r, size - r, "%.*s", attr->precise_ip, "ppp"); attr 422 tools/perf/util/evsel.c if (attr->exclude_host || attr->exclude_guest == exclude_guest_default) { attr 434 tools/perf/util/evsel.c int r = scnprintf(bf, size, "%s", __perf_evsel__hw_name(evsel->core.attr.config)); attr 460 tools/perf/util/evsel.c int r = scnprintf(bf, size, "%s", __perf_evsel__sw_name(evsel->core.attr.config)); attr 484 tools/perf/util/evsel.c struct perf_event_attr *attr = &evsel->core.attr; attr 485 tools/perf/util/evsel.c int r = __perf_evsel__bp_name(bf, size, attr->bp_addr, attr->bp_type); attr 584 tools/perf/util/evsel.c int ret = __perf_evsel__hw_cache_name(evsel->core.attr.config, bf, size); attr 590 tools/perf/util/evsel.c int ret = scnprintf(bf, size, "raw 0x%" PRIx64, evsel->core.attr.config); attr 610 tools/perf/util/evsel.c switch (evsel->core.attr.type) { attr 640 tools/perf/util/evsel.c evsel->core.attr.type); attr 694 tools/perf/util/evsel.c struct perf_event_attr *attr = &evsel->core.attr; attr 698 tools/perf/util/evsel.c attr->sample_max_stack = param->max_stack; attr 701 tools/perf/util/evsel.c attr->exclude_callchain_user = 1; attr 703 tools/perf/util/evsel.c attr->exclude_callchain_kernel = 1; attr 706 tools/perf/util/evsel.c if (attr->exclude_user) { attr 712 tools/perf/util/evsel.c attr->branch_sample_type = PERF_SAMPLE_BRANCH_USER | attr 727 tools/perf/util/evsel.c attr->sample_regs_user |= DWARF_MINIMAL_REGS; attr 732 tools/perf/util/evsel.c attr->sample_regs_user |= PERF_REGS_MASK; attr 734 tools/perf/util/evsel.c attr->sample_stack_user = param->dump_size; attr 735 tools/perf/util/evsel.c attr->exclude_callchain_user = 1; attr 744 tools/perf/util/evsel.c attr->exclude_callchain_user = 1; attr 760 tools/perf/util/evsel.c struct perf_event_attr *attr = &evsel->core.attr; attr 765 tools/perf/util/evsel.c attr->branch_sample_type &= ~(PERF_SAMPLE_BRANCH_USER | attr 779 tools/perf/util/evsel.c struct perf_event_attr *attr = &evsel->core.attr; attr 792 tools/perf/util/evsel.c attr->sample_period = term->val.period; attr 793 tools/perf/util/evsel.c attr->freq = 0; attr 799 tools/perf/util/evsel.c attr->sample_freq = term->val.freq; attr 800 tools/perf/util/evsel.c attr->freq = 1; attr 817 tools/perf/util/evsel.c &attr->branch_sample_type); attr 837 tools/perf/util/evsel.c attr->inherit = term->val.inherit ? 1 : 0; attr 840 tools/perf/util/evsel.c attr->write_backward = term->val.overwrite ? 1 : 0; attr 847 tools/perf/util/evsel.c attr->aux_output = term->val.aux_output ? 1 : 0; attr 895 tools/perf/util/evsel.c evsel->core.attr.mmap_data = track; attr 904 tools/perf/util/evsel.c return (evsel->core.attr.type == PERF_TYPE_SOFTWARE) && attr 905 tools/perf/util/evsel.c (evsel->core.attr.config == PERF_COUNT_SW_DUMMY); attr 940 tools/perf/util/evsel.c struct perf_event_attr *attr = &evsel->core.attr; attr 944 tools/perf/util/evsel.c attr->sample_id_all = perf_missing_features.sample_id_all ? 0 : 1; attr 945 tools/perf/util/evsel.c attr->inherit = !opts->no_inherit; attr 946 tools/perf/util/evsel.c attr->write_backward = opts->overwrite ? 1 : 0; attr 965 tools/perf/util/evsel.c attr->read_format |= PERF_FORMAT_GROUP; attr 966 tools/perf/util/evsel.c attr->inherit = 0; attr 974 tools/perf/util/evsel.c if (!attr->sample_period || (opts->user_freq != UINT_MAX || attr 978 tools/perf/util/evsel.c attr->freq = 1; attr 979 tools/perf/util/evsel.c attr->sample_freq = opts->freq; attr 981 tools/perf/util/evsel.c attr->sample_period = opts->default_interval; attr 990 tools/perf/util/evsel.c attr->freq = 0; attr 991 tools/perf/util/evsel.c attr->sample_freq = 0; attr 992 tools/perf/util/evsel.c attr->sample_period = 0; attr 993 tools/perf/util/evsel.c attr->write_backward = 0; attr 1001 tools/perf/util/evsel.c attr->sample_type = leader->core.attr.sample_type; attr 1005 tools/perf/util/evsel.c attr->sample_freq = 0; attr 1008 tools/perf/util/evsel.c evsel->core.attr.read_format |= attr 1012 tools/perf/util/evsel.c attr->inherit_stat = 1; attr 1017 tools/perf/util/evsel.c attr->mmap_data = track; attr 1026 tools/perf/util/evsel.c evsel->core.attr.exclude_callchain_user = 1; attr 1032 tools/perf/util/evsel.c attr->sample_regs_intr = opts->sample_intr_regs; attr 1037 tools/perf/util/evsel.c attr->sample_regs_user |= opts->sample_user_regs; attr 1066 tools/perf/util/evsel.c attr->watermark = 0; attr 1067 tools/perf/util/evsel.c attr->wakeup_events = 1; attr 1071 tools/perf/util/evsel.c attr->branch_sample_type = opts->branch_stack; attr 1077 tools/perf/util/evsel.c attr->task = track; attr 1078 tools/perf/util/evsel.c attr->mmap = track; attr 1079 tools/perf/util/evsel.c attr->mmap2 = track && !perf_missing_features.mmap2; attr 1080 tools/perf/util/evsel.c attr->comm = track; attr 1081 tools/perf/util/evsel.c attr->ksymbol = track && !perf_missing_features.ksymbol; attr 1082 tools/perf/util/evsel.c attr->bpf_event = track && !opts->no_bpf_event && !perf_missing_features.bpf; attr 1085 tools/perf/util/evsel.c attr->namespaces = track; attr 1088 tools/perf/util/evsel.c attr->context_switch = track; attr 1094 tools/perf/util/evsel.c evsel->core.attr.read_format |= attr 1106 tools/perf/util/evsel.c attr->disabled = 1; attr 1114 tools/perf/util/evsel.c attr->enable_on_exec = 1; attr 1117 tools/perf/util/evsel.c attr->disabled = 0; attr 1118 tools/perf/util/evsel.c attr->enable_on_exec = 0; attr 1123 tools/perf/util/evsel.c attr->use_clockid = 1; attr 1124 tools/perf/util/evsel.c attr->clockid = opts->clockid; attr 1128 tools/perf/util/evsel.c attr->precise_ip = 3; attr 1131 tools/perf/util/evsel.c attr->exclude_kernel = 1; attr 1132 tools/perf/util/evsel.c attr->exclude_user = 0; attr 1136 tools/perf/util/evsel.c attr->exclude_kernel = 0; attr 1137 tools/perf/util/evsel.c attr->exclude_user = 1; attr 1141 tools/perf/util/evsel.c evsel->core.attr.read_format |= PERF_FORMAT_ID; attr 1333 tools/perf/util/evsel.c u64 read_format = leader->core.attr.read_format; attr 1371 tools/perf/util/evsel.c u64 read_format = leader->core.attr.read_format; attr 1400 tools/perf/util/evsel.c u64 read_format = evsel->core.attr.read_format; attr 1525 tools/perf/util/evsel.c static void display_attr(struct perf_event_attr *attr) attr 1530 tools/perf/util/evsel.c perf_event_attr__fprintf(stderr, attr, __open_attr__fprintf, NULL); attr 1539 tools/perf/util/evsel.c int precise_ip = evsel->core.attr.precise_ip; attr 1546 tools/perf/util/evsel.c fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, group_fd, flags); attr 1558 tools/perf/util/evsel.c if (!evsel->core.attr.precise_ip) { attr 1559 tools/perf/util/evsel.c evsel->core.attr.precise_ip = precise_ip; attr 1564 tools/perf/util/evsel.c evsel->core.attr.precise_ip--; attr 1565 tools/perf/util/evsel.c pr_debug2("decreasing precise_ip by one (%d)\n", evsel->core.attr.precise_ip); attr 1566 tools/perf/util/evsel.c display_attr(&evsel->core.attr); attr 1580 tools/perf/util/evsel.c if ((perf_missing_features.write_backward && evsel->core.attr.write_backward) || attr 1581 tools/perf/util/evsel.c (perf_missing_features.aux_output && evsel->core.attr.aux_output)) attr 1624 tools/perf/util/evsel.c evsel->core.attr.clockid = CLOCK_MONOTONIC; /* should always work */ attr 1626 tools/perf/util/evsel.c evsel->core.attr.use_clockid = 0; attr 1627 tools/perf/util/evsel.c evsel->core.attr.clockid = 0; attr 1632 tools/perf/util/evsel.c evsel->core.attr.mmap2 = 0; attr 1634 tools/perf/util/evsel.c evsel->core.attr.exclude_guest = evsel->core.attr.exclude_host = 0; attr 1636 tools/perf/util/evsel.c evsel->core.attr.branch_sample_type &= ~(PERF_SAMPLE_BRANCH_NO_FLAGS | attr 1638 tools/perf/util/evsel.c if (perf_missing_features.group_read && evsel->core.attr.inherit) attr 1639 tools/perf/util/evsel.c evsel->core.attr.read_format &= ~(PERF_FORMAT_GROUP|PERF_FORMAT_ID); attr 1641 tools/perf/util/evsel.c evsel->core.attr.ksymbol = 0; attr 1643 tools/perf/util/evsel.c evsel->core.attr.bpf_event = 0; attr 1646 tools/perf/util/evsel.c evsel->core.attr.sample_id_all = 0; attr 1648 tools/perf/util/evsel.c display_attr(&evsel->core.attr); attr 1755 tools/perf/util/evsel.c if (!perf_missing_features.aux_output && evsel->core.attr.aux_output) { attr 1759 tools/perf/util/evsel.c } else if (!perf_missing_features.bpf && evsel->core.attr.bpf_event) { attr 1763 tools/perf/util/evsel.c } else if (!perf_missing_features.ksymbol && evsel->core.attr.ksymbol) { attr 1767 tools/perf/util/evsel.c } else if (!perf_missing_features.write_backward && evsel->core.attr.write_backward) { attr 1771 tools/perf/util/evsel.c } else if (!perf_missing_features.clockid_wrong && evsel->core.attr.use_clockid) { attr 1775 tools/perf/util/evsel.c } else if (!perf_missing_features.clockid && evsel->core.attr.use_clockid) { attr 1783 tools/perf/util/evsel.c } else if (!perf_missing_features.mmap2 && evsel->core.attr.mmap2) { attr 1788 tools/perf/util/evsel.c (evsel->core.attr.exclude_guest || evsel->core.attr.exclude_host)) { attr 1797 tools/perf/util/evsel.c (evsel->core.attr.branch_sample_type & attr 1804 tools/perf/util/evsel.c evsel->core.attr.inherit && attr 1805 tools/perf/util/evsel.c (evsel->core.attr.read_format & PERF_FORMAT_GROUP) && attr 1847 tools/perf/util/evsel.c u64 type = evsel->core.attr.sample_type; attr 1936 tools/perf/util/evsel.c u64 type = evsel->core.attr.sample_type; attr 1952 tools/perf/util/evsel.c data->period = evsel->core.attr.sample_period; attr 1959 tools/perf/util/evsel.c if (!evsel->core.attr.sample_id_all) attr 2032 tools/perf/util/evsel.c u64 read_format = evsel->core.attr.read_format; attr 2137 tools/perf/util/evsel.c u64 mask = evsel->core.attr.sample_regs_user; attr 2193 tools/perf/util/evsel.c u64 mask = evsel->core.attr.sample_regs_intr; attr 2216 tools/perf/util/evsel.c u64 type = evsel->core.attr.sample_type; attr 2227 tools/perf/util/evsel.c if (!evsel->core.attr.sample_id_all) attr 2336 tools/perf/util/evsel.c evsel->core.attr.type == PERF_TYPE_HARDWARE && attr 2337 tools/perf/util/evsel.c evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES) { attr 2349 tools/perf/util/evsel.c evsel->core.attr.type = PERF_TYPE_SOFTWARE; attr 2350 tools/perf/util/evsel.c evsel->core.attr.config = PERF_COUNT_SW_CPU_CLOCK; attr 2354 tools/perf/util/evsel.c } else if (err == EACCES && !evsel->core.attr.exclude_kernel && attr 2374 tools/perf/util/evsel.c evsel->core.attr.exclude_kernel = 1; attr 2375 tools/perf/util/evsel.c evsel->core.attr.exclude_hv = 1; attr 2472 tools/perf/util/evsel.c if (evsel->core.attr.sample_period != 0) attr 2476 tools/perf/util/evsel.c if (evsel->core.attr.precise_ip) attr 2480 tools/perf/util/evsel.c if (evsel->core.attr.type == PERF_TYPE_HARDWARE) attr 2492 tools/perf/util/evsel.c if (evsel->core.attr.write_backward && perf_missing_features.write_backward) attr 147 tools/perf/util/evsel.h struct evsel *perf_evsel__new_idx(struct perf_event_attr *attr, int idx); attr 149 tools/perf/util/evsel.h static inline struct evsel *evsel__new(struct perf_event_attr *attr) attr 151 tools/perf/util/evsel.h return perf_evsel__new_idx(attr, 0); attr 168 tools/perf/util/evsel.h void evsel__init(struct evsel *evsel, struct perf_event_attr *attr, int idx); attr 253 tools/perf/util/evsel.h (evsel->core.attr.type == PERF_TYPE_##t && \ attr 254 tools/perf/util/evsel.h evsel->core.attr.config == PERF_COUNT_##c) attr 259 tools/perf/util/evsel.h return (e1->core.attr.type == e2->core.attr.type) && attr 260 tools/perf/util/evsel.h (e1->core.attr.config == e2->core.attr.config); attr 266 tools/perf/util/evsel.h (a)->core.attr.type == (b)->core.attr.type && \ attr 267 tools/perf/util/evsel.h (a)->core.attr.config == (b)->core.attr.config) attr 382 tools/perf/util/evsel.h return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK; attr 387 tools/perf/util/evsel.h return (evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN) != 0; attr 65 tools/perf/util/evsel_fprintf.c printed += perf_event_attr__fprintf(fp, &evsel->core.attr, attr 70 tools/perf/util/evsel_fprintf.c if (!evsel->core.attr.freq) attr 74 tools/perf/util/evsel_fprintf.c term, (u64)evsel->core.attr.sample_freq); attr 80 tools/perf/util/evsel_fprintf.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) { attr 48 tools/perf/util/evsel_fprintf.h int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr, attr 71 tools/perf/util/header.c struct perf_event_attr attr; attr 504 tools/perf/util/header.c sz = (u32)sizeof(evsel->core.attr); attr 510 tools/perf/util/header.c ret = do_write(ff, &evsel->core.attr, sz); attr 1585 tools/perf/util/header.c for (evsel = events; evsel->core.attr.size; evsel++) { attr 1618 tools/perf/util/header.c msz = sizeof(evsel->core.attr); attr 1635 tools/perf/util/header.c memcpy(&evsel->core.attr, buf, msz); attr 1693 tools/perf/util/header.c for (evsel = events; evsel->core.attr.size; evsel++) { attr 1706 tools/perf/util/header.c perf_event_attr__fprintf(fp, &evsel->core.attr, __desc_attr__fprintf, NULL); attr 2148 tools/perf/util/header.c for (evsel = events; evsel->core.attr.size; evsel++) attr 3076 tools/perf/util/header.c .attr = evsel->core.attr, attr 3441 tools/perf/util/header.c struct perf_event_attr *attr = &f_attr->attr; attr 3443 tools/perf/util/header.c size_t our_sz = sizeof(f_attr->attr); attr 3449 tools/perf/util/header.c ret = readn(fd, attr, PERF_ATTR_SIZE_VER0); attr 3457 tools/perf/util/header.c sz = attr->size; attr 3473 tools/perf/util/header.c void *ptr = attr; attr 3499 tools/perf/util/header.c event = tep_find_event(pevent, evsel->core.attr.config); attr 3501 tools/perf/util/header.c pr_debug("cannot find event format for %d\n", (int)evsel->core.attr.config); attr 3522 tools/perf/util/header.c if (pos->core.attr.type == PERF_TYPE_TRACEPOINT && attr 3584 tools/perf/util/header.c perf_event__attr_swap(&f_attr.attr); attr 3588 tools/perf/util/header.c evsel = evsel__new(&f_attr.attr); attr 3733 tools/perf/util/header.c evsel = evsel__new(&event->attr.attr); attr 3740 tools/perf/util/header.c ids -= (void *)&event->attr.id - (void *)event; attr 3751 tools/perf/util/header.c perf_evlist__id_add(&evlist->core, &evsel->core, 0, i, event->attr.id[i]); attr 2670 tools/perf/util/hist.c scnprintf(sample_freq_str, sizeof(sample_freq_str), " %d Hz,", evsel->core.attr.sample_freq); attr 454 tools/perf/util/hist.h void attr_to_script(char *buf, struct perf_event_attr *attr); attr 749 tools/perf/util/intel-bts.c struct perf_event_attr *attr, u64 id) attr 756 tools/perf/util/intel-bts.c return perf_event__synthesize_attr(&intel_bts_synth.dummy_tool, attr, 1, attr 765 tools/perf/util/intel-bts.c struct perf_event_attr attr; attr 771 tools/perf/util/intel-bts.c if (evsel->core.attr.type == bts->pmu_type && evsel->core.ids) { attr 782 tools/perf/util/intel-bts.c memset(&attr, 0, sizeof(struct perf_event_attr)); attr 783 tools/perf/util/intel-bts.c attr.size = sizeof(struct perf_event_attr); attr 784 tools/perf/util/intel-bts.c attr.type = PERF_TYPE_HARDWARE; attr 785 tools/perf/util/intel-bts.c attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; attr 786 tools/perf/util/intel-bts.c attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | attr 788 tools/perf/util/intel-bts.c attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; attr 789 tools/perf/util/intel-bts.c attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; attr 790 tools/perf/util/intel-bts.c attr.exclude_user = evsel->core.attr.exclude_user; attr 791 tools/perf/util/intel-bts.c attr.exclude_kernel = evsel->core.attr.exclude_kernel; attr 792 tools/perf/util/intel-bts.c attr.exclude_hv = evsel->core.attr.exclude_hv; attr 793 tools/perf/util/intel-bts.c attr.exclude_host = evsel->core.attr.exclude_host; attr 794 tools/perf/util/intel-bts.c attr.exclude_guest = evsel->core.attr.exclude_guest; attr 795 tools/perf/util/intel-bts.c attr.sample_id_all = evsel->core.attr.sample_id_all; attr 796 tools/perf/util/intel-bts.c attr.read_format = evsel->core.attr.read_format; attr 803 tools/perf/util/intel-bts.c attr.config = PERF_COUNT_HW_BRANCH_INSTRUCTIONS; attr 804 tools/perf/util/intel-bts.c attr.sample_period = 1; attr 805 tools/perf/util/intel-bts.c attr.sample_type |= PERF_SAMPLE_ADDR; attr 807 tools/perf/util/intel-bts.c id, (u64)attr.sample_type); attr 808 tools/perf/util/intel-bts.c err = intel_bts_synth_event(session, &attr, id); attr 815 tools/perf/util/intel-bts.c bts->branches_sample_type = attr.sample_type; attr 822 tools/perf/util/intel-bts.c __perf_evsel__sample_size(attr.sample_type); attr 714 tools/perf/util/intel-pt.c struct perf_event_attr *attr, u64 *config) attr 716 tools/perf/util/intel-pt.c if (attr->type == pt->pmu_type) { attr 718 tools/perf/util/intel-pt.c *config = attr->config; attr 730 tools/perf/util/intel-pt.c if (intel_pt_get_config(pt, &evsel->core.attr, NULL) && attr 731 tools/perf/util/intel-pt.c !evsel->core.attr.exclude_kernel) attr 746 tools/perf/util/intel-pt.c if (intel_pt_get_config(pt, &evsel->core.attr, &config) && attr 759 tools/perf/util/intel-pt.c if (intel_pt_get_config(pt, &evsel->core.attr, &config) && attr 779 tools/perf/util/intel-pt.c if (intel_pt_get_config(pt, &evsel->core.attr, &config)) attr 795 tools/perf/util/intel-pt.c if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) attr 797 tools/perf/util/intel-pt.c if (intel_pt_get_config(pt, &evsel->core.attr, &config)) { attr 812 tools/perf/util/intel-pt.c if (intel_pt_get_config(pt, &evsel->core.attr, NULL) && attr 813 tools/perf/util/intel-pt.c !evsel->core.attr.exclude_kernel) attr 829 tools/perf/util/intel-pt.c if (intel_pt_get_config(pt, &evsel->core.attr, &config)) { attr 1707 tools/perf/util/intel-pt.c u64 sample_type = evsel->core.attr.sample_type; attr 1719 tools/perf/util/intel-pt.c if (!evsel->core.attr.freq) attr 1720 tools/perf/util/intel-pt.c sample.period = evsel->core.attr.sample_period; attr 1761 tools/perf/util/intel-pt.c u64 regs_mask = evsel->core.attr.sample_regs_intr; attr 2697 tools/perf/util/intel-pt.c struct perf_event_attr *attr, u64 id) attr 2703 tools/perf/util/intel-pt.c name, id, (u64)attr->sample_type); attr 2708 tools/perf/util/intel-pt.c err = perf_event__synthesize_attr(&intel_pt_synth.dummy_tool, attr, 1, attr 2738 tools/perf/util/intel-pt.c if (evsel->core.attr.type == pt->pmu_type && evsel->core.ids) attr 2750 tools/perf/util/intel-pt.c struct perf_event_attr attr; attr 2759 tools/perf/util/intel-pt.c memset(&attr, 0, sizeof(struct perf_event_attr)); attr 2760 tools/perf/util/intel-pt.c attr.size = sizeof(struct perf_event_attr); attr 2761 tools/perf/util/intel-pt.c attr.type = PERF_TYPE_HARDWARE; attr 2762 tools/perf/util/intel-pt.c attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; attr 2763 tools/perf/util/intel-pt.c attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | attr 2766 tools/perf/util/intel-pt.c attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; attr 2768 tools/perf/util/intel-pt.c attr.sample_type |= PERF_SAMPLE_TIME; attr 2770 tools/perf/util/intel-pt.c attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; attr 2771 tools/perf/util/intel-pt.c attr.exclude_user = evsel->core.attr.exclude_user; attr 2772 tools/perf/util/intel-pt.c attr.exclude_kernel = evsel->core.attr.exclude_kernel; attr 2773 tools/perf/util/intel-pt.c attr.exclude_hv = evsel->core.attr.exclude_hv; attr 2774 tools/perf/util/intel-pt.c attr.exclude_host = evsel->core.attr.exclude_host; attr 2775 tools/perf/util/intel-pt.c attr.exclude_guest = evsel->core.attr.exclude_guest; attr 2776 tools/perf/util/intel-pt.c attr.sample_id_all = evsel->core.attr.sample_id_all; attr 2777 tools/perf/util/intel-pt.c attr.read_format = evsel->core.attr.read_format; attr 2784 tools/perf/util/intel-pt.c attr.config = PERF_COUNT_HW_BRANCH_INSTRUCTIONS; attr 2785 tools/perf/util/intel-pt.c attr.sample_period = 1; attr 2786 tools/perf/util/intel-pt.c attr.sample_type |= PERF_SAMPLE_ADDR; attr 2787 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "branches", &attr, id); attr 2791 tools/perf/util/intel-pt.c pt->branches_sample_type = attr.sample_type; attr 2794 tools/perf/util/intel-pt.c attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; attr 2798 tools/perf/util/intel-pt.c attr.sample_type |= PERF_SAMPLE_CALLCHAIN; attr 2800 tools/perf/util/intel-pt.c attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; attr 2803 tools/perf/util/intel-pt.c attr.config = PERF_COUNT_HW_INSTRUCTIONS; attr 2805 tools/perf/util/intel-pt.c attr.sample_period = attr 2808 tools/perf/util/intel-pt.c attr.sample_period = pt->synth_opts.period; attr 2809 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "instructions", &attr, id); attr 2813 tools/perf/util/intel-pt.c pt->instructions_sample_type = attr.sample_type; attr 2818 tools/perf/util/intel-pt.c attr.sample_type &= ~(u64)PERF_SAMPLE_PERIOD; attr 2819 tools/perf/util/intel-pt.c attr.sample_period = 1; attr 2822 tools/perf/util/intel-pt.c attr.config = PERF_COUNT_HW_INSTRUCTIONS; attr 2823 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "transactions", &attr, id); attr 2827 tools/perf/util/intel-pt.c pt->transactions_sample_type = attr.sample_type; attr 2833 tools/perf/util/intel-pt.c attr.type = PERF_TYPE_SYNTH; attr 2834 tools/perf/util/intel-pt.c attr.sample_type |= PERF_SAMPLE_RAW; attr 2837 tools/perf/util/intel-pt.c attr.config = PERF_SYNTH_INTEL_PTWRITE; attr 2838 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "ptwrite", &attr, id); attr 2842 tools/perf/util/intel-pt.c pt->ptwrites_sample_type = attr.sample_type; attr 2850 tools/perf/util/intel-pt.c pt->pwr_events_sample_type = attr.sample_type; attr 2852 tools/perf/util/intel-pt.c attr.config = PERF_SYNTH_INTEL_CBR; attr 2853 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "cbr", &attr, id); attr 2861 tools/perf/util/intel-pt.c if (pt->synth_opts.pwr_events && (evsel->core.attr.config & 0x10)) { attr 2862 tools/perf/util/intel-pt.c attr.config = PERF_SYNTH_INTEL_MWAIT; attr 2863 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "mwait", &attr, id); attr 2870 tools/perf/util/intel-pt.c attr.config = PERF_SYNTH_INTEL_PWRE; attr 2871 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "pwre", &attr, id); attr 2878 tools/perf/util/intel-pt.c attr.config = PERF_SYNTH_INTEL_EXSTOP; attr 2879 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "exstop", &attr, id); attr 2886 tools/perf/util/intel-pt.c attr.config = PERF_SYNTH_INTEL_PWRX; attr 2887 tools/perf/util/intel-pt.c err = intel_pt_synth_event(session, "pwrx", &attr, id); attr 2906 tools/perf/util/intel-pt.c if (evsel->core.attr.aux_output && evsel->core.id) { attr 2933 tools/perf/util/intel-pt.c if (evsel->core.attr.context_switch) attr 126 tools/perf/util/jitdump.c if (evsel->core.attr.use_clockid == 0 || evsel->core.attr.clockid != CLOCK_MONOTONIC) attr 781 tools/perf/util/jitdump.c jd.sample_type = first->core.attr.sample_type; attr 2488 tools/perf/util/machine.c if (!((evsel->core.attr.sample_type & PERF_SAMPLE_REGS_USER) && attr 2489 tools/perf/util/machine.c (evsel->core.attr.sample_type & PERF_SAMPLE_STACK_USER))) attr 321 tools/perf/util/parse-events.c struct perf_event_attr *attr, attr 330 tools/perf/util/parse-events.c event_attr_init(attr); attr 332 tools/perf/util/parse-events.c evsel = perf_evsel__new_idx(attr, *idx); attr 353 tools/perf/util/parse-events.c struct perf_event_attr *attr, char *name, attr 356 tools/perf/util/parse-events.c return __add_event(list, idx, attr, name, NULL, config_terms, false, NULL) ? 0 : -ENOMEM; attr 363 tools/perf/util/parse-events.c struct perf_event_attr attr = { attr 368 tools/perf/util/parse-events.c evsel = __add_event(list, idx, &attr, NULL, NULL, NULL, false, "0"); attr 395 tools/perf/util/parse-events.c typedef int config_term_func_t(struct perf_event_attr *attr, attr 398 tools/perf/util/parse-events.c static int config_term_common(struct perf_event_attr *attr, attr 401 tools/perf/util/parse-events.c static int config_attr(struct perf_event_attr *attr, attr 411 tools/perf/util/parse-events.c struct perf_event_attr attr; attr 465 tools/perf/util/parse-events.c memset(&attr, 0, sizeof(attr)); attr 466 tools/perf/util/parse-events.c attr.config = cache_type | (cache_op << 8) | (cache_result << 16); attr 467 tools/perf/util/parse-events.c attr.type = PERF_TYPE_HW_CACHE; attr 470 tools/perf/util/parse-events.c if (config_attr(&attr, head_config, err, attr 477 tools/perf/util/parse-events.c return add_event(list, idx, &attr, config_name ? : name, &config_terms); attr 861 tools/perf/util/parse-events.c parse_breakpoint_type(const char *type, struct perf_event_attr *attr) attr 871 tools/perf/util/parse-events.c if (attr->bp_type & bit) \ attr 874 tools/perf/util/parse-events.c attr->bp_type |= bit; \ attr 894 tools/perf/util/parse-events.c if (!attr->bp_type) /* Default */ attr 895 tools/perf/util/parse-events.c attr->bp_type = HW_BREAKPOINT_R | HW_BREAKPOINT_W; attr 903 tools/perf/util/parse-events.c struct perf_event_attr attr; attr 905 tools/perf/util/parse-events.c memset(&attr, 0, sizeof(attr)); attr 906 tools/perf/util/parse-events.c attr.bp_addr = (unsigned long) ptr; attr 908 tools/perf/util/parse-events.c if (parse_breakpoint_type(type, &attr)) attr 913 tools/perf/util/parse-events.c if (attr.bp_type == HW_BREAKPOINT_X) attr 919 tools/perf/util/parse-events.c attr.bp_len = len; attr 921 tools/perf/util/parse-events.c attr.type = PERF_TYPE_BREAKPOINT; attr 922 tools/perf/util/parse-events.c attr.sample_period = 1; attr 924 tools/perf/util/parse-events.c return add_event(list, idx, &attr, NULL, NULL); attr 1007 tools/perf/util/parse-events.c static int config_term_common(struct perf_event_attr *attr, attr 1020 tools/perf/util/parse-events.c attr->config = term->val.num; attr 1024 tools/perf/util/parse-events.c attr->config1 = term->val.num; attr 1028 tools/perf/util/parse-events.c attr->config2 = term->val.num; attr 1039 tools/perf/util/parse-events.c parse_branch_str(term->val.str, &attr->branch_sample_type)) { attr 1113 tools/perf/util/parse-events.c static int config_term_pmu(struct perf_event_attr *attr, attr 1125 tools/perf/util/parse-events.c return config_term_common(attr, term, err); attr 1128 tools/perf/util/parse-events.c static int config_term_tracepoint(struct perf_event_attr *attr, attr 1142 tools/perf/util/parse-events.c return config_term_common(attr, term, err); attr 1155 tools/perf/util/parse-events.c static int config_attr(struct perf_event_attr *attr, attr 1163 tools/perf/util/parse-events.c if (config_term(attr, term, err)) attr 1251 tools/perf/util/parse-events.c struct perf_event_attr attr; attr 1253 tools/perf/util/parse-events.c if (config_attr(&attr, head_config, err, attr 1271 tools/perf/util/parse-events.c struct perf_event_attr attr; attr 1274 tools/perf/util/parse-events.c memset(&attr, 0, sizeof(attr)); attr 1275 tools/perf/util/parse-events.c attr.type = type; attr 1276 tools/perf/util/parse-events.c attr.config = config; attr 1279 tools/perf/util/parse-events.c if (config_attr(&attr, head_config, parse_state->error, attr 1287 tools/perf/util/parse-events.c return add_event(list, &parse_state->idx, &attr, attr 1316 tools/perf/util/parse-events.c struct perf_event_attr attr; attr 1334 tools/perf/util/parse-events.c memcpy(&attr, pmu->default_config, attr 1337 tools/perf/util/parse-events.c memset(&attr, 0, sizeof(attr)); attr 1343 tools/perf/util/parse-events.c attr.type = pmu->type; attr 1344 tools/perf/util/parse-events.c evsel = __add_event(list, &parse_state->idx, &attr, NULL, pmu, NULL, attr 1362 tools/perf/util/parse-events.c if (config_attr(&attr, head_config, parse_state->error, config_term_pmu)) attr 1368 tools/perf/util/parse-events.c if (perf_pmu__config(pmu, &attr, head_config, parse_state->error)) { attr 1378 tools/perf/util/parse-events.c evsel = __add_event(list, &parse_state->idx, &attr, attr 1610 tools/perf/util/parse-events.c int eu = evsel ? evsel->core.attr.exclude_user : 0; attr 1611 tools/perf/util/parse-events.c int ek = evsel ? evsel->core.attr.exclude_kernel : 0; attr 1612 tools/perf/util/parse-events.c int eh = evsel ? evsel->core.attr.exclude_hv : 0; attr 1613 tools/perf/util/parse-events.c int eH = evsel ? evsel->core.attr.exclude_host : 0; attr 1614 tools/perf/util/parse-events.c int eG = evsel ? evsel->core.attr.exclude_guest : 0; attr 1615 tools/perf/util/parse-events.c int eI = evsel ? evsel->core.attr.exclude_idle : 0; attr 1616 tools/perf/util/parse-events.c int precise = evsel ? evsel->core.attr.precise_ip : 0; attr 1619 tools/perf/util/parse-events.c int pinned = evsel ? evsel->core.attr.pinned : 0; attr 1737 tools/perf/util/parse-events.c evsel->core.attr.exclude_user = mod.eu; attr 1738 tools/perf/util/parse-events.c evsel->core.attr.exclude_kernel = mod.ek; attr 1739 tools/perf/util/parse-events.c evsel->core.attr.exclude_hv = mod.eh; attr 1740 tools/perf/util/parse-events.c evsel->core.attr.precise_ip = mod.precise; attr 1741 tools/perf/util/parse-events.c evsel->core.attr.exclude_host = mod.eH; attr 1742 tools/perf/util/parse-events.c evsel->core.attr.exclude_guest = mod.eG; attr 1743 tools/perf/util/parse-events.c evsel->core.attr.exclude_idle = mod.eI; attr 1750 tools/perf/util/parse-events.c evsel->core.attr.pinned = mod.pinned; attr 2096 tools/perf/util/parse-events.c if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) { attr 2107 tools/perf/util/parse-events.c if (pmu->type == evsel->core.attr.type) { attr 2145 tools/perf/util/parse-events.c if (evsel == NULL || evsel->core.attr.type != PERF_TYPE_TRACEPOINT) { attr 2333 tools/perf/util/parse-events.c struct perf_event_attr attr = { attr 2343 tools/perf/util/parse-events.c evsel = evsel__new(&attr); attr 2356 tools/perf/util/parse-events.c evsel->core.attr.exclude_kernel = 1; attr 82 tools/perf/util/perf_event_attr_fprintf.c if (attr->_f) { \ attr 83 tools/perf/util/perf_event_attr_fprintf.c _p(attr->_f); \ attr 90 tools/perf/util/perf_event_attr_fprintf.c int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr, attr 1017 tools/perf/util/pmu.c struct perf_event_attr *attr, attr 1057 tools/perf/util/pmu.c vp = &attr->config; attr 1060 tools/perf/util/pmu.c vp = &attr->config1; attr 1063 tools/perf/util/pmu.c vp = &attr->config2; attr 1123 tools/perf/util/pmu.c struct perf_event_attr *attr, attr 1130 tools/perf/util/pmu.c if (pmu_config_term(formats, attr, term, head_terms, attr 1143 tools/perf/util/pmu.c int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr, attr 1149 tools/perf/util/pmu.c attr->type = pmu->type; attr 1150 tools/perf/util/pmu.c return perf_pmu__config_terms(&pmu->format, attr, head_terms, attr 65 tools/perf/util/pmu.h int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr, attr 69 tools/perf/util/pmu.h struct perf_event_attr *attr, attr 167 tools/perf/util/probe-finder.c Dwarf_Attribute attr; attr 177 tools/perf/util/probe-finder.c if (dwarf_attr(vr_die, DW_AT_external, &attr) != NULL) attr 181 tools/perf/util/probe-finder.c if (dwarf_attr(vr_die, DW_AT_location, &attr) == NULL) attr 183 tools/perf/util/probe-finder.c if (dwarf_getlocation_addr(&attr, addr, &op, &nops, 1) <= 0) { attr 204 tools/perf/util/probe-finder.c if (dwarf_getlocation_addr(&attr, addr, &op, attr 351 tools/perf/util/python.c return pevent->evsel->core.attr.type == PERF_TYPE_TRACEPOINT; attr 403 tools/perf/util/python.c tp_format = trace_event__tp_format_id(evsel->core.attr.config); attr 694 tools/perf/util/python.c struct perf_event_attr attr = { attr 755 tools/perf/util/python.c &attr.type, &attr.config, &attr.sample_freq, attr 756 tools/perf/util/python.c &sample_period, &attr.sample_type, attr 757 tools/perf/util/python.c &attr.read_format, &disabled, &inherit, attr 763 tools/perf/util/python.c &attr.wakeup_events, &attr.bp_type, attr 764 tools/perf/util/python.c &attr.bp_addr, &attr.bp_len, &idx)) attr 769 tools/perf/util/python.c if (attr.sample_freq != 0) attr 771 tools/perf/util/python.c attr.sample_period = sample_period; attr 775 tools/perf/util/python.c attr.disabled = disabled; attr 776 tools/perf/util/python.c attr.inherit = inherit; attr 777 tools/perf/util/python.c attr.pinned = pinned; attr 778 tools/perf/util/python.c attr.exclusive = exclusive; attr 779 tools/perf/util/python.c attr.exclude_user = exclude_user; attr 780 tools/perf/util/python.c attr.exclude_kernel = exclude_kernel; attr 781 tools/perf/util/python.c attr.exclude_hv = exclude_hv; attr 782 tools/perf/util/python.c attr.exclude_idle = exclude_idle; attr 783 tools/perf/util/python.c attr.mmap = mmap; attr 784 tools/perf/util/python.c attr.context_switch = context_switch; attr 785 tools/perf/util/python.c attr.comm = comm; attr 786 tools/perf/util/python.c attr.freq = freq; attr 787 tools/perf/util/python.c attr.inherit_stat = inherit_stat; attr 788 tools/perf/util/python.c attr.enable_on_exec = enable_on_exec; attr 789 tools/perf/util/python.c attr.task = task; attr 790 tools/perf/util/python.c attr.watermark = watermark; attr 791 tools/perf/util/python.c attr.precise_ip = precise_ip; attr 792 tools/perf/util/python.c attr.mmap_data = mmap_data; attr 793 tools/perf/util/python.c attr.sample_id_all = sample_id_all; attr 794 tools/perf/util/python.c attr.size = sizeof(attr); attr 796 tools/perf/util/python.c evsel__init(&pevsel->evsel, &attr, idx); attr 826 tools/perf/util/python.c evsel->core.attr.inherit = inherit; attr 1386 tools/perf/util/python.c void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, attr 36 tools/perf/util/record.c fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags); attr 50 tools/perf/util/record.c fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags); attr 87 tools/perf/util/record.c evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER; attr 92 tools/perf/util/record.c evsel->core.attr.comm_exec = 1; attr 97 tools/perf/util/record.c evsel->core.attr.context_switch = 1; attr 117 tools/perf/util/record.c struct perf_event_attr attr = { attr 131 tools/perf/util/record.c fd = sys_perf_event_open(&attr, -1, cpu, -1, 0); attr 162 tools/perf/util/record.c evsel->core.attr.comm_exec = 1; attr 177 tools/perf/util/record.c if (evsel->core.attr.sample_type == first->core.attr.sample_type) attr 291 tools/perf/util/record.c fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, attr 937 tools/perf/util/s390-cpumsf.c ev_bc000->core.attr.config == PERF_EVENT_CPUM_CF_DIAG) attr 210 tools/perf/util/s390-sample-raw.c ev_bc000->core.attr.config != PERF_EVENT_CPUM_CF_DIAG) attr 356 tools/perf/util/scripting-engines/trace-event-perl.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) attr 360 tools/perf/util/scripting-engines/trace-event-perl.c pr_debug("ug! no event found for type %" PRIu64, (u64)evsel->core.attr.config); attr 445 tools/perf/util/scripting-engines/trace-event-perl.c XPUSHs(sv_2mortal(newSVpvn((const char *)&evsel->core.attr, sizeof(evsel->core.attr)))); attr 639 tools/perf/util/scripting-engines/trace-event-python.c u64 read_format = evsel->core.attr.read_format; attr 710 tools/perf/util/scripting-engines/trace-event-python.c struct perf_event_attr *attr = &evsel->core.attr; attr 713 tools/perf/util/scripting-engines/trace-event-python.c regs_map(&sample->intr_regs, attr->sample_regs_intr, bf, sizeof(bf)); attr 718 tools/perf/util/scripting-engines/trace-event-python.c regs_map(&sample->user_regs, attr->sample_regs_user, bf, sizeof(bf)); attr 740 tools/perf/util/scripting-engines/trace-event-python.c pydict_set_item_string_decref(dict, "attr", _PyBytes_FromStringAndSize((const char *)&evsel->core.attr, sizeof(evsel->core.attr))); attr 812 tools/perf/util/scripting-engines/trace-event-python.c "ug! no event found for type %" PRIu64, (u64)evsel->core.attr.config); attr 1166 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_u64(t, 1, es->evsel->core.attr.config); attr 1181 tools/perf/util/scripting-engines/trace-event-python.c if (es->evsel->core.attr.type == PERF_TYPE_SYNTH && tables->synth_handler) attr 1319 tools/perf/util/scripting-engines/trace-event-python.c switch (evsel->core.attr.type) { attr 163 tools/perf/util/session.c if (evsel->core.attr.comm_exec) attr 494 tools/perf/util/session.c if (tool->attr == NULL) attr 495 tools/perf/util/session.c tool->attr = process_event_synth_attr_stub; attr 721 tools/perf/util/session.c void perf_event__attr_swap(struct perf_event_attr *attr) attr 723 tools/perf/util/session.c attr->type = bswap_32(attr->type); attr 724 tools/perf/util/session.c attr->size = bswap_32(attr->size); attr 727 tools/perf/util/session.c (attr->size > (offsetof(struct perf_event_attr, f) + \ attr 728 tools/perf/util/session.c sizeof(attr->f) * (n))) attr 732 tools/perf/util/session.c attr->f = bswap_##sz(attr->f); \ attr 757 tools/perf/util/session.c swap_bitfield((u8 *) (&attr->read_format + 1), attr 770 tools/perf/util/session.c perf_event__attr_swap(&event->attr.attr); attr 773 tools/perf/util/session.c size -= (void *)&event->attr.id - (void *)event; attr 774 tools/perf/util/session.c mem_bswap_64(event->attr.id, size); attr 1232 tools/perf/util/session.c sample_type = evsel->core.attr.sample_type; attr 1262 tools/perf/util/session.c sample_read__printf(sample, evsel->core.attr.read_format); attr 1280 tools/perf/util/session.c read_format = evsel->core.attr.read_format; attr 1379 tools/perf/util/session.c u64 sample_type = evsel->core.attr.sample_type; attr 1380 tools/perf/util/session.c u64 read_format = evsel->core.attr.read_format; attr 1515 tools/perf/util/session.c err = tool->attr(tool, event, &session->evlist); attr 1733 tools/perf/util/session.c if (evsel->core.attr.write_backward) attr 2228 tools/perf/util/session.c if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) attr 2305 tools/perf/util/session.c if (pos->core.attr.type == type) attr 2325 tools/perf/util/session.c if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CPU)) { attr 83 tools/perf/util/session.h void perf_event__attr_swap(struct perf_event_attr *attr); attr 732 tools/perf/util/sort.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) attr 749 tools/perf/util/sort.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) attr 2397 tools/perf/util/sort.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) attr 2415 tools/perf/util/sort.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) attr 2476 tools/perf/util/sort.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) { attr 2734 tools/perf/util/sort.c if (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) { attr 370 tools/perf/util/stat-display.c u32 pmu_type = counter->core.attr.type; attr 378 tools/perf/util/stat-display.c if (pos->core.attr.type == PERF_TYPE_SOFTWARE) attr 381 tools/perf/util/stat-display.c pmu_type = pos->core.attr.type; attr 384 tools/perf/util/stat-display.c if (pmu_type != pos->core.attr.type) attr 153 tools/perf/util/stat-shadow.c if (evsel->core.attr.exclude_kernel) attr 155 tools/perf/util/stat-shadow.c if (evsel->core.attr.exclude_user) attr 157 tools/perf/util/stat-shadow.c if (evsel->core.attr.exclude_hv) attr 159 tools/perf/util/stat-shadow.c if (evsel->core.attr.exclude_host) attr 161 tools/perf/util/stat-shadow.c if (evsel->core.attr.exclude_idle) attr 861 tools/perf/util/stat-shadow.c evsel->core.attr.type == PERF_TYPE_HW_CACHE && attr 862 tools/perf/util/stat-shadow.c evsel->core.attr.config == ( PERF_COUNT_HW_CACHE_L1D | attr 871 tools/perf/util/stat-shadow.c evsel->core.attr.type == PERF_TYPE_HW_CACHE && attr 872 tools/perf/util/stat-shadow.c evsel->core.attr.config == ( PERF_COUNT_HW_CACHE_L1I | attr 881 tools/perf/util/stat-shadow.c evsel->core.attr.type == PERF_TYPE_HW_CACHE && attr 882 tools/perf/util/stat-shadow.c evsel->core.attr.config == ( PERF_COUNT_HW_CACHE_DTLB | attr 891 tools/perf/util/stat-shadow.c evsel->core.attr.type == PERF_TYPE_HW_CACHE && attr 892 tools/perf/util/stat-shadow.c evsel->core.attr.config == ( PERF_COUNT_HW_CACHE_ITLB | attr 901 tools/perf/util/stat-shadow.c evsel->core.attr.type == PERF_TYPE_HW_CACHE && attr 902 tools/perf/util/stat-shadow.c evsel->core.attr.config == ( PERF_COUNT_HW_CACHE_LL | attr 468 tools/perf/util/stat.c struct perf_event_attr *attr = &evsel->core.attr; attr 471 tools/perf/util/stat.c attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | attr 480 tools/perf/util/stat.c attr->read_format |= PERF_FORMAT_ID|PERF_FORMAT_GROUP; attr 482 tools/perf/util/stat.c attr->inherit = !config->no_inherit; attr 488 tools/perf/util/stat.c attr->sample_period = 0; attr 491 tools/perf/util/stat.c attr->sample_type = PERF_SAMPLE_IDENTIFIER; attr 499 tools/perf/util/stat.c attr->disabled = 1; attr 506 tools/perf/util/stat.c attr->enable_on_exec = 1; attr 1598 tools/perf/util/synthetic-events.c err = perf_event__synthesize_attr(tool, &evsel->core.attr, evsel->core.ids, attr 1675 tools/perf/util/synthetic-events.c int perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, attr 1692 tools/perf/util/synthetic-events.c ev->attr.attr = *attr; attr 1693 tools/perf/util/synthetic-events.c memcpy(ev->attr.id, id, ids * sizeof(u64)); attr 1695 tools/perf/util/synthetic-events.c ev->attr.header.type = PERF_RECORD_HEADER_ATTR; attr 1696 tools/perf/util/synthetic-events.c ev->attr.header.size = (u16)size; attr 1698 tools/perf/util/synthetic-events.c if (ev->attr.header.size == size) attr 33 tools/perf/util/synthetic-events.h int perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 *id, perf_event__handler_t process); attr 61 tools/perf/util/tool.h event_attr_op attr; attr 76 tools/perf/util/top.c (uint64_t)first->core.attr.sample_period, attr 411 tools/perf/util/trace-event-info.c if (pos->core.attr.type != PERF_TYPE_TRACEPOINT) attr 427 tools/perf/util/trace-event-info.c ppath->next = tracepoint_id_to_path(pos->core.attr.config); attr 446 tools/perf/util/trace-event-info.c if (pos->core.attr.type == PERF_TYPE_TRACEPOINT) attr 63 tools/perf/util/util.c void event_attr_init(struct perf_event_attr *attr) attr 66 tools/perf/util/util.c attr->exclude_host = 1; attr 68 tools/perf/util/util.c attr->exclude_guest = 1; attr 70 tools/perf/util/util.c attr->size = sizeof(*attr); attr 13 tools/testing/nvdimm/dimm_devs.c struct device_attribute *attr, char *buf) attr 1542 tools/testing/nvdimm/test/nfit.c static ssize_t handle_show(struct device *dev, struct device_attribute *attr, attr 1554 tools/testing/nvdimm/test/nfit.c static ssize_t fail_cmd_show(struct device *dev, struct device_attribute *attr, attr 1565 tools/testing/nvdimm/test/nfit.c static ssize_t fail_cmd_store(struct device *dev, struct device_attribute *attr, attr 1584 tools/testing/nvdimm/test/nfit.c static ssize_t fail_cmd_code_show(struct device *dev, struct device_attribute *attr, attr 1595 tools/testing/nvdimm/test/nfit.c static ssize_t fail_cmd_code_store(struct device *dev, struct device_attribute *attr, attr 1615 tools/testing/nvdimm/test/nfit.c struct device_attribute *attr, const char *buf, size_t size) attr 1626 tools/testing/nvdimm/test/nfit.c &dev_attr_fail_cmd.attr, attr 1627 tools/testing/nvdimm/test/nfit.c &dev_attr_fail_cmd_code.attr, attr 1628 tools/testing/nvdimm/test/nfit.c &dev_attr_handle.attr, attr 1629 tools/testing/nvdimm/test/nfit.c &dev_attr_lock_dimm.attr, attr 54 tools/testing/selftests/bpf/get_cgroup_id_user.c struct perf_event_attr attr = {}; attr 103 tools/testing/selftests/bpf/get_cgroup_id_user.c attr.config = strtol(buf, NULL, 0); attr 104 tools/testing/selftests/bpf/get_cgroup_id_user.c attr.type = PERF_TYPE_TRACEPOINT; attr 105 tools/testing/selftests/bpf/get_cgroup_id_user.c attr.sample_type = PERF_SAMPLE_RAW; attr 106 tools/testing/selftests/bpf/get_cgroup_id_user.c attr.sample_period = 1; attr 107 tools/testing/selftests/bpf/get_cgroup_id_user.c attr.wakeup_events = 1; attr 112 tools/testing/selftests/bpf/get_cgroup_id_user.c pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); attr 20 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c struct bpf_prog_load_attr attr; attr 24 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c memset(&attr, 0, sizeof(struct bpf_prog_load_attr)); attr 25 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c attr.file = file; attr 26 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c attr.prog_type = type; attr 27 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c attr.log_level = 4; attr 28 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c attr.prog_flags = BPF_F_TEST_RND_HI32; attr 29 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c err = bpf_prog_load_xattr(&attr, &obj, &prog_fd); attr 25 tools/testing/selftests/bpf/prog_tests/obj_name.c union bpf_attr attr; attr 30 tools/testing/selftests/bpf/prog_tests/obj_name.c ncopy = name_len < sizeof(attr.prog_name) ? attr 31 tools/testing/selftests/bpf/prog_tests/obj_name.c name_len : sizeof(attr.prog_name); attr 32 tools/testing/selftests/bpf/prog_tests/obj_name.c bzero(&attr, sizeof(attr)); attr 33 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.prog_type = BPF_PROG_TYPE_SCHED_CLS; attr 34 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.insn_cnt = 2; attr 35 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.insns = ptr_to_u64(prog); attr 36 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.license = ptr_to_u64(""); attr 37 tools/testing/selftests/bpf/prog_tests/obj_name.c memcpy(attr.prog_name, tests[i].name, ncopy); attr 39 tools/testing/selftests/bpf/prog_tests/obj_name.c fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); attr 51 tools/testing/selftests/bpf/prog_tests/obj_name.c ncopy = name_len < sizeof(attr.map_name) ? attr 52 tools/testing/selftests/bpf/prog_tests/obj_name.c name_len : sizeof(attr.map_name); attr 53 tools/testing/selftests/bpf/prog_tests/obj_name.c bzero(&attr, sizeof(attr)); attr 54 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.map_type = BPF_MAP_TYPE_ARRAY; attr 55 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.key_size = 4; attr 56 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.value_size = 4; attr 57 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.max_entries = 1; attr 58 tools/testing/selftests/bpf/prog_tests/obj_name.c attr.map_flags = 0; attr 59 tools/testing/selftests/bpf/prog_tests/obj_name.c memcpy(attr.map_name, tests[i].name, ncopy); attr 60 tools/testing/selftests/bpf/prog_tests/obj_name.c fd = syscall(__NR_bpf, BPF_MAP_CREATE, &attr, sizeof(attr)); attr 11 tools/testing/selftests/bpf/prog_tests/send_signal.c static void test_send_signal_common(struct perf_event_attr *attr, attr 81 tools/testing/selftests/bpf/prog_tests/send_signal.c pmu_fd = syscall(__NR_perf_event_open, attr, pid, -1, attr 146 tools/testing/selftests/bpf/prog_tests/send_signal.c struct perf_event_attr attr = { attr 169 tools/testing/selftests/bpf/prog_tests/send_signal.c attr.config = strtol(buf, NULL, 0); attr 171 tools/testing/selftests/bpf/prog_tests/send_signal.c test_send_signal_common(&attr, BPF_PROG_TYPE_TRACEPOINT, "tracepoint"); attr 176 tools/testing/selftests/bpf/prog_tests/send_signal.c struct perf_event_attr attr = { attr 182 tools/testing/selftests/bpf/prog_tests/send_signal.c test_send_signal_common(&attr, BPF_PROG_TYPE_PERF_EVENT, attr 188 tools/testing/selftests/bpf/prog_tests/send_signal.c struct perf_event_attr attr = { attr 199 tools/testing/selftests/bpf/prog_tests/send_signal.c pmu_fd = syscall(__NR_perf_event_open, &attr, 0 /* pid */, attr 213 tools/testing/selftests/bpf/prog_tests/send_signal.c test_send_signal_common(&attr, BPF_PROG_TYPE_PERF_EVENT, attr 855 tools/testing/selftests/bpf/prog_tests/sockopt.c struct bpf_load_program_attr attr = { attr 865 tools/testing/selftests/bpf/prog_tests/sockopt.c insns[attr.insns_cnt].code != (BPF_JMP | BPF_EXIT); attr 866 tools/testing/selftests/bpf/prog_tests/sockopt.c attr.insns_cnt++) { attr 868 tools/testing/selftests/bpf/prog_tests/sockopt.c attr.insns_cnt++; attr 870 tools/testing/selftests/bpf/prog_tests/sockopt.c fd = bpf_load_program_xattr(&attr, bpf_log_buf, sizeof(bpf_log_buf)); attr 170 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c struct bpf_prog_load_attr attr = { attr 180 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c err = bpf_prog_load_xattr(&attr, &obj, &ignored); attr 299 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c struct bpf_prog_load_attr attr = { attr 316 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c err = bpf_prog_load_xattr(&attr, &obj, &ignored); attr 165 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c struct bpf_prog_load_attr attr = { attr 172 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c err = bpf_prog_load_xattr(&attr, &obj, &ignored); attr 23 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c struct perf_event_attr attr = { attr 38 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c attr.sample_freq = read_perf_max_sample_freq(); attr 49 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, attr 9 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c struct perf_event_attr attr = {}; attr 31 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c attr.config = strtol(buf, NULL, 0); attr 32 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c attr.type = PERF_TYPE_TRACEPOINT; attr 33 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c attr.sample_type = PERF_SAMPLE_RAW; attr 34 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c attr.sample_period = 1; attr 35 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c attr.wakeup_events = 1; attr 36 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, attr 121 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c struct bpf_prog_load_attr attr = { attr 133 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c err = bpf_prog_load_xattr(&attr, &obj, &prog_fd); attr 11 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c struct perf_event_attr attr = {}; attr 30 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c attr.config = strtol(buf, NULL, 0); attr 31 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c attr.type = PERF_TYPE_TRACEPOINT; attr 32 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c attr.sample_type = PERF_SAMPLE_RAW | PERF_SAMPLE_CALLCHAIN; attr 33 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c attr.sample_period = 1; attr 34 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c attr.wakeup_events = 1; attr 54 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c pmu_fd[i] = syscall(__NR_perf_event_open, &attr, -1 /* pid */, attr 6150 tools/testing/selftests/bpf/test_btf.c union bpf_attr attr = {}; attr 6185 tools/testing/selftests/bpf/test_btf.c attr.prog_type = test->prog_type; attr 6186 tools/testing/selftests/bpf/test_btf.c attr.insns = ptr_to_u64(test->insns); attr 6187 tools/testing/selftests/bpf/test_btf.c attr.insn_cnt = probe_prog_length(test->insns); attr 6188 tools/testing/selftests/bpf/test_btf.c attr.license = ptr_to_u64("GPL"); attr 6189 tools/testing/selftests/bpf/test_btf.c attr.prog_btf_fd = btf_fd; attr 6190 tools/testing/selftests/bpf/test_btf.c attr.func_info_rec_size = test->func_info_rec_size; attr 6191 tools/testing/selftests/bpf/test_btf.c attr.func_info_cnt = test->func_info_cnt; attr 6192 tools/testing/selftests/bpf/test_btf.c attr.func_info = ptr_to_u64(test->func_info); attr 6193 tools/testing/selftests/bpf/test_btf.c attr.log_buf = ptr_to_u64(btf_log_buf); attr 6194 tools/testing/selftests/bpf/test_btf.c attr.log_size = BTF_LOG_BUF_SIZE; attr 6195 tools/testing/selftests/bpf/test_btf.c attr.log_level = 1; attr 6197 tools/testing/selftests/bpf/test_btf.c attr.line_info_rec_size = test->line_info_rec_size; attr 6198 tools/testing/selftests/bpf/test_btf.c attr.line_info = ptr_to_u64(patched_linfo); attr 6199 tools/testing/selftests/bpf/test_btf.c attr.line_info_cnt = linfo_size / attr.line_info_rec_size; attr 6202 tools/testing/selftests/bpf/test_btf.c prog_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); attr 6220 tools/testing/selftests/bpf/test_btf.c attr.line_info_cnt - test->dead_code_cnt, attr 60 tools/testing/selftests/bpf/test_select_reuseport.c struct bpf_create_map_attr attr = {}; attr 63 tools/testing/selftests/bpf/test_select_reuseport.c attr.name = "reuseport_array"; attr 64 tools/testing/selftests/bpf/test_select_reuseport.c attr.map_type = BPF_MAP_TYPE_REUSEPORT_SOCKARRAY; attr 65 tools/testing/selftests/bpf/test_select_reuseport.c attr.key_size = sizeof(__u32); attr 66 tools/testing/selftests/bpf/test_select_reuseport.c attr.value_size = sizeof(__u32); attr 67 tools/testing/selftests/bpf/test_select_reuseport.c attr.max_entries = REUSEPORT_ARRAY_SIZE; attr 69 tools/testing/selftests/bpf/test_select_reuseport.c reuseport_array = bpf_create_map_xattr(&attr); attr 74 tools/testing/selftests/bpf/test_select_reuseport.c attr.name = "outer_map"; attr 75 tools/testing/selftests/bpf/test_select_reuseport.c attr.map_type = BPF_MAP_TYPE_ARRAY_OF_MAPS; attr 76 tools/testing/selftests/bpf/test_select_reuseport.c attr.key_size = sizeof(__u32); attr 77 tools/testing/selftests/bpf/test_select_reuseport.c attr.value_size = sizeof(__u32); attr 78 tools/testing/selftests/bpf/test_select_reuseport.c attr.max_entries = 1; attr 79 tools/testing/selftests/bpf/test_select_reuseport.c attr.inner_map_fd = reuseport_array; attr 80 tools/testing/selftests/bpf/test_select_reuseport.c outer_map = bpf_create_map_xattr(&attr); attr 90 tools/testing/selftests/bpf/test_select_reuseport.c struct bpf_object_open_attr attr = { attr 95 tools/testing/selftests/bpf/test_select_reuseport.c obj = bpf_object__open_xattr(&attr); attr 101 tools/testing/selftests/bpf/test_select_reuseport.c bpf_program__set_type(prog, attr.prog_type); attr 331 tools/testing/selftests/bpf/test_sock.c struct bpf_load_program_attr attr; attr 334 tools/testing/selftests/bpf/test_sock.c memset(&attr, 0, sizeof(struct bpf_load_program_attr)); attr 335 tools/testing/selftests/bpf/test_sock.c attr.prog_type = BPF_PROG_TYPE_CGROUP_SOCK; attr 336 tools/testing/selftests/bpf/test_sock.c attr.expected_attach_type = attach_type; attr 337 tools/testing/selftests/bpf/test_sock.c attr.insns = prog; attr 338 tools/testing/selftests/bpf/test_sock.c attr.insns_cnt = probe_prog_length(attr.insns); attr 339 tools/testing/selftests/bpf/test_sock.c attr.license = "GPL"; attr 340 tools/testing/selftests/bpf/test_sock.c attr.log_level = 2; attr 342 tools/testing/selftests/bpf/test_sock.c ret = bpf_load_program_xattr(&attr, bpf_log_buf, BPF_LOG_BUF_SIZE); attr 831 tools/testing/selftests/bpf/test_sock_addr.c struct bpf_prog_load_attr attr; attr 835 tools/testing/selftests/bpf/test_sock_addr.c memset(&attr, 0, sizeof(struct bpf_prog_load_attr)); attr 836 tools/testing/selftests/bpf/test_sock_addr.c attr.file = path; attr 837 tools/testing/selftests/bpf/test_sock_addr.c attr.prog_type = BPF_PROG_TYPE_CGROUP_SOCK_ADDR; attr 838 tools/testing/selftests/bpf/test_sock_addr.c attr.expected_attach_type = test->expected_attach_type; attr 839 tools/testing/selftests/bpf/test_sock_addr.c attr.prog_flags = BPF_F_TEST_RND_HI32; attr 841 tools/testing/selftests/bpf/test_sock_addr.c if (bpf_prog_load_xattr(&attr, &obj, &prog_fd)) { attr 414 tools/testing/selftests/bpf/test_sock_fields.c struct bpf_prog_load_attr attr = { attr 438 tools/testing/selftests/bpf/test_sock_fields.c err = bpf_prog_load_xattr(&attr, &obj, &egress_fd); attr 133 tools/testing/selftests/bpf/test_socket_cookie.c struct bpf_prog_load_attr attr; attr 142 tools/testing/selftests/bpf/test_socket_cookie.c memset(&attr, 0, sizeof(attr)); attr 143 tools/testing/selftests/bpf/test_socket_cookie.c attr.file = SOCKET_COOKIE_PROG; attr 144 tools/testing/selftests/bpf/test_socket_cookie.c attr.prog_type = BPF_PROG_TYPE_UNSPEC; attr 145 tools/testing/selftests/bpf/test_socket_cookie.c attr.prog_flags = BPF_F_TEST_RND_HI32; attr 147 tools/testing/selftests/bpf/test_socket_cookie.c err = bpf_prog_load_xattr(&attr, &pobj, &prog_fd); attr 149 tools/testing/selftests/bpf/test_socket_cookie.c log_err("Failed to load %s", attr.file); attr 11 tools/testing/selftests/bpf/test_stub.c struct bpf_prog_load_attr attr; attr 13 tools/testing/selftests/bpf/test_stub.c memset(&attr, 0, sizeof(struct bpf_prog_load_attr)); attr 14 tools/testing/selftests/bpf/test_stub.c attr.file = file; attr 15 tools/testing/selftests/bpf/test_stub.c attr.prog_type = type; attr 16 tools/testing/selftests/bpf/test_stub.c attr.expected_attach_type = 0; attr 17 tools/testing/selftests/bpf/test_stub.c attr.prog_flags = BPF_F_TEST_RND_HI32; attr 19 tools/testing/selftests/bpf/test_stub.c return bpf_prog_load_xattr(&attr, pobj, prog_fd); attr 1415 tools/testing/selftests/bpf/test_sysctl.c struct bpf_load_program_attr attr; attr 1418 tools/testing/selftests/bpf/test_sysctl.c memset(&attr, 0, sizeof(struct bpf_load_program_attr)); attr 1419 tools/testing/selftests/bpf/test_sysctl.c attr.prog_type = BPF_PROG_TYPE_CGROUP_SYSCTL; attr 1420 tools/testing/selftests/bpf/test_sysctl.c attr.insns = prog; attr 1421 tools/testing/selftests/bpf/test_sysctl.c attr.insns_cnt = probe_prog_length(attr.insns); attr 1422 tools/testing/selftests/bpf/test_sysctl.c attr.license = "GPL"; attr 1445 tools/testing/selftests/bpf/test_sysctl.c ret = bpf_load_program_xattr(&attr, bpf_log_buf, BPF_LOG_BUF_SIZE); attr 1456 tools/testing/selftests/bpf/test_sysctl.c struct bpf_prog_load_attr attr; attr 1460 tools/testing/selftests/bpf/test_sysctl.c memset(&attr, 0, sizeof(struct bpf_prog_load_attr)); attr 1461 tools/testing/selftests/bpf/test_sysctl.c attr.file = test->prog_file; attr 1462 tools/testing/selftests/bpf/test_sysctl.c attr.prog_type = BPF_PROG_TYPE_CGROUP_SYSCTL; attr 1464 tools/testing/selftests/bpf/test_sysctl.c if (bpf_prog_load_xattr(&attr, &obj, &prog_fd)) { attr 569 tools/testing/selftests/bpf/test_verifier.c struct bpf_create_map_attr attr = { attr 583 tools/testing/selftests/bpf/test_verifier.c attr.btf_fd = btf_fd; attr 584 tools/testing/selftests/bpf/test_verifier.c fd = bpf_create_map_xattr(&attr); attr 592 tools/testing/selftests/bpf/test_verifier.c struct bpf_create_map_attr attr = { attr 607 tools/testing/selftests/bpf/test_verifier.c attr.btf_fd = btf_fd; attr 608 tools/testing/selftests/bpf/test_verifier.c fd = bpf_create_map_xattr(&attr); attr 609 tools/testing/selftests/bpf/test_verifier.c close(attr.btf_fd); attr 900 tools/testing/selftests/bpf/test_verifier.c struct bpf_load_program_attr attr; attr 939 tools/testing/selftests/bpf/test_verifier.c memset(&attr, 0, sizeof(attr)); attr 940 tools/testing/selftests/bpf/test_verifier.c attr.prog_type = prog_type; attr 941 tools/testing/selftests/bpf/test_verifier.c attr.expected_attach_type = test->expected_attach_type; attr 942 tools/testing/selftests/bpf/test_verifier.c attr.insns = prog; attr 943 tools/testing/selftests/bpf/test_verifier.c attr.insns_cnt = prog_len; attr 944 tools/testing/selftests/bpf/test_verifier.c attr.license = "GPL"; attr 945 tools/testing/selftests/bpf/test_verifier.c attr.log_level = verbose || expected_ret == VERBOSE_ACCEPT ? 1 : 4; attr 946 tools/testing/selftests/bpf/test_verifier.c attr.prog_flags = pflags; attr 948 tools/testing/selftests/bpf/test_verifier.c fd_prog = bpf_load_program_xattr(&attr, bpf_vlog, sizeof(bpf_vlog)); attr 50 tools/testing/selftests/bpf/test_verifier_log.c union bpf_attr attr; attr 52 tools/testing/selftests/bpf/test_verifier_log.c bzero(&attr, sizeof(attr)); attr 53 tools/testing/selftests/bpf/test_verifier_log.c attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; attr 54 tools/testing/selftests/bpf/test_verifier_log.c attr.insn_cnt = (__u32)(sizeof(code_sample) / sizeof(struct bpf_insn)); attr 55 tools/testing/selftests/bpf/test_verifier_log.c attr.insns = ptr_to_u64(code_sample); attr 56 tools/testing/selftests/bpf/test_verifier_log.c attr.license = ptr_to_u64("GPL"); attr 57 tools/testing/selftests/bpf/test_verifier_log.c attr.log_buf = ptr_to_u64(log); attr 58 tools/testing/selftests/bpf/test_verifier_log.c attr.log_size = log_len; attr 59 tools/testing/selftests/bpf/test_verifier_log.c attr.log_level = log_level; attr 61 tools/testing/selftests/bpf/test_verifier_log.c return syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); attr 75 tools/testing/selftests/futex/functional/futex_requeue_pi.c pthread_attr_t attr; attr 77 tools/testing/selftests/futex/functional/futex_requeue_pi.c pthread_attr_init(&attr); attr 80 tools/testing/selftests/futex/functional/futex_requeue_pi.c ret = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); attr 86 tools/testing/selftests/futex/functional/futex_requeue_pi.c ret = pthread_attr_setschedpolicy(&attr, policy); attr 93 tools/testing/selftests/futex/functional/futex_requeue_pi.c ret = pthread_attr_setschedparam(&attr, &schedp); attr 99 tools/testing/selftests/futex/functional/futex_requeue_pi.c ret = pthread_create(pth, &attr, func, arg); attr 53 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c pthread_attr_t attr; attr 56 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c pthread_attr_init(&attr); attr 59 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c ret = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); attr 65 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c ret = pthread_attr_setschedpolicy(&attr, policy); attr 72 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c ret = pthread_attr_setschedparam(&attr, &schedp); attr 78 tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c ret = pthread_create(pth, &attr, func, arg); attr 68 tools/testing/selftests/mqueue/mq_open_tests.c static inline void test_queue(struct mq_attr *attr, struct mq_attr *result); attr 69 tools/testing/selftests/mqueue/mq_open_tests.c static inline int test_queue_fail(struct mq_attr *attr, struct mq_attr *result); attr 200 tools/testing/selftests/mqueue/mq_open_tests.c static inline void test_queue(struct mq_attr *attr, struct mq_attr *result) attr 205 tools/testing/selftests/mqueue/mq_open_tests.c if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) attr 222 tools/testing/selftests/mqueue/mq_open_tests.c static inline int test_queue_fail(struct mq_attr *attr, struct mq_attr *result) attr 227 tools/testing/selftests/mqueue/mq_open_tests.c if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) attr 241 tools/testing/selftests/mqueue/mq_open_tests.c struct mq_attr attr, result; attr 430 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = cur_max_msgs; attr 431 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = cur_max_msgsize; attr 432 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 438 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = cur_max_msgs + 1; attr 439 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = 10; attr 440 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 446 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = 1; attr 447 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = cur_max_msgsize + 1; attr 448 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 454 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = 65536; attr 455 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = 65536; attr 456 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 468 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = cur_max_msgs; attr 469 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = cur_max_msgsize; attr 470 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 476 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = cur_max_msgs + 1; attr 477 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = 10; attr 478 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 484 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = 1; attr 485 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = cur_max_msgsize + 1; attr 486 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 492 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_maxmsg = 65536; attr 493 tools/testing/selftests/mqueue/mq_open_tests.c attr.mq_msgsize = 65536; attr 494 tools/testing/selftests/mqueue/mq_open_tests.c if (test_queue_fail(&attr, &result)) attr 162 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void open_queue(struct mq_attr *attr); attr 289 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void open_queue(struct mq_attr *attr) attr 294 tools/testing/selftests/mqueue/mq_perf_tests.c queue = mq_open(queue_path, flags, perms, attr); attr 540 tools/testing/selftests/mqueue/mq_perf_tests.c struct mq_attr attr; attr 708 tools/testing/selftests/mqueue/mq_perf_tests.c attr.mq_flags = O_NONBLOCK; attr 709 tools/testing/selftests/mqueue/mq_perf_tests.c attr.mq_maxmsg = cur_max_msgs; attr 710 tools/testing/selftests/mqueue/mq_perf_tests.c attr.mq_msgsize = MSG_SIZE; attr 711 tools/testing/selftests/mqueue/mq_perf_tests.c open_queue(&attr); attr 146 tools/testing/selftests/net/psock_fanout.c union bpf_attr attr; attr 149 tools/testing/selftests/net/psock_fanout.c memset(&attr, 0, sizeof(attr)); attr 150 tools/testing/selftests/net/psock_fanout.c attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; attr 151 tools/testing/selftests/net/psock_fanout.c attr.insns = (unsigned long) prog; attr 152 tools/testing/selftests/net/psock_fanout.c attr.insn_cnt = sizeof(prog) / sizeof(prog[0]); attr 153 tools/testing/selftests/net/psock_fanout.c attr.license = (unsigned long) "GPL"; attr 154 tools/testing/selftests/net/psock_fanout.c attr.log_buf = (unsigned long) log_buf, attr 155 tools/testing/selftests/net/psock_fanout.c attr.log_size = sizeof(log_buf), attr 156 tools/testing/selftests/net/psock_fanout.c attr.log_level = 1, attr 158 tools/testing/selftests/net/psock_fanout.c pfd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); attr 110 tools/testing/selftests/net/reuseport_bpf.c union bpf_attr attr; attr 112 tools/testing/selftests/net/reuseport_bpf.c memset(&attr, 0, sizeof(attr)); attr 113 tools/testing/selftests/net/reuseport_bpf.c attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; attr 114 tools/testing/selftests/net/reuseport_bpf.c attr.insn_cnt = ARRAY_SIZE(prog); attr 115 tools/testing/selftests/net/reuseport_bpf.c attr.insns = (unsigned long) &prog; attr 116 tools/testing/selftests/net/reuseport_bpf.c attr.license = (unsigned long) &bpf_license; attr 117 tools/testing/selftests/net/reuseport_bpf.c attr.log_buf = (unsigned long) &bpf_log_buf; attr 118 tools/testing/selftests/net/reuseport_bpf.c attr.log_size = sizeof(bpf_log_buf); attr 119 tools/testing/selftests/net/reuseport_bpf.c attr.log_level = 1; attr 120 tools/testing/selftests/net/reuseport_bpf.c attr.kern_version = 0; attr 122 tools/testing/selftests/net/reuseport_bpf.c bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); attr 85 tools/testing/selftests/net/reuseport_bpf_numa.c union bpf_attr attr; attr 87 tools/testing/selftests/net/reuseport_bpf_numa.c memset(&attr, 0, sizeof(attr)); attr 88 tools/testing/selftests/net/reuseport_bpf_numa.c attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; attr 89 tools/testing/selftests/net/reuseport_bpf_numa.c attr.insn_cnt = sizeof(prog) / sizeof(prog[0]); attr 90 tools/testing/selftests/net/reuseport_bpf_numa.c attr.insns = (unsigned long) &prog; attr 91 tools/testing/selftests/net/reuseport_bpf_numa.c attr.license = (unsigned long) &bpf_license; attr 92 tools/testing/selftests/net/reuseport_bpf_numa.c attr.log_buf = (unsigned long) &bpf_log_buf; attr 93 tools/testing/selftests/net/reuseport_bpf_numa.c attr.log_size = sizeof(bpf_log_buf); attr 94 tools/testing/selftests/net/reuseport_bpf_numa.c attr.log_level = 1; attr 96 tools/testing/selftests/net/reuseport_bpf_numa.c bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); attr 78 tools/testing/selftests/powerpc/benchmarks/context_switch.c pthread_attr_t attr; attr 83 tools/testing/selftests/powerpc/benchmarks/context_switch.c rc = pthread_attr_init(&attr); attr 90 tools/testing/selftests/powerpc/benchmarks/context_switch.c rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); attr 97 tools/testing/selftests/powerpc/benchmarks/context_switch.c rc = pthread_create(&tid, &attr, fn, arg); attr 138 tools/testing/selftests/powerpc/benchmarks/fork.c pthread_attr_t attr; attr 141 tools/testing/selftests/powerpc/benchmarks/fork.c rc = pthread_attr_init(&attr); attr 152 tools/testing/selftests/powerpc/benchmarks/fork.c rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); attr 161 tools/testing/selftests/powerpc/benchmarks/fork.c rc = pthread_create(&tid, &attr, null_fn, NULL); attr 619 tools/testing/selftests/powerpc/mm/tlbie_test.c pthread_attr_t attr; attr 708 tools/testing/selftests/powerpc/mm/tlbie_test.c pthread_attr_init(&attr); attr 711 tools/testing/selftests/powerpc/mm/tlbie_test.c pthread_create(&rim_threads[i], &attr, rim_fn, &rim_thread_ids[i]); attr 715 tools/testing/selftests/powerpc/mm/tlbie_test.c pthread_create(&mem_snapshot_thread, &attr, mem_snapshot_fn, map1); attr 23 tools/testing/selftests/powerpc/pmu/count_instructions.c e->attr.disabled = 1; attr 24 tools/testing/selftests/powerpc/pmu/count_instructions.c e->attr.exclude_kernel = 1; attr 25 tools/testing/selftests/powerpc/pmu/count_instructions.c e->attr.exclude_hv = 1; attr 26 tools/testing/selftests/powerpc/pmu/count_instructions.c e->attr.exclude_idle = 1; attr 71 tools/testing/selftests/powerpc/pmu/ebb/back_to_back_ebbs_test.c event.attr.exclude_kernel = 1; attr 72 tools/testing/selftests/powerpc/pmu/ebb/back_to_back_ebbs_test.c event.attr.exclude_hv = 1; attr 73 tools/testing/selftests/powerpc/pmu/ebb/back_to_back_ebbs_test.c event.attr.exclude_idle = 1; attr 26 tools/testing/selftests/powerpc/pmu/ebb/cpu_event_pinned_vs_ebb_test.c event->attr.pinned = 1; attr 28 tools/testing/selftests/powerpc/pmu/ebb/cpu_event_pinned_vs_ebb_test.c event->attr.exclude_kernel = 1; attr 29 tools/testing/selftests/powerpc/pmu/ebb/cpu_event_pinned_vs_ebb_test.c event->attr.exclude_hv = 1; attr 30 tools/testing/selftests/powerpc/pmu/ebb/cpu_event_pinned_vs_ebb_test.c event->attr.exclude_idle = 1; attr 26 tools/testing/selftests/powerpc/pmu/ebb/cpu_event_vs_ebb_test.c event->attr.exclude_kernel = 1; attr 27 tools/testing/selftests/powerpc/pmu/ebb/cpu_event_vs_ebb_test.c event->attr.exclude_hv = 1; attr 28 tools/testing/selftests/powerpc/pmu/ebb/cpu_event_vs_ebb_test.c event->attr.exclude_idle = 1; attr 24 tools/testing/selftests/powerpc/pmu/ebb/cycles_test.c event.attr.exclude_kernel = 1; attr 25 tools/testing/selftests/powerpc/pmu/ebb/cycles_test.c event.attr.exclude_hv = 1; attr 26 tools/testing/selftests/powerpc/pmu/ebb/cycles_test.c event.attr.exclude_idle = 1; attr 64 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_freeze_test.c event.attr.exclude_kernel = 1; attr 65 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_freeze_test.c event.attr.exclude_hv = 1; attr 66 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_freeze_test.c event.attr.exclude_idle = 1; attr 34 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c event.attr.exclude_kernel = 1; attr 35 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c event.attr.exclude_hv = 1; attr 36 tools/testing/selftests/powerpc/pmu/ebb/cycles_with_mmcr2_test.c event.attr.exclude_idle = 1; attr 333 tools/testing/selftests/powerpc/pmu/ebb/ebb.c e->attr.config |= (1ull << 63); attr 338 tools/testing/selftests/powerpc/pmu/ebb/ebb.c e->attr.config |= (1ull << 62) | ((u64)ifm << 60); attr 345 tools/testing/selftests/powerpc/pmu/ebb/ebb.c e->attr.exclusive = 1; attr 346 tools/testing/selftests/powerpc/pmu/ebb/ebb.c e->attr.pinned = 1; attr 359 tools/testing/selftests/powerpc/pmu/ebb/ebb.c event.attr.exclude_kernel = 1; attr 360 tools/testing/selftests/powerpc/pmu/ebb/ebb.c event.attr.exclude_hv = 1; attr 361 tools/testing/selftests/powerpc/pmu/ebb/ebb.c event.attr.exclude_idle = 1; attr 68 tools/testing/selftests/powerpc/pmu/ebb/ebb_on_child_test.c event.attr.exclude_kernel = 1; attr 69 tools/testing/selftests/powerpc/pmu/ebb/ebb_on_child_test.c event.attr.exclude_hv = 1; attr 70 tools/testing/selftests/powerpc/pmu/ebb/ebb_on_child_test.c event.attr.exclude_idle = 1; attr 76 tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c event.attr.exclude_kernel = 1; attr 77 tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c event.attr.exclude_hv = 1; attr 78 tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c event.attr.exclude_idle = 1; attr 26 tools/testing/selftests/powerpc/pmu/ebb/ebb_vs_cpu_event_test.c event->attr.exclude_kernel = 1; attr 27 tools/testing/selftests/powerpc/pmu/ebb/ebb_vs_cpu_event_test.c event->attr.exclude_hv = 1; attr 28 tools/testing/selftests/powerpc/pmu/ebb/ebb_vs_cpu_event_test.c event->attr.exclude_idle = 1; attr 36 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c event.attr.exclusive = 0; attr 43 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c event.attr.freq = 1; attr 50 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c event.attr.sample_period = 1; attr 57 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c event.attr.enable_on_exec = 1; attr 64 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c event.attr.inherit = 1; attr 96 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c leader.attr.config &= ~(1ull << 63); attr 110 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c leader.attr.exclusive = 0; attr 117 tools/testing/selftests/powerpc/pmu/ebb/event_attributes_test.c leader.attr.pinned = 0; attr 118 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c event.attr.exclude_kernel = 1; attr 119 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c event.attr.exclude_hv = 1; attr 120 tools/testing/selftests/powerpc/pmu/ebb/instruction_count_test.c event.attr.exclude_idle = 1; attr 32 tools/testing/selftests/powerpc/pmu/ebb/lost_exception_test.c event.attr.exclude_kernel = 1; attr 33 tools/testing/selftests/powerpc/pmu/ebb/lost_exception_test.c event.attr.exclude_hv = 1; attr 34 tools/testing/selftests/powerpc/pmu/ebb/lost_exception_test.c event.attr.exclude_idle = 1; attr 36 tools/testing/selftests/powerpc/pmu/ebb/multi_counter_test.c events[i].attr.exclude_kernel = 1; attr 37 tools/testing/selftests/powerpc/pmu/ebb/multi_counter_test.c events[i].attr.exclude_hv = 1; attr 38 tools/testing/selftests/powerpc/pmu/ebb/multi_counter_test.c events[i].attr.exclude_idle = 1; attr 42 tools/testing/selftests/powerpc/pmu/ebb/multi_ebb_procs_test.c event.attr.exclude_kernel = 1; attr 43 tools/testing/selftests/powerpc/pmu/ebb/multi_ebb_procs_test.c event.attr.exclude_hv = 1; attr 44 tools/testing/selftests/powerpc/pmu/ebb/multi_ebb_procs_test.c event.attr.exclude_idle = 1; attr 27 tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c event.attr.exclude_kernel = 1; attr 28 tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c event.attr.exclude_hv = 1; attr 29 tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c event.attr.exclude_idle = 1; attr 66 tools/testing/selftests/powerpc/pmu/ebb/pmae_handling_test.c event.attr.exclude_kernel = 1; attr 67 tools/testing/selftests/powerpc/pmu/ebb/pmae_handling_test.c event.attr.exclude_hv = 1; attr 68 tools/testing/selftests/powerpc/pmu/ebb/pmae_handling_test.c event.attr.exclude_idle = 1; attr 58 tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c event.attr.exclude_kernel = 1; attr 59 tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c event.attr.exclude_hv = 1; attr 60 tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c event.attr.exclude_idle = 1; attr 26 tools/testing/selftests/powerpc/pmu/ebb/task_event_pinned_vs_ebb_test.c event->attr.pinned = 1; attr 28 tools/testing/selftests/powerpc/pmu/ebb/task_event_pinned_vs_ebb_test.c event->attr.exclude_kernel = 1; attr 29 tools/testing/selftests/powerpc/pmu/ebb/task_event_pinned_vs_ebb_test.c event->attr.exclude_hv = 1; attr 30 tools/testing/selftests/powerpc/pmu/ebb/task_event_pinned_vs_ebb_test.c event->attr.exclude_idle = 1; attr 26 tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c event->attr.exclude_kernel = 1; attr 27 tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c event->attr.exclude_hv = 1; attr 28 tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c event->attr.exclude_idle = 1; attr 16 tools/testing/selftests/powerpc/pmu/event.c int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, attr 19 tools/testing/selftests/powerpc/pmu/event.c return syscall(__NR_perf_event_open, attr, pid, cpu, attr 29 tools/testing/selftests/powerpc/pmu/event.c e->attr.type = type; attr 30 tools/testing/selftests/powerpc/pmu/event.c e->attr.config = config; attr 31 tools/testing/selftests/powerpc/pmu/event.c e->attr.size = sizeof(e->attr); attr 33 tools/testing/selftests/powerpc/pmu/event.c e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \ attr 54 tools/testing/selftests/powerpc/pmu/event.c e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); attr 16 tools/testing/selftests/powerpc/pmu/event.h struct perf_event_attr attr; attr 40 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.disabled = 1; attr 45 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.disabled = 1; attr 46 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.exclude_user = 1; attr 47 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.exclude_hv = 1; attr 52 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.disabled = 1; attr 53 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.exclude_user = 1; attr 54 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.exclude_kernel = 1; attr 59 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.disabled = 1; attr 60 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.exclude_hv = 1; attr 61 tools/testing/selftests/powerpc/pmu/per_event_excludes.c e->attr.exclude_kernel = 1; attr 37 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c static inline int sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, attr 41 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr->size = sizeof(*attr); attr 42 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags); attr 47 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c struct perf_event_attr attr; attr 51 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c memset(&attr, 0, sizeof(attr)); attr 52 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.disabled = 1; attr 53 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.type = PERF_TYPE_BREAKPOINT; attr 54 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.bp_type = HW_BREAKPOINT_R; attr 56 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.bp_addr = (__u64)(&attr) & 0xfffffffffffff800; attr 57 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.bp_len = len; attr 58 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c fd = sys_perf_event_open(&attr, 0, -1, -1, 0); attr 78 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c struct perf_event_attr attr; attr 98 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c memset(&attr, 0, sizeof(attr)); attr 99 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.disabled = 1; attr 100 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.type = PERF_TYPE_BREAKPOINT; attr 101 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.bp_type = readwriteflag; attr 102 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.bp_addr = (__u64)ptr; attr 103 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.bp_len = sizeof(int); attr 105 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.bp_len = DAWR_LENGTH_MAX; attr 106 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c attr.exclude_user = exclude_user; attr 107 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c break_fd = sys_perf_event_open(&attr, 0, -1, -1, 0); attr 253 tools/testing/selftests/powerpc/tm/tm-trap.c pthread_attr_t attr; attr 275 tools/testing/selftests/powerpc/tm/tm-trap.c rc = pthread_attr_init(&attr); attr 284 tools/testing/selftests/powerpc/tm/tm-trap.c rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); attr 300 tools/testing/selftests/powerpc/tm/tm-trap.c rc = pthread_create(&t0_ping, &attr, ping, NULL); attr 307 tools/testing/selftests/powerpc/tm/tm-trap.c rc = pthread_create(&t1_pong, &attr, pong, NULL); attr 298 tools/testing/selftests/powerpc/tm/tm-unavailable.c void test_fp_vec(int fp, int vec, pthread_attr_t *attr) attr 318 tools/testing/selftests/powerpc/tm/tm-unavailable.c rc = pthread_create(&t0, attr, tm_una_ping, (void *) &flags); attr 343 tools/testing/selftests/powerpc/tm/tm-unavailable.c pthread_attr_t attr; attr 353 tools/testing/selftests/powerpc/tm/tm-unavailable.c rc = pthread_attr_init(&attr); attr 358 tools/testing/selftests/powerpc/tm/tm-unavailable.c rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); attr 362 tools/testing/selftests/powerpc/tm/tm-unavailable.c rc = pthread_create(&t1, &attr /* Bind to CPU 0 */, tm_una_pong, NULL); attr 387 tools/testing/selftests/powerpc/tm/tm-unavailable.c test_fp_vec(0, 0, &attr); attr 388 tools/testing/selftests/powerpc/tm/tm-unavailable.c test_fp_vec(1, 0, &attr); attr 389 tools/testing/selftests/powerpc/tm/tm-unavailable.c test_fp_vec(0, 1, &attr); attr 390 tools/testing/selftests/powerpc/tm/tm-unavailable.c test_fp_vec(1, 1, &attr); attr 62 tools/testing/selftests/timers/mqueue-lat.c struct mq_attr attr; attr 71 tools/testing/selftests/timers/mqueue-lat.c mq_getattr(q, &attr); attr 78 tools/testing/selftests/timers/mqueue-lat.c char buf[attr.mq_msgsize]; attr 87 tools/testing/selftests/vm/userfaultfd.c pthread_attr_t attr; attr 593 tools/testing/selftests/vm/userfaultfd.c if (pthread_create(&locking_threads[cpu], &attr, attr 597 tools/testing/selftests/vm/userfaultfd.c if (pthread_create(&uffd_threads[cpu], &attr, attr 601 tools/testing/selftests/vm/userfaultfd.c if (pthread_create(&uffd_threads[cpu], &attr, attr 607 tools/testing/selftests/vm/userfaultfd.c if (pthread_create(&background_threads[cpu], &attr, attr 942 tools/testing/selftests/vm/userfaultfd.c if (pthread_create(&uffd_mon, &attr, uffd_poll_thread, NULL)) attr 1007 tools/testing/selftests/vm/userfaultfd.c if (pthread_create(&uffd_mon, &attr, uffd_poll_thread, NULL)) attr 1094 tools/testing/selftests/vm/userfaultfd.c pthread_attr_init(&attr); attr 1095 tools/testing/selftests/vm/userfaultfd.c pthread_attr_setstacksize(&attr, 16*1024*1024); attr 144 tools/usb/usbip/libsrc/usbip_common.c const char *attr; attr 148 tools/usb/usbip/libsrc/usbip_common.c attr = udev_device_get_sysattr_value(dev, name); attr 149 tools/usb/usbip/libsrc/usbip_common.c if (!attr) { attr 164 tools/usb/usbip/libsrc/usbip_common.c ret = sscanf(attr, format, &num); attr 24 tools/usb/usbip/libsrc/usbip_device_driver.c #define copy_descr_attr16(dev, descr, attr) \ attr 25 tools/usb/usbip/libsrc/usbip_device_driver.c ((dev)->attr = le16toh((descr)->attr)) \ attr 27 tools/usb/usbip/libsrc/usbip_device_driver.c #define copy_descr_attr(dev, descr, attr) \ attr 28 tools/usb/usbip/libsrc/usbip_device_driver.c ((dev)->attr = (descr)->attr) \ attr 1117 virt/kvm/arm/arch_timer.c int kvm_arm_timer_set_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) attr 1119 virt/kvm/arm/arch_timer.c int __user *uaddr = (int __user *)(long)attr->addr; attr 1136 virt/kvm/arm/arch_timer.c switch (attr->attr) { attr 1150 virt/kvm/arm/arch_timer.c int kvm_arm_timer_get_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) attr 1152 virt/kvm/arm/arch_timer.c int __user *uaddr = (int __user *)(long)attr->addr; attr 1156 virt/kvm/arm/arch_timer.c switch (attr->attr) { attr 1171 virt/kvm/arm/arch_timer.c int kvm_arm_timer_has_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) attr 1173 virt/kvm/arm/arch_timer.c switch (attr->attr) { attr 1038 virt/kvm/arm/arm.c struct kvm_device_attr *attr) attr 1042 virt/kvm/arm/arm.c switch (attr->group) { attr 1044 virt/kvm/arm/arm.c ret = kvm_arm_vcpu_arch_set_attr(vcpu, attr); attr 1052 virt/kvm/arm/arm.c struct kvm_device_attr *attr) attr 1056 virt/kvm/arm/arm.c switch (attr->group) { attr 1058 virt/kvm/arm/arm.c ret = kvm_arm_vcpu_arch_get_attr(vcpu, attr); attr 1066 virt/kvm/arm/arm.c struct kvm_device_attr *attr) attr 1070 virt/kvm/arm/arm.c switch (attr->group) { attr 1072 virt/kvm/arm/arm.c ret = kvm_arm_vcpu_arch_has_attr(vcpu, attr); attr 1110 virt/kvm/arm/arm.c struct kvm_device_attr attr; attr 1170 virt/kvm/arm/arm.c if (copy_from_user(&attr, argp, sizeof(attr))) attr 1172 virt/kvm/arm/arm.c r = kvm_arm_vcpu_set_attr(vcpu, &attr); attr 1177 virt/kvm/arm/arm.c if (copy_from_user(&attr, argp, sizeof(attr))) attr 1179 virt/kvm/arm/arm.c r = kvm_arm_vcpu_get_attr(vcpu, &attr); attr 1184 virt/kvm/arm/arm.c if (copy_from_user(&attr, argp, sizeof(attr))) attr 1186 virt/kvm/arm/arm.c r = kvm_arm_vcpu_has_attr(vcpu, &attr); attr 463 virt/kvm/arm/pmu.c perf_event->attr.sample_period = period; attr 569 virt/kvm/arm/pmu.c struct perf_event_attr attr; attr 591 virt/kvm/arm/pmu.c memset(&attr, 0, sizeof(struct perf_event_attr)); attr 592 virt/kvm/arm/pmu.c attr.type = PERF_TYPE_RAW; attr 593 virt/kvm/arm/pmu.c attr.size = sizeof(attr); attr 594 virt/kvm/arm/pmu.c attr.pinned = 1; attr 595 virt/kvm/arm/pmu.c attr.disabled = !kvm_pmu_counter_is_enabled(vcpu, pmc->idx); attr 596 virt/kvm/arm/pmu.c attr.exclude_user = data & ARMV8_PMU_EXCLUDE_EL0 ? 1 : 0; attr 597 virt/kvm/arm/pmu.c attr.exclude_kernel = data & ARMV8_PMU_EXCLUDE_EL1 ? 1 : 0; attr 598 virt/kvm/arm/pmu.c attr.exclude_hv = 1; /* Don't count EL2 events */ attr 599 virt/kvm/arm/pmu.c attr.exclude_host = 1; /* Don't count host events */ attr 600 virt/kvm/arm/pmu.c attr.config = (pmc->idx == ARMV8_PMU_CYCLE_IDX) ? attr 611 virt/kvm/arm/pmu.c attr.sample_period = (-counter) & GENMASK(63, 0); attr 613 virt/kvm/arm/pmu.c attr.config1 |= PERF_ATTR_CFG1_KVM_PMU_CHAINED; attr 615 virt/kvm/arm/pmu.c event = perf_event_create_kernel_counter(&attr, -1, current, attr 621 virt/kvm/arm/pmu.c attr.sample_period = (-counter) & GENMASK(63, 0); attr 623 virt/kvm/arm/pmu.c attr.sample_period = (-counter) & GENMASK(31, 0); attr 625 virt/kvm/arm/pmu.c event = perf_event_create_kernel_counter(&attr, -1, current, attr 793 virt/kvm/arm/pmu.c int kvm_arm_pmu_v3_set_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) attr 795 virt/kvm/arm/pmu.c switch (attr->attr) { attr 797 virt/kvm/arm/pmu.c int __user *uaddr = (int __user *)(long)attr->addr; attr 830 virt/kvm/arm/pmu.c int kvm_arm_pmu_v3_get_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) attr 832 virt/kvm/arm/pmu.c switch (attr->attr) { attr 834 virt/kvm/arm/pmu.c int __user *uaddr = (int __user *)(long)attr->addr; attr 854 virt/kvm/arm/pmu.c int kvm_arm_pmu_v3_has_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) attr 856 virt/kvm/arm/pmu.c switch (attr->attr) { attr 1937 virt/kvm/arm/vgic/vgic-its.c struct kvm_device_attr *attr) attr 1940 virt/kvm/arm/vgic/vgic-its.c gpa_t offset = attr->attr; attr 1958 virt/kvm/arm/vgic/vgic-its.c struct kvm_device_attr *attr, attr 1968 virt/kvm/arm/vgic/vgic-its.c offset = attr->attr; attr 2625 virt/kvm/arm/vgic/vgic-its.c struct kvm_device_attr *attr) attr 2627 virt/kvm/arm/vgic/vgic-its.c switch (attr->group) { attr 2629 virt/kvm/arm/vgic/vgic-its.c switch (attr->attr) { attr 2635 virt/kvm/arm/vgic/vgic-its.c switch (attr->attr) { attr 2647 virt/kvm/arm/vgic/vgic-its.c return vgic_its_has_attr_regs(dev, attr); attr 2652 virt/kvm/arm/vgic/vgic-its.c static int vgic_its_ctrl(struct kvm *kvm, struct vgic_its *its, u64 attr) attr 2657 virt/kvm/arm/vgic/vgic-its.c if (attr == KVM_DEV_ARM_VGIC_CTRL_INIT) /* Nothing to do */ attr 2669 virt/kvm/arm/vgic/vgic-its.c switch (attr) { attr 2688 virt/kvm/arm/vgic/vgic-its.c struct kvm_device_attr *attr) attr 2693 virt/kvm/arm/vgic/vgic-its.c switch (attr->group) { attr 2695 virt/kvm/arm/vgic/vgic-its.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 2696 virt/kvm/arm/vgic/vgic-its.c unsigned long type = (unsigned long)attr->attr; attr 2713 virt/kvm/arm/vgic/vgic-its.c return vgic_its_ctrl(dev->kvm, its, attr->attr); attr 2715 virt/kvm/arm/vgic/vgic-its.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 2721 virt/kvm/arm/vgic/vgic-its.c return vgic_its_attr_regs_access(dev, attr, ®, true); attr 2728 virt/kvm/arm/vgic/vgic-its.c struct kvm_device_attr *attr) attr 2730 virt/kvm/arm/vgic/vgic-its.c switch (attr->group) { attr 2734 virt/kvm/arm/vgic/vgic-its.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 2735 virt/kvm/arm/vgic/vgic-its.c unsigned long type = (unsigned long)attr->attr; attr 2745 virt/kvm/arm/vgic/vgic-its.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 2749 virt/kvm/arm/vgic/vgic-its.c ret = vgic_its_attr_regs_access(dev, attr, ®, false); attr 156 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 160 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 162 virt/kvm/arm/vgic/vgic-kvm-device.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 164 virt/kvm/arm/vgic/vgic-kvm-device.c unsigned long type = (unsigned long)attr->attr; attr 173 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 204 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->attr) { attr 219 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 223 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 225 virt/kvm/arm/vgic/vgic-kvm-device.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 227 virt/kvm/arm/vgic/vgic-kvm-device.c unsigned long type = (unsigned long)attr->attr; attr 238 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 281 virt/kvm/arm/vgic/vgic-kvm-device.c int vgic_v2_parse_attr(struct kvm_device *dev, struct kvm_device_attr *attr, attr 286 virt/kvm/arm/vgic/vgic-kvm-device.c cpuid = (attr->attr & KVM_DEV_ARM_VGIC_CPUID_MASK) >> attr 293 virt/kvm/arm/vgic/vgic-kvm-device.c reg_attr->addr = attr->attr & KVM_DEV_ARM_VGIC_OFFSET_MASK; attr 345 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr, attr 353 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_v2_parse_attr(dev, attr, ®_attr); attr 371 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 390 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 394 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_set_common_attr(dev, attr); attr 398 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 401 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 407 virt/kvm/arm/vgic/vgic-kvm-device.c return vgic_v2_attr_regs_access(dev, attr, ®, true); attr 415 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 419 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_get_common_attr(dev, attr); attr 423 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 426 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 429 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_v2_attr_regs_access(dev, attr, ®, false); attr 440 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 442 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 444 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->attr) { attr 452 virt/kvm/arm/vgic/vgic-kvm-device.c return vgic_v2_has_attr_regs(dev, attr); attr 456 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->attr) { attr 473 virt/kvm/arm/vgic/vgic-kvm-device.c int vgic_v3_parse_attr(struct kvm_device *dev, struct kvm_device_attr *attr, attr 482 virt/kvm/arm/vgic/vgic-kvm-device.c if (attr->group != KVM_DEV_ARM_VGIC_GRP_DIST_REGS) { attr 483 virt/kvm/arm/vgic/vgic-kvm-device.c vgic_mpidr = (attr->attr & KVM_DEV_ARM_VGIC_V3_MPIDR_MASK) >> attr 495 virt/kvm/arm/vgic/vgic-kvm-device.c reg_attr->addr = attr->attr & KVM_DEV_ARM_VGIC_OFFSET_MASK; attr 509 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr, attr 518 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_v3_parse_attr(dev, attr, ®_attr); attr 537 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 557 virt/kvm/arm/vgic/vgic-kvm-device.c regid = (attr->attr & KVM_DEV_ARM_VGIC_SYSREG_INSTR_MASK); attr 565 virt/kvm/arm/vgic/vgic-kvm-device.c info = (attr->attr & KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK) >> attr 568 virt/kvm/arm/vgic/vgic-kvm-device.c intid = attr->attr & attr 589 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 593 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_set_common_attr(dev, attr); attr 597 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 600 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 608 virt/kvm/arm/vgic/vgic-kvm-device.c return vgic_v3_attr_regs_access(dev, attr, ®, true); attr 611 virt/kvm/arm/vgic/vgic-kvm-device.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 617 virt/kvm/arm/vgic/vgic-kvm-device.c return vgic_v3_attr_regs_access(dev, attr, ®, true); attr 620 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 628 virt/kvm/arm/vgic/vgic-kvm-device.c return vgic_v3_attr_regs_access(dev, attr, ®, true); attr 633 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->attr) { attr 653 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 657 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_get_common_attr(dev, attr); attr 661 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 664 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 668 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_v3_attr_regs_access(dev, attr, ®, false); attr 675 virt/kvm/arm/vgic/vgic-kvm-device.c u64 __user *uaddr = (u64 __user *)(long)attr->addr; attr 678 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_v3_attr_regs_access(dev, attr, ®, false); attr 684 virt/kvm/arm/vgic/vgic-kvm-device.c u32 __user *uaddr = (u32 __user *)(long)attr->addr; attr 688 virt/kvm/arm/vgic/vgic-kvm-device.c ret = vgic_v3_attr_regs_access(dev, attr, ®, false); attr 699 virt/kvm/arm/vgic/vgic-kvm-device.c struct kvm_device_attr *attr) attr 701 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->group) { attr 703 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->attr) { attr 713 virt/kvm/arm/vgic/vgic-kvm-device.c return vgic_v3_has_attr_regs(dev, attr); attr 717 virt/kvm/arm/vgic/vgic-kvm-device.c if (((attr->attr & KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK) >> attr 724 virt/kvm/arm/vgic/vgic-kvm-device.c switch (attr->attr) { attr 482 virt/kvm/arm/vgic/vgic-mmio-v2.c int vgic_v2_has_attr_regs(struct kvm_device *dev, struct kvm_device_attr *attr) attr 491 virt/kvm/arm/vgic/vgic-mmio-v2.c ret = vgic_v2_parse_attr(dev, attr, ®_attr); attr 498 virt/kvm/arm/vgic/vgic-mmio-v2.c switch (attr->group) { attr 785 virt/kvm/arm/vgic/vgic-mmio-v3.c int vgic_v3_has_attr_regs(struct kvm_device *dev, struct kvm_device_attr *attr) attr 794 virt/kvm/arm/vgic/vgic-mmio-v3.c ret = vgic_v3_parse_attr(dev, attr, ®_attr); attr 801 virt/kvm/arm/vgic/vgic-mmio-v3.c switch (attr->group) { attr 816 virt/kvm/arm/vgic/vgic-mmio-v3.c id = (attr->attr & KVM_DEV_ARM_VGIC_SYSREG_INSTR_MASK); attr 155 virt/kvm/arm/vgic/vgic.h int vgic_v3_parse_attr(struct kvm_device *dev, struct kvm_device_attr *attr, attr 157 virt/kvm/arm/vgic/vgic.h int vgic_v2_parse_attr(struct kvm_device *dev, struct kvm_device_attr *attr, attr 181 virt/kvm/arm/vgic/vgic.h int vgic_v2_has_attr_regs(struct kvm_device *dev, struct kvm_device_attr *attr); attr 235 virt/kvm/arm/vgic/vgic.h int vgic_v3_has_attr_regs(struct kvm_device *dev, struct kvm_device_attr *attr); attr 3135 virt/kvm/kvm_main.c struct kvm_device_attr *attr), attr 3138 virt/kvm/kvm_main.c struct kvm_device_attr attr; attr 3143 virt/kvm/kvm_main.c if (copy_from_user(&attr, (void __user *)arg, sizeof(attr))) attr 3146 virt/kvm/kvm_main.c return accessor(dev, &attr); attr 184 virt/kvm/vfio.c static int kvm_vfio_set_group(struct kvm_device *dev, long attr, u64 arg) attr 194 virt/kvm/vfio.c switch (attr) { attr 333 virt/kvm/vfio.c struct kvm_device_attr *attr) attr 335 virt/kvm/vfio.c switch (attr->group) { attr 337 virt/kvm/vfio.c return kvm_vfio_set_group(dev, attr->attr, attr->addr); attr 344 virt/kvm/vfio.c struct kvm_device_attr *attr) attr 346 virt/kvm/vfio.c switch (attr->group) { attr 348 virt/kvm/vfio.c switch (attr->attr) {