/linux/Documentation/netlink/specs/ |
H A D | devlink.yaml | 1 # 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 - 18 - 20 name: port-type 22 - 24 - [all …]
|
H A D | mptcp_pm.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 4 protocol: genetlink-legacy 7 c-family-name: mptcp-pm-name 8 c-version-name: mptcp-pm-ver 9 max-by-define: true 10 kernel-policy: per-op 11 cmd-cnt-name: --mptcp-pm-cmd-after-last 14 - 16 name: event-type 17 enum-name: mptcp-event-type [all …]
|
H A D | team.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 c-family-name: team-genl-name 11 c-version-name: team-genl-version 12 kernel-policy: global 13 uapi-header: linux/if_team.h 16 - 17 name: string-max-len 20 - 21 name: genl-change-event-mc-grp-name [all …]
|
H A D | fou.yaml | 1 # 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 …]
|
H A D | tcp_metrics.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 c-family-name: tcp-metrics-genl-name 11 c-version-name: tcp-metrics-genl-version 12 max-by-define: true 13 kernel-policy: global 16 - 17 name: tcp-fastopen-cookie-max 21 attribute-sets: 22 - [all …]
|
/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/net/sched/ |
H A D | act_ife.c | 1 // 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 …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_gem.c | 30 #include <linux/iosys-map.h> 49 struct ttm_buffer_object *bo = vmf->vma->vm_private_data; in radeon_gem_fault() 50 struct radeon_device *rdev = radeon_get_rdev(bo->bdev); in radeon_gem_fault() 53 down_read(&rdev->pm.mclk_lock); in radeon_gem_fault() 63 ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot, in radeon_gem_fault() 65 if (ret == VM_FAULT_RETRY && !(vmf->flags & FAULT_FLAG_RETRY_NOWAIT)) in radeon_gem_fault() 69 dma_resv_unlock(bo->base.resv); in radeon_gem_fault() 72 up_read(&rdev->pm.mclk_lock); in radeon_gem_fault() 89 ttm_bo_put(&robj->tbo); in radeon_gem_object_free() 111 max_size = rdev->mc.gtt_size - rdev->gart_pin_size; in radeon_gem_object_create() [all …]
|
/linux/drivers/scsi/isci/ |
H A D | port_config.c | 7 * 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 …]
|
H A D | host.c | 7 * 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. 100 * NORMALIZE_PUT_POINTER() - 110 * NORMALIZE_EVENT_POINTER() - 122 * NORMALIZE_GET_POINTER() - 131 * NORMALIZE_GET_POINTER_CYCLE_BIT() - 137 ((SMU_CQGR_CYCLE_BIT & (x)) << (31 - SMU_COMPLETION_QUEUE_GET_CYCLE_BIT_SHIFT)) 140 * COMPLETION_QUEUE_CYCLE_BIT() - 152 sm->initial_state_id = initial_state; in sci_init_sm() [all …]
|
/linux/drivers/target/ |
H A D | target_core_user.c | 1 // 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 …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_ads.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2014-2019 Intel Corporation 29 * +---------------------------------------+ <== base 31 * +---------------------------------------+ 33 * +---------------------------------------+ 35 * +---------------------------------------+ 37 * +---------------------------------------+ <== static 42 * +---------------------------------------+ <== dynamic 44 * +---------------------------------------+ <== 4K aligned 46 * +---------------------------------------+ [all …]
|
/linux/arch/x86/events/ |
H A D | core.c | 5 * 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 …]
|
/linux/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 1 // 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 …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dcn_calcs.c | 40 dc->ctx->logger 50 * This file is gcc-parseable HW gospel, coming straight from HW engineers. 54 * remain as-is as it provides us with a guarantee from HW that it is correct. 70 * slow-slow corner + 10% margin with voltages aligned to FCLK. 305 input->src.is_hsplit = false; in pipe_ctx_to_e2e_pipe_params() 308 if (pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_SIDE_BY_SIDE || in pipe_ctx_to_e2e_pipe_params() 309 pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_TOP_AND_BOTTOM) { in pipe_ctx_to_e2e_pipe_params() 311 input->src.hsplit_grp = pipe->pipe_idx; in pipe_ctx_to_e2e_pipe_params() 312 } else if (pipe->top_pipe != NULL && pipe->top_pipe->plane_state == pipe->plane_state) { in pipe_ctx_to_e2e_pipe_params() 313 input->src.is_hsplit = true; in pipe_ctx_to_e2e_pipe_params() [all …]
|
/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_sds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 /* ---------- OCM stuff ---------- */ 108 * asd_read_ocm_seg - read an on chip memory (OCM) segment 120 if (unlikely(asd_ha->iospace)) in asd_read_ocm_seg() 123 for ( ; size > 0; size--, offs++, p++) in asd_read_ocm_seg() 138 if (dir->sig[0] != 'M' || dir->sig[1] != 'O') { in asd_read_ocm_dir() 140 dir->sig[0], dir->sig[1]); in asd_read_ocm_dir() 141 return -ENOENT; in asd_read_ocm_dir() 143 if (dir->major != 0) { in asd_read_ocm_dir() 145 dir->major); in asd_read_ocm_dir() [all …]
|
/linux/drivers/scsi/qla4xxx/ |
H A D | ql4_83xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2013 QLogic Corporation 17 return readl((void __iomem *)(ha->nx_pcibase + addr)); in qla4_83xx_rd_reg() 22 writel(val, (void __iomem *)(ha->nx_pcibase + addr)); in qla4_83xx_wr_reg() 30 qla4_83xx_wr_reg(ha, QLA83XX_CRB_WIN_FUNC(ha->func_num), addr); in qla4_83xx_set_win_base() 31 val = qla4_83xx_rd_reg(ha, QLA83XX_CRB_WIN_FUNC(ha->func_num)); in qla4_83xx_set_win_base() 91 __func__, ha->func_num, lock_owner); in qla4_83xx_flash_lock() 98 qla4_83xx_wr_reg(ha, QLA83XX_FLASH_LOCK_ID, ha->func_num); in qla4_83xx_flash_lock() 169 flash_offset = addr & (QLA83XX_FLASH_SECTOR_SIZE - 1); in qla4_83xx_lockless_flash_read_u32() 188 (QLA83XX_FLASH_SECTOR_SIZE - 1)) { in qla4_83xx_lockless_flash_read_u32() [all …]
|
/linux/net/ipv4/netfilter/ |
H A D | ip_tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org> 7 * Copyright (C) 2006-2010 Patrick McHardy <kaber@trash.net> 41 /* Performance critical - called for every packet */ 52 (ip->saddr & ipinfo->smsk.s_addr) != ipinfo->src.s_addr) || in ip_packet_match() 54 (ip->daddr & ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr)) in ip_packet_match() 57 ret = ifname_compare_aligned(indev, ipinfo->iniface, ipinfo->iniface_mask); in ip_packet_match() 62 ret = ifname_compare_aligned(outdev, ipinfo->outiface, ipinfo->outiface_mask); in ip_packet_match() 68 if (ipinfo->proto && in ip_packet_match() 69 NF_INVF(ipinfo, IPT_INV_PROTO, ip->protocol != ipinfo->proto)) in ip_packet_match() [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_virtchnl.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 21 struct iavf_hw *hw = &adapter->hw; in iavf_send_pf_msg() 24 if (adapter->flags & IAVF_FLAG_PF_COMMS_FAILED) in iavf_send_pf_msg() 29 dev_dbg(&adapter->pdev->dev, "Unable to send opcode %d to PF, status %s, aq_err %s\n", in iavf_send_pf_msg() 31 iavf_aq_str(hw, hw->aq.asq_last_status)); in iavf_send_pf_msg() 80 (enum virtchnl_ops)le32_to_cpu(event->desc.cookie_high); in iavf_poll_virtchnl_msg() 85 v_retval = le32_to_cpu(event->desc.cookie_low); in iavf_poll_virtchnl_msg() 94 * initialized. Returns 0 if API versions match, -EIO if they do not, 106 return -ENOMEM; in iavf_verify_api_ver() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | au1200fb.c | 5 * Copyright 2004-2005 AMD 9 * linux/drivers/video/skeletonfb.c -- Skeleton for a frame buffer device 44 #include <linux/dma-mapping.h> 48 #include <asm/mach-au1x00/au1000.h> 49 #include <asm/mach-au1x00/au1200fb.h> /* platform_data */ 146 /* Private, per-framebuffer management information (independent of the panel itself) */ 214 "0-FS gfx, 1-video, 2-ovly gfx, 3-ovly gfx", 248 "0-FS gfx, 1-video, 2-ovly gfx, 3-ovly gfx", 281 "0-FS gfx, 1-video, 2-ovly gfx, 3-ovly gfx", 347 /* fixme: Maybe a modedb for the CRT ? otherwise panels should be as-is */ [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | fwsignal.c | 1 // SPDX-License-Identifier: ISC 40 * single definition for firmware-driver flow control tlv's. 65 * enum brcmf_fws_tlv_type - definition of tlv identifiers. 76 * enum brcmf_fws_tlv_len - definition of tlv lengths. 100 * brcmf_fws_tlv_names - array of tlv names. 131 * The PKTTAG tlv has additional bytes when firmware-signalling 172 * enum brcmf_fws_skb_state - indicates processing state of skb. 187 * struct brcmf_skbuff_cb - control buffer associated with skbuff. 192 * @htod_seq: this 16-bi [all...] |
H A D | p2p.c | 1 // SPDX-License-Identifier: ISC 32 #define BRCMF_P2P_WILDCARD_SSID "DIRECT-" 33 #define BRCMF_P2P_WILDCARD_SSID_LEN (sizeof(BRCMF_P2P_WILDCARD_SSID) - 1) 65 #define P2P_INVALID_CHANNEL -1 101 * struct brcmf_p2p_disc_st_le - set discovery state in firmware. 114 * enum brcmf_p2p_disc_state - P2P discovery state values 117 * @WL_P2P_DISC_ST_LISTEN: P2P discovery off-channel for specified time. 127 * struct brcmf_p2p_scan_le - P2P specific scan request. 144 * struct brcmf_p2p_pub_act_frame - WiFi P2P Public Action Frame 149 * @oui_type: OUI type - P2P_VER [all …]
|
/linux/drivers/scsi/ |
H A D | qla1280.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) 2001-2004 Jes Sorensen, Wild Open Source Inc. 8 * Copyright (C) 2003-2004 Christoph Hellwig 15 - Retain firmware image for error recovery. 17 - General code cleanup. 18 - Improve error recovery. 20 - Ditch all < 2.6 support 22 - use pci_map_single to map non-S/G requests 23 - remove qla1280_proc_info 25 - add support for ISP1020/1040 [all …]
|
/linux/drivers/atm/ |
H A D | lanai.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* lanai.c -- Copyright 1999-2003 by Mitchell Blank Jr <mitch@sfgoth.com> 5 * chipset such as the Speedstream 3010 and the ENI-25p. The 7 * have the code to drive the on-board Alcatel DSL chipset (yet). 14 * o We don't support the Speedstream 3060 yet - this card has 15 * an on-board DSL modem chip by Alcatel and the driver will 24 * enable it yet - bugs in that code may actually damage your 32 * This isn't too much work - I just wanted to get other things 37 * o There aren't any ioctl's yet -- I'd like to eventually support 48 * v.1.00 -- 26-JUL-2003 -- PCI/DMA updates [all …]
|
/linux/include/net/ |
H A D | sock.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 * Corey Minyard <wf-rch!minyard@relay.EU.net> 14 * Florian La Roche <flla@stud.uni-sb.de> 57 #include <linux/cgroup-defs.h> 79 /* This is the per-socket lock. The spinlock provides a synchronization 81 * mini-semaphore synchronizes multiple users amongst themselves. 88 * We express the mutex-alike socket_lock semantics 106 * struct sock_common - minimal network layer representation of sockets 109 * @skc_addrpair: 8-byte-aligned __u64 union of @skc_daddr & @skc_rcv_saddr 123 * @skc_portaddr_node: second hash linkage for UDP/UDP-Lite protocol [all …]
|