| /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 …]
|
| /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 …]
|
| H A D | rio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Copyright 2009 - 2013 Integrated Device Technology, Inc. 30 * struct rio_pwrite - RIO portwrite event 52 "Destination ID assignment to local RapidIO controllers"); 65 * rio_local_get_device_id - Get the base/extended device id for a port 66 * @port: RIO master port from which to get the deviceid 68 * Reads the base/extended device id from the local device 69 * implementing the master port. Returns the 8/16-bit device 70 * id. 72 u16 rio_local_get_device_id(struct rio_mport *port) in rio_local_get_device_id() argument [all …]
|
| /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 …]
|
| /linux/drivers/net/ethernet/airoha/ |
| H A D | airoha_eth.c | 1 // SPDX-License-Identifier: GPL-2.0-only 41 struct airoha_qdma *qdma = irq_bank->qdma; in airoha_qdma_set_irqmask() 42 int bank = irq_bank - &qdma->irq_banks[0]; in airoha_qdma_set_irqmask() 45 if (WARN_ON_ONCE(index >= ARRAY_SIZE(irq_bank->irqmask))) in airoha_qdma_set_irqmask() 48 spin_lock_irqsave(&irq_bank->irq_lock, flags); in airoha_qdma_set_irqmask() 50 irq_bank->irqmask[index] &= ~clear; in airoha_qdma_set_irqmask() 51 irq_bank->irqmask[index] |= set; in airoha_qdma_set_irqmask() 53 irq_bank->irqmask[index]); in airoha_qdma_set_irqmask() 59 spin_unlock_irqrestore(&irq_bank->irq_lock, flags); in airoha_qdma_set_irqmask() 74 static void airoha_set_macaddr(struct airoha_gdm_port *port, const u8 *addr) in airoha_set_macaddr() argument [all …]
|
| /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 …]
|
| H A D | nfp_app.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */ 43 return nn->app; in nfp_app_from_netdev() 49 return repr->app; in nfp_app_from_netdev() 59 if (!app || !app->pf->mip) in nfp_app_mip_name() 61 return nfp_mip_name(app->pf->mip); in nfp_app_mip_name() 68 if (!app || !app->type->ndo_init) in nfp_app_ndo_init() 70 return app->type->ndo_init(app, netdev); in nfp_app_ndo_init() 77 if (app && app->type->ndo_uninit) in nfp_app_ndo_uninit() 78 app->type->ndo_uninit(app, netdev); in nfp_app_ndo_uninit() [all …]
|
| /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 36 /* --------------------------------------------------------------------- 64 /* Static pointer to console port */ 70 * struct uartlite_data - Driver private data 118 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() argument 120 struct uartlite_data *pdata = port->private_data; in uart_in32() 122 return pdata->reg_ops->in(port->membase + offset); in uart_in32() 125 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() argument 127 struct uartlite_data *pdata = port->private_data; in uart_out32() 129 pdata->reg_ops->out(val, port->membase + offset); in uart_out32() [all …]
|
| /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 …]
|
| /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_cls.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 143 /* Number of per-port dedicated entries in the C2 TCAM */ 146 /* Each port has one range per flow type + one entry controlling the global RSS 151 #define MVPP22_CLS_C2_RSS_ENTRY(p) (MVPP22_CLS_C2_PORT_FIRST((p) + 1) - 1) 157 /* Packet flow ID */ 176 MVPP2_FL_IP4_UNTAG, /* non-TCP, non-UDP, same for below */ 189 /* rule->loc is used as a lu-type for the entries 0 - 62. */ 193 #define MVPP2_N_FLOWS (MVPP2_FL_LAST - MVPP2_FL_START) 196 /* The L2-L4 traffic flow type */ 199 /* The first id in the flow table for this flow */ [all …]
|
| /linux/drivers/net/wwan/ |
| H A D | wwan_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 static DEFINE_IDA(minors); /* minors for WWAN port chardevs */ 38 /* WWAN port flags */ 42 * struct wwan_device - The structure that defines a WWAN device 44 * @id: WWAN device unique ID. 46 * @port_id: Current available port ID to pick. 52 unsigned int id; member 63 * struct wwan_port - The structure that defines a WWAN port 64 * @type: Port type 65 * @start_count: Port start counter [all …]
|
| /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 …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-gpio-mm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GPIO driver for the Diamond Systems GPIO-MM 6 * This driver supports the following Diamond Systems devices: GPIO-MM and 7 * GPIO-MM-12. 19 #include "gpio-i8255.h" 29 MODULE_PARM_DESC(base, "Diamond Systems GPIO-MM base addresses"); 52 "Port 1A0", "Port 1A1", "Port 1A2", "Port 1A3", "Port 1A4", "Port 1A5", 53 "Port 1A6", "Port 1A7", "Port 1B0", "Port 1B1", "Port 1B2", "Port 1B3", 54 "Port 1B4", "Port 1B5", "Port 1B6", "Port 1B7", "Port 1C0", "Port 1C1", 55 "Port 1C2", "Port 1C3", "Port 1C4", "Port 1C5", "Port 1C6", "Port 1C7", [all …]
|
| /linux/drivers/parport/ |
| H A D | probe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Parallel port device probing code 5 * Authors: Carsten Gross, carsten@sol.wohnheim.uni-ulm.de 37 static void pretty_print(struct parport *port, int device) in pretty_print() argument 39 struct parport_device_info *info = &port->probe_info[device + 1]; in pretty_print() 41 pr_info("%s", port->name); in pretty_print() 46 pr_cont(": %s", classes[info->class].descr); in pretty_print() 47 if (info->class) in pretty_print() 48 pr_cont(", %s %s", info->mfr, info->model); in pretty_print() 53 static void parse_data(struct parport *port, int device, char *str) in parse_data() argument [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | userspace_pm.sh | 2 # SPDX-License-Identifier: GPL-2.0 58 MPTCP_LIB_TEST_FORMAT="%02u %-68s" 88 if [ ${#} -gt 0 ] 112 rm -rf $file $client_evts $server_evts 124 if [ -f /proc/sys/net/mptcp/path_manager ]; then 125 ip netns exec "$ns1" sysctl -q net.mptcp.path_manager=userspace 126 pm_type="$(ip netns exec "$ns1" sysctl -n net.mptcp.pm_type)" 133 ip netns exec "$ns1" sysctl -q net.mptcp.path_manager=error 2>/dev/null 134 pm_type="$(ip netns exec "$ns1" sysctl -n net.mptcp.pm_type)" 141 ip netns exec "$ns1" sysctl -q net.mptcp.pm_type=0 [all …]
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | q6afe.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 24 /* Clock ID for Primary I2S IBIT */ 26 /* Clock ID for Primary I2S EBIT */ 28 /* Clock ID for Secondary I2S IBIT */ 30 /* Clock ID for Secondary I2S EBIT */ 32 /* Clock ID for Tertiary I2S IBIT */ 34 /* Clock ID for Tertiary I2S EBIT */ 36 /* Clock ID for Quartnery I2S IBIT */ 38 /* Clock ID for Quartnery I2S EBIT */ 40 /* Clock ID for Speaker I2S IBIT */ [all …]
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | am65-cpsw-nuss.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 32 #include <linux/dma/ti-cppi5.h> 33 #include <linux/dma/k3-udma-glue.h> 40 #include "am65-cpsw-nuss.h" 41 #include "am65-cpsw-switchdev.h" 42 #include "k3-cppi-desc-pool.h" 43 #include "am65-cpts.h" 132 /* The PTP event messages - Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. */ 183 writel(mac_hi, slave->port_base + AM65_CPSW_PORTN_REG_SA_H); in am65_cpsw_port_set_sl_mac() [all …]
|
| /linux/drivers/net/pse-pd/ |
| H A D | tps23881.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <linux/pse-pd/pse.h> 80 struct tps23881_port_desc port[TPS23881_MAX_CHANS]; member 94 * @param chan: The channel number (0-7). 114 * @param chan: The channel number (0-7). 138 tps23881_pi_set_pw_pol_limit(struct tps23881_priv *priv, int id, u8 pw_pol, in tps23881_pi_set_pw_pol_limit() argument 141 struct i2c_client *client = priv->client; in tps23881_pi_set_pw_pol_limit() 146 chan = priv->port[id].chan[0]; in tps23881_pi_set_pw_pol_limit() 165 static int tps23881_pi_enable_manual_pol(struct tps23881_priv *priv, int id) in tps23881_pi_enable_manual_pol() argument 167 struct i2c_client *client = priv->client; in tps23881_pi_enable_manual_pol() [all …]
|
| /linux/net/netfilter/ipset/ |
| H A D | ip_set_bitmap_port.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@netfilter.org> */ 4 /* Kernel module implementing an IP set type: the bitmap:port type */ 26 IP_SET_MODULE_DESC("bitmap:port", IPSET_TYPE_REV_MIN, IPSET_TYPE_REV_MAX); 27 MODULE_ALIAS("ip_set_bitmap:port"); 46 u16 id; member 50 port_to_id(const struct bitmap_port *m, u16 port) in port_to_id() argument 52 return port - m->first_port; in port_to_id() 61 return !!test_bit(e->id, map->members); in bitmap_port_do_test() 65 bitmap_port_gc_test(u16 id, const struct bitmap_port *map, size_t dsize) in bitmap_port_gc_test() argument [all …]
|
| /linux/drivers/scsi/libsas/ |
| H A D | sas_port.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Serial Attached SCSI (SAS) Port class 15 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument 17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() 19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member() 20 SAS_ADDR_SIZE) != 0 || (sas_ha->strict_wide_ports && in phy_is_wideport_member() 21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member() 29 struct asd_sas_port *port = phy->port; in sas_resume_port() local 30 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() 31 struct sas_internal *si = to_sas_internal(sas_ha->shost->transportt); in sas_resume_port() [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | main.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 23 static u32 nfp_abm_portid(enum nfp_repr_type rtype, unsigned int id) in nfp_abm_portid() argument 26 FIELD_PREP(NFP_ABM_PORTID_ID, id); in nfp_abm_portid() 34 struct nfp_port *port; in nfp_abm_setup_tc() local 36 port = nfp_port_from_netdev(netdev); in nfp_abm_setup_tc() 37 if (!port || port->type != NFP_PORT_PF_PORT) in nfp_abm_setup_tc() 38 return -EOPNOTSUPP; in nfp_abm_setup_tc() 42 return nfp_abm_setup_root(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc() 44 return nfp_abm_setup_tc_mq(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc() 46 return nfp_abm_setup_tc_red(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc() [all …]
|
| /linux/drivers/usb/serial/ |
| H A D | ftdi_sio_ids.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Philipp Gühring - pg@futureware.at - added the Device ID of the USB relais 17 #define FTDI_VID 0x0403 /* Vendor Id */ 25 #define FTDI_4232H_PID 0x6011 /* Quad channel hi-speed device */ 26 #define FTDI_232H_PID 0x6014 /* Single channel hi-speed device */ 27 #define FTDI_FTX_PID 0x6015 /* FT-X series (FT201X, FT230X, FT231X, etc) */ 28 #define FTDI_FT2233HP_PID 0x6040 /* Dual channel hi-speed device with PD */ 29 #define FTDI_FT4233HP_PID 0x6041 /* Quad channel hi-speed device with PD */ 30 #define FTDI_FT2232HP_PID 0x6042 /* Dual channel hi-speed device with PD */ 31 #define FTDI_FT4232HP_PID 0x6043 /* Quad channel hi-speed device with PD */ [all …]
|
| /linux/sound/isa/sb/ |
| H A D | sb16.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 41 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 42 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable 45 static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 47 static long port[SNDRV_CARD variable 227 snd_card_sb16_pnp(int dev,struct snd_card_sb16 * acard,struct pnp_card_link * card,const struct pnp_card_device_id * id) snd_card_sb16_pnp() argument [all...] |