/Linux-v5.10/mm/ |
D | backing-dev.c | 49 struct bdi_writeback *wb = &bdi->wb; in bdi_debug_stats_show() local 57 spin_lock(&wb->list_lock); in bdi_debug_stats_show() 58 list_for_each_entry(inode, &wb->b_dirty, i_io_list) in bdi_debug_stats_show() 60 list_for_each_entry(inode, &wb->b_io, i_io_list) in bdi_debug_stats_show() 62 list_for_each_entry(inode, &wb->b_more_io, i_io_list) in bdi_debug_stats_show() 64 list_for_each_entry(inode, &wb->b_dirty_time, i_io_list) in bdi_debug_stats_show() 67 spin_unlock(&wb->list_lock); in bdi_debug_stats_show() 70 wb_thresh = wb_calc_thresh(wb, dirty_thresh); in bdi_debug_stats_show() 88 (unsigned long) K(wb_stat(wb, WB_WRITEBACK)), in bdi_debug_stats_show() 89 (unsigned long) K(wb_stat(wb, WB_RECLAIMABLE)), in bdi_debug_stats_show() [all …]
|
D | page-writeback.c | 134 struct bdi_writeback *wb; member 142 unsigned long wb_dirty; /* per-wb counterparts */ 158 #define GDTC_INIT(__wb) .wb = (__wb), \ 164 #define MDTC_INIT(__wb, __gdtc) .wb = (__wb), \ 184 static struct fprop_local_percpu *wb_memcg_completions(struct bdi_writeback *wb) in wb_memcg_completions() argument 186 return &wb->memcg_completions; in wb_memcg_completions() 189 static void wb_min_max_ratio(struct bdi_writeback *wb, in wb_min_max_ratio() argument 192 unsigned long this_bw = wb->avg_write_bandwidth; in wb_min_max_ratio() 193 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio() 194 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio() [all …]
|
/Linux-v5.10/fs/ |
D | fs-writeback.c | 85 static bool wb_io_lists_populated(struct bdi_writeback *wb) in wb_io_lists_populated() argument 87 if (wb_has_dirty_io(wb)) { in wb_io_lists_populated() 90 set_bit(WB_has_dirty_io, &wb->state); in wb_io_lists_populated() 91 WARN_ON_ONCE(!wb->avg_write_bandwidth); in wb_io_lists_populated() 92 atomic_long_add(wb->avg_write_bandwidth, in wb_io_lists_populated() 93 &wb->bdi->tot_write_bandwidth); in wb_io_lists_populated() 98 static void wb_io_lists_depopulated(struct bdi_writeback *wb) in wb_io_lists_depopulated() argument 100 if (wb_has_dirty_io(wb) && list_empty(&wb->b_dirty) && in wb_io_lists_depopulated() 101 list_empty(&wb->b_io) && list_empty(&wb->b_more_io)) { in wb_io_lists_depopulated() 102 clear_bit(WB_has_dirty_io, &wb->state); in wb_io_lists_depopulated() [all …]
|
/Linux-v5.10/include/linux/ |
D | backing-dev.h | 41 void wb_start_background_writeback(struct bdi_writeback *wb); 43 void wb_wakeup_delayed(struct bdi_writeback *wb); 53 static inline bool wb_has_dirty_io(struct bdi_writeback *wb) in wb_has_dirty_io() argument 55 return test_bit(WB_has_dirty_io, &wb->state); in wb_has_dirty_io() 67 static inline void __add_wb_stat(struct bdi_writeback *wb, in __add_wb_stat() argument 70 percpu_counter_add_batch(&wb->stat[item], amount, WB_STAT_BATCH); in __add_wb_stat() 73 static inline void inc_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) in inc_wb_stat() argument 75 __add_wb_stat(wb, item, 1); in inc_wb_stat() 78 static inline void dec_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) in dec_wb_stat() argument 80 __add_wb_stat(wb, item, -1); in dec_wb_stat() [all …]
|
D | backing-dev-defs.h | 89 * Each wb (bdi_writeback) can perform writeback operations, is measured 91 * (bdi_writeback) is served by its embedded bdi->wb. 95 * memcg - blkcg combination can be served by its own wb by assigning a 96 * dedicated wb to each memcg, which enables isolation across different 100 * A cgroup wb is indexed on its bdi by the ID of the associated memcg, 103 * change as blkcg is disabled and enabled higher up in the hierarchy, a wb 105 * that a new wb for the combination can be created. 151 struct percpu_ref refcnt; /* used only for !root wb's */ 183 struct bdi_writeback wb; /* the root writeback info for this bdi */ member 187 struct mutex cgwb_release_mutex; /* protect shutdown of wb structs */ [all …]
|
D | writeback.h | 84 struct bdi_writeback *wb; /* wb this writeback is issued under */ member 88 int wb_id; /* current wb id */ 89 int wb_lcand_id; /* last foreign candidate wb id */ 90 int wb_tcand_id; /* this foreign candidate wb id */ 91 size_t wb_bytes; /* bytes written by current wb */ 116 if (wbc->wb) in wbc_blkcg_css() 117 return wbc->wb->blkcg_css; in wbc_blkcg_css() 123 * A wb_domain represents a domain that wb's (bdi_writeback's) belong to 125 * domain, global_wb_domain, that every wb in the system is a member of. 126 * This allows measuring the relative bandwidth of each wb to distribute [all …]
|
/Linux-v5.10/include/trace/events/ |
D | writeback.h | 150 static inline ino_t __trace_wb_assign_cgroup(struct bdi_writeback *wb) in __trace_wb_assign_cgroup() argument 152 return cgroup_ino(wb->memcg_css->cgroup); in __trace_wb_assign_cgroup() 157 if (wbc->wb) in __trace_wbc_assign_cgroup() 158 return __trace_wb_assign_cgroup(wbc->wb); in __trace_wbc_assign_cgroup() 164 static inline ino_t __trace_wb_assign_cgroup(struct bdi_writeback *wb) in __trace_wb_assign_cgroup() argument 238 TP_PROTO(struct page *page, struct bdi_writeback *wb), 240 TP_ARGS(page, wb), 255 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32); 256 __entry->bdi_id = wb->bdi->id; 258 __entry->memcg_id = wb->memcg_css->id; [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/interrupt-controller/ |
D | qca,ath79-cpu-intc.txt | 5 qca,ddr-wb-channels and qca,ddr-wb-channel-interrupts properties. 20 - qca,ddr-wb-channel-interrupts: List of the interrupts needing a write 22 - qca,ddr-wb-channels: List of phandles to the write buffer channels for 23 each interrupt. If qca,ddr-wb-channel-interrupts is not present the interrupt 34 qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>; 35 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>, 43 #qca,ddr-wb-channel-cells = <1>;
|
/Linux-v5.10/Documentation/ia64/ |
D | aliasing.rst | 19 WB Write-back (cacheable) 24 System memory typically uses the WB attribute. The UC attribute is 34 support either WB or UC access to main memory, while others support 35 only WB access. 82 and WB regions. 100 mappings may be either WB or UC. If the region being mapped 163 WB, we should use that (granules that are partially reserved 166 If the granule contains non-WB memory, but we can cover the 182 succeed. It may create either WB or UC user mappings, depending 191 0x00000-0x9FFFF WB only [all …]
|
/Linux-v5.10/arch/arm/mm/ |
D | proc-arm1020.S | 86 mcr p15, 0, ip, c7, c10, 4 @ drain WB 141 mcr p15, 0, ip, c7, c10, 4 @ drain WB 145 mcr p15, 0, ip, c7, c10, 4 @ drain WB 155 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 177 mcr p15, 0, ip, c7, c10, 4 @ drain WB 186 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 219 mcr p15, 0, ip, c7, c10, 4 @ drain WB 227 mcr p15, 0, ip, c7, c10, 4 @ drain WB 245 mcr p15, 0, ip, c7, c10, 4 @ drain WB 250 mcr p15, 0, ip, c7, c10, 4 @ drain WB [all …]
|
D | proc-feroceon.S | 69 mcr p15, 0, r0, c7, c10, 4 @ drain WB 92 mcr p15, 0, ip, c7, c10, 4 @ drain WB 158 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 187 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 221 mcr p15, 0, r0, c7, c10, 4 @ drain WB 243 mcr p15, 0, r0, c7, c10, 4 @ drain WB 257 mcr p15, 0, r0, c7, c10, 4 @ drain WB 284 mcr p15, 0, r0, c7, c10, 4 @ drain WB 320 mcr p15, 0, r0, c7, c10, 4 @ drain WB 333 mcr p15, 0, r0, c7, c10, 4 @ drain WB [all …]
|
D | proc-arm922.S | 80 mcr p15, 0, ip, c7, c10, 4 @ drain WB 141 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 167 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 200 mcr p15, 0, r0, c7, c10, 4 @ drain WB 221 mcr p15, 0, r0, c7, c10, 4 @ drain WB 247 mcr p15, 0, r0, c7, c10, 4 @ drain WB 266 mcr p15, 0, r0, c7, c10, 4 @ drain WB 283 mcr p15, 0, r0, c7, c10, 4 @ drain WB 356 mcr p15, 0, ip, c7, c10, 4 @ drain WB 373 mcr p15, 0, r0, c7, c10, 4 @ drain WB
|
D | proc-arm946.S | 59 mcr p15, 0, ip, c7, c10, 4 @ drain WB 115 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 154 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 188 mcr p15, 0, r0, c7, c10, 4 @ drain WB 210 mcr p15, 0, r0, c7, c10, 4 @ drain WB 237 mcr p15, 0, r0, c7, c10, 4 @ drain WB 258 mcr p15, 0, r0, c7, c10, 4 @ drain WB 282 mcr p15, 0, r0, c7, c10, 4 @ drain WB 322 mcr p15, 0, r0, c7, c10, 4 @ drain WB 330 mcr p15, 0, r0, c7, c10, 4 @ drain WB
|
/Linux-v5.10/scripts/ |
D | extract-cert.c | 72 static BIO *wb; variable 80 if (!wb) { in write_cert() 81 wb = BIO_new_file(cert_dst, "wb"); in write_cert() 82 ERR(!wb, "%s", cert_dst); in write_cert() 85 ERR(!i2d_X509_bio(wb, x509), "%s", cert_dst); in write_cert() 110 FILE *f = fopen(cert_dst, "wb"); in main() 146 if (wb && !x509) { in main() 159 BIO_free(wb); in main()
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/isp/kernels/wb/wb_1.0/ |
D | ia_css_wb.host.c | 59 const struct sh_css_isp_wb_params *wb, in ia_css_wb_dump() argument 62 if (!wb) return; in ia_css_wb_dump() 65 "wb_gain_shift", wb->gain_shift); in ia_css_wb_dump() 67 "wb_gain_gr", wb->gain_gr); in ia_css_wb_dump() 69 "wb_gain_r", wb->gain_r); in ia_css_wb_dump() 71 "wb_gain_b", wb->gain_b); in ia_css_wb_dump() 73 "wb_gain_gb", wb->gain_gb); in ia_css_wb_dump()
|
/Linux-v5.10/drivers/net/wireless/microchip/wilc1000/ |
D | spi.c | 239 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen) in wilc_spi_tx_rx() argument 248 .tx_buf = wb, in wilc_spi_tx_rx() 360 u8 wb[32], rb[32]; in wilc_spi_single_read() local 366 memset(wb, 0x0, sizeof(wb)); in wilc_spi_single_read() 368 c = (struct wilc_spi_cmd *)wb; in wilc_spi_single_read() 388 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read() 393 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read() 396 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 400 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read() 439 u8 wb[32], rb[32]; in wilc_spi_write_cmd() local [all …]
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | r600_dma.c | 56 if (rdev->wb.enabled) in r600_dma_get_rptr() 57 rptr = rdev->wb.wb[ring->rptr_offs/4]; in r600_dma_get_rptr() 142 /* set the wb address whether it's enabled or not */ in r600_dma_resume() 144 upper_32_bits(rdev->wb.gpu_addr + R600_WB_DMA_RPTR_OFFSET) & 0xFF); in r600_dma_resume() 146 ((rdev->wb.gpu_addr + R600_WB_DMA_RPTR_OFFSET) & 0xFFFFFFFC)); in r600_dma_resume() 148 if (rdev->wb.enabled) in r600_dma_resume() 244 gpu_addr = rdev->wb.gpu_addr + index; in r600_dma_ring_test() 247 rdev->wb.wb[index/4] = cpu_to_le32(tmp); in r600_dma_ring_test() 261 tmp = le32_to_cpu(rdev->wb.wb[index/4]); in r600_dma_ring_test() 351 gpu_addr = rdev->wb.gpu_addr + index; in r600_dma_ib_test() [all …]
|
D | radeon_device.c | 423 rdev->wb.enabled = false; in radeon_wb_disable() 437 if (rdev->wb.wb_obj) { in radeon_wb_fini() 438 if (!radeon_bo_reserve(rdev->wb.wb_obj, false)) { in radeon_wb_fini() 439 radeon_bo_kunmap(rdev->wb.wb_obj); in radeon_wb_fini() 440 radeon_bo_unpin(rdev->wb.wb_obj); in radeon_wb_fini() 441 radeon_bo_unreserve(rdev->wb.wb_obj); in radeon_wb_fini() 443 radeon_bo_unref(&rdev->wb.wb_obj); in radeon_wb_fini() 444 rdev->wb.wb = NULL; in radeon_wb_fini() 445 rdev->wb.wb_obj = NULL; in radeon_wb_fini() 462 if (rdev->wb.wb_obj == NULL) { in radeon_wb_init() [all …]
|
/Linux-v5.10/drivers/usb/class/ |
D | cdc-acm.c | 156 usb_kill_urb(acm->wb[i].urb); in acm_kill_urbs() 169 struct acm_wb *wb; in acm_wb_alloc() local 174 wb = &acm->wb[wbn]; in acm_wb_alloc() 175 if (!wb->use) { in acm_wb_alloc() 176 wb->use = true; in acm_wb_alloc() 177 wb->len = 0; in acm_wb_alloc() 194 if(acm->wb[i].use) in acm_wb_is_avail() 203 static void acm_write_done(struct acm *acm, struct acm_wb *wb) in acm_write_done() argument 205 wb->use = false; in acm_write_done() 216 static int acm_start_wb(struct acm *acm, struct acm_wb *wb) in acm_start_wb() argument [all …]
|
/Linux-v5.10/security/apparmor/ |
D | match.c | 673 #define inc_wb_pos(wb) \ argument 675 wb->pos = (wb->pos + 1) & (WB_HISTORY_SIZE - 1); \ 676 wb->len = (wb->len + 1) & (WB_HISTORY_SIZE - 1); \ 680 static bool is_loop(struct match_workbuf *wb, unsigned int state, in is_loop() argument 683 unsigned int pos = wb->pos; in is_loop() 686 if (wb->history[pos] < state) in is_loop() 689 for (i = 0; i <= wb->len; i++) { in is_loop() 690 if (wb->history[pos] == state) { in is_loop() 704 const char *str, struct match_workbuf *wb, in leftmatch_fb() argument 715 AA_BUG(!wb); in leftmatch_fb() [all …]
|
/Linux-v5.10/drivers/gpu/drm/tidss/ |
D | tidss_irq.h | 18 * bit group |dev|wb |mrg0|mrg1|mrg2|mrg3|plane0-3| <unused> | 23 * WB bits: f = frame done wb, o = wb buffer overflow, 24 * u = wb buffer uncomplete
|
/Linux-v5.10/drivers/irqchip/ |
D | irq-ath79-cpu.c | 63 node, "qca,ddr-wb-channels", "#qca,ddr-wb-channel-cells"); in ar79_cpu_intc_of_init() 70 node, "qca,ddr-wb-channel-interrupts", i, &irq); in ar79_cpu_intc_of_init() 75 node, "qca,ddr-wb-channels", in ar79_cpu_intc_of_init() 76 "#qca,ddr-wb-channel-cells", in ar79_cpu_intc_of_init()
|
/Linux-v5.10/Documentation/devicetree/bindings/memory-controllers/ |
D | ath79-ddr-controller.txt | 15 - #qca,ddr-wb-channel-cells: Specifies the number of cells needed to encode 25 #qca,ddr-wb-channel-cells = <1>; 32 qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>; 33 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ih.c | 97 ih->wptr_addr = adev->wb.gpu_addr + wptr_offs * 4; in amdgpu_ih_ring_init() 98 ih->wptr_cpu = &adev->wb.wb[wptr_offs]; in amdgpu_ih_ring_init() 99 ih->rptr_addr = adev->wb.gpu_addr + rptr_offs * 4; in amdgpu_ih_ring_init() 100 ih->rptr_cpu = &adev->wb.wb[rptr_offs]; in amdgpu_ih_ring_init()
|
/Linux-v5.10/Documentation/x86/ |
D | pat.rst | 20 WB Write-back 43 | ioremap_cache | -- | WB | WB | 71 | /dev/mem | -- | WB/WC/UC- | WB/WC/UC- | 77 | /dev/mem | -- | WB/WC/UC- | WB/WC/UC- | 82 | /dev/mem | -- | WB | WB | 86 | MTRR says WB | | | | 92 | MTRR says !WB | | | | 145 WC 000 WB _PAGE_CACHE_MODE_WB WC | WC 163 will first make a region uc, wc or wt and switch it back to wb after use.
|