Home
last modified time | relevance | path

Searched +full:max +full:- +full:rt (Results 1 – 25 of 224) sorted by relevance

123456789

/linux/drivers/leds/flash/
H A Dleds-rt8515.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 #include <linux/led-class-flash.h>
35 #include <media/v4l2-flash-led-class.h>
37 /* We can provide 15-700 mA out to the LED */
40 /* The maximum intensity is 1-16 for flash and 1-100 for torch */
56 u32 max_timeout; /* Flash max timeout */
66 static void rt8515_gpio_led_off(struct rt8515 *rt) in rt8515_gpio_led_off() argument
68 gpiod_set_value(rt->enable_flash, 0); in rt8515_gpio_led_off()
69 gpiod_set_value(rt->enable_torch, 0); in rt8515_gpio_led_off()
94 struct rt8515 *rt = to_rt8515(fled); in rt8515_led_brightness_set() local
[all …]
/linux/net/mctp/test/
H A Dutils.c1 // SPDX-License-Identifier: GPL-2.0
26 ndev->type = ARPHRD_MCTP; in mctp_test_dev_setup()
27 ndev->mtu = MCTP_DEV_TEST_MTU; in mctp_test_dev_setup()
28 ndev->hard_header_len = 0; in mctp_test_dev_setup()
29 ndev->tx_queue_len = DEFAULT_TX_QUEUE_LEN; in mctp_test_dev_setup()
30 ndev->flags = IFF_NOARP; in mctp_test_dev_setup()
31 ndev->netdev_ops = &mctp_test_netdev_ops; in mctp_test_dev_setup()
32 ndev->needs_free_netdev = true; in mctp_test_dev_setup()
51 dev->ndev = ndev; in __mctp_test_create_dev()
52 ndev->addr_len = lladdr_len; in __mctp_test_create_dev()
[all …]
/linux/net/mctp/
H A Droute.c1 // SPDX-License-Identifier: GPL-2.0
3 * Management Component Transport Protocol (MCTP) - routing
56 sk_for_each_rcu(sk, &net->mctp.binds[hash]) { in mctp_lookup_bind_details()
59 if (!allow_net_any && msk->bind_net == MCTP_NET_ANY) in mctp_lookup_bind_details()
62 if (msk->bind_net != MCTP_NET_ANY && msk->bind_net != cb->net) in mctp_lookup_bind_details()
65 if (msk->bind_type != type) in mctp_lookup_bind_details()
68 if (msk->bind_peer_set && in mctp_lookup_bind_details()
69 !mctp_address_matches(msk->bind_peer_addr, src)) in mctp_lookup_bind_details()
72 if (!mctp_address_matches(msk->bind_local_addr, dest)) in mctp_lookup_bind_details()
87 /* TODO: look up in skb->cb? */ in mctp_lookup_bind()
[all …]
/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra234-p3740-0002+p3701-0008.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/input/gpio-keys.h>
6 #include <dt-bindings/sound/rt5640.h>
7 #include "tegra234-p3701-0008.dtsi"
11 compatible = "nvidia,p3740-0002+p3701-0008", "nvidia,p3701-0008", "nvidia,tegra234";
19 stdout-path = "serial0:115200n8";
29 dai-format = "i2s";
30 remote-endpoint = <&rt5640_ep>;
[all …]
/linux/fs/xfs/
H A Dxfs_mount.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
45 #define XFS_ERR_RETRY_FOREVER -1
50 * signed 32-bit long is sufficient for a HZ value up to 24855. Making it
51 * signed lets us store the special "-1" value, meaning retry forever.
56 long retry_timeout; /* in jiffies, -1 = infinite */
60 * Per-cpu deferred inode inactivation GC lists.
85 * degenerate case of a pre-rtgroups filesystem, the incore rtgroup
86 * pretends to have a zero-block and zero-blklog rtgroup.
103 * equivalent to the RT groups already takes care of the power of 2
[all …]
H A Dxfs_mount.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
67 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
71 super_set_uuid(mp->m_super, uuid->b, sizeof(*uuid)); in xfs_uuid_mount()
77 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
78 return -EINVAL; in xfs_uuid_mount()
82 for (i = 0, hole = -1; i < xfs_uuid_table_size; i++) { in xfs_uuid_mount()
104 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
105 return -EINVAL; in xfs_uuid_mount()
112 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
[all …]
/linux/arch/arm/mm/
H A Dcache-v7m.S1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/mm/cache-v7m.S
5 * Based on linux/arch/arm/mm/cache-v7.S
20 #include "proc-macros.S"
22 .arch armv7-m
25 .macro v7m_cache_read, rt, reg
26 movw \rt, #:lower16:BASEADDR_V7M_SCB + \reg
27 movt \rt, #:upper16:BASEADDR_V7M_SCB + \reg
28 ldr \rt, [\rt]
31 .macro v7m_cacheop, rt, tmp, op, c = al
[all …]
/linux/drivers/net/netdevsim/
H A Dfib.c6 * June 1991 as shown in the file COPYING in the top-level directory of this
36 u64 max; member
96 struct fib6_info *rt; member
137 enum nsim_resource_id res_id, bool max) in nsim_fib_get_val() argument
143 entry = &fib_data->ipv4.fib; in nsim_fib_get_val()
146 entry = &fib_data->ipv4.rules; in nsim_fib_get_val()
149 entry = &fib_data->ipv6.fib; in nsim_fib_get_val()
152 entry = &fib_data->ipv6.rules; in nsim_fib_get_val()
155 entry = &fib_data->nexthops; in nsim_fib_get_val()
161 return max ? entry->max : atomic64_read(&entry->num); in nsim_fib_get_val()
[all …]
/linux/sound/usb/6fire/
H A Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * - Holger Ruckdeschel: he found out how to control individual channel
53 static DECLARE_TLV_DB_MINMAX(tlv_output, -9000, 0);
54 static DECLARE_TLV_DB_MINMAX(tlv_input, -1500, 1500);
60 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument
62 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update()
67 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update()
68 comm_rt->write8(comm_rt, 0x12, 0x0f + i, in usb6fire_control_output_vol_update()
69 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update()
70 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update()
[all …]
/linux/Documentation/scheduler/
H A Dsched-util-clamp.rst1 .. SPDX-License-Identifier: GPL-2.0
57 foreground, top-app, etc. Util clamp can be used to constrain how much
60 the ones belonging to the currently active app (top-app group). Beside this
65 1. The big cores are free to run top-app tasks immediately. top-app
102 In the SCHED_FIFO/RR case, uclamp gives the option to run RT tasks at any
103 performance point rather than being tied to MAX frequency all the time. Which
106 Note that by design RT tasks don't have per-task PELT signal and must always
110 when an RT task wakes up. This cost is unchanged by using uclamp. Uclamp only
112 MAX for all RT tasks.
114 See :ref:`section 3.4 <uclamp-default-values>` for default values and
[all …]
/linux/kernel/bpf/
H A Drange_tree.c1 // SPDX-License-Identifier: GPL-2.0-only
13 * rn->rn_rbnode links it into an interval tree while
14 * rn->rb_range_size links it into a second rbtree sorted by size of the range.
23 * The implementation relies on external lock to protect rbtree-s.
24 * The alloc/free of range_node-s is done via bpf_mem_alloc.
28 * range_tree_set(rt, 0, max);
30 * start = range_tree_find(rt, len);
32 * range_tree_clear(rt, start, len);
34 * range_tree_set(rt, start, len);
52 return rn->rn_last - rn->rn_start + 1; in rn_size()
[all …]
/linux/arch/arm64/kernel/
H A Darmv8_deprecated.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include "trace-events-emulation.h"
26 * following three states -
53 int max; member
80 * Implement emulation of the SWP/SWPB instructions using load-exclusive and
81 * store-exclusive.
83 * Syntax of SWP{B} instruction: SWP{B}<c> <Rt>, <Rt2>, [<Rn>]
84 * Where: Rt = destination
90 * Error-checking SWP macros implemented using ldxr{b}/stxr{b}
93 /* Arbitrary constant to ensure forward-progress of the LL/SC loop */
[all …]
/linux/include/uapi/linux/
H A Dioprio.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
9 * Gives us 8 prio classes with 13-bits of data for each class
13 #define IOPRIO_CLASS_MASK (IOPRIO_NR_CLASSES - 1)
14 #define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
21 * These are the io priority classes as implemented by the BFQ and mq-deadline
22 * schedulers. RT is the realtime class, it always gets premium service. For
23 * ATA disks supporting NCQ IO priority, RT class IOs will be processed using
24 * high priority NCQ commands. BE is the best-effort scheduling class, the
39 * The RT and BE priority classes both support up to 8 priority levels that
40 * can be specified using the lower 3-bits of the priority data.
[all …]
/linux/virt/kvm/
H A Dirqchip.c1 // SPDX-License-Identifier: GPL-2.0-only
28 irq_rt = srcu_dereference_check(kvm->irq_routing, &kvm->irq_srcu, in kvm_irq_map_gsi()
29 lockdep_is_held(&kvm->irq_lock)); in kvm_irq_map_gsi()
30 if (irq_rt && gsi < irq_rt->nr_rt_entries) { in kvm_irq_map_gsi()
31 hlist_for_each_entry(e, &irq_rt->map[gsi], link) { in kvm_irq_map_gsi()
44 irq_rt = srcu_dereference(kvm->irq_routing, &kvm->irq_srcu); in kvm_irq_map_chip_pin()
45 return irq_rt->chip[irqchip][pin]; in kvm_irq_map_chip_pin()
52 if (!kvm_arch_irqchip_in_kernel(kvm) || (msi->flags & ~KVM_MSI_VALID_DEVID)) in kvm_send_userspace_msi()
53 return -EINVAL; in kvm_send_userspace_msi()
55 route.msi.address_lo = msi->address_lo; in kvm_send_userspace_msi()
[all …]
/linux/sound/usb/caiaq/
H A Daudio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2006-2008 Daniel Mack, Karsten Wiese
31 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
54 spin_lock(&cdev->spinlock); in activate_substream()
56 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in activate_substream()
57 cdev->sub_playback[sub->number] = sub; in activate_substream()
59 cdev->sub_capture[sub->number] = sub; in activate_substream()
61 spin_unlock(&cdev->spinlock); in activate_substream()
69 spin_lock_irqsave(&cdev->spinlock, flags); in deactivate_substream()
71 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in deactivate_substream()
[all …]
/linux/drivers/input/touchscreen/
H A Dads7846.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - corgi_ts.c
11 * Copyright (C) 2004-2005 Richard Purdie
12 * - omap_ts.[hc], ads7846.h, ts_osk.c
39 * Support for ads7843 tested on Atmel at91sam926x-EK.
53 * note. The strength of filtering can be set in the board-* specific
76 * driver is used with DMA-based SPI controllers (like atmel_spi) on
77 * systems where main memory is not DMA-coherent (most non-x86 boards).
152 /* leave chip selected when we're done, for quicker re-select? */
159 /*--------------------------------------------------------------------------*/
[all …]
H A Dtsc2007_core.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - ads7846.c
12 * - corgi_ts.c
13 * Copyright (C) 2004-2005 Richard Purdie
14 * - omap_ts.[hc], ads7846.h, ts_osk.c
36 data = i2c_smbus_read_word_data(tsc->client, cmd); in tsc2007_xfer()
38 dev_err(&tsc->client->dev, "i2c io error: %d\n", data); in tsc2007_xfer()
44 * Where DataLow has [D11-D4], DataHigh has [D3-D0 << 4 | Dummy 4bit]. in tsc2007_xfer()
48 dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); in tsc2007_xfer()
55 /* y- still on; turn on only y+ (and ADC) */ in tsc2007_read_values()
[all …]
/linux/net/ipv4/
H A Dip_tunnel.c1 // SPDX-License-Identifier: GPL-2.0-only
65 return !test_bit(IP_TUNNEL_KEY_BIT, p->i_flags); in ip_tunnel_key_match()
67 return test_bit(IP_TUNNEL_KEY_BIT, p->i_flags) && p->i_key == key; in ip_tunnel_key_match()
92 head = &itn->tunnels[hash]; in ip_tunnel_lookup()
95 if (local != t->parms.iph.saddr || in ip_tunnel_lookup()
96 remote != t->parms.iph.daddr || in ip_tunnel_lookup()
97 !(t->dev->flags & IFF_UP)) in ip_tunnel_lookup()
100 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
103 if (READ_ONCE(t->parms.link) == link) in ip_tunnel_lookup()
109 if (remote != t->parms.iph.daddr || in ip_tunnel_lookup()
[all …]
/linux/net/ipv6/netfilter/
H A Dip6t_rt.c1 // SPDX-License-Identifier: GPL-2.0-only
4 /* (C) 2001-2002 Andras Kis-Szabo <kisza@sch.bme.hu>
22 MODULE_AUTHOR("Andras Kis-Szabo <kisza@sch.bme.hu>");
26 segsleft_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) in segsleft_match() argument
28 return (id >= min && id <= max) ^ invert; in segsleft_match()
35 const struct ip6t_rt *rtinfo = par->matchinfo; in rt_mt6()
46 if (err != -ENOENT) in rt_mt6()
47 par->hotdrop = true; in rt_mt6()
53 par->hotdrop = true; in rt_mt6()
58 if (skb->len - ptr < hdrlen) { in rt_mt6()
[all …]
/linux/include/net/
H A Dx25.h1 /* SPDX-License-Identifier: GPL-2.0 */
114 #define X25_MAX_AE_LEN 40 /* Max num of semi-octets in AE - OSI Nw */
115 #define X25_MAX_DTE_FACIL_LEN 21 /* Max length of DTE facility params */
117 /* Bitset in x25_sock->flags for misc flags */
123 * struct x25_route - x25 routing entry
124 * @node - entry in x25_list_lock
125 * @address - Start of address range
126 * @sigdigits - Number of sig digits
127 * @dev - More than one for MLP
128 * @refcnt - reference counter
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_format.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
12 * This header file defines all the on-disk format definitions for
26 * Fits into a sector-sized buffer at address 0 of each allocation group.
31 #define XFS_SB_VERSION_2 2 /* 6.2 - attributes */
32 #define XFS_SB_VERSION_3 3 /* 6.2 - new inode version */
33 #define XFS_SB_VERSION_4 4 /* 6.2+ - bitmask version */
47 #define XFS_SB_VERSION_BORGBIT 0x4000 /* ASCII only case-insens. */
93 * Superblock - in core version. Must be padded to 64 bit alignment.
101 uuid_t sb_uuid; /* user-visible file system unique id */
[all …]
/linux/sound/parisc/
H A Dharmony.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Hewlett-Packard Harmony audio driver
5 * on the LASI ASIC of various early HP PA-RISC workstations.
7 * Copyright (C) 2004, Kyle McMartin <kyle@{debian.org,parisc-linux.org}>
11 * Copyright 2000-2003 (c) Helge Deller
13 * Copyright 2001 (c) Jean-Christophe Vaugeois
18 * - graveyard and silence buffers last for lifetime of
33 #include <linux/dma-mapping.h>
44 #include <asm/parisc-device.h>
48 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */
[all …]
/linux/net/mpls/
H A Daf_mpls.c1 // SPDX-License-Identifier: GPL-2.0-only
31 /* max memory we will use for mpls_route */
41 static int label_limit = (1 << 20) - 1;
74 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
80 struct mpls_route *rt = NULL; in mpls_route_input_rcu() local
82 if (index < net->mpls.platform_labels) { in mpls_route_input_rcu()
84 rcu_dereference_rtnl(net->mpls.platform_label); in mpls_route_input_rcu()
85 rt = rcu_dereference_rtnl(platform_label[index]); in mpls_route_input_rcu()
87 return rt; in mpls_route_input_rcu()
92 return dev && (dev->flags & IFF_UP) && netif_carrier_ok(dev); in mpls_output_possible()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.c1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
32 if (attr->n) in mlx5e_tc_tun_route_attr_cleanup()
33 neigh_release(attr->n); in mlx5e_tc_tun_route_attr_cleanup()
34 dev_put(attr->route_dev); in mlx5e_tc_tun_route_attr_cleanup()
58 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_route_and_out_devs()
76 mlx5_lag_is_sriov(priv->mdev)); in get_route_and_out_devs()
79 /* if the egress device isn't on the same HW e-switch or in get_route_and_out_devs()
83 if (!netdev_port_same_parent_id(priv->netdev, real_dev) || in get_route_and_out_devs()
91 return -EOPNOTSUPP; in get_route_and_out_devs()
94 return -EOPNOTSUPP; in get_route_and_out_devs()
[all …]
/linux/include/uapi/asm-generic/
H A Dresource.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
9 * a different rlimit ID order in the 5-9 range and want
13 * then it defines them prior including asm-generic/resource.h. )
18 #define RLIMIT_DATA 2 /* max data size */
19 #define RLIMIT_STACK 3 /* max stack size */
20 #define RLIMIT_CORE 4 /* max core file size */
23 # define RLIMIT_RSS 5 /* max resident set size */
27 # define RLIMIT_NPROC 6 /* max number of processes */
31 # define RLIMIT_NOFILE 7 /* max number of open files */
35 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */
[all …]

123456789