/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 24 # | +-----------------------------------------------------------------------+ | 25 # +---------------------------------------------------------------------------+ 139 local grp=$1; shift 147 bridge mdb add dev br0 port br0 grp $grp $state vid 10 148 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | bridge_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 24 # | +-----------------------------------------------------------------------+ | 25 # +---------------------------------------------------------------------------+ 139 local grp=$1; shift 147 bridge mdb add dev br0 port br0 grp $grp $state vid 10 148 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null [all …]
|
/openbmc/linux/net/tipc/ |
H A D | group.c | 102 static void tipc_group_proto_xmit(struct tipc_group *grp, struct tipc_member *m, 108 if (list_empty(&m->small_win)) in tipc_group_open() 110 list_del_init(&m->small_win); in tipc_group_open() 111 *m->group->open = true; in tipc_group_open() 115 static void tipc_group_decr_active(struct tipc_group *grp, in tipc_group_decr_active() argument 118 if (m->state == MBR_ACTIVE || m->state == MBR_RECLAIMING || in tipc_group_decr_active() 119 m->state == MBR_REMITTED) in tipc_group_decr_active() 120 grp->active_cnt--; in tipc_group_decr_active() 123 static int tipc_group_rcvbuf_limit(struct tipc_group *grp) in tipc_group_rcvbuf_limit() argument 126 int mcnt = grp->member_cnt + 1; in tipc_group_rcvbuf_limit() [all …]
|
/openbmc/linux/drivers/s390/net/ |
H A D | ctcm_mpc.c | 1 // SPDX-License-Identifier: GPL-2.0 79 .xid2_buf_len = (MPC_BUFSIZE_DEFAULT - 35), 125 /*-------------------------------------------------------------------* 128 *--------------------------------------------------------------------*/ 169 rm--; in ctcmpc_dumpit() 176 ctcm_pr_debug(" --- %s ---\n", in ctcmpc_dumpit() 191 for ( ; rm > 0; rm--, sw++) { in ctcmpc_dumpit() 202 ctcm_pr_debug(" --- %s ---\n", tdup); in ctcmpc_dumpit() 210 ctcm_pr_debug(" --- %s ---\n", tdup); in ctcmpc_dumpit() 228 * offset Offset relative to skb-data, where to start the dump. [all …]
|
/openbmc/linux/fs/erofs/ |
H A D | utils.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 static bool erofs_workgroup_get(struct erofs_workgroup *grp) in erofs_workgroup_get() argument 37 if (lockref_get_not_zero(&grp->lockref)) in erofs_workgroup_get() 40 spin_lock(&grp->lockref.lock); in erofs_workgroup_get() 41 if (__lockref_is_dead(&grp->lockref)) { in erofs_workgroup_get() 42 spin_unlock(&grp->lockref.lock); in erofs_workgroup_get() 46 if (!grp->lockref.count++) in erofs_workgroup_get() 48 spin_unlock(&grp->lockref.lock); in erofs_workgroup_get() 56 struct erofs_workgroup *grp; in erofs_find_workgroup() local 60 grp = xa_load(&sbi->managed_pslots, index); in erofs_find_workgroup() [all …]
|
/openbmc/linux/fs/sysfs/ |
H A D | group.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/sysfs/group.c - Operations for adding/removing multiple files at once. 7 * Copyright (c) 2013 Greg Kroah-Hartman 21 const struct attribute_group *grp) in remove_files() argument 26 if (grp->attrs) in remove_files() 27 for (attr = grp->attrs; *attr; attr++) in remove_files() 28 kernfs_remove_by_name(parent, (*attr)->name); in remove_files() 29 if (grp->bin_attrs) in remove_files() 30 for (bin_attr = grp->bin_attrs; *bin_attr; bin_attr++) in remove_files() 31 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); in remove_files() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | test_vxlan_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 12 # +------------------------------------+ +------------------------------------+ 19 # | +---------+---------+ | | +---------+---------+ | 33 # +-----------------|------------------+ +-----------------|------------------+ 35 # +-----------------|------------------+ +-----------------|------------------+ 49 # | +---------+---------+ | | +---------+---------+ | 56 # +------------------------------------+ +------------------------------------+ 59 # Kselftest framework requirement - SKIP code is 4. 122 # All tests in this script. Can be overridden with -t option. 140 if [ ${rc} -eq ${expected} ]; then [all …]
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-rt305x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include <asm/mach-ralink/ralink_regs.h> 4 #include <asm/mach-ralink/rt305x.h> 8 #include "pinctrl-mtmips.h" 67 GRP("i2c", i2c_grp, 1, RT305X_GPIO_MODE_I2C), 68 GRP("spi", spi_grp, 1, RT305X_GPIO_MODE_SPI), 69 GRP("uartf", uartf_grp, RT305X_GPIO_MODE_UART0_MASK, 71 GRP("uartlite", uartlite_grp, 1, RT305X_GPIO_MODE_UART1), 72 GRP("jtag", jtag_grp, 1, RT305X_GPIO_MODE_JTAG), 73 GRP("mdio", mdio_grp, 1, RT305X_GPIO_MODE_MDIO), [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | imx6ull-colibri.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/gpio/gpio.h> 12 compatible = "toradex,imx6ull-colibri", "fsl,imx6ull"; 15 stdout-path = &uart1; 18 reg_module_3v3: regulator-module-3v3 { 19 compatible = "regulator-fixed"; 20 regulator-always-on; 21 regulator-name = "+V3.3"; 22 regulator-min-microvolt = <3300000>; [all …]
|
/openbmc/linux/drivers/pinctrl/mvebu/ |
H A D | pinctrl-mvebu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 24 #include "pinctrl-mvebu.h" 64 *config = (readl(data->base + off) >> shift) & MVEBU_MPP_MASK; in mvebu_mmio_mpp_ctrl_get() 76 reg = readl(data->base + off) & ~(MVEBU_MPP_MASK << shift); in mvebu_mmio_mpp_ctrl_set() 77 writel(reg | (config << shift), data->base + off); in mvebu_mmio_mpp_ctrl_set() 86 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_pid() 87 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid() 88 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid() 89 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid() [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-dhcom-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2015-2021 DH electronics GmbH 7 #include <dt-bindings/pwm/pwm.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/clock/imx6qdl-clock.h> 10 #include <dt-bindings/input/input.h> 30 memory@10000000 { /* Appropriate memory size will be filled by U-Boot */ 35 reg_3p3v: regulator-3P3V { 36 compatible = "regulator-fixed"; 37 regulator-always-on; [all …]
|
H A D | imx6ull-dhcom-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 6 #include "imx6ull-dhcor-som.dtsi" 10 /delete-property/ spi2; 11 /delete-property/ spi3; 28 stdout-path = "serial0:115200n8"; 31 reg_ext_3v3_ref: regulator-ext-3v3-ref { 32 compatible = "regulator-fixed"; 33 regulator-always-on; 34 regulator-max-microvolt = <3300000>; 35 regulator-min-microvolt = <3300000>; [all …]
|
/openbmc/linux/net/sched/ |
H A D | sch_qfq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 "Reducing the Execution Time of Fair-Queueing Schedulers." 27 http://algo.ing.unimo.it/people/paolo/agg-sched/agg-sched.pdf 67 ^.__grp->index = 0 68 *.__grp->slot_shift 85 The per-scheduler-instance data contain all the data structures 97 * Shifts used for aggregate<->group mapping. We allow class weights that are 102 * grp->index is the index of the group; and grp->slot_shift 137 struct list_head alist; /* Link for active-classes list. */ 150 struct qfq_group *grp; member [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/ |
H A D | pinmux-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved. 84 #define MUX_REG(grp) _R(0x80 + ((tegra_soc_pingroups[grp].ctl_id / 16) * 4)) argument 85 #define MUX_SHIFT(grp) ((tegra_soc_pingroups[grp].ctl_id % 16) * 2) argument 87 #define PULL_REG(grp) _R(0xa0 + ((tegra_soc_pingroups[grp].pull_id / 16) * 4)) argument 88 #define PULL_SHIFT(grp) ((tegra_soc_pingroups[grp].pull_id % 16) * 2) argument 90 #define TRI_REG(grp) _R(0x14 + (((grp) / 32) * 4)) argument 91 #define TRI_SHIFT(grp) ((grp) % 32) argument 113 * We could force arch-tegraNN/pinmux.h to define all of these. However, 160 int i, mux = -1; in pinmux_set_func() [all …]
|
/openbmc/linux/sound/core/seq/ |
H A D | seq_ports.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 /* return pointer to port structure - port is locked if found */ 51 read_lock(&client->ports_lock); in snd_seq_port_use_ptr() 52 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr() 53 if (port->addr.port == num) { in snd_seq_port_use_ptr() 54 if (port->closing) in snd_seq_port_use_ptr() 56 snd_use_lock_use(&port->use_lock); in snd_seq_port_use_ptr() 57 read_unlock(&client->ports_lock); in snd_seq_port_use_ptr() 61 read_unlock(&client->ports_lock); in snd_seq_port_use_ptr() 66 /* search for the next port - port is locked if found */ [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-dhcom-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2021-2022 Marek Vasut <marex@denx.de> 10 compatible = "dh,imx8mp-dhcom-som", "fsl,imx8mp"; 22 /* Memory size 512 MiB..8 GiB will be filled by U-Boot */ 26 reg_eth_vio: regulator-eth-vio { 27 compatible = "regulator-fixed"; 29 pinctrl-0 = <&pinctrl_enet_vio>; 30 pinctrl-names = "default"; 31 regulator-always-on; 32 regulator-boot-on; [all …]
|
H A D | imx8mm-emcon.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 13 stdout-path = &uart1; 17 compatible = "gpio-leds"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&pinctrl_gpio_led>; 21 led-green { 24 default-state = "on"; 25 linux,default-trigger = "heartbeat"; 28 led-red { [all …]
|
H A D | imx8mp-data-modul-edm-sbc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/net/qca-ar803x.h> 13 compatible = "dmo,imx8mp-data-modul-edm-sbc", "fsl,imx8mp"; 21 stdout-path = &uart3; 31 compatible = "pwm-backlight"; 32 pinctrl-names = "default"; 33 pinctrl-0 = <&pinctrl_panel_backlight>; 34 brightness-levels = <0 1 10 20 30 40 50 60 70 75 80 90 100>; 35 default-brightness-level = <7>; [all …]
|
/openbmc/linux/include/linux/pinctrl/ |
H A D | machine.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2011 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 16 #include <linux/pinctrl/pinctrl-state.h> 27 * struct pinctrl_map_mux - mapping table content for MAP_TYPE_MUX_GROUP 39 * struct pinctrl_map_configs - mapping table content for MAP_TYPE_CONFIGS_* 54 * struct pinctrl_map - boards/machines shall provide this map for devices 87 #define PIN_MAP_MUX_GROUP(dev, state, pinctrl, grp, func) \ argument 94 .group = grp, \ 99 #define PIN_MAP_MUX_GROUP_DEFAULT(dev, pinctrl, grp, func) \ argument [all …]
|
/openbmc/u-boot/drivers/pinctrl/uniphier/ |
H A D | pinctrl-uniphier.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (C) 2015-2016 Socionext Inc. 19 - 1) 26 - 1) 56 * struct uniphier_pinctrl_pin - pin data for UniPhier SoC 59 * @data: additional per-pin data 68 * struct uniphier_pinctrl_group - pin group data for UniPhier SoC 83 * struct uniphier_pinctrl_socdata - SoC data for UniPhier pin controller 93 * @caps: SoC-specific capability flag 116 #define __UNIPHIER_PINCTRL_GROUP(grp) \ argument [all …]
|
/openbmc/linux/drivers/net/wireless/marvell/libertas_tf/ |
H A D | deb_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 49 #define LBTF_DEB_LL(grp, grpnam, fmt, args...) \ argument 50 do { if ((lbtf_debug & (grp)) == (grp)) \ 53 #define LBTF_DEB_LL(grp, grpnam, fmt, args...) do {} while (0) argument 56 #define lbtf_deb_enter(grp) \ argument 57 LBTF_DEB_LL(grp | LBTF_DEB_ENTER, " enter", "%s()\n", __func__); 58 #define lbtf_deb_enter_args(grp, fmt, args...) \ argument 59 LBTF_DEB_LL(grp | LBTF_DEB_ENTER, " enter", "%s(" fmt ")\n", __func__, ## args); 60 #define lbtf_deb_leave(grp) \ argument 61 LBTF_DEB_LL(grp | LBTF_DEB_LEAVE, " leave", "%s()\n", __func__); [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | user_exp_rcv.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 4 * Copyright(c) 2015-2018 Intel Corporation. 19 u32 rcventry, struct tid_group *grp, 30 struct tid_group *grp, u16 count, 55 fd->entry_to_rb = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 58 if (!fd->entry_to_rb) in hfi1_user_exp_rcv_init() 59 return -ENOMEM; in hfi1_user_exp_rcv_init() 61 if (!HFI1_CAP_UGET_MASK(uctxt->flags, TID_UNMAP)) { in hfi1_user_exp_rcv_init() 62 fd->invalid_tid_idx = 0; in hfi1_user_exp_rcv_init() 63 fd->invalid_tids = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptpf_ucode.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 if (eng_grp->g->engs_num < 0 || in get_cores_bmap() 33 eng_grp->g->engs_num > OTX2_CPT_MAX_ENGINES) { in get_cores_bmap() 35 eng_grp->g->engs_num); in get_cores_bmap() 40 if (eng_grp->engs[i].type) { in get_cores_bmap() 42 eng_grp->engs[i].bmap, in get_cores_bmap() 43 eng_grp->g->engs_num); in get_cores_bmap() 44 bmap.size = eng_grp->g->engs_num; in get_cores_bmap() 51 eng_grp->idx); in get_cores_bmap() 62 if (eng_grp->ucode[1].type) in is_2nd_ucode_used() [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptpf_ucode.c | 1 // SPDX-License-Identifier: GPL-2.0 25 /* tar header as defined in POSIX 1003.1-1990. */ 64 if (eng_grp->g->engs_num > OTX_CPT_MAX_ENGINES) { in get_cores_bmap() 66 eng_grp->g->engs_num); in get_cores_bmap() 71 if (eng_grp->engs[i].type) { in get_cores_bmap() 73 eng_grp->engs[i].bmap, in get_cores_bmap() 74 eng_grp->g->engs_num); in get_cores_bmap() 75 bmap.size = eng_grp->g->engs_num; in get_cores_bmap() 82 eng_grp->idx); in get_cores_bmap() 94 return is_eng_type(eng_grps->eng_types_supported, eng_type); in dev_supports_eng_type() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/devres.c - device resource management 31 * the alignment of a 64-bit integer. 42 /* -- 8 pointers */ 48 node->name = name; in set_node_dbginfo() 49 node->size = size; in set_node_dbginfo() 61 op, node, node->name, node->size); in devres_dbg() 70 trace_devres_log(dev, op, node, node->name, node->size); in devres_log() 90 if (node->release == &group_open_release) in node_to_group() 92 if (node->release == &group_close_release) in node_to_group() [all …]
|