Home
last modified time | relevance | path

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

/linux/kernel/locking/
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 Drwsem.c1426 #define rwbase_rtmutex_lock_state(rtm, state) \ argument
1427 __rt_mutex_lock(rtm, state)
1429 #define rwbase_rtmutex_slowlock_locked(rtm, state, wq) \ argument
1430 __rt_mutex_slowlock_locked(rtm, NULL, state, wq)
1432 #define rwbase_rtmutex_unlock(rtm) \ argument
1433 __rt_mutex_unlock(rtm)
1435 #define rwbase_rtmutex_trylock(rtm) \ argument
1436 __rt_mutex_trylock(rtm)
/linux/net/phonet/
H A Dpn_netlink.c176 struct rtmsg *rtm; in fill_route() local
179 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); in fill_route()
183 rtm = nlmsg_data(nlh); in fill_route()
184 rtm->rtm_family = AF_PHONET; in fill_route()
185 rtm->rtm_dst_len = 6; in fill_route()
186 rtm->rtm_src_len = 0; in fill_route()
187 rtm->rtm_tos = 0; in fill_route()
188 rtm->rtm_table = RT_TABLE_MAIN; in fill_route()
189 rtm->rtm_protocol = RTPROT_STATIC; in fill_route()
190 rtm->rtm_scope = RT_SCOPE_UNIVERSE; in fill_route()
[all …]
/linux/net/mpls/
H A Daf_mpls.c1839 struct rtmsg *rtm; in rtm_to_route_config()
1844 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_route_config()
1850 rtm = nlmsg_data(nlh); in rtm_to_route_config()
1852 if (rtm->rtm_family != AF_MPLS) { in rtm_to_route_config()
1856 if (rtm->rtm_dst_len != 20) { in rtm_to_route_config()
1860 if (rtm->rtm_src_len != 0) { in rtm_to_route_config()
1864 if (rtm->rtm_tos != 0) { in rtm_to_route_config()
1868 if (rtm->rtm_table != RT_TABLE_MAIN) { in rtm_to_route_config()
1879 if (rtm->rtm_scope != RT_SCOPE_UNIVERSE) { in rtm_to_route_config()
1884 if (rtm in rtm_to_route_config()
1794 struct rtmsg *rtm; rtm_to_route_config() local
1976 struct rtmsg *rtm; mpls_dump_route() local
2095 struct rtmsg *rtm; mpls_valid_fib_dump_req() local
2288 struct rtmsg *rtm; mpls_valid_getroute_req() local
2354 struct rtmsg *rtm, *r; mpls_getroute() local
[all...]
/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()
584 struct snd_soc_pcm_runtime *rtm) in catpt_component_pcm_construct()
588 snd_pcm_set_managed_buffer_all(rtm->pcm, SNDRV_DMA_TYPE_DEV_SG, in catpt_component_pcm_construct()
599 struct snd_soc_pcm_runtime *rtm in catpt_component_open()
582 catpt_component_pcm_construct(struct snd_soc_component * component,struct snd_soc_pcm_runtime * rtm) catpt_component_pcm_construct() argument
597 struct snd_soc_pcm_runtime *rtm = snd_soc_substream_to_rtd(substream); catpt_component_open() local
608 struct snd_soc_pcm_runtime *rtm = snd_soc_substream_to_rtd(substream); catpt_component_pointer() local
632 catpt_dai_pcm_new(struct snd_soc_pcm_runtime * rtm,struct snd_soc_dai * dai) catpt_dai_pcm_new() argument
[all...]
/linux/net/ipv6/
H A Dip6mr.c2418 int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm, in ip6mr_get_route() argument
2485 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ip6mr_get_route()
2495 struct rtmsg *rtm; in ip6mr_fill_mroute() local
2498 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ip6mr_fill_mroute()
2502 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute()
2503 rtm->rtm_family = RTNL_FAMILY_IP6MR; in ip6mr_fill_mroute()
2504 rtm->rtm_dst_len = 128; in ip6mr_fill_mroute()
2505 rtm->rtm_src_len = 128; in ip6mr_fill_mroute()
2506 rtm->rtm_tos = 0; in ip6mr_fill_mroute()
2507 rtm->rtm_table = mrt->id; in ip6mr_fill_mroute()
[all …]
H A Droute.c5170 struct rtmsg *rtm; in rtm_to_fib6_config() local
5174 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_fib6_config()
5180 rtm = nlmsg_data(nlh); in rtm_to_fib6_config()
5182 if (rtm->rtm_tos) { in rtm_to_fib6_config()
5195 .fc_table = rtm->rtm_table, in rtm_to_fib6_config()
5196 .fc_dst_len = rtm->rtm_dst_len, in rtm_to_fib6_config()
5197 .fc_src_len = rtm->rtm_src_len, in rtm_to_fib6_config()
5199 .fc_protocol = rtm->rtm_protocol, in rtm_to_fib6_config()
5200 .fc_type = rtm->rtm_type, in rtm_to_fib6_config()
5207 if (rtm->rtm_type == RTN_UNREACHABLE || in rtm_to_fib6_config()
[all …]
H A Dip6_fib.c650 struct rtmsg *rtm = nlmsg_data(nlh); in inet6_dump_fib() local
652 if (rtm->rtm_flags & RTM_F_PREFIX) in inet6_dump_fib()
/linux/net/ipv4/
H A Dfib_semantics.c1730 struct rtmsg *rtm; in fib_dump_info() local
1732 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in fib_dump_info()
1736 rtm = nlmsg_data(nlh); in fib_dump_info()
1737 rtm->rtm_family = AF_INET; in fib_dump_info()
1738 rtm->rtm_dst_len = fri->dst_len; in fib_dump_info()
1739 rtm->rtm_src_len = 0; in fib_dump_info()
1740 rtm->rtm_tos = inet_dscp_to_dsfield(fri->dscp); in fib_dump_info()
1742 rtm->rtm_table = tb_id; in fib_dump_info()
1744 rtm->rtm_table = RT_TABLE_COMPAT; in fib_dump_info()
1747 rtm->rtm_type = fri->type; in fib_dump_info()
[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()
H A Droute.c3226 struct rtmsg *rtm; in inet_rtm_valid_getroute_req() local
3229 rtm = nlmsg_payload(nlh, sizeof(*rtm)); in inet_rtm_valid_getroute_req()
3230 if (!rtm) { in inet_rtm_valid_getroute_req()
3237 return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req()
3240 if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || in inet_rtm_valid_getroute_req()
3241 (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || in inet_rtm_valid_getroute_req()
3242 rtm->rtm_table || rtm->rtm_protocol || in inet_rtm_valid_getroute_req()
3243 rtm->rtm_scope || rtm->rtm_type) { in inet_rtm_valid_getroute_req()
3248 if (rtm->rtm_flags & ~(RTM_F_NOTIFY | in inet_rtm_valid_getroute_req()
3255 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req()
[all …]
/linux/net/mctp/
H A Droute.c1412 struct nlattr **tb, struct rtmsg **rtm, in mctp_route_nlparse_common() argument
1474 *rtm = nlmsg_data(nlh); in mctp_route_nlparse_common()
1475 if ((*rtm)->rtm_family != AF_MCTP) { in mctp_route_nlparse_common()
1480 if ((*rtm)->rtm_type != RTN_UNICAST) { in mctp_route_nlparse_common()
1500 struct rtmsg *rtm; in mctp_route_nlparse_lookup() local
1503 rc = mctp_route_nlparse_common(net, nlh, extack, tb, &rtm, in mctp_route_nlparse_lookup()
1517 *type = rtm->rtm_type; in mctp_route_nlparse_lookup()
1518 *daddr_extent = rtm->rtm_dst_len; in mctp_route_nlparse_lookup()
1537 struct rtmsg *rtm; in mctp_route_nlparse_populate() local
1541 rc = mctp_route_nlparse_common(net, nlh, extack, tb, &rtm, in mctp_route_nlparse_populate()
[all …]
/linux/include/linux/
H A Dmroute.h94 struct rtmsg *rtm, u32 portid);
H A Dmroute6.h105 struct rtmsg *rtm, u32 portid);
H A Dmroute_base.h294 struct mr_mfc *c, struct rtmsg *rtm);
346 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute() argument
/linux/lib/zstd/common/
H A Dcpu.h170 B(rtm, 11)
/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv200 0x7, 0, ebx, 11, rtm , Intel restricted transactional memory