/openbmc/qemu/net/ |
H A D | hub.c | 11 * See the COPYING.LIB file in the top-level directory. 22 #include "qemu/error-report.h" 26 * A hub broadcasts incoming packets to all its ports except the source port. 36 int id; member 40 int id; member 51 NetHubPort *port; in net_hub_receive() local 53 QLIST_FOREACH(port, &hub->ports, next) { in net_hub_receive() 54 if (port == source_port) { in net_hub_receive() 58 qemu_send_packet(&port->nc, buf, len); in net_hub_receive() 66 NetHubPort *port; in net_hub_receive_iov() local [all …]
|
/openbmc/linux/include/uapi/scsi/fc/ |
H A D | fc_ns.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * Maintained at www.Open-FCoE.org 14 * Fibre Channel Services - Name Service (dNS) 15 * From T11.org FC-GS-2 Rev 5.3 November 1998. 19 * Common-transport sub-type for Name Server. 29 FC_NS_GI_A = 0x0101, /* get identifiers - scope */ 30 FC_NS_GPN_ID = 0x0112, /* get port name by ID */ 31 FC_NS_GNN_ID = 0x0113, /* get node name by ID */ 32 FC_NS_GSPN_ID = 0x0118, /* get symbolic port name */ 33 FC_NS_GID_PN = 0x0121, /* get ID for port name */ [all …]
|
/openbmc/linux/drivers/cxl/core/ |
H A D | hdm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * instances per CXL port and per CXL endpoint. Define common helpers 21 static int add_hdm_decoder(struct cxl_port *port, struct cxl_decoder *cxld, in add_hdm_decoder() argument 28 put_device(&cxld->dev); in add_hdm_decoder() 29 dev_err(&port->dev, "Failed to add decoder\n"); in add_hdm_decoder() 33 rc = cxl_decoder_autoremove(&port->dev, cxld); in add_hdm_decoder() 37 dev_dbg(&cxld->dev, "Added to port %s\n", dev_name(&port->dev)); in add_hdm_decoder() 44 * single ported host-bridges need not publish a decoder capability when a 49 int devm_cxl_add_passthrough_decoder(struct cxl_port *port) in devm_cxl_add_passthrough_decoder() argument 55 struct cxl_hdm *cxlhdm = dev_get_drvdata(&port->dev); in devm_cxl_add_passthrough_decoder() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A D | isp2400_input_system_public.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 27 /*! Read the state of INPUT_SYSTEM[ID] 29 \param ID[in] INPUT_SYSTEM identifier 32 \return none, state = INPUT_SYSTEM[ID].state 35 const input_system_ID_t ID, 38 /*! Read the state of RECEIVER[ID] 40 \param ID[in] RECEIVER identifier 43 \return none, state = RECEIVER[ID].state 46 const rx_ID_t ID, 58 /*! Set compression parameters for cfg[cfg_ID] of RECEIVER[ID] [all …]
|
/openbmc/qemu/hw/char/ |
H A D | virtio-serial-bus.c | 15 * the COPYING file in the top-level directory. 17 * Contributions after 2012-01-13 are licensed under the terms of the 24 #include "qemu/main-loop.h" 26 #include "migration/qemu-file-types.h" 28 #include "qemu/error-report.h" 30 #include "hw/qdev-properties.h" 32 #include "hw/virtio/virtio-serial.h" 33 #include "hw/virtio/virtio-access.h" 39 static VirtIOSerialPort *find_port_by_id(VirtIOSerial *vser, uint32_t id) in find_port_by_id() argument 41 VirtIOSerialPort *port; in find_port_by_id() local [all …]
|
/openbmc/linux/drivers/nvme/target/ |
H A D | discovery.c | 1 // SPDX-License-Identifier: GPL-2.0 15 static void __nvmet_disc_changed(struct nvmet_port *port, in __nvmet_disc_changed() argument 18 if (ctrl->port != port) in __nvmet_disc_changed() 28 void nvmet_port_disc_changed(struct nvmet_port *port, in nvmet_port_disc_changed() argument 36 mutex_lock(&nvmet_disc_subsys->lock); in nvmet_port_disc_changed() 37 list_for_each_entry(ctrl, &nvmet_disc_subsys->ctrls, subsys_entry) { in nvmet_port_disc_changed() 38 if (subsys && !nvmet_host_allowed(subsys, ctrl->hostnqn)) in nvmet_port_disc_changed() 41 __nvmet_disc_changed(port, ctrl); in nvmet_port_disc_changed() 43 mutex_unlock(&nvmet_disc_subsys->lock); in nvmet_port_disc_changed() 46 if (port->tr_ops && port->tr_ops->discovery_chg) in nvmet_port_disc_changed() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_main.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved */ 50 int prestera_port_learning_set(struct prestera_port *port, bool learn) in prestera_port_learning_set() argument 52 return prestera_hw_port_learning_set(port, learn); in prestera_port_learning_set() 55 int prestera_port_uc_flood_set(struct prestera_port *port, bool flood) in prestera_port_uc_flood_set() argument 57 return prestera_hw_port_uc_flood_set(port, flood); in prestera_port_uc_flood_set() 60 int prestera_port_mc_flood_set(struct prestera_port *port, bool flood) in prestera_port_mc_flood_set() argument 62 return prestera_hw_port_mc_flood_set(port, flood); in prestera_port_mc_flood_set() 65 int prestera_port_br_locked_set(struct prestera_port *port, bool br_locked) in prestera_port_br_locked_set() argument 67 return prestera_hw_port_br_locked_set(port, br_locked); in prestera_port_br_locked_set() [all …]
|
/openbmc/linux/drivers/rapidio/ |
H A D | rio-scan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * - Added Port-Write/Error Management initialization and handling 14 * - Added Input- Output- enable functionality, to allow full communication 21 #include <linux/dma-mapping.h> 39 u16 start; /* logical minimal id */ 49 * rio_destid_alloc - Allocate next available destID for given network 52 * Returns next available device destination ID for the specified RIO network. 53 * Marks allocated ID as one in use. 59 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_alloc() 61 spin_lock(&idtab->lock); in rio_destid_alloc() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | marvell,pp2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/marvell,pp2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marcin Wojtas <mw@semihalf.com> 11 - Russell King <linux@armlinux.org> 21 - marvell,armada-375-pp2 22 - marvell,armada-7k-pp22 28 "#address-cells": 31 "#size-cells": [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_port.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */ 19 return nn->port; in nfp_port_from_netdev() 25 return repr->port; in nfp_port_from_netdev() 36 struct nfp_port *port; in nfp_port_get_port_parent_id() local 39 port = nfp_port_from_netdev(netdev); in nfp_port_get_port_parent_id() 40 if (!port) in nfp_port_get_port_parent_id() 41 return -EOPNOTSUPP; in nfp_port_get_port_parent_id() 43 ppid->id_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_port_get_port_parent_id() 44 memcpy(&ppid->id, serial, ppid->id_len); in nfp_port_get_port_parent_id() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mxs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 // Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. 25 #define PINCTRL_DOUT(p) ((is_imx23_gpio(p) ? 0x0500 : 0x0700) + (p->id) * 0x10) 26 #define PINCTRL_DIN(p) ((is_imx23_gpio(p) ? 0x0600 : 0x0900) + (p->id) * 0x10) 27 #define PINCTRL_DOE(p) ((is_imx23_gpio(p) ? 0x0700 : 0x0b00) + (p->id) * 0x10) 28 #define PINCTRL_PIN2IRQ(p) ((is_imx23_gpio(p) ? 0x0800 : 0x1000) + (p->id) * 0x10) 29 #define PINCTRL_IRQEN(p) ((is_imx23_gpio(p) ? 0x0900 : 0x1100) + (p->id) * 0x10) 30 #define PINCTRL_IRQLEV(p) ((is_imx23_gpio(p) ? 0x0a00 : 0x1200) + (p->id) * 0x10) 31 #define PINCTRL_IRQPOL(p) ((is_imx23_gpio(p) ? 0x0b00 : 0x1300) + (p->id) * 0x10) 32 #define PINCTRL_IRQSTAT(p) ((is_imx23_gpio(p) ? 0x0c00 : 0x1400) + (p->id) * 0x10) [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | meson_uart.c | 1 // SPDX-License-Identifier: GPL-2.0 89 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() argument 93 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() argument 98 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() argument 102 val = readl(port->membase + AML_UART_STATUS); in meson_uart_tx_empty() 107 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() argument 111 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_tx() 113 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_tx() 116 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() argument 120 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_rx() [all …]
|
H A D | uartlite.c | 1 // SPDX-License-Identifier: GPL-2.0 31 /* --------------------------------------------------------------------- 59 /* Static pointer to console port */ 113 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() argument 115 struct uartlite_data *pdata = port->private_data; in uart_in32() 117 return pdata->reg_ops->in(port->membase + offset); in uart_in32() 120 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() argument 122 struct uartlite_data *pdata = port->private_data; in uart_out32() 124 pdata->reg_ops->out(val, port->membase + offset); in uart_out32() 131 /* --------------------------------------------------------------------- [all …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | devlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 - 12 name: sb-pool-type 14 - 16 - 19 attribute-sets: 20 - 22 name-prefix: devlink-attr- 24 - [all …]
|
/openbmc/qemu/qapi/ |
H A D | rocker.json | 1 # -*- Mode: Python -*- 15 # @id: switch ID 17 # @ports: number of front-panel ports 22 'data': { 'name': 'str', 'id': 'uint64', 'ports': 'uint32' } } 25 # @query-rocker: 35 # .. qmp-example:: 37 # -> { "execute": "query-rocker", "arguments": { "name": "sw1" } } 38 # <- { "return": {"name": "sw1", "ports": 2, "id": 1327446905938}} number 40 { 'command': 'query-rocker', 47 # An enumeration of port duplex states. [all …]
|
/openbmc/linux/drivers/input/gameport/ |
H A D | ns558.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 1999-2001 Vojtech Pavlik 8 * NS558 based standard IBM game port driver for Linux 50 struct gameport *port; in ns558_isa_probe() local 56 if (!request_region(io, 1, "ns558-isa")) in ns558_isa_probe() 57 return -EBUSY; in ns558_isa_probe() 60 * We must not be able to write arbitrary values to the port. in ns558_isa_probe() 69 return -ENODEV; in ns558_isa_probe() 80 return -ENODEV; in ns558_isa_probe() 92 return -ENODEV; in ns558_isa_probe() [all …]
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | nbd-tls-iothread | 34 rm -f "$dst_image" 52 # Picks and returns an "unused" port, setting the global variable 53 # $port. 59 if ! (ss --version) >/dev/null 2>&1; then 63 # Start at a random port to make it less likely that two parallel 65 port=$(( 50000 + (RANDOM%15000) )) 66 while ss -ltn | grep -sqE ":$port\b"; do 67 ((port++)) 68 if [ $port -eq 65000 ]; then port=50000; fi 70 echo picked unused port [all …]
|
/openbmc/linux/net/devlink/ |
H A D | region.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 struct devlink_port *port; member 31 u32 id; member 39 list_for_each_entry(region, &devlink->region_list, list) in devlink_region_get_by_name() 40 if (!strcmp(region->ops->name, region_name)) in devlink_region_get_by_name() 47 devlink_port_region_get_by_name(struct devlink_port *port, in devlink_port_region_get_by_name() argument 52 list_for_each_entry(region, &port->region_list, list) in devlink_port_region_get_by_name() 53 if (!strcmp(region->ops->name, region_name)) in devlink_port_region_get_by_name() 60 devlink_region_snapshot_get_by_id(struct devlink_region *region, u32 id) in devlink_region_snapshot_get_by_id() argument 64 list_for_each_entry(snapshot, ®ion->snapshot_list, list) in devlink_region_snapshot_get_by_id() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | fsl,imx8qxp-pixel-link.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-link.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liu Ying <victor.liu@nxp.com> 27 - fsl,imx8qm-dc-pixel-link 28 - fsl,imx8qxp-dc-pixel-link 30 fsl,dc-id: 36 fsl,dc-stream-id: 47 port@0: [all …]
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | fsl_liodn.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright 2009-2011 Freescale Semiconductor, Inc. 13 u32 id[2]; member 18 #define SET_SRIO_LIODN_1(port, idA) \ argument 19 { .id = { idA }, .num_ids = 1, .portid = port, \ 20 .reg_offset[0] = offsetof(ccsr_gur_t, rio##port##liodnr) \ 24 #define SET_SRIO_LIODN_2(port, idA, idB) \ argument 25 { .id = { idA, idB }, .num_ids = 2, .portid = port, \ 26 .reg_offset[0] = offsetof(ccsr_gur_t, rio##port##liodnr) \ 28 .reg_offset[1] = offsetof(ccsr_gur_t, rio##port##maintliodnr) \ [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | mvpp2.c | 8 * U-Boot version: 9 * Copyright (C) 2016-2017 Stefan Roese <sr@denx.de> 18 #include <dm/device-internal.h> 33 #include <asm-generic/gpio.h> 68 #define MVPP2_RX_DATA_FIFO_SIZE_REG(port) (0x00 + 4 * (port)) argument 69 #define MVPP2_RX_ATTR_FIFO_SIZE_REG(port) (0x20 + 4 * (port)) argument 74 #define MVPP2_RX_CTRL_REG(port) (0x140 + 4 * (port)) argument 95 #define MVPP2_PRS_PORT_LU_MASK(port) (0xff << ((port) * 4)) argument 96 #define MVPP2_PRS_PORT_LU_VAL(port, val) ((val) << ((port) * 4)) argument 97 #define MVPP2_PRS_INIT_OFFS_REG(port) (0x1004 + ((port) & 4)) argument [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | netdev-socket.c | 6 * SPDX-License-Identifier: GPL-2.0-or-later 12 #include "../unit/socket-helpers.h" 16 #include "qapi/qobject-input-visitor.h" 17 #include "qapi/qapi-visit-sockets.h" 51 return -1; in inet_get_free_port_socket_ipv4() 56 return -1; in inet_get_free_port_socket_ipv4() 72 return -1; in inet_get_free_port_socket_ipv6() 77 return -1; in inet_get_free_port_socket_ipv6() 83 static int inet_get_free_port_multiple(int nb, int *port, bool ipv6) in inet_get_free_port_multiple() argument 93 port[i] = ipv6 ? inet_get_free_port_socket_ipv6(sock[i]) : in inet_get_free_port_multiple() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 22 int id; member 32 int id; member 37 struct mvpp2_port *port; member 54 /* Entries for per-port flows debug info */ 60 struct mvpp2_dbgfs_flow_tbl_entry *entry = s->private; in mvpp2_dbgfs_flow_flt_hits_show() 62 u32 hits = mvpp2_cls_flow_hits(entry->priv, entry->id); in mvpp2_dbgfs_flow_flt_hits_show() 73 struct mvpp2_dbgfs_flow_entry *entry = s->private; in mvpp2_dbgfs_flow_dec_hits_show() 75 u32 hits = mvpp2_cls_lookup_hits(entry->priv, entry->flow); in mvpp2_dbgfs_flow_dec_hits_show() 86 struct mvpp2_dbgfs_flow_entry *entry = s->private; in mvpp2_dbgfs_flow_type_show() [all …]
|
H A D | mvpp2_main.c | 1 // SPDX-License-Identifier: GPL-2.0 61 static void mvpp2_acpi_start(struct mvpp2_port *port); 76 writel(data, priv->swth_base[0] + offset); in mvpp2_write() 81 return readl(priv->swth_base[0] + offset); in mvpp2_read() 86 return readl_relaxed(priv->swth_base[0] + offset); in mvpp2_read_relaxed() 91 return cpu % priv->nthreads; in mvpp2_cpu_to_thread() 96 writel(data, priv->cm3_base + offset); in mvpp2_cm3_write() 101 return readl(priv->cm3_base + offset); in mvpp2_cm3_read() 124 * - per-thread registers, where each thread has its own copy of the 140 * - global registers that must be accessed through a specific thread [all …]
|
/openbmc/linux/drivers/net/wwan/ |
H A D | wwan_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 static DEFINE_IDA(minors); /* minors for WWAN port chardevs */ 35 /* WWAN port flags */ 39 * struct wwan_device - The structure that defines a WWAN device 41 * @id: WWAN device unique ID. 43 * @port_id: Current available port ID to pick. 49 unsigned int id; member 60 * struct wwan_port - The structure that defines a WWAN port 61 * @type: Port type 62 * @start_count: Port start counter [all …]
|