• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/netgraph/atm/ccatm/

Lines Matching refs:msg

56 #include <netnatm/msg/unistruct.h>
391 ng_ccatm_get_addresses(node_p node, uint32_t portno, struct ng_mesg *msg,
407 NG_MKRESPONSE(*resp, msg, len, M_NOWAIT);
488 struct ng_mesg *msg;
492 NGI_GET_MSG(item, msg);
494 switch (msg->header.typecookie) {
496 switch (msg->header.cmd) {
508 if (msg->header.arglen != sizeof(*arg)) {
512 arg = (struct ngm_ccatm_port *)msg->data;
521 if (msg->header.arglen != sizeof(*arg)) {
525 arg = (struct ngm_ccatm_port *)msg->data;
535 if (msg->header.arglen != sizeof(*arg)) {
539 arg = (struct ngm_ccatm_port *)msg->data;
543 NG_MKRESPONSE(resp, msg, sizeof(uint32_t),
558 if (msg->header.arglen != sizeof(*arg)) {
562 arg = (struct ngm_ccatm_port *)msg->data;
563 error = ng_ccatm_get_addresses(node, arg->port, msg,
572 if (msg->header.arglen != sizeof(*arg)) {
576 arg = (struct ngm_ccatm_port *)msg->data;
585 if (msg->header.arglen != sizeof(*arg)) {
589 arg = (struct ngm_ccatm_addr_req *)msg->data;
599 if (msg->header.arglen != sizeof(*arg)) {
603 arg = (struct ngm_ccatm_addr_req *)msg->data;
613 if (msg->header.arglen != sizeof(*arg)) {
617 arg = (struct ngm_ccatm_port *)msg->data;
618 NG_MKRESPONSE(resp, msg, sizeof(struct atm_port_info),
637 if (msg->header.arglen != sizeof(*arg)) {
641 arg = (struct atm_port_info *)msg->data;
651 if (msg->header.arglen != 0) {
659 NG_MKRESPONSE(resp, msg, sizeof(*arg) +
680 if (msg->header.arglen != 0) {
681 if (msg->header.arglen != sizeof(log_level)) {
685 cc_set_log(priv->data, *(uint32_t *)msg->data);
688 NG_MKRESPONSE(resp, msg, sizeof(uint32_t), M_NOWAIT);
691 if (msg->header.arglen != 0)
700 if (msg->header.arglen != 0) {
721 if (msg->header.arglen != 0) {
735 NG_MKRESPONSE(resp, msg, offs, M_NOWAIT);
779 NG_FREE_MSG(msg);
918 struct uni_msg *msg;
926 if ((err = uni_msg_unpack_mbuf(m, &msg)) != 0) {
932 if (uni_msg_len(msg) < sizeof(op)) {
934 uni_msg_destroy(msg);
938 bcopy(msg->b_rptr, &op, sizeof(op));
939 msg->b_rptr += sizeof(op);
941 err = cc_user_signal(hd->inst, op.op, msg);
1052 struct uni_msg *msg;
1060 if ((err = uni_msg_unpack_mbuf(m, &msg)) != 0) {
1066 if (uni_msg_len(msg) < sizeof(arg)) {
1068 uni_msg_destroy(msg);
1072 bcopy(msg->b_rptr, &arg, sizeof(arg));
1073 msg->b_rptr += sizeof(arg);
1076 if (uni_msg_len(msg) != sizeof(struct uniapi_error)) {
1078 uni_msg_len(msg));
1079 uni_msg_destroy(msg);
1083 ((struct uniapi_error *)msg->b_rptr)->reason,
1084 ((struct uniapi_error *)msg->b_rptr)->state);
1085 uni_msg_destroy(msg);
1087 err = cc_uni_signal(hd->inst, arg.cookie, arg.sig, msg);
1098 struct uni_msg *msg)
1108 m = uni_msg_pack_mbuf(msg, &arg, sizeof(arg));
1109 uni_msg_destroy(msg);
1123 struct uni_msg *msg)
1133 m = uni_msg_pack_mbuf(msg, &arg, sizeof(arg));
1134 if (msg != NULL)
1135 uni_msg_destroy(msg);