Home
last modified time | relevance | path

Searched refs:sr (Results 1 – 8 of 8) sorted by relevance

/net/tipc/
Dname_table.c91 #define service_range_upper(sr) ((sr)->upper) argument
99 #define service_range_overlap(sr, start, end) \ in RB_DECLARE_CALLBACKS_MAX() argument
100 ((sr)->lower <= (end) && (sr)->upper >= (start)) in RB_DECLARE_CALLBACKS_MAX()
110 #define service_range_foreach_match(sr, sc, start, end) \ in RB_DECLARE_CALLBACKS_MAX() argument
111 for (sr = service_range_match_first((sc)->ranges.rb_node, \ in RB_DECLARE_CALLBACKS_MAX()
114 sr; \
115 sr = service_range_match_next(&(sr)->tree_node, \
131 struct service_range *sr; local
152 sr = service_range_entry(n);
153 if (service_range_overlap(sr, start, end))
[all …]
Daddr.h59 struct tipc_service_range sr; member
70 ua->sr.type = type; in tipc_uaddr()
71 ua->sr.lower = lower; in tipc_uaddr()
72 ua->sr.upper = upper; in tipc_uaddr()
87 return ua->sr.upper >= ua->sr.lower; in tipc_uaddr_valid()
Dname_distr.c59 i->type = htonl(p->sr.type); in publ_to_item()
60 i->lower = htonl(p->sr.lower); in publ_to_item()
61 i->upper = htonl(p->sr.upper); in publ_to_item()
249 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, p->scope, p->sr.type, in tipc_publ_purge()
250 p->sr.lower, p->sr.upper); in tipc_publ_purge()
314 ua.sr.type, ua.sr.lower, node); in tipc_update_nametbl()
Dsubscr.c53 tipc_evt_write(evt, found_lower, p->sr.lower); in tipc_sub_send_event()
54 tipc_evt_write(evt, found_upper, p->sr.upper); in tipc_sub_send_event()
90 struct tipc_service_range *sr = &sub->s.seq; in tipc_sub_report_overlap() local
93 if (!tipc_sub_check_overlap(sr, &p->sr)) in tipc_sub_report_overlap()
Dsocket.c687 ua->sr.upper = ua->sr.lower; in __tipc_bind()
725 if (ua->sr.type < TIPC_RESERVED_TYPES) { in tipc_bind()
727 ua->sr.type); in tipc_bind()
875 msg_set_nametype(hdr, ua->sr.type); in tipc_sendmcast()
876 msg_set_namelower(hdr, ua->sr.lower); in tipc_sendmcast()
877 msg_set_nameupper(hdr, ua->sr.upper); in tipc_sendmcast()
1218 ua.sr.type = msg_nametype(hdr); in tipc_sk_mcast_rcv()
1219 ua.sr.lower = msg_namelower(hdr); in tipc_sk_mcast_rcv()
1220 ua.sr.upper = msg_nameupper(hdr); in tipc_sk_mcast_rcv()
1239 ua.sr.lower = 0; in tipc_sk_mcast_rcv()
[all …]
Dname_table.h78 struct tipc_service_range sr; member
/net/ipv6/
Dip6mr.c1858 struct sioc_sg_req6 sr; in ip6mr_ioctl() local
1892 if (copy_from_user(&sr, arg, sizeof(sr))) in ip6mr_ioctl()
1896 c = ip6mr_cache_find(mrt, &sr.src.sin6_addr, &sr.grp.sin6_addr); in ip6mr_ioctl()
1898 sr.pktcnt = c->_c.mfc_un.res.pkt; in ip6mr_ioctl()
1899 sr.bytecnt = c->_c.mfc_un.res.bytes; in ip6mr_ioctl()
1900 sr.wrong_if = c->_c.mfc_un.res.wrong_if; in ip6mr_ioctl()
1903 if (copy_to_user(arg, &sr, sizeof(sr))) in ip6mr_ioctl()
1933 struct compat_sioc_sg_req6 sr; in ip6mr_compat_ioctl() local
1967 if (copy_from_user(&sr, arg, sizeof(sr))) in ip6mr_compat_ioctl()
1971 c = ip6mr_cache_find(mrt, &sr.src.sin6_addr, &sr.grp.sin6_addr); in ip6mr_compat_ioctl()
[all …]
/net/ipv4/
Dipmr.c1589 struct sioc_sg_req sr; in ipmr_ioctl() local
1623 if (copy_from_user(&sr, arg, sizeof(sr))) in ipmr_ioctl()
1627 c = ipmr_cache_find(mrt, sr.src.s_addr, sr.grp.s_addr); in ipmr_ioctl()
1629 sr.pktcnt = c->_c.mfc_un.res.pkt; in ipmr_ioctl()
1630 sr.bytecnt = c->_c.mfc_un.res.bytes; in ipmr_ioctl()
1631 sr.wrong_if = c->_c.mfc_un.res.wrong_if; in ipmr_ioctl()
1634 if (copy_to_user(arg, &sr, sizeof(sr))) in ipmr_ioctl()
1664 struct compat_sioc_sg_req sr; in ipmr_compat_ioctl() local
1698 if (copy_from_user(&sr, arg, sizeof(sr))) in ipmr_compat_ioctl()
1702 c = ipmr_cache_find(mrt, sr.src.s_addr, sr.grp.s_addr); in ipmr_compat_ioctl()
[all …]