Home
last modified time | relevance | path

Searched +full:async +full:- +full:prefix (Results 1 – 25 of 57) sorted by relevance

123

/linux/Documentation/netlink/
H A 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
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
[all …]
H A 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
11 pattern: ^[0-9a-z-]+$
12 name-cap:
14 pattern: ^[0-9a-zA-Z-]+$
18 len-or-define:
20 pattern: ^[0-9A-Za-z_-]+( - 1)?$
27 required: [ name, doc, attribute-sets, operations ]
[all …]
/linux/tools/perf/trace/beauty/
H A Dopen_flags.c1 // SPDX-License-Identifier: LGPL-2.1
27 const char *prefix = "O_"; in open__scnprintf_flags() local
31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", "RDONLY"); in open__scnprintf_flags()
36 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags()
42 P_FLAG(ASYNC); in open__scnprintf_flags()
63 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags()
75 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in open__scnprintf_flags()
82 int flags = arg->val; in syscall_arg__scnprintf_open_flags()
85 arg->mask |= 1 << (arg->idx + 1); /* Mask the mode parm */ in syscall_arg__scnprintf_open_flags()
87 return open__scnprintf_flags(flags, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_open_flags()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Daolib.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * TCP-AO selftest library. Provides helpers to unshare network
59 if (n < 0 || n > size - 1) { in test_snprintf()
146 KCONFIG_TCP_MD5, /* optional, for TCP-MD5 features */
169 extern void __test_init(unsigned int ntests, int family, unsigned int prefix,
175 int family, unsigned int prefix, in test_init2() argument
185 __test_init(ntests, family, prefix, taddr1, taddr2, peer1, peer2); in test_init2()
229 ret.a6.s6_addr32[3] = htonl(n & (BIT(32) - 1)); in gen_tcp_addr()
230 ret.a6.s6_addr32[2] = htonl((n >> 32) & (BIT(32) - 1)); in gen_tcp_addr()
246 out->sin6_family = AF_INET6; in tcp_addr_to_sockaddr_in()
[all …]
H A Dsock.c1 // SPDX-License-Identifier: GPL-2.0
54 return -errno; in __test_wait_fd()
57 return -ETIMEDOUT; in __test_wait_fd()
61 return -errno; in __test_wait_fd()
63 return -ret; in __test_wait_fd()
101 if (ret != -ETIMEDOUT) in __test_skpair_poll()
109 *err = -ETIMEDOUT; in __test_skpair_poll()
110 return -ETIMEDOUT; in __test_skpair_poll()
114 void *addr, size_t addr_sz, bool async) in __test_connect_socket() argument
132 err = -errno; in __test_connect_socket()
[all …]
/linux/rust/syn/
H A Dprecedence.rs1 // SPDX-License-Identifier: Apache-2.0 OR MIT
19 // Reference: https://doc.rust-lang.org/reference/expressions.html#expression-precedence
23 // = += -= *= /= %= &= |= ^= <<= >>=
44 // + -
50 // unary - * ! & &mut
52 Prefix, enumerator
61 pub(crate) fn of_binop(op: &BinOp) -> Self { in of_binop()
93 pub(crate) fn of(e: &Expr) -> Self { in of()
95 fn prefix_attrs(attrs: &[Attribute]) -> Precedence { in of()
98 return Precedence::Prefix; in of()
[all …]
H A Dfixup.rs1 // SPDX-License-Identifier: Apache-2.0 OR MIT
23 // `leftmost_subexpression_in_stmt` when printing their left-hand operand.
25 // (match x {}) - 1; // match needs parens when LHS of binary operator
34 // (match x {}) - 1; // subexpression needs parens
36 // let _ = match x {} - 1; // no parens
42 // - stmt=false leftmost_subexpression_in_stmt=false
44 // Example: `let _ = $match - 1;`
48 // - stmt=false leftmost_subexpression_in_stmt=true
50 // Example: `$match - 1;`
54 // the match, parsing `-1;` as a separate statement.
[all …]
H A Dexpr.rs1 // SPDX-License-Identifier: Apache-2.0 OR MIT
121 /// An async block: `async { ... }`.
122 Async(ExprAsync),
162 /// of expressions and is related to `None`-delimited spans in a
201 /// parameters and a qualified self-type.
209 /// Address-of operation: `&raw const place` or `&raw mut place`.
227 /// A try-expression: `expr?`.
293 /// An async block: `async { ... }`.
297 pub async_token: Token![async],
377 pub asyncness: Option<Token![async]>,
[all …]
/linux/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c1 // SPDX-License-Identifier: GPL-2.0
23 err = add_vrf("ksft-vrf", test_vrf_tabid, test_vrf_ifindex, -1); in setup_vrfs()
27 err = link_set_up("ksft-vrf"); in setup_vrfs()
66 static int test_del_key(int sk, uint8_t sndid, uint8_t rcvid, bool async, in test_del_key() argument
76 del.prefix = DEFAULT_TEST_PREFIX; in test_del_key()
91 return -errno; in test_del_key()
93 if (async) in test_del_key()
100 return -EEXIST; in test_del_key()
101 if (err != -E2BIG) in test_del_key()
108 return -ENOTRECOVERABLE; in test_del_key()
[all …]
H A Dbench-lookups.c1 // SPDX-License-Identifier: GPL-2.0
34 for (j = i - 1; j > 0 && i > 0; j--) { in gen_test_ips()
36 i--; /* collision */ in gen_test_ips()
52 if (err && err != -EEXIST) in test_add_routes()
64 if (test_add_key(lsk, DEFAULT_TEST_PASSWORD, *p, -1, 100, 100)) in server_apply_keys()
106 nsec = (end.tv_sec - start.tv_sec) * NSEC_PER_SEC; in measure_call()
108 nsec += end.tv_nsec - start.tv_nsec; in measure_call()
110 nsec -= start.tv_nsec - end.tv_nsec; in measure_call()
112 if (st->nr == 0) { in measure_call()
113 st->min = st->max = nsec; in measure_call()
[all …]
H A Dsetsockopt-closed.c1 // SPDX-License-Identifier: GPL-2.0
34 if (info->member != tmp.member) { \ in test_vefify_ao_info()
36 tst, (uint64_t)info->member, (uint64_t)tmp.member); \ in test_vefify_ao_info()
40 if (info->set_current) in test_vefify_ao_info()
42 if (info->set_rnext) in test_vefify_ao_info()
44 if (info->set_counters) { in test_vefify_ao_info()
74 if (ret == -1) { in __setsockopt_checked()
140 -1, 0, 100, 100)) in prepare_defs()
151 del->sndid = 100; in prepare_defs()
152 del->rcvid = 100; in prepare_defs()
[all …]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_common.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
11 * iavf_stat_str - convert status err code to a string
154 snprintf(hw->err_str, sizeof(hw->err_str), "%d", stat_err); in iavf_stat_str()
155 return hw->err_str; in iavf_stat_str()
174 if ((!(mask & hw->debug_mask)) || !desc) in iavf_debug_aq()
179 le16_to_cpu(aq_desc->opcode), in iavf_debug_aq()
180 le16_to_cpu(aq_desc->flags), in iavf_debug_aq()
181 le16_to_cpu(aq_desc->datalen), in iavf_debug_aq()
182 le16_to_cpu(aq_desc->retval)); in iavf_debug_aq()
[all …]
/linux/fs/
H A Dfs_context.c1 // SPDX-License-Identifier: GPL-2.0-or-later
51 { "async", SB_SYNCHRONOUS },
67 fc->sb_flags |= token; in vfs_parse_sb_flag()
68 fc->sb_flags_mask |= token; in vfs_parse_sb_flag()
74 fc->sb_flags &= ~token; in vfs_parse_sb_flag()
75 fc->sb_flags_mask |= token; in vfs_parse_sb_flag()
79 return -ENOPARAM; in vfs_parse_sb_flag()
83 * vfs_parse_fs_param_source - Handle setting "source" via parameter
90 * Returns 0 on success, -ENOPARAM if this is not "source" parameter, and
91 * -EINVAL otherwise. In the event of failure, supplementary error information
[all …]
/linux/Documentation/driver-api/usb/
H A Dpower-management.rst1 .. _usb-power-management:
7 :Date: Last-updated: February 2014
11 ---------
17 * Changing the default idle-delay time
31 -------------------------
35 component is ``suspended`` it is in a nonfunctional low-power state; it
37 ``resumed`` (returned to a functional full-power state) when the kernel
67 ----------------------
85 --------------------------
101 -------------------
[all …]
/linux/Documentation/driver-api/firmware/
H A Dfallback-mechanisms.rst97 important to re-iterate that no device is created if a direct filesystem lookup
113 -----------------------
114 .. kernel-doc:: drivers/base/firmware_loader/fallback.c
153 * ASYNC=whether or not the API request was asynchronous
171 in non-traditional paths -- paths outside of the listing documented in the
184 the uevent flag means you want to opt-in for the firmware fallback mechanism
196 The logic behind using MAX_JIFFY_OFFSET for non-uevents is that a custom
212 the peripheral's Linux device-driver needs to access this firmware.
222 .. kernel-doc:: include/linux/efi_embedded_fw.h
225 The EFI embedded-fw code works by scanning all EFI_BOOT_SERVICES_CODE memory
[all …]
/linux/net/ipv4/
H A Dtcp_ao.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * INET An implementation of the TCP Authentication Option (TCP-AO).
29 if (crypto_ahash_setkey(crypto_ahash_reqtfm(hp->req), in tcp_ao_calc_traffic_key()
30 mkt->key, mkt->keylen)) in tcp_ao_calc_traffic_key()
33 ret = crypto_ahash_init(hp->req); in tcp_ao_calc_traffic_key()
38 ahash_request_set_crypt(hp->req, &sg, key, len); in tcp_ao_calc_traffic_key()
39 crypto_ahash_update(hp->req); in tcp_ao_calc_traffic_key()
41 ret = crypto_ahash_final(hp->req); in tcp_ao_calc_traffic_key()
60 * >> A TCP-AO implementation MUST default to ignore incoming ICMPv4 in tcp_ao_ignore_icmp()
61 * messages of Type 3 (destination unreachable), Codes 2-4 (protocol in tcp_ao_ignore_icmp()
[all …]
/linux/drivers/android/
H A Dbinder.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2007-2008 Google, Inc.
15 * 1) proc->outer_lock : protects binder_ref
18 * 2) node->lock : protects most fields of binder_node.
21 * 3) proc->inner_lock : protects the thread and node lists
22 * (proc->threads, proc->waiting_threads, proc->nodes)
24 * (proc->todo, thread->todo, proc->delivered_death and
25 * node->async_todo), as well as thread->transaction_stack
35 * foo_olocked() : requires node->outer_lock
36 * foo_nlocked() : requires node->lock
[all …]
/linux/drivers/android/binder/
H A Dnode.rs1 // SPDX-License-Identifier: GPL-2.0
35 /// make it possible to "move" a node from one list to another - when `do_work` is called directly
36 /// on the `Node`, then it's a no-op if there's also a pending wrapper.
38 /// Wrappers are generally only needed for zero-to-one refcount increments, and there are two cases
42 /// * One thread makes a zero-to-one strong increment, and another thread makes a zero-to-one weak
48 /// a zero-to-one strong increment. If the strong increment gets sent to the thread that was
80 fn should_normal_push(&self) -> bool { in should_normal_push()
89 fn should_push_weak_zero2one(&self) -> bool { in should_push_weak_zero2one()
93 fn can_push_weak_zero2one_normally(&self) -> bool { in can_push_weak_zero2one_normally()
104 fn should_push_strong_zero2one(&self) -> bool { in should_push_strong_zero2one()
[all …]
/linux/drivers/scsi/
H A Dscsi_scan.c1 // SPDX-License-Identifier: GPL-2.0
23 * If target is SCSI-3 or up, issue a REPORT LUN, and scan
36 #include <linux/async.h>
63 * Prefix values for the SCSI id's (stored in sysfs name field)
92 "last scsi LUN (should be between 1 and 2^64-1)");
95 #define SCSI_SCAN_TYPE_DEFAULT "async"
104 MODULE_PARM_DESC(scan, "sync, async, manual, or none. "
126 * scsi_enable_async_suspend - Enable async suspend and resume
131 * If a user has disabled async probing a likely reason is due to a in scsi_enable_async_suspend()
132 * storage enclosure that does not inject staggered spin-ups. For in scsi_enable_async_suspend()
[all …]
/linux/tools/net/ynl/pyynl/
H A Dynl_gen_c.py2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
20 return name.upper().replace('-', '_')
24 return name.lower().replace('-', '_')
29 Turn a string limit like u32-max or s64-min into its numerical value
31 if name[0] == 'u' and name.endswith('-min'):
33 width = int(name[1:-4])
35 width -= 1
36 value = (1 << width) - 1
37 if name[0] == 's' and name.endswith('-min'):
38 value = -value - 1
[all …]
/linux/Documentation/filesystems/
H A Dvfs.rst1 .. SPDX-License-Identifier: GPL-2.0
9 - Copyright (C) 1999 Richard Gooch
10 - Copyright (C) 2005 Pekka Enberg
27 ------------------------------
32 cache or dcache). This provides a very fast look-up mechanism to
44 ----------------
64 ---------------
67 structure (this is the kernel-side implementation of file descriptors).
88 .. code-block:: c
99 ->mount() will be attached to the mountpoint, so that when pathname
[all …]
/linux/include/net/
H A Dxfrm.h1 /* SPDX-License-Identifier: GPL-2.0 */
48 MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap))
50 MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto))
52 MODULE_ALIAS("xfrm-offload-" __stringify(family) "-" __stringify(proto))
55 #define XFRM_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.xfrm_statistics, field)
56 #define XFRM_ADD_STATS(net, field, val) SNMP_ADD_STATS((net)->mib.xfrm_statistics, field, val)
64 ------------------------------------
67 - policy rule, struct xfrm_policy (=SPD entry)
68 - bundle of transformations, struct dst_entry == struct xfrm_dst (=SA bundle)
69 - instance of a transformer, struct xfrm_state (=SA)
[all …]
/linux/drivers/tty/ipwireless/
H A Dhardware.c1 // SPDX-License-Identifier: GPL-2.0
13 * Copyright (C) 2006-2007 Jiri Kosina
60 timing_stats.read_time += (jiffies - start_time); in end_read_timing()
67 timing_stats.write_time += (jiffies - start_time); in end_write_timing()
74 unsigned long since = jiffies - timing_stats.last_report_time; in report_timing()
83 ": %u us elapsed - read %lu bytes in %u us, wrote %lu bytes in %u us\n", in report_timing()
163 #define HW_VERSION_UNKNOWN -1
258 * a non-zero serial number (indicating the new firmware). Thereafter,
259 * the driver can safely ignore the Timer Recovery re-sends to avoid
260 * out-of-sync problems.
[all …]
/linux/tools/power/pm-graph/
H A Dsleepgraph.py2 # SPDX-License-Identifier: GPL-2.0-only
21 # https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overview.html
23 # git@github.com:intel/pm-graph
51 # ----------------- LIBRARIES --------------------
74 print('[%09.3f] %s' % (time.time()-mystarttime, msg))
82 # ----------------- CLASSES --------------------
86 # A global, single-instance container used to
108 cgtest = -1
148 prefix = 'test' variable in SystemValues
183 tmstart = 'SUSPEND START %Y%m%d-%H:%M:%S.%f'
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_power.c1 /* SPDX-License-Identifier: MIT */
39 for_each_if(test_bit((__domain), (__power_well)->domains.bits))
43 for_each_if(test_bit((__domain), (__power_well)->domains.bits))
232 * intel_display_power_is_enabled - check for a power domain
251 struct i915_power_domains *power_domains = &display->power.domains; in intel_display_power_is_enabled()
254 mutex_lock(&power_domains->lock); in intel_display_power_is_enabled()
256 mutex_unlock(&power_domains->lock); in intel_display_power_is_enabled()
265 struct i915_power_domains *power_domains = &display->power.domains; in sanitize_target_dc_state()
274 for (i = 0; i < ARRAY_SIZE(states) - 1; i++) { in sanitize_target_dc_state()
278 if (power_domains->allowed_dc_mask & target_dc_state) in sanitize_target_dc_state()
[all …]

123