Home
last modified time | relevance | path

Searched +full:sw +full:- +full:mode (Results 1 – 25 of 1053) sorted by relevance

12345678910>>...43

/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/prestera/
H A Dprestera_hw.c1 // 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 …]
H A Dprestera_hw.h1 /* 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 …]
H A Dprestera_ethtool.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/thunderbolt/
H A Dtmu.c1 // 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 …]
H A Dswitch.c1 // 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 …]
/OK3568_Linux_fs/u-boot/board/freescale/p1022ds/
H A Ddiu.c2 * Copyright 2010-2011 Freescale Semiconductor, Inc.
7 * SPDX-License-Identifier: GPL-2.0+
38 * Note that we need to byte-swap the value before it's written to the AD
79 temp = in_be32(&gur->clkdvdr) & 0x2000FFFF; in diu_set_pixel_clock()
80 out_be32(&gur->clkdvdr, temp); /* turn off clock */ in diu_set_pixel_clock()
81 out_be32(&gur->clkdvdr, temp | 0x80000000 | ((pixval & 0x1F) << 16)); in diu_set_pixel_clock()
93 * Indirect mode requires both BR0 and BR1 to be set to "GPCM", in platform_diu_init()
97 * In FCM mode, writes go to the NAND controller, which does not pass in platform_diu_init()
99 * mode, since we don't care about what's behind the localbus any in platform_diu_init()
133 * We know that the upper bits are 0 for 32-bit addressing, or 0xF for in platform_diu_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/joystick/
H A Dsidewinder.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/block/
H A Dswim3.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/typec/
H A Dmux.c1 // 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 …]
/OK3568_Linux_fs/kernel/arch/mips/alchemy/common/
H A Dsleeper.S1 /* 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 …]
/OK3568_Linux_fs/kernel/arch/alpha/kernel/
H A Dprocess.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/input/misc/
H A Dad714x.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_ctl.h1 /* 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 …]
/OK3568_Linux_fs/kernel/arch/parisc/include/asm/
H A Dfloppy.h1 /* 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 …]
/OK3568_Linux_fs/kernel/drivers/watchdog/
H A Dasm9260_wdt.c1 // 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 …]
/OK3568_Linux_fs/kernel/arch/x86/include/asm/
H A Dfloppy.h25 ((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 …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/include/mbgl/util/
H A Dgeo.hpp32 LatLng(double lat_ = 0, double lon_ = 0, WrapMode mode = Unwrapped) in LatLng() argument
41 throw std::domain_error("latitude must be between -90 and 90"); in LatLng()
46 if (mode == Wrapped) { in LatLng()
57 lon = util::wrap(lon, -util::LONGITUDE_MAX, util::LONGITUDE_MAX); in wrap()
63 const double delta = std::abs(end.lon - lon); in unwrapForShortestPath()
65 if (lon > 0 && end.lon < 0) lon -= util::DEGREES_MAX; in unwrapForShortestPath()
86 return LatLngBounds({-90, -180}, {90, 180}); in world()
104 std::swap(bounds.sw, bounds.ne); in empty()
112 return (sw.latitude() <= ne.latitude()) && (sw.longitude() <= ne.longitude()); in valid()
115 double south() const { return sw.latitude(); } in south()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/include/
H A Datombios.h2 * Copyright 2006-2007 Advanced Micro Devices, Inc.
107 #define ATOM_SCALER_DISABLE 0 //For Fudo, it's bypass and auto-cengter & no replication
108 #define ATOM_SCALER_CENTER 1 //For Fudo, it's bypass and auto-center & auto replication
109 #define ATOM_SCALER_EXPANSION 2 //For Fudo, it's 2 Tap alpha blending mode
110 #define ATOM_SCALER_MULTI_EX 3 //For Fudo only, it's multi-tap mode only used to drive TV or CV,…
222 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios,
235 …USHORT usMasterCommandTableOffset;//Offest for SW to get all command table offsets, Don't change t…
236 …USHORT usMasterDataTableOffset; //Offest for SW to get all data table offsets, Don't change the …
245 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios,
258 …USHORT usMasterCommandTableOffset;//Offest for SW to get all command table offsets, Don't change t…
[all …]
/OK3568_Linux_fs/external/linux-rga/samples/im2d_slt/sources/
H A Drga_im2d_slt.cpp4 * Cerf Yu <cerf.yu@rock-chips.com>
10 * http://www.apache.org/licenses/LICENSE-2.0
54 int mode; member
76 int read_image_from_path(void *buf, const char *path, int f, int sw, int sh, int index, int mode) { in read_image_from_path() argument
77 const char *inputFilePath = "%s/in%dw%d-h%d-%s.bin"; in read_image_from_path()
78 const char *inputFbcFilePath = "%s/in%dw%d-h%d-%s-fbc.bin"; in read_image_from_path()
81 snprintf(filePath, 100, (mode == IM_FBC_MODE) ? inputFbcFilePath : inputFilePath, in read_image_from_path()
82 path, index, sw, sh, translate_format_str(f)); in read_image_from_path()
87 return -EINVAL; in read_image_from_path()
90 if (mode == IM_FBC_MODE) in read_image_from_path()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Datombios.h2 * Copyright 2006-2007 Advanced Micro Devices, Inc.
214 UCHAR uaFirmWareSignature[4]; /*Signature to distinguish between Atombios and non-atombios,
227 …USHORT usMasterCommandTableOffset; /*Offset for SW to get all command table offsets, Don't change …
228 …USHORT usMasterDataTableOffset; /*Offset for SW to get all data table offsets, Don't change the …
244 …USHORT ASIC_Init; //Function Table, used by various SW components,lat…
246 …USHORT ASIC_RegistersInit; //Atomic Table, indirectly used by various SW comp…
249 …USHORT MemoryControllerInit; //Atomic Table, indirectly used by various SW comp…
250 …USHORT EnableCRTCMemReq; //Function Table,directly used by various SW compon…
251 …USHORT MemoryParamAdjust; //Atomic Table, indirectly used by various SW components,cal…
252 …USHORT DVOEncoderControl; //Function Table,directly used by various SW compon…
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/
H A Dgpio.c20 struct mac_ax_intf_ops *ops = adapter->ops->intf_ops; in mac_sel_uart_tx_pin()
21 struct mac_ax_gpio_info *info = &adapter->gpio_info; in mac_sel_uart_tx_pin()
28 if (!info->uart_tx_gpio5) in mac_sel_uart_tx_pin()
33 if (!info->uart_tx_gpio7) in mac_sel_uart_tx_pin()
38 if (!info->uart_tx_gpio8) in mac_sel_uart_tx_pin()
43 if (!info->uart_tx_gpio8 || !info->uart_tx_gpio5) in mac_sel_uart_tx_pin()
60 struct mac_ax_intf_ops *ops = adapter->ops->intf_ops; in mac_sel_uart_rx_pin()
61 struct mac_ax_gpio_info *info = &adapter->gpio_info; in mac_sel_uart_rx_pin()
68 if (!info->uart_rx_gpio6) in mac_sel_uart_rx_pin()
73 if (!info->uart_rx_gpio14) in mac_sel_uart_rx_pin()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/
H A Dgpio.c20 struct mac_ax_intf_ops *ops = adapter->ops->intf_ops; in mac_sel_uart_tx_pin()
21 struct mac_ax_gpio_info *info = &adapter->gpio_info; in mac_sel_uart_tx_pin()
28 if (!info->uart_tx_gpio5) in mac_sel_uart_tx_pin()
33 if (!info->uart_tx_gpio7) in mac_sel_uart_tx_pin()
38 if (!info->uart_tx_gpio8) in mac_sel_uart_tx_pin()
43 if (!info->uart_tx_gpio8 || !info->uart_tx_gpio5) in mac_sel_uart_tx_pin()
60 struct mac_ax_intf_ops *ops = adapter->ops->intf_ops; in mac_sel_uart_rx_pin()
61 struct mac_ax_gpio_info *info = &adapter->gpio_info; in mac_sel_uart_rx_pin()
68 if (!info->uart_rx_gpio6) in mac_sel_uart_rx_pin()
73 if (!info->uart_rx_gpio14) in mac_sel_uart_rx_pin()
[all …]
/OK3568_Linux_fs/u-boot/drivers/ddr/marvell/axp/
H A Dddr3_hw_training.c4 * SPDX-License-Identifier: GPL-2.0
65 puts("DDR3 Training Sequence - Ver 5.7."); in ddr3_print_version()
91 DEBUG_MAIN_S("DDR3 Training Sequence - DEBUG - 1\n"); in ddr3_hw_training()
105 /* Ignore ECC errors - if ECC is enabled */ in ddr3_hw_training()
175 * Xor Bypass - ECC support in AXP is currently available for 1:1 in ddr3_hw_training()
185 DEBUG_MAIN_S("DDR3 Training Sequence - Run with PBS.\n"); in ddr3_hw_training()
187 DEBUG_MAIN_S("DDR3 Training Sequence - Run without PBS.\n"); in ddr3_hw_training()
198 /* Set low - 100Mhz DDR Frequency by HW */ in ddr3_hw_training()
199 DEBUG_MAIN_S("DDR3 Training Sequence - FAILED (Dfs High2Low)\n"); in ddr3_hw_training()
208 DEBUG_MAIN_S("DDR3 Training Sequence - Registered DIMM Low WL - SKIP\n"); in ddr3_hw_training()
[all …]
/OK3568_Linux_fs/kernel/arch/ia64/kernel/
H A Dmca_asm.S1 /* 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 …]
/OK3568_Linux_fs/u-boot/include/power/
H A Dmc34vr500_pmic.h5 * SPDX-License-Identifier: GPL-2.0+
133 * Regulator Mode Control
136 * PFM: In this mode, the regulator is always in PFM mode, which is useful
138 * PWM: In this mode, the regulator is always in PWM mode operation
140 * APS: In this mode, the regulator moves automatically between pulse
141 * skipping mode and PWM mode depending on load conditions.
144 * Normal Mode | Standby Mode | value
172 int mc34vr500_get_sw_volt(uint8_t sw);
173 int mc34vr500_set_sw_volt(uint8_t sw, int sw_volt);

12345678910>>...43