| /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.c | 330 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers() local 333 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_inc_nocow_writers() 334 if (!bg) in btrfs_inc_nocow_writers() 337 spin_lock(&bg->lock); in btrfs_inc_nocow_writers() 338 if (bg->ro) in btrfs_inc_nocow_writers() 341 atomic_inc(&bg->nocow_writers); in btrfs_inc_nocow_writers() 342 spin_unlock(&bg->lock); in btrfs_inc_nocow_writers() 345 btrfs_put_block_group(bg); in btrfs_inc_nocow_writers() 350 return bg; in btrfs_inc_nocow_writers() 364 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg) in btrfs_dec_nocow_writers() argument [all …]
|
| H A D | zoned.c | 1407 static int btrfs_load_block_group_single(struct btrfs_block_group *bg, in btrfs_load_block_group_single() argument 1412 btrfs_err(bg->fs_info, in btrfs_load_block_group_single() 1418 bg->alloc_offset = info->alloc_offset; in btrfs_load_block_group_single() 1419 bg->zone_capacity = info->capacity; in btrfs_load_block_group_single() 1421 set_bit(BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE, &bg->runtime_flags); in btrfs_load_block_group_single() 1425 static int btrfs_load_block_group_dup(struct btrfs_block_group *bg, in btrfs_load_block_group_dup() argument 1431 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_dup() 1438 bg->zone_capacity = min_not_zero(zone_info[0].capacity, zone_info[1].capacity); in btrfs_load_block_group_dup() 1480 if (unlikely(!btrfs_zone_activate(bg))) in btrfs_load_block_group_dup() 1483 set_bit(BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE, &bg->runtime_flags); in btrfs_load_block_group_dup() [all …]
|
| H A D | scrub.c | 139 struct btrfs_block_group *bg; member 686 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_kaddr() 699 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_paddr() 714 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_metadata() 800 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_sector() 861 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_verify_one_stripe() 893 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_repair_read_endio() 961 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_submit_repair_read() 1164 int num_copies = btrfs_num_copies(fs_info, stripe->bg->start, in scrub_stripe_read_repair_worker() 1165 stripe->bg->length); in scrub_stripe_read_repair_worker() [all …]
|
| H A D | relocation.c | 3941 struct btrfs_block_group *bg, s64 diff) in adjust_block_group_remap_bytes() argument 3947 spin_lock(&bg->lock); in adjust_block_group_remap_bytes() 3948 bg->remap_bytes += diff; in adjust_block_group_remap_bytes() 3949 if (bg->used == 0 && bg->remap_bytes == 0) in adjust_block_group_remap_bytes() 3951 spin_unlock(&bg->lock); in adjust_block_group_remap_bytes() 3954 btrfs_mark_bg_unused(bg); in adjust_block_group_remap_bytes() 3957 if (list_empty(&bg->dirty_list)) { in adjust_block_group_remap_bytes() 3958 list_add_tail(&bg->dirty_list, &trans->transaction->dirty_bgs); in adjust_block_group_remap_bytes() 3960 btrfs_get_block_group(bg); in adjust_block_group_remap_bytes() 4151 struct btrfs_block_group *bg, u64 new_addr, in move_existing_remap() argument [all …]
|
| H A D | delayed-ref.c | 1307 struct btrfs_block_group *bg; in btrfs_destroy_delayed_refs() local 1309 bg = btrfs_lookup_block_group(fs_info, head->bytenr); in btrfs_destroy_delayed_refs() 1310 if (WARN_ON_ONCE(bg == NULL)) { in btrfs_destroy_delayed_refs() 1321 spin_lock(&bg->space_info->lock); in btrfs_destroy_delayed_refs() 1322 spin_lock(&bg->lock); in btrfs_destroy_delayed_refs() 1323 bg->pinned += head->num_bytes; in btrfs_destroy_delayed_refs() 1324 btrfs_space_info_update_bytes_pinned(bg->space_info, in btrfs_destroy_delayed_refs() 1326 bg->reserved -= head->num_bytes; in btrfs_destroy_delayed_refs() 1327 bg->space_info->bytes_reserved -= head->num_bytes; in btrfs_destroy_delayed_refs() 1328 spin_unlock(&bg->lock); in btrfs_destroy_delayed_refs() [all …]
|
| /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/fs/ocfs2/ |
| H A D | suballoc.c | 109 static inline int ocfs2_block_group_reasonably_empty(struct ocfs2_group_desc *bg, 392 struct ocfs2_group_desc *bg, in ocfs2_bg_discontig_add_extent() argument 396 struct ocfs2_extent_list *el = &bg->bg_list; in ocfs2_bg_discontig_add_extent() 404 rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / in ocfs2_bg_discontig_add_extent() 407 le16_add_cpu(&bg->bg_bits, clusters * le16_to_cpu(cl->cl_bpc)); in ocfs2_bg_discontig_add_extent() 408 le16_add_cpu(&bg->bg_free_bits_count, in ocfs2_bg_discontig_add_extent() 423 struct ocfs2_group_desc *bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_block_group_fill() local 443 memset(bg, 0, sb->s_blocksize); in ocfs2_block_group_fill() 444 strscpy(bg->bg_signature, OCFS2_GROUP_DESC_SIGNATURE); in ocfs2_block_group_fill() 445 bg->bg_generation = cpu_to_le32(osb->fs_generation); in ocfs2_block_group_fill() [all …]
|
| H A D | move_extents.c | 382 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 D | ioctl.c | 442 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/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 | 534 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 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/scsi/bnx2fc/ |
| H 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() 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 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 | 62 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/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/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/arch/sparc/lib/ |
| H A D | strncmp_32.S | 89 bg,a 0b 114 bg,a 9b
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_combios.c | 850 uint8_t rev, bg, dac; in radeon_combios_get_primary_dac_info() local 864 bg = RBIOS8(dac_info + 0x2) & 0xf; in radeon_combios_get_primary_dac_info() 866 p_dac->ps2_pdac_adj = (bg << 8) | (dac); in radeon_combios_get_primary_dac_info() 868 bg = RBIOS8(dac_info + 0x2) & 0xf; in radeon_combios_get_primary_dac_info() 870 p_dac->ps2_pdac_adj = (bg << 8) | (dac); in radeon_combios_get_primary_dac_info() 873 if ((dac == 0) || (bg == 0)) in radeon_combios_get_primary_dac_info() 1000 uint8_t rev, bg, dac; in radeon_combios_get_tv_dac_info() local 1013 bg = RBIOS8(dac_info + 0xc) & 0xf; in radeon_combios_get_tv_dac_info() 1015 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info() 1017 bg = RBIOS8(dac_info + 0xe) & 0xf; in radeon_combios_get_tv_dac_info() [all …]
|