| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/e1000e/ |
| H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 7 * e1000e_get_bus_info_pcie - Get PCIe bus information 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 17 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 18 struct e1000_adapter *adapter = hw->adapter; in e1000e_get_bus_info_pcie() 21 cap_offset = adapter->pdev->pcie_cap; in e1000e_get_bus_info_pcie() 23 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 25 pci_read_config_word(adapter->pdev, in e1000e_get_bus_info_pcie() 28 bus->width = (enum e1000_bus_width)((pcie_link_status & in e1000e_get_bus_info_pcie() [all …]
|
| H A D | 82571.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 42 * e1000_init_phy_params_82571 - Init PHY func ptrs. 47 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82571() 50 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_82571() 51 phy->type = e1000_phy_none; in e1000_init_phy_params_82571() 55 phy->addr = 1; in e1000_init_phy_params_82571() 56 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_init_phy_params_82571() 57 phy->reset_delay_us = 100; in e1000_init_phy_params_82571() 59 phy->ops.power_up = e1000_power_up_phy_copper; in e1000_init_phy_params_82571() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/e1000/ |
| H A D | e1000_hw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 39 static void e1000_raise_mdi_clk(struct e1000_hw *hw, u32 *ctrl); 40 static void e1000_lower_mdi_clk(struct e1000_hw *hw, u32 *ctrl); 88 * e1000_set_phy_type - Set the phy type member in the hw struct. 93 if (hw->mac_type == e1000_undefined) in e1000_set_phy_type() 94 return -E1000_ERR_PHY_TYPE; in e1000_set_phy_type() 96 switch (hw->phy_id) { in e1000_set_phy_type() 102 hw->phy_type = e1000_phy_m88; in e1000_set_phy_type() 105 if (hw->mac_type == e1000_82541 || in e1000_set_phy_type() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/ |
| H A D | igc_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * igc_disable_pcie_master - Disables PCI-express master access 14 * Returns 0 (0) if successful, else returns -10 15 * (-IGC_ERR_MASTER_REQUESTS_PENDING) if master disable bit has not caused 18 * Disables PCI-Express master access and verifies there are no pending 25 u32 ctrl; in igc_disable_pcie_master() local 27 ctrl = rd32(IGC_CTRL); in igc_disable_pcie_master() 28 ctrl |= IGC_CTRL_GIO_MASTER_DISABLE; in igc_disable_pcie_master() 29 wr32(IGC_CTRL, ctrl); in igc_disable_pcie_master() 36 timeout--; in igc_disable_pcie_master() [all …]
|
| H A D | igc_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * igc_check_reset_block - Check if PHY reset is blocked 25 * igc_get_phy_id - Retrieve the PHY ID and revision 33 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() 37 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 41 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 43 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 47 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id() 48 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id() 55 * igc_phy_has_link - Polls PHY for link [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | e1000.c | 2 Intel Pro 1000 for ppcboot/das-u-boot 3 Drivers are port from Intel's Linux driver e1000-4.3.15 10 Copyright(c) 1999 - 2002 Intel Corporation. All rights reserved. 12 * SPDX-License-Identifier: GPL-2.0+ 16 Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 60 * Normally U-Boot does not support this anyway. To fix it in this driver, 159 * hw - Struct containing variables accessed by shared code 160 * eecd - EECD's current value 176 * hw - Struct containing variables accessed by shared code 177 * eecd - EECD's current value [all …]
|
| /OK3568_Linux_fs/kernel/include/soc/fsl/ |
| H A D | dpaa2-fd.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * Copyright 2014-2016 Freescale Semiconductor Inc. 13 * DOC: DPAA2 FD - Frame Descriptor APIs for DPAA2 26 * struct dpaa2_fd - Struct describing FDs 31 * @format_offset: format, offset, and short-length fields 33 * @ctrl: control bits...including dd, sc, va, err, etc 34 * @flc: flow context address 47 __le32 ctrl; member 79 /* Error bits in FD CTRL */ 87 /* Annotation bits in FD CTRL */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igb/ |
| H A D | e1000_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 18 * igb_get_bus_info_pcie - Get PCIe bus information 27 struct e1000_bus_info *bus = &hw->bus; in igb_get_bus_info_pcie() 32 bus->type = e1000_bus_type_pci_express; in igb_get_bus_info_pcie() 38 bus->width = e1000_bus_width_unknown; in igb_get_bus_info_pcie() 39 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() 43 bus->speed = e1000_bus_speed_2500; in igb_get_bus_info_pcie() 46 bus->speed = e1000_bus_speed_5000; in igb_get_bus_info_pcie() 49 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/usb/ |
| H A D | smsc95xx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 2007-2008 SMSC 38 /* SCSRs - System Control and Status Registers */ 124 /* Automatic Flow Control Configuration Register */ 126 #define AFC_CFG_HI_ (0x00FF0000) /* Auto Flow Ctrl High Level */ 127 #define AFC_CFG_LO_ (0x0000FF00) /* Auto Flow Ctrl Low Level */ 129 #define AFC_CFG_FC_MULT_ (0x00000008) /* Flow Ctrl on Mcast Frame */ 130 #define AFC_CFG_FC_BRD_ (0x00000004) /* Flow Ctrl on Bcast Frame */ 131 #define AFC_CFG_FC_ADD_ (0x00000002) /* Flow Ctrl on Addr. Decode */ 132 #define AFC_CFG_FC_ANY_ (0x00000001) /* Flow Ctrl on Any Frame */ [all …]
|
| /OK3568_Linux_fs/kernel/samples/pktgen/ |
| H A D | pktgen_sample04_many_flows.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # and number of packets per flow controlled by variable $FLOWLEN 16 if [ -z "$DEST_IP" ]; then 17 [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1" 19 [ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff" 20 [ -z "$CLONE_SKB" ] && CLONE_SKB="0" 21 [ -z "$COUNT" ] && COUNT="0" # Zero means indefinitely 22 if [ -n "$DEST_IP" ]; then 24 read -r DST_MIN DST_MAX <<< $(parse_addr${IP6} $DEST_IP) 26 if [ -n "$DST_PORT" ]; then [all …]
|
| H A D | pktgen_sample05_flow_per_thread.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Script will generate one flow per thread (-t N) 5 # - Same destination IP 6 # - Fake source IPs for each flow (fixed based on thread number) 10 # separate-flow should not access shared variables/data. This script 20 if [ -z "$DEST_IP" ]; then 21 [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1" 23 [ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff" 24 [ -z "$CLONE_SKB" ] && CLONE_SKB="0" 25 [ -z "$BURST" ] && BURST=32 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | cmsg.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 18 return (struct nfp_flower_cmsg_hdr *)skb->data; in nfp_flower_cmsg_get_hdr() 35 ch->pad = 0; in nfp_flower_cmsg_alloc() 36 ch->version = NFP_FLOWER_CMSG_VER1; in nfp_flower_cmsg_alloc() 37 ch->type = type; in nfp_flower_cmsg_alloc() 55 memset(msg->reserved, 0, sizeof(msg->reserved)); in nfp_flower_cmsg_mac_repr_start() 56 msg->num_ports = num_ports; in nfp_flower_cmsg_mac_repr_start() 69 msg->ports[idx].idx = idx; in nfp_flower_cmsg_mac_repr_add() 70 msg->ports[idx].info = nbi & NFP_FLOWER_CMSG_MAC_REPR_NBI; in nfp_flower_cmsg_mac_repr_add() [all …]
|
| H A D | qos_conf.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 21 * ---------------------------------------------------------------- 24 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 26 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 28 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 30 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 32 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 34 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 36 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 38 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/serial/ |
| H A D | st,stm32-uart.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/serial/st,stm32-uart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 - Erwan Le Ray <erwan.leray@st.com> 13 - $ref: rs485.yaml 18 - st,stm32-uart 19 - st,stm32f7-uart 20 - st,stm32h7-uart 37 st,hw-flow-ctrl: [all …]
|
| /OK3568_Linux_fs/kernel/include/net/caif/ |
| H A D | caif_layer.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) ST-Ericsson AB 2010 21 * caif_assert() - Assert function for CAIF. 36 * enum caif_ctrlcmd - CAIF Stack Control Signaling sent in layer.ctrlcmd(). 38 * @CAIF_CTRLCMD_FLOW_OFF_IND: Flow Control is OFF, transmit function 41 * @CAIF_CTRLCMD_FLOW_ON_IND: Flow Control is ON, transmit function 50 * @CAIF_CTRLCMD_DEINIT_RSP: Called when de-initialization is 79 * enum caif_modemcmd - Modem Control Signaling, sent from CAIF Client 82 * @CAIF_MODEMCMD_FLOW_ON_REQ: Flow Control is ON, transmit function 85 * @CAIF_MODEMCMD_FLOW_OFF_REQ: Flow Control is OFF, transmit function [all …]
|
| /OK3568_Linux_fs/kernel/drivers/slimbus/ |
| H A D | slimbus.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2011-2017, The Linux Foundation 79 /* Indicate that the frequency of the flow and the bus frequency are locked */ 91 * struct slim_framer - Represents SLIMbus framer. 94 * Manager is responsible for framer hand-over. 111 * struct slim_msg_txn - Message to be sent by the controller. 120 * (relevant for message-codes involving read operation) 260 * struct slim_channel - SLIMbus channel, used for state machine 279 * struct slim_port - SLIMbus port 296 * @SLIM_PROTO_ISO: Isochronous Protocol, no flow control as data rate match [all …]
|
| /OK3568_Linux_fs/kernel/net/caif/ |
| H A D | cfsrvl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson AB 2010 27 static void cfservl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfservl_ctrlcmd() argument 32 if (layr->up == NULL || layr->up->ctrlcmd == NULL) in cfservl_ctrlcmd() 35 switch (ctrl) { in cfservl_ctrlcmd() 37 service->open = true; in cfservl_ctrlcmd() 38 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd() 42 service->open = false; in cfservl_ctrlcmd() 43 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd() 46 if (phyid != service->dev_info.id) in cfservl_ctrlcmd() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/ |
| H A D | gianfar_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * Copyright 2003-2006, 2008-2009, 2011 Freescale Semiconductor, Inc. 51 "rx-allocation-errors", 52 "rx-large-frame-errors", 53 "rx-short-frame-errors", 54 "rx-non-octet-errors", 55 "rx-crc-errors", 56 "rx-overrun-errors", 57 "rx-busy-errors", 58 "rx-babbling-errors", [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/mcde/ |
| H A D | mcde_display.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * (C) ST-Ericsson SA 2013 9 #include <linux/dma-buf.h> 72 mispp = readl(mcde->regs + MCDE_MISPP); in mcde_display_irq() 73 misovl = readl(mcde->regs + MCDE_MISOVL); in mcde_display_irq() 74 mischnl = readl(mcde->regs + MCDE_MISCHNL); in mcde_display_irq() 84 if (mcde_dsi_irq(mcde->mdsi)) { in mcde_display_irq() 91 * flow on the channel once we get the TE IRQ. in mcde_display_irq() 93 if (mcde->flow_mode == MCDE_COMMAND_ONESHOT_FLOW) { in mcde_display_irq() 94 spin_lock(&mcde->flow_lock); in mcde_display_irq() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/ar7/ |
| H A D | prom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <asm/mach-ar7/ar7.h> 19 #include <asm/mach-ar7/prom.h> 48 if (i < (argc - 1)) in ar7_init_cmdline() 65 u8 ctrl; member 90 Well-known variable (num is looked up in table above for matching variable name) 92 +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+--- 93 | 01 |CTRL|CHECKSUM | 01 | _2 | _1 | _1 | _9 | _6 | _8 | _0 | _0 | _0 | \0 | FF 94 +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+--- 98 +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+--- [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_82598.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 25 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout 30 * than the 10ms recommended by the pci-e spec. To address this we need to 39 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() 71 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82598() 76 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE; in ixgbe_get_invariants_82598() 77 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE; in ixgbe_get_invariants_82598() 78 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES; in ixgbe_get_invariants_82598() 79 mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE; in ixgbe_get_invariants_82598() [all …]
|
| /OK3568_Linux_fs/kernel/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) 12 * Supports full modem status lines, break, hardware flow control. Does not 13 * support software flow control, since I do not know how to enable it in hw. 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwmac100.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 Copyright (C) 2007-2009 STMicroelectronics Ltd 17 /*---------------------------------------------------------------------------- 19 *---------------------------------------------------------------------------*/ 28 #define MAC_FLOW_CTRL 0x0000001c /* Flow Control */ 32 /* MAC CTRL defines */ 61 /* MAC FLOW CTRL defines */ 65 #define MAC_FLOW_CTRL_ENABLE 0x00000002 /* Flow Control Enable */ 66 #define MAC_FLOW_CTRL_PAUSE 0x00000001 /* Flow Control Busy ... */ 72 /*---------------------------------------------------------------------------- [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | apbuart.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * Copyright (C) 2008 Gilead Kutnick <kutnickg@zin-tech.com> 74 unsigned int max_chars = port->fifosize; in apbuart_rx_chars() 78 while (UART_RX_DATA(status) && (max_chars--)) { in apbuart_rx_chars() 83 port->icount.rx++; in apbuart_rx_chars() 91 port->icount.brk++; in apbuart_rx_chars() 95 port->icount.parity++; in apbuart_rx_chars() 97 port->icount.frame++; in apbuart_rx_chars() 100 port->icount.overrun++; in apbuart_rx_chars() 102 rsr &= port->read_status_mask; in apbuart_rx_chars() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/calxeda/ |
| H A D | xgmac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2010-2011 Calxeda, Inc. 16 #include <linux/dma-mapping.h> 22 #define XGMAC_FLOW_CTRL 0x00000018 /* MAC Flow Control */ 37 #define XGMAC_REMOTE_WAKE 0x00000700 /* Remote Wake-Up Frm Filter */ 89 #define XGMAC_DMA_CONTROL 0x00000f18 /* Ctrl (Operational Mode) */ 121 #define XGMAC_CONTROL_LM 0x00001000 /* Loop-back mode */ 142 /* XGMAC FLOW CTRL defines */ 145 #define XGMAC_FLOW_CTRL_DZQP 0x00000080 /* Disable Zero-Quanta Phase */ 149 #define XGMAC_FLOW_CTRL_RFE 0x00000004 /* Rx Flow Control Enable */ [all …]
|