Lines Matching refs:cp

32 	struct bt_hci_cp_reject_conn_req *cp;  in reject_conn()  local
36 buf = bt_hci_cmd_create(BT_HCI_OP_REJECT_CONN_REQ, sizeof(*cp)); in reject_conn()
41 cp = net_buf_add(buf, sizeof(*cp)); in reject_conn()
42 bt_addr_copy(&cp->bdaddr, bdaddr); in reject_conn()
43 cp->reason = reason; in reject_conn()
55 struct bt_hci_cp_accept_conn_req *cp; in accept_conn() local
59 buf = bt_hci_cmd_create(BT_HCI_OP_ACCEPT_CONN_REQ, sizeof(*cp)); in accept_conn()
64 cp = net_buf_add(buf, sizeof(*cp)); in accept_conn()
65 bt_addr_copy(&cp->bdaddr, bdaddr); in accept_conn()
66 cp->role = BT_HCI_ROLE_PERIPHERAL; in accept_conn()
107 struct bt_hci_cp_read_encryption_key_size *cp; in br_sufficient_key_size() local
113 buf = bt_hci_cmd_create(BT_HCI_OP_READ_ENCRYPTION_KEY_SIZE, sizeof(*cp)); in br_sufficient_key_size()
119 cp = net_buf_add(buf, sizeof(*cp)); in br_sufficient_key_size()
120 cp->handle = sys_cpu_to_le16(conn->handle); in br_sufficient_key_size()
214 struct bt_hci_cp_read_remote_features *cp; in bt_hci_conn_complete() local
249 buf = bt_hci_cmd_create(BT_HCI_OP_READ_REMOTE_FEATURES, sizeof(*cp)); in bt_hci_conn_complete()
254 cp = net_buf_add(buf, sizeof(*cp)); in bt_hci_conn_complete()
255 cp->handle = evt->handle; in bt_hci_conn_complete()
262 struct bt_hci_cp_remote_name_request *cp; in request_name() local
265 buf = bt_hci_cmd_create(BT_HCI_OP_REMOTE_NAME_REQUEST, sizeof(*cp)); in request_name()
270 cp = net_buf_add(buf, sizeof(*cp)); in request_name()
272 bt_addr_copy(&cp->bdaddr, addr); in request_name()
273 cp->pscan_rep_mode = pscan; in request_name()
274 cp->reserved = 0x00; /* reserved, should be set to 0x00 */ in request_name()
275 cp->clock_offset = offset; in request_name()
598 struct bt_hci_cp_read_remote_ext_features *cp; in bt_hci_read_remote_features_complete() local
619 buf = bt_hci_cmd_create(BT_HCI_OP_READ_REMOTE_EXT_FEATURES, sizeof(*cp)); in bt_hci_read_remote_features_complete()
625 cp = net_buf_add(buf, sizeof(*cp)); in bt_hci_read_remote_features_complete()
626 cp->handle = evt->handle; in bt_hci_read_remote_features_complete()
627 cp->page = 0x01; in bt_hci_read_remote_features_complete()
688 struct bt_hci_cp_read_local_ext_features *cp; in read_ext_features() local
693 buf = bt_hci_cmd_create(BT_HCI_OP_READ_LOCAL_EXT_FEATURES, sizeof(*cp)); in read_ext_features()
698 cp = net_buf_add(buf, sizeof(*cp)); in read_ext_features()
699 cp->page = i; in read_ext_features()
895 struct bt_hci_op_inquiry *cp; in br_start_inquiry() local
898 buf = bt_hci_cmd_create(BT_HCI_OP_INQUIRY, sizeof(*cp)); in br_start_inquiry()
903 cp = net_buf_add(buf, sizeof(*cp)); in br_start_inquiry()
905 cp->length = param->length; in br_start_inquiry()
906 cp->num_rsp = 0xff; /* we limit discovery only by time */ in br_start_inquiry()
908 memcpy(cp->lap, iac, 3); in br_start_inquiry()
910 cp->lap[0] = 0x00; in br_start_inquiry()
978 struct bt_hci_cp_remote_name_cancel *cp; in bt_br_discovery_stop() local
987 buf = bt_hci_cmd_create(BT_HCI_OP_REMOTE_NAME_CANCEL, sizeof(*cp)); in bt_br_discovery_stop()
992 cp = net_buf_add(buf, sizeof(*cp)); in bt_br_discovery_stop()
993 bt_addr_copy(&cp->bdaddr, &discovery_results[i].addr); in bt_br_discovery_stop()