/arch/powerpc/platforms/pseries/ |
D | plpar_wrappers.h | 49 long rc = 0; in plpar_page_set_loaned() local 52 for (i = 0; !rc && i < PAGE_SIZE; i += cmo_page_sz) in plpar_page_set_loaned() 53 rc = plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_LOANED, vpa + i, 0); in plpar_page_set_loaned() 55 for (i -= cmo_page_sz; rc && i != 0; i -= cmo_page_sz) in plpar_page_set_loaned() 59 return rc; in plpar_page_set_loaned() 65 long rc = 0; in plpar_page_set_active() local 68 for (i = 0; !rc && i < PAGE_SIZE; i += cmo_page_sz) in plpar_page_set_active() 69 rc = plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_ACTIVE, vpa + i, 0); in plpar_page_set_active() 71 for (i -= cmo_page_sz; rc && i != 0; i -= cmo_page_sz) in plpar_page_set_active() 75 return rc; in plpar_page_set_active() [all …]
|
D | eeh_driver.c | 71 int rc = 0; in irq_in_use() local 77 rc = 1; in irq_in_use() 79 return rc; in irq_in_use() 93 enum pci_ers_result rc, *res = userdata; in eeh_report_error() local 110 rc = driver->err_handler->error_detected (dev, pci_channel_io_frozen); in eeh_report_error() 113 if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; in eeh_report_error() 114 if (*res == PCI_ERS_RESULT_NONE) *res = rc; in eeh_report_error() 127 enum pci_ers_result rc, *res = userdata; in eeh_report_mmio_enabled() local 135 rc = driver->err_handler->mmio_enabled (dev); in eeh_report_mmio_enabled() 138 if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; in eeh_report_mmio_enabled() [all …]
|
D | msi.c | 54 int rc; in rtas_change_msi() local 62 rc = rtas_call(change_token, 6, 4, rtas_ret, addr, in rtas_change_msi() 66 rc = rtas_call(change_token, 6, 3, rtas_ret, addr, in rtas_change_msi() 71 } while (rtas_busy_delay(rc)); in rtas_change_msi() 77 if (rc == 0 && rtas_ret[0] != num_irqs) in rtas_change_msi() 78 rc = -ENOSPC; in rtas_change_msi() 81 func, num_irqs, rtas_ret[0], rc); in rtas_change_msi() 83 return rc; in rtas_change_msi() 102 int rc; in rtas_query_irq_number() local 108 rc = rtas_call(query_token, 4, 3, rtas_ret, addr, in rtas_query_irq_number() [all …]
|
D | eeh_sysfs.c | 65 int rc=0; in eeh_sysfs_add_device() local 67 rc += device_create_file(&pdev->dev, &dev_attr_eeh_mode); in eeh_sysfs_add_device() 68 rc += device_create_file(&pdev->dev, &dev_attr_eeh_config_addr); in eeh_sysfs_add_device() 69 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_config_addr); in eeh_sysfs_add_device() 70 rc += device_create_file(&pdev->dev, &dev_attr_eeh_check_count); in eeh_sysfs_add_device() 71 rc += device_create_file(&pdev->dev, &dev_attr_eeh_false_positives); in eeh_sysfs_add_device() 72 rc += device_create_file(&pdev->dev, &dev_attr_eeh_freeze_count); in eeh_sysfs_add_device() 74 if (rc) in eeh_sysfs_add_device()
|
/arch/powerpc/platforms/cell/spufs/ |
D | coredump.c | 75 int rc, size; in spufs_dump_align() local 80 rc = 0; in spufs_dump_align() 81 while (rc == 0 && new_off > *foffset) { in spufs_dump_align() 83 rc = spufs_dump_write(file, buf, size, foffset); in spufs_dump_align() 86 return rc; in spufs_dump_align() 146 int size = 0, rc, fd; in spufs_coredump_extra_notes_size() local 150 rc = spu_acquire_saved(ctx); in spufs_coredump_extra_notes_size() 151 if (rc) in spufs_coredump_extra_notes_size() 153 rc = spufs_ctx_note_size(ctx, fd); in spufs_coredump_extra_notes_size() 155 if (rc < 0) in spufs_coredump_extra_notes_size() [all …]
|
/arch/s390/kernel/ |
D | debug.c | 243 debug_info_t* rc; in debug_info_alloc() local 247 rc = kmalloc(sizeof(debug_info_t), GFP_KERNEL); in debug_info_alloc() 248 if(!rc) in debug_info_alloc() 250 rc->active_entries = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc() 251 if(!rc->active_entries) in debug_info_alloc() 253 rc->active_pages = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc() 254 if(!rc->active_pages) in debug_info_alloc() 257 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc() 258 if(!rc->areas) in debug_info_alloc() 261 rc->areas = NULL; in debug_info_alloc() [all …]
|
D | smp.c | 80 int cpu, rc; in smp_send_stop() local 93 rc = signal_processor(cpu, sigp_stop); in smp_send_stop() 94 } while (rc == sigp_busy); in smp_send_stop() 330 int rc; in smp_rescan_cpus_sclp() local 338 rc = sclp_get_cpu_info(info); in smp_rescan_cpus_sclp() 339 if (rc) in smp_rescan_cpus_sclp() 360 return rc; in smp_rescan_cpus_sclp() 744 int val, rc; in cpu_configure_store() local 754 rc = -EBUSY; in cpu_configure_store() 757 rc = 0; in cpu_configure_store() [all …]
|
/arch/powerpc/kernel/ |
D | nvram_64.c | 208 int rc; in nvram_write_header() local 211 rc = ppc_md.nvram_write((char *)&part->header, NVRAM_HEADER_LEN, &tmp_index); in nvram_write_header() 213 return rc; in nvram_write_header() 262 int rc; in nvram_remove_os_partition() local 305 rc = nvram_write_header(part); in nvram_remove_os_partition() 306 if (rc <= 0) { in nvram_remove_os_partition() 307 printk(KERN_ERR "nvram_remove_os_partition: nvram_write failed (%d)\n", rc); in nvram_remove_os_partition() 308 return rc; in nvram_remove_os_partition() 330 int rc; in nvram_create_os_partition() local 364 rc = nvram_write_header(new_part); in nvram_create_os_partition() [all …]
|
D | rtas.c | 489 int rc; in rtas_error_rc() local 493 rc = -EIO; in rtas_error_rc() 496 rc = -EINVAL; in rtas_error_rc() 499 rc = -EFAULT; in rtas_error_rc() 502 rc = -EEXIST; in rtas_error_rc() 505 rc = -ENODEV; in rtas_error_rc() 510 rc = -ERANGE; in rtas_error_rc() 513 return rc; in rtas_error_rc() 519 int rc; in rtas_get_power_level() local 524 while ((rc = rtas_call(token, 1, 2, level, powerdomain)) == RTAS_BUSY) in rtas_get_power_level() [all …]
|
/arch/s390/kvm/ |
D | sigp.c | 50 int rc; in __sigp_sense() local 57 rc = 3; /* not operational */ in __sigp_sense() 61 rc = 1; /* status stored */ in __sigp_sense() 65 rc = 1; /* status stored */ in __sigp_sense() 69 VCPU_EVENT(vcpu, 4, "sensed status of cpu %x rc %x", cpu_addr, rc); in __sigp_sense() 70 return rc; in __sigp_sense() 78 int rc; in __sigp_emergency() local 92 rc = 3; /* not operational */ in __sigp_emergency() 103 rc = 0; /* order accepted */ in __sigp_emergency() 107 return rc; in __sigp_emergency() [all …]
|
D | interrupt.c | 118 int rc, exception = 0; in __do_deliver_interrupt() local 124 rc = put_guest_u16(vcpu, __LC_EXT_INT_CODE, 0x1201); in __do_deliver_interrupt() 125 if (rc == -EFAULT) in __do_deliver_interrupt() 128 rc = copy_to_guest(vcpu, __LC_EXT_OLD_PSW, in __do_deliver_interrupt() 130 if (rc == -EFAULT) in __do_deliver_interrupt() 133 rc = copy_from_guest(vcpu, &vcpu->arch.sie_block->gpsw, in __do_deliver_interrupt() 135 if (rc == -EFAULT) in __do_deliver_interrupt() 143 rc = put_guest_u16(vcpu, __LC_EXT_INT_CODE, 0x2401); in __do_deliver_interrupt() 144 if (rc == -EFAULT) in __do_deliver_interrupt() 147 rc = copy_to_guest(vcpu, __LC_EXT_OLD_PSW, in __do_deliver_interrupt() [all …]
|
D | intercept.c | 31 int reg, rc; in handle_lctlg() local 50 rc = get_guest_u64(vcpu, useraddr, in handle_lctlg() 52 if (rc == -EFAULT) { in handle_lctlg() 72 int reg, rc; in handle_lctl() local 88 rc = get_guest_u32(vcpu, useraddr, &val); in handle_lctl() 89 if (rc == -EFAULT) { in handle_lctl() 131 int rc; in handle_stop() local 138 rc = __kvm_s390_vcpu_store_status(vcpu, in handle_stop() 140 if (rc >= 0) in handle_stop() 141 rc = -ENOTSUPP; in handle_stop() [all …]
|
/arch/s390/mm/ |
D | extmem.c | 110 int rc; in dcss_set_subcodes() local 127 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_set_subcodes() 131 if (rc != 3) { in dcss_set_subcodes() 201 int rc; in dcss_diag() local 204 rc = dcss_set_subcodes(); in dcss_diag() 205 if (rc < 0) in dcss_diag() 206 return rc; in dcss_diag() 219 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag() 228 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag() 234 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag() [all …]
|
D | page-states.c | 41 register int rc asm("1") = -EOPNOTSUPP; in cmma_init() 50 : "+&d" (rc), "+&d" (tmp)); in cmma_init() 51 if (rc) in cmma_init() 57 int i, rc; in arch_free_page() local 63 : "=&d" (rc) in arch_free_page() 70 int i, rc; in arch_alloc_page() local 76 : "=&d" (rc) in arch_alloc_page()
|
/arch/s390/hypfs/ |
D | hypfs_diag.c | 427 int pages, rc; in diag204_probe() local 450 rc = PTR_ERR(buf); in diag204_probe() 459 rc = -ENOSYS; in diag204_probe() 463 rc = 0; in diag204_probe() 467 return rc; in diag204_probe() 489 int rc = -ENOTSUPP; in diag224() local 496 : "+d" (rc) :"d" (0), "d" (ptr) : "memory"); in diag224() 497 return rc; in diag224() 530 int rc; in hypfs_diag_init() local 536 rc = diag224_get_name_table(); in hypfs_diag_init() [all …]
|
D | hypfs_vm.c | 56 unsigned long rc; in diag2fc() local 65 rc = -1; in diag2fc() 71 : "=d" (residual_cnt), "+d" (rc) : "0" (&parm_list) : "memory"); in diag2fc() 73 if ((rc != 0 ) && (rc != -2)) in diag2fc() 74 return rc; in diag2fc() 107 void *rc; \ 108 rc = hypfs_create_u64(sb, dir, name, member); \ 109 if (IS_ERR(rc)) \ 110 return PTR_ERR(rc); \ 171 int rc, i, count = 0; in hypfs_vm_create_files() local [all …]
|
/arch/arm/mach-pxa/ |
D | tosa-bt.c | 55 int rc; in tosa_bt_probe() local 60 rc = gpio_request(data->gpio_reset, "Bluetooth reset"); in tosa_bt_probe() 61 if (rc) in tosa_bt_probe() 63 rc = gpio_direction_output(data->gpio_reset, 0); in tosa_bt_probe() 64 if (rc) in tosa_bt_probe() 66 rc = gpio_request(data->gpio_pwr, "Bluetooth power"); in tosa_bt_probe() 67 if (rc) in tosa_bt_probe() 69 rc = gpio_direction_output(data->gpio_pwr, 0); in tosa_bt_probe() 70 if (rc) in tosa_bt_probe() 75 rc = -ENOMEM; in tosa_bt_probe() [all …]
|
D | reset.c | 25 int rc; in init_gpio_reset() local 27 rc = gpio_request(gpio, "reset generator"); in init_gpio_reset() 28 if (rc) { in init_gpio_reset() 34 rc = gpio_direction_output(gpio, 0); in init_gpio_reset() 36 rc = gpio_direction_input(gpio); in init_gpio_reset() 37 if (rc) { in init_gpio_reset() 44 if (!rc) in init_gpio_reset() 47 return rc; in init_gpio_reset()
|
/arch/x86/math-emu/ |
D | reg_constant.c | 73 static void fld1(int rc) in fld1() argument 78 static void fldl2t(int rc) in fldl2t() argument 80 fld_const(&CONST_L2T, (rc == RC_UP) ? 1 : 0, TAG_Valid); in fldl2t() 83 static void fldl2e(int rc) in fldl2e() argument 85 fld_const(&CONST_L2E, DOWN_OR_CHOP(rc) ? -1 : 0, TAG_Valid); in fldl2e() 88 static void fldpi(int rc) in fldpi() argument 90 fld_const(&CONST_PI, DOWN_OR_CHOP(rc) ? -1 : 0, TAG_Valid); in fldpi() 93 static void fldlg2(int rc) in fldlg2() argument 95 fld_const(&CONST_LG2, DOWN_OR_CHOP(rc) ? -1 : 0, TAG_Valid); in fldlg2() 98 static void fldln2(int rc) in fldln2() argument [all …]
|
/arch/powerpc/boot/ |
D | libfdt-wrapper.c | 62 int rc; in expand_buf() local 68 rc = fdt_open_into(fdt, buf, size); in expand_buf() 69 if (rc != 0) in expand_buf() 71 fdt_strerror(rc)); in expand_buf() 97 int rc; in fdt_wrapper_setprop() local 99 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop() 100 if (rc == -FDT_ERR_NOSPACE) { in fdt_wrapper_setprop() 102 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop() 105 return check_err(rc); in fdt_wrapper_setprop() 151 int rc; in fdt_wrapper_get_path() local [all …]
|
/arch/x86/xen/ |
D | smp.c | 98 int rc; in xen_smp_intr_init() local 102 rc = bind_ipi_to_irqhandler(XEN_RESCHEDULE_VECTOR, in xen_smp_intr_init() 108 if (rc < 0) in xen_smp_intr_init() 110 per_cpu(resched_irq, cpu) = rc; in xen_smp_intr_init() 113 rc = bind_ipi_to_irqhandler(XEN_CALL_FUNCTION_VECTOR, in xen_smp_intr_init() 119 if (rc < 0) in xen_smp_intr_init() 121 per_cpu(callfunc_irq, cpu) = rc; in xen_smp_intr_init() 124 rc = bind_virq_to_irqhandler(VIRQ_DEBUG, cpu, xen_debug_interrupt, in xen_smp_intr_init() 127 if (rc < 0) in xen_smp_intr_init() 129 per_cpu(debug_irq, cpu) = rc; in xen_smp_intr_init() [all …]
|
/arch/s390/include/asm/ |
D | etr.h | 88 unsigned int rc : 8; /* failure reason code */ member 145 int rc = -ENOSYS; in etr_setr() local 152 : "+d" (rc) : "m" (*ctrl), "a" (ctrl)); in etr_setr() 153 return rc; in etr_setr() 159 int rc = -ENOSYS; in etr_stetr() local 166 : "+d" (rc) : "m" (*aib), "a" (aib)); in etr_stetr() 167 return rc; in etr_stetr() 174 int rc = -ENOSYS; in etr_steai() local 181 : "+d" (rc) : "m" (*aib), "a" (aib), "d" (reg0)); in etr_steai() 182 return rc; in etr_steai() [all …]
|
/arch/powerpc/sysdev/ |
D | mpic_msi.c | 75 int rc; in mpic_msi_init_allocator() local 77 rc = msi_bitmap_alloc(&mpic->msi_bitmap, mpic->irq_count, in mpic_msi_init_allocator() 79 if (rc) in mpic_msi_init_allocator() 80 return rc; in mpic_msi_init_allocator() 82 rc = msi_bitmap_reserve_dt_hwirqs(&mpic->msi_bitmap); in mpic_msi_init_allocator() 83 if (rc > 0) { in mpic_msi_init_allocator() 85 rc = mpic_msi_reserve_u3_hwirqs(mpic); in mpic_msi_init_allocator() 87 if (rc) { in mpic_msi_init_allocator() 89 return rc; in mpic_msi_init_allocator()
|
D | pmi.c | 56 int rc; in pmi_irq_handler() local 65 rc = -EIO; in pmi_irq_handler() 71 rc = -EIO; in pmi_irq_handler() 79 rc = 0; in pmi_irq_handler() 83 if (rc == -EIO) { in pmi_irq_handler() 84 rc = IRQ_HANDLED; in pmi_irq_handler() 90 rc = IRQ_HANDLED; in pmi_irq_handler() 96 rc = IRQ_HANDLED; in pmi_irq_handler() 98 return rc; in pmi_irq_handler() 127 int rc; in pmi_of_probe() local [all …]
|
/arch/s390/appldata/ |
D | appldata_os.c | 101 int i, j, rc; in appldata_get_os_data() local 143 rc = appldata_diag(APPLDATA_RECORD_OS_ID, in appldata_get_os_data() 147 if (rc != 0) in appldata_get_os_data() 149 "failed with rc=%d\n", rc); in appldata_get_os_data() 151 rc = appldata_diag(APPLDATA_RECORD_OS_ID, in appldata_get_os_data() 155 if (rc != 0) in appldata_get_os_data() 157 "collection failed with rc=%d\n", rc); in appldata_get_os_data() 173 int rc, max_size; in appldata_os_init() local 180 rc = -ENOMEM; in appldata_os_init() 186 rc = -ENOMEM; in appldata_os_init() [all …]
|