Home
last modified time | relevance | path

Searched +full:ctrl +full:- +full:module (Results 1 – 25 of 796) sorted by relevance

12345678910>>...32

/linux/Documentation/devicetree/bindings/net/
H A Ddavinci_emac.txt7 - compatible: "ti,davinci-dm6467-emac", "ti,am3517-emac" or
8 "ti,dm816-emac"
9 - reg: Offset and length of the register set for the device
10 - ti,davinci-ctrl-reg-offset: offset to control register
11 - ti,davinci-ctrl-mod-reg-offset: offset to control module register
12 - ti,davinci-ctrl-ram-offset: offset to control module ram
13 - ti,davinci-ctrl-ram-size: size of control module ram
14 - interrupts: interrupt mapping for the davinci emac interrupts sources:
21 - phy-handle: See ethernet.txt file in the same directory.
23 - ti,davinci-rmii-en: 1 byte, 1 means use RMII
[all …]
/linux/drivers/spmi/
H A Dspmi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
9 #include <linux/module.h>
16 #include <dt-bindings/spmi/spmi.h>
36 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() local
38 ida_free(&ctrl_ida, ctrl->nr); in spmi_ctrl_release()
39 kfree(ctrl); in spmi_ctrl_release()
51 if (drv->name) in spmi_device_match()
52 return strncmp(dev_name(dev), drv->name, in spmi_device_match()
59 * spmi_device_add() - add a device previously constructed via spmi_device_alloc()
[all …]
H A Dspmi-apple-controller.c1 // SPDX-License-Identifier: GPL-2.0
10 * hisi-spmi-controller.c
11 * spmi-pmic-arb.c Copyright (c) 2021, The Linux Foundation.
16 #include <linux/module.h>
35 readl_poll_timeout((spmi)->regs + (reg), (val), (cond), \
40 return opc | sid << 8 | saddr << 16 | (len - 1) | (1 << 15); in apple_spmi_pack_cmd()
44 static int apple_spmi_wait_rx_not_empty(struct spmi_controller *ctrl) in apple_spmi_wait_rx_not_empty() argument
46 struct apple_spmi *spmi = spmi_controller_get_drvdata(ctrl); in apple_spmi_wait_rx_not_empty()
52 dev_err(&ctrl->dev, in apple_spmi_wait_rx_not_empty()
60 static int spmi_read_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid, in spmi_read_cmd() argument
[all …]
/linux/arch/m68k/include/asm/
H A Dm5307sim.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * m5307sim.h -- ColdFire 5307 System Integration Module support.
33 #define MCFSIM_PLLCR (MCF_MBAR + 0x08) /* PLL Ctrl Reg */
34 #define MCFSIM_MPARK (MCF_MBAR + 0x0C) /* BUS Master Ctrl */
37 #define MCFSIM_AVR (MCF_MBAR + 0x4b) /* Autovector Ctrl */
38 #define MCFSIM_ICR0 (MCF_MBAR + 0x4c) /* Intr Ctrl reg 0 */
39 #define MCFSIM_ICR1 (MCF_MBAR + 0x4d) /* Intr Ctrl reg 1 */
40 #define MCFSIM_ICR2 (MCF_MBAR + 0x4e) /* Intr Ctrl reg 2 */
41 #define MCFSIM_ICR3 (MCF_MBAR + 0x4f) /* Intr Ctrl reg 3 */
42 #define MCFSIM_ICR4 (MCF_MBAR + 0x50) /* Intr Ctrl reg 4 */
[all …]
H A Dm5407sim.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * m5407sim.h -- ColdFire 5407 System Integration Module support.
33 #define MCFSIM_PLLCR (MCF_MBAR + 0x08) /* PLL Ctrl */
34 #define MCFSIM_MPARK (MCF_MBAR + 0x0C) /* BUS Master Ctrl */
37 #define MCFSIM_AVR (MCF_MBAR + 0x4b) /* Autovector Ctrl */
38 #define MCFSIM_ICR0 (MCF_MBAR + 0x4c) /* Intr Ctrl reg 0 */
39 #define MCFSIM_ICR1 (MCF_MBAR + 0x4d) /* Intr Ctrl reg 1 */
40 #define MCFSIM_ICR2 (MCF_MBAR + 0x4e) /* Intr Ctrl reg 2 */
41 #define MCFSIM_ICR3 (MCF_MBAR + 0x4f) /* Intr Ctrl reg 3 */
42 #define MCFSIM_ICR4 (MCF_MBAR + 0x50) /* Intr Ctrl reg 4 */
[all …]
H A Dm525xsim.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * m525xsim.h -- ColdFire 525x System Integration Module support.
39 #define MCFSIM_MPARK (MCF_MBAR + 0x0C) /* BUS Master Ctrl */
42 #define MCFSIM_ICR0 (MCF_MBAR + 0x4c) /* Intr Ctrl reg 0 */
43 #define MCFSIM_ICR1 (MCF_MBAR + 0x4d) /* Intr Ctrl reg 1 */
44 #define MCFSIM_ICR2 (MCF_MBAR + 0x4e) /* Intr Ctrl reg 2 */
45 #define MCFSIM_ICR3 (MCF_MBAR + 0x4f) /* Intr Ctrl reg 3 */
46 #define MCFSIM_ICR4 (MCF_MBAR + 0x50) /* Intr Ctrl reg 4 */
47 #define MCFSIM_ICR5 (MCF_MBAR + 0x51) /* Intr Ctrl reg 5 */
48 #define MCFSIM_ICR6 (MCF_MBAR + 0x52) /* Intr Ctrl reg 6 */
[all …]
/linux/drivers/slimbus/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
22 while (id->manf_id != 0 || id->prod_code != 0) { in slim_match()
23 if (id->manf_id == sbdev->e_addr.manf_id && in slim_match()
24 id->prod_code == sbdev->e_addr.prod_code && in slim_match()
25 id->dev_index == sbdev->e_addr.dev_index && in slim_match()
26 id->instance == sbdev->e_addr.instance) in slim_match()
42 return !!slim_match(sbdrv->id_table, sbdev); in slim_device_match()
50 if (sbdev->status == status) in slim_device_update_status()
53 sbdev->status = status; in slim_device_update_status()
[all …]
/linux/include/linux/
H A Dmdio-bitbang.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 struct module;
12 struct module *owner;
17 void (*set_mdc)(struct mdiobb_ctrl *ctrl, int level);
22 void (*set_mdio_dir)(struct mdiobb_ctrl *ctrl, int output);
28 void (*set_mdio_data)(struct mdiobb_ctrl *ctrl, int value);
31 int (*get_mdio_data)(struct mdiobb_ctrl *ctrl);
47 struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl);
/linux/drivers/power/reset/
H A Dqemu-virt-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2026 Kuan-Wei Chiu <visitorckw@gmail.com>
9 #include <linux/module.h>
38 struct qemu_virt_ctrl *ctrl = data->cb_data; in qemu_virt_ctrl_power_off() local
40 virt_ctrl_write32(CMD_HALT, ctrl->base + VIRT_CTRL_REG_CMD); in qemu_virt_ctrl_power_off()
47 struct qemu_virt_ctrl *ctrl = data->cb_data; in qemu_virt_ctrl_restart() local
49 virt_ctrl_write32(CMD_RESET, ctrl->base + VIRT_CTRL_REG_CMD); in qemu_virt_ctrl_restart()
57 struct qemu_virt_ctrl *ctrl = container_of(nb, struct qemu_virt_ctrl, reboot_nb); in qemu_virt_ctrl_reboot_notify() local
60 virt_ctrl_write32(CMD_HALT, ctrl->base + VIRT_CTRL_REG_CMD); in qemu_virt_ctrl_reboot_notify()
67 struct qemu_virt_ctrl *ctrl; in qemu_virt_ctrl_probe() local
[all …]
/linux/drivers/comedi/drivers/
H A Dcomedi_parport.c1 // SPDX-License-Identifier: GPL-2.0+
9 * COMEDI - Linux Control and Measurement Device Interface
19 * Updated: Tue, 30 Apr 2002 21:11:45 -0700
32 * ----- ------ ---- ---- --------------
50 * 18-25 ground
58 #include <linux/module.h>
77 outb(s->state, dev->iobase + PARPORT_DATA_REG); in parport_data_reg_insn_bits()
79 data[1] = inb(dev->iobase + PARPORT_DATA_REG); in parport_data_reg_insn_bits()
81 return insn->n; in parport_data_reg_insn_bits()
89 unsigned int ctrl; in parport_data_reg_insn_config() local
[all …]
/linux/drivers/mfd/
H A Djanz-cmodio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Janz CMOD-IO MODULbus Carrier Board PCI Driver
11 #include <linux/module.h>
21 #define DRV_NAME "janz-cmodio"
23 /* Size of each MODULbus module in PCI BAR4 */
26 /* Maximum number of MODULbus modules on a CMOD-IO carrier board */
29 /* Module Parameters */
46 struct janz_cmodio_onboard_regs __iomem *ctrl; member
51 /* mfd-core API */
58 * Subdevices using the mfd-core API
[all …]
H A Dti_am335x_tscadc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
8 #include <linux/module.h>
33 spin_lock_irqsave(&tscadc->reg_lock, flags); in am335x_tsc_se_set_cache()
34 tscadc->reg_se_cache |= val; in am335x_tsc_se_set_cache()
35 if (tscadc->adc_waiting) in am335x_tsc_se_set_cache()
36 wake_up(&tscadc->reg_se_wait); in am335x_tsc_se_set_cache()
37 else if (!tscadc->adc_in_use) in am335x_tsc_se_set_cache()
38 regmap_write(tscadc->regmap, REG_SE, tscadc->reg_se_cache); in am335x_tsc_se_set_cache()
40 spin_unlock_irqrestore(&tscadc->reg_lock, flags); in am335x_tsc_se_set_cache()
[all …]
/linux/drivers/gpio/
H A Dgpio-en7523.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/module.h>
15 * struct airoha_gpio_ctrl - Airoha GPIO driver data
32 struct airoha_gpio_ctrl *ctrl = gpiochip_get_data(gc); in airoha_dir_set() local
33 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_dir_set()
34 u32 output = ioread32(ctrl->output); in airoha_dir_set()
45 iowrite32(dir, ctrl->dir[gpio / 16]); in airoha_dir_set()
48 gpio_generic_chip_set(&ctrl->gen_gc, gpio, val); in airoha_dir_set()
50 iowrite32(output, ctrl->output); in airoha_dir_set()
68 struct airoha_gpio_ctrl *ctrl = gpiochip_get_data(gc); in airoha_get_dir() local
[all …]
H A Dgpio-idt3243x.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/module.h>
30 struct idt_gpio_ctrl *ctrl = gpiochip_get_data(gc); in idt_gpio_dispatch() local
37 pending = readl(ctrl->pic + IDT_PIC_IRQ_PEND); in idt_gpio_dispatch()
38 pending &= ~ctrl->mask_cache; in idt_gpio_dispatch()
39 for_each_set_bit(bit, &pending, gc->ngpio) { in idt_gpio_dispatch()
40 virq = irq_find_mapping(gc->irq.domain, bit); in idt_gpio_dispatch()
51 struct idt_gpio_ctrl *ctrl = gpiochip_get_data(gc); in idt_gpio_irq_set_type() local
57 return -EINVAL; in idt_gpio_irq_set_type()
59 guard(gpio_generic_lock_irqsave)(&ctrl->chip); in idt_gpio_irq_set_type()
[all …]
/linux/drivers/hid/surface-hid/
H A Dsurface_kbd.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Surface System Aggregator Module (SSAM) HID transport driver for the legacy
7 * Copyright (C) 2019-2021 Maximilian Luz <luzmaximilian@gmail.com>
13 #include <linux/module.h>
22 /* -- SAM interface (KBD). -------------------------------------------------- */
40 rqst.target_category = shid->uid.category; in ssam_kbd_get_descriptor()
41 rqst.target_id = shid->uid.target; in ssam_kbd_get_descriptor()
43 rqst.instance_id = shid->uid.instance; in ssam_kbd_get_descriptor()
52 status = ssam_retry(ssam_request_do_sync_onstack, shid->ctrl, &rqst, &rsp, sizeof(entry)); in ssam_kbd_get_descriptor()
57 dev_err(shid->dev, "invalid descriptor length: got %zu, expected, %zu\n", in ssam_kbd_get_descriptor()
[all …]
/linux/arch/mips/sgi-ip32/
H A Dip32-reset.c14 #include <linux/module.h>
32 #include "ip32-common.h"
53 /* If the first __symbol_get failed, our module wasn't loaded. */ in ip32_poweroff()
55 request_module("rtc-ds1685"); in ip32_poweroff()
61 pr_emerg("RTC not available for power-off. Spinning forever ...\n"); in ip32_poweroff()
74 crime->control = CRIME_CONTROL_HARD_RESET; in ip32_machine_restart()
80 unsigned long led = mace->perif.ctrl.misc ^ MACEISA_LED_RED; in blink_timeout()
81 mace->perif.ctrl.misc = led; in blink_timeout()
124 led = mace->perif.ctrl.misc | MACEISA_LED_GREEN; in panic_event()
125 mace->perif.ctrl.misc = led; in panic_event()
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A Digc_base.c1 // SPDX-License-Identifier: GPL-2.0
13 * igc_reset_hw_base - Reset hardware
17 * function pointer entry point called by the api module.
22 u32 ctrl; in igc_reset_hw_base() local
24 /* Prevent the PCI-E bus from sticking if there is no TLP connection in igc_reset_hw_base()
29 hw_dbg("PCI-E Master disable polling has failed\n"); in igc_reset_hw_base()
40 ctrl = rd32(IGC_CTRL); in igc_reset_hw_base()
43 wr32(IGC_CTRL, ctrl | IGC_CTRL_RST); in igc_reset_hw_base()
62 * igc_init_nvm_params_base - Init NVM func ptrs.
67 struct igc_nvm_info *nvm = &hw->nvm; in igc_init_nvm_params_base()
[all …]
/linux/drivers/nvme/target/
H A Dpassthru.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2017-2018 Western Digital Corporation or its
7 * Copyright (c) 2019-2020, Eideticom Inc.
11 #include <linux/module.h>
23 void nvmet_passthrough_override_cap(struct nvmet_ctrl *ctrl) in nvmet_passthrough_override_cap() argument
29 if (!nvme_multi_css(ctrl->subsys->passthru_ctrl)) in nvmet_passthrough_override_cap()
30 ctrl->cap &= ~(1ULL << 43); in nvmet_passthrough_override_cap()
35 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_passthru_override_id_descs() local
42 if (!ctrl->subsys->clear_ids) in nvmet_passthru_override_id_descs()
59 if (cur->nidl == 0) in nvmet_passthru_override_id_descs()
[all …]
/linux/drivers/platform/surface/aggregator/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Aggregator Module (SSAM/SAM).
6 * Provides access to a SAM-over-SSH connected EC via a controller device.
10 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
19 #include <linux/module.h>
37 /* -- Static controller reference. ------------------------------------------ */
47 * ssam_get_controller() - Get reference to SSAM controller.
57 struct ssam_controller *ctrl; in ssam_get_controller() local
61 ctrl = __ssam_controller; in ssam_get_controller()
62 if (!ctrl) in ssam_get_controller()
[all …]
H A Dbus.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Surface System Aggregator Module bus and device integration.
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()
[all …]
/linux/drivers/scsi/arm/
H A Dcumana_1.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 1995-2002, Russell King
7 #include <linux/module.h>
17 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
31 unsigned ctrl
39 #define CTRL 0x16fc macro
48 u8 __iomem *base = hostdata->io; in cumanascsi_pwrite()
49 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pwrite()
53 writeb(0x02, base + CTRL); in cumanascsi_pwrite()
72 len -= 32; in cumanascsi_pwrite()
[all …]
/linux/drivers/pci/hotplug/
H A Dshpchp_pci.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
16 #include <linux/module.h>
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()
[all …]
/linux/drivers/w1/masters/
H A Dmxc_w1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2005-2008 Freescale Semiconductor, Inc. All Rights Reserved.
11 #include <linux/module.h>
21 # define MXC_W1_CONTROL_WR(x) BIT(5 - (x))
44 writeb(MXC_W1_CONTROL_RPP, dev->regs + MXC_W1_CONTROL); in mxc_w1_ds2_reset_bus()
52 u8 ctrl = readb(dev->regs + MXC_W1_CONTROL); in mxc_w1_ds2_reset_bus() local
54 /* PST bit is valid after the RPP bit is self-cleared */ in mxc_w1_ds2_reset_bus()
55 if (!(ctrl & MXC_W1_CONTROL_RPP)) in mxc_w1_ds2_reset_bus()
56 return !(ctrl & MXC_W1_CONTROL_PST); in mxc_w1_ds2_reset_bus()
72 writeb(MXC_W1_CONTROL_WR(bit), dev->regs + MXC_W1_CONTROL); in mxc_w1_ds2_touch_bit()
[all …]
/linux/drivers/net/mdio/
H A Dmdio-bitbang.c1 // SPDX-License-Identifier: GPL-2.0
18 #include <linux/mdio-bitbang.h>
19 #include <linux/module.h>
44 static void mdiobb_send_bit(struct mdiobb_ctrl *ctrl, int val) in mdiobb_send_bit() argument
46 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_send_bit()
48 ops->set_mdio_data(ctrl, val); in mdiobb_send_bit()
50 ops->set_mdc(ctrl, 1); in mdiobb_send_bit()
52 ops->set_mdc(ctrl, 0); in mdiobb_send_bit()
56 static int mdiobb_get_bit(struct mdiobb_ctrl *ctrl) in mdiobb_get_bit() argument
58 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_get_bit()
[all …]
/linux/drivers/rtc/
H A Drtc-rx8010.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for the Epson RTC module RX-8010 SJ
13 #include <linux/module.h>
76 rtc_lock(rx8010->rtc); in rx8010_irq_1_handler()
78 err = regmap_read(rx8010->regs, RX8010_FLAG, &flagreg); in rx8010_irq_1_handler()
80 rtc_unlock(rx8010->rtc); in rx8010_irq_1_handler()
85 dev_warn(&client->dev, "Frequency stop detected\n"); in rx8010_irq_1_handler()
89 rtc_update_irq(rx8010->rtc, 1, RTC_PF | RTC_IRQF); in rx8010_irq_1_handler()
94 rtc_update_irq(rx8010->rtc, 1, RTC_AF | RTC_IRQF); in rx8010_irq_1_handler()
99 rtc_update_irq(rx8010->rtc, 1, RTC_UF | RTC_IRQF); in rx8010_irq_1_handler()
[all …]

12345678910>>...32