/openbmc/linux/mm/ |
H A D | backing-dev.c | 52 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 …]
|
H A D | page-writeback.c | 129 struct bdi_writeback *wb; member 137 unsigned long wb_dirty; /* per-wb counterparts */ 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() [all …]
|
/openbmc/linux/fs/ |
H A 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 …]
|
/openbmc/linux/include/linux/ |
H A D | backing-dev-defs.h | 84 * Each wb (bdi_writeback) can perform writeback operations, is measured 86 * (bdi_writeback) is served by its embedded bdi->wb. 90 * memcg - blkcg combination can be served by its own wb by assigning a 91 * dedicated wb to each memcg, which enables isolation across different 95 * A cgroup wb is indexed on its bdi by the ID of the associated memcg, 98 * change as blkcg is disabled and enabled higher up in the hierarchy, a wb 100 * that a new wb for the combination can be created. 147 struct percpu_ref refcnt; /* used only for !root wb's */ 186 struct bdi_writeback wb; /* the root writeback info for this bdi */ member 190 struct mutex cgwb_release_mutex; /* protect shutdown of wb structs */ [all …]
|
H A D | backing-dev.h | 39 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 …]
|
H A D | writeback.h | 81 struct bdi_writeback *wb; /* wb this writeback is issued under */ member 85 int wb_id; /* current wb id */ 86 int wb_lcand_id; /* last foreign candidate wb id */ 87 int wb_tcand_id; /* this foreign candidate wb id */ 88 size_t wb_bytes; /* bytes written by current wb */ 108 ((wbc)->wb ? (wbc)->wb->blkcg_css : blkcg_root_css) 114 * A wb_domain represents a domain that wb's (bdi_writeback's) belong to 116 * domain, global_wb_domain, that every wb in the system is a member of. 117 * This allows measuring the relative bandwidth of each wb to distribute 215 bool cleanup_offline_cgwb(struct bdi_writeback *wb); [all …]
|
/openbmc/linux/include/trace/events/ |
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A 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>;
|
/openbmc/linux/Documentation/arch/ia64/ |
H A 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 …]
|
/openbmc/linux/arch/arm/mm/ |
H A 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 …]
|
H A D | proc-feroceon.S | 73 mcr p15, 0, r0, c7, c10, 4 @ drain WB 96 mcr p15, 0, ip, c7, c10, 4 @ drain WB 162 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 191 mcrne p15, 0, ip, c7, c10, 4 @ drain WB 225 mcr p15, 0, r0, c7, c10, 4 @ drain WB 247 mcr p15, 0, r0, c7, c10, 4 @ drain WB 261 mcr p15, 0, r0, c7, c10, 4 @ drain WB 288 mcr p15, 0, r0, c7, c10, 4 @ drain WB 324 mcr p15, 0, r0, c7, c10, 4 @ drain WB 337 mcr p15, 0, r0, c7, c10, 4 @ drain WB [all …]
|
H A 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
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/wb/wb_1.0/ |
H A 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()
|
/openbmc/linux/certs/ |
H A 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() 120 FILE *f = fopen(cert_dst, "wb"); in main() 156 if (wb && !x509) { in main() 169 BIO_free(wb); in main()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_wb.h | 26 * struct dpu_hw_wb_ops : Interface to the wb hw driver functions 36 struct dpu_hw_wb_cfg *wb); 39 struct dpu_hw_wb_cfg *wb); 42 struct dpu_hw_wb_cfg *wb); 56 * struct dpu_hw_wb : WB driver object 65 /* wb path */
|
H A D | dpu_encoder_phys_wb.c | 29 * dpu_encoder_phys_wb_is_master - report wb always as master encoder 91 DPU_DEBUG("[qos_remap] wb:%d vbif:%d xin:%d is_rt:%d\n", in dpu_encoder_phys_wb_set_qos_remap() 203 intf_cfg.wb = hw_wb->idx; in dpu_encoder_phys_wb_setup_cdp() 212 /* setup which pp blk will connect to this wb */ in dpu_encoder_phys_wb_setup_cdp() 222 intf_cfg.wb = hw_wb->idx; in dpu_encoder_phys_wb_setup_cdp() 300 DPU_DEBUG("[wb:%d]\n", hw_wb->idx - WB_0); in _dpu_encoder_phys_wb_update_flush() 303 DPU_DEBUG("[wb:%d] no ctl assigned\n", hw_wb->idx - WB_0); in _dpu_encoder_phys_wb_update_flush() 317 DPU_DEBUG("Pending flush mask for CTL_%d is 0x%x, WB %d\n", in _dpu_encoder_phys_wb_update_flush() 362 DPU_DEBUG("[wb:%d]\n", hw_wb->idx - WB_0); in dpu_encoder_phys_wb_done_irq() 380 * dpu_encoder_phys_wb_irq_ctrl - irq control of WB [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | qca,ath79-ddr-controller.yaml | 29 "#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>,
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A 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() 141 /* set the wb address whether it's enabled or not */ in r600_dma_resume() 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() [all …]
|
H A 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 …]
|
/openbmc/linux/drivers/usb/class/ |
H A D | cdc-acm.c | 157 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 …]
|
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/ |
H A D | spi.c | 363 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 …]
|
/openbmc/linux/security/apparmor/ |
H A D | match.c | 671 #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 …]
|
/openbmc/linux/drivers/irqchip/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/tidss/ |
H A 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
|
/openbmc/linux/Documentation/arch/x86/ |
H A 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.
|