/linux/include/linux/device/ |
H A D | class.h | 3 * The class-specific portions of the driver model 26 * struct class - device classes 27 * @name: Name of the class. 28 * @class_groups: Default attributes of this class. 29 * @dev_groups: Default attributes of the devices that belong to the class. 30 * @dev_uevent: Called when a device is added, removed from this class, or a 34 * @class_release: Called to release this class. 38 * @namespace: Namespace of the device belongs to this class. 39 * @get_ownership: Allows class to specify uid/gid of the sysfs directories 40 * for the devices belonging to the class 50 struct class { global() struct 53 class_groupsclass global() argument 59 class_releaseclass global() argument 78 pmclass global() argument 106 class_find_device_by_name(const struct class * class,const char * name) class_find_device_by_name() argument 118 class_find_device_by_of_node(const struct class * class,const struct device_node * np) class_find_device_by_of_node() argument 130 class_find_device_by_fwnode(const struct class * class,const struct fwnode_handle * fwnode) class_find_device_by_fwnode() argument 142 class_find_device_by_devt(const struct class * class,dev_t devt) class_find_device_by_devt() argument 156 class_find_device_by_acpi_dev(const struct class * class,const struct acpi_device * adev) class_find_device_by_acpi_dev() argument 162 class_find_device_by_acpi_dev(const struct class * class,const void * adev) class_find_device_by_acpi_dev() argument 189 class_create_file(const struct class * class,const struct class_attribute * attr) class_create_file() argument 195 class_remove_file(const struct class * class,const struct class_attribute * attr) class_remove_file() argument 219 const struct class *class; global() member [all...] |
/linux/drivers/remoteproc/ |
H A D | remoteproc_coredump.c | 114 int rproc_coredump_set_elf_info(struct rproc *rproc, u8 class, u16 machine) in rproc_coredump_set_elf_info() argument 116 if (class != ELFCLASS64 && class != ELFCLASS32) in rproc_coredump_set_elf_info() 119 rproc->elf_class = class; in rproc_coredump_set_elf_info() 243 u8 class = rproc->elf_class; in rproc_coredump() local 252 if (class == ELFCLASSNONE) { in rproc_coredump() 257 data_size = elf_size_of_hdr(class); in rproc_coredump() 264 data_size += elf_size_of_phdr(class); in rproc_coredump() 277 memset(ehdr, 0, elf_size_of_hdr(class)); in rproc_coredump() 279 elf_hdr_init_ident(ehdr, class); in rproc_coredump() 281 elf_hdr_set_e_type(class, ehdr, ET_CORE); in rproc_coredump() [all …]
|
H A D | remoteproc_elf_loader.c | 49 char class; local 69 class = ehdr->e_ident[EI_CLASS]; 70 if (class != ELFCLASS32 && class != ELFCLASS64) { 71 dev_err(dev, "Unsupported class: %d\n", class); 75 if (class == ELFCLASS64 && fw->size < sizeof(struct elf64_hdr)) { 90 phoff = elf_hdr_get_e_phoff(class, fw->data); 91 shoff = elf_hdr_get_e_shoff(class, fw->data); 92 phnum = elf_hdr_get_e_phnum(class, fw->data); 93 elf_shdr_get_size = elf_size_of_shdr(class); 111 class == ELFCLASS32 ? 32 : 64); [all …]
|
H A D | remoteproc_elf_helpers.h | 30 static inline void elf_hdr_init_ident(struct elf32_hdr *hdr, u8 class) in elf_hdr_init_ident() argument 33 hdr->e_ident[EI_CLASS] = class; in elf_hdr_init_ident() 41 static inline __type elf_##__s##_get_##__field(u8 class, const void *arg) \ 43 if (class == ELFCLASS32) \ 48 static inline void elf_##__s##_set_##__field(u8 class, void *arg, \ 51 if (class == ELFCLASS32) \ 88 static inline unsigned long elf_size_of_##__s(u8 class) \ in ELF_GEN_FIELD_GET_SET() 90 if (class == ELFCLASS32)\ in ELF_GEN_FIELD_GET_SET() 100 static inline unsigned int elf_strtbl_add(const char *name, void *ehdr, u8 class, size_t *index) 102 u16 shstrndx = elf_hdr_get_e_shstrndx(class, ehdr); [all …]
|
/linux/kernel/locking/ |
H A D | lockdep_proc.c | 34 #define iterate_lock_classes(idx, class) \ argument 35 for (idx = 0, class = lock_classes; idx <= max_lock_class_idx; \ 36 idx++, class++) 40 struct lock_class *class = v; in l_next() local 42 ++class; in l_next() 43 *pos = class - lock_classes; in l_next() 44 return (*pos > max_lock_class_idx) ? NULL : class; in l_next() 60 static void print_name(struct seq_file *m, struct lock_class *class) in print_name() argument 63 const char *name = class->name; in print_name() 66 name = __get_key_name(class->key, str); in print_name() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-hwmon | 1 What: /sys/class/hwmon/hwmonX/name 12 What: /sys/class/hwmon/hwmonX/label 20 What: /sys/class/hwmon/hwmonX/update_interval 30 What: /sys/class/hwmon/hwmonX/inY_min 38 What: /sys/class/hwmon/hwmonX/inY_lcrit 50 What: /sys/class/hwmon/hwmonX/inY_max 58 What: /sys/class/hwmon/hwmonX/inY_crit 70 What: /sys/class/hwmon/hwmonX/inY_input 92 What: /sys/class/hwmon/hwmonX/inY_average 100 What: /sys/class/hwmon/hwmonX/inY_lowest [all …]
|
H A D | sysfs-driver-hid-srws1 | 1 What: /sys/class/leds/SRWS1::<serial>::RPM1 2 What: /sys/class/leds/SRWS1::<serial>::RPM2 3 What: /sys/class/leds/SRWS1::<serial>::RPM3 4 What: /sys/class/leds/SRWS1::<serial>::RPM4 5 What: /sys/class/leds/SRWS1::<serial>::RPM5 6 What: /sys/class/leds/SRWS1::<serial>::RPM6 7 What: /sys/class/leds/SRWS1::<serial>::RPM7 8 What: /sys/class/leds/SRWS1::<serial>::RPM8 9 What: /sys/class/leds/SRWS1::<serial>::RPM9 10 What: /sys/class/leds/SRWS1::<serial>::RPM10 [all …]
|
H A D | sysfs-class-backlight | 1 What: /sys/class/backlight/<backlight>/scale 28 What: /sys/class/backlight/<backlight>/ambient_light_level 49 What: /sys/class/backlight/<backlight>/ambient_light_zone 85 /sys/class/backlight/<backlight>/max_brightness to 86 /sys/class/backlight/<backlight>/brightness. 88 What: /sys/class/backlight/<backlight>/<ambient light zone>_max 106 daylight /sys/class/backlight/<backlight>/daylight_max 107 office /sys/class/backlight/<backlight>/office_max 108 dark /sys/class/backlight/<backlight>/dark_max 117 l1_daylight /sys/class/backlight/<backlight>/l1_daylight_max [all …]
|
H A D | sysfs-c2port | 1 What: /sys/class/c2port/ 5 The /sys/class/c2port/ directory will contain files and 9 What: /sys/class/c2port/c2portX 13 The /sys/class/c2port/c2portX/ directory is related to X-th 17 What: /sys/class/c2port/c2portX/access 21 The /sys/class/c2port/c2portX/access file enable the access 25 What: /sys/class/c2port/c2portX/dev_id 29 The /sys/class/c2port/c2portX/dev_id file show the device ID 32 What: /sys/class/c2port/c2portX/flash_access 36 The /sys/class/c2port/c2portX/flash_access file enable the [all …]
|
H A D | sysfs-class-devfreq | 1 What: /sys/class/devfreq/.../ 10 What: /sys/class/devfreq/.../name 14 The /sys/class/devfreq/.../name shows the name of device 17 What: /sys/class/devfreq/.../governor 21 The /sys/class/devfreq/.../governor show or set the name of the 24 What: /sys/class/devfreq/.../cur_freq 28 The /sys/class/devfreq/.../cur_freq shows the current 33 What: /sys/class/devfreq/.../target_freq 37 The /sys/class/devfreq/.../target_freq shows the next governor 40 What: /sys/class/devfreq/.../trans_stat [all …]
|
H A D | sysfs-class-pktcdvd | 6 What: /sys/class/pktcdvd/add 7 What: /sys/class/pktcdvd/remove 8 What: /sys/class/pktcdvd/device_map 27 What: /sys/class/pktcdvd/pktcdvd[0-7]/dev 28 What: /sys/class/pktcdvd/pktcdvd[0-7]/uevent 38 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_started 39 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_finished 40 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_written 41 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read 42 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read_gather [all …]
|
H A D | sysfs-pps | 1 What: /sys/class/pps/ 5 The /sys/class/pps/ directory will contain files and 9 What: /sys/class/pps/ppsX/ 13 The /sys/class/pps/ppsX/ directory is related to X-th 17 What: /sys/class/pps/ppsX/assert 21 The /sys/class/pps/ppsX/assert file reports the assert events 29 What: /sys/class/pps/ppsX/clear 33 The /sys/class/pps/ppsX/clear file reports the clear events 41 What: /sys/class/pps/ppsX/mode 45 The /sys/class/pps/ppsX/mode file reports the functioning [all …]
|
H A D | sysfs-ata | 1 What: /sys/class/ata_* 7 Files under /sys/class/ata_port 14 What: /sys/class/ata_port/ataX/nr_pmp_links 15 What: /sys/class/ata_port/ataX/idle_irq 27 What: /sys/class/ata_port/ataX/port_no 37 Files under /sys/class/ata_link 48 What: /sys/class/ata_link/linkX[.Y]/hw_sata_spd_limit 49 What: /sys/class/ata_link/linkX[.Y]/sata_spd_limit 50 What: /sys/class/ata_link/linkX[.Y]/sata_spd 64 Files under /sys/class/ata_device [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_engine_user.c | 17 intel_engine_lookup_user(struct drm_i915_private *i915, u8 class, u8 instance) in intel_engine_lookup_user() argument 25 if (class < it->uabi_class) in intel_engine_lookup_user() 27 else if (class > it->uabi_class || in intel_engine_lookup_user() 63 if (uabi_classes[a->class] < uabi_classes[b->class]) in engine_cmp() 65 if (uabi_classes[a->class] > uabi_classes[b->class]) in engine_cmp() 137 const char *intel_engine_class_repr(u8 class) in intel_engine_class_repr() argument 148 if (class >= ARRAY_SIZE(uabi_names) || !uabi_names[class]) in intel_engine_class_repr() 151 return uabi_names[class]; in intel_engine_class_repr() 156 u8 class; member 172 if (GEM_DEBUG_WARN_ON(ring->class >= ARRAY_SIZE(map))) in legacy_ring_idx() [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | omap_hwmod_2xxx_ipblock_data.c | 167 .class = &l3_hwmod_class, 174 .class = &l4_hwmod_class, 181 .class = &l4_hwmod_class, 188 .class = &mpu_hwmod_class, 203 .class = &omap2xxx_timer_hwmod_class, 218 .class = &omap2xxx_timer_hwmod_class, 233 .class = &omap2xxx_timer_hwmod_class, 248 .class = &omap2xxx_timer_hwmod_class, 263 .class = &omap2xxx_timer_hwmod_class, 278 .class = &omap2xxx_timer_hwmod_class, [all …]
|
H A D | omap_hwmod_81xx_data.c | 105 .class = &l3_hwmod_class, 112 .class = &l3_hwmod_class, 119 .class = &l3_hwmod_class, 130 .class = &l4_hwmod_class, 142 .class = &l4_hwmod_class, 164 .class = &mpu_hwmod_class, 191 .class = &mpu_hwmod_class, 232 .class = &ti81xx_rtc_hwmod_class, 279 .class = &uart_class, 300 .class = &uart_class, [all …]
|
/linux/samples/bpf/ |
H A D | ibumad_kern.c | 81 u8 class = ctx->mgmt_class; in on_ib_umad_read_recv() local 83 bpf_printk("ib_umad read recv : class 0x%x\n", class); in on_ib_umad_read_recv() 85 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv() 87 bpf_map_update_elem(&read_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_read_recv() 88 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv() 101 u8 class = ctx->mgmt_class; in on_ib_umad_read_send() local 103 bpf_printk("ib_umad read send : class 0x%x\n", class); in on_ib_umad_read_send() 105 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send() 107 bpf_map_update_elem(&read_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_read_send() 108 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send() [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | firewall.c | 14 u32 class; member 54 is_addr = fw->client->ops->is_addr_reg(fw->client->base.dev, fw->class, in fw_check_reg() 103 is_addr = fw->client->ops->is_addr_reg(fw->client->base.dev, fw->class, in fw_check_regs_imm() 111 static int fw_check_class(struct tegra_drm_firewall *fw, u32 class) in fw_check_class() argument 114 if (class == fw->client->base.class) in fw_check_class() 120 if (!fw->client->ops->is_valid_class(class)) in fw_check_class() 154 .class = *job_class, in tegra_drm_fw_validate() 161 u32 word, opcode, offset, count, mask, class; in tegra_drm_fw_validate() local 173 class = (word >> 6) & 0x3ff; in tegra_drm_fw_validate() 174 err = fw_check_class(&fw, class); in tegra_drm_fw_validate() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_hw_engine.c | 46 unsigned int class : 8; member 56 .class = XE_ENGINE_CLASS_RENDER, 64 .class = XE_ENGINE_CLASS_COPY, 72 .class = XE_ENGINE_CLASS_COPY, 80 .class = XE_ENGINE_CLASS_COPY, 88 .class = XE_ENGINE_CLASS_COPY, 96 .class = XE_ENGINE_CLASS_COPY, 104 .class = XE_ENGINE_CLASS_COPY, 112 .class = XE_ENGINE_CLASS_COPY, 120 .class = XE_ENGINE_CLASS_COPY, [all …]
|
/linux/arch/powerpc/perf/ |
H A D | mpc7450-pmu.c | 153 int pmc, class; in mpc7450_get_constraint() local 157 class = mpc7450_classify_event(event); in mpc7450_get_constraint() 158 if (class < 0) in mpc7450_get_constraint() 160 if (class == 4) { in mpc7450_get_constraint() 165 mask = classbits[class][0]; in mpc7450_get_constraint() 166 value = classbits[class][1]; in mpc7450_get_constraint() 266 int i, j, class, tuse; in mpc7450_compute_mmcr() local 278 class = mpc7450_classify_event(event[i]); in mpc7450_compute_mmcr() 279 if (class < 0) in mpc7450_compute_mmcr() 281 j = n_classevent[class]++; in mpc7450_compute_mmcr() [all …]
|
/linux/arch/powerpc/platforms/cell/ |
H A D | spu_priv1_mmio.c | 26 static void int_mask_and(struct spu *spu, int class, u64 mask) in int_mask_and() argument 30 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_and() 31 out_be64(&spu->priv1->int_mask_RW[class], old_mask & mask); in int_mask_and() 34 static void int_mask_or(struct spu *spu, int class, u64 mask) in int_mask_or() argument 38 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_or() 39 out_be64(&spu->priv1->int_mask_RW[class], old_mask | mask); in int_mask_or() 42 static void int_mask_set(struct spu *spu, int class, u64 mask) in int_mask_set() argument 44 out_be64(&spu->priv1->int_mask_RW[class], mask); in int_mask_set() 47 static u64 int_mask_get(struct spu *spu, int class) in int_mask_get() argument 49 return in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_get() [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | selftest_guc_multi_lrc.c | 31 multi_lrc_create_parent(struct intel_gt *gt, u8 class, in multi_lrc_create_parent() argument 40 if (engine->class != class) in multi_lrc_create_parent() 111 static int __intel_guc_multi_lrc_basic(struct intel_gt *gt, unsigned int class) in __intel_guc_multi_lrc_basic() argument 117 parent = multi_lrc_create_parent(gt, class, 0); in __intel_guc_multi_lrc_basic() 122 gt_dbg(gt, "Not enough engines in class: %d\n", class); in __intel_guc_multi_lrc_basic() 154 unsigned int class; in intel_guc_multi_lrc_basic() local 157 for (class = 0; class < MAX_ENGINE_CLASS + 1; ++class) { in intel_guc_multi_lrc_basic() 159 if (class == COMPUTE_CLASS || class == RENDER_CLASS) in intel_guc_multi_lrc_basic() 162 ret = __intel_guc_multi_lrc_basic(gt, class); in intel_guc_multi_lrc_basic()
|
/linux/drivers/char/agp/ |
H A D | sis-agp.c | 227 .class = (PCI_CLASS_BRIDGE_HOST << 8), 235 .class = (PCI_CLASS_BRIDGE_HOST << 8), 243 .class = (PCI_CLASS_BRIDGE_HOST << 8), 251 .class = (PCI_CLASS_BRIDGE_HOST << 8), 259 .class = (PCI_CLASS_BRIDGE_HOST << 8), 267 .class = (PCI_CLASS_BRIDGE_HOST << 8), 275 .class = (PCI_CLASS_BRIDGE_HOST << 8), 283 .class = (PCI_CLASS_BRIDGE_HOST << 8), 291 .class = (PCI_CLASS_BRIDGE_HOST << 8), 299 .class = (PCI_CLASS_BRIDGE_HOST << 8), [all …]
|
/linux/drivers/staging/most/Documentation/ABI/ |
H A D | sysfs-class-most.txt | 1 What: /sys/class/most/mostcore/aims 9 What: /sys/class/most/mostcore/aims/<aim>/add_link 18 What: /sys/class/most/mostcore/aims/<aim>/remove_link 27 What: /sys/class/most/mostcore/devices 35 What: /sys/class/most/mostcore/devices/<mdev>/description 45 What: /sys/class/most/mostcore/devices/<mdev>/interface 54 What: /sys/class/most/mostcore/devices/<mdev>/dci 65 What: /sys/class/most/mostcore/devices/<mdev>/dci/arb_address 74 What: /sys/class/most/mostcore/devices/<mdev>/dci/arb_value 83 What: /sys/class/most/mostcore/devices/<mdev>/dci/mep_eui48_hi [all …]
|
/linux/Documentation/ABI/stable/ |
H A D | sysfs-class-ubi | 1 What: /sys/class/ubi/ 6 The ubi/ class sub-directory belongs to the UBI subsystem and 10 What: /sys/class/ubi/version 23 What: /sys/class/ubiX/ 28 The /sys/class/ubi0, /sys/class/ubi1, etc directories describe 33 What: /sys/class/ubi/ubiX/avail_eraseblocks 42 What: /sys/class/ubi/ubiX/bad_peb_count 49 What: /sys/class/ubi/ubiX/bgt_enabled 57 What: /sys/class/ubi/ubiX/dev 65 What: /sys/class/ubi/ubiX/eraseblock_size [all …]
|