Home
last modified time | relevance | path

Searched refs:contr (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/isdn/capi/
Dkcapi.c81 static inline struct capi_ctr *get_capi_ctr_by_nr(u16 contr) in get_capi_ctr_by_nr() argument
83 if (contr < 1 || contr - 1 >= CAPI_MAXCONTR) in get_capi_ctr_by_nr()
86 return capi_controller[contr - 1]; in get_capi_ctr_by_nr()
167 static void notify_up(u32 contr) in notify_up() argument
176 printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr); in notify_up()
178 ctr = get_capi_ctr_by_nr(contr); in notify_up()
191 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr); in notify_up()
219 static void notify_down(u32 contr) in notify_down() argument
226 printk(KERN_DEBUG "kcapi: notify down contr %d\n", contr); in notify_down()
228 ctr = get_capi_ctr_by_nr(contr); in notify_down()
[all …]
Dkcapi.h62 u16 capi20_get_manufacturer(u32 contr, u8 buf[CAPI_MANUFACTURER_LEN]);
63 u16 capi20_get_version(u32 contr, struct capi_version *verp);
64 u16 capi20_get_serial(u32 contr, u8 serial[CAPI_SERIAL_LEN]);
65 u16 capi20_get_profile(u32 contr, struct capi_profile *profp);
Dcapi.c790 if (copy_from_user(&data.contr, argp, in capi_ioctl()
791 sizeof(data.contr))) in capi_ioctl()
793 cdev->errcode = capi20_get_version(data.contr, &data.version); in capi_ioctl()
802 if (copy_from_user(&data.contr, argp, in capi_ioctl()
803 sizeof(data.contr))) in capi_ioctl()
805 cdev->errcode = capi20_get_serial(data.contr, data.serial); in capi_ioctl()
814 if (copy_from_user(&data.contr, argp, in capi_ioctl()
815 sizeof(data.contr))) in capi_ioctl()
818 if (data.contr == 0) { in capi_ioctl()
819 cdev->errcode = capi20_get_profile(data.contr, &data.profile); in capi_ioctl()
[all …]
/linux-6.1.9/net/bluetooth/cmtp/
Dcapi.c322 __u32 contr; in cmtp_recv_capimsg() local
340 contr = CAPIMSG_CONTROL(skb->data); in cmtp_recv_capimsg()
352 if ((contr & 0x7f) == 0x01) { in cmtp_recv_capimsg()
353 contr = (contr & 0xffffff80) | session->num; in cmtp_recv_capimsg()
354 CAPIMSG_SETCONTROL(skb->data, contr); in cmtp_recv_capimsg()
477 __u32 contr; in cmtp_send_message() local
482 contr = CAPIMSG_CONTROL(skb->data); in cmtp_send_message()
492 if ((contr & 0x7f) == session->num) { in cmtp_send_message()
493 contr = (contr & 0xffffff80) | 0x01; in cmtp_send_message()
494 CAPIMSG_SETCONTROL(skb->data, contr); in cmtp_send_message()
/linux-6.1.9/include/linux/isdn/
Dcapiutil.h57 #define CAPIMSG_SETCONTROL(m, contr) capimsg_setu32(m, 8, contr) argument
/linux-6.1.9/include/uapi/linux/
Dkernelcapi.h20 int contr; member
Dcapi.h110 __u32 contr; member
/linux-6.1.9/Documentation/isdn/
Dinterface_capi.rst298 CAPIMSG_CONTROL(m) CAPIMSG_SETCONTROL(m, contr) Controller/PLCI/NCCI