/linux/drivers/vfio/ |
H A D | group.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 static struct vfio_device *vfio_device_get_from_name(struct vfio_group *group, in vfio_device_get_from_name() argument 29 struct vfio_device *it, *device = ERR_PTR(-ENODEV); in vfio_device_get_from_name() 31 mutex_lock(&group->device_lock); in vfio_device_get_from_name() 32 list_for_each_entry(it, &group->device_list, group_next) { in vfio_device_get_from_name() 35 if (it->ops->match) { in vfio_device_get_from_name() 36 ret = it->ops->match(it, buf); in vfio_device_get_from_name() 42 ret = !strcmp(dev_name(it->dev), buf); in vfio_device_get_from_name() 50 mutex_unlock(&group->device_lock); in vfio_device_get_from_name() 56 * VFIO Group fd, /dev/vfio/$GROUP [all …]
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | mcg.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 50 #define mcg_warn_group(group, format, arg...) \ argument 51 pr_warn("%s-%d: %16s (port %d): WARNING: " format, __func__, __LINE__,\ 52 (group)->name, group->demux->port, ## arg) 54 #define mcg_debug_group(group, format, arg...) \ argument 55 pr_debug("%s-%d: %16s (port %d): WARNING: " format, __func__, __LINE__,\ 56 (group)->name, (group)->demux->port, ## arg) 58 #define mcg_error_group(group, format, arg...) \ argument 59 pr_err(" %16s: " format, (group)->name, ## arg) [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_hw_engine_group.c | 1 // SPDX-License-Identifier: MIT 19 struct xe_hw_engine_group *group = container_of(w, struct xe_hw_engine_group, resume_work); in hw_engine_group_resume_lr_jobs_func() local 23 err = xe_hw_engine_group_get_mode(group, EXEC_MODE_LR, &previous_mode); in hw_engine_group_resume_lr_jobs_func() 30 list_for_each_entry(q, &group->exec_queue_list, hw_engine_group_link) { in hw_engine_group_resume_lr_jobs_func() 31 if (!xe_vm_in_fault_mode(q->vm)) in hw_engine_group_resume_lr_jobs_func() 34 q->ops->resume(q); in hw_engine_group_resume_lr_jobs_func() 38 xe_hw_engine_group_put(group); in hw_engine_group_resume_lr_jobs_func() 44 struct xe_hw_engine_group *group; in hw_engine_group_alloc() local 47 group = drmm_kzalloc(&xe->drm, sizeof(*group), GFP_KERNEL); in hw_engine_group_alloc() 48 if (!group) in hw_engine_group_alloc() [all …]
|
/linux/drivers/infiniband/core/ |
H A D | multicast.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 34 #include <linux/dma-mapping.h> 117 struct mcast_group *group; member 132 struct rb_node *node = port->table.rb_node; in mcast_find() 133 struct mcast_group *group; in mcast_find() local 137 group = rb_entry(node, struct mcast_group, node); in mcast_find() 138 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 140 return group; in mcast_find() 143 node = node->rb_left; in mcast_find() [all …]
|
/linux/fs/notify/ |
H A D | notification.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Basic idea behind the notification queue: An fsnotify group (like inotify) 10 * event to the group notify queue. Since a single event might need to be on 11 * multiple group's notification queues we can't add the event directly to each 17 * another group a new event_holder (from fsnotify_event_holder_cachep) will be 41 * fsnotify_get_cookie - return a unique cookie for use in synchronizing events. 50 void fsnotify_destroy_event(struct fsnotify_group *group, in fsnotify_destroy_event() argument 53 /* Overflow events are per-group and we don't want to free them */ in fsnotify_destroy_event() 54 if (!event || event == group->overflow_event) in fsnotify_destroy_event() 62 if (!list_empty(&event->list)) { in fsnotify_destroy_event() [all …]
|
/linux/drivers/pinctrl/meson/ |
H A D | pinctrl-amlogic-c3.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT) 9 #include <dt-bindings/gpio/amlogic-c3-gpio.h> 10 #include "pinctrl-meson.h" 11 #include "pinctrl-meson-axg-pmx.h" 436 GROUP(pwm_a, 1), 437 GROUP(pwm_b, 1), 438 GROUP(i2c2_sda, 1), 439 GROUP(i2c2_scl, 1), 440 GROUP(gen_clk_e, 1), 443 GROUP(i2c0_sda_e, 2), [all …]
|
H A D | pinctrl-meson-axg.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 #include <dt-bindings/gpio/meson-axg-gpio.h> 10 #include "pinctrl-meson.h" 11 #include "pinctrl-meson-axg-pmx.h" 448 GROUP(emmc_nand_d0, 1), 449 GROUP(emmc_nand_d1, 1), 450 GROUP(emmc_nand_d2, 1), 451 GROUP(emmc_nand_d3, 1), 452 GROUP(emmc_nand_d4, 1), 453 GROUP(emmc_nand_d5, 1), [all …]
|
H A D | pinctrl-meson-s4.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 #include <dt-bindings/gpio/meson-s4-gpio.h> 10 #include "pinctrl-meson.h" 11 #include "pinctrl-meson-axg-pmx.h" 506 GROUP(i2c0_sda, 1), 507 GROUP(i2c0_scl, 1), 510 GROUP(uart_b_tx_e, 2), 511 GROUP(uart_b_rx_e, 2), 514 GROUP(pwm_h, 3), 515 GROUP(pwm_j, 3), [all …]
|
H A D | pinctrl-meson-a1.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 #include <dt-bindings/gpio/meson-a1-gpio.h> 10 #include "pinctrl-meson.h" 11 #include "pinctrl-meson-axg-pmx.h" 407 GROUP(psram_clkn, 1), 408 GROUP(psram_clkp, 1), 409 GROUP(psram_ce_n, 1), 410 GROUP(psram_rst_n, 1), 411 GROUP(psram_adq0, 1), 412 GROUP(psram_adq1, 1), [all …]
|
H A D | pinctrl-amlogic-t7.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT) 9 #include <dt-bindings/gpio/amlogic,t7-periphs-pinctrl.h> 10 #include "pinctrl-meson.h" 11 #include "pinctrl-meson-axg-pmx.h" 708 GROUP(emmc_nand_d0, 1), 709 GROUP(emmc_nand_d1, 1), 710 GROUP(emmc_nand_d2, 1), 711 GROUP(emmc_nand_d3, 1), 712 GROUP(emmc_nand_d4, 1), 713 GROUP(emmc_nand_d5, 1), [all …]
|
H A D | pinctrl-meson8.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <dt-bindings/gpio/meson8-gpio.h> 9 #include "pinctrl-meson.h" 10 #include "pinctrl-meson8-pmx.h" 531 GROUP(sd_d0_a, 8, 5), 532 GROUP(sd_d1_a, 8, 4), 533 GROUP(sd_d2_a, 8, 3), 534 GROUP(sd_d3_a, 8, 2), 535 GROUP(sd_clk_a, 8, 1), 536 GROUP(sd_cmd_a, 8, 0), [all …]
|
H A D | pinctrl-meson8b.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <dt-bindings/gpio/meson8b-gpio.h> 10 #include "pinctrl-meson.h" 11 #include "pinctrl-meson8-pmx.h" 444 GROUP(sd_d0_a, 8, 5), 445 GROUP(sd_d1_a, 8, 4), 446 GROUP(sd_d2_a, 8, 3), 447 GROUP(sd_d3_a, 8, 2), 448 GROUP(sdxc_d0_0_a, 5, 29), 449 GROUP(sdxc_d47_a, 5, 12), [all …]
|
H A D | pinctrl-meson-gxbb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <dt-bindings/gpio/meson-gxbb-gpio.h> 10 #include "pinctrl-meson.h" 11 #include "pinctrl-meson8-pmx.h" 440 GROUP(sdio_d0, 8, 5), 441 GROUP(sdio_d1, 8, 4), 442 GROUP(sdio_d2, 8, 3), 443 GROUP(sdio_d3, 8, 2), 444 GROUP(sdio_cmd, 8, 1), 445 GROUP(sdio_clk, 8, 0), [all …]
|
/linux/arch/sparc/kernel/ |
H A D | hvapi.c | 1 // SPDX-License-Identifier: GPL-2.0 19 unsigned long group; member 28 { .group = HV_GRP_SUN4V, .flags = FLAG_PRE_API }, 29 { .group = HV_GRP_CORE, .flags = FLAG_PRE_API }, 30 { .group = HV_GRP_INTR, }, 31 { .group = HV_GRP_SOFT_STATE, }, 32 { .group = HV_GRP_TM, }, 33 { .group = HV_GRP_PCI, .flags = FLAG_PRE_API }, 34 { .group = HV_GRP_LDOM, }, 35 { .group = HV_GRP_SVC_CHAN, .flags = FLAG_PRE_API }, [all …]
|
/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | nexthop.sh | 2 # SPDX-License-Identifier: GPL-2.0 61 out=$($IP nexthop show ${nharg} | sed -e 's/ *$//') 82 grep "trap" | wc -l) 95 occ=$($DEVLINK -jp resource show $DEVLINK_DEV \ 98 if [ $expected_occ -ne $occ ]; then 158 $IP nexthop add id 10 group 1/2 159 nexthop_check "id 10" "id 10 group 1/2 trap" 160 check_err $? "Unexpected nexthop group entry" 169 $IP nexthop add id 10 group 1,20/2,39 170 nexthop_check "id 10" "id 10 group 1,20/2,39 trap" [all …]
|
/linux/drivers/clk/renesas/ |
H A D | clk-mstp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * R-Car MSTP clocks 12 #include <linux/clk-provider.h> 32 * struct mstp_clock_group - MSTP gating clocks group 34 * @data: clock specifier translation for clocks in this group 38 * @width_8bit: registers are 8-bit, not 32-bit 39 * @clks: clocks in this group 51 * struct mstp_clock - MSTP gating clock 52 * @hw: handle between common and hardware-specific interfaces 54 * @group: MSTP clocks group [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-lpc32xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 168 static inline u32 gpreg_read(struct lpc32xx_gpio_chip *group, unsigned long offset) in gpreg_read() argument 170 return __raw_readl(group->reg_base + offset); in gpreg_read() 173 static inline void gpreg_write(struct lpc32xx_gpio_chip *group, u32 val, unsigned long offset) in gpreg_write() argument 175 __raw_writel(val, group->reg_base + offset); in gpreg_write() 178 static void __set_gpio_dir_p012(struct lpc32xx_gpio_chip *group, in __set_gpio_dir_p012() argument 182 gpreg_write(group, GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012() 183 group->gpio_grp->dir_clr); in __set_gpio_dir_p012() 185 gpreg_write(group, GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012() 186 group->gpio_grp->dir_set); in __set_gpio_dir_p012() [all …]
|
H A D | gpio-104-dio-48e.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GPIO driver for the ACCES 104-DIO-48E series 6 * This driver supports the following ACCES devices: 104-DIO-48E and 7 * 104-DIO-24E. 23 #include "gpio-i8255.h" 33 MODULE_PARM_DESC(base, "ACCES 104-DIO-48E base addresses"); 38 MODULE_PARM_DESC(irq, "ACCES 104-DIO-48E interrupt line numbers"); 110 * struct dio48e_gpio - GPIO device private data structure 125 static void dio48e_regmap_lock(void *lock_arg) __acquires(&dio48egpio->lock) in dio48e_regmap_lock() 130 raw_spin_lock_irqsave(&dio48egpio->lock, flags); in dio48e_regmap_lock() [all …]
|
/linux/kernel/time/ |
H A D | timer_migration.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include "tick-internal.h" 22 * lowest level group contains CPUs, the next level groups of CPU groups 34 * GRP0:0 - GRP0:2 GRP0:3 - GRP0:5 37 * CPUS 0-7 8-15 16-23 24-31 32-39 40-47 43 * Each group has a designated migrator CPU/group as long as a CPU/group is 44 * active in the group. This designated role is necessary to avoid that all 45 * active CPUs in a group try to migrate expired timers from other CPUs, 48 * When a CPU is awake, it checks in it's own timer tick the group 53 * If it finds expired timers in one of the group queues it pulls them over [all …]
|
/linux/include/trace/events/ |
H A D | timer_migration.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 /* Group events */ 14 TP_PROTO(struct tmigr_group *group), 16 TP_ARGS(group), 19 __field( void *, group ) 25 __entry->group = group; 26 __entry->lvl = group->level; 27 __entry->numa_node = group->numa_node; 30 TP_printk("group=%p lvl=%d numa=%d", 31 __entry->group, __entry->lvl, __entry->numa_node) [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | marvell,armada-37xx-pinctrl.txt | 12 ------------------------ 16 Refer to pinctrl-bindings.txt in this directory for details of the 22 - compatible: "marvell,armada3710-sb-pinctrl", "syscon, "simple-mfd" 24 "marvell,armada3710-nb-pinctrl", "syscon, "simple-mfd" 26 - reg: The first set of register are for pinctrl/gpio and the second 28 - interrupts: list of the interrupt use by the gpio 32 group: jtag 33 - pins 20-24 34 - functions jtag, gpio 36 group sdio0 [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | fib_nexthops.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # veth1 <---|---> veth2 | 8 # | veth5 <--|--> veth6 172.16.101.1 9 # veth3 <---|---> veth4 | 2001:db8:101::1 19 # Kselftest framework requirement - SKIP code is 4. 22 # all tests in this script. Can be overridden with -t option 75 if [ ${rc} -eq ${expected} ]; then 76 printf "TEST: %-60s [ OK ]\n" "${msg}" 79 if [[ $rc -eq $ksft_skip ]]; then 80 [[ $ret -eq 0 ]] && ret=$ksft_skip [all …]
|
/linux/kernel/sched/ |
H A D | psi.c | 1 // SPDX-License-Identifier: GPL-2.0 34 * In the FULL state of a given resource, all non-idle tasks are 44 * CPU, productive means an on-CPU task. 48 * FULL means all non-idle tasks in the cgroup are delayed on the CPU 64 * unrealized due to resource contention *also* scales with non-idle 83 * we have to base our calculation on the number of non-idle tasks in 91 * FULL = (threads - min(nr_productive_tasks, threads)) / threads 97 * FULL = (256 - min(256, 256)) / 256 = 0% 99 * For the 1 out of 4 memory-delayed tasks, this yields: 103 * FULL = (4 - min(3, 4)) / 4 = 25% [all …]
|
/linux/fs/ext2/ |
H A D | ialloc.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Laboratoire MASI - Institut Blaise Pascal 10 * BSD ufs-inspired inode and directory allocation by 12 * Big-endian to little-endian byte-swapping/bitmaps by 18 #include <linux/backing-dev.h> 31 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap 34 * The file system contains group descriptors which are located after the 56 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 59 "Cannot read inode bitmap - " in read_inode_bitmap() 61 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() [all …]
|
/linux/Documentation/filesystems/ext4/ |
H A D | group_descr.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Block Group Descriptors 4 ----------------------- 6 Each block group on the filesystem has one of these descriptors 7 associated with it. As noted in the Layout section above, the group 8 descriptors (if present) are the second item in the block group. The 9 standard configuration is for each block group to contain a full copy of 10 the block group descriptor table unless the sparse_super feature flag 13 Notice how the group descriptor records the location of both bitmaps and 15 group, the only data structures with fixed locations are the superblock [all …]
|