Home
last modified time | relevance | path

Searched +full:byte +full:- +full:len (Results 1 – 25 of 1255) sorted by relevance

12345678910>>...51

/kernel/linux/linux-6.6/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2013-2014, Intel Corporation.
13 #include "intel-pt-pkt-decoder.h"
77 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, in intel_pt_get_long_tnt() argument
83 if (len < 8) in intel_pt_get_long_tnt()
88 for (count = 47; count; count--) { in intel_pt_get_long_tnt()
94 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
95 packet->count = count; in intel_pt_get_long_tnt()
96 packet->payload = payload << 1; in intel_pt_get_long_tnt()
100 static int intel_pt_get_pip(const unsigned char *buf, size_t len, in intel_pt_get_pip() argument
[all …]
/kernel/linux/linux-5.10/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2013-2014, Intel Corporation.
13 #include "intel-pt-pkt-decoder.h"
76 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, in intel_pt_get_long_tnt() argument
82 if (len < 8) in intel_pt_get_long_tnt()
87 for (count = 47; count; count--) { in intel_pt_get_long_tnt()
93 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
94 packet->count = count; in intel_pt_get_long_tnt()
95 packet->payload = payload << 1; in intel_pt_get_long_tnt()
99 static int intel_pt_get_pip(const unsigned char *buf, size_t len, in intel_pt_get_pip() argument
[all …]
/kernel/linux/linux-5.10/arch/ia64/lib/
Dclear_user.S1 /* SPDX-License-Identifier: GPL-2.0 */
11 * Copyright (C) 1998, 1999, 2001 Hewlett-Packard Co
22 #define len r33 macro
37 // - we check whether or not the buffer is small, i.e., less than 17
38 // in which case we do the byte by byte loop.
40 // - Otherwise we go progressively from 1 byte store to 8byte store in
41 // the head part, the body is a 16byte store loop and we finish we the
60 cmp.eq p6,p0=r0,len // check for zero length
65 adds tmp=-1,len // br.ctop is repeat/until
66 mov ret0=len // return value is length at this point
[all …]
Dcopy_user.S1 /* SPDX-License-Identifier: GPL-2.0 */
23 * Copyright (C) 2000-2001 Hewlett-Packard Co
27 * - handle the case where we have more than 16 bytes and the alignment
29 * - more benchmarking
30 * - fix extraneous stop bit introduced by the EX() macro.
39 #define COPY_BREAK 16 // we do byte copy below (must be >=16)
42 #define EPI p[PIPE_DEPTH-1]
49 #define len in2 macro
83 adds len2=-1,len // br.ctop is repeat/until
86 ;; // RAW of cfm when len=0
[all …]
/kernel/linux/linux-6.6/arch/ia64/lib/
Dclear_user.S1 /* SPDX-License-Identifier: GPL-2.0 */
11 * Copyright (C) 1998, 1999, 2001 Hewlett-Packard Co
22 #define len r33 macro
37 // - we check whether or not the buffer is small, i.e., less than 17
38 // in which case we do the byte by byte loop.
40 // - Otherwise we go progressively from 1 byte store to 8byte store in
41 // the head part, the body is a 16byte store loop and we finish we the
60 cmp.eq p6,p0=r0,len // check for zero length
65 adds tmp=-1,len // br.ctop is repeat/until
66 mov ret0=len // return value is length at this point
[all …]
Dcopy_user.S1 /* SPDX-License-Identifier: GPL-2.0 */
23 * Copyright (C) 2000-2001 Hewlett-Packard Co
27 * - handle the case where we have more than 16 bytes and the alignment
29 * - more benchmarking
30 * - fix extraneous stop bit introduced by the EX() macro.
39 #define COPY_BREAK 16 // we do byte copy below (must be >=16)
42 #define EPI p[PIPE_DEPTH-1]
49 #define len in2 macro
83 adds len2=-1,len // br.ctop is repeat/until
86 ;; // RAW of cfm when len=0
[all …]
/kernel/linux/linux-5.10/tools/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2017-2018, Arm Ltd.
12 #include "arm-spe-pkt-decoder.h"
63 [ARM_SPE_OP_TYPE] = "OP-TYPE",
65 [ARM_SPE_DATA_SOURCE] = "DATA-SOURCE",
74 * which is in bits 5:4 of the byte.
75 * 00 : byte
80 static int payloadlen(unsigned char byte) in payloadlen() argument
82 return 1 << ((byte & 0x30) >> 4); in payloadlen()
85 static int arm_spe_get_payload(const unsigned char *buf, size_t len, in arm_spe_get_payload() argument
[all …]
/kernel/linux/linux-6.6/arch/xtensa/lib/
Dstrncpy_user.S8 * Returns: -EFAULT if exception before terminator, N if the entire
20 * char *__strncpy_user(char *dst, const char *src, size_t len)
40 # a4/ len
53 # a2/ dst, a3/ src, a4/ len
55 beqz a4, .Lret # if len is zero
56 movi a5, MASK0 # mask for byte 0
57 movi a6, MASK1 # mask for byte 1
58 movi a7, MASK2 # mask for byte 2
59 movi a8, MASK3 # mask for byte 3
60 bbsi.l a3, 0, .Lsrc1mod2 # if only 8-bit aligned
[all …]
Dchecksum.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
23 * unsigned int csum_partial(const unsigned char *buf, int len,
26 * a3 = len
29 * This function assumes 2- or 4-byte alignment. Other alignments will fail!
32 /* ONES_ADD converts twos-complement math to ones-complement. */
44 * is aligned on either a 2-byte or 4-byte boundary.
48 bnez a5, 8f /* branch if 2-byte aligned */
49 /* Fall-through on common case, 4-byte alignment */
51 srli a5, a3, 5 /* 32-byte chunks */
57 add a5, a5, a2 /* a5 = end of last 32-byte chunk */
[all …]
/kernel/linux/linux-5.10/arch/xtensa/lib/
Dstrncpy_user.S8 * Returns: -EFAULT if exception before terminator, N if the entire
20 * char *__strncpy_user(char *dst, const char *src, size_t len)
40 # a4/ len
54 # a2/ dst, a3/ src, a4/ len
56 beqz a4, .Lret # if len is zero
57 movi a5, MASK0 # mask for byte 0
58 movi a6, MASK1 # mask for byte 1
59 movi a7, MASK2 # mask for byte 2
60 movi a8, MASK3 # mask for byte 3
61 bbsi.l a3, 0, .Lsrc1mod2 # if only 8-bit aligned
[all …]
Dchecksum.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
23 * unsigned int csum_partial(const unsigned char *buf, int len,
26 * a3 = len
29 * This function assumes 2- or 4-byte alignment. Other alignments will fail!
32 /* ONES_ADD converts twos-complement math to ones-complement. */
44 * is aligned on either a 2-byte or 4-byte boundary.
48 bnez a5, 8f /* branch if 2-byte aligned */
49 /* Fall-through on common case, 4-byte alignment */
51 srli a5, a3, 5 /* 32-byte chunks */
57 add a5, a5, a2 /* a5 = end of last 32-byte chunk */
[all …]
/kernel/linux/linux-5.10/drivers/tty/
Dehv_bytechan.c1 // SPDX-License-Identifier: GPL-2.0
2 /* ePAPR hypervisor byte channel device driver
4 * Copyright 2009-2011 Freescale Semiconductor, Inc.
9 * ePAPR hypervisor byte channels.
11 * 1) An early-console (udbg) driver. This provides early console output
12 * through a byte channel. The byte channel handle must be specified in a
15 * 2) A normal console driver. Output is sent to the byte channel designated
19 * 3) A tty driver, which is used to handle user-space input and output. The
20 * byte channel used for the console is designated as the default tty.
43 /* Per-byte channel private data */
[all …]
/kernel/linux/linux-6.6/drivers/tty/
Dehv_bytechan.c1 // SPDX-License-Identifier: GPL-2.0
2 /* ePAPR hypervisor byte channel device driver
4 * Copyright 2009-2011 Freescale Semiconductor, Inc.
9 * ePAPR hypervisor byte channels.
11 * 1) An early-console (udbg) driver. This provides early console output
12 * through a byte channel. The byte channel handle must be specified in a
15 * 2) A normal console driver. Output is sent to the byte channel designated
19 * 3) A tty driver, which is used to handle user-space input and output. The
20 * byte channel used for the console is designated as the default tty.
43 /* Per-byte channel private data */
[all …]
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_krb5_keys.c69 * This is the n-fold function as described in rfc3961, sec 5.1
77 int byte, i, msbit; in krb5_nfold() local
91 byte = 0; in krb5_nfold()
95 for (i = ulcm-1; i >= 0; i--) { in krb5_nfold()
96 /* compute the msbit in k which gets added into this byte */ in krb5_nfold()
99 * unrotated byte */ in krb5_nfold()
100 ((inbits << 3) - 1) in krb5_nfold()
101 /* then, for each byte, shift to the right in krb5_nfold()
104 /* last, pick out the correct byte within in krb5_nfold()
106 + ((inbits - (i % inbits)) << 3) in krb5_nfold()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/tm6000/
Dtm6000-i2c.c1 // SPDX-License-Identifier: GPL-2.0
2 // tm6000-i2c.c - driver for TM5600/TM6000/TM6010 USB video capture devices
4 // Copyright (c) 2006-2007 Mauro Carvalho Chehab <mchehab@kernel.org>
7 // - Fix SMBus Read Byte command
15 #include "tm6000-regs.h"
16 #include <media/v4l2-common.h>
18 #include "tuner-xc2028.h"
21 /* ----------------------------------------------------------- */
29 dev->name, __func__, ##args); } while (0)
32 __u8 reg, char *buf, int len) in tm6000_i2c_send_regs() argument
[all …]
/kernel/linux/linux-6.6/lib/
Dasn1_encoder.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * asn1_encode_integer() - encode positive integer to ASN.1
16 * @end_data: end of data pointer, points one beyond last usable byte in @data
27 int data_len = end_data - data; in asn1_encode_integer()
34 return ERR_PTR(-EINVAL); in asn1_encode_integer()
41 return ERR_PTR(-EINVAL); in asn1_encode_integer()
44 data_len -= 2; in asn1_encode_integer()
52 for (i = sizeof(integer); i > 0 ; i--) { in asn1_encode_integer()
53 int byte = integer >> (8 * (i - 1)); in asn1_encode_integer() local
55 if (!found && byte == 0) in asn1_encode_integer()
[all …]
/kernel/linux/linux-5.10/fs/ntfs/
Dbitmap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * bitmap.c - NTFS kernel bitmap handling. Part of the Linux-NTFS project.
5 * Copyright (c) 2004-2005 Anton Altaparmakov
18 * __ntfs_bitmap_set_bits_in_run - set a run of bits in a bitmap to a value
31 * Return 0 on success and -errno on error.
41 int pos, len; in __ntfs_bitmap_set_bits_in_run() local
46 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run()
54 * bits, i.e. @start_bit and @start_bit + @cnt - 1, respectively. in __ntfs_bitmap_set_bits_in_run()
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
60 mapping = vi->i_mapping; in __ntfs_bitmap_set_bits_in_run()
[all …]
/kernel/linux/linux-6.6/fs/ntfs/
Dbitmap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * bitmap.c - NTFS kernel bitmap handling. Part of the Linux-NTFS project.
5 * Copyright (c) 2004-2005 Anton Altaparmakov
18 * __ntfs_bitmap_set_bits_in_run - set a run of bits in a bitmap to a value
31 * Return 0 on success and -errno on error.
41 int pos, len; in __ntfs_bitmap_set_bits_in_run() local
46 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run()
54 * bits, i.e. @start_bit and @start_bit + @cnt - 1, respectively. in __ntfs_bitmap_set_bits_in_run()
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
60 mapping = vi->i_mapping; in __ntfs_bitmap_set_bits_in_run()
[all …]
/kernel/linux/linux-6.6/drivers/parport/
Dieee1284_ops.c1 // SPDX-License-Identifier: GPL-2.0
2 /* IEEE-1284 operations for parport.
5 * they are used by the low-level drivers. If they have a special way
7 * the function pointers in port->ops); if not, they can just use these
31 * One-way data transfer functions. *
36 const void *buffer, size_t len, in parport_ieee1284_write_compat() argument
42 unsigned char byte; in parport_ieee1284_write_compat() local
43 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat()
47 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat()
52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat()
[all …]
/kernel/linux/linux-5.10/drivers/parport/
Dieee1284_ops.c1 // SPDX-License-Identifier: GPL-2.0
2 /* IEEE-1284 operations for parport.
5 * they are used by the low-level drivers. If they have a special way
7 * the function pointers in port->ops); if not, they can just use these
31 * One-way data transfer functions. *
36 const void *buffer, size_t len, in parport_ieee1284_write_compat() argument
42 unsigned char byte; in parport_ieee1284_write_compat() local
43 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat()
47 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat()
52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/
Di2c-stub.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 i2c-stub.c - I2C/SMBus chip emulator
6 Copyright (C) 2007-2014 Jean Delvare <jdelvare@suse.de>
11 #define pr_fmt(fmt) "i2c-stub: " fmt
48 module_param_array(bank_reg, byte, NULL, S_IRUGO);
52 module_param_array(bank_mask, byte, NULL, S_IRUGO);
56 module_param_array(bank_start, byte, NULL, S_IRUGO);
60 module_param_array(bank_end, byte, NULL, S_IRUGO);
66 u8 len; member
72 u16 words[256]; /* Byte operations use the LSB as per SMBus
[all …]
/kernel/linux/linux-6.6/drivers/i2c/
Di2c-stub.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 i2c-stub.c - I2C/SMBus chip emulator
6 Copyright (C) 2007-2014 Jean Delvare <jdelvare@suse.de>
10 #define pr_fmt(fmt) "i2c-stub: " fmt
47 module_param_array(bank_reg, byte, NULL, S_IRUGO);
51 module_param_array(bank_mask, byte, NULL, S_IRUGO);
55 module_param_array(bank_start, byte, NULL, S_IRUGO);
59 module_param_array(bank_end, byte, NULL, S_IRUGO);
65 u8 len; member
71 u16 words[256]; /* Byte operations use the LSB as per SMBus
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_smi_events.c63 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_poll()
66 poll_wait(filep, &client->wait_queue, wait); in kfd_smi_ev_poll()
68 spin_lock(&client->lock); in kfd_smi_ev_poll()
69 if (!kfifo_is_empty(&client->fifo)) in kfd_smi_ev_poll()
71 spin_unlock(&client->lock); in kfd_smi_ev_poll()
81 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_read()
86 return -ENOMEM; in kfd_smi_ev_read()
91 spin_lock(&client->lock); in kfd_smi_ev_read()
92 to_copy = kfifo_len(&client->fifo); in kfd_smi_ev_read()
94 spin_unlock(&client->lock); in kfd_smi_ev_read()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
Dcx231xx-i2c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 cx231xx-i2c.c - driver for Conexant Cx23100/101/102 USB video capture devices
15 #include <linux/i2c-mux.h>
16 #include <media/v4l2-common.h>
20 /* ----------------------------------------------------------- */
41 dev->name, __func__ , ##args); \
48 return dev->port_3_switch_enabled ? I2C_1_MUX_3 : I2C_1_MUX_1; in get_real_i2c_port()
55 int i2c_port = get_real_i2c_port(dev, bus->nr); in is_tuner()
57 if (i2c_port != dev->board.tuner_i2c_master) in is_tuner()
60 if (msg->addr != dev->board.tuner_addr) in is_tuner()
[all …]
/kernel/linux/linux-6.6/drivers/media/usb/cx231xx/
Dcx231xx-i2c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 cx231xx-i2c.c - driver for Conexant Cx23100/101/102 USB video capture devices
15 #include <linux/i2c-mux.h>
16 #include <media/v4l2-common.h>
20 /* ----------------------------------------------------------- */
41 dev->name, __func__ , ##args); \
48 return dev->port_3_switch_enabled ? I2C_1_MUX_3 : I2C_1_MUX_1; in get_real_i2c_port()
55 int i2c_port = get_real_i2c_port(dev, bus->nr); in is_tuner()
57 if (i2c_port != dev->board.tuner_i2c_master) in is_tuner()
60 if (msg->addr != dev->board.tuner_addr) in is_tuner()
[all …]

12345678910>>...51