| /kernel/linux/linux-6.6/kernel/locking/ |
| D | rwbase_rt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * RT-specific reader/writer semaphores and reader/writer locks 14 * 2) Set the reader BIAS, so readers can use the fast path again 36 * for one reader after the other. We can't use multi-reader inheritance 41 * The risk of writer starvation is there, but the pathological use cases 44 * Fast-path orderings: 58 * Increment reader count, if sem->readers < 0, i.e. READER_BIAS is in rwbase_read_trylock() 61 for (r = atomic_read(&rwb->readers); r < 0;) { in rwbase_read_trylock() 62 if (likely(atomic_try_cmpxchg_acquire(&rwb->readers, &r, r + 1))) in rwbase_read_trylock() 71 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_lock() local [all …]
|
| D | rtmutex.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RT-Mutexes: simple blocking mutual exclusion locks with PI support 7 * Copyright (C) 2004-2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> 8 * Copyright (C) 2005-2006 Timesys Corp., Thomas Gleixner <tglx@timesys.com> 17 * See Documentation/locking/rt-mutex-design.rst for details. 33 # define ww_container_of(rtm) NULL argument 61 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base) argument 66 * lock->owner state tracking: 68 * lock->owner holds the task_struct pointer of the owner. Bit 0 79 * possible when bit 0 of lock->owner is 0. [all …]
|
| /kernel/linux/linux-6.6/arch/x86/kernel/cpu/ |
| D | tsx.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2019-2021 Intel Corporation 49 /* Enable the RTM feature in the cpu */ in tsx_enable() 55 * can enumerate and use the TSX feature. in tsx_enable() 83 * - X86_FEATURE_RTM_ALWAYS_ABORT 84 * - X86_FEATURE_TSX_FORCE_ABORT 86 * 2. The second method is for CPUs which do not have the above-mentioned 87 * MSR: those use a different MSR - MSR_IA32_TSX_CTRL and disable TSX 93 * clears the respective RTM and HLE feature flags. 100 * cause for the supported CPUID feature bits to get re-detected and, if [all …]
|
| /kernel/linux/linux-6.6/arch/x86/include/uapi/asm/ |
| D | debugreg.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 7 debug registers. Registers 0-3 contain the addresses we wish to trap on */ 14 /* Define a few things for the status register. We can use this to determine 21 * This is also the DR6 architectural value following Power-up, Reset or INIT. 24 * Transactional Memory (RTM), the DR6 register has been modified: 29 * 2) RTM flag (bit 16) is no longer reserved to 1 if the CPU supports 30 * restricted transactional memory. #DB occurred inside an RTM region 33 * Apparently, DR6.BLD and DR6.RTM are active low bits. 47 #define DR_STEP (0x4000) /* single-step */ 52 bits - each field corresponds to one of the four debug registers, [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/spi/ |
| D | spi-synquacer.txt | 1 * Socionext Synquacer HS-SPI bindings 4 - compatible: should be "socionext,synquacer-spi" 5 - reg: physical base address of the controller and length of memory mapped 7 - interrupts: should contain the "spi_rx", "spi_tx" and "spi_fault" interrupts. 8 - clocks: core clock iHCLK. Optional rate clock iPCLK (default is iHCLK) 9 - clock-names: Shall be "iHCLK" and "iPCLK" respectively 12 - socionext,use-rtm: boolean, if required to use "retimed clock" for RX 13 - socionext,set-aces: boolean, if same active clock edges field to be set. 18 compatible = "socionext,synquacer-spi"; 24 clock-names = "iHCLK"; [all …]
|
| /kernel/linux/linux-5.10/net/mpls/ |
| 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; 81 if (index < net->mpls.platform_labels) { in mpls_route_input_rcu() 83 rcu_dereference(net->mpls.platform_label); in mpls_route_input_rcu() 91 return dev && (dev->flags & IFF_UP) && netif_carrier_ok(dev); in mpls_output_possible() 97 return (u8 *)nh + rt->rt_via_offset; in __mpls_nh_via() 109 return nh->nh_labels * sizeof(struct mpls_shim_hdr); in mpls_nh_header_size() 115 return dev->mtu; in mpls_dev_mtu() 121 if (skb->len <= mtu) in mpls_pkt_too_big() [all …]
|
| /kernel/linux/linux-6.6/net/mpls/ |
| D | af_mpls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 /* max memory we will use for mpls_route */ 41 static int label_limit = (1 << 20) - 1; 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() 92 return dev && (dev->flags & IFF_UP) && netif_carrier_ok(dev); in mpls_output_possible() 98 return (u8 *)nh + rt->rt_via_offset; in __mpls_nh_via() 110 return nh->nh_labels * sizeof(struct mpls_shim_hdr); in mpls_nh_header_size() 116 return dev->mtu; in mpls_dev_mtu() 122 if (skb->len <= mtu) in mpls_pkt_too_big() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/spi/ |
| D | socionext,synquacer-spi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/socionext,synquacer-spi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Socionext SynQuacer HS-SPI Controller 10 - Masahisa Kojima <masahisa.kojima@linaro.org> 11 - Jassi Brar <jaswinder.singh@linaro.org> 14 - $ref: spi-controller.yaml# 18 const: socionext,synquacer-spi 26 - description: core clock [all …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
| D | tsx.c | 1 // SPDX-License-Identifier: GPL-2.0 48 /* Enable the RTM feature in the cpu */ in tsx_enable() 54 * can enumerate and use the TSX feature. in tsx_enable() 116 * tsx_disable() will change the state of the RTM and HLE CPUID in tsx_init() 133 * tsx_enable() will change the state of the RTM and HLE CPUID in tsx_init()
|
| /kernel/linux/linux-6.6/net/ipv4/ |
| D | fib_frontend.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 58 return -ENOMEM; in fib4_rules_init() 64 hlist_add_head_rcu(&local_table->tb_hlist, in fib4_rules_init() 65 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init() 66 hlist_add_head_rcu(&main_table->tb_hlist, in fib4_rules_init() 67 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init() 72 return -ENOMEM; in fib4_rules_init() 87 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table() 96 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table() 99 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table() [all …]
|
| D | ipmr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 84 return rcu_dereference(vif->dev); in vif_dev_read() 118 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list, \ 120 list_empty(&net->ipv4.mr_tables)) 128 ret = list_entry_rcu(net->ipv4.mr_tables.next, in ipmr_mr_table_iter() 131 ret = list_entry_rcu(mrt->list.next, in ipmr_mr_table_iter() 134 if (&ret->list == &net->ipv4.mr_tables) in ipmr_mr_table_iter() 144 if (mrt->id == id) in __ipmr_get_table() 173 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup() 184 struct ipmr_result *res = arg->result; in ipmr_rule_action() [all …]
|
| D | fib_semantics.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 71 for (nhsel = 0, nh = (fi)->fib_nh; \ 77 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 86 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \ 91 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 125 .error = -EINVAL, 129 .error = -EHOSTUNREACH, 133 .error = -EACCES, 137 .error = -EAGAIN, 141 .error = -EINVAL, [all …]
|
| D | route.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * ROUTE - implementation of the IP router. 34 * Alan Cox : Use __u32 properly 48 * Andi Kleen : Load-limit warning messages. 110 ((oldflp4)->flowi4_tos & (IPTOS_RT_MASK | RTO_ONLINK)) 222 seq_printf(seq, "%-127s\n", in rt_cache_seq_show() 243 for (cpu = *pos-1; cpu < nr_cpu_ids; ++cpu) { in rt_cpu_seq_start() 285 0, /* st->in_hit */ in rt_cpu_seq_show() 286 st->in_slow_tot, in rt_cpu_seq_show() 287 st->in_slow_mc, in rt_cpu_seq_show() [all …]
|
| /kernel/linux/linux-5.10/net/ipv4/ |
| D | fib_frontend.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 57 return -ENOMEM; in fib4_rules_init() 63 hlist_add_head_rcu(&local_table->tb_hlist, in fib4_rules_init() 64 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init() 65 hlist_add_head_rcu(&main_table->tb_hlist, in fib4_rules_init() 66 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init() 71 return -ENOMEM; in fib4_rules_init() 86 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table() 95 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table() 98 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table() [all …]
|
| D | ipmr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 113 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list, \ 115 list_empty(&net->ipv4.mr_tables)) 123 ret = list_entry_rcu(net->ipv4.mr_tables.next, in ipmr_mr_table_iter() 126 ret = list_entry_rcu(mrt->list.next, in ipmr_mr_table_iter() 129 if (&ret->list == &net->ipv4.mr_tables) in ipmr_mr_table_iter() 139 if (mrt->id == id) in ipmr_get_table() 158 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup() 169 struct ipmr_result *res = arg->result; in ipmr_rule_action() 172 switch (rule->action) { in ipmr_rule_action() [all …]
|
| D | fib_semantics.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 69 for (nhsel = 0, nh = (fi)->fib_nh; \ 75 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 84 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \ 89 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 123 .error = -EINVAL, 127 .error = -EHOSTUNREACH, 131 .error = -EACCES, 135 .error = -EAGAIN, 139 .error = -EINVAL, [all …]
|
| D | route.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * ROUTE - implementation of the IP router. 34 * Alan Cox : Use __u32 properly 48 * Andi Kleen : Load-limit warning messages. 117 ((oldflp4)->flowi4_tos & (IPTOS_RT_MASK | RTO_ONLINK)) 223 seq_printf(seq, "%-127s\n", in rt_cache_seq_show() 257 for (cpu = *pos-1; cpu < nr_cpu_ids; ++cpu) { in rt_cpu_seq_start() 298 0, /* st->in_hit */ in rt_cpu_seq_show() 299 st->in_slow_tot, in rt_cpu_seq_show() 300 st->in_slow_mc, in rt_cpu_seq_show() [all …]
|
| /kernel/linux/linux-6.6/net/ipv6/ |
| D | route.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * FIB front-end. 14 * - respect outgoing interface 15 * - select from (probably) reachable routers (i.e. 17 * - always select the same router if it is (probably) 18 * reachable. otherwise, round-robin the list. 79 RT6_NUD_FAIL_HARD = -3, 80 RT6_NUD_FAIL_PROBE = -2, 81 RT6_NUD_FAIL_DO_RR = -1, 143 rt->dst.rt_uncached_list = ul; in rt6_uncached_list_add() [all …]
|
| /kernel/linux/linux-6.6/net/mctp/ |
| D | route.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Management Component Transport Protocol (MCTP) - routing 50 /* TODO: look up in skb->cb? */ in mctp_lookup_bind() 56 type = (*(u8 *)skb->data) & 0x7f; in mctp_lookup_bind() 58 sk_for_each_rcu(sk, &net->mctp.binds) { in mctp_lookup_bind() 61 if (msk->bind_net != MCTP_NET_ANY && msk->bind_net != cb->net) in mctp_lookup_bind() 64 if (msk->bind_type != type) in mctp_lookup_bind() 67 if (!mctp_address_matches(msk->bind_addr, mh->dest)) in mctp_lookup_bind() 79 if (!mctp_address_matches(key->local_addr, local)) in mctp_key_match() 82 if (key->peer_addr != peer) in mctp_key_match() [all …]
|
| /kernel/linux/linux-5.10/net/ipv6/ |
| D | route.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * FIB front-end. 14 * - respect outgoing interface 15 * - select from (probably) reachable routers (i.e. 17 * - always select the same router if it is (probably) 18 * reachable. otherwise, round-robin the list. 79 RT6_NUD_FAIL_HARD = -3, 80 RT6_NUD_FAIL_PROBE = -2, 81 RT6_NUD_FAIL_DO_RR = -1, 140 rt->rt6i_uncached_list = ul; in rt6_uncached_list_add() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/fddi/skfp/h/ |
| D | skfbi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 * FDDI-Fx (x := {I(SA), P(CI)}) 19 /*--------------------------------------------------------------------------*/ 41 /* 0x0001 - 0x0003: reserved */ 49 /* 0x0010 - 0x006b: formac+ (supernet_3) fequently used registers */ 52 #define B0_ST1U 0x0010 /* read upper 16-bit of status reg 1 */ 53 #define B0_ST1L 0x0014 /* read lower 16-bit of status reg 1 */ 54 #define B0_ST2U 0x0018 /* read upper 16-bit of status reg 2 */ 55 #define B0_ST2L 0x001c /* read lower 16-bit of status reg 2 */ 59 #define B0_MDRU 0x0028 /* r/w upper 16-bit of mem. data reg */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/fddi/skfp/h/ |
| D | skfbi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 * FDDI-Fx (x := {I(SA), P(CI)}) 19 /*--------------------------------------------------------------------------*/ 41 /* 0x0001 - 0x0003: reserved */ 49 /* 0x0010 - 0x006b: formac+ (supernet_3) fequently used registers */ 52 #define B0_ST1U 0x0010 /* read upper 16-bit of status reg 1 */ 53 #define B0_ST1L 0x0014 /* read lower 16-bit of status reg 1 */ 54 #define B0_ST2U 0x0018 /* read upper 16-bit of status reg 2 */ 55 #define B0_ST2L 0x001c /* read lower 16-bit of status reg 2 */ 59 #define B0_MDRU 0x0028 /* r/w upper 16-bit of mem. data reg */ [all …]
|
| /kernel/linux/linux-5.10/drivers/spi/ |
| D | spi-synquacer.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (c) 2015-2018 Socionext Inc. 6 // Copyright (c) 2018-2019 Linaro Ltd. 108 (SYNQUACER_HSSPI_FIFO_DEPTH - SYNQUACER_HSSPI_FIFO_TX_THRESHOLD) 128 bool aces, rtm; member 143 u32 len = readl(sspi->regs + SYNQUACER_HSSPI_REG_DMSTATUS); in read_fifo() 147 len = min(len, sspi->rx_words); in read_fifo() 149 switch (sspi->bpw) { in read_fifo() 151 u8 *buf = sspi->rx_buf; in read_fifo() 153 ioread8_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, in read_fifo() [all …]
|
| /kernel/linux/linux-6.6/drivers/spi/ |
| D | spi-synquacer.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (c) 2015-2018 Socionext Inc. 6 // Copyright (c) 2018-2019 Linaro Ltd. 108 (SYNQUACER_HSSPI_FIFO_DEPTH - SYNQUACER_HSSPI_FIFO_TX_THRESHOLD) 128 bool aces, rtm; member 143 u32 len = readl(sspi->regs + SYNQUACER_HSSPI_REG_DMSTATUS); in read_fifo() 147 len = min(len, sspi->rx_words); in read_fifo() 149 switch (sspi->bpw) { in read_fifo() 151 u8 *buf = sspi->rx_buf; in read_fifo() 153 ioread8_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, in read_fifo() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/intel/avs/boards/ |
| D | nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 17 #include <sound/soc-acpi.h> 20 #define SKL_NUVOTON_CODEC_DAI "nau8825-hifi" 25 struct snd_soc_dapm_context *dapm = w->dapm; in avs_nau8825_clock_control() 26 struct snd_soc_card *card = dapm->card; in avs_nau8825_clock_control() 32 dev_err(card->dev, "Codec dai not found\n"); in avs_nau8825_clock_control() 33 return -EINVAL; in avs_nau8825_clock_control() 42 dev_err(card->dev, "Set sysclk failed: %d\n", ret); in avs_nau8825_clock_control() 82 struct snd_soc_card *card = runtime->card; in avs_nau8825_codec_init() [all …]
|