/Linux-v5.4/net/phonet/ |
D | pn_netlink.c | 163 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-v5.4/drivers/rtc/ |
D | rtc-ls1x.c | 84 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-v5.4/net/mpls/ |
D | af_mpls.c | 1787 struct rtmsg *rtm; in rtm_to_route_config() local 1792 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_route_config() 1798 rtm = nlmsg_data(nlh); in rtm_to_route_config() 1800 if (rtm->rtm_family != AF_MPLS) { in rtm_to_route_config() 1804 if (rtm->rtm_dst_len != 20) { in rtm_to_route_config() 1808 if (rtm->rtm_src_len != 0) { in rtm_to_route_config() 1812 if (rtm->rtm_tos != 0) { in rtm_to_route_config() 1816 if (rtm->rtm_table != RT_TABLE_MAIN) { in rtm_to_route_config() 1827 if (rtm->rtm_scope != RT_SCOPE_UNIVERSE) { in rtm_to_route_config() 1832 if (rtm->rtm_type != RTN_UNICAST) { in rtm_to_route_config() [all …]
|
/Linux-v5.4/net/decnet/netfilter/ |
D | dn_rtmsg.c | 38 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-v5.4/net/ipv4/ |
D | fib_frontend.c | 734 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() 744 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib_config() 745 cfg->fc_tos = rtm->rtm_tos; in rtm_to_fib_config() 746 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config() 747 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib_config() 748 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config() 749 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config() 750 cfg->fc_flags = rtm->rtm_flags; in rtm_to_fib_config() [all …]
|
D | ipmr.c | 2259 struct rtmsg *rtm, u32 portid) in ipmr_get_route() argument 2315 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ipmr_get_route() 2326 struct rtmsg *rtm; in ipmr_fill_mroute() local 2329 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ipmr_fill_mroute() 2333 rtm = nlmsg_data(nlh); in ipmr_fill_mroute() 2334 rtm->rtm_family = RTNL_FAMILY_IPMR; in ipmr_fill_mroute() 2335 rtm->rtm_dst_len = 32; in ipmr_fill_mroute() 2336 rtm->rtm_src_len = 32; in ipmr_fill_mroute() 2337 rtm->rtm_tos = 0; in ipmr_fill_mroute() 2338 rtm->rtm_table = mrt->id; in ipmr_fill_mroute() [all …]
|
D | fib_semantics.c | 1733 struct rtmsg *rtm; in fib_dump_info() local 1735 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in fib_dump_info() 1739 rtm = nlmsg_data(nlh); in fib_dump_info() 1740 rtm->rtm_family = AF_INET; in fib_dump_info() 1741 rtm->rtm_dst_len = dst_len; in fib_dump_info() 1742 rtm->rtm_src_len = 0; in fib_dump_info() 1743 rtm->rtm_tos = tos; in fib_dump_info() 1745 rtm->rtm_table = tb_id; in fib_dump_info() 1747 rtm->rtm_table = RT_TABLE_COMPAT; in fib_dump_info() 1750 rtm->rtm_type = type; in fib_dump_info() [all …]
|
D | route.c | 3010 struct rtmsg *rtm; in inet_rtm_valid_getroute_req() local 3013 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { in inet_rtm_valid_getroute_req() 3020 return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req() 3023 rtm = nlmsg_data(nlh); in inet_rtm_valid_getroute_req() 3024 if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || in inet_rtm_valid_getroute_req() 3025 (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || in inet_rtm_valid_getroute_req() 3026 rtm->rtm_table || rtm->rtm_protocol || in inet_rtm_valid_getroute_req() 3027 rtm->rtm_scope || rtm->rtm_type) { in inet_rtm_valid_getroute_req() 3032 if (rtm->rtm_flags & ~(RTM_F_NOTIFY | in inet_rtm_valid_getroute_req() 3039 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, in inet_rtm_valid_getroute_req() [all …]
|
D | ipmr_base.c | 209 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-v5.4/net/decnet/ |
D | dn_table.c | 305 struct rtmsg *rtm; in dn_fib_dump_info() local 308 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in dn_fib_dump_info() 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() [all …]
|
D | dn_fib.c | 564 struct rtmsg rtm; in fib_magic() member 590 memset(&req.rtm, 0, sizeof(req.rtm)); in fib_magic() 606 req.rtm.rtm_dst_len = dst_len; in fib_magic() 607 req.rtm.rtm_table = tb->n; in fib_magic() 608 req.rtm.rtm_protocol = RTPROT_KERNEL; in fib_magic() 609 req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST); in fib_magic() 610 req.rtm.rtm_type = type; in fib_magic() 613 tb->insert(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic() 615 tb->delete(tb, &req.rtm, attrs, &req.nlh, NULL); in fib_magic()
|
D | dn_route.c | 1635 struct rtmsg *rtm = nlmsg_data(nlh); in dn_cache_getroute() local 1646 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in dn_cache_getroute() 1698 if (rtm->rtm_flags & RTM_F_NOTIFY) in dn_cache_getroute() 1724 struct rtmsg *rtm; in dn_cache_dump() local 1732 rtm = nlmsg_data(cb->nlh); in dn_cache_dump() 1733 if (!(rtm->rtm_flags & RTM_F_CLONED)) in dn_cache_dump()
|
/Linux-v5.4/Documentation/devicetree/bindings/spi/ |
D | spi-synquacer.txt | 12 - socionext,use-rtm: boolean, if required to use "retimed clock" for RX 25 socionext,use-rtm;
|
/Linux-v5.4/net/ipv6/ |
D | route.c | 4835 struct rtmsg *rtm; in rtm_to_fib6_config() local 4840 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in rtm_to_fib6_config() 4846 rtm = nlmsg_data(nlh); in rtm_to_fib6_config() 4849 .fc_table = rtm->rtm_table, in rtm_to_fib6_config() 4850 .fc_dst_len = rtm->rtm_dst_len, in rtm_to_fib6_config() 4851 .fc_src_len = rtm->rtm_src_len, in rtm_to_fib6_config() 4853 .fc_protocol = rtm->rtm_protocol, in rtm_to_fib6_config() 4854 .fc_type = rtm->rtm_type, in rtm_to_fib6_config() 4861 if (rtm->rtm_type == RTN_UNREACHABLE || in rtm_to_fib6_config() 4862 rtm->rtm_type == RTN_BLACKHOLE || in rtm_to_fib6_config() [all …]
|
D | ip6mr.c | 2250 int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm, in ip6mr_get_route() argument 2315 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ip6mr_get_route() 2325 struct rtmsg *rtm; in ip6mr_fill_mroute() local 2328 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); in ip6mr_fill_mroute() 2332 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute() 2333 rtm->rtm_family = RTNL_FAMILY_IP6MR; in ip6mr_fill_mroute() 2334 rtm->rtm_dst_len = 128; in ip6mr_fill_mroute() 2335 rtm->rtm_src_len = 128; in ip6mr_fill_mroute() 2336 rtm->rtm_tos = 0; in ip6mr_fill_mroute() 2337 rtm->rtm_table = mrt->id; in ip6mr_fill_mroute() [all …]
|
D | ip6_fib.c | 583 struct rtmsg *rtm = nlmsg_data(nlh); in inet6_dump_fib() local 585 if (rtm->rtm_flags & RTM_F_PREFIX) in inet6_dump_fib()
|
/Linux-v5.4/include/linux/ |
D | mroute.h | 86 struct rtmsg *rtm, u32 portid);
|
D | mroute6.h | 98 struct rtmsg *rtm, u32 portid);
|
D | mroute_base.h | 286 struct mr_mfc *c, struct rtmsg *rtm); 337 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute() argument
|
/Linux-v5.4/drivers/spi/ |
D | spi-synquacer.c | 128 bool aces, rtm; member 309 if (sspi->rtm) in synquacer_spi_config() 667 sspi->rtm = device_property_read_bool(&pdev->dev, "socionext,use-rtm"); in synquacer_spi_probe()
|