/Linux-v6.1/mm/ |
D | backing-dev.c | 54 struct bdi_writeback *wb = &bdi->wb; in bdi_debug_stats_show() local 62 spin_lock(&wb->list_lock); in bdi_debug_stats_show() 63 list_for_each_entry(inode, &wb->b_dirty, i_io_list) in bdi_debug_stats_show() 65 list_for_each_entry(inode, &wb->b_io, i_io_list) in bdi_debug_stats_show() 67 list_for_each_entry(inode, &wb->b_more_io, i_io_list) in bdi_debug_stats_show() 69 list_for_each_entry(inode, &wb->b_dirty_time, i_io_list) in bdi_debug_stats_show() 72 spin_unlock(&wb->list_lock); in bdi_debug_stats_show() 75 wb_thresh = wb_calc_thresh(wb, dirty_thresh); in bdi_debug_stats_show() 92 (unsigned long) K(wb_stat(wb, WB_WRITEBACK)), in bdi_debug_stats_show() 93 (unsigned long) K(wb_stat(wb, WB_RECLAIMABLE)), in bdi_debug_stats_show() [all …]
|
D | page-writeback.c | 128 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-v6.1/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-v6.1/include/linux/ |
D | backing-dev.h | 39 void wb_start_background_writeback(struct bdi_writeback *wb); 41 void wb_wakeup_delayed(struct bdi_writeback *wb); 51 static inline bool wb_has_dirty_io(struct bdi_writeback *wb) in wb_has_dirty_io() argument 53 return test_bit(WB_has_dirty_io, &wb->state); in wb_has_dirty_io() 65 static inline void wb_stat_mod(struct bdi_writeback *wb, in wb_stat_mod() argument 68 percpu_counter_add_batch(&wb->stat[item], amount, WB_STAT_BATCH); in wb_stat_mod() 71 static inline void inc_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) in inc_wb_stat() argument 73 wb_stat_mod(wb, item, 1); in inc_wb_stat() 76 static inline void dec_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item) in dec_wb_stat() argument 78 wb_stat_mod(wb, item, -1); in dec_wb_stat() [all …]
|
D | backing-dev-defs.h | 183 struct bdi_writeback wb; /* the root writeback info for this bdi */ member 214 static inline bool wb_tryget(struct bdi_writeback *wb) in wb_tryget() argument 216 if (wb != &wb->bdi->wb) in wb_tryget() 217 return percpu_ref_tryget(&wb->refcnt); in wb_tryget() 225 static inline void wb_get(struct bdi_writeback *wb) in wb_get() argument 227 if (wb != &wb->bdi->wb) in wb_get() 228 percpu_ref_get(&wb->refcnt); in wb_get() 236 static inline void wb_put_many(struct bdi_writeback *wb, unsigned long nr) in wb_put_many() argument 238 if (WARN_ON_ONCE(!wb->bdi)) { in wb_put_many() 246 if (wb != &wb->bdi->wb) in wb_put_many() [all …]
|
D | writeback.h | 83 struct bdi_writeback *wb; /* wb this writeback is issued under */ member 113 ((wbc)->wb ? (wbc)->wb->blkcg_css : blkcg_root_css) 220 bool cleanup_offline_cgwb(struct bdi_writeback *wb); 287 if (wbc->wb) in wbc_init_bio() 288 bio_associate_blkg_from_css(bio, wbc->wb->blkcg_css); in wbc_init_bio() 356 unsigned long wb_calc_thresh(struct bdi_writeback *wb, unsigned long thresh); 358 void wb_update_bandwidth(struct bdi_writeback *wb); 367 bool wb_over_bg_thresh(struct bdi_writeback *wb);
|
/Linux-v6.1/include/trace/events/ |
D | writeback.h | 151 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-v6.1/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()
|
D | ia_css_wb.host.h | 32 const struct sh_css_isp_wb_params *wb, 37 const struct ia_css_wb_config *wb,
|
/Linux-v6.1/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-v6.1/drivers/gpu/drm/radeon/ |
D | r600_dma.c | 55 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 …]
|
D | radeon_device.c | 424 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 …]
|
D | cik_sdma.c | 67 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 …]
|
D | ni_dma.c | 57 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-v6.1/certs/ |
D | extract-cert.c | 79 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() 153 if (wb && !x509) { in main() 166 BIO_free(wb); in main()
|
/Linux-v6.1/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-v6.1/drivers/net/wireless/microchip/wilc1000/ |
D | spi.c | 362 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen) in wilc_spi_tx_rx() argument 371 .tx_buf = wb, in wilc_spi_tx_rx() 486 u8 wb[32], rb[32]; in wilc_spi_single_read() local 493 memset(wb, 0x0, sizeof(wb)); in wilc_spi_single_read() 495 c = (struct wilc_spi_cmd *)wb; in wilc_spi_single_read() 516 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read() 521 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read() 524 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 528 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read() 581 u8 wb[32], rb[32]; in wilc_spi_write_cmd() local [all …]
|
/Linux-v6.1/drivers/usb/class/ |
D | cdc-acm.c | 156 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-v6.1/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_wb.c | 55 static const struct dpu_wb_cfg *_wb_offset(enum dpu_wb wb, in _wb_offset() argument 62 if (wb == m->wb[i].id) { in _wb_offset() 63 b->blk_addr = addr + m->wb[i].base; in _wb_offset() 64 return &m->wb[i]; in _wb_offset() 138 static void dpu_hw_wb_roi(struct dpu_hw_wb *ctx, struct dpu_hw_wb_cfg *wb) in dpu_hw_wb_roi() argument 143 image_size = (wb->dest.height << 16) | wb->dest.width; in dpu_hw_wb_roi() 145 out_size = (drm_rect_height(&wb->roi) << 16) | drm_rect_width(&wb->roi); in dpu_hw_wb_roi()
|
D | dpu_hw_wb.h | 58 struct dpu_hw_wb_cfg *wb); 61 struct dpu_hw_wb_cfg *wb); 64 struct dpu_hw_wb_cfg *wb);
|
D | dpu_hw_ctl.c | 255 enum dpu_wb wb) in dpu_hw_ctl_update_pending_flush_wb() argument 257 switch (wb) { in dpu_hw_ctl_update_pending_flush_wb() 269 enum dpu_wb wb) in dpu_hw_ctl_update_pending_flush_wb_v1() argument 271 ctx->pending_wb_flush_mask |= BIT(wb - WB_0); in dpu_hw_ctl_update_pending_flush_wb_v1() 542 if (cfg->wb) in dpu_hw_ctl_intf_cfg_v1() 543 wb_active |= BIT(cfg->wb - WB_0); in dpu_hw_ctl_intf_cfg_v1() 571 if (cfg->wb) in dpu_hw_ctl_intf_cfg() 572 intf_cfg |= (cfg->wb & 0x3) + 2; in dpu_hw_ctl_intf_cfg() 622 if (cfg->wb) { in dpu_hw_ctl_reset_intf_cfg_v1() 624 wb_active &= ~BIT(cfg->wb - WB_0); in dpu_hw_ctl_reset_intf_cfg_v1()
|
/Linux-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_txrx_lib.h | 48 if (ice_test_staterr(rx_desc->wb.status_error0, stat_err_bits)) in ice_get_vlan_tag_from_rx_desc() 49 return le16_to_cpu(rx_desc->wb.l2tag1); in ice_get_vlan_tag_from_rx_desc() 52 if (ice_test_staterr(rx_desc->wb.status_error1, stat_err_bits)) in ice_get_vlan_tag_from_rx_desc() 53 return le16_to_cpu(rx_desc->wb.l2tag2_2nd); in ice_get_vlan_tag_from_rx_desc()
|
/Linux-v6.1/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-v6.1/scripts/ |
D | kallsyms.c | 747 int wa, wb; in compare_symbols() local 757 wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W'); in compare_symbols() 758 if (wa != wb) in compare_symbols() 759 return wa - wb; in compare_symbols() 763 wb = may_be_linker_script_provide_symbol(sb); in compare_symbols() 764 if (wa != wb) in compare_symbols() 765 return wa - wb; in compare_symbols() 769 wb = strspn(sym_name(sb), "_"); in compare_symbols() 770 if (wa != wb) in compare_symbols() 771 return wa - wb; in compare_symbols()
|
/Linux-v6.1/drivers/media/platform/mediatek/vcodec/venc/ |
D | venc_vp8_if.c | 160 struct venc_vp8_vpu_buf *wb = inst->vsi->work_bufs; in vp8_enc_alloc_work_buf() local 165 if (wb[i].size == 0) in vp8_enc_alloc_work_buf() 177 inst->work_bufs[i].size = wb[i].size; in vp8_enc_alloc_work_buf() 197 wb[i].vpua); in vp8_enc_alloc_work_buf() 198 memcpy(inst->work_bufs[i].va, tmp_va, wb[i].size); in vp8_enc_alloc_work_buf() 200 wb[i].iova = inst->work_bufs[i].dma_addr; in vp8_enc_alloc_work_buf()
|