Lines Matching refs:cmsg
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,
194 _cdebbuf *capi_cmsg2str(_cmsg *cmsg);
199 static inline void capi_cmsg_answer(_cmsg * cmsg) in capi_cmsg_answer() argument
201 cmsg->Subcommand |= 0x01; in capi_cmsg_answer()
206 static inline void capi_fill_CONNECT_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_B3_REQ() argument
210 capi_cmsg_header(cmsg, ApplId, 0x82, 0x80, Messagenumber, adr); in capi_fill_CONNECT_B3_REQ()
211 cmsg->NCPI = NCPI; in capi_fill_CONNECT_B3_REQ()
214 static inline void capi_fill_FACILITY_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_FACILITY_REQ() argument
219 capi_cmsg_header(cmsg, ApplId, 0x80, 0x80, Messagenumber, adr); in capi_fill_FACILITY_REQ()
220 cmsg->FacilitySelector = FacilitySelector; in capi_fill_FACILITY_REQ()
221 cmsg->FacilityRequestParameter = FacilityRequestParameter; in capi_fill_FACILITY_REQ()
224 static inline void capi_fill_INFO_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_INFO_REQ() argument
232 capi_cmsg_header(cmsg, ApplId, 0x08, 0x80, Messagenumber, adr); in capi_fill_INFO_REQ()
233 cmsg->CalledPartyNumber = CalledPartyNumber; in capi_fill_INFO_REQ()
234 cmsg->BChannelinformation = BChannelinformation; in capi_fill_INFO_REQ()
235 cmsg->Keypadfacility = Keypadfacility; in capi_fill_INFO_REQ()
236 cmsg->Useruserdata = Useruserdata; in capi_fill_INFO_REQ()
237 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_INFO_REQ()
240 static inline void capi_fill_LISTEN_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_LISTEN_REQ() argument
248 capi_cmsg_header(cmsg, ApplId, 0x05, 0x80, Messagenumber, adr); in capi_fill_LISTEN_REQ()
249 cmsg->InfoMask = InfoMask; in capi_fill_LISTEN_REQ()
250 cmsg->CIPmask = CIPmask; in capi_fill_LISTEN_REQ()
251 cmsg->CIPmask2 = CIPmask2; in capi_fill_LISTEN_REQ()
252 cmsg->CallingPartyNumber = CallingPartyNumber; in capi_fill_LISTEN_REQ()
253 cmsg->CallingPartySubaddress = CallingPartySubaddress; in capi_fill_LISTEN_REQ()
256 static inline void capi_fill_ALERT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_ALERT_REQ() argument
263 capi_cmsg_header(cmsg, ApplId, 0x01, 0x80, Messagenumber, adr); in capi_fill_ALERT_REQ()
264 cmsg->BChannelinformation = BChannelinformation; in capi_fill_ALERT_REQ()
265 cmsg->Keypadfacility = Keypadfacility; in capi_fill_ALERT_REQ()
266 cmsg->Useruserdata = Useruserdata; in capi_fill_ALERT_REQ()
267 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_ALERT_REQ()
270 static inline void capi_fill_CONNECT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_REQ() argument
292 capi_cmsg_header(cmsg, ApplId, 0x02, 0x80, Messagenumber, adr); in capi_fill_CONNECT_REQ()
293 cmsg->CIPValue = CIPValue; in capi_fill_CONNECT_REQ()
294 cmsg->CalledPartyNumber = CalledPartyNumber; in capi_fill_CONNECT_REQ()
295 cmsg->CallingPartyNumber = CallingPartyNumber; in capi_fill_CONNECT_REQ()
296 cmsg->CalledPartySubaddress = CalledPartySubaddress; in capi_fill_CONNECT_REQ()
297 cmsg->CallingPartySubaddress = CallingPartySubaddress; in capi_fill_CONNECT_REQ()
298 cmsg->B1protocol = B1protocol; in capi_fill_CONNECT_REQ()
299 cmsg->B2protocol = B2protocol; in capi_fill_CONNECT_REQ()
300 cmsg->B3protocol = B3protocol; in capi_fill_CONNECT_REQ()
301 cmsg->B1configuration = B1configuration; in capi_fill_CONNECT_REQ()
302 cmsg->B2configuration = B2configuration; in capi_fill_CONNECT_REQ()
303 cmsg->B3configuration = B3configuration; in capi_fill_CONNECT_REQ()
304 cmsg->BC = BC; in capi_fill_CONNECT_REQ()
305 cmsg->LLC = LLC; in capi_fill_CONNECT_REQ()
306 cmsg->HLC = HLC; in capi_fill_CONNECT_REQ()
307 cmsg->BChannelinformation = BChannelinformation; in capi_fill_CONNECT_REQ()
308 cmsg->Keypadfacility = Keypadfacility; in capi_fill_CONNECT_REQ()
309 cmsg->Useruserdata = Useruserdata; in capi_fill_CONNECT_REQ()
310 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_CONNECT_REQ()
313 static inline void capi_fill_DATA_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DATA_B3_REQ() argument
321 capi_cmsg_header(cmsg, ApplId, 0x86, 0x80, Messagenumber, adr); in capi_fill_DATA_B3_REQ()
322 cmsg->Data = Data; in capi_fill_DATA_B3_REQ()
323 cmsg->DataLength = DataLength; in capi_fill_DATA_B3_REQ()
324 cmsg->DataHandle = DataHandle; in capi_fill_DATA_B3_REQ()
325 cmsg->Flags = Flags; in capi_fill_DATA_B3_REQ()
328 static inline void capi_fill_DISCONNECT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_REQ() argument
336 capi_cmsg_header(cmsg, ApplId, 0x04, 0x80, Messagenumber, adr); in capi_fill_DISCONNECT_REQ()
337 cmsg->BChannelinformation = BChannelinformation; in capi_fill_DISCONNECT_REQ()
338 cmsg->Keypadfacility = Keypadfacility; in capi_fill_DISCONNECT_REQ()
339 cmsg->Useruserdata = Useruserdata; in capi_fill_DISCONNECT_REQ()
340 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_DISCONNECT_REQ()
343 static inline void capi_fill_DISCONNECT_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_B3_REQ() argument
348 capi_cmsg_header(cmsg, ApplId, 0x84, 0x80, Messagenumber, adr); in capi_fill_DISCONNECT_B3_REQ()
349 cmsg->NCPI = NCPI; in capi_fill_DISCONNECT_B3_REQ()
352 static inline void capi_fill_MANUFACTURER_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_MANUFACTURER_REQ() argument
360 capi_cmsg_header(cmsg, ApplId, 0xff, 0x80, Messagenumber, adr); in capi_fill_MANUFACTURER_REQ()
361 cmsg->ManuID = ManuID; in capi_fill_MANUFACTURER_REQ()
362 cmsg->Class = Class; in capi_fill_MANUFACTURER_REQ()
363 cmsg->Function = Function; in capi_fill_MANUFACTURER_REQ()
364 cmsg->ManuData = ManuData; in capi_fill_MANUFACTURER_REQ()
367 static inline void capi_fill_RESET_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_RESET_B3_REQ() argument
372 capi_cmsg_header(cmsg, ApplId, 0x87, 0x80, Messagenumber, adr); in capi_fill_RESET_B3_REQ()
373 cmsg->NCPI = NCPI; in capi_fill_RESET_B3_REQ()
376 static inline void capi_fill_SELECT_B_PROTOCOL_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_SELECT_B_PROTOCOL_REQ() argument
386 capi_cmsg_header(cmsg, ApplId, 0x41, 0x80, Messagenumber, adr); in capi_fill_SELECT_B_PROTOCOL_REQ()
387 cmsg->B1protocol = B1protocol; in capi_fill_SELECT_B_PROTOCOL_REQ()
388 cmsg->B2protocol = B2protocol; in capi_fill_SELECT_B_PROTOCOL_REQ()
389 cmsg->B3protocol = B3protocol; in capi_fill_SELECT_B_PROTOCOL_REQ()
390 cmsg->B1configuration = B1configuration; in capi_fill_SELECT_B_PROTOCOL_REQ()
391 cmsg->B2configuration = B2configuration; in capi_fill_SELECT_B_PROTOCOL_REQ()
392 cmsg->B3configuration = B3configuration; in capi_fill_SELECT_B_PROTOCOL_REQ()
395 static inline void capi_fill_CONNECT_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_RESP() argument
412 capi_cmsg_header(cmsg, ApplId, 0x02, 0x83, Messagenumber, adr); in capi_fill_CONNECT_RESP()
413 cmsg->Reject = Reject; in capi_fill_CONNECT_RESP()
414 cmsg->B1protocol = B1protocol; in capi_fill_CONNECT_RESP()
415 cmsg->B2protocol = B2protocol; in capi_fill_CONNECT_RESP()
416 cmsg->B3protocol = B3protocol; in capi_fill_CONNECT_RESP()
417 cmsg->B1configuration = B1configuration; in capi_fill_CONNECT_RESP()
418 cmsg->B2configuration = B2configuration; in capi_fill_CONNECT_RESP()
419 cmsg->B3configuration = B3configuration; in capi_fill_CONNECT_RESP()
420 cmsg->ConnectedNumber = ConnectedNumber; in capi_fill_CONNECT_RESP()
421 cmsg->ConnectedSubaddress = ConnectedSubaddress; in capi_fill_CONNECT_RESP()
422 cmsg->LLC = LLC; in capi_fill_CONNECT_RESP()
423 cmsg->BChannelinformation = BChannelinformation; in capi_fill_CONNECT_RESP()
424 cmsg->Keypadfacility = Keypadfacility; in capi_fill_CONNECT_RESP()
425 cmsg->Useruserdata = Useruserdata; in capi_fill_CONNECT_RESP()
426 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_CONNECT_RESP()
429 static inline void capi_fill_CONNECT_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_ACTIVE_RESP() argument
433 capi_cmsg_header(cmsg, ApplId, 0x03, 0x83, Messagenumber, adr); in capi_fill_CONNECT_ACTIVE_RESP()
436 static inline void capi_fill_CONNECT_B3_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_B3_ACTIVE_RESP() argument
440 capi_cmsg_header(cmsg, ApplId, 0x83, 0x83, Messagenumber, adr); in capi_fill_CONNECT_B3_ACTIVE_RESP()
443 static inline void capi_fill_CONNECT_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_B3_RESP() argument
448 capi_cmsg_header(cmsg, ApplId, 0x82, 0x83, Messagenumber, adr); in capi_fill_CONNECT_B3_RESP()
449 cmsg->Reject = Reject; in capi_fill_CONNECT_B3_RESP()
450 cmsg->NCPI = NCPI; in capi_fill_CONNECT_B3_RESP()
453 static inline void capi_fill_CONNECT_B3_T90_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenu… in capi_fill_CONNECT_B3_T90_ACTIVE_RESP() argument
457 capi_cmsg_header(cmsg, ApplId, 0x88, 0x83, Messagenumber, adr); in capi_fill_CONNECT_B3_T90_ACTIVE_RESP()
460 static inline void capi_fill_DATA_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DATA_B3_RESP() argument
465 capi_cmsg_header(cmsg, ApplId, 0x86, 0x83, Messagenumber, adr); in capi_fill_DATA_B3_RESP()
466 cmsg->DataHandle = DataHandle; in capi_fill_DATA_B3_RESP()
469 static inline void capi_fill_DISCONNECT_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_B3_RESP() argument
473 capi_cmsg_header(cmsg, ApplId, 0x84, 0x83, Messagenumber, adr); in capi_fill_DISCONNECT_B3_RESP()
476 static inline void capi_fill_DISCONNECT_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_RESP() argument
480 capi_cmsg_header(cmsg, ApplId, 0x04, 0x83, Messagenumber, adr); in capi_fill_DISCONNECT_RESP()
483 static inline void capi_fill_FACILITY_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_FACILITY_RESP() argument
488 capi_cmsg_header(cmsg, ApplId, 0x80, 0x83, Messagenumber, adr); in capi_fill_FACILITY_RESP()
489 cmsg->FacilitySelector = FacilitySelector; in capi_fill_FACILITY_RESP()
492 static inline void capi_fill_INFO_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_INFO_RESP() argument
496 capi_cmsg_header(cmsg, ApplId, 0x08, 0x83, Messagenumber, adr); in capi_fill_INFO_RESP()
499 static inline void capi_fill_MANUFACTURER_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_MANUFACTURER_RESP() argument
507 capi_cmsg_header(cmsg, ApplId, 0xff, 0x83, Messagenumber, adr); in capi_fill_MANUFACTURER_RESP()
508 cmsg->ManuID = ManuID; in capi_fill_MANUFACTURER_RESP()
509 cmsg->Class = Class; in capi_fill_MANUFACTURER_RESP()
510 cmsg->Function = Function; in capi_fill_MANUFACTURER_RESP()
511 cmsg->ManuData = ManuData; in capi_fill_MANUFACTURER_RESP()
514 static inline void capi_fill_RESET_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_RESET_B3_RESP() argument
518 capi_cmsg_header(cmsg, ApplId, 0x87, 0x83, Messagenumber, adr); in capi_fill_RESET_B3_RESP()