Home
last modified time | relevance | path

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

123

/linux/drivers/greybus/
H A Dgb-beagleplay.c204 static void hdlc_rx_greybus_frame(struct gb_beagleplay *bg, u8 *buf, u16 len) in hdlc_rx_greybus_frame() argument
210 dev_dbg(&bg->sd->dev, "Greybus Operation %u type %X cport %u status %u received", in hdlc_rx_greybus_frame()
213 greybus_data_rcvd(bg->gb_hd, cport_id, (u8 *)&gb_frame->hdr, gb_msg_len); in hdlc_rx_greybus_frame()
216 static void hdlc_rx_dbg_frame(const struct gb_beagleplay *bg, const char *buf, u16 len) in hdlc_rx_dbg_frame() argument
218 dev_dbg(&bg->sd->dev, "CC1352 Log: %.*s", (int)len, buf); in hdlc_rx_dbg_frame()
227 static void hdlc_write(struct gb_beagleplay *bg) in hdlc_write() argument
231 int head = smp_load_acquire(&bg->tx_circ_buf.head); in hdlc_write()
232 int tail = bg->tx_circ_buf.tail; in hdlc_write()
234 const unsigned char *buf = &bg->tx_circ_buf.buf[tail]; in hdlc_write()
237 written = serdev_device_write_buf(bg->sd, buf, count); in hdlc_write()
[all …]
/linux/arch/sparc/kernel/
H A Dbtext.c244 int bg = 0x00000000UL; in draw_byte_32() local
249 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
250 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
251 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
252 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
253 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
254 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32()
255 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32()
256 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
265 int bg = 0x00000000UL; in draw_byte_16() local
[all …]
/linux/fs/ocfs2/
H A Dsuballoc.c109 static inline int ocfs2_block_group_reasonably_empty(struct ocfs2_group_desc *bg,
324 struct ocfs2_group_desc *bg, in ocfs2_bg_discontig_add_extent() argument
328 struct ocfs2_extent_list *el = &bg->bg_list; in ocfs2_bg_discontig_add_extent()
336 rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / in ocfs2_bg_discontig_add_extent()
339 le16_add_cpu(&bg->bg_bits, clusters * le16_to_cpu(cl->cl_bpc)); in ocfs2_bg_discontig_add_extent()
340 le16_add_cpu(&bg->bg_free_bits_count, in ocfs2_bg_discontig_add_extent()
355 struct ocfs2_group_desc *bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_block_group_fill() local
375 memset(bg, 0, sb->s_blocksize); in ocfs2_block_group_fill()
376 strscpy(bg->bg_signature, OCFS2_GROUP_DESC_SIGNATURE); in ocfs2_block_group_fill()
377 bg->bg_generation = cpu_to_le32(osb->fs_generation); in ocfs2_block_group_fill()
[all …]
H A Dmove_extents.c382 struct ocfs2_group_desc *bg; in ocfs2_find_victim_alloc_group() local
421 bg = NULL; in ocfs2_find_victim_alloc_group()
424 if (!bg) in ocfs2_find_victim_alloc_group()
427 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_find_victim_alloc_group()
440 bg = (struct ocfs2_group_desc *)gd_bh->b_data; in ocfs2_find_victim_alloc_group()
442 if (vict_blkno < (le64_to_cpu(bg->bg_blkno) + in ocfs2_find_victim_alloc_group()
443 (le16_to_cpu(bg->bg_bits) << bits_per_unit))) { in ocfs2_find_victim_alloc_group()
450 blkno, le16_to_cpu(bg->bg_bits), in ocfs2_find_victim_alloc_group()
455 } while (le64_to_cpu(bg->bg_next_group)); in ocfs2_find_victim_alloc_group()
477 struct ocfs2_group_desc *bg; in ocfs2_validate_and_adjust_move_goal() local
[all …]
H A Dioctl.c442 struct ocfs2_group_desc *bg = NULL; in ocfs2_info_freefrag_scan_chain() local
452 if (!bg) in ocfs2_info_freefrag_scan_chain()
455 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_info_freefrag_scan_chain()
476 bg = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_info_freefrag_scan_chain()
478 if (!le16_to_cpu(bg->bg_free_bits_count)) in ocfs2_info_freefrag_scan_chain()
481 max_bits = le16_to_cpu(bg->bg_bits); in ocfs2_info_freefrag_scan_chain()
496 (unsigned long *)bg->bg_bitmap); in ocfs2_info_freefrag_scan_chain()
526 } while (le64_to_cpu(bg->bg_next_group)); in ocfs2_info_freefrag_scan_chain()
/linux/fs/btrfs/
H A Dzoned.c1406 static int btrfs_load_block_group_single(struct btrfs_block_group *bg, in btrfs_load_block_group_single() argument
1411 btrfs_err(bg->fs_info, in btrfs_load_block_group_single()
1417 bg->alloc_offset = info->alloc_offset; in btrfs_load_block_group_single()
1418 bg->zone_capacity = info->capacity; in btrfs_load_block_group_single()
1420 set_bit(BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE, &bg->runtime_flags); in btrfs_load_block_group_single()
1424 static int btrfs_load_block_group_dup(struct btrfs_block_group *bg, in btrfs_load_block_group_dup() argument
1430 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_dup()
1437 bg->zone_capacity = min_not_zero(zone_info[0].capacity, zone_info[1].capacity); in btrfs_load_block_group_dup()
1440 btrfs_err(bg->fs_info, in btrfs_load_block_group_dup()
1446 btrfs_err(bg->fs_info, in btrfs_load_block_group_dup()
[all …]
H A Dscrub.c140 struct btrfs_block_group *bg; member
688 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_kaddr()
701 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_paddr()
716 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_metadata()
803 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_sector()
864 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_stripe()
896 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_repair_read_endio()
964 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_submit_repair_read()
1167 int num_copies = btrfs_num_copies(fs_info, stripe->bg->start, in scrub_stripe_read_repair_worker()
1168 stripe->bg->length); in scrub_stripe_read_repair_worker()
[all …]
H A Dordered-data.h214 const struct btrfs_block_group *bg);
216 const struct btrfs_block_group *bg);
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_geo.c45 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()
/linux/arch/powerpc/kernel/
H A Dbtext.c412 int bg = 0x00000000UL; in draw_byte_32() local
417 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
418 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
419 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
420 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
421 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
422 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32()
423 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32()
424 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
433 int bg = 0x00000000UL; in draw_byte_16() local
[all …]
/linux/drivers/video/fbdev/
H A Datafb_utils.h269 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()
H A 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()
/linux/include/trace/events/
H A Dwbt.h92 int step, unsigned long window, unsigned int bg,
95 TP_ARGS(bdi, msg, step, window, bg, normal, max),
102 __field(unsigned int, bg)
113 __entry->bg = bg;
120 __entry->bg, __entry->normal, __entry->max)
/linux/tools/perf/ui/
H A Dbrowser.c534 const char *name, *fg, *bg; member
541 .bg = "default",
547 .bg = "default",
553 .bg = "default",
559 .bg = "yellow",
565 .bg = "default",
571 .bg = "default",
577 .bg = "blue",
588 char *fg = NULL, *bg; in ui_browser__color_config() local
605 bg = strchr(fg, ','); in ui_browser__color_config()
[all …]
/linux/drivers/edac/
H A Dal_mc_edac.c65 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()
/linux/drivers/video/fbdev/savage/
H A 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()
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c151 struct fcoe_percpu_s *bg; in bnx2fc_clean_rx_queue() local
156 bg = &bnx2fc_global; in bnx2fc_clean_rx_queue()
157 spin_lock_bh(&bg->fcoe_rx_list.lock); in bnx2fc_clean_rx_queue()
158 list = &bg->fcoe_rx_list; in bnx2fc_clean_rx_queue()
166 spin_unlock_bh(&bg->fcoe_rx_list.lock); in bnx2fc_clean_rx_queue()
431 struct fcoe_percpu_s *bg; in bnx2fc_rcv() local
465 bg = &bnx2fc_global; in bnx2fc_rcv()
466 spin_lock(&bg->fcoe_rx_list.lock); in bnx2fc_rcv()
468 __skb_queue_tail(&bg->fcoe_rx_list, skb); in bnx2fc_rcv()
469 if (bg->fcoe_rx_list.qlen == 1) in bnx2fc_rcv()
[all …]
/linux/drivers/video/fbdev/i810/
H A 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()
/linux/drivers/video/fbdev/core/
H A Dbitblit.c62 int sx, int height, int width, int fg, int bg) in bit_clear() argument
66 region.color = bg; in bit_clear()
152 int fg, int bg) in bit_putcs() argument
165 image.bg_color = bg; in bit_putcs()
261 int fg, int bg) in bit_cursor() argument
300 par->cursor_state.image.bg_color != bg || in bit_cursor()
303 par->cursor_state.image.bg_color = bg; in bit_cursor()
/linux/arch/sparc/lib/
H A Dstrncmp_32.S89 bg,a 0b
114 bg,a 9b
/linux/drivers/video/fbdev/nvidia/
H A Dnv_accel.c356 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()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_combios.c850 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()
867 p_dac->ps2_pdac_adj = (bg << 8) | (dac); in radeon_combios_get_primary_dac_info()
869 bg = RBIOS8(dac_info + 0x2) & 0xf; in radeon_combios_get_primary_dac_info()
871 p_dac->ps2_pdac_adj = (bg << 8) | (dac); 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()
1016 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
1018 bg = RBIOS8(dac_info + 0xe) & 0xf; in radeon_combios_get_tv_dac_info()
[all …]
/linux/drivers/staging/sm750fb/
H A Dsm750_cursor.c75 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()
/linux/drivers/video/fbdev/aty/
H A Dmach64_accel.c356 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()
/linux/drivers/video/console/
H A Dsticon.c324 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()

123