Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/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.c129 struct bdi_writeback *wb; member
153 #define GDTC_INIT(__wb) .wb = (__wb), \
159 #define MDTC_INIT(__wb, __gdtc) .wb = (__wb), \
179 static struct fprop_local_percpu *wb_memcg_completions(struct bdi_writeback *wb) in wb_memcg_completions() argument
181 return &wb->memcg_completions; in wb_memcg_completions()
184 static void wb_min_max_ratio(struct bdi_writeback *wb, in wb_min_max_ratio() argument
187 unsigned long this_bw = READ_ONCE(wb->avg_write_bandwidth); in wb_min_max_ratio()
188 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio()
189 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio()
190 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio()
[all …]
/linux-6.6.21/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-6.6.21/include/linux/
Dbacking-dev-defs.h186 struct bdi_writeback wb; /* the root writeback info for this bdi */ member
217 static inline bool wb_tryget(struct bdi_writeback *wb) in wb_tryget() argument
219 if (wb != &wb->bdi->wb) in wb_tryget()
220 return percpu_ref_tryget(&wb->refcnt); in wb_tryget()
228 static inline void wb_get(struct bdi_writeback *wb) in wb_get() argument
230 if (wb != &wb->bdi->wb) in wb_get()
231 percpu_ref_get(&wb->refcnt); in wb_get()
239 static inline void wb_put_many(struct bdi_writeback *wb, unsigned long nr) in wb_put_many() argument
241 if (WARN_ON_ONCE(!wb->bdi)) { in wb_put_many()
249 if (wb != &wb->bdi->wb) in wb_put_many()
[all …]
Dbacking-dev.h39 void wb_start_background_writeback(struct bdi_writeback *wb);
41 void wb_wakeup_delayed(struct bdi_writeback *wb);
50 static inline bool wb_has_dirty_io(struct bdi_writeback *wb) in wb_has_dirty_io() argument
52 return test_bit(WB_has_dirty_io, &wb->state); in wb_has_dirty_io()
64 static inline void wb_stat_mod(struct bdi_writeback *wb, in wb_stat_mod() argument
67 percpu_counter_add_batch(&wb->stat[item], amount, WB_STAT_BATCH); in wb_stat_mod()
70 static inline void inc_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) in inc_wb_stat() argument
72 wb_stat_mod(wb, item, 1); in inc_wb_stat()
75 static inline void dec_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) in dec_wb_stat() argument
77 wb_stat_mod(wb, item, -1); in dec_wb_stat()
[all …]
Dwriteback.h81 struct bdi_writeback *wb; /* wb this writeback is issued under */ member
108 ((wbc)->wb ? (wbc)->wb->blkcg_css : blkcg_root_css)
215 bool cleanup_offline_cgwb(struct bdi_writeback *wb);
282 if (wbc->wb) in wbc_init_bio()
283 bio_associate_blkg_from_css(bio, wbc->wb->blkcg_css); in wbc_init_bio()
351 unsigned long wb_calc_thresh(struct bdi_writeback *wb, unsigned long thresh);
353 void wb_update_bandwidth(struct bdi_writeback *wb);
362 bool wb_over_bg_thresh(struct bdi_writeback *wb);
/linux-6.6.21/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 folio *folio, struct bdi_writeback *wb),
241 TP_ARGS(folio, 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-6.6.21/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-6.6.21/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-6.6.21/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.c424 rdev->wb.enabled = false; in radeon_wb_disable()
438 if (rdev->wb.wb_obj) { in radeon_wb_fini()
439 if (!radeon_bo_reserve(rdev->wb.wb_obj, false)) { in radeon_wb_fini()
440 radeon_bo_kunmap(rdev->wb.wb_obj); in radeon_wb_fini()
441 radeon_bo_unpin(rdev->wb.wb_obj); in radeon_wb_fini()
442 radeon_bo_unreserve(rdev->wb.wb_obj); in radeon_wb_fini()
444 radeon_bo_unref(&rdev->wb.wb_obj); in radeon_wb_fini()
445 rdev->wb.wb = NULL; in radeon_wb_fini()
446 rdev->wb.wb_obj = NULL; in radeon_wb_fini()
463 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-6.6.21/security/apparmor/
Dmatch.c671 #define inc_wb_pos(wb) \ argument
673 wb->pos = (wb->pos + 1) & (WB_HISTORY_SIZE - 1); \
674 wb->len = (wb->len + 1) & (WB_HISTORY_SIZE - 1); \
678 static bool is_loop(struct match_workbuf *wb, aa_state_t state, in is_loop() argument
681 aa_state_t pos = wb->pos; in is_loop()
684 if (wb->history[pos] < state) in is_loop()
687 for (i = 0; i <= wb->len; i++) { in is_loop()
688 if (wb->history[pos] == state) { in is_loop()
702 const char *str, struct match_workbuf *wb, in leftmatch_fb() argument
713 AA_BUG(!wb); in leftmatch_fb()
[all …]
/linux-6.6.21/certs/
Dextract-cert.c79 static BIO *wb; variable
87 if (!wb) { in write_cert()
88 wb = BIO_new_file(cert_dst, "wb"); in write_cert()
89 ERR(!wb, "%s", cert_dst); in write_cert()
92 ERR(!i2d_X509_bio(wb, x509), "%s", cert_dst); in write_cert()
156 if (wb && !x509) { in main()
169 BIO_free(wb); in main()
/linux-6.6.21/drivers/net/wireless/microchip/wilc1000/
Dspi.c363 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen) in wilc_spi_tx_rx() argument
372 .tx_buf = wb, in wilc_spi_tx_rx()
487 u8 wb[32], rb[32]; in wilc_spi_single_read() local
494 memset(wb, 0x0, sizeof(wb)); in wilc_spi_single_read()
496 c = (struct wilc_spi_cmd *)wb; in wilc_spi_single_read()
517 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read()
522 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read()
525 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
529 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read()
582 u8 wb[32], rb[32]; in wilc_spi_write_cmd() local
[all …]
/linux-6.6.21/drivers/usb/class/
Dcdc-acm.c157 usb_poison_urb(acm->wb[i].urb); in acm_poison_urbs()
169 usb_unpoison_urb(acm->wb[i].urb); in acm_unpoison_urbs()
182 struct acm_wb *wb; in acm_wb_alloc() local
187 wb = &acm->wb[wbn]; in acm_wb_alloc()
188 if (!wb->use) { in acm_wb_alloc()
189 wb->use = true; in acm_wb_alloc()
190 wb->len = 0; in acm_wb_alloc()
207 if(acm->wb[i].use) in acm_wb_is_avail()
216 static void acm_write_done(struct acm *acm, struct acm_wb *wb) in acm_write_done() argument
218 wb->use = false; in acm_write_done()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/memory-controllers/
Dqca,ath79-ddr-controller.yaml29 "#qca,ddr-wb-channel-cells":
41 - "#qca,ddr-wb-channel-cells"
53 #qca,ddr-wb-channel-cells = <1>;
58 qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
59 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_txrx_lib.h81 if (likely(ice_test_staterr(rx_desc->wb.status_error0, ICE_RXD_EOF))) in ice_is_non_eop()
113 if (ice_test_staterr(rx_desc->wb.status_error0, stat_err_bits)) in ice_get_vlan_tag_from_rx_desc()
114 return le16_to_cpu(rx_desc->wb.l2tag1); in ice_get_vlan_tag_from_rx_desc()
117 if (ice_test_staterr(rx_desc->wb.status_error1, stat_err_bits)) in ice_get_vlan_tag_from_rx_desc()
118 return le16_to_cpu(rx_desc->wb.l2tag2_2nd); in ice_get_vlan_tag_from_rx_desc()
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_wb.h36 struct dpu_hw_wb_cfg *wb);
39 struct dpu_hw_wb_cfg *wb);
42 struct dpu_hw_wb_cfg *wb);
Ddpu_hw_wb.c123 static void dpu_hw_wb_roi(struct dpu_hw_wb *ctx, struct dpu_hw_wb_cfg *wb) in dpu_hw_wb_roi() argument
128 image_size = (wb->dest.height << 16) | wb->dest.width; in dpu_hw_wb_roi()
130 out_size = (drm_rect_height(&wb->roi) << 16) | drm_rect_width(&wb->roi); in dpu_hw_wb_roi()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
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()
Dsdma_v4_4_2.c160 rptr = ((u64 *)&ring->adev->wb.wb[ring->rptr_offs]); in sdma_v4_4_2_ring_get_rptr()
180 wptr = READ_ONCE(*((u64 *)&adev->wb.wb[ring->wptr_offs])); in sdma_v4_4_2_ring_get_wptr()
206 u64 *wb = (u64 *)&adev->wb.wb[ring->wptr_offs]; in sdma_v4_4_2_ring_set_wptr() local
216 WRITE_ONCE(*wb, (ring->wptr << 2)); in sdma_v4_4_2_ring_set_wptr()
249 wptr = READ_ONCE(*((u64 *)&adev->wb.wb[ring->wptr_offs])); in sdma_v4_4_2_page_ring_get_wptr()
271 u64 *wb = (u64 *)&adev->wb.wb[ring->wptr_offs]; in sdma_v4_4_2_page_ring_set_wptr() local
274 WRITE_ONCE(*wb, (ring->wptr << 2)); in sdma_v4_4_2_page_ring_set_wptr()
641 upper_32_bits(adev->wb.gpu_addr + wb_offset) & 0xFFFFFFFF); in sdma_v4_4_2_gfx_resume()
643 lower_32_bits(adev->wb.gpu_addr + wb_offset) & 0xFFFFFFFC); in sdma_v4_4_2_gfx_resume()
673 wptr_gpu_addr = adev->wb.gpu_addr + (ring->wptr_offs * 4); in sdma_v4_4_2_gfx_resume()
[all …]
/linux-6.6.21/scripts/
Dkallsyms.c743 int wa, wb; in compare_symbols() local
753 wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W'); in compare_symbols()
754 if (wa != wb) in compare_symbols()
755 return wa - wb; in compare_symbols()
759 wb = may_be_linker_script_provide_symbol(sb); in compare_symbols()
760 if (wa != wb) in compare_symbols()
761 return wa - wb; in compare_symbols()
765 wb = strspn(sym_name(sb), "_"); in compare_symbols()
766 if (wa != wb) in compare_symbols()
767 return wa - wb; in compare_symbols()

1234567