Home
last modified time | relevance | path

Searched refs:sys_le16_to_cpu (Results 1 – 25 of 144) sorted by relevance

123456

/Zephyr-latest/drivers/disk/nvme/
Dnvme_namespace.h134 s->nawun = sys_le16_to_cpu(s->nawun); in nvme_namespace_data_swapbytes()
135 s->nawupf = sys_le16_to_cpu(s->nawupf); in nvme_namespace_data_swapbytes()
136 s->nacwu = sys_le16_to_cpu(s->nacwu); in nvme_namespace_data_swapbytes()
137 s->nabsn = sys_le16_to_cpu(s->nabsn); in nvme_namespace_data_swapbytes()
138 s->nabo = sys_le16_to_cpu(s->nabo); in nvme_namespace_data_swapbytes()
139 s->nabspf = sys_le16_to_cpu(s->nabspf); in nvme_namespace_data_swapbytes()
140 s->noiob = sys_le16_to_cpu(s->noiob); in nvme_namespace_data_swapbytes()
141 s->npwg = sys_le16_to_cpu(s->npwg); in nvme_namespace_data_swapbytes()
142 s->npwa = sys_le16_to_cpu(s->npwa); in nvme_namespace_data_swapbytes()
143 s->npdg = sys_le16_to_cpu(s->npdg); in nvme_namespace_data_swapbytes()
[all …]
Dnvme.h344 s->vid = sys_le16_to_cpu(s->vid); in nvme_controller_data_swapbytes()
345 s->ssvid = sys_le16_to_cpu(s->ssvid); in nvme_controller_data_swapbytes()
346 s->ctrlr_id = sys_le16_to_cpu(s->ctrlr_id); in nvme_controller_data_swapbytes()
352 s->rrls = sys_le16_to_cpu(s->rrls); in nvme_controller_data_swapbytes()
353 s->crdt1 = sys_le16_to_cpu(s->crdt1); in nvme_controller_data_swapbytes()
354 s->crdt2 = sys_le16_to_cpu(s->crdt2); in nvme_controller_data_swapbytes()
355 s->crdt3 = sys_le16_to_cpu(s->crdt3); in nvme_controller_data_swapbytes()
356 s->oacs = sys_le16_to_cpu(s->oacs); in nvme_controller_data_swapbytes()
357 s->wctemp = sys_le16_to_cpu(s->wctemp); in nvme_controller_data_swapbytes()
358 s->cctemp = sys_le16_to_cpu(s->cctemp); in nvme_controller_data_swapbytes()
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_mesh.c1400 prov.output_actions = sys_le16_to_cpu(cp->out_actions); in config_prov()
1402 prov.input_actions = sys_le16_to_cpu(cp->in_actions); in config_prov()
1444 addr = sys_le16_to_cpu(cp->addr); in provision_node()
1447 net_key_idx = sys_le16_to_cpu(cp->net_key_idx); in provision_node()
1483 err = bt_mesh_provision_adv(cp->uuid, sys_le16_to_cpu(cp->net_idx), in provision_adv()
1484 sys_le16_to_cpu(cp->address), in provision_adv()
1690 .addr = sys_le16_to_cpu(cp->dst), in net_send()
1815 .addr = sys_le16_to_cpu(cp->dst), in model_send()
1823 src = sys_le16_to_cpu(cp->src); in model_send()
1860 uint16_t address = sys_le16_to_cpu(cp->address); in lpn_subscribe()
[all …]
Dbtp_gatt.c207 BT_UUID_16(bt_uuid)->val = sys_le16_to_cpu(le16); in btp2bt_uuid()
766 svc_id = sys_le16_to_cpu(cp->svc_id); in add_included()
801 cep_value->properties = sys_le16_to_cpu(properties); in set_cep_value()
890 (cmd_len != sizeof(*cp) + sys_le16_to_cpu(cp->len))) { in set_value()
894 attr_id = sys_le16_to_cpu(cp->attr_id); in set_value()
901 cmd_data.len = sys_le16_to_cpu(cp->len); in set_value()
969 attr_id = sys_le16_to_cpu(cp->attr_id); in set_enc_key_size()
1223 discover_params.start_handle = sys_le16_to_cpu(cp->start_handle); in find_included()
1224 discover_params.end_handle = sys_le16_to_cpu(cp->end_handle); in find_included()
1301 discover_params.start_handle = sys_le16_to_cpu(cp->start_handle); in disc_all_chrc()
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_cdc_ncm.c354 if (sys_le16_to_cpu(nthdr16->wHeaderLength) != sizeof(struct nth16)) { in verify_nth16()
356 sys_le16_to_cpu(nthdr16->wHeaderLength)); in verify_nth16()
366 if (sys_le16_to_cpu(nthdr16->wSequence) != data->rx_seq) { in verify_nth16()
368 sys_le16_to_cpu(nthdr16->wSequence), data->rx_seq); in verify_nth16()
369 data->rx_seq = sys_le16_to_cpu(nthdr16->wSequence); in verify_nth16()
380 if (sys_le16_to_cpu(nthdr16->wBlockLength) != len) { in verify_nth16()
382 sys_le16_to_cpu(nthdr16->wBlockLength)); in verify_nth16()
386 if (sys_le16_to_cpu(nthdr16->wBlockLength) > CDC_NCM_RECV_NTB_MAX_SIZE) { in verify_nth16()
388 sys_le16_to_cpu(nthdr16->wBlockLength)); in verify_nth16()
392 if ((sys_le16_to_cpu(nthdr16->wNdpIndex) < sizeof(struct nth16)) || in verify_nth16()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dcs.c311 conn = bt_conn_lookup_handle(sys_le16_to_cpu(evt->conn_handle), BT_CONN_TYPE_LE); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
319 sys_le16_to_cpu(evt->max_consecutive_procedures_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
372 sys_le16_to_cpu(evt->nadm_sounding_capability) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
376 sys_le16_to_cpu(evt->nadm_random_capability) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
386 sys_le16_to_cpu(evt->subfeatures_supported) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
390 sys_le16_to_cpu(evt->subfeatures_supported) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
394 sys_le16_to_cpu(evt->subfeatures_supported) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
397 remote_cs_capabilities.t_ip1_times_supported = sys_le16_to_cpu(evt->t_ip1_times_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
398 remote_cs_capabilities.t_ip2_times_supported = sys_le16_to_cpu(evt->t_ip2_times_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
399 remote_cs_capabilities.t_fcs_times_supported = sys_le16_to_cpu(evt->t_fcs_times_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
[all …]
Duuid.c122 sys_le32_to_cpu(tmp5), sys_le16_to_cpu(tmp4), in bt_uuid_to_str()
123 sys_le16_to_cpu(tmp3), sys_le16_to_cpu(tmp2), in bt_uuid_to_str()
124 sys_le32_to_cpu(tmp1), sys_le16_to_cpu(tmp0)); in bt_uuid_to_str()
Ddirection.c361 if (sync->handle != sys_le16_to_cpu(rp->sync_handle)) { in hci_df_set_cl_cte_rx_enable()
386 per_adv_sync = bt_hci_per_adv_sync_lookup_handle(sys_le16_to_cpu(evt->sync_handle)); in hci_df_prepare_connectionless_iq_report()
390 sys_le16_to_cpu(evt->sync_handle)); in hci_df_prepare_connectionless_iq_report()
405 report->rssi = sys_le16_to_cpu(evt->rssi); in hci_df_prepare_connectionless_iq_report()
410 report->per_evt_counter = sys_le16_to_cpu(evt->per_evt_counter); in hci_df_prepare_connectionless_iq_report()
434 per_adv_sync = bt_hci_per_adv_sync_lookup_handle(sys_le16_to_cpu(evt->sync_handle)); in hci_df_vs_prepare_connectionless_iq_report()
438 sys_le16_to_cpu(evt->sync_handle)); in hci_df_vs_prepare_connectionless_iq_report()
453 report->rssi = sys_le16_to_cpu(evt->rssi); in hci_df_vs_prepare_connectionless_iq_report()
458 report->per_evt_counter = sys_le16_to_cpu(evt->per_evt_counter); in hci_df_vs_prepare_connectionless_iq_report()
558 if (conn->handle != sys_le16_to_cpu(rp->handle)) { in hci_df_set_conn_cte_tx_param()
[all …]
Dhci_core.c516 *tx_octets = sys_le16_to_cpu(rp->max_tx_octets); in bt_hci_le_read_max_data_len()
517 *tx_time = sys_le16_to_cpu(rp->max_tx_time); in bt_hci_le_read_max_data_len()
580 handle = sys_le16_to_cpu(evt->h[i].handle); in hci_num_completed_packets()
581 count = sys_le16_to_cpu(evt->h[i].count); in hci_num_completed_packets()
638 len = sys_le16_to_cpu(hdr->len); in hci_acl()
639 handle = sys_le16_to_cpu(hdr->handle); in hci_acl()
954 uint16_t handle = sys_le16_to_cpu(evt->handle); in hci_disconn_complete_prio()
982 uint16_t handle = sys_le16_to_cpu(evt->handle); in hci_disconn_complete()
1316 conn->handle = sys_le16_to_cpu(evt->handle); in update_conn()
1318 conn->le.interval = sys_le16_to_cpu(evt->interval); in update_conn()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bme280/
Dbme280.c281 data->dig_t1 = sys_le16_to_cpu(buf[0]); in bme280_read_compensation()
282 data->dig_t2 = sys_le16_to_cpu(buf[1]); in bme280_read_compensation()
283 data->dig_t3 = sys_le16_to_cpu(buf[2]); in bme280_read_compensation()
285 data->dig_p1 = sys_le16_to_cpu(buf[3]); in bme280_read_compensation()
286 data->dig_p2 = sys_le16_to_cpu(buf[4]); in bme280_read_compensation()
287 data->dig_p3 = sys_le16_to_cpu(buf[5]); in bme280_read_compensation()
288 data->dig_p4 = sys_le16_to_cpu(buf[6]); in bme280_read_compensation()
289 data->dig_p5 = sys_le16_to_cpu(buf[7]); in bme280_read_compensation()
290 data->dig_p6 = sys_le16_to_cpu(buf[8]); in bme280_read_compensation()
291 data->dig_p7 = sys_le16_to_cpu(buf[9]); in bme280_read_compensation()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_llcp_pdu.c304 conn->llcp.vex.cached.company_id = sys_le16_to_cpu(pdu->llctrl.version_ind.company_id); in llcp_pdu_decode_version_ind()
306 sys_le16_to_cpu(pdu->llctrl.version_ind.sub_version_number); in llcp_pdu_decode_version_ind()
477 ctx->data.pu.instant = sys_le16_to_cpu(pdu->llctrl.phy_upd_ind.instant); in llcp_pdu_decode_phy_update_ind()
546 ctx->data.cu.interval_min = sys_le16_to_cpu(p->interval_min); in decode_conn_param_req_rsp_common()
547 ctx->data.cu.interval_max = sys_le16_to_cpu(p->interval_max); in decode_conn_param_req_rsp_common()
548 ctx->data.cu.latency = sys_le16_to_cpu(p->latency); in decode_conn_param_req_rsp_common()
549 ctx->data.cu.timeout = sys_le16_to_cpu(p->timeout); in decode_conn_param_req_rsp_common()
551 ctx->data.cu.reference_conn_event_count = sys_le16_to_cpu(p->reference_conn_event_count); in decode_conn_param_req_rsp_common()
552 ctx->data.cu.offsets[0] = sys_le16_to_cpu(p->offset0); in decode_conn_param_req_rsp_common()
553 ctx->data.cu.offsets[1] = sys_le16_to_cpu(p->offset1); in decode_conn_param_req_rsp_common()
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362_decoder.c119 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 6))); in adxl362_decode_stream()
142 data_in = sys_le16_to_cpu(*((int16_t *)buffer)); in adxl362_decode_stream()
155 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 2))); in adxl362_decode_stream()
167 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 4))); in adxl362_decode_stream()
179 data_in = sys_le16_to_cpu(*((int16_t *)buffer)); in adxl362_decode_stream()
188 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 2))); in adxl362_decode_stream()
197 data_in = sys_le16_to_cpu(*((int16_t *)(buffer + 4))); in adxl362_decode_stream()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/
Dmain.c91 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
99 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
155 handle = sys_le16_to_cpu(evt->h[0].handle); in handle_ncp()
156 count = sys_le16_to_cpu(evt->h[0].count); in handle_ncp()
168 uint16_t credits = sys_le16_to_cpu(ev->credits); in handle_l2cap_credits()
180 uint16_t credits = sys_le16_to_cpu(rsp->credits); in handle_l2cap_connected()
181 uint16_t mtu = sys_le16_to_cpu(rsp->mtu); in handle_l2cap_connected()
182 uint16_t mps = sys_le16_to_cpu(rsp->mps); in handle_l2cap_connected()
220 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
245 len = sys_le16_to_cpu(hdr->len); in handle_acl()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/
Dtester.c93 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
101 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
167 handle = sys_le16_to_cpu(evt->h[0].handle); in handle_ncp()
168 count = sys_le16_to_cpu(evt->h[0].count); in handle_ncp()
180 uint16_t credits = sys_le16_to_cpu(ev->credits); in handle_l2cap_credits()
192 uint16_t credits = sys_le16_to_cpu(rsp->credits); in handle_l2cap_connected()
193 uint16_t mtu = sys_le16_to_cpu(rsp->mtu); in handle_l2cap_connected()
194 uint16_t mps = sys_le16_to_cpu(rsp->mps); in handle_l2cap_connected()
232 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
257 len = sys_le16_to_cpu(hdr->len); in handle_acl()
[all …]
/Zephyr-latest/drivers/sensor/st/lis3mdl/
Dlis3mdl.c89 drv_data->x_sample = sys_le16_to_cpu(buf[0]); in lis3mdl_sample_fetch()
90 drv_data->y_sample = sys_le16_to_cpu(buf[1]); in lis3mdl_sample_fetch()
91 drv_data->z_sample = sys_le16_to_cpu(buf[2]); in lis3mdl_sample_fetch()
92 drv_data->temp_sample = sys_le16_to_cpu(buf[3]); in lis3mdl_sample_fetch()
/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/
Dbmc150_magn.c303 raw_x = (int16_t)sys_le16_to_cpu(values[BMC150_MAGN_AXIS_X]) >> in bmc150_magn_sample_fetch()
305 raw_y = (int16_t)sys_le16_to_cpu(values[BMC150_MAGN_AXIS_Y]) >> in bmc150_magn_sample_fetch()
307 raw_z = (int16_t)sys_le16_to_cpu(values[BMC150_MAGN_AXIS_Z]) >> in bmc150_magn_sample_fetch()
309 rhall = sys_le16_to_cpu(values[BMC150_MAGN_RHALL]) >> in bmc150_magn_sample_fetch()
550 data->tregs.xyz1 = sys_le16_to_cpu(data->tregs.xyz1); in bmc150_magn_init_chip()
551 data->tregs.z1 = sys_le16_to_cpu(data->tregs.z1); in bmc150_magn_init_chip()
552 data->tregs.z2 = sys_le16_to_cpu(data->tregs.z2); in bmc150_magn_init_chip()
553 data->tregs.z3 = sys_le16_to_cpu(data->tregs.z3); in bmc150_magn_init_chip()
554 data->tregs.z4 = sys_le16_to_cpu(data->tregs.z4); in bmc150_magn_init_chip()
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci.c377 handle = sys_le16_to_cpu(cmd->handle); in disconnect()
389 handle = sys_le16_to_cpu(cmd->handle); in read_remote_ver_info()
529 uint16_t acl_pkts = sys_le16_to_cpu(cmd->acl_pkts); in host_buffer_size()
530 uint16_t acl_mtu = sys_le16_to_cpu(cmd->acl_mtu); in host_buffer_size()
571 uint16_t h = sys_le16_to_cpu(cmd->h[i].handle); in host_num_completed_packets()
572 uint16_t c = sys_le16_to_cpu(cmd->h[i].count); in host_num_completed_packets()
600 handle = sys_le16_to_cpu(cmd->handle); in read_auth_payload_timeout()
619 handle = sys_le16_to_cpu(cmd->handle); in write_auth_payload_timeout()
620 auth_payload_timeout = sys_le16_to_cpu(cmd->auth_payload_timeout); in write_auth_payload_timeout()
676 timeout = sys_le16_to_cpu(cmd->conn_accept_timeout); in write_conn_accept_timeout()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/
Dmain.c98 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
106 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
161 handle = sys_le16_to_cpu(evt->h[0].handle); in handle_ncp()
162 count = sys_le16_to_cpu(evt->h[0].count); in handle_ncp()
221 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
243 len = sys_le16_to_cpu(hdr->len); in handle_acl()
244 handle = sys_le16_to_cpu(hdr->handle); in handle_acl()
369 *tx_octets = sys_le16_to_cpu(rp->max_tx_octets); in read_max_data_len()
370 *tx_time = sys_le16_to_cpu(rp->max_tx_time); in read_max_data_len()
/Zephyr-latest/subsys/usb/host/
Dusbh_ch9.c117 desc->bcdUSB = sys_le16_to_cpu(desc->bcdUSB); in usbh_req_desc_dev()
118 desc->idVendor = sys_le16_to_cpu(desc->idVendor); in usbh_req_desc_dev()
119 desc->idProduct = sys_le16_to_cpu(desc->idProduct); in usbh_req_desc_dev()
120 desc->bcdDevice = sys_le16_to_cpu(desc->bcdDevice); in usbh_req_desc_dev()
146 desc->wTotalLength = sys_le16_to_cpu(desc->wTotalLength); in usbh_req_desc_cfg()
/Zephyr-latest/drivers/sensor/asahi_kasei/ak8975/
Dak8975.c43 drv_data->x_sample = sys_le16_to_cpu(buf[0] | (buf[1] << 8)); in ak8975_sample_fetch()
44 drv_data->y_sample = sys_le16_to_cpu(buf[2] | (buf[3] << 8)); in ak8975_sample_fetch()
45 drv_data->z_sample = sys_le16_to_cpu(buf[4] | (buf[5] << 8)); in ak8975_sample_fetch()
/Zephyr-latest/drivers/sensor/ti/ti_hdc20xx/
Dti_hdc20xx.c100 data->t_sample = sys_le16_to_cpu(buf[0]); in ti_hdc20xx_sample_fetch()
101 data->rh_sample = sys_le16_to_cpu(buf[1]); in ti_hdc20xx_sample_fetch()
178 if (sys_le16_to_cpu(buf[0]) != TI_HDC20XX_MANUFACTURER_ID) { in ti_hdc20xx_init()
182 if (sys_le16_to_cpu(buf[1]) != TI_HDC20XX_DEVICE_ID) { in ti_hdc20xx_init()
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/
Dmain.c102 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
110 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
165 handle = sys_le16_to_cpu(evt->h[0].handle); in handle_ncp()
166 count = sys_le16_to_cpu(evt->h[0].count); in handle_ncp()
243 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
265 len = sys_le16_to_cpu(hdr->len); in handle_acl()
266 handle = sys_le16_to_cpu(hdr->handle); in handle_acl()
391 *tx_octets = sys_le16_to_cpu(rp->max_tx_octets); in read_max_data_len()
392 *tx_time = sys_le16_to_cpu(rp->max_tx_time); in read_max_data_len()
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/
Dmain.c106 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
114 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
169 handle = sys_le16_to_cpu(evt->h[0].handle); in handle_ncp()
170 count = sys_le16_to_cpu(evt->h[0].count); in handle_ncp()
267 cid = sys_le16_to_cpu(hdr->cid); in handle_l2cap()
289 len = sys_le16_to_cpu(hdr->len); in handle_acl()
290 handle = sys_le16_to_cpu(hdr->handle); in handle_acl()
415 *tx_octets = sys_le16_to_cpu(rp->max_tx_octets); in read_max_data_len()
416 *tx_time = sys_le16_to_cpu(rp->max_tx_time); in read_max_data_len()
/Zephyr-latest/drivers/sensor/ams/tcs3400/
Dtcs3400.c151 val->val1 = sys_le16_to_cpu(data->sample_crgb[0]); in tcs3400_channel_get()
155 val->val1 = sys_le16_to_cpu(data->sample_crgb[1]); in tcs3400_channel_get()
159 val->val1 = sys_le16_to_cpu(data->sample_crgb[2]); in tcs3400_channel_get()
163 val->val1 = sys_le16_to_cpu(data->sample_crgb[3]); in tcs3400_channel_get()
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c321 raw_x = (int16_t)sys_le16_to_cpu(values[BMM150_AXIS_X]) >> in bmm150_sample_fetch()
323 raw_y = (int16_t)sys_le16_to_cpu(values[BMM150_AXIS_Y]) >> in bmm150_sample_fetch()
325 raw_z = (int16_t)sys_le16_to_cpu(values[BMM150_AXIS_Z]) >> in bmm150_sample_fetch()
328 rhall = sys_le16_to_cpu(values[BMM150_RHALL]) >> in bmm150_sample_fetch()
613 data->tregs.xyz1 = sys_le16_to_cpu(data->tregs.xyz1); in bmm150_init_chip()
614 data->tregs.z1 = sys_le16_to_cpu(data->tregs.z1); in bmm150_init_chip()
615 data->tregs.z2 = sys_le16_to_cpu(data->tregs.z2); in bmm150_init_chip()
616 data->tregs.z3 = sys_le16_to_cpu(data->tregs.z3); in bmm150_init_chip()
617 data->tregs.z4 = sys_le16_to_cpu(data->tregs.z4); in bmm150_init_chip()

123456