| /linux/drivers/leds/flash/ |
| H A D | leds-rt8515.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 #include <linux/led-class-flash.h> 34 #include <media/v4l2-flash-led-class.h> 36 /* We can provide 15-700 mA out to the LED */ 39 /* The maximum intensity is 1-16 for flash and 1-100 for torch */ 55 u32 max_timeout; /* Flash max timeout */ 65 static void rt8515_gpio_led_off(struct rt8515 *rt) in rt8515_gpio_led_off() argument 67 gpiod_set_value(rt->enable_flash, 0); in rt8515_gpio_led_off() 68 gpiod_set_value(rt->enable_torch, 0); in rt8515_gpio_led_off() 93 struct rt8515 *rt = to_rt8515(fled); in rt8515_led_brightness_set() local [all …]
|
| /linux/drivers/thunderbolt/ |
| H A D | retimer.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * tb_retimer_nvm_read() - Read contents of retimer NVM 25 * @rt: Retimer device 34 int tb_retimer_nvm_read(struct tb_retimer *rt, unsigned int address, void *buf, in tb_retimer_nvm_read() argument 37 return usb4_port_retimer_nvm_read(rt->port, rt->index, address, buf, size); in tb_retimer_nvm_read() 43 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_read() local 46 pm_runtime_get_sync(&rt->dev); in nvm_read() 48 if (!mutex_trylock(&rt->tb->lock)) { in nvm_read() 53 ret = tb_retimer_nvm_read(rt, offset, val, bytes); in nvm_read() 54 mutex_unlock(&rt->tb->lock); in nvm_read() [all …]
|
| /linux/net/mctp/test/ |
| H A D | utils.c | 1 // SPDX-License-Identifier: GPL-2.0 18 skb_queue_tail(&dev->pkts, skb); in mctp_test_dev_tx() 29 ndev->type = ARPHRD_MCTP; in mctp_test_dev_setup() 30 ndev->mtu = MCTP_DEV_TEST_MTU; in mctp_test_dev_setup() 31 ndev->hard_header_len = 0; in mctp_test_dev_setup() 32 ndev->tx_queue_len = 0; in mctp_test_dev_setup() 33 ndev->flags = IFF_NOARP; in mctp_test_dev_setup() 34 ndev->netdev_ops = &mctp_test_netdev_ops; in mctp_test_dev_setup() 35 ndev->needs_free_netdev = true; in mctp_test_dev_setup() 54 dev->ndev = ndev; in __mctp_test_create_dev() [all …]
|
| /linux/net/mctp/ |
| H A D | route.c | 1 // 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_typ in mctp_lookup_bind_details() 669 mctp_route_release(struct mctp_route * rt) mctp_route_release() argument 681 struct mctp_route *rt; mctp_route_alloc() local 862 mctp_route_netid(struct mctp_route * rt) mctp_route_netid() argument 868 mctp_rt_match_eid(struct mctp_route * rt,unsigned int net,mctp_eid_t eid) mctp_rt_match_eid() argument 965 struct mctp_route *rt; mctp_route_lookup_single() local 986 struct mctp_route *rt; mctp_route_lookup() local 1211 mctp_route_add(struct net * net,struct mctp_route * rt) mctp_route_add() argument 1253 struct mctp_route *rt, *tmp; mctp_route_remove() local 1281 struct mctp_route *rt; mctp_route_add_local() local 1313 struct mctp_route *rt, *tmp; mctp_route_remove_dev() local 1543 mctp_route_nlparse_populate(struct net * net,struct nlmsghdr * nlh,struct netlink_ext_ack * extack,struct mctp_route * rt) mctp_route_nlparse_populate() argument 1599 struct mctp_route *rt; mctp_newroute() local 1648 mctp_fill_rtinfo(struct sk_buff * skb,struct mctp_route * rt,u32 portid,u32 seq,int event,unsigned int flags) mctp_fill_rtinfo() argument 1710 struct mctp_route *rt; mctp_dump_rtinfo() local 1754 struct mctp_route *rt; mctp_routes_net_exit() local [all...] |
| /linux/fs/xfs/ |
| H A D | xfs_mount.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 46 #define XFS_ERR_RETRY_FOREVER -1 51 * signed 32-bit long is sufficient for a HZ value up to 24855. Making it 52 * signed lets us store the special "-1" value, meaning retry forever. 57 long retry_timeout; /* in jiffies, -1 = infinite */ 61 * Per-cpu deferred inode inactivation GC lists. 86 * degenerate case of a pre-rtgroups filesystem, the incore rtgroup 87 * pretends to have a zero-block and zero-blklog rtgroup. 104 * equivalent to the RT groups already takes care of the power of 2 [all …]
|
| /linux/arch/arm/mm/ |
| H A D | cache-v7m.S | 1 /* 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/sound/usb/6fire/ |
| H A D | control.c | 1 // 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 in usb6fire_control_output_vol_update() 74 usb6fire_control_output_mute_update(struct control_runtime * rt) usb6fire_control_output_mute_update() argument 82 usb6fire_control_input_vol_update(struct control_runtime * rt) usb6fire_control_input_vol_update() argument 96 usb6fire_control_line_phono_update(struct control_runtime * rt) usb6fire_control_line_phono_update() argument 105 usb6fire_control_opt_coax_update(struct control_runtime * rt) usb6fire_control_opt_coax_update() argument 114 usb6fire_control_set_rate(struct control_runtime * rt,int rate) usb6fire_control_set_rate() argument 137 usb6fire_control_set_channels(struct control_runtime * rt,int n_analog_out,int n_analog_in,bool spdif_out,bool spdif_in) usb6fire_control_set_channels() argument 160 usb6fire_control_streaming_update(struct control_runtime * rt) usb6fire_control_streaming_update() argument 188 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_vol_put() local 218 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_vol_get() local 235 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_mute_put() local 262 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_mute_get() local 292 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_input_vol_put() local 317 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_input_vol_get() local 334 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_line_phono_put() local 347 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_line_phono_get() local 361 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_opt_coax_put() local 375 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_opt_coax_get() local 383 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_digital_thru_put() local 397 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_digital_thru_get() local 519 usb6fire_control_add_virtual(struct control_runtime * rt,struct snd_card * card,char * name,const struct snd_kcontrol_new * elems) usb6fire_control_add_virtual() argument 556 struct control_runtime *rt = kzalloc_obj(struct control_runtime); usb6fire_control_init() local [all...] |
| /linux/Documentation/scheduler/ |
| H A D | sched-util-clamp.rst | 1 .. 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/drivers/net/mctp/ |
| H A D | mctp-usblib-test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mctp-usblib-test.c - MCTP-over-USB (DMTF DSP0283) transport helper library, 15 #include <linux/usb/mctp-usb.h> 25 struct mctp_route rt; member 45 ndev->type = ARPHRD_MCTP; in mctp_usblib_dev_setup() 46 ndev->mtu = 8192; in mctp_usblib_dev_setup() 47 ndev->flags = IFF_NOARP; in mctp_usblib_dev_setup() 48 ndev->netdev_ops = &mctp_test_netdev_ops; in mctp_usblib_dev_setup() 49 ndev->needs_free_netdev = true; in mctp_usblib_dev_setup() 50 ndev->pcpu_stat_type = NETDEV_PCPU_STAT_DSTATS; in mctp_usblib_dev_setup() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | ioprio.h | 1 /* 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 D | irqchip.c | 1 // 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 D | audio.c | 1 // 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 guard(spinlock)(&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() 66 guard(spinlock_irqsave)(&cdev->spinlock); in deactivate_substream() 68 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in deactivate_substream() 69 cdev->sub_playback[sub->number] = NULL; in deactivate_substream() [all …]
|
| /linux/net/smc/ |
| H A D | smc_llc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 37 u16 length_v2; /* 44 - 8192*/ 98 struct smc_llc_msg_add_link_cont_rt rt[]; member 119 struct smc_llc_msg_add_link_cont_rt rt[SMC_LLC_RKEYS_PER_CONT_MSG]; member 209 (sizeof(union smc_llc_msg) - 230 struct smc_llc_qentry *qentry = flow->qentry; in smc_llc_flow_qentry_clr() 232 flow->qentry = NULL; in smc_llc_flow_qentry_clr() 240 if (flow->qentry) { in smc_llc_flow_qentry_del() 241 qentry = flow->qentry; in smc_llc_flow_qentry_del() [all …]
|
| /linux/include/net/ |
| H A D | x25.h | 1 /* 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/net/ipv4/ |
| H A D | ip_tunnel.c | 1 // 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 …]
|
| H A D | route.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * ROUTE - implementation of the IP router. 48 * Andi Kleen : Load-limit warning messages. 220 seq_printf(seq, "%-127s\n", in rt_cache_seq_show() 241 for (cpu = *pos-1; cpu < nr_cpu_ids; ++cpu) { in rt_cpu_seq_start() 283 0, /* st->in_hit */ in rt_cpu_seq_show() 284 st->in_slow_tot, in rt_cpu_seq_show() 285 st->in_slow_mc, in rt_cpu_seq_show() 286 st->in_no_route, in rt_cpu_seq_show() 287 st->in_brd, in rt_cpu_seq_show() [all …]
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_usbpd_logger.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/devm-helpers.h> 18 #define DRV_NAME "cros-usbpd-logger" 39 "None", "PD", "Type-C", "Proprietary", "DCP", "CDP", "SDP", 48 "---", "OCP", "fast OCP", "OVP", "Discharge" 58 i = vsnprintf(buf + pos, BUF_SIZE - pos, fmt, args); in append_str() 66 struct cros_ec_dev *ec_dev = logger->ec_dev; in ec_get_log_entry() 70 msg = (struct cros_ec_command *)logger->ec_buffer; in ec_get_log_entry() 72 msg->command = ec_dev->cmd_offset + EC_CMD_PD_GET_LOG_ENTRY; in ec_get_log_entry() 73 msg->insize = CROS_USBPD_LOG_RESP_SIZE; in ec_get_log_entry() [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | tsc2007_core.c | 1 // 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 …]
|
| H A D | ads7846.c | 1 // 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). 155 /* leave chip selected when we're done, for quicker re-select? */ 162 /*--------------------------------------------------------------------------*/ [all …]
|
| /linux/net/ipv6/netfilter/ |
| H A D | ip6t_rt.c | 1 // 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->matchinf in rt_mt6() [all...] |
| /linux/sound/parisc/ |
| H A D | harmony.c | 1 // 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 D | af_mpls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 /* max memory we will use for mpls_route */ 40 static int label_limit = (1 << 20) - 1; 73 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt, 81 platform_label = mpls_dereference(net, net->mpls.platform_label); in mpls_route_input() 91 sequence = read_seqcount_begin(&net->mpls.platform_label_seq); in mpls_platform_label_rcu() 92 platform_label = rcu_dereference(net->mpls.platform_label); in mpls_platform_label_rcu() 93 *platform_labels = net->mpls.platform_labels; in mpls_platform_label_rcu() 94 } while (read_seqcount_retry(&net->mpls.platform_label_seq, sequence)); in mpls_platform_label_rcu() 114 return dev && (dev->flags & IFF_UP) && netif_carrier_ok(dev); in mpls_output_possible() [all …]
|
| /linux/include/uapi/asm-generic/ |
| H A D | resource.h | 1 /* 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 …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_types.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 52 #define NULLFSBLOCK ((xfs_fsblock_t)-1) 53 #define NULLRFSBLOCK ((xfs_rfsblock_t)-1) 54 #define NULLRTBLOCK ((xfs_rtblock_t)-1) 55 #define NULLFILEOFF ((xfs_fileoff_t)-1) 57 #define NULLAGBLOCK ((xfs_agblock_t)-1) 58 #define NULLRGBLOCK ((xfs_rgblock_t)-1) 59 #define NULLAGNUMBER ((xfs_agnumber_t)-1) 60 #define NULLRGNUMBER ((xfs_rgnumber_t)-1) [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | nldev.c | 49 * This determines whether a non-privileged user is allowed to specify a 50 * controlled QKEY or not, when true non-privileged user is allowed to specify 198 return -EMSGSIZE; in put_driver_name_print_type() 201 return -EMSGSIZE; in put_driver_name_print_type() 211 return -EMSGSIZE; in _rdma_nl_put_driver_u32() 213 return -EMSGSIZE; in _rdma_nl_put_driver_u32() 223 return -EMSGSIZE; in _rdma_nl_put_driver_u64() 226 return -EMSGSIZE; in _rdma_nl_put_driver_u64() 236 return -EMSGSIZE; in rdma_nl_put_driver_string() 238 return -EMSGSIZE; in rdma_nl_put_driver_string() [all …]
|