Home
last modified time | relevance | path

Searched +full:data +full:- +full:size (Results 1 – 25 of 1090) sorted by relevance

12345678910>>...44

/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/core/
Dioctl.c34 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_nop() argument
38 } *args = data; in nvkm_ioctl_nop()
39 int ret = -ENOSYS; in nvkm_ioctl_nop()
41 nvif_ioctl(object, "nop size %d\n", size); in nvkm_ioctl_nop()
42 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_ioctl_nop()
43 nvif_ioctl(object, "nop vers %lld\n", args->v0.version); in nvkm_ioctl_nop()
44 args->v0.version = NVIF_VERSION_LATEST; in nvkm_ioctl_nop()
52 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_sclass() argument
56 } *args = data; in nvkm_ioctl_sclass()
58 int ret = -ENOSYS, i = 0; in nvkm_ioctl_sclass()
[all …]
/Linux-v6.1/sound/soc/sof/
Dipc3-control.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
10 #include "sof-priv.h"
11 #include "sof-audio.h"
12 #include "ipc3-priv.h"
17 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scontrol->scomp); in sof_ipc3_set_get_kcontrol_data()
18 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; in sof_ipc3_set_get_kcontrol_data()
19 const struct sof_ipc_ops *iops = sdev->ipc->ops; in sof_ipc3_set_get_kcontrol_data()
25 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc3_set_get_kcontrol_data()
26 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc3_set_get_kcontrol_data()
33 dev_err(sdev->dev, "%s: can't find widget with id %d\n", __func__, in sof_ipc3_set_get_kcontrol_data()
[all …]
/Linux-v6.1/drivers/net/wireless/ath/wil6210/
Dfw_inc.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc.
4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
21 u32 size, const char *msg) in wil_fw_addr_check() argument
23 *ioaddr = wmi_buffer_block(wil, val, size); in wil_fw_addr_check()
32 * wil_fw_verify - verify firmware file validity
37 * Return file size or negative error
39 static int wil_fw_verify(struct wil6210_priv *wil, const u8 *data, size_t size) in wil_fw_verify() argument
41 const struct wil_fw_record_head *hdr = (const void *)data; in wil_fw_verify()
47 if (size % 4) { in wil_fw_verify()
[all …]
/Linux-v6.1/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
Dsp_public.h1 /* SPDX-License-Identifier: GPL-2.0 */
53 \param value[in] The data to be written
66 \param value[in] The data to be written
117 \param data[in] The data to be written
118 \param size[in] The size(in bytes) of the data to be written
120 \return none, SP[ID].dmem[addr...addr+size-1] = data
125 const void *data,
126 const size_t size);
132 \param data[in] The data to be read
133 \param size[in] The size(in bytes) of the data to be read
[all …]
/Linux-v6.1/tools/perf/util/
Dzstd.c1 // SPDX-License-Identifier: GPL-2.0
8 int zstd_init(struct zstd_data *data, int level) in zstd_init() argument
12 data->dstream = ZSTD_createDStream(); in zstd_init()
13 if (data->dstream == NULL) { in zstd_init()
15 return -1; in zstd_init()
18 ret = ZSTD_initDStream(data->dstream); in zstd_init()
21 return -1; in zstd_init()
27 data->cstream = ZSTD_createCStream(); in zstd_init()
28 if (data->cstream == NULL) { in zstd_init()
30 return -1; in zstd_init()
[all …]
Ddso.c1 // SPDX-License-Identifier: GPL-2.0
16 #include "bpf-event.h"
17 #include "bpf-utils.h"
65 if (dso == NULL || dso->symtab_type == DSO_BINARY_TYPE__NOT_FOUND) in dso__symtab_origin()
67 return origin[dso->symtab_type]; in dso__symtab_origin()
72 char *root_dir, char *filename, size_t size) in dso__read_binary_type_filename() argument
86 len = __symbol__join_symfs(filename, size, dso->long_name); in dso__read_binary_type_filename()
89 last_slash--; in dso__read_binary_type_filename()
91 strncpy(dso_dir, filename, last_slash - filename); in dso__read_binary_type_filename()
92 dso_dir[last_slash-filename] = '\0'; in dso__read_binary_type_filename()
[all …]
/Linux-v6.1/kernel/
Dregset.c1 // SPDX-License-Identifier: GPL-2.0-only
8 unsigned int size, in __regset_get() argument
9 void **data) in __regset_get() argument
11 void *p = *data, *to_free = NULL; in __regset_get()
14 if (!regset->regset_get) in __regset_get()
15 return -EOPNOTSUPP; in __regset_get()
16 if (size > regset->n * regset->size) in __regset_get()
17 size = regset->n * regset->size; in __regset_get()
19 to_free = p = kzalloc(size, GFP_KERNEL); in __regset_get()
21 return -ENOMEM; in __regset_get()
[all …]
/Linux-v6.1/drivers/media/platform/st/sti/delta/
Ddelta-ipc.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "delta-ipc.h"
11 #include "delta-mem.h"
38 #define msg_to_ctx(msg) ((struct delta_ipc_ctx *)(msg)->header.host_hdl)
39 #define msg_to_copro_hdl(msg) ((msg)->header.copro_hdl)
43 return (ctx->ipc_buf->paddr + (vaddr - ctx->ipc_buf->vaddr)); in to_paddr()
47 void *data, u32 size) in is_valid_data() argument
49 return ((data >= ctx->ipc_buf->vaddr) && in is_valid_data()
50 ((data + size) <= (ctx->ipc_buf->vaddr + ctx->ipc_buf->size))); in is_valid_data()
58 * this IPC shared memory, avoiding de-facto recopies inside delta-ipc.
[all …]
/Linux-v6.1/drivers/acpi/
Dnvs.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * nvs.c - Routines for saving and restoring ACPI NVS memory region
5 * Copyright (C) 2008-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
23 __u64 size; member
30 static int suspend_nvs_register(unsigned long start, unsigned long size);
38 int acpi_nvs_register(__u64 start, __u64 size) in acpi_nvs_register() argument
44 return -ENOMEM; in acpi_nvs_register()
45 region->phys_start = start; in acpi_nvs_register()
46 region->size = size; in acpi_nvs_register()
47 list_add_tail(&region->node, &nvs_region_list); in acpi_nvs_register()
[all …]
/Linux-v6.1/lib/
Dgenalloc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * kmalloc/kfree interface. Uses for this includes on-device special
21 * On architectures that don't have NMI-safe cmpxchg implementation,
26 * Copyright 2005 (C) Jes Sorensen <jes@trained-monkey.org>
40 return chunk->end_addr - chunk->start_addr + 1; in chunk_size()
51 return -EBUSY; in set_bits_ll()
66 return -EBUSY; in clear_bits_ll()
74 * bitmap_set_ll - set the specified number of bits at the specified position
79 * Set @nr bits start from @start in @map lock-lessly. Several users
88 const unsigned long size = start + nr; in bitmap_set_ll() local
[all …]
/Linux-v6.1/include/linux/
Dgenalloc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * kmalloc/kfree interface. Uses for this includes on-device special
21 * On architectures that don't have NMI-safe cmpxchg implementation,
42 * @size: The bitmap size in bits
45 * @data: optional additional data used by the callback
49 unsigned long size,
52 void *data, struct gen_pool *pool,
64 void *data; member
76 void *owner; /* private data to retrieve at alloc time */
83 * gen_pool data descriptor for gen_pool_first_fit_align.
[all …]
Dlz4.h4 * Copyright (C) 2016, Sven Schmidt <4sschmid@informatik.uni-hamburg.de>
11 * for LZ4 - Fast LZ compression algorithm.
13 * LZ4 - Fast LZ compression algorithm
14 * Copyright (C) 2011-2016, Yann Collet.
15 * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 * - LZ4 homepage : http://www.lz4.org
38 * - LZ4 source repository : https://github.com/lz4/lz4
47 /*-************************************************************************
52 * Memory usage formula : N->2^N Bytes
[all …]
/Linux-v6.1/arch/mips/pci/
Dops-bcm63xx.c15 #include "pci-bcm63xx.h"
18 * swizzle 32bits data to return only the needed part
20 static int postprocess_read(u32 data, int where, unsigned int size) in postprocess_read() argument
25 switch (size) { in postprocess_read()
27 ret = (data >> ((where & 3) << 3)) & 0xff; in postprocess_read()
30 ret = (data >> ((where & 3) << 3)) & 0xffff; in postprocess_read()
33 ret = data; in postprocess_read()
40 unsigned int size) in preprocess_write() argument
45 switch (size) { in preprocess_write()
101 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_read() argument
[all …]
/Linux-v6.1/drivers/firmware/efi/
Dmemmap.c1 // SPDX-License-Identifier: GPL-2.0
16 static phys_addr_t __init __efi_memmap_alloc_early(unsigned long size) in __efi_memmap_alloc_early() argument
18 return memblock_phys_alloc(size, SMP_CACHE_BYTES); in __efi_memmap_alloc_early()
21 static phys_addr_t __init __efi_memmap_alloc_late(unsigned long size) in __efi_memmap_alloc_late() argument
23 unsigned int order = get_order(size); in __efi_memmap_alloc_late()
32 void __init __efi_memmap_free(u64 phys, unsigned long size, unsigned long flags) in __efi_memmap_free() argument
36 memblock_free_late(phys, size); in __efi_memmap_free()
38 memblock_phys_free(phys, size); in __efi_memmap_free()
41 unsigned int order = get_order(size); in __efi_memmap_free()
55 * efi_memmap_alloc - Allocate memory for the EFI memory map
[all …]
/Linux-v6.1/drivers/iommu/
Dio-pgtable-arm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * CPU-agnostic ARM page table allocator.
10 #define pr_fmt(fmt) "arm-lpae io-pgtable: " fmt
14 #include <linux/io-pgtable.h>
19 #include <linux/dma-mapping.h>
23 #include "io-pgtable-arm.h"
41 (((ARM_LPAE_MAX_LEVELS - (l)) * (d)->bits_per_level) + \
45 (sizeof(arm_lpae_iopte) << (d)->bits_per_level)
47 (sizeof(arm_lpae_iopte) << (d)->pgd_bits)
57 ((l) == (d)->start_level ? (d)->pgd_bits - (d)->bits_per_level : 0)
[all …]
Dio-pgtable-arm-v7s.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * CPU-agnostic ARM page table allocator.
5 * ARMv7 Short-descriptor format, supporting
6 * - Basic memory attributes
7 * - Simplified access permissions (AP[2:1] model)
8 * - Backwards-compatible TEX remap
9 * - Large pages/supersections (if indicated by the caller)
12 * - Legacy access permissions (AP[2:0] model)
15 * - PXN
16 * - Domains
[all …]
/Linux-v6.1/tools/lib/traceevent/
Dkbuffer-parse.c1 // SPDX-License-Identifier: LGPL-2.1
15 #define COMMIT_MASK ((1 << 27) - 1)
27 * @timestamp - timestamp of current event
28 * @lost_events - # of lost events between this subbuffer and previous
29 * @flags - special flags of the kbuffer
30 * @subbuffer - pointer to the sub-buffer page
31 * @data - pointer to the start of data on the sub-buffer page
32 * @index - index from @data to the @curr event data
33 * @curr - offset from @data to the start of current event
35 * @next - offset from @data to the start of next event
[all …]
/Linux-v6.1/arch/um/drivers/
Dvirt-pci.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/virtio-uml.h>
23 /* for MSI-X we have a 32-bit payload */
61 u8 data[8]; member
84 return -EINVAL; in um_pci_send_cmd()
86 switch (cmd->op) { in um_pci_send_cmd()
129 ret = virtqueue_add_sgs(dev->cmd_vq, sgs_list, in um_pci_send_cmd()
138 virtqueue_kick(dev->cmd_vq); in um_pci_send_cmd()
144 set_bit(UM_PCI_STAT_WAITING, &dev->status); in um_pci_send_cmd()
145 virtqueue_kick(dev->cmd_vq); in um_pci_send_cmd()
[all …]
/Linux-v6.1/include/trace/events/
Dfsi.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 uint32_t addr, size_t size),
14 TP_ARGS(master, link, id, addr, size),
20 __field(size_t, size)
23 __entry->master_idx = master->idx;
24 __entry->link = link;
25 __entry->id = id;
26 __entry->addr = addr;
27 __entry->size = size;
30 __entry->master_idx,
[all …]
/Linux-v6.1/fs/ecryptfs/
Dread_write.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 * @data: Data to write
19 * @offset: Byte offset in the lower file to which to write the data
20 * @size: Number of bytes from @data to write at @offset in the lower
23 * Write data to the lower file.
27 int ecryptfs_write_lower(struct inode *ecryptfs_inode, char *data, in ecryptfs_write_lower() argument
28 loff_t offset, size_t size) in ecryptfs_write_lower() argument
33 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_write_lower()
35 return -EIO; in ecryptfs_write_lower()
36 rc = kernel_write(lower_file, data, size, &offset); in ecryptfs_write_lower()
[all …]
/Linux-v6.1/arch/x86/mm/
Dioremap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Re-map IO memory to kernel address space so that we can access it.
5 * 640k-1MB IO memory area on PC's
44 int ioremap_change_attr(unsigned long vaddr, unsigned long size, in ioremap_change_attr() argument
47 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr()
75 if ((res->flags & IORESOURCE_SYSTEM_RAM) != IORESOURCE_SYSTEM_RAM) in __ioremap_check_ram()
78 start_pfn = (res->start + PAGE_SIZE - 1) >> PAGE_SHIFT; in __ioremap_check_ram()
79 stop_pfn = (res->end + 1) >> PAGE_SHIFT; in __ioremap_check_ram()
81 for (i = 0; i < (stop_pfn - start_pfn); ++i) in __ioremap_check_ram()
99 switch (res->desc) { in __ioremap_check_encrypted()
[all …]
/Linux-v6.1/drivers/media/dvb-core/
Ddvb_ringbuffer.c9 * Copyright (C) 1999-2003 Ralph Metzler
38 void dvb_ringbuffer_init(struct dvb_ringbuffer *rbuf, void *data, size_t len) in dvb_ringbuffer_init() argument
40 rbuf->pread=rbuf->pwrite=0; in dvb_ringbuffer_init()
41 rbuf->data=data; in dvb_ringbuffer_init()
42 rbuf->size=len; in dvb_ringbuffer_init()
43 rbuf->error=0; in dvb_ringbuffer_init()
45 init_waitqueue_head(&rbuf->queue); in dvb_ringbuffer_init()
47 spin_lock_init(&(rbuf->lock)); in dvb_ringbuffer_init()
58 * for memory barriers also see Documentation/core-api/circular-buffers.rst in dvb_ringbuffer_empty()
60 return (rbuf->pread == smp_load_acquire(&rbuf->pwrite)); in dvb_ringbuffer_empty()
[all …]
/Linux-v6.1/drivers/rapidio/
Drio-sysfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 return sprintf(buf, format_string, rdev->field); \
43 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rdev->net->hport->sys_size); in routes_show()
45 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE) in routes_show()
49 rdev->rswitch->route_table[i]); in routes_show()
52 return (str - buf); in routes_show()
62 (rdev->prev) ? rio_name(rdev->prev) : "root"); in lprev_show()
73 if (rdev->pef & RIO_PEF_SWITCH) { in lnext_show()
74 for (i = 0; i < RIO_GET_TOTAL_PORTS(rdev->swpinfo); i++) { in lnext_show()
75 if (rdev->rswitch->nextdev[i]) in lnext_show()
[all …]
/Linux-v6.1/include/crypto/
Daead.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * AEAD: Authenticated Encryption with Associated Data
5 * Copyright (c) 2007-2015 Herbert Xu <herbert@gondor.apana.org.au>
17 * DOC: Authenticated Encryption With Associated Data (AEAD) Cipher API
34 * pointer to the associated data memory location before performing the
36 * data memory is filled during the encryption operation. For decryption, the
37 * associated data memory must contain data that is used to verify the integrity
38 * of the decrypted data. Another deviation from the asynchronous block cipher
39 * operation is that the caller should explicitly check for -EBADMSG of the
41 * a breach in the integrity of the message. In essence, that -EBADMSG error
[all …]
/Linux-v6.1/security/apparmor/
Dpolicy_unpack.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright (C) 1998-2008 Novell/SUSE
9 * Copyright 2009-2010 Canonical Ltd.
12 * policy format documentation see Documentation/admin-guide/LSM/apparmor.rst
41 * The AppArmor interface treats data as a type byte followed by the
42 * actual data. The interface has the notion of a named entry
44 * the entries typecode and data. Named types allow for optional
67 * data is copied into a kernel buffer in apparmorfs and then handed off to
82 if (aad(sa)->iface.ns) { in audit_cb()
84 audit_log_untrustedstring(ab, aad(sa)->iface.ns); in audit_cb()
[all …]

12345678910>>...44