Searched defs:up (Results 1 - 15 of 15) sorted by relevance

/net/ipv4/
H A Dxfrm4_input.c6 * Split up af-specific portion
78 struct udp_sock *up = udp_sk(sk); local
85 __u16 encap_type = up->encap_type;
91 /* If this is a paged skb, make sure we pull up
147 /* pull the data buffer up to the ESP header and set the
H A Dudp.c200 * @snum: port number to look up
689 struct udp_sock *up = udp_sk(sk); local
691 if (up->pending) {
692 up->len = 0;
693 up->pending = 0;
804 struct udp_sock *up = udp_sk(sk); local
817 up->len = 0;
818 up->pending = 0;
826 struct udp_sock *up = udp_sk(sk); local
838 int corkreq = up
1070 struct udp_sock *up = udp_sk(sk); local
1443 struct udp_sock *up = udp_sk(sk); local
1773 struct udp_sock *up = udp_sk(sk); local
1792 struct udp_sock *up = udp_sk(sk); local
1894 struct udp_sock *up = udp_sk(sk); local
[all...]
/net/batman-adv/
H A Dgateway_common.c25 static void batadv_kbit_to_gw_bandwidth(int down, int up, long *gw_srv_class) argument
52 if (abs(tup - up) < difference) {
54 difference = abs(tup - up);
59 /* returns the up and downspeeds in kbit, calculated from the class */
60 void batadv_gw_bandwidth_to_kbit(uint8_t gw_srv_class, int *down, int *up) argument
68 *up = 0;
73 *up = ((upart + 1) * (*down)) / 8;
77 int *up, int *down)
131 *up = lup * multi;
142 int up local
76 batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff, int *up, int *down) argument
[all...]
H A Dgateway_client.c121 int down, up; local
146 &down, &up);
318 int down, up; local
332 batadv_gw_bandwidth_to_kbit(new_gwflags, &down, &up);
338 (up > 2048 ? up / 1024 : up),
339 (up > 2048 ? "MBit" : "KBit"));
443 int down, up, ret = -1; local
445 batadv_gw_bandwidth_to_kbit(gw_node->orig_node->gw_flags, &down, &up);
[all...]
H A Dunicast.c37 struct batadv_unicast_frag_packet *up; local
41 int uni_diff = sizeof(*up) - hdr_len;
44 up = (struct batadv_unicast_frag_packet *)skb->data;
46 if (up->flags & BATADV_UNI_FRAG_HEAD) {
56 skb_pull(tmp_skb, sizeof(*up));
85 struct batadv_unicast_frag_packet *up; local
87 up = (struct batadv_unicast_frag_packet *)skb->data;
93 tfp->seqno = ntohs(up->seqno);
121 const struct batadv_unicast_frag_packet *up)
128 if (up
120 batadv_frag_search_packet(struct list_head *head, const struct batadv_unicast_frag_packet *up) argument
[all...]
H A Dsysfs.c396 int down, up; local
399 batadv_gw_bandwidth_to_kbit(gw_bandwidth, &down, &up);
403 (up > 2048 ? up / 1024 : up),
404 (up > 2048 ? "MBit" : "KBit"));
/net/caif/
H A Dcffrml.c64 void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up) argument
66 this->up = up;
128 if (layr->up == NULL) {
129 pr_err("Layr up is missing!\n");
134 return layr->up->receive(layr->up, pkt);
172 if (layr->up && layr->up->ctrlcmd)
173 layr->up
[all...]
H A Dcfmuxl.c86 int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid) argument
98 list_add_rcu(&up->node, &muxl->srvl_list);
125 struct cflayer *up; local
127 up = rcu_dereference(muxl->up_cache[idx]);
128 if (up == NULL || up->id != id) {
130 up = get_from_id(&muxl->srvl_list, id);
131 rcu_assign_pointer(muxl->up_cache[idx], up);
134 return up;
153 struct cflayer *up; local
179 struct cflayer *up; local
[all...]
H A Dcfcnfg.c31 bool up; member in struct:cfcnfg_phyinfo
155 if (phy->up && phy->pref == phy_pref &&
163 if (phy->up)
174 if (phy->ifindex == ifi && phy->up)
528 bool up)
539 if (phyinfo->up == up) {
543 phyinfo->up = up;
545 if (up) {
527 cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer, bool up) argument
[all...]
/net/ipv6/
H A Dipv6_sockglue.c163 struct udp_sock *up = udp_sk(sk); local
164 if (up->pending == AF_INET6) {
H A Dudp.c586 struct udp_sock *up = udp_sk(sk); local
593 if (static_key_false(&udpv6_encap_needed) && up->encap_type) {
599 * fall through and pass this up the UDP socket.
600 * up->encap_rcv() returns the following value:
608 encap_rcv = ACCESS_ONCE(up->encap_rcv);
629 if (up->pcrlen == 0) { /* full coverage was set */
635 if (UDP_SKB_CB(skb)->cscov < up->pcrlen) {
638 UDP_SKB_CB(skb)->cscov, up->pcrlen);
896 struct udp_sock *up = udp_sk(sk); local
898 if (up
956 struct udp_sock *up = udp_sk(sk); local
1012 struct udp_sock *up = udp_sk(sk); local
1299 struct udp_sock *up = udp_sk(sk); local
[all...]
/net/
H A Dcompat.c207 /* Ok, looks like we made it. Hook it up and return success. */
353 struct compat_timeval __user *up = (struct compat_timeval __user *)optval; local
358 if (optlen < sizeof(*up))
360 if (!access_ok(VERIFY_READ, up, sizeof(*up)) ||
361 __get_user(ktime.tv_sec, &up->tv_sec) ||
362 __get_user(ktime.tv_usec, &up->tv_usec))
414 struct compat_timeval __user *up; local
419 up = (struct compat_timeval __user *) optval;
422 if (len < sizeof(*up))
[all...]
H A Dsocket.c207 * After copying the data up to the limit the user specifies, the true
333 * Obtains the first available file descriptor and sets it up for use.
1035 * what to do with it - that's up to the protocol still.
1270 * Allocate the socket and allow the family to set things up. if
1548 * For accept, we attempt to create a new socket, set up the link
1549 * with the client, wake up the client, then return the new
2431 * Argument checking cleaned up. Saved 20% in size.
2675 unsigned int cmd, void __user *up)
2685 err = compat_put_timeval(&ktv, up);
2691 unsigned int cmd, void __user *up)
2674 do_siocgstamp(struct net *net, struct socket *sock, unsigned int cmd, void __user *up) argument
2690 do_siocgstampns(struct net *net, struct socket *sock, unsigned int cmd, void __user *up) argument
[all...]
/net/dcb/
H A Ddcbnl.c450 u8 up, idtype; local
475 up = netdev->dcbnl_ops->getapp(netdev, idtype, id);
481 up = dcb_getapp(netdev, &app);
496 ret = nla_put_u8(skb, DCB_APP_ATTR_PRIORITY, up);
514 u8 up, idtype; local
538 up = nla_get_u8(app_tb[DCB_APP_ATTR_PRIORITY]);
541 ret = netdev->dcbnl_ops->setapp(netdev, idtype, id, up);
546 app.priority = up;
/net/xfrm/
H A Dxfrm_user.c384 struct xfrm_replay_state_esn *up; local
390 up = nla_data(rp);
391 ulen = xfrm_replay_state_esn_len(up);
403 struct xfrm_replay_state_esn *p, *pp, *up; local
409 up = nla_data(rta);
410 klen = xfrm_replay_state_esn_len(up);
411 ulen = nla_len(rta) >= klen ? klen : sizeof(*up);
423 memcpy(p, up, ulen);
424 memcpy(pp, up, ulen);
1455 struct xfrm_user_tmpl *up local
1915 struct xfrm_user_polexpire *up = nlmsg_data(nlh); local
[all...]

Completed in 190 milliseconds