/linux-4.19.296/drivers/isdn/capi/ |
D | capiutil.c | 229 #define TYP (cdef[cmsg->par[cmsg->p]].typ) 230 #define OFF (((u8 *)cmsg) + cdef[cmsg->par[cmsg->p]].off) 232 static void jumpcstruct(_cmsg *cmsg) in jumpcstruct() argument 235 for (cmsg->p++, layer = 1; layer;) { in jumpcstruct() 237 cmsg->p++; in jumpcstruct() 249 static void pars_2_message(_cmsg *cmsg) in pars_2_message() argument 252 for (; TYP != _CEND; cmsg->p++) { in pars_2_message() 255 byteTLcpy(cmsg->m + cmsg->l, OFF); in pars_2_message() 256 cmsg->l++; in pars_2_message() 259 wordTLcpy(cmsg->m + cmsg->l, OFF); in pars_2_message() [all …]
|
D | capidrv.c | 505 static void send_message(capidrv_contr *card, _cmsg *cmsg) in send_message() argument 510 if (capi_cmsg2message(cmsg, cmsg->buf)) { in send_message() 514 len = CAPIMSG_LEN(cmsg->buf); in send_message() 520 skb_put_data(skb, cmsg->buf, len); in send_message() 662 static _cmsg cmsg; variable 668 capi_fill_DISCONNECT_REQ(&cmsg, in n0() 678 send_message(card, &cmsg); in n0() 966 static void handle_controller(_cmsg *cmsg) in handle_controller() argument 968 capidrv_contr *card = findcontrbynumber(cmsg->adr.adrController & 0x7f); in handle_controller() 972 capi_cmd2str(cmsg->Command, cmsg->Subcommand), in handle_controller() [all …]
|
/linux-4.19.296/include/linux/isdn/ |
D | capiutil.h | 150 unsigned capi_cmsg2message(_cmsg * cmsg, __u8 * msg); 156 unsigned capi_message2cmsg(_cmsg * cmsg, __u8 * msg); 163 unsigned capi_cmsg_header(_cmsg * cmsg, __u16 _ApplId, 189 _cdebbuf *capi_cmsg2str(_cmsg *cmsg); 194 static inline void capi_cmsg_answer(_cmsg * cmsg) in capi_cmsg_answer() argument 196 cmsg->Subcommand |= 0x01; in capi_cmsg_answer() 201 static inline void capi_fill_CONNECT_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_B3_REQ() argument 205 capi_cmsg_header(cmsg, ApplId, 0x82, 0x80, Messagenumber, adr); in capi_fill_CONNECT_B3_REQ() 206 cmsg->NCPI = NCPI; in capi_fill_CONNECT_B3_REQ() 209 static inline void capi_fill_FACILITY_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_FACILITY_REQ() argument [all …]
|
/linux-4.19.296/drivers/isdn/gigaset/ |
D | capi.c | 1148 _cmsg *cmsg = &iif->acmsg; in do_facility_req() local 1156 if (capi_message2cmsg(cmsg, skb->data)) { in do_facility_req() 1161 dump_cmsg(DEBUG_CMD, __func__, cmsg); in do_facility_req() 1167 switch (cmsg->FacilitySelector) { in do_facility_req() 1184 pparam = cmsg->FacilityRequestParameter; in do_facility_req() 1260 capi_cmsg_answer(cmsg); in do_facility_req() 1261 cmsg->Info = info; in do_facility_req() 1262 cmsg->FacilityConfirmationParameter = confparam; in do_facility_req() 1269 if (capi_cmsg2message(cmsg, __skb_put(cskb, msgsize))) { in do_facility_req() 1274 dump_cmsg(DEBUG_CMD, __func__, cmsg); in do_facility_req() [all …]
|
/linux-4.19.296/include/linux/ |
D | socket.h | 91 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) argument 92 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) argument 96 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + sizeof(struct cmsghdr))) argument 104 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ argument 105 (cmsg)->cmsg_len <= (unsigned long) \ 107 ((char *)(cmsg) - (char *)(mhdr)->msg_control))) 108 #define for_each_cmsghdr(cmsg, msg) \ argument 109 for (cmsg = CMSG_FIRSTHDR(msg); \ 110 cmsg; \ 111 cmsg = CMSG_NXTHDR(msg, cmsg))
|
D | isdnif.h | 377 capi_msg cmsg; /* For CAPI like messages */ member
|
/linux-4.19.296/crypto/ |
D | af_alg.c | 450 struct cmsghdr *cmsg; in af_alg_cmsg_send() local 452 for_each_cmsghdr(cmsg, msg) { in af_alg_cmsg_send() 453 if (!CMSG_OK(msg, cmsg)) in af_alg_cmsg_send() 455 if (cmsg->cmsg_level != SOL_ALG) in af_alg_cmsg_send() 458 switch (cmsg->cmsg_type) { in af_alg_cmsg_send() 460 if (cmsg->cmsg_len < CMSG_LEN(sizeof(*con->iv))) in af_alg_cmsg_send() 462 con->iv = (void *)CMSG_DATA(cmsg); in af_alg_cmsg_send() 463 if (cmsg->cmsg_len < CMSG_LEN(con->iv->ivlen + in af_alg_cmsg_send() 469 if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32))) in af_alg_cmsg_send() 471 con->op = *(u32 *)CMSG_DATA(cmsg); in af_alg_cmsg_send() [all …]
|
/linux-4.19.296/fs/nfsd/ |
D | nfs4recover.c | 670 __cld_pipe_upcall(struct rpc_pipe *pipe, struct cld_msg *cmsg) in __cld_pipe_upcall() argument 674 struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, cu_msg); in __cld_pipe_upcall() 677 msg.data = cmsg; in __cld_pipe_upcall() 678 msg.len = sizeof(*cmsg); in __cld_pipe_upcall() 694 cld_pipe_upcall(struct rpc_pipe *pipe, struct cld_msg *cmsg) in cld_pipe_upcall() argument 703 ret = __cld_pipe_upcall(pipe, cmsg); in cld_pipe_upcall() 713 struct cld_msg __user *cmsg = (struct cld_msg __user *)src; in cld_pipe_downcall() local 719 if (mlen != sizeof(*cmsg)) { in cld_pipe_downcall() 721 sizeof(*cmsg)); in cld_pipe_downcall() 726 if (copy_from_user(&xid, &cmsg->cm_xid, sizeof(xid)) != 0) { in cld_pipe_downcall() [all …]
|
/linux-4.19.296/drivers/isdn/i4l/ |
D | isdn_tty.c | 780 cmd.parm.cmsg.Length = l + 18; in isdn_tty_suspend() 781 cmd.parm.cmsg.Command = CAPI_FACILITY; in isdn_tty_suspend() 782 cmd.parm.cmsg.Subcommand = CAPI_REQ; in isdn_tty_suspend() 783 cmd.parm.cmsg.adr.Controller = info->isdn_driver + 1; in isdn_tty_suspend() 784 cmd.parm.cmsg.para[0] = 3; /* 16 bit 0x0003 suplementary service */ in isdn_tty_suspend() 785 cmd.parm.cmsg.para[1] = 0; in isdn_tty_suspend() 786 cmd.parm.cmsg.para[2] = l + 3; in isdn_tty_suspend() 787 cmd.parm.cmsg.para[3] = 4; /* 16 bit 0x0004 Suspend */ in isdn_tty_suspend() 788 cmd.parm.cmsg.para[4] = 0; in isdn_tty_suspend() 789 cmd.parm.cmsg.para[5] = l; in isdn_tty_suspend() [all …]
|
D | isdn_common.c | 715 return (isdn_capi_rec_hl_msg(&c->parm.cmsg)); in isdn_status_callback()
|
/linux-4.19.296/drivers/isdn/hisax/ |
D | callc.c | 1568 capi_debug(chanp, &ic->parm.cmsg); in HiSax_command() 1569 if (ic->parm.cmsg.Length < 8) in HiSax_command() 1571 switch (ic->parm.cmsg.Command) { in HiSax_command() 1573 if (ic->parm.cmsg.Subcommand == CAPI_REQ) in HiSax_command() 1574 lli_got_fac_req(chanp, &ic->parm.cmsg); in HiSax_command() 1577 if (ic->parm.cmsg.Subcommand == CAPI_REQ) in HiSax_command() 1578 lli_got_manufacturer(chanp, csta, &ic->parm.cmsg); in HiSax_command()
|
/linux-4.19.296/include/net/ |
D | sock.h | 1660 int __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg,
|