Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/disk/nvme/
Dnvme_cmd.c181 void nvme_completion_print(const struct nvme_completion *cpl) in nvme_completion_print() argument
185 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_print()
186 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_print()
187 crd = NVME_STATUS_GET_CRD(cpl->status); in nvme_completion_print()
188 m = NVME_STATUS_GET_M(cpl->status); in nvme_completion_print()
189 dnr = NVME_STATUS_GET_DNR(cpl->status); in nvme_completion_print()
190 p = NVME_STATUS_GET_P(cpl->status); in nvme_completion_print()
195 cpl->sqid, cpl->cid, cpl->cdw0); in nvme_completion_print()
317 static bool nvme_completion_is_retry(const struct nvme_completion *cpl) in nvme_completion_is_retry() argument
321 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_is_retry()
[all …]
Dnvme_cmd.h78 struct nvme_completion cpl; member
344 struct nvme_completion *cpl; member
379 void nvme_completion_poll_cb(void *arg, const struct nvme_completion *cpl);
382 void nvme_completion_print(const struct nvme_completion *cpl);
527 static inline void nvme_completion_swapbytes(struct nvme_completion *cpl) in nvme_completion_swapbytes() argument
530 cpl->cdw0 = sys_le32_to_cpu(cpl->cdw0); in nvme_completion_swapbytes()
532 cpl->sqhd = sys_le16_to_cpu(cpl->sqhd); in nvme_completion_swapbytes()
533 cpl->sqid = sys_le16_to_cpu(cpl->sqid); in nvme_completion_swapbytes()
535 cpl->status = sys_le16_to_cpu(s->status); in nvme_completion_swapbytes()
537 ARG_UNUSED(cpl); in nvme_completion_swapbytes()
[all …]
Dnvme_disk.c60 nvme_completion_print(&status.cpl); in nvme_disk_read()
109 nvme_completion_print(&status.cpl); in nvme_disk_write()
138 nvme_completion_print(&status.cpl); in nvme_disk_flush()
Dnvme_controller.c188 nvme_completion_print(&status.cpl); in nvme_controller_setup_io_queues()
197 sq_allocated = (status.cpl.cdw0 & 0xFFFF) + 1; in nvme_controller_setup_io_queues()
198 cq_allocated = (status.cpl.cdw0 >> 16) + 1; in nvme_controller_setup_io_queues()
231 nvme_completion_print(&status.cpl); in nvme_controller_setup_io_queues()
247 nvme_completion_print(&status.cpl); in nvme_controller_setup_io_queues()
382 nvme_completion_print(&status.cpl); in nvme_controller_identify()
Dnvme.h409 .cpl = cpl_##name, \
/Zephyr-latest/drivers/sensor/ams/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()
175 double cpl; in tsl2540_attr_set() local
179 cpl = ((data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS); in tsl2540_attr_set()
180 cpl *= data->again; in tsl2540_attr_set()
181 cpl /= (TSL2540_DEVICE_FACTOR * glass_attenuation); in tsl2540_attr_set()
182 thld = sensor_value_to_double(val) * cpl; in tsl2540_attr_set()
[all …]
/Zephyr-latest/drivers/sensor/ams/tsl2591/
Dtsl2591.c139 int64_t cpl = (int64_t)data->atime * (int64_t)data->again; in tsl2591_channel_get() local
155 cpl *= 1000000; in tsl2591_channel_get()
175 val->val1 = strength / cpl; in tsl2591_channel_get()
176 val->val2 = ((strength % cpl) * 1000000) / cpl; in tsl2591_channel_get()
187 uint64_t cpl; in tsl2591_set_threshold() local
195 cpl = data->atime * data->again; in tsl2591_set_threshold()
196 raw = ((val->val1 * cpl) / TSL2591_LUX_DF) + in tsl2591_set_threshold()
197 ((val->val2 * cpl) / (1000000U * TSL2591_LUX_DF)); in tsl2591_set_threshold()