Home
last modified time | relevance | path

Searched refs:cpl (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.5.0/drivers/disk/nvme/
Dnvme_cmd.c178 void nvme_completion_print(const struct nvme_completion *cpl) in nvme_completion_print() argument
182 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_print()
183 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_print()
184 crd = NVME_STATUS_GET_CRD(cpl->status); in nvme_completion_print()
185 m = NVME_STATUS_GET_M(cpl->status); in nvme_completion_print()
186 dnr = NVME_STATUS_GET_DNR(cpl->status); in nvme_completion_print()
187 p = NVME_STATUS_GET_P(cpl->status); in nvme_completion_print()
192 cpl->sqid, cpl->cid, cpl->cdw0); in nvme_completion_print()
314 static bool nvme_completion_is_retry(const struct nvme_completion *cpl) in nvme_completion_is_retry() argument
318 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_is_retry()
[all …]
Dnvme_cmd.h75 struct nvme_completion cpl; member
341 struct nvme_completion *cpl; member
376 void nvme_completion_poll_cb(void *arg, const struct nvme_completion *cpl);
379 void nvme_completion_print(const struct nvme_completion *cpl);
524 static inline void nvme_completion_swapbytes(struct nvme_completion *cpl) in nvme_completion_swapbytes() argument
527 cpl->cdw0 = sys_le32_to_cpu(cpl->cdw0); in nvme_completion_swapbytes()
529 cpl->sqhd = sys_le16_to_cpu(cpl->sqhd); in nvme_completion_swapbytes()
530 cpl->sqid = sys_le16_to_cpu(cpl->sqid); in nvme_completion_swapbytes()
532 cpl->status = sys_le16_to_cpu(s->status); in nvme_completion_swapbytes()
534 ARG_UNUSED(cpl); in nvme_completion_swapbytes()
[all …]
Dnvme_disk.c65 nvme_completion_print(&status.cpl); in nvme_disk_read()
114 nvme_completion_print(&status.cpl); in nvme_disk_write()
143 nvme_completion_print(&status.cpl); in nvme_disk_flush()
Dnvme_controller.c186 nvme_completion_print(&status.cpl); in nvme_controller_setup_io_queues()
195 sq_allocated = (status.cpl.cdw0 & 0xFFFF) + 1; in nvme_controller_setup_io_queues()
196 cq_allocated = (status.cpl.cdw0 >> 16) + 1; in nvme_controller_setup_io_queues()
229 nvme_completion_print(&status.cpl); in nvme_controller_setup_io_queues()
245 nvme_completion_print(&status.cpl); in nvme_controller_setup_io_queues()
380 nvme_completion_print(&status.cpl); in nvme_controller_identify()
Dnvme.h407 .cpl = cpl_##name, \
/Zephyr-Core-3.5.0/drivers/sensor/tsl2540/
Dtsl2540.c76 double cpl; in tsl2540_channel_get() local
82 cpl = (data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS; in tsl2540_channel_get()
83 cpl *= data->again; in tsl2540_channel_get()
87 sensor_value_from_double(val, data->count_vis / cpl * in tsl2540_channel_get()
91 sensor_value_from_double(val, data->count_ir / cpl * in tsl2540_channel_get()
171 double cpl; in tsl2540_attr_set() local
175 cpl = ((data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS); in tsl2540_attr_set()
176 cpl *= data->again; in tsl2540_attr_set()
177 cpl /= (TSL2540_DEVICE_FACTOR * glass_attenuation); in tsl2540_attr_set()
178 thld = sensor_value_to_double(val) * cpl; in tsl2540_attr_set()
[all …]