Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dvenc_vpu_if.c1 // SPDX-License-Identifier: GPL-2.0
12 static void handle_enc_init_msg(struct venc_vpu_inst *vpu, const void *data) in handle_enc_init_msg() argument
14 const struct venc_vpu_ipi_msg_init *msg = data; in handle_enc_init_msg()
16 vpu->inst_addr = msg->vpu_inst_addr; in handle_enc_init_msg()
17 vpu->vsi = mtk_vcodec_fw_map_dm_addr(vpu->ctx->dev->fw_handler, in handle_enc_init_msg()
18 msg->vpu_inst_addr); in handle_enc_init_msg()
21 if (vpu->ctx->dev->venc_pdata->chip == MTK_MT8173) in handle_enc_init_msg()
26 msg->venc_abi_version); in handle_enc_init_msg()
27 switch (msg->venc_abi_version) { in handle_enc_init_msg()
32 msg->venc_abi_version); in handle_enc_init_msg()
[all …]
/kernel/linux/linux-5.10/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 <pb@linuxtv.de>
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/drivers/media/usb/dvb-usb/
Dttusb2.h2 * (e.g. Pinnacle 400e DVB-S USB2.0).
6 * Copyright (C) 2005-6 Patrick Boettcher <pb@linuxtv.de>
12 * see Documentation/media/dvb-drivers/dvb-usb.rst for more information
19 * always to messages (out/in)
20 * out message:
21 * 0xaa <id> <cmdbyte> <datalen> <data...>
24 * 0x55 <id> <cmdbyte> <datalen> <data...>
30 /* out data: <byte>[28]
34 /* out data: nothing */
37 /* out data: <on=1/off=0> */
[all …]
/kernel/linux/linux-4.19/drivers/media/platform/mtk-vcodec/
Dvenc_vpu_if.c20 static void handle_enc_init_msg(struct venc_vpu_inst *vpu, void *data) in handle_enc_init_msg() argument
22 struct venc_vpu_ipi_msg_init *msg = data; in handle_enc_init_msg()
24 vpu->inst_addr = msg->vpu_inst_addr; in handle_enc_init_msg()
25 vpu->vsi = vpu_mapping_dm_addr(vpu->dev, msg->vpu_inst_addr); in handle_enc_init_msg()
28 static void handle_enc_encode_msg(struct venc_vpu_inst *vpu, void *data) in handle_enc_encode_msg() argument
30 struct venc_vpu_ipi_msg_enc *msg = data; in handle_enc_encode_msg()
32 vpu->state = msg->state; in handle_enc_encode_msg()
33 vpu->bs_size = msg->bs_size; in handle_enc_encode_msg()
34 vpu->is_key_frm = msg->is_key_frm; in handle_enc_encode_msg()
37 static void vpu_enc_ipi_handler(void *data, unsigned int len, void *priv) in vpu_enc_ipi_handler() argument
[all …]
/kernel/linux/linux-4.19/drivers/hid/
Dhid-picolcd.h2 * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> *
37 #define REPORT_LED_STATE 0x81 /* LCD: OUT[1] */
38 #define REPORT_BRIGHTNESS 0x91 /* LCD: OUT[1] */
39 #define REPORT_CONTRAST 0x92 /* LCD: OUT[1] */
40 #define REPORT_RESET 0x93 /* LCD: OUT[2] */
41 #define REPORT_LCD_CMD 0x94 /* LCD: OUT[63] */
42 #define REPORT_LCD_DATA 0x95 /* LCD: OUT[63] */
43 #define REPORT_LCD_CMD_DATA 0x96 /* LCD: OUT[63] */
44 #define REPORT_EE_READ 0xa3 /* LCD: OUT[63] */
45 #define REPORT_EE_WRITE 0xa4 /* LCD: OUT[63] */
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/x86/crypto/
Dsha1_ssse3_glue.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * Copyright (c) Jean-Francois Dive <jef@linuxbe.org>
29 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update() argument
35 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_update()
36 return crypto_sha1_update(desc, data, len); in sha1_update()
40 * 160-bit internal state, as this is what the asm functions expect. in sha1_update()
45 sha1_base_do_update(desc, data, len, sha1_xform); in sha1_update()
51 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup() argument
52 unsigned int len, u8 *out, sha1_block_fn *sha1_xform) in sha1_finup() argument
55 return crypto_sha1_finup(desc, data, len, out); in sha1_finup()
[all …]
Dcrc32c-intel_glue.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Intel(R) 64 and IA-32 Architectures Software Developer's Manual
8 * Volume 2A: Instruction Set Reference, A-M
48 static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length) in crc32c_intel_le_hw_byte() argument
50 while (length--) { in crc32c_intel_le_hw_byte()
52 : "+r" (crc) : "rm" (*data)); in crc32c_intel_le_hw_byte()
53 data++; in crc32c_intel_le_hw_byte()
65 while (iquotient--) { in crc32c_intel_le_hw()
89 return -EINVAL; in crc32c_intel_setkey()
96 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_intel_init()
[all …]
Dsha256_ssse3_glue.c24 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
44 const u8 *data, int blocks);
46 static int _sha256_update(struct shash_desc *desc, const u8 *data, in _sha256_update() argument
52 (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in _sha256_update()
53 return crypto_sha256_update(desc, data, len); in _sha256_update()
57 * 256-bit internal state, as this is what the asm functions expect. in _sha256_update()
62 sha256_base_do_update(desc, data, len, sha256_xform); in _sha256_update()
68 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup() argument
69 unsigned int len, u8 *out, sha256_block_fn *sha256_xform) in sha256_finup() argument
72 return crypto_sha256_finup(desc, data, len, out); in sha256_finup()
[all …]
/kernel/linux/linux-5.10/net/core/
Dflow_offload.c1 /* SPDX-License-Identifier: GPL-2.0 */
19 rule->action.num_entries = num_actions; in flow_rule_alloc()
20 /* Pre-fill each action hw_stats with DONT_CARE. in flow_rule_alloc()
24 rule->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in flow_rule_alloc()
31 const struct flow_match *__m = &(__rule)->match; \
32 struct flow_dissector *__d = (__m)->dissector; \
34 (__out)->key = skb_flow_dissector_target(__d, __type, (__m)->key); \
35 (__out)->mask = skb_flow_dissector_target(__d, __type, (__m)->mask); \
38 struct flow_match_meta *out) in flow_rule_match_meta() argument
40 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_META, out); in flow_rule_match_meta()
[all …]
/kernel/linux/linux-4.19/arch/x86/crypto/
Dsha1_ssse3_glue.c11 * Copyright (c) Jean-Francois Dive <jef@linuxbe.org>
34 typedef void (sha1_transform_fn)(u32 *digest, const char *data,
37 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update() argument
43 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_update()
44 return crypto_sha1_update(desc, data, len); in sha1_update()
50 sha1_base_do_update(desc, data, len, in sha1_update()
57 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup() argument
58 unsigned int len, u8 *out, sha1_transform_fn *sha1_xform) in sha1_finup() argument
61 return crypto_sha1_finup(desc, data, len, out); in sha1_finup()
65 sha1_base_do_update(desc, data, len, in sha1_finup()
[all …]
Dsha256_ssse3_glue.c24 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
43 asmlinkage void sha256_transform_ssse3(u32 *digest, const char *data,
45 typedef void (sha256_transform_fn)(u32 *digest, const char *data, u64 rounds);
47 static int sha256_update(struct shash_desc *desc, const u8 *data, in sha256_update() argument
53 (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in sha256_update()
54 return crypto_sha256_update(desc, data, len); in sha256_update()
60 sha256_base_do_update(desc, data, len, in sha256_update()
67 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup() argument
68 unsigned int len, u8 *out, sha256_transform_fn *sha256_xform) in sha256_finup() argument
71 return crypto_sha256_finup(desc, data, len, out); in sha256_finup()
[all …]
/kernel/linux/linux-5.10/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->mdev->port_caps[port_num - 1].has_smi; in can_do_mad_ifc()
62 return -EPERM; in mlx5_MAD_IFC()
72 return mlx5_cmd_mad_ifc(dev->mdev, in_mad, response_mad, op_modifier, in mlx5_MAD_IFC()
77 void *out) in pma_cnt_ext_assign() argument
[all …]
/kernel/liteos_m/targets/riscv_nuclei_gd32vf103_soc_gcc/SoC/gd32vf103/Common/Source/Drivers/
Dgd32vf103_bkp.c5 \version 2019-6-5, V1.0.0, firmware for GD32VF103
28 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
43 \param[out] none
54 \brief write BKP data register
57 \arg BKP_DATA_x(x = 0..41): bkp data register number x
58 \param[in] data: the data to be write in BKP data register
59 \param[out] none
62 void bkp_data_write(bkp_data_register_enum register_number, uint16_t data) in bkp_data_write() argument
65 BKP_DATA10_41(register_number - 1U) = data; in bkp_data_write()
[all …]
/kernel/linux/linux-5.10/drivers/staging/fwserial/
Ddma_fifo.c1 // SPDX-License-Identifier: GPL-2.0+
3 * DMA-able FIFO implementation
22 fifo->corrupt = !!(condition); \
23 WARN(fifo->corrupt, format); \
31 return check - (lo + 1) < (hi - 1) - lo; in addr_check()
36 * @fifo: address of in-place "struct dma_fifo" object
41 INIT_LIST_HEAD(&fifo->pending); in dma_fifo_init()
45 * dma_fifo_alloc - initialize and allocate dma_fifo
46 * @fifo: address of in-place "struct dma_fifo" object
64 return -EINVAL; in dma_fifo_alloc()
[all …]
/kernel/linux/linux-4.19/drivers/staging/fwserial/
Ddma_fifo.c1 // SPDX-License-Identifier: GPL-2.0+
3 * DMA-able FIFO implementation
22 fifo->corrupt = !!(condition); \
23 WARN(fifo->corrupt, format); \
31 return check - (lo + 1) < (hi - 1) - lo; in addr_check()
36 * @fifo: address of in-place "struct dma_fifo" object
41 INIT_LIST_HEAD(&fifo->pending); in dma_fifo_init()
45 * dma_fifo_alloc - initialize and allocate dma_fifo
46 * @fifo: address of in-place "struct dma_fifo" object
64 return -EINVAL; in dma_fifo_alloc()
[all …]
/kernel/linux/linux-5.10/lib/
Dkfifo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused()
33 fifo->in = 0; in __kfifo_alloc()
34 fifo->out = 0; in __kfifo_alloc()
35 fifo->esize = esize; in __kfifo_alloc()
38 fifo->data = NULL; in __kfifo_alloc()
39 fifo->mask = 0; in __kfifo_alloc()
40 return -EINVAL; in __kfifo_alloc()
43 fifo->data = kmalloc_array(esize, size, gfp_mask); in __kfifo_alloc()
45 if (!fifo->data) { in __kfifo_alloc()
[all …]
/kernel/linux/linux-4.19/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->mdev->port_caps[port_num - 1].has_smi; in can_do_mad_ifc()
61 return -EPERM; in mlx5_MAD_IFC()
71 return mlx5_core_mad_ifc(dev->mdev, in_mad, response_mad, op_modifier, port); in mlx5_MAD_IFC()
81 slid = in_wc ? ib_lid_cpu16(in_wc->slid) : be16_to_cpu(IB_LID_PERMISSIVE); in process_mad()
[all …]
/kernel/linux/linux-4.19/fs/nfs/
Dnfs42xdr.c1 // SPDX-License-Identifier: GPL-2.0
137 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
138 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
139 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
155 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_copy()
156 encode_nfs4_stateid(xdr, &args->dst_stateid); in encode_copy()
158 encode_uint64(xdr, args->src_pos); in encode_copy()
159 encode_uint64(xdr, args->dst_pos); in encode_copy()
160 encode_uint64(xdr, args->count); in encode_copy()
163 encode_uint32(xdr, args->sync); in encode_copy()
[all …]
/kernel/linux/linux-5.10/fs/nfs/
Dnfs42xdr.c1 // SPDX-License-Identifier: GPL-2.0
239 * These values specify the maximum amount of data that is not
264 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
265 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
266 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
280 encode_uint32(xdr, ns->nl4_type); in encode_nl4_server()
281 switch (ns->nl4_type) { in encode_nl4_server()
284 encode_string(xdr, ns->u.nl4_str_sz, ns->u.nl4_str); in encode_nl4_server()
287 encode_string(xdr, ns->u.nl4_addr.netid_len, in encode_nl4_server()
288 ns->u.nl4_addr.netid); in encode_nl4_server()
[all …]
/kernel/linux/linux-4.19/drivers/pci/hotplug/
Dcpqphp_sysfs.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001,2003 Greg Kroah-Hartman (greg@kroah.com)
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 …]
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Dcpqphp_sysfs.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001,2003 Greg Kroah-Hartman (greg@kroah.com)
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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...44