| /linux/drivers/infiniband/ulp/iser/ |
| H A D | iscsi_iser.h | 7 * based on code maintained by open-iscsi@googlegroups.com 11 * Copyright (c) 2013-2014 Mellanox Technologies. All rights reserved. 23 * - Redistributions of source code must retain the above 27 * - Redistributions in binary form must reproduce the above 58 #include <linux/dma-mapping.h> 125 * supports -EAGAIN scheme where tx is suspended till the QP has room for more * 145 - ISER_MAX_TX_MISC_PDUS \ 146 - ISER_MAX_RX_MISC_PDUS) / \ 181 * struct iser_data_buf - iSER data buffer 202 * struct iser_mem_reg - iSER memory registration info [all …]
|
| /linux/drivers/infiniband/ulp/rtrs/ |
| H A D | rtrs-pri.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (c) 2014 - 2018 ProfitBricks GmbH. All rights reserved. 6 * Copyright (c) 2018 - 2019 1&1 IONOS Cloud GmbH. All rights reserved. 7 * Copyright (c) 2019 - 2020 1&1 IONOS SE. All rights reserved. 29 * So the maximum sess_queue_depth is 65535 (2^16 - 1) in theory 38 MAX_IMM_TYPE_MASK = ((1 << MAX_IMM_TYPE_BITS) - 1), 40 MAX_IMM_PAYL_MASK = ((1 << MAX_IMM_PAYL_BITS) - 1), 128 struct ib_cqe cqe; member 136 * enum rtrs_msg_types - RTRS message types, see also rtrs/README 152 * enum rtrs_msg_flags - RTRS message flags. [all …]
|
| /linux/drivers/infiniband/hw/cxgb4/ |
| H A D | cq.c | 2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 49 res_wr->op_nres = cpu_to_be32( in destroy_cq() 53 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in destroy_cq() 54 res_wr->cookie = (uintptr_t)wr_waitp; in destroy_cq() 55 res = res_wr->res; in destroy_cq() 56 res->u.cq.restype = FW_RI_RES_TYPE_CQ; in destroy_cq() 57 res->u.cq.op = FW_RI_RES_OP_RESET; in destroy_cq() 58 res->u.cq.iqid = cpu_to_be32(cq->cqid); in destroy_cq() [all …]
|
| /linux/Documentation/devicetree/bindings/mmc/ |
| H A D | mmc-controller-common.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 14 possible slots or ports for multi-slot controllers. 17 "#address-cells": 22 "#size-cells": 29 broken-cd: 34 cd-gpios: [all …]
|
| /linux/drivers/infiniband/hw/vmw_pvrdma/ |
| H A D | pvrdma_dev_api.h | 2 * Copyright (c) 2012-2016 VMware, Inc. All rights reserved. 7 * 2-Clause License. This program is distributed in the hope that it 11 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html. 17 * The BSD 2-Clause License 23 * - Redistributions of source code must retain the above 27 * - Redistributions in binary form must reproduce the above 68 * Masks and accessors for page directory, which is a two-level lookup: 69 * page directory -> page table -> page. Only one directory for now, but we 83 * Max MSI-X vectors. 101 #define PVRDMA_CQ_FLAG_ARMED_SOL BIT(0) /* Armed for solicited-only. */ [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_fp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 35 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer() 39 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer() 40 rxq->filled_buffers--; in qede_alloc_rx_buffer() 46 return -ENOMEM; in qede_alloc_rx_buffer() 51 mapping = dma_map_page(rxq->dev, data, 0, in qede_alloc_rx_buffer() 52 PAGE_SIZE, rxq->data_direction); in qede_alloc_rx_buffer() 53 if (unlikely(dma_mapping_error(rxq->dev, mapping))) { in qede_alloc_rx_buffer() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | cqhci-crypto.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/blk-crypto.h> 9 #include <linux/blk-crypto-profile.h> 12 #include "cqhci-crypto.h" 14 /* Map from blk-crypto modes to CQHCI crypto algorithm IDs and key sizes */ 28 return mmc_from_crypto_profile(profile)->cqe_private; in cqhci_host_from_crypto_profile() 35 u32 slot_offset = cq_host->crypto_cfg_register + slot * sizeof(*cfg); in cqhci_crypto_program_key() 39 cqhci_writel(cq_host, 0, slot_offset + 16 * sizeof(cfg->reg_val[0])); in cqhci_crypto_program_key() 43 cqhci_writel(cq_host, le32_to_cpu(cfg->reg_val[i]), in cqhci_crypto_program_key() 44 slot_offset + i * sizeof(cfg->reg_val[0])); in cqhci_crypto_program_key() [all …]
|
| /linux/io_uring/ |
| H A D | rw.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/blk-mq.h> 41 if (req->flags & REQ_F_SUPPORT_NOWAIT) in io_file_supports_nowait() 47 return vfs_poll(req->file, &pt) & mask; in io_file_supports_nowait() 55 struct compat_iovec __user *uiov = u64_to_user_ptr(rw->addr); in io_iov_compat_buffer_select_prep() 59 return -EFAULT; in io_iov_compat_buffer_select_prep() 60 rw->len = iov.iov_len; in io_iov_compat_buffer_select_prep() 70 if (rw->len != 1) in io_iov_buffer_select_prep() 71 return -EINVAL; in io_iov_buffer_select_prep() 73 if (io_is_compat(req->ctx)) in io_iov_buffer_select_prep() [all …]
|
| /linux/drivers/nvme/target/ |
| H A D | pci-epf.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * REDS Institute, HEIG-VD, HES-SO, Switzerland 19 #include <linux/pci-epc.h> 20 #include <linux/pci-epf.h> 31 * allow up to 128 page-sized segments. For the maximum allowed, 36 (NVMET_PCI_EPF_MAX_SEGS << (PAGE_SHIFT - 10)) 126 struct nvme_completion cqe; member 229 __le32 *bar_reg = ctrl->bar + off; in nvmet_pci_epf_bar_read32() 237 __le32 *bar_reg = ctrl->bar + off; in nvmet_pci_epf_bar_write32() 259 struct pci_epf *epf = nvme_epf->epf; in nvmet_pci_epf_mem_map() [all …]
|
| H A D | passthru.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2017-2018 Western Digital Corporation or its 7 * Copyright (c) 2019-2020, Eideticom Inc. 27 * controller actually supports it. in nvmet_passthrough_override_cap() 29 if (!nvme_multi_css(ctrl->subsys->passthru_ctrl)) in nvmet_passthrough_override_cap() 30 ctrl->cap &= ~(1ULL << 43); in nvmet_passthrough_override_cap() 35 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_passthru_override_id_descs() 42 if (!ctrl->subsys->clear_ids) in nvmet_passthru_override_id_descs() 56 if (cur->nidl == 0) in nvmet_passthru_override_id_descs() 58 if (cur->nidt == NVME_NIDT_CSI) { in nvmet_passthru_override_id_descs() [all …]
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_admin_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 3 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved. 13 /* customer metrics - in correlation with 159 * 1 : ctrl_data - control buffer address valid 160 * 2 : ctrl_data_indirect - control buffer address 182 * 7:5 : sq_direction - 0x1 - Tx; 0x2 - Rx 233 * 7:5 : sq_direction - 0x1 - Tx, 0x2 - Rx 239 /* 3:0 : placement_policy - Describing where the SQ 241 * 0x1 - descriptors and headers are in OS memory, 242 * 0x3 - descriptors and headers in device memory [all …]
|
| H A D | ena_com.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 3 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved. 11 /* Timeout in micro-sec */ 57 /* Abort - canceled by the driver */ 81 if ((addr & GENMASK_ULL(ena_dev->dma_addr_bits - 1, 0)) != addr) { in ena_com_mem_addr_set() 82 netdev_err(ena_dev->net_device, in ena_com_mem_addr_set() 83 "DMA address has more bits that the device supports\n"); in ena_com_mem_addr_set() 84 return -EINVAL; in ena_com_mem_addr_set() 87 ena_addr->mem_addr_low = lower_32_bits(addr); in ena_com_mem_addr_set() 88 ena_addr->mem_addr_high = (u16)upper_32_bits(addr); in ena_com_mem_addr_set() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_cmn.c | 3 * Copyright (c) 2007-2013 Broadcom Corporation 47 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), bnx2x_poll); in bnx2x_add_all_napi_cnic() 57 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), bnx2x_poll); in bnx2x_add_all_napi() 74 * bnx2x_move_fp - move content of the fastpath structure. 80 * Makes sure the contents of the bp->fp[to].napi is kept 88 struct bnx2x_fastpath *from_fp = &bp->fp[from]; in bnx2x_move_fp() 89 struct bnx2x_fastpath *to_fp = &bp->fp[to]; in bnx2x_move_fp() 90 struct bnx2x_sp_objs *from_sp_objs = &bp->sp_objs[from]; in bnx2x_move_fp() 91 struct bnx2x_sp_objs *to_sp_objs = &bp->sp_objs[to]; in bnx2x_move_fp() 92 struct bnx2x_fp_stats *from_fp_stats = &bp->fp_stats[from]; in bnx2x_move_fp() [all …]
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_hw.c | 1 // SPDX-License-Identifier: GPL-2.0 36 hw->link.status = SLI4_LINK_STATUS_MAX; in efct_hw_link_event_init() 37 hw->link.topology = SLI4_LINK_TOPO_NONE; in efct_hw_link_event_init() 38 hw->link.medium = SLI4_LINK_MEDIUM_MAX; in efct_hw_link_event_init() 39 hw->link.speed = 0; in efct_hw_link_event_init() 40 hw->link.loop_map = NULL; in efct_hw_link_event_init() 41 hw->link.fc_id = U32_MAX; in efct_hw_link_event_init() 50 struct efct *efct = hw->os; in efct_hw_read_max_dump_size() 55 if (PCI_FUNC(efct->pci->devfn) != 0) in efct_hw_read_max_dump_size() 58 if (sli_cmd_common_set_dump_location(&hw->sli, buf, 1, 0, NULL, 0)) in efct_hw_read_max_dump_size() [all …]
|
| /linux/tools/net/ynl/pyynl/ |
| H A D | ethtool.py | 2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 17 Verify and convert command-line arguments to the ynl-compatible request. 20 valid_attrs.remove('header') # not user-provided 44 Pretty-print a set of fields from the reply. desc specifies the 72 Print out the speed-like strings from the value dict. 74 speed_re = re.compile(r'[0-9]+base[^/]+/.+') 84 'dev-name': args.device, 101 if msg['header']['dev-name'] == args.device: 113 Convert ynl-formatted bitmask to a dict of bit=value. 130 parser.add_argument('--json', action=argparse.BooleanOptionalAction) [all …]
|
| /linux/arch/arm64/boot/dts/mediatek/ |
| H A D | mt8188-evb.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 /dts-v1/; 11 compatible = "mediatek,mt8188-evb", "mediatek,mt8188"; 26 stdout-path = "serial0:115200n8"; 34 reserved_memory: reserved-memory { 35 #address-cells = <2>; 36 #size-cells = <2>; 40 compatible = "shared-dma-pool"; 42 no-map; 52 pinctrl-names = "default"; [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | fc.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/blk-cgroup.h> 15 #include <linux/nvme-fc-driver.h> 16 #include <linux/nvme-fc.h> 65 struct list_head lsreq_list; /* rport->ls_req_list */ 77 struct list_head lsrcv_list; /* rport->ls_rcv_list */ 133 struct list_head endp_list; /* for lport->endp_list */ 147 /* fc_ctrl flags values - specified as bit positions */ 164 struct list_head ctrl_list; /* rport->ctrl_list */ 224 * These items are short-term. They will eventually be moved into [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | qcs404-evb.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 19 stdout-path = "serial0"; 22 vph_pwr: vph-pwr-regulator { 23 compatible = "regulator-fixed"; 24 regulator-name = "vph_pwr"; 25 regulator-always-on; 26 regulator-boot-on; [all …]
|
| H A D | sdm660-xiaomi-lavender.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 7 /dts-v1/; 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/input/gpio-keys.h> 18 chassis-type = "handset"; 25 #address-cells = <2>; 26 #size-cells = <2>; 29 stdout-path = "serial0:115200n8"; 32 compatible = "simple-framebuffer"; 41 vph_pwr: vph-pwr-regulator { [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | cmd.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 2 /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ 190 /* QUERY_FW - Query Firmware 191 * ------------------------- 193 * ----------------------- 212 * Firmware Revision - Major 217 * Firmware Sub-minor version (Patch level) 222 * Firmware Revision - Minor 233 * every time a non-backward-compatible change is done for the command 250 * Firmware timestamp - hour [all …]
|
| /linux/include/net/mana/ |
| H A D | gdma.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 7 #include <linux/dma-mapping.h> 181 hdr->req.hdr_type = GDMA_STANDARD_HEADER_TYPE; in mana_gd_init_req_hdr() 182 hdr->req.msg_type = code; in mana_gd_init_req_hdr() 183 hdr->req.msg_version = GDMA_MESSAGE_V1; in mana_gd_init_req_hdr() 184 hdr->req.msg_size = req_size; in mana_gd_init_req_hdr() 186 hdr->resp.hdr_type = GDMA_STANDARD_HEADER_TYPE; in mana_gd_init_req_hdr() 187 hdr->resp.msg_type = code; in mana_gd_init_req_hdr() 188 hdr->resp.msg_version = GDMA_MESSAGE_V1; in mana_gd_init_req_hdr() 189 hdr->resp.msg_size = resp_size; in mana_gd_init_req_hdr() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | ublk_cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 70 * the associated cqe is returned, request's tag can be retrieved via 71 * cqe->userdata. 106 /* only ABORT means that no re-fetch */ 109 #define UBLK_IO_RES_ABORT (-ENODEV) 120 #define UBLK_IO_BUF_BITS_MASK ((1ULL << UBLK_IO_BUF_BITS) - 1) 125 #define UBLK_TAG_BITS_MASK ((1ULL << UBLK_TAG_BITS) - 1) 130 #define UBLK_QID_BITS_MASK ((1ULL << UBLK_QID_BITS) - 1) 179 * - Block devices are recoverable if ublk server exits and restarts 180 * - Outstanding I/O when ublk server exits is met with errors [all …]
|
| /linux/include/rdma/ |
| H A D | ib_verbs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 18 #include <linux/dma-mapping.h> 45 #include <linux/pci-tph.h> 202 if (attr->gid_type == IB_GID_TYPE_IB) in rdma_gid_attr_network_type() 205 if (attr->gid_type == IB_GID_TYPE_ROCE) in rdma_gid_attr_network_type() 208 if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) in rdma_gid_attr_network_type() 250 * This device supports th 371 unsigned int cqe; global() member 1616 int cqe; global() member [all...] |
| /linux/include/linux/ |
| H A D | nvme-fc-driver.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #include <linux/blk-mq.h> 14 * ********************** FC-NVME LS API ******************** 16 * Data structures used by both FC-NVME hosts and FC-NVME 17 * targets to perform FC-NVME LS requests or transmit 24 * struct nvmefc_ls_req - Request structure passed from the transport 25 * to the LLDD to perform a NVME-FC LS request and obtain 27 * Used by nvme-fc transport (host) to send LS's such as 30 * Used by the nvmet-fc transport (controller) to send 51 * negative errno on failure (example: -ENXIO). [all …]
|
| /linux/tools/testing/selftests/x86/ |
| H A D | lam.c | 1 // SPDX-License-Identifier: GPL-2.0 24 # error This test is 64-bit only 135 /* Check if cpu supports LAM */ in lam_is_available() 157 MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); in la57_enabled() 179 return -1; in set_lam() 191 ret = (ptr != -1ULL); in set_lam() 227 int ret = -1; in get_lam() 229 if (syscall(SYS_arch_prctl, ARCH_GET_UNTAG_MASK, &ptr) == - in get_lam() 571 struct io_uring_cqe *cqe; handle_uring_cq() local [all...] |