Lines Matching defs:cn
227 struct cn_msg *cn;
237 cn = kmalloc(PAGE_SIZE, GFP_KERNEL);
238 if (!cn)
241 cn->id.idx = CN_W1_IDX;
242 cn->id.val = CN_W1_VAL;
244 cn->seq = msg->seq;
245 cn->ack = 1;
246 cn->len = sizeof(struct w1_netlink_msg);
247 w = (struct w1_netlink_msg *)(cn + 1);
256 if (cn->len + sizeof(*id) > PAGE_SIZE - sizeof(struct cn_msg)) {
257 cn_netlink_send(cn, 0, GFP_KERNEL);
258 cn->ack++;
259 cn->len = sizeof(struct w1_netlink_msg);
266 cn->len += sizeof(*id);
269 cn->ack = 0;
270 cn_netlink_send(cn, 0, GFP_KERNEL);
273 kfree(cn);