Home
last modified time | relevance | path

Searched refs:desired (Results 1 - 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dvio.c83 * @desired: desired memory for system operation
96 size_t desired; member
183 * pool is used to increase the reserve pool toward the desired entitlement
243 * Increase the reserve pool until the desired allocation is met. in vio_cmo_dealloc()
247 if (excess_freed && (vio_cmo.desired > vio_cmo.reserve.size)) { in vio_cmo_dealloc()
248 tmp = min(excess_freed, (vio_cmo.desired - vio_cmo.reserve.size)); in vio_cmo_dealloc()
370 * The list of devices is iterated through to recalculate the desired
402 cmo->desired = cmo->min; in vio_cmo_balance()
413 cmo->desired in vio_cmo_balance()
625 vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) vio_cmo_set_dev_desired() argument
973 viodev_cmo_rd_attr(desired); global() variable
1024 viobus_cmo_rd_attr(desired); global() variable
1069 vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) vio_cmo_set_dev_desired() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dvio.c85 * @desired: desired memory for system operation
98 size_t desired; member
185 * pool is used to increase the reserve pool toward the desired entitlement
245 * Increase the reserve pool until the desired allocation is met. in vio_cmo_dealloc()
249 if (excess_freed && (vio_cmo.desired > vio_cmo.reserve.size)) { in vio_cmo_dealloc()
250 tmp = min(excess_freed, (vio_cmo.desired - vio_cmo.reserve.size)); in vio_cmo_dealloc()
372 * The list of devices is iterated through to recalculate the desired
404 cmo->desired = cmo->min; in vio_cmo_balance()
415 cmo->desired in vio_cmo_balance()
628 vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) vio_cmo_set_dev_desired() argument
976 viodev_cmo_rd_attr(desired); global() variable
1027 viobus_cmo_rd_attr(desired); global() variable
1072 vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) vio_cmo_set_dev_desired() argument
[all...]
/kernel/linux/linux-5.10/arch/x86/platform/olpc/
H A Dolpc.c63 static int __wait_on_ibf(unsigned int line, unsigned int port, int desired) in __wait_on_ibf() argument
68 for (timeo = ec_timeout; state != desired && timeo; timeo--) { in __wait_on_ibf()
73 if ((state == desired) && (ec_timeout > EC_BASE_TIMEOUT) && in __wait_on_ibf()
79 return !(state == desired); in __wait_on_ibf()
83 static int __wait_on_obf(unsigned int line, unsigned int port, int desired) in __wait_on_obf() argument
88 for (timeo = ec_timeout; state != desired && timeo; timeo--) { in __wait_on_obf()
93 if ((state == desired) && (ec_timeout > EC_BASE_TIMEOUT) && in __wait_on_obf()
99 return !(state == desired); in __wait_on_obf()
/kernel/linux/linux-6.6/arch/x86/platform/olpc/
H A Dolpc.c63 static int __wait_on_ibf(unsigned int line, unsigned int port, int desired) in __wait_on_ibf() argument
68 for (timeo = ec_timeout; state != desired && timeo; timeo--) { in __wait_on_ibf()
73 if ((state == desired) && (ec_timeout > EC_BASE_TIMEOUT) && in __wait_on_ibf()
79 return !(state == desired); in __wait_on_ibf()
83 static int __wait_on_obf(unsigned int line, unsigned int port, int desired) in __wait_on_obf() argument
88 for (timeo = ec_timeout; state != desired && timeo; timeo--) { in __wait_on_obf()
93 if ((state == desired) && (ec_timeout > EC_BASE_TIMEOUT) && in __wait_on_obf()
99 return !(state == desired); in __wait_on_obf()
/kernel/linux/linux-5.10/drivers/pci/controller/
H A Dpci-mvebu.c340 const struct mvebu_pcie_window *desired, in mvebu_pcie_set_window()
343 if (desired->base == cur->base && desired->remap == cur->remap && in mvebu_pcie_set_window()
344 desired->size == cur->size) in mvebu_pcie_set_window()
359 if (desired->size == 0) in mvebu_pcie_set_window()
362 mvebu_pcie_add_windows(port, target, attribute, desired->base, in mvebu_pcie_set_window()
363 desired->size, desired->remap); in mvebu_pcie_set_window()
364 *cur = *desired; in mvebu_pcie_set_window()
369 struct mvebu_pcie_window desired in mvebu_pcie_handle_iobase_change() local
338 mvebu_pcie_set_window(struct mvebu_pcie_port *port, unsigned int target, unsigned int attribute, const struct mvebu_pcie_window *desired, struct mvebu_pcie_window *cur) mvebu_pcie_set_window() argument
408 struct mvebu_pcie_window desired = {.remap = MVEBU_MBUS_NO_REMAP}; mvebu_pcie_handle_membase_change() local
[all...]
/kernel/linux/linux-6.6/drivers/pci/controller/
H A Dpci-mvebu.c483 const struct mvebu_pcie_window *desired, in mvebu_pcie_set_window()
488 if (desired->base == cur->base && desired->remap == cur->remap && in mvebu_pcie_set_window()
489 desired->size == cur->size) in mvebu_pcie_set_window()
504 if (desired->size == 0) in mvebu_pcie_set_window()
507 ret = mvebu_pcie_add_windows(port, target, attribute, desired->base, in mvebu_pcie_set_window()
508 desired->size, desired->remap); in mvebu_pcie_set_window()
515 *cur = *desired; in mvebu_pcie_set_window()
521 struct mvebu_pcie_window desired in mvebu_pcie_handle_iobase_change() local
481 mvebu_pcie_set_window(struct mvebu_pcie_port *port, unsigned int target, unsigned int attribute, const struct mvebu_pcie_window *desired, struct mvebu_pcie_window *cur) mvebu_pcie_set_window() argument
551 struct mvebu_pcie_window desired = {.remap = MVEBU_MBUS_NO_REMAP}; mvebu_pcie_handle_membase_change() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dvio.h91 * @desired: set from return of driver's get_desired_dma() function
103 size_t desired; member
135 extern void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired);
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dvio.h91 * @desired: set from return of driver's get_desired_dma() function
103 size_t desired; member
136 extern void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired);
/kernel/linux/linux-5.10/include/linux/
H A Dmdio-mux.h25 int (*switch_fn) (int cur, int desired, void *data),
/kernel/linux/linux-6.6/include/linux/
H A Dmdio-mux.h25 int (*switch_fn) (int cur, int desired, void *data),
/kernel/linux/linux-5.10/drivers/mmc/host/
H A Dmmci_stm32_sdmmc.c195 static void mmci_sdmmc_set_clkreg(struct mmci_host *host, unsigned int desired) in mmci_sdmmc_set_clkreg() argument
208 if (desired) { in mmci_sdmmc_set_clkreg()
209 if (desired >= host->mclk && !ddr) { in mmci_sdmmc_set_clkreg()
212 clk = DIV_ROUND_UP(host->mclk, 2 * desired); in mmci_sdmmc_set_clkreg()
221 * if desired clock is 0, set max divider in mmci_sdmmc_set_clkreg()
H A Dmmci.c403 static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired) in mmci_set_clkreg() argument
411 if (desired) { in mmci_set_clkreg()
414 } else if (desired >= host->mclk) { in mmci_set_clkreg()
426 clk = DIV_ROUND_UP(host->mclk, desired) - 2; in mmci_set_clkreg()
435 clk = host->mclk / (2 * desired) - 1; in mmci_set_clkreg()
/kernel/linux/linux-5.10/fs/hostfs/
H A Dhostfs_kern.c759 static int hostfs_permission(struct inode *ino, int desired) in hostfs_permission() argument
764 if (desired & MAY_NOT_BLOCK) in hostfs_permission()
767 if (desired & MAY_READ) r = 1; in hostfs_permission()
768 if (desired & MAY_WRITE) w = 1; in hostfs_permission()
769 if (desired & MAY_EXEC) x = 1; in hostfs_permission()
781 err = generic_permission(ino, desired); in hostfs_permission()
/kernel/linux/linux-6.6/fs/hostfs/
H A Dhostfs_kern.c775 struct inode *ino, int desired) in hostfs_permission()
780 if (desired & MAY_NOT_BLOCK) in hostfs_permission()
783 if (desired & MAY_READ) r = 1; in hostfs_permission()
784 if (desired & MAY_WRITE) w = 1; in hostfs_permission()
785 if (desired & MAY_EXEC) x = 1; in hostfs_permission()
797 err = generic_permission(&nop_mnt_idmap, ino, desired); in hostfs_permission()
774 hostfs_permission(struct mnt_idmap *idmap, struct inode *ino, int desired) hostfs_permission() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/
H A Dibmvnic.c2553 adapter->desired.mtu = adapter->fallback.mtu; in wait_for_reset()
2554 adapter->desired.rx_queues = adapter->fallback.rx_queues; in wait_for_reset()
2555 adapter->desired.tx_queues = adapter->fallback.tx_queues; in wait_for_reset()
2556 adapter->desired.rx_entries = adapter->fallback.rx_entries; in wait_for_reset()
2557 adapter->desired.tx_entries = adapter->fallback.tx_entries; in wait_for_reset()
2583 adapter->desired.mtu = new_mtu + ETH_HLEN; in ibmvnic_change_mtu()
2704 adapter->desired.rx_entries = ring->rx_pending; in ibmvnic_set_ringparam()
2705 adapter->desired.tx_entries = ring->tx_pending; in ibmvnic_set_ringparam()
2730 adapter->desired.rx_queues = channels->rx_count; in ibmvnic_set_channels()
2731 adapter->desired in ibmvnic_set_channels()
[all...]
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Dmmci_stm32_sdmmc.c297 static void mmci_sdmmc_set_clkreg(struct mmci_host *host, unsigned int desired) in mmci_sdmmc_set_clkreg() argument
310 if (desired) { in mmci_sdmmc_set_clkreg()
311 if (desired >= host->mclk && !ddr) { in mmci_sdmmc_set_clkreg()
314 clk = DIV_ROUND_UP(host->mclk, 2 * desired); in mmci_sdmmc_set_clkreg()
323 * if desired clock is 0, set max divider in mmci_sdmmc_set_clkreg()
/kernel/linux/linux-5.10/fs/f2fs/
H A Dsegment.h911 long nr_to_write, desired; in nr_pages_to_write() local
917 desired = BIO_MAX_PAGES; in nr_pages_to_write()
919 desired <<= 1; in nr_pages_to_write()
921 wbc->nr_to_write = desired; in nr_pages_to_write()
922 return desired - nr_to_write; in nr_pages_to_write()
/kernel/linux/linux-6.6/fs/f2fs/
H A Dsegment.h932 long nr_to_write, desired; in nr_pages_to_write() local
938 desired = BIO_MAX_VECS; in nr_pages_to_write()
940 desired <<= 1; in nr_pages_to_write()
942 wbc->nr_to_write = desired; in nr_pages_to_write()
943 return desired - nr_to_write; in nr_pages_to_write()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Docxl.c50 * of desired actags. The host must configure in the config space of
70 * count of desired actags for the device, and assign the actags to
184 * Check how many actags are desired for the AFUs under that in pnv_ocxl_fixup_actag()
212 static u16 assign_fn_actags(u16 desired, u16 total) in assign_fn_actags() argument
217 count = desired; in assign_fn_actags()
219 count = PNV_OCXL_ACTAG_MAX * desired / total; in assign_fn_actags()
242 pr_debug("link %x:%x:%x fct %d actags: start=%d count=%d (desired=%d)\n", in assign_actags()
266 * the desired actag counts during PCI enumeration, so that we in pnv_ocxl_get_actag()
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Docxl.c50 * of desired actags. The host must configure in the config space of
70 * count of desired actags for the device, and assign the actags to
185 * Check how many actags are desired for the AFUs under that in pnv_ocxl_fixup_actag()
213 static u16 assign_fn_actags(u16 desired, u16 total) in assign_fn_actags() argument
218 count = desired; in assign_fn_actags()
220 count = PNV_OCXL_ACTAG_MAX * desired / total; in assign_fn_actags()
243 pr_debug("link %x:%x:%x fct %d actags: start=%d count=%d (desired=%d)\n", in assign_actags()
267 * the desired actag counts during PCI enumeration, so that we in pnv_ocxl_get_actag()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c265 unsigned long desired) in cmpxchg()
269 __atomic_compare_exchange_n(p, &exp, desired, 0, in cmpxchg()
264 cmpxchg(unsigned long *p, unsigned long expected, unsigned long desired) cmpxchg() argument
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c265 unsigned long desired) in cmpxchg()
269 __atomic_compare_exchange_n(p, &exp, desired, 0, in cmpxchg()
264 cmpxchg(unsigned long *p, unsigned long expected, unsigned long desired) cmpxchg() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/ibm/
H A Dibmvnic.c3559 adapter->desired.mtu = adapter->fallback.mtu; in wait_for_reset()
3560 adapter->desired.rx_queues = adapter->fallback.rx_queues; in wait_for_reset()
3561 adapter->desired.tx_queues = adapter->fallback.tx_queues; in wait_for_reset()
3562 adapter->desired.rx_entries = adapter->fallback.rx_entries; in wait_for_reset()
3563 adapter->desired.tx_entries = adapter->fallback.tx_entries; in wait_for_reset()
3589 adapter->desired.mtu = new_mtu + ETH_HLEN; in ibmvnic_change_mtu()
3714 adapter->desired.rx_entries = ring->rx_pending; in ibmvnic_set_ringparam()
3715 adapter->desired.tx_entries = ring->tx_pending; in ibmvnic_set_ringparam()
3740 adapter->desired.rx_queues = channels->rx_count; in ibmvnic_set_channels()
3741 adapter->desired in ibmvnic_set_channels()
[all...]
/kernel/linux/linux-5.10/drivers/net/mdio/
H A Dmdio-mux.c98 int (*switch_fn)(int cur, int desired, void *data), in mdio_mux_init()
96 mdio_mux_init(struct device *dev, struct device_node *mux_node, int (*switch_fn)(int cur, int desired, void *data), void **mux_handle, void *data, struct mii_bus *mux_bus) mdio_mux_init() argument
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/
H A Dmem_protect.c577 enum pkvm_page_state desired; member
586 return d->get_page_state(ctx->old, ctx->addr) == d->desired ? 0 : -EPERM; in __check_page_state_visitor()
616 .desired = state, in __host_check_page_state_range()
724 .desired = state, in __hyp_check_page_state_range()

Completed in 36 milliseconds

12