/linux/drivers/media/pci/zoran/ |
H A D | zr36016.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 * Local hardware I/O functions: read/write via codec layer 36 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_read() 39 if (ptr->codec->master_data->readreg) in zr36016_read() 40 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36016_read() 42 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36016_read() 44 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36016_read() 51 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_write() 53 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36016_write() 56 if (ptr->codec->master_data->writereg) in zr36016_write() [all …]
|
H A D | zr36050.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 * Local hardware I/O functions: 43 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_read() 47 if (ptr->codec->master_data->readreg) in zr36050_read() 48 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36050_read() 50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36050_read() 52 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36050_read() 59 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_write() 61 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36050_write() 64 if (ptr->codec->master_data->writereg) in zr36050_write() [all …]
|
H A D | zr36060.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 * Local hardware I/O functions: 44 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_read() 47 if (ptr->codec->master_data->readreg) in zr36060_read() 48 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xff; in zr36060_read() 50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36060_read() 57 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_write() 62 if (ptr->codec->master_data->writereg) in zr36060_write() 63 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write() 65 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36060_write() [all …]
|
/linux/drivers/dma/ |
H A D | dmaengine.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 2004 - 2006 Intel Corporation. All rights reserved. 7 * This code implements the DMA subsystem. It provides a HW-neutral interface 29 * See Documentation/driver-api/dmaengine for more details 35 #include <linux/dma-mapping.h> 63 /* --- debugfs implementation --- */ 71 dma_dev->dbg_dev_root = debugfs_create_dir(dev_name(dma_dev->dev), in dmaengine_debug_register() 73 if (IS_ERR(dma_dev->dbg_dev_root)) in dmaengine_debug_register() 74 dma_dev->dbg_dev_root = NULL; in dmaengine_debug_register() 79 debugfs_remove_recursive(dma_dev->dbg_dev_root); in dmaengine_debug_unregister() [all …]
|
/linux/net/mac80211/ |
H A D | mlme.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2003-2008, Jouni Malinen <j@w1.fi> 7 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 9 * Copyright 2013-2014 Intel Mobile Communications GmbH 10 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH 11 * Copyright (C) 2018 - 2024 Intel Corporation 29 #include "driver-ops.h" 105 * has happened -- the work that runs from this timer will 111 lockdep_assert_wiphy(sdata->local->hw.wiphy); in run_again() 113 if (!timer_pending(&sdata->u.mgd.timer) || in run_again() [all …]
|
H A D | util.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2015-2017 Intel Deutschland GmbH 9 * Copyright (C) 2018-2025 Intel Corporation 30 #include "driver-ops.h" 42 struct ieee80211_local *local; in wiphy_to_ieee80211_hw() local 44 local = wiphy_priv(wiphy); in wiphy_to_ieee80211_hw() [all …]
|
H A D | agg-rx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright 2002-2005, Instant802 Networks, Inc. 7 * Copyright 2005-2006, Devicescape Software, Inc. 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 10 * Copyright 2007-2010, Intel Corporation 11 * Copyright(c) 2015-2017 Intel Deutschland GmbH 12 * Copyright (C) 2018-2023 Intel Corporation 16 * DOC: RX A-MPDU aggregation 20 * block-ack sessions for RX aggregation. 29 * to de-aggregate frames and pass them up one by one to mac80211, [all …]
|
H A D | iface.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2002-2005, Instant802 Networks, Inc. 6 * Copyright 2005-2006, Devicescape Software, Inc. 9 * Copyright 2013-2014 Intel Mobile Communications GmbH 11 * Copyright (C) 2018-2024 Intel Corporation 26 #include "driver-ops.h" 34 * three-fold: 39 * can traverse the list in RCU-safe blocks. 53 chanctx_conf = rcu_dereference(link->conf->chanctx_conf); in __ieee80211_recalc_txpower() 59 power = ieee80211_chandef_max_power(&chanctx_conf->def); in __ieee80211_recalc_txpower() [all …]
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_dcb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2009-2013 QLogic Corporation 92 /* 1st local, 2nd operational 3rd remote */ 163 /* 0 - local, 1 - operational, 2 - remote */ 243 if (test_bit(QLCNIC_DCB_STATE, &dcb->state)) in __qlcnic_init_dcbnl_ops() 244 dcb->adapter->netdev->dcbnl_ops = &qlcnic_dcbnl_ops; in __qlcnic_init_dcbnl_ops() 250 adapter->dcb->ops = &qlcnic_82xx_dcb_ops; in qlcnic_set_dcb_ops() 252 adapter->dcb->ops = &qlcnic_83xx_dcb_ops; in qlcnic_set_dcb_ops() 264 return -ENOMEM; in qlcnic_register_dcb() 266 adapter->dcb = dcb; in qlcnic_register_dcb() [all …]
|
/linux/drivers/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved. 6 * Maintained at www.Open-FCoE.org 82 * fcoe_ctlr_set_state() - Set and do debug printing for the new FIP state. 88 if (state == fip->state) in fcoe_ctlr_set_state() 90 if (fip->lp) in fcoe_ctlr_set_state() 91 LIBFCOE_FIP_DBG(fip, "state %s -> %s\n", in fcoe_ctlr_set_state() 92 fcoe_ctlr_state(fip->state), fcoe_ctlr_state(state)); in fcoe_ctlr_set_state() 93 fip->state = state; in fcoe_ctlr_set_state() 97 * fcoe_ctlr_mtu_valid() - Check if a FCF's MTU is valid [all …]
|
/linux/drivers/scsi/cxlflash/ |
H A D | superpipe.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 22 /* Chunk size parms: note sislite minimum chunk size is 40 u64 max_lba; /* from read cap(16) */ 41 u32 blk_len; /* from read cap(16) */ 53 /* Local (per-adapter) lun_info structure */ 91 u32 rht_perms; /* User-defined permissions for RHT entries */ 93 u8 *rht_needs_ws; /* User-desired write-same function per RHTE */
|
/linux/drivers/usb/early/ |
H A D | ehci-dbgp.c | 1 // SPDX-License-Identifier: GPL-2.0 28 #include <asm/pci-direct.h> 82 dbgp_printk(" Debug control: %08x", readl(&ehci_debug->control)); in dbgp_ehci_status() 83 dbgp_printk(" ehci cmd : %08x", readl(&ehci_regs->command)); in dbgp_ehci_status() 85 readl(&ehci_regs->configured_flag)); in dbgp_ehci_status() 86 dbgp_printk(" ehci status : %08x", readl(&ehci_regs->status)); in dbgp_ehci_status() 88 readl(&ehci_regs->port_status[dbgp_phys_port - 1])); in dbgp_ehci_status() 107 /* Local version of HC_LENGTH macro as ehci struct is not available here */ 167 ret = readl_poll_timeout_atomic(&ehci_debug->control, ctrl, in dbgp_wait_until_complete() 170 return -DBGP_TIMEOUT; in dbgp_wait_until_complete() [all …]
|
/linux/drivers/infiniband/sw/rdmavt/ |
H A D | qp.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright(c) 2016 - 2020 Intel Corporation. 66 * completions as per IB 1.2 C10-96. 84 /* platform specific: return the last level cache (llc) size, in KiB */ 105 struct rvt_wss *wss = rdi->wss; in rvt_wss_exit() 111 kfree(wss->entries); in rvt_wss_exit() 112 wss->entries = NULL; in rvt_wss_exit() 113 kfree(rdi->wss); in rvt_wss_exit() 114 rdi->wss = NULL; in rvt_wss_exit() 118 * rvt_wss_init - Init wss data structures [all …]
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_connect.c | 1 // SPDX-License-Identifier: GPL-2.0 111 fprintf(stderr, "Usage: mptcp_connect [-6] [-c cmsg] [-f offset] [-i file] [-I num] [-j] [-l] " in die_usage() 112 "[-m mode] [-M mark] [-o option] [-p port] [-P mode] [-r num] [-R num] " in die_usage() 113 "[-s MPTCP|TCP] [-S num] [-t num] [-T num] [-w sec] connect_address\n"); in die_usage() 114 fprintf(stderr, "\t-6 use ipv6\n"); in die_usage() 115 fprintf(stderr, "\t-c cmsg -- test cmsg type <cmsg>\n"); in die_usage() 116 fprintf(stderr, "\t-f offset -- stop the I/O after receiving and sending the specified amount " in die_usage() 119 "all the local data as been sent, thus toleration errors on write and EPIPE signals\n"); in die_usage() 120 fprintf(stderr, "\t-i file -- read the data to send from the given file instead of stdin"); in die_usage() 121 fprintf(stderr, "\t-I num -- repeat the transfer 'num' times. In listen mode accepts num " in die_usage() [all …]
|
/linux/drivers/staging/media/ipu3/ |
H A D | ipu3-v4l2.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <media/v4l2-event.h> 8 #include <media/v4l2-ioctl.h> 11 #include "ipu3-dmamap.h" 24 struct imgu_media_pipe *imgu_pipe = &imgu->imgu_pipe[imgu_sd->pipe]; in imgu_subdev_open() 32 imgu_pipe->nodes[IMGU_NODE_IN].vdev_fmt.fmt.pix_mp.width; in imgu_subdev_open() 34 imgu_pipe->nodes[IMGU_NODE_IN].vdev_fmt.fmt.pix_mp.height; in imgu_subdev_open() 39 v4l2_subdev_state_get_format(fh->state, i); in imgu_subdev_open() 41 try_fmt->width = try_crop.width; in imgu_subdev_open() 42 try_fmt->height = try_crop.height; in imgu_subdev_open() [all …]
|
/linux/drivers/input/mouse/ |
H A D | cyapa_gen5.c | 6 * Copyright (C) 2014-2015 Cypress Semiconductor, Inc. 21 #include <linux/crc-itu-t.h> 33 #define CYAPA_TSG_IMG_MAX_RECORDS (CYAPA_TSG_IMG_END_ROW_NUM - \ 141 * Bit 7 - 3: reserved 142 * Bit 2 - 0: touch type; 146 * 3 - 15 : reserved. 154 * Bit 6 - 5: indicates an event associated with this touch instance 159 * Bit 4 - 0: An arbitrary ID tag associated with a finger 164 /* Bit 7 - 0 of X-axis coordinate of the touch in pixel. */ 167 /* Bit 15 - 8 of X-axis coordinate of the touch in pixel. */ [all …]
|
/linux/include/linux/ |
H A D | randomize_kstack.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 #include <linux/percpu-defs.h> 16 * it provides an arch-agnostic way to grow the stack with correct 18 * 10 bits, stack-clash style attacks are unlikely. For more details see 35 * Use, at most, 6 bits of entropy (on 64-bit; 8 on 32-bit). This cap is 37 * the bottom 4 bits (on 64-bit systems, 2 for 32-bit), since stack 38 * alignment will always be at least word size. This makes the compiler 39 * code gen better when it is applying the actual per-arch alignment to 50 * add_random_kstack_offset - Increase stack utilization by previously 56 * tools/testing/selftests/lkdtm/stack-entropy.sh [all …]
|
/linux/fs/smb/server/ |
H A D | transport_rdma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 * as defined in [MS-SMBD] 3.1.1.1 58 /* The local peer's maximum number of credits to grant to the peer */ 61 /* The remote peer's credit request of local peer */ 64 /* The maximum single message size can be sent to remote peer */ 67 /* The maximum fragmented upper-layer payload receive size supported */ 70 /* The maximum single-message size which can be received */ 160 #define KSMBD_TRANS(t) ((struct ksmbd_transport *)&((t)->transport)) 218 static inline int get_buf_page_count(void *buf, int size) in get_buf_page_count() argument 220 return DIV_ROUND_UP((uintptr_t)buf + size, PAGE_SIZE) - in get_buf_page_count() [all …]
|
/linux/Documentation/devicetree/bindings/input/ |
H A D | iqs269a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 - $ref: input.yaml# 16 The Azoteq IQS269A is an 8-channel capacitive touch controller that features 17 additional Hall-effect and inductive sensing capabilities. 24 - azoteq,iqs269a 25 - azoteq,iqs269a-00 26 - azoteq,iqs269a-d0 [all …]
|
/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-ioctl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 9 #include "ivtv-driver.h" 10 #include "ivtv-version.h" 11 #include "ivtv-mailbox.h" 12 #include "ivtv-i2c.h" 13 #include "ivtv-queue.h" 14 #include "ivtv-fileops.h" 15 #include "ivtv-vbi.h" [all …]
|
/linux/drivers/infiniband/sw/siw/ |
H A D | siw_verbs.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 4 /* Copyright (c) 2008-2019, IBM Corporation */ 57 size_t size = vma->vm_end - vma->vm_start; in siw_mmap() local 60 int rv = -EINVAL; in siw_mmap() 65 if (vma->vm_start & (PAGE_SIZE - 1)) { in siw_mmap() 67 return -EINVAL; in siw_mmap() 69 rdma_entry = rdma_user_mmap_entry_get(&uctx->base_ucontext, vma); in siw_mmap() 71 siw_dbg(&uctx->sdev->base_dev, "mmap lookup failed: %lu, %#zx\n", in siw_mmap() 72 vma->vm_pgoff, size); in siw_mmap() 73 return -EINVAL; in siw_mmap() [all …]
|
/linux/arch/arm/boot/dts/socionext/ |
H A D | uniphier-pro4.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 5 // Copyright (C) 2015-2016 Socionext Inc. 8 #include <dt-bindings/gpio/uniphier-gpio.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 compatible = "socionext,uniphier-pro4"; 13 #address-cells = <1>; 14 #size-cells = <1>; 17 #address-cells = <1>; 18 #size-cells = <0>; 22 compatible = "arm,cortex-a9"; [all …]
|
/linux/drivers/scsi/ibmvscsi_tgt/ |
H A 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 …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dcbx.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. 39 ((u32)(prio_tc_tbl >> ((7 - prio) * 4)) & 0x7) 152 p_data->dcbx_enabled); in qed_dcbx_dp_protocol() 159 qed_dcbx_app_update[i].name, p_data->arr[id].update, in qed_dcbx_dp_protocol() 160 p_data->arr[id].enable, p_data->arr[id].priority, in qed_dcbx_dp_protocol() 161 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc); in qed_dcbx_dp_protocol() 173 p_data->arr[type].enable = enable; in qed_dcbx_set_params() 174 p_data->arr[type].priority = prio; in qed_dcbx_set_params() [all …]
|
/linux/drivers/infiniband/core/ |
H A D | mad.c | 2 * Copyright (c) 2004-2007 Voltaire, Inc. All rights reserved. 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 40 #include <linux/dma-mapping.h> 62 struct ib_ud_wr *wr = &mad_send_wr->send_wr; in create_mad_addr_info() 65 rdma_query_ah(wr->ah, &attr); in create_mad_addr_info() 68 entry->sl = attr.sl; in create_mad_addr_info() 69 entry->rqpn = wr->remote_qpn; in create_mad_addr_info() 70 entry->rqkey = wr->remote_qkey; in create_mad_addr_info() 71 entry->dlid = rdma_ah_get_dlid(&attr); in create_mad_addr_info() [all …]
|