/kernel/dma/ |
D | mapping.c | 29 unsigned long attrs; member 37 this->attrs); in dmam_release() 86 gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument 95 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs() 104 dr->attrs = attrs; in dmam_alloc_attrs() 145 unsigned long attrs) in dma_map_page_attrs() argument 157 addr = dma_direct_map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 159 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 161 debug_dma_map_page(dev, page, offset, size, dir, addr, attrs); in dma_map_page_attrs() 168 enum dma_data_direction dir, unsigned long attrs) in dma_unmap_page_attrs() argument [all …]
|
D | direct.h | 15 unsigned long attrs); 19 unsigned long attrs); 22 enum dma_data_direction dir, unsigned long attrs); 40 int nents, enum dma_data_direction dir, unsigned long attrs); 46 unsigned long attrs) in dma_direct_unmap_sg() argument 86 enum dma_data_direction dir, unsigned long attrs) in dma_direct_map_page() argument 94 return swiotlb_map(dev, phys, size, dir, attrs); in dma_direct_map_page() 101 return swiotlb_map(dev, phys, size, dir, attrs); in dma_direct_map_page() 109 if (!dev_is_dma_coherent(dev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in dma_direct_map_page() 115 size_t size, enum dma_data_direction dir, unsigned long attrs) in dma_direct_unmap_page() argument [all …]
|
D | debug.h | 15 unsigned long attrs); 22 unsigned long attrs); 29 unsigned long attrs); 37 unsigned long attrs); 61 unsigned long attrs) in debug_dma_map_page() argument 72 unsigned long attrs) in debug_dma_map_sg() argument 84 unsigned long attrs) in debug_dma_alloc_coherent() argument 96 unsigned long attrs) in debug_dma_map_resource() argument
|
D | direct.c | 212 dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) in dma_direct_alloc() argument 219 if (attrs & DMA_ATTR_NO_WARN) in dma_direct_alloc() 222 if ((attrs & DMA_ATTR_NO_KERNEL_MAPPING) && in dma_direct_alloc() 236 attrs); in dma_direct_alloc() 286 pgprot_t prot = dma_pgprot(dev, PAGE_KERNEL, attrs); in dma_direct_alloc() 327 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) in dma_direct_free() argument 331 if ((attrs & DMA_ATTR_NO_KERNEL_MAPPING) && in dma_direct_free() 343 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free() 466 int nents, enum dma_data_direction dir, unsigned long attrs) in dma_direct_unmap_sg() argument 476 sg_dma_len(sg), dir, attrs); in dma_direct_unmap_sg() [all …]
|
D | dummy.c | 9 unsigned long attrs) in dma_dummy_mmap() argument 16 unsigned long attrs) in dma_dummy_map_page() argument 23 unsigned long attrs) in dma_dummy_map_sg() argument
|
D | ops_helpers.c | 20 unsigned long attrs) in dma_common_get_sgtable() argument 37 unsigned long attrs) in dma_common_mmap() argument 46 vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, attrs); in dma_common_mmap()
|
D | swiotlb.c | 769 unsigned long attrs) in swiotlb_tbl_map_single() argument 795 if (!(attrs & DMA_ATTR_NO_WARN)) in swiotlb_tbl_map_single() 873 unsigned long attrs) in swiotlb_tbl_unmap_single() argument 878 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) && in swiotlb_tbl_unmap_single() 908 enum dma_data_direction dir, unsigned long attrs) in swiotlb_map() argument 916 attrs); in swiotlb_map() 924 attrs | DMA_ATTR_SKIP_CPU_SYNC); in swiotlb_map() 931 if (!dev_is_dma_coherent(dev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in swiotlb_map()
|
D | debug.c | 553 static void add_dma_entry(struct dma_debug_entry *entry, unsigned long attrs) in add_dma_entry() argument 567 } else if (rc == -EEXIST && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) { in add_dma_entry() 1204 unsigned long attrs) in debug_dma_map_page() argument 1235 add_dma_entry(entry, attrs); in debug_dma_map_page() 1294 unsigned long attrs) in debug_dma_map_sg() argument 1326 add_dma_entry(entry, attrs); in debug_dma_map_sg() 1383 unsigned long attrs) in debug_dma_alloc_coherent() argument 1413 add_dma_entry(entry, attrs); in debug_dma_alloc_coherent() 1445 unsigned long attrs) in debug_dma_map_resource() argument 1465 add_dma_entry(entry, attrs); in debug_dma_map_resource()
|
/kernel/ |
D | workqueue.c | 188 struct workqueue_attrs *attrs; /* I: worker attributes */ member 1886 set_cpus_allowed_ptr(worker->task, pool->attrs->cpumask); in worker_attach_to_pool() 1955 pool->attrs->nice < 0 ? "H" : ""); in create_worker() 1964 set_user_nice(worker->task, pool->attrs->nice); in create_worker() 1965 kthread_bind_mask(worker->task, pool->attrs->cpumask); in create_worker() 3384 void free_workqueue_attrs(struct workqueue_attrs *attrs) in free_workqueue_attrs() argument 3386 if (attrs) { in free_workqueue_attrs() 3387 free_cpumask_var(attrs->cpumask); in free_workqueue_attrs() 3388 kfree(attrs); in free_workqueue_attrs() 3402 struct workqueue_attrs *attrs; in alloc_workqueue_attrs() local [all …]
|
D | params.c | 551 struct param_attribute attrs[]; member 643 mk->mp->grp.attrs = kzalloc(sizeof(mk->mp->grp.attrs[0]), in add_sysfs_param() 646 if (!mk->mp->grp.attrs) in add_sysfs_param() 653 sizeof(mk->mp->attrs[0]) * (mk->mp->num + 1), in add_sysfs_param() 660 new_attrs = krealloc(mk->mp->grp.attrs, in add_sysfs_param() 661 sizeof(mk->mp->grp.attrs[0]) * (mk->mp->num + 2), in add_sysfs_param() 665 mk->mp->grp.attrs = new_attrs; in add_sysfs_param() 668 memset(&mk->mp->attrs[mk->mp->num], 0, sizeof(mk->mp->attrs[0])); in add_sysfs_param() 669 sysfs_attr_init(&mk->mp->attrs[mk->mp->num].mattr.attr); in add_sysfs_param() 670 mk->mp->attrs[mk->mp->num].param = kp; in add_sysfs_param() [all …]
|
D | taskstats.c | 417 na = info->attrs[CGROUPSTATS_CMD_ATTR_FD]; in cgroupstats_user_cmd() 421 fd = nla_get_u32(info->attrs[CGROUPSTATS_CMD_ATTR_FD]); in cgroupstats_user_cmd() 464 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK], mask); in cmd_attr_register_cpumask() 480 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK], mask); in cmd_attr_deregister_cpumask() 515 pid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_PID]); in cmd_attr_pid() 544 tgid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_TGID]); in cmd_attr_tgid() 560 if (info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK]) in taskstats_user_cmd() 562 else if (info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK]) in taskstats_user_cmd() 564 else if (info->attrs[TASKSTATS_CMD_ATTR_PID]) in taskstats_user_cmd() 566 else if (info->attrs[TASKSTATS_CMD_ATTR_TGID]) in taskstats_user_cmd()
|
D | padata.c | 418 struct workqueue_attrs *attrs; in padata_setup_cpumasks() local 421 attrs = alloc_workqueue_attrs(); in padata_setup_cpumasks() 422 if (!attrs) in padata_setup_cpumasks() 426 cpumask_copy(attrs->cpumask, pinst->cpumask.pcpu); in padata_setup_cpumasks() 427 err = apply_workqueue_attrs(pinst->parallel_wq, attrs); in padata_setup_cpumasks() 428 free_workqueue_attrs(attrs); in padata_setup_cpumasks()
|
D | ksysfs.c | 240 .attrs = kernel_attrs,
|
D | cpu.c | 2494 .attrs = cpuhp_cpu_attrs, 2526 .attrs = cpuhp_cpu_root_attrs, 2620 .attrs = cpuhp_smt_attrs,
|
D | reboot.c | 1289 .attrs = reboot_attrs,
|
/kernel/trace/ |
D | trace_events_hist.c | 557 struct hist_trigger_attrs *attrs; member 875 if (hist_data->attrs->ts_in_usecs && trace_clock_in_ns(tr)) in hist_field_timestamp() 1414 static void destroy_hist_trigger_attrs(struct hist_trigger_attrs *attrs) in destroy_hist_trigger_attrs() argument 1418 if (!attrs) in destroy_hist_trigger_attrs() 1421 for (i = 0; i < attrs->n_assignments; i++) in destroy_hist_trigger_attrs() 1422 kfree(attrs->assignment_str[i]); in destroy_hist_trigger_attrs() 1424 for (i = 0; i < attrs->n_actions; i++) in destroy_hist_trigger_attrs() 1425 kfree(attrs->action_str[i]); in destroy_hist_trigger_attrs() 1427 kfree(attrs->name); in destroy_hist_trigger_attrs() 1428 kfree(attrs->sort_key_str); in destroy_hist_trigger_attrs() [all …]
|
D | preemptirq_delay_test.c | 180 static struct attribute *attrs[] = { variable 186 .attrs = attrs,
|
D | blktrace.c | 1691 .attrs = blk_trace_attrs,
|
/kernel/irq/ |
D | msi.c | 355 .attrs = msi_dev_attrs, 374 struct device_attribute *attrs = desc->sysfs_attrs; in msi_sysfs_remove_desc() local 377 if (!attrs) in msi_sysfs_remove_desc() 382 if (attrs[i].show) in msi_sysfs_remove_desc() 383 sysfs_remove_file_from_group(&dev->kobj, &attrs[i].attr, msi_irqs_group.name); in msi_sysfs_remove_desc() 384 kfree(attrs[i].attr.name); in msi_sysfs_remove_desc() 386 kfree(attrs); in msi_sysfs_remove_desc() 391 struct device_attribute *attrs; in msi_sysfs_populate_desc() local 394 attrs = kcalloc(desc->nvec_used, sizeof(*attrs), GFP_KERNEL); in msi_sysfs_populate_desc() 395 if (!attrs) in msi_sysfs_populate_desc() [all …]
|
/kernel/module/ |
D | sysfs.c | 30 struct module_sect_attr attrs[]; member 68 kfree(sect_attrs->attrs[section].battr.attr.name); in free_sect_attrs() 83 size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded), in add_sect_attrs() 95 sattr = §_attrs->attrs[0]; in add_sect_attrs() 146 struct bin_attribute attrs[]; member 166 ¬es_attrs->attrs[i]); in free_notes_attrs() 192 notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes), in add_notes_attrs() 198 nattr = ¬es_attrs->attrs[0]; in add_notes_attrs() 204 nattr->attr.name = mod->sect_attrs->attrs[loaded].battr.attr.name; in add_notes_attrs() 220 ¬es_attrs->attrs[i])) in add_notes_attrs()
|
/kernel/power/ |
D | wakeup_reason.c | 364 static struct attribute *attrs[] = { variable 370 .attrs = attrs,
|
D | main.c | 399 .attrs = suspend_attrs, 901 .attrs = g,
|
D | hibernate.c | 1283 .attrs = g,
|
/kernel/events/ |
D | core.c | 10049 .attrs = kprobe_attrs, 10108 .attrs = uprobe_attrs, 11229 .attrs = pmu_dev_attrs,
|
/kernel/cgroup/ |
D | cgroup.c | 7089 .attrs = cgroup_sysfs_attrs,
|