Home
last modified time | relevance | path

Searched refs:fg (Results 1 – 25 of 49) sorted by relevance

12

/drivers/power/supply/
Dda9150-fg.c92 static u32 da9150_fg_read_attr(struct da9150_fg *fg, u8 code, u8 size) in da9150_fg_read_attr() argument
103 da9150_read_qif(fg->da9150, read_addr, size, buf); in da9150_fg_read_attr()
110 static void da9150_fg_write_attr(struct da9150_fg *fg, u8 code, u8 size, in da9150_fg_write_attr() argument
125 da9150_write_qif(fg->da9150, write_addr, size, buf); in da9150_fg_write_attr()
129 static void da9150_fg_read_sync_start(struct da9150_fg *fg) in da9150_fg_read_sync_start() argument
134 mutex_lock(&fg->io_lock); in da9150_fg_read_sync_start()
137 res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC, in da9150_fg_read_sync_start()
140 da9150_fg_write_attr(fg, DA9150_QIF_SYNC, in da9150_fg_read_sync_start()
148 res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC, in da9150_fg_read_sync_start()
154 dev_err(fg->dev, "Failed to perform QIF read sync!\n"); in da9150_fg_read_sync_start()
[all …]
Dab8500_btemp.c100 struct ab8500_fg *fg; member
413 if (!di->fg) in ab8500_btemp_get_batctrl_res()
414 di->fg = ab8500_fg_get(); in ab8500_btemp_get_batctrl_res()
415 if (!di->fg) { in ab8500_btemp_get_batctrl_res()
420 ret = ab8500_fg_inst_curr_start(di->fg); in ab8500_btemp_get_batctrl_res()
429 } while (!ab8500_fg_inst_curr_started(di->fg)); in ab8500_btemp_get_batctrl_res()
437 } while (!ab8500_fg_inst_curr_done(di->fg)); in ab8500_btemp_get_batctrl_res()
440 ret = ab8500_fg_inst_curr_finalize(di->fg, &inst_curr); in ab8500_btemp_get_batctrl_res()
Dab8500_bmdata.c403 static const struct abx500_fg_parameters fg = { variable
515 .fg_params = &fg,
547 .fg_params = &fg,
/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.c365 struct mlx5_flow_group *fg; in del_rule() local
381 fs_get_obj(fg, fte->node.parent); in del_rule()
383 fs_get_obj(ft, fg->node.parent); in del_rule()
394 fg->id, in del_rule()
400 __func__, fg->id, fte->index); in del_rule()
408 struct mlx5_flow_group *fg; in del_fte() local
414 fs_get_obj(fg, fte->node.parent); in del_fte()
415 fs_get_obj(ft, fg->node.parent); in del_fte()
423 fte->index, fg->id); in del_fte()
426 fg->num_ftes--; in del_fte()
[all …]
Dfs_core.h226 #define fs_for_each_fte(pos, fg) \ argument
227 fs_list_for_each_entry(pos, &(fg)->node.children)
/drivers/video/fbdev/
Datafb_utils.h268 static inline void expand8_2col2mask(u8 fg, u8 bg, u32 fgm[], u32 bgm[]) in expand8_2col2mask() argument
270 fgm[0] = four2long[fg & 15] ^ (bgm[0] = four2long[bg & 15]); in expand8_2col2mask()
272 fgm[1] = four2long[fg >> 4] ^ (bgm[1] = four2long[bg >> 4]); in expand8_2col2mask()
300 static inline void fill8_2col(u8 *dst, u8 fg, u8 bg, u32 mask) in fill8_2col() argument
304 expand8_2col2mask(fg, bg, fgm, bgm); in fill8_2col()
342 static inline void expand16_2col2mask(u8 fg, u8 bg, u32 fgm[], u32 bgm[]) in expand16_2col2mask() argument
345 fgm[0] = two2word[fg & 3] ^ bgm[0]; in expand16_2col2mask()
348 fgm[1] = two2word[(fg >> 2) & 3] ^ bgm[1]; in expand16_2col2mask()
352 fgm[2] = two2word[(fg >> 4) & 3] ^ bgm[2]; in expand16_2col2mask()
354 fgm[3] = two2word[fg >> 6] ^ bgm[3]; in expand16_2col2mask()
Dwmt_ge_rops.c51 unsigned long fg, pat; in wmt_ge_fillrect() local
58 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in wmt_ge_fillrect()
60 fg = rect->color; in wmt_ge_fillrect()
62 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
Dffb.c221 u32 fg; member
440 upa_writel(par->fg_cache, &fbc->fg); in ffb_switch_from_graph()
480 u32 fg; in ffb_fillrect() local
484 fg = ((u32 *)info->pseudo_palette)[rect->color]; in ffb_fillrect()
488 if (fg != par->fg_cache) { in ffb_fillrect()
490 upa_writel(fg, &fbc->fg); in ffb_fillrect()
491 par->fg_cache = fg; in ffb_fillrect()
555 u32 fg, bg, xy; in ffb_imageblit() local
564 fg = ((u32 *)info->pseudo_palette)[image->fg_color]; in ffb_imageblit()
566 fgbg = ((u64) fg << 32) | (u64) bg; in ffb_imageblit()
[all …]
Ds1d13xxxfb.c537 u32 fg; in s1d13xxxfb_bitblt_solidfill() local
574 fg = ((u32 *)info->pseudo_palette)[rect->color]; in s1d13xxxfb_bitblt_solidfill()
576 dbg_blit("(solidfill) pseudo_palette[%d] = %d\n", rect->color, fg); in s1d13xxxfb_bitblt_solidfill()
578 fg = rect->color; in s1d13xxxfb_bitblt_solidfill()
583 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_FGC0, (fg & 0xff)); in s1d13xxxfb_bitblt_solidfill()
584 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_FGC1, (fg >> 8) & 0xff); in s1d13xxxfb_bitblt_solidfill()
/drivers/video/console/
Dtileblit.c43 rect.fg = attr_fgcol_ec(fgshift, vc, info); in tile_clear()
56 int fg, int bg) in tile_putcs() argument
66 blit.fg = fg; in tile_putcs()
83 int softback_lines, int fg, int bg) in tile_cursor() argument
91 cursor.fg = fg; in tile_cursor()
Dfbcon.h61 int fg, int bg);
65 int softback_lines, int fg, int bg);
123 int fg; in attr_col_ec() local
140 fg = is_mono01 ? col : 0; in attr_col_ec()
144 fg = is_mono01 ? 0 : col; in attr_col_ec()
148 return is_fg ? fg : bg; in attr_col_ec()
Dbitblit.c145 int fg, int bg) in bit_putcs() argument
157 image.fg_color = fg; in bit_putcs()
237 int softback_lines, int fg, int bg) in bit_cursor() argument
281 if (ops->cursor_state.image.fg_color != fg || in bit_cursor()
284 ops->cursor_state.image.fg_color = fg; in bit_cursor()
Dfbcon_cw.c116 int fg, int bg) in cw_putcs() argument
133 image.fg_color = fg; in cw_putcs()
205 int softback_lines, int fg, int bg) in cw_cursor() argument
253 if (ops->cursor_state.image.fg_color != fg || in cw_cursor()
256 ops->cursor_state.image.fg_color = fg; in cw_cursor()
Dfbcon_ccw.c131 int fg, int bg) in ccw_putcs() argument
148 image.fg_color = fg; in ccw_putcs()
222 int softback_lines, int fg, int bg) in ccw_cursor() argument
270 if (ops->cursor_state.image.fg_color != fg || in ccw_cursor()
273 ops->cursor_state.image.fg_color = fg; in ccw_cursor()
/drivers/video/fbdev/savage/
Dsavagefb_accel.c95 int fg, bg, size, i, width; in savagefb_imageblit() local
108 fg = image->fg_color; in savagefb_imageblit()
111 fg = ((u32 *)info->pseudo_palette)[image->fg_color]; in savagefb_imageblit()
129 BCI_SEND(fg); in savagefb_imageblit()
/drivers/video/fbdev/i810/
Di810_accel.c238 int fg, struct fb_info *info) in mono_src_copy_imm_blit() argument
249 PUT_RING(fg); in mono_src_copy_imm_blit()
370 u32 fg = 0, bg = 0, size, dst; in i810fb_imageblit() local
380 fg = image->fg_color; in i810fb_imageblit()
385 fg = ((u32 *)(info->pseudo_palette))[image->fg_color]; in i810fb_imageblit()
402 bg, fg, info); in i810fb_imageblit()
/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c1608 PIXTYPE fg; \
1610 memcpy(&fg, tpg->textfg[p], sizeof(PIXTYPE)); \
1624 pos[3] = (chr & (0x01 << 6) ? fg : bg); \
1625 pos[2] = (chr & (0x01 << 4) ? fg : bg); \
1626 pos[1] = (chr & (0x01 << 2) ? fg : bg); \
1627 pos[0] = (chr & (0x01 << 0) ? fg : bg); \
1629 pos[0] = (chr & (0x01 << 7) ? fg : bg); \
1630 pos[1] = (chr & (0x01 << 5) ? fg : bg); \
1631 pos[2] = (chr & (0x01 << 3) ? fg : bg); \
1632 pos[3] = (chr & (0x01 << 1) ? fg : bg); \
[all …]
/drivers/video/fbdev/aty/
Dmach64_cursor.c125 u32 fg_idx, bg_idx, fg, bg; in atyfb_cursor() local
130 fg = ((info->cmap.red[fg_idx] & 0xff) << 24) | in atyfb_cursor()
140 aty_st_le32(CUR_CLR1, fg, par); in atyfb_cursor()
Dmach64_accel.c352 u32 fg, bg; in atyfb_imageblit() local
355 fg = ((u32*)(info->pseudo_palette))[image->fg_color]; in atyfb_imageblit()
358 fg = image->fg_color; in atyfb_imageblit()
364 aty_st_le32(DP_FRGD_CLR, fg, par); in atyfb_imageblit()
/drivers/gpu/drm/nouveau/
Dnv04_fbcon.c82 uint32_t fg; in nv04_fbcon_imageblit() local
97 fg = ((uint32_t *) info->pseudo_palette)[image->fg_color]; in nv04_fbcon_imageblit()
100 fg = image->fg_color; in nv04_fbcon_imageblit()
109 OUT_RING(chan, fg); in nv04_fbcon_imageblit()
/drivers/video/fbdev/core/
Dsysfillrect.c245 unsigned long pat, pat2, fg; in sys_fillrect() local
257 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in sys_fillrect()
259 fg = rect->color; in sys_fillrect()
261 pat = pixel_to_pat( bpp, fg); in sys_fillrect()
Dcfbfillrect.c280 unsigned long pat, pat2, fg; in cfb_fillrect() local
292 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in cfb_fillrect()
294 fg = rect->color; in cfb_fillrect()
296 pat = pixel_to_pat(bpp, fg); in cfb_fillrect()
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c260 u32 x2, y2, vxres, vyres, height, width, fg; in mb86290fb_fillrect() local
280 fg = ((u32 *) (info->pseudo_palette))[rect->color]; in mb86290fb_fillrect()
282 fg = rect->color; in mb86290fb_fillrect()
302 cmd[3] = fg; in mb86290fb_fillrect()
/drivers/video/fbdev/nvidia/
Dnv_accel.c354 u32 fg, bg, mask = ~(~0 >> (32 - info->var.bits_per_pixel)); in nvidiafb_mono_color_expand() local
362 fg = image->fg_color | mask; in nvidiafb_mono_color_expand()
365 fg = ((u32 *) info->pseudo_palette)[image->fg_color] | mask; in nvidiafb_mono_color_expand()
374 NVDmaNext(par, fg); in nvidiafb_mono_color_expand()
/drivers/staging/sm750fb/
Dsm750_cursor.c78 u32 fg, u32 bg) in hw_cursor_setColor() argument
80 u32 reg = (fg << HWC_COLOR_12_2_RGB565_SHIFT) & in hw_cursor_setColor()

12