/Linux-v6.1/kernel/locking/ |
D | rwbase_rt.c | 71 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_lock() local 74 raw_spin_lock_irq(&rtm->wait_lock); in __rwbase_read_lock() 81 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_lock() 121 ret = rwbase_rtmutex_slowlock_locked(rtm, state); in __rwbase_read_lock() 132 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_lock() 134 rwbase_rtmutex_unlock(rtm); in __rwbase_read_lock() 152 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_unlock() local 156 raw_spin_lock_irq(&rtm->wait_lock); in __rwbase_read_unlock() 163 owner = rt_mutex_owner(rtm); in __rwbase_read_unlock() 169 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_unlock() [all …]
|
D | ww_rt_mutex.c | 14 struct rt_mutex *rtm = &lock->base; in ww_mutex_trylock() local 17 return rt_mutex_trylock(rtm); in ww_mutex_trylock() 27 if (__rt_mutex_trylock(&rtm->rtmutex)) { in ww_mutex_trylock() 29 mutex_acquire_nest(&rtm->dep_map, 0, 1, &ww_ctx->dep_map, _RET_IP_); in ww_mutex_trylock() 42 struct rt_mutex *rtm = &lock->base; in __ww_rt_mutex_lock() local 63 mutex_acquire_nest(&rtm->dep_map, 0, 0, nest_lock, ip); in __ww_rt_mutex_lock() 65 if (likely(rt_mutex_cmpxchg_acquire(&rtm->rtmutex, NULL, current))) { in __ww_rt_mutex_lock() 71 ret = rt_mutex_slowlock(&rtm->rtmutex, ww_ctx, state); in __ww_rt_mutex_lock() 74 mutex_release(&rtm->dep_map, ip); in __ww_rt_mutex_lock() 94 struct rt_mutex *rtm = &lock->base; in ww_mutex_unlock() local [all …]
|
D | spinlock_rt.c | 38 static __always_inline void rtlock_lock(struct rt_mutex_base *rtm) in rtlock_lock() argument 40 if (unlikely(!rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rtlock_lock() 41 rtlock_slowlock(rtm); in rtlock_lock() 155 rwbase_rtmutex_lock_state(struct rt_mutex_base *rtm, unsigned int state) in rwbase_rtmutex_lock_state() argument 157 if (unlikely(!rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rwbase_rtmutex_lock_state() 158 rtlock_slowlock(rtm); in rwbase_rtmutex_lock_state() 163 rwbase_rtmutex_slowlock_locked(struct rt_mutex_base *rtm, unsigned int state) in rwbase_rtmutex_slowlock_locked() argument 165 rtlock_slowlock_locked(rtm); in rwbase_rtmutex_slowlock_locked() 169 static __always_inline void rwbase_rtmutex_unlock(struct rt_mutex_base *rtm) in rwbase_rtmutex_unlock() argument 171 if (likely(rt_mutex_cmpxchg_acquire(rtm, current, NULL))) in rwbase_rtmutex_unlock() [all …]
|
D | rtmutex.c | 33 # define ww_container_of(rtm) NULL argument 61 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base) argument 1130 struct rt_mutex *rtm; in task_blocks_on_rt_mutex() local 1133 rtm = container_of(lock, struct rt_mutex, rtmutex); in task_blocks_on_rt_mutex() 1134 res = __ww_mutex_add_waiter(waiter, rtm, ww_ctx); in task_blocks_on_rt_mutex() 1489 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in rt_mutex_slowlock_block() local 1508 ret = __ww_mutex_check_kill(rtm, waiter, ww_ctx); in rt_mutex_slowlock_block() 1567 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in __rt_mutex_slowlock() local 1568 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock() 1576 __ww_mutex_check_waiters(rtm, ww_ctx); in __rt_mutex_slowlock() [all …]
|
D | rwsem.c | 1404 #define rwbase_rtmutex_lock_state(rtm, state) \ argument 1405 __rt_mutex_lock(rtm, state) 1407 #define rwbase_rtmutex_slowlock_locked(rtm, state) \ argument 1408 __rt_mutex_slowlock_locked(rtm, NULL, state) 1410 #define rwbase_rtmutex_unlock(rtm) \ argument 1411 __rt_mutex_unlock(rtm) 1413 #define rwbase_rtmutex_trylock(rtm) \ argument 1414 __rt_mutex_trylock(rtm)
|
/Linux-v6.1/net/phonet/ |
D | pn_netlink.c | 163 struct rtmsg *rtm; in fill_route() local 166 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); in fill_route() 170 rtm = nlmsg_data(nlh); in fill_route() 171 rtm->rtm_family = AF_PHONET; in fill_route() 172 rtm->rtm_dst_len = 6; in fill_route() 173 rtm->rtm_src_len = 0; in fill_route() 174 rtm->rtm_tos = 0; in fill_route() 175 rtm->rtm_table = RT_TABLE_MAIN; in fill_route() 176 rtm->rtm_protocol = RTPROT_STATIC; in fill_route() 177 rtm->rtm_scope = RT_SCOPE_UNIVERSE; in fill_route() [all …]
|
/Linux-v6.1/drivers/rtc/ |
D | rtc-ls1x.c | 84 static int ls1x_rtc_read_time(struct device *dev, struct rtc_time *rtm) in ls1x_rtc_read_time() argument 92 memset(rtm, 0, sizeof(struct rtc_time)); in ls1x_rtc_read_time() 96 rtc_time64_to_tm(t, rtm); in ls1x_rtc_read_time() 101 static int ls1x_rtc_set_time(struct device *dev, struct rtc_time *rtm) in ls1x_rtc_set_time() argument 106 v = ((rtm->tm_mon + 1) << LS1X_MONTH_OFFSET) in ls1x_rtc_set_time() 107 | (rtm->tm_mday << LS1X_DAY_OFFSET) in ls1x_rtc_set_time() 108 | (rtm->tm_hour << LS1X_HOUR_OFFSET) in ls1x_rtc_set_time() 109 | (rtm->tm_min << LS1X_MIN_OFFSET) in ls1x_rtc_set_time() 110 | (rtm->tm_sec << LS1X_SEC_OFFSET); in ls1x_rtc_set_time() 123 t = rtm->tm_year + 1900; in ls1x_rtc_set_time()
|
/Linux-v6.1/net/mpls/ |
D | af_mpls.c | 1806 struct rtmsg *rtm; in rtm_to_route_config() local 1811 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_route_config() 1817 rtm = nlmsg_data(nlh); in rtm_to_route_config() 1819 if (rtm->rtm_family != AF_MPLS) { in rtm_to_route_config() 1823 if (rtm->rtm_dst_len != 20) { in rtm_to_route_config() 1827 if (rtm->rtm_src_len != 0) { in rtm_to_route_config() 1831 if (rtm->rtm_tos != 0) { in rtm_to_route_config() 1835 if (rtm->rtm_table != RT_TABLE_MAIN) { in rtm_to_route_config() 1846 if (rtm->rtm_scope != RT_SCOPE_UNIVERSE) { in rtm_to_route_config() 1851 if (rtm->rtm_type != RTN_UNICAST) { in rtm_to_route_config() [all …]
|
/Linux-v6.1/net/ipv4/ |
D | fib_frontend.c | 731 struct rtmsg *rtm; in rtm_to_fib_config() local 733 err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX, in rtm_to_fib_config() 740 rtm = nlmsg_data(nlh); in rtm_to_fib_config() 742 if (!inet_validate_dscp(rtm->rtm_tos)) { in rtm_to_fib_config() 748 cfg->fc_dscp = inet_dsfield_to_dscp(rtm->rtm_tos); in rtm_to_fib_config() 750 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib_config() 751 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config() 752 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib_config() 753 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config() 754 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config() [all …]
|
D | ipmr.c | 2243 struct rtmsg *rtm, u32 portid) in ipmr_get_route() argument 2294 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ipmr_get_route() 2304 struct rtmsg *rtm; in ipmr_fill_mroute() local 2307 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ipmr_fill_mroute() 2311 rtm = nlmsg_data(nlh); in ipmr_fill_mroute() 2312 rtm->rtm_family = RTNL_FAMILY_IPMR; in ipmr_fill_mroute() 2313 rtm->rtm_dst_len = 32; in ipmr_fill_mroute() 2314 rtm->rtm_src_len = 32; in ipmr_fill_mroute() 2315 rtm->rtm_tos = 0; in ipmr_fill_mroute() 2316 rtm->rtm_table = mrt->id; in ipmr_fill_mroute() [all …]
|
D | fib_semantics.c | 1778 struct rtmsg *rtm; in fib_dump_info() local 1780 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in fib_dump_info() 1784 rtm = nlmsg_data(nlh); in fib_dump_info() 1785 rtm->rtm_family = AF_INET; in fib_dump_info() 1786 rtm->rtm_dst_len = fri->dst_len; in fib_dump_info() 1787 rtm->rtm_src_len = 0; in fib_dump_info() 1788 rtm->rtm_tos = inet_dscp_to_dsfield(fri->dscp); in fib_dump_info() 1790 rtm->rtm_table = tb_id; in fib_dump_info() 1792 rtm->rtm_table = RT_TABLE_COMPAT; in fib_dump_info() 1795 rtm->rtm_type = fri->type; in fib_dump_info() [all …]
|
D | ipmr_base.c | 209 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute() argument 220 rtm->rtm_flags |= RTNH_F_UNRESOLVED; in mr_fill_mroute() 233 rtm->rtm_flags |= RTNH_F_OFFLOAD; in mr_fill_mroute() 274 rtm->rtm_type = RTN_MULTICAST; in mr_fill_mroute()
|
D | route.c | 3216 struct rtmsg *rtm; in inet_rtm_valid_getroute_req() local 3219 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { in inet_rtm_valid_getroute_req() 3226 return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req() 3229 rtm = nlmsg_data(nlh); in inet_rtm_valid_getroute_req() 3230 if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || in inet_rtm_valid_getroute_req() 3231 (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || in inet_rtm_valid_getroute_req() 3232 rtm->rtm_table || rtm->rtm_protocol || in inet_rtm_valid_getroute_req() 3233 rtm->rtm_scope || rtm->rtm_type) { in inet_rtm_valid_getroute_req() 3238 if (rtm->rtm_flags & ~(RTM_F_NOTIFY | in inet_rtm_valid_getroute_req() 3245 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req() [all …]
|
/Linux-v6.1/sound/soc/intel/catpt/ |
D | pcm.c | 77 struct snd_soc_pcm_runtime *rtm = asoc_substream_to_rtd(substream); in catpt_get_stream_template() local 78 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtm, 0); in catpt_get_stream_template() 156 struct snd_pcm_runtime *rtm = substream->runtime; in catpt_arrange_page_table() local 160 pages = snd_sgbuf_aligned_pages(rtm->dma_bytes); in catpt_arrange_page_table() 377 struct snd_pcm_runtime *rtm = substream->runtime; in catpt_dai_hw_params() local 403 rinfo.num_pages = DIV_ROUND_UP(rtm->dma_bytes, PAGE_SIZE); in catpt_dai_hw_params() 404 rinfo.size = rtm->dma_bytes; in catpt_dai_hw_params() 581 struct snd_soc_pcm_runtime *rtm) in catpt_component_pcm_construct() argument 585 snd_pcm_set_managed_buffer_all(rtm->pcm, SNDRV_DMA_TYPE_DEV_SG, in catpt_component_pcm_construct() 596 struct snd_soc_pcm_runtime *rtm = asoc_substream_to_rtd(substream); in catpt_component_open() local [all …]
|
/Linux-v6.1/net/ipv6/ |
D | ip6mr.c | 2283 int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm, in ip6mr_get_route() argument 2348 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ip6mr_get_route() 2358 struct rtmsg *rtm; in ip6mr_fill_mroute() local 2361 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ip6mr_fill_mroute() 2365 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute() 2366 rtm->rtm_family = RTNL_FAMILY_IP6MR; in ip6mr_fill_mroute() 2367 rtm->rtm_dst_len = 128; in ip6mr_fill_mroute() 2368 rtm->rtm_src_len = 128; in ip6mr_fill_mroute() 2369 rtm->rtm_tos = 0; in ip6mr_fill_mroute() 2370 rtm->rtm_table = mrt->id; in ip6mr_fill_mroute() [all …]
|
D | route.c | 5000 struct rtmsg *rtm; in rtm_to_fib6_config() local 5005 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_fib6_config() 5011 rtm = nlmsg_data(nlh); in rtm_to_fib6_config() 5013 if (rtm->rtm_tos) { in rtm_to_fib6_config() 5020 .fc_table = rtm->rtm_table, in rtm_to_fib6_config() 5021 .fc_dst_len = rtm->rtm_dst_len, in rtm_to_fib6_config() 5022 .fc_src_len = rtm->rtm_src_len, in rtm_to_fib6_config() 5024 .fc_protocol = rtm->rtm_protocol, in rtm_to_fib6_config() 5025 .fc_type = rtm->rtm_type, in rtm_to_fib6_config() 5032 if (rtm->rtm_type == RTN_UNREACHABLE || in rtm_to_fib6_config() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/spi/ |
D | spi-synquacer.txt | 12 - socionext,use-rtm: boolean, if required to use "retimed clock" for RX 25 socionext,use-rtm;
|
/Linux-v6.1/net/mctp/ |
D | route.c | 1159 struct nlattr **tb, struct rtmsg **rtm, in mctp_route_nlparse() argument 1186 *rtm = nlmsg_data(nlh); in mctp_route_nlparse() 1187 if ((*rtm)->rtm_family != AF_MCTP) { in mctp_route_nlparse() 1220 struct rtmsg *rtm; in mctp_newroute() local 1225 &rtm, &mdev, &daddr_start); in mctp_newroute() 1229 if (rtm->rtm_type != RTN_UNICAST) { in mctp_newroute() 1244 if (rtm->rtm_type != RTN_UNICAST) in mctp_newroute() 1247 rc = mctp_route_add(mdev, daddr_start, rtm->rtm_dst_len, mtu, in mctp_newroute() 1248 rtm->rtm_type); in mctp_newroute() 1258 struct rtmsg *rtm; in mctp_delroute() local [all …]
|
/Linux-v6.1/include/linux/ |
D | mroute.h | 87 struct rtmsg *rtm, u32 portid);
|
D | mroute6.h | 98 struct rtmsg *rtm, u32 portid);
|
D | mroute_base.h | 289 struct mr_mfc *c, struct rtmsg *rtm); 341 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute() argument
|
/Linux-v6.1/sound/soc/intel/avs/boards/ |
D | hdaudio.c | 172 static int avs_probing_link_init(struct snd_soc_pcm_runtime *rtm) in avs_probing_link_init() argument 177 struct snd_soc_card *card = rtm->card; in avs_probing_link_init()
|
D | nau8825.c | 142 struct snd_soc_pcm_runtime *rtm = asoc_substream_to_rtd(substream); in avs_nau8825_trigger() local 143 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtm, 0); in avs_nau8825_trigger()
|
/Linux-v6.1/lib/zstd/common/ |
D | cpu.h | 169 B(rtm, 11)
|
/Linux-v6.1/drivers/spi/ |
D | spi-synquacer.c | 128 bool aces, rtm; member 309 if (sspi->rtm) in synquacer_spi_config() 671 sspi->rtm = device_property_read_bool(&pdev->dev, "socionext,use-rtm"); in synquacer_spi_probe()
|