/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_page_dirty.c | 85 struct vmw_bo_dirty *dirty = vbo->dirty; in vmw_bo_dirty_scan_pagetable() local 92 offset, dirty->bitmap_size, in vmw_bo_dirty_scan_pagetable() 93 offset, &dirty->bitmap[0], in vmw_bo_dirty_scan_pagetable() 94 &dirty->start, &dirty->end); in vmw_bo_dirty_scan_pagetable() 96 dirty->change_count++; in vmw_bo_dirty_scan_pagetable() 98 dirty->change_count = 0; in vmw_bo_dirty_scan_pagetable() 100 if (dirty->change_count > VMW_DIRTY_NUM_CHANGE_TRIGGERS) { in vmw_bo_dirty_scan_pagetable() 101 dirty->change_count = 0; in vmw_bo_dirty_scan_pagetable() 102 dirty->method = VMW_BO_DIRTY_MKWRITE; in vmw_bo_dirty_scan_pagetable() 104 offset, dirty->bitmap_size); in vmw_bo_dirty_scan_pagetable() [all …]
|
D | vmwgfx_fb.c | 65 } dirty; member 190 if (!READ_ONCE(par->dirty.active)) in vmw_fb_dirty_flush() 204 spin_lock_irqsave(&par->dirty.lock, irq_flags); in vmw_fb_dirty_flush() 205 if (!par->dirty.active) { in vmw_fb_dirty_flush() 206 spin_unlock_irqrestore(&par->dirty.lock, irq_flags); in vmw_fb_dirty_flush() 218 dst_x1 = par->dirty.x1 - par->fb_x; in vmw_fb_dirty_flush() 219 dst_y1 = par->dirty.y1 - par->fb_y; in vmw_fb_dirty_flush() 223 dst_x2 = par->dirty.x2 - par->fb_x; in vmw_fb_dirty_flush() 224 dst_y2 = par->dirty.y2 - par->fb_y; in vmw_fb_dirty_flush() 232 par->dirty.x1 = par->dirty.x2 = 0; in vmw_fb_dirty_flush() [all …]
|
D | vmwgfx_scrn.c | 1024 static void vmw_sou_surface_fifo_commit(struct vmw_kms_dirty *dirty) in vmw_sou_surface_fifo_commit() argument 1027 container_of(dirty, typeof(*sdirty), base); in vmw_sou_surface_fifo_commit() 1028 struct vmw_kms_sou_dirty_cmd *cmd = dirty->cmd; in vmw_sou_surface_fifo_commit() 1029 s32 trans_x = dirty->unit->crtc.x - sdirty->dst_x; in vmw_sou_surface_fifo_commit() 1030 s32 trans_y = dirty->unit->crtc.y - sdirty->dst_y; in vmw_sou_surface_fifo_commit() 1031 size_t region_size = dirty->num_hits * sizeof(SVGASignedRect); in vmw_sou_surface_fifo_commit() 1035 if (!dirty->num_hits) { in vmw_sou_surface_fifo_commit() 1036 vmw_fifo_commit(dirty->dev_priv, 0); in vmw_sou_surface_fifo_commit() 1058 cmd->body.destScreenId = dirty->unit->unit; in vmw_sou_surface_fifo_commit() 1061 for (i = 0; i < dirty->num_hits; ++i, ++blit) { in vmw_sou_surface_fifo_commit() [all …]
|
D | vmwgfx_stdu.c | 454 static void vmw_stdu_bo_clip(struct vmw_kms_dirty *dirty) in vmw_stdu_bo_clip() argument 457 container_of(dirty, struct vmw_stdu_dirty, base); in vmw_stdu_bo_clip() 458 struct vmw_stdu_dma *cmd = dirty->cmd; in vmw_stdu_bo_clip() 461 blit += dirty->num_hits; in vmw_stdu_bo_clip() 462 blit->srcx = dirty->fb_x; in vmw_stdu_bo_clip() 463 blit->srcy = dirty->fb_y; in vmw_stdu_bo_clip() 464 blit->x = dirty->unit_x1; in vmw_stdu_bo_clip() 465 blit->y = dirty->unit_y1; in vmw_stdu_bo_clip() 467 blit->w = dirty->unit_x2 - dirty->unit_x1; in vmw_stdu_bo_clip() 468 blit->h = dirty->unit_y2 - dirty->unit_y1; in vmw_stdu_bo_clip() [all …]
|
D | vmwgfx_surface.c | 669 WARN_ON_ONCE(res->dirty); in vmw_user_surface_free() 1238 if (res->backup->dirty && res->backup_dirty) { in vmw_gb_surface_bind() 1722 static void vmw_subres_dirty_add(struct vmw_surface_dirty *dirty, in vmw_subres_dirty_add() argument 1726 const struct svga3dsurface_cache *cache = &dirty->cache; in vmw_subres_dirty_add() 1727 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource]; in vmw_subres_dirty_add() 1732 if (WARN_ON(loc_start->sub_resource >= dirty->num_subres)) in vmw_subres_dirty_add() 1770 static void vmw_subres_dirty_full(struct vmw_surface_dirty *dirty, u32 subres) in vmw_subres_dirty_full() argument 1772 const struct svga3dsurface_cache *cache = &dirty->cache; in vmw_subres_dirty_full() 1775 SVGA3dBox *box = &dirty->boxes[subres]; in vmw_subres_dirty_full() 1792 struct vmw_surface_dirty *dirty = in vmw_surface_tex_dirty_range_add() local [all …]
|
D | vmwgfx_kms.c | 882 .dirty = drm_atomic_helper_dirtyfb, 1061 .dirty = vmw_framebuffer_bo_dirty_ext, 2355 struct vmw_kms_dirty *dirty) in vmw_kms_helper_dirty() argument 2362 dirty->dev_priv = dev_priv; in vmw_kms_helper_dirty() 2365 if (dirty->crtc) { in vmw_kms_helper_dirty() 2366 units[num_units++] = vmw_crtc_to_du(dirty->crtc); in vmw_kms_helper_dirty() 2386 dirty->unit = unit; in vmw_kms_helper_dirty() 2387 if (dirty->fifo_reserve_size > 0) { in vmw_kms_helper_dirty() 2388 dirty->cmd = VMW_FIFO_RESERVE(dev_priv, in vmw_kms_helper_dirty() 2389 dirty->fifo_reserve_size); in vmw_kms_helper_dirty() [all …]
|
D | vmwgfx_validation.c | 82 u32 dirty : 1; member 316 u32 dirty, in vmw_validation_add_resource() argument 367 if (dirty) { in vmw_validation_add_resource() 370 node->dirty = (dirty & VMW_RES_DIRTY_SET) ? 1 : 0; in vmw_validation_add_resource() 390 void *val_private, u32 dirty) in vmw_validation_res_set_dirty() argument 394 if (!dirty) in vmw_validation_res_set_dirty() 400 val->dirty = (dirty & VMW_RES_DIRTY_SET) ? 1 : 0; in vmw_validation_res_set_dirty() 512 val->dirty, in vmw_validation_res_unreserve() 620 if (vbo->dirty) in vmw_validation_bo_validate() 648 val->dirty); in vmw_validation_res_validate()
|
D | vmwgfx_binding.c | 109 unsigned long dirty; member 762 unsigned long *dirty, in vmw_collect_dirty_view_ids() argument 770 i = find_first_bit(dirty, max_num); in vmw_collect_dirty_view_ids() 781 next_bit = find_next_bit(dirty, max_num, i + 1); in vmw_collect_dirty_view_ids() 960 if (!test_bit(VMW_BINDING_PS_SR_BIT, &sb->dirty)) in vmw_binding_emit_dirty_ps() 967 __clear_bit(VMW_BINDING_PS_SR_BIT, &sb->dirty); in vmw_binding_emit_dirty_ps() 990 unsigned long *dirty, in vmw_collect_dirty_vbs() argument 999 i = find_first_bit(dirty, max_num); in vmw_collect_dirty_vbs() 1016 next_bit = find_next_bit(dirty, max_num, i + 1); in vmw_collect_dirty_vbs() 1139 while ((hit = find_next_bit(&cbs->dirty, VMW_BINDING_NUM_BITS, hit)) in vmw_binding_emit_dirty() [all …]
|
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
D | cthw20k1.c | 101 union src_dirty dirty; member 124 union src_mgr_dirty dirty; member 148 union srcimp_mgr_dirty dirty; member 181 ctl->dirty.bf.ctl = 1; in src_set_state() 190 ctl->dirty.bf.ctl = 1; in src_set_bm() 199 ctl->dirty.bf.ctl = 1; in src_set_rsr() 208 ctl->dirty.bf.ctl = 1; in src_set_sf() 217 ctl->dirty.bf.ctl = 1; in src_set_wr() 226 ctl->dirty.bf.ctl = 1; in src_set_pm() 235 ctl->dirty.bf.ctl = 1; in src_set_rom() [all …]
|
D | cthw20k2.c | 101 union src_dirty dirty; member 124 union src_mgr_dirty dirty; member 148 union srcimp_mgr_dirty dirty; member 181 ctl->dirty.bf.ctl = 1; in src_set_state() 190 ctl->dirty.bf.ctl = 1; in src_set_bm() 199 ctl->dirty.bf.ctl = 1; in src_set_rsr() 208 ctl->dirty.bf.ctl = 1; in src_set_sf() 217 ctl->dirty.bf.ctl = 1; in src_set_wr() 226 ctl->dirty.bf.ctl = 1; in src_set_pm() 235 ctl->dirty.bf.ctl = 1; in src_set_rom() [all …]
|
/kernel/linux/linux-5.10/fs/ubifs/ |
D | lprops.c | 32 return lprops->free + lprops->dirty; in get_heap_comp_val() 34 return lprops->dirty; in get_heap_comp_val() 407 if (lprops->free + lprops->dirty == c->leb_size) { in ubifs_categorize_lprops() 415 if (lprops->dirty + lprops->free >= c->min_idx_node_sz) in ubifs_categorize_lprops() 418 if (lprops->dirty >= c->dead_wm && in ubifs_categorize_lprops() 419 lprops->dirty > lprops->free) in ubifs_categorize_lprops() 522 int free, int dirty, int flags, in ubifs_change_lp() argument 532 lprops->lnum, free, dirty, flags); in ubifs_change_lp() 545 ubifs_assert(c, dirty == LPROPS_NC || dirty >= 0); in ubifs_change_lp() 554 ubifs_assert(c, !(lprops->free & 7) && !(lprops->dirty & 7)); in ubifs_change_lp() [all …]
|
D | find.c | 54 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable() 96 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb() 102 if (lprops->free + lprops->dirty == c->leb_size) { in scan_for_dirty_cb() 106 } else if (lprops->dirty < c->dead_wm) in scan_for_dirty_cb() 137 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty() 139 if (lprops->dirty < c->dead_wm) in scan_for_dirty() 153 if (lprops->free + lprops->dirty < min_space) in scan_for_dirty() 157 if (lprops->dirty < c->dead_wm) in scan_for_dirty() 180 ubifs_assert(c, lprops->free + lprops->dirty >= min_space); in scan_for_dirty() 181 ubifs_assert(c, lprops->dirty >= c->dead_wm || in scan_for_dirty() [all …]
|
D | lpt.c | 353 pack_bits(c, &addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode() 415 pack_bits(c, &addr, &pos, ltab[i].dirty, c->lpt_spc_bits); in ubifs_pack_ltab() 452 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_lpt_dirt() argument 454 if (!dirty || !lnum) in ubifs_add_lpt_dirt() 457 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty); in ubifs_add_lpt_dirt() 459 c->ltab[lnum - c->lpt_first].dirty += dirty; in ubifs_add_lpt_dirt() 469 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in set_ltab() argument 473 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in set_ltab() 476 c->ltab[lnum - c->lpt_first].dirty = dirty; in set_ltab() 644 ltab[i].dirty = 0; in ubifs_create_dflt_lpt() [all …]
|
D | replay.c | 76 int dirty; member 91 int err = 0, dirty; in set_bud_lprops() local 101 dirty = lp->dirty; in set_bud_lprops() 102 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 123 lp->free, lp->dirty); in set_bud_lprops() 125 lp->free, lp->dirty); in set_bud_lprops() 126 dirty -= c->leb_size - lp->free; in set_bud_lprops() 134 if (dirty != 0) in set_bud_lprops() 136 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops() 137 b->dirty); in set_bud_lprops() [all …]
|
/kernel/linux/linux-5.10/Documentation/vm/ |
D | arch_pgtable_helpers.rst | 29 | pte_dirty | Tests a dirty PTE | 39 | pte_soft_dirty | Tests a soft dirty PTE | 41 | pte_swp_soft_dirty | Tests a soft dirty swapped PTE | 47 | pte_mkdirty | Creates a dirty PTE | 59 | pte_mksoft_dirty | Creates a soft dirty PTE | 61 | pte_clear_soft_dirty | Clears a soft dirty PTE | 63 | pte_swp_mksoft_dirty | Creates a soft dirty swapped PTE | 65 | pte_swp_clear_soft_dirty | Clears a soft dirty swapped PTE | 99 | pmd_dirty | Tests a dirty PMD | 109 | pmd_soft_dirty | Tests a soft dirty PMD | [all …]
|
/kernel/linux/linux-5.10/Documentation/admin-guide/mm/ |
D | soft-dirty.rst | 7 The soft-dirty is a bit on a PTE which helps to track which pages a task 10 1. Clear soft-dirty bits from the task's PTEs. 17 3. Read soft-dirty bits from the PTEs. 20 64-bit qword is the soft-dirty one. If set, the respective PTE was 25 when the soft-dirty bit is cleared. So, after this, when the task tries to 27 the soft-dirty bit on the respective PTE. 30 soft-dirty bits clear, the #PF-s that occur after that are processed fast. 32 the kernel does is finds this fact out and puts both writable and soft-dirty 36 there is still a scenario when we can lose soft dirty bits -- a task 39 including soft dirty bits. To notify user space application about such [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mga/ |
D | mga_state.c | 330 unsigned int dirty = sarea_priv->dirty; in mga_g200_emit_state() local 337 if (dirty & MGA_UPLOAD_CONTEXT) { in mga_g200_emit_state() 339 sarea_priv->dirty &= ~MGA_UPLOAD_CONTEXT; in mga_g200_emit_state() 342 if (dirty & MGA_UPLOAD_TEX0) { in mga_g200_emit_state() 344 sarea_priv->dirty &= ~MGA_UPLOAD_TEX0; in mga_g200_emit_state() 351 unsigned int dirty = sarea_priv->dirty; in mga_g400_emit_state() local 359 if (dirty & MGA_UPLOAD_CONTEXT) { in mga_g400_emit_state() 361 sarea_priv->dirty &= ~MGA_UPLOAD_CONTEXT; in mga_g400_emit_state() 364 if (dirty & MGA_UPLOAD_TEX0) { in mga_g400_emit_state() 366 sarea_priv->dirty &= ~MGA_UPLOAD_TEX0; in mga_g400_emit_state() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | page-writeback.c | 133 unsigned long dirty; /* file_dirty + write + nfs */ member 475 unsigned long dirty; in node_dirty_limit() local 478 dirty = DIV_ROUND_UP(vm_dirty_bytes, PAGE_SIZE) * in node_dirty_limit() 481 dirty = vm_dirty_ratio * node_memory / 100; in node_dirty_limit() 484 dirty += dirty / 4; in node_dirty_limit() 486 return dirty; in node_dirty_limit() 725 unsigned long clean = filepages - min(filepages, mdtc->dirty); in mdtc_calc_avail() 726 unsigned long global_clean = gdtc->avail - min(gdtc->avail, gdtc->dirty); in mdtc_calc_avail() 802 unsigned long dirty, in pos_ratio_polynom() argument 808 x = div64_s64(((s64)setpoint - (s64)dirty) << RATELIMIT_CALC_SHIFT, in pos_ratio_polynom() [all …]
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | debug.c | 163 uint32_t free = 0, dirty = 0, used = 0, wasted = 0, in __jffs2_dbg_superblock_counts() local 171 dirty += c->gcblock->dirty_size; in __jffs2_dbg_superblock_counts() 179 dirty += c->nextblock->dirty_size; in __jffs2_dbg_superblock_counts() 187 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 195 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 203 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 211 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 219 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 227 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() 235 dirty += jeb->dirty_size; in __jffs2_dbg_superblock_counts() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/ |
D | gruhandles.c | 158 unsigned long vaddr, int asid, int dirty, in tfh_write_only() argument 165 tfh->dirty = dirty; in tfh_write_only() 174 unsigned long vaddr, int asid, int dirty, in tfh_write_restart() argument 181 tfh->dirty = dirty; in tfh_write_restart()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/r128/ |
D | r128_state.c | 231 unsigned int dirty = sarea_priv->dirty; in r128_emit_state() local 233 DRM_DEBUG("dirty=0x%08x\n", dirty); in r128_emit_state() 235 if (dirty & R128_UPLOAD_CORE) { in r128_emit_state() 237 sarea_priv->dirty &= ~R128_UPLOAD_CORE; in r128_emit_state() 240 if (dirty & R128_UPLOAD_CONTEXT) { in r128_emit_state() 242 sarea_priv->dirty &= ~R128_UPLOAD_CONTEXT; in r128_emit_state() 245 if (dirty & R128_UPLOAD_SETUP) { in r128_emit_state() 247 sarea_priv->dirty &= ~R128_UPLOAD_SETUP; in r128_emit_state() 250 if (dirty & R128_UPLOAD_MASKS) { in r128_emit_state() 252 sarea_priv->dirty &= ~R128_UPLOAD_MASKS; in r128_emit_state() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
D | pgtable.c | 134 int dirty) in set_access_flags_filter() argument 146 if (dirty || pte_exec(pte) || !is_exec_fault()) in set_access_flags_filter() 214 pte_t *ptep, pte_t entry, int dirty) in ptep_set_access_flags() argument 217 entry = set_access_flags_filter(entry, vma, dirty); in ptep_set_access_flags() 230 pte_t pte, int dirty) in huge_ptep_set_access_flags() argument 238 ptep_set_access_flags(vma, addr, ptep, pte, dirty); in huge_ptep_set_access_flags() 243 pte = set_access_flags_filter(pte, vma, dirty); in huge_ptep_set_access_flags()
|
/kernel/linux/linux-5.10/drivers/char/xilinx_hwicap/ |
D | buffer_icap.c | 272 bool dirty = false; in buffer_icap_set_configuration() local 281 dirty = true; in buffer_icap_set_configuration() 300 dirty = false; in buffer_icap_set_configuration() 304 if (dirty) { in buffer_icap_set_configuration()
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-cache-policy-smq.c | 43 bool dirty:1; member 722 e->dirty = true; /* FIXME: audit */ in init_entry() 825 struct queue dirty; member 880 struct queue *q = &mq->dirty; in __update_writeback_sentinels() 926 q_push(&mq->dirty, sentinel); in __sentinels_init() 952 q_del(e->dirty ? &mq->dirty : &mq->clean, e); in del_queue() 957 if (e->dirty) in push_queue() 958 q_push(&mq->dirty, e); in push_queue() 973 if (e->dirty) in push_queue_front() 974 q_push_front(&mq->dirty, e); in push_queue_front() [all …]
|
/kernel/linux/linux-5.10/arch/openrisc/mm/ |
D | cache.c | 47 int dirty = !test_and_set_bit(PG_dc_clean, &page->flags); in update_cache() local 54 if ((vma->vm_flags & VM_EXEC) && dirty) in update_cache()
|