Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/gpio/
H A Dgpio-bt8xx.c60 #define bgwrite(dat, adr) writel((dat), bg->mmio+(adr))
61 #define bgread(adr) readl(bg->mmio+(adr))
71 struct bt8xxgpio *bg = gpiochip_get_data(gpio); in bt8xxgpio_gpio_direction_input() local
75 spin_lock_irqsave(&bg->lock, flags); in bt8xxgpio_gpio_direction_input()
85 spin_unlock_irqrestore(&bg->lock, flags); in bt8xxgpio_gpio_direction_input()
92 struct bt8xxgpio *bg = gpiochip_get_data(gpio); in bt8xxgpio_gpio_get() local
96 spin_lock_irqsave(&bg->lock, flags); in bt8xxgpio_gpio_get()
98 spin_unlock_irqrestore(&bg->lock, flags); in bt8xxgpio_gpio_get()
106 struct bt8xxgpio *bg = gpiochip_get_data(gpio); in bt8xxgpio_gpio_direction_output() local
110 spin_lock_irqsave(&bg->lock, flags); in bt8xxgpio_gpio_direction_output()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dbtext.c246 int bg = 0x00000000UL; in draw_byte_32() local
251 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
252 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
253 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
254 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
255 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
256 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32()
257 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32()
258 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
267 int bg = 0x00000000UL; in draw_byte_16() local
[all …]
/openbmc/linux/fs/btrfs/
H A Dblock-group.c319 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers() local
322 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_inc_nocow_writers()
323 if (!bg) in btrfs_inc_nocow_writers()
326 spin_lock(&bg->lock); in btrfs_inc_nocow_writers()
327 if (bg->ro) in btrfs_inc_nocow_writers()
330 atomic_inc(&bg->nocow_writers); in btrfs_inc_nocow_writers()
331 spin_unlock(&bg->lock); in btrfs_inc_nocow_writers()
334 btrfs_put_block_group(bg); in btrfs_inc_nocow_writers()
339 return bg; in btrfs_inc_nocow_writers()
353 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg) in btrfs_dec_nocow_writers() argument
[all …]
H A Dblock-group.h258 static inline bool btrfs_is_block_group_used(const struct btrfs_block_group *bg) in btrfs_is_block_group_used() argument
260 lockdep_assert_held(&bg->lock); in btrfs_is_block_group_used()
262 return (bg->used > 0 || bg->reserved > 0 || bg->pinned > 0); in btrfs_is_block_group_used()
290 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg);
293 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg);
294 void btrfs_wait_nocow_writers(struct btrfs_block_group *bg);
309 void btrfs_mark_bg_unused(struct btrfs_block_group *bg);
312 void btrfs_mark_bg_to_reclaim(struct btrfs_block_group *bg);
368 bool btrfs_inc_block_group_swap_extents(struct btrfs_block_group *bg);
369 void btrfs_dec_block_group_swap_extents(struct btrfs_block_group *bg, int amount);
[all …]
H A Dscrub.c110 struct btrfs_block_group *bg; member
585 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_page()
594 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_page_offset()
601 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_metadata()
692 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_sector()
754 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_stripe()
787 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_repair_read_endio()
821 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_submit_repair_read()
1014 int num_copies = btrfs_num_copies(fs_info, stripe->bg->start, in scrub_stripe_read_repair_worker()
1015 stripe->bg->length); in scrub_stripe_read_repair_worker()
[all …]
H A Dzoned.h76 void btrfs_schedule_zone_finish_bg(struct btrfs_block_group *bg,
78 void btrfs_clear_data_reloc_bg(struct btrfs_block_group *bg);
233 static inline void btrfs_schedule_zone_finish_bg(struct btrfs_block_group *bg, in btrfs_schedule_zone_finish_bg() argument
236 static inline void btrfs_clear_data_reloc_bg(struct btrfs_block_group *bg) { } in btrfs_clear_data_reloc_bg() argument
368 static inline void btrfs_clear_treelog_bg(struct btrfs_block_group *bg) in btrfs_clear_treelog_bg() argument
370 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_clear_treelog_bg()
376 if (fs_info->treelog_bg == bg->start) in btrfs_clear_treelog_bg()
397 static inline bool btrfs_zoned_bg_is_full(const struct btrfs_block_group *bg) in btrfs_zoned_bg_is_full() argument
399 ASSERT(btrfs_is_zoned(bg->fs_info)); in btrfs_zoned_bg_is_full()
400 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
H A Dzoned.c1384 static int btrfs_load_block_group_single(struct btrfs_block_group *bg, in btrfs_load_block_group_single() argument
1389 btrfs_err(bg->fs_info, in btrfs_load_block_group_single()
1395 bg->alloc_offset = info->alloc_offset; in btrfs_load_block_group_single()
1396 bg->zone_capacity = info->capacity; in btrfs_load_block_group_single()
1398 set_bit(BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE, &bg->runtime_flags); in btrfs_load_block_group_single()
1402 static int btrfs_load_block_group_dup(struct btrfs_block_group *bg, in btrfs_load_block_group_dup() argument
1408 btrfs_err(bg->fs_info, in btrfs_load_block_group_dup()
1414 btrfs_err(bg->fs_info, in btrfs_load_block_group_dup()
1420 btrfs_err(bg->fs_info, in btrfs_load_block_group_dup()
1426 btrfs_err(bg->fs_info, in btrfs_load_block_group_dup()
[all …]
/openbmc/linux/fs/ocfs2/
H A Dsuballoc.c104 static inline int ocfs2_block_group_reasonably_empty(struct ocfs2_group_desc *bg,
319 struct ocfs2_group_desc *bg, in ocfs2_bg_discontig_add_extent() argument
323 struct ocfs2_extent_list *el = &bg->bg_list; in ocfs2_bg_discontig_add_extent()
331 rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / in ocfs2_bg_discontig_add_extent()
334 le16_add_cpu(&bg->bg_bits, clusters * le16_to_cpu(cl->cl_bpc)); in ocfs2_bg_discontig_add_extent()
335 le16_add_cpu(&bg->bg_free_bits_count, in ocfs2_bg_discontig_add_extent()
350 struct ocfs2_group_desc *bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_block_group_fill() local
370 memset(bg, 0, sb->s_blocksize); in ocfs2_block_group_fill()
371 strcpy(bg->bg_signature, OCFS2_GROUP_DESC_SIGNATURE); in ocfs2_block_group_fill()
372 bg->bg_generation = cpu_to_le32(osb->fs_generation); in ocfs2_block_group_fill()
[all …]
H A Dmove_extents.c376 struct ocfs2_group_desc *bg; in ocfs2_find_victim_alloc_group() local
415 bg = NULL; in ocfs2_find_victim_alloc_group()
418 if (!bg) in ocfs2_find_victim_alloc_group()
421 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_find_victim_alloc_group()
434 bg = (struct ocfs2_group_desc *)gd_bh->b_data; in ocfs2_find_victim_alloc_group()
436 if (vict_blkno < (le64_to_cpu(bg->bg_blkno) + in ocfs2_find_victim_alloc_group()
437 (le16_to_cpu(bg->bg_bits) << bits_per_unit))) { in ocfs2_find_victim_alloc_group()
444 blkno, le16_to_cpu(bg->bg_bits), in ocfs2_find_victim_alloc_group()
449 } while (le64_to_cpu(bg->bg_next_group)); in ocfs2_find_victim_alloc_group()
471 struct ocfs2_group_desc *bg; in ocfs2_validate_and_adjust_move_goal() local
[all …]
/openbmc/qemu/ui/
H A Dvnc-enc-hextile-template.h24 pixel_t bg = 0; in CONCAT() local
41 bg = irow[i]; in CONCAT()
45 if (irow[i] != bg) { in CONCAT()
51 if (irow[i] != bg && irow[i] != fg) { in CONCAT()
54 if (irow[i] == bg) in CONCAT()
71 fg = bg; in CONCAT()
72 bg = tmp; in CONCAT()
75 if (!*has_bg || *last_bg != bg) { in CONCAT()
78 *last_bg = bg; in CONCAT()
122 if (!*has_bg || *last_bg != bg) in CONCAT()
[all …]
H A Dvnc-enc-tight.c349 uint32_t *bg, uint32_t *fg, \
362 *bg = *fg = c0; \
384 *bg = (uint32_t)c0; \
387 *bg = (uint32_t)c1; \
421 size_t count, uint32_t *bg, uint32_t *fg, in tight_fill_palette() argument
437 return tight_fill_palette32(vs, x, y, max, count, bg, fg, palette); in tight_fill_palette()
439 return tight_fill_palette16(vs, x, y, max, count, bg, fg, palette); in tight_fill_palette()
442 return tight_fill_palette8(vs, x, y, max, count, bg, fg, palette); in tight_fill_palette()
492 uint##bpp##_t bg, uint##bpp##_t fg) { \
504 if (*ptr++ != bg) { \
[all …]
/openbmc/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()
/openbmc/linux/arch/powerpc/kernel/
H A Dbtext.c414 int bg = 0x00000000UL; in draw_byte_32() local
419 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
420 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
421 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
422 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
423 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
424 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32()
425 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32()
426 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
435 int bg = 0x00000000UL; in draw_byte_16() local
[all …]
/openbmc/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()
/openbmc/linux/drivers/video/fbdev/core/
H A 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 fg, int bg) in tile_cursor() argument
92 cursor.bg = bg; in tile_cursor()
H A Dfbcon.h61 int fg, int bg);
65 int fg, int bg);
125 int bg; in attr_col_ec() local
142 bg = is_mono01 ? 0 : col; in attr_col_ec()
146 bg = is_mono01 ? col : 0; in attr_col_ec()
149 return is_fg ? fg : bg; in attr_col_ec()
/openbmc/linux/tools/perf/ui/
H A Dbrowser.c524 const char *name, *fg, *bg; member
531 .bg = "default",
537 .bg = "default",
543 .bg = "default",
549 .bg = "yellow",
555 .bg = "default",
561 .bg = "default",
567 .bg = "blue",
578 char *fg = NULL, *bg; in ui_browser__color_config() local
595 bg = strchr(fg, ','); in ui_browser__color_config()
[all …]
/openbmc/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)
/openbmc/u-boot/fs/ext4/
H A Dext4_common.h78 uint64_t ext4fs_bg_get_block_id(const struct ext2_block_group *bg,
80 uint64_t ext4fs_bg_get_inode_id(const struct ext2_block_group *bg,
82 uint64_t ext4fs_bg_get_inode_table_id(const struct ext2_block_group *bg,
86 uint32_t ext4fs_bg_get_free_blocks(const struct ext2_block_group *bg,
H A Dext4_common.c70 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_inodes_dec() argument
72 uint32_t free_inodes = le16_to_cpu(bg->free_inodes); in ext4fs_bg_free_inodes_dec()
74 free_inodes += le16_to_cpu(bg->free_inodes_high) << 16; in ext4fs_bg_free_inodes_dec()
77 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_dec()
79 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_dec()
83 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_blocks_dec() argument
85 uint32_t free_blocks = le16_to_cpu(bg->free_blocks); in ext4fs_bg_free_blocks_dec()
87 free_blocks += le16_to_cpu(bg->free_blocks_high) << 16; in ext4fs_bg_free_blocks_dec()
90 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_dec()
92 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_dec()
[all …]
/openbmc/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()
/openbmc/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()
/openbmc/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 …]
/openbmc/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()
/openbmc/qemu/hw/cxl/
H A Dcxl-mailbox-utils.c628 bg_op_status->status = cci->bg.complete_pct << 1; in cmd_infostat_bg_op_sts()
629 if (cci->bg.runtime > 0) { in cmd_infostat_bg_op_sts()
632 bg_op_status->opcode = cci->bg.opcode; in cmd_infostat_bg_op_sts()
633 bg_op_status->returncode = cci->bg.ret_code; in cmd_infostat_bg_op_sts()
794 cci->bg.runtime = 10 * 1000UL; in cmd_firmware_update_transfer()
796 cci->bg.runtime = 2 * 1000UL; in cmd_firmware_update_transfer()
1613 cci->bg.runtime = secs * 1000UL; in cmd_sanitize_overwrite()
2043 cci->bg.runtime = MAX(1, query_length * (0.0005L / 64)); in cmd_media_scan_media()
2844 cci->bg.runtime > 0) { in cxl_process_cci_message()
2881 cci->bg.opcode = (set << 8) | cmd; in cxl_process_cci_message()
[all …]

123456