/linux-6.6.21/drivers/media/platform/ti/omap/ |
D | omap_voutlib.c | 116 struct v4l2_window *win, struct v4l2_framebuffer *fbuf, in omap_vout_new_window() argument 126 win->w = new_win->w; in omap_vout_new_window() 127 win->field = new_win->field; in omap_vout_new_window() 128 win->chromakey = new_win->chromakey; in omap_vout_new_window() 133 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window() 134 crop->height = win->w.height * 2; in omap_vout_new_window() 136 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window() 137 crop->width = win->w.width * 2; in omap_vout_new_window() 144 if (crop->height != win->w.height) in omap_vout_new_window() 149 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window() [all …]
|
/linux-6.6.21/drivers/video/fbdev/ |
D | s3c-fb.c | 60 #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride)) argument 61 #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00) argument 62 #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04) argument 63 #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08) argument 64 #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C) argument 137 struct s3c_fb_win_variant *win[S3C_FB_MAX_WIN]; member 227 static bool s3c_fb_validate_win_bpp(struct s3c_fb_win *win, unsigned int bpp) in s3c_fb_validate_win_bpp() argument 229 return win->variant.valid_bpp & VALID_BPP(bpp); in s3c_fb_validate_win_bpp() 243 struct s3c_fb_win *win = info->par; in s3c_fb_check_var() local 244 struct s3c_fb *sfb = win->parent; in s3c_fb_check_var() [all …]
|
/linux-6.6.21/drivers/bus/ |
D | mvebu-mbus.c | 113 unsigned int (*win_cfg_offset)(const int win); 114 unsigned int (*win_remap_offset)(const int win); 188 const int win) in mvebu_mbus_window_is_remappable() argument 190 return mbus->soc->win_remap_offset(win) != MVEBU_MBUS_NO_REMAP; in mvebu_mbus_window_is_remappable() 198 int win, int *enabled, u64 *base, in mvebu_mbus_read_window() argument 203 mbus->soc->win_cfg_offset(win); in mvebu_mbus_read_window() 224 if (mvebu_mbus_window_is_remappable(mbus, win)) { in mvebu_mbus_read_window() 227 mbus->soc->win_remap_offset(win); in mvebu_mbus_read_window() 237 int win) in mvebu_mbus_disable_window() argument 241 addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); in mvebu_mbus_disable_window() [all …]
|
/linux-6.6.21/drivers/pci/controller/mobiveil/ |
D | pcie-mobiveil.h | 29 #define PAB_REG_ADDR(offset, win) \ argument 30 (offset + (win * PAB_REG_BLOCK_SIZE)) 31 #define PAB_EXT_REG_ADDR(offset, win) \ argument 32 (offset + (win * PAB_EXT_REG_BLOCK_SIZE)) 69 #define PAB_AXI_AMAP_CTRL(win) PAB_REG_ADDR(0x0ba0, win) argument 75 #define PAB_EXT_AXI_AMAP_SIZE(win) PAB_EXT_REG_ADDR(0xbaf0, win) argument 77 #define PAB_EXT_AXI_AMAP_AXI_WIN(win) PAB_EXT_REG_ADDR(0x80a0, win) argument 78 #define PAB_AXI_AMAP_AXI_WIN(win) PAB_REG_ADDR(0x0ba4, win) argument 81 #define PAB_AXI_AMAP_PEX_WIN_L(win) PAB_REG_ADDR(0x0ba8, win) argument 86 #define PAB_AXI_AMAP_PEX_WIN_H(win) PAB_REG_ADDR(0x0bac, win) argument [all …]
|
/linux-6.6.21/scripts/kconfig/lxdialog/ |
D | menubox.c | 53 static void do_print_item(WINDOW * win, const char *item, int line_y, in do_print_item() argument 64 wattrset(win, dlg.menubox.atr); in do_print_item() 65 wmove(win, line_y, 0); in do_print_item() 66 wclrtoeol(win); in do_print_item() 67 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); in do_print_item() 68 mvwaddstr(win, line_y, item_x, menu_item); in do_print_item() 70 wattrset(win, selected ? dlg.tag_key_selected.atr in do_print_item() 72 mvwaddch(win, line_y, item_x + j, menu_item[j]); in do_print_item() 75 wmove(win, line_y, item_x + 1); in do_print_item() 78 wrefresh(win); in do_print_item() [all …]
|
D | checklist.c | 18 static void print_item(WINDOW * win, int choice, int selected) in print_item() argument 27 wattrset(win, dlg.menubox.atr); in print_item() 28 wmove(win, choice, 0); in print_item() 30 waddch(win, ' '); in print_item() 32 wmove(win, choice, check_x); in print_item() 33 wattrset(win, selected ? dlg.check_selected.atr in print_item() 36 wprintw(win, "(%c)", item_is_tag('X') ? 'X' : ' '); in print_item() 38 wattrset(win, selected ? dlg.tag_selected.atr : dlg.tag.atr); in print_item() 39 mvwaddch(win, choice, item_x, list_item[0]); in print_item() 40 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); in print_item() [all …]
|
D | util.c | 229 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument 233 wattrset(win, attr); in attr_clear() 235 wmove(win, i, 0); in attr_clear() 237 waddch(win, ' '); in attr_clear() 239 touchwin(win); in attr_clear() 369 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument 380 wmove(win, y, (width - prompt_len) / 2); in print_autowrap() 381 waddstr(win, tempstr); in print_autowrap() 408 wmove(win, cur_y, cur_x); in print_autowrap() 409 waddstr(win, word); in print_autowrap() [all …]
|
D | textbox.c | 84 static void print_line(WINDOW *win, int row, int width) in print_line() argument 90 wmove(win, row, 0); /* move cursor to correct line */ in print_line() 91 waddch(win, ' '); in print_line() 92 waddnstr(win, line, MIN(strlen(line), width - 2)); in print_line() 95 wclrtoeol(win); in print_line() 101 static void print_page(WINDOW *win, int height, int width) in print_page() argument 107 print_line(win, i, width); in print_page() 113 wnoutrefresh(win); in print_page() 119 static void print_position(WINDOW *win) in print_position() argument 123 wattrset(win, dlg.position_indicator.atr); in print_position() [all …]
|
/linux-6.6.21/drivers/hwtracing/intel_th/ |
D | msu.c | 96 struct msc_window *win; member 278 static inline struct scatterlist *msc_win_base_sg(struct msc_window *win) in msc_win_base_sg() argument 280 return win->sgt->sgl; in msc_win_base_sg() 283 static inline struct msc_block_desc *msc_win_base(struct msc_window *win) in msc_win_base() argument 285 return sg_virt(msc_win_base_sg(win)); in msc_win_base() 288 static inline dma_addr_t msc_win_base_dma(struct msc_window *win) in msc_win_base_dma() argument 290 return sg_dma_address(msc_win_base_sg(win)); in msc_win_base_dma() 294 msc_win_base_pfn(struct msc_window *win) in msc_win_base_pfn() argument 296 return PFN_DOWN(msc_win_base_dma(win)); in msc_win_base_pfn() 304 static inline bool msc_is_last_win(struct msc_window *win) in msc_is_last_win() argument [all …]
|
/linux-6.6.21/arch/powerpc/platforms/pseries/ |
D | vas.c | 53 static int h_allocate_vas_window(struct pseries_vas_window *win, u64 *domain, in h_allocate_vas_window() argument 68 if (win->win_addr == VAS_INVALID_WIN_ADDRESS) { in h_allocate_vas_window() 72 win->vas_win.winid = retbuf[0]; in h_allocate_vas_window() 73 win->win_addr = retbuf[1]; in h_allocate_vas_window() 74 win->complete_irq = retbuf[2]; in h_allocate_vas_window() 75 win->fault_irq = retbuf[3]; in h_allocate_vas_window() 111 static int h_modify_vas_window(struct pseries_vas_window *win) in h_modify_vas_window() argument 121 win->vas_win.winid, win->pid, 0, in h_modify_vas_window() 131 rc, win->vas_win.winid, win->pid); in h_modify_vas_window() 465 struct pseries_vas_window *win; in vas_paste_address() local [all …]
|
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/ |
D | 3945-rs.c | 117 il3945_clear_win(struct il3945_rate_scale_data *win) in il3945_clear_win() argument 119 win->data = 0; in il3945_clear_win() 120 win->success_counter = 0; in il3945_clear_win() 121 win->success_ratio = -1; in il3945_clear_win() 122 win->counter = 0; in il3945_clear_win() 123 win->average_tpt = IL_INVALID_VALUE; in il3945_clear_win() 124 win->stamp = 0; in il3945_clear_win() 148 if (!rs_sta->win[i].counter) in il3945_rate_scale_flush_wins() 152 if (time_after(jiffies, rs_sta->win[i].stamp + RATE_WIN_FLUSH)) { in il3945_rate_scale_flush_wins() 154 rs_sta->win[i].counter, i); in il3945_rate_scale_flush_wins() [all …]
|
/linux-6.6.21/drivers/usb/host/ |
D | xhci-mvebu.c | 25 int win; in xhci_mvebu_mbus_config() local 28 for (win = 0; win < USB3_MAX_WINDOWS; win++) { in xhci_mvebu_mbus_config() 29 writel(0, base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config() 30 writel(0, base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config() 34 for (win = 0; win < dram->num_cs; win++) { in xhci_mvebu_mbus_config() 35 const struct mbus_dram_window *cs = &dram->cs[win]; in xhci_mvebu_mbus_config() 39 base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config() 41 writel((cs->base & 0xffff0000), base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config()
|
/linux-6.6.21/scripts/kconfig/ |
D | nconf.gui.c | 120 void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs) in print_in_middle() argument 122 wattrset(win, attrs); in print_in_middle() 123 mvwprintw(win, y, (width - strlen(str)) / 2, "%s", str); in print_in_middle() 165 void fill_window(WINDOW *win, const char *text) in fill_window() argument 171 getmaxyx(win, y, x); in fill_window() 180 mvwprintw(win, i, 0, "%s", tmp); in fill_window() 201 WINDOW *win; in btn_dialog() local 240 win = newwin(win_rows, total_width+4, y, x); in btn_dialog() 241 keypad(win, TRUE); in btn_dialog() 242 menu_win = derwin(win, 1, btns_width, win_rows-2, in btn_dialog() [all …]
|
/linux-6.6.21/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop2.c | 218 struct vop2_win win[]; member 260 static void vop2_win_write(const struct vop2_win *win, unsigned int reg, u32 v) in vop2_win_write() argument 262 regmap_field_write(win->reg[reg], v); in vop2_win_write() 265 static bool vop2_cluster_window(const struct vop2_win *win) in vop2_cluster_window() argument 267 return win->data->feature & WIN_FEATURE_CLUSTER; in vop2_cluster_window() 278 static void vop2_win_disable(struct vop2_win *win) in vop2_win_disable() argument 280 vop2_win_write(win, VOP2_WIN_ENABLE, 0); in vop2_win_disable() 282 if (vop2_cluster_window(win)) in vop2_win_disable() 283 vop2_win_write(win, VOP2_WIN_CLUSTER_ENABLE, 0); in vop2_win_disable() 462 struct vop2_win *win = to_vop2_win(plane); in rockchip_vop2_mod_supported() local [all …]
|
D | rockchip_drm_vop.c | 44 #define VOP_WIN_SET(vop, win, name, v) \ argument 45 vop_reg_set(vop, &win->phy->name, win->base, ~0, v, #name) 46 #define VOP_SCL_SET(vop, win, name, v) \ argument 47 vop_reg_set(vop, &win->phy->scl->name, win->base, ~0, v, #name) 48 #define VOP_SCL_SET_EXT(vop, win, name, v) \ argument 49 vop_reg_set(vop, &win->phy->scl->ext->name, \ 50 win->base, ~0, v, #name) 87 #define VOP_WIN_GET(vop, win, name) \ argument 88 vop_read_reg(vop, win->base, &win->phy->name) 90 #define VOP_WIN_HAS_REG(win, name) \ argument [all …]
|
/linux-6.6.21/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimd.c | 44 #define VIDOSD_A(win) (VIDOSD_BASE + 0x00 + (win) * 16) argument 45 #define VIDOSD_B(win) (VIDOSD_BASE + 0x04 + (win) * 16) argument 50 #define VIDOSD_C(win) (VIDOSD_BASE + 0x08 + (win) * 16) argument 52 #define VIDOSD_D(win) (VIDOSD_BASE + 0x0C + (win) * 16) argument 54 #define VIDWnALPHA0(win) (VIDW_ALPHA + 0x00 + (win) * 8) argument 55 #define VIDWnALPHA1(win) (VIDW_ALPHA + 0x04 + (win) * 8) argument 57 #define VIDWx_BUF_START(win, buf) (VIDW_BUF_START(buf) + (win) * 8) argument 58 #define VIDWx_BUF_START_S(win, buf) (VIDW_BUF_START_S(buf) + (win) * 8) argument 59 #define VIDWx_BUF_END(win, buf) (VIDW_BUF_END(buf) + (win) * 8) argument 60 #define VIDWx_BUF_SIZE(win, buf) (VIDW_BUF_SIZE(buf) + (win) * 4) argument [all …]
|
D | exynos5433_drm_decon.c | 264 static void decon_win_set_bldeq(struct decon_context *ctx, unsigned int win, in decon_win_set_bldeq() argument 287 decon_set_bits(ctx, DECON_BLENDERQx(win), mask, val); in decon_win_set_bldeq() 290 static void decon_win_set_bldmod(struct decon_context *ctx, unsigned int win, in decon_win_set_bldmod() argument 307 decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_BLEND_MODE_MASK, val); in decon_win_set_bldmod() 313 decon_set_bits(ctx, DECON_VIDOSDxC(win), in decon_win_set_bldmod() 319 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument 322 struct exynos_drm_plane *plane = &ctx->planes[win]; in decon_win_set_pixfmt() 334 val = readl(ctx->addr + DECON_WINCONx(win)); in decon_win_set_pixfmt() 375 decon_set_bits(ctx, DECON_WINCONx(win), ~WINCONx_BLEND_MODE_MASK, val); in decon_win_set_pixfmt() 377 if (win > 0) { in decon_win_set_pixfmt() [all …]
|
D | exynos7_drm_decon.c | 106 unsigned int win, ch_enabled = 0; in decon_clear_channels() local 109 for (win = 0; win < WINDOWS_NR; win++) { in decon_clear_channels() 110 u32 val = readl(ctx->regs + WINCON(win)); in decon_clear_channels() 114 writel(val, ctx->regs + WINCON(win)); in decon_clear_channels() 261 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument 267 val = readl(ctx->regs + WINCON(win)); in decon_win_set_pixfmt() 330 writel(val, ctx->regs + WINCON(win)); in decon_win_set_pixfmt() 333 static void decon_win_set_colkey(struct decon_context *ctx, unsigned int win) in decon_win_set_colkey() argument 342 writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); in decon_win_set_colkey() 343 writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); in decon_win_set_colkey() [all …]
|
/linux-6.6.21/lib/ |
D | win_minmax.c | 29 static u32 minmax_subwin_update(struct minmax *m, u32 win, in minmax_subwin_update() argument 34 if (unlikely(dt > win)) { in minmax_subwin_update() 45 if (unlikely(val->t - m->s[0].t > win)) { in minmax_subwin_update() 50 } else if (unlikely(m->s[1].t == m->s[0].t) && dt > win/4) { in minmax_subwin_update() 56 } else if (unlikely(m->s[2].t == m->s[1].t) && dt > win/2) { in minmax_subwin_update() 67 u32 minmax_running_max(struct minmax *m, u32 win, u32 t, u32 meas) in minmax_running_max() argument 72 unlikely(val.t - m->s[2].t > win)) /* nothing left in window? */ in minmax_running_max() 80 return minmax_subwin_update(m, win, &val); in minmax_running_max() 85 u32 minmax_running_min(struct minmax *m, u32 win, u32 t, u32 meas) in minmax_running_min() argument 90 unlikely(val.t - m->s[2].t > win)) /* nothing left in window? */ in minmax_running_min() [all …]
|
/linux-6.6.21/arch/sparc/kernel/ |
D | kgdb_32.c | 21 struct reg_window32 *win; in pt_regs_to_gdb_regs() local 28 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in pt_regs_to_gdb_regs() 30 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs() 32 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs() 50 struct reg_window32 *win; in sleeping_thread_to_gdb_regs() local 62 win = (struct reg_window32 *) t->ksp; in sleeping_thread_to_gdb_regs() 64 gdb_regs[GDB_L0 + i] = win->locals[i]; in sleeping_thread_to_gdb_regs() 66 gdb_regs[GDB_I0 + i] = win->ins[i]; in sleeping_thread_to_gdb_regs() 84 struct reg_window32 *win; in gdb_regs_to_pt_regs() local 103 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in gdb_regs_to_pt_regs() [all …]
|
D | kgdb_64.c | 21 struct reg_window *win; in pt_regs_to_gdb_regs() local 28 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); in pt_regs_to_gdb_regs() 30 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs() 32 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs() 50 struct reg_window *win; in sleeping_thread_to_gdb_regs() local 63 win = (struct reg_window *) (t->ksp + STACK_BIAS); in sleeping_thread_to_gdb_regs() 65 gdb_regs[GDB_L0 + i] = win->locals[i]; in sleeping_thread_to_gdb_regs() 67 gdb_regs[GDB_I0 + i] = win->ins[i]; in sleeping_thread_to_gdb_regs() 90 struct reg_window *win; in gdb_regs_to_pt_regs() local 109 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); in gdb_regs_to_pt_regs() [all …]
|
D | unaligned_32.c | 96 struct reg_window32 *win; in fetch_reg() local 102 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in fetch_reg() 103 return win->locals[reg - 16]; /* yes, I know what this does... */ in fetch_reg() 108 struct reg_window32 __user *win; in safe_fetch_reg() local 115 win = (struct reg_window32 __user *) regs->u_regs[UREG_FP]; in safe_fetch_reg() 117 if ((unsigned long)win & 3) in safe_fetch_reg() 120 if (get_user(ret, &win->locals[reg - 16])) in safe_fetch_reg() 128 struct reg_window32 *win; in fetch_reg_addr() local 132 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in fetch_reg_addr() 133 return &win->locals[reg - 16]; in fetch_reg_addr()
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ |
D | vas.h | 425 extern void vas_window_init_dbgdir(struct pnv_vas_window *win); 426 extern void vas_window_free_dbgdir(struct pnv_vas_window *win); 441 static inline void vas_log_write(struct pnv_vas_window *win, char *name, in vas_log_write() argument 446 win->tx_win ? "Tx" : "Rx", win->vas_win.winid, in vas_log_write() 450 static inline void write_uwc_reg(struct pnv_vas_window *win, char *name, in write_uwc_reg() argument 455 regptr = win->uwc_map + reg; in write_uwc_reg() 456 vas_log_write(win, name, regptr, val); in write_uwc_reg() 461 static inline void write_hvwc_reg(struct pnv_vas_window *win, char *name, in write_hvwc_reg() argument 466 regptr = win->hvwc_map + reg; in write_hvwc_reg() 467 vas_log_write(win, name, regptr, val); in write_hvwc_reg() [all …]
|
/linux-6.6.21/drivers/acpi/ |
D | resource.c | 206 static bool acpi_decode_space(struct resource_win *win, in acpi_decode_space() argument 214 struct resource *res = &win->res; in acpi_decode_space() 240 win->offset = offset; in acpi_decode_space() 244 (offset != win->offset || start != res->start || end != res->end)) { in acpi_decode_space() 290 struct resource_win *win) in acpi_dev_resource_address_space() argument 294 win->res.flags = 0; in acpi_dev_resource_address_space() 298 return acpi_decode_space(win, (struct acpi_resource_address *)&addr, in acpi_dev_resource_address_space() 319 struct resource_win *win) in acpi_dev_resource_ext_address_space() argument 323 win->res.flags = 0; in acpi_dev_resource_ext_address_space() 329 return acpi_decode_space(win, (struct acpi_resource_address *)ext_addr, in acpi_dev_resource_ext_address_space() [all …]
|
/linux-6.6.21/drivers/media/i2c/ |
D | ov772x.c | 425 const struct ov772x_win_size *win; member 607 priv->cfmt->code, priv->win->name); in ov772x_s_stream() 644 const struct ov772x_win_size *win) in ov772x_set_frame_rate() argument 659 fsize = win->sizeimage; in ov772x_set_frame_rate() 664 fsize = win->sizeimage * 2; in ov772x_set_frame_rate() 757 ret = ov772x_set_frame_rate(priv, fps, priv->cfmt, priv->win); in ov772x_s_frame_interval() 917 const struct ov772x_win_size *win); 938 priv->win); in ov772x_s_power() 958 const struct ov772x_win_size *win = &ov772x_win_sizes[0]; in ov772x_select_win() local 967 win = &ov772x_win_sizes[i]; in ov772x_select_win() [all …]
|