/openbmc/u-boot/arch/arm/mach-mvebu/ |
H A D | mbus.c | 94 unsigned int (*win_cfg_offset)(const int win); 108 int win, int *enabled, u64 *base, in mvebu_mbus_read_window() argument 113 mbus->soc->win_cfg_offset(win); in mvebu_mbus_read_window() 134 if (win < mbus->soc->num_remappable_wins) { in mvebu_mbus_read_window() 145 int win) in mvebu_mbus_disable_window() argument 149 addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); in mvebu_mbus_disable_window() 153 if (win < mbus->soc->num_remappable_wins) { in mvebu_mbus_disable_window() 161 const int win) in mvebu_mbus_window_is_free() argument 164 mbus->soc->win_cfg_offset(win); in mvebu_mbus_window_is_free() 178 int win; in mvebu_mbus_window_conflicts() local [all …]
|
/openbmc/linux/drivers/media/platform/ti/omap/ |
H A 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 …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A 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 …]
|
/openbmc/linux/drivers/bus/ |
H A 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 …]
|
/openbmc/u-boot/scripts/kconfig/lxdialog/ |
H A 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() 70 waddch(win, ' '); in do_print_item() 73 wclrtoeol(win); in do_print_item() 75 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); in do_print_item() 76 mvwaddstr(win, line_y, item_x, menu_item); in do_print_item() 78 wattrset(win, selected ? dlg.tag_key_selected.atr in do_print_item() 80 mvwaddch(win, line_y, item_x + j, menu_item[j]); in do_print_item() 83 wmove(win, line_y, item_x + 1); in do_print_item() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A D | textbox.c | 12 static void print_page(WINDOW *win, int height, int width, update_text_fn 14 static void print_line(WINDOW *win, int row, int width); 16 static void print_position(WINDOW * win); 299 static void print_page(WINDOW *win, int height, int width, update_text_fn in print_page() argument 316 print_line(win, i, width); in print_page() 322 wnoutrefresh(win); in print_page() 328 static void print_line(WINDOW * win, int row, int width) in print_line() argument 334 wmove(win, row, 0); /* move cursor to correct line */ in print_line() 335 waddch(win, ' '); in print_line() 336 waddnstr(win, line, MIN(strlen(line), width - 2)); in print_line() [all …]
|
/openbmc/linux/drivers/pci/controller/mobiveil/ |
H A 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 …]
|
/openbmc/u-boot/drivers/video/ |
H A D | tegra.c | 44 static void update_window(struct dc_ctlr *dc, struct disp_ctl_win *win) in update_window() argument 53 writel(win->fmt, &dc->win.color_depth); in update_window() 55 clrsetbits_le32(&dc->win.byte_swap, BYTE_SWAP_MASK, in update_window() 58 val = win->out_x << H_POSITION_SHIFT; in update_window() 59 val |= win->out_y << V_POSITION_SHIFT; in update_window() 60 writel(val, &dc->win.pos); in update_window() 62 val = win->out_w << H_SIZE_SHIFT; in update_window() 63 val |= win->out_h << V_SIZE_SHIFT; in update_window() 64 writel(val, &dc->win.size); in update_window() 66 val = (win->w * win->bpp / 8) << H_PRESCALED_SIZE_SHIFT; in update_window() [all …]
|
/openbmc/linux/scripts/kconfig/lxdialog/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/hwtracing/intel_th/ |
H A 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 …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A 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 …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | nconf.gui.c | 148 void print_in_middle(WINDOW *win, in print_in_middle() argument 158 if (win == NULL) in print_in_middle() 159 win = stdscr; in print_in_middle() 160 getyx(win, y, x); in print_in_middle() 171 (void) wattrset(win, color); in print_in_middle() 172 mvwprintw(win, y, x, "%s", string); in print_in_middle() 215 void fill_window(WINDOW *win, const char *text) in fill_window() argument 221 getmaxyx(win, y, x); in fill_window() 230 mvwprintw(win, i, 0, "%s", tmp); in fill_window() 251 WINDOW *win; in btn_dialog() local [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A 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()
|
/openbmc/linux/scripts/kconfig/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/qemu/hw/alpha/ |
H A D | typhoon.c | 48 TyphoonWindow win[4]; member 220 ret = s->pchip.win[0].wba; in pchip_read() 224 ret = s->pchip.win[1].wba; in pchip_read() 228 ret = s->pchip.win[2].wba; in pchip_read() 232 ret = s->pchip.win[3].wba; in pchip_read() 237 ret = s->pchip.win[0].wsm; in pchip_read() 241 ret = s->pchip.win[1].wsm; in pchip_read() 245 ret = s->pchip.win[2].wsm; in pchip_read() 249 ret = s->pchip.win[3].wsm; in pchip_read() 254 ret = s->pchip.win[0].tba; in pchip_read() [all …]
|
/openbmc/linux/lib/ |
H A 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 …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A 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 …]
|