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,
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
214 capi_cmsg_header(cmsg, ApplId, 0x80, 0x80, Messagenumber, adr); in capi_fill_FACILITY_REQ()
215 cmsg->FacilitySelector = FacilitySelector; in capi_fill_FACILITY_REQ()
216 cmsg->FacilityRequestParameter = FacilityRequestParameter; in capi_fill_FACILITY_REQ()
219 static inline void capi_fill_INFO_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_INFO_REQ() argument
227 capi_cmsg_header(cmsg, ApplId, 0x08, 0x80, Messagenumber, adr); in capi_fill_INFO_REQ()
228 cmsg->CalledPartyNumber = CalledPartyNumber; in capi_fill_INFO_REQ()
229 cmsg->BChannelinformation = BChannelinformation; in capi_fill_INFO_REQ()
230 cmsg->Keypadfacility = Keypadfacility; in capi_fill_INFO_REQ()
231 cmsg->Useruserdata = Useruserdata; in capi_fill_INFO_REQ()
232 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_INFO_REQ()
235 static inline void capi_fill_LISTEN_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_LISTEN_REQ() argument
243 capi_cmsg_header(cmsg, ApplId, 0x05, 0x80, Messagenumber, adr); in capi_fill_LISTEN_REQ()
244 cmsg->InfoMask = InfoMask; in capi_fill_LISTEN_REQ()
245 cmsg->CIPmask = CIPmask; in capi_fill_LISTEN_REQ()
246 cmsg->CIPmask2 = CIPmask2; in capi_fill_LISTEN_REQ()
247 cmsg->CallingPartyNumber = CallingPartyNumber; in capi_fill_LISTEN_REQ()
248 cmsg->CallingPartySubaddress = CallingPartySubaddress; in capi_fill_LISTEN_REQ()
251 static inline void capi_fill_ALERT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_ALERT_REQ() argument
258 capi_cmsg_header(cmsg, ApplId, 0x01, 0x80, Messagenumber, adr); in capi_fill_ALERT_REQ()
259 cmsg->BChannelinformation = BChannelinformation; in capi_fill_ALERT_REQ()
260 cmsg->Keypadfacility = Keypadfacility; in capi_fill_ALERT_REQ()
261 cmsg->Useruserdata = Useruserdata; in capi_fill_ALERT_REQ()
262 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_ALERT_REQ()
265 static inline void capi_fill_CONNECT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_REQ() argument
287 capi_cmsg_header(cmsg, ApplId, 0x02, 0x80, Messagenumber, adr); in capi_fill_CONNECT_REQ()
288 cmsg->CIPValue = CIPValue; in capi_fill_CONNECT_REQ()
289 cmsg->CalledPartyNumber = CalledPartyNumber; in capi_fill_CONNECT_REQ()
290 cmsg->CallingPartyNumber = CallingPartyNumber; in capi_fill_CONNECT_REQ()
291 cmsg->CalledPartySubaddress = CalledPartySubaddress; in capi_fill_CONNECT_REQ()
292 cmsg->CallingPartySubaddress = CallingPartySubaddress; in capi_fill_CONNECT_REQ()
293 cmsg->B1protocol = B1protocol; in capi_fill_CONNECT_REQ()
294 cmsg->B2protocol = B2protocol; in capi_fill_CONNECT_REQ()
295 cmsg->B3protocol = B3protocol; in capi_fill_CONNECT_REQ()
296 cmsg->B1configuration = B1configuration; in capi_fill_CONNECT_REQ()
297 cmsg->B2configuration = B2configuration; in capi_fill_CONNECT_REQ()
298 cmsg->B3configuration = B3configuration; in capi_fill_CONNECT_REQ()
299 cmsg->BC = BC; in capi_fill_CONNECT_REQ()
300 cmsg->LLC = LLC; in capi_fill_CONNECT_REQ()
301 cmsg->HLC = HLC; in capi_fill_CONNECT_REQ()
302 cmsg->BChannelinformation = BChannelinformation; in capi_fill_CONNECT_REQ()
303 cmsg->Keypadfacility = Keypadfacility; in capi_fill_CONNECT_REQ()
304 cmsg->Useruserdata = Useruserdata; in capi_fill_CONNECT_REQ()
305 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_CONNECT_REQ()
308 static inline void capi_fill_DATA_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DATA_B3_REQ() argument
316 capi_cmsg_header(cmsg, ApplId, 0x86, 0x80, Messagenumber, adr); in capi_fill_DATA_B3_REQ()
317 cmsg->Data = Data; in capi_fill_DATA_B3_REQ()
318 cmsg->DataLength = DataLength; in capi_fill_DATA_B3_REQ()
319 cmsg->DataHandle = DataHandle; in capi_fill_DATA_B3_REQ()
320 cmsg->Flags = Flags; in capi_fill_DATA_B3_REQ()
323 static inline void capi_fill_DISCONNECT_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_REQ() argument
331 capi_cmsg_header(cmsg, ApplId, 0x04, 0x80, Messagenumber, adr); in capi_fill_DISCONNECT_REQ()
332 cmsg->BChannelinformation = BChannelinformation; in capi_fill_DISCONNECT_REQ()
333 cmsg->Keypadfacility = Keypadfacility; in capi_fill_DISCONNECT_REQ()
334 cmsg->Useruserdata = Useruserdata; in capi_fill_DISCONNECT_REQ()
335 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_DISCONNECT_REQ()
338 static inline void capi_fill_DISCONNECT_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_B3_REQ() argument
343 capi_cmsg_header(cmsg, ApplId, 0x84, 0x80, Messagenumber, adr); in capi_fill_DISCONNECT_B3_REQ()
344 cmsg->NCPI = NCPI; in capi_fill_DISCONNECT_B3_REQ()
347 static inline void capi_fill_MANUFACTURER_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_MANUFACTURER_REQ() argument
355 capi_cmsg_header(cmsg, ApplId, 0xff, 0x80, Messagenumber, adr); in capi_fill_MANUFACTURER_REQ()
356 cmsg->ManuID = ManuID; in capi_fill_MANUFACTURER_REQ()
357 cmsg->Class = Class; in capi_fill_MANUFACTURER_REQ()
358 cmsg->Function = Function; in capi_fill_MANUFACTURER_REQ()
359 cmsg->ManuData = ManuData; in capi_fill_MANUFACTURER_REQ()
362 static inline void capi_fill_RESET_B3_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_RESET_B3_REQ() argument
367 capi_cmsg_header(cmsg, ApplId, 0x87, 0x80, Messagenumber, adr); in capi_fill_RESET_B3_REQ()
368 cmsg->NCPI = NCPI; in capi_fill_RESET_B3_REQ()
371 static inline void capi_fill_SELECT_B_PROTOCOL_REQ(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_SELECT_B_PROTOCOL_REQ() argument
381 capi_cmsg_header(cmsg, ApplId, 0x41, 0x80, Messagenumber, adr); in capi_fill_SELECT_B_PROTOCOL_REQ()
382 cmsg->B1protocol = B1protocol; in capi_fill_SELECT_B_PROTOCOL_REQ()
383 cmsg->B2protocol = B2protocol; in capi_fill_SELECT_B_PROTOCOL_REQ()
384 cmsg->B3protocol = B3protocol; in capi_fill_SELECT_B_PROTOCOL_REQ()
385 cmsg->B1configuration = B1configuration; in capi_fill_SELECT_B_PROTOCOL_REQ()
386 cmsg->B2configuration = B2configuration; in capi_fill_SELECT_B_PROTOCOL_REQ()
387 cmsg->B3configuration = B3configuration; in capi_fill_SELECT_B_PROTOCOL_REQ()
390 static inline void capi_fill_CONNECT_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_RESP() argument
407 capi_cmsg_header(cmsg, ApplId, 0x02, 0x83, Messagenumber, adr); in capi_fill_CONNECT_RESP()
408 cmsg->Reject = Reject; in capi_fill_CONNECT_RESP()
409 cmsg->B1protocol = B1protocol; in capi_fill_CONNECT_RESP()
410 cmsg->B2protocol = B2protocol; in capi_fill_CONNECT_RESP()
411 cmsg->B3protocol = B3protocol; in capi_fill_CONNECT_RESP()
412 cmsg->B1configuration = B1configuration; in capi_fill_CONNECT_RESP()
413 cmsg->B2configuration = B2configuration; in capi_fill_CONNECT_RESP()
414 cmsg->B3configuration = B3configuration; in capi_fill_CONNECT_RESP()
415 cmsg->ConnectedNumber = ConnectedNumber; in capi_fill_CONNECT_RESP()
416 cmsg->ConnectedSubaddress = ConnectedSubaddress; in capi_fill_CONNECT_RESP()
417 cmsg->LLC = LLC; in capi_fill_CONNECT_RESP()
418 cmsg->BChannelinformation = BChannelinformation; in capi_fill_CONNECT_RESP()
419 cmsg->Keypadfacility = Keypadfacility; in capi_fill_CONNECT_RESP()
420 cmsg->Useruserdata = Useruserdata; in capi_fill_CONNECT_RESP()
421 cmsg->Facilitydataarray = Facilitydataarray; in capi_fill_CONNECT_RESP()
424 static inline void capi_fill_CONNECT_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_ACTIVE_RESP() argument
428 capi_cmsg_header(cmsg, ApplId, 0x03, 0x83, Messagenumber, adr); in capi_fill_CONNECT_ACTIVE_RESP()
431 static inline void capi_fill_CONNECT_B3_ACTIVE_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_B3_ACTIVE_RESP() argument
435 capi_cmsg_header(cmsg, ApplId, 0x83, 0x83, Messagenumber, adr); in capi_fill_CONNECT_B3_ACTIVE_RESP()
438 static inline void capi_fill_CONNECT_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_CONNECT_B3_RESP() argument
443 capi_cmsg_header(cmsg, ApplId, 0x82, 0x83, Messagenumber, adr); in capi_fill_CONNECT_B3_RESP()
444 cmsg->Reject = Reject; in capi_fill_CONNECT_B3_RESP()
445 cmsg->NCPI = NCPI; in capi_fill_CONNECT_B3_RESP()
448 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
452 capi_cmsg_header(cmsg, ApplId, 0x88, 0x83, Messagenumber, adr); in capi_fill_CONNECT_B3_T90_ACTIVE_RESP()
455 static inline void capi_fill_DATA_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DATA_B3_RESP() argument
460 capi_cmsg_header(cmsg, ApplId, 0x86, 0x83, Messagenumber, adr); in capi_fill_DATA_B3_RESP()
461 cmsg->DataHandle = DataHandle; in capi_fill_DATA_B3_RESP()
464 static inline void capi_fill_DISCONNECT_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_B3_RESP() argument
468 capi_cmsg_header(cmsg, ApplId, 0x84, 0x83, Messagenumber, adr); in capi_fill_DISCONNECT_B3_RESP()
471 static inline void capi_fill_DISCONNECT_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_DISCONNECT_RESP() argument
475 capi_cmsg_header(cmsg, ApplId, 0x04, 0x83, Messagenumber, adr); in capi_fill_DISCONNECT_RESP()
478 static inline void capi_fill_FACILITY_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_FACILITY_RESP() argument
483 capi_cmsg_header(cmsg, ApplId, 0x80, 0x83, Messagenumber, adr); in capi_fill_FACILITY_RESP()
484 cmsg->FacilitySelector = FacilitySelector; in capi_fill_FACILITY_RESP()
487 static inline void capi_fill_INFO_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_INFO_RESP() argument
491 capi_cmsg_header(cmsg, ApplId, 0x08, 0x83, Messagenumber, adr); in capi_fill_INFO_RESP()
494 static inline void capi_fill_MANUFACTURER_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_MANUFACTURER_RESP() argument
502 capi_cmsg_header(cmsg, ApplId, 0xff, 0x83, Messagenumber, adr); in capi_fill_MANUFACTURER_RESP()
503 cmsg->ManuID = ManuID; in capi_fill_MANUFACTURER_RESP()
504 cmsg->Class = Class; in capi_fill_MANUFACTURER_RESP()
505 cmsg->Function = Function; in capi_fill_MANUFACTURER_RESP()
506 cmsg->ManuData = ManuData; in capi_fill_MANUFACTURER_RESP()
509 static inline void capi_fill_RESET_B3_RESP(_cmsg * cmsg, __u16 ApplId, __u16 Messagenumber, in capi_fill_RESET_B3_RESP() argument
513 capi_cmsg_header(cmsg, ApplId, 0x87, 0x83, Messagenumber, adr); in capi_fill_RESET_B3_RESP()