/linux/drivers/s390/net/ |
H A D | ctcm_mpc.c | 1 // SPDX-License-Identifier: GPL-2.0 80 .xid2_buf_len = (MPC_BUFSIZE_DEFAULT - 35), 126 /*-------------------------------------------------------------------* 129 *--------------------------------------------------------------------*/ 170 rm--; in ctcmpc_dumpit() 177 ctcm_pr_debug(" --- %s ---\n", in ctcmpc_dumpit() 192 for ( ; rm > 0; rm--, sw++) { in ctcmpc_dumpit() 203 ctcm_pr_debug(" --- %s ---\n", tdup); in ctcmpc_dumpit() 211 ctcm_pr_debug(" --- %s ---\n", tdup); in ctcmpc_dumpit() 229 * offset Offset relative to skb-data, where to start the dump. [all …]
|
H A D | ctcm_fsms.c | 1 // SPDX-License-Identifier: GPL-2.0 126 [CH_XID7_PENDING1] = "Active XID7 P1 Exchange ", 128 [CH_XID7_PENDING3] = "Active XID7 P2 Exchange ", 129 [CH_XID7_PENDING4] = "XID7 Complete - Pending READY ", 135 * ----- static ctcm actions for channel statemachine ----- 158 * ----- static ctcmpc actions for ctcmpc channel statemachine ----- 195 CTCM_FUNTAIL, ch->id, msg, rc); in ctcm_ccw_check_rc() 197 case -EBUSY: in ctcm_ccw_check_rc() 199 ch->id); in ctcm_ccw_check_rc() 200 fsm_event(ch->fsm, CTC_EVENT_IO_EBUSY, ch); in ctcm_ccw_check_rc() [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6ul-phytec-segin-peb-wlbt-05.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 11 reg_wl_en: regulator-wl-en { 12 compatible = "regulator-fixed"; 13 regulator-name = "wlan_en"; 14 regulator-min-microvolt = <3300000>; 15 regulator-max-microvolt = <3300000>; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_wl>; [all …]
|
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 30 /* Caller must hold &ocelot->mact_lock */ 36 /* Caller must hold &ocelot->mact_lock */ 48 /* Caller must hold &ocelot->mact_lock */ 90 if (mc_ports & BIT(ocelot->num_phys_ports)) in __ocelot_mact_learn() 109 mutex_lock(&ocelot->mact_lock); in ocelot_mact_learn() 111 mutex_unlock(&ocelot->mact_lock); in ocelot_mact_learn() 122 mutex_lock(&ocelot->mact_lock); in ocelot_mact_forget() 133 mutex_unlock(&ocelot->mact_lock); in ocelot_mact_forget() 145 mutex_lock(&ocelot->mact_lock); in ocelot_mact_lookup() [all …]
|
/linux/drivers/mfd/ |
H A D | twl4030-power.c | 9 * Peter De Schrijver <peter.de-schrijver@nokia.com> 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 33 #include <asm/mach-types.h> 57 #define PHY_TO_OFF_PM_MASTER(p) (p - 0x36) 58 #define PHY_TO_OFF_PM_RECEIVER(p) (p - 0x5b) 60 /* resource - hfclk */ 222 int err = -EINVAL; in twl4030_write_script() 224 for (; len; len--, address++, script++) { in twl4030_write_script() 227 script->pmb_message, in twl4030_write_script() 228 script->delay, in twl4030_write_script() [all …]
|
/linux/drivers/net/ethernet/freescale/ |
H A D | gianfar.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * This driver is designed for the non-CPM ethernet controllers 13 * Copyright 2002-2009, 2011-2013 Freescale Semiconductor, Inc. 20 * B-V +1.62 25 * is therefore conveyed through an OF-style device tree. 36 * interrupt coalescing is active, then the interrupt may not 45 * pre-allocated skb, and so after the skb is passed up to the 93 #include <linux/dma-mapping.h> 115 bdp->bufPtr = cpu_to_be32(buf); in gfar_init_rxbdp() 118 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp() [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | eswin,eic7700-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/eswin,eic7700-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Yulin Lu <luyulin@eswincomputing.com> 13 - $ref: pinctrl.yaml# 19 and various pin configuration parameters, such as input-enable, pull-up, etc. 23 const: eswin,eic7700-pinctrl 28 vrgmii-supply: 32 depending on the board-level voltage configuration required by the RGMII interface. [all …]
|
H A D | brcm,bcm11351-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/brcm,bcm11351-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Florian Fainelli <florian.fainelli@broadcom.com> 11 - Ray Jui <rjui@broadcom.com> 12 - Scott Branden <sbranden@broadcom.com> 15 - $ref: pinctrl.yaml# 19 const: brcm,bcm11351-pinctrl 25 '-pins$': [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | ethtool.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 5 protocol: genetlink-legacy 8 uapi-header: linux/ethtool_netlink_generated.h 10 c-family-name: ethtool-genl-name 11 c-version-name: ethtool-genl-version 14 - 15 name: udp-tunnel-type 16 enum-name: 18 entries: [vxlan, geneve, vxlan-gpe] [all …]
|
/linux/drivers/pinctrl/intel/ |
H A D | pinctrl-intel.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 26 * struct intel_pingroup - Description about group of pins 27 * @grp: Generic data of the pin group (name and pins) 32 struct pingroup grp; member 38 * struct intel_function - Description about a function 48 * struct intel_padgroup - Hardware pad group information 67 * enum - Special treatment for GPIO base in pad group 74 INTEL_GPIO_BASE_ZERO = -2, 75 INTEL_GPIO_BASE_NOMAP = -1, 80 * struct intel_community - Intel pin community description [all …]
|
H A D | pinctrl-baytrail.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013, Intel Corporation 28 #include <linux/pinctrl/pinconf-generic.h> 30 #include "pinctrl-intel.h" 65 #define BYT_INPUT_EN BIT(2) /* 0: input enabled (active low)*/ 66 #define BYT_OUTPUT_EN BIT(1) /* 0: output enabled (active low)*/ 570 offset -= comm->pin_base; in byt_gpio_reg() 579 reg_offset = comm->pad_map[offset] * 16; in byt_gpio_reg() 583 return comm->pad_regs + reg_offset + reg; in byt_gpio_reg() 600 for (i = 0; i < group.grp.npins; i++) { in byt_set_group_simple_mux() [all …]
|
/linux/drivers/rtc/ |
H A D | sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include "rtc-core.h" 19 * ideally UTC. However, PCs that also boot to MS-Windows normally use 25 name_show(struct device *dev, struct device_attribute *attr, char *buf) in name_show() argument 27 return sysfs_emit(buf, "%s %s\n", dev_driver_string(dev->parent), in name_show() 28 dev_name(dev->parent)); in name_show() 33 date_show(struct device *dev, struct device_attribute *attr, char *buf) in date_show() argument 38 retval = rtc_read_time(to_rtc_device(dev), &tm); in date_show() 47 time_show(struct device *dev, struct device_attribute *attr, char *buf) in time_show() argument 52 retval = rtc_read_time(to_rtc_device(dev), &tm); in time_show() [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 declare -A NETIFS=( 42 # Constants for netdevice bring-up: 46 # Like INTERFACE_TIMEOUT, but default for ad-hoc waiting in testing scripts. 83 # Whether the machine is "slow" -- i.e. might be incapable of running tests 85 # e.g. a low-power board. 89 # Find netifs by test-specified driver name 93 local dev=$1; shift 94 local driver_path="/sys/class/net/$dev/device/driver" 96 if [[ -L $driver_path ]]; then [all …]
|
/linux/include/linux/ |
H A D | device.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * device.h - generic, centralized driver model 5 * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> 6 * Copyright (c) 2004-2009 Greg Kroah-Hartman <gregkh@suse.de> 7 * Copyright (c) 2008-2009 Novell Inc. 9 * See Documentation/driver-api/driver-model/ for more information. 51 * struct subsys_interface - interfaces to device functions 67 int (*add_dev)(struct device *dev, struct subsys_interface *sif); 68 void (*remove_dev)(struct device *dev, struct subsys_interface *sif); 83 * This identifies the device type and carries type-specific [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_stats.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 49 return !priv->profile->stats_grps_num ? 0 : in stats_grps_num() 50 priv->profile->stats_grps_num(priv); in stats_grps_num() 55 mlx5e_stats_grp_t *stats_grps = priv->profile->stats_grps; in mlx5e_stats_total_num() 61 total += stats_grps[i]->get_num_stats(priv); in mlx5e_stats_total_num() 68 mlx5e_stats_grp_t *stats_grps = priv->profile->stats_grps; in mlx5e_stats_update_ndo_stats() 72 for (i = num_stats_grps - 1; i >= 0; i--) in mlx5e_stats_update_ndo_stats() 73 if (stats_grps[i]->update_stats && in mlx5e_stats_update_ndo_stats() 74 stats_grps[i]->update_stats_mask & MLX5E_NDO_UPDATE_STATS) in mlx5e_stats_update_ndo_stats() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | tid_rdma.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * Copyright(c) 2018 - 2020 Intel Corporation. 18 * This is an end-to-end protocol at the hfi1 level between two nodes that 24 * -- The total data length should be greater than 256K; 25 * -- The total data length should be a multiple of 4K page size; 26 * -- Each local scatter-gather entry should be 4K page aligned; 27 * -- Each local scatter-gather entry should be a multiple of 4K page size; 56 #define HFI1_KERNEL_MAX_JKEY (2 * HFI1_ADMIN_JKEY_RANGE - 1) 97 * N - the context Number 98 * K - the Kdeth_qp [all …]
|
/linux/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * idpf_init_vector_stack - Fill the MSIX vector stack with vector index 22 mutex_lock(&adapter->vector_lock); in idpf_init_vector_stack() 23 min_vec = adapter->num_msix_entries - adapter->num_avail_msix; in idpf_init_vector_stack() 24 stack = &adapter->vector_stack; in idpf_init_vector_stack() 25 stack->size = adapter->num_msix_entries; in idpf_init_vector_stack() 27 * distribute the unused vectors on-demand basis in idpf_init_vector_stack() 29 stack->base = min_vec; in idpf_init_vector_stack() 30 stack->top = min_vec; in idpf_init_vector_stack() 32 stack->vec_idx = kcalloc(stack->size, sizeof(u16), GFP_KERNEL); in idpf_init_vector_stack() [all …]
|
/linux/include/linux/mfd/ |
H A D | twl.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * twl4030.h - header for TWL4030 PM and audio CODEC device 5 * Copyright (C) 2005-2006 Texas Instruments, Inc. 91 * Offset from TWL6030_IRQ_BASE / pdata->irq_base 169 * Read and write several 8-bit registers at once. 175 * Read and write single 8-bi 223 twl6030_mmc_card_detect(struct device * dev,int slot) twl6030_mmc_card_detect() argument 553 MSG_BROADCAST(devgrp,grp,type,type2,state) global() argument [all...] |
/linux/fs/xfs/libxfs/ |
H A D | xfs_log_format.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. 13 * On-disk Log Format definitions. 15 * This file contains all the on-disk format definitions used within the log. It 44 BTOBB(1 << (xfs_has_logv2(log->l_mp) ? \ 47 BTOBB(XLOG_MAX_ICLOGS << (xfs_has_logv2(log->l_mp) ? \ 54 /* this is used in a spot where we might otherwise double-endian-flip */ 79 * The unmount record used to have a string "Unmount filesystem--" in the 132 * the remainder of the current active in-core log, it is split up into 170 __be32 h_len; /* len in bytes; should be 64-bit aligned: 4 */ [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_cpt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 42 (_rsp)->busy_sts_##etype = busy_sts; \ 43 (_rsp)->free_sts_##etype = free_sts; \ 73 dev_warn_once(rvu->dev, "flt_vecs:%d exceeds the max vectors:%d\n", in cpt_10k_flt_nvecs_get() 84 struct rvu *rvu = block->rvu; in cpt_af_flt_intr_handler() 85 int blkaddr = block->addr; in cpt_af_flt_intr_handler() 88 u8 grp; in cpt_af_flt_intr_handler() local 91 dev_err_ratelimited(rvu->dev, "Received CPTAF FLT%d irq : 0x%llx", vec, reg); in cpt_af_flt_intr_handler() 93 i = -1; in cpt_af_flt_intr_handler() 106 grp = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_CTL2(eng)) & 0xFF; in cpt_af_flt_intr_handler() [all …]
|
/linux/net/ipv6/ |
H A D | ip6mr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * (c) 2004 Mickael Hoerdt, <hoerdt@clarinet.u-strasbg.fr> 8 * (c) 2004 Jean-Philippe Andriot, <jean-philippe.andriot@6WIND.com> 11 * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> 69 return rcu_dereference(vif->dev); in vif_dev_read() 91 struct net_device *dev, struct sk_buff *skb, 107 list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list, \ 109 list_empty(&net->ipv6.mr6_tables)) 117 ret = list_entry_rcu(net->ipv6.mr6_tables.next, in ip6mr_mr_table_iter() 120 ret = list_entry_rcu(mrt->list.next, in ip6mr_mr_table_iter() [all …]
|
/linux/drivers/scsi/elx/efct/ |
H A D | efct_driver.c | 1 // SPDX-License-Identifier: GPL-2.0 36 /* driver-wide init for target-server */ in efct_device_init() 70 INIT_LIST_HEAD(&efct->list_entry); in efct_device_alloc() 71 list_add_tail(&efct->list_entry, &efct_devices); in efct_device_alloc() 81 for (i = 0; i < efct->n_msix_vec; i++) { in efct_teardown_msix() 82 free_irq(pci_irq_vector(efct->pci, i), in efct_teardown_msix() 83 &efct->intr_context[i]); in efct_teardown_msix() 86 pci_free_irq_vectors(efct->pci); in efct_teardown_msix() 98 return -ENOMEM; in efct_efclib_config() 100 efct->efcport = efc; in efct_efclib_config() [all …]
|
/linux/net/ipv4/ |
H A D | ipmr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 85 return rcu_dereference(vif->dev); in vif_dev_read() 107 struct net_device *dev, struct sk_buff *skb, 119 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list, \ 121 list_empty(&net->ipv4.mr_tables)) 129 ret = list_entry_rcu(net->ipv4.mr_tables.next, in ipmr_mr_table_iter() 132 ret = list_entry_rcu(mrt->list.next, in ipmr_mr_table_iter() 135 if (&ret->list == &net->ipv4.mr_tables) in ipmr_mr_table_iter() 145 if (mrt->id == id) in __ipmr_get_table() 174 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup() [all …]
|
/linux/drivers/base/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/core.c - core driver model code (device registration, etc) 5 * Copyright (c) 2002-3 Patrick Mochel 6 * Copyright (c) 2002-3 Open Source Development Labs 7 * Copyright (c) 2006 Greg Kroah-Hartman <gregkh@suse.de> 16 #include <linux/dma-map-ops.h> /* for dma_default_coherent */ 45 static void __fw_devlink_link_to_consumers(struct device *dev); 51 * __fwnode_link_add - Create a link between two fwnode_handles. 73 list_for_each_entry(link, &sup->consumers, s_hook) in __fwnode_link_add() 74 if (link->consumer == con) { in __fwnode_link_add() [all …]
|
/linux/drivers/pinctrl/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2012 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 62 * pinctrl_provide_dummies() - indicate if pinctrl provides dummy state support 77 return pctldev->desc->name; in pinctrl_dev_get_name() 83 return dev_name(pctldev->dev); in pinctrl_dev_get_devname() 89 return pctldev->driver_data; in pinctrl_dev_get_drvdata() 94 * get_pinctrl_dev_from_devname() - look up pin controller device 110 if (!strcmp(dev_name(pctldev->dev), devname)) { in get_pinctrl_dev_from_devname() 129 if (device_match_of_node(pctldev->dev, np)) { in get_pinctrl_dev_from_of_node() [all …]
|