/Linux-v5.4/mm/ |
D | zsmalloc.c | 282 unsigned int class:CLASS_BITS + 1; member 521 *class_idx = zspage->class; in get_zspage_mapping() 528 zspage->class = class_idx; in set_zspage_mapping() 551 static inline void zs_stat_inc(struct size_class *class, in zs_stat_inc() argument 554 class->stats.objs[type] += cnt; in zs_stat_inc() 558 static inline void zs_stat_dec(struct size_class *class, in zs_stat_dec() argument 561 class->stats.objs[type] -= cnt; in zs_stat_dec() 565 static inline unsigned long zs_stat_get(struct size_class *class, in zs_stat_get() argument 568 return class->stats.objs[type]; in zs_stat_get() 588 static unsigned long zs_can_compact(struct size_class *class); [all …]
|
/Linux-v5.4/kernel/locking/ |
D | lockdep_proc.c | 41 static void print_name(struct seq_file *m, struct lock_class *class) in print_name() argument 44 const char *name = class->name; in print_name() 47 name = __get_key_name(class->key, str); in print_name() 51 if (class->name_version > 1) in print_name() 52 seq_printf(m, "#%d", class->name_version); in print_name() 53 if (class->subclass) in print_name() 54 seq_printf(m, "/%d", class->subclass); in print_name() 60 struct lock_class *class = list_entry(v, struct lock_class, lock_entry); in l_show() local 69 seq_printf(m, "%p", class->key); in l_show() 71 seq_printf(m, " OPS:%8ld", debug_class_ops_read(class)); in l_show() [all …]
|
D | lockdep.c | 229 struct lock_class_stats lock_stats(struct lock_class *class) in lock_stats() argument 237 &per_cpu(cpu_lock_stats, cpu)[class - lock_classes]; in lock_stats() 258 void clear_lock_stats(struct lock_class *class) in clear_lock_stats() argument 264 &per_cpu(cpu_lock_stats, cpu)[class - lock_classes]; in clear_lock_stats() 268 memset(class->contention_point, 0, sizeof(class->contention_point)); in clear_lock_stats() 269 memset(class->contending_point, 0, sizeof(class->contending_point)); in clear_lock_stats() 272 static struct lock_class_stats *get_lock_stats(struct lock_class *class) in get_lock_stats() argument 274 return &this_cpu_ptr(cpu_lock_stats)[class - lock_classes]; in get_lock_stats() 416 static int class_filter(struct lock_class *class) in class_filter() argument 420 if (class->name_version == 1 && in class_filter() [all …]
|
/Linux-v5.4/drivers/base/ |
D | class.c | 32 ret = class_attr->show(cp->class, class_attr, buf); in class_attr_show() 44 ret = class_attr->store(cp->class, class_attr, buf, count); in class_attr_store() 51 struct class *class = cp->class; in class_release() local 53 pr_debug("class '%s': release.\n", class->name); in class_release() 55 if (class->class_release) in class_release() 56 class->class_release(class); in class_release() 59 "be careful\n", class->name); in class_release() 67 struct class *class = cp->class; in class_child_ns_type() local 69 return class->ns_type; in class_child_ns_type() 87 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns() [all …]
|
/Linux-v5.4/Documentation/ABI/testing/ |
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 …]
|
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 …]
|
D | sysfs-class-backlight-driver-adp8870 | 1 What: /sys/class/backlight/<backlight>/<ambient light zone>_max 2 What: /sys/class/backlight/<backlight>/l1_daylight_max 3 What: /sys/class/backlight/<backlight>/l2_bright_max 4 What: /sys/class/backlight/<backlight>/l3_office_max 5 What: /sys/class/backlight/<backlight>/l4_indoor_max 6 What: /sys/class/backlight/<backlight>/l5_dark_max 16 What: /sys/class/backlight/<backlight>/<ambient light zone>_dim 17 What: /sys/class/backlight/<backlight>/l2_bright_dim 18 What: /sys/class/backlight/<backlight>/l3_office_dim 19 What: /sys/class/backlight/<backlight>/l4_indoor_dim [all …]
|
D | sysfs-class-pktcdvd | 6 What: /sys/class/pktcdvd/add 7 What: /sys/class/pktcdvd/remove 8 What: /sys/class/pktcdvd/device_map 25 What: /sys/class/pktcdvd/pktcdvd[0-7]/dev 26 What: /sys/class/pktcdvd/pktcdvd[0-7]/uevent 36 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_started 37 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_finished 38 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_written 39 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read 40 What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read_gather [all …]
|
D | sysfs-class-devfreq | 1 What: /sys/class/devfreq/.../ 10 What: /sys/class/devfreq/.../governor 14 The /sys/class/devfreq/.../governor show or set the name of the 17 What: /sys/class/devfreq/.../cur_freq 21 The /sys/class/devfreq/.../cur_freq shows the current 26 What: /sys/class/devfreq/.../target_freq 30 The /sys/class/devfreq/.../target_freq shows the next governor 33 What: /sys/class/devfreq/.../polling_interval 37 The /sys/class/devfreq/.../polling_interval shows and sets 44 (/sys/class/devfreq/.../central_polling is 0), this value [all …]
|
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 …]
|
/Linux-v5.4/drivers/gpu/drm/i915/gt/ |
D | intel_engine_user.c | 16 intel_engine_lookup_user(struct drm_i915_private *i915, u8 class, u8 instance) in intel_engine_lookup_user() argument 24 if (class < it->uabi_class) in intel_engine_lookup_user() 26 else if (class > it->uabi_class || in intel_engine_lookup_user() 58 if (uabi_classes[a->class] < uabi_classes[b->class]) in engine_cmp() 60 if (uabi_classes[a->class] > uabi_classes[b->class]) in engine_cmp() 130 const char *intel_engine_class_repr(u8 class) in intel_engine_class_repr() argument 139 if (class >= ARRAY_SIZE(uabi_names) || !uabi_names[class]) in intel_engine_class_repr() 142 return uabi_names[class]; in intel_engine_class_repr() 147 u8 class; member 162 if (GEM_DEBUG_WARN_ON(ring->class >= ARRAY_SIZE(map))) in legacy_ring_idx() [all …]
|
/Linux-v5.4/samples/bpf/ |
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-v5.4/Documentation/driver-api/driver-model/ |
D | class.rst | 7 A device class describes a type of device, like an audio or network 13 Each device class defines a set of semantics and a programming interface 14 that devices of that class adhere to. Device drivers are the 24 The device class structure looks like:: 30 See the kerneldoc for the struct class. 32 A typical device class definition would look like:: 40 Each device class structure should be exported in a header file so it 51 As devices are bound to drivers, they are added to the device class 57 The device is enumerated in the class. Each time a device is added to 58 the class, the class's devnum field is incremented and assigned to the [all …]
|
/Linux-v5.4/arch/arm/mach-omap2/ |
D | omap_hwmod_2xxx_ipblock_data.c | 185 .class = &l3_hwmod_class, 192 .class = &l4_hwmod_class, 199 .class = &l4_hwmod_class, 206 .class = &mpu_hwmod_class, 213 .class = &iva_hwmod_class, 227 .class = &omap2xxx_timer_hwmod_class, 242 .class = &omap2xxx_timer_hwmod_class, 257 .class = &omap2xxx_timer_hwmod_class, 272 .class = &omap2xxx_timer_hwmod_class, 287 .class = &omap2xxx_timer_hwmod_class, [all …]
|
D | omap_hwmod_33xx_43xx_ipblock_data.c | 42 .class = &am33xx_l3_hwmod_class, 56 .class = &am33xx_l3_hwmod_class, 63 .class = &am33xx_l3_hwmod_class, 85 .class = &am33xx_l4_hwmod_class, 99 .class = &am33xx_l4_hwmod_class, 118 .class = &am33xx_mpu_hwmod_class, 153 .class = &am33xx_pruss_hwmod_class, 177 .class = &am33xx_gfx_hwmod_class, 200 .class = &am33xx_prcm_hwmod_class, 234 .class = &am33xx_aes0_hwmod_class, [all …]
|
D | omap_hwmod_7xx_data.c | 52 .class = &dra7xx_dmm_hwmod_class, 73 .class = &dra7xx_l3_hwmod_class, 87 .class = &dra7xx_l3_hwmod_class, 100 .class = &dra7xx_l3_hwmod_class, 122 .class = &dra7xx_l4_hwmod_class, 135 .class = &dra7xx_l4_hwmod_class, 148 .class = &dra7xx_l4_hwmod_class, 161 .class = &dra7xx_l4_hwmod_class, 174 .class = &dra7xx_l4_hwmod_class, 196 .class = &dra7xx_atl_hwmod_class, [all …]
|
D | omap_hwmod_81xx_data.c | 114 .class = &l3_hwmod_class, 121 .class = &l3_hwmod_class, 128 .class = &l3_hwmod_class, 135 .class = &l3_hwmod_class, 146 .class = &l4_hwmod_class, 158 .class = &l4_hwmod_class, 180 .class = &mpu_hwmod_class, 207 .class = &mpu_hwmod_class, 248 .class = &ti81xx_rtc_hwmod_class, 295 .class = &uart_class, [all …]
|
D | omap_hwmod.c | 272 if (!oh->class->sysc) { in _update_sysc_cache() 279 oh->_sysc_cache = omap_hwmod_read(oh, oh->class->sysc->sysc_offs); in _update_sysc_cache() 281 if (!(oh->class->sysc->sysc_flags & SYSC_NO_CACHE)) in _update_sysc_cache() 297 if (!oh->class->sysc) { in _write_sysconfig() 313 if (oh->class->unlock) in _write_sysconfig() 314 oh->class->unlock(oh); in _write_sysconfig() 316 omap_hwmod_write(v, oh, oh->class->sysc->sysc_offs); in _write_sysconfig() 318 if (oh->class->lock) in _write_sysconfig() 319 oh->class->lock(oh); in _write_sysconfig() 338 if (!oh->class->sysc || in _set_master_standbymode() [all …]
|
/Linux-v5.4/Documentation/ABI/stable/ |
D | sysfs-class-infiniband | 4 What: /sys/class/infiniband/<device>/node_type 5 What: /sys/class/infiniband/<device>/node_guid 6 What: /sys/class/infiniband/<device>/sys_image_guid 19 What: /sys/class/infiniband/<device>/node_desc 29 What: /sys/class/infiniband/<device>/fw_ver 37 What: /sys/class/infiniband/<device>/ports/<port-num>/lid 38 What: /sys/class/infiniband/<device>/ports/<port-num>/rate 39 What: /sys/class/infiniband/<device>/ports/<port-num>/lid_mask_count 40 What: /sys/class/infiniband/<device>/ports/<port-num>/sm_sl 41 What: /sys/class/infiniband/<device>/ports/<port-num>/sm_lid [all …]
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | spu_priv1.h | 20 void (*int_mask_and) (struct spu *spu, int class, u64 mask); 21 void (*int_mask_or) (struct spu *spu, int class, u64 mask); 22 void (*int_mask_set) (struct spu *spu, int class, u64 mask); 23 u64 (*int_mask_get) (struct spu *spu, int class); 24 void (*int_stat_clear) (struct spu *spu, int class, u64 stat); 25 u64 (*int_stat_get) (struct spu *spu, int class); 45 spu_int_mask_and (struct spu *spu, int class, u64 mask) in spu_int_mask_and() argument 47 spu_priv1_ops->int_mask_and(spu, class, mask); in spu_int_mask_and() 51 spu_int_mask_or (struct spu *spu, int class, u64 mask) in spu_int_mask_or() argument 53 spu_priv1_ops->int_mask_or(spu, class, mask); in spu_int_mask_or() [all …]
|
/Linux-v5.4/arch/powerpc/perf/ |
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() 265 int i, j, class, tuse; in mpc7450_compute_mmcr() local 277 class = mpc7450_classify_event(event[i]); in mpc7450_compute_mmcr() 278 if (class < 0) in mpc7450_compute_mmcr() 280 j = n_classevent[class]++; in mpc7450_compute_mmcr() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
D | device.c | 56 static struct class *class; variable 57 static struct class *user_class; 85 device = device_create(class, NULL, dev, NULL, "%s", name); in hfi1_cdev_init() 148 class = class_create(THIS_MODULE, class_name()); in dev_init() 149 if (IS_ERR(class)) { in dev_init() 150 ret = PTR_ERR(class); in dev_init() 155 class->devnode = hfi1_devnode; in dev_init() 162 class_destroy(class); in dev_init() 163 class = NULL; in dev_init() 176 class_destroy(class); in dev_cleanup() [all …]
|
/Linux-v5.4/arch/powerpc/platforms/cell/ |
D | spu_priv1_mmio.c | 27 static void int_mask_and(struct spu *spu, int class, u64 mask) in int_mask_and() argument 31 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_and() 32 out_be64(&spu->priv1->int_mask_RW[class], old_mask & mask); in int_mask_and() 35 static void int_mask_or(struct spu *spu, int class, u64 mask) in int_mask_or() argument 39 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_or() 40 out_be64(&spu->priv1->int_mask_RW[class], old_mask | mask); in int_mask_or() 43 static void int_mask_set(struct spu *spu, int class, u64 mask) in int_mask_set() argument 45 out_be64(&spu->priv1->int_mask_RW[class], mask); in int_mask_set() 48 static u64 int_mask_get(struct spu *spu, int class) in int_mask_get() argument 50 return in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_get() [all …]
|
/Linux-v5.4/lib/ |
D | glob.c | 72 char const *class = pat + inverted; in glob_match() local 73 unsigned char a = *class++; in glob_match() 86 if (class[0] == '-' && class[1] != ']') { in glob_match() 87 b = class[1]; in glob_match() 92 class += 2; in glob_match() 96 } while ((a = *class++) != ']'); in glob_match() 100 pat = class; in glob_match()
|
/Linux-v5.4/drivers/char/agp/ |
D | sis-agp.c | 242 .class = (PCI_CLASS_BRIDGE_HOST << 8), 250 .class = (PCI_CLASS_BRIDGE_HOST << 8), 258 .class = (PCI_CLASS_BRIDGE_HOST << 8), 266 .class = (PCI_CLASS_BRIDGE_HOST << 8), 274 .class = (PCI_CLASS_BRIDGE_HOST << 8), 282 .class = (PCI_CLASS_BRIDGE_HOST << 8), 290 .class = (PCI_CLASS_BRIDGE_HOST << 8), 298 .class = (PCI_CLASS_BRIDGE_HOST << 8), 306 .class = (PCI_CLASS_BRIDGE_HOST << 8), 314 .class = (PCI_CLASS_BRIDGE_HOST << 8), [all …]
|