| /kernel/linux/linux-5.10/fs/cifs/ |
| D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 int rc), 24 TP_ARGS(xid, fid, tid, sesid, offset, len, rc), 32 __field(int, rc) 35 __entry->xid = xid; 36 __entry->fid = fid; 37 __entry->tid = tid; 38 __entry->sesid = sesid; 39 __entry->offset = offset; 40 __entry->len = len; [all …]
|
| /kernel/linux/linux-6.6/fs/smb/client/ |
| D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Please use this 3-part article as a reference for writing new tracepoints: 28 EM(netfs_trace_tcon_ref_free_ipc_fail, "FRE Ipc-F ") \ 30 EM(netfs_trace_tcon_ref_get_cached_laundromat, "GET Ch-Lau") \ 31 EM(netfs_trace_tcon_ref_get_cached_lease_break, "GET Ch-Lea") \ 32 EM(netfs_trace_tcon_ref_get_cancelled_close, "GET Cn-Cls") \ 40 EM(netfs_trace_tcon_ref_put_cached_close, "PUT Ch-Cls") \ 41 EM(netfs_trace_tcon_ref_put_cancelled_close, "PUT Cn-Cls") \ 42 EM(netfs_trace_tcon_ref_put_cancelled_close_fid, "PUT Cn-Fid") \ 43 EM(netfs_trace_tcon_ref_put_cancelled_mid, "PUT Cn-Mid") \ [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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. 34 qed_wr(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + (_offset)), \ 38 qed_rd(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + (_offset))) 55 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in qed_mcp_is_init() 62 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_cmd_port_init() 66 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in qed_mcp_cmd_port_init() 69 "port_addr = 0x%x, port_id 0x%02x\n", in qed_mcp_cmd_port_init() 70 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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) 182 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_free_disk() 195 struct mspro_block_data *msb = bdev->bd_disk->private_data; in mspro_block_bd_getgeo() 197 geo->heads = msb->heads; in mspro_block_bd_getgeo() 198 geo->sectors = msb->sectors_per_track; in mspro_block_bd_getgeo() 199 geo->cylinders = msb->cylinders; in mspro_block_bd_getgeo() 255 ssize_t cnt, rc = 0; in mspro_block_attr_show_default() local 257 for (cnt = 0; cnt < s_attr->size; cnt++) { in mspro_block_attr_show_default() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/sysdev/xive/ |
| D | spapr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 #include <asm/xive-regs.h> 36 #include "xive-internal.h" 56 return -ENOMEM; in xive_irq_bitmap_add() 58 spin_lock_init(&xibm->lock); in xive_irq_bitmap_add() 59 xibm->base = base; in xive_irq_bitmap_add() 60 xibm->count = count; in xive_irq_bitmap_add() 61 xibm->bitmap = bitmap_zalloc(xibm->count, GFP_KERNEL); in xive_irq_bitmap_add() 62 if (!xibm->bitmap) { in xive_irq_bitmap_add() 64 return -ENOMEM; in xive_irq_bitmap_add() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/sysdev/xics/ |
| D | ics-opal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 44 int64_t rc; in ics_opal_unmask_irq() local 47 pr_devel("ics-hal: unmask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_opal_unmask_irq() 52 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq() 55 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 56 if (rc != OPAL_SUCCESS) in ics_opal_unmask_irq() 57 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server=%x)" in ics_opal_unmask_irq() 59 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 71 int64_t rc; in ics_opal_mask_real_irq() local 77 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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/) 24 #define cpu_to_be32(x) bswap_32(x) argument 25 #define be32_to_cpu(x) bswap_32(x) argument 27 #define cpu_to_be32(x) (x) argument 28 #define be32_to_cpu(x) (x) argument 31 #define RTAS_IO_ASSERT -1098 /* Unexpected I/O Error */ 32 #define RTAS_UNKNOWN_OP -1099 /* No Firmware Implementation of Function */ 37 static const char *ofdt_rtas_path = "/proc/device-tree/rtas"; [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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...) 27 #include "fsi-master.h" 28 #include "fsi-slave.h" 106 * FSI endpoint-device support 123 if (addr > dev->size || size > dev->size || addr > dev->size - size) in fsi_device_read() 124 return -EINVAL; in fsi_device_read() 126 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read() [all …]
|
| /kernel/linux/linux-6.6/drivers/s390/crypto/ |
| D | ap_queue.c | 1 // SPDX-License-Identifier: GPL-2.0 27 return ap_test_bit(&aq->card->functions, AP_FUNC_EP11) || in ap_q_supports_bind() 28 ap_test_bit(&aq->card->functions, AP_FUNC_ACCEL); in ap_q_supports_bind() 33 return ap_test_bit(&aq->card->functions, AP_FUNC_EP11); in ap_q_supports_assoc() 52 status = ap_aqic(aq->qid, qirqctrl, virt_to_phys(ind)); in ap_queue_enable_irq() 54 return -EPERM; in ap_queue_enable_irq() 63 pr_err("Registering adapter interrupts for AP device %02x.%04x failed\n", in ap_queue_enable_irq() 64 AP_QID_CARD(aq->qid), in ap_queue_enable_irq() 65 AP_QID_QUEUE(aq->qid)); in ap_queue_enable_irq() 66 return -EOPNOTSUPP; in ap_queue_enable_irq() [all …]
|
| /kernel/linux/linux-5.10/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 24 cc = uv_cmd_nodata(kvm_s390_pv_cpu_get_handle(vcpu), UVC_CMD_DESTROY_SEC_CPU, rc, rrc); in kvm_s390_pv_destroy_cpu() 26 KVM_UV_EVENT(vcpu->kvm, 3, "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", *rc, *rrc); in kvm_s390_pv_destroy_cpu() 32 free_pages(vcpu->arch.pv.stor_base, in kvm_s390_pv_destroy_cpu() 35 free_page(sida_origin(vcpu->arch.sie_block)); in kvm_s390_pv_destroy_cpu() 36 vcpu->arch.sie_block->pv_handle_cpu = 0; in kvm_s390_pv_destroy_cpu() [all …]
|
| /kernel/linux/linux-5.10/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() 83 int64_t rc; in ics_opal_mask_real_irq() local 89 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|