Home
last modified time | relevance | path

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

12345678910>>...45

/linux-6.14.4/drivers/net/ethernet/microchip/vcap/
Dvcap_api_debugfs.c1 // SPDX-License-Identifier: GPL-2.0+
23 struct vcap_output_print *out, in vcap_debugfs_show_rule_keyfield() argument
26 struct vcap_client_keyfield_data *data) in vcap_debugfs_show_rule_keyfield() argument
32 out->prf(out->dst, " %s: W%d: ", vcap_keyfield_name(vctrl, key), in vcap_debugfs_show_rule_keyfield()
37 out->prf(out->dst, "%d/%d", data->u1.value, data->u1.mask); in vcap_debugfs_show_rule_keyfield()
40 value = (u8 *)(&data->u32.value); in vcap_debugfs_show_rule_keyfield()
41 mask = (u8 *)(&data->u32.mask); in vcap_debugfs_show_rule_keyfield()
44 out->prf(out->dst, "%pI4h/%pI4h", &data->u32.value, in vcap_debugfs_show_rule_keyfield()
45 &data->u32.mask); in vcap_debugfs_show_rule_keyfield()
51 u32 fmsk = (1 << keyfield[key].width) - 1; in vcap_debugfs_show_rule_keyfield()
[all …]
/linux-6.14.4/drivers/media/platform/mediatek/vcodec/encoder/
Dvenc_vpu_if.c1 // SPDX-License-Identifier: GPL-2.0
11 static void handle_enc_init_msg(struct venc_vpu_inst *vpu, const void *data) in handle_enc_init_msg() argument
13 const struct venc_vpu_ipi_msg_init *msg = data; in handle_enc_init_msg()
15 vpu->inst_addr = msg->vpu_inst_addr; in handle_enc_init_msg()
16 vpu->vsi = mtk_vcodec_fw_map_dm_addr(vpu->ctx->dev->fw_handler, in handle_enc_init_msg()
17 msg->vpu_inst_addr); in handle_enc_init_msg()
20 if (mtk_vcodec_fw_get_type(vpu->ctx->dev->fw_handler) == VPU) in handle_enc_init_msg()
24 mtk_venc_debug(vpu->ctx, "firmware version: 0x%x\n", msg->venc_abi_version); in handle_enc_init_msg()
25 switch (msg->venc_abi_version) { in handle_enc_init_msg()
29 mtk_venc_err(vpu->ctx, "unhandled firmware version 0x%x\n", in handle_enc_init_msg()
[all …]
/linux-6.14.4/drivers/hid/
Dhid-picolcd.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> *
27 #define REPORT_LED_STATE 0x81 /* LCD: OUT[1] */
28 #define REPORT_BRIGHTNESS 0x91 /* LCD: OUT[1] */
29 #define REPORT_CONTRAST 0x92 /* LCD: OUT[1] */
30 #define REPORT_RESET 0x93 /* LCD: OUT[2] */
31 #define REPORT_LCD_CMD 0x94 /* LCD: OUT[63] */
32 #define REPORT_LCD_DATA 0x95 /* LCD: OUT[63] */
33 #define REPORT_LCD_CMD_DATA 0x96 /* LCD: OUT[63] */
34 #define REPORT_EE_READ 0xa3 /* LCD: OUT[63] */
[all …]
/linux-6.14.4/Documentation/wmi/devices/
Dmsi-wmi-platform.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
4 MSI WMI Platform Features driver (msi-wmi-platform)
18 data using the `bmfdec <https://github.com/pali/bmfdec>`_ utility:
24 guid("{ABBC0F60-8EA1-11d1-00A0-C90629100000}")]
26 [WmiDataId(1), read, write, Description("16 bytes of data")] uint8 Bytes[16];
31 guid("{ABBC0F63-8EA1-11d1-00A0-C90629100000}")]
33 [WmiDataId(1), read, write, Description("32 bytes of data")] uint8 Bytes[32];
38 guid("{ABBC0F6E-8EA1-11d1-00A0-C90629100000}")]
44 void GetPackage([out, id(0)] Package Data);
47 void SetPackage([in, id(0)] Package Data);
[all …]
/linux-6.14.4/drivers/media/usb/dvb-usb/
Dttusb2.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * (e.g. Pinnacle 400e DVB-S USB2.0).
7 * Copyright (C) 2005-6 Patrick Boettcher <[email protected]>
9 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
16 * always to messages (out/in)
17 * out message:
18 * 0xaa <id> <cmdbyte> <datalen> <data...>
21 * 0x55 <id> <cmdbyte> <datalen> <data...>
27 /* out data: <byte>[28]
31 /* out data: nothing */
[all …]
/linux-6.14.4/arch/x86/crypto/
Dsha256_ssse3_glue.c5 * using SSSE3, AVX, AVX2, and SHA-NI instructions.
24 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45 const u8 *data, int blocks);
58 static int _sha256_update(struct shash_desc *desc, const u8 *data, in _sha256_update() argument
64 (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in _sha256_update()
65 return crypto_sha256_update(desc, data, len); in _sha256_update()
69 * 256-bit internal state, as this is what the asm functions expect. in _sha256_update()
74 sha256_base_do_update(desc, data, len, sha256_xform); in _sha256_update()
80 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup() argument
81 unsigned int len, u8 *out, sha256_block_fn *sha256_xform) in sha256_finup() argument
[all …]
Dsha1_ssse3_glue.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * using SSSE3, AVX, AVX2, and SHA-NI instructions.
12 * Copyright (c) Jean-Francois Dive <[email protected]>
41 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update() argument
47 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_update()
48 return crypto_sha1_update(desc, data, len); in sha1_update()
52 * 160-bit internal state, as this is what the asm functions expect. in sha1_update()
57 sha1_base_do_update(desc, data, len, sha1_xform); in sha1_update()
63 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup() argument
64 unsigned int len, u8 *out, sha1_block_fn *sha1_xform) in sha1_finup() argument
[all …]
/linux-6.14.4/drivers/net/ethernet/intel/igb/
De1000_phy.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
31 * igb_check_reset_block - Check if PHY reset is blocked
48 * igb_get_phy_id - Retrieve the PHY ID and revision
56 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id()
61 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) in igb_get_phy_id()
62 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id()
64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
66 goto out; in igb_get_phy_id()
68 phy->id = (u32)(phy_id << 16); in igb_get_phy_id()
[all …]
/linux-6.14.4/drivers/net/wireless/intel/iwlwifi/fw/
Duefi.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright(c) 2021-2024 Intel Corporation
6 #include "iwl-drv.h"
8 #include "iwl-prph.h"
9 #include "iwl-io.h"
26 const u8 data[]; member
33 void *data; in iwl_uefi_get_variable() local
36 return ERR_PTR(-EINVAL); in iwl_uefi_get_variable()
39 return ERR_PTR(-ENODEV); in iwl_uefi_get_variable()
41 /* first call with NULL data to get the exact entry size */ in iwl_uefi_get_variable()
[all …]
/linux-6.14.4/net/core/
Dflow_offload.c1 /* SPDX-License-Identifier: GPL-2.0 */
20 rule->action.num_entries = num_actions; in flow_rule_alloc()
21 /* Pre-fill each action hw_stats with DONT_CARE. in flow_rule_alloc()
25 rule->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in flow_rule_alloc()
41 fl_action->action.num_entries = num_actions; in offload_action_alloc()
42 /* Pre-fill each action hw_stats with DONT_CARE. in offload_action_alloc()
46 fl_action->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in offload_action_alloc()
52 const struct flow_match *__m = &(__rule)->match; \
53 struct flow_dissector *__d = (__m)->dissector; \
55 (__out)->key = skb_flow_dissector_target(__d, __type, (__m)->key); \
[all …]
/linux-6.14.4/crypto/
Dcrct10dif_generic.c4 * T10 Data Integrity Field CRC16 Crypto Transform
21 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 #include <linux/crc-t10dif.h>
46 ctx->crc = 0; in chksum_init()
51 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() argument
56 ctx->crc = crc_t10dif_generic(ctx->crc, data, length); in chksum_update()
60 static int chksum_update_arch(struct shash_desc *desc, const u8 *data, in chksum_update_arch() argument
65 ctx->crc = crc_t10dif_update(ctx->crc, data, length); in chksum_update_arch()
69 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument
73 *(__u16 *)out = ctx->crc; in chksum_final()
[all …]
Dcrc32_generic.c1 // SPDX-License-Identifier: GPL-2.0-only
42 return -EINVAL; in crc32_setkey()
49 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init()
57 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update() argument
62 *crcp = crc32_le_base(*crcp, data, len); in crc32_update()
66 static int crc32_update_arch(struct shash_desc *desc, const u8 *data, in crc32_update_arch() argument
71 *crcp = crc32_le(*crcp, data, len); in crc32_update_arch()
76 static int __crc32_finup(u32 *crcp, const u8 *data, unsigned int len, in __crc32_finup() argument
77 u8 *out) in __crc32_finup() argument
79 put_unaligned_le32(crc32_le_base(*crcp, data, len), out); in __crc32_finup()
[all …]
Dcrc32c_generic.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 *@Article{castagnoli-crc,
9 * title = {{Optimization of Cyclic Redundancy-Check Codes with 24
19 * the iscsi-crc.c module of the linux-iscsi driver at
20 * http://linux-iscsi.sourceforge.net.
59 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init()
62 ctx->crc = mctx->key; in chksum_init()
77 if (keylen != sizeof(mctx->key)) in chksum_setkey()
78 return -EINVAL; in chksum_setkey()
79 mctx->key = get_unaligned_le32(key); in chksum_setkey()
[all …]
/linux-6.14.4/sound/soc/codecs/
Dtas2781-fmwlib.c1 // SPDX-License-Identifier: GPL-2.0
3 // tas2781-fmwlib.c -- TASDEVICE firmware support
5 // Copyright 2023 - 2024 Texas Instruments, Inc.
7 // Author: Shenghao Ding <shenghao-[email protected]>
43 /*should not include B0_P53_R44-R47 */
158 * receiver, games, audio-to-haptics, PMIC record, bypass mode, in tasdevice_add_config()
161 * ultrasonic application. In order to support these variable-numbers in tasdevice_add_config()
167 *status = -ENOMEM; in tasdevice_add_config()
168 goto out; in tasdevice_add_config()
171 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config()
[all …]
/linux-6.14.4/drivers/infiniband/hw/mlx5/
Dmad.c2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
48 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED && in can_do_mad_ifc()
49 in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in can_do_mad_ifc()
51 return dev->port_caps[port_num - 1].has_smi; in can_do_mad_ifc()
62 return -EPERM; in mlx5_MAD_IFC()
77 void *out) in pma_cnt_ext_assign() argument
83 pma_cnt_ext->port_xmit_data = in pma_cnt_ext_assign()
[all …]
/linux-6.14.4/fs/nfs/
Dnfs42xdr.c1 // SPDX-License-Identifier: GPL-2.0
61 #define READ_PLUS_SEGMENT_SIZE_DIFF (NFS42_READ_PLUS_HOLE_SEGMENT_SIZE - \
248 * These values specify the maximum amount of data that is not
273 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
274 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
275 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
289 encode_uint32(xdr, ns->nl4_type); in encode_nl4_server()
290 switch (ns->nl4_type) { in encode_nl4_server()
293 encode_string(xdr, ns->u.nl4_str_sz, ns->u.nl4_str); in encode_nl4_server()
296 encode_string(xdr, ns->u.nl4_addr.netid_len, in encode_nl4_server()
[all …]
/linux-6.14.4/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_module.c1 // SPDX-License-Identifier: GPL-2.0
20 char out[256]; member
23 } data = {}; variable
33 /* we have test_progs[-flavor], so cut flavor part */
44 struct core_reloc_module_output *out = (void *)&data.out; in BPF_PROG() local
49 if (data.my_pid_tgid != pid_tgid) in BPF_PROG()
55 out->len = BPF_CORE_READ(read_ctx, len); in BPF_PROG()
56 out->off = BPF_CORE_READ(read_ctx, off); in BPF_PROG()
58 out->read_ctx_sz = bpf_core_type_size(struct bpf_testmod_test_read_ctx); in BPF_PROG()
59 out->read_ctx_exists = bpf_core_type_exists(struct bpf_testmod_test_read_ctx); in BPF_PROG()
[all …]
/linux-6.14.4/lib/
Dkfifo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include <linux/dma-mapping.h>
22 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused()
34 fifo->in = 0; in __kfifo_alloc()
35 fifo->out = 0; in __kfifo_alloc()
36 fifo->esize = esize; in __kfifo_alloc()
39 fifo->data = NULL; in __kfifo_alloc()
40 fifo->mask = 0; in __kfifo_alloc()
41 return -EINVAL; in __kfifo_alloc()
44 fifo->data = kmalloc_array(esize, size, gfp_mask); in __kfifo_alloc()
[all …]
Ddecompress_unzstd.c1 // SPDX-License-Identifier: GPL-2.0
4 * Important notes about in-place decompression
6 * At least on x86, the kernel is decompressed in place: the compressed data
8 * most of the compressed data. There must be enough safety margin to
14 * The worst case for in-place decompression is that the beginning of
16 * uncompressible. Thus, we must look for worst-case expansion when the
17 * compressor is encoding uncompressible data.
28 * ZSTD stores the data in blocks. Each block has a header whose size is
43 * - 22 bytes for the .zst file format headers;
44 * - 3 bytes per every 128 KiB of uncompressed size (one block header per
[all …]
/linux-6.14.4/tools/testing/selftests/bpf/prog_tests/
Dxdp_do_redirect.c1 // SPDX-License-Identifier: GPL-2.0
20 __u8 payload[64 - sizeof(struct udphdr)
21 - sizeof(struct ethhdr) - sizeof(struct ipv6hdr)];
31 - offsetof(struct udp_packet, udp)),
38 - offsetof(struct udp_packet, udp)),
60 /* The maximum permissible size is: PAGE_SIZE - sizeof(struct xdp_page_head) -
61 * SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) - XDP_PACKET_HEADROOM =
62 * 3408 bytes for 64-byte cacheline and 3216 for 256-byte one.
71 char data[MAX_PKT_SIZE + 1] = {}; in test_max_pkt_size() local
74 .data_in = &data, in test_max_pkt_size()
[all …]
/linux-6.14.4/drivers/platform/x86/amd/pmf/
Dcnqf.c1 // SPDX-License-Identifier: GPL-2.0
8 * Author: Shyam Sundar S K <Shyam-sundar.S-[email protected]>
34 static void amd_pmf_cnqf_dump_defaults(struct apmf_dyn_slider_output *data, int idx) in amd_pmf_cnqf_dump_defaults() argument
38 pr_debug("Dynamic Slider %s Defaults - BEGIN\n", idx ? "DC" : "AC"); in amd_pmf_cnqf_dump_defaults()
39 pr_debug("size: %u\n", data->size); in amd_pmf_cnqf_dump_defaults()
40 pr_debug("flags: 0x%x\n", data->flags); in amd_pmf_cnqf_dump_defaults()
43 pr_debug("t_perf_to_turbo: %u ms\n", data->t_perf_to_turbo); in amd_pmf_cnqf_dump_defaults()
44 pr_debug("t_balanced_to_perf: %u ms\n", data->t_balanced_to_perf); in amd_pmf_cnqf_dump_defaults()
45 pr_debug("t_quiet_to_balanced: %u ms\n", data->t_quiet_to_balanced); in amd_pmf_cnqf_dump_defaults()
46 pr_debug("t_balanced_to_quiet: %u ms\n", data->t_balanced_to_quiet); in amd_pmf_cnqf_dump_defaults()
[all …]
/linux-6.14.4/drivers/pci/hotplug/
Dcpqphp_sysfs.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001,2003 Greg Kroah-Hartman ([email protected])
30 char *out = buf; in show_ctrl() local
34 out += sprintf(buf, "Free resources: memory\n"); in show_ctrl()
36 res = ctrl->mem_head; in show_ctrl()
37 while (res && index--) { in show_ctrl()
38 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl()
39 res = res->next; in show_ctrl()
41 out += sprintf(out, "Free resources: prefetchable memory\n"); in show_ctrl()
43 res = ctrl->p_mem_head; in show_ctrl()
[all …]
/linux-6.14.4/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.h1 /* SPDX-License-Identifier: GPL-2.0-only */
48 /*! Read the raw table data from the specified row of the Egress CTL
50 * rec - [OUT] The raw table row data will be unpacked into the fields of rec.
51 * table_index - The table row to read (max 23).
57 /*! Pack the fields of rec, and write the packed data into the
59 * rec - [IN] The bitfield values to write to the table row.
60 * table_index - The table row to write(max 23).
66 /*! Read the raw table data from the specified row of the Egress
68 * rec - [OUT] The raw table row data will be unpacked into the fields of rec.
69 * table_index - The table row to read (max 47).
[all …]
/linux-6.14.4/fs/bcachefs/
Dbkey_sort.c1 // SPDX-License-Identifier: GPL-2.0
15 return !iter->used; in sort_iter_end()
24 i + 1 < iter->used && in sort_iter_sift()
25 cmp(iter->b, iter->data[i].k, iter->data[i + 1].k) > 0; in sort_iter_sift()
27 swap(iter->data[i], iter->data[i + 1]); in sort_iter_sift()
32 unsigned i = iter->used; in sort_iter_sort()
34 while (i--) in sort_iter_sort()
40 return !sort_iter_end(iter) ? iter->data->k : NULL; in sort_iter_peek()
45 struct sort_iter_set *i = iter->data; in sort_iter_advance()
47 BUG_ON(!iter->used); in sort_iter_advance()
[all …]
/linux-6.14.4/drivers/power/supply/
D88pm860x_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
69 /* OCV -- Open Circuit Voltage */
84 * corresponding resistor value -- Ohm / C degeree.
86 #define TBAT_NEG_25D 127773 /* -25 */
87 #define TBAT_NEG_10D 54564 /* -10 */
152 * register 1 bit[7:0] -- bit[11:4] of measured value of voltage
153 * register 0 bit[3:0] -- bit[3:0] of measured value of voltage
156 int offset, int *data) in measure_12bit_voltage() argument
161 ret = pm860x_bulk_read(info->i2c, offset, 2, buf); in measure_12bit_voltage()
165 *data = ((buf[0] & 0xff) << 4) | (buf[1] & 0x0f); in measure_12bit_voltage()
[all …]

12345678910>>...45