Home
last modified time | relevance | path

Searched +full:dont +full:- +full:validate (Results 1 – 25 of 78) sorted by relevance

1234

/kernel/linux/linux-6.6/Documentation/netlink/specs/
Ddevlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
10 -
12 name: sb-pool-type
14 -
16 -
19 attribute-sets:
20 -
22 name-prefix: devlink-attr-
24 -
[all …]
Dfou.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
8 Foo-over-UDP.
10 c-family-name: fou-genl-name
11 c-version-name: fou-genl-version
12 max-by-define: true
13 kernel-policy: global
16 -
19 name-prefix: fou-encap-
20 enum-name:
[all …]
/kernel/linux/linux-6.6/Documentation/netlink/
Dgenetlink.yaml1 # 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 ]
36 uapi-header:
37 description: Path to the uAPI header, default is linux/${family-name}.h
51 description: For C-compatible languages, header which already defines this value.
[all …]
Dgenetlink-c.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-c.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 ]
36 uapi-header:
37 description: Path to the uAPI header, default is linux/${family-name}.h
[all …]
Dgenetlink-legacy.yaml1 # 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 …]
Dnetlink-raw.yaml1 # 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 …]
/kernel/linux/linux-6.6/tools/net/ynl/
Dynl-gen-c.py2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
16 return name.upper().replace('-', '_')
20 return name.lower().replace('-', '_')
25 return 'ys->family_id'
30 … return f"mnl_cb_run2(ys->rx_buf, len, 0, 0, {cb}, {data},{ind}ynl_cb_array, NLMSG_MIN_TYPE)"
32 return f"mnl_cb_run2(ys->rx_buf, len, ys->seq, ys->portid,{ind}{cb}, {data},{ind}" + \
47 if 'nested-attributes' in attr:
48 self.nested_attrs = attr['nested-attributes']
68 if 'name-prefix' in self.attr:
69 enum_name = f"{self.attr['name-prefix']}{self.name}"
[all …]
/kernel/linux/linux-5.10/net/sched/
Dact_ife.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * net/sched/ife.c Inter-FE action based on ForCES WG InterFE LFB
6 * draft-ietf-forces-interfelfb-03
9 * "Distributing Linux Traffic Control Classifier-Action
48 if (mi->metaval) in ife_encode_meta_u16()
49 edata = *(u16 *)mi->metaval; in ife_encode_meta_u16()
57 return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); in ife_encode_meta_u16()
63 if (mi->metaval) in ife_get_meta_u32()
64 return nla_put_u32(skb, mi->metaid, *(u32 *)mi->metaval); in ife_get_meta_u32()
66 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u32()
[all …]
/kernel/linux/linux-6.6/net/sched/
Dact_ife.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * net/sched/ife.c Inter-FE action based on ForCES WG InterFE LFB
6 * draft-ietf-forces-interfelfb-03
9 * "Distributing Linux Traffic Control Classifier-Action
48 if (mi->metaval) in ife_encode_meta_u16()
49 edata = *(u16 *)mi->metaval; in ife_encode_meta_u16()
57 return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); in ife_encode_meta_u16()
63 if (mi->metaval) in ife_get_meta_u32()
64 return nla_put_u32(skb, mi->metaid, *(u32 *)mi->metaval); in ife_get_meta_u32()
66 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u32()
[all …]
/kernel/linux/linux-5.10/arch/arc/kernel/
Dentry.S1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Common Low Level Interrupts/Traps/Exceptions(non-TLB) Handling for ARC
4 * (included from entry-<isa>.S
6 * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
7 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
10 /*------------------------------------------------------------------
12 *------------------------------------------------------------------
14 * Arguments r0 - r7
15 * Caller Saved Registers r0 - r12
16 * Callee Saved Registers r13- r25
[all …]
/kernel/linux/linux-6.6/drivers/leds/trigger/
Dledtrig-netdev.c1 // SPDX-License-Identifier: GPL-2.0
9 // Derived from ledtrig-timer.c which is:
10 // Copyright 2005-2006 Openedhand Ltd.
34 * device_name - network device name to monitor
35 * interval - duration of LED blink, in milliseconds
36 * link - LED's normal state reflects whether the link is up
38 * tx - LED blinks on transmitted data
39 * rx - LED blinks on receive data
67 struct led_classdev *led_cdev = trigger_data->led_cdev; in set_baseline_state()
70 if (trigger_data->hw_control) { in set_baseline_state()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_gem.c66 max_size = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_gem_object_create()
70 return -ENOMEM; in radeon_gem_object_create()
77 if (r != -ERESTARTSYS) { in radeon_gem_object_create()
87 *obj = &robj->tbo.base; in radeon_gem_object_create()
88 robj->pid = task_pid_nr(current); in radeon_gem_object_create()
90 mutex_lock(&rdev->gem.mutex); in radeon_gem_object_create()
91 list_add_tail(&robj->list, &rdev->gem.objects); in radeon_gem_object_create()
92 mutex_unlock(&rdev->gem.mutex); in radeon_gem_object_create()
106 /* work out where to validate the buffer to */ in radeon_gem_set_domain()
118 r = dma_resv_wait_timeout_rcu(robj->tbo.base.resv, true, true, 30 * HZ); in radeon_gem_set_domain()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
Dradeon_gem.c29 #include <linux/iosys-map.h>
50 struct ttm_buffer_object *bo = vmf->vma->vm_private_data; in radeon_gem_fault()
51 struct radeon_device *rdev = radeon_get_rdev(bo->bdev); in radeon_gem_fault()
54 down_read(&rdev->pm.mclk_lock); in radeon_gem_fault()
64 ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot, in radeon_gem_fault()
66 if (ret == VM_FAULT_RETRY && !(vmf->flags & FAULT_FLAG_RETRY_NOWAIT)) in radeon_gem_fault()
70 dma_resv_unlock(bo->base.resv); in radeon_gem_fault()
73 up_read(&rdev->pm.mclk_lock); in radeon_gem_fault()
112 max_size = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_gem_object_create()
116 return -ENOMEM; in radeon_gem_object_create()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/isci/
Dport_config.c7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
93 return -1; in sci_sas_address_compare()
97 return -1; in sci_sas_address_compare()
133 for (i = 0; i < ihost->logical_port_entries; i++) { in sci_port_configuration_agent_find_port()
134 struct isci_port *iport = &ihost->ports[i]; in sci_port_configuration_agent_find_port()
152 * This routine will validate the port configuration is correct for the SCU
154 * -> (PE0), (PE0, PE1), (PE0, PE1, PE2, PE3) LP1 -> (PE1) LP2 -> (PE2), (PE2,
155 * PE3) LP3 -> (PE3) enum sci_status SCI_SUCCESS the port configuration is valid for
[all …]
/kernel/linux/linux-5.10/drivers/scsi/isci/
Dport_config.c7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
93 return -1; in sci_sas_address_compare()
97 return -1; in sci_sas_address_compare()
133 for (i = 0; i < ihost->logical_port_entries; i++) { in sci_port_configuration_agent_find_port()
134 struct isci_port *iport = &ihost->ports[i]; in sci_port_configuration_agent_find_port()
152 * This routine will validate the port configuration is correct for the SCU
154 * -> (PE0), (PE0, PE1), (PE0, PE1, PE2, PE3) LP1 -> (PE1) LP2 -> (PE2), (PE2,
155 * PE3) LP3 -> (PE3) enum sci_status SCI_SUCCESS the port configuration is valid for
[all …]
/kernel/linux/linux-6.6/sound/soc/
Dsoc-topology.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-topology.c -- ALSA SoC Topology
29 #include <sound/soc-dapm.h>
30 #include <sound/soc-topology.h>
79 /* check we dont overflow the data for this control chunk */
83 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count()
85 if (end > tplg->fw->data + tplg->fw->size) { in soc_tplg_check_elem_count()
86 dev_err(tplg->dev, "ASoC: %s overflow end of data\n", in soc_tplg_check_elem_count()
88 return -EINVAL; in soc_tplg_check_elem_count()
94 dev_err(tplg->dev, in soc_tplg_check_elem_count()
[all …]
/kernel/linux/linux-5.10/sound/soc/
Dsoc-topology.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-topology.c -- ALSA SoC Topology
29 #include <sound/soc-dapm.h>
30 #include <sound/soc-topology.h>
86 /* check we dont overflow the data for this control chunk */
90 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count()
92 if (end > tplg->fw->data + tplg->fw->size) { in soc_tplg_check_elem_count()
93 dev_err(tplg->dev, "ASoC: %s overflow end of data\n", in soc_tplg_check_elem_count()
95 return -EINVAL; in soc_tplg_check_elem_count()
101 dev_err(tplg->dev, in soc_tplg_check_elem_count()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ads.c1 // SPDX-License-Identifier: MIT
3 * Copyright © 2014-2019 Intel Corporation
29 * +---------------------------------------+ <== base
31 * +---------------------------------------+
33 * +---------------------------------------+
35 * +---------------------------------------+
37 * +---------------------------------------+ <== static
42 * +---------------------------------------+ <== dynamic
44 * +---------------------------------------+ <== 4K aligned
46 * +---------------------------------------+
[all …]
/kernel/linux/linux-6.6/drivers/target/
Dtarget_core_user.c1 // SPDX-License-Identifier: GPL-2.0-only
36 * -------------
38 * Define a shared-memory interface for LIO to pass SCSI commands and
40 * are too complex for in-kernel support to be possible.
42 * It uses the UIO framework to do a lot of the device-creation and
48 * internal to the mmap-ed area. There is separate space outside the
68 #define CMDR_SIZE_DEF (MB_CMDR_SIZE_DEF - CMDR_OFF)
77 #define TCMU_MBS_TO_PAGES(_mbs) ((size_t)_mbs << (20 - PAGE_SHIFT))
78 #define TCMU_PAGES_TO_MBS(_pages) (_pages >> (20 - PAGE_SHIFT))
212 * mutex_lock(&tcmu_dev->cmdr_lock);
[all …]
/kernel/linux/linux-5.10/arch/x86/events/
Dcore.c5 * Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar
8 * Copyright (C) 2008-2009 Red Hat, Inc., Peter Zijlstra
12 * For licencing details see kernel-base/COPYING
102 struct hw_perf_event *hwc = &event->hw; in x86_perf_event_update()
103 int shift = 64 - x86_pmu.cntval_bits; in x86_perf_event_update()
107 if (unlikely(!hwc->event_base)) in x86_perf_event_update()
117 * exchange a new raw count - then add that new-prev delta in x86_perf_event_update()
121 prev_raw_count = local64_read(&hwc->prev_count); in x86_perf_event_update()
122 rdpmcl(hwc->event_base_rdpmc, new_raw_count); in x86_perf_event_update()
124 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in x86_perf_event_update()
[all …]
/kernel/linux/linux-6.6/arch/x86/events/
Dcore.c5 * Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar
8 * Copyright (C) 2008-2009 Red Hat, Inc., Peter Zijlstra
12 * For licencing details see kernel-base/COPYING
119 struct hw_perf_event *hwc = &event->hw; in x86_perf_event_update()
120 int shift = 64 - x86_pmu.cntval_bits; in x86_perf_event_update()
124 if (unlikely(!hwc->event_base)) in x86_perf_event_update()
131 * exchange a new raw count - then add that new-prev delta in x86_perf_event_update()
134 prev_raw_count = local64_read(&hwc->prev_count); in x86_perf_event_update()
136 rdpmcl(hwc->event_base_rdpmc, new_raw_count); in x86_perf_event_update()
137 } while (!local64_try_cmpxchg(&hwc->prev_count, in x86_perf_event_update()
[all …]
/kernel/linux/linux-5.10/kernel/locking/
Dlockdep.c1 // SPDX-License-Identifier: GPL-2.0-only
15 * - lock inversion scenarios
16 * - circular lock dependencies
17 * - hardirq/softirq safe/unsafe locking bugs
90 if (current->lockdep_recursion) in lockdep_enabled()
101 * to use a raw spinlock - we really dont want the spinlock
141 * walking the graph we dont change it (while the other in graph_lock()
180 #define KEYHASH_BITS (MAX_LOCKDEP_KEYS_BITS - 1)
191 unsigned int class_idx = hlock->class_idx; in hlock_class()
193 /* Don't re-read hlock->class_idx, can't use READ_ONCE() on bitfield */ in hlock_class()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dstorvsc_drv.c1 // SPDX-License-Identifier: GPL-2.0-only
131 * Platform neutral description of a scsi request -
144 * Sense buffer size changed in win8; have a run-time
147 * to start by assuming pre-Win8.
165 "Logging level, 0 - None, 1 - Error (default), 2 - Warning.");
175 dev_warn(&(dev)->device, fmt, ##__VA_ARGS__); \
227 * valid to start by assuming pre-Win8.
294 * Revision number is auto-incremented whenever this file is changed
296 * definitely indicate incompatibility--but it does indicate mismatched
311 /* Flags - see below for values */
[all …]
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * (c) Copyright 2010-2013 Datera, Inc.
11 * the TCM_FC / Open-FCoE.org fabric module.
40 * If strict, we require lower-case hex and colon separators to be sure
42 * so the name and wwn are mapped one-to-one.
54 for (cp = name; cp < &name[TCM_QLA2XXX_NAMELEN - 1]; cp++) { in tcm_qla2xxx_parse_wwn()
69 return cp - name; in tcm_qla2xxx_parse_wwn()
73 nibble = c - '0'; in tcm_qla2xxx_parse_wwn()
75 nibble = tolower(c) - 'a' + 10; in tcm_qla2xxx_parse_wwn()
83 err, cp - name, pos, byte); in tcm_qla2xxx_parse_wwn()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * (c) Copyright 2010-2013 Datera, Inc.
11 * the TCM_FC / Open-FCoE.org fabric module.
40 * If strict, we require lower-case hex and colon separators to be sure
42 * so the name and wwn are mapped one-to-one.
54 for (cp = name; cp < &name[TCM_QLA2XXX_NAMELEN - 1]; cp++) { in tcm_qla2xxx_parse_wwn()
69 return cp - name; in tcm_qla2xxx_parse_wwn()
73 nibble = c - '0'; in tcm_qla2xxx_parse_wwn()
75 nibble = tolower(c) - 'a' + 10; in tcm_qla2xxx_parse_wwn()
83 err, cp - name, pos, byte); in tcm_qla2xxx_parse_wwn()
[all …]

1234