Home
last modified time | relevance | path

Searched full:desc (Results 1 – 25 of 200) sorted by relevance

12345678

/Zephyr-latest/drivers/display/
Ddisplay_sdl.c100 const struct display_buffer_descriptor *desc, const void *buf) in sdl_display_write_argb8888() argument
102 __ASSERT((desc->pitch * 4U * desc->height) <= desc->buf_size, in sdl_display_write_argb8888()
105 memcpy(disp_buf, buf, desc->pitch * 4U * desc->height); in sdl_display_write_argb8888()
109 const struct display_buffer_descriptor *desc, const void *buf) in sdl_display_write_rgb888() argument
116 __ASSERT((desc->pitch * 3U * desc->height) <= desc->buf_size, in sdl_display_write_rgb888()
119 for (h_idx = 0U; h_idx < desc->height; ++h_idx) { in sdl_display_write_rgb888()
120 for (w_idx = 0U; w_idx < desc->width; ++w_idx) { in sdl_display_write_rgb888()
122 ((h_idx * desc->pitch) + w_idx) * 3U; in sdl_display_write_rgb888()
133 const struct display_buffer_descriptor *desc, const void *buf) in sdl_display_write_rgb565() argument
141 __ASSERT((desc->pitch * 2U * desc->height) <= desc->buf_size, in sdl_display_write_rgb565()
[all …]
Ddisplay_dummy.c36 const struct display_buffer_descriptor *desc, in dummy_display_write() argument
41 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in dummy_display_write()
42 __ASSERT(desc->pitch <= config->width, in dummy_display_write()
44 __ASSERT(desc->height <= config->height, in dummy_display_write()
46 __ASSERT(x + desc->pitch <= config->width, in dummy_display_write()
48 __ASSERT(y + desc->height <= config->height, in dummy_display_write()
51 if (desc->width > desc->pitch || in dummy_display_write()
52 x + desc->pitch > config->width || in dummy_display_write()
53 y + desc->height > config->height) { in dummy_display_write()
Ddisplay_led_strip_matrix.c89 const uint16_t y, const struct display_buffer_descriptor *desc) in check_descriptor() argument
91 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in check_descriptor()
92 __ASSERT(desc->pitch <= config->width, "Pitch in descriptor is larger than screen size"); in check_descriptor()
93 __ASSERT(desc->height <= config->height, "Height in descriptor is larger than screen size"); in check_descriptor()
94 __ASSERT(x + desc->pitch <= config->width, in check_descriptor()
96 __ASSERT(y + desc->height <= config->height, in check_descriptor()
99 if (desc->width > desc->pitch || x + desc->pitch > config->width || in check_descriptor()
100 y + desc->height > config->height) { in check_descriptor()
108 const struct display_buffer_descriptor *desc, const void *buf) in led_strip_matrix_write() argument
114 rc = check_descriptor(config, x, y, desc); in led_strip_matrix_write()
[all …]
Ddisplay_max7219.c143 const struct display_buffer_descriptor *desc, const void *buf) in max7219_write() argument
154 __ASSERT((desc->pitch * desc->height) <= (desc->buf_size * 8U), "Input buffer too small"); in max7219_write()
155 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in max7219_write()
156 __ASSERT(desc->pitch <= max_width, "Pitch in descriptor is larger than screen size"); in max7219_write()
157 __ASSERT(desc->height <= max_height, "Height in descriptor is larger than screen size"); in max7219_write()
158 __ASSERT(x + desc->pitch <= max_width, in max7219_write()
160 __ASSERT(y + desc->height <= max_height, in max7219_write()
163 if (desc->width > desc->pitch || (desc->pitch * desc->height) > (desc->buf_size * 8U)) { in max7219_write()
167 if ((x + desc->pitch) > max_width || (y + desc->height) > max_height) { in max7219_write()
171 const uint16_t end_x = x + desc->width; in max7219_write()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Devents.c70 static const char *desc = "<unknown event>"; in get_l2_desc() local
74 desc = "down"; in get_l2_desc()
77 desc = "up"; in get_l2_desc()
81 return desc; in get_l2_desc()
85 const char **desc, const char **desc2, in get_l3_desc() argument
96 *desc = desc_unknown; in get_l3_desc()
100 *desc = "IPv6 address"; in get_l3_desc()
106 *desc = "IPv6 address"; in get_l3_desc()
112 *desc = "IPv6 address"; in get_l3_desc()
118 *desc = "IPv6 mcast address"; in get_l3_desc()
[all …]
/Zephyr-latest/kernel/
Dobj_core.c169 struct k_obj_core_stats_desc *desc; in k_obj_core_stats_raw() local
173 desc = obj_core->type->stats_desc; in k_obj_core_stats_raw()
174 if ((desc == NULL) || (desc->raw == NULL)) { in k_obj_core_stats_raw()
177 } else if ((desc->raw_size != stats_len) || (obj_core->stats == NULL)) { in k_obj_core_stats_raw()
184 rv = desc->raw(obj_core, stats); in k_obj_core_stats_raw()
196 struct k_obj_core_stats_desc *desc; in k_obj_core_stats_query() local
200 desc = obj_core->type->stats_desc; in k_obj_core_stats_query()
201 if ((desc == NULL) || (desc->query == NULL)) { in k_obj_core_stats_query()
204 } else if ((desc->query_size != stats_len) || (obj_core->stats == NULL)) { in k_obj_core_stats_query()
211 rv = desc->query(obj_core, stats); in k_obj_core_stats_query()
[all …]
/Zephyr-latest/drivers/regulator/
Dregulator_axp192.c56 const struct regulator_axp192_desc *desc; member
180 LOG_INST_DBG(config->log, "[0x%02x]=0x%02x mask=0x%02x", config->desc->enable_reg, in axp192_enable()
181 config->desc->enable_val, config->desc->enable_mask); in axp192_enable()
184 if (config->desc->enable_reg == AXP192_REG_GPIO0_CONTROL) { in axp192_enable()
187 ret = i2c_reg_update_byte_dt(&config->i2c, config->desc->enable_reg, in axp192_enable()
188 config->desc->enable_mask, config->desc->enable_val); in axp192_enable()
204 LOG_INST_DBG(config->log, "[0x%02x]=0 mask=0x%x", config->desc->enable_reg, in axp192_disable()
205 config->desc->enable_mask); in axp192_disable()
208 if (config->desc->enable_reg == AXP192_REG_GPIO0_CONTROL) { in axp192_disable()
211 ret = i2c_reg_update_byte_dt(&config->i2c, config->desc->enable_reg, in axp192_disable()
[all …]
Dregulator_da1469x.c182 const struct regulator_da1469x_desc *desc; member
196 if (config->desc->enable_mask & config->power_bits) { in regulator_da1469x_enable()
197 reg_val = CRG_TOP->POWER_CTRL_REG & ~(config->desc->enable_mask); in regulator_da1469x_enable()
198 reg_val |= config->power_bits & config->desc->enable_mask; in regulator_da1469x_enable()
202 if (config->desc->dcdc_register) { in regulator_da1469x_enable()
203 reg_val = *config->desc->dcdc_register & in regulator_da1469x_enable()
207 *config->desc->dcdc_register_shadow = reg_val; in regulator_da1469x_enable()
208 *config->desc->dcdc_register = reg_val; in regulator_da1469x_enable()
232 if (config->desc->enable_mask & config->power_bits) { in regulator_da1469x_disable()
233 CRG_TOP->POWER_CTRL_REG &= ~(config->desc->enable_mask & in regulator_da1469x_disable()
[all …]
Dregulator_adp5360.c77 const struct regulator_adp5360_desc *desc; member
93 return linear_range_group_values_count(config->desc->ranges, config->desc->nranges); in regulator_adp5360_count_voltages()
101 return linear_range_group_get_value(config->desc->ranges, config->desc->nranges, idx, in regulator_adp5360_list_voltage()
111 ret = linear_range_group_get_win_index(config->desc->ranges, config->desc->nranges, min_uv, in regulator_adp5360_set_voltage()
117 return i2c_reg_update_byte_dt(&config->i2c, config->desc->out_reg, in regulator_adp5360_set_voltage()
128 ret = i2c_reg_read_byte_dt(&config->i2c, config->desc->out_reg, &raw_reg); in regulator_adp5360_get_voltage()
135 return linear_range_group_get_value(config->desc->ranges, config->desc->nranges, raw_reg, in regulator_adp5360_get_voltage()
143 if (!config->desc->has_modes || (mode > ADP5360_MODE_PWM)) { in regulator_adp5360_set_mode()
147 return i2c_reg_update_byte_dt(&config->i2c, config->desc->cfg_reg, in regulator_adp5360_set_mode()
158 if (!config->desc->has_modes) { in regulator_adp5360_get_mode()
[all …]
Dregulator_pca9420.c138 const struct regulator_pca9420_desc *desc; member
231 return linear_range_group_values_count(config->desc->ranges, in regulator_pca9420_count_voltages()
232 config->desc->num_ranges); in regulator_pca9420_count_voltages()
240 return linear_range_group_get_value(config->desc->ranges, in regulator_pca9420_list_voltage()
241 config->desc->num_ranges, idx, in regulator_pca9420_list_voltage()
254 ret = linear_range_group_get_win_index(config->desc->ranges, in regulator_pca9420_set_voltage()
255 config->desc->num_ranges, min_uv, in regulator_pca9420_set_voltage()
261 idx <<= config->desc->vsel_pos; in regulator_pca9420_set_voltage()
263 return i2c_reg_update_byte_dt(&cconfig->i2c, config->desc->vsel_reg + in regulator_pca9420_set_voltage()
265 config->desc->vsel_mask, (uint8_t)idx); in regulator_pca9420_set_voltage()
[all …]
/Zephyr-latest/drivers/dma/
Ddma_silabs_ldma.c31 LDMA_Descriptor_t *desc; member
90 struct dma_block_config *block, LDMA_Descriptor_t *desc) in dma_silabs_block_to_descriptor() argument
105 memset(desc, 0, sizeof(*desc)); in dma_silabs_block_to_descriptor()
107 desc->xfer.structReq = 1; in dma_silabs_block_to_descriptor()
120 desc->xfer.size = LOG2(src_size); in dma_silabs_block_to_descriptor()
132 desc->xfer.xferCnt = xfer_count; in dma_silabs_block_to_descriptor()
143 desc->xfer.blockSize = ret; in dma_silabs_block_to_descriptor()
148 desc->xfer.doneIfs = config->complete_callback_en; in dma_silabs_block_to_descriptor()
149 desc->xfer.reqMode = ldmaCtrlReqModeAll; in dma_silabs_block_to_descriptor()
150 desc->xfer.ignoreSrec = block->flow_control_mode; in dma_silabs_block_to_descriptor()
[all …]
/Zephyr-latest/arch/sparc/core/
Dfatal.c103 const char *desc; member
105 { .tt = 0x02, .desc = "illegal_instruction", },
106 { .tt = 0x07, .desc = "mem_address_not_aligned", },
107 { .tt = 0x2B, .desc = "data_store_error", },
108 { .tt = 0x29, .desc = "data_access_error", },
109 { .tt = 0x09, .desc = "data_access_exception", },
110 { .tt = 0x21, .desc = "instruction_access_error", },
111 { .tt = 0x01, .desc = "instruction_access_exception", },
112 { .tt = 0x04, .desc = "fp_disabled", },
113 { .tt = 0x08, .desc = "fp_exception", },
[all …]
/Zephyr-latest/drivers/i3c/
Di3c_shell.c148 const struct device **tdev, struct i3c_device_desc **desc) in i3c_parse_args() argument
160 *desc = get_i3c_attached_desc_from_dev_name(*dev, (*tdev)->name); in i3c_parse_args()
161 if (!*desc) { in i3c_parse_args()
174 struct i3c_device_desc *desc; in cmd_i3c_info() local
193 I3C_BUS_FOR_EACH_I3CDEV(dev, desc) { in cmd_i3c_info()
195 if (strcmp(desc->dev->name, tdev->name) == 0) { in cmd_i3c_info()
213 desc->dev->name, (uint64_t)desc->pid, in cmd_i3c_info()
214 desc->static_addr, desc->dynamic_addr, in cmd_i3c_info()
216 desc->group_addr, in cmd_i3c_info()
218 desc->bcr, desc->dcr, desc->data_speed.maxrd, in cmd_i3c_info()
[all …]
Di3c_common.c190 struct i3c_device_desc *desc = &dev_list->i3c[i]; in i3c_dev_list_find() local
192 if (desc->pid == id->pid) { in i3c_dev_list_find()
193 ret = desc; in i3c_dev_list_find()
205 struct i3c_device_desc *desc; in i3c_dev_list_i3c_addr_find() local
209 I3C_BUS_FOR_EACH_I3CDEV(dev, desc) { in i3c_dev_list_i3c_addr_find()
210 if (desc->dynamic_addr == addr) { in i3c_dev_list_i3c_addr_find()
211 ret = desc; in i3c_dev_list_i3c_addr_find()
223 struct i3c_i2c_device_desc *desc; in i3c_dev_list_i2c_addr_find() local
227 I3C_BUS_FOR_EACH_I2CDEV(dev, desc) { in i3c_dev_list_i2c_addr_find()
228 if (desc->addr == addr) { in i3c_dev_list_i2c_addr_find()
[all …]
/Zephyr-latest/tests/subsys/logging/log_link_order/src/
Dmain.c98 log1->hdr.desc.type = Z_LOG_MSG_LOG; in ZTEST()
99 log1->hdr.desc.package_len = 0; in ZTEST()
100 log1->hdr.desc.data_len = 0; in ZTEST()
105 log2.hdr.desc.type = Z_LOG_MSG_LOG; in ZTEST()
106 log2.hdr.desc.package_len = 0; in ZTEST()
107 log2.hdr.desc.data_len = 0; in ZTEST()
130 log1->hdr.desc.package_len = 0; in ZTEST()
131 log1->hdr.desc.data_len = 0; in ZTEST()
139 log2.hdr.desc.type = Z_LOG_MSG_LOG; in ZTEST()
141 log2.hdr.desc.package_len = 0; in ZTEST()
[all …]
/Zephyr-latest/subsys/logging/
Dlog_msg.c32 const struct log_msg_desc desc, const void *data) in z_log_msg_finalize() argument
41 uint8_t *d = msg->data + desc.package_len; in z_log_msg_finalize()
43 memcpy(d, data, desc.data_len); in z_log_msg_finalize()
46 msg->hdr.desc = desc; in z_log_msg_finalize()
102 .desc = { in z_log_msg_simple_create()
121 struct log_msg_desc desc = { in z_log_msg_simple_create() local
127 z_log_msg_finalize(msg, source, desc, NULL); in z_log_msg_simple_create()
142 .desc = { in z_impl_z_log_msg_simple_create_0()
160 struct log_msg_desc desc = { in z_impl_z_log_msg_simple_create_0() local
166 log_frontend_msg(source, desc, package, NULL); in z_impl_z_log_msg_simple_create_0()
[all …]
/Zephyr-latest/subsys/usb/device_next/
Dusbd_config.c151 struct usb_cfg_descriptor *desc; in usbd_config_attrib_rwup() local
176 desc = cfg_nd->desc; in usbd_config_attrib_rwup()
178 desc->bmAttributes |= USB_SCD_REMOTE_WAKEUP; in usbd_config_attrib_rwup()
180 desc->bmAttributes &= ~USB_SCD_REMOTE_WAKEUP; in usbd_config_attrib_rwup()
193 struct usb_cfg_descriptor *desc; in usbd_config_attrib_self() local
210 desc = cfg_nd->desc; in usbd_config_attrib_self()
212 desc->bmAttributes |= USB_SCD_SELF_POWERED; in usbd_config_attrib_self()
214 desc->bmAttributes &= ~USB_SCD_SELF_POWERED; in usbd_config_attrib_self()
227 struct usb_cfg_descriptor *desc; in usbd_config_maxpower() local
244 desc = cfg_nd->desc; in usbd_config_maxpower()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/images/
Ddfu_roles_mesh.svg46 <desc>Initiator</desc>
51 <desc>Distributor</desc>
56 <desc>Target</desc>
61 <desc>BLOB Transfer Client</desc>
66 <desc>BLOB Transfer Server</desc>
71 <desc>BLOB Transfer Client</desc>
76 <desc>BLOB Transfer Server</desc>
81 <desc>Firmware Distribution Client</desc>
86 <desc>Firmware Update Client</desc>
91 <desc>Firmware Distribution Server</desc>
[all …]
/Zephyr-latest/arch/arm64/core/
Dmmu.c143 static inline bool is_free_desc(uint64_t desc) in is_free_desc() argument
145 return desc == 0; in is_free_desc()
148 static inline bool is_inval_desc(uint64_t desc) in is_inval_desc() argument
151 return (desc & PTE_DESC_TYPE_MASK) == PTE_INVALID_DESC; in is_inval_desc()
154 static inline bool is_table_desc(uint64_t desc, unsigned int level) in is_table_desc() argument
157 (desc & PTE_DESC_TYPE_MASK) == PTE_TABLE_DESC; in is_table_desc()
160 static inline bool is_block_desc(uint64_t desc) in is_block_desc() argument
162 return (desc & PTE_DESC_TYPE_MASK) == PTE_BLOCK_DESC; in is_block_desc()
165 static inline uint64_t *pte_desc_table(uint64_t desc) in pte_desc_table() argument
167 uint64_t address = desc & PTE_PHYSADDR_MASK; in pte_desc_table()
[all …]
/Zephyr-latest/scripts/schemas/
Dboard-schema.yml45 desc: Name of the board
49 desc: Full name of the board. Typically set to the commercial name of the board.
56 desc: SoC family of the SoC on the board.
108 desc: |
113 desc: |
120 desc: |
130 desc: |
138 desc: |
146 desc: |
155 desc: |
Dsoc-schema.yml82 desc: SoC series of the SoC.
87 desc: Free form comment with extra information regarding the SoC.
93 desc: |
98 desc: |
105 desc: |
115 desc: |
123 desc: |
131 desc: |
140 desc: |
/Zephyr-latest/samples/arch/smp/pktqueue/src/
Dpktqueue.c10 void phdr_desc_enqueue(struct phdr_desc_queue *queue, struct phdr_desc *desc, in phdr_desc_enqueue() argument
17 queue->head = queue->tail = desc; in phdr_desc_enqueue()
19 queue->tail->next = desc; in phdr_desc_enqueue()
20 queue->tail = desc; in phdr_desc_enqueue()
23 desc->next = NULL; in phdr_desc_enqueue()
/Zephyr-latest/modules/lvgl/
Dlvgl_display_24bit.c21 flush.desc.buf_size = w * 3U * h; in lvgl_flush_cb_24bit()
22 flush.desc.width = w; in lvgl_flush_cb_24bit()
23 flush.desc.pitch = w; in lvgl_flush_cb_24bit()
24 flush.desc.height = h; in lvgl_flush_cb_24bit()
28 for (size_t i = 0; i < flush.desc.buf_size; i += 3) { in lvgl_flush_cb_24bit()
/Zephyr-latest/lib/libc/minimal/source/stdout/
Dfprintf.c13 #define DESC(d) ((void *)(d)) macro
21 r = cbvprintf(fputc, DESC(stream), format, vargs); in fprintf()
32 r = cbvprintf(fputc, DESC(stream), format, vargs); in vfprintf()
43 r = cbvprintf(fputc, DESC(stdout), format, vargs); in printf()
53 r = cbvprintf(fputc, DESC(stdout), format, vargs); in vprintf()
/Zephyr-latest/subsys/usb/host/
Dusbh_shell.c29 const struct usb_device_descriptor *const desc) in print_dev_desc() argument
31 shell_print(sh, "bLength\t\t\t%u", desc->bLength); in print_dev_desc()
32 shell_print(sh, "bDescriptorType\t\t%u", desc->bDescriptorType); in print_dev_desc()
33 shell_print(sh, "bcdUSB\t\t\t%x", desc->bcdUSB); in print_dev_desc()
34 shell_print(sh, "bDeviceClass\t\t%u", desc->bDeviceClass); in print_dev_desc()
35 shell_print(sh, "bDeviceSubClass\t\t%u", desc->bDeviceSubClass); in print_dev_desc()
36 shell_print(sh, "bDeviceProtocol\t\t%u", desc->bDeviceProtocol); in print_dev_desc()
37 shell_print(sh, "bMaxPacketSize0\t\t%u", desc->bMaxPacketSize0); in print_dev_desc()
38 shell_print(sh, "idVendor\t\t%x", desc->idVendor); in print_dev_desc()
39 shell_print(sh, "idProduct\t\t%x", desc->idProduct); in print_dev_desc()
[all …]

12345678