Home
last modified time | relevance | path

Searched refs:rtm (Results 1 – 25 of 29) sorted by relevance

12

/linux/kernel/locking/
A Drwbase_rt.c71 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()
130 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_lock()
132 rwbase_rtmutex_unlock(rtm); in __rwbase_read_lock()
148 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_unlock() local
152 raw_spin_lock_irq(&rtm->wait_lock); in __rwbase_read_unlock()
159 owner = rt_mutex_owner(rtm); in __rwbase_read_unlock()
165 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_unlock()
193 rwbase_rtmutex_unlock(rtm); in __rwbase_write_unlock()
[all …]
A Dww_rt_mutex.c14 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()
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
98 mutex_release(&rtm->dep_map, _RET_IP_); in ww_mutex_unlock()
[all …]
A Dspinlock_rt.c38 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()
165 rtlock_slowlock_locked(rtm); in rwbase_rtmutex_slowlock_locked()
171 if (likely(rt_mutex_cmpxchg_acquire(rtm, current, NULL))) in rwbase_rtmutex_unlock()
174 rt_mutex_slowunlock(rtm); in rwbase_rtmutex_unlock()
179 if (likely(rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rwbase_rtmutex_trylock()
[all …]
A Drtmutex.c31 # define ww_container_of(rtm) NULL argument
59 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base) argument
1125 struct rt_mutex *rtm; in task_blocks_on_rt_mutex() local
1128 rtm = container_of(lock, struct rt_mutex, rtmutex); in task_blocks_on_rt_mutex()
1129 res = __ww_mutex_add_waiter(waiter, rtm, ww_ctx); in task_blocks_on_rt_mutex()
1485 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in rt_mutex_slowlock_block() local
1504 ret = __ww_mutex_check_kill(rtm, waiter, ww_ctx); in rt_mutex_slowlock_block()
1563 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in __rt_mutex_slowlock() local
1564 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock()
1572 __ww_mutex_check_waiters(rtm, ww_ctx); in __rt_mutex_slowlock()
[all …]
A Drwsem.c1365 #define rwbase_rtmutex_lock_state(rtm, state) \ argument
1366 __rt_mutex_lock(rtm, state)
1368 #define rwbase_rtmutex_slowlock_locked(rtm, state) \ argument
1369 __rt_mutex_slowlock_locked(rtm, NULL, state)
1371 #define rwbase_rtmutex_unlock(rtm) \ argument
1372 __rt_mutex_unlock(rtm)
1374 #define rwbase_rtmutex_trylock(rtm) \ argument
1375 __rt_mutex_trylock(rtm)
/linux/net/phonet/
A Dpn_netlink.c163 struct rtmsg *rtm; in fill_route() local
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()
178 rtm->rtm_type = RTN_UNICAST; in fill_route()
179 rtm->rtm_flags = 0; in fill_route()
224 struct rtmsg *rtm; in route_doit() local
241 rtm = nlmsg_data(nlh); in route_doit()
[all …]
/linux/drivers/rtc/
A Drtc-ls1x.c84 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/net/mpls/
A Daf_mpls.c1807 struct rtmsg *rtm; in rtm_to_route_config() local
1989 struct rtmsg *rtm; in mpls_dump_route() local
1999 rtm->rtm_tos = 0; in mpls_dump_route()
2004 rtm->rtm_flags = 0; in mpls_dump_route()
2108 struct rtmsg *rtm; in mpls_valid_fib_dump_req() local
2117 if (rtm->rtm_dst_len || rtm->rtm_src_len || rtm->rtm_tos || in mpls_valid_fib_dump_req()
2118 rtm->rtm_table || rtm->rtm_scope || rtm->rtm_type || in mpls_valid_fib_dump_req()
2300 struct rtmsg *rtm; in mpls_valid_getroute_req() local
2314 if ((rtm->rtm_dst_len && rtm->rtm_dst_len != 20) || in mpls_valid_getroute_req()
2315 rtm->rtm_src_len || rtm->rtm_tos || rtm->rtm_table || in mpls_valid_getroute_req()
[all …]
/linux/net/ipv4/
A Dfib_frontend.c728 struct rtmsg *rtm; in rtm_to_fib_config() local
737 rtm = nlmsg_data(nlh); in rtm_to_fib_config()
739 cfg->fc_tos = rtm->rtm_tos; in rtm_to_fib_config()
740 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config()
742 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config()
743 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config()
744 cfg->fc_flags = rtm->rtm_flags; in rtm_to_fib_config()
899 struct rtmsg *rtm; in ip_valid_fib_dump_req() local
909 rtm = nlmsg_data(nlh); in ip_valid_fib_dump_req()
910 if (rtm->rtm_dst_len || rtm->rtm_src_len || rtm->rtm_tos || in ip_valid_fib_dump_req()
[all …]
A Dipmr.c2301 struct rtmsg *rtm; in ipmr_fill_mroute() local
2308 rtm = nlmsg_data(nlh); in ipmr_fill_mroute()
2312 rtm->rtm_tos = 0; in ipmr_fill_mroute()
2322 rtm->rtm_flags = 0; in ipmr_fill_mroute()
2465 struct rtmsg *rtm; in ipmr_rtm_valid_getroute_req() local
2478 if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || in ipmr_rtm_valid_getroute_req()
2479 (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || in ipmr_rtm_valid_getroute_req()
2480 rtm->rtm_tos || rtm->rtm_table || rtm->rtm_protocol || in ipmr_rtm_valid_getroute_req()
2481 rtm->rtm_scope || rtm->rtm_type || rtm->rtm_flags) { in ipmr_rtm_valid_getroute_req()
2647 struct rtmsg *rtm; in rtm_to_ipmr_mfcc() local
[all …]
A Dfib_semantics.c1780 struct rtmsg *rtm; in fib_dump_info() local
1786 rtm = nlmsg_data(nlh); in fib_dump_info()
1787 rtm->rtm_family = AF_INET; in fib_dump_info()
1789 rtm->rtm_src_len = 0; in fib_dump_info()
1790 rtm->rtm_tos = fri->tos; in fib_dump_info()
1792 rtm->rtm_table = tb_id; in fib_dump_info()
1797 rtm->rtm_type = fri->type; in fib_dump_info()
1798 rtm->rtm_flags = fi->fib_flags; in fib_dump_info()
1802 if (rtm->rtm_dst_len && in fib_dump_info()
1831 rtm->rtm_flags = flags; in fib_dump_info()
[all …]
A Droute.c3193 struct rtmsg *rtm; in inet_rtm_valid_getroute_req() local
3206 rtm = nlmsg_data(nlh); in inet_rtm_valid_getroute_req()
3207 if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || in inet_rtm_valid_getroute_req()
3208 (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || in inet_rtm_valid_getroute_req()
3209 rtm->rtm_table || rtm->rtm_protocol || in inet_rtm_valid_getroute_req()
3210 rtm->rtm_scope || rtm->rtm_type) { in inet_rtm_valid_getroute_req()
3215 if (rtm->rtm_flags & ~(RTM_F_NOTIFY | in inet_rtm_valid_getroute_req()
3268 struct rtmsg *rtm; in inet_rtm_getroute() local
3281 rtm = nlmsg_data(nlh); in inet_rtm_getroute()
3335 rtm->rtm_tos & IPTOS_RT_MASK, dev, in inet_rtm_getroute()
[all …]
A Dipmr_base.c209 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute() argument
219 rtm->rtm_flags |= RTNH_F_UNRESOLVED; in mr_fill_mroute()
229 rtm->rtm_flags |= RTNH_F_OFFLOAD; in mr_fill_mroute()
266 rtm->rtm_type = RTN_MULTICAST; in mr_fill_mroute()
/linux/net/decnet/netfilter/
A Ddn_rtmsg.c38 struct nf_dn_rtmsg *rtm; in dnrmg_build_message() local
54 rtm = (struct nf_dn_rtmsg *)nlmsg_data(nlh); in dnrmg_build_message()
55 rtm->nfdn_ifindex = rt_skb->dev->ifindex; in dnrmg_build_message()
56 ptr = NFDN_RTMSG(rtm); in dnrmg_build_message()
/linux/sound/soc/intel/catpt/
A Dpcm.c77 struct snd_soc_pcm_runtime *rtm = substream->private_data; 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()
381 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
598 if (rtm->dai_link->no_pcm) in catpt_component_open()
611 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtm, 0); in catpt_component_pointer()
[all …]
/linux/net/decnet/
A Ddn_table.c305 struct rtmsg *rtm; in dn_fib_dump_info() local
312 rtm = nlmsg_data(nlh); in dn_fib_dump_info()
313 rtm->rtm_family = AF_DECnet; in dn_fib_dump_info()
314 rtm->rtm_dst_len = dst_len; in dn_fib_dump_info()
315 rtm->rtm_src_len = 0; in dn_fib_dump_info()
316 rtm->rtm_tos = 0; in dn_fib_dump_info()
317 rtm->rtm_table = tb_id; in dn_fib_dump_info()
318 rtm->rtm_flags = fi->fib_flags; in dn_fib_dump_info()
319 rtm->rtm_scope = scope; in dn_fib_dump_info()
320 rtm->rtm_type = type; in dn_fib_dump_info()
[all …]
A Ddn_fib.c563 struct rtmsg rtm; in fib_magic() member
589 memset(&req.rtm, 0, sizeof(req.rtm)); in fib_magic()
605 req.rtm.rtm_dst_len = dst_len; in fib_magic()
606 req.rtm.rtm_table = tb->n; in fib_magic()
607 req.rtm.rtm_protocol = RTPROT_KERNEL; in fib_magic()
608 req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST); in fib_magic()
609 req.rtm.rtm_type = type; in fib_magic()
612 tb->insert(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic()
614 tb->delete(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic()
/linux/net/mctp/
A Droute.c1088 struct nlattr **tb, struct rtmsg **rtm, in mctp_route_nlparse() argument
1115 *rtm = nlmsg_data(nlh); in mctp_route_nlparse()
1116 if ((*rtm)->rtm_family != AF_MCTP) { in mctp_route_nlparse()
1149 struct rtmsg *rtm; in mctp_newroute() local
1154 &rtm, &mdev, &daddr_start); in mctp_newroute()
1158 if (rtm->rtm_type != RTN_UNICAST) { in mctp_newroute()
1173 if (rtm->rtm_type != RTN_UNICAST) in mctp_newroute()
1177 rtm->rtm_type); in mctp_newroute()
1187 struct rtmsg *rtm; in mctp_delroute() local
1191 &rtm, &mdev, &daddr_start); in mctp_delroute()
[all …]
/linux/net/ipv6/
A Droute.c5013 struct rtmsg *rtm; in rtm_to_fib6_config() local
5024 rtm = nlmsg_data(nlh); in rtm_to_fib6_config()
5620 struct rtmsg *rtm; in rt6_fill_node() local
5641 rtm->rtm_tos = 0; in rt6_fill_node()
5651 rtm->rtm_flags = 0; in rt6_fill_node()
5962 struct rtmsg *rtm; in inet6_rtm_valid_getroute_req() local
5976 if ((rtm->rtm_src_len && rtm->rtm_src_len != 128) || in inet6_rtm_valid_getroute_req()
5977 (rtm->rtm_dst_len && rtm->rtm_dst_len != 128) || in inet6_rtm_valid_getroute_req()
5978 rtm->rtm_table || rtm->rtm_protocol || rtm->rtm_scope || in inet6_rtm_valid_getroute_req()
5979 rtm->rtm_type) { in inet6_rtm_valid_getroute_req()
[all …]
A Dip6mr.c2330 struct rtmsg *rtm; in ip6mr_fill_mroute() local
2337 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute()
2338 rtm->rtm_family = RTNL_FAMILY_IP6MR; in ip6mr_fill_mroute()
2339 rtm->rtm_dst_len = 128; in ip6mr_fill_mroute()
2340 rtm->rtm_src_len = 128; in ip6mr_fill_mroute()
2341 rtm->rtm_tos = 0; in ip6mr_fill_mroute()
2342 rtm->rtm_table = mrt->id; in ip6mr_fill_mroute()
2345 rtm->rtm_type = RTN_MULTICAST; in ip6mr_fill_mroute()
2348 rtm->rtm_protocol = RTPROT_STATIC; in ip6mr_fill_mroute()
2350 rtm->rtm_protocol = RTPROT_MROUTED; in ip6mr_fill_mroute()
[all …]
/linux/Documentation/devicetree/bindings/spi/
A Dspi-synquacer.txt12 - socionext,use-rtm: boolean, if required to use "retimed clock" for RX
25 socionext,use-rtm;
/linux/include/linux/
A Dmroute.h87 struct rtmsg *rtm, u32 portid);
A Dmroute6.h98 struct rtmsg *rtm, u32 portid);
A Dmroute_base.h284 struct mr_mfc *c, struct rtmsg *rtm);
336 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute() argument
/linux/drivers/spi/
A Dspi-synquacer.c128 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()

Completed in 84 milliseconds

12