Lines Matching refs:swap
65 static u32 htohl(u32 in, int swap) in htohl() argument
67 return swap ? swab32(in) : in; in htohl()
80 sub->evt.event = htohl(event, sub->swap); in tipc_subscrp_send_event()
81 sub->evt.found_lower = htohl(found_lower, sub->swap); in tipc_subscrp_send_event()
82 sub->evt.found_upper = htohl(found_upper, sub->swap); in tipc_subscrp_send_event()
83 sub->evt.port.ref = htohl(port_ref, sub->swap); in tipc_subscrp_send_event()
84 sub->evt.port.node = htohl(node, sub->swap); in tipc_subscrp_send_event()
225 int swap; in tipc_subscrp_create() local
228 swap = !(s->filter & (TIPC_SUB_PORTS | TIPC_SUB_SERVICE)); in tipc_subscrp_create()
231 if (s->filter & htohl(TIPC_SUB_CANCEL, swap)) { in tipc_subscrp_create()
232 s->filter &= ~htohl(TIPC_SUB_CANCEL, swap); in tipc_subscrp_create()
253 sub->seq.type = htohl(s->seq.type, swap); in tipc_subscrp_create()
254 sub->seq.lower = htohl(s->seq.lower, swap); in tipc_subscrp_create()
255 sub->seq.upper = htohl(s->seq.upper, swap); in tipc_subscrp_create()
256 sub->timeout = msecs_to_jiffies(htohl(s->timeout, swap)); in tipc_subscrp_create()
257 sub->filter = htohl(s->filter, swap); in tipc_subscrp_create()
269 sub->swap = swap; in tipc_subscrp_create()