Lines Matching defs:smp
219 #define DISPLAY_FIXED(smp) (IS_ENABLED(CONFIG_BT_FIXED_PASSKEY) && \ argument
314 static const struct bt_conn_auth_cb *latch_auth_cb(struct bt_smp *smp) in latch_auth_cb()
322 static bool latch_bondable(struct bt_smp *smp) in latch_bondable()
329 static uint8_t get_io_capa(struct bt_smp *smp) in get_io_capa()
411 static uint8_t get_pair_method(struct bt_smp *smp, uint8_t remote_io) in get_pair_method()
564 static struct net_buf *smp_create_pdu(struct bt_smp *smp, uint8_t op, size_t len) in smp_create_pdu()
595 static uint8_t get_encryption_key_size(struct bt_smp *smp) in get_encryption_key_size()
613 static bool update_keys_check(struct bt_smp *smp, struct bt_keys *keys) in update_keys_check()
658 static bool update_debug_keys_check(struct bt_smp *smp) in update_debug_keys_check()
692 struct bt_smp *smp; in smp_check_complete() local
710 struct bt_smp_br *smp; in smp_check_complete() local
746 static void sc_derive_link_key(struct bt_smp *smp) in sc_derive_link_key()
801 static void smp_br_reset(struct bt_smp_br *smp) in smp_br_reset()
819 static void smp_pairing_br_complete(struct bt_smp_br *smp, uint8_t status) in smp_pairing_br_complete()
871 struct bt_smp_br *smp = CONTAINER_OF(dwork, struct bt_smp_br, work); in smp_br_timeout() local
879 static void smp_br_send(struct bt_smp_br *smp, struct net_buf *buf, in smp_br_send()
898 struct bt_smp_br *smp = CONTAINER_OF(chan, struct bt_smp_br, chan.chan); in bt_smp_br_connected() local
916 struct bt_smp_br *smp = CONTAINER_OF(chan, struct bt_smp_br, chan.chan); in bt_smp_br_disconnected() local
929 static void smp_br_init(struct bt_smp_br *smp) in smp_br_init()
939 static void smp_br_derive_ltk(struct bt_smp_br *smp) in smp_br_derive_ltk()
1011 static struct net_buf *smp_br_create_pdu(struct bt_smp_br *smp, uint8_t op, in smp_br_create_pdu()
1043 static void smp_br_distribute_keys(struct bt_smp_br *smp) in smp_br_distribute_keys()
1128 static bool smp_br_pairing_allowed(struct bt_smp_br *smp) in smp_br_pairing_allowed()
1143 static uint8_t smp_br_pairing_req(struct bt_smp_br *smp, struct net_buf *buf) in smp_br_pairing_req()
1243 static uint8_t smp_br_pairing_rsp(struct bt_smp_br *smp, struct net_buf *buf) in smp_br_pairing_rsp()
1309 static uint8_t smp_br_pairing_failed(struct bt_smp_br *smp, struct net_buf *buf) in smp_br_pairing_failed()
1322 static uint8_t smp_br_ident_info(struct bt_smp_br *smp, struct net_buf *buf) in smp_br_ident_info()
1353 static uint8_t smp_br_ident_addr_info(struct bt_smp_br *smp, in smp_br_ident_addr_info()
1394 static uint8_t smp_br_signing_info(struct bt_smp_br *smp, struct net_buf *buf) in smp_br_signing_info()
1432 static uint8_t smp_br_signing_info(struct bt_smp_br *smp, struct net_buf *buf) in smp_br_signing_info()
1458 static int smp_br_error(struct bt_smp_br *smp, uint8_t reason) in smp_br_error()
1488 struct bt_smp_br *smp = CONTAINER_OF(chan, struct bt_smp_br, chan.chan); in bt_smp_br_recv() local
1564 struct bt_smp_br *smp = &bt_smp_br_pool[i]; in bt_smp_br_accept() local
1603 struct bt_smp_br *smp; in bt_smp_br_send_pairing_req() local
1680 static void smp_reset(struct bt_smp *smp) in smp_reset()
1732 static void smp_pairing_complete(struct bt_smp *smp, uint8_t status) in smp_pairing_complete()
1821 struct bt_smp *smp = CONTAINER_OF(dwork, struct bt_smp, work); in smp_timeout() local
1833 static void smp_send(struct bt_smp *smp, struct net_buf *buf, in smp_send()
1852 static int smp_error(struct bt_smp *smp, uint8_t reason) in smp_error()
1900 static uint8_t smp_send_pairing_random(struct bt_smp *smp) in smp_send_pairing_random()
1965 static uint8_t smp_send_pairing_confirm(struct bt_smp *smp) in smp_send_pairing_confirm()
2020 static void legacy_distribute_keys(struct bt_smp *smp) in legacy_distribute_keys()
2086 static uint8_t bt_smp_distribute_keys(struct bt_smp *smp) in bt_smp_distribute_keys()
2167 static uint8_t send_pairing_rsp(struct bt_smp *smp) in send_pairing_rsp()
2186 static uint8_t smp_pairing_accept_query(struct bt_smp *smp, struct bt_smp_pairing *pairing) in smp_pairing_accept_query()
2227 static uint8_t legacy_get_pair_method(struct bt_smp *smp, uint8_t remote_io) in legacy_get_pair_method()
2265 static uint8_t legacy_request_tk(struct bt_smp *smp) in legacy_request_tk()
2336 static uint8_t legacy_send_pairing_confirm(struct bt_smp *smp) in legacy_send_pairing_confirm()
2363 static uint8_t legacy_pairing_req(struct bt_smp *smp) in legacy_pairing_req()
2390 static uint8_t legacy_pairing_random(struct bt_smp *smp) in legacy_pairing_random()
2467 static uint8_t legacy_pairing_confirm(struct bt_smp *smp) in legacy_pairing_confirm()
2490 static void legacy_user_tk_entry(struct bt_smp *smp) in legacy_user_tk_entry()
2513 static void legacy_passkey_entry(struct bt_smp *smp, unsigned int passkey) in legacy_passkey_entry()
2521 static uint8_t smp_encrypt_info(struct bt_smp *smp, struct net_buf *buf) in smp_encrypt_info()
2544 static uint8_t smp_central_ident(struct bt_smp *smp, struct net_buf *buf) in smp_central_ident()
2590 static uint8_t legacy_pairing_rsp(struct bt_smp *smp) in legacy_pairing_rsp()
2623 static uint8_t smp_encrypt_info(struct bt_smp *smp, struct net_buf *buf) in smp_encrypt_info()
2628 static uint8_t smp_central_ident(struct bt_smp *smp, struct net_buf *buf) in smp_central_ident()
2634 static int smp_init(struct bt_smp *smp) in smp_init()
2677 static uint8_t get_auth(struct bt_smp *smp, uint8_t auth) in get_auth()
2714 static uint8_t remote_sec_level_reachable(struct bt_smp *smp) in remote_sec_level_reachable()
2750 static bool sec_level_reachable(struct bt_smp *smp) in sec_level_reachable()
2784 struct bt_smp *smp; in bt_smp_request_ltk() local
2870 struct bt_smp *smp; in smp_send_security_req() local
2933 static uint8_t smp_pairing_req(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_req()
3075 static uint8_t smp_pairing_req(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_req()
3081 static uint8_t sc_send_public_key(struct bt_smp *smp) in sc_send_public_key()
3108 struct bt_smp *smp; in smp_send_pairing_req() local
3205 static uint8_t smp_pairing_rsp(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_rsp()
3319 static uint8_t smp_pairing_rsp(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_rsp()
3325 static uint8_t smp_pairing_confirm(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_confirm()
3371 static uint8_t sc_smp_send_dhkey_check(struct bt_smp *smp, const uint8_t *e) in sc_smp_send_dhkey_check()
3392 static uint8_t compute_and_send_central_dhcheck(struct bt_smp *smp) in compute_and_send_central_dhcheck()
3436 static uint8_t compute_and_check_and_send_periph_dhcheck(struct bt_smp *smp) in compute_and_check_and_send_periph_dhcheck()
3509 static uint8_t smp_dhkey_generate(struct bt_smp *smp) in smp_dhkey_generate()
3525 static uint8_t smp_dhkey_ready(struct bt_smp *smp, const uint8_t *dhkey) in smp_dhkey_ready()
3578 struct bt_smp *smp = smp_find(SMP_FLAG_DHKEY_GEN); in bt_smp_dhkey_ready() local
3599 static uint8_t sc_smp_check_confirm(struct bt_smp *smp) in sc_smp_check_confirm()
3643 static bool le_sc_oob_data_req_check(struct bt_smp *smp) in le_sc_oob_data_req_check()
3650 static bool le_sc_oob_data_rsp_check(struct bt_smp *smp) in le_sc_oob_data_rsp_check()
3657 __maybe_unused static void le_sc_oob_config_set(struct bt_smp *smp, in le_sc_oob_config_set()
3688 static uint8_t smp_pairing_random(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_random()
3833 static uint8_t smp_pairing_failed(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_failed()
3854 static uint8_t smp_ident_info(struct bt_smp *smp, struct net_buf *buf) in smp_ident_info()
3877 static uint8_t smp_id_add_replace(struct bt_smp *smp, struct bt_keys *new_bond) in smp_id_add_replace()
3931 static uint8_t smp_ident_addr_info(struct bt_smp *smp, struct net_buf *buf) in smp_ident_addr_info()
4033 static uint8_t smp_signing_info(struct bt_smp *smp, struct net_buf *buf) in smp_signing_info()
4073 static uint8_t smp_signing_info(struct bt_smp *smp, struct net_buf *buf) in smp_signing_info()
4080 static uint8_t smp_security_request(struct bt_smp *smp, struct net_buf *buf) in smp_security_request()
4181 static uint8_t smp_security_request(struct bt_smp *smp, struct net_buf *buf) in smp_security_request()
4187 __maybe_unused static uint8_t generate_dhkey(struct bt_smp *smp) in generate_dhkey()
4201 __maybe_unused static uint8_t display_passkey(struct bt_smp *smp) in display_passkey()
4230 static uint8_t smp_public_key_periph(struct bt_smp *smp) in smp_public_key_periph()
4287 static uint8_t smp_public_key(struct bt_smp *smp, struct net_buf *buf) in smp_public_key()
4292 static uint8_t smp_public_key(struct bt_smp *smp, struct net_buf *buf) in smp_public_key()
4409 static uint8_t smp_dhkey_check(struct bt_smp *smp, struct net_buf *buf) in smp_dhkey_check()
4502 static uint8_t smp_keypress_notif(struct bt_smp *smp, struct net_buf *buf) in smp_keypress_notif()
4534 static uint8_t smp_keypress_notif(struct bt_smp *smp, struct net_buf *buf) in smp_keypress_notif()
4568 static bool is_in_pairing_procedure(struct bt_smp *smp) in is_in_pairing_procedure()
4575 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_recv() local
4652 struct bt_smp *smp = &bt_smp_pool[i]; in bt_smp_pkey_ready() local
4682 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_connected() local
4696 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_disconnected() local
4731 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_encrypt_change() local
5448 struct bt_smp *smp; in bt_conn_set_bondable() local
5475 struct bt_smp *smp; in bt_smp_auth_cb_overlay() local
5490 static int smp_send_keypress_notif(struct bt_smp *smp, uint8_t type) in smp_send_keypress_notif()
5512 struct bt_smp *smp; in bt_smp_auth_keypress_notify() local
5538 struct bt_smp *smp; in bt_smp_auth_passkey_entry() local
5585 struct bt_smp *smp; in bt_smp_auth_passkey_confirm() local
5635 struct bt_smp *smp; in bt_smp_le_oob_set_tk() local
5702 static bool le_sc_oob_data_check(struct bt_smp *smp, bool oobd_local_present, in le_sc_oob_data_check()
5724 static int le_sc_oob_pairing_continue(struct bt_smp *smp) in le_sc_oob_pairing_continue()
5758 struct bt_smp *smp; in bt_smp_le_oob_set_sc_data() local
5784 struct bt_smp *smp; in bt_smp_le_oob_get_sc_data() local
5809 struct bt_smp *smp; in bt_smp_auth_cancel() local
5842 struct bt_smp *smp; in bt_smp_auth_pairing_confirm() local
5917 struct bt_smp *smp; in bt_smp_start_security() local
5964 struct bt_smp *smp; in bt_smp_update_keys() local
6060 struct bt_smp *smp = &bt_smp_pool[i]; in bt_smp_accept() local