msg_head 2297 drivers/block/nbd.c void *msg_head; msg_head 2303 drivers/block/nbd.c msg_head = genlmsg_put_reply(skb, info, &nbd_genl_family, 0, msg_head 2305 drivers/block/nbd.c if (!msg_head) { msg_head 2314 drivers/block/nbd.c genlmsg_end(skb, msg_head); msg_head 2321 drivers/block/nbd.c void *msg_head; msg_head 2327 drivers/block/nbd.c msg_head = genlmsg_put(skb, 0, 0, &nbd_genl_family, 0, msg_head 2329 drivers/block/nbd.c if (!msg_head) { msg_head 2338 drivers/block/nbd.c genlmsg_end(skb, msg_head); msg_head 1042 drivers/net/wireless/mac80211_hwsim.c void *msg_head; msg_head 1064 drivers/net/wireless/mac80211_hwsim.c msg_head = genlmsg_put(skb, 0, 0, &hwsim_genl_family, 0, msg_head 1066 drivers/net/wireless/mac80211_hwsim.c if (msg_head == NULL) { msg_head 1122 drivers/net/wireless/mac80211_hwsim.c genlmsg_end(skb, msg_head); msg_head 42 fs/quota/netlink.c void *msg_head; msg_head 56 fs/quota/netlink.c msg_head = genlmsg_put(skb, 0, atomic_add_return(1, &seq), msg_head 58 fs/quota/netlink.c if (!msg_head) { msg_head 85 fs/quota/netlink.c genlmsg_end(skb, msg_head); msg_head 714 net/batman-adv/netlink.c void *msg_head; msg_head 735 net/batman-adv/netlink.c msg_head = genlmsg_put(msg, info->snd_portid, info->snd_seq, msg_head 738 net/batman-adv/netlink.c if (!msg_head) { msg_head 754 net/batman-adv/netlink.c genlmsg_end(msg, msg_head); msg_head 147 net/can/bcm.c static bool bcm_is_invalid_tv(struct bcm_msg_head *msg_head) msg_head 149 net/can/bcm.c if ((msg_head->ival1.tv_sec < 0) || msg_head 150 net/can/bcm.c (msg_head->ival1.tv_sec > BCM_TIMER_SEC_MAX) || msg_head 151 net/can/bcm.c (msg_head->ival1.tv_usec < 0) || msg_head 152 net/can/bcm.c (msg_head->ival1.tv_usec >= USEC_PER_SEC) || msg_head 153 net/can/bcm.c (msg_head->ival2.tv_sec < 0) || msg_head 154 net/can/bcm.c (msg_head->ival2.tv_sec > BCM_TIMER_SEC_MAX) || msg_head 155 net/can/bcm.c (msg_head->ival2.tv_usec < 0) || msg_head 156 net/can/bcm.c (msg_head->ival2.tv_usec >= USEC_PER_SEC)) msg_head 398 net/can/bcm.c struct bcm_msg_head msg_head; msg_head 405 net/can/bcm.c msg_head.opcode = TX_EXPIRED; msg_head 406 net/can/bcm.c msg_head.flags = op->flags; msg_head 407 net/can/bcm.c msg_head.count = op->count; msg_head 408 net/can/bcm.c msg_head.ival1 = op->ival1; msg_head 409 net/can/bcm.c msg_head.ival2 = op->ival2; msg_head 410 net/can/bcm.c msg_head.can_id = op->can_id; msg_head 411 net/can/bcm.c msg_head.nframes = 0; msg_head 413 net/can/bcm.c bcm_send_to_user(op, &msg_head, NULL, 0); msg_head 554 net/can/bcm.c struct bcm_msg_head msg_head; msg_head 563 net/can/bcm.c msg_head.opcode = RX_TIMEOUT; msg_head 564 net/can/bcm.c msg_head.flags = op->flags; msg_head 565 net/can/bcm.c msg_head.count = op->count; msg_head 566 net/can/bcm.c msg_head.ival1 = op->ival1; msg_head 567 net/can/bcm.c msg_head.ival2 = op->ival2; msg_head 568 net/can/bcm.c msg_head.can_id = op->can_id; msg_head 569 net/can/bcm.c msg_head.nframes = 0; msg_head 571 net/can/bcm.c bcm_send_to_user(op, &msg_head, NULL, 0); msg_head 812 net/can/bcm.c static int bcm_read_op(struct list_head *ops, struct bcm_msg_head *msg_head, msg_head 815 net/can/bcm.c struct bcm_op *op = bcm_find_op(ops, msg_head, ifindex); msg_head 821 net/can/bcm.c msg_head->flags = op->flags; msg_head 822 net/can/bcm.c msg_head->count = op->count; msg_head 823 net/can/bcm.c msg_head->ival1 = op->ival1; msg_head 824 net/can/bcm.c msg_head->ival2 = op->ival2; msg_head 825 net/can/bcm.c msg_head->nframes = op->nframes; msg_head 827 net/can/bcm.c bcm_send_to_user(op, msg_head, op->frames, 0); msg_head 835 net/can/bcm.c static int bcm_tx_setup(struct bcm_msg_head *msg_head, struct msghdr *msg, msg_head 849 net/can/bcm.c if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) msg_head 853 net/can/bcm.c if ((msg_head->flags & SETTIMER) && bcm_is_invalid_tv(msg_head)) msg_head 857 net/can/bcm.c op = bcm_find_op(&bo->tx_ops, msg_head, ifindex); msg_head 866 net/can/bcm.c if (msg_head->nframes > op->nframes) msg_head 870 net/can/bcm.c for (i = 0; i < msg_head->nframes; i++) { msg_head 886 net/can/bcm.c if (msg_head->flags & TX_CP_CAN_ID) { msg_head 888 net/can/bcm.c cf->can_id = msg_head->can_id; msg_head 891 net/can/bcm.c op->flags = msg_head->flags; msg_head 900 net/can/bcm.c op->can_id = msg_head->can_id; msg_head 901 net/can/bcm.c op->cfsiz = CFSIZ(msg_head->flags); msg_head 902 net/can/bcm.c op->flags = msg_head->flags; msg_head 905 net/can/bcm.c if (msg_head->nframes > 1) { msg_head 906 net/can/bcm.c op->frames = kmalloc_array(msg_head->nframes, msg_head 916 net/can/bcm.c for (i = 0; i < msg_head->nframes; i++) { msg_head 936 net/can/bcm.c if (msg_head->flags & TX_CP_CAN_ID) { msg_head 938 net/can/bcm.c cf->can_id = msg_head->can_id; msg_head 963 net/can/bcm.c if (op->nframes != msg_head->nframes) { msg_head 964 net/can/bcm.c op->nframes = msg_head->nframes; msg_head 978 net/can/bcm.c op->count = msg_head->count; msg_head 979 net/can/bcm.c op->ival1 = msg_head->ival1; msg_head 980 net/can/bcm.c op->ival2 = msg_head->ival2; msg_head 981 net/can/bcm.c op->kt_ival1 = bcm_timeval_to_ktime(msg_head->ival1); msg_head 982 net/can/bcm.c op->kt_ival2 = bcm_timeval_to_ktime(msg_head->ival2); msg_head 1004 net/can/bcm.c return msg_head->nframes * op->cfsiz + MHSIZ; msg_head 1010 net/can/bcm.c static int bcm_rx_setup(struct bcm_msg_head *msg_head, struct msghdr *msg, msg_head 1018 net/can/bcm.c if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { msg_head 1020 net/can/bcm.c msg_head->flags |= RX_FILTER_ID; msg_head 1022 net/can/bcm.c msg_head->nframes = 0; msg_head 1026 net/can/bcm.c if (msg_head->nframes > MAX_NFRAMES + 1) msg_head 1029 net/can/bcm.c if ((msg_head->flags & RX_RTR_FRAME) && msg_head 1030 net/can/bcm.c ((msg_head->nframes != 1) || msg_head 1031 net/can/bcm.c (!(msg_head->can_id & CAN_RTR_FLAG)))) msg_head 1035 net/can/bcm.c if ((msg_head->flags & SETTIMER) && bcm_is_invalid_tv(msg_head)) msg_head 1039 net/can/bcm.c op = bcm_find_op(&bo->rx_ops, msg_head, ifindex); msg_head 1048 net/can/bcm.c if (msg_head->nframes > op->nframes) msg_head 1051 net/can/bcm.c if (msg_head->nframes) { msg_head 1054 net/can/bcm.c msg_head->nframes * op->cfsiz); msg_head 1059 net/can/bcm.c memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); msg_head 1062 net/can/bcm.c op->nframes = msg_head->nframes; msg_head 1063 net/can/bcm.c op->flags = msg_head->flags; msg_head 1074 net/can/bcm.c op->can_id = msg_head->can_id; msg_head 1075 net/can/bcm.c op->nframes = msg_head->nframes; msg_head 1076 net/can/bcm.c op->cfsiz = CFSIZ(msg_head->flags); msg_head 1077 net/can/bcm.c op->flags = msg_head->flags; msg_head 1079 net/can/bcm.c if (msg_head->nframes > 1) { msg_head 1081 net/can/bcm.c op->frames = kmalloc_array(msg_head->nframes, msg_head 1090 net/can/bcm.c op->last_frames = kcalloc(msg_head->nframes, msg_head 1104 net/can/bcm.c if (msg_head->nframes) { msg_head 1106 net/can/bcm.c msg_head->nframes * op->cfsiz); msg_head 1163 net/can/bcm.c op->ival1 = msg_head->ival1; msg_head 1164 net/can/bcm.c op->ival2 = msg_head->ival2; msg_head 1165 net/can/bcm.c op->kt_ival1 = bcm_timeval_to_ktime(msg_head->ival1); msg_head 1166 net/can/bcm.c op->kt_ival2 = bcm_timeval_to_ktime(msg_head->ival2); msg_head 1215 net/can/bcm.c return msg_head->nframes * op->cfsiz + MHSIZ; msg_head 1271 net/can/bcm.c struct bcm_msg_head msg_head; msg_head 1283 net/can/bcm.c ret = memcpy_from_msg((u8 *)&msg_head, msg, MHSIZ); msg_head 1287 net/can/bcm.c cfsiz = CFSIZ(msg_head.flags); msg_head 1324 net/can/bcm.c switch (msg_head.opcode) { msg_head 1327 net/can/bcm.c ret = bcm_tx_setup(&msg_head, msg, ifindex, sk); msg_head 1331 net/can/bcm.c ret = bcm_rx_setup(&msg_head, msg, ifindex, sk); msg_head 1335 net/can/bcm.c if (bcm_delete_tx_op(&bo->tx_ops, &msg_head, ifindex)) msg_head 1342 net/can/bcm.c if (bcm_delete_rx_op(&bo->rx_ops, &msg_head, ifindex)) msg_head 1350 net/can/bcm.c msg_head.opcode = TX_STATUS; msg_head 1351 net/can/bcm.c ret = bcm_read_op(&bo->tx_ops, &msg_head, ifindex); msg_head 1356 net/can/bcm.c msg_head.opcode = RX_STATUS; msg_head 1357 net/can/bcm.c ret = bcm_read_op(&bo->rx_ops, &msg_head, ifindex); msg_head 1362 net/can/bcm.c if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) msg_head 150 net/hsr/hsr_netlink.c void *msg_head; msg_head 158 net/hsr/hsr_netlink.c msg_head = genlmsg_put(skb, 0, 0, &hsr_genl_family, 0, msg_head 160 net/hsr/hsr_netlink.c if (!msg_head) msg_head 171 net/hsr/hsr_netlink.c genlmsg_end(skb, msg_head); msg_head 192 net/hsr/hsr_netlink.c void *msg_head; msg_head 200 net/hsr/hsr_netlink.c msg_head = genlmsg_put(skb, 0, 0, &hsr_genl_family, 0, HSR_C_NODE_DOWN); msg_head 201 net/hsr/hsr_netlink.c if (!msg_head) msg_head 208 net/hsr/hsr_netlink.c genlmsg_end(skb, msg_head); msg_head 239 net/hsr/hsr_netlink.c void *msg_head; msg_head 275 net/hsr/hsr_netlink.c msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, msg_head 278 net/hsr/hsr_netlink.c if (!msg_head) { msg_head 345 net/hsr/hsr_netlink.c genlmsg_end(skb_out, msg_head); msg_head 376 net/hsr/hsr_netlink.c void *msg_head; msg_head 402 net/hsr/hsr_netlink.c msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, msg_head 405 net/hsr/hsr_netlink.c if (!msg_head) { msg_head 424 net/hsr/hsr_netlink.c genlmsg_end(skb_out, msg_head); msg_head 436 net/hsr/hsr_netlink.c genlmsg_end(skb_out, msg_head);