Home
last modified time | relevance | path

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

1234

/Zephyr-Core-3.4.0/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-Core-3.4.0/subsys/bluetooth/host/
Dl2cap_br.c300 hdr->len = sys_cpu_to_le16(sizeof(*info)); in l2cap_br_get_info()
303 info->type = sys_cpu_to_le16(info_type); in l2cap_br_get_info()
444 rsp->type = sys_cpu_to_le16(BT_L2CAP_INFO_FEAT_MASK); in l2cap_br_info_req()
445 rsp->result = sys_cpu_to_le16(BT_L2CAP_INFO_SUCCESS); in l2cap_br_info_req()
447 hdr_info->len = sys_cpu_to_le16(sizeof(*rsp) + sizeof(uint32_t)); in l2cap_br_info_req()
450 rsp->type = sys_cpu_to_le16(BT_L2CAP_INFO_FIXED_CHAN); in l2cap_br_info_req()
451 rsp->result = sys_cpu_to_le16(BT_L2CAP_INFO_SUCCESS); in l2cap_br_info_req()
456 hdr_info->len = sys_cpu_to_le16(sizeof(*rsp) + 8); in l2cap_br_info_req()
460 rsp->result = sys_cpu_to_le16(BT_L2CAP_INFO_NOTSUPP); in l2cap_br_info_req()
461 hdr_info->len = sys_cpu_to_le16(sizeof(*rsp)); in l2cap_br_info_req()
[all …]
Dhci_common.c34 cc->opcode = sys_cpu_to_le16(op); in bt_hci_cmd_complete_create()
49 cs->opcode = sys_cpu_to_le16(op); in bt_hci_cmd_status_create()
Dl2cap.c454 hdr->len = sys_cpu_to_le16(len); in l2cap_create_le_sig_pdu()
506 req->psm = sys_cpu_to_le16(ch->psm); in l2cap_le_conn_req()
507 req->scid = sys_cpu_to_le16(ch->rx.cid); in l2cap_le_conn_req()
508 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_le_conn_req()
509 req->mps = sys_cpu_to_le16(ch->rx.mps); in l2cap_le_conn_req()
510 req->credits = sys_cpu_to_le16(ch->rx.credits); in l2cap_le_conn_req()
543 req->psm = sys_cpu_to_le16(ch->psm); in l2cap_ecred_conn_req()
544 req->mtu = sys_cpu_to_le16(ch->rx.mtu); in l2cap_ecred_conn_req()
545 req->mps = sys_cpu_to_le16(ch->rx.mps); in l2cap_ecred_conn_req()
546 req->credits = sys_cpu_to_le16(ch->rx.credits); in l2cap_ecred_conn_req()
[all …]
Dscan.c109 cp->duration = sys_cpu_to_le16(duration); in set_le_ext_scan_enable()
254 set_param.interval = sys_cpu_to_le16(interval); in start_le_scan_legacy()
255 set_param.window = sys_cpu_to_le16(window); in start_le_scan_legacy()
309 scan.interval = sys_cpu_to_le16(interval); in start_passive_scan()
310 scan.window = sys_cpu_to_le16(window); in start_passive_scan()
914 cp->handle = sys_cpu_to_le16(handle); in per_adv_sync_terminate()
1108 cp->sync_handle = sys_cpu_to_le16(per_adv_sync->handle); in bt_le_per_adv_sync_subevent()
1109 cp->periodic_adv_properties = sys_cpu_to_le16(params->properties); in bt_le_per_adv_sync_subevent()
1148 cp->sync_handle = sys_cpu_to_le16(per_adv_sync->handle); in bt_le_per_adv_set_response_data()
1149 cp->request_event = sys_cpu_to_le16(param->request_event); in bt_le_per_adv_set_response_data()
[all …]
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/l2cap/split/tester/src/
Dmain.c65 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create()
379 cp->max_tx_octets = sys_cpu_to_le16(tx_octets); in write_default_data_len()
380 cp->max_tx_time = sys_cpu_to_le16(tx_time); in write_default_data_len()
432 set_param.min_interval = sys_cpu_to_le16(interval); in start_adv()
433 set_param.max_interval = sys_cpu_to_le16(interval); in start_adv()
480 hdr->len = sys_cpu_to_le16(len); in l2cap_create_le_sig_pdu()
491 hdr->handle = sys_cpu_to_le16(bt_acl_handle_pack(0, flags)); in send_acl()
492 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_acl()
506 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in send_l2cap_packet()
507 hdr->cid = sys_cpu_to_le16(cid); in send_l2cap_packet()
[all …]
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/ll_sw/
Dull_llcp_pdu.c273 cid = sys_cpu_to_le16(ll_settings_company_id()); in llcp_pdu_encode_version_ind()
274 svn = sys_cpu_to_le16(ll_settings_subversion_number()); in llcp_pdu_encode_version_ind()
289 p->company_id = sys_cpu_to_le16(conn->llcp.vex.cached.company_id); in llcp_ntf_encode_version_ind()
290 p->sub_version_number = sys_cpu_to_le16(conn->llcp.vex.cached.sub_version_number); in llcp_ntf_encode_version_ind()
482 pdu->llctrl.phy_upd_ind.instant = sys_cpu_to_le16(ctx->data.pu.instant); in llcp_pdu_encode_phy_update_ind()
507 p->interval_min = sys_cpu_to_le16(ctx->data.cu.interval_min); in encode_conn_param_req_rsp_common()
508 p->interval_max = sys_cpu_to_le16(ctx->data.cu.interval_max); in encode_conn_param_req_rsp_common()
509 p->latency = sys_cpu_to_le16(ctx->data.cu.latency); in encode_conn_param_req_rsp_common()
510 p->timeout = sys_cpu_to_le16(ctx->data.cu.timeout); in encode_conn_param_req_rsp_common()
512 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-Core-3.4.0/tests/subsys/usb/bos/src/
Dtest_bos.c60 .bcdVersion = sys_cpu_to_le16(0x0100),
93 sys_cpu_to_le16(sizeof(dummy_descriptor)),
130 .bcdVersion = sys_cpu_to_le16(0x0100),
162 sys_cpu_to_le16(sizeof(dummy_descriptor)),
/Zephyr-Core-3.4.0/tests/bluetooth/hci_codecs_info/src/
Dmain.c121 sys_cpu_to_le16(vs_codecs[i].company_id), in ZTEST()
124 sys_cpu_to_le16(vs_codecs[i].codec_id), in ZTEST()
193 cp->codec_id.company_id = sys_cpu_to_le16(READ_CAPABS_COMPANY_ID); in ZTEST()
194 cp->codec_id.vs_codec_id = sys_cpu_to_le16(READ_CAPABS_VS_CODEC_ID); in ZTEST()
274 cp->codec_id.company_id = sys_cpu_to_le16(READ_DELAY_COMPANY_ID); in ZTEST()
275 cp->codec_id.vs_codec_id = sys_cpu_to_le16(READ_DELAY_VS_CODEC_ID); in ZTEST()
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/
Dservice_f_1.c179 uint16_t value_v6_conv = sys_cpu_to_le16(*value); in read_value_v6()
203 uint16_t value_v6_conv = sys_cpu_to_le16(*value); in write_value_v6()
292 value_v16_conv.field_b = sys_cpu_to_le16(value->field_b); in read_value_v16()
318 agg_format_conv.field_a = sys_cpu_to_le16(value->field_a); in read_agg_format()
319 agg_format_conv.field_b = sys_cpu_to_le16(value->field_b); in read_agg_format()
320 agg_format_conv.field_c = sys_cpu_to_le16(value->field_c); in read_agg_format()
/Zephyr-Core-3.4.0/subsys/usb/device/class/netusb/
Dfunction_ecm.c81 .bcdCDC = sys_cpu_to_le16(USB_SRN_1_1),
98 .wMaxSegmentSize = sys_cpu_to_le16(NET_ETH_MAX_FRAME_SIZE),
99 .wNumberMCFilters = sys_cpu_to_le16(0), /* None */
109 sys_cpu_to_le16(
148 sys_cpu_to_le16(
159 sys_cpu_to_le16(
Dfunction_eem.c54 sys_cpu_to_le16(CONFIG_CDC_EEM_BULK_EP_MPS),
65 sys_cpu_to_le16(CONFIG_CDC_EEM_BULK_EP_MPS),
116 *hdr = sys_cpu_to_le16(0x3FFF & len); in eem_send()
/Zephyr-Core-3.4.0/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-Core-3.4.0/tests/bluetooth/tester/src/
Dbtp_l2cap.c57 ev->data_length = sys_cpu_to_le16(buf->len); in recv_cb()
85 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in connected_cb()
86 ev.mps_remote = sys_cpu_to_le16(chan->le.tx.mps); in connected_cb()
87 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in connected_cb()
88 ev.mps_local = sys_cpu_to_le16(chan->le.rx.mps); in connected_cb()
144 ev.mtu_remote = sys_cpu_to_le16(chan->le.tx.mtu); in reconfigured_cb()
145 ev.mps_remote = sys_cpu_to_le16(chan->le.tx.mps); in reconfigured_cb()
146 ev.mtu_local = sys_cpu_to_le16(chan->le.rx.mtu); in reconfigured_cb()
147 ev.mps_local = sys_cpu_to_le16(chan->le.rx.mps); in reconfigured_cb()
/Zephyr-Core-3.4.0/samples/bluetooth/peripheral_esp/src/
Dmain.c54 uint16_t value = sys_cpu_to_le16(*u16); in read_u16()
150 rsp.flags = sys_cpu_to_le16(value->flags); in read_es_measurement()
166 uint16_t tmp[] = {sys_cpu_to_le16(sensor->lower_limit), in read_temp_valid_range()
167 sys_cpu_to_le16(sensor->upper_limit)}; in read_temp_valid_range()
215 rp.ref_val = sys_cpu_to_le16(sensor->ref_val); in read_temp_trigger_setting()
265 value = sys_cpu_to_le16(sensor->temp_value); in update_temperature()
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/hci/
Dhci.c605 rp->handle = sys_cpu_to_le16(handle); in read_auth_payload_timeout()
606 rp->auth_payload_timeout = sys_cpu_to_le16(auth_payload_timeout); in read_auth_payload_timeout()
625 rp->handle = sys_cpu_to_le16(handle); in write_auth_payload_timeout()
666 rp->conn_accept_timeout = sys_cpu_to_le16(timeout); in read_conn_accept_timeout()
701 rp->handle = sys_cpu_to_le16(handle); in read_tx_power_level()
782 rp->hci_revision = sys_cpu_to_le16(0); in read_local_version_info()
784 rp->manufacturer = sys_cpu_to_le16(ll_settings_company_id()); in read_local_version_info()
785 rp->lmp_subversion = sys_cpu_to_le16(ll_settings_subversion_number()); in read_local_version_info()
1173 sys_cpu_to_le16(vs_codec_info[i].company_id); in read_codecs_v2()
1174 codec->codec_id = sys_cpu_to_le16(vs_codec_info[i].codec_id); in read_codecs_v2()
[all …]
/Zephyr-Core-3.4.0/subsys/usb/device/class/audio/
Dusb_audio_internal.h403 .bcdADC = sys_cpu_to_le16(0x0100), \
404 .wTotalLength = sys_cpu_to_le16( \
418 .bcdADC = sys_cpu_to_le16(0x0100), \
419 .wTotalLength = sys_cpu_to_le16( \
435 .wTerminalType = sys_cpu_to_le16(type), \
438 .wChannelConfig = sys_cpu_to_le16(CH_CFG(dev, i)), \
449 .wTerminalType = sys_cpu_to_le16(type), \
477 .wFormatTag = sys_cpu_to_le16(0x0001), \
503 .wMaxPacketSize = sys_cpu_to_le16(EP_SIZE(dev, i)), \
/Zephyr-Core-3.4.0/subsys/usb/device/
Dusb_descriptor.c59 .bcdUSB = sys_cpu_to_le16(USB_SRN_2_1),
61 .bcdUSB = sys_cpu_to_le16(USB_SRN_2_0),
73 .idVendor = sys_cpu_to_le16((uint16_t)CONFIG_USB_DEVICE_VID),
74 .idProduct = sys_cpu_to_le16((uint16_t)CONFIG_USB_DEVICE_PID),
75 .bcdDevice = sys_cpu_to_le16(USB_BCD_DRN),
130 .bString = sys_cpu_to_le16(0x0409),
/Zephyr-Core-3.4.0/subsys/bluetooth/audio/
Dpacs.c126 pac_codec->cid = sys_cpu_to_le16(codec->cid); in build_pac_records()
127 pac_codec->vid = sys_cpu_to_le16(codec->vid); in build_pac_records()
203 .snk = sys_cpu_to_le16(snk_available_contexts), in available_contexts_read()
204 .src = sys_cpu_to_le16(src_available_contexts), in available_contexts_read()
224 .snk = sys_cpu_to_le16(snk_supported_contexts), in supported_context_read()
225 .src = sys_cpu_to_le16(src_supported_contexts), in supported_context_read()
704 .snk = sys_cpu_to_le16(snk_available_contexts), in available_contexts_notify()
705 .src = sys_cpu_to_le16(src_available_contexts), in available_contexts_notify()
719 .snk = sys_cpu_to_le16(snk_supported_contexts), in supported_contexts_notify()
720 .src = sys_cpu_to_le16(src_supported_contexts), in supported_contexts_notify()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/common/src/
Dhelper_pdu.c273 pdu->llctrl.conn_param_req.interval_min = sys_cpu_to_le16(p->interval_min); in helper_pdu_encode_conn_param_req()
274 pdu->llctrl.conn_param_req.interval_max = sys_cpu_to_le16(p->interval_max); in helper_pdu_encode_conn_param_req()
275 pdu->llctrl.conn_param_req.latency = sys_cpu_to_le16(p->latency); in helper_pdu_encode_conn_param_req()
276 pdu->llctrl.conn_param_req.timeout = sys_cpu_to_le16(p->timeout); in helper_pdu_encode_conn_param_req()
279 sys_cpu_to_le16(p->reference_conn_event_count); in helper_pdu_encode_conn_param_req()
280 pdu->llctrl.conn_param_req.offset0 = sys_cpu_to_le16(p->offset0); in helper_pdu_encode_conn_param_req()
281 pdu->llctrl.conn_param_req.offset1 = sys_cpu_to_le16(p->offset1); in helper_pdu_encode_conn_param_req()
282 pdu->llctrl.conn_param_req.offset2 = sys_cpu_to_le16(p->offset2); in helper_pdu_encode_conn_param_req()
283 pdu->llctrl.conn_param_req.offset3 = sys_cpu_to_le16(p->offset3); in helper_pdu_encode_conn_param_req()
284 pdu->llctrl.conn_param_req.offset4 = sys_cpu_to_le16(p->offset4); in helper_pdu_encode_conn_param_req()
[all …]
/Zephyr-Core-3.4.0/tests/subsys/usb/os_desc/src/
Dusb_osdesc.c50 .bcdVersion = sys_cpu_to_le16(0x0100),
51 .wIndex = sys_cpu_to_le16(USB_OSDESC_EXTENDED_COMPAT_ID),
/Zephyr-Core-3.4.0/subsys/usb/device_next/
Dusbd_device.c36 desc->bcdUSB = sys_cpu_to_le16(bcd); in usbd_device_set_bcd()
56 desc->idVendor = sys_cpu_to_le16(vid); in usbd_device_set_vid()
76 desc->idProduct = sys_cpu_to_le16(pid); in usbd_device_set_pid()
/Zephyr-Core-3.4.0/subsys/usb/host/
Dusbh_ch9.c31 .wValue = sys_cpu_to_le16(wValue), in usbh_req_setup()
32 .wIndex = sys_cpu_to_le16(wIndex), in usbh_req_setup()
33 .wLength = sys_cpu_to_le16(wLength), in usbh_req_setup()
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/
Dmain.c281 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_SET_RSP); in switch_service_set()
301 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_NOTIFY_RSP); in handle_service_notify()
316 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_INDICATE_RSP); in handle_service_indicate()
/Zephyr-Core-3.4.0/subsys/tracing/
Dtracing_backend_usb.c60 .wMaxPacketSize = sys_cpu_to_le16(CONFIG_TRACING_USB_MPS),
72 .wMaxPacketSize = sys_cpu_to_le16(CONFIG_TRACING_USB_MPS),

1234