| /linux/drivers/pci/hotplug/ |
| H A D | pciehp_pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 25 * pciehp_configure_device() - enumerate PCI devices below a hotplug bridge 26 * @ctrl: PCIe hotplug controller 28 * Enumerate PCI devices below a hotplug bridge and add them to the system. 29 * Return 0 on success, %-EEXIST if the devices are already enumerated or 30 * %-ENODEV if enumeration failed. 32 int pciehp_configure_device(struct controller *ctrl) in pciehp_configure_device() argument 35 struct pci_dev *bridge = ctrl->pcie->port; in pciehp_configure_device() [all …]
|
| H A D | pciehp_ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 33 static void set_slot_off(struct controller *ctrl) in set_slot_off() argument 39 if (POWER_CTRL(ctrl)) { in set_slot_off() 40 pciehp_power_off_slot(ctrl); in set_slot_off() 50 pciehp_set_indicators(ctrl, PCI_EXP_SLTCTL_PWR_IND_OFF, in set_slot_off() 55 * board_added - Called after a board has been added to the system. 56 * @ctrl: PCIe hotplug controller where board is added 61 static int board_added(struct controller *ctrl) in board_added() argument [all …]
|
| H A D | shpchp_ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 34 return -ENOMEM; in queue_interrupt_event() 36 info->event_type = event_type; in queue_interrupt_event() 37 info->p_slot = p_slot; in queue_interrupt_event() 38 INIT_WORK(&info->work, interrupt_event_handler); in queue_interrupt_event() 40 queue_work(p_slot->wq, &info->work); in queue_interrupt_event() 45 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl) in shpchp_handle_attention_button() argument 51 ctrl_dbg(ctrl, "Attention button interrupt received\n"); in shpchp_handle_attention_button() [all …]
|
| H A D | shpchp_pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 26 struct controller *ctrl = p_slot->ctrl; in shpchp_configure_device() local 27 struct pci_dev *bridge = ctrl->pci_dev; in shpchp_configure_device() 28 struct pci_bus *parent = bridge->subordinate; in shpchp_configure_device() 33 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 35 ctrl_err(ctrl, "Device %s already exists at %04x:%02x:%02x, cannot hot-add\n", in shpchp_configure_device() 37 p_slot->bus, p_slot->device); in shpchp_configure_device() 39 ret = -EINVAL; in shpchp_configure_device() [all …]
|
| /linux/arch/arm/mach-omap2/ |
| H A D | sram242x.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mach-omap2/sram242x.S 9 * Richard Woodruff <r-woodruff2@ti.com> 31 stmfd sp!, {r0 - r12, lr} @ save registers on stack 39 str r3, [r2] @ go to L1-freq operation 46 ldr r11, omap242x_sdi_sdrc_dlla_ctrl @ addr of dlla ctrl 58 add r11, r11, #0x4 @ get addr of status reg 62 mov r9, #0x0 @ shift back to L0-voltage 67 str r3, [r2] @ go to L0-freq operation 70 sub r11, r11, #0x4 @ move from status to ctrl [all …]
|
| H A D | sram243x.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mach-omap2/sram243x.S 9 * Richard Woodruff <r-woodruff2@ti.com> 31 stmfd sp!, {r0 - r12, lr} @ save registers on stack 39 str r3, [r2] @ go to L1-freq operation 46 ldr r11, omap243x_sdi_sdrc_dlla_ctrl @ addr of dlla ctrl 58 add r11, r11, #0x4 @ get addr of status reg 62 mov r9, #0x0 @ shift back to L0-voltage 67 str r3, [r2] @ go to L0-freq operation 70 sub r11, r11, #0x4 @ move from status to ctrl [all …]
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_api.c | 1 // SPDX-License-Identifier: GPL-2.0+ 53 itr->offset = offset; in vcap_iter_set() 54 itr->sw_width = sw_width; in vcap_iter_set() 55 itr->regs_per_sw = DIV_ROUND_UP(sw_width, 32); in vcap_iter_set() 56 itr->tg = tg; in vcap_iter_set() 62 * A typegroup table ends with an all-zero terminator. in vcap_iter_skip_tg() 64 while (itr->tg->width && itr->offset >= itr->tg->offset) { in vcap_iter_skip_tg() 65 itr->offset += itr->tg->width; in vcap_iter_skip_tg() 66 itr->tg++; /* next typegroup */ in vcap_iter_skip_tg() 75 sw_idx = itr->offset / itr->sw_width; in vcap_iter_update() [all …]
|
| H A D | vcap_api_kunit.c | 1 // SPDX-License-Identifier: BSD-3-Clause 39 if (kslist->cnt > 0) { in test_val_keyset() 40 switch (admin->vtype) { in test_val_keyset() 42 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset() 43 if (kslist->keysets[idx] == VCAP_KFS_ETAG) in test_val_keyset() 44 return kslist->keysets[idx]; in test_val_keyset() 45 if (kslist->keysets[idx] == VCAP_KFS_PURE_5TUPLE_IP4) in test_val_keyset() 46 return kslist->keysets[idx]; in test_val_keyset() 47 if (kslist->keysets[idx] == VCAP_KFS_NORMAL_5TUPLE_IP4) in test_val_keyset() 48 return kslist->keysets[idx]; in test_val_keyset() [all …]
|
| /linux/drivers/platform/surface/aggregator/ |
| H A D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com> 20 /* -- Device and bus functions. --------------------------------------------- */ 28 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in modalias_show() 29 sdev->uid.instance, sdev->uid.function); in modalias_show() 46 sdev->uid.domain, sdev->uid.category, in ssam_device_uevent() 47 sdev->uid.target, sdev->uid.instance, in ssam_device_uevent() 48 sdev->uid.function); in ssam_device_uevent() 55 ssam_controller_put(sdev->ctrl); in ssam_device_release() 56 fwnode_handle_put(sdev->dev.fwnode); in ssam_device_release() [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-ali1563.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * i2c-ali1563.c - i2c driver for the ALi 1563 Southbridge 69 int status = -EIO; in ali1563_transaction() 71 dev_dbg(&a->dev, "Transaction (pre): STS=%02x, CNTL1=%02x, " in ali1563_transaction() 72 "CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n", in ali1563_transaction() 79 dev_err(&a->dev, "ali1563: Trying to reset busy device\n"); in ali1563_transaction() 83 return -EBUSY; in ali1563_transaction() 90 } while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout); in ali1563_transaction() 92 dev_dbg(&a->dev, "Transaction (post): STS=%02x, CNTL1=%02x, " in ali1563_transaction() 93 "CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n", in ali1563_transaction() [all …]
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * vimc-sensor.c Virtual Media Controller Driver 5 * Copyright (C) 2015-2017 Helen Koike <helen.fornazier@gmail.com> 8 #include <linux/v4l2-mediabus.h> 10 #include <media/v4l2-ctrls.h> 11 #include <media/v4l2-event.h> 12 #include <media/v4l2-subdev.h> 13 #include <media/tpg/v4l2-tpg.h> 15 #include "vimc-common.h" 66 u32 mbus_code = vimc_mbus_code_by_index(code->index); in vimc_sensor_enum_mbus_code() [all …]
|
| H A D | vimc-lens.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * vimc-lens.c Virtual Media Controller Driver 8 #include <media/v4l2-ctrls.h> 9 #include <media/v4l2-event.h> 10 #include <media/v4l2-subdev.h> 12 #include "vimc-common.h" 34 static int vimc_lens_s_ctrl(struct v4l2_ctrl *ctrl) in vimc_lens_s_ctrl() argument 37 container_of(ctrl->handler, struct vimc_lens_device, hdl); in vimc_lens_s_ctrl() 38 if (ctrl->id == V4L2_CID_FOCUS_ABSOLUTE) { in vimc_lens_s_ctrl() 39 vlens->focus_absolute = ctrl->val; in vimc_lens_s_ctrl() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_uac1_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_audio.c -- USB Audio class function driver 26 * We have two interfaces- AudioControl and AudioStreaming 52 /* B.3.2 Class-Specific AC Interface Descriptor */ 94 /* Todo: add real Mute control code */ 103 /* Todo: add real Volume control code */ 146 /* B.4.2 Class-Specific AS Interface Descriptor */ 179 /* Class-specific AS ISO OUT Endpoint Descriptor */ 230 .language = 0x0409, /* en-us */ 243 /*-------------------------------------------------------------------------*/ [all …]
|
| /linux/drivers/mfd/ |
| H A D | janz-cmodio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Janz CMOD-IO MODULbus Carrier Board PCI Driver 21 #define DRV_NAME "janz-cmodio" 26 /* Maximum number of MODULbus modules on a CMOD-IO carrier board */ 46 struct janz_cmodio_onboard_regs __iomem *ctrl; member 51 /* mfd-core API */ 58 * Subdevices using the mfd-core API 70 pci = priv->pdev; in cmodio_setup_subdevice() 71 cell = &priv->cells[devno]; in cmodio_setup_subdevice() 72 res = &priv->resources[devno * 3]; in cmodio_setup_subdevice() [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | addi_apci_3120.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module. 6 * ADDI-DATA GmbH 8 * D-77833 Ottersweier 9 * Tel: +19(0)7223/9493-0 10 * Fax: +49(0)7223/9493-92 11 * http://www.addi-data.com 12 * info@addi-data.com 22 * PCI BAR 0 register map (devpriv->amcc) 28 * PCI BAR 1 register map (dev->iobase) [all …]
|
| /linux/drivers/net/ethernet/intel/igbvf/ |
| H A D | vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009 - 2018 Intel Corporation. */ 22 * e1000_init_mac_params_vf - Inits MAC params 27 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() 29 /* VF's have no MTA Registers - PF feature only */ in e1000_init_mac_params_vf() 30 mac->mta_reg_count = 128; in e1000_init_mac_params_vf() 32 mac->rar_entry_count = 1; in e1000_init_mac_params_vf() 36 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf() 38 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf() 40 mac->ops.check_for_link = e1000_check_for_link_vf; in e1000_init_mac_params_vf() [all …]
|
| /linux/samples/pktgen/ |
| H A D | pktgen_bench_xmit_mode_netif_receive.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # - developed for benchmarking ingress qdisc path 16 # ------------------------------------------------------------------ 22 # config: tc qdisc add dev $SOMEDEV handle ffff: ingress 24 # (3) ingress on this dev, handle_ing() -> tc_classify() 26 # config: tc qdisc add dev $DEV handle ffff: ingress 42 if [ -z "$DEST_IP" ]; then 43 [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1" 45 [ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff" 46 [ -z "$BURST" ] && BURST=1024 [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | fabrics.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 18 /* default is -1: the fail fast mechanism is disabled */ 19 #define NVMF_DEF_FAIL_FAST_TMO -1 37 * enum nvmf_parsing_opts - used to define the sysfs parsing options used. 73 * struct nvmf_ctrl_options - Used to hold the options specified 78 * the controller, (-1) means reconnect forever, zero means remove 85 * @traddr: The transport-specific TRADDR field for a port on the 87 * @trsvcid: The transport-specific TRSVCID field for a port on the 89 * @host_traddr: A transport-specific field identifying the NVME host port [all …]
|
| /linux/arch/arm/mm/ |
| H A D | proc-arm946.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/arm946.S: utility functions for ARM946E-S 5 * Copyright (C) 2004-2006 Hyok S. Choi (hyok.choi@samsung.com) 7 * (Many of cache codes are from proc-arm926.S) 15 #include <asm/pgtable-hwdef.h> 17 #include "proc-macros.S" 20 * ARM946E-S is synthesizable to have 0KB to 1MB sized D-Cache, 48 mrc p15, 0, r0, c1, c0, 0 @ ctrl register 49 bic r0, r0, #0x00001000 @ i-cache 50 bic r0, r0, #0x00000004 @ d-cache [all …]
|
| H A D | proc-arm922.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mm/proc-arm922.S: MMU functions for ARM922 8 * hacked for non-paged-MM by Hyok S. Choi, 2003. 13 * CONFIG_CPU_ARM922_CPU_IDLE -> nohlt 21 #include <asm/pgtable-hwdef.h> 24 #include "proc-macros.S" 62 mrc p15, 0, r0, c1, c0, 0 @ ctrl register 87 mrc p15, 0, ip, c1, c0, 0 @ ctrl register 90 mcr p15, 0, ip, c1, c0, 0 @ ctrl register 134 mov r1, #(CACHE_DSEGMENTS - 1) << 5 @ 8 segments [all …]
|
| H A D | proc-arm1022.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mm/proc-arm1022.S: MMU functions for ARM1022E 7 * hacked for non-paged-MM by Hyok S. Choi, 2003. 17 #include <asm/asm-offsets.h> 19 #include <asm/pgtable-hwdef.h> 22 #include "proc-macros.S" 68 mrc p15, 0, r0, c1, c0, 0 @ ctrl register 93 mrc p15, 0, ip, c1, c0, 0 @ ctrl register 96 mcr p15, 0, ip, c1, c0, 0 @ ctrl register 145 mov r1, #(CACHE_DSEGMENTS - 1) << 5 @ 16 segments [all …]
|
| H A D | proc-arm1026.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mm/proc-arm1026.S: MMU functions for ARM1026EJ-S 7 * hacked for non-paged-MM by Hyok S. Choi, 2003. 10 * functions on the ARM1026EJ-S. 17 #include <asm/asm-offsets.h> 19 #include <asm/pgtable-hwdef.h> 22 #include "proc-macros.S" 68 mrc p15, 0, r0, c1, c0, 0 @ ctrl register 93 mrc p15, 0, ip, c1, c0, 0 @ ctrl register 96 mcr p15, 0, ip, c1, c0, 0 @ ctrl register [all …]
|
| H A D | proc-xscale.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/proc-xscale.S 26 #include <asm/pgtable-hwdef.h> 29 #include "proc-macros.S" 60 * Reminder: the vector table is located at 0xffff0000-0xffff0fff. 66 * when we have to ensure that the last operation to the co-pro 91 add \rs, \rd, #CACHESIZE 93 add \rd, \rd, #CACHELINESIZE 95 add \rd, \rd, #CACHELINESIZE 97 add \rd, \rd, #CACHELINESIZE [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_cccb.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 19 return (((r_off) - (w_off)) + ((ccb_size) - 1)) & ((ccb_size) - 1); in get_ccb_space() 25 struct rogue_fwif_cccb_ctl *ctrl = cpu_ptr; in cccb_ctrl_init() local 28 WRITE_ONCE(ctrl->write_offset, 0); in cccb_ctrl_init() 29 WRITE_ONCE(ctrl->read_offset, 0); in cccb_ctrl_init() 30 WRITE_ONCE(ctrl->dep_offset, 0); in cccb_ctrl_init() 31 WRITE_ONCE(ctrl->wrap_mask, pvr_cccb->wrap_mask); in cccb_ctrl_init() 35 * pvr_cccb_init() - Initialise a Client CCB 52 pvr_cccb->size = size; in pvr_cccb_init() 53 pvr_cccb->write_offset = 0; in pvr_cccb_init() [all …]
|
| /linux/drivers/firmware/ |
| H A D | qemu_fw_cfg.c | 7 * sysfs (read-only, under "/sys/firmware/qemu_fw_cfg/..."). 46 /* fw_cfg revision attribute, in /sys/firmware/qemu_fw_cfg top-level dir. */ 80 u32 ctrl = be32_to_cpu(READ_ONCE(d->control)); in fw_cfg_wait_for_control() local 82 /* do not reorder the read to d->control */ in fw_cfg_wait_for_control() 84 if ((ctrl & ~FW_CFG_DMA_CTL_ERROR) == 0) in fw_cfg_wait_for_control() 99 ret = -ENOMEM; in fw_cfg_dma_transfer() 119 if (be32_to_cpu(READ_ONCE(d->control)) & FW_CFG_DMA_CTL_ERROR) { in fw_cfg_dma_transfer() 120 ret = -EIO; in fw_cfg_dma_transfer() 130 /* read chunk of given fw_cfg blob (caller responsible for sanity-check) */ 134 u32 glk = -1U; in fw_cfg_read_blob() [all …]
|