• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/net/bluetooth/

Lines Matching defs:conn

336 void hci_acl_connect(struct hci_conn *conn);
337 void hci_acl_disconn(struct hci_conn *conn, __u8 reason);
338 void hci_add_sco(struct hci_conn *conn, __u16 handle);
339 void hci_setup_sync(struct hci_conn *conn, __u16 handle);
340 void hci_sco_setup(struct hci_conn *conn, __u8 status);
343 int hci_conn_del(struct hci_conn *conn);
348 int hci_conn_check_link_mode(struct hci_conn *conn);
349 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type);
350 int hci_conn_change_link_key(struct hci_conn *conn);
351 int hci_conn_switch_role(struct hci_conn *conn, __u8 role);
353 void hci_conn_enter_active_mode(struct hci_conn *conn);
354 void hci_conn_enter_sniff_mode(struct hci_conn *conn);
356 void hci_conn_hold_device(struct hci_conn *conn);
357 void hci_conn_put_device(struct hci_conn *conn);
359 static inline void hci_conn_hold(struct hci_conn *conn)
361 atomic_inc(&conn->refcnt);
362 del_timer(&conn->disc_timer);
365 static inline void hci_conn_put(struct hci_conn *conn)
367 if (atomic_dec_and_test(&conn->refcnt)) {
369 if (conn->type == ACL_LINK) {
370 del_timer(&conn->idle_timer);
371 if (conn->state == BT_CONNECTED) {
372 timeo = msecs_to_jiffies(conn->disc_timeout);
373 if (!conn->out)
379 mod_timer(&conn->disc_timer, jiffies + timeo);
446 void hci_conn_init_sysfs(struct hci_conn *conn);
447 void hci_conn_add_sysfs(struct hci_conn *conn);
448 void hci_conn_del_sysfs(struct hci_conn *conn);
469 int (*connect_cfm) (struct hci_conn *conn, __u8 status);
470 int (*disconn_ind) (struct hci_conn *conn);
471 int (*disconn_cfm) (struct hci_conn *conn, __u8 reason);
472 int (*recv_acldata) (struct hci_conn *conn, struct sk_buff *skb, __u16 flags);
473 int (*recv_scodata) (struct hci_conn *conn, struct sk_buff *skb);
474 int (*security_cfm) (struct hci_conn *conn, __u8 status, __u8 encrypt);
493 static inline void hci_proto_connect_cfm(struct hci_conn *conn, __u8 status)
499 hp->connect_cfm(conn, status);
503 hp->connect_cfm(conn, status);
506 static inline int hci_proto_disconn_ind(struct hci_conn *conn)
513 reason = hp->disconn_ind(conn);
517 reason = hp->disconn_ind(conn);
522 static inline void hci_proto_disconn_cfm(struct hci_conn *conn, __u8 reason)
528 hp->disconn_cfm(conn, reason);
532 hp->disconn_cfm(conn, reason);
535 static inline void hci_proto_auth_cfm(struct hci_conn *conn, __u8 status)
540 if (test_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend))
543 encrypt = (conn->link_mode & HCI_LM_ENCRYPT) ? 0x01 : 0x00;
547 hp->security_cfm(conn, status, encrypt);
551 hp->security_cfm(conn, status, encrypt);
554 static inline void hci_proto_encrypt_cfm(struct hci_conn *conn, __u8 status, __u8 encrypt)
560 hp->security_cfm(conn, status, encrypt);
564 hp->security_cfm(conn, status, encrypt);
576 void (*security_cfm) (struct hci_conn *conn, __u8 status, __u8 encrypt);
577 void (*key_change_cfm) (struct hci_conn *conn, __u8 status);
578 void (*role_switch_cfm) (struct hci_conn *conn, __u8 status, __u8 role);
581 static inline void hci_auth_cfm(struct hci_conn *conn, __u8 status)
586 hci_proto_auth_cfm(conn, status);
588 if (test_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend))
591 encrypt = (conn->link_mode & HCI_LM_ENCRYPT) ? 0x01 : 0x00;
597 cb->security_cfm(conn, status, encrypt);
602 static inline void hci_encrypt_cfm(struct hci_conn *conn, __u8 status, __u8 encrypt)
606 if (conn->sec_level == BT_SECURITY_SDP)
607 conn->sec_level = BT_SECURITY_LOW;
609 hci_proto_encrypt_cfm(conn, status, encrypt);
615 cb->security_cfm(conn, status, encrypt);
620 static inline void hci_key_change_cfm(struct hci_conn *conn, __u8 status)
628 cb->key_change_cfm(conn, status);
633 static inline void hci_role_switch_cfm(struct hci_conn *conn, __u8 status, __u8 role)
641 cb->role_switch_cfm(conn, status, role);
653 void hci_send_acl(struct hci_conn *conn, struct sk_buff *skb, __u16 flags);
654 void hci_send_sco(struct hci_conn *conn, struct sk_buff *skb);