/openbsd/sys/dev/efi/ |
H A D | efi.c | 96 free(buf, M_TEMP, ioc->table_len); in efiioc_get_table() 115 buf = malloc(ioc->table_len, M_TEMP, M_WAITOK); in efiioc_get_table() 121 free(buf, M_TEMP, ioc->table_len); 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() 176 free(value, M_TEMP, valuesize); in efiioc_var_get() 177 free(name, M_TEMP, ioc->namesize); in efiioc_var_get() 190 name = malloc(namesize, M_TEMP, M_WAITOK); in efiioc_var_next() 222 free(name, M_TEMP, namesize); in efiioc_var_next() 275 free(value, M_TEMP, ioc->datasize); in efiioc_var_set() [all …]
|
/openbsd/sys/dev/ofw/ |
H A D | ofw_clock.c | 152 clocks = malloc(len, M_TEMP, M_WAITOK); in clock_get_frequency_idx() 165 free(clocks, M_TEMP, len); in clock_get_frequency_idx() 193 clocks = malloc(len, M_TEMP, M_WAITOK); in clock_set_frequency_idx() 206 free(clocks, M_TEMP, len); in clock_set_frequency_idx() 233 clocks = malloc(len, M_TEMP, M_WAITOK); in clock_do_enable_idx() 246 free(clocks, M_TEMP, len); in clock_do_enable_idx() 329 free(clocks, M_TEMP, clen); in clock_set_assigned() 330 free(parents, M_TEMP, plen); in clock_set_assigned() 331 free(rates, M_TEMP, rlen); in clock_set_assigned() 392 resets = malloc(len, M_TEMP, M_WAITOK); in reset_do_assert_idx() [all …]
|
H A D | ofw_regulator.c | 148 gpio = malloc(len, M_TEMP, M_WAITOK); in regulator_fixed_set() 155 free(gpio, M_TEMP, len); in regulator_fixed_set() 386 gpios = malloc(glen, M_TEMP, M_WAITOK); in regulator_gpio_get() 387 states = malloc(slen, M_TEMP, M_WAITOK); in regulator_gpio_get() 412 free(gpios, M_TEMP, glen); in regulator_gpio_get() 413 free(states, M_TEMP, slen); in regulator_gpio_get() 451 gpios = malloc(glen, M_TEMP, M_WAITOK); in regulator_gpio_set() 452 states = malloc(slen, M_TEMP, M_WAITOK); in regulator_gpio_set() 481 free(gpios, M_TEMP, glen); in regulator_gpio_set() 482 free(states, M_TEMP, slen); in regulator_gpio_set()
|
H A D | ofw_misc.c | 200 gpio = malloc(len, M_TEMP, M_WAITOK); in phy_usb_nop_enable() 208 free(gpio, M_TEMP, len); in phy_usb_nop_enable() 264 phys = malloc(len, M_TEMP, M_WAITOK); in phy_enable_prop_idx() 277 free(phys, M_TEMP, len); in phy_enable_prop_idx() 645 free(phandles, M_TEMP, len); in nvmem_read_cell() 720 free(phandles, M_TEMP, len); in nvmem_write_cell() 1085 map = malloc(len, M_TEMP, M_WAITOK); in iommu_device_lookup() 1112 free(map, M_TEMP, len); in iommu_device_lookup() 1166 free(map, M_TEMP, len); in iommu_device_lookup_pci() 1310 free(mboxes, M_TEMP, len); in mbox_channel_idx() [all …]
|
H A D | ofw_power.c | 80 domains = malloc(len, M_TEMP, M_WAITOK); in power_domain_do_enable_idx() 93 free(domains, M_TEMP, len); in power_domain_do_enable_idx()
|
/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() 97 free(function, M_TEMP, function_len); in gpioleds_attach() 98 free(default_state, M_TEMP, default_state_len); in gpioleds_attach() 99 free(led_pin, M_TEMP, gpios_len); in gpioleds_attach()
|
H A D | rkpinctrl.c | 319 free(pins, M_TEMP, len); in rk3288_pinctrl() 323 free(pins, M_TEMP, len); in rk3288_pinctrl() 465 free(pins, M_TEMP, len); in rk3308_pinctrl() 469 free(pins, M_TEMP, len); in rk3308_pinctrl() 620 free(pins, M_TEMP, len); in rk3328_pinctrl() 624 free(pins, M_TEMP, len); in rk3328_pinctrl() 796 free(pins, M_TEMP, len); in rk3399_pinctrl() 800 free(pins, M_TEMP, len); in rk3399_pinctrl() 1053 free(pins, M_TEMP, len); in rk3568_pinctrl() 1057 free(pins, M_TEMP, len); in rk3568_pinctrl() [all …]
|
H A D | bcm2835_gpio.c | 206 pins = malloc(len, M_TEMP, M_WAITOK); in bcmgpio_pinctrl() 213 pull = malloc(len, M_TEMP, M_WAITOK); in bcmgpio_pinctrl() 225 free(pull, M_TEMP, plen); in bcmgpio_pinctrl() 226 free(pins, M_TEMP, len); in bcmgpio_pinctrl() 230 free(pull, M_TEMP, plen); in bcmgpio_pinctrl() 231 free(pins, M_TEMP, len); in bcmgpio_pinctrl()
|
H A D | pwmleds.c | 84 function = malloc(len, M_TEMP, M_WAITOK); in pwmleds_attach() 87 free(function, M_TEMP, len); in pwmleds_attach() 90 free(function, M_TEMP, len); in pwmleds_attach()
|
H A D | qcpas.c | 911 name = malloc(namelen, M_TEMP, M_WAITOK); in qcpas_glink_recv_open() 919 free(name, M_TEMP, namelen); in qcpas_glink_recv_open() 931 free(name, M_TEMP, namelen); in qcpas_glink_recv_open() 948 free(ch, M_TEMP, sizeof(*ch)); in qcpas_glink_recv_open() 949 free(name, M_TEMP, namelen); in qcpas_glink_recv_open() 968 free(name, M_TEMP, namelen); in qcpas_glink_recv_open() 1067 free(buf, M_TEMP, chunk_size); in qcpas_glink_recv_tx_data() 1078 free(buf, M_TEMP, chunk_size); in qcpas_glink_recv_tx_data() 1086 free(buf, M_TEMP, chunk_size); in qcpas_glink_recv_tx_data() 1374 free(bat, M_TEMP, sizeof(*bat)); in qcpas_pmic_rtr_recv() [all …]
|
H A D | gpiokeys.c | 115 label = malloc(len, M_TEMP, M_WAITOK); in gpiokeys_attach() 117 free(label, M_TEMP, len); in gpiokeys_attach() 147 free(label, M_TEMP, len); in gpiokeys_attach()
|
H A D | mvpinctrl.c | 239 func = malloc(flen, M_TEMP, M_WAITOK); in mvpinctrl_pinctrl() 246 pin = pins = malloc(plen, M_TEMP, M_WAITOK); in mvpinctrl_pinctrl() 274 free(func, M_TEMP, flen); in mvpinctrl_pinctrl() 275 free(pins, M_TEMP, plen); in mvpinctrl_pinctrl()
|
/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() 177 value = nextprop = malloc(OFMAXPARAM, M_TEMP, in openpromioctl() 223 free(name, M_TEMP, 0); in openpromioctl() 224 free(value, M_TEMP, 0); 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() 177 value = nextprop = malloc(OFMAXPARAM, M_TEMP, in openpromioctl() 223 free(name, M_TEMP, 0); in openpromioctl() 224 free(value, M_TEMP, 0); in openpromioctl()
|
/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() 175 value = nextprop = malloc(OFMAXPARAM, M_TEMP, in openpromioctl() 221 free(name, M_TEMP, 0); in openpromioctl() 222 free(value, M_TEMP, 0); 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() 177 value = nextprop = malloc(OFMAXPARAM, M_TEMP, in openpromioctl() 223 free(name, M_TEMP, 0); in openpromioctl() 224 free(value, M_TEMP, 0); in openpromioctl()
|
/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() 177 value = nextprop = malloc(OFMAXPARAM, M_TEMP, in openpromioctl() 223 free(name, M_TEMP, 0); in openpromioctl() 224 free(value, M_TEMP, 0); in openpromioctl()
|
/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() 209 value = nextprop = malloc(OPROMMAXPARAM, M_TEMP, in openpromioctl() 262 free(name, M_TEMP, 0); in openpromioctl() 263 free(value, M_TEMP, 0); in openpromioctl()
|
/openbsd/sys/arch/octeon/dev/ |
H A D | octboot.c | 109 argbuf = malloc(PAGE_SIZE, M_TEMP, M_NOWAIT); in octboot_kexec() 133 ph = mallocarray(eh.e_phnum, sizeof(Elf_Phdr), M_TEMP, M_NOWAIT); in octboot_kexec() 144 sh = mallocarray(eh.e_shnum, sizeof(Elf_Shdr), M_TEMP, M_NOWAIT); in octboot_kexec() 233 shstr = malloc(shstrsize, M_TEMP, M_NOWAIT); in octboot_kexec() 351 free(shstr, M_TEMP, shstrsize); in octboot_kexec() 352 free(sh, M_TEMP, shsize); in octboot_kexec() 353 free(ph, M_TEMP, phsize); in octboot_kexec() 354 free(argbuf, M_TEMP, PAGE_SIZE); in octboot_kexec()
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | openprom.c | 158 *cpp = cp = malloc(len + 1, M_TEMP, M_WAITOK); in openpromgetstr() 213 value = malloc(len, M_TEMP, M_WAITOK); in openpromioctl() 261 value = nextprop = malloc(OPROMMAXPARAM, M_TEMP, in openpromioctl() 313 free(name, M_TEMP, 0); in openpromioctl() 314 free(value, M_TEMP, 0); in openpromioctl()
|
/openbsd/sys/dev/usb/ |
H A D | if_urndis.c | 181 free(buf, M_TEMP, RNDIS_RESPONSE_LEN); in urndis_ctrl_recv() 244 free(hdr, M_TEMP, RNDIS_RESPONSE_LEN); in urndis_ctrl_handle() 348 M_TEMP, M_WAITOK | M_CANFAIL); in urndis_ctrl_handle_query() 467 free(msg, M_TEMP, sizeof *msg); in urndis_ctrl_init() 506 free(msg, M_TEMP, sizeof *msg); in urndis_ctrl_halt() 606 free(msg, M_TEMP, sizeof *msg + len); in urndis_ctrl_set() 670 free(param, M_TEMP, tlen); in urndis_ctrl_set_param() 703 free(reset, M_TEMP, sizeof *reset); 743 free(keep, M_TEMP, sizeof *keep); 1466 free(buf, M_TEMP, bufsz); in urndis_attach() [all …]
|
/openbsd/sys/kern/ |
H A D | exec_elf.c | 585 free(ph, M_TEMP, phsize); in elf_load_file() 706 free(dt, M_TEMP, pp->p_filesz); in exec_elf_makecmds() 715 free(dt, M_TEMP, pp->p_filesz); in exec_elf_makecmds() 916 free(ph, M_TEMP, phsize); in exec_elf_makecmds() 923 free(ph, M_TEMP, phsize); in exec_elf_makecmds() 964 free(ap, M_TEMP, sizeof *ap); in exec_elf_fixup() 1032 free(ap, M_TEMP, sizeof *ap); in exec_elf_fixup() 1089 free(np, M_TEMP, pfilesz); in elf_os_pt_note() 1113 free(np, M_TEMP, pfilesz); in elf_os_pt_note() 1115 free(hph, M_TEMP, phsize); in elf_os_pt_note() [all …]
|
H A D | kern_kthread.c | 123 kq = malloc(sizeof *kq, M_TEMP, M_NOWAIT|M_ZERO); in kthread_create_deferred() 144 free(kq, M_TEMP, sizeof(*kq)); in kthread_run_deferred_queue()
|
H A D | vfs_getcwd.c | 119 dirbuf = malloc(dirbuflen, M_TEMP, M_WAITOK); in vfs_getcwd_scandir() 202 free(dirbuf, M_TEMP, dirbuflen); in vfs_getcwd_scandir() 405 path = malloc(len, M_TEMP, M_WAITOK); in sys___getcwd() 430 free(path, M_TEMP, len); in sys___getcwd()
|
/openbsd/sys/arch/powerpc64/dev/ |
H A D | kexec.c | 113 ph = mallocarray(eh.e_phnum, sizeof(Elf_Phdr), M_TEMP, M_NOWAIT); in kexec_kexec() 124 sh = mallocarray(eh.e_shnum, sizeof(Elf_Shdr), M_TEMP, M_NOWAIT); in kexec_kexec() 246 free(sh, M_TEMP, shsize); in kexec_kexec() 248 free(ph, M_TEMP, phsize); in kexec_kexec()
|