Lines Matching refs:cp
45 struct bt_hci_cp_pin_code_neg_reply *cp; in pin_code_neg_reply() local
50 buf = bt_hci_cmd_create(BT_HCI_OP_PIN_CODE_NEG_REPLY, sizeof(*cp)); in pin_code_neg_reply()
55 cp = net_buf_add(buf, sizeof(*cp)); in pin_code_neg_reply()
56 bt_addr_copy(&cp->bdaddr, bdaddr); in pin_code_neg_reply()
63 struct bt_hci_cp_pin_code_reply *cp; in pin_code_reply() local
68 buf = bt_hci_cmd_create(BT_HCI_OP_PIN_CODE_REPLY, sizeof(*cp)); in pin_code_reply()
73 cp = net_buf_add(buf, sizeof(*cp)); in pin_code_reply()
75 bt_addr_copy(&cp->bdaddr, &conn->br.dst); in pin_code_reply()
76 cp->pin_len = len; in pin_code_reply()
77 strncpy((char *)cp->pin_code, pin, sizeof(cp->pin_code)); in pin_code_reply()
179 struct bt_hci_cp_user_confirm_reply *cp; in ssp_confirm_reply() local
184 buf = bt_hci_cmd_create(BT_HCI_OP_USER_CONFIRM_REPLY, sizeof(*cp)); in ssp_confirm_reply()
189 cp = net_buf_add(buf, sizeof(*cp)); in ssp_confirm_reply()
190 bt_addr_copy(&cp->bdaddr, &conn->br.dst); in ssp_confirm_reply()
197 struct bt_hci_cp_user_confirm_reply *cp; in ssp_confirm_neg_reply() local
202 buf = bt_hci_cmd_create(BT_HCI_OP_USER_CONFIRM_NEG_REPLY, sizeof(*cp)); in ssp_confirm_neg_reply()
207 cp = net_buf_add(buf, sizeof(*cp)); in ssp_confirm_neg_reply()
208 bt_addr_copy(&cp->bdaddr, &conn->br.dst); in ssp_confirm_neg_reply()
296 struct bt_hci_cp_user_passkey_reply *cp; in ssp_passkey_reply() local
301 buf = bt_hci_cmd_create(BT_HCI_OP_USER_PASSKEY_REPLY, sizeof(*cp)); in ssp_passkey_reply()
306 cp = net_buf_add(buf, sizeof(*cp)); in ssp_passkey_reply()
307 bt_addr_copy(&cp->bdaddr, &conn->br.dst); in ssp_passkey_reply()
308 cp->passkey = sys_cpu_to_le32(passkey); in ssp_passkey_reply()
315 struct bt_hci_cp_user_passkey_neg_reply *cp; in ssp_passkey_neg_reply() local
320 buf = bt_hci_cmd_create(BT_HCI_OP_USER_PASSKEY_NEG_REPLY, sizeof(*cp)); in ssp_passkey_neg_reply()
325 cp = net_buf_add(buf, sizeof(*cp)); in ssp_passkey_neg_reply()
326 bt_addr_copy(&cp->bdaddr, &conn->br.dst); in ssp_passkey_neg_reply()
522 struct bt_hci_cp_link_key_neg_reply *cp; in link_key_neg_reply() local
527 buf = bt_hci_cmd_create(BT_HCI_OP_LINK_KEY_NEG_REPLY, sizeof(*cp)); in link_key_neg_reply()
533 cp = net_buf_add(buf, sizeof(*cp)); in link_key_neg_reply()
534 bt_addr_copy(&cp->bdaddr, bdaddr); in link_key_neg_reply()
540 struct bt_hci_cp_link_key_reply *cp; in link_key_reply() local
545 buf = bt_hci_cmd_create(BT_HCI_OP_LINK_KEY_REPLY, sizeof(*cp)); in link_key_reply()
551 cp = net_buf_add(buf, sizeof(*cp)); in link_key_reply()
552 bt_addr_copy(&cp->bdaddr, bdaddr); in link_key_reply()
553 memcpy(cp->link_key, lk, 16); in link_key_reply()
598 struct bt_hci_cp_io_capability_neg_reply *cp; in io_capa_neg_reply() local
602 sizeof(*cp)); in io_capa_neg_reply()
608 cp = net_buf_add(resp_buf, sizeof(*cp)); in io_capa_neg_reply()
609 bt_addr_copy(&cp->bdaddr, bdaddr); in io_capa_neg_reply()
610 cp->reason = reason; in io_capa_neg_reply()
659 struct bt_hci_cp_io_capability_reply *cp; in bt_hci_io_capa_req() local
684 sizeof(*cp)); in bt_hci_io_capa_req()
725 cp = net_buf_add(resp_buf, sizeof(*cp)); in bt_hci_io_capa_req()
726 bt_addr_copy(&cp->bdaddr, &evt->bdaddr); in bt_hci_io_capa_req()
727 cp->capability = get_io_capa(); in bt_hci_io_capa_req()
728 cp->authentication = auth; in bt_hci_io_capa_req()
729 cp->oob_data = 0U; in bt_hci_io_capa_req()