| /linux/drivers/greybus/ |
| H A D | gb-beagleplay.c | 204 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/fs/btrfs/ |
| H A D | block-group.h | 294 static inline bool btrfs_is_block_group_used(const struct btrfs_block_group *bg) in btrfs_is_block_group_used() argument 296 lockdep_assert_held(&bg->lock); in btrfs_is_block_group_used() 298 return (bg->used > 0 || bg->reserved > 0 || bg->pinned > 0 || in btrfs_is_block_group_used() 299 bg->remap_bytes > 0); in btrfs_is_block_group_used() 312 static inline u64 btrfs_block_group_available_space(const struct btrfs_block_group *bg) in btrfs_block_group_available_space() argument 314 lockdep_assert_held(&bg->lock); in btrfs_block_group_available_space() 316 return (bg->length - bg->used - bg->pinned - bg->reserved - in btrfs_block_group_available_space() 317 bg->bytes_super - bg->zone_unusable); in btrfs_block_group_available_space() 337 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg); 340 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg); [all …]
|
| H A D | block-group.c | 358 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers() local 361 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_inc_nocow_writers() 362 if (!bg) in btrfs_inc_nocow_writers() 365 spin_lock(&bg->lock); in btrfs_inc_nocow_writers() 366 if (bg->ro) in btrfs_inc_nocow_writers() 369 atomic_inc(&bg->nocow_writers); in btrfs_inc_nocow_writers() 370 spin_unlock(&bg->lock); in btrfs_inc_nocow_writers() 373 btrfs_put_block_group(bg); in btrfs_inc_nocow_writers() 378 return bg; in btrfs_inc_nocow_writers() 392 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg) in btrfs_dec_nocow_writers() argument [all …]
|
| H A D | zoned.c | 1432 static int btrfs_load_block_group_single(struct btrfs_block_group *bg, in btrfs_load_block_group_single() argument 1437 btrfs_err(bg->fs_info, in btrfs_load_block_group_single() 1443 bg->alloc_offset = info->alloc_offset; in btrfs_load_block_group_single() 1444 bg->zone_capacity = info->capacity; in btrfs_load_block_group_single() 1446 set_bit(BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE, &bg->runtime_flags); in btrfs_load_block_group_single() 1450 static int btrfs_load_block_group_dup(struct btrfs_block_group *bg, in btrfs_load_block_group_dup() argument 1456 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_dup() 1463 bg->zone_capacity = min_not_zero(zone_info[0].capacity, zone_info[1].capacity); in btrfs_load_block_group_dup() 1505 if (unlikely(!btrfs_zone_activate(bg))) in btrfs_load_block_group_dup() 1508 set_bit(BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE, &bg->runtime_flags); in btrfs_load_block_group_dup() [all …]
|
| H A D | scrub.c | 131 struct btrfs_block_group *bg; member 689 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_metadata() 758 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_sector() 819 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_stripe() 833 const struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in calc_sector_number() 853 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_read_endio_common() 941 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_submit_repair_read() 1148 int num_copies = btrfs_num_copies(fs_info, stripe->bg->start, in scrub_stripe_read_repair_worker() 1149 stripe->bg->length); in scrub_stripe_read_repair_worker() 1215 * in-place, but queue the bg t in scrub_stripe_read_repair_worker() 1623 scrub_find_fill_first_stripe(struct btrfs_block_group * bg,struct btrfs_path * extent_path,struct btrfs_path * csum_path,struct btrfs_device * dev,u64 physical,int mirror_num,u64 logical_start,u32 logical_len,struct scrub_stripe * stripe) scrub_find_fill_first_stripe() argument 1997 queue_scrub_stripe(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_device * dev,int mirror_num,u64 logical,u32 length,u64 physical,u64 * found_logical_ret) queue_scrub_stripe() argument 2129 scrub_raid56_parity_stripe(struct scrub_ctx * sctx,struct btrfs_device * scrub_dev,struct btrfs_block_group * bg,struct btrfs_chunk_map * map,u64 full_stripe_start) scrub_raid56_parity_stripe() argument 2271 scrub_simple_mirror(struct scrub_ctx * sctx,struct btrfs_block_group * bg,u64 logical_start,u64 logical_length,struct btrfs_device * device,u64 physical,int mirror_num) scrub_simple_mirror() argument 2339 simple_stripe_get_logical(struct btrfs_chunk_map * map,struct btrfs_block_group * bg,int stripe_index) simple_stripe_get_logical() argument 2366 scrub_simple_stripe(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_chunk_map * map,struct btrfs_device * device,int stripe_index) scrub_simple_stripe() argument 2400 scrub_stripe(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_chunk_map * map,struct btrfs_device * scrub_dev,int stripe_index) scrub_stripe() argument 2562 scrub_chunk(struct scrub_ctx * sctx,struct btrfs_block_group * bg,struct btrfs_device * scrub_dev,u64 dev_offset,u64 dev_extent_len) scrub_chunk() argument [all...] |
| H A D | relocation.c | 4056 struct btrfs_block_group *bg, s64 diff) in adjust_block_group_remap_bytes() argument 4062 spin_lock(&bg->lock); in adjust_block_group_remap_bytes() 4063 bg->remap_bytes += diff; in adjust_block_group_remap_bytes() 4064 if (bg->used == 0 && bg->remap_bytes == 0) in adjust_block_group_remap_bytes() 4066 spin_unlock(&bg->lock); in adjust_block_group_remap_bytes() 4069 btrfs_mark_bg_unused(bg); in adjust_block_group_remap_bytes() 4072 if (list_empty(&bg->dirty_list)) { in adjust_block_group_remap_bytes() 4073 list_add_tail(&bg->dirty_list, &trans->transaction->dirty_bgs); in adjust_block_group_remap_bytes() 4075 btrfs_get_block_group(bg); in adjust_block_group_remap_bytes() 4266 struct btrfs_block_group *bg, u64 new_addr, in move_existing_remap() argument [all …]
|
| H A D | extent-tree.c | 2677 struct btrfs_block_group *bg; in first_logical_byte() local 2679 bg = rb_entry(leftmost, struct btrfs_block_group, cache_node); in first_logical_byte() 2680 bytenr = bg->start; in first_logical_byte() 2688 struct btrfs_block_group *bg, in pin_down_extent() argument 2691 struct btrfs_space_info *space_info = bg->space_info; in pin_down_extent() 2695 spin_lock(&bg->lock); in pin_down_extent() 2696 bg->pinned += num_bytes; in pin_down_extent() 2697 bg->reserved -= reserved_bytes; in pin_down_extent() 2698 spin_unlock(&bg->lock); in pin_down_extent() 2801 btrfs_inc_block_group_reservations(struct btrfs_block_group *bg) in btrfs_inc_block_group_reservations() argument [all …]
|
| H A D | free-space-tree.c | 798 static int using_bitmaps(struct btrfs_block_group *bg, struct btrfs_path *path) in using_bitmaps() argument 803 if (bg->using_free_space_bitmaps_cached) in using_bitmaps() 804 return bg->using_free_space_bitmaps; in using_bitmaps() 806 info = btrfs_search_free_space_info(NULL, bg, path, 0); in using_bitmaps() 812 bg->using_free_space_bitmaps = (flags & BTRFS_FREE_SPACE_USING_BITMAPS); in using_bitmaps() 813 bg->using_free_space_bitmaps_cached = true; in using_bitmaps() 815 return bg->using_free_space_bitmaps; in using_bitmaps() 1268 struct btrfs_block_group *bg; in clear_free_space_tree() local 1270 bg = rb_entry(node, struct btrfs_block_group, cache_node); in clear_free_space_tree() 1271 clear_bit(BLOCK_GROUP_FLAG_FREE_SPACE_ADDED, &bg->runtime_flags); in clear_free_space_tree() [all …]
|
| H A D | space-info.c | 2136 struct btrfs_block_group *bg; in do_reclaim_sweep() local 2148 list_for_each_entry(bg, &space_info->block_groups[raid], list) { in do_reclaim_sweep() 2152 btrfs_get_block_group(bg); in do_reclaim_sweep() 2153 spin_lock(&bg->lock); in do_reclaim_sweep() 2154 thresh = mult_perc(bg->length, thresh_pct); in do_reclaim_sweep() 2155 if (bg->used < thresh && bg->reclaim_mark) { in do_reclaim_sweep() 2159 bg->reclaim_mark = true; in do_reclaim_sweep() 2160 spin_unlock(&bg->lock); in do_reclaim_sweep() 2162 btrfs_mark_bg_to_reclaim(bg); in do_reclaim_sweep() 2163 btrfs_put_block_group(bg); in do_reclaim_sweep()
|
| /linux/arch/sparc/kernel/ |
| H A D | btext.c | 244 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/drivers/net/wireless/intel/ipw2x00/ |
| H 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()
|
| /linux/arch/powerpc/kernel/ |
| H A D | btext.c | 413 int bg = 0x00000000UL; in draw_byte_32() local 418 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32() 419 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32() 420 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32() 421 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32() 422 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32() 423 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32() 424 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32() 425 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32() 434 int bg = 0x00000000UL; in draw_byte_16() local [all …]
|
| /linux/drivers/video/fbdev/ |
| H 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()
|
| H 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()
|
| /linux/include/trace/events/ |
| H A D | wbt.h | 92 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 D | browser.c | 537 const char *name, *fg, *bg; 544 .bg = "default", 550 .bg = "default", 556 .bg = "default", 562 .bg = "yellow", 568 .bg = "default", 574 .bg = "default", 580 .bg = "blue", 591 char *fg = NULL, *bg; in ui_browser__color_config() 608 bg in ui_browser__color_config() 534 const char *name, *fg, *bg; global() member 588 char *fg = NULL, *bg; ui_browser__color_config() local [all...] |
| /linux/drivers/edac/ |
| H 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()
|
| /linux/drivers/video/fbdev/savage/ |
| H 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()
|
| /linux/drivers/video/fbdev/i810/ |
| H 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()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | bitblit.c | 61 int sx, int height, int width, int fg, int bg) in bit_clear() argument 65 region.color = bg; in bit_clear() 151 int fg, int bg) in bit_putcs() argument 164 image.bg_color = bg; in bit_putcs() 260 int fg, int bg) in bit_cursor() argument 304 par->cursor_state.image.bg_color != bg || in bit_cursor() 307 par->cursor_state.image.bg_color = bg; in bit_cursor()
|
| /linux/drivers/media/dvb-frontends/ |
| H 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()
|
| /linux/arch/sparc/lib/ |
| H A D | strncmp_32.S | 89 bg,a 0b 114 bg,a 9b
|
| /linux/drivers/video/fbdev/nvidia/ |
| H 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()
|
| /linux/drivers/video/fbdev/aty/ |
| H 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()
|
| /linux/fs/ext4/ |
| H A D | super.c | 329 struct ext4_group_desc *bg) in ext4_block_bitmap() argument 331 return le32_to_cpu(bg->bg_block_bitmap_lo) | in ext4_block_bitmap() 333 (ext4_fsblk_t)le32_to_cpu(bg->bg_block_bitmap_hi) << 32 : 0); in ext4_block_bitmap() 337 struct ext4_group_desc *bg) in ext4_inode_bitmap() argument 339 return le32_to_cpu(bg->bg_inode_bitmap_lo) | in ext4_inode_bitmap() 341 (ext4_fsblk_t)le32_to_cpu(bg->bg_inode_bitmap_hi) << 32 : 0); in ext4_inode_bitmap() 345 struct ext4_group_desc *bg) in ext4_inode_table() argument 347 return le32_to_cpu(bg->bg_inode_table_lo) | in ext4_inode_table() 349 (ext4_fsblk_t)le32_to_cpu(bg->bg_inode_table_hi) << 32 : 0); in ext4_inode_table() 353 struct ext4_group_desc *bg) in ext4_free_group_clusters() argument 361 ext4_free_inodes_count(struct super_block * sb,struct ext4_group_desc * bg) ext4_free_inodes_count() argument 369 ext4_used_dirs_count(struct super_block * sb,struct ext4_group_desc * bg) ext4_used_dirs_count() argument 377 ext4_itable_unused_count(struct super_block * sb,struct ext4_group_desc * bg) ext4_itable_unused_count() argument 385 ext4_block_bitmap_set(struct super_block * sb,struct ext4_group_desc * bg,ext4_fsblk_t blk) ext4_block_bitmap_set() argument 393 ext4_inode_bitmap_set(struct super_block * sb,struct ext4_group_desc * bg,ext4_fsblk_t blk) ext4_inode_bitmap_set() argument 401 ext4_inode_table_set(struct super_block * sb,struct ext4_group_desc * bg,ext4_fsblk_t blk) ext4_inode_table_set() argument 409 ext4_free_group_clusters_set(struct super_block * sb,struct ext4_group_desc * bg,__u32 count) ext4_free_group_clusters_set() argument 417 ext4_free_inodes_set(struct super_block * sb,struct ext4_group_desc * bg,__u32 count) ext4_free_inodes_set() argument 425 ext4_used_dirs_set(struct super_block * sb,struct ext4_group_desc * bg,__u32 count) ext4_used_dirs_set() argument 433 ext4_itable_unused_set(struct super_block * sb,struct ext4_group_desc * bg,__u32 count) ext4_itable_unused_set() argument 3572 ext4_group_t bg, first_meta_bg; descriptor_loc() local [all...] |