/Linux-v5.15/fs/cifs/ |
D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * Please use this 3-part article as a reference for writing new tracepoints: 28 int rc), 29 TP_ARGS(xid, fid, tid, sesid, offset, len, rc), 37 __field(int, rc) 40 __entry->xid = xid; 41 __entry->fid = fid; 42 __entry->tid = tid; 43 __entry->sesid = sesid; 44 __entry->offset = offset; [all …]
|
/Linux-v5.15/drivers/memstick/core/ |
D | mspro_block.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/blk-mq.h> 27 #define MSPRO_BLOCK_MAX_PAGES ((2 << 16) - 1) 183 struct gendisk *disk = bdev->bd_disk; in mspro_block_bd_open() 184 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_open() 185 int rc = -ENXIO; in mspro_block_bd_open() local 189 if (msb && msb->card) { in mspro_block_bd_open() 190 msb->usage_count++; in mspro_block_bd_open() 191 if ((mode & FMODE_WRITE) && msb->read_only) in mspro_block_bd_open() 192 rc = -EROFS; in mspro_block_bd_open() [all …]
|
/Linux-v5.15/arch/powerpc/platforms/powernv/ |
D | opal-dump.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 #define to_dump_obj(x) container_of(x, struct dump_obj, kobj) argument 37 #define to_dump_attr(x) container_of(x, struct dump_attribute, attr) argument 43 return sprintf(buf, "0x%x\n", dump_obj->id); in dump_id_show() 61 return sprintf(buf, "0x%x %s\n", dump_obj->type, in dump_type_show() 62 dump_type_to_string(dump_obj->type)); in dump_type_show() 69 return sprintf(buf, "ack - acknowledge dump\n"); in dump_ack_show() 77 int rc; in dump_send_ack() local 79 rc = opal_dump_ack(dump_id); in dump_send_ack() 80 if (rc) in dump_send_ack() [all …]
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/ |
D | qed_iwarp.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. 69 struct qed_rdma_device *dev = p_hwfn->p_rdma_info->dev; in qed_iwarp_init_devinfo() 71 dev->max_inline = IWARP_REQ_MAX_INLINE_DATA_SIZE; in qed_iwarp_init_devinfo() 72 dev->max_qp = min_t(u32, in qed_iwarp_init_devinfo() 74 p_hwfn->p_rdma_info->num_qps) - in qed_iwarp_init_devinfo() 77 dev->max_cq = dev->max_qp; in qed_iwarp_init_devinfo() 79 dev->max_qp_resp_rd_atomic_resc = QED_IWARP_IRD_DEFAULT; in qed_iwarp_init_devinfo() 80 dev->max_qp_req_rd_atomic_resc = QED_IWARP_ORD_DEFAULT; in qed_iwarp_init_devinfo() [all …]
|
D | qed_mcp.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. 33 qed_wr(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + _offset), \ 37 qed_rd(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + _offset)) 54 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in qed_mcp_is_init() 61 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_cmd_port_init() 65 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in qed_mcp_cmd_port_init() 68 "port_addr = 0x%x, port_id 0x%02x\n", in qed_mcp_cmd_port_init() 69 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init() [all …]
|
/Linux-v5.15/drivers/media/dvb-frontends/ |
D | stb6100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 30 #define dprintk(x, y, z, format, arg...) do { \ argument 32 if ((x > FE_ERROR) && (x > y)) \ 34 else if ((x > FE_NOTICE) && (x > y)) \ 36 else if ((x > FE_INFO) && (x > y)) \ 38 else if ((x > FE_DEBUG) && (x > y)) \ 41 if (x > y) \ 123 int rc; in stb6100_read_regs() local 125 .addr = state->config->tuner_address, in stb6100_read_regs() 131 rc = i2c_transfer(state->i2c, &msg, 1); in stb6100_read_regs() [all …]
|
D | s921.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2009-2010 Mauro Carvalho Chehab 7 * Copyright (C) 2009-2010 Douglas Landgraf <dougsland@redhat.com> 27 #define rc(args...) do { \ macro 205 int rc; in s921_i2c_writereg() local 207 rc = i2c_transfer(state->i2c, &msg, 1); in s921_i2c_writereg() 208 if (rc != 1) { in s921_i2c_writereg() 209 printk("%s: writereg rcor(rc == %i, reg == 0x%02x, data == 0x%02x)\n", in s921_i2c_writereg() 210 __func__, rc, reg, data); in s921_i2c_writereg() 211 return rc; in s921_i2c_writereg() [all …]
|
/Linux-v5.15/drivers/scsi/bnx2fc/ |
D | bnx2fc_els.c | 6 * Copyright (c) 2008-2013 Broadcom Corporation 7 * Copyright (c) 2014-2016 QLogic Corporation 8 * Copyright (c) 2016-2017 Cavium Inc. 32 int rc = 0; in bnx2fc_rrq_compl() local 35 rrq_req = cb_arg->io_req; in bnx2fc_rrq_compl() 36 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rrq_compl() 38 BNX2FC_ELS_DBG("rrq_compl: orig xid = 0x%x, rrq_xid = 0x%x\n", in bnx2fc_rrq_compl() 39 orig_io_req->xid, rrq_req->xid); in bnx2fc_rrq_compl() 41 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rrq_compl() 43 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &rrq_req->req_flags)) { in bnx2fc_rrq_compl() [all …]
|
/Linux-v5.15/drivers/fsi/ |
D | fsi-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - Rework topology 9 * - s/chip_id/chip_loc 10 * - s/cfam/chip (cfam_id -> chip_id etc...) 25 #include "fsi-master.h" 120 * FSI endpoint-device support 137 if (addr > dev->size || size > dev->size || addr > dev->size - size) in fsi_device_read() 138 return -EINVAL; in fsi_device_read() 140 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read() 147 if (addr > dev->size || size > dev->size || addr > dev->size - size) in fsi_device_write() [all …]
|
D | fsi-sbefifo.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/fsi-sbefifo.h> 36 * The SBEFIFO is a pipe-like FSI device for communicating with 48 #define SBEFIFO_UP 0x00 /* FSI -> Host */ 49 #define SBEFIFO_DOWN 0x40 /* Host -> FSI */ 51 /* Per-bank registers */ 83 SBE_STATE_IPLING = 0x1, // IPL'ing - autonomous mode (transient) 84 SBE_STATE_ISTEP = 0x2, // ISTEP - Running IPL by steps (transient) 90 SBE_STATE_QUIESCE = 0x8, // Final state - needs SBE reset to get out 101 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts)) [all …]
|
/Linux-v5.15/arch/powerpc/sysdev/xics/ |
D | ics-opal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 45 int64_t rc; in ics_opal_unmask_irq() local 48 pr_devel("ics-hal: unmask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_opal_unmask_irq() 53 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq() 56 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 57 if (rc != OPAL_SUCCESS) in ics_opal_unmask_irq() 58 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server=%x)" in ics_opal_unmask_irq() 60 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 72 int64_t rc; in ics_opal_mask_real_irq() local 78 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq() [all …]
|
/Linux-v5.15/tools/testing/selftests/powerpc/syscalls/ |
D | rtas_filter.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2005-2020 IBM Corporation. 5 * Includes code from librtas (https://github.com/ibm-power-utilities/librtas/) 23 #define cpu_to_be32(x) bswap_32(x) argument 24 #define be32_to_cpu(x) bswap_32(x) argument 26 #define cpu_to_be32(x) (x) argument 27 #define be32_to_cpu(x) (x) argument 30 #define RTAS_IO_ASSERT -1098 /* Unexpected I/O Error */ 31 #define RTAS_UNKNOWN_OP -1099 /* No Firmware Implementation of Function */ 36 static const char *ofdt_rtas_path = "/proc/device-tree/rtas"; [all …]
|
/Linux-v5.15/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_hdcp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved. 81 int rc; in msm_hdmi_ddc_read() local 99 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read() 101 retry--; in msm_hdmi_ddc_read() 102 if (rc == 2) in msm_hdmi_ddc_read() 103 rc = 0; in msm_hdmi_ddc_read() 107 rc = -EIO; in msm_hdmi_ddc_read() 109 DBG("End DDC read %d", rc); in msm_hdmi_ddc_read() 111 return rc; in msm_hdmi_ddc_read() [all …]
|
/Linux-v5.15/arch/s390/kvm/ |
D | pv.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include "kvm-s390.h" 17 int kvm_s390_pv_destroy_cpu(struct kvm_vcpu *vcpu, u16 *rc, u16 *rrc) in kvm_s390_pv_destroy_cpu() argument 23 UVC_CMD_DESTROY_SEC_CPU, rc, rrc); in kvm_s390_pv_destroy_cpu() 25 KVM_UV_EVENT(vcpu->kvm, 3, in kvm_s390_pv_destroy_cpu() 26 "PROTVIRT DESTROY VCPU %d: rc %x rrc %x", in kvm_s390_pv_destroy_cpu() 27 vcpu->vcpu_id, *rc, *rrc); in kvm_s390_pv_destroy_cpu() 28 WARN_ONCE(cc, "protvirt destroy cpu failed rc %x rrc %x", in kvm_s390_pv_destroy_cpu() 29 *rc, *rrc); in kvm_s390_pv_destroy_cpu() 33 free_pages(vcpu->arch.pv.stor_base, in kvm_s390_pv_destroy_cpu() [all …]
|
/Linux-v5.15/drivers/pci/hotplug/ |
D | ibmphp_core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (C) 2001,2003 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2001-2003 IBM Corp. 63 int rc = 1; in get_cur_bus_info() local 66 debug("options = %x\n", slot_cur->ctrl->options); in get_cur_bus_info() 67 debug("revision = %x\n", slot_cur->ctrl->revision); in get_cur_bus_info() 69 if (READ_BUS_STATUS(slot_cur->ctrl)) in get_cur_bus_info() 70 rc = ibmphp_hpc_readslot(slot_cur, READ_BUSSTATUS, NULL); in get_cur_bus_info() 72 if (rc) in get_cur_bus_info() 73 return rc; in get_cur_bus_info() [all …]
|
/Linux-v5.15/drivers/s390/char/ |
D | sclp_cmd.c | 1 // SPDX-License-Identifier: GPL-2.0 49 int rc; in sclp_sync_request_timeout() local 53 return -ENOMEM; in sclp_sync_request_timeout() 55 request->queue_timeout = timeout; in sclp_sync_request_timeout() 56 request->command = cmd; in sclp_sync_request_timeout() 57 request->sccb = sccb; in sclp_sync_request_timeout() 58 request->status = SCLP_REQ_FILLED; in sclp_sync_request_timeout() 59 request->callback = sclp_sync_callback; in sclp_sync_request_timeout() 60 request->callback_data = &completion; in sclp_sync_request_timeout() 64 rc = sclp_add_request(request); in sclp_sync_request_timeout() [all …]
|
/Linux-v5.15/drivers/net/ethernet/sfc/ |
D | ef100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 44 /* Number of bytes to offset when reading bit position x with dword accessors. */ 45 #define ROUND_DOWN_TO_DWORD(x) (((x) & (~31)) >> 3) argument 47 #define EXTRACT_BITS(x, lbn, width) \ argument 48 (((x) >> ((lbn) & 31)) & ((1ull << (width)) - 1)) 73 netif_dbg(efx, probe, efx->net_dev, in ef100_pci_parse_ef100_entry() 74 "Found EF100 function control window bar=%d offset=0x%llx\n", in ef100_pci_parse_ef100_entry() 77 if (result->valid) { in ef100_pci_parse_ef100_entry() [all …]
|
/Linux-v5.15/include/trace/events/ |
D | rdma_core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 31 #define ib_poll_ctx(x) TRACE_DEFINE_ENUM(IB_POLL_##x); argument 32 #define ib_poll_ctx_end(x) TRACE_DEFINE_ENUM(IB_POLL_##x); argument 39 #define ib_poll_ctx(x) { IB_POLL_##x, #x }, argument 40 #define ib_poll_ctx_end(x) { IB_POLL_##x, #x } argument 42 #define rdma_show_ib_poll_ctx(x) \ argument 43 __print_symbolic(x, IB_POLL_CTX_LIST) 61 cq->timestamp = ktime_get(); 62 cq->interrupt = true; 64 __entry->cq_id = cq->res.id; [all …]
|
/Linux-v5.15/drivers/misc/ |
D | ibmvmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 57 long rc = 0; in h_copy_rdma() local 61 pr_debug("ibmvmc: h_copy_rdma(0x%llx, 0x%llx, 0x%llx, 0x%llx, 0x%llx\n", in h_copy_rdma() 63 rc = plpar_hcall_norets(H_COPY_RDMA, length, sliobn, slioba, in h_copy_rdma() 65 pr_debug("ibmvmc: h_copy_rdma rc = 0x%lx\n", rc); in h_copy_rdma() 67 return rc; in h_copy_rdma() 72 long rc = 0; in h_free_crq() local 75 if (H_IS_LONG_BUSY(rc)) in h_free_crq() 76 msleep(get_longbusy_msecs(rc)); in h_free_crq() 78 rc = plpar_hcall_norets(H_FREE_CRQ, unit_address); in h_free_crq() [all …]
|
/Linux-v5.15/drivers/spi/ |
D | spi-fsi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 48 #define SPI_FSI_SEQUENCE_SEL_SLAVE(x) (0x10 | ((x) & 0xf)) argument 49 #define SPI_FSI_SEQUENCE_SHIFT_OUT(x) (0x30 | ((x) & 0xf)) argument 50 #define SPI_FSI_SEQUENCE_SHIFT_IN(x) (0x40 | ((x) & 0xf)) argument 52 #define SPI_FSI_SEQUENCE_BRANCH(x) (0xe0 | ((x) & 0xf)) argument 83 int rc; in fsi_spi_check_mux() local 87 rc = fsi_slave_read(fsi->slave, FSI_MBOX_ROOT_CTRL_8, &root_ctrl_8_be, in fsi_spi_check_mux() 89 if (rc) in fsi_spi_check_mux() 90 return rc; in fsi_spi_check_mux() 93 dev_dbg(dev, "Root control register 8: %08x\n", root_ctrl_8); in fsi_spi_check_mux() [all …]
|
/Linux-v5.15/arch/powerpc/platforms/pseries/ |
D | pmem.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #define pr_fmt(fmt) "pseries-pmem: " fmt 33 int rc; in pmem_drc_add_node() local 35 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); in pmem_drc_add_node() 37 rc = dlpar_acquire_drc(drc_index); in pmem_drc_add_node() 38 if (rc) { in pmem_drc_add_node() 39 pr_err("Failed to acquire DRC, rc: %d, drc index: %x\n", in pmem_drc_add_node() 40 rc, drc_index); in pmem_drc_add_node() 41 return -EINVAL; in pmem_drc_add_node() 46 pr_err("configure-connector failed for drc %x\n", drc_index); in pmem_drc_add_node() [all …]
|
/Linux-v5.15/drivers/net/wireless/ath/wil6210/ |
D | fw_inc.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 25 wil_err_fw(wil, "bad %s: 0x%08x\n", msg, le32_to_cpu(val)); in wil_fw_addr_check() 32 * wil_fw_verify - verify firmware file validity 49 return -EINVAL; in wil_fw_verify() 54 return -EINVAL; in wil_fw_verify() 58 if (le16_to_cpu(hdr->type) != wil_fw_type_file_header) { in wil_fw_verify() 60 return -EINVAL; in wil_fw_verify() 65 dlen = le32_to_cpu(fh_->data_len); in wil_fw_verify() [all …]
|
/Linux-v5.15/drivers/crypto/ccree/ |
D | cc_driver.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2012-2019 ARM Limited or its affiliates. */ 94 { .compatible = "arm,cryptocell-703-ree", .data = &cc703_hw }, 95 { .compatible = "arm,cryptocell-713-ree", .data = &cc713_hw }, 96 { .compatible = "arm,cryptocell-712-ree", .data = &cc712_hw }, 97 { .compatible = "arm,cryptocell-710-ree", .data = &cc710_hw }, 98 { .compatible = "arm,cryptocell-630p-ree", .data = &cc630p_hw }, 110 dev_dbg(dev, "Cache params previous: 0x%08X\n", cache_params); in init_cc_cache_params() 112 /* non cached or write-back, write allocate */ in init_cc_cache_params() 113 val = drvdata->coherent ? 0xb : 0x2; in init_cc_cache_params() [all …]
|
/Linux-v5.15/drivers/misc/cxl/ |
D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 75 __entry->card = ctx->afu->adapter->adapter_num; 76 __entry->afu = ctx->afu->slice; 77 __entry->pe = ctx->pe; 81 __entry->card, 82 __entry->afu, 83 __entry->pe 104 __entry->card = ctx->afu->adapter->adapter_num; 105 __entry->afu = ctx->afu->slice; 106 __entry->pe = ctx->pe; [all …]
|
/Linux-v5.15/drivers/scsi/ibmvscsi_tgt/ |
D | ibmvscsi_tgt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2003-2005 Dave Boutcher (boutcher@us.ibm.com) IBM Corp. 8 * Copyright (C) 2005-2011 FUJITA Tomonori <tomof@acm.org> 47 static uint partition_number = -1; 61 u32 residual_count = se_cmd->residual_count; in ibmvscsis_determine_resid() 66 if (se_cmd->se_cmd_flags & SCF_UNDERFLOW_BIT) { in ibmvscsis_determine_resid() 67 if (se_cmd->data_direction == DMA_TO_DEVICE) { in ibmvscsis_determine_resid() 69 rsp->flags = SRP_RSP_FLAG_DOUNDER; in ibmvscsis_determine_resid() 70 rsp->data_out_res_cnt = cpu_to_be32(residual_count); in ibmvscsis_determine_resid() 71 } else if (se_cmd->data_direction == DMA_FROM_DEVICE) { in ibmvscsis_determine_resid() [all …]
|