Home
last modified time | relevance | path

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

12345

/linux-6.15/drivers/greybus/
H A Dgb-beagleplay.c288 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()
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()
1080 devm_gpiod_put(&bg->sd->dev, bg->rst_gpio); in gb_fw_init()
[all …]
/linux-6.15/drivers/gpio/
H A Dgpio-bt8xx.c141 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 …]
/linux-6.15/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()
256 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
265 int bg = 0x00000000UL; in draw_byte_16() local
271 base[0] = (eb[bits >> 6] & fg) ^ bg; in draw_byte_16()
274 base[3] = (eb[bits & 3] & fg) ^ bg; in draw_byte_16()
283 int bg = 0x00000000UL; in draw_byte_8() local
289 base[0] = (eb[bits >> 4] & fg) ^ bg; in draw_byte_8()
[all …]
/linux-6.15/fs/btrfs/
H A Dblock-group.c321 if (!bg) in btrfs_inc_nocow_writers()
325 if (bg->ro) in btrfs_inc_nocow_writers()
337 return bg; in btrfs_inc_nocow_writers()
371 ASSERT(bg); in btrfs_dec_block_group_reservations()
838 bg->start + bg->length - 1, EXTENT_UPTODATE); in btrfs_free_excluded_extents()
1867 if (bg->reserved || bg->pinned || bg->ro) { in btrfs_reclaim_bgs_work()
1909 if (!should_reclaim_block_group(bg, bg->length)) { in btrfs_reclaim_bgs_work()
2327 if (!bg) { in check_chunk_block_group_mappings()
2342 bg->start, bg->length, in check_chunk_block_group_mappings()
2487 if (!bg) { in fill_dummy_bgs()
[all …]
H A Dblock-group.h274 static inline bool btrfs_is_block_group_used(const struct btrfs_block_group *bg) in btrfs_is_block_group_used() argument
276 lockdep_assert_held(&bg->lock); in btrfs_is_block_group_used()
278 return (bg->used > 0 || bg->reserved > 0 || bg->pinned > 0); in btrfs_is_block_group_used()
305 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg);
308 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg);
309 void btrfs_wait_nocow_writers(struct btrfs_block_group *bg);
323 void btrfs_mark_bg_unused(struct btrfs_block_group *bg);
326 void btrfs_mark_bg_to_reclaim(struct btrfs_block_group *bg);
382 bool btrfs_inc_block_group_swap_extents(struct btrfs_block_group *bg);
386 int btrfs_use_block_group_size_class(struct btrfs_block_group *bg,
[all …]
H A Dzoned.c1390 btrfs_err(bg->fs_info, in btrfs_load_block_group_single()
1418 btrfs_err(bg->fs_info, in btrfs_load_block_group_dup()
2423 btrfs_zone_finish_endio(bg->fs_info, bg->start, bg->length); in btrfs_zone_finish_endio_workfn()
2431 eb->start + eb->len * 2 <= bg->start + bg->zone_capacity) in btrfs_schedule_zone_finish_bg()
2436 bg->start); in btrfs_schedule_zone_finish_bg()
2443 bg->last_eb = eb; in btrfs_schedule_zone_finish_bg()
2728 if (btrfs_is_block_group_used(bg) || bg->zone_unusable < bg->length) { in btrfs_reset_unused_block_groups()
2772 spin_lock(&bg->lock); in btrfs_reset_unused_block_groups()
2774 if (bg->ro) { in btrfs_reset_unused_block_groups()
2781 bg->zone_unusable = bg->length - bg->zone_capacity; in btrfs_reset_unused_block_groups()
[all …]
H A Dscrub.c1553 ASSERT(logical_start >= bg->start && logical_end <= bg->start + bg->length); in scrub_find_fill_first_stripe()
1575 bg->start; in scrub_find_fill_first_stripe()
1578 stripe->bg = bg; in scrub_find_fill_first_stripe()
1657 ASSERT(stripe->bg); in stripe_length()
1660 stripe->bg->start + stripe->bg->length - stripe->logical); in stripe_length()
2129 ASSERT(logical_start >= bg->start && logical_end <= bg->start + bg->length); in scrub_simple_mirror()
2203 bg->start; in simple_stripe_get_logical()
2231 while (cur_logical < bg->start + bg->length) { in scrub_simple_stripe()
2300 sctx->raid56_data_stripes[i].bg = bg; in scrub_stripe()
2321 ret = scrub_simple_mirror(sctx, bg, bg->start, bg->length, in scrub_stripe()
[all …]
H A Dzoned.h88 void btrfs_schedule_zone_finish_bg(struct btrfs_block_group *bg,
90 void btrfs_clear_data_reloc_bg(struct btrfs_block_group *bg);
239 static inline void btrfs_schedule_zone_finish_bg(struct btrfs_block_group *bg, in btrfs_schedule_zone_finish_bg() argument
242 static inline void btrfs_clear_data_reloc_bg(struct btrfs_block_group *bg) { } in btrfs_clear_data_reloc_bg() argument
380 static inline void btrfs_clear_treelog_bg(struct btrfs_block_group *bg) in btrfs_clear_treelog_bg() argument
382 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_clear_treelog_bg()
388 if (fs_info->treelog_bg == bg->start) in btrfs_clear_treelog_bg()
409 static inline bool btrfs_zoned_bg_is_full(const struct btrfs_block_group *bg) in btrfs_zoned_bg_is_full() argument
411 ASSERT(btrfs_is_zoned(bg->fs_info)); in btrfs_zoned_bg_is_full()
412 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
/linux-6.15/fs/ocfs2/
H A Dsuballoc.c391 bg->bg_free_bits_count = cpu_to_le16(le16_to_cpu(bg->bg_bits) - 1); in ocfs2_block_group_fill()
553 struct ocfs2_group_desc *bg; in ocfs2_bg_alloc_cleanup() local
561 el = &bg->bg_list; in ocfs2_bg_alloc_cleanup()
669 struct ocfs2_group_desc *bg; in ocfs2_block_group_alloc() local
1271 if (bg) in ocfs2_test_bg_bit_allocatable()
1318 bitmap = bg->bg_bitmap; in ocfs2_block_group_find_clear_bits()
1399 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { in ocfs2_block_group_set_bits()
1840 if (!bg->bg_next_group) in ocfs2_search_chain()
1916 bg, in ocfs2_search_chain()
2243 bg, in ocfs2_claim_new_inode_at_loc()
[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()
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
492 bg = (struct ocfs2_group_desc *)gd_bh->b_data; in ocfs2_validate_and_adjust_move_goal()
[all …]
/linux-6.15/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-6.15/arch/powerpc/kernel/
H A Dbtext.c411 int bg = 0x00000000UL; in draw_byte_32() local
416 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
417 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
418 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
423 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
432 int bg = 0x00000000UL; in draw_byte_16() local
438 base[0] = (eb[bits >> 6] & fg) ^ bg; in draw_byte_16()
441 base[3] = (eb[bits & 3] & fg) ^ bg; in draw_byte_16()
450 int bg = 0x00000000UL; in draw_byte_8() local
456 base[0] = (eb[bits >> 4] & fg) ^ bg; in draw_byte_8()
[all …]
/linux-6.15/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()
/linux-6.15/drivers/video/fbdev/core/
H A Dtileblit.c35 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()
H A Dfbcon.h58 int sx, int height, int width, int fb, int bg);
61 int fg, int bg);
65 bool enable, int fg, int bg);
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()
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()
H A Dfbcon_ccw.c81 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()
H A Dfbcon_cw.c66 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()
/linux-6.15/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-6.15/tools/perf/ui/
H A Dbrowser.c531 .bg = "default",
537 .bg = "default",
543 .bg = "default",
549 .bg = "yellow",
555 .bg = "default",
561 .bg = "default",
567 .bg = "blue",
596 if (bg == NULL) in ui_browser__color_config()
599 *bg = '\0'; in ui_browser__color_config()
600 bg = skip_spaces(bg + 1); in ui_browser__color_config()
[all …]
/linux-6.15/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-6.15/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-6.15/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()
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 …]
/linux-6.15/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-6.15/drivers/video/fbdev/aty/
H A Dmach64_cursor.c131 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()

12345