cmsg               71 arch/um/os-Linux/drivers/tuntap_user.c 	struct cmsghdr *cmsg;
cmsg              111 arch/um/os-Linux/drivers/tuntap_user.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg              112 arch/um/os-Linux/drivers/tuntap_user.c 	if (cmsg == NULL) {
cmsg              117 arch/um/os-Linux/drivers/tuntap_user.c 	if ((cmsg->cmsg_level != SOL_SOCKET) ||
cmsg              118 arch/um/os-Linux/drivers/tuntap_user.c 	   (cmsg->cmsg_type != SCM_RIGHTS)) {
cmsg              123 arch/um/os-Linux/drivers/tuntap_user.c 	*fd_out = ((int *) CMSG_DATA(cmsg))[0];
cmsg              507 arch/um/os-Linux/file.c 	struct cmsghdr *cmsg;
cmsg              526 arch/um/os-Linux/file.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg              527 arch/um/os-Linux/file.c 	if (cmsg == NULL) {
cmsg              532 arch/um/os-Linux/file.c 	if ((cmsg->cmsg_level != SOL_SOCKET) ||
cmsg              533 arch/um/os-Linux/file.c 	    (cmsg->cmsg_type != SCM_RIGHTS)) {
cmsg              538 arch/um/os-Linux/file.c 	new = ((int *) CMSG_DATA(cmsg))[0];
cmsg              652 arch/um/os-Linux/file.c 	struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
cmsg              658 arch/um/os-Linux/file.c 	cmsg->cmsg_level = SOL_SOCKET;
cmsg              659 arch/um/os-Linux/file.c 	cmsg->cmsg_type = SCM_RIGHTS;
cmsg              660 arch/um/os-Linux/file.c 	cmsg->cmsg_len = CMSG_LEN(fds_size);
cmsg              661 arch/um/os-Linux/file.c 	memcpy(CMSG_DATA(cmsg), fds, fds_size);
cmsg              442 crypto/af_alg.c 	struct cmsghdr *cmsg;
cmsg              444 crypto/af_alg.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              445 crypto/af_alg.c 		if (!CMSG_OK(msg, cmsg))
cmsg              447 crypto/af_alg.c 		if (cmsg->cmsg_level != SOL_ALG)
cmsg              450 crypto/af_alg.c 		switch (cmsg->cmsg_type) {
cmsg              452 crypto/af_alg.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(*con->iv)))
cmsg              454 crypto/af_alg.c 			con->iv = (void *)CMSG_DATA(cmsg);
cmsg              455 crypto/af_alg.c 			if (cmsg->cmsg_len < CMSG_LEN(con->iv->ivlen +
cmsg              461 crypto/af_alg.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32)))
cmsg              463 crypto/af_alg.c 			con->op = *(u32 *)CMSG_DATA(cmsg);
cmsg              467 crypto/af_alg.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32)))
cmsg              469 crypto/af_alg.c 			con->aead_assoclen = *(u32 *)CMSG_DATA(cmsg);
cmsg              881 drivers/hsi/clients/ssi_protocol.c 	struct hsi_msg *cmsg;
cmsg              892 drivers/hsi/clients/ssi_protocol.c 		cmsg = ssip_claim_cmd(ssi);
cmsg              893 drivers/hsi/clients/ssi_protocol.c 		ssip_set_cmd(cmsg, SSIP_SWBREAK_CMD);
cmsg              894 drivers/hsi/clients/ssi_protocol.c 		cmsg->complete = ssip_swbreak_complete;
cmsg              896 drivers/hsi/clients/ssi_protocol.c 		hsi_async_write(cl, cmsg);
cmsg              229 drivers/isdn/capi/capiutil.c #define TYP (cdef[cmsg->par[cmsg->p]].typ)
cmsg              230 drivers/isdn/capi/capiutil.c #define OFF (((u8 *)cmsg) + cdef[cmsg->par[cmsg->p]].off)
cmsg              232 drivers/isdn/capi/capiutil.c static void jumpcstruct(_cmsg *cmsg)
cmsg              235 drivers/isdn/capi/capiutil.c 	for (cmsg->p++, layer = 1; layer;) {
cmsg              237 drivers/isdn/capi/capiutil.c 		cmsg->p++;
cmsg              249 drivers/isdn/capi/capiutil.c static void pars_2_message(_cmsg *cmsg)
cmsg              252 drivers/isdn/capi/capiutil.c 	for (; TYP != _CEND; cmsg->p++) {
cmsg              255 drivers/isdn/capi/capiutil.c 			byteTLcpy(cmsg->m + cmsg->l, OFF);
cmsg              256 drivers/isdn/capi/capiutil.c 			cmsg->l++;
cmsg              259 drivers/isdn/capi/capiutil.c 			wordTLcpy(cmsg->m + cmsg->l, OFF);
cmsg              260 drivers/isdn/capi/capiutil.c 			cmsg->l += 2;
cmsg              263 drivers/isdn/capi/capiutil.c 			dwordTLcpy(cmsg->m + cmsg->l, OFF);
cmsg              264 drivers/isdn/capi/capiutil.c 			cmsg->l += 4;
cmsg              268 drivers/isdn/capi/capiutil.c 				*(cmsg->m + cmsg->l) = '\0';
cmsg              269 drivers/isdn/capi/capiutil.c 				cmsg->l++;
cmsg              271 drivers/isdn/capi/capiutil.c 				structTLcpy(cmsg->m + cmsg->l, *(_cstruct *) OFF, 1 + **(_cstruct *) OFF);
cmsg              272 drivers/isdn/capi/capiutil.c 				cmsg->l += 1 + **(_cstruct *) OFF;
cmsg              275 drivers/isdn/capi/capiutil.c 				structTLcpy(cmsg->m + cmsg->l, s, 3 + *(u16 *) (s + 1));
cmsg              276 drivers/isdn/capi/capiutil.c 				cmsg->l += 3 + *(u16 *) (s + 1);
cmsg              282 drivers/isdn/capi/capiutil.c 				*(cmsg->m + cmsg->l) = '\0';
cmsg              283 drivers/isdn/capi/capiutil.c 				cmsg->l++;
cmsg              284 drivers/isdn/capi/capiutil.c 				jumpcstruct(cmsg);
cmsg              288 drivers/isdn/capi/capiutil.c 				unsigned _l = cmsg->l;
cmsg              290 drivers/isdn/capi/capiutil.c 				cmsg->l++;
cmsg              291 drivers/isdn/capi/capiutil.c 				cmsg->p++;
cmsg              292 drivers/isdn/capi/capiutil.c 				pars_2_message(cmsg);
cmsg              293 drivers/isdn/capi/capiutil.c 				_ls = cmsg->l - _l - 1;
cmsg              295 drivers/isdn/capi/capiutil.c 					(cmsg->m + _l)[0] = (u8) _ls;
cmsg              297 drivers/isdn/capi/capiutil.c 					structTLcpyovl(cmsg->m + _l + 3, cmsg->m + _l + 1, _ls);
cmsg              298 drivers/isdn/capi/capiutil.c 					(cmsg->m + _l)[0] = 0xff;
cmsg              299 drivers/isdn/capi/capiutil.c 					wordTLcpy(cmsg->m + _l + 1, &_ls);
cmsg              315 drivers/isdn/capi/capiutil.c unsigned capi_cmsg2message(_cmsg *cmsg, u8 *msg)
cmsg              317 drivers/isdn/capi/capiutil.c 	cmsg->m = msg;
cmsg              318 drivers/isdn/capi/capiutil.c 	cmsg->l = 8;
cmsg              319 drivers/isdn/capi/capiutil.c 	cmsg->p = 0;
cmsg              320 drivers/isdn/capi/capiutil.c 	cmsg->par = capi_cmd2par(cmsg->Command, cmsg->Subcommand);
cmsg              321 drivers/isdn/capi/capiutil.c 	if (!cmsg->par)
cmsg              324 drivers/isdn/capi/capiutil.c 	pars_2_message(cmsg);
cmsg              326 drivers/isdn/capi/capiutil.c 	wordTLcpy(msg + 0, &cmsg->l);
cmsg              327 drivers/isdn/capi/capiutil.c 	byteTLcpy(cmsg->m + 4, &cmsg->Command);
cmsg              328 drivers/isdn/capi/capiutil.c 	byteTLcpy(cmsg->m + 5, &cmsg->Subcommand);
cmsg              329 drivers/isdn/capi/capiutil.c 	wordTLcpy(cmsg->m + 2, &cmsg->ApplId);
cmsg              330 drivers/isdn/capi/capiutil.c 	wordTLcpy(cmsg->m + 6, &cmsg->Messagenumber);
cmsg              336 drivers/isdn/capi/capiutil.c static void message_2_pars(_cmsg *cmsg)
cmsg              338 drivers/isdn/capi/capiutil.c 	for (; TYP != _CEND; cmsg->p++) {
cmsg              342 drivers/isdn/capi/capiutil.c 			byteTRcpy(cmsg->m + cmsg->l, OFF);
cmsg              343 drivers/isdn/capi/capiutil.c 			cmsg->l++;
cmsg              346 drivers/isdn/capi/capiutil.c 			wordTRcpy(cmsg->m + cmsg->l, OFF);
cmsg              347 drivers/isdn/capi/capiutil.c 			cmsg->l += 2;
cmsg              350 drivers/isdn/capi/capiutil.c 			dwordTRcpy(cmsg->m + cmsg->l, OFF);
cmsg              351 drivers/isdn/capi/capiutil.c 			cmsg->l += 4;
cmsg              354 drivers/isdn/capi/capiutil.c 			*(u8 **) OFF = cmsg->m + cmsg->l;
cmsg              356 drivers/isdn/capi/capiutil.c 			if (cmsg->m[cmsg->l] != 0xff)
cmsg              357 drivers/isdn/capi/capiutil.c 				cmsg->l += 1 + cmsg->m[cmsg->l];
cmsg              359 drivers/isdn/capi/capiutil.c 				cmsg->l += 3 + *(u16 *) (cmsg->m + cmsg->l + 1);
cmsg              363 drivers/isdn/capi/capiutil.c 			if (cmsg->m[cmsg->l] == '\0') {
cmsg              365 drivers/isdn/capi/capiutil.c 				cmsg->l++;
cmsg              366 drivers/isdn/capi/capiutil.c 				jumpcstruct(cmsg);
cmsg              368 drivers/isdn/capi/capiutil.c 				unsigned _l = cmsg->l;
cmsg              370 drivers/isdn/capi/capiutil.c 				cmsg->l = (cmsg->m + _l)[0] == 255 ? cmsg->l + 3 : cmsg->l + 1;
cmsg              371 drivers/isdn/capi/capiutil.c 				cmsg->p++;
cmsg              372 drivers/isdn/capi/capiutil.c 				message_2_pars(cmsg);
cmsg              387 drivers/isdn/capi/capiutil.c unsigned capi_message2cmsg(_cmsg *cmsg, u8 *msg)
cmsg              389 drivers/isdn/capi/capiutil.c 	memset(cmsg, 0, sizeof(_cmsg));
cmsg              390 drivers/isdn/capi/capiutil.c 	cmsg->m = msg;
cmsg              391 drivers/isdn/capi/capiutil.c 	cmsg->l = 8;
cmsg              392 drivers/isdn/capi/capiutil.c 	cmsg->p = 0;
cmsg              393 drivers/isdn/capi/capiutil.c 	byteTRcpy(cmsg->m + 4, &cmsg->Command);
cmsg              394 drivers/isdn/capi/capiutil.c 	byteTRcpy(cmsg->m + 5, &cmsg->Subcommand);
cmsg              395 drivers/isdn/capi/capiutil.c 	cmsg->par = capi_cmd2par(cmsg->Command, cmsg->Subcommand);
cmsg              396 drivers/isdn/capi/capiutil.c 	if (!cmsg->par)
cmsg              399 drivers/isdn/capi/capiutil.c 	message_2_pars(cmsg);
cmsg              401 drivers/isdn/capi/capiutil.c 	wordTRcpy(msg + 0, &cmsg->l);
cmsg              402 drivers/isdn/capi/capiutil.c 	wordTRcpy(cmsg->m + 2, &cmsg->ApplId);
cmsg              403 drivers/isdn/capi/capiutil.c 	wordTRcpy(cmsg->m + 6, &cmsg->Messagenumber);
cmsg              420 drivers/isdn/capi/capiutil.c unsigned capi_cmsg_header(_cmsg *cmsg, u16 _ApplId,
cmsg              424 drivers/isdn/capi/capiutil.c 	memset(cmsg, 0, sizeof(_cmsg));
cmsg              425 drivers/isdn/capi/capiutil.c 	cmsg->ApplId = _ApplId;
cmsg              426 drivers/isdn/capi/capiutil.c 	cmsg->Command = _Command;
cmsg              427 drivers/isdn/capi/capiutil.c 	cmsg->Subcommand = _Subcommand;
cmsg              428 drivers/isdn/capi/capiutil.c 	cmsg->Messagenumber = _Messagenumber;
cmsg              429 drivers/isdn/capi/capiutil.c 	cmsg->adr.adrController = _Controller;
cmsg              648 drivers/isdn/capi/capiutil.c #define NAME (pnames[cmsg->par[cmsg->p]])
cmsg              650 drivers/isdn/capi/capiutil.c static _cdebbuf *protocol_message_2_pars(_cdebbuf *cdb, _cmsg *cmsg, int level)
cmsg              652 drivers/isdn/capi/capiutil.c 	if (!cmsg->par)
cmsg              655 drivers/isdn/capi/capiutil.c 	for (; TYP != _CEND; cmsg->p++) {
cmsg              667 drivers/isdn/capi/capiutil.c 			cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u8 *) (cmsg->m + cmsg->l));
cmsg              668 drivers/isdn/capi/capiutil.c 			cmsg->l++;
cmsg              671 drivers/isdn/capi/capiutil.c 			cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u16 *) (cmsg->m + cmsg->l));
cmsg              672 drivers/isdn/capi/capiutil.c 			cmsg->l += 2;
cmsg              675 drivers/isdn/capi/capiutil.c 			cdb = bufprint(cdb, "%-*s = 0x%lx\n", slen, NAME, *(u32 *) (cmsg->m + cmsg->l));
cmsg              676 drivers/isdn/capi/capiutil.c 			cmsg->l += 4;
cmsg              680 drivers/isdn/capi/capiutil.c 			if (cmsg->m[cmsg->l] == '\0')
cmsg              683 drivers/isdn/capi/capiutil.c 				cdb = printstruct(cdb, cmsg->m + cmsg->l);
cmsg              685 drivers/isdn/capi/capiutil.c 			if (cmsg->m[cmsg->l] != 0xff)
cmsg              686 drivers/isdn/capi/capiutil.c 				cmsg->l += 1 + cmsg->m[cmsg->l];
cmsg              688 drivers/isdn/capi/capiutil.c 				cmsg->l += 3 + *(u16 *) (cmsg->m + cmsg->l + 1);
cmsg              694 drivers/isdn/capi/capiutil.c 			if (cmsg->m[cmsg->l] == '\0') {
cmsg              696 drivers/isdn/capi/capiutil.c 				cmsg->l++;
cmsg              697 drivers/isdn/capi/capiutil.c 				jumpcstruct(cmsg);
cmsg              700 drivers/isdn/capi/capiutil.c 				unsigned _l = cmsg->l;
cmsg              702 drivers/isdn/capi/capiutil.c 				cmsg->l = (cmsg->m + _l)[0] == 255 ? cmsg->l + 3 : cmsg->l + 1;
cmsg              703 drivers/isdn/capi/capiutil.c 				cmsg->p++;
cmsg              704 drivers/isdn/capi/capiutil.c 				cdb = protocol_message_2_pars(cdb, cmsg, level + 1);
cmsg              771 drivers/isdn/capi/capiutil.c 	_cmsg	*cmsg;
cmsg              777 drivers/isdn/capi/capiutil.c 		cmsg = g_cmsg;
cmsg              779 drivers/isdn/capi/capiutil.c 		cmsg = kmalloc(sizeof(_cmsg), GFP_ATOMIC);
cmsg              780 drivers/isdn/capi/capiutil.c 	if (unlikely(!cmsg)) {
cmsg              784 drivers/isdn/capi/capiutil.c 	cmsg->m = msg;
cmsg              785 drivers/isdn/capi/capiutil.c 	cmsg->l = 8;
cmsg              786 drivers/isdn/capi/capiutil.c 	cmsg->p = 0;
cmsg              787 drivers/isdn/capi/capiutil.c 	byteTRcpy(cmsg->m + 4, &cmsg->Command);
cmsg              788 drivers/isdn/capi/capiutil.c 	byteTRcpy(cmsg->m + 5, &cmsg->Subcommand);
cmsg              789 drivers/isdn/capi/capiutil.c 	cmsg->par = capi_cmd2par(cmsg->Command, cmsg->Subcommand);
cmsg              792 drivers/isdn/capi/capiutil.c 		       capi_cmd2str(cmsg->Command, cmsg->Subcommand),
cmsg              797 drivers/isdn/capi/capiutil.c 	cdb = protocol_message_2_pars(cdb, cmsg, 1);
cmsg              798 drivers/isdn/capi/capiutil.c 	if (unlikely(cmsg != g_cmsg))
cmsg              799 drivers/isdn/capi/capiutil.c 		kfree(cmsg);
cmsg              814 drivers/isdn/capi/capiutil.c _cdebbuf *capi_cmsg2str(_cmsg *cmsg)
cmsg              818 drivers/isdn/capi/capiutil.c 	if (!cmsg->m)
cmsg              823 drivers/isdn/capi/capiutil.c 	cmsg->l = 8;
cmsg              824 drivers/isdn/capi/capiutil.c 	cmsg->p = 0;
cmsg              826 drivers/isdn/capi/capiutil.c 		       capi_cmd2str(cmsg->Command, cmsg->Subcommand),
cmsg              827 drivers/isdn/capi/capiutil.c 		       ((u16 *) cmsg->m)[1],
cmsg              828 drivers/isdn/capi/capiutil.c 		       ((u16 *) cmsg->m)[3],
cmsg              829 drivers/isdn/capi/capiutil.c 		       ((u16 *) cmsg->m)[0]);
cmsg              830 drivers/isdn/capi/capiutil.c 	cdb = protocol_message_2_pars(cdb, cmsg, 1);
cmsg              874 drivers/isdn/capi/capiutil.c _cdebbuf *capi_cmsg2str(_cmsg *cmsg)
cmsg              504 drivers/md/md-cluster.c static void process_add_new_disk(struct mddev *mddev, struct cluster_msg *cmsg)
cmsg              514 drivers/md/md-cluster.c 	sprintf(disk_uuid + len, "%pU", cmsg->uuid);
cmsg              515 drivers/md/md-cluster.c 	snprintf(raid_slot, 16, "RAID_DISK=%d", le32_to_cpu(cmsg->raid_slot));
cmsg              731 drivers/md/md-cluster.c static int __sendmsg(struct md_cluster_info *cinfo, struct cluster_msg *cmsg)
cmsg              736 drivers/md/md-cluster.c 	cmsg->slot = cpu_to_le32(slot);
cmsg              744 drivers/md/md-cluster.c 	memcpy(cinfo->message_lockres->lksb.sb_lvbptr, (void *)cmsg,
cmsg              782 drivers/md/md-cluster.c static int sendmsg(struct md_cluster_info *cinfo, struct cluster_msg *cmsg,
cmsg              788 drivers/md/md-cluster.c 	ret = __sendmsg(cinfo, cmsg);
cmsg              977 drivers/md/md-cluster.c 	struct cluster_msg cmsg = {0};
cmsg              980 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(BITMAP_NEEDS_SYNC);
cmsg              981 drivers/md/md-cluster.c 	err = sendmsg(cinfo, &cmsg, 1);
cmsg             1072 drivers/md/md-cluster.c 	struct cluster_msg cmsg;
cmsg             1077 drivers/md/md-cluster.c 	memset(&cmsg, 0, sizeof(cmsg));
cmsg             1078 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(METADATA_UPDATED);
cmsg             1087 drivers/md/md-cluster.c 		cmsg.raid_slot = cpu_to_le32(raid_slot);
cmsg             1088 drivers/md/md-cluster.c 		ret = __sendmsg(cinfo, &cmsg);
cmsg             1106 drivers/md/md-cluster.c 	struct cluster_msg cmsg = {0};
cmsg             1109 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(BITMAP_RESIZE);
cmsg             1110 drivers/md/md-cluster.c 	cmsg.high = cpu_to_le64(size);
cmsg             1111 drivers/md/md-cluster.c 	ret = sendmsg(cinfo, &cmsg, 0);
cmsg             1250 drivers/md/md-cluster.c 	struct cluster_msg cmsg;
cmsg             1258 drivers/md/md-cluster.c 	memset(&cmsg, 0, sizeof(cmsg));
cmsg             1259 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(METADATA_UPDATED);
cmsg             1266 drivers/md/md-cluster.c 		cmsg.raid_slot = cpu_to_le32(raid_slot);
cmsg             1272 drivers/md/md-cluster.c 		ret = __sendmsg(cinfo, &cmsg);
cmsg             1291 drivers/md/md-cluster.c 		memset(&cmsg, 0, sizeof(cmsg));
cmsg             1292 drivers/md/md-cluster.c 		cmsg.type = cpu_to_le32(CHANGE_CAPACITY);
cmsg             1293 drivers/md/md-cluster.c 		ret = __sendmsg(cinfo, &cmsg);
cmsg             1304 drivers/md/md-cluster.c 		ret = __sendmsg(cinfo, &cmsg);
cmsg             1332 drivers/md/md-cluster.c 	struct cluster_msg cmsg = {0};
cmsg             1344 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(RESYNCING);
cmsg             1345 drivers/md/md-cluster.c 	cmsg.low = cpu_to_le64(lo);
cmsg             1346 drivers/md/md-cluster.c 	cmsg.high = cpu_to_le64(hi);
cmsg             1353 drivers/md/md-cluster.c 		return sendmsg(cinfo, &cmsg, 1);
cmsg             1355 drivers/md/md-cluster.c 		return sendmsg(cinfo, &cmsg, 0);
cmsg             1399 drivers/md/md-cluster.c 	struct cluster_msg cmsg;
cmsg             1404 drivers/md/md-cluster.c 	memset(&cmsg, 0, sizeof(cmsg));
cmsg             1405 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(NEWDISK);
cmsg             1406 drivers/md/md-cluster.c 	memcpy(cmsg.uuid, uuid, 16);
cmsg             1407 drivers/md/md-cluster.c 	cmsg.raid_slot = cpu_to_le32(rdev->desc_nr);
cmsg             1409 drivers/md/md-cluster.c 	ret = __sendmsg(cinfo, &cmsg);
cmsg             1466 drivers/md/md-cluster.c 	struct cluster_msg cmsg = {0};
cmsg             1468 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(REMOVE);
cmsg             1469 drivers/md/md-cluster.c 	cmsg.raid_slot = cpu_to_le32(rdev->desc_nr);
cmsg             1470 drivers/md/md-cluster.c 	return sendmsg(cinfo, &cmsg, 1);
cmsg             1528 drivers/md/md-cluster.c 	struct cluster_msg cmsg = {0};
cmsg             1532 drivers/md/md-cluster.c 	cmsg.type = cpu_to_le32(RE_ADD);
cmsg             1533 drivers/md/md-cluster.c 	cmsg.raid_slot = cpu_to_le32(rdev->desc_nr);
cmsg             1534 drivers/md/md-cluster.c 	err = sendmsg(cinfo, &cmsg, 1);
cmsg             1145 drivers/staging/isdn/gigaset/capi.c 	_cmsg *cmsg = &iif->acmsg;
cmsg             1153 drivers/staging/isdn/gigaset/capi.c 	if (capi_message2cmsg(cmsg, skb->data)) {
cmsg             1158 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1164 drivers/staging/isdn/gigaset/capi.c 	switch (cmsg->FacilitySelector) {
cmsg             1181 drivers/staging/isdn/gigaset/capi.c 		pparam = cmsg->FacilityRequestParameter;
cmsg             1257 drivers/staging/isdn/gigaset/capi.c 	capi_cmsg_answer(cmsg);
cmsg             1258 drivers/staging/isdn/gigaset/capi.c 	cmsg->Info = info;
cmsg             1259 drivers/staging/isdn/gigaset/capi.c 	cmsg->FacilityConfirmationParameter = confparam;
cmsg             1266 drivers/staging/isdn/gigaset/capi.c 	if (capi_cmsg2message(cmsg, __skb_put(cskb, msgsize))) {
cmsg             1271 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1330 drivers/staging/isdn/gigaset/capi.c 	_cmsg *cmsg = &iif->acmsg;
cmsg             1340 drivers/staging/isdn/gigaset/capi.c 	if (capi_message2cmsg(cmsg, skb->data)) {
cmsg             1345 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1367 drivers/staging/isdn/gigaset/capi.c 	cmsg->adr.adrPLCI |= (bcs->channel + 1) << 8;
cmsg             1375 drivers/staging/isdn/gigaset/capi.c 	pp = cmsg->CalledPartyNumber;
cmsg             1411 drivers/staging/isdn/gigaset/capi.c 	pp = cmsg->CallingPartyNumber;
cmsg             1466 drivers/staging/isdn/gigaset/capi.c 	if (cmsg->CIPValue >= ARRAY_SIZE(cip2bchlc) ||
cmsg             1467 drivers/staging/isdn/gigaset/capi.c 	    (cmsg->CIPValue > 0 && cip2bchlc[cmsg->CIPValue].bc == NULL)) {
cmsg             1469 drivers/staging/isdn/gigaset/capi.c 			   "CONNECT_REQ", cmsg->CIPValue);
cmsg             1481 drivers/staging/isdn/gigaset/capi.c 	if (cmsg->BC && cmsg->BC[0])		/* BC specified explicitly */
cmsg             1482 drivers/staging/isdn/gigaset/capi.c 		lbc = 2 * cmsg->BC[0];
cmsg             1483 drivers/staging/isdn/gigaset/capi.c 	else if (cip2bchlc[cmsg->CIPValue].bc)	/* BC derived from CIP */
cmsg             1484 drivers/staging/isdn/gigaset/capi.c 		lbc = strlen(cip2bchlc[cmsg->CIPValue].bc);
cmsg             1487 drivers/staging/isdn/gigaset/capi.c 	if (cmsg->HLC && cmsg->HLC[0])		/* HLC specified explicitly */
cmsg             1488 drivers/staging/isdn/gigaset/capi.c 		lhlc = 2 * cmsg->HLC[0];
cmsg             1489 drivers/staging/isdn/gigaset/capi.c 	else if (cip2bchlc[cmsg->CIPValue].hlc)	/* HLC derived from CIP */
cmsg             1490 drivers/staging/isdn/gigaset/capi.c 		lhlc = strlen(cip2bchlc[cmsg->CIPValue].hlc);
cmsg             1503 drivers/staging/isdn/gigaset/capi.c 		if (cmsg->BC && cmsg->BC[0])	/* BC specified explicitly */
cmsg             1504 drivers/staging/isdn/gigaset/capi.c 			decode_ie(cmsg->BC, commands[AT_BC] + 5);
cmsg             1507 drivers/staging/isdn/gigaset/capi.c 			       cip2bchlc[cmsg->CIPValue].bc);
cmsg             1510 drivers/staging/isdn/gigaset/capi.c 			if (cmsg->HLC && cmsg->HLC[0])
cmsg             1512 drivers/staging/isdn/gigaset/capi.c 				decode_ie(cmsg->HLC,
cmsg             1516 drivers/staging/isdn/gigaset/capi.c 				       cip2bchlc[cmsg->CIPValue].hlc);
cmsg             1530 drivers/staging/isdn/gigaset/capi.c 	if (cmsg->BProtocol == CAPI_DEFAULT) {
cmsg             1535 drivers/staging/isdn/gigaset/capi.c 		switch (cmsg->B1protocol) {
cmsg             1545 drivers/staging/isdn/gigaset/capi.c 				 cmsg->B1protocol);
cmsg             1548 drivers/staging/isdn/gigaset/capi.c 		if (cmsg->B2protocol != 1)
cmsg             1551 drivers/staging/isdn/gigaset/capi.c 				 cmsg->B2protocol);
cmsg             1552 drivers/staging/isdn/gigaset/capi.c 		if (cmsg->B3protocol != 0)
cmsg             1555 drivers/staging/isdn/gigaset/capi.c 				 cmsg->B3protocol);
cmsg             1556 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->B1configuration,
cmsg             1558 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->B2configuration,
cmsg             1560 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->B3configuration,
cmsg             1569 drivers/staging/isdn/gigaset/capi.c 	ignore_cstruct_param(cs, cmsg->CalledPartySubaddress,
cmsg             1571 drivers/staging/isdn/gigaset/capi.c 	ignore_cstruct_param(cs, cmsg->CallingPartySubaddress,
cmsg             1573 drivers/staging/isdn/gigaset/capi.c 	ignore_cstruct_param(cs, cmsg->LLC,
cmsg             1575 drivers/staging/isdn/gigaset/capi.c 	if (cmsg->AdditionalInfo != CAPI_DEFAULT) {
cmsg             1576 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->BChannelinformation,
cmsg             1578 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->Keypadfacility,
cmsg             1580 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->Useruserdata,
cmsg             1582 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->Facilitydataarray,
cmsg             1624 drivers/staging/isdn/gigaset/capi.c 	_cmsg *cmsg = &iif->acmsg;
cmsg             1631 drivers/staging/isdn/gigaset/capi.c 	if (capi_message2cmsg(cmsg, skb->data)) {
cmsg             1636 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1640 drivers/staging/isdn/gigaset/capi.c 	channel = (cmsg->adr.adrPLCI >> 8) & 0xff;
cmsg             1643 drivers/staging/isdn/gigaset/capi.c 			   "CONNECT_RESP", "PLCI", cmsg->adr.adrPLCI);
cmsg             1648 drivers/staging/isdn/gigaset/capi.c 	switch (cmsg->Reject) {
cmsg             1672 drivers/staging/isdn/gigaset/capi.c 		if (cmsg->BProtocol == CAPI_DEFAULT) {
cmsg             1677 drivers/staging/isdn/gigaset/capi.c 			switch (cmsg->B1protocol) {
cmsg             1687 drivers/staging/isdn/gigaset/capi.c 					 cmsg->B1protocol);
cmsg             1690 drivers/staging/isdn/gigaset/capi.c 			if (cmsg->B2protocol != 1)
cmsg             1693 drivers/staging/isdn/gigaset/capi.c 					 cmsg->B2protocol);
cmsg             1694 drivers/staging/isdn/gigaset/capi.c 			if (cmsg->B3protocol != 0)
cmsg             1697 drivers/staging/isdn/gigaset/capi.c 					 cmsg->B3protocol);
cmsg             1698 drivers/staging/isdn/gigaset/capi.c 			ignore_cstruct_param(cs, cmsg->B1configuration,
cmsg             1700 drivers/staging/isdn/gigaset/capi.c 			ignore_cstruct_param(cs, cmsg->B2configuration,
cmsg             1702 drivers/staging/isdn/gigaset/capi.c 			ignore_cstruct_param(cs, cmsg->B3configuration,
cmsg             1707 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->ConnectedNumber,
cmsg             1709 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->ConnectedSubaddress,
cmsg             1711 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->LLC,
cmsg             1713 drivers/staging/isdn/gigaset/capi.c 		if (cmsg->AdditionalInfo != CAPI_DEFAULT) {
cmsg             1714 drivers/staging/isdn/gigaset/capi.c 			ignore_cstruct_param(cs, cmsg->BChannelinformation,
cmsg             1716 drivers/staging/isdn/gigaset/capi.c 			ignore_cstruct_param(cs, cmsg->Keypadfacility,
cmsg             1718 drivers/staging/isdn/gigaset/capi.c 			ignore_cstruct_param(cs, cmsg->Useruserdata,
cmsg             1720 drivers/staging/isdn/gigaset/capi.c 			ignore_cstruct_param(cs, cmsg->Facilitydataarray,
cmsg             1778 drivers/staging/isdn/gigaset/capi.c 			 "CONNECT_RESP", cmsg->Reject);
cmsg             1796 drivers/staging/isdn/gigaset/capi.c 	_cmsg *cmsg = &iif->acmsg;
cmsg             1801 drivers/staging/isdn/gigaset/capi.c 	if (capi_message2cmsg(cmsg, skb->data)) {
cmsg             1806 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1809 drivers/staging/isdn/gigaset/capi.c 	channel = (cmsg->adr.adrPLCI >> 8) & 0xff;
cmsg             1812 drivers/staging/isdn/gigaset/capi.c 			   "CONNECT_B3_REQ", "PLCI", cmsg->adr.adrPLCI);
cmsg             1822 drivers/staging/isdn/gigaset/capi.c 	cmsg->adr.adrNCCI |= 1 << 16;
cmsg             1825 drivers/staging/isdn/gigaset/capi.c 	ignore_cstruct_param(cs, cmsg->NCPI, "CONNECT_B3_REQ", "NCPI");
cmsg             1827 drivers/staging/isdn/gigaset/capi.c 		  (cmsg->NCPI && cmsg->NCPI[0]) ?
cmsg             1843 drivers/staging/isdn/gigaset/capi.c 	_cmsg *cmsg = &iif->acmsg;
cmsg             1850 drivers/staging/isdn/gigaset/capi.c 	if (capi_message2cmsg(cmsg, skb->data)) {
cmsg             1855 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1858 drivers/staging/isdn/gigaset/capi.c 	channel = (cmsg->adr.adrNCCI >> 8) & 0xff;
cmsg             1860 drivers/staging/isdn/gigaset/capi.c 	    ((cmsg->adr.adrNCCI >> 16) & 0xffff) != 1) {
cmsg             1862 drivers/staging/isdn/gigaset/capi.c 			   "CONNECT_B3_RESP", "NCCI", cmsg->adr.adrNCCI);
cmsg             1868 drivers/staging/isdn/gigaset/capi.c 	if (cmsg->Reject) {
cmsg             1891 drivers/staging/isdn/gigaset/capi.c 	capi_cmsg_header(cmsg, ap->id, command, CAPI_IND,
cmsg             1892 drivers/staging/isdn/gigaset/capi.c 			 ap->nextMessageNumber++, cmsg->adr.adrNCCI);
cmsg             1894 drivers/staging/isdn/gigaset/capi.c 	if (capi_cmsg2message(cmsg, skb->data)) {
cmsg             1899 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1913 drivers/staging/isdn/gigaset/capi.c 	_cmsg *cmsg = &iif->acmsg;
cmsg             1920 drivers/staging/isdn/gigaset/capi.c 	if (capi_message2cmsg(cmsg, skb->data)) {
cmsg             1925 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             1928 drivers/staging/isdn/gigaset/capi.c 	channel = (cmsg->adr.adrPLCI >> 8) & 0xff;
cmsg             1931 drivers/staging/isdn/gigaset/capi.c 			   "DISCONNECT_REQ", "PLCI", cmsg->adr.adrPLCI);
cmsg             1938 drivers/staging/isdn/gigaset/capi.c 	if (cmsg->AdditionalInfo != CAPI_DEFAULT) {
cmsg             1939 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->BChannelinformation,
cmsg             1941 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->Keypadfacility,
cmsg             1943 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->Useruserdata,
cmsg             1945 drivers/staging/isdn/gigaset/capi.c 		ignore_cstruct_param(cs, cmsg->Facilitydataarray,
cmsg             1971 drivers/staging/isdn/gigaset/capi.c 				 cmsg->adr.adrPLCI | (1 << 16));
cmsg             2013 drivers/staging/isdn/gigaset/capi.c 	_cmsg *cmsg = &iif->acmsg;
cmsg             2018 drivers/staging/isdn/gigaset/capi.c 	if (capi_message2cmsg(cmsg, skb->data)) {
cmsg             2023 drivers/staging/isdn/gigaset/capi.c 	dump_cmsg(DEBUG_CMD, __func__, cmsg);
cmsg             2026 drivers/staging/isdn/gigaset/capi.c 	channel = (cmsg->adr.adrNCCI >> 8) & 0xff;
cmsg             2028 drivers/staging/isdn/gigaset/capi.c 	    ((cmsg->adr.adrNCCI >> 16) & 0xffff) != 1) {
cmsg             2030 drivers/staging/isdn/gigaset/capi.c 			   "DISCONNECT_B3_REQ", "NCCI", cmsg->adr.adrNCCI);
cmsg             2051 drivers/staging/isdn/gigaset/capi.c 	ignore_cstruct_param(cs, cmsg->NCPI,
cmsg             2054 drivers/staging/isdn/gigaset/capi.c 		  (cmsg->NCPI && cmsg->NCPI[0]) ?
cmsg              758 fs/nfsd/nfs4recover.c __cld_pipe_upcall(struct rpc_pipe *pipe, void *cmsg)
cmsg              762 fs/nfsd/nfs4recover.c 	struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, cu_u);
cmsg              767 fs/nfsd/nfs4recover.c 	msg.data = cmsg;
cmsg              784 fs/nfsd/nfs4recover.c cld_pipe_upcall(struct rpc_pipe *pipe, void *cmsg)
cmsg              793 fs/nfsd/nfs4recover.c 		ret = __cld_pipe_upcall(pipe, cmsg);
cmsg              800 fs/nfsd/nfs4recover.c __cld_pipe_inprogress_downcall(const struct cld_msg_v2 __user *cmsg,
cmsg              808 fs/nfsd/nfs4recover.c 	if (get_user(cmd, &cmsg->cm_cmd)) {
cmsg              816 fs/nfsd/nfs4recover.c 			ci = &cmsg->cm_u.cm_clntinfo;
cmsg              836 fs/nfsd/nfs4recover.c 			cnm = &cmsg->cm_u.cm_name;
cmsg              864 fs/nfsd/nfs4recover.c 	struct cld_msg_v2 __user *cmsg = (struct cld_msg_v2 __user *)src;
cmsg              913 fs/nfsd/nfs4recover.c 		return __cld_pipe_inprogress_downcall(cmsg, nn);
cmsg              925 fs/nfsd/nfs4recover.c 	struct cld_msg *cmsg = msg->data;
cmsg              926 fs/nfsd/nfs4recover.c 	struct cld_upcall *cup = container_of(cmsg, struct cld_upcall,
cmsg             1147 fs/nfsd/nfs4recover.c 	struct cld_msg_v2 *cmsg;
cmsg             1163 fs/nfsd/nfs4recover.c 	cmsg = &cup->cu_u.cu_msg_v2;
cmsg             1164 fs/nfsd/nfs4recover.c 	cmsg->cm_cmd = Cld_Create;
cmsg             1165 fs/nfsd/nfs4recover.c 	cmsg->cm_u.cm_clntinfo.cc_name.cn_len = clp->cl_name.len;
cmsg             1166 fs/nfsd/nfs4recover.c 	memcpy(cmsg->cm_u.cm_clntinfo.cc_name.cn_id, clp->cl_name.data,
cmsg             1187 fs/nfsd/nfs4recover.c 		cmsg->cm_u.cm_clntinfo.cc_princhash.cp_len = cksum.len;
cmsg             1188 fs/nfsd/nfs4recover.c 		memcpy(cmsg->cm_u.cm_clntinfo.cc_princhash.cp_data,
cmsg             1192 fs/nfsd/nfs4recover.c 		cmsg->cm_u.cm_clntinfo.cc_princhash.cp_len = 0;
cmsg             1194 fs/nfsd/nfs4recover.c 	ret = cld_pipe_upcall(cn->cn_pipe, cmsg);
cmsg             1196 fs/nfsd/nfs4recover.c 		ret = cmsg->cm_status;
cmsg              150 include/linux/isdn/capiutil.h unsigned capi_cmsg2message(_cmsg * cmsg, __u8 * msg);
cmsg              156 include/linux/isdn/capiutil.h unsigned capi_message2cmsg(_cmsg * cmsg, __u8 * msg);
cmsg              163 include/linux/isdn/capiutil.h unsigned capi_cmsg_header(_cmsg * cmsg, __u16 _ApplId,
cmsg              189 include/linux/isdn/capiutil.h _cdebbuf *capi_cmsg2str(_cmsg *cmsg);
cmsg              194 include/linux/isdn/capiutil.h static inline void capi_cmsg_answer(_cmsg * cmsg)
cmsg              196 include/linux/isdn/capiutil.h 	cmsg->Subcommand |= 0x01;
cmsg              201 include/linux/isdn/capiutil.h static inline void capi_fill_CONNECT_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              205 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x82, 0x80, Messagenumber, adr);
cmsg              206 include/linux/isdn/capiutil.h 	cmsg->NCPI = NCPI;
cmsg              209 include/linux/isdn/capiutil.h static inline void capi_fill_FACILITY_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              214 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x80, 0x80, Messagenumber, adr);
cmsg              215 include/linux/isdn/capiutil.h 	cmsg->FacilitySelector = FacilitySelector;
cmsg              216 include/linux/isdn/capiutil.h 	cmsg->FacilityRequestParameter = FacilityRequestParameter;
cmsg              219 include/linux/isdn/capiutil.h static inline void capi_fill_INFO_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              227 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x08, 0x80, Messagenumber, adr);
cmsg              228 include/linux/isdn/capiutil.h 	cmsg->CalledPartyNumber = CalledPartyNumber;
cmsg              229 include/linux/isdn/capiutil.h 	cmsg->BChannelinformation = BChannelinformation;
cmsg              230 include/linux/isdn/capiutil.h 	cmsg->Keypadfacility = Keypadfacility;
cmsg              231 include/linux/isdn/capiutil.h 	cmsg->Useruserdata = Useruserdata;
cmsg              232 include/linux/isdn/capiutil.h 	cmsg->Facilitydataarray = Facilitydataarray;
cmsg              235 include/linux/isdn/capiutil.h static inline void capi_fill_LISTEN_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              243 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x05, 0x80, Messagenumber, adr);
cmsg              244 include/linux/isdn/capiutil.h 	cmsg->InfoMask = InfoMask;
cmsg              245 include/linux/isdn/capiutil.h 	cmsg->CIPmask = CIPmask;
cmsg              246 include/linux/isdn/capiutil.h 	cmsg->CIPmask2 = CIPmask2;
cmsg              247 include/linux/isdn/capiutil.h 	cmsg->CallingPartyNumber = CallingPartyNumber;
cmsg              248 include/linux/isdn/capiutil.h 	cmsg->CallingPartySubaddress = CallingPartySubaddress;
cmsg              251 include/linux/isdn/capiutil.h static inline void capi_fill_ALERT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              258 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x01, 0x80, Messagenumber, adr);
cmsg              259 include/linux/isdn/capiutil.h 	cmsg->BChannelinformation = BChannelinformation;
cmsg              260 include/linux/isdn/capiutil.h 	cmsg->Keypadfacility = Keypadfacility;
cmsg              261 include/linux/isdn/capiutil.h 	cmsg->Useruserdata = Useruserdata;
cmsg              262 include/linux/isdn/capiutil.h 	cmsg->Facilitydataarray = Facilitydataarray;
cmsg              265 include/linux/isdn/capiutil.h static inline void capi_fill_CONNECT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              287 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x02, 0x80, Messagenumber, adr);
cmsg              288 include/linux/isdn/capiutil.h 	cmsg->CIPValue = CIPValue;
cmsg              289 include/linux/isdn/capiutil.h 	cmsg->CalledPartyNumber = CalledPartyNumber;
cmsg              290 include/linux/isdn/capiutil.h 	cmsg->CallingPartyNumber = CallingPartyNumber;
cmsg              291 include/linux/isdn/capiutil.h 	cmsg->CalledPartySubaddress = CalledPartySubaddress;
cmsg              292 include/linux/isdn/capiutil.h 	cmsg->CallingPartySubaddress = CallingPartySubaddress;
cmsg              293 include/linux/isdn/capiutil.h 	cmsg->B1protocol = B1protocol;
cmsg              294 include/linux/isdn/capiutil.h 	cmsg->B2protocol = B2protocol;
cmsg              295 include/linux/isdn/capiutil.h 	cmsg->B3protocol = B3protocol;
cmsg              296 include/linux/isdn/capiutil.h 	cmsg->B1configuration = B1configuration;
cmsg              297 include/linux/isdn/capiutil.h 	cmsg->B2configuration = B2configuration;
cmsg              298 include/linux/isdn/capiutil.h 	cmsg->B3configuration = B3configuration;
cmsg              299 include/linux/isdn/capiutil.h 	cmsg->BC = BC;
cmsg              300 include/linux/isdn/capiutil.h 	cmsg->LLC = LLC;
cmsg              301 include/linux/isdn/capiutil.h 	cmsg->HLC = HLC;
cmsg              302 include/linux/isdn/capiutil.h 	cmsg->BChannelinformation = BChannelinformation;
cmsg              303 include/linux/isdn/capiutil.h 	cmsg->Keypadfacility = Keypadfacility;
cmsg              304 include/linux/isdn/capiutil.h 	cmsg->Useruserdata = Useruserdata;
cmsg              305 include/linux/isdn/capiutil.h 	cmsg->Facilitydataarray = Facilitydataarray;
cmsg              308 include/linux/isdn/capiutil.h static inline void capi_fill_DATA_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              316 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x86, 0x80, Messagenumber, adr);
cmsg              317 include/linux/isdn/capiutil.h 	cmsg->Data = Data;
cmsg              318 include/linux/isdn/capiutil.h 	cmsg->DataLength = DataLength;
cmsg              319 include/linux/isdn/capiutil.h 	cmsg->DataHandle = DataHandle;
cmsg              320 include/linux/isdn/capiutil.h 	cmsg->Flags = Flags;
cmsg              323 include/linux/isdn/capiutil.h static inline void capi_fill_DISCONNECT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              331 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x04, 0x80, Messagenumber, adr);
cmsg              332 include/linux/isdn/capiutil.h 	cmsg->BChannelinformation = BChannelinformation;
cmsg              333 include/linux/isdn/capiutil.h 	cmsg->Keypadfacility = Keypadfacility;
cmsg              334 include/linux/isdn/capiutil.h 	cmsg->Useruserdata = Useruserdata;
cmsg              335 include/linux/isdn/capiutil.h 	cmsg->Facilitydataarray = Facilitydataarray;
cmsg              338 include/linux/isdn/capiutil.h static inline void capi_fill_DISCONNECT_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              343 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x84, 0x80, Messagenumber, adr);
cmsg              344 include/linux/isdn/capiutil.h 	cmsg->NCPI = NCPI;
cmsg              347 include/linux/isdn/capiutil.h static inline void capi_fill_MANUFACTURER_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              355 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0xff, 0x80, Messagenumber, adr);
cmsg              356 include/linux/isdn/capiutil.h 	cmsg->ManuID = ManuID;
cmsg              357 include/linux/isdn/capiutil.h 	cmsg->Class = Class;
cmsg              358 include/linux/isdn/capiutil.h 	cmsg->Function = Function;
cmsg              359 include/linux/isdn/capiutil.h 	cmsg->ManuData = ManuData;
cmsg              362 include/linux/isdn/capiutil.h static inline void capi_fill_RESET_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              367 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x87, 0x80, Messagenumber, adr);
cmsg              368 include/linux/isdn/capiutil.h 	cmsg->NCPI = NCPI;
cmsg              371 include/linux/isdn/capiutil.h static inline void capi_fill_SELECT_B_PROTOCOL_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              381 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x41, 0x80, Messagenumber, adr);
cmsg              382 include/linux/isdn/capiutil.h 	cmsg->B1protocol = B1protocol;
cmsg              383 include/linux/isdn/capiutil.h 	cmsg->B2protocol = B2protocol;
cmsg              384 include/linux/isdn/capiutil.h 	cmsg->B3protocol = B3protocol;
cmsg              385 include/linux/isdn/capiutil.h 	cmsg->B1configuration = B1configuration;
cmsg              386 include/linux/isdn/capiutil.h 	cmsg->B2configuration = B2configuration;
cmsg              387 include/linux/isdn/capiutil.h 	cmsg->B3configuration = B3configuration;
cmsg              390 include/linux/isdn/capiutil.h static inline void capi_fill_CONNECT_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              407 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x02, 0x83, Messagenumber, adr);
cmsg              408 include/linux/isdn/capiutil.h 	cmsg->Reject = Reject;
cmsg              409 include/linux/isdn/capiutil.h 	cmsg->B1protocol = B1protocol;
cmsg              410 include/linux/isdn/capiutil.h 	cmsg->B2protocol = B2protocol;
cmsg              411 include/linux/isdn/capiutil.h 	cmsg->B3protocol = B3protocol;
cmsg              412 include/linux/isdn/capiutil.h 	cmsg->B1configuration = B1configuration;
cmsg              413 include/linux/isdn/capiutil.h 	cmsg->B2configuration = B2configuration;
cmsg              414 include/linux/isdn/capiutil.h 	cmsg->B3configuration = B3configuration;
cmsg              415 include/linux/isdn/capiutil.h 	cmsg->ConnectedNumber = ConnectedNumber;
cmsg              416 include/linux/isdn/capiutil.h 	cmsg->ConnectedSubaddress = ConnectedSubaddress;
cmsg              417 include/linux/isdn/capiutil.h 	cmsg->LLC = LLC;
cmsg              418 include/linux/isdn/capiutil.h 	cmsg->BChannelinformation = BChannelinformation;
cmsg              419 include/linux/isdn/capiutil.h 	cmsg->Keypadfacility = Keypadfacility;
cmsg              420 include/linux/isdn/capiutil.h 	cmsg->Useruserdata = Useruserdata;
cmsg              421 include/linux/isdn/capiutil.h 	cmsg->Facilitydataarray = Facilitydataarray;
cmsg              424 include/linux/isdn/capiutil.h static inline void capi_fill_CONNECT_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              428 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x03, 0x83, Messagenumber, adr);
cmsg              431 include/linux/isdn/capiutil.h static inline void capi_fill_CONNECT_B3_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              435 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x83, 0x83, Messagenumber, adr);
cmsg              438 include/linux/isdn/capiutil.h static inline void capi_fill_CONNECT_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              443 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x82, 0x83, Messagenumber, adr);
cmsg              444 include/linux/isdn/capiutil.h 	cmsg->Reject = Reject;
cmsg              445 include/linux/isdn/capiutil.h 	cmsg->NCPI = NCPI;
cmsg              448 include/linux/isdn/capiutil.h static inline void capi_fill_CONNECT_B3_T90_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              452 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x88, 0x83, Messagenumber, adr);
cmsg              455 include/linux/isdn/capiutil.h static inline void capi_fill_DATA_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              460 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x86, 0x83, Messagenumber, adr);
cmsg              461 include/linux/isdn/capiutil.h 	cmsg->DataHandle = DataHandle;
cmsg              464 include/linux/isdn/capiutil.h static inline void capi_fill_DISCONNECT_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              468 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x84, 0x83, Messagenumber, adr);
cmsg              471 include/linux/isdn/capiutil.h static inline void capi_fill_DISCONNECT_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              475 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x04, 0x83, Messagenumber, adr);
cmsg              478 include/linux/isdn/capiutil.h static inline void capi_fill_FACILITY_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              483 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x80, 0x83, Messagenumber, adr);
cmsg              484 include/linux/isdn/capiutil.h 	cmsg->FacilitySelector = FacilitySelector;
cmsg              487 include/linux/isdn/capiutil.h static inline void capi_fill_INFO_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              491 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x08, 0x83, Messagenumber, adr);
cmsg              494 include/linux/isdn/capiutil.h static inline void capi_fill_MANUFACTURER_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              502 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0xff, 0x83, Messagenumber, adr);
cmsg              503 include/linux/isdn/capiutil.h 	cmsg->ManuID = ManuID;
cmsg              504 include/linux/isdn/capiutil.h 	cmsg->Class = Class;
cmsg              505 include/linux/isdn/capiutil.h 	cmsg->Function = Function;
cmsg              506 include/linux/isdn/capiutil.h 	cmsg->ManuData = ManuData;
cmsg              509 include/linux/isdn/capiutil.h static inline void capi_fill_RESET_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber,
cmsg              513 include/linux/isdn/capiutil.h 	capi_cmsg_header(cmsg, ApplId, 0x87, 0x83, Messagenumber, adr);
cmsg               92 include/linux/socket.h #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg))
cmsg               93 include/linux/socket.h #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg))
cmsg               97 include/linux/socket.h #define CMSG_DATA(cmsg)	((void *)((char *)(cmsg) + sizeof(struct cmsghdr)))
cmsg              105 include/linux/socket.h #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \
cmsg              106 include/linux/socket.h 			     (cmsg)->cmsg_len <= (unsigned long) \
cmsg              108 include/linux/socket.h 			      ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
cmsg              109 include/linux/socket.h #define for_each_cmsghdr(cmsg, msg) \
cmsg              110 include/linux/socket.h 	for (cmsg = CMSG_FIRSTHDR(msg); \
cmsg              111 include/linux/socket.h 	     cmsg; \
cmsg              112 include/linux/socket.h 	     cmsg = CMSG_NXTHDR(msg, cmsg))
cmsg             1653 include/net/sock.h int __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg,
cmsg               92 net/compat.c   #define CMSG_COMPAT_DATA(cmsg)				\
cmsg               93 net/compat.c   	((void __user *)((char __user *)(cmsg) + sizeof(struct compat_cmsghdr)))
cmsg              111 net/compat.c   		struct compat_cmsghdr __user *cmsg, int cmsg_len)
cmsg              113 net/compat.c   	char __user *ptr = (char __user *)cmsg + CMSG_COMPAT_ALIGN(cmsg_len);
cmsg               65 net/core/scm.c static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp)
cmsg               67 net/core/scm.c 	int *fdp = (int*)CMSG_DATA(cmsg);
cmsg               72 net/core/scm.c 	num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int);
cmsg              133 net/core/scm.c 	struct cmsghdr *cmsg;
cmsg              136 net/core/scm.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              147 net/core/scm.c 		if (!CMSG_OK(msg, cmsg))
cmsg              150 net/core/scm.c 		if (cmsg->cmsg_level != SOL_SOCKET)
cmsg              153 net/core/scm.c 		switch (cmsg->cmsg_type)
cmsg              158 net/core/scm.c 			err=scm_fp_copy(cmsg, &p->fp);
cmsg              167 net/core/scm.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct ucred)))
cmsg              169 net/core/scm.c 			memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred));
cmsg             2268 net/core/sock.c int __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg,
cmsg             2273 net/core/sock.c 	switch (cmsg->cmsg_type) {
cmsg             2277 net/core/sock.c 		if (cmsg->cmsg_len != CMSG_LEN(sizeof(u32)))
cmsg             2279 net/core/sock.c 		sockc->mark = *(u32 *)CMSG_DATA(cmsg);
cmsg             2282 net/core/sock.c 		if (cmsg->cmsg_len != CMSG_LEN(sizeof(u32)))
cmsg             2285 net/core/sock.c 		tsflags = *(u32 *)CMSG_DATA(cmsg);
cmsg             2295 net/core/sock.c 		if (cmsg->cmsg_len != CMSG_LEN(sizeof(u64)))
cmsg             2297 net/core/sock.c 		sockc->transmit_time = get_unaligned((u64 *)CMSG_DATA(cmsg));
cmsg             2313 net/core/sock.c 	struct cmsghdr *cmsg;
cmsg             2316 net/core/sock.c 	for_each_cmsghdr(cmsg, msg) {
cmsg             2317 net/core/sock.c 		if (!CMSG_OK(msg, cmsg))
cmsg             2319 net/core/sock.c 		if (cmsg->cmsg_level != SOL_SOCKET)
cmsg             2321 net/core/sock.c 		ret = __sock_cmsg_send(sk, msg, cmsg, sockc);
cmsg              714 net/dccp/proto.c 	struct cmsghdr *cmsg;
cmsg              728 net/dccp/proto.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              729 net/dccp/proto.c 		if (!CMSG_OK(msg, cmsg))
cmsg              732 net/dccp/proto.c 		if (cmsg->cmsg_level != SOL_DCCP)
cmsg              735 net/dccp/proto.c 		if (cmsg->cmsg_type <= DCCP_SCM_QPOLICY_MAX &&
cmsg              736 net/dccp/proto.c 		    !dccp_qpolicy_param_ok(skb->sk, cmsg->cmsg_type))
cmsg              739 net/dccp/proto.c 		switch (cmsg->cmsg_type) {
cmsg              741 net/dccp/proto.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(__u32)))
cmsg              743 net/dccp/proto.c 			skb->priority = *(__u32 *)CMSG_DATA(cmsg);
cmsg              246 net/ipv4/ip_sockglue.c 	struct cmsghdr *cmsg;
cmsg              249 net/ipv4/ip_sockglue.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              250 net/ipv4/ip_sockglue.c 		if (!CMSG_OK(msg, cmsg))
cmsg              254 net/ipv4/ip_sockglue.c 		    cmsg->cmsg_level == SOL_IPV6 &&
cmsg              255 net/ipv4/ip_sockglue.c 		    cmsg->cmsg_type == IPV6_PKTINFO) {
cmsg              258 net/ipv4/ip_sockglue.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(*src_info)))
cmsg              260 net/ipv4/ip_sockglue.c 			src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg);
cmsg              269 net/ipv4/ip_sockglue.c 		if (cmsg->cmsg_level == SOL_SOCKET) {
cmsg              270 net/ipv4/ip_sockglue.c 			err = __sock_cmsg_send(sk, msg, cmsg, &ipc->sockc);
cmsg              276 net/ipv4/ip_sockglue.c 		if (cmsg->cmsg_level != SOL_IP)
cmsg              278 net/ipv4/ip_sockglue.c 		switch (cmsg->cmsg_type) {
cmsg              280 net/ipv4/ip_sockglue.c 			err = cmsg->cmsg_len - sizeof(struct cmsghdr);
cmsg              283 net/ipv4/ip_sockglue.c 			err = ip_options_get(net, &ipc->opt, CMSG_DATA(cmsg),
cmsg              291 net/ipv4/ip_sockglue.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct in_pktinfo)))
cmsg              293 net/ipv4/ip_sockglue.c 			info = (struct in_pktinfo *)CMSG_DATA(cmsg);
cmsg              300 net/ipv4/ip_sockglue.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)))
cmsg              302 net/ipv4/ip_sockglue.c 			val = *(int *)CMSG_DATA(cmsg);
cmsg              308 net/ipv4/ip_sockglue.c 			if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)))
cmsg              309 net/ipv4/ip_sockglue.c 				val = *(int *)CMSG_DATA(cmsg);
cmsg              310 net/ipv4/ip_sockglue.c 			else if (cmsg->cmsg_len == CMSG_LEN(sizeof(u8)))
cmsg              311 net/ipv4/ip_sockglue.c 				val = *(u8 *)CMSG_DATA(cmsg);
cmsg              928 net/ipv4/udp.c static int __udp_cmsg_send(struct cmsghdr *cmsg, u16 *gso_size)
cmsg              930 net/ipv4/udp.c 	switch (cmsg->cmsg_type) {
cmsg              932 net/ipv4/udp.c 		if (cmsg->cmsg_len != CMSG_LEN(sizeof(__u16)))
cmsg              934 net/ipv4/udp.c 		*gso_size = *(__u16 *)CMSG_DATA(cmsg);
cmsg              943 net/ipv4/udp.c 	struct cmsghdr *cmsg;
cmsg              947 net/ipv4/udp.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              948 net/ipv4/udp.c 		if (!CMSG_OK(msg, cmsg))
cmsg              951 net/ipv4/udp.c 		if (cmsg->cmsg_level != SOL_UDP) {
cmsg              956 net/ipv4/udp.c 		err = __udp_cmsg_send(cmsg, gso_size);
cmsg              742 net/ipv6/datagram.c 	struct cmsghdr *cmsg;
cmsg              749 net/ipv6/datagram.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              752 net/ipv6/datagram.c 		if (!CMSG_OK(msg, cmsg)) {
cmsg              757 net/ipv6/datagram.c 		if (cmsg->cmsg_level == SOL_SOCKET) {
cmsg              758 net/ipv6/datagram.c 			err = __sock_cmsg_send(sk, msg, cmsg, &ipc6->sockc);
cmsg              764 net/ipv6/datagram.c 		if (cmsg->cmsg_level != SOL_IPV6)
cmsg              767 net/ipv6/datagram.c 		switch (cmsg->cmsg_type) {
cmsg              774 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct in6_pktinfo))) {
cmsg              779 net/ipv6/datagram.c 			src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg);
cmsg              827 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(4)) {
cmsg              833 net/ipv6/datagram.c 				if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) {
cmsg              838 net/ipv6/datagram.c 			fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg);
cmsg              843 net/ipv6/datagram.c 			if (opt->hopopt || cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_opt_hdr))) {
cmsg              848 net/ipv6/datagram.c 			hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg);
cmsg              850 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(len)) {
cmsg              863 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_opt_hdr))) {
cmsg              868 net/ipv6/datagram.c 			hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg);
cmsg              870 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(len)) {
cmsg              888 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_opt_hdr))) {
cmsg              893 net/ipv6/datagram.c 			hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg);
cmsg              895 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(len)) {
cmsg              903 net/ipv6/datagram.c 			if (cmsg->cmsg_type == IPV6_DSTOPTS) {
cmsg              914 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_rt_hdr))) {
cmsg              919 net/ipv6/datagram.c 			rthdr = (struct ipv6_rt_hdr *)CMSG_DATA(cmsg);
cmsg              938 net/ipv6/datagram.c 			if (cmsg->cmsg_len < CMSG_LEN(len)) {
cmsg              952 net/ipv6/datagram.c 			if (cmsg->cmsg_type == IPV6_2292RTHDR && opt->dst1opt) {
cmsg              965 net/ipv6/datagram.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(int))) {
cmsg              970 net/ipv6/datagram.c 			ipc6->hlimit = *(int *)CMSG_DATA(cmsg);
cmsg              983 net/ipv6/datagram.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)))
cmsg              986 net/ipv6/datagram.c 			tc = *(int *)CMSG_DATA(cmsg);
cmsg             1001 net/ipv6/datagram.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)))
cmsg             1004 net/ipv6/datagram.c 			df = *(int *)CMSG_DATA(cmsg);
cmsg             1015 net/ipv6/datagram.c 					    cmsg->cmsg_type);
cmsg             1069 net/iucv/af_iucv.c 	struct cmsghdr *cmsg;
cmsg             1106 net/iucv/af_iucv.c 	for_each_cmsghdr(cmsg, msg) {
cmsg             1107 net/iucv/af_iucv.c 		if (!CMSG_OK(msg, cmsg)) {
cmsg             1112 net/iucv/af_iucv.c 		if (cmsg->cmsg_level != SOL_IUCV)
cmsg             1115 net/iucv/af_iucv.c 		if (cmsg->cmsg_type & cmsg_done) {
cmsg             1119 net/iucv/af_iucv.c 		cmsg_done |= cmsg->cmsg_type;
cmsg             1121 net/iucv/af_iucv.c 		switch (cmsg->cmsg_type) {
cmsg             1123 net/iucv/af_iucv.c 			if (cmsg->cmsg_len != CMSG_LEN(TRGCLS_SIZE)) {
cmsg             1130 net/iucv/af_iucv.c 				(void *) CMSG_DATA(cmsg), TRGCLS_SIZE);
cmsg              573 net/rds/rdma.c 		       struct cmsghdr *cmsg,
cmsg              585 net/rds/rdma.c 	if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct rds_rdma_args))
cmsg              589 net/rds/rdma.c 	args = CMSG_DATA(cmsg);
cmsg              731 net/rds/rdma.c 			  struct cmsghdr *cmsg)
cmsg              738 net/rds/rdma.c 	if (cmsg->cmsg_len < CMSG_LEN(sizeof(rds_rdma_cookie_t)) ||
cmsg              742 net/rds/rdma.c 	memcpy(&rm->m_rdma_cookie, CMSG_DATA(cmsg), sizeof(rm->m_rdma_cookie));
cmsg              773 net/rds/rdma.c 			  struct cmsghdr *cmsg)
cmsg              775 net/rds/rdma.c 	if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct rds_get_mr_args)) ||
cmsg              779 net/rds/rdma.c 	return __rds_rdma_map(rs, CMSG_DATA(cmsg), &rm->m_rdma_cookie,
cmsg              787 net/rds/rdma.c 		    struct cmsghdr *cmsg)
cmsg              793 net/rds/rdma.c 	if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct rds_atomic_args))
cmsg              797 net/rds/rdma.c 	args = CMSG_DATA(cmsg);
cmsg              800 net/rds/rdma.c 	switch (cmsg->cmsg_type) {
cmsg              932 net/rds/rds.h  			  struct cmsghdr *cmsg);
cmsg              934 net/rds/rds.h  			  struct cmsghdr *cmsg,
cmsg              937 net/rds/rds.h  			  struct cmsghdr *cmsg);
cmsg              943 net/rds/rds.h  		    struct cmsghdr *cmsg);
cmsg              453 net/rds/recv.c 	struct rds_rdma_notify cmsg = { 0 }; /* fill holes with zero */
cmsg              468 net/rds/recv.c 		max_messages = msghdr->msg_controllen / CMSG_SPACE(sizeof(cmsg));
cmsg              489 net/rds/recv.c 			cmsg.user_token = notifier->n_user_token;
cmsg              490 net/rds/recv.c 			cmsg.status = notifier->n_status;
cmsg              493 net/rds/recv.c 				       sizeof(cmsg), &cmsg);
cmsg              892 net/rds/send.c 	struct cmsghdr *cmsg;
cmsg              902 net/rds/send.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              903 net/rds/send.c 		if (!CMSG_OK(msg, cmsg))
cmsg              906 net/rds/send.c 		if (cmsg->cmsg_level != SOL_RDS)
cmsg              909 net/rds/send.c 		switch (cmsg->cmsg_type) {
cmsg              928 net/rds/send.c 			retval = rds_rdma_extra_size(CMSG_DATA(cmsg), iov);
cmsg              972 net/rds/send.c 			  struct cmsghdr *cmsg)
cmsg              976 net/rds/send.c 	if (cmsg->cmsg_len < CMSG_LEN(sizeof(*cookie)) ||
cmsg              979 net/rds/send.c 	cookie = CMSG_DATA(cmsg);
cmsg              988 net/rds/send.c 	struct cmsghdr *cmsg;
cmsg              991 net/rds/send.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              992 net/rds/send.c 		if (!CMSG_OK(msg, cmsg))
cmsg              995 net/rds/send.c 		if (cmsg->cmsg_level != SOL_RDS)
cmsg             1001 net/rds/send.c 		switch (cmsg->cmsg_type) {
cmsg             1005 net/rds/send.c 			ret = rds_cmsg_rdma_args(rs, rm, cmsg, &vct->vec[ind]);
cmsg             1010 net/rds/send.c 			ret = rds_cmsg_rdma_dest(rs, rm, cmsg);
cmsg             1014 net/rds/send.c 			ret = rds_cmsg_rdma_map(rs, rm, cmsg);
cmsg             1027 net/rds/send.c 			ret = rds_cmsg_atomic(rs, rm, cmsg);
cmsg             1031 net/rds/send.c 			ret = rds_cmsg_zcopy(rs, rm, cmsg);
cmsg             1081 net/rds/send.c 	struct cmsghdr *cmsg;
cmsg             1083 net/rds/send.c 	for_each_cmsghdr(cmsg, msg) {
cmsg             1084 net/rds/send.c 		if (!CMSG_OK(msg, cmsg))
cmsg             1087 net/rds/send.c 		if (cmsg->cmsg_level != SOL_RDS)
cmsg             1090 net/rds/send.c 		if (cmsg->cmsg_type == RDS_CMSG_RDMA_ARGS) {
cmsg             1091 net/rds/send.c 			if (cmsg->cmsg_len <
cmsg             1094 net/rds/send.c 			args = CMSG_DATA(cmsg);
cmsg              491 net/rxrpc/sendmsg.c 	struct cmsghdr *cmsg;
cmsg              498 net/rxrpc/sendmsg.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              499 net/rxrpc/sendmsg.c 		if (!CMSG_OK(msg, cmsg))
cmsg              502 net/rxrpc/sendmsg.c 		len = cmsg->cmsg_len - sizeof(struct cmsghdr);
cmsg              504 net/rxrpc/sendmsg.c 		       cmsg->cmsg_level, cmsg->cmsg_type, len);
cmsg              506 net/rxrpc/sendmsg.c 		if (cmsg->cmsg_level != SOL_RXRPC)
cmsg              509 net/rxrpc/sendmsg.c 		switch (cmsg->cmsg_type) {
cmsg              514 net/rxrpc/sendmsg.c 				p->call.user_call_ID = *(u32 *)CMSG_DATA(cmsg);
cmsg              519 net/rxrpc/sendmsg.c 					CMSG_DATA(cmsg);
cmsg              530 net/rxrpc/sendmsg.c 			p->abort_code = *(unsigned int *)CMSG_DATA(cmsg);
cmsg              558 net/rxrpc/sendmsg.c 			p->call.tx_total_len = *(__s64 *)CMSG_DATA(cmsg);
cmsg              566 net/rxrpc/sendmsg.c 			memcpy(&p->call.timeouts, CMSG_DATA(cmsg), len);
cmsg             1666 net/sctp/socket.c 	struct cmsghdr *cmsg;
cmsg             1707 net/sctp/socket.c 	for_each_cmsghdr(cmsg, cmsgs->addrs_msg) {
cmsg             1711 net/sctp/socket.c 		if (cmsg->cmsg_level != IPPROTO_SCTP ||
cmsg             1712 net/sctp/socket.c 		    (cmsg->cmsg_type != SCTP_DSTADDRV4 &&
cmsg             1713 net/sctp/socket.c 		     cmsg->cmsg_type != SCTP_DSTADDRV6))
cmsg             1718 net/sctp/socket.c 		dlen = cmsg->cmsg_len - sizeof(struct cmsghdr);
cmsg             1719 net/sctp/socket.c 		if (cmsg->cmsg_type == SCTP_DSTADDRV4) {
cmsg             1728 net/sctp/socket.c 			memcpy(&daddr->v4.sin_addr, CMSG_DATA(cmsg), dlen);
cmsg             1739 net/sctp/socket.c 			memcpy(&daddr->v6.sin6_addr, CMSG_DATA(cmsg), dlen);
cmsg             8647 net/sctp/socket.c 	struct cmsghdr *cmsg;
cmsg             8649 net/sctp/socket.c 	for_each_cmsghdr(cmsg, my_msg) {
cmsg             8650 net/sctp/socket.c 		if (!CMSG_OK(my_msg, cmsg))
cmsg             8654 net/sctp/socket.c 		if (cmsg->cmsg_level != IPPROTO_SCTP)
cmsg             8658 net/sctp/socket.c 		switch (cmsg->cmsg_type) {
cmsg             8673 net/sctp/socket.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct sctp_initmsg)))
cmsg             8676 net/sctp/socket.c 			cmsgs->init = CMSG_DATA(cmsg);
cmsg             8691 net/sctp/socket.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct sctp_sndrcvinfo)))
cmsg             8694 net/sctp/socket.c 			cmsgs->srinfo = CMSG_DATA(cmsg);
cmsg             8715 net/sctp/socket.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct sctp_sndinfo)))
cmsg             8718 net/sctp/socket.c 			cmsgs->sinfo = CMSG_DATA(cmsg);
cmsg             8736 net/sctp/socket.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct sctp_prinfo)))
cmsg             8739 net/sctp/socket.c 			cmsgs->prinfo = CMSG_DATA(cmsg);
cmsg             8756 net/sctp/socket.c 			if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct sctp_authinfo)))
cmsg             8759 net/sctp/socket.c 			cmsgs->authinfo = CMSG_DATA(cmsg);
cmsg              167 net/tls/tls_main.c 	struct cmsghdr *cmsg;
cmsg              170 net/tls/tls_main.c 	for_each_cmsghdr(cmsg, msg) {
cmsg              171 net/tls/tls_main.c 		if (!CMSG_OK(msg, cmsg))
cmsg              173 net/tls/tls_main.c 		if (cmsg->cmsg_level != SOL_TLS)
cmsg              176 net/tls/tls_main.c 		switch (cmsg->cmsg_type) {
cmsg              178 net/tls/tls_main.c 			if (cmsg->cmsg_len < CMSG_LEN(sizeof(*record_type)))
cmsg              188 net/tls/tls_main.c 			*record_type = *(unsigned char *)CMSG_DATA(cmsg);
cmsg             1617 net/tls/tls_sw.c 			   bool *cmsg,
cmsg             1625 net/tls/tls_sw.c 	u8 msgc = *cmsg;
cmsg             1672 net/tls/tls_sw.c 				*cmsg = msgc;
cmsg             1735 net/tls/tls_sw.c 	bool cmsg = false;
cmsg             1752 net/tls/tls_sw.c 	err = process_rx_list(ctx, msg, &control, &cmsg, 0, len, false,
cmsg             1839 net/tls/tls_sw.c 		if (!cmsg) {
cmsg             1844 net/tls/tls_sw.c 			cmsg = true;
cmsg             1928 net/tls/tls_sw.c 			err = process_rx_list(ctx, msg, &control, &cmsg, copied,
cmsg             1931 net/tls/tls_sw.c 			err = process_rx_list(ctx, msg, &control, &cmsg, 0,
cmsg               35 samples/seccomp/user-trap.c 	struct cmsghdr *cmsg;
cmsg               46 samples/seccomp/user-trap.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg               47 samples/seccomp/user-trap.c 	cmsg->cmsg_level = SOL_SOCKET;
cmsg               48 samples/seccomp/user-trap.c 	cmsg->cmsg_type = SCM_RIGHTS;
cmsg               49 samples/seccomp/user-trap.c 	cmsg->cmsg_len = CMSG_LEN(sizeof(int));
cmsg               50 samples/seccomp/user-trap.c 	*((int *)CMSG_DATA(cmsg)) = fd;
cmsg               51 samples/seccomp/user-trap.c 	msg.msg_controllen = cmsg->cmsg_len;
cmsg               64 samples/seccomp/user-trap.c 	struct cmsghdr *cmsg;
cmsg               81 samples/seccomp/user-trap.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg               83 samples/seccomp/user-trap.c 	return *((int *)CMSG_DATA(cmsg));
cmsg              110 tools/testing/selftests/android/ion/ipcsocket.c 	struct cmsghdr *cmsg;
cmsg              144 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg = CMSG_FIRSTHDR(&msgh);
cmsg              145 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg->cmsg_level = SOL_SOCKET;
cmsg              146 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg->cmsg_type = SCM_RIGHTS;
cmsg              147 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg->cmsg_len = CMSG_LEN(len);
cmsg              148 tools/testing/selftests/android/ion/ipcsocket.c 		memcpy(CMSG_DATA(cmsg), &buffd, len);
cmsg              166 tools/testing/selftests/android/ion/ipcsocket.c 	struct cmsghdr *cmsg;
cmsg              197 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg = CMSG_FIRSTHDR(&msgh);
cmsg              198 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg->cmsg_level = SOL_SOCKET;
cmsg              199 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg->cmsg_type = SCM_RIGHTS;
cmsg              200 tools/testing/selftests/android/ion/ipcsocket.c 		cmsg->cmsg_len = CMSG_LEN(len);
cmsg              209 tools/testing/selftests/android/ion/ipcsocket.c 		memcpy(&buffd, CMSG_DATA(cmsg), len);
cmsg             1211 tools/testing/selftests/bpf/test_sock_addr.c int init_pktinfo(int domain, struct cmsghdr *cmsg)
cmsg             1217 tools/testing/selftests/bpf/test_sock_addr.c 		cmsg->cmsg_level = SOL_IP;
cmsg             1218 tools/testing/selftests/bpf/test_sock_addr.c 		cmsg->cmsg_type = IP_PKTINFO;
cmsg             1219 tools/testing/selftests/bpf/test_sock_addr.c 		cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
cmsg             1220 tools/testing/selftests/bpf/test_sock_addr.c 		pktinfo4 = (struct in_pktinfo *)CMSG_DATA(cmsg);
cmsg             1226 tools/testing/selftests/bpf/test_sock_addr.c 		cmsg->cmsg_level = SOL_IPV6;
cmsg             1227 tools/testing/selftests/bpf/test_sock_addr.c 		cmsg->cmsg_type = IPV6_PKTINFO;
cmsg             1228 tools/testing/selftests/bpf/test_sock_addr.c 		cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
cmsg             1229 tools/testing/selftests/bpf/test_sock_addr.c 		pktinfo6 = (struct in6_pktinfo *)CMSG_DATA(cmsg);
cmsg              364 tools/testing/selftests/net/msg_zerocopy.c 	struct cmsghdr *cmsg;
cmsg              378 tools/testing/selftests/net/msg_zerocopy.c 	for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
cmsg              379 tools/testing/selftests/net/msg_zerocopy.c 		if (cmsg->cmsg_level == SOL_RDS &&
cmsg              380 tools/testing/selftests/net/msg_zerocopy.c 		    cmsg->cmsg_type == RDS_CMSG_ZCOPY_COMPLETION) {
cmsg              382 tools/testing/selftests/net/msg_zerocopy.c 			ck = (struct rds_zcopy_cookies *)CMSG_DATA(cmsg);
cmsg              388 tools/testing/selftests/net/msg_zerocopy.c 			    cmsg->cmsg_level, cmsg->cmsg_type);
cmsg             1046 tools/testing/selftests/net/tls.c 	struct cmsghdr *cmsg;
cmsg             1059 tools/testing/selftests/net/tls.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg             1060 tools/testing/selftests/net/tls.c 	cmsg->cmsg_level = SOL_TLS;
cmsg             1062 tools/testing/selftests/net/tls.c 	cmsg->cmsg_type = TLS_SET_RECORD_TYPE;
cmsg             1063 tools/testing/selftests/net/tls.c 	cmsg->cmsg_len = CMSG_LEN(cmsg_len);
cmsg             1064 tools/testing/selftests/net/tls.c 	*CMSG_DATA(cmsg) = record_type;
cmsg             1065 tools/testing/selftests/net/tls.c 	msg.msg_controllen = cmsg->cmsg_len;
cmsg             1074 tools/testing/selftests/net/tls.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg             1075 tools/testing/selftests/net/tls.c 	EXPECT_NE(cmsg, NULL);
cmsg             1076 tools/testing/selftests/net/tls.c 	EXPECT_EQ(cmsg->cmsg_level, SOL_TLS);
cmsg             1077 tools/testing/selftests/net/tls.c 	EXPECT_EQ(cmsg->cmsg_type, TLS_GET_RECORD_TYPE);
cmsg             1078 tools/testing/selftests/net/tls.c 	record_type = *((unsigned char *)CMSG_DATA(cmsg));
cmsg             1087 tools/testing/selftests/net/tls.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg             1088 tools/testing/selftests/net/tls.c 	EXPECT_NE(cmsg, NULL);
cmsg             1089 tools/testing/selftests/net/tls.c 	EXPECT_EQ(cmsg->cmsg_level, SOL_TLS);
cmsg             1090 tools/testing/selftests/net/tls.c 	EXPECT_EQ(cmsg->cmsg_type, TLS_GET_RECORD_TYPE);
cmsg             1091 tools/testing/selftests/net/tls.c 	record_type = *((unsigned char *)CMSG_DATA(cmsg));
cmsg              217 tools/testing/selftests/net/udpgso_bench_rx.c 	struct cmsghdr *cmsg;
cmsg              233 tools/testing/selftests/net/udpgso_bench_rx.c 		for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL;
cmsg              234 tools/testing/selftests/net/udpgso_bench_rx.c 		     cmsg = CMSG_NXTHDR(&msg, cmsg)) {
cmsg              235 tools/testing/selftests/net/udpgso_bench_rx.c 			if (cmsg->cmsg_level == SOL_UDP
cmsg              236 tools/testing/selftests/net/udpgso_bench_rx.c 			    && cmsg->cmsg_type == UDP_GRO) {
cmsg              237 tools/testing/selftests/net/udpgso_bench_rx.c 				gsosizeptr = (uint16_t *) CMSG_DATA(cmsg);
cmsg              138 tools/testing/selftests/net/udpgso_bench_tx.c static void flush_cmsg(struct cmsghdr *cmsg)
cmsg              146 tools/testing/selftests/net/udpgso_bench_tx.c 	switch (cmsg->cmsg_level) {
cmsg              148 tools/testing/selftests/net/udpgso_bench_tx.c 		if (cmsg->cmsg_type == SO_TIMESTAMPING) {
cmsg              150 tools/testing/selftests/net/udpgso_bench_tx.c 			tss = (struct scm_timestamping *)CMSG_DATA(cmsg);
cmsg              155 tools/testing/selftests/net/udpgso_bench_tx.c 			      cmsg->cmsg_type);
cmsg              160 tools/testing/selftests/net/udpgso_bench_tx.c 		switch (cmsg->cmsg_type) {
cmsg              164 tools/testing/selftests/net/udpgso_bench_tx.c 			err = (struct sock_extended_err *)CMSG_DATA(cmsg);
cmsg              199 tools/testing/selftests/net/udpgso_bench_tx.c 			      cmsg->cmsg_type);
cmsg              205 tools/testing/selftests/net/udpgso_bench_tx.c 		      cmsg->cmsg_level);
cmsg              215 tools/testing/selftests/net/udpgso_bench_tx.c 	struct cmsghdr *cmsg;
cmsg              229 tools/testing/selftests/net/udpgso_bench_tx.c 			for (cmsg = CMSG_FIRSTHDR(&msg);
cmsg              230 tools/testing/selftests/net/udpgso_bench_tx.c 					cmsg;
cmsg              231 tools/testing/selftests/net/udpgso_bench_tx.c 					cmsg = CMSG_NXTHDR(&msg, cmsg))
cmsg              232 tools/testing/selftests/net/udpgso_bench_tx.c 				flush_cmsg(cmsg);
cmsg              323 tools/testing/selftests/net/udpgso_bench_tx.c 		struct cmsghdr *cmsg;
cmsg              327 tools/testing/selftests/net/udpgso_bench_tx.c 		cmsg = CMSG_FIRSTHDR(&msg);
cmsg              328 tools/testing/selftests/net/udpgso_bench_tx.c 		send_ts_cmsg(cmsg);
cmsg              380 tools/testing/selftests/net/udpgso_bench_tx.c 	struct cmsghdr *cmsg;
cmsg              391 tools/testing/selftests/net/udpgso_bench_tx.c 	cmsg = CMSG_FIRSTHDR(&msg);
cmsg              392 tools/testing/selftests/net/udpgso_bench_tx.c 	send_udp_segment_cmsg(cmsg);
cmsg              395 tools/testing/selftests/net/udpgso_bench_tx.c 		cmsg = CMSG_NXTHDR(&msg, cmsg);
cmsg              396 tools/testing/selftests/net/udpgso_bench_tx.c 		send_ts_cmsg(cmsg);
cmsg              179 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	struct cmsghdr *cmsg;
cmsg              203 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	for (cmsg = CMSG_FIRSTHDR(&hdr); cmsg != NULL;
cmsg              204 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	     cmsg = CMSG_NXTHDR(&hdr, cmsg)) {
cmsg              205 tools/testing/selftests/networking/timestamping/rxtimestamp.c 		if (cmsg->cmsg_level != SOL_SOCKET)
cmsg              207 tools/testing/selftests/networking/timestamping/rxtimestamp.c 			      cmsg->cmsg_level);
cmsg              208 tools/testing/selftests/networking/timestamping/rxtimestamp.c 		switch (cmsg->cmsg_type) {
cmsg              216 tools/testing/selftests/networking/timestamping/rxtimestamp.c 			ts = (struct scm_timestamping *)CMSG_DATA(cmsg);
cmsg              223 tools/testing/selftests/networking/timestamping/rxtimestamp.c 			error(1, 0, "Unexpected cmsg_type %d", cmsg->cmsg_type);
cmsg              140 tools/testing/selftests/networking/timestamping/timestamping.c 	struct cmsghdr *cmsg;
cmsg              153 tools/testing/selftests/networking/timestamping/timestamping.c 	for (cmsg = CMSG_FIRSTHDR(msg);
cmsg              154 tools/testing/selftests/networking/timestamping/timestamping.c 	     cmsg;
cmsg              155 tools/testing/selftests/networking/timestamping/timestamping.c 	     cmsg = CMSG_NXTHDR(msg, cmsg)) {
cmsg              156 tools/testing/selftests/networking/timestamping/timestamping.c 		printf("   cmsg len %zu: ", cmsg->cmsg_len);
cmsg              157 tools/testing/selftests/networking/timestamping/timestamping.c 		switch (cmsg->cmsg_level) {
cmsg              160 tools/testing/selftests/networking/timestamping/timestamping.c 			switch (cmsg->cmsg_type) {
cmsg              163 tools/testing/selftests/networking/timestamping/timestamping.c 					(struct timeval *)CMSG_DATA(cmsg);
cmsg              171 tools/testing/selftests/networking/timestamping/timestamping.c 					(struct timespec *)CMSG_DATA(cmsg);
cmsg              179 tools/testing/selftests/networking/timestamping/timestamping.c 					(struct timespec *)CMSG_DATA(cmsg);
cmsg              193 tools/testing/selftests/networking/timestamping/timestamping.c 				printf("type %d", cmsg->cmsg_type);
cmsg              199 tools/testing/selftests/networking/timestamping/timestamping.c 			switch (cmsg->cmsg_type) {
cmsg              202 tools/testing/selftests/networking/timestamping/timestamping.c 					(struct sock_extended_err *)CMSG_DATA(cmsg);
cmsg              222 tools/testing/selftests/networking/timestamping/timestamping.c 					(struct in_pktinfo *)CMSG_DATA(cmsg);
cmsg              228 tools/testing/selftests/networking/timestamping/timestamping.c 				printf("type %d", cmsg->cmsg_type);
cmsg              234 tools/testing/selftests/networking/timestamping/timestamping.c 				cmsg->cmsg_level,
cmsg              235 tools/testing/selftests/networking/timestamping/timestamping.c 				cmsg->cmsg_type);
cmsg              390 tools/testing/selftests/networking/timestamping/txtimestamp.c 	struct cmsghdr *cmsg;
cmsg              515 tools/testing/selftests/networking/timestamping/txtimestamp.c 			cmsg = CMSG_FIRSTHDR(&msg);
cmsg              516 tools/testing/selftests/networking/timestamping/txtimestamp.c 			cmsg->cmsg_level = SOL_SOCKET;
cmsg              517 tools/testing/selftests/networking/timestamping/txtimestamp.c 			cmsg->cmsg_type = SO_TIMESTAMPING;
cmsg              518 tools/testing/selftests/networking/timestamping/txtimestamp.c 			cmsg->cmsg_len = CMSG_LEN(sizeof(uint32_t));
cmsg              520 tools/testing/selftests/networking/timestamping/txtimestamp.c 			*((uint32_t *) CMSG_DATA(cmsg)) = report_opt;