| /linux/kernel/locking/ |
| H A D | rwbase_rt.c | 71 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_lock() local 76 raw_spin_lock_irq(&rtm->wait_lock); in __rwbase_read_lock() 114 ret = rwbase_rtmutex_slowlock_locked(rtm, state, &wake_q); in __rwbase_read_lock() 127 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_lock() 132 rwbase_rtmutex_unlock(rtm); in __rwbase_read_lock() 153 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_unlock() local 157 raw_spin_lock_irq(&rtm->wait_lock); in __rwbase_read_unlock() 164 owner = rt_mutex_owner(rtm); in __rwbase_read_unlock() 170 raw_spin_unlock_irq(&rtm->wait_lock); in __rwbase_read_unlock() 190 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_write_unlock() local [all …]
|
| 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 | spinlock_rt.c | 38 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 168 rtlock_slowlock_locked(rtm, wake_q); in rwbase_rtmutex_slowlock_locked() 172 static __always_inline void rwbase_rtmutex_unlock(struct rt_mutex_base *rtm) in rwbase_rtmutex_unlock() argument 174 if (likely(rt_mutex_cmpxchg_acquire(rtm, current, NULL))) in rwbase_rtmutex_unlock() [all …]
|
| H A D | rtmutex.c | 34 # define ww_container_of(rtm) NULL argument 64 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base) argument 1248 struct rt_mutex *rtm; in task_blocks_on_rt_mutex() local 1251 rtm = container_of(lock, struct rt_mutex, rtmutex); in task_blocks_on_rt_mutex() 1252 res = __ww_mutex_add_waiter(waiter, rtm, ww_ctx, wake_q); in task_blocks_on_rt_mutex() 1612 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in rt_mutex_slowlock_block() local 1634 ret = __ww_mutex_check_kill(rtm, waiter, ww_ctx); in rt_mutex_slowlock_block() 1698 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); in __rt_mutex_slowlock() local 1699 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock() 1708 __ww_mutex_check_waiters(rtm, ww_ctx, wake_q); in __rt_mutex_slowlock() [all …]
|
| H A D | rwsem.c | 1426 #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 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 | 1855 struct rtmsg *rtm; in rtm_to_route_config() 1860 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_route_config() 1866 rtm = nlmsg_data(nlh); in rtm_to_route_config() 1868 if (rtm->rtm_family != AF_MPLS) { in rtm_to_route_config() 1872 if (rtm->rtm_dst_len != 20) { in rtm_to_route_config() 1876 if (rtm->rtm_src_len != 0) { in rtm_to_route_config() 1880 if (rtm->rtm_tos != 0) { in rtm_to_route_config() 1884 if (rtm->rtm_table != RT_TABLE_MAIN) { in rtm_to_route_config() 1895 if (rtm->rtm_scope != RT_SCOPE_UNIVERSE) { in rtm_to_route_config() 1900 if (rtm in rtm_to_route_config() 1839 struct rtmsg *rtm; rtm_to_route_config() local 2027 struct rtmsg *rtm; mpls_dump_route() local 2146 struct rtmsg *rtm; mpls_valid_fib_dump_req() local 2344 struct rtmsg *rtm; mpls_valid_getroute_req() local 2410 struct rtmsg *rtm, *r; mpls_getroute() local [all...] |
| /linux/net/ipv4/ |
| H A D | fib_frontend.c | 741 struct rtmsg *rtm; in rtm_to_fib_config() local 743 err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX, in rtm_to_fib_config() 750 rtm = nlmsg_data(nlh); in rtm_to_fib_config() 752 if (!inet_validate_dscp(rtm->rtm_tos)) { in rtm_to_fib_config() 758 cfg->fc_dscp = inet_dsfield_to_dscp(rtm->rtm_tos); in rtm_to_fib_config() 760 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib_config() 761 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config() 762 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib_config() 763 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config() 764 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config() [all …]
|
| H A D | ipmr.c | 2403 struct rtmsg *rtm, u32 portid) in ipmr_get_route() argument 2456 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ipmr_get_route() 2466 struct rtmsg *rtm; in ipmr_fill_mroute() local 2469 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ipmr_fill_mroute() 2473 rtm = nlmsg_data(nlh); in ipmr_fill_mroute() 2474 rtm->rtm_family = RTNL_FAMILY_IPMR; in ipmr_fill_mroute() 2475 rtm->rtm_dst_len = 32; in ipmr_fill_mroute() 2476 rtm->rtm_src_len = 32; in ipmr_fill_mroute() 2477 rtm->rtm_tos = 0; in ipmr_fill_mroute() 2478 rtm->rtm_table = mrt->id; in ipmr_fill_mroute() [all …]
|
| H A D | fib_semantics.c | 1729 struct rtmsg *rtm; in fib_dump_info() local 1731 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in fib_dump_info() 1735 rtm = nlmsg_data(nlh); in fib_dump_info() 1736 rtm->rtm_family = AF_INET; in fib_dump_info() 1737 rtm->rtm_dst_len = fri->dst_len; in fib_dump_info() 1738 rtm->rtm_src_len = 0; in fib_dump_info() 1739 rtm->rtm_tos = inet_dscp_to_dsfield(fri->dscp); in fib_dump_info() 1741 rtm->rtm_table = tb_id; in fib_dump_info() 1743 rtm->rtm_table = RT_TABLE_COMPAT; in fib_dump_info() 1746 rtm->rtm_type = fri->type; in fib_dump_info() [all …]
|
| H A D | route.c | 3226 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 …]
|
| 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()
|
| /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() 152 struct snd_pcm_runtime *rtm = substream->runtime; in catpt_arrange_page_table() local 156 pages = snd_sgbuf_aligned_pages(rtm->dma_bytes); in catpt_arrange_page_table() 371 struct snd_pcm_runtime *rtm = substream->runtime; in catpt_dai_hw_params() local 397 rinfo.num_pages = DIV_ROUND_UP(rtm->dma_bytes, PAGE_SIZE); in catpt_dai_hw_params() 398 rinfo.size = rtm->dma_bytes; in catpt_dai_hw_params() 578 struct snd_soc_pcm_runtime *rtm) in catpt_component_pcm_construct() argument 582 snd_pcm_set_managed_buffer_all(rtm->pcm, SNDRV_DMA_TYPE_DEV_SG, in catpt_component_pcm_construct() 593 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 | 2418 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 D | route.c | 5168 struct rtmsg *rtm; in rtm_to_fib6_config() local 5172 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_fib6_config() 5178 rtm = nlmsg_data(nlh); in rtm_to_fib6_config() 5180 if (rtm->rtm_tos) { in rtm_to_fib6_config() 5193 .fc_table = rtm->rtm_table, in rtm_to_fib6_config() 5194 .fc_dst_len = rtm->rtm_dst_len, in rtm_to_fib6_config() 5195 .fc_src_len = rtm->rtm_src_len, in rtm_to_fib6_config() 5197 .fc_protocol = rtm->rtm_protocol, in rtm_to_fib6_config() 5198 .fc_type = rtm->rtm_type, in rtm_to_fib6_config() 5205 if (rtm->rtm_type == RTN_UNREACHABLE || in rtm_to_fib6_config() [all …]
|
| H A D | ip6_fib.c | 650 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/mctp/ |
| H A D | route.c | 1415 struct nlattr **tb, struct rtmsg **rtm, in mctp_route_nlparse_common() argument 1477 *rtm = nlmsg_data(nlh); in mctp_route_nlparse_common() 1478 if ((*rtm)->rtm_family != AF_MCTP) { in mctp_route_nlparse_common() 1483 if ((*rtm)->rtm_type != RTN_UNICAST) { in mctp_route_nlparse_common() 1503 struct rtmsg *rtm; in mctp_route_nlparse_lookup() local 1506 rc = mctp_route_nlparse_common(net, nlh, extack, tb, &rtm, in mctp_route_nlparse_lookup() 1520 *type = rtm->rtm_type; in mctp_route_nlparse_lookup() 1521 *daddr_extent = rtm->rtm_dst_len; in mctp_route_nlparse_lookup() 1540 struct rtmsg *rtm; in mctp_route_nlparse_populate() local 1544 rc = mctp_route_nlparse_common(net, nlh, extack, tb, &rtm, in mctp_route_nlparse_populate() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | tuntap_helpers.h | 114 static inline void fill_route_req_header(struct rtmsg *rtm, int family, in fill_route_req_header() argument 117 rtm->rtm_family = family; in fill_route_req_header() 118 rtm->rtm_table = table; in fill_route_req_header()
|
| /linux/sound/soc/intel/avs/boards/ |
| H A D | hdaudio.c | 126 static int avs_probing_link_init(struct snd_soc_pcm_runtime *rtm) in avs_probing_link_init() argument 131 struct snd_soc_card *card = rtm->card; in avs_probing_link_init()
|
| H A D | nau8825.c | 142 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 D | mroute.h | 94 struct rtmsg *rtm, u32 portid);
|
| H A D | mroute6.h | 105 struct rtmsg *rtm, u32 portid);
|
| H A D | mroute_base.h | 294 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 D | cpu.h | 170 B(rtm, 11)
|
| /linux/tools/arch/x86/kcpuid/ |
| H A D | cpuid.csv | 200 … 0x7, 0, ebx, 11, rtm , Intel restricted transactional memory
|