/Linux-v6.6/arch/csky/mm/ |
D | cachev1.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 8 /* for L1-cache */ 17 /* for L2-cache */ 32 static void cache_op_all(unsigned int value, unsigned int l2) in cache_op_all() argument 34 mtcr("cr17", value | CACHE_CLR); in cache_op_all() 38 mtcr("cr24", value | CACHE_CLR); in cache_op_all() 44 unsigned int start, in cache_op_range() argument 46 unsigned int value, in cache_op_range() argument 50 unsigned int val = value | CACHE_CLR | CACHE_OMS; in cache_op_range() [all …]
|
/Linux-v6.6/include/linux/ |
D | minmax.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * - avoid multiple evaluations of the arguments (so side-effects like 12 * "x++" happen only once) when non-constant. 13 * - perform strict type-checking (to generate warnings instead of 16 * - retain result as a constant expressions when called with only 64 * min - return minimum of two values of the same or compatible types 65 * @x: first value 66 * @y: second value 71 * max - return maximum of two values of the same or compatible types 72 * @x: first value [all …]
|
D | bitmap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 * specific are in various include/asm-<arch>/bitops.h headers 36 * compile-time and at most BITS_PER_LONG. 78 * bitmap_get_value8(map, start) Get 8bit value from map at start 79 * bitmap_set_value8(map, value, start) Set 8bit value to map at start 97 * test_and_set_bit(bit, addr) Set bit and return old value 98 * test_and_clear_bit(bit, addr) Clear bit and return old value 99 * test_and_change_bit(bit, addr) Change bit and return old value 115 * contain all bit positions from 0 to 'bits' - 1. 170 void __bitmap_set(unsigned long *map, unsigned int start, int len); [all …]
|
/Linux-v6.6/tools/testing/fault-injection/ |
D | failcmd.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # failcmd.sh - run a command with injecting slab/page allocation failures 8 # failcmd.sh --help 24 -p percent 25 --probability=percent 27 Default value is 1 29 -t value 30 --times=value 32 Default value is 1 34 --oom-kill-allocating-task=value [all …]
|
/Linux-v6.6/Documentation/netlink/ |
D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 31 enum: [ netlink-raw ] # Trim 32 # Start netlink-raw 34 description: Protocol number to use for netlink-raw [all …]
|
D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 35 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim 36 uapi-header: 37 description: Path to the uAPI header, default is linux/${family-name}.h [all …]
|
/Linux-v6.6/tools/lib/ |
D | string.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * memdup - duplicate region of memory 40 * strtobool - convert common user inputs into boolean values 45 * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value 51 return -EINVAL; in strtobool() 82 return -EINVAL; in strtobool() 86 * strlcpy - Copy a C-string into a sized buffer 92 * NUL-terminated string that fits in the buffer (unless, 101 #pragma clang diagnostic ignored "-Wignored-attributes" 108 size_t len = (ret >= size) ? size - 1 : ret; in strlcpy() [all …]
|
/Linux-v6.6/arch/powerpc/lib/ |
D | feature-fixups.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include <asm/code-patching.h> 30 unsigned long value; member 41 * the start of the alt_entry, to support the VDSO. This in calc_addr() 70 static int patch_feature_section_mask(unsigned long value, unsigned long mask, in patch_feature_section_mask() argument 73 u32 *start, *end, *alt_start, *alt_end, *src, *dest; in patch_feature_section_mask() local 75 start = calc_addr(fcur, fcur->start_off); in patch_feature_section_mask() 76 end = calc_addr(fcur, fcur->end_off); in patch_feature_section_mask() 77 alt_start = calc_addr(fcur, fcur->alt_start_off); in patch_feature_section_mask() 78 alt_end = calc_addr(fcur, fcur->alt_end_off); in patch_feature_section_mask() [all …]
|
/Linux-v6.6/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_vcap_impl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * https://github.com/microchip-ung/sparx-5_reginfo 66 .vtype = VCAP_TYPE_IS0, /* CLM-0 */ 72 .last_cid = SPARX5_VCAP_CID_IS0_L2 - 1, 73 .blockno = 8, /* Maps block 8-9 */ 78 .vtype = VCAP_TYPE_IS0, /* CLM-1 */ 84 .last_cid = SPARX5_VCAP_CID_IS0_L4 - 1, 85 .blockno = 6, /* Maps block 6-7 */ 90 .vtype = VCAP_TYPE_IS0, /* CLM-2 */ 97 .blockno = 4, /* Maps block 4-5 */ [all …]
|
/Linux-v6.6/fs/xfs/libxfs/ |
D | xfs_rtbitmap.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 65 int error; /* error value */ in xfs_rtbuf_get() 67 ip = issum ? mp->m_rsumip : mp->m_rbmip; in xfs_rtbuf_get() 74 return -EFSCORRUPTED; in xfs_rtbuf_get() 77 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_rtbuf_get() 79 mp->m_bsize, 0, &bp, &xfs_rtbuf_ops); in xfs_rtbuf_get() 90 * Searching backward from start to limit, find the first block whose 91 * allocated/free state is different from start's. 97 xfs_rtblock_t start, /* starting block to look at */ in xfs_rtfind_back() argument [all …]
|
/Linux-v6.6/drivers/gpu/drm/i915/display/ |
D | dvo_ns2501.c | 21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 89 * The higher the value, the lower the dithering depth. 102 #define NS2501_REG1C 0x1c /* low-part of the second register */ 103 #define NS2501_REG1D 0x1d /* high-part of the second register */ 108 * 2^16/control-value. The low-byte comes first. 110 #define NS2501_REG10 0x10 /* low-byte vertical scaler */ 111 #define NS2501_REG11 0x11 /* high-byte vertical scaler */ 112 #define NS2501_REGB8 0xb8 /* low-byte horizontal scaler */ 113 #define NS2501_REGB9 0xb9 /* high-byte horizontal scaler */ 117 * per dimension. One register pair defines the start of the [all …]
|
/Linux-v6.6/drivers/nvmem/ |
D | stm32-bsec-optee-ta.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * OP-TEE STM32MP BSEC PTA interface, used by STM32 ROMEM driver 5 * Copyright (C) 2022, STMicroelectronics - All Rights Reserved 10 #include "stm32-bsec-optee-ta.h" 15 * [in] value[0].a OTP start offset in byte 16 * [in] value[0].b Access type (0:shadow, 1:fuse, 2:lock) 21 * TEE_SUCCESS - Invoke command success 22 * TEE_ERROR_BAD_PARAMETERS - Incorrect input param 23 * TEE_ERROR_ACCESS_DENIED - OTP not accessible by caller 30 * [in] value[0].a OTP start offset in byte [all …]
|
/Linux-v6.6/drivers/net/ethernet/rocker/ |
D | rocker_tlv.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * drivers/net/ethernet/rocker/rocker_tlv.h - Rocker switch device driver 4 * Copyright (c) 2014-2016 Jiri Pirko <jiri@mellanox.com> 18 (((len) + ROCKER_TLV_ALIGNTO - 1) & ~(ROCKER_TLV_ALIGNTO - 1)) 21 /* <------- ROCKER_TLV_HDRLEN -------> <--- ROCKER_TLV_ALIGN(payload) ---> 22 * +-----------------------------+- - -+- - - - - - - - - - - - - - -+- - -+ 25 * +-----------------------------+- - -+- - - - - - - - - - - - - - -+- - -+ 26 * <--------------------------- tlv->len --------------------------> 32 int totlen = ROCKER_TLV_ALIGN(tlv->len); in rocker_tlv_next() 34 *remaining -= totlen; in rocker_tlv_next() [all …]
|
/Linux-v6.6/drivers/gpu/drm/meson/ |
D | meson_overlay.c | 1 // SPDX-License-Identifier: GPL-2.0+ 42 #define VD_X_START(value) FIELD_PREP(GENMASK(14, 0), value) argument 43 #define VD_X_END(value) FIELD_PREP(GENMASK(30, 16), value) argument 46 #define VD_Y_START(value) FIELD_PREP(GENMASK(12, 0), value) argument 47 #define VD_Y_END(value) FIELD_PREP(GENMASK(28, 16), value) argument 50 #define VD_COLOR_MAP(value) FIELD_PREP(GENMASK(1, 0), value) argument 53 #define VD_HORZ_Y_C_RATIO(value) FIELD_PREP(GENMASK(22, 21), value) argument 56 #define VD_VERT_INITIAL_PHASE(value) FIELD_PREP(GENMASK(11, 8), value) argument 57 #define VD_VERT_PHASE_STEP(value) FIELD_PREP(GENMASK(7, 1), value) argument 61 #define VD_H_END(value) FIELD_PREP(GENMASK(11, 0), value) argument [all …]
|
/Linux-v6.6/arch/riscv/kernel/ |
D | sbi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 unsigned long start, unsigned long size, 45 ret.value = a1; in sbi_ecall() 57 return -EPERM; in sbi_err_map_linux_errno() 59 return -EINVAL; in sbi_err_map_linux_errno() 61 return -EFAULT; in sbi_err_map_linux_errno() 65 return -ENOTSUPP; in sbi_err_map_linux_errno() 77 * There is no maximum hartid concept in RISC-V and NR_CPUS must not be in __sbi_v01_cpumask_to_hartmask() 96 * sbi_console_putchar() - Writes given character to the console device. 108 * sbi_console_getchar() - Reads a byte from console device. [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_ste_v0.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 116 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L2_1, .start = 16, .end = 47, 119 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L2_1, .start = 0, .end = 15, 122 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L2_2, .start = 32, .end = 47, 125 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L2_0, .start = 16, .end = 47, 128 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L2_0, .start = 0, .end = 15, 131 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L3_1, .start = 0, .end = 5, 134 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L4_0, .start = 48, .end = 56, 138 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L4_0, .start = 0, .end = 15, 142 .hw_field = DR_STE_V0_ACTION_MDFY_FLD_L4_0, .start = 16, .end = 31, [all …]
|
D | dr_ste_v1.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 140 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_SRC_L2_OUT_0, .start = 0, .end = 31, 143 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_SRC_L2_OUT_1, .start = 16, .end = 31, 146 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L2_OUT_1, .start = 0, .end = 15, 149 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L2_OUT_0, .start = 0, .end = 31, 152 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L2_OUT_1, .start = 16, .end = 31, 155 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L3_OUT_0, .start = 18, .end = 23, 158 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L4_OUT_1, .start = 16, .end = 24, 162 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L4_OUT_0, .start = 16, .end = 31, 166 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L4_OUT_0, .start = 0, .end = 15, [all …]
|
/Linux-v6.6/arch/s390/kernel/ |
D | dis.c | 1 // SPDX-License-Identifier: GPL-2.0 43 #define OPERAND_PCREL 0x100 /* Operand printed as pc-relative symbol */ 44 #define OPERAND_SIGNED 0x200 /* Operand printed as signed value */ 92 I8_8, /* 8 bit signed value starting at 8 */ 93 I8_32, /* 8 bit signed value starting at 32 */ 94 I16_16, /* 16 bit signed value starting at 16 */ 95 I16_32, /* 16 bit signed value starting at 32 */ 96 I32_16, /* 32 bit signed value starting at 16 */ 110 U4_8, /* 4 bit unsigned value starting at 8 */ 111 U4_12, /* 4 bit unsigned value starting at 12 */ [all …]
|
/Linux-v6.6/drivers/net/ipa/ |
D | ipa_qmi_msg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (C) 2018-2022 Linaro Ltd. 17 #define IPA_QMI_INDICATION_REGISTER 0x20 /* modem -> AP request */ 18 #define IPA_QMI_INIT_DRIVER 0x21 /* AP -> modem request */ 19 #define IPA_QMI_INIT_COMPLETE 0x22 /* AP -> modem indication */ 20 #define IPA_QMI_DRIVER_INIT_COMPLETE 0x35 /* modem -> AP request */ 27 #define IPA_QMI_INDICATION_REGISTER_REQ_SZ 20 /* -> server handle */ 28 #define IPA_QMI_INDICATION_REGISTER_RSP_SZ 7 /* <- server handle */ 29 #define IPA_QMI_INIT_DRIVER_REQ_SZ 162 /* client handle -> */ 30 #define IPA_QMI_INIT_DRIVER_RSP_SZ 25 /* client handle <- */ [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_trace.h | 36 job->base.s_fence->finished.ops->get_timeline_name(&job->base.s_fence->finished) 39 TP_PROTO(unsigned did, uint32_t reg, uint32_t value), 40 TP_ARGS(did, reg, value), 44 __field(uint32_t, value) 47 __entry->did = did; 48 __entry->reg = reg; 49 __entry->value = value; 52 (unsigned long)__entry->did, 53 (unsigned long)__entry->reg, 54 (unsigned long)__entry->value) [all …]
|
/Linux-v6.6/Documentation/filesystems/ |
D | seq_file.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 https://lwn.net/Articles/driver-porting/ 16 Virtual files can provide human-readable output that is easy to get at 23 string. But life gets trickier if the output is long - anything greater 26 position within the virtual file - that position is, likely as not, in the 68 - entry = create_proc_entry("sequence", 0, NULL); 69 - if (entry) 70 - entry->proc_fops = &ct_file_ops; 79 is able to move to a specific position - like the file they implement, 81 in whatever way is convenient - the iterator need only exist [all …]
|
/Linux-v6.6/drivers/hid/ |
D | hid-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> 7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc 8 * Copyright (c) 2006-2012 Jiri Kosina 33 #include <linux/hid-debug.h> 36 #include "hid-ids.h" 56 struct hid_report_enum *report_enum = device->report_enum + type; in hid_register_report() 61 if (report_enum->report_id_hash[id]) in hid_register_report() 62 return report_enum->report_id_hash[id]; in hid_register_report() 69 report_enum->numbered = 1; in hid_register_report() [all …]
|
/Linux-v6.6/arch/sh/boards/ |
D | board-sh7785lcr.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/sm501-regs.h> 17 #include <linux/platform_data/i2c-pca-platform.h> 18 #include <linux/i2c-algo-pca.h> 34 * Please look at include/asm-sh/sh7785lcr.h or hardware manual. 37 .start = PLD_LEDCR, 44 .id = -1, 80 .start = NOR_FLASH_ADDR, 81 .end = NOR_FLASH_ADDR + NOR_FLASH_SIZE - 1, 87 .name = "physmap-flash", [all …]
|
/Linux-v6.6/arch/sparc/kernel/ |
D | pci_common.c | 1 // SPDX-License-Identifier: GPL-2.0 25 if (bus < pbm->pci_first_busno || in config_out_of_range() 26 bus > pbm->pci_last_busno) in config_out_of_range() 36 unsigned long rbits = pbm->config_space_reg_bits; in sun4u_config_mkaddr() 41 reg = (reg & ((1 << rbits) - 1)); in sun4u_config_mkaddr() 45 return (void *) (pbm->config_space | bus | devfn | reg); in sun4u_config_mkaddr() 50 * Strange but true, and I see no language in the UltraSPARC-IIi 55 int where, int size, u32 *value) in sun4u_read_pci_cfg_host() argument 73 *value = tmp16 >> 8; in sun4u_read_pci_cfg_host() 75 *value = tmp16 & 0xff; in sun4u_read_pci_cfg_host() [all …]
|
/Linux-v6.6/drivers/char/tpm/ |
D | tpm_crb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 20 #include <linux/arm-smccc.h> 118 static bool crb_wait_for_reg_32(u32 __iomem *reg, u32 mask, u32 value, in crb_wait_for_reg_32() argument 121 ktime_t start; in crb_wait_for_reg_32() local 124 start = ktime_get(); in crb_wait_for_reg_32() 125 stop = ktime_add(start, ms_to_ktime(timeout)); in crb_wait_for_reg_32() 128 if ((ioread32(reg) & mask) == value) in crb_wait_for_reg_32() 134 return ((ioread32(reg) & mask) == value); in crb_wait_for_reg_32() 139 if (priv->sm != ACPI_TPM2_COMMAND_BUFFER_WITH_PLUTON) in crb_try_pluton_doorbell() [all …]
|