/kernel/dma/ |
D | mapping.c | 28 unsigned long attrs; member 36 this->attrs); in dmam_release() 85 gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument 94 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs() 103 dr->attrs = attrs; in dmam_alloc_attrs() 144 unsigned long attrs) in dma_map_page_attrs() argument 156 addr = dma_direct_map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 158 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 159 debug_dma_map_page(dev, page, offset, size, dir, addr, attrs); in dma_map_page_attrs() 166 enum dma_data_direction dir, unsigned long attrs) in dma_unmap_page_attrs() argument [all …]
|
D | direct.h | 14 unsigned long attrs); 18 unsigned long attrs); 21 enum dma_data_direction dir, unsigned long attrs); 39 int nents, enum dma_data_direction dir, unsigned long attrs); 45 unsigned long attrs) in dma_direct_unmap_sg() argument 85 enum dma_data_direction dir, unsigned long attrs) in dma_direct_map_page() argument 91 return swiotlb_map(dev, phys, size, dir, attrs); in dma_direct_map_page() 95 return swiotlb_map(dev, phys, size, dir, attrs); in dma_direct_map_page() 103 if (!dev_is_dma_coherent(dev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in dma_direct_map_page() 109 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 | 195 dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) in dma_direct_alloc() argument 201 if (attrs & DMA_ATTR_NO_WARN) in dma_direct_alloc() 204 if ((attrs & DMA_ATTR_NO_KERNEL_MAPPING) && in dma_direct_alloc() 213 return arch_dma_alloc(dev, size, dma_handle, gfp, attrs); in dma_direct_alloc() 247 dma_pgprot(dev, PAGE_KERNEL, attrs), in dma_direct_alloc() 291 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) in dma_direct_free() argument 295 if ((attrs & DMA_ATTR_NO_KERNEL_MAPPING) && in dma_direct_free() 307 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free() 427 int nents, enum dma_data_direction dir, unsigned long attrs) in dma_direct_unmap_sg() argument 434 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 36 unsigned long attrs) in dma_common_mmap() argument 45 vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, attrs); in dma_common_mmap()
|
D | swiotlb.c | 549 unsigned long attrs) in swiotlb_tbl_map_single() argument 572 if (!(attrs & DMA_ATTR_NO_WARN)) in swiotlb_tbl_map_single() 646 unsigned long attrs) in swiotlb_tbl_unmap_single() argument 651 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) && in swiotlb_tbl_unmap_single() 681 enum dma_data_direction dir, unsigned long attrs) in swiotlb_map() argument 690 attrs); in swiotlb_map() 698 attrs | DMA_ATTR_SKIP_CPU_SYNC); in swiotlb_map() 705 if (!dev_is_dma_coherent(dev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in swiotlb_map()
|
D | debug.c | 555 static void add_dma_entry(struct dma_debug_entry *entry, unsigned long attrs) in add_dma_entry() argument 569 } else if (rc == -EEXIST && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) { in add_dma_entry() 1205 unsigned long attrs) in debug_dma_map_page() argument 1236 add_dma_entry(entry, attrs); in debug_dma_map_page() 1295 unsigned long attrs) in debug_dma_map_sg() argument 1327 add_dma_entry(entry, attrs); in debug_dma_map_sg() 1384 unsigned long attrs) in debug_dma_alloc_coherent() argument 1414 add_dma_entry(entry, attrs); in debug_dma_alloc_coherent() 1446 unsigned long attrs) in debug_dma_map_resource() argument 1466 add_dma_entry(entry, attrs); in debug_dma_map_resource()
|
/kernel/ |
D | workqueue.c | 180 struct workqueue_attrs *attrs; /* I: worker attributes */ member 1904 set_cpus_allowed_ptr(worker->task, pool->attrs->cpumask); in worker_attach_to_pool() 1973 pool->attrs->nice < 0 ? "H" : ""); in create_worker() 1982 set_user_nice(worker->task, pool->attrs->nice); in create_worker() 1983 kthread_bind_mask(worker->task, pool->attrs->cpumask); in create_worker() 3402 void free_workqueue_attrs(struct workqueue_attrs *attrs) in free_workqueue_attrs() argument 3404 if (attrs) { in free_workqueue_attrs() 3405 free_cpumask_var(attrs->cpumask); in free_workqueue_attrs() 3406 kfree(attrs); in free_workqueue_attrs() 3420 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 | 395 na = info->attrs[CGROUPSTATS_CMD_ATTR_FD]; in cgroupstats_user_cmd() 399 fd = nla_get_u32(info->attrs[CGROUPSTATS_CMD_ATTR_FD]); in cgroupstats_user_cmd() 442 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK], mask); in cmd_attr_register_cpumask() 458 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK], mask); in cmd_attr_deregister_cpumask() 493 pid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_PID]); in cmd_attr_pid() 522 tgid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_TGID]); in cmd_attr_tgid() 538 if (info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK]) in taskstats_user_cmd() 540 else if (info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK]) in taskstats_user_cmd() 542 else if (info->attrs[TASKSTATS_CMD_ATTR_PID]) in taskstats_user_cmd() 544 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 | 241 .attrs = kernel_attrs,
|
D | module.c | 1512 struct module_sect_attr attrs[]; member 1550 kfree(sect_attrs->attrs[section].battr.attr.name); in free_sect_attrs() 1565 size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded), in add_sect_attrs() 1577 sattr = §_attrs->attrs[0]; in add_sect_attrs() 1627 struct bin_attribute attrs[]; member 1647 ¬es_attrs->attrs[i]); in free_notes_attrs() 1673 notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes), in add_notes_attrs() 1679 nattr = ¬es_attrs->attrs[0]; in add_notes_attrs() 1685 nattr->attr.name = mod->sect_attrs->attrs[loaded].battr.attr.name; in add_notes_attrs() 1701 ¬es_attrs->attrs[i])) in add_notes_attrs()
|
D | cpu.c | 2469 .attrs = cpuhp_cpu_attrs, 2501 .attrs = cpuhp_cpu_root_attrs, 2595 .attrs = cpuhp_smt_attrs,
|
D | reboot.c | 874 .attrs = reboot_attrs,
|
/kernel/trace/ |
D | trace_events_hist.c | 512 struct hist_trigger_attrs *attrs; member 811 if (hist_data->attrs->ts_in_usecs && trace_clock_in_ns(tr)) in hist_field_timestamp() 1356 static void destroy_hist_trigger_attrs(struct hist_trigger_attrs *attrs) in destroy_hist_trigger_attrs() argument 1360 if (!attrs) in destroy_hist_trigger_attrs() 1363 for (i = 0; i < attrs->n_assignments; i++) in destroy_hist_trigger_attrs() 1364 kfree(attrs->assignment_str[i]); in destroy_hist_trigger_attrs() 1366 for (i = 0; i < attrs->n_actions; i++) in destroy_hist_trigger_attrs() 1367 kfree(attrs->action_str[i]); in destroy_hist_trigger_attrs() 1369 kfree(attrs->name); in destroy_hist_trigger_attrs() 1370 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 | 1696 .attrs = blk_trace_attrs,
|
/kernel/power/ |
D | wakeup_reason.c | 364 static struct attribute *attrs[] = { variable 370 .attrs = attrs,
|
D | main.c | 392 .attrs = suspend_attrs, 923 .attrs = g,
|
D | hibernate.c | 1262 .attrs = g,
|
/kernel/irq/ |
D | msi.c | 150 msi_irq_group->attrs = msi_attrs; in msi_populate_sysfs() 194 msi_attrs = msi_irq_groups[0]->attrs; in msi_destroy_sysfs()
|
/kernel/events/ |
D | core.c | 10047 .attrs = kprobe_attrs, 10106 .attrs = uprobe_attrs, 11216 .attrs = pmu_dev_attrs,
|
/kernel/cgroup/ |
D | cgroup.c | 6887 .attrs = cgroup_sysfs_attrs,
|