/openbsd/sys/dev/pci/drm/include/linux/ |
H A D | gfp.h | 26 #define GFP_KERNEL (M_WAITOK | M_CANFAIL) 27 #define GFP_USER (M_WAITOK | M_CANFAIL) 35 return (flags & M_WAITOK) != 0; in gfpflags_allow_blocking()
|
H A D | vmalloc.h | 34 return malloc(size, M_DRM, M_WAITOK | M_CANFAIL); in vmalloc() 40 return malloc(size, M_DRM, M_WAITOK | M_CANFAIL | M_ZERO); in vzalloc()
|
/openbsd/sys/dev/efi/ |
H A D | efi.c | 115 buf = malloc(ioc->table_len, M_TEMP, M_WAITOK); in efiioc_get_table() 137 value = malloc(valuesize, M_TEMP, M_WAITOK); in efiioc_var_get() 138 name = malloc(ioc->namesize, M_TEMP, M_WAITOK); in efiioc_var_get() 190 name = malloc(namesize, M_TEMP, M_WAITOK); in efiioc_var_next() 237 value = malloc(ioc->datasize, M_TEMP, M_WAITOK); in efiioc_var_set() 243 name = malloc(ioc->namesize, M_TEMP, M_WAITOK); in efiioc_var_set()
|
/openbsd/sys/dev/ofw/ |
H A D | ofw_clock.c | 152 clocks = malloc(len, M_TEMP, M_WAITOK); in clock_get_frequency_idx() 193 clocks = malloc(len, M_TEMP, M_WAITOK); in clock_set_frequency_idx() 233 clocks = malloc(len, M_TEMP, M_WAITOK); in clock_do_enable_idx() 299 clock = clocks = malloc(clen, M_TEMP, M_WAITOK); in clock_set_assigned() 304 parent = parents = malloc(plen, M_TEMP, M_WAITOK); in clock_set_assigned() 309 rate = rates = malloc(rlen, M_TEMP, M_WAITOK); in clock_set_assigned() 392 resets = malloc(len, M_TEMP, M_WAITOK); in reset_do_assert_idx()
|
H A D | ofw_misc.c | 200 gpio = malloc(len, M_TEMP, M_WAITOK); in phy_usb_nop_enable() 264 phys = malloc(len, M_TEMP, M_WAITOK); in phy_enable_prop_idx() 642 phandles = malloc(len, M_TEMP, M_WAITOK); in nvmem_read_cell() 717 phandles = malloc(len, M_TEMP, M_WAITOK); in nvmem_write_cell() 786 ep = malloc(sizeof(*ep), M_DEVBUF, M_WAITOK); in endpoint_register() 803 dp = malloc(sizeof(*dp), M_DEVBUF, M_WAITOK); in device_port_register() 1085 map = malloc(len, M_TEMP, M_WAITOK); in iommu_device_lookup() 1132 map = malloc(len, M_TEMP, M_WAITOK); in iommu_device_lookup_pci() 1261 mc = malloc(sizeof(*mc), M_DEVBUF, M_WAITOK); in mbox_channel_cells() 1297 mboxes = malloc(len, M_TEMP, M_WAITOK); in mbox_channel_idx() [all …]
|
/openbsd/sys/dev/fdt/ |
H A D | gpioleds.c | 84 function = malloc(function_len, M_TEMP, M_WAITOK); in gpioleds_attach() 86 default_state = malloc(default_state_len, M_TEMP, M_WAITOK); in gpioleds_attach() 88 led_pin = malloc(gpios_len, M_TEMP, M_WAITOK); in gpioleds_attach()
|
H A D | gpiokeys.c | 115 label = malloc(len, M_TEMP, M_WAITOK); in gpiokeys_attach() 121 key = malloc(sizeof(*key), M_DEVBUF, M_WAITOK | M_ZERO); in gpiokeys_attach() 125 key->key_pin = malloc(gpios_len, M_DEVBUF, M_WAITOK); in gpiokeys_attach()
|
/openbsd/sys/arch/alpha/eisa/ |
H A D | eisa_machdep.c | 178 ecum = malloc(sizeof(*ecum), M_DEVBUF, M_ZERO|M_WAITOK); in eisa_parse_mem() 209 ecui = malloc(sizeof(*ecui), M_DEVBUF, M_ZERO|M_WAITOK); in eisa_parse_irq() 235 ecud = malloc(sizeof(*ecud), M_DEVBUF, M_ZERO|M_WAITOK); in eisa_parse_dma() 262 ecuio = malloc(sizeof(*ecuio), M_DEVBUF, M_ZERO|M_WAITOK); in eisa_parse_io() 391 ecud = malloc(sizeof(*ecud), M_DEVBUF, M_ZERO|M_WAITOK); in eisa_init() 406 cdata = malloc(CBUFSIZE, M_TEMP, M_ZERO|M_WAITOK); in eisa_init() 408 data = malloc(CBUFSIZE, M_TEMP, M_ZERO|M_WAITOK); in eisa_init() 521 ecuf = malloc(sizeof(*ecuf), M_DEVBUF, M_WAITOK); in eisa_init()
|
/openbsd/sys/arch/powerpc64/dev/ |
H A D | opal.c | 129 interrupts = malloc(len, M_TEMP, M_WAITOK); in opal_attach() 135 sizeof(struct opal_intr), M_DEVBUF, M_WAITOK); in opal_attach() 215 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in opal_intr_establish() 355 flags = malloc(flen, M_DEVBUF, M_WAITOK); in opal_configure_idle_states() 356 states = malloc(slen, M_DEVBUF, M_WAITOK); in opal_configure_idle_states() 433 sc->sc_pstate = malloc(len, M_DEVBUF, M_WAITOK); in opalpm_init() 434 sc->sc_freq = malloc(len, M_DEVBUF, M_WAITOK); in opalpm_init()
|
H A D | mainbus.c | 149 sc->sc_ranges = malloc(sc->sc_rangeslen, M_TEMP, M_WAITOK); in mainbus_attach() 228 reg = malloc(len, M_TEMP, M_WAITOK); in mainbus_attach_node() 232 M_DEVBUF, M_WAITOK); in mainbus_attach_node() 257 fa.fa_intr = malloc(len, M_DEVBUF, M_WAITOK); in mainbus_attach_node() 266 M_DEVBUF, M_WAITOK | M_ZERO); in mainbus_attach_node()
|
/openbsd/sys/arch/riscv64/dev/ |
H A D | simplebus.c | 96 sc->sc_ranges = malloc(sc->sc_rangeslen, M_TEMP, M_WAITOK); in simplebus_attach() 109 M_TEMP, M_WAITOK); in simplebus_attach() 194 reg = malloc(len, M_TEMP, M_WAITOK); in simplebus_attach_node() 198 M_DEVBUF, M_WAITOK | M_ZERO); in simplebus_attach_node() 223 fa.fa_intr = malloc(len, M_DEVBUF, M_WAITOK); in simplebus_attach_node() 231 M_DEVBUF, M_WAITOK | M_ZERO); in simplebus_attach_node() 236 M_DEVBUF, M_WAITOK | M_ZERO); in simplebus_attach_node()
|
H A D | mainbus.c | 128 sc->sc_ranges = malloc(sc->sc_rangeslen, M_TEMP, M_WAITOK); in mainbus_attach() 209 reg = malloc(len, M_TEMP, M_WAITOK); in mainbus_attach_node() 213 M_DEVBUF, M_WAITOK); in mainbus_attach_node() 238 fa.fa_intr = malloc(len, M_DEVBUF, M_WAITOK); in mainbus_attach_node() 246 M_DEVBUF, M_WAITOK | M_ZERO); in mainbus_attach_node() 251 M_DEVBUF, M_WAITOK | M_ZERO); in mainbus_attach_node()
|
/openbsd/sys/kern/ |
H A D | exec_script.c | 196 shellargp = mallocarray(4, sizeof(char *), M_EXEC, M_WAITOK); in exec_script_makecmds() 198 *tmpsap = malloc(shellnamelen + 1, M_EXEC, M_WAITOK); in exec_script_makecmds() 201 *tmpsap = malloc(shellarglen + 1, M_EXEC, M_WAITOK); in exec_script_makecmds() 204 *tmpsap = malloc(MAXPATHLEN, M_EXEC, M_WAITOK); in exec_script_makecmds()
|
H A D | kern_intrmap.c | 103 M_DEVBUF, M_WAITOK); in intrmap_cpus_get() 116 sizeof(*icpumap), M_DEVBUF, M_WAITOK); in intrmap_cpus_get() 122 ic = malloc(sizeof(*ic), M_DEVBUF, M_WAITOK); in intrmap_cpus_get() 189 im = malloc(sizeof(*im), M_DEVBUF, M_WAITOK | M_ZERO); in intrmap_create() 193 M_WAITOK | M_ZERO); in intrmap_create()
|
H A D | subr_percpu.c | 72 cm[cpu].mem = malloc(sz, type, M_WAITOK | M_ZERO); in cpumem_malloc() 89 cm[cpu].mem = malloc(sz, type, M_WAITOK | M_ZERO); in cpumem_malloc_ncpus() 174 temp = mallocarray(n, sizeof(uint64_t), M_TEMP, M_WAITOK); in counters_read() 262 return (malloc(sz, type, M_WAITOK | M_ZERO)); in cpumem_malloc()
|
/openbsd/sys/arch/powerpc64/powerpc64/ |
H A D | openprom.c | 106 *cpp = cp = malloc(len + 1, M_TEMP, M_WAITOK); in openpromgetstr() 160 value = malloc(len, M_TEMP, M_WAITOK); in openpromioctl() 178 M_WAITOK | M_CANFAIL); in openpromioctl()
|
/openbsd/sys/arch/arm64/arm64/ |
H A D | openprom.c | 106 *cpp = cp = malloc(len + 1, M_TEMP, M_WAITOK); in openpromgetstr() 160 value = malloc(len, M_TEMP, M_WAITOK); in openpromioctl() 178 M_WAITOK | M_CANFAIL); in openpromioctl()
|
H A D | intr.c | 134 map = malloc(len, M_TEMP, M_WAITOK); in arm_intr_map_msi() 220 ip = malloc(sizeof(struct intr_prereg), M_DEVBUF, M_ZERO | M_WAITOK); in arm_intr_prereg_establish_fdt() 266 M_DEVBUF, M_ZERO | M_WAITOK); in arm_intr_init_fdt_recurse() 372 cell = cells = malloc(len, M_TEMP, M_WAITOK); in arm_intr_establish_fdt_idx_cpu() 417 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_idx_cpu() 454 map = malloc(len, M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_imap_cpu() 489 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_imap_cpu() 527 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_msi_cpu() 590 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_parent_establish_fdt()
|
/openbsd/sys/arch/arm/arm/ |
H A D | openprom.c | 104 *cpp = cp = malloc(len + 1, M_TEMP, M_WAITOK); in openpromgetstr() 158 value = malloc(len, M_TEMP, M_WAITOK); in openpromioctl() 176 M_WAITOK | M_CANFAIL); in openpromioctl()
|
/openbsd/sys/arch/riscv64/riscv64/ |
H A D | openprom.c | 106 *cpp = cp = malloc(len + 1, M_TEMP, M_WAITOK); in openpromgetstr() 160 value = malloc(len, M_TEMP, M_WAITOK); in openpromioctl() 178 M_WAITOK | M_CANFAIL); in openpromioctl()
|
H A D | intr.c | 114 map = malloc(len, M_TEMP, M_WAITOK); in riscv_intr_map_msi() 200 ip = malloc(sizeof(struct intr_prereg), M_DEVBUF, M_ZERO | M_WAITOK); in riscv_intr_prereg_establish_fdt() 246 M_DEVBUF, M_ZERO | M_WAITOK); in riscv_intr_init_fdt_recurse() 354 cell = cells = malloc(len, M_TEMP, M_WAITOK); in riscv_intr_establish_fdt_idx_cpu() 399 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in riscv_intr_establish_fdt_idx_cpu() 428 map = malloc(len, M_DEVBUF, M_WAITOK); in riscv_intr_establish_fdt_imap_cpu() 463 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in riscv_intr_establish_fdt_imap_cpu() 493 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in riscv_intr_establish_fdt_msi_cpu()
|
/openbsd/sys/arch/octeon/octeon/ |
H A D | openprom.c | 106 *cpp = cp = malloc(len + 1, M_TEMP, M_WAITOK); in openpromgetstr() 160 value = malloc(len, M_TEMP, M_WAITOK); in openpromioctl() 178 M_WAITOK | M_CANFAIL); in openpromioctl()
|
/openbsd/sys/arch/armv7/armv7/ |
H A D | intr.c | 134 map = malloc(len, M_TEMP, M_WAITOK); in arm_intr_map_msi() 220 ip = malloc(sizeof(struct intr_prereg), M_DEVBUF, M_ZERO | M_WAITOK); in arm_intr_prereg_establish_fdt() 256 M_DEVBUF, M_ZERO | M_WAITOK); in arm_intr_init_fdt_recurse() 366 cell = cells = malloc(len, M_TEMP, M_WAITOK); in arm_intr_establish_fdt_idx_cpu() 411 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_idx_cpu() 448 map = malloc(len, M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_imap_cpu() 483 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_imap_cpu() 521 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_establish_fdt_msi_cpu() 584 ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); in arm_intr_parent_establish_fdt()
|
/openbsd/sys/arch/arm64/dev/ |
H A D | simplebus.c | 106 sc->sc_ranges = malloc(sc->sc_rangeslen, M_TEMP, M_WAITOK); in simplebus_attach() 120 M_TEMP, M_WAITOK); in simplebus_attach() 135 M_TEMP, M_WAITOK); in simplebus_attach() 219 reg = malloc(len, M_TEMP, M_WAITOK); in simplebus_attach_node() 223 M_DEVBUF, M_WAITOK | M_ZERO); in simplebus_attach_node() 248 fa.fa_intr = malloc(len, M_DEVBUF, M_WAITOK); in simplebus_attach_node() 256 M_DEVBUF, M_WAITOK | M_ZERO); in simplebus_attach_node()
|
/openbsd/sys/arch/macppc/macppc/ |
H A D | openprom.c | 103 *cpp = cp = malloc(len + 1, M_TEMP, M_WAITOK); in openpromgetstr() 166 value = malloc(len, M_TEMP, M_WAITOK); in openpromioctl() 210 M_WAITOK | M_CANFAIL); in openpromioctl()
|