Home
last modified time | relevance | path

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

12345678910>>...44

/linux/drivers/net/wireless/ath/wil6210/
H A 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/drivers/gpu/drm/nouveau/nvkm/core/
H A 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/tools/perf/util/
H A 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/sound/soc/sof/
H A 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 …]
H A 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/drivers/media/platform/st/sti/delta/
H A 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/lib/
H A 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/drivers/virtio/
H A 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/kernel/
H A 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 > regse in __regset_get()
35 regset_get(struct task_struct * target,const struct user_regset * regset,unsigned int size,void * data) regset_get() argument
36 regset_get(struct task_struct * target,const struct user_regset * regset,unsigned int size,void * data) regset_get() argument
44 regset_get_alloc(struct task_struct * target,const struct user_regset * regset,unsigned int size,void ** data) regset_get_alloc() argument
45 regset_get_alloc(struct task_struct * target,const struct user_regset * regset,unsigned int size,void ** data) regset_get_alloc() argument
64 copy_regset_to_user(struct task_struct * target,const struct user_regset_view * view,unsigned int setno,unsigned int offset,unsigned int size,void __user * data) copy_regset_to_user() argument
65 copy_regset_to_user(struct task_struct * target,const struct user_regset_view * view,unsigned int setno,unsigned int offset,unsigned int size,void __user * data) copy_regset_to_user() argument
[all...]
/linux/drivers/acpi/
H A 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/arch/mips/pci/
H A 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/include/linux/
H A 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 …]
/linux/drivers/iommu/
H A 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>
20 #include <linux/dma-mapping.h>
24 #include "io-pgtable-arm.h"
25 #include "iommu-pages.h"
43 (((ARM_LPAE_MAX_LEVELS - (l)) * (d)->bits_per_level) + \
47 (sizeof(arm_lpae_iopte) << (d)->bits_per_level)
49 (sizeof(arm_lpae_iopte) << (d)->pgd_bits)
[all …]
/linux/tools/testing/selftests/hid/progs/
H A 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/drivers/firmware/efi/
H A Dmemmap.c1 // SPDX-License-Identifier: GPL-2.0
19 * __efi_memmap_init - Common code for mapping the EFI memory map
20 * @data: EFI memory map data
26 * During bootup EFI_MEMMAP_LATE in data->flags should be clear since we
33 int __init __efi_memmap_init(struct efi_memory_map_data *data) in __efi_memmap_init() argument
38 phys_map = data->phys_map; in __efi_memmap_init()
40 if (data->flags & EFI_MEMMAP_LATE) in __efi_memmap_init()
41 map.map = memremap(phys_map, data->size, MEMREMAP_WB); in __efi_memmap_init()
43 map.map = early_memremap(phys_map, data->size); in __efi_memmap_init()
46 pr_err("Could not map the memory map! phys_map=%pa, size=0x%lx\n", in __efi_memmap_init()
[all …]
/linux/drivers/net/phy/aquantia/
H A 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/security/apparmor/
H A 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
40 if (ad->iface.ns) { in audit_cb()
42 audit_log_untrustedstring(ab, ad->iface.ns); in audit_cb()
44 if (ad->name) { in audit_cb()
46 audit_log_untrustedstring(ab, ad->name); in audit_cb()
48 if (ad->iface.pos) in audit_cb()
49 audit_log_format(ab, " offset=%ld", ad->iface.pos); in audit_cb()
[all …]
/linux/drivers/media/dvb-core/
H A 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/drivers/rapidio/
H A 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/include/crypto/
H A 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 …]
/linux/sound/soc/
H A Dsoc-topology-test.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * soc-topology-test.c -- ALSA SoC Topology Kernel Unit Tests
11 #include <sound/soc-topology.h>
27 test_dev = kunit_device_register(test, "sound-soc-topology-test"); in snd_soc_tplg_test_init()
30 return -ENODEV; in snd_soc_tplg_test_init()
59 ret = snd_soc_tplg_component_load(component, NULL, &kunit_comp->fw); in d_probe()
60 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe()
73 KUNIT_EXPECT_EQ(kunit_comp->kunit, 0, ret); in d_remove()
81 SND_SOC_DAILINK_DEF(platform, DAILINK_COMP_ARRAY(COMP_PLATFORM("sound-soc-topology-test")));
96 .name = "sound-soc-topology-test",
[all …]
/linux/block/partitions/
H A Dacorn.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 1996-2000 Russell King.
25 adfs_partition(struct parsed_partitions *state, char *name, char *data, in adfs_partition() argument
31 if (adfs_checkbblk(data)) in adfs_partition()
34 dr = (struct adfs_discrecord *)(data + 0x1c0); in adfs_partition()
36 if (dr->disc_size == 0 && dr->disc_size_high == 0) in adfs_partition()
39 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition()
40 (le32_to_cpu(dr->disc_size) >> 9); in adfs_partition()
43 strlcat(state->pp_buf, " [", PAGE_SIZE); in adfs_partition()
44 strlcat(state->pp_buf, name, PAGE_SIZE); in adfs_partition()
[all …]
/linux/drivers/hid/
H A Dhid-picolcd_debugfs.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> *
11 #include <linux/hid-debug.h>
20 #include "hid-picolcd.h"
25 if (picolcd_fbinfo((struct picolcd_data *)f->private)) in picolcd_debug_reset_show()
34 return single_open(f, picolcd_debug_reset_show, inode->i_private); in picolcd_debug_reset_open()
40 struct picolcd_data *data = ((struct seq_file *)f->private_data)->private; in picolcd_debug_reset_write() local
42 size_t cnt = min(count, sizeof(buf)-1); in picolcd_debug_reset_write()
44 return -EFAULT; in picolcd_debug_reset_write()
46 while (cnt > 0 && (buf[cnt-1] == ' ' || buf[cnt-1] == '\n')) in picolcd_debug_reset_write()
[all …]
/linux/include/trace/events/
H A 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/Documentation/admin-guide/device-mapper/
H A Ddm-integrity.rst2 dm-integrity
5 The dm-integrity target emulates a block device that has additional
6 per-sector tags that can be used for storing integrity information.
9 writing the sector and the integrity tag must be atomic - i.e. in case of
12 To guarantee write atomicity, the dm-integrity target uses journal, it
13 writes sector data and integrity tags into a journal, commits the journal
14 and then copies the data and integrity tags to their respective location.
16 The dm-integrity target can be used with the dm-crypt target - in this
17 situation the dm-crypt target creates the integrity data and passes them
18 to the dm-integrity target via bio_integrity_payload attached to the bio.
[all …]

12345678910>>...44