Home
last modified time | relevance | path

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

12345678910>>...43

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-netxbig.txt5 - compatible: "lacie,netxbig-leds".
6 - gpio-ext: Phandle for the gpio-ext bus.
9 - timers: Timer array. Each timer entry is represented by three integers:
10 Mode (gpio-ext bus), delay_on and delay_off.
12 Each LED is represented as a sub-node of the netxbig-leds device.
14 Required sub-node properties:
15 - mode-addr: Mode register address on gpio-ext bus.
16 - mode-val: Mode to value mapping. Each entry is represented by two integers:
17 A mode and the corresponding value on the gpio-ext bus.
18 - bright-addr: Brightness register address on gpio-ext bus.
[all …]
/kernel/linux/linux-5.10/drivers/net/pcs/
Dpcs-lynx.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
8 #include <linux/pcs-lynx.h>
36 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_usxgmii()
37 int addr = pcs->addr; in lynx_pcs_get_state_usxgmii() local
40 status = mdiobus_c45_read(bus, addr, MDIO_MMD_VEND2, MII_BMSR); in lynx_pcs_get_state_usxgmii()
44 state->link = !!(status & MDIO_STAT1_LSTATUS); in lynx_pcs_get_state_usxgmii()
45 state->an_complete = !!(status & MDIO_AN_STAT1_COMPLETE); in lynx_pcs_get_state_usxgmii()
46 if (!state->link || !state->an_complete) in lynx_pcs_get_state_usxgmii()
49 lpa = mdiobus_c45_read(bus, addr, MDIO_MMD_VEND2, MII_LPA); in lynx_pcs_get_state_usxgmii()
59 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_2500basex()
[all …]
/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/
DmISDNinfineon.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * - ISAC + HSCX
6 * - IPAC and IPAC-X
7 * - ISAC-SX + HSCX
10 * - Dialogic Diva 2.0
11 * - Dialogic Diva 2.0U
12 * - Dialogic Diva 2.01
13 * - Dialogic Diva 2.02
14 * - Sedlbauer Speedwin
15 * - HST Saphir3
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dkirkwood-net5big.dts1 // SPDX-License-Identifier: GPL-2.0
9 * Based on netxbig_v2-setup.c,
14 /dts-v1/;
17 #include "kirkwood-6281.dtsi"
18 #include "kirkwood-netxbig.dtsi"
22 compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
33 compatible = "regulator-fixed";
35 regulator-name = "hdd1power";
36 regulator-min-microvolt = <5000000>;
37 regulator-max-microvolt = <5000000>;
[all …]
Dkirkwood-netxbig.dtsi1 // SPDX-License-Identifier: GPL-2.0
9 * Based on netxbig_v2-setup.c,
14 #include <dt-bindings/leds/leds-netxbig.h>
16 #include "kirkwood-6281.dtsi"
21 stdout-path = &uart0;
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
37 spi-max-frequency = <20000000>;
38 mode = <0>;
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/shmobile/
Dpm.c1 // SPDX-License-Identifier: GPL-2.0
27 * Sleep mode is just plain "sleep" instruction
28 * Sleep Self-Refresh mode is above plus RAM put in Self-Refresh
29 * Standby Self-Refresh mode is above plus stopped clocks
37 * U-standby mode is unsupported since it needs bootloader hacks
46 void sh_mobile_call_standby(unsigned long mode) in sh_mobile_call_standby() argument
56 mode, NULL); in sh_mobile_call_standby()
59 if (mode & SUSP_SH_MMU) in sh_mobile_call_standby()
62 /* Let assembly snippet in on-chip memory handle the rest */ in sh_mobile_call_standby()
63 standby_onchip_mem(mode, RAM_BASE); in sh_mobile_call_standby()
[all …]
/kernel/linux/linux-5.10/drivers/net/wan/
Dslic_ds26522.c1 // SPDX-License-Identifier: GPL-2.0-or-later
37 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() argument
42 addr = bitrev16(addr) >> 1; in slic_write()
44 temp[0] = (u8)((addr >> 8) & 0x7f); in slic_write()
45 temp[1] = (u8)(addr & 0xfe); in slic_write()
48 /* write spi addr and value */ in slic_write()
52 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() argument
57 addr = bitrev16(addr) >> 1; in slic_read()
58 temp[0] = (u8)(((addr >> 8) & 0x7f) | 0x80); in slic_read()
59 temp[1] = (u8)(addr & 0xfe); in slic_read()
[all …]
/kernel/linux/linux-5.10/drivers/leds/
Dleds-netxbig.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * leds-netxbig.c - Driver for the 2Big and 5Big Network series LEDs
21 struct gpio_desc **addr; member
42 enum netxbig_led_mode mode; member
68 static void gpio_ext_set_addr(struct netxbig_gpio_ext *gpio_ext, int addr) in gpio_ext_set_addr() argument
72 for (pin = 0; pin < gpio_ext->num_addr; pin++) in gpio_ext_set_addr()
73 gpiod_set_value(gpio_ext->addr[pin], (addr >> pin) & 1); in gpio_ext_set_addr()
80 for (pin = 0; pin < gpio_ext->num_data; pin++) in gpio_ext_set_data()
81 gpiod_set_value(gpio_ext->data[pin], (data >> pin) & 1); in gpio_ext_set_data()
87 gpiod_set_value(gpio_ext->enable, 0); in gpio_ext_enable_select()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/fsl/
Dmpc5200.txt2 ----------------------------
4 (c) 2006-2009 Secret Lab Technologies Ltd
8 ------------------
9 For mpc5200 on-chip devices, the format for each compatible value is
10 <chip>-<device>[-<mode>]. The OS should be able to match a device driver
21 "fsl,mpc5200-<device>".
26 devices have extra functions but still have a backwards compatible mode.
29 compatible = "fsl,mpc5200b-<device>","fsl,mpc5200-<device>";
34 ie. ethernet on mpc5200: compatible = "fsl,mpc5200-fec";
35 ethernet on mpc5200b: compatible = "fsl,mpc5200b-fec", "fsl,mpc5200-fec";
[all …]
/kernel/linux/linux-5.10/arch/microblaze/kernel/
Dexceptions.c4 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
13 * This file handles the architecture-dependent parts of hardware exceptions
56 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->r16); in sw_exception()
57 flush_dcache_range(regs->r16, regs->r16 + 0x4); in sw_exception()
58 flush_icache_range(regs->r16, regs->r16 + 0x4); in sw_exception()
61 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) in _exception() argument
64 die("Exception in kernel mode", regs, signr); in _exception()
66 force_sig_fault(signr, code, (void __user *)addr); in _exception()
70 int fsr, int addr) in full_exception() argument
73 addr = regs->pc; in full_exception()
[all …]
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dcore.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * core.c - DesignWare HS OTG Controller common routines
5 * Copyright (C) 2004-2013 Synopsys, Inc.
16 * 3. The names of the above-listed copyright holders may not be used
48 #include <linux/dma-mapping.h>
61 * dwc2_backup_global_registers() - Backup global controller registers.
71 dev_dbg(hsotg->dev, "%s\n", __func__); in dwc2_backup_global_registers()
74 gr = &hsotg->gr_backup; in dwc2_backup_global_registers()
76 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers()
77 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_target.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */
26 * 32-bit or 64-bit words. All others are not listed.
40 return -EINVAL; in target_rw()
51 return -EINVAL; in nfp6000_nbi_dma()
62 return -EINVAL; in nfp6000_nbi_stats()
73 return -EINVAL; in nfp6000_nbi_tm()
84 return -EINVAL; in nfp6000_nbi_ppc()
102 * 32-bit or 64-bit words. All others are not listed.
150 return -EINVAL; in nfp6000_mu_common()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_hw_queue_defs.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
21 #define CC_REG_HIGH(name) (CC_REG_LOW(name) + name ## _BIT_SIZE - 1)
75 DESC_DIRECTION_ILLEGAL = -1,
83 DMA_MODE_NULL = -1,
92 FLOW_MODE_NULL = -1,
180 #define CC_LAST_HW_KEY_SLOT (CC_FIRST_HW_KEY_SLOT + CC_NUM_HW_KEY_SLOTS - 1)
185 CC_NUM_CPP_KEY_SLOTS - 1)
208 * hw_desc_init() - Init a HW descriptor struct
217 * set_queue_last_ind_bit() - Indicate the end of current HW descriptors flow
[all …]
/kernel/linux/linux-5.10/arch/parisc/include/asm/
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))
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()
168 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument
170 if((unsigned int) addr >= (unsigned int) high_memory) in _fd_dma_mem_free()
171 return vfree((void *)addr); in _fd_dma_mem_free()
173 free_pages(addr, get_order(size)); in _fd_dma_mem_free()
176 #define fd_dma_mem_free(addr, size) _fd_dma_mem_free(addr, size) argument
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
Ddirty_log_test.c1 // SPDX-License-Identifier: GPL-2.0
41 # define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7)
42 # define test_bit_le(nr, addr) \ argument
43 test_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
44 # define set_bit_le(nr, addr) \ argument
45 set_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
46 # define clear_bit_le(nr, addr) \ argument
47 clear_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
48 # define test_and_set_bit_le(nr, addr) \ argument
49 test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
[all …]
/kernel/liteos_m/arch/risc-v/nuclei/gcc/nmsis/Core/Include/
Dcore_feature_base.h4 * SPDX-License-Identifier: Apache-2.0
10 * www.apache.org/licenses/LICENSE-2.0
47 /** \brief Type of Control and Status Register(CSR), depends on the XLEN defined in RISC-V */
69 …rv_csr_t b:1; /*!< bit: 1 Tentatively reserved for Bit-Manipulation…
71 …rv_csr_t d:1; /*!< bit: 3 Double-precision floating-point extension…
73 …rv_csr_t f:1; /*!< bit: 5 Single-precision floating-point extension…
79 … /*!< bit: 11 Tentatively reserved for Decimal Floating-Point extension */
81 rv_csr_t n:1; /*!< bit: 13 User-level interrupts supported */
83 …rv_csr_t p:1; /*!< bit: 15 Tentatively reserved for Packed-SIMD exte…
84 …rv_csr_t q:1; /*!< bit: 16 Quad-precision floating-point extension …
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dfloppy.h25 ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))
44 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) argument
79 lcount; lcount--, lptr++) { in floppy_hardint()
169 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument
171 if ((unsigned long)addr >= (unsigned long)high_memory) in _fd_dma_mem_free()
172 vfree((void *)addr); in _fd_dma_mem_free()
174 free_pages(addr, get_order(size)); in _fd_dma_mem_free()
177 #define fd_dma_mem_free(addr, size) _fd_dma_mem_free(addr, size) argument
179 static void _fd_chose_dma_mode(char *addr, unsigned long size) in _fd_chose_dma_mode() argument
182 if ((unsigned long)addr >= (unsigned long)high_memory || in _fd_chose_dma_mode()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dfloppy.h20 #define fd_disable_dma() fd_ops->_disable_dma(FLOPPY_DMA)
21 #define fd_free_dma() fd_ops->_free_dma(FLOPPY_DMA)
23 #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA, mode) argument
25 #define fd_get_dma_residue() fd_ops->_get_dma_residue(FLOPPY_DMA)
31 #include <asm/ppc-pci.h> /* for isa_bridge_pcidev */
33 #define fd_dma_setup(addr,size,mode,io) fd_ops->_dma_setup(addr,size,mode,io) argument
41 int (*_dma_setup)(char *addr, unsigned long size, int mode, int io);
63 lcount; lcount--, lptr++) { in floppy_hardint()
117 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) in vdma_dma_setup() argument
121 virtual_dma_mode = (mode == DMA_MODE_WRITE); in vdma_dma_setup()
[all …]
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Dfloppy.h22 #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA,mode) argument
23 #define fd_set_dma_addr(addr) set_dma_addr(FLOPPY_DMA,virt_to_bus(addr)) argument
35 #define fd_dma_setup(addr,size,mode,io) alpha_fd_dma_setup(addr,size,mode,io) argument
38 alpha_fd_dma_setup(char *addr, unsigned long size, int mode, int io) in alpha_fd_dma_setup() argument
46 dir = (mode != DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; in alpha_fd_dma_setup()
49 && (addr != prev_addr || size != prev_size || dir != prev_dir)) { in alpha_fd_dma_setup()
50 /* different from last time -- unmap prev */ in alpha_fd_dma_setup()
56 bus_addr = pci_map_single(isa_bridge, addr, size, dir); in alpha_fd_dma_setup()
59 prev_addr = addr; in alpha_fd_dma_setup()
64 fd_set_dma_mode(mode); in alpha_fd_dma_setup()
[all …]
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/appletalk/
Dcops.rst1 .. SPDX-License-Identifier: GPL-2.0
9 This driver has two modes and they are: Dayna mode and Tangent mode.
10 Each mode corresponds with the type of card. It has been found
17 LT-200 cards work in a somewhat more limited capacity than the
20 TANGENT driver mode:
21 - Tangent ATB-II, Novell NL-1000, Daystar Digital LT-200
23 DAYNA driver mode:
24 - Dayna DL2000/DaynaTalk PC (Half Length), COPS LT-95,
25 - Farallon PhoneNET PC III, Farallon PhoneNET PC II
27 Other cards possibly supported mode unknown though:
[all …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dswift.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 #define SWIFT_PMC 0x00180000 /* Page mode control */
20 #define SWIFT_AP 0x00010000 /* Graphics page mode control (TCX/SX) */
22 #define SWIFT_BM 0x00004000 /* Boot mode */
27 #define SWIFT_NF 0x00000002 /* No fault mode */
31 static inline void swift_inv_insn_tag(unsigned long addr) in swift_inv_insn_tag() argument
35 : "r" (addr), "i" (ASI_M_TXTC_TAG) in swift_inv_insn_tag()
40 static inline void swift_inv_data_tag(unsigned long addr) in swift_inv_data_tag() argument
44 : "r" (addr), "i" (ASI_M_DATAC_TAG) in swift_inv_data_tag()
50 unsigned long addr; in swift_flush_dcache() local
[all …]
Dturbosparc.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 * -------------------------------------------------------------------
17 * |impl-vers| RSV| PMC |PE|PC| RSV |BM| RFR |IC|DC|PSO|RSV|ICS|NF|ME|
18 * -------------------------------------------------------------------
19 * 31 24 23-21 20-19 18 17 16-15 14 13-10 9 8 7 6-3 2 1 0
21 * BM: Boot Mode -- 0 = not in boot mode, 1 = in boot mode
23 * This indicates whether the TurboSparc is in boot-mode or not.
25 * IC: Instruction Cache -- 0 = off, 1 = on
26 * DC: Data Cache -- 0 = off, 1 = 0n
28 * These bits enable the on-cpu TurboSparc split I/D caches.
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/
Di8254.c4 * Copyright (c) 2003-2004 Fabrice Bellard
44 #define mod_64(x, y) ((x) - (y) * div64_u64(x, y))
56 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_set_gate()
58 switch (c->mode) { in pit_set_gate()
69 if (c->gate < val) in pit_set_gate()
70 c->count_load_time = ktime_get(); in pit_set_gate()
74 c->gate = val; in pit_set_gate()
79 return pit->pit_state.channels[channel].gate; in pit_get_gate()
86 struct kvm_kpit_state *ps = &pit->pit_state; in __kpit_elapsed()
88 if (!ps->period) in __kpit_elapsed()
[all …]
/kernel/linux/linux-5.10/drivers/net/
Dmacvlan.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * ---
7 * (C) Copyright 2001-2006
9 * Re-worked by Ben Greear <greearb@candelatech.com>
10 * ---
59 unsigned char addr[6+2] __aligned(sizeof(u16));
67 #define MACVLAN_SKB_CB(__skb) ((struct macvlan_skb_cb *)&((__skb)->cb[0]))
73 return port->flags & MACVLAN_F_PASSTHRU; in macvlan_passthru()
78 port->flags |= MACVLAN_F_PASSTHRU; in macvlan_set_passthru()
83 return port->flags & MACVLAN_F_ADDRCHANGE; in macvlan_addr_change()
[all …]
/kernel/linux/linux-5.10/net/ieee802154/
Dheader_ops.c1 // SPDX-License-Identifier: GPL-2.0-only
15 ieee802154_hdr_push_addr(u8 *buf, const struct ieee802154_addr *addr, in ieee802154_hdr_push_addr() argument
20 if (addr->mode == IEEE802154_ADDR_NONE) in ieee802154_hdr_push_addr()
24 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr()
28 switch (addr->mode) { in ieee802154_hdr_push_addr()
30 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr()
35 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr()
40 return -EINVAL; in ieee802154_hdr_push_addr()
52 memcpy(buf + 1, &hdr->frame_counter, 4); in ieee802154_hdr_push_sechdr()
54 switch (hdr->key_id_mode) { in ieee802154_hdr_push_sechdr()
[all …]

12345678910>>...43