/arch/powerpc/platforms/pseries/ |
D | dlpar.c | 148 int rc = -1; in dlpar_configure_connector() local 170 rc = rtas_call(cc_token, 2, 1, NULL, rtas_data_buf, NULL); in dlpar_configure_connector() 175 if (rtas_busy_delay(rc)) in dlpar_configure_connector() 178 switch (rc) { in dlpar_configure_connector() 234 "returned from configure-connector\n", rc); in dlpar_configure_connector() 237 } while (rc); in dlpar_configure_connector() 242 if (rc) { in dlpar_configure_connector() 254 int rc; in dlpar_attach_node() local 260 rc = of_attach_node(dn); in dlpar_attach_node() 261 if (rc) { in dlpar_attach_node() [all …]
|
D | suspend.c | 47 long vasi_state, rc; in pseries_suspend_begin() local 51 rc = plpar_hcall(H_VASI_STATE, retbuf, stream_id); in pseries_suspend_begin() 55 if (rc) { in pseries_suspend_begin() 56 pr_err("pseries_suspend_begin: vasi_state returned %ld\n",rc); in pseries_suspend_begin() 57 return rc; in pseries_suspend_begin() 107 int rc = rtas_suspend_last_cpu(&suspend_data); in pseries_suspend_enter() local 111 return rc; in pseries_suspend_enter() 149 int rc; in store_hibernate() local 160 rc = pseries_suspend_begin(PM_SUSPEND_MEM); in store_hibernate() 161 if (rc == -EAGAIN) in store_hibernate() [all …]
|
D | mobility.c | 46 int rc; in mobility_rtas_call() local 51 rc = rtas_call(token, 2, 1, NULL, rtas_data_buf, scope); in mobility_rtas_call() 55 return rc; in mobility_rtas_call() 136 int i, rc, rtas_rc; in update_dt_node() local 201 rc = update_dt_property(dn, &prop, prop_name, in update_dt_node() 203 if (rc) { in update_dt_node() 226 int rc; in add_dt_node() local 238 rc = dlpar_attach_node(dn); in add_dt_node() 239 if (rc) in add_dt_node() 243 return rc; in add_dt_node() [all …]
|
D | hotplug-memory.c | 195 int rc = 1; in lmb_is_removable() local 213 rc &= is_mem_section_removable(pfn, PAGES_PER_SECTION); in lmb_is_removable() 217 return rc ? true : false; in lmb_is_removable() 226 int nid, rc; in dlpar_remove_lmb() local 235 rc = device_offline(&mem_block->dev); in dlpar_remove_lmb() 237 if (rc) in dlpar_remove_lmb() 238 return rc; in dlpar_remove_lmb() 261 int i, rc; in dlpar_memory_remove_by_count() local 282 rc = dlpar_remove_lmb(&lmbs[i]); in dlpar_memory_remove_by_count() 283 if (rc) in dlpar_memory_remove_by_count() [all …]
|
D | msi.c | 38 int rc; in rtas_change_msi() local 47 rc = rtas_call(change_token, 6, 4, rtas_ret, addr, in rtas_change_msi() 51 rc = rtas_call(change_token, 6, 3, rtas_ret, addr, in rtas_change_msi() 56 } while (rtas_busy_delay(rc)); in rtas_change_msi() 62 if (rc == 0) in rtas_change_msi() 63 rc = rtas_ret[0]; in rtas_change_msi() 64 else if (rc > 0) in rtas_change_msi() 65 rc = -rc; in rtas_change_msi() 68 func, num_irqs, rtas_ret[0], rc); in rtas_change_msi() 70 return rc; in rtas_change_msi() [all …]
|
/arch/s390/kvm/ |
D | sigp.c | 28 int rc; in __sigp_sense() local 36 rc = SIGP_CC_ORDER_CODE_ACCEPTED; in __sigp_sense() 43 rc = SIGP_CC_STATUS_STORED; in __sigp_sense() 47 rc); in __sigp_sense() 48 return rc; in __sigp_sense() 58 int rc = 0; in __inject_sigp_emergency() local 60 rc = kvm_s390_inject_vcpu(dst_vcpu, &irq); in __inject_sigp_emergency() 61 if (!rc) in __inject_sigp_emergency() 65 return rc ? rc : SIGP_CC_ORDER_CODE_ACCEPTED; in __inject_sigp_emergency() 107 int rc; in __sigp_external_call() local [all …]
|
D | intercept.c | 72 int rc = 0; in handle_stop() local 92 rc = kvm_s390_vcpu_store_status(vcpu, in handle_stop() 94 if (rc) in handle_stop() 95 return rc; in handle_stop() 195 int rc; in handle_itdb() local 202 rc = write_guest_lc(vcpu, __LC_PGM_TDB, itdb, sizeof(*itdb)); in handle_itdb() 203 if (rc) in handle_itdb() 204 return rc; in handle_itdb() 216 int rc; in handle_prog() local 229 rc = read_guest_lc(vcpu, __LC_PGM_NEW_PSW, &psw, sizeof(psw_t)); in handle_prog() [all …]
|
/arch/powerpc/include/asm/ |
D | plpar_wrappers.h | 41 long rc; in extended_cede_processor() local 46 rc = cede_processor(); in extended_cede_processor() 55 return rc; in extended_cede_processor() 99 long rc = 0; in plpar_page_set_loaned() local 102 for (i = 0; !rc && i < PAGE_SIZE; i += cmo_page_sz) in plpar_page_set_loaned() 103 rc = plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_LOANED, vpa + i, 0); in plpar_page_set_loaned() 105 for (i -= cmo_page_sz; rc && i != 0; i -= cmo_page_sz) in plpar_page_set_loaned() 109 return rc; in plpar_page_set_loaned() 115 long rc = 0; in plpar_page_set_active() local 118 for (i = 0; !rc && i < PAGE_SIZE; i += cmo_page_sz) in plpar_page_set_active() [all …]
|
/arch/s390/oprofile/ |
D | hwsampler.c | 33 signed int rc; member 70 ep->rc = qsi(ep->buffer); in execute_qsi() 77 ep->rc = lsctl(ep->buffer); in execute_ssctl() 82 int rc; in smp_ctl_ssctl_stop() local 93 rc = ep.rc; in smp_ctl_ssctl_stop() 94 if (rc) { in smp_ctl_ssctl_stop() 107 return rc; in smp_ctl_ssctl_stop() 112 int rc; in smp_ctl_ssctl_deactivate() local 123 rc = ep.rc; in smp_ctl_ssctl_deactivate() 124 if (rc) in smp_ctl_ssctl_deactivate() [all …]
|
/arch/s390/pci/ |
D | pci_clp.c | 19 static inline void zpci_err_clp(unsigned int rsp, int rc) in zpci_err_clp() argument 23 int rc; in zpci_err_clp() member 24 } __packed data = {rsp, rc}; in zpci_err_clp() 81 int rc; in clp_query_pci_fngrp() local 93 rc = clp_instr(rrb); in clp_query_pci_fngrp() 94 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) in clp_query_pci_fngrp() 98 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fngrp() 99 rc = -EIO; in clp_query_pci_fngrp() 102 return rc; in clp_query_pci_fngrp() 134 int rc; in clp_query_pci_fn() local [all …]
|
/arch/powerpc/kvm/ |
D | book3s_rtas.c | 24 int rc; in kvm_rtas_set_xive() local 27 rc = -3; in kvm_rtas_set_xive() 35 rc = kvmppc_xics_set_xive(vcpu->kvm, irq, server, priority); in kvm_rtas_set_xive() 36 if (rc) in kvm_rtas_set_xive() 37 rc = -3; in kvm_rtas_set_xive() 39 args->rets[0] = cpu_to_be32(rc); in kvm_rtas_set_xive() 45 int rc; in kvm_rtas_get_xive() local 48 rc = -3; in kvm_rtas_get_xive() 55 rc = kvmppc_xics_get_xive(vcpu->kvm, irq, &server, &priority); in kvm_rtas_get_xive() 56 if (rc) { in kvm_rtas_get_xive() [all …]
|
/arch/powerpc/platforms/powernv/ |
D | opal-dump.c | 81 int rc; in dump_send_ack() local 83 rc = opal_dump_ack(dump_id); in dump_send_ack() 84 if (rc) in dump_send_ack() 86 __func__, dump_id, rc); in dump_send_ack() 87 return rc; in dump_send_ack() 121 int rc; in dump_fips_init() local 123 rc = opal_dump_init(type); in dump_fips_init() 124 if (rc) in dump_fips_init() 126 __func__, rc); in dump_fips_init() 127 return rc; in dump_fips_init() [all …]
|
D | idle.c | 35 int rc; in pnv_save_sprs_for_winkle() local 62 rc = opal_slw_set_reg(pir, SPRN_HSPRG0, hsprg0_val); in pnv_save_sprs_for_winkle() 63 if (rc != 0) in pnv_save_sprs_for_winkle() 64 return rc; in pnv_save_sprs_for_winkle() 66 rc = opal_slw_set_reg(pir, SPRN_LPCR, lpcr_val); in pnv_save_sprs_for_winkle() 67 if (rc != 0) in pnv_save_sprs_for_winkle() 68 return rc; in pnv_save_sprs_for_winkle() 73 rc = opal_slw_set_reg(pir, SPRN_HMEER, hmeer_val); in pnv_save_sprs_for_winkle() 74 if (rc != 0) in pnv_save_sprs_for_winkle() 75 return rc; in pnv_save_sprs_for_winkle() [all …]
|
D | opal-prd.c | 116 int rc; in opal_prd_mmap() local 132 rc = remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, in opal_prd_mmap() 135 return rc; in opal_prd_mmap() 167 int rc; in opal_prd_read() local 194 rc = wait_event_interruptible(opal_prd_msg_wait, in opal_prd_read() 196 if (rc) in opal_prd_read() 206 rc = copy_to_user(buf, &item->msg, size); in opal_prd_read() 207 if (rc) { in opal_prd_read() 230 int rc; in opal_prd_write() local 238 rc = copy_from_user(&hdr, buf, sizeof(hdr)); in opal_prd_write() [all …]
|
D | opal-lpc.c | 31 int64_t rc; in opal_lpc_inb() local 36 rc = opal_lpc_read(opal_lpc_chip_id, OPAL_LPC_IO, port, &data, 1); in opal_lpc_inb() 37 return rc ? 0xff : be32_to_cpu(data); in opal_lpc_inb() 42 int64_t rc; in __opal_lpc_inw() local 49 rc = opal_lpc_read(opal_lpc_chip_id, OPAL_LPC_IO, port, &data, 2); in __opal_lpc_inw() 50 return rc ? 0xffff : be32_to_cpu(data); in __opal_lpc_inw() 59 int64_t rc; in __opal_lpc_inl() local 69 rc = opal_lpc_read(opal_lpc_chip_id, OPAL_LPC_IO, port, &data, 4); in __opal_lpc_inl() 70 return rc ? 0xffffffff : be32_to_cpu(data); in __opal_lpc_inl() 194 int rc; in lpc_debug_read() local [all …]
|
/arch/powerpc/sysdev/xics/ |
D | ics-opal.c | 49 int64_t rc; in ics_opal_unmask_irq() local 60 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 61 if (rc != OPAL_SUCCESS) in ics_opal_unmask_irq() 64 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 87 int64_t rc; in ics_opal_mask_real_irq() local 93 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq() 94 if (rc != OPAL_SUCCESS) in ics_opal_mask_real_irq() 96 __func__, hw_irq, rc); in ics_opal_mask_real_irq() 118 int64_t rc; in ics_opal_set_affinity() local 124 rc = opal_get_xive(hw_irq, &oserver, &priority); in ics_opal_set_affinity() [all …]
|
D | icp-hv.c | 28 long rc; in icp_hv_get_xirr() local 31 rc = plpar_hcall(H_XIRR, retbuf, cppr); in icp_hv_get_xirr() 32 if (rc == H_SUCCESS) { in icp_hv_get_xirr() 36 __func__, cppr, rc); in icp_hv_get_xirr() 45 long rc = plpar_hcall_norets(H_CPPR, value); in icp_hv_set_cppr() local 46 if (rc != H_SUCCESS) { in icp_hv_set_cppr() 48 __func__, value, rc); in icp_hv_set_cppr() 55 long rc = plpar_hcall_norets(H_EOI, value); in icp_hv_set_xirr() local 56 if (rc != H_SUCCESS) { in icp_hv_set_xirr() 58 __func__, value, rc); in icp_hv_set_xirr() [all …]
|
/arch/powerpc/platforms/cell/spufs/ |
D | coredump.c | 110 int size = 0, rc, fd; in spufs_coredump_extra_notes_size() local 114 rc = spu_acquire_saved(ctx); in spufs_coredump_extra_notes_size() 115 if (rc) in spufs_coredump_extra_notes_size() 117 rc = spufs_ctx_note_size(ctx, fd); in spufs_coredump_extra_notes_size() 119 if (rc < 0) in spufs_coredump_extra_notes_size() 122 size += rc; in spufs_coredump_extra_notes_size() 135 int sz, rc, total = 0; in spufs_arch_write_note() local 163 rc = do_coredump_read(i, ctx, buf, bufsz, &pos); in spufs_arch_write_note() 164 if (rc > 0) { in spufs_arch_write_note() 165 if (!dump_emit(cprm, buf, rc)) in spufs_arch_write_note() [all …]
|
/arch/s390/kernel/ |
D | debug.c | 246 debug_info_t* rc; in debug_info_alloc() local 250 rc = kmalloc(sizeof(debug_info_t), GFP_KERNEL); in debug_info_alloc() 251 if(!rc) in debug_info_alloc() 253 rc->active_entries = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc() 254 if(!rc->active_entries) in debug_info_alloc() 256 rc->active_pages = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc() 257 if(!rc->active_pages) in debug_info_alloc() 260 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc() 261 if(!rc->areas) in debug_info_alloc() 264 rc->areas = NULL; in debug_info_alloc() [all …]
|
/arch/s390/hypfs/ |
D | hypfs_diag.c | 442 int pages, rc; in diag204_probe() local 465 rc = PTR_ERR(buf); in diag204_probe() 474 rc = -ENOSYS; in diag204_probe() 478 rc = 0; in diag204_probe() 482 return rc; in diag204_probe() 487 int rc; in diag204_do_store() local 489 rc = diag204((unsigned long) diag204_store_sc | in diag204_do_store() 491 return rc < 0 ? -ENOSYS : 0; in diag204_do_store() 497 int pages, rc; in diag204_store() local 502 rc = diag204_do_store(buf, pages); in diag204_store() [all …]
|
/arch/powerpc/kernel/ |
D | eeh_driver.c | 200 enum pci_ers_result rc, *res = userdata; in eeh_report_error() local 218 rc = driver->err_handler->error_detected(dev, pci_channel_io_frozen); in eeh_report_error() 221 if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; in eeh_report_error() 222 if (*res == PCI_ERS_RESULT_NONE) *res = rc; in eeh_report_error() 241 enum pci_ers_result rc, *res = userdata; in eeh_report_mmio_enabled() local 257 rc = driver->err_handler->mmio_enabled(dev); in eeh_report_mmio_enabled() 260 if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; in eeh_report_mmio_enabled() 261 if (*res == PCI_ERS_RESULT_NONE) *res = rc; in eeh_report_mmio_enabled() 281 enum pci_ers_result rc, *res = userdata; in eeh_report_reset() local 300 rc = driver->err_handler->slot_reset(dev); in eeh_report_reset() [all …]
|
D | rtas.c | 508 int rc; in rtas_error_rc() local 512 rc = -EIO; in rtas_error_rc() 515 rc = -EINVAL; in rtas_error_rc() 518 rc = -EFAULT; in rtas_error_rc() 521 rc = -EEXIST; in rtas_error_rc() 524 rc = -ENODEV; in rtas_error_rc() 529 rc = -ERANGE; in rtas_error_rc() 532 return rc; in rtas_error_rc() 538 int rc; in rtas_get_power_level() local 543 while ((rc = rtas_call(token, 1, 2, level, powerdomain)) == RTAS_BUSY) in rtas_get_power_level() [all …]
|
/arch/s390/mm/ |
D | extmem.c | 107 int rc; in dcss_set_subcodes() local 125 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_set_subcodes() 129 if (rc != 3) { in dcss_set_subcodes() 198 int rc; in dcss_diag() local 201 rc = dcss_set_subcodes(); in dcss_diag() 202 if (rc < 0) in dcss_diag() 203 return rc; in dcss_diag() 216 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag() 225 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag() 228 return rc; in dcss_diag() [all …]
|
/arch/arm/mach-pxa/ |
D | tosa-bt.c | 59 int rc; in tosa_bt_probe() local 64 rc = gpio_request(data->gpio_reset, "Bluetooth reset"); in tosa_bt_probe() 65 if (rc) in tosa_bt_probe() 67 rc = gpio_direction_output(data->gpio_reset, 0); in tosa_bt_probe() 68 if (rc) in tosa_bt_probe() 70 rc = gpio_request(data->gpio_pwr, "Bluetooth power"); in tosa_bt_probe() 71 if (rc) in tosa_bt_probe() 73 rc = gpio_direction_output(data->gpio_pwr, 0); in tosa_bt_probe() 74 if (rc) in tosa_bt_probe() 80 rc = -ENOMEM; in tosa_bt_probe() [all …]
|
/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 …]
|