| /linux/drivers/pcmcia/ |
| H A D | cistpl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cistpl.c -- 16-bit PCMCIA Card Information Structure parser 45 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10) 48 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10) 57 /* 16-bit CIS? */ 63 mutex_lock(&s->ops_mutex); in release_cis_mem() 64 if (s->cis_mem.flags & MAP_ACTIVE) { in release_cis_mem() 65 s->cis_mem.flags &= ~MAP_ACTIVE; in release_cis_mem() 66 s->ops->set_mem_map(s, &s->cis_mem); in release_cis_mem() 67 if (s->cis_mem.res) { in release_cis_mem() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | connect6_prog.c | 1 // SPDX-License-Identifier: GPL-2.0 30 struct bpf_sock_tuple tuple = {}; in connect_v6_prog() local 35 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr)); in connect_v6_prog() 36 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog() 38 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog() 39 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog() 40 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog() 41 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog() 43 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog() 45 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in connect_v6_prog() [all …]
|
| H A D | cgroup_skb_sk_lookup_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 23 dst[0] = src->in6_u.u6_addr32[0]; in set_ip() 24 dst[1] = src->in6_u.u6_addr32[1]; in set_ip() 25 dst[2] = src->in6_u.u6_addr32[2]; in set_ip() 26 dst[3] = src->in6_u.u6_addr32[3]; in set_ip() 29 static inline void set_tuple(struct bpf_sock_tuple *tuple, in set_tuple() argument 33 set_ip(tuple->ipv6.saddr, &ip6h->daddr); in set_tuple() 34 set_ip(tuple->ipv6.daddr, &ip6h->saddr); in set_tuple() 35 tuple->ipv6.sport = tcph->dest; in set_tuple() 36 tuple->ipv6.dport = tcph->source; in set_tuple() [all …]
|
| H A D | test_cls_redirect_dynptr.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 26 #pragma GCC diagnostic ignored "-Waddress-of-packed-membe 511 fill_tuple(struct bpf_sock_tuple * tuple,void * iph,uint64_t iphlen,uint16_t sport,uint16_t dport) fill_tuple() argument 540 classify_tcp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen,void * iph,struct tcphdr * tcp) classify_tcp() argument 572 classify_udp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen) classify_udp() argument 589 classify_icmp(struct __sk_buff * skb,uint8_t proto,struct bpf_sock_tuple * tuple,uint64_t tuplen,metrics_t * metrics) classify_icmp() argument 641 struct bpf_sock_tuple tuple; process_icmpv4() local 657 struct bpf_sock_tuple tuple; process_icmpv6() local 709 struct bpf_sock_tuple tuple; process_tcp() local 732 struct bpf_sock_tuple tuple; process_udp() local [all...] |
| H A D | test_cls_redirect.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 27 #pragma GCC diagnostic ignored "-Waddress-of-packed-membe 621 fill_tuple(struct bpf_sock_tuple * tuple,void * iph,uint64_t iphlen,uint16_t sport,uint16_t dport) fill_tuple() argument 651 classify_tcp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen,void * iph,struct tcphdr * tcp) classify_tcp() argument 684 classify_udp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen) classify_udp() argument 702 classify_icmp(struct __sk_buff * skb,uint8_t proto,struct bpf_sock_tuple * tuple,uint64_t tuplen,metrics_t * metrics) classify_icmp() argument 752 struct bpf_sock_tuple tuple; process_icmpv4() local 804 struct bpf_sock_tuple tuple; process_icmpv6() local 833 struct bpf_sock_tuple tuple; process_tcp() local 851 struct bpf_sock_tuple tuple; process_udp() local [all...] |
| H A D | test_tcp_custom_syncookie.c | 1 // SPDX-License-Identifier: GPL-2.0 19 * ISN: | 31 ... 8 | 7 6 | 5 | 4 | 3 2 1 0 | 26 #define COOKIE_MASK (((__u32)1 << COOKIE_BITS) - 1) 30 BPF_SYNCOOKIE_WSCALE_MASK = (1 << 4) - 1, 46 1280 - 60, /* IPV6_MIN_MTU - 60 */ 47 1480 - 60, 48 9000 - 6 507 struct bpf_sock_tuple tuple; tcp_handle_ack() local [all...] |
| /linux/Documentation/devicetree/bindings/phy/ |
| H A D | apm,xgene-phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/apm,xgene-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: APM X-Gene 15Gbps Multi-purpose PHY 10 - Khuong Dinh <khuong@os.amperecomputing.com> 13 PHY nodes are defined to describe on-chip 15Gbps Multi-purpose PHY. Each 19 - const: apm,xgene-phy 24 '#phy-cells': 26 Possible values are 0 (SATA), 1 (SGMII), 2 (PCIe), 3 (USB), and 4 (XFI). [all …]
|
| /linux/drivers/ssb/ |
| H A D | sdio.c | 3 * SDIO-Hostbus related functions 9 * Copyright 2007-2008 Michael Buesch <m@bues.ch> 36 #define SSB_SDIO_CIS_PA_PA0B1_HI 3 60 #define SBSDIO_FUNC1_SBADDRMID 0x1000b /* SB Address window Mid (b23-b16) */ 61 #define SBSDIO_FUNC1_SBADDRHIGH 0x1000c /* SB Address window High (b24-b31) */ 71 #define SBSDIO_SB_ACCESS_2_4B_FLAG 0x8000 /* forces 32-bit SB access */ 78 * ------- ------- ------------------------------------------ 85 * In order to access the contents of a 32-bit Silicon Backplane address 94 * a 32-bit access flag 106 return &bus->host_sdio->dev; in ssb_sdio_dev() [all …]
|
| H A D | pcmcia.c | 3 * PCMCIA-Hostbus related functions 6 * Copyright 2007-2008 Michael Buesch <m@bues.ch> 53 #define SSB_PCMCIA_CIS_PA_PA0B1_HI 3 75 res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_write() 77 return -EBUSY; in ssb_pcmcia_cfg_write() 87 res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_read() 89 return -EBUSY; in ssb_pcmcia_cfg_read() 134 cur_core = (read_addr - SSB_ENUM_BASE) / SSB_CORE_SIZE; in ssb_pcmcia_switch_coreidx() 138 err = -ETIMEDOUT; in ssb_pcmcia_switch_coreidx() 156 ssb_core_name(dev->id.coreid), dev->core_index); in ssb_pcmcia_switch_core() [all …]
|
| /linux/drivers/mmc/core/ |
| H A D | sdio_cis.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 /* Find all null-terminated (including zero length) strings in in cistpl_vers_1() 41 size -= 2; in cistpl_vers_1() 57 return -ENOMEM; in cistpl_vers_1() 69 func->major_rev = major_rev; in cistpl_vers_1() 70 func->minor_rev = minor_rev; in cistpl_vers_1() 71 func->num_info = nr_strings; in cistpl_vers_1() 72 func->info = (const char**)buffer; in cistpl_vers_1() 74 card->major_rev = major_rev; in cistpl_vers_1() 75 card->minor_rev = minor_rev; in cistpl_vers_1() [all …]
|
| /linux/net/netfilter/ |
| H A D | xt_conntrack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * xt_conntrack - Netfilter module to match connection tracking 7 * (C) 2006-2012 Patrick McHardy <kaber@trash.net> 8 * Copyright © CC Computer Consultants GmbH, 2007 - 2008 31 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in conntrack_addrcmp() 33 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp() 34 &uaddr->in6) == 0; in conntrack_addrcmp() 44 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc() 45 &info->origsrc_addr, &info->origsrc_mask, family); in conntrack_mt_origsrc() 53 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst() [all …]
|
| H A D | nf_conntrack_bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Unstable Conntrack Helpers for XDP and TC-BPF hook 21 /* bpf_ct_opts - Options for CT lookup helpers 24 * @netns_id - Specify the network namespace for lookup 26 * BPF_F_CURRENT_NETNS (-1) 30 * @error - Out parameter, set for any errors encountered 32 * -EINVAL - Passed NULL for bpf_tuple pointer 33 * -EINVAL - opts->reserved is not 0 34 * -EINVAL - netns_id is less than -1 35 * -EINVAL - opts__sz isn't NF_BPF_CT_OPTS_SZ (16) or 12 [all …]
|
| H A D | nf_conntrack_helper.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 /* (C) 1999-2001 Paul `Rusty' Russell 5 * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org> 6 * (C) 2003,2004 USAGI/WIDE Project <http://www.linux-ipv6.org> 7 * (C) 2006-2012 Patrick McHardy <kaber@trash.net> 45 static unsigned int helper_hash(const struct nf_conntrack_tuple *tuple) in helper_hash() argument 47 return (((tuple->src.l3num << 8) | tuple->dst.protonum) ^ in helper_hash() 48 (__force __u16)tuple->src.u.all) % nf_ct_helper_hsize; in helper_hash() 59 if (strcmp(h->name, name)) in __nf_conntrack_helper_find() 62 if (h->tuple.src.l3num != NFPROTO_UNSPEC && in __nf_conntrack_helper_find() [all …]
|
| H A D | nf_nat_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 1999-2001 Paul `Rusty' Russell 4 * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org> 64 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session() 65 struct flowi4 *fl4 = &fl->u.ip4; in nf_nat_ipv4_decode_session() 67 if (ct->status & statusbit) { in nf_nat_ipv4_decode_session() 68 fl4->daddr = t->dst.u3.ip; in nf_nat_ipv4_decode_session() 69 if (t->dst.protonum == IPPROTO_TCP || in nf_nat_ipv4_decode_session() 70 t->dst.protonum == IPPROTO_UDP || in nf_nat_ipv4_decode_session() 71 t->dst.protonum == IPPROTO_UDPLITE || in nf_nat_ipv4_decode_session() [all …]
|
| H A D | nf_conntrack_netbios_ns.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 23 #define HELPER_NAME "netbios-ns" 32 static unsigned int timeout __read_mostly = 3; 49 .tuple.src.l3num = NFPROTO_IPV4, 50 .tuple.src.u.udp.port = cpu_to_be16(NMBD_PORT), 51 .tuple.dst.protonum = IPPROTO_UDP,
|
| H A D | nf_conntrack_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 /* (C) 1999-2001 Paul `Rusty' Russell 7 * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org> 8 * (C) 2003,2004 USAGI/WIDE Project <http://www.linux-ipv6.org> 9 * (C) 2005-2012 Patrick McHardy <kaber@trash.net> 91 * allowing non-idle machines to wakeup more often when needed. 100 #define MAX_CHAINLEN (80u - MIN_CHAINLEN) 124 /* Slow path 3) release the global lock */ in nf_conntrack_lock() 210 static u32 hash_conntrack_raw(const struct nf_conntrack_tuple *tuple, in hash_conntrack_raw() argument 223 return siphash((void *)tuple, in hash_conntrack_raw() [all …]
|
| /linux/include/net/netfilter/ |
| H A D | nf_conntrack_tuple.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Definitions and Declarations for tuple. 6 * - generalize L3 protocol dependent part. 18 /* A `tuple' is a structure containing the information to uniquely 19 identify a connection. ie. if two packets have the same tuple, they 23 "non-manipulatable" lines, for the benefit of the NAT code. 26 #define NF_CT_TUPLE_L3SIZE ARRAY_SIZE(((union nf_inet_addr *)NULL)->all) 28 /* The manipulable part of the tuple. */ 32 /* Layer 3 protocol */ 40 /* These are the parts of the tuple which are fixed. */ [all …]
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | sdio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 41 for (q = b43_sdio_quirks; q->quirks; q++) { in b43_sdio_get_quirks() 42 if (vendor == q->vendor && device == q->device) in b43_sdio_get_quirks() 43 return q->quirks; in b43_sdio_get_quirks() 52 struct b43_wldev *dev = sdio->irq_handler_opaque; in b43_sdio_interrupt_dispatcher() 58 sdio->irq_handler(dev); in b43_sdio_interrupt_dispatcher() 65 struct ssb_bus *bus = dev->dev->sdev->bus; in b43_sdio_request_irq() 66 struct sdio_func *func = bus->host_sdio; in b43_sdio_request_irq() 70 sdio->irq_handler_opaque = dev; in b43_sdio_request_irq() 71 sdio->irq_handler = handler; in b43_sdio_request_irq() [all …]
|
| /linux/net/ipv4/netfilter/ |
| H A D | nf_nat_snmp_basic_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net> 73 memcpy(&s[1], &ctx->from, 4); in fast_csum() 74 memcpy(&s[7], &ctx->to, 4); in fast_csum() 78 s[3] = ~s[3]; in fast_csum() 83 memcpy(&s[0], &ctx->from, 4); in fast_csum() 84 memcpy(&s[4], &ctx->to, 4); in fast_csum() 88 s[3] = ~s[3]; in fast_csum() 91 *ctx->check = csum_fold(csum_partial(s, size, in fast_csum() 92 ~csum_unfold(*ctx->check))); in fast_csum() [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | base_gamepad.py | 1 # SPDX-License-Identifier: GPL-2.0 33 3: "BTN_C", 62 self.buttons = (1, 2, 3) 93 :param left: a tuple of absolute (x, y) value of the left joypad 95 :param right: a tuple of absolute (x, y) value of the right joypad 155 :param left: a tuple of absolute (x, y) value of the left joypad 157 :param right: a tuple of absolute (x, y) value of the right joypad 175 3: "BTN_THUMB2", 215 :param left: a tuple of absolute (x, y) value of the left joypad 217 :param right: a tuple of absolute (x, y) value of the right joypad
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | cls_redirect.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 60 *conn = -1; in fill_addr_port() 63 *server = -1; in set_up_conn() argument 76 addr4->sin_family = family; in set_up_conn() 77 addr4->sin_add in set_up_conn() 33 struct tuple { global() struct 34 familytuple global() argument 35 srctuple global() argument 36 dsttuple global() argument 245 build_input(const struct test_cfg * test,void * const buf,const struct tuple * tuple) build_input() argument 371 struct tuple *tuple = &tuples[test->type][j]; test_cls_redirect_common() local [all...] |
| /linux/tools/lib/python/kdoc/ |
| H A D | python_version.py | 2 # SPDX-License-Identifier: GPL-2.0-or-later 3 # Copyright (c) 2017-2025 Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 36 """Ïnitialize self.version tuple from a version string""" 41 """Convert a major.minor.patch version into a tuple""" 42 return tuple(int(x) for x in version.split(".")) 46 """Returns a version tuple as major.minor.patch""" 57 if not max_len or len(cmd_line[-1]) + len(w) < max_len: 58 cmd_line[-1] += " " + w 61 cmd_line[-1] += " \\" 69 """Returns a version tuple as major.minor.patch from self.version""" [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | t4_values.h | 4 * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 56 #define T6_INGPADBOUNDARY_SHIFT_X 3 72 #define FETCHBURSTMIN_128B_X 3 74 /* T6 and later use a single-bit encoding for FetchBurstMin */ 79 #define FETCHBURSTMAX_512B_X 3 102 /* T5 and later support a new BAR2-based doorbell mechanism for Egress Queues. 104 * offsets 8x and a Write Combining single 64-byte Egress Queue Unit 110 * non-64-byte aligned offset for the Simple Doorbell in order to attempt to [all …]
|
| /linux/sound/soc/sof/ |
| H A D | ipc4-loader.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 12 #include "ipc4-priv.h" 13 #include "sof-audio.h" 14 #include "sof-priv.h" 23 struct sof_ipc4_fw_data *ipc4_data = sdev->private; in sof_ipc4_fw_parse_ext_man() 24 const struct firmware *fw = fw_lib->sof_fw.fw; in sof_ipc4_fw_parse_ext_man() 35 dev_err(sdev->dev, "%s: ipc4_data is not available\n", __func__); in sof_ipc4_fw_parse_ext_man() 36 return -EINVAL; in sof_ipc4_fw_parse_ext_man() 39 remaining = fw->size; in sof_ipc4_fw_parse_ext_man() 41 dev_err(sdev->dev, "Firmware size is too small: %zu\n", remaining); in sof_ipc4_fw_parse_ext_man() [all …]
|
| /linux/drivers/bluetooth/ |
| H A D | btsdio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 29 /* Generic Bluetooth Type-A SDIO device */ 32 /* Generic Bluetooth Type-B SDIO device */ 65 BT_DBG("%s", data->hdev->name); in btsdio_tx_packet() 67 /* Prepend Type-A header */ in btsdio_tx_packet() 69 skb->data[0] = (skb->len & 0x0000ff); in btsdio_tx_packet() 70 skb->data[1] = (skb->len & 0x00ff00) >> 8; in btsdio_tx_packet() 71 skb->data[2] = (skb->len & 0xff0000) >> 16; in btsdio_tx_packet() 72 skb->data[3] = hci_skb_pkt_type(skb); in btsdio_tx_packet() 74 err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len); in btsdio_tx_packet() [all …]
|