Lines Matching refs:domain
186 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) in do_sendmsg() argument
199 if (domain == PF_RDS) { in do_sendmsg()
222 if (do_zerocopy && domain == PF_RDS) { in do_sendmsg()
298 static void setup_sockaddr(int domain, const char *str_addr, in setup_sockaddr() argument
304 switch (domain) { in setup_sockaddr()
326 static int do_setup_tx(int domain, int type, int protocol) in do_setup_tx() argument
330 fd = socket(domain, type, protocol); in do_setup_tx()
338 if (domain != PF_PACKET && domain != PF_RDS) in do_setup_tx()
342 if (domain == PF_RDS) { in do_setup_tx()
396 static bool do_recv_completion(int fd, int domain) in do_recv_completion() argument
405 if (domain == PF_RDS) in do_recv_completion()
466 static void do_recv_completions(int fd, int domain) in do_recv_completions() argument
468 while (do_recv_completion(fd, domain)) {} in do_recv_completions()
473 static void do_recv_remaining_completions(int fd, int domain) in do_recv_remaining_completions() argument
479 if (do_poll(fd, domain == PF_RDS ? POLLIN : POLLERR)) in do_recv_remaining_completions()
480 do_recv_completions(fd, domain); in do_recv_remaining_completions()
488 static void do_tx(int domain, int type, int protocol) in do_tx() argument
501 fd = do_setup_tx(domain, type, protocol); in do_tx()
503 if (domain == PF_PACKET) { in do_tx()
530 if (domain == PF_PACKET || protocol == IPPROTO_RAW) { in do_tx()
540 if (domain == PF_RDS) { in do_tx()
557 do_sendmsg(fd, &msg, cfg_zerocopy, domain); in do_tx()
560 do_recv_completions(fd, domain); in do_tx()
564 do_recv_completions(fd, domain); in do_tx()
570 do_recv_remaining_completions(fd, domain); in do_tx()
580 static int do_setup_rx(int domain, int type, int protocol) in do_setup_rx() argument
587 if (domain == PF_PACKET) in do_setup_rx()
593 fd = socket(domain, type, protocol); in do_setup_rx()
661 static void do_rx(int domain, int type, int protocol) in do_rx() argument
667 fd = do_setup_rx(domain, type, protocol); in do_rx()
686 static void do_test(int domain, int type, int protocol) in do_test() argument
690 if (cfg_cork && (domain == PF_PACKET || type != SOCK_DGRAM)) in do_test()
699 do_rx(domain, type, protocol); in do_test()
701 do_tx(domain, type, protocol); in do_test()