/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 …]
|
/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 …]
|
/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 …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. 68 * ASCII case-insensitive (ie. A-Z) support for directories that was 78 for (i = 0, hash = 0; i < name->len; i++) in xfs_ascii_ci_hashname() 79 hash = xfs_ascii_ci_xfrm(name->name[i]) ^ rol32(hash, 7); in xfs_ascii_ci_hashname() 93 if (args->namelen != len) in xfs_ascii_ci_compname() 98 if (args->name[i] == name[i]) in xfs_ascii_ci_compname() 100 if (xfs_ascii_ci_xfrm(args->name[i]) != in xfs_ascii_ci_compname() 116 ASSERT(mp->m_sb.sb_versionnum & XFS_SB_VERSION_DIRV2BIT); in xfs_da_mount() 117 ASSERT(xfs_dir2_dirblock_bytes(&mp->m_sb) <= XFS_MAX_BLOCKSIZE); in xfs_da_mount() [all …]
|
H A D | xfs_inode_util.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 34 (ip->i_diflags & XFS_DIFLAG_PREALLOC); in xfs_flags2diflags() 50 if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_flags2diflags() 59 } else if (S_ISREG(VFS_I(ip)->i_mode)) { in xfs_flags2diflags() 75 (ip->i_diflags2 & (XFS_DIFLAG2_REFLINK | in xfs_flags2diflags2() 93 if (ip->i_diflags & XFS_DIFLAG_ANY) { in xfs_ip2xflags() 94 if (ip->i_diflags & XFS_DIFLAG_REALTIME) in xfs_ip2xflags() 96 if (ip->i_diflags & XFS_DIFLAG_PREALLOC) in xfs_ip2xflags() 98 if (ip->i_diflags & XFS_DIFLAG_IMMUTABLE) in xfs_ip2xflags() [all …]
|
H A D | xfs_inode_util.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. 37 #define XFS_ICREATE_UNLINKABLE (1U << 2) /* cannot link into dir tree */ 48 void xfs_trans_ichgtime(struct xfs_trans *tp, struct xfs_inode *ip, int flags); 50 void xfs_inode_init(struct xfs_trans *tp, const struct xfs_icreate_args *args, 53 int xfs_inode_uninit(struct xfs_trans *tp, struct xfs_perag *pag, 56 int xfs_iunlink(struct xfs_trans *tp, struct xfs_inode *ip); 57 int xfs_iunlink_remove(struct xfs_trans *tp, struct xfs_perag *pag, 59 int xfs_droplink(struct xfs_trans *tp, struct xfs_inode *ip); 60 void xfs_bumplink(struct xfs_trans *tp, struct xfs_inode *ip);
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 212 *(p - 1) = '\0'; in __trace_probe_log_err() 227 return -EINVAL; in traceprobe_split_symbol_offset() 229 tmp = strpbrk(symbol, "+-"); in traceprobe_split_symbol_offset() 255 return -EINVAL; in traceprobe_parse_event_name() 257 if (slash - event + 1 > MAX_EVENT_NAME_LEN) { in traceprobe_parse_event_name() 259 return -EINVAL; in traceprobe_parse_event_name() 261 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 24 #define TRACEPOINT_STUB ERR_PTR(-ENOENT) 50 struct trace_probe tp; member 55 return ev->ops == &trace_fprobe_ops; in is_trace_fprobe() 64 * for_each_trace_fprobe - iterate over the trace_fprobe list 74 return tf->fp.exit_handler != NULL; in trace_fprobe_is_return() 79 return tf->tpoint != NULL; in trace_fprobe_is_tracepoint() 84 return tf->symbol ? tf->symbol : "unknown"; in trace_fprobe_symbol() 91 return trace_probe_is_enabled(&tf->tp); in trace_fprobe_is_busy() [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> 67 struct trace_probe tp; member 72 return ev->ops == &trace_uprobe_ops; in is_trace_uprobe() 81 * for_each_trace_uprobe - iterate over the trace_uprobe list 99 return addr - (n * sizeof(long)); in adjust_stack_addr() 122 * Uprobes-specific fetch functions 129 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 …]
|
/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 …]
|
/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. 34 char *link) in xfs_readlink() argument 36 struct xfs_mount *mp = ip->i_mount; in xfs_readlink() 43 return -EIO; in xfs_readlink() 45 return -EIO; in xfs_readlink() 49 pathlen = ip->i_disk_size; in xfs_readlink() 55 __func__, (unsigned long long) ip->i_ino, in xfs_readlink() 61 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_readlink() [all …]
|
H A D | xfs_iops.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 42 * held. For regular files, the lock order is the other way around - the 60 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in xfs_initxattrs() 64 .name = xattr->name, in xfs_initxattrs() 65 .namelen = strlen(xattr->name), in xfs_initxattrs() 66 .value = xattr->value, in xfs_initxattrs() 67 .valuelen = xattr->value_len, in xfs_initxattrs() 97 namep->name = dentry->d_name.name; in xfs_dentry_to_name() 98 namep->len = dentry->d_name.len; in xfs_dentry_to_name() [all …]
|
/linux/Documentation/networking/ |
H A D | iso15765-2.rst | 1 .. SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 4 ISO 15765-2 (ISO-TP) 10 ISO 15765-2, also known as ISO-TP, is a transport protocol specifically defined 12 industry, for example as the transport protocol for UDSonCAN (ISO 14229-3) or 13 emission-related diagnostic services (ISO 15031-5). 15 ISO-TP can be used both on CAN CC (aka Classical CAN) and CAN FD (CAN with 17 CAN network using SAE J1939 as data link layer (however, this is not a 21 ------------------- 23 * ISO 15765-2:2024 : Road vehicles - Diagnostic communication over Controller 27 ---------- [all …]
|
/linux/tools/net/ynl/ |
H A D | ethtool.py | 2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 15 Verify and convert command-line arguments to the ynl-compatible request. 18 valid_attrs.remove('header') # not user-provided 42 Pretty-print a set of fields from the reply. desc specifies the 50 field, name, tp = spec 53 tp = 'int' 56 if tp == 'yn': 58 elif tp == 'bool' or isinstance(value, bool): 67 Print out the speed-like strings from the value dict. 69 speed_re = re.compile(r'[0-9]+base[^/]+/.+') [all …]
|
/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 …]
|