| /kernel/linux/linux-5.10/drivers/thunderbolt/ |
| D | tmu.c | 1 // SPDX-License-Identifier: GPL-2.0 14 static const char *tb_switch_tmu_mode_name(const struct tb_switch *sw) in tb_switch_tmu_mode_name() argument 16 bool root_switch = !tb_route(sw); in tb_switch_tmu_mode_name() 18 switch (sw->tmu.rate) { in tb_switch_tmu_mode_name() 26 if (sw->tmu.unidirectional) in tb_switch_tmu_mode_name() 27 return "uni-directional, HiFi"; in tb_switch_tmu_mode_name() 28 return "bi-directional, HiFi"; in tb_switch_tmu_mode_name() 33 return "uni-directional, normal"; in tb_switch_tmu_mode_name() 40 static bool tb_switch_tmu_ucap_supported(struct tb_switch *sw) in tb_switch_tmu_ucap_supported() argument 45 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, in tb_switch_tmu_ucap_supported() [all …]
|
| D | switch.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Thunderbolt driver - switch/port utility functions 11 #include <linux/nvmem-provider.h> 42 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status() argument 47 if (uuid_equal(&st->uuid, sw->uuid)) in __nvm_get_auth_status() 54 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status() argument 59 st = __nvm_get_auth_status(sw); in nvm_get_auth_status() 62 *status = st ? st->status : 0; in nvm_get_auth_status() 65 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status() argument 69 if (WARN_ON(!sw->uuid)) in nvm_set_auth_status() [all …]
|
| D | dma_port.c | 1 // SPDX-License-Identifier: GPL-2.0 48 * struct tb_dma_port - DMA control port 49 * @sw: Switch the DMA port belongs to 55 struct tb_switch *sw; member 62 * When the switch is in safe mode it supports very little functionality 68 u64 route = tb_cfg_get_route(pkg->buffer) & ~BIT_ULL(63); in dma_port_match() 70 if (pkg->frame.eof == TB_CFG_PKG_ERROR) in dma_port_match() 72 if (pkg->frame.eof != req->response_type) in dma_port_match() 74 if (route != tb_cfg_get_route(req->request)) in dma_port_match() 76 if (pkg->frame.size != req->response_size) in dma_port_match() [all …]
|
| D | tb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Thunderbolt driver - bus logic (NHI independent) 12 #include <linux/nvmem-provider.h> 30 * struct tb_nvm - Structure holding NVM information 36 * @non_active: Non-active portion NVMem device 65 * enum tb_switch_tmu_rate - TMU refresh rate 81 * struct tb_switch_tmu - Structure holding switch TMU configuration 83 * @has_ucap: Does the switch support uni-directional mode 86 * @unidirectional: Is the TMU in uni-directional or bi-directional mode 97 * struct tb_switch - a thunderbolt switch [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
| D | prestera_hw.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved */ 323 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret() argument 329 struct prestera_device *dev = sw->dev; in __prestera_cmd_ret() 332 cmd->type = type; in __prestera_cmd_ret() 334 err = dev->send_req(dev, cmd, clen, ret, rlen, waitms); in __prestera_cmd_ret() 338 if (ret->cmd.type != PRESTERA_CMD_TYPE_ACK) in __prestera_cmd_ret() 339 return -EBADE; in __prestera_cmd_ret() 340 if (ret->status != PRESTERA_CMD_ACK_OK) in __prestera_cmd_ret() 341 return -EINVAL; in __prestera_cmd_ret() [all …]
|
| D | prestera_hw.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */ 100 (struct prestera_switch *sw, struct prestera_event *evt, void *arg); 105 int prestera_hw_switch_init(struct prestera_switch *sw); 106 void prestera_hw_switch_fini(struct prestera_switch *sw); 107 int prestera_hw_switch_ageing_set(struct prestera_switch *sw, u32 ageing_ms); 108 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac); 134 int prestera_hw_port_link_mode_set(const struct prestera_port *port, u32 mode); 135 int prestera_hw_port_link_mode_get(const struct prestera_port *port, u32 *mode); 138 int prestera_hw_port_mdix_set(const struct prestera_port *port, u8 mode); [all …]
|
| D | prestera_ethtool.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved */ 301 struct prestera_switch *sw = port->sw; in prestera_ethtool_get_drvinfo() local 303 strlcpy(drvinfo->driver, driver_kind, sizeof(drvinfo->driver)); in prestera_ethtool_get_drvinfo() 304 strlcpy(drvinfo->bus_info, dev_name(prestera_dev(sw)), in prestera_ethtool_get_drvinfo() 305 sizeof(drvinfo->bus_info)); in prestera_ethtool_get_drvinfo() 306 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in prestera_ethtool_get_drvinfo() 308 sw->dev->fw_rev.maj, in prestera_ethtool_get_drvinfo() 309 sw->dev->fw_rev.min, in prestera_ethtool_get_drvinfo() 310 sw->dev->fw_rev.sub); in prestera_ethtool_get_drvinfo() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/joystick/ |
| D | sidewinder.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 1998-2005 Vojtech Pavlik 96 } sw_hat_to_axis[] = {{ 0, 0}, { 0,-1}, { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}, {-1, 1}, {-1, 0}, {-1,-… 98 struct sw { struct 125 i = -id; /* Don't care about data, only want ID */ in sw_read_packet() 140 bitout--; in sw_read_packet() 150 timeout--; in sw_read_packet() 151 bitout--; /* Decrement timers */ in sw_read_packet() 152 sched--; in sw_read_packet() 157 if ((~u & v & 0x10) && (bitout > 0)) { /* Rising edge on clock - data bit */ in sw_read_packet() [all …]
|
| /kernel/linux/linux-5.10/drivers/block/ |
| D | swim3.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include <linux/blk-mq.h> 65 REG(mode); 181 int cur_cyl; /* cylinder head is on, or -1 */ 192 int write_prot; /* 1 if write-protected, 0 if not, -1 dunno */ 208 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 209 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 210 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 213 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 249 static int floppy_ioctl(struct block_device *bdev, fmode_t mode, [all …]
|
| /kernel/linux/linux-5.10/arch/mips/alchemy/common/ |
| D | sleeper.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Sleep helper for Au1xxx sleep mode. 25 sw $1, PT_R1(sp) 26 sw $2, PT_R2(sp) 27 sw $3, PT_R3(sp) 28 sw $4, PT_R4(sp) 29 sw $5, PT_R5(sp) 30 sw $6, PT_R6(sp) 31 sw $7, PT_R7(sp) 32 sw $16, PT_R16(sp) [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/typec/ |
| D | mux.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Type-C Multiplexer/DeMultiplexer Switch support 29 return strcmp(name + (name_len - suffix_len), suffix) == 0; in dev_name_ends_with() 34 return dev_fwnode(dev) == fwnode && dev_name_ends_with(dev, "-switch"); in switch_fwnode_match() 48 return dev ? to_typec_switch(dev) : ERR_PTR(-EPROBE_DEFER); in typec_switch_match() 52 * fwnode_typec_switch_get - Find USB Type-C orientation switch 57 * ERR_PTR(-EPROBE_DEFER) when a connection was found but the switch 62 struct typec_switch *sw; in fwnode_typec_switch_get() local 64 sw = fwnode_connection_find_match(fwnode, "orientation-switch", NULL, in fwnode_typec_switch_get() 66 if (!IS_ERR_OR_NULL(sw)) in fwnode_typec_switch_get() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/misc/ |
| D | ad714x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009-2011 Analog Devices Inc. 132 mask = ((1 << (end_stage + 1)) - 1) - ((1 << start_stage) - 1); in ad714x_use_com_int() 134 ad714x->read(ad714x, STG_COM_INT_EN_REG, &data, 1); in ad714x_use_com_int() 136 ad714x->write(ad714x, STG_COM_INT_EN_REG, data); in ad714x_use_com_int() 138 ad714x->read(ad714x, STG_HIGH_INT_EN_REG, &data, 1); in ad714x_use_com_int() 140 ad714x->write(ad714x, STG_HIGH_INT_EN_REG, data); in ad714x_use_com_int() 149 mask = ((1 << (end_stage + 1)) - 1) - ((1 << start_stage) - 1); in ad714x_use_thr_int() 151 ad714x->read(ad714x, STG_COM_INT_EN_REG, &data, 1); in ad714x_use_thr_int() 153 ad714x->write(ad714x, STG_COM_INT_EN_REG, data); in ad714x_use_thr_int() [all …]
|
| /kernel/linux/linux-5.10/arch/alpha/kernel/ |
| D | process.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * This file handles the architecture-dependent parts of process handling. 70 int mode; member 86 ((unsigned long)hwrpb + hwrpb->processor_offset in common_shutdown_1() 87 + hwrpb->processor_size * cpuid); in common_shutdown_1() 88 pflags = &cpup->flags; in common_shutdown_1() 105 if (how->mode == LINUX_REBOOT_CMD_RESTART) { in common_shutdown_1() 106 if (!how->restart_cmd) { in common_shutdown_1() 135 /* If we've gotten here after SysRq-b, leave interrupt in common_shutdown_1() 141 do_take_over_console(&dummy_con, 0, MAX_NR_CONSOLES-1, 1); in common_shutdown_1() [all …]
|
| /kernel/linux/linux-5.10/include/linux/usb/ |
| D | typec_mux.h | 1 // SPDX-License-Identifier: GPL-2.0 15 typedef int (*typec_switch_set_fn_t)(struct typec_switch *sw, 26 void typec_switch_put(struct typec_switch *sw); 27 int typec_switch_set(struct typec_switch *sw, 38 void typec_switch_unregister(struct typec_switch *sw); 40 void typec_switch_set_drvdata(struct typec_switch *sw, void *data); 41 void *typec_switch_get_drvdata(struct typec_switch *sw); 45 unsigned long mode; member
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
| D | dpu_hw_ctl.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. 15 * dpu_ctl_mode_sel: Interface mode selection 16 * DPU_CTL_MODE_SEL_VID: Video mode interface 17 * DPU_CTL_MODE_SEL_CMD: Command mode interface 26 * struct dpu_hw_stage_cfg - blending stage cfg 40 * @intf_mode_sel: Interface mode, cmd / vid 41 * @stream_sel: Stream selection for multi-stream interfaces 51 * struct dpu_hw_ctl_ops - Interface to the wb Hw driver functions 56 * kickoff hw operation for Sw controlled interfaces [all …]
|
| /kernel/linux/linux-5.10/arch/parisc/include/asm/ |
| D | floppy.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 23 (!(vdma) && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64)) 28 #define SW fd_routine[use_virtual_dma&1] macro 40 #define fd_get_dma_residue() SW._get_dma_residue(FLOPPY_DMA) 41 #define fd_dma_mem_alloc(size) SW._dma_mem_alloc(size) 42 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) argument 77 for (lcount = virtual_dma_count; lcount; lcount--) { in floppy_hardint() 195 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) in vdma_dma_setup() argument 199 virtual_dma_mode = (mode == DMA_MODE_WRITE); in vdma_dma_setup() [all …]
|
| /kernel/linux/linux-5.10/arch/alpha/include/uapi/asm/ |
| D | fpu.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 7 * Alpha floating-point control register defines: 25 #define FPCR_DYN_SHIFT 58 /* first dynamic rounding mode bit */ 27 #define FPCR_DYN_MINUS (0x1UL << FPCR_DYN_SHIFT) /* towards -INF */ 35 * IEEE trap enables are implemented in software. These per-thread 38 * floating-point enable bit (which is architected). On top of that, 88 * receive my thanks for making all the not-implemented fpcr bits 93 ieee_swcr_to_fpcr(unsigned long sw) in ieee_swcr_to_fpcr() argument 96 fp = (sw & IEEE_STATUS_MASK) << 35; in ieee_swcr_to_fpcr() 97 fp |= (sw & IEEE_MAP_DMZ) << 36; in ieee_swcr_to_fpcr() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/include/asm/ |
| D | floppy.h | 25 ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64)) 30 #define SW fd_routine[use_virtual_dma & 1] macro 42 #define fd_get_dma_residue() SW._get_dma_residue(FLOPPY_DMA) 43 #define fd_dma_mem_alloc(size) SW._dma_mem_alloc(size) 44 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) argument 79 lcount; lcount--, lptr++) { in floppy_hardint() 196 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) in vdma_dma_setup() argument 200 virtual_dma_mode = (mode == DMA_MODE_WRITE); in vdma_dma_setup() 207 static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) in hard_dma_setup() argument 211 printk("DMA crossing 64-K boundary %p-%p\n", addr, addr+size); in hard_dma_setup() [all …]
|
| /kernel/linux/linux-5.10/drivers/watchdog/ |
| D | asm9260_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2014 Oleksij Rempel <linux@rempel-privat.de> 21 /* Watchdog Mode register */ 25 /* This bit set if timeout reached. Cleared by SW. */ 64 enum asm9260_wdt_mode mode; member 71 iowrite32(0xaa, priv->iobase + HW_WDFEED); in asm9260_wdt_feed() 72 iowrite32(0x55, priv->iobase + HW_WDFEED); in asm9260_wdt_feed() 82 counter = ioread32(priv->iobase + HW_WDTV); in asm9260_wdt_gettimeleft() 84 return counter / priv->wdt_freq; in asm9260_wdt_gettimeleft() 92 counter = wdd->timeout * priv->wdt_freq; in asm9260_wdt_updatetimeout() [all …]
|
| /kernel/linux/linux-5.10/arch/ia64/kernel/ |
| D | entry.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Copyright (C) 1998-2003, 2005 Hewlett-Packard Co 8 * David Mosberger-Tang <davidm@hpl.hp.com> 9 * Copyright (C) 1999, 2002-2003 20 * to physical mode. 46 #include <asm/asm-offsets.h> 76 sxt4 r8=r8 // return 64-bit result 85 * security sensitive state (e.g., if current->mm->dumpable is zero). However, 148 mov out2=16 // stacksize (compensates for 16-byte scratch area) 161 * prev_task <- ia64_switch_to(struct task_struct *next) [all …]
|
| D | mca_asm.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * 2000-03-15 David Mosberger-Tang <davidm@hpl.hp.com> 11 * 2000-03-29 Chuck Fleckenstein <cfleck@co.intel.com> 15 * 2002-01-04 J.Hall <jenna.s.hall@intel.com> 16 * Before entering virtual mode code: 21 * 2004-11-12 Russ Anderson <rja@sgi.com> 24 * 2005-12-08 Keith Owens <kaos@sgi.com> 55 * so we can re-use the code for cpu hotplug code as well 68 ld8 r18=[r2],(O(PTCE_COUNT)-O(PTCE_BASE));; // r18=ptce_base 76 adds r20=-1,r20 [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/roles/ |
| D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 36 * usb_role_switch_set_role - Set USB role for a switch 37 * @sw: USB role switch 40 * Set USB role @role for @sw. 42 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument 46 if (IS_ERR_OR_NULL(sw)) in usb_role_switch_set_role() 49 mutex_lock(&sw->lock); in usb_role_switch_set_role() 51 ret = sw->set(sw, role); in usb_role_switch_set_role() 53 sw->role = role; in usb_role_switch_set_role() 54 kobject_uevent(&sw->dev.kobj, KOBJ_CHANGE); in usb_role_switch_set_role() [all …]
|
| D | intel-xhci-usb-role-switch.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2016-2017 Hans de Goede <hdegoede@redhat.com> 52 "intel-xhci-usb-sw", 55 static int intel_xhci_usb_set_role(struct usb_role_switch *sw, in intel_xhci_usb_set_role() argument 58 struct intel_xhci_usb_data *data = usb_role_switch_get_drvdata(sw); in intel_xhci_usb_set_role() 71 dev_err(data->dev, "Error could not acquire lock\n"); in intel_xhci_usb_set_role() 72 return -EIO; in intel_xhci_usb_set_role() 75 pm_runtime_get_sync(data->dev); in intel_xhci_usb_set_role() 83 val = readl(data->base + DUAL_ROLE_CFG0); in intel_xhci_usb_set_role() 102 if (data->enable_sw_switch) { in intel_xhci_usb_set_role() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/typec/mux/ |
| D | pi3usb30532.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Pericom PI3USB30532 Type-C cross switch / mux driver 5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com> 26 struct typec_switch *sw; member 35 if (pi->conf == new_conf) in pi3usb30532_set_conf() 38 ret = i2c_smbus_write_byte_data(pi->client, PI3USB30532_CONF, new_conf); in pi3usb30532_set_conf() 40 dev_err(&pi->client->dev, "Error writing conf: %d\n", ret); in pi3usb30532_set_conf() 44 pi->conf = new_conf; in pi3usb30532_set_conf() 48 static int pi3usb30532_sw_set(struct typec_switch *sw, in pi3usb30532_sw_set() argument 51 struct pi3usb30532 *pi = typec_switch_get_drvdata(sw); in pi3usb30532_sw_set() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/watchdog/ |
| D | alphascale-asm9260.txt | 5 - compatible : should be "alphascale,asm9260-wdt". 6 - reg : Specifies base physical address and size of the registers. 7 - clocks : the clocks feeding the watchdog timer. See clock-bindings.txt 8 - clock-names : should be set to 9 "mod" - source for tick counter. 10 "ahb" - ahb gate. 11 - resets : phandle pointing to the system reset controller with 13 - reset-names : should be set to "wdt_rst". 16 - timeout-sec : shall contain the default watchdog timeout in seconds, 18 - alphascale,mode : three modes are supported [all …]
|