Home
last modified time | relevance | path

Searched +full:magic +full:- +full:packet (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/linux/drivers/net/ethernet/freescale/fman/
H A Dfman.h1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later */
3 * Copyright 2008 - 2015 Freescale Semiconductor Inc.
21 /* TX-Port: Unsupported Format */
29 /* IPR non-consistent-sp */
66 /* non Frame-Manager error */
119 __be16 cksum; /* Running-sum */
120 /* Flags&fragment-offset field of the last IP-header */
127 u8 ip_pid_off; /* IP PID (last IP-proto) offset */
143 * buffer; Note that the private-area will start from the base
149 * order to get the parser-result from a buffer.
[all …]
H A Dfman_mac.h2 * Copyright 2008-2015 Freescale Semiconductor Inc.
62 (u8)((_addr64) >> ((5 - i) * 8)); \
134 /* dTSEC Magic Packet detection */
146 /* dTSEC Time-Stamp Receive Error */
150 /* mEMAC Time-stamp FIFO ECC error interrupt;
154 /* mEMAC Magic Packet Indication Interrupt */
167 /* MAC ID; numbering of dTSEC and 1G-mEMAC:
168 * 0 - FM_MAX_NUM_OF_1G_MACS;
169 * numbering of 10G-MAC (TGEC) and 10G-mEMAC:
170 * 0 - FM_MAX_NUM_OF_10G_MACS
[all …]
/linux/arch/um/drivers/
H A Dmconsole_user.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
17 * With uts namespaces, uts information becomes process-specific, so
48 msg.msg_name = &(req->origin); in mconsole_reply_v0()
49 msg.msg_namelen = req->originlen; in mconsole_reply_v0()
56 return sendmsg(req->originating_fd, &msg, 0); in mconsole_reply_v0()
66 if (!strncmp(req->request.data, cmd->command, in mconsole_parse()
67 strlen(cmd->command))) { in mconsole_parse()
85 req->originlen = sizeof(req->origin); in mconsole_get_request()
86 req->len = recvfrom(fd, &req->request, sizeof(req->request), 0, in mconsole_get_request()
[all …]
/linux/include/uapi/linux/
H A Dpg.h1 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */
6 pg.h defines the user interface to the generic ATAPI packet
33 read and write buffers contain a single character "magic" flag.
49 char magic; /* == PG_MAGIC */ member
53 char packet[12]; /* packet command */ member
59 char magic; /* == PG_MAGIC */ member
H A Dnbd.h1 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */
51 #define NBD_FLAG_HAS_FLAGS (1 << 0) /* nbd-server supports flags */
52 #define NBD_FLAG_READ_ONLY (1 << 1) /* device is read-only */
74 /* These are sent over the network in the request/reply magic fields */
79 /* magic 0x668e33ef for structured reply not supported by kernel yet */
82 * This is the packet used for communication between client and
86 __be32 magic; /* NBD_REQUEST_MAGIC */ member
97 * This is the reply packet that nbd-server sends back to the client after
101 __be32 magic; /* NBD_REPLY_MAGIC */ member
/linux/drivers/power/reset/
H A Dlinkstation-poweroff.c1 // SPDX-License-Identifier: GPL-2.0
68 /* If WOL was enabled and a magic packet was received before powering in linkstation_mvphy_reg_intn()
69 * off, we won't be able to wake up by sending another magic packet. in linkstation_mvphy_reg_intn()
79 dev_err(&phydev->mdio.dev, "Write register failed, %d\n", rc); in linkstation_mvphy_reg_intn()
99 /* If WOL was enabled and a magic packet was received before powering in readynas_mvphy_set_reg()
100 * off, we won't be able to wake up by sending another magic packet. in readynas_mvphy_set_reg()
110 dev_err(&phydev->mdio.dev, "Write register failed, %d\n", rc); in readynas_mvphy_set_reg()
119 .mdio_node_name = "mdio-bus",
127 cfg->phy_set_reg(true); in linkstation_reboot_notifier()
139 cfg->phy_set_reg(false); in linkstation_poweroff()
[all …]
/linux/drivers/net/usb/
H A Dlg-vl600.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 * replaces the standard ethernet header in a packet so only actual
43 __le32 magic; member
62 return -ENOMEM; in vl600_bind()
70 dev->driver_priv = s; in vl600_bind()
78 * packet depend only on whether it is on the IN or OUT endpoint. */ in vl600_bind()
79 dev->net->flags |= IFF_NOARP; in vl600_bind()
81 dev->net->flags |= IFF_MULTICAST; in vl600_bind()
88 struct vl600_state *s = dev->driver_priv; in vl600_unbind()
90 dev_kfree_skb(s->current_rx_buf); in vl600_unbind()
[all …]
H A Dgl620a.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * GeneSys GL620USB-A based links
4 * Copyright (C) 2001 by Jiun-Jie Huang <huangjj@genesyslogic.com.tw>
23 * GeneSys GL620USB-A (www.genesyslogic.com.tw)
29 * - GL620USB-A is full duplex; GL620USB is only half duplex for bulk.
30 * (Some cables, like the BAFO-100c, use the half duplex version.)
31 * - For the full duplex model, the low bit of the version code says
33 * - For the half duplex type, a control/interrupt handshake settles
37 * Original code from Jiun-Jie Huang <huangjj@genesyslogic.com.tw>
49 // max transmit packet number per transmit
[all …]
/linux/tools/perf/util/
H A Dcs-etm.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright(C) 2015-2018 Linaro Limited.
12 #include <linux/coresight-pmu.h>
22 #include "cs-etm.h"
23 #include "cs-etm-decoder/cs-etm-decode
96 struct cs_etm_packet *packet; global() member
163 cs_etm__get_magic(struct cs_etm_queue * etmq,u8 trace_chan_id,u64 * magic) cs_etm__get_magic() argument
1344 cs_etm__first_executed_instr(struct cs_etm_packet * packet) cs_etm__first_executed_instr() argument
1358 cs_etm__last_executed_instr(const struct cs_etm_packet * packet) cs_etm__last_executed_instr() argument
1369 cs_etm__instr_addr(struct cs_etm_queue * etmq,u64 trace_chan_id,const struct cs_etm_packet * packet,u64 offset) cs_etm__instr_addr() argument
1507 cs_etm__copy_insn(struct cs_etm_queue * etmq,u64 trace_chan_id,const struct cs_etm_packet * packet,struct perf_sample * sample) cs_etm__copy_insn() argument
2032 cs_etm__is_svc_instr(struct cs_etm_queue * etmq,u8 trace_chan_id,struct cs_etm_packet * packet,u64 end_addr) cs_etm__is_svc_instr() argument
2103 cs_etm__is_syscall(struct cs_etm_queue * etmq,struct cs_etm_traceid_queue * tidq,u64 magic) cs_etm__is_syscall() argument
2106 struct cs_etm_packet *packet = tidq->packet; cs_etm__is_syscall() local
2129 cs_etm__is_async_exception(struct cs_etm_traceid_queue * tidq,u64 magic) cs_etm__is_async_exception() argument
2131 struct cs_etm_packet *packet = tidq->packet; cs_etm__is_async_exception() local
2156 cs_etm__is_sync_exception(struct cs_etm_queue * etmq,struct cs_etm_traceid_queue * tidq,u64 magic) cs_etm__is_sync_exception() argument
2159 struct cs_etm_packet *packet = tidq->packet; cs_etm__is_sync_exception() local
2206 struct cs_etm_packet *packet = tidq->packet; cs_etm__set_sample_flags() local
2209 u64 magic; cs_etm__set_sample_flags() local
[all...]
/linux/drivers/input/mouse/
H A Dlogips2pp.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 1999-2003 Vojtech Pavlik <vojtech@suse.cz>
38 * Process a PS2++ or PS2T++ packet.
43 struct input_dev *dev = psmouse->dev; in ps2pp_process_byte()
44 u8 *packet = psmouse->packet; in ps2pp_process_byte() local
46 if (psmouse->pktcnt < 3) in ps2pp_process_byte()
50 * Full packet accumulated, process it in ps2pp_process_byte()
53 if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) { in ps2pp_process_byte()
55 /* Logitech extended packet */ in ps2pp_process_byte()
56 switch ((packet[1] >> 4) | (packet[0] & 0x30)) { in ps2pp_process_byte()
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dfsl-tsec-phy.txt5 the definition of the PHY node in booting-without-of.txt for an example
9 - reg : Offset and length of the register set for the device, and optionally
14 - compatible : Should define the compatible device type for the
16 - "fsl,gianfar-tbi"
17 - "fsl,gianfar-mdio"
18 - "fsl,etsec2-tbi"
19 - "fsl,etsec2-mdio"
20 - "fsl,ucc-mdio"
21 - "fsl,fman-mdio"
23 - "gianfar"
[all …]
H A Dcdns,macb.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nicolas Ferre <nicolas.ferre@microchip.com>
11 - Claudiu Beznea <claudiu.beznea@microchip.com>
16 - items:
17 - enum:
18 - cdns,at91rm9200-emac # Atmel at91rm9200 SoC
19 - const: cdns,emac # Generic
21 - items:
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Ddev-sliced-vbi.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
17 :ref:`raw VBI interface <raw-vbi>`. The data is passed as short
51 .. _sliced-vbi-format-negotitation:
103 -----------------------------
115 .. flat-table::
116 :header-rows: 0
117 :stub-columns: 0
120 * - __u16
121 - ``service_set``
122 - :cspan:`2`
[all …]
/linux/net/core/
H A Dselftests.c1 // SPDX-License-Identifier: GPL-2.0
33 struct net_packet_attrs *packet; member
43 __be64 magic; member
65 size = attr->size + NET_TEST_PKT_SIZE; in net_test_get_skb()
67 if (attr->tcp) in net_test_get_skb()
72 if (attr->max_size && attr->max_size > size) in net_test_get_skb()
73 size = attr->max_size; in net_test_get_skb()
79 prefetchw(skb->data); in net_test_get_skb()
84 skb_set_network_header(skb, skb->len); in net_test_get_skb()
87 skb_set_transport_header(skb, skb->len); in net_test_get_skb()
[all …]
/linux/include/net/9p/
H A D9p.h1 /* SPDX-License-Identifier: GPL-2.0-only */
14 * enum p9_debug_flags - bits for mount time debug parameter
24 * @P9_DEBUG_PKT: packet marshalling/unmarshalling
25 * @P9_DEBUG_FSC: FS-cache tracing
26 * @P9_DEBUG_VPKT: Verbose packet debugging (full packet dump)
62 * enum p9_msg_t - 9P message types
112 * See Also: http://plan9.bell-labs.com/sys/man/5/INDEX.html
187 * enum p9_open_mode_t - 9P open modes
192 * @P9_OTRUNC: truncate file to zero-length before opening it
205 * See Also: http://plan9.bell-labs.com/magic/man2html/2/open
[all …]
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet_wol.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Broadcom GENET (Gigabit Ethernet) Wake-on-LAN support
5 * Copyright (c) 2014-2024 Broadcom
37 /* ethtool function - get WOL (Wake on LAN) settings, Only Magic Packet
43 struct device *kdev = &priv->pdev->dev; in bcmgenet_get_wol()
45 if (dev->phydev) in bcmgenet_get_wol()
46 phy_ethtool_get_wol(dev->phydev, wol); in bcmgenet_get_wol()
48 /* MAC is not wake-up capable, return what the PHY does */ in bcmgenet_get_wol()
53 wol->supported |= WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; in bcmgenet_get_wol()
54 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
[all …]
/linux/net/batman-adv/
H A Ddistributed-arp-table.c1 // SPDX-License-Identifier: GPL-2.0
7 #include "distributed-arp-table.h"
43 #include "hard-interface.h"
49 #include "soft-interface.h"
50 #include "translation-table.h"
89 __be32 magic; member
93 #define BATADV_DHCP_YIADDR_LEN sizeof(((struct batadv_dhcp_packet *)0)->yiaddr)
94 #define BATADV_DHCP_CHADDR_LEN sizeof(((struct batadv_dhcp_packet *)0)->chaddr)
99 * batadv_dat_start_timer() - initialise the DAT periodic worker
104 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work, in batadv_dat_start_timer()
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_protocol.h1 /* SPDX-License-Identifier: GPL-2.0-only */
33 P_SUPERSEDED = 0x18, /* Used in proto C, two-primaries conflict detection */
53 P_RS_CANCEL = 0x29, /* meta: Used to cancel RS_DATA_REQUEST packet by SyncSource */
74 P_ZEROES = 0x36, /* data sock: zero-out, WRITE_ZEROES */
83 P_INITIAL_META = 0xfff1, /* First Packet on the MetaSock */
84 P_INITIAL_DATA = 0xfff2, /* First Packet on the Socket */
93 /* This is the layout for a packet on the wire.
104 u32 magic; member
111 u16 magic; /* use DRBD_MAGIC_BIG here */ member
117 u32 magic; member
[all …]
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dxmit.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de>
29 switch (plcp->raw[0]) { in b43legacy_plcp_get_bitrate_idx_cck()
40 return -1; in b43legacy_plcp_get_bitrate_idx_cck()
49 switch (plcp->raw[0] & 0xF) { in b43legacy_plcp_get_bitrate_idx_ofdm()
68 return -1; in b43legacy_plcp_get_bitrate_idx_ofdm()
114 __le32 *data = &(plcp->data); in b43legacy_generate_plcp_hdr()
115 __u8 *raw = plcp->raw; in b43legacy_generate_plcp_hdr()
182 int use_encryption = !!info->control.hw_key; in generate_txhdr_fw3()
197 tx_rate = ieee80211_get_tx_rate(dev->wl->hw, info); in generate_txhdr_fw3()
[all …]
/linux/drivers/misc/sgi-xp/
H A Dxpnet.c7 * Copyright (C) 1999-2009 Silicon Graphics, Inc. All rights reserved.
16 * XPNET provides direct point-to-point and broadcast-like support
17 * for an ethernet-like device. The ethernet broadcast medium is
18 * replaced with a point-to-point message structure which passes
19 * pointers to a DMA-capable block that a remote partition should
42 * size is the number of bytes to transfer which includes the skb->len
48 u32 magic; /* Special number indicating this is xpnet */ member
64 (XPNET_MSG_SIZE - offsetof(struct xpnet_message, data))
83 ((XPNET_VERSION_MAJOR(_m->version) == XPNET_VERSION_MAJOR(XPNET_VERSION)) \
84 && (msg->magic == XPNET_MAGIC))
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx7d-cl-som-imx7.dts2 * Support for CompuLab CL-SOM-iMX7 System-on-Module
4 * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/
7 * This file is dual-licensed: you can use it either under the terms
13 /dts-v1/;
18 model = "CompuLab CL-SOM-iMX7";
19 compatible = "compulab,cl-som-imx7", "fsl,imx7d";
23 reg = <0x80000000 0x10000000>; /* 256 MB - minimal configuration */
26 reg_usb_otg1_vbus: regulator-vbus {
27 compatible = "regulator-fixed";
28 regulator-name = "usb_otg1_vbus";
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_misc_tcp_hdr_options.c1 // SPDX-License-Identifier: GPL-2.0
50 if (ret != -ENOSPC) in __check_active_hdr_in()
53 /* Test searching magic with regular kind */ in __check_active_hdr_in()
57 if (ret != -EINVAL) in __check_active_hdr_in()
70 hdr.exprm_opt.magic = 0; in __check_active_hdr_in()
73 if (ret != -EINVAL) in __check_active_hdr_in()
76 /* Test searching experimental option with 0 magic value */ in __check_active_hdr_in()
80 if (ret != -ENOMSG) in __check_active_hdr_in()
83 hdr.exprm_opt.magic = __bpf_htons(0xeB9F); in __check_active_hdr_in()
88 hdr.exprm_opt.magic != __bpf_htons(0xeB9F)) in __check_active_hdr_in()
[all …]
/linux/drivers/net/ethernet/wangxun/ngbe/
H A Dngbe_type.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. */
93 #define NGBE_PSR_WKUP_CTL_MAG BIT(1) /* Magic Packet Wakeup Enable */
97 #define NGBE_PSR_WKUP_CTL_ARP BIT(5) /* ARP Request Packet Wakeup Enable*/
119 #define NGBE_TDB_PB_SZ (20 * 1024) /* 160KB Packet Buffer */
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mm-emtop-baseboard.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "imx8mm-emtop-som.dtsi"
12 compatible = "ees,imx8mm-emtop-baseboard", "ees,imx8mm-emtop-som",
17 pinctrl-names = "default";
18 pinctrl-0 = <&pinctrl_fec1>;
19 phy-mode = "rgmii-id";
20 phy-handle = <&ethphy0>;
21 fsl,magic-packet;
25 #address-cells = <1>;
[all …]
/linux/include/net/
H A Dmctp.h1 /* SPDX-License-Identifier: GPL-2.0 */
18 /* MCTP packet definitions */
79 * by sk->net->keys_lock
94 * - individual key data (ie, the struct itself) is protected by key->lock;
97 * - the lookup fields: peer_addr, local_addr and tag are set before the
100 * - A ref to the key must be held (throuh key->refs) if a pointer to the
101 * key is to be accessed after key->lock is released.
103 * - a mctp_sk_key contains a reference to a struct sock; this is valid
107 * - these mctp_sk_keys appear on two lists:
108 * 1) the struct mctp_sock->keys list
[all …]

12345678910>>...17