Home
last modified time | relevance | path

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

/linux/kernel/locking/
H A Drwbase_rt.c71 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_lock() local
75 raw_spin_lock_irq(&rtm->wait_lock); in __rwbase_read_lock()
113 ret = rwbase_rtmutex_slowlock_locked(rtm, state); in __rwbase_read_lock()
124 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_lock()
126 rwbase_rtmutex_unlock(rtm); in __rwbase_read_lock()
147 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_unlock() local
151 raw_spin_lock_irq(&rtm->wait_lock); in __rwbase_read_unlock()
158 owner = rt_mutex_owner(rtm); in __rwbase_read_unlock()
164 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_unlock()
184 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_write_unlock() local
[all …]
H 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()
65 if (likely(rt_mutex_try_acquire(&rtm->rtmutex))) { 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 …]
H A Dspinlock_rt.c38 static __always_inline void rtlock_lock(struct rt_mutex_base *rtm) in rtlock_lock() argument
42 if (unlikely(!rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rtlock_lock()
43 rtlock_slowlock(rtm); in rtlock_lock()
157 rwbase_rtmutex_lock_state(struct rt_mutex_base *rtm, unsigned int state) in rwbase_rtmutex_lock_state() argument
159 if (unlikely(!rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rwbase_rtmutex_lock_state()
160 rtlock_slowlock(rtm); in rwbase_rtmutex_lock_state()
165 rwbase_rtmutex_slowlock_locked(struct rt_mutex_base *rtm, unsigned int state) in rwbase_rtmutex_slowlock_locked() argument
167 rtlock_slowlock_locked(rtm); in rwbase_rtmutex_slowlock_locked()
171 static __always_inline void rwbase_rtmutex_unlock(struct rt_mutex_base *rtm) in rwbase_rtmutex_unlock() argument
173 if (likely(rt_mutex_cmpxchg_acquire(rtm, current, NULL))) in rwbase_rtmutex_unlock()
[all …]
H A Drtmutex.c33 # define ww_container_of(rtm) NULL argument
61 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base) argument
1244 struct rt_mutex *rtm; in task_blocks_on_rt_mutex() local
1247 rtm = container_of(lock, struct rt_mutex, rtmutex); in task_blocks_on_rt_mutex()
1248 res = __ww_mutex_add_waiter(waiter, rtm, ww_ctx); in task_blocks_on_rt_mutex()
1605 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in rt_mutex_slowlock_block() local
1624 ret = __ww_mutex_check_kill(rtm, waiter, ww_ctx); in rt_mutex_slowlock_block()
1684 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in __rt_mutex_slowlock() local
1685 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock()
[all...]
H A Drwsem.c1415 #define rwbase_rtmutex_lock_state(rtm, state) \ argument
1416 __rt_mutex_lock(rtm, state)
1418 #define rwbase_rtmutex_slowlock_locked(rtm, state) \ argument
1419 __rt_mutex_slowlock_locked(rtm, NULL, state)
1421 #define rwbase_rtmutex_unlock(rtm) \ argument
1422 __rt_mutex_unlock(rtm)
1424 #define rwbase_rtmutex_trylock(rtm) \ argument
1425 __rt_mutex_trylock(rtm)
/linux/net/phonet/
H A Dpn_netlink.c163 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/net/mpls/
H A Daf_mpls.c1794 struct rtmsg *rtm; in rtm_to_route_config() local
1799 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_route_config()
1805 rtm = nlmsg_data(nlh); in rtm_to_route_config()
1807 if (rtm->rtm_family != AF_MPLS) { in rtm_to_route_config()
1811 if (rtm->rtm_dst_len != 20) { in rtm_to_route_config()
1815 if (rtm->rtm_src_len != 0) { in rtm_to_route_config()
1819 if (rtm->rtm_tos != 0) { in rtm_to_route_config()
1823 if (rtm->rtm_table != RT_TABLE_MAIN) { in rtm_to_route_config()
1834 if (rtm->rtm_scope != RT_SCOPE_UNIVERSE) { in rtm_to_route_config()
1839 if (rtm->rtm_type != RTN_UNICAST) { in rtm_to_route_config()
[all …]
/linux/net/ipv4/
H A Dfib_frontend.c734 struct rtmsg *rtm; in rtm_to_fib_config() local
736 err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX, in rtm_to_fib_config()
743 rtm = nlmsg_data(nlh); in rtm_to_fib_config()
745 if (!inet_validate_dscp(rtm->rtm_tos)) { in rtm_to_fib_config()
751 cfg->fc_dscp = inet_dsfield_to_dscp(rtm->rtm_tos); in rtm_to_fib_config()
753 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib_config()
754 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config()
755 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib_config()
756 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config()
757 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config()
[all …]
H A Dipmr.c2259 struct rtmsg *rtm, u32 portid) in ipmr_get_route() argument
2310 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ipmr_get_route()
2320 struct rtmsg *rtm; in ipmr_fill_mroute() local
2323 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ipmr_fill_mroute()
2327 rtm = nlmsg_data(nlh); in ipmr_fill_mroute()
2328 rtm->rtm_family = RTNL_FAMILY_IPMR; in ipmr_fill_mroute()
2329 rtm->rtm_dst_len = 32; in ipmr_fill_mroute()
2330 rtm->rtm_src_len = 32; in ipmr_fill_mroute()
2331 rtm->rtm_tos = 0; in ipmr_fill_mroute()
2332 rtm->rtm_table = mrt->id; in ipmr_fill_mroute()
[all …]
H A Dfib_semantics.c1785 struct rtmsg *rtm; in fib_dump_info() local
1787 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in fib_dump_info()
1791 rtm = nlmsg_data(nlh); in fib_dump_info()
1792 rtm->rtm_family = AF_INET; in fib_dump_info()
1793 rtm->rtm_dst_len = fri->dst_len; in fib_dump_info()
1794 rtm->rtm_src_len = 0; in fib_dump_info()
1795 rtm->rtm_tos = inet_dscp_to_dsfield(fri->dscp); in fib_dump_info()
1797 rtm->rtm_table = tb_id; in fib_dump_info()
1799 rtm->rtm_table = RT_TABLE_COMPAT; in fib_dump_info()
1802 rtm->rtm_type = fri->type; in fib_dump_info()
[all …]
H A Droute.c3147 struct rtmsg *rtm; in inet_rtm_valid_getroute_req() local
3150 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { in inet_rtm_valid_getroute_req()
3157 return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req()
3160 rtm = nlmsg_data(nlh); in inet_rtm_valid_getroute_req()
3161 if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || in inet_rtm_valid_getroute_req()
3162 (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || in inet_rtm_valid_getroute_req()
3163 rtm->rtm_table || rtm->rtm_protocol || in inet_rtm_valid_getroute_req()
3164 rtm->rtm_scope || rtm->rtm_type) { in inet_rtm_valid_getroute_req()
3169 if (rtm->rtm_flags & ~(RTM_F_NOTIFY | in inet_rtm_valid_getroute_req()
3176 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req()
[all …]
H A Dipmr_base.c209 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()
/linux/sound/soc/intel/catpt/
H A Dpcm.c77 struct snd_soc_pcm_runtime *rtm = snd_soc_substream_to_rtd(substream); in catpt_get_stream_template() local
78 struct snd_soc_dai *cpu_dai = snd_soc_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 = snd_soc_substream_to_rtd(substream); in catpt_component_open() local
[all …]
/linux/net/ipv6/
H A Dip6mr.c2270 int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm, in ip6mr_get_route() argument
2335 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ip6mr_get_route()
2345 struct rtmsg *rtm; in ip6mr_fill_mroute() local
2348 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ip6mr_fill_mroute()
2352 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute()
2353 rtm->rtm_family = RTNL_FAMILY_IP6MR; in ip6mr_fill_mroute()
2354 rtm->rtm_dst_len = 128; in ip6mr_fill_mroute()
2355 rtm->rtm_src_len = 128; in ip6mr_fill_mroute()
2356 rtm->rtm_tos = 0; in ip6mr_fill_mroute()
2357 rtm->rtm_table = mrt->id; in ip6mr_fill_mroute()
[all …]
H A Droute.c5014 struct rtmsg *rtm; in rtm_to_fib6_config() local
5019 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_fib6_config()
5025 rtm = nlmsg_data(nlh); in rtm_to_fib6_config()
5027 if (rtm->rtm_tos) { in rtm_to_fib6_config()
5034 .fc_table = rtm->rtm_table, in rtm_to_fib6_config()
5035 .fc_dst_len = rtm->rtm_dst_len, in rtm_to_fib6_config()
5036 .fc_src_len = rtm->rtm_src_len, in rtm_to_fib6_config()
5038 .fc_protocol = rtm->rtm_protocol, in rtm_to_fib6_config()
5039 .fc_type = rtm->rtm_type, in rtm_to_fib6_config()
5046 if (rtm->rtm_type == RTN_UNREACHABLE || in rtm_to_fib6_config()
[all …]
H A Dip6_fib.c643 struct rtmsg *rtm = nlmsg_data(nlh); in inet6_dump_fib() local
645 if (rtm->rtm_flags & RTM_F_PREFIX) in inet6_dump_fib()
/linux/net/mctp/
H A Droute.c1250 struct nlattr **tb, struct rtmsg **rtm, in mctp_route_nlparse() argument
1277 *rtm = nlmsg_data(nlh); in mctp_route_nlparse()
1278 if ((*rtm)->rtm_family != AF_MCTP) { in mctp_route_nlparse()
1311 struct rtmsg *rtm; in mctp_newroute() local
1316 &rtm, &mdev, &daddr_start); in mctp_newroute()
1320 if (rtm->rtm_type != RTN_UNICAST) { in mctp_newroute()
1335 rc = mctp_route_add(mdev, daddr_start, rtm->rtm_dst_len, mtu, in mctp_newroute()
1336 rtm->rtm_type); in mctp_newroute()
1346 struct rtmsg *rtm; in mctp_delroute() local
1350 &rtm, &mdev, &daddr_start); in mctp_delroute()
[all …]
/linux/sound/soc/intel/avs/boards/
H A Dhdaudio.c126 static int avs_probing_link_init(struct snd_soc_pcm_runtime *rtm) in avs_probing_link_init() argument
130 struct snd_soc_card *card = rtm->card; in avs_probing_link_init()
H A Dnau8825.c142 struct snd_soc_pcm_runtime *rtm = snd_soc_substream_to_rtd(substream); in avs_nau8825_trigger() local
143 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtm, 0); in avs_nau8825_trigger()
/linux/include/linux/
H A Dmroute.h94 struct rtmsg *rtm, u32 portid);
H A Dmroute6.h98 struct rtmsg *rtm, u32 portid);
H A Dmroute_base.h289 struct mr_mfc *c, struct rtmsg *rtm);
341 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute() argument
/linux/drivers/spi/
H A Dspi-synquacer.c128 bool aces, rtm; member
309 if (sspi->rtm) in synquacer_spi_config()
670 sspi->rtm = device_property_read_bool(&pdev->dev, "socionext,use-rtm"); in synquacer_spi_probe()
/linux/lib/zstd/common/
H A Dcpu.h169 B(rtm, 11)
/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv200 7, 0, ebx, 11, rtm , Intel restricted transactional memory