/linux/kernel/locking/ |
H A 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_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 D | rtmutex.c | 33 # define ww_container_of(rtm) NULL argument 63 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base) argument 1247 struct rt_mutex *rtm; in task_blocks_on_rt_mutex() local 1250 rtm = container_of(lock, struct rt_mutex, rtmutex); in task_blocks_on_rt_mutex() 1251 res = __ww_mutex_add_waiter(waiter, rtm, ww_ctx, wake_q); in task_blocks_on_rt_mutex() 1611 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in rt_mutex_slowlock_block() local 1630 ret = __ww_mutex_check_kill(rtm, waiter, ww_ctx); in rt_mutex_slowlock_block() 1692 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in __rt_mutex_slowlock() local 1693 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock() 1701 __ww_mutex_check_waiters(rtm, ww_ctx, wake_q); in __rt_mutex_slowlock() [all …]
|
H A D | rwsem.c | 1413 #define rwbase_rtmutex_lock_state(rtm, state) \ argument 1414 __rt_mutex_lock(rtm, state) 1416 #define rwbase_rtmutex_slowlock_locked(rtm, state, wq) \ argument 1417 __rt_mutex_slowlock_locked(rtm, NULL, state, wq) 1419 #define rwbase_rtmutex_unlock(rtm) \ argument 1420 __rt_mutex_unlock(rtm) 1422 #define rwbase_rtmutex_trylock(rtm) \ argument 1423 __rt_mutex_trylock(rtm)
|
/linux/net/phonet/ |
H A D | pn_netlink.c | 176 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 D | af_mpls.c | 1794 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 D | fib_frontend.c | 742 struct rtmsg *rtm; in rtm_to_fib_config() local 744 err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX, in rtm_to_fib_config() 751 rtm = nlmsg_data(nlh); in rtm_to_fib_config() 753 if (!inet_validate_dscp(rtm->rtm_tos)) { in rtm_to_fib_config() 759 cfg->fc_dscp = inet_dsfield_to_dscp(rtm->rtm_tos); in rtm_to_fib_config() 761 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib_config() 762 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config() 763 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib_config() 764 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config() 765 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config() [all …]
|
H A D | ipmr.c | 2285 struct rtmsg *rtm, u32 portid) in ipmr_get_route() argument 2338 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ipmr_get_route() 2348 struct rtmsg *rtm; in ipmr_fill_mroute() local 2351 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ipmr_fill_mroute() 2355 rtm = nlmsg_data(nlh); in ipmr_fill_mroute() 2356 rtm->rtm_family = RTNL_FAMILY_IPMR; in ipmr_fill_mroute() 2357 rtm->rtm_dst_len = 32; in ipmr_fill_mroute() 2358 rtm->rtm_src_len = 32; in ipmr_fill_mroute() 2359 rtm->rtm_tos = 0; in ipmr_fill_mroute() 2360 rtm->rtm_table = mrt->id; in ipmr_fill_mroute() [all …]
|
H A D | fib_semantics.c | 1761 struct rtmsg *rtm; in fib_dump_info() local 1763 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in fib_dump_info() 1767 rtm = nlmsg_data(nlh); in fib_dump_info() 1768 rtm->rtm_family = AF_INET; in fib_dump_info() 1769 rtm->rtm_dst_len = fri->dst_len; in fib_dump_info() 1770 rtm->rtm_src_len = 0; in fib_dump_info() 1771 rtm->rtm_tos = inet_dscp_to_dsfield(fri->dscp); in fib_dump_info() 1773 rtm->rtm_table = tb_id; in fib_dump_info() 1775 rtm->rtm_table = RT_TABLE_COMPAT; in fib_dump_info() 1778 rtm->rtm_type = fri->type; in fib_dump_info() [all …]
|
H A 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()
|
H A D | route.c | 3206 struct rtmsg *rtm; in inet_rtm_valid_getroute_req() local 3209 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { in inet_rtm_valid_getroute_req() 3216 return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req() 3219 rtm = nlmsg_data(nlh); in inet_rtm_valid_getroute_req() 3220 if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || in inet_rtm_valid_getroute_req() 3221 (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || in inet_rtm_valid_getroute_req() 3222 rtm->rtm_table || rtm->rtm_protocol || in inet_rtm_valid_getroute_req() 3223 rtm->rtm_scope || rtm->rtm_type) { in inet_rtm_valid_getroute_req() 3228 if (rtm->rtm_flags & ~(RTM_F_NOTIFY | in inet_rtm_valid_getroute_req() 3235 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req() [all …]
|
/linux/sound/soc/intel/catpt/ |
H A D | pcm.c | 77 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 D | ip6mr.c | 2301 int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm, in ip6mr_get_route() argument 2368 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ip6mr_get_route() 2378 struct rtmsg *rtm; in ip6mr_fill_mroute() local 2381 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ip6mr_fill_mroute() 2385 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute() 2386 rtm->rtm_family = RTNL_FAMILY_IP6MR; in ip6mr_fill_mroute() 2387 rtm->rtm_dst_len = 128; in ip6mr_fill_mroute() 2388 rtm->rtm_src_len = 128; in ip6mr_fill_mroute() 2389 rtm->rtm_tos = 0; in ip6mr_fill_mroute() 2390 rtm->rtm_table = mrt->id; in ip6mr_fill_mroute() [all …]
|
H A D | route.c | 5020 struct rtmsg *rtm; in rtm_to_fib6_config() local 5025 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_fib6_config() 5031 rtm = nlmsg_data(nlh); in rtm_to_fib6_config() 5033 if (rtm->rtm_tos) { in rtm_to_fib6_config() 5046 .fc_table = rtm->rtm_table, in rtm_to_fib6_config() 5047 .fc_dst_len = rtm->rtm_dst_len, in rtm_to_fib6_config() 5048 .fc_src_len = rtm->rtm_src_len, in rtm_to_fib6_config() 5050 .fc_protocol = rtm->rtm_protocol, in rtm_to_fib6_config() 5051 .fc_type = rtm->rtm_type, in rtm_to_fib6_config() 5058 if (rtm->rtm_type == RTN_UNREACHABLE || in rtm_to_fib6_config() [all …]
|
/linux/net/mctp/ |
H A D | route.c | 1272 struct nlattr **tb, struct rtmsg **rtm, in mctp_route_nlparse() argument 1299 *rtm = nlmsg_data(nlh); in mctp_route_nlparse() 1300 if ((*rtm)->rtm_family != AF_MCTP) { in mctp_route_nlparse() 1333 struct rtmsg *rtm; in mctp_newroute() local 1338 &rtm, &mdev, &daddr_start); in mctp_newroute() 1342 if (rtm->rtm_type != RTN_UNICAST) { in mctp_newroute() 1357 rc = mctp_route_add(mdev, daddr_start, rtm->rtm_dst_len, mtu, in mctp_newroute() 1358 rtm->rtm_type); in mctp_newroute() 1368 struct rtmsg *rtm; in mctp_delroute() local 1372 &rtm, &mdev, &daddr_start); in mctp_delroute() [all …]
|
/linux/include/linux/ |
H A D | mroute.h | 94 struct rtmsg *rtm, u32 portid);
|
H A D | mroute6.h | 98 struct rtmsg *rtm, u32 portid);
|
/linux/lib/zstd/common/ |
H A D | cpu.h | 169 B(rtm, 11)
|
/linux/tools/arch/x86/kcpuid/ |
H A D | cpuid.csv | 200 … 7, 0, ebx, 11, rtm , Intel restricted transactional memory
|