/linux/Documentation/netlink/ |
H A D | genetlink.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)?$ 16 len-or-limit: 17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. 19 pattern: ^[su](8|16|32|64)-(min|max)$ 26 required: [ name, doc, attribute-sets, operations ] [all …]
|
/linux/tools/perf/trace/beauty/ |
H A D | open_flags.c | 1 // 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/ |
H A D | key-management.c | 1 // 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 D | bench-lookups.c | 1 // 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 D | setsockopt-closed.c | 1 // 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 D | iavf_common.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 11 * iavf_aq_str - convert AQ err code to a string 66 snprintf(hw->err_str, sizeof(hw->err_str), "%d", aq_err); in iavf_aq_str() 67 return hw->err_str; in iavf_aq_str() 71 * iavf_stat_str - convert status err code to a string 214 snprintf(hw->err_str, sizeof(hw->err_str), "%d", stat_err); in iavf_stat_str() 215 return hw->err_str; in iavf_stat_str() 234 if ((!(mask & hw->debug_mask)) || !desc) in iavf_debug_aq() 239 le16_to_cpu(aq_desc->opcode), in iavf_debug_aq() [all …]
|
/linux/fs/ |
H A D | fs_context.c | 1 // 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 D | power-management.rst | 1 .. _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 D | fallback-mechanisms.rst | 97 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 D | tcp_ao.c | 1 // 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/sound/soc/ |
H A D | soc-dapm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 12 // o Platform power domain - can support external components i.e. amps and 15 // o Jack insertion power event initiation - e.g. hp insertion will enable 22 #include <linux/async.h> 43 #define DAPM_UPDATE_STAT(widget, val) widget->dap 325 dapm_cnew_widget(const struct snd_soc_dapm_widget * _widget,const char * prefix) dapm_cnew_widget() argument 880 const char *prefix; dapm_create_or_share_kcontrol() local 2604 const char *prefix = soc_dapm_prefix(dapm); dapm_find_widget() local 3013 const char *prefix; snd_soc_dapm_add_route() local 3108 const char *prefix; snd_soc_dapm_del_route() local [all...] |
/linux/mm/ |
H A D | internal.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 20 #include <linux/tracepoint-defs.h> 71 #define FOLIO_PAGES_MAPPED (ENTIRELY_MAPPED - 1) 87 return atomic_read(&folio->_nr_pages_mapped) & FOLIO_PAGES_MAPPED; in folio_nr_pages_mapped() 92 * folio. We cannot rely on folio->swap as there is no guarantee that it has 107 unsigned long mapping = (unsigned long)folio->mapping; in folio_raw_mapping() 113 * This is a file-backed mapping, and is about to be memory mapped - invoke its 134 vma->vm_ops = &vma_dummy_vm_ops; in mmap_file() 146 if (vma->vm_ops && vma->vm_ops->close) { in vma_close() 147 vma->vm_ops->close(vma); in vma_close() [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_scan.c | 1 // 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/Documentation/filesystems/ |
H A D | vfs.rst | 1 .. 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 D | xfrm.h | 1 /* 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 D | hardware.c | 1 // 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/drivers/s390/scsi/ |
H A D | zfcp_fsf.c | 1 // SPDX-License-Identifier: GPL-2.0 35 …"Shuts down FCP devices for FCP channels that report a bit-error count in excess of its threshold … 40 struct zfcp_adapter *adapter = fsf_req->adapter; in zfcp_fsf_request_timeout_handler() 50 fsf_req->timer.function = zfcp_fsf_request_timeout_handler; in zfcp_fsf_start_timer() 51 fsf_req->timer.expires = jiffies + timeout; in zfcp_fsf_start_timer() 52 add_timer(&fsf_req->timer); in zfcp_fsf_start_timer() 57 BUG_ON(!fsf_req->erp_action); in zfcp_fsf_start_erp_timer() 58 fsf_req->timer.function = zfcp_erp_timeout_handler; in zfcp_fsf_start_erp_timer() 59 fsf_req->timer.expires = jiffies + 30 * HZ; in zfcp_fsf_start_erp_timer() 60 add_timer(&fsf_req->timer); in zfcp_fsf_start_erp_timer() [all …]
|
/linux/drivers/s390/block/ |
H A D | dasd_eckd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 67 * Perform Subsystem Function / Sub-Orders 100 * Out-of-space (OOS) Codes 120 * Size that is reported for large volumes in the old 16-bit no_cyl field 181 unsigned long ep_sys_time; /* Ext Parameter - System Time Stamp */ 233 /* Prefix data for format 0x00 and 0x01 */ 255 unsigned char async:1; member 357 __u8 res2[4]; /* byte 4- 7 */ 360 __u8 res3[22]; /* byte 10-31 */ 370 __u8 res2[4]; /* byte 4- 7 */ [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_power.c | 1 /* SPDX-License-Identifier: MIT */ 33 for_each_if(test_bit((__domain), (__power_well)->domains.bits)) 37 for_each_if(test_bit((__domain), (__power_well)->domains.bits)) 207 if (pm_runtime_suspended(display->drm->dev)) in __intel_display_power_is_enabled() 226 * intel_display_power_is_enabled - check for a power domain 245 struct intel_display *display = &dev_priv->display; in intel_display_power_is_enabled() 246 struct i915_power_domains *power_domains = &display->power.domains; in intel_display_power_is_enabled() 249 mutex_lock(&power_domains->lock); in intel_display_power_is_enabled() 251 mutex_unlock(&power_domains->lock); in intel_display_power_is_enabled() 260 struct i915_power_domains *power_domains = &display->power.domains; in sanitize_target_dc_state() [all …]
|
/linux/drivers/usb/storage/ |
H A D | uas.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright Hans de Goede <hdegoede@redhat.com> for Red Hat, Inc. 2013 - 2016 30 #include "uas-detect.h" 49 struct work_struct scan_work; /* for async scanning */ 82 static void uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix, 107 spin_lock_irqsave(&devinfo->lock, flags); in uas_do_work() 109 if (devinfo->resetting) in uas_do_work() 112 for (i = 0; i < devinfo->qdepth; i++) { in uas_do_work() 113 if (!devinfo->cmnd[i]) in uas_do_work() 116 cmnd = devinfo->cmnd[i]; in uas_do_work() [all …]
|
/linux/arch/s390/kvm/ |
H A D | interrupt.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #define KMSG_COMPONENT "kvm-s390" 22 #include <asm/access-regs.h> 23 #include <asm/asm-offsets.h> 32 #include "kvm-s390.h" 34 #include "trace-s390.h" 52 read_lock(&vcpu->kvm->arch.sca_lock); in sca_ext_call_pending() 53 if (vcpu->kvm->arch.use_esca) { in sca_ext_call_pending() 54 struct esca_block *sca = vcpu->kvm->arch.sca; in sca_ext_call_pending() 56 sca->cpu[vcpu->vcpu_id].sigp_ctrl; in sca_ext_call_pending() [all …]
|
H A D | kvm-s390.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #define KMSG_COMPONENT "kvm-s390" 36 #include <asm/access-regs.h> 37 #include <asm/asm-offsets.h> 50 #include "kvm-s390.h" 57 #include "trace-s390.h" 224 * the feature is opt-in anyway 232 * kernel handles and stores in the prefix page. If we ever need to go beyond 239 * defines in FACILITIES_KVM and the non-hypervisor managed bits. 280 * -delta to the epoch. in kvm_clock_sync_scb() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_e610.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * ixgbe_should_retry_aci_send_cmd_execute - decide if ACI command should 37 * ixgbe_aci_send_cmd_execute - execute sending FW Admin Command to FW Admin 48 * * - 0 - success. 49 * * - -EIO - CSR mechanism is not enabled. 50 * * - -EBUSY - CSR mechanism is busy. 51 * * - -EINVAL - buf_size is too big or 53 * * - -ETIME - Admin Command X command timeout. 54 * * - -EIO - Admin Command X invalid state of HICR register or 67 hw->aci.last_status = IXGBE_ACI_RC_OK; in ixgbe_aci_send_cmd_execute() [all …]
|
/linux/drivers/scsi/arm/ |
H A D | fas216.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1997-2003 Russell King 20 * 30-08-1997 RMK Created 21 * 14-09-1997 RMK Started disconnect support 22 * 08-02-1998 RMK Corrected real DMA support 23 * 15-02-1998 RMK Started sync xfer support 24 * 06-04-1998 RMK Tightened conditions for printing incomplete 26 * 02-05-1998 RMK Added extra checks in fas216_reset 27 * 24-05-1998 RMK Fixed synchronous transfers with period >= 200ns 28 * 27-06-1998 RMK Changed asm/delay.h to linux/delay.h [all …]
|
/linux/Documentation/scsi/ |
H A D | ChangeLog.sym53c8xx | 1 Sat May 12 12:00 2001 Gerard Roudier (groudier@club-internet.fr) 2 * version sym53c8xx-1.7.3c 3 - Ensure LEDC bit in GPCNTL is cleared when reading the NVRAM. 4 Fix sent by Stig Telfer <stig@api-networks.com>. 5 - Backport from SYM-2 the work-around that allows to support 7 - Check that we received at least 8 bytes of INQUIRY response 9 - Define scsi_set_pci_device() as nil for kernel < 2.4.4. 10 - + A couple of minor changes. 12 Sat Apr 7 19:30 2001 Gerard Roudier (groudier@club-internet.fr) 13 * version sym53c8xx-1.7.3b [all …]
|