/openbmc/linux/drivers/net/ethernet/dec/tulip/ |
H A D | pnic2.c | 5 Written/copyright 1994-2001 by Donald Becker. 15 /* Understanding the PNIC_II - everything is this file is based 24 * ----- 25 * Bit 24 - SCR 26 * Bit 23 - PCS 27 * Bit 22 - TTM (Trasmit Threshold Mode) 28 * Bit 18 - Port Select 29 * Bit 13 - Start - 1, Stop - 0 Transmissions 30 * Bit 11:10 - Loop Back Operation Mode 31 * Bit 9 - Full Duplex mode (Advertise 10BaseT-FD is CSR14<7> is set) [all …]
|
H A D | 21142.c | 5 Written/copyright 1994-2001 by Donald Becker. 30 struct tulip_private *tp = in t21142_media_task() local 32 struct net_device *dev = tp->dev; in t21142_media_task() 33 void __iomem *ioaddr = tp->base_addr; in t21142_media_task() 43 dev_info(&dev->dev, "21143 negotiation status %08x, %s\n", in t21142_media_task() 44 csr12, medianame[dev->if_port]); in t21142_media_task() 45 if (tulip_media_cap[dev->if_port] & MediaIsMII) { in t21142_media_task() 53 } else if (tp->nwayset) { in t21142_media_task() 56 dev_info(&dev->dev, in t21142_media_task() 57 "Using NWay-set %s media, csr12 %08x\n", in t21142_media_task() [all …]
|
H A D | timer.c | 5 Written/copyright 1994-2001 by Donald Becker. 19 struct tulip_private *tp = in tulip_media_task() local 21 struct net_device *dev = tp->dev; in tulip_media_task() 22 void __iomem *ioaddr = tp->base_addr; in tulip_media_task() 29 medianame[dev->if_port], in tulip_media_task() 34 switch (tp->chip_id) { in tulip_media_task() 43 if (tp->mtable == NULL) { /* No EEPROM info, use generic code. */ in tulip_media_task() 53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task() 54 p = mleaf->leafdata; in tulip_media_task() 55 switch (mleaf->type) { in tulip_media_task() [all …]
|
H A D | pnic.c | 5 Written/copyright 1994-2001 by Donald Becker. 21 struct tulip_private *tp = netdev_priv(dev); in pnic_do_nway() local 22 void __iomem *ioaddr = tp->base_addr; in pnic_do_nway() 27 if (phy_reg & 0x20000000) dev->if_port = 5; in pnic_do_nway() 28 else if (phy_reg & 0x40000000) dev->if_port = 3; in pnic_do_nway() 29 else if (phy_reg & 0x10000000) dev->if_port = 4; in pnic_do_nway() 30 else if (phy_reg & 0x08000000) dev->if_port = 0; in pnic_do_nway() 31 tp->nwayset = 1; in pnic_do_nway() 32 new_csr6 = (dev->if_port & 1) ? 0x01860000 : 0x00420000; in pnic_do_nway() 33 iowrite32(0x32 | (dev->if_port & 1), ioaddr + CSR12); in pnic_do_nway() [all …]
|
H A D | media.c | 5 Written/copyright 1994-2001 by Donald Becker. 21 met by back-to-back PCI I/O cycles, but we insert a delay to avoid 25 /* Read and write the MII registers using software-generated serial 41 Read and write the MII registers using software-generated serial 43 See IEEE 802.3-2002.pdf (Section 2, Chapter "22.2.4 Management functions") 49 struct tulip_private *tp = netdev_priv(dev); in tulip_mdio_read() local 53 void __iomem *ioaddr = tp->base_addr; in tulip_mdio_read() 60 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_read() 66 spin_lock_irqsave(&tp->mii_lock, flags); in tulip_mdio_read() 67 if (tp->chip_id == LC82C168) { in tulip_mdio_read() [all …]
|
/openbmc/linux/net/sched/ |
H A D | cls_basic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 struct tcf_proto *tp; member 35 struct list_head link; member 41 const struct tcf_proto *tp, in basic_classify() argument 45 struct basic_head *head = rcu_dereference_bh(tp->root); in basic_classify() 48 list_for_each_entry_rcu(f, &head->flist, link) { in basic_classify() 49 __this_cpu_inc(f->pf->rcnt); in basic_classify() 50 if (!tcf_em_tree_match(skb, &f->ematches, NULL)) in basic_classify() 52 __this_cpu_inc(f->pf->rhit); in basic_classify() 53 *res = f->res; in basic_classify() [all …]
|
H A D | cls_bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Might be used to classify traffic through flexible, user-defined and 6 * possibly JIT-ed BPF filters for traffic control as an alternative to 40 struct list_head link; member 50 struct tcf_proto *tp; member 82 const struct tcf_proto *tp, in cls_bpf_classify() argument 85 struct cls_bpf_head *head = rcu_dereference_bh(tp->root); in cls_bpf_classify() 88 int ret = -1; in cls_bpf_classify() 90 list_for_each_entry_rcu(prog, &head->plist, link) { in cls_bpf_classify() 93 qdisc_skb_cb(skb)->tc_classid = prog->res.classid; in cls_bpf_classify() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sock_fields.c | 1 // SPDX-License-Identifier: GPL-2.0 34 #define PARENT_CGROUP "/test-bpf-sock-fields" 35 #define CHILD_CGROUP "/test-bpf-sock-fields/child" 53 if (!ASSERT_OK(system("ip link set dev lo up"), "bring up lo")) in create_netns() 64 inet_ntop(AF_INET, &sk->src_ip4, src_ip4, sizeof(src_ip4)); in print_sk() 65 inet_ntop(AF_INET6, &sk->src_ip6, src_ip6, sizeof(src_ip6)); in print_sk() 66 inet_ntop(AF_INET, &sk->dst_ip4, dst_ip4, sizeof(dst_ip4)); in print_sk() 67 inet_ntop(AF_INET6, &sk->dst_ip6, dst_ip6, sizeof(dst_ip6)); in print_sk() 73 sk->state, sk->bound_dev_if, sk->family, sk->type, sk->protocol, in print_sk() 74 sk->mark, sk->priority, in print_sk() [all …]
|
/openbmc/linux/arch/mips/boot/dts/qca/ |
H A D | ar9132_tl_wr1043nd_v1.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 10 compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132"; 11 model = "TP-Link TL-WR1043ND Version 1"; 19 compatible = "fixed-clock"; 20 #clock-cells = <0>; 21 clock-frequency = <40000000>; 24 gpio-keys { [all …]
|
H A D | ar9331_tl_mr3020.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 10 model = "TP-Link TL-MR3020"; 11 compatible = "tplink,tl-mr3020"; 23 compatible = "gpio-leds"; 25 led-wlan { 26 label = "tp-link:green:wlan"; 28 default-state = "off"; [all …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_symlink.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 4 * Copyright (c) 2012-2013 Red Hat, Inc. 27 /* ----- Kernel only functions below ----- */ 31 char *link) in xfs_readlink_bmap_ilocked() argument 33 struct xfs_mount *mp = ip->i_mount; in xfs_readlink_bmap_ilocked() 38 int pathlen = ip->i_disk_size; in xfs_readlink_bmap_ilocked() 58 error = xfs_buf_read(mp->m_ddev_targp, d, BTOBB(byte_cnt), 0, in xfs_readlink_bmap_ilocked() 66 cur_chunk = bp->b_addr; in xfs_readlink_bmap_ilocked() 68 if (!xfs_symlink_hdr_ok(ip->i_ino, offset, in xfs_readlink_bmap_ilocked() [all …]
|
H A D | xfs_inode.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 50 STATIC int xfs_iunlink_remove(struct xfs_trans *tp, struct xfs_perag *pag, 66 if ((ip->i_diflags & XFS_DIFLAG_EXTSIZE) && ip->i_extsize) in xfs_get_extsz_hint() 67 return ip->i_extsize; in xfs_get_extsz_hint() 69 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint() 86 if (ip->i_diflags2 & XFS_DIFLAG2_COWEXTSIZE) in xfs_get_cowextsz_hint() 87 a = ip->i_cowextsize; in xfs_get_cowextsz_hint() 101 * bringing in of the extents from disk for a file in b-tree format. If the 102 * inode is in b-tree format, then we need to lock the inode exclusively until [all …]
|
H A D | xfs_iops.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 39 * held. For regular files, the lock order is the other way around - the 57 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in xfs_initxattrs() 61 .name = xattr->name, in xfs_initxattrs() 62 .namelen = strlen(xattr->name), in xfs_initxattrs() 63 .value = xattr->value, in xfs_initxattrs() 64 .valuelen = xattr->value_len, in xfs_initxattrs() 94 namep->name = dentry->d_name.name; in xfs_dentry_to_name() 95 namep->len = dentry->d_name.len; in xfs_dentry_to_name() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mtd/partitions/ |
H A D | tplink,safeloader-partitions.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/tplink,safeloader-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TP-Link SafeLoader partitions 10 TP-Link home routers store various data on flash (e.g. bootloader, 14 Flash space layout of TP-Link devices is stored on flash itself using 15 a custom ASCII-based format. That format was first found in TP-Link 17 CFE and U-Boot bootloaders. 21 calibration data). Others are semi-static (like kernel). Finally some [all …]
|
/openbmc/linux/drivers/net/ethernet/sis/ |
H A D | sis190.c | 35 #include <linux/dma-mapping.h> 159 TxDMAShift = 8, /* DMA burst value (0-7) is shift this many bits */ 191 LSEN = 0x08000000, // TSO ? -- FR 209 LINK = 0x00010000, enumerator 224 RxDescCountMask = 0x7f000000, // multi-desc pkt when > 1 ? -- FR 345 } debug = { -1 }; 349 MODULE_PARM_DESC(rx_copybreak, "Copy breakpoint for copy-only-tiny-frames"); 360 * Maximum number of multicast addresses to filter (vs. Rx-all-multicast). 400 struct sis190_private *tp = netdev_priv(dev); in __mdio_write() local 402 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | rtw8822bu.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 19 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Edimax EW-7822ULC */ 21 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Edimax EW-7822UTC */ 27 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Edimax EW-7822UAD */ 31 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* ASUS AC1300 USB-AC55 B1 */ 35 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* ASUS - USB-AC58 rev A1 */ 41 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Dlink - DWA-181 */ 43 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Dlink - DWA-182 - D1 */ 45 .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec)}, /* Dlink - DWA-183 D Ver */ [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | trace_probe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Common code for probe-based Dynamic events. 9 * Copyright (C) IBM Corporation, 2010-2011 211 *(p - 1) = '\0'; in __trace_probe_log_err() 226 return -EINVAL; in traceprobe_split_symbol_offset() 228 tmp = strpbrk(symbol, "+-"); in traceprobe_split_symbol_offset() 254 return -EINVAL; in traceprobe_parse_event_name() 256 if (slash - event + 1 > MAX_EVENT_NAME_LEN) { in traceprobe_parse_event_name() 258 return -EINVAL; in traceprobe_parse_event_name() 260 strscpy(buf, event, slash - event + 1); in traceprobe_parse_event_name() [all …]
|
H A D | trace_fprobe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Fprobe-based tracing events 49 struct trace_probe tp; member 54 return ev->ops == &trace_fprobe_ops; in is_trace_fprobe() 63 * for_each_trace_fprobe - iterate over the trace_fprobe list 73 return tf->fp.exit_handler != NULL; in trace_fprobe_is_return() 78 return tf->tpoint != NULL; in trace_fprobe_is_tracepoint() 83 return tf->symbol ? tf->symbol : "unknown"; in trace_fprobe_symbol() 90 return trace_probe_is_enabled(&tf->tp); in trace_fprobe_is_busy() 104 argc--; argv++; in trace_fprobe_match_command_head() [all …]
|
H A D | trace_uprobe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * uprobes-based tracing events 5 * Copyright (C) IBM Corporation, 2010-2012 10 #include <linux/bpf-cgroup.h> 66 struct trace_probe tp; member 71 return ev->ops == &trace_uprobe_ops; in is_trace_uprobe() 80 * for_each_trace_uprobe - iterate over the trace_uprobe list 98 return addr - (n * sizeof(long)); in adjust_stack_addr() 121 * Uprobes-specific fetch functions 128 return copy_from_user(dest, vaddr, size) ? -EFAULT : 0; in probe_mem_read() [all …]
|
H A D | trace_kprobe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Kprobes-based tracing events 10 #include <linux/bpf-cgroup.h> 15 #include <linux/error-injection.h> 63 struct trace_probe tp; member 68 return ev->ops == &trace_kprobe_ops; in is_trace_kprobe() 77 * for_each_trace_kprobe - iterate over the trace_kprobe list 87 return tk->rp.handler != NULL; in trace_kprobe_is_return() 92 return tk->symbol ? tk->symbol : "unknown"; in trace_kprobe_symbol() 97 return tk->rp.kp.offset; in trace_kprobe_offset() [all …]
|
/openbmc/u-boot/drivers/usb/eth/ |
H A D | r8152.c | 1 // SPDX-License-Identifier: GPL-2.0 46 /* TP-LINK */ 71 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in get_registers() argument 76 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers() 84 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in set_registers() argument 89 return usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers() 94 int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, in generic_ocp_read() argument 103 return -EINVAL; in generic_ocp_read() 106 return -EINVAL; in generic_ocp_read() 110 ret = get_registers(tp, index, type, txsize, data); in generic_ocp_read() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 { USB_DEVICE(0x148f, 0x761a) }, /* TP-Link TL-WDN5200 */ 21 { USB_DEVICE(0x148f, 0x760a) }, /* TP-Link unknown */ 22 { USB_DEVICE(0x0b05, 0x17d1) }, /* Asus USB-AC51 */ 23 { USB_DEVICE(0x0b05, 0x17db) }, /* Asus USB-AC50 */ 24 { USB_DEVICE(0x0df6, 0x0075) }, /* Sitecom WLA-3100 */ 25 { USB_DEVICE(0x2019, 0xab31) }, /* Planex GW-450D */ 26 { USB_DEVICE(0x2001, 0x3d02) }, /* D-LINK DWA-171 rev B1 */ 29 { USB_DEVICE(0x04bb, 0x0951) }, /* I-O DATA WN-AC433UK */ 32 { USB_DEVICE(0x20f4, 0x806b) }, /* TRENDnet TEW-806UBH */ [all …]
|
/openbmc/qemu/hw/net/ |
H A D | e1000.c | 31 #include "hw/qdev-properties.h" 144 #define chkflag(x) (s->compat_flags & E1000_FLAG_##x) 152 #define TYPE_E1000_BASE "e1000-base" 161 e1000x_update_regs_on_link_up(s->mac_reg, s->phy_reg); in DECLARE_OBJ_CHECKERS() 164 qemu_flush_queued_packets(qemu_get_queue(s->nic)); in DECLARE_OBJ_CHECKERS() 170 e1000x_update_regs_on_autoneg_done(s->mac_reg, s->phy_reg); in e1000_autoneg_done() 173 qemu_flush_queued_packets(qemu_get_queue(s->nic)); in e1000_autoneg_done() 179 return (s->phy_reg[MII_BMCR] & MII_BMCR_AUTOEN); in have_autoneg() 185 /* bits 0-5 reserved; MII_BMCR_[ANRESTART,RESET] are self clearing */ in set_phy_ctrl() 186 s->phy_reg[MII_BMCR] = val & ~(0x3f | in set_phy_ctrl() [all …]
|
/openbmc/linux/tools/net/ynl/ |
H A D | ethtool.py | 2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 14 Verify and convert command-line arguments to the ynl-compatible request. 17 valid_attrs.remove('header') # not user-provided 41 Pretty-print a set of fields from the reply. desc specifies the 49 field, name, tp = spec 52 tp = 'int' 55 if tp == 'yn': 57 elif tp == 'bool' or isinstance(value, bool): 66 Print out the speed-like strings from the value dict. 68 speed_re = re.compile(r'[0-9]+base[^/]+/.+') [all …]
|
/openbmc/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> 92 #define tg3_flag(tp, flag) \ argument 93 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 94 #define tg3_flag_set(tp, flag) \ argument 95 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) [all …]
|