/linux/Documentation/devicetree/bindings/serial/ |
H A D | snps-dw-apb-uart.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/serial/snps-dw-apb-uart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 13 - $ref: serial.yaml# 14 - $ref: rs485.yaml# 16 - if: 20 const: starfive,jh7110-uart 33 - items: [all …]
|
/linux/arch/riscv/boot/dts/canaan/ |
H A D | k210.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> 6 #include <dt-bindings/clock/k210-clk.h> 7 #include <dt-bindings/pinctrl/k210-fpioa.h> 8 #include <dt-bindings/reset/k210-rst.h> 12 * Although the K210 is a 64-bit CPU, the address bus is only 32-bits 15 #address-cells = <1>; 16 #size-cells = <1>; 17 compatible = "canaan,kendryte-k210"; 21 * Since this is a non-ratified draft specification, the kernel does not [all …]
|
/linux/drivers/net/ethernet/microchip/vcap/ |
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/scripts/dtc/ |
H A D | livetree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 if (streq(new->label, label)) { in add_label() 20 new->deleted = 0; in add_label() 26 new->label = label; in add_label() 27 new->next = *labels; in add_label() 36 label->deleted = 1; in delete_labels() 46 new->name = xstrdup(name); in build_property() 47 new->val = val; in build_property() 48 new->srcpos = srcpos_copy(srcpos); in build_property() 59 new->name = xstrdup(name); in build_property_delete() [all …]
|
/linux/net/ipv6/ |
H A D | ndisc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 157 space -= pad; in __ndisc_fill_addr_option() 162 space -= data_len; in __ndisc_fill_addr_option() 171 __ndisc_fill_addr_option(skb, type, data, skb->dev->addr_len, in ndisc_fill_addr_option() 172 ndisc_addr_option_pad(skb->dev->type)); in ndisc_fill_addr_option() 173 ndisc_ops_fill_addr_option(skb->dev, skb, icmp6_type); in ndisc_fill_addr_option() 181 ndisc_ops_fill_redirect_addr_option(skb->dev, skb, ops_data); in ndisc_fill_redirect_addr_option() 190 type = cur->nd_opt_type; in ndisc_next_option() 192 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_option() 193 } while (cur < end && cur->nd_opt_type != type); in ndisc_next_option() [all …]
|
/linux/net/mac80211/ |
H A D | util.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2015-2017 Intel Deutschland GmbH 9 * Copyright (C) 2018-2025 Intel Corporation 30 #include "driver-ops.h" 45 return &local->hw; in wiphy_to_ieee80211_hw() 57 __le16 fc = hdr->frame_control; in ieee80211_get_bssid() [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_dw.c | 1 // SPDX-License-Identifier: GPL-2.0+ 99 struct dw8250_data *d = to_dw8250_data(p->private_data); in dw8250_modify_msr() 101 /* Override any modem control signals if needed */ in dw8250_modify_msr() 103 value |= d->msr_mask_on; in dw8250_modify_msr() 104 value &= ~d->msr_mask_off; in dw8250_modify_msr() 122 if (up->fcr & UART_FCR_ENABLE_FIFO) { in dw8250_force_idle() 123 lsr = p->serial_in(p, UART_LSR); in dw8250_force_idle() 128 (void)p->serial_in(p, UART_RX); in dw8250_force_idle() 133 struct dw8250_data *d = to_dw8250_data(p->private_data); in dw8250_check_lcr() 134 void __iomem *addr = p->membase + (offset << p->regshift); in dw8250_check_lcr() [all …]
|
/linux/net/core/ |
H A D | filter.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux Socket Filter - Kernel level socket filtering 8 * Copyright (c) 2011 - 2014 PLUMgrid, http://plumgrid.com 16 * Andi Kleen - Fix a few bad bugs and races. 17 * Kris Katterjohn - Added many additional checks in bpf_check_classic() 103 return -EINVAL; in copy_bpf_fprog_from_user() 105 return -EFAULT; in copy_bpf_fprog_from_user() 107 dst->len = f32.len; in copy_bpf_fprog_from_user() 108 dst->filter = compat_ptr(f32.filter); in copy_bpf_fprog_from_user() 111 return -EINVAL; in copy_bpf_fprog_from_user() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_i2c_hw.c | 32 dce_i2c_hw->ctx 34 dce_i2c_hw->regs->reg 38 dce_i2c_hw->shifts->field_name, dce_i2c_hw->masks->field_name 56 DC_I2C_TRANSACTION_COUNT, dce_i2c_hw->transaction_count - 1); in execute_transaction() 64 dce_i2c_hw->transaction_count = 0; in execute_transaction() 65 dce_i2c_hw->buffer_used_bytes = 0; in execute_transaction() 77 else if (value & dce_i2c_hw->masks->DC_I2C_SW_STOPPED_ON_NACK) in get_channel_status() 79 else if (value & dce_i2c_hw->masks->DC_I2C_SW_TIMEOUT) in get_channel_status() 81 else if (value & dce_i2c_hw->masks->DC_I2C_SW_ABORTED) in get_channel_status() 83 else if (value & dce_i2c_hw->masks->DC_I2C_SW_DONE) in get_channel_status() [all …]
|
/linux/drivers/usb/serial/ |
H A D | ark3116.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * - implements a driver for the arkmicro ark3116 chipset (vendor=0x6547, 10 * productid=0x0232) (used in a datacable called KQ-U8A) 52 struct usb_device *dev = serial->dev; in is_irda() 53 if (le16_to_cpu(dev->descriptor.idVendor) == 0x18ec && in is_irda() 54 le16_to_cpu(dev->descriptor.idProduct) == 0x3118) in is_irda() 82 result = usb_control_msg(serial->dev, in ark3116_write_reg() 83 usb_sndctrlpipe(serial->dev, 0), in ark3116_write_reg() 97 result = usb_control_msg(serial->dev, in ark3116_read_reg() 98 usb_rcvctrlpipe(serial->dev, 0), in ark3116_read_reg() [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 7 * Copyright (C) 2005-2016 Broadcom Corporation. 8 * Copyright (C) 2016-2017 Broadcom Limited. 14 * Copyright (C) 2000-2016 Broadcom Corporation. 15 * Copyright (C) 2016-2017 Broadcom Ltd. 52 #include <linux/dma-mapping.h> 56 #include <linux/hwmon-sysfs.h> 94 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 96 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 98 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 124 * and dev->tx_timeout() should be called to fix the problem [all …]
|
/linux/drivers/net/fddi/skfp/ |
H A D | skfddi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 41 * 02-Mar-98 CG Created. 43 * 10-Mar-99 CG Support for 2.2.x added. 44 * 25-Mar-99 CG Corrected IRQ routing for SMP (APIC) 45 * 26-Oct-99 CG Fixed compilation error on 2.2.13 46 * 12-Nov-99 CG Source code release 47 * 22-Nov-99 CG Included in kernel source. 48 * 07-May-00 DM 64 bit fixes, new dma interface 49 * 31-Jul-03 DB Audit copy_*_user in skfp_ioctl 51 * 03-Dec-03 SH Convert to PCI device model [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pci.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 15 * fm10k_pci_tbl - PCI Device ID Table 35 struct fm10k_intfc *interface = hw->back; in fm10k_read_pci_cfg_word() 38 if (FM10K_REMOVED(hw->hw_addr)) in fm10k_read_pci_cfg_word() 41 pci_read_config_word(interface->pdev, reg, &value); in fm10k_read_pci_cfg_word() 50 u32 __iomem *hw_addr = READ_ONCE(hw->hw_addr); in fm10k_read_reg() 58 struct fm10k_intfc *interface = hw->back; in fm10k_read_reg() 59 struct net_device *netdev = interface->netdev; in fm10k_read_reg() 61 hw->hw_addr = NULL; in fm10k_read_reg() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | reg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * number used in the Programming Environments Manual For 32-Bit 17 #include <asm/asm-const.h> 18 #include <asm/feature-fixups.h> 74 /* so tests for these bits fail on 32-bit */ 116 #define MSR_TS_N 0 /* Non-transactional */ 161 /* Power Management - Processor Stop Status and Control Register Fields */ 165 #define PSSCR_PSLL_MASK 0x000F0000 /* Power-Saving Level Limit */ 169 #define PSSCR_PLS 0xf000000000000000 /* Power-saving Level Status */ 171 #define PSSCR_GUEST_VIS 0xf0000000000003ffUL /* Guest-visible PSSCR fields */ [all …]
|
/linux/arch/x86/coco/sev/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/percpu-defs.h> 27 #include <linux/psp-sev.h> 29 #include <uapi/linux/sev-guest.h> 36 #include <asm/insn-eval.h> 69 [MSR_AMD64_SEV_ES_ENABLED_BIT] = "SEV-ES", 70 [MSR_AMD64_SEV_SNP_ENABLED_BIT] = "SEV-SNP", 73 [MSR_AMD64_SNP_RESTRICTED_INJ_BIT] = "RI", 86 /* For early boot hypervisor communication in SEV-ES enabled guests */ 110 /* #VC handler runtime per-CPU data */ [all …]
|
/linux/drivers/scsi/csiostor/ |
H A D | csio_hw.c | 4 * Copyright (c) 2008-2012 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 64 {"T580-Dbg 10G", "Chelsio T580-Dbg 10G [FCoE]"}, 65 {"T520-CR 10G", "Chelsio T520-CR 10G [FCoE]"}, 66 {"T522-CR 10G/1G", "Chelsio T522-CR 10G/1G [FCoE]"}, 67 {"T540-CR 10G", "Chelsio T540-CR 10G [FCoE]"}, 68 {"T520-BCH 10G", "Chelsio T520-BCH 10G [FCoE]"}, 69 {"T540-BCH 10G", "Chelsio T540-BCH 10G [FCoE]"}, 70 {"T540-CH 10G", "Chelsio T540-CH 10G [FCoE]"}, [all …]
|
/linux/drivers/tty/ |
H A D | synclink_gt.c | 1 // SPDX-License-Identifier: GPL-1.0+ 28 * DBGINFO information - most verbose output 130 MODULE_PARM_DESC(ttymajor, "TTY major device number override: 0=auto assigned"); 146 #define dev_to_port(D) (dev_to_hdlc(D)->priv) 496 printk("%s %s data:\n",info->device_name, label); in trace_block() 511 count -= linecount; in trace_block() 522 printk("tbuf_current=%d\n", info->tbuf_current); in dump_tbufs() 523 for (i=0 ; i < info->tbuf_count ; i++) { in dump_tbufs() 525 i, le16_to_cpu(info->tbufs[i].count), le16_to_cpu(info->tbufs[i].status)); in dump_tbufs() 536 printk("rbuf_current=%d\n", info->rbuf_current); in dump_rbufs() [all …]
|
/linux/drivers/media/pci/cx23885/ |
H A D | cx23885-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include "altera-ci.h" 25 #include "cx23888-ir.h" 26 #include "cx23885-ir.h" 27 #include "cx23885-av.h" 28 #include "cx23885-input.h" 45 …a_reset_workaround, "periodic RiSC dma engine reset; 0-force disable, 1-driver detect (default), 2… 51 static unsigned int card[] = {[0 ... (CX23885_MAXBOARDS - 1)] = UNSET }; 63 #define NO_SYNC_LINE (-1U) 310 spin_lock_irqsave(&dev->pci_irqmask_lock, flags); in cx23885_irq_add() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 109 /* Include PCI Device IDs for both PF4 and PF0-3 so our PCI probe() routine is 126 #define FW4_CFNAME "cxgb4/t4-config.txt" 127 #define FW5_CFNAME "cxgb4/t5-config.txt" 128 #define FW6_CFNAME "cxgb4/t6-config.txt" 144 * order MSI-X, MSI, legacy INTx interrupts. This parameter determines which 154 MODULE_PARM_DESC(msi, "whether to use INTx (0), MSI (1) or MSI-X (2)"); 158 * offset by 2 bytes in order to have the IP headers line up on 4-byte [all …]
|
/linux/drivers/net/ethernet/agere/ |
H A D | et131x.c | 2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs 10 *------------------------------------------------------------------------------ 87 MODULE_DESCRIPTION("10/100/1000 Base-T Ethernet Driver for the ET1310 by Agere Systems"); 106 * In both cases, when flow control is enabled for either Tx or bi-direction, 156 #define ET131X_PCI_DEVICE_ID_GIG 0xED00 /* ET1310 1000 Base-T 8 */ 157 #define ET131X_PCI_DEVICE_ID_FAST 0xED01 /* ET1310 100 Base-T */ 173 /* number of RFDs - default and min */ 189 u32 word2; /* Bits 10-31 reserved, 0-9 descriptor */ 197 * PE-MCXMAC Data Sheet IPD DS54 0210-1 (also IPD-DS80 0205-2) 210 * 11-15: unused [all …]
|