Home
last modified time | relevance | path

Searched refs:wb (Results 1 – 25 of 156) sorted by relevance

1234567

/Linux-v5.15/mm/
Dbacking-dev.c52 struct bdi_writeback *wb = &bdi->wb; in bdi_debug_stats_show() local
60 spin_lock(&wb->list_lock); in bdi_debug_stats_show()
61 list_for_each_entry(inode, &wb->b_dirty, i_io_list) in bdi_debug_stats_show()
63 list_for_each_entry(inode, &wb->b_io, i_io_list) in bdi_debug_stats_show()
65 list_for_each_entry(inode, &wb->b_more_io, i_io_list) in bdi_debug_stats_show()
67 list_for_each_entry(inode, &wb->b_dirty_time, i_io_list) in bdi_debug_stats_show()
70 spin_unlock(&wb->list_lock); in bdi_debug_stats_show()
73 wb_thresh = wb_calc_thresh(wb, dirty_thresh); in bdi_debug_stats_show()
90 (unsigned long) K(wb_stat(wb, WB_WRITEBACK)), in bdi_debug_stats_show()
91 (unsigned long) K(wb_stat(wb, WB_RECLAIMABLE)), in bdi_debug_stats_show()
[all …]
Dpage-writeback.c128 struct bdi_writeback *wb; member
152 #define GDTC_INIT(__wb) .wb = (__wb), \
158 #define MDTC_INIT(__wb, __gdtc) .wb = (__wb), \
178 static struct fprop_local_percpu *wb_memcg_completions(struct bdi_writeback *wb) in wb_memcg_completions() argument
180 return &wb->memcg_completions; in wb_memcg_completions()
183 static void wb_min_max_ratio(struct bdi_writeback *wb, in wb_min_max_ratio() argument
186 unsigned long this_bw = READ_ONCE(wb->avg_write_bandwidth); in wb_min_max_ratio()
187 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio()
188 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio()
189 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio()
[all …]
/Linux-v5.15/fs/
Dfs-writeback.c85 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.15/include/linux/
Dbacking-dev.h41 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 …]
Dbacking-dev-defs.h187 struct bdi_writeback wb; /* the root writeback info for this bdi */ member
226 static inline bool wb_tryget(struct bdi_writeback *wb) in wb_tryget() argument
228 if (wb != &wb->bdi->wb) in wb_tryget()
229 return percpu_ref_tryget(&wb->refcnt); in wb_tryget()
237 static inline void wb_get(struct bdi_writeback *wb) in wb_get() argument
239 if (wb != &wb->bdi->wb) in wb_get()
240 percpu_ref_get(&wb->refcnt); in wb_get()
248 static inline void wb_put_many(struct bdi_writeback *wb, unsigned long nr) in wb_put_many() argument
250 if (WARN_ON_ONCE(!wb->bdi)) { in wb_put_many()
258 if (wb != &wb->bdi->wb) in wb_put_many()
[all …]
Dwriteback.h84 struct bdi_writeback *wb; /* wb this writeback is issued under */ member
116 if (wbc->wb) in wbc_blkcg_css()
117 return wbc->wb->blkcg_css; in wbc_blkcg_css()
224 bool cleanup_offline_cgwb(struct bdi_writeback *wb);
291 if (wbc->wb) in wbc_init_bio()
292 bio_associate_blkg_from_css(bio, wbc->wb->blkcg_css); in wbc_init_bio()
375 unsigned long wb_calc_thresh(struct bdi_writeback *wb, unsigned long thresh);
377 void wb_update_bandwidth(struct bdi_writeback *wb);
379 bool wb_over_bg_thresh(struct bdi_writeback *wb);
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dml/dcn2x/
Ddcn2x.c81 pipes[pipe_cnt].dout.wb.wb_src_height = wb_info->dwb_params.cnv_params.crop_height; in dcn20_populate_dml_writeback_from_context()
82 pipes[pipe_cnt].dout.wb.wb_src_width = wb_info->dwb_params.cnv_params.crop_width; in dcn20_populate_dml_writeback_from_context()
83 pipes[pipe_cnt].dout.wb.wb_dst_width = wb_info->dwb_params.dest_width; in dcn20_populate_dml_writeback_from_context()
84 pipes[pipe_cnt].dout.wb.wb_dst_height = wb_info->dwb_params.dest_height; in dcn20_populate_dml_writeback_from_context()
85 pipes[pipe_cnt].dout.wb.wb_htaps_luma = 1; in dcn20_populate_dml_writeback_from_context()
86 pipes[pipe_cnt].dout.wb.wb_vtaps_luma = 1; in dcn20_populate_dml_writeback_from_context()
87 pipes[pipe_cnt].dout.wb.wb_htaps_chroma = wb_info->dwb_params.scaler_taps.h_taps_c; in dcn20_populate_dml_writeback_from_context()
88 pipes[pipe_cnt].dout.wb.wb_vtaps_chroma = wb_info->dwb_params.scaler_taps.v_taps_c; in dcn20_populate_dml_writeback_from_context()
89 pipes[pipe_cnt].dout.wb.wb_hratio = 1.0; in dcn20_populate_dml_writeback_from_context()
90 pipes[pipe_cnt].dout.wb.wb_vratio = 1.0; in dcn20_populate_dml_writeback_from_context()
[all …]
/Linux-v5.15/include/trace/events/
Dwriteback.h151 static inline ino_t __trace_wb_assign_cgroup(struct bdi_writeback *wb) in __trace_wb_assign_cgroup() argument
153 return cgroup_ino(wb->memcg_css->cgroup); in __trace_wb_assign_cgroup()
158 if (wbc->wb) in __trace_wbc_assign_cgroup()
159 return __trace_wb_assign_cgroup(wbc->wb); in __trace_wbc_assign_cgroup()
165 static inline ino_t __trace_wb_assign_cgroup(struct bdi_writeback *wb) in __trace_wb_assign_cgroup() argument
239 TP_PROTO(struct page *page, struct bdi_writeback *wb),
241 TP_ARGS(page, wb),
256 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
257 __entry->bdi_id = wb->bdi->id;
259 __entry->memcg_id = wb->memcg_css->id;
[all …]
/Linux-v5.15/drivers/staging/media/atomisp/pci/isp/kernels/wb/wb_1.0/
Dia_css_wb.host.c59 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()
Dia_css_wb.host.h32 const struct sh_css_isp_wb_params *wb,
37 const struct ia_css_wb_config *wb,
/Linux-v5.15/Documentation/devicetree/bindings/interrupt-controller/
Dqca,ath79-cpu-intc.txt5 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.15/drivers/gpu/drm/radeon/
Dr600_dma.c55 if (rdev->wb.enabled) in r600_dma_get_rptr()
56 rptr = rdev->wb.wb[ring->rptr_offs/4]; in r600_dma_get_rptr()
143 upper_32_bits(rdev->wb.gpu_addr + R600_WB_DMA_RPTR_OFFSET) & 0xFF); in r600_dma_resume()
145 ((rdev->wb.gpu_addr + R600_WB_DMA_RPTR_OFFSET) & 0xFFFFFFFC)); in r600_dma_resume()
147 if (rdev->wb.enabled) in r600_dma_resume()
243 gpu_addr = rdev->wb.gpu_addr + index; in r600_dma_ring_test()
246 rdev->wb.wb[index/4] = cpu_to_le32(tmp); in r600_dma_ring_test()
260 tmp = le32_to_cpu(rdev->wb.wb[index/4]); in r600_dma_ring_test()
350 gpu_addr = rdev->wb.gpu_addr + index; in r600_dma_ib_test()
381 tmp = le32_to_cpu(rdev->wb.wb[index/4]); in r600_dma_ib_test()
[all …]
Dradeon_device.c423 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 …]
Dcik_sdma.c67 if (rdev->wb.enabled) { in cik_sdma_get_rptr()
68 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cik_sdma_get_rptr()
138 if (rdev->wb.enabled) { in cik_sdma_ring_ib_execute()
400 upper_32_bits(rdev->wb.gpu_addr + wb_offset) & 0xFFFFFFFF); in cik_sdma_gfx_resume()
402 ((rdev->wb.gpu_addr + wb_offset) & 0xFFFFFFFC)); in cik_sdma_gfx_resume()
404 if (rdev->wb.enabled) in cik_sdma_gfx_resume()
658 gpu_addr = rdev->wb.gpu_addr + index; in cik_sdma_ring_test()
661 rdev->wb.wb[index/4] = cpu_to_le32(tmp); in cik_sdma_ring_test()
676 tmp = le32_to_cpu(rdev->wb.wb[index/4]); in cik_sdma_ring_test()
715 gpu_addr = rdev->wb.gpu_addr + index; in cik_sdma_ib_test()
[all …]
Dni_dma.c57 if (rdev->wb.enabled) { in cayman_dma_get_rptr()
58 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cayman_dma_get_rptr()
127 if (rdev->wb.enabled) { in cayman_dma_ring_ib_execute()
222 upper_32_bits(rdev->wb.gpu_addr + wb_offset) & 0xFF); in cayman_dma_resume()
224 ((rdev->wb.gpu_addr + wb_offset) & 0xFFFFFFFC)); in cayman_dma_resume()
226 if (rdev->wb.enabled) in cayman_dma_resume()
/Linux-v5.15/scripts/
Dextract-cert.c72 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()
146 if (wb && !x509) { in main()
159 BIO_free(wb); in main()
Dkallsyms.c698 int wa, wb; in compare_symbols() local
708 wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W'); in compare_symbols()
709 if (wa != wb) in compare_symbols()
710 return wa - wb; in compare_symbols()
714 wb = may_be_linker_script_provide_symbol(sb); in compare_symbols()
715 if (wa != wb) in compare_symbols()
716 return wa - wb; in compare_symbols()
720 wb = strspn(sym_name(sb), "_"); in compare_symbols()
721 if (wa != wb) in compare_symbols()
722 return wa - wb; in compare_symbols()
/Linux-v5.15/security/apparmor/
Dmatch.c673 #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.15/drivers/usb/class/
Dcdc-acm.c156 usb_poison_urb(acm->wb[i].urb); in acm_poison_urbs()
168 usb_unpoison_urb(acm->wb[i].urb); in acm_unpoison_urbs()
181 struct acm_wb *wb; in acm_wb_alloc() local
186 wb = &acm->wb[wbn]; in acm_wb_alloc()
187 if (!wb->use) { in acm_wb_alloc()
188 wb->use = true; in acm_wb_alloc()
189 wb->len = 0; in acm_wb_alloc()
206 if(acm->wb[i].use) in acm_wb_is_avail()
215 static void acm_write_done(struct acm *acm, struct acm_wb *wb) in acm_write_done() argument
217 wb->use = false; in acm_write_done()
[all …]
/Linux-v5.15/drivers/net/wireless/microchip/wilc1000/
Dspi.c296 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen) in wilc_spi_tx_rx() argument
305 .tx_buf = wb, in wilc_spi_tx_rx()
421 u8 wb[32], rb[32]; in wilc_spi_single_read() local
428 memset(wb, 0x0, sizeof(wb)); in wilc_spi_single_read()
430 c = (struct wilc_spi_cmd *)wb; in wilc_spi_single_read()
451 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read()
456 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read()
459 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
463 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read()
516 u8 wb[32], rb[32]; in wilc_spi_write_cmd() local
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Dsdma_v3_0.c353 return ring->adev->wb.wb[ring->rptr_offs] >> 2; in sdma_v3_0_ring_get_rptr()
370 wptr = ring->adev->wb.wb[ring->wptr_offs] >> 2; in sdma_v3_0_ring_get_wptr()
390 u32 *wb = (u32 *)&adev->wb.wb[ring->wptr_offs]; in sdma_v3_0_ring_set_wptr() local
392 WRITE_ONCE(*wb, (lower_32_bits(ring->wptr) << 2)); in sdma_v3_0_ring_set_wptr()
395 u32 *wb = (u32 *)&adev->wb.wb[ring->wptr_offs]; in sdma_v3_0_ring_set_wptr() local
397 WRITE_ONCE(*wb, (lower_32_bits(ring->wptr) << 2)); in sdma_v3_0_ring_set_wptr()
697 upper_32_bits(adev->wb.gpu_addr + wb_offset) & 0xFFFFFFFF); in sdma_v3_0_gfx_resume()
699 lower_32_bits(adev->wb.gpu_addr + wb_offset) & 0xFFFFFFFC); in sdma_v3_0_gfx_resume()
718 wptr_gpu_addr = adev->wb.gpu_addr + (ring->wptr_offs * 4); in sdma_v3_0_gfx_resume()
834 gpu_addr = adev->wb.gpu_addr + (index * 4); in sdma_v3_0_ring_test_ring()
[all …]
Damdgpu_ih.c97 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()
Dsi_dma.c43 return ring->adev->wb.wb[ring->rptr_offs>>2]; in si_dma_ring_get_rptr()
157 rptr_addr = adev->wb.gpu_addr + (ring->rptr_offs * 4); in si_dma_start()
216 gpu_addr = adev->wb.gpu_addr + (index * 4); in si_dma_ring_test_ring()
218 adev->wb.wb[index] = cpu_to_le32(tmp); in si_dma_ring_test_ring()
231 tmp = le32_to_cpu(adev->wb.wb[index]); in si_dma_ring_test_ring()
268 gpu_addr = adev->wb.gpu_addr + (index * 4); in si_dma_ring_test_ib()
270 adev->wb.wb[index] = cpu_to_le32(tmp); in si_dma_ring_test_ib()
293 tmp = le32_to_cpu(adev->wb.wb[index]); in si_dma_ring_test_ib()
Damdgpu_ring.c225 adev->wb.gpu_addr + (ring->trail_fence_offs * 4); in amdgpu_ring_init()
226 ring->trail_fence_cpu_addr = &adev->wb.wb[ring->trail_fence_offs]; in amdgpu_ring_init()
233 ring->cond_exe_gpu_addr = adev->wb.gpu_addr + (ring->cond_exe_offs * 4); in amdgpu_ring_init()
234 ring->cond_exe_cpu_addr = &adev->wb.wb[ring->cond_exe_offs]; in amdgpu_ring_init()
Dmes_v10_1.c49 atomic64_set((atomic64_t *)&adev->wb.wb[ring->wptr_offs], in mes_v10_1_ring_set_wptr()
59 return ring->adev->wb.wb[ring->rptr_offs]; in mes_v10_1_ring_get_rptr()
68 &ring->adev->wb.wb[ring->wptr_offs]); in mes_v10_1_ring_get_wptr()
576 adev->wb.gpu_addr + (adev->mes.sch_ctx_offs * 4); in mes_v10_1_allocate_mem_slots()
578 (uint64_t *)&adev->wb.wb[adev->mes.sch_ctx_offs]; in mes_v10_1_allocate_mem_slots()
587 adev->wb.gpu_addr + (adev->mes.query_status_fence_offs * 4); in mes_v10_1_allocate_mem_slots()
589 (uint64_t *)&adev->wb.wb[adev->mes.query_status_fence_offs]; in mes_v10_1_allocate_mem_slots()
676 wb_gpu_addr = adev->wb.gpu_addr + (ring->rptr_offs * 4); in mes_v10_1_mqd_init()
682 wb_gpu_addr = adev->wb.gpu_addr + (ring->wptr_offs * 4); in mes_v10_1_mqd_init()

1234567