Home
last modified time | relevance | path

Searched refs:bg (Results 1 – 25 of 51) sorted by relevance

123

/drivers/gpio/
Dgpio-bt8xx.c72 #define bgwrite(dat, adr) writel((dat), bg->mmio+(adr))
73 #define bgread(adr) readl(bg->mmio+(adr))
83 struct bt8xxgpio *bg = gpiochip_get_data(gpio); in bt8xxgpio_gpio_direction_input() local
87 spin_lock_irqsave(&bg->lock, flags); in bt8xxgpio_gpio_direction_input()
97 spin_unlock_irqrestore(&bg->lock, flags); in bt8xxgpio_gpio_direction_input()
104 struct bt8xxgpio *bg = gpiochip_get_data(gpio); in bt8xxgpio_gpio_get() local
108 spin_lock_irqsave(&bg->lock, flags); in bt8xxgpio_gpio_get()
110 spin_unlock_irqrestore(&bg->lock, flags); in bt8xxgpio_gpio_get()
118 struct bt8xxgpio *bg = gpiochip_get_data(gpio); in bt8xxgpio_gpio_direction_output() local
122 spin_lock_irqsave(&bg->lock, flags); in bt8xxgpio_gpio_direction_output()
[all …]
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_geo.c59 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel()
60 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel()
62 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel()
85 if (ieee->geo.bg[i].channel == channel) in libipw_channel_to_index()
124 if (ieee->geo.bg[i].freq == freq) in libipw_freq_to_channel()
125 return ieee->geo.bg[i].channel; in libipw_freq_to_channel()
142 memcpy(ieee->geo.bg, geo->bg, geo->bg_channels * in libipw_set_geo()
161 return ieee->geo.bg[index].flags; in libipw_get_channel_flags()
181 return &ieee->geo.bg[index]; in libipw_get_channel()
/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
344 bgm[0] = two2word[bg & 3]; in expand16_2col2mask()
347 bgm[1] = two2word[(bg >> 2) & 3]; in expand16_2col2mask()
351 bgm[2] = two2word[(bg >> 4) & 3]; in expand16_2col2mask()
353 bgm[3] = two2word[bg >> 6]; in expand16_2col2mask()
Dpmag-aa-fb.c122 u8 bg = cursor->image.bg_color ? 0xf : 0x0; in aafb_cursor() local
124 bt455_write_cmap_entry(par->bt455, 8, bg); in aafb_cursor()
125 bt455_write_cmap_next(par->bt455, bg); in aafb_cursor()
/drivers/video/console/
Dtileblit.c44 rect.bg = attr_bgcol_ec(bgshift, vc, info); in tile_clear()
56 int fg, int bg) in tile_putcs() argument
67 blit.bg = bg; in tile_putcs()
83 int softback_lines, int fg, int bg) in tile_cursor() argument
92 cursor.bg = bg; in tile_cursor()
Dfbcon.h61 int fg, int bg);
65 int softback_lines, int fg, int bg);
124 int bg; in attr_col_ec() local
141 bg = is_mono01 ? 0 : col; in attr_col_ec()
145 bg = is_mono01 ? col : 0; in attr_col_ec()
148 return is_fg ? fg : bg; in attr_col_ec()
Dbitblit.c145 int fg, int bg) in bit_putcs() argument
158 image.bg_color = bg; in bit_putcs()
237 int softback_lines, int fg, int bg) in bit_cursor() argument
282 ops->cursor_state.image.bg_color != bg || in bit_cursor()
285 ops->cursor_state.image.bg_color = bg; in bit_cursor()
Dfbcon_cw.c116 int fg, int bg) in cw_putcs() argument
134 image.bg_color = bg; in cw_putcs()
205 int softback_lines, int fg, int bg) in cw_cursor() argument
254 ops->cursor_state.image.bg_color != bg || in cw_cursor()
257 ops->cursor_state.image.bg_color = bg; in cw_cursor()
Dfbcon_ccw.c131 int fg, int bg) in ccw_putcs() argument
149 image.bg_color = bg; in ccw_putcs()
222 int softback_lines, int fg, int bg) in ccw_cursor() argument
271 ops->cursor_state.image.bg_color != bg || in ccw_cursor()
274 ops->cursor_state.image.bg_color = bg; in ccw_cursor()
Dfbcon_ud.c153 int fg, int bg) in ud_putcs() argument
172 image.bg_color = bg; in ud_putcs()
252 int softback_lines, int fg, int bg) in ud_cursor() argument
302 ops->cursor_state.image.bg_color != bg || in ud_cursor()
305 ops->cursor_state.image.bg_color = bg; in ud_cursor()
/drivers/video/fbdev/savage/
Dsavagefb_accel.c95 int fg, bg, size, i, width; in savagefb_imageblit() local
109 bg = image->bg_color; in savagefb_imageblit()
112 bg = ((u32 *)info->pseudo_palette)[image->bg_color]; in savagefb_imageblit()
130 BCI_SEND(bg); in savagefb_imageblit()
/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c155 struct fcoe_percpu_s *bg; in bnx2fc_clean_rx_queue() local
161 bg = &bnx2fc_global; in bnx2fc_clean_rx_queue()
162 spin_lock_bh(&bg->fcoe_rx_list.lock); in bnx2fc_clean_rx_queue()
163 list = &bg->fcoe_rx_list; in bnx2fc_clean_rx_queue()
174 spin_unlock_bh(&bg->fcoe_rx_list.lock); in bnx2fc_clean_rx_queue()
443 struct fcoe_percpu_s *bg; in bnx2fc_rcv() local
484 bg = &bnx2fc_global; in bnx2fc_rcv()
485 spin_lock(&bg->fcoe_rx_list.lock); in bnx2fc_rcv()
487 __skb_queue_tail(&bg->fcoe_rx_list, skb); in bnx2fc_rcv()
488 if (bg->fcoe_rx_list.qlen == 1) in bnx2fc_rcv()
[all …]
/drivers/video/fbdev/i810/
Di810_accel.c237 int dest, const u32 *src, int bg, in mono_src_copy_imm_blit() argument
248 PUT_RING(bg); in mono_src_copy_imm_blit()
370 u32 fg = 0, bg = 0, size, dst; in i810fb_imageblit() local
381 bg = image->bg_color; in i810fb_imageblit()
386 bg = ((u32 *)(info->pseudo_palette))[image->bg_color]; in i810fb_imageblit()
402 bg, fg, info); in i810fb_imageblit()
/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c1609 PIXTYPE bg; \
1611 memcpy(&bg, tpg->textbg[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
134 bg = ((info->cmap.red[bg_idx] & 0xff) << 24) | in atyfb_cursor()
139 aty_st_le32(CUR_CLR0, bg, par); in atyfb_cursor()
Dmach64_accel.c352 u32 fg, bg; in atyfb_imageblit() local
356 bg = ((u32*)(info->pseudo_palette))[image->bg_color]; in atyfb_imageblit()
359 bg = image->bg_color; in atyfb_imageblit()
363 aty_st_le32(DP_BKGD_CLR, bg, par); in atyfb_imageblit()
/drivers/gpu/drm/nouveau/
Dnv04_fbcon.c83 uint32_t bg; in nv04_fbcon_imageblit() local
98 bg = ((uint32_t *) info->pseudo_palette)[image->bg_color]; in nv04_fbcon_imageblit()
101 bg = image->bg_color; in nv04_fbcon_imageblit()
108 OUT_RING(chan, bg); in nv04_fbcon_imageblit()
/drivers/media/dvb-frontends/
Dzl10036.c287 u8 rfg, ba, bg; in zl10036_set_gain_params() local
292 bg = 1; in zl10036_set_gain_params()
296 | ((ba << 3) & 0x18) | ((bg << 1) & 0x06); in zl10036_set_gain_params()
304 deb_info("%s: c=%u rfg=%u ba=%u bg=%u\n", __func__, c, rfg, ba, bg); in zl10036_set_gain_params()
/drivers/gpu/drm/radeon/
Dradeon_combios.c865 uint8_t rev, bg, dac; in radeon_combios_get_primary_dac_info() local
880 bg = RBIOS8(dac_info + 0x2) & 0xf; in radeon_combios_get_primary_dac_info()
882 p_dac->ps2_pdac_adj = (bg << 8) | (dac); in radeon_combios_get_primary_dac_info()
884 bg = RBIOS8(dac_info + 0x2) & 0xf; in radeon_combios_get_primary_dac_info()
886 p_dac->ps2_pdac_adj = (bg << 8) | (dac); in radeon_combios_get_primary_dac_info()
889 if ((dac == 0) || (bg == 0)) in radeon_combios_get_primary_dac_info()
1016 uint8_t rev, bg, dac; in radeon_combios_get_tv_dac_info() local
1029 bg = RBIOS8(dac_info + 0xc) & 0xf; in radeon_combios_get_tv_dac_info()
1031 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
1033 bg = RBIOS8(dac_info + 0xe) & 0xf; in radeon_combios_get_tv_dac_info()
[all …]
/drivers/video/fbdev/nvidia/
Dnv_accel.c354 u32 fg, bg, mask = ~(~0 >> (32 - info->var.bits_per_pixel)); in nvidiafb_mono_color_expand() local
363 bg = image->bg_color | mask; in nvidiafb_mono_color_expand()
366 bg = ((u32 *) info->pseudo_palette)[image->bg_color] | mask; in nvidiafb_mono_color_expand()
373 NVDmaNext(par, bg); in nvidiafb_mono_color_expand()
Dnvidia.c115 u16 bg, u16 fg, u32 w, u32 h) in nvidiafb_load_cursor_image() argument
130 tmp = (b & (1 << 31)) ? fg << 16 : bg << 16; in nvidiafb_load_cursor_image()
132 tmp |= (b & (1 << 31)) ? fg : bg; in nvidiafb_load_cursor_image()
135 tmp = (b & 1) ? fg : bg; in nvidiafb_load_cursor_image()
137 tmp |= (b & 1) ? fg << 16 : bg << 16; in nvidiafb_load_cursor_image()
534 u16 fg, bg; in nvidiafb_cursor() local
587 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in nvidiafb_cursor()
597 nvidiafb_load_cursor_image(par, data, bg, fg, in nvidiafb_cursor()
/drivers/staging/sm750fb/
Dsm750_cursor.c78 u32 fg, u32 bg) in hw_cursor_setColor() argument
83 POKE32(HWC_COLOR_12, reg | (bg & HWC_COLOR_12_1_RGB565_MASK)); in hw_cursor_setColor()
Dsm750_cursor.h12 u32 fg, u32 bg);
/drivers/video/fbdev/intelfb/
Dintelfbdrv.c1559 u32 fg, bg; in intelfb_cursor() local
1573 bg =dinfo->pseudo_palette[cursor->image.bg_color]; in intelfb_cursor()
1576 bg = cursor->image.bg_color; in intelfb_cursor()
1578 intelfbhw_cursor_setcolor(dinfo, bg, fg); in intelfb_cursor()
1605 u32 fg, bg; in intelfb_cursor() local
1609 bg = dinfo->pseudo_palette[cursor->image.bg_color]; in intelfb_cursor()
1612 bg = cursor->image.bg_color; in intelfb_cursor()
1615 intelfbhw_cursor_setcolor(dinfo, bg, fg); in intelfb_cursor()
/drivers/video/fbdev/omap2/omapfb/dss/
Dmanager-sysfs.c387 info.cpr_coefs.bg, in manager_cpr_coef_show()
405 &coefs.br, &coefs.bg, &coefs.bb) != 9) in manager_cpr_coef_store()
410 coefs.br, coefs.bg, coefs.bb }; in manager_cpr_coef_store()

123