Home
last modified time | relevance | path

Searched refs:sys_cpu_to_le16 (Results 1 – 25 of 132) sorted by relevance

123456

/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/hci_test_app/src/
Dmain.c80 uint16_t response = sys_cpu_to_le16(waiting_response); in error_response()
82 uint16_t size = sys_cpu_to_le16(sizeof(le_error)); in error_response()
103 hdr->opcode = sys_cpu_to_le16(opcode); in hci_cmd_create()
181 uint16_t response = sys_cpu_to_le16(CMD_ECHO_RSP); in echo()
182 uint16_t le_size = sys_cpu_to_le16(size); in echo()
215 uint16_t response = sys_cpu_to_le16(waiting_response); in command_complete()
222 size = sys_cpu_to_le16(buf->len); in command_complete()
246 uint16_t response = sys_cpu_to_le16(waiting_response); in command_status()
254 size = sys_cpu_to_le16(buf->len) + 1; in command_status()
378 uint16_t response = sys_cpu_to_le16(CMD_FLUSH_EVENTS_RSP); in flush_events()
[all …]
/Zephyr-latest/include/zephyr/net/
Dieee802154_ie.h188 .csl_phase = sys_cpu_to_le16(_csl_phase), \
189 .csl_period = sys_cpu_to_le16(_csl_period), \
195 .csl_phase = sys_cpu_to_le16(_csl_phase), \
196 .csl_period = sys_cpu_to_le16(_csl_period), \
197 .csl_rendezvous_time = sys_cpu_to_le16(_csl_rendezvous_time), \
206 .time_sync_info = sys_cpu_to_le16( \
/Zephyr-latest/subsys/usb/device_next/class/
Dloopback.c184 .wMaxPacketSize = sys_cpu_to_le16(64U), \
194 .wMaxPacketSize = sys_cpu_to_le16(64U), \
204 .wMaxPacketSize = sys_cpu_to_le16(512), \
214 .wMaxPacketSize = sys_cpu_to_le16(512), \
237 .wMaxPacketSize = sys_cpu_to_le16(64), \
247 .wMaxPacketSize = sys_cpu_to_le16(64), \
268 .wMaxPacketSize = sys_cpu_to_le16(0), \
277 .wMaxPacketSize = sys_cpu_to_le16(0), \
298 .wMaxPacketSize = sys_cpu_to_le16(LB_ISO_EP_MPS), \
307 .wMaxPacketSize = sys_cpu_to_le16(LB_ISO_EP_MPS), \
Dusbd_cdc_ncm.c714 .wValue = sys_cpu_to_le16((uint16_t)connected), in cdc_ncm_send_connected()
715 .wIndex = sys_cpu_to_le16(cdc_ncm_get_ctrl_if(data)), in cdc_ncm_send_connected()
745 .wLength = sys_cpu_to_le16(8), in cdc_ncm_send_speed_change()
746 .wIndex = sys_cpu_to_le16(cdc_ncm_get_ctrl_if(data)), in cdc_ncm_send_speed_change()
931 .wLength = sys_cpu_to_le16(sizeof(struct ntb_parameters)), in usbd_cdc_ncm_cth()
932 .bmNtbFormatsSupported = sys_cpu_to_le16(NTB_FORMAT_SUPPORTED), in usbd_cdc_ncm_cth()
934 .wNdbInDivisor = sys_cpu_to_le16(4), in usbd_cdc_ncm_cth()
935 .wNdbInPayloadRemainder = sys_cpu_to_le16(0), in usbd_cdc_ncm_cth()
936 .wNdbInAlignment = sys_cpu_to_le16(CDC_NCM_ALIGNMENT), in usbd_cdc_ncm_cth()
937 .wReserved = sys_cpu_to_le16(0), in usbd_cdc_ncm_cth()
[all …]
Dusbd_hid_macros.h141 .bcdHID = sys_cpu_to_le16(USB_HID_VERSION), \
156 (sys_cpu_to_le16(USB_TPL_TO_MPS(DT_INST_PROP(n, out_report_size)))), \
157 (sys_cpu_to_le16(MIN(DT_INST_PROP(n, out_report_size), 64U))))
165 (sys_cpu_to_le16(USB_TPL_TO_MPS(DT_INST_PROP(n, in_report_size)))), \
166 (sys_cpu_to_le16(MIN(DT_INST_PROP(n, in_report_size), 64U))))
Dbt_hci.c506 .wMaxPacketSize = sys_cpu_to_le16(BT_HCI_EP_MPS_EVENTS), \
515 .wMaxPacketSize = sys_cpu_to_le16(BT_HCI_EP_FS_MPS_ACL_DATA), \
524 .wMaxPacketSize = sys_cpu_to_le16(BT_HCI_EP_FS_MPS_ACL_DATA), \
533 .wMaxPacketSize = sys_cpu_to_le16(BT_HCI_EP_HS_MPS_ACL_DATA), \
542 .wMaxPacketSize = sys_cpu_to_le16(BT_HCI_EP_HS_MPS_ACL_DATA), \
562 .wMaxPacketSize = sys_cpu_to_le16(0), \
571 .wMaxPacketSize = sys_cpu_to_le16(0), \
592 .wMaxPacketSize = sys_cpu_to_le16(BT_HCI_EP_MPS_VOICE), \
601 .wMaxPacketSize = sys_cpu_to_le16(BT_HCI_EP_MPS_VOICE), \
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_llcp_pdu.c280 cid = sys_cpu_to_le16(ll_settings_company_id()); in llcp_pdu_encode_version_ind()
281 svn = sys_cpu_to_le16(ll_settings_subversion_number()); in llcp_pdu_encode_version_ind()
296 p->company_id = sys_cpu_to_le16(conn->llcp.vex.cached.company_id); in llcp_ntf_encode_version_ind()
297 p->sub_version_number = sys_cpu_to_le16(conn->llcp.vex.cached.sub_version_number); in llcp_ntf_encode_version_ind()
489 pdu->llctrl.phy_upd_ind.instant = sys_cpu_to_le16(ctx->data.pu.instant); in llcp_pdu_encode_phy_update_ind()
514 p->interval_min = sys_cpu_to_le16(ctx->data.cu.interval_min); in encode_conn_param_req_rsp_common()
515 p->interval_max = sys_cpu_to_le16(ctx->data.cu.interval_max); in encode_conn_param_req_rsp_common()
516 p->latency = sys_cpu_to_le16(ctx->data.cu.latency); in encode_conn_param_req_rsp_common()
517 p->timeout = sys_cpu_to_le16(ctx->data.cu.timeout); in encode_conn_param_req_rsp_common()
519 p->reference_conn_event_count = sys_cpu_to_le16(ctx->data.cu.reference_conn_event_count); in encode_conn_param_req_rsp_common()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/
Dmain.c67 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create()
384 cp->max_tx_octets = sys_cpu_to_le16(tx_octets); in write_default_data_len()
385 cp->max_tx_time = sys_cpu_to_le16(tx_time); in write_default_data_len()
437 set_param.min_interval = sys_cpu_to_le16(interval); in start_adv()
438 set_param.max_interval = sys_cpu_to_le16(interval); in start_adv()
485 hdr->len = sys_cpu_to_le16(len); in l2cap_create_le_sig_pdu()
496 hdr->handle = sys_cpu_to_le16(bt_acl_handle_pack(conn_handle, flags)); in send_acl()
497 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_acl()
511 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_l2cap_packet()
512 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/
Dtester.c69 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create()
396 cp->max_tx_octets = sys_cpu_to_le16(tx_octets); in write_default_data_len()
397 cp->max_tx_time = sys_cpu_to_le16(tx_time); in write_default_data_len()
466 set_param.min_interval = sys_cpu_to_le16(interval); in start_adv()
467 set_param.max_interval = sys_cpu_to_le16(interval); in start_adv()
514 hdr->len = sys_cpu_to_le16(len); in l2cap_create_le_sig_pdu()
524 hdr->handle = sys_cpu_to_le16(bt_acl_handle_pack(conn_handle, flags)); in send_acl()
525 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_acl()
539 hdr->len = sys_cpu_to_le16(len); in push_l2cap_pdu_header()
540 hdr->cid = sys_cpu_to_le16(cid); in push_l2cap_pdu_header()
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Dl2cap_br.c312 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in bt_l2cap_br_send_cb()
313 hdr->cid = sys_cpu_to_le16(cid); in bt_l2cap_br_send_cb()
455 hdr->len = sys_cpu_to_le16(sizeof(*info)); in l2cap_br_get_info()
458 info->type = sys_cpu_to_le16(info_type); in l2cap_br_get_info()
617 rsp->type = sys_cpu_to_le16(BT_L2CAP_INFO_FEAT_MASK); in l2cap_br_info_req()
618 rsp->result = sys_cpu_to_le16(BT_L2CAP_INFO_SUCCESS); in l2cap_br_info_req()
620 hdr_info->len = sys_cpu_to_le16(sizeof(*rsp) + sizeof(uint32_t)); in l2cap_br_info_req()
623 rsp->type = sys_cpu_to_le16(BT_L2CAP_INFO_FIXED_CHAN); in l2cap_br_info_req()
624 rsp->result = sys_cpu_to_le16(BT_L2CAP_INFO_SUCCESS); in l2cap_br_info_req()
629 hdr_info->len = sys_cpu_to_le16(sizeof(*rsp) + 8); in l2cap_br_info_req()
[all …]
/Zephyr-latest/tests/subsys/usb/bos/src/
Dtest_bos.c62 .bcdVersion = sys_cpu_to_le16(0x0100),
95 sys_cpu_to_le16(sizeof(dummy_descriptor)),
132 .bcdVersion = sys_cpu_to_le16(0x0100),
164 sys_cpu_to_le16(sizeof(dummy_descriptor)),
/Zephyr-latest/subsys/bluetooth/services/bas/
Dbas_bls.c112 .power_state = sys_cpu_to_le16(bls.power_state), in bt_bas_bls_update_battery_level_status()
114 .identifier = sys_cpu_to_le16(bls.identifier), in bt_bas_bls_update_battery_level_status()
148 .power_state = sys_cpu_to_le16(bls.power_state), in bt_bas_bls_read_blvl_status()
150 .identifier = sys_cpu_to_le16(bls.identifier), in bt_bas_bls_read_blvl_status()
238 bls.identifier = sys_cpu_to_le16(identifier); in bt_bas_bls_set_identifier()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_device.c69 desc->bcdUSB = sys_cpu_to_le16(bcd); in usbd_device_set_bcd_usb()
90 fs_desc->idVendor = sys_cpu_to_le16(vid); in usbd_device_set_vid()
93 hs_desc->idVendor = sys_cpu_to_le16(vid); in usbd_device_set_vid()
114 fs_desc->idProduct = sys_cpu_to_le16(pid); in usbd_device_set_pid()
117 hs_desc->idProduct = sys_cpu_to_le16(pid); in usbd_device_set_pid()
138 fs_desc->bcdDevice = sys_cpu_to_le16(bcd); in usbd_device_set_bcd_device()
141 hs_desc->bcdDevice = sys_cpu_to_le16(bcd); in usbd_device_set_bcd_device()
/Zephyr-latest/subsys/bluetooth/host/
Dcs.c289 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_read_remote_supported_capabilities()
422 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_set_default_settings()
449 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_read_remote_fae_table()
511 cp->subevent_interval = sys_cpu_to_le16(params->subevent_interval); in bt_le_cs_start_test()
525 cp->drbg_nonce = sys_cpu_to_le16(params->drbg_nonce); in bt_le_cs_start_test()
527 cp->override_config = sys_cpu_to_le16(params->override_config); in bt_le_cs_start_test()
859 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_create_config()
892 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_remove_config()
909 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_security_enable()
926 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_procedure_enable()
[all …]
Dhci_common.c37 cc->opcode = sys_cpu_to_le16(op); in bt_hci_cmd_complete_create()
52 cs->opcode = sys_cpu_to_le16(op); in bt_hci_cmd_status_create()
Dl2cap.c478 hdr->len = sys_cpu_to_le16(len); in l2cap_create_le_sig_pdu()
535 req->psm = sys_cpu_to_le16(ch->psm); in l2cap_le_conn_req()
536 req->scid = sys_cpu_to_le16(ch->rx.cid); in l2cap_le_conn_req()
537 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_le_conn_req()
538 req->mps = sys_cpu_to_le16(ch->rx.mps); in l2cap_le_conn_req()
539 req->credits = sys_cpu_to_le16(ch->rx.credits); in l2cap_le_conn_req()
576 req->psm = sys_cpu_to_le16(ch->psm); in l2cap_ecred_conn_req()
577 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_ecred_conn_req()
578 req->mps = sys_cpu_to_le16(ch->rx.mps); in l2cap_ecred_conn_req()
579 req->credits = sys_cpu_to_le16(ch->rx.credits); in l2cap_ecred_conn_req()
[all …]
/Zephyr-latest/tests/bluetooth/hci_codecs_info/src/
Dmain.c120 sys_cpu_to_le16(vs_codecs[i].company_id), in ZTEST()
123 sys_cpu_to_le16(vs_codecs[i].codec_id), in ZTEST()
192 cp->codec_id.company_id = sys_cpu_to_le16(READ_CAPABS_COMPANY_ID); in ZTEST()
193 cp->codec_id.vs_codec_id = sys_cpu_to_le16(READ_CAPABS_VS_CODEC_ID); in ZTEST()
273 cp->codec_id.company_id = sys_cpu_to_le16(READ_DELAY_COMPANY_ID); in ZTEST()
274 cp->codec_id.vs_codec_id = sys_cpu_to_le16(READ_DELAY_VS_CODEC_ID); in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/
Dservice_f_1.c181 uint16_t value_v6_conv = sys_cpu_to_le16(*value); in read_value_v6()
205 uint16_t value_v6_conv = sys_cpu_to_le16(*value); in write_value_v6()
298 value_v16_conv.field_b = sys_cpu_to_le16(value->field_b); in read_value_v16()
324 agg_format_conv.field_a = sys_cpu_to_le16(value->field_a); in read_agg_format()
325 agg_format_conv.field_b = sys_cpu_to_le16(value->field_b); in read_agg_format()
326 agg_format_conv.field_c = sys_cpu_to_le16(value->field_c); in read_agg_format()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_mcp.c97 ev.gmcs_handles.player_name = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.player_name); in btp_send_mcp_found_ev()
98 ev.gmcs_handles.icon_obj_id = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.icon_obj_id); in btp_send_mcp_found_ev()
99 ev.gmcs_handles.icon_url = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.icon_url); in btp_send_mcp_found_ev()
101 sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.track_changed); in btp_send_mcp_found_ev()
102 ev.gmcs_handles.track_title = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.track_title); in btp_send_mcp_found_ev()
104 sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.track_duration); in btp_send_mcp_found_ev()
106 sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.track_position); in btp_send_mcp_found_ev()
108 sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.playback_speed); in btp_send_mcp_found_ev()
110 sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.seeking_speed); in btp_send_mcp_found_ev()
112 sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.segments_obj_id); in btp_send_mcp_found_ev()
[all …]
Dbtp_micp.c62 ev.mute_handle = sys_cpu_to_le16(micp_handles->mute_handle); in btp_send_micp_found_ev()
63 ev.state_handle = sys_cpu_to_le16(micp_handles->state_handle); in btp_send_micp_found_ev()
64 ev.gain_handle = sys_cpu_to_le16(micp_handles->gain_handle); in btp_send_micp_found_ev()
65 ev.type_handle = sys_cpu_to_le16(micp_handles->type_handle); in btp_send_micp_found_ev()
66 ev.status_handle = sys_cpu_to_le16(micp_handles->status_handle); in btp_send_micp_found_ev()
67 ev.control_handle = sys_cpu_to_le16(micp_handles->control_handle); in btp_send_micp_found_ev()
68 ev.desc_handle = sys_cpu_to_le16(micp_handles->desc_handle); in btp_send_micp_found_ev()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_ecm.c77 .bcdCDC = sys_cpu_to_le16(USB_SRN_1_1),
94 .wMaxSegmentSize = sys_cpu_to_le16(NET_ETH_MAX_FRAME_SIZE),
95 .wNumberMCFilters = sys_cpu_to_le16(0), /* None */
105 sys_cpu_to_le16(
144 sys_cpu_to_le16(
155 sys_cpu_to_le16(
/Zephyr-latest/subsys/usb/device/class/dfu/
Dusb_dfu.c129 sys_cpu_to_le16(CONFIG_USB_DFU_DETACH_TIMEOUT),
131 sys_cpu_to_le16(USB_DFU_MAX_XFER_SIZE),
133 sys_cpu_to_le16(DFU_VERSION),
158 .bcdUSB = sys_cpu_to_le16(USB_SRN_2_0),
163 .idVendor = sys_cpu_to_le16((uint16_t)CONFIG_USB_DEVICE_VID),
165 sys_cpu_to_le16((uint16_t)CONFIG_USB_DEVICE_DFU_PID),
166 .bcdDevice = sys_cpu_to_le16(USB_BCD_DRN),
218 sys_cpu_to_le16(CONFIG_USB_DFU_DETACH_TIMEOUT),
220 sys_cpu_to_le16(USB_DFU_MAX_XFER_SIZE),
222 sys_cpu_to_le16(DFU_VERSION),
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/
Dmain.c75 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create()
382 cp->max_tx_octets = sys_cpu_to_le16(tx_octets); in write_default_data_len()
383 cp->max_tx_time = sys_cpu_to_le16(tx_time); in write_default_data_len()
436 set_param.min_interval = sys_cpu_to_le16(interval); in start_adv()
437 set_param.max_interval = sys_cpu_to_le16(interval); in start_adv()
478 hdr->handle = sys_cpu_to_le16(bt_acl_handle_pack(conn_handle, flags)); in send_acl()
479 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_acl()
493 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_l2cap_packet()
494 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/
Dmain.c79 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create()
404 cp->max_tx_octets = sys_cpu_to_le16(tx_octets); in write_default_data_len()
405 cp->max_tx_time = sys_cpu_to_le16(tx_time); in write_default_data_len()
458 set_param.min_interval = sys_cpu_to_le16(interval); in start_adv()
459 set_param.max_interval = sys_cpu_to_le16(interval); in start_adv()
500 hdr->handle = sys_cpu_to_le16(bt_acl_handle_pack(conn_handle, flags)); in send_acl()
501 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_acl()
515 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_l2cap_packet()
516 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/
Dmain.c83 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create()
428 cp->max_tx_octets = sys_cpu_to_le16(tx_octets); in write_default_data_len()
429 cp->max_tx_time = sys_cpu_to_le16(tx_time); in write_default_data_len()
482 set_param.min_interval = sys_cpu_to_le16(interval); in start_adv()
483 set_param.max_interval = sys_cpu_to_le16(interval); in start_adv()
524 hdr->handle = sys_cpu_to_le16(bt_acl_handle_pack(conn_handle, flags)); in send_acl()
525 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_acl()
539 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_l2cap_packet()
540 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()

123456