Lines Matching refs:pkt
112 struct qrtr_ctrl_pkt pkt; in service_announce_new() local
119 iv.iov_base = &pkt; in service_announce_new()
120 iv.iov_len = sizeof(pkt); in service_announce_new()
122 memset(&pkt, 0, sizeof(pkt)); in service_announce_new()
123 pkt.cmd = cpu_to_le32(QRTR_TYPE_NEW_SERVER); in service_announce_new()
124 pkt.server.service = cpu_to_le32(srv->service); in service_announce_new()
125 pkt.server.instance = cpu_to_le32(srv->instance); in service_announce_new()
126 pkt.server.node = cpu_to_le32(srv->node); in service_announce_new()
127 pkt.server.port = cpu_to_le32(srv->port); in service_announce_new()
132 return kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt)); in service_announce_new()
138 struct qrtr_ctrl_pkt pkt; in service_announce_del() local
146 iv.iov_base = &pkt; in service_announce_del()
147 iv.iov_len = sizeof(pkt); in service_announce_del()
149 memset(&pkt, 0, sizeof(pkt)); in service_announce_del()
150 pkt.cmd = cpu_to_le32(QRTR_TYPE_DEL_SERVER); in service_announce_del()
151 pkt.server.service = cpu_to_le32(srv->service); in service_announce_del()
152 pkt.server.instance = cpu_to_le32(srv->instance); in service_announce_del()
153 pkt.server.node = cpu_to_le32(srv->node); in service_announce_del()
154 pkt.server.port = cpu_to_le32(srv->port); in service_announce_del()
159 ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt)); in service_announce_del()
169 struct qrtr_ctrl_pkt pkt; in lookup_notify() local
174 iv.iov_base = &pkt; in lookup_notify()
175 iv.iov_len = sizeof(pkt); in lookup_notify()
177 memset(&pkt, 0, sizeof(pkt)); in lookup_notify()
178 pkt.cmd = new ? cpu_to_le32(QRTR_TYPE_NEW_SERVER) : in lookup_notify()
181 pkt.server.service = cpu_to_le32(srv->service); in lookup_notify()
182 pkt.server.instance = cpu_to_le32(srv->instance); in lookup_notify()
183 pkt.server.node = cpu_to_le32(srv->node); in lookup_notify()
184 pkt.server.port = cpu_to_le32(srv->port); in lookup_notify()
190 ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt)); in lookup_notify()
301 struct qrtr_ctrl_pkt pkt; in say_hello() local
306 iv.iov_base = &pkt; in say_hello()
307 iv.iov_len = sizeof(pkt); in say_hello()
309 memset(&pkt, 0, sizeof(pkt)); in say_hello()
310 pkt.cmd = cpu_to_le32(QRTR_TYPE_HELLO); in say_hello()
315 ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt)); in say_hello()
337 struct qrtr_ctrl_pkt pkt; in ctrl_cmd_bye() local
346 iv.iov_base = &pkt; in ctrl_cmd_bye()
347 iv.iov_len = sizeof(pkt); in ctrl_cmd_bye()
362 memset(&pkt, 0, sizeof(pkt)); in ctrl_cmd_bye()
363 pkt.cmd = cpu_to_le32(QRTR_TYPE_BYE); in ctrl_cmd_bye()
364 pkt.client.node = cpu_to_le32(from->sq_node); in ctrl_cmd_bye()
374 ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt)); in ctrl_cmd_bye()
388 struct qrtr_ctrl_pkt pkt; in ctrl_cmd_del_client() local
399 iv.iov_base = &pkt; in ctrl_cmd_del_client()
400 iv.iov_len = sizeof(pkt); in ctrl_cmd_del_client()
435 memset(&pkt, 0, sizeof(pkt)); in ctrl_cmd_del_client()
436 pkt.cmd = cpu_to_le32(QRTR_TYPE_DEL_CLIENT); in ctrl_cmd_del_client()
437 pkt.client.node = cpu_to_le32(node_id); in ctrl_cmd_del_client()
438 pkt.client.port = cpu_to_le32(port); in ctrl_cmd_del_client()
448 ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt)); in ctrl_cmd_del_client()
590 const struct qrtr_ctrl_pkt *pkt; in qrtr_ns_worker() local
622 pkt = recv_buf; in qrtr_ns_worker()
623 cmd = le32_to_cpu(pkt->cmd); in qrtr_ns_worker()
639 le32_to_cpu(pkt->client.node), in qrtr_ns_worker()
640 le32_to_cpu(pkt->client.port)); in qrtr_ns_worker()
644 le32_to_cpu(pkt->server.service), in qrtr_ns_worker()
645 le32_to_cpu(pkt->server.instance), in qrtr_ns_worker()
646 le32_to_cpu(pkt->server.node), in qrtr_ns_worker()
647 le32_to_cpu(pkt->server.port)); in qrtr_ns_worker()
651 le32_to_cpu(pkt->server.service), in qrtr_ns_worker()
652 le32_to_cpu(pkt->server.instance), in qrtr_ns_worker()
653 le32_to_cpu(pkt->server.node), in qrtr_ns_worker()
654 le32_to_cpu(pkt->server.port)); in qrtr_ns_worker()
662 le32_to_cpu(pkt->server.service), in qrtr_ns_worker()
663 le32_to_cpu(pkt->server.instance)); in qrtr_ns_worker()
667 le32_to_cpu(pkt->server.service), in qrtr_ns_worker()
668 le32_to_cpu(pkt->server.instance)); in qrtr_ns_worker()