Lines Matching refs:id

275 #define IRQ_CONFIGURE_FUNC(id)                                                                     \  argument
276 static void glcdc_renesas_ra_configure_func_##id(void) \
278 R_ICU->IELSR[DT_INST_IRQ_BY_NAME(id, line, irq)] = ELC_EVENT_GLCDC_LINE_DETECT; \
279 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(id, line, irq), \
280 DT_INST_IRQ_BY_NAME(id, line, priority), renesas_ra_glcdc_isr, \
281 DEVICE_DT_INST_GET(id), 0); \
282 irq_enable(DT_INST_IRQ_BY_NAME(id, line, irq)); \
285 #define IRQ_CONFIGURE_DEFINE(id) .irq_configure = glcdc_renesas_ra_configure_func_##id argument
287 #define RENESAS_RA_FRAME_BUFFER_LEN(id) \ argument
288 (BYTE_PER_PIXEL * DT_INST_PROP(id, height) * DT_INST_PROP(id, width))
290 #define RENESAS_RA_DEVICE_INIT(id) \ argument
291 PINCTRL_DT_INST_DEFINE(id); \
292 IRQ_CONFIGURE_FUNC(id) \
295 fb_background##id[CONFIG_RENESAS_RA_GLCDC_FB_NUM * RENESAS_RA_FRAME_BUFFER_LEN(id)]; \
296 static const glcdc_extended_cfg_t display_extend_cfg##id = { \
310 static struct display_ra_data ra_data##id = { \
311 .frame_buffer = fb_background##id, \
312 .frame_buffer_len = RENESAS_RA_FRAME_BUFFER_LEN(id), \
313 .front_buf = fb_background##id, \
314 .pend_buf = fb_background##id, \
316 .p_base = (uint8_t *)&fb_background##id, \
318 .input[0] = {.p_base = (uint32_t *)&fb_background##id, \
354 DT_INST_PROP(id, width) + \
355 DT_PROP(DT_INST_CHILD(id, display_timings), \
357 DT_PROP(DT_INST_CHILD(id, display_timings), \
359 DT_PROP(DT_INST_CHILD(id, display_timings), \
361 .display_cyc = DT_INST_PROP(id, width), \
363 DT_PROP(DT_INST_CHILD(id, display_timings), \
366 DT_PROP(DT_INST_CHILD(id, display_timings), \
369 DT_PROP(DT_INST_CHILD(id, display_timings), \
372 DT_INST_PROP(id, height) + \
373 DT_PROP(DT_INST_CHILD(id, display_timings), \
375 DT_PROP(DT_INST_CHILD(id, display_timings), \
377 DT_PROP(DT_INST_CHILD(id, display_timings), \
379 .display_cyc = DT_INST_PROP(id, height), \
381 DT_PROP(DT_INST_CHILD(id, display_timings), \
384 DT_PROP(DT_INST_CHILD(id, display_timings), \
387 DT_PROP(DT_INST_CHILD(id, display_timings), \
411 .p_extend = (void *)(&display_extend_cfg##id), \
415 static struct display_ra_config ra_config##id = { \
416 IRQ_CONFIGURE_DEFINE(id), \
417 .pincfg = PINCTRL_DT_INST_DEV_CONFIG_GET(id), \
418 .backlight_gpio = GPIO_DT_SPEC_INST_GET(id, backlight_gpios), \
419 .height = DT_INST_PROP(id, height), \
420 .width = DT_INST_PROP(id, width), \
421 .pixel_format = DT_INST_PROP(id, input_pixel_format), \
423 (DT_INST_PROP(id, width)) * (DT_INST_PROP(id, height)) * BYTE_PER_PIXEL, \
424 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
425 .clock_glcdc_subsys = {.mstp = (uint32_t)DT_INST_CLOCKS_CELL_BY_IDX(id, 0, mstp), \
426 .stop_bit = DT_INST_CLOCKS_CELL_BY_IDX(id, 0, stop_bit)}, \
428 DEVICE_DT_INST_DEFINE(id, &display_init, NULL, &ra_data##id, &ra_config##id, POST_KERNEL, \