| /drivers/greybus/ |
| A D | gb-beagleplay.c | 288 bg->tx_crc = crc_ccitt(bg->tx_crc, &value, 1); in hdlc_append_tx_u8() 303 hdlc_append_escaped(bg, bg->tx_crc & 0xff); in hdlc_append_tx_crc() 304 hdlc_append_escaped(bg, (bg->tx_crc >> 8) & 0xff); in hdlc_append_tx_crc() 340 hdlc_tx_frames(bg, bg->rx_buffer[0], (bg->rx_buffer[1] >> 1) & 0x7, NULL, 0); in hdlc_tx_s_frame_ack() 400 bg->rx_buffer[bg->rx_buffer_len] = c; in hdlc_rx() 538 memcpy(bg->rx_buffer + bg->rx_buffer_len, data, count); in cc1352_bootloader_rx() 542 ret = cc1352_bootloader_pkt_rx(bg, bg->rx_buffer + off, in cc1352_bootloader_rx() 551 memmove(bg->rx_buffer, bg->rx_buffer + off, bg->rx_buffer_len); in cc1352_bootloader_rx() 851 dev_set_drvdata(&bg->gb_hd->dev, bg); in gb_greybus_init() 1022 serdev_device_set_drvdata(bg->sd, bg); in gb_serdev_init() [all …]
|
| /drivers/gpio/ |
| A D | gpio-bt8xx.c | 141 struct gpio_chip *c = &bg->gpio; in bt8xxgpio_gpio_setup() 158 struct bt8xxgpio *bg; in bt8xxgpio_probe() local 162 if (!bg) in bt8xxgpio_probe() 165 bg->pdev = dev; in bt8xxgpio_probe() 166 spin_lock_init(&bg->lock); in bt8xxgpio_probe() 182 pci_set_drvdata(dev, bg); in bt8xxgpio_probe() 185 if (!bg->mmio) { in bt8xxgpio_probe() 199 bt8xxgpio_gpio_setup(bg); in bt8xxgpio_probe() 200 err = gpiochip_add_data(&bg->gpio, bg); in bt8xxgpio_probe() 218 gpiochip_remove(&bg->gpio); in bt8xxgpio_remove() [all …]
|
| /drivers/net/wireless/intel/ipw2x00/ |
| A D | libipw_geo.c | 45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel() 46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel() 48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel() 71 if (ieee->geo.bg[i].channel == channel) in libipw_channel_to_index() 110 if (ieee->geo.bg[i].freq == freq) in libipw_freq_to_channel() 111 return ieee->geo.bg[i].channel; in libipw_freq_to_channel() 128 memcpy(ieee->geo.bg, geo->bg, geo->bg_channels * in libipw_set_geo() 147 return ieee->geo.bg[index].flags; in libipw_get_channel_flags() 167 return &ieee->geo.bg[index]; in libipw_get_channel()
|
| /drivers/video/fbdev/ |
| A D | atafb_utils.h | 269 static inline void expand8_2col2mask(u8 fg, u8 bg, u32 fgm[], u32 bgm[]) in expand8_2col2mask() argument 271 fgm[0] = four2long[fg & 15] ^ (bgm[0] = four2long[bg & 15]); in expand8_2col2mask() 273 fgm[1] = four2long[fg >> 4] ^ (bgm[1] = four2long[bg >> 4]); in expand8_2col2mask() 301 static inline void fill8_2col(u8 *dst, u8 fg, u8 bg, u32 mask) in fill8_2col() argument 305 expand8_2col2mask(fg, bg, fgm, bgm); in fill8_2col() 343 static inline void expand16_2col2mask(u8 fg, u8 bg, u32 fgm[], u32 bgm[]) in expand16_2col2mask() argument 345 bgm[0] = two2word[bg & 3]; in expand16_2col2mask() 348 bgm[1] = two2word[(bg >> 2) & 3]; in expand16_2col2mask() 352 bgm[2] = two2word[(bg >> 4) & 3]; in expand16_2col2mask() 354 bgm[3] = two2word[bg >> 6]; in expand16_2col2mask()
|
| A D | pmag-aa-fb.c | 122 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/fbdev/core/ |
| A D | tileblit.c | 35 int sx, int height, int width, int fg, int bg) in tile_clear() argument 42 rect.bg = bg; in tile_clear() 54 int fg, int bg) in tile_putcs() argument 65 blit.bg = bg; in tile_putcs() 90 rect.bg = color; in tile_clear_margins() 116 int fg, int bg) in tile_cursor() argument 125 cursor.bg = bg; in tile_cursor()
|
| A D | bitblit.c | 62 int sx, int height, int width, int fg, int bg) in bit_clear() argument 66 region.color = bg; in bit_clear() 144 int fg, int bg) in bit_putcs() argument 157 image.bg_color = bg; in bit_putcs() 236 int fg, int bg) in bit_cursor() argument 275 ops->cursor_state.image.bg_color != bg || in bit_cursor() 278 ops->cursor_state.image.bg_color = bg; in bit_cursor()
|
| A D | fbcon_ccw.c | 81 int sx, int height, int width, int fg, int bg) in ccw_clear() argument 87 region.color = bg; in ccw_clear() 130 int fg, int bg) in ccw_putcs() argument 148 image.bg_color = bg; in ccw_putcs() 221 int fg, int bg) in ccw_cursor() argument 261 ops->cursor_state.image.bg_color != bg || in ccw_cursor() 264 ops->cursor_state.image.bg_color = bg; in ccw_cursor()
|
| A D | fbcon_cw.c | 66 int sx, int height, int width, int fg, int bg) in cw_clear() argument 72 region.color = bg; in cw_clear() 115 int fg, int bg) in cw_putcs() argument 133 image.bg_color = bg; in cw_putcs() 204 int fg, int bg) in cw_cursor() argument 244 ops->cursor_state.image.bg_color != bg || in cw_cursor() 247 ops->cursor_state.image.bg_color = bg; in cw_cursor()
|
| A D | fbcon.h | 58 int sx, int height, int width, int fb, int bg); 61 int fg, int bg); 65 bool enable, int fg, int bg);
|
| A D | fbcon_ud.c | 67 int sx, int height, int width, int fg, int bg) in ud_clear() argument 74 region.color = bg; in ud_clear() 152 int fg, int bg) in ud_putcs() argument 171 image.bg_color = bg; in ud_putcs() 251 int fg, int bg) in ud_cursor() argument 292 ops->cursor_state.image.bg_color != bg || in ud_cursor() 295 ops->cursor_state.image.bg_color = bg; in ud_cursor()
|
| /drivers/edac/ |
| A D | al_mc_edac.c | 65 u8 rank, u32 row, u8 bg, u8 bank, u16 column, in prepare_msg() argument 71 rank, row, bg, bank, column, syn0, syn1, syn2); in prepare_msg() 81 u8 rank, bg, bank; in handle_ce() local 103 bg = FIELD_GET(AL_MC_ECC_CE_ADDR1_BG, ecccaddr1); in handle_ce() 108 rank, row, bg, bank, column, in handle_ce() 126 u8 rank, bg, bank; in handle_ue() local 148 bg = FIELD_GET(AL_MC_ECC_UE_ADDR1_BG, eccuaddr1); in handle_ue() 153 rank, row, bg, bank, column, in handle_ue()
|
| /drivers/scsi/bnx2fc/ |
| A D | bnx2fc_fcoe.c | 151 struct fcoe_percpu_s *bg; in bnx2fc_clean_rx_queue() local 156 bg = &bnx2fc_global; in bnx2fc_clean_rx_queue() 158 list = &bg->fcoe_rx_list; in bnx2fc_clean_rx_queue() 431 struct fcoe_percpu_s *bg; in bnx2fc_rcv() local 465 bg = &bnx2fc_global; in bnx2fc_rcv() 2704 bg = &bnx2fc_global; in bnx2fc_mod_init() 2707 (void *)bg, in bnx2fc_mod_init() 2714 bg->kthread = l2_thread; in bnx2fc_mod_init() 2779 bg = &bnx2fc_global; in bnx2fc_mod_exit() 2781 l2_thread = bg->kthread; in bnx2fc_mod_exit() [all …]
|
| /drivers/video/fbdev/savage/ |
| A D | savagefb_accel.c | 95 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/video/fbdev/i810/ |
| A D | i810_accel.c | 237 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/video/fbdev/aty/ |
| A D | mach64_cursor.c | 131 u32 fg_idx, bg_idx, fg, bg; in atyfb_cursor() local 140 bg = ((info->cmap.red[bg_idx] & 0xff) << 24) | in atyfb_cursor() 145 aty_st_le32(CUR_CLR0, bg, par); in atyfb_cursor()
|
| A D | mach64_accel.c | 356 u32 fg, bg; in atyfb_imageblit() local 360 bg = ((u32*)(info->pseudo_palette))[image->bg_color]; in atyfb_imageblit() 363 bg = image->bg_color; in atyfb_imageblit() 367 aty_st_le32(DP_BKGD_CLR, bg, par); in atyfb_imageblit()
|
| /drivers/media/common/v4l2-tpg/ |
| A D | v4l2-tpg-core.c | 1920 PIXTYPE bg; \ 1935 pos[3] = (chr & (0x01 << 6) ? fg : bg); \ 1936 pos[2] = (chr & (0x01 << 4) ? fg : bg); \ 1937 pos[1] = (chr & (0x01 << 2) ? fg : bg); \ 1938 pos[0] = (chr & (0x01 << 0) ? fg : bg); \ 1940 pos[0] = (chr & (0x01 << 7) ? fg : bg); \ 1941 pos[1] = (chr & (0x01 << 5) ? fg : bg); \ 1942 pos[2] = (chr & (0x01 << 3) ? fg : bg); \ 1943 pos[3] = (chr & (0x01 << 1) ? fg : bg); \ 1945 pos[7] = (chr & (0x01 << 7) ? fg : bg); \ [all …]
|
| /drivers/media/dvb-frontends/ |
| A D | zl10036.c | 273 u8 rfg, ba, bg; in zl10036_set_gain_params() local 278 bg = 1; in zl10036_set_gain_params() 282 | ((ba << 3) & 0x18) | ((bg << 1) & 0x06); in zl10036_set_gain_params() 290 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/ |
| A D | radeon_combios.c | 850 uint8_t rev, bg, dac; in radeon_combios_get_primary_dac_info() local 865 bg = RBIOS8(dac_info + 0x2) & 0xf; in radeon_combios_get_primary_dac_info() 869 bg = RBIOS8(dac_info + 0x2) & 0xf; in radeon_combios_get_primary_dac_info() 874 if ((dac == 0) || (bg == 0)) in radeon_combios_get_primary_dac_info() 1001 uint8_t rev, bg, dac; in radeon_combios_get_tv_dac_info() local 1014 bg = RBIOS8(dac_info + 0xc) & 0xf; in radeon_combios_get_tv_dac_info() 1018 bg = RBIOS8(dac_info + 0xe) & 0xf; in radeon_combios_get_tv_dac_info() 1029 bg = RBIOS8(dac_info + 0xc) & 0xf; in radeon_combios_get_tv_dac_info() 1033 bg = RBIOS8(dac_info + 0xd) & 0xf; in radeon_combios_get_tv_dac_info() 1056 (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info() [all …]
|
| /drivers/video/fbdev/nvidia/ |
| A D | nv_accel.c | 356 u32 fg, bg, mask = ~(~0 >> (32 - info->var.bits_per_pixel)); in nvidiafb_mono_color_expand() local 365 bg = image->bg_color | mask; in nvidiafb_mono_color_expand() 368 bg = ((u32 *) info->pseudo_palette)[image->bg_color] | mask; in nvidiafb_mono_color_expand() 375 NVDmaNext(par, bg); in nvidiafb_mono_color_expand()
|
| A D | nvidia.c | 112 u16 bg, u16 fg, u32 w, u32 h) in nvidiafb_load_cursor_image() argument 127 tmp = (b & (1 << 31)) ? fg << 16 : bg << 16; in nvidiafb_load_cursor_image() 129 tmp |= (b & (1 << 31)) ? fg : bg; in nvidiafb_load_cursor_image() 132 tmp = (b & 1) ? fg : bg; in nvidiafb_load_cursor_image() 134 tmp |= (b & 1) ? fg << 16 : bg << 16; in nvidiafb_load_cursor_image() 530 u16 fg, bg; in nvidiafb_cursor() local 583 bg = ((info->cmap.red[bg_idx] & 0xf8) << 7) | in nvidiafb_cursor() 593 nvidiafb_load_cursor_image(par, data, bg, fg, in nvidiafb_cursor()
|
| /drivers/staging/sm750fb/ |
| A D | sm750_cursor.c | 75 void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg) in sm750_hw_cursor_set_color() argument 80 poke32(HWC_COLOR_12, reg | (bg & HWC_COLOR_12_1_RGB565_MASK)); in sm750_hw_cursor_set_color()
|
| A D | sm750_cursor.h | 10 void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg);
|
| /drivers/video/console/ |
| A D | sticon.c | 324 u8 bg = (color & 0x70) >> 4; in sticon_build_attr() local 327 return (fg << 3) | bg; in sticon_build_attr() 329 return (bg << 3) | fg; in sticon_build_attr()
|