/linux/fs/smb/client/ |
H A D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Please use this 3-part article as a reference for writing new tracepoints: 24 EM(cifs_trace_rw_credits_call_readv_adjust, "rd-call-adj") \ 25 EM(cifs_trace_rw_credits_call_writev_adjust, "wr-call-adj") \ 26 EM(cifs_trace_rw_credits_free_subreq, "free-subreq") \ 27 EM(cifs_trace_rw_credits_issue_read_adjust, "rd-issu-adj") \ 28 EM(cifs_trace_rw_credits_issue_write_adjust, "wr-issu-adj") \ 29 EM(cifs_trace_rw_credits_no_adjust_up, "no-adj-up ") \ 30 EM(cifs_trace_rw_credits_old_session, "old-session") \ 31 EM(cifs_trace_rw_credits_read_response_add, "rd-resp-add") \ [all …]
|
/linux/arch/powerpc/platforms/powernv/ |
H A 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/drivers/s390/crypto/ |
H A D | ap_queue.c | 1 // SPDX-License-Identifier: GPL-2.0 27 return aq->card->hwinfo.ep11 || aq->card->hwinfo.accel; in ap_q_supported_in_se() 32 return aq->card->hwinfo.ep11 || aq->card->hwinfo.accel; in ap_q_supports_bind() 37 return aq->card->hwinfo.ep11; in ap_q_supports_assoc() 61 status = ap_aqic(aq->qid, qirqctrl, virt_to_phys(ind)); in ap_queue_enable_irq() 63 return -EPERM; in ap_queue_enable_irq() 72 pr_err("Registering adapter interrupts for AP device %02x.%04x failed\n", in ap_queue_enable_irq() 73 AP_QID_CARD(aq->qid), in ap_queue_enable_irq() 74 AP_QID_QUEUE(aq->qid)); in ap_queue_enable_irq() 75 return -EOPNOTSUPP; in ap_queue_enable_irq() [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A 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 …]
|
H A 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 …]
|
H A D | qed_vf.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. 15 struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; in qed_vf_pf_prep() 23 mutex_lock(&(p_iov->mutex)); in qed_vf_pf_prep() 27 "preparing to send 0x%04x tlv over vf pf channel\n", in qed_vf_pf_prep() 31 p_iov->offset = (u8 *)p_iov->vf2pf_request; in qed_vf_pf_prep() 33 /* Clear mailbox - both request and reply */ in qed_vf_pf_prep() 34 memset(p_iov->vf2pf_request, 0, sizeof(union vfpf_tlvs)); in qed_vf_pf_prep() 35 memset(p_iov->pf2vf_reply, 0, sizeof(union pfvf_tlvs)); in qed_vf_pf_prep() [all …]
|
/linux/drivers/memstick/core/ |
H A 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 …]
|
/linux/arch/powerpc/sysdev/xive/ |
H A 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 …]
|
/linux/arch/powerpc/sysdev/xics/ |
H A 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 …]
|
/linux/drivers/media/dvb-frontends/ |
H A 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 …]
|
H A 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/drivers/scsi/bnx2fc/ |
H A 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/drivers/fsi/ |
H A 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 …]
|
/linux/tools/testing/selftests/powerpc/syscalls/ |
H A 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 …]
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | hotplug-memory.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #define pr_fmt(fmt) "pseries-hotplug-mem: " fmt 26 kfree(prop->name); in dlpar_free_property() 27 kfree(prop->value); in dlpar_free_property() 40 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in dlpar_clone_property() 41 new_prop->value = kzalloc(prop_size, GFP_KERNEL); in dlpar_clone_property() 42 if (!new_prop->name || !new_prop->value) { in dlpar_clone_property() 47 memcpy(new_prop->value, prop->value, prop->length); in dlpar_clone_property() 48 new_prop->length = prop_size; in dlpar_clone_property() 65 * The ibm,associativity-lookup-arrays property is defined to be in find_aa_index() [all …]
|
H A D | hotplug-cpu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #define pr_fmt(fmt) "pseries-hotplug-cpu: " fmt 86 vdso_data->processorCount--; in pseries_cpu_disable() 108 * the cpu-offline. Here we wait for long enough to allow the cpu in question 109 * to self-destroy so that the cpu-offline thread can send the CPU_DEAD 113 * self-destruct. 141 paca_ptrs[cpu]->cpu_start = 0; in pseries_cpu_die() 145 * find_cpu_id_range - found a linear ranger of @nthreads free CPU ids. 158 int rc = -ENOSPC; in find_cpu_id_range() local 161 return -ENOMEM; in find_cpu_id_range() [all …]
|
H A D | pmem.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #define pr_fmt(fmt) "pseries-pmem: " fmt 32 int rc; in pmem_drc_add_node() local 34 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); in pmem_drc_add_node() 36 rc = dlpar_acquire_drc(drc_index); in pmem_drc_add_node() 37 if (rc) { in pmem_drc_add_node() 38 pr_err("Failed to acquire DRC, rc: %d, drc index: %x\n", in pmem_drc_add_node() 39 rc, drc_index); in pmem_drc_add_node() 40 return -EINVAL; in pmem_drc_add_node() 45 pr_err("configure-connector failed for drc %x\n", drc_index); in pmem_drc_add_node() [all …]
|
/linux/drivers/gpu/drm/msm/hdmi/ |
H A 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/drivers/net/ethernet/sfc/ |
H A D | ef100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2018 Solarflare Communications Inc. 5 * Copyright 2019-2022 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/include/trace/events/ |
H A 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/drivers/misc/ |
H A 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/drivers/crypto/ccree/ |
H A D | cc_driver.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2012-2019 ARM Limited or its affiliates. */ 93 { .compatible = "arm,cryptocell-703-ree", .data = &cc703_hw }, 94 { .compatible = "arm,cryptocell-713-ree", .data = &cc713_hw }, 95 { .compatible = "arm,cryptocell-712-ree", .data = &cc712_hw }, 96 { .compatible = "arm,cryptocell-710-ree", .data = &cc710_hw }, 97 { .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/drivers/s390/char/ |
H A D | sclp_cmd.c | 1 // SPDX-License-Identifier: GPL-2.0 30 #include <asm/page-states.h> 53 int rc; in sclp_sync_request_timeout() local 57 return -ENOMEM; in sclp_sync_request_timeout() 59 request->queue_timeout = timeout; in sclp_sync_request_timeout() 60 request->command = cmd; in sclp_sync_request_timeout() 61 request->sccb = sccb; in sclp_sync_request_timeout() 62 request->status = SCLP_REQ_FILLED; in sclp_sync_request_timeout() 63 request->callback = sclp_sync_callback; in sclp_sync_request_timeout() 64 request->callback_data = &completion; in sclp_sync_request_timeout() [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A 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/drivers/pci/hotplug/ |
H A 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. 55 int rc = 1; in get_cur_bus_info() local 58 debug("options = %x\n", slot_cur->ctrl->options); in get_cur_bus_info() 59 debug("revision = %x\n", slot_cur->ctrl->revision); in get_cur_bus_info() 61 if (READ_BUS_STATUS(slot_cur->ctrl)) in get_cur_bus_info() 62 rc = ibmphp_hpc_readslot(slot_cur, READ_BUSSTATUS, NULL); in get_cur_bus_info() 64 if (rc) in get_cur_bus_info() 65 return rc; in get_cur_bus_info() [all …]
|