Home
last modified time | relevance | path

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

12345678910>>...46

/linux-6.12.1/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
Dsp_public.h1 /* SPDX-License-Identifier: GPL-2.0 */
37 \param value[in] The data to be written
50 \param value[in] The data to be written
101 \param data[in] The data to be written
102 \param size[in] The size(in bytes) of the data to be written
104 \return none, SP[ID].dmem[addr...addr+size-1] = data
109 const void *data,
110 const size_t size);
116 \param data[in] The data to be read
117 \param size[in] The size(in bytes) of the data to be read
[all …]
/linux-6.12.1/drivers/thunderbolt/
Dtrace.h1 /* SPDX-License-Identifier: GPL-2.0 */
40 const u32 *data) in show_data_read_write() argument
42 const struct cfg_read_pkg *msg = (const struct cfg_read_pkg *)data; in show_data_read_write()
46 msg->addr.offset, msg->addr.length, msg->addr.port, in show_data_read_write()
47 msg->addr.space, msg->addr.seq); in show_data_read_write()
52 static inline const char *show_data_error(struct trace_seq *p, const u32 *data) in show_data_error() argument
54 const struct cfg_error_pkg *msg = (const struct cfg_error_pkg *)data; in show_data_error()
57 trace_seq_printf(p, "error=%#x, port=%d, plug=%#x, ", msg->error, in show_data_error()
58 msg->port, msg->pg); in show_data_error()
63 static inline const char *show_data_event(struct trace_seq *p, const u32 *data) in show_data_event() argument
[all …]
/linux-6.12.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-6.12.1/drivers/gpu/drm/nouveau/nvkm/core/
Dioctl.c34 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_nop() argument
36 return -ENOSYS; in nvkm_ioctl_nop()
44 if ( object->func->uevent && in nvkm_ioctl_sclass_()
45 !object->func->uevent(object, NULL, 0, NULL) && index-- == 0) { in nvkm_ioctl_sclass_()
46 oclass->ctor = nvkm_uevent_new; in nvkm_ioctl_sclass_()
47 oclass->base.minver = 0; in nvkm_ioctl_sclass_()
48 oclass->base.maxver = 0; in nvkm_ioctl_sclass_()
49 oclass->base.oclass = NVIF_CLASS_EVENT; in nvkm_ioctl_sclass_()
53 if (object->func->sclass) in nvkm_ioctl_sclass_()
54 return object->func->sclass(object, index, oclass); in nvkm_ioctl_sclass_()
[all …]
/linux-6.12.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
10 data->comp_level = level; in zstd_init()
11 data->dstream = NULL; in zstd_init()
12 data->cstream = NULL; in zstd_init()
16 int zstd_fini(struct zstd_data *data) in zstd_fini() argument
18 if (data->dstream) { in zstd_fini()
19 ZSTD_freeDStream(data->dstream); in zstd_fini()
20 data->dstream = NULL; in zstd_fini()
23 if (data->cstream) { in zstd_fini()
[all …]
/linux-6.12.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"
18 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scontrol->scomp); in sof_ipc3_set_get_kcontrol_data()
19 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; in sof_ipc3_set_get_kcontrol_data()
20 const struct sof_ipc_ops *iops = sdev->ipc->ops; in sof_ipc3_set_get_kcontrol_data()
27 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc3_set_get_kcontrol_data()
28 if (swidget->comp_id == scontrol->comp_id) { in sof_ipc3_set_get_kcontrol_data()
35 dev_err(sdev->dev, "%s: can't find widget with id %d\n", __func__, in sof_ipc3_set_get_kcontrol_data()
[all …]
Dipc4-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 "ipc4-priv.h"
13 #include "ipc4-topology.h"
18 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_set_get_kcontrol_data()
19 struct snd_soc_component *scomp = scontrol->scomp; in sof_ipc4_set_get_kcontrol_data()
21 const struct sof_ipc_ops *iops = sdev->ipc->ops; in sof_ipc4_set_get_kcontrol_data()
22 struct sof_ipc4_msg *msg = &cdata->msg; in sof_ipc4_set_get_kcontrol_data()
28 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_set_get_kcontrol_data()
[all …]
/linux-6.12.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 = kvzalloc(size, GFP_KERNEL); in __regset_get()
21 return -ENOMEM; in __regset_get()
[all …]
/linux-6.12.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-6.12.1/drivers/virtio/
Dvirtio_pci_admin_legacy_io.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * virtio_pci_admin_has_legacy_io - Checks whether the legacy IO
29 if ((vp_dev->admin_vq.supported_cmds & VIRTIO_LEGACY_ADMIN_CMD_BITMAP) == in virtio_pci_admin_has_legacy_io()
37 u8 offset, u8 size, u8 *buf) in virtio_pci_admin_legacy_io_write() argument
40 struct virtio_admin_cmd_legacy_wr_data *data; in virtio_pci_admin_legacy_io_write() local
47 return -ENODEV; in virtio_pci_admin_legacy_io_write()
53 data = kzalloc(sizeof(*data) + size, GFP_KERNEL); in virtio_pci_admin_legacy_io_write()
54 if (!data) in virtio_pci_admin_legacy_io_write()
55 return -ENOMEM; in virtio_pci_admin_legacy_io_write()
57 data->offset = offset; in virtio_pci_admin_legacy_io_write()
[all …]
/linux-6.12.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-6.12.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>
42 return chunk->end_addr - chunk->start_addr + 1; in chunk_size()
52 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-6.12.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-6.12.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-6.12.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"
24 #include "iommu-pages.h"
42 (((ARM_LPAE_MAX_LEVELS - (l)) * (d)->bits_per_level) + \
46 (sizeof(arm_lpae_iopte) << (d)->bits_per_level)
48 (sizeof(arm_lpae_iopte) << (d)->pgd_bits)
[all …]
/linux-6.12.1/tools/testing/selftests/hid/progs/
Dhid.c1 // SPDX-License-Identifier: GPL-2.0
20 __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 3 /* size */); in BPF_PROG()
29 return hid_ctx->size; in BPF_PROG()
40 __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 3 /* size */); in __hid_subprog_first_event()
47 return hid_ctx->size; in __hid_subprog_first_event()
65 __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 4 /* size */); in BPF_PROG()
72 return hid_ctx->size; in BPF_PROG()
83 __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 3 /* size */); in BPF_PROG()
99 /* data needs to come at offset 0 so we can use it in calls */
100 __u8 data[10]; member
[all …]
/linux-6.12.1/drivers/net/phy/aquantia/
Daquantia_firmware.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/crc-itu-t.h>
7 #include <linux/nvmem-consumer.h>
52 * not negative and be in the size of the firmware itself.
54 static bool aqr_fw_validate_get(size_t size, size_t offset, size_t get_size) in aqr_fw_validate_get() argument
56 return offset + get_size <= size; in aqr_fw_validate_get()
59 static int aqr_fw_get_be16(const u8 *data, size_t offset, size_t size, u16 *value) in aqr_fw_get_be16() argument
61 if (!aqr_fw_validate_get(size, offset, sizeof(u16))) in aqr_fw_get_be16()
62 return -EINVAL; in aqr_fw_get_be16()
64 *value = get_unaligned_be16(data + offset); in aqr_fw_get_be16()
[all …]
/linux-6.12.1/sound/core/seq/
Dseq_memory.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 return pool->total_elements - atomic_read(&pool->counter); in snd_seq_pool_available()
29 return snd_seq_pool_available(pool) >= pool->room; in snd_seq_output_ok()
35 * The external data may be stored in three different formats.
38 * ext.data.len = length
39 * ext.data.ptr = buffer pointer
41 * When an event is generated via read(), the external data is
43 * ext.data.len = length | SNDRV_SEQ_EXT_USRPTR
44 * ext.data.ptr = userspace pointer
47 * the external data is decomposed to several cells.
[all …]
/linux-6.12.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-6.12.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
45 int ioremap_change_attr(unsigned long vaddr, unsigned long size, in ioremap_change_attr() argument
48 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr()
76 if ((res->flags & IORESOURCE_SYSTEM_RAM) != IORESOURCE_SYSTEM_RAM) in __ioremap_check_ram()
79 start_pfn = (res->start + PAGE_SIZE - 1) >> PAGE_SHIFT; in __ioremap_check_ram()
80 stop_pfn = (res->end + 1) >> PAGE_SHIFT; in __ioremap_check_ram()
82 for (i = 0; i < (stop_pfn - start_pfn); ++i) in __ioremap_check_ram()
100 switch (res->desc) { in __ioremap_check_encrypted()
[all …]
/linux-6.12.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
39 if (ad->iface.ns) { in audit_cb()
41 audit_log_untrustedstring(ab, ad->iface.ns); in audit_cb()
43 if (ad->name) { in audit_cb()
45 audit_log_untrustedstring(ab, ad->name); in audit_cb()
47 if (ad->iface.pos) in audit_cb()
48 audit_log_format(ab, " offset=%ld", ad->iface.pos); in audit_cb()
[all …]
/linux-6.12.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-6.12.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-6.12.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>
18 * DOC: Authenticated Encryption With Associated Data (AEAD) Cipher API
35 * associated data memory location before performing the encryption or
37 * operation is that the caller should explicitly check for -EBADMSG of the
39 * a breach in the integrity of the message. In essence, that -EBADMSG error
46 * associated data || plaintext or ciphertext.
49 * (resp. ciphertext) will grow (resp. shrink) by the authentication tag size
53 * used to verify the integrity of the plaintext and the associated data.
[all …]

12345678910>>...46