Lines Matching refs:sq
59 struct sockaddr_qrtr sq; member
199 static void handle_rrq(const char *buf, size_t len, struct sockaddr_qrtr *sq) in handle_rrq() argument
269 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_rrq()
289 client->sq = *sq; in handle_rrq()
312 static void handle_wrq(const char *buf, size_t len __unused, struct sockaddr_qrtr *sq) in handle_wrq() argument
346 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_wrq()
354 client->sq = *sq; in handle_wrq()
374 struct sockaddr_qrtr sq; in handle_reader() local
384 sl = sizeof(sq); in handle_reader()
385 len = recvfrom(client->sock, buf, sizeof(buf), 0, (void *)&sq, &sl); in handle_reader()
394 if (sq.sq_node != client->sq.sq_node || in handle_reader()
395 sq.sq_port != client->sq.sq_port) { in handle_reader()
430 struct sockaddr_qrtr sq; in handle_writer() local
439 sl = sizeof(sq); in handle_writer()
440 len = recvfrom(client->sock, buf, sizeof(buf), 0, (void *)&sq, &sl); in handle_writer()
449 if (sq.sq_node != client->sq.sq_node || in handle_writer()
450 sq.sq_port != client->sq.sq_port) in handle_writer()
487 struct sockaddr_qrtr sq; in main() local
552 sl = sizeof(sq); in main()
553 len = recvfrom(fd, buf, sizeof(buf), 0, (void *)&sq, &sl); in main()
562 if (sq.sq_port == QRTR_PORT_CTRL) { in main()
563 ret = qrtr_decode(&pkt, buf, len, &sq); in main()
573 if (client->sq.sq_node == sq.sq_node) in main()
580 if (!memcmp(&client->sq, &sq, sizeof(sq))) in main()
592 handle_rrq(buf, len, &sq); in main()
596 handle_wrq(buf, len, &sq); in main()