Lines Matching refs:req
1692 struct bt_hci_cp_le_remove_cig *req; in hci_le_remove_cig() local
1700 req = net_buf_add(buf, sizeof(*req)); in hci_le_remove_cig()
1702 memset(req, 0, sizeof(*req)); in hci_le_remove_cig()
1704 req->cig_id = cig_id; in hci_le_remove_cig()
1712 struct bt_hci_cp_le_set_cig_params *req; in hci_le_set_cig_params() local
1723 req = net_buf_add(buf, sizeof(*req)); in hci_le_set_cig_params()
1725 memset(req, 0, sizeof(*req)); in hci_le_set_cig_params()
1727 req->cig_id = cig->id; in hci_le_set_cig_params()
1728 req->c_latency = sys_cpu_to_le16(param->c_to_p_latency); in hci_le_set_cig_params()
1729 req->p_latency = sys_cpu_to_le16(param->p_to_c_latency); in hci_le_set_cig_params()
1730 sys_put_le24(param->c_to_p_interval, req->c_interval); in hci_le_set_cig_params()
1731 sys_put_le24(param->p_to_c_interval, req->p_interval); in hci_le_set_cig_params()
1733 req->sca = param->sca; in hci_le_set_cig_params()
1734 req->packing = param->packing; in hci_le_set_cig_params()
1735 req->framing = param->framing; in hci_le_set_cig_params()
1736 req->num_cis = param->num_cis; in hci_le_set_cig_params()
1800 struct bt_hci_cp_le_set_cig_params_test *req; in hci_le_set_cig_test_params() local
1811 req = net_buf_add(buf, sizeof(*req)); in hci_le_set_cig_test_params()
1813 memset(req, 0, sizeof(*req)); in hci_le_set_cig_test_params()
1815 req->cig_id = cig->id; in hci_le_set_cig_test_params()
1816 sys_put_le24(param->c_to_p_interval, req->c_interval); in hci_le_set_cig_test_params()
1817 sys_put_le24(param->p_to_c_interval, req->p_interval); in hci_le_set_cig_test_params()
1819 req->c_ft = param->c_to_p_ft; in hci_le_set_cig_test_params()
1820 req->p_ft = param->p_to_c_ft; in hci_le_set_cig_test_params()
1821 req->iso_interval = sys_cpu_to_le16(param->iso_interval); in hci_le_set_cig_test_params()
1822 req->sca = param->sca; in hci_le_set_cig_test_params()
1823 req->packing = param->packing; in hci_le_set_cig_test_params()
1824 req->framing = param->framing; in hci_le_set_cig_test_params()
1825 req->num_cis = param->num_cis; in hci_le_set_cig_test_params()
2451 struct bt_hci_cp_le_create_cis *req; in hci_le_create_cis() local
2459 req = net_buf_add(buf, sizeof(*req)); in hci_le_create_cis()
2461 memset(req, 0, sizeof(*req)); in hci_le_create_cis()
2477 req->num_cis++; in hci_le_create_cis()
2483 if (req->num_cis == 0) { in hci_le_create_cis()
2795 struct bt_hci_cp_le_create_big *req; in hci_le_create_big() local
2813 req = net_buf_add(buf, sizeof(*req)); in hci_le_create_big()
2814 req->big_handle = big->handle; in hci_le_create_big()
2815 req->adv_handle = padv->handle; in hci_le_create_big()
2816 req->num_bis = big->num_bis; in hci_le_create_big()
2817 sys_put_le24(param->interval, req->sdu_interval); in hci_le_create_big()
2818 req->max_sdu = sys_cpu_to_le16(qos->sdu); in hci_le_create_big()
2819 req->max_latency = sys_cpu_to_le16(param->latency); in hci_le_create_big()
2820 req->rtn = qos->rtn; in hci_le_create_big()
2821 req->phy = qos->phy; in hci_le_create_big()
2822 req->packing = param->packing; in hci_le_create_big()
2823 req->framing = param->framing; in hci_le_create_big()
2824 req->encryption = param->encryption; in hci_le_create_big()
2825 if (req->encryption) { in hci_le_create_big()
2826 memcpy(req->bcode, param->bcode, sizeof(req->bcode)); in hci_le_create_big()
2828 memset(req->bcode, 0, sizeof(req->bcode)); in hci_le_create_big()
2854 struct bt_hci_cp_le_create_big_test *req; in hci_le_create_big_test() local
2873 req = net_buf_add(buf, sizeof(*req)); in hci_le_create_big_test()
2874 req->big_handle = big->handle; in hci_le_create_big_test()
2875 req->adv_handle = padv->handle; in hci_le_create_big_test()
2876 req->num_bis = big->num_bis; in hci_le_create_big_test()
2877 sys_put_le24(param->interval, req->sdu_interval); in hci_le_create_big_test()
2878 req->iso_interval = sys_cpu_to_le16(param->iso_interval); in hci_le_create_big_test()
2879 req->nse = qos->num_subevents; in hci_le_create_big_test()
2880 req->max_sdu = sys_cpu_to_le16(qos->tx->sdu); in hci_le_create_big_test()
2881 req->max_pdu = sys_cpu_to_le16(qos->tx->max_pdu); in hci_le_create_big_test()
2882 req->phy = qos->tx->phy; in hci_le_create_big_test()
2883 req->packing = param->packing; in hci_le_create_big_test()
2884 req->framing = param->framing; in hci_le_create_big_test()
2885 req->bn = qos->tx->burst_number; in hci_le_create_big_test()
2886 req->irc = param->irc; in hci_le_create_big_test()
2887 req->pto = param->pto; in hci_le_create_big_test()
2888 req->encryption = param->encryption; in hci_le_create_big_test()
2889 if (req->encryption) { in hci_le_create_big_test()
2890 memcpy(req->bcode, param->bcode, sizeof(req->bcode)); in hci_le_create_big_test()
2892 memset(req->bcode, 0, sizeof(req->bcode)); in hci_le_create_big_test()
2898 req->big_handle, req->adv_handle, req->num_bis, param->interval, in hci_le_create_big_test()
2899 param->iso_interval, req->nse, req->max_sdu, req->max_pdu, req->phy, req->packing, in hci_le_create_big_test()
2900 req->framing, req->bn, req->irc, req->pto, req->encryption); in hci_le_create_big_test()
3225 struct bt_hci_cp_le_terminate_big *req; in hci_le_terminate_big() local
3233 req = net_buf_add(buf, sizeof(*req)); in hci_le_terminate_big()
3234 req->big_handle = big->handle; in hci_le_terminate_big()
3235 req->reason = BT_HCI_ERR_REMOTE_USER_TERM_CONN; in hci_le_terminate_big()
3242 struct bt_hci_cp_le_big_terminate_sync *req; in hci_le_big_sync_term() local
3253 req = net_buf_add(buf, sizeof(*req)); in hci_le_big_sync_term()
3254 req->big_handle = big->handle; in hci_le_big_sync_term()
3419 struct bt_hci_cp_le_big_create_sync *req; in hci_le_big_create_sync() local
3430 req = net_buf_add(buf, sizeof(*req) + big->num_bis); in hci_le_big_create_sync()
3431 req->big_handle = big->handle; in hci_le_big_create_sync()
3432 req->sync_handle = sys_cpu_to_le16(sync->handle); in hci_le_big_create_sync()
3433 req->encryption = param->encryption; in hci_le_big_create_sync()
3434 if (req->encryption) { in hci_le_big_create_sync()
3435 memcpy(req->bcode, param->bcode, sizeof(req->bcode)); in hci_le_big_create_sync()
3437 memset(req->bcode, 0, sizeof(req->bcode)); in hci_le_big_create_sync()
3439 req->mse = param->mse; in hci_le_big_create_sync()
3440 req->sync_timeout = sys_cpu_to_le16(param->sync_timeout); in hci_le_big_create_sync()
3441 req->num_bis = big->num_bis; in hci_le_big_create_sync()
3449 req->bis[bit_idx++] = i; in hci_le_big_create_sync()