/linux-2.4.37.9/arch/s390/kernel/ |
D | debug.c | 188 debug_info_t* rc; in debug_info_alloc() local 193 rc = (debug_info_t*) kmalloc(sizeof(debug_info_t), GFP_ATOMIC); in debug_info_alloc() 194 if(!rc) in debug_info_alloc() 196 rc->active_entry = (int*)kmalloc(nr_areas * sizeof(int), GFP_ATOMIC); in debug_info_alloc() 197 if(!rc->active_entry) in debug_info_alloc() 199 memset(rc->active_entry, 0, nr_areas * sizeof(int)); in debug_info_alloc() 200 rc->areas = (debug_entry_t **) kmalloc(nr_areas * in debug_info_alloc() 203 if (!rc->areas) in debug_info_alloc() 206 rc->areas[i] = (debug_entry_t *) __get_free_pages(GFP_ATOMIC, in debug_info_alloc() 208 if (!rc->areas[i]) { in debug_info_alloc() [all …]
|
/linux-2.4.37.9/arch/s390x/kernel/ |
D | debug.c | 188 debug_info_t* rc; in debug_info_alloc() local 193 rc = (debug_info_t*) kmalloc(sizeof(debug_info_t), GFP_ATOMIC); in debug_info_alloc() 194 if(!rc) in debug_info_alloc() 196 rc->active_entry = (int*)kmalloc(nr_areas * sizeof(int), GFP_ATOMIC); in debug_info_alloc() 197 if(!rc->active_entry) in debug_info_alloc() 199 memset(rc->active_entry, 0, nr_areas * sizeof(int)); in debug_info_alloc() 200 rc->areas = (debug_entry_t **) kmalloc(nr_areas * in debug_info_alloc() 203 if (!rc->areas) in debug_info_alloc() 206 rc->areas[i] = (debug_entry_t *) __get_free_pages(GFP_ATOMIC, in debug_info_alloc() 208 if (!rc->areas[i]) { in debug_info_alloc() [all …]
|
/linux-2.4.37.9/drivers/hotplug/ |
D | cpqphp_nvram.c | 205 u32 rc; in load_HRT() local 216 rc = access_EV(READ_EV, "CQTHPS", evbuffer, &temp_dword); in load_HRT() 223 rc = access_EV(WRITE_EV, "CQTHPS", &temp_byte, &temp_dword); in load_HRT() 225 return rc; in load_HRT() 241 u32 rc; in store_HRT() local 268 rc = add_byte( &pFill, 1 + ctrl->push_flag, &usedbytes, &available); in store_HRT() 269 if (rc) in store_HRT() 270 return(rc); in store_HRT() 273 rc = add_byte( &pFill, 1, &usedbytes, &available); in store_HRT() 274 if (rc) in store_HRT() [all …]
|
D | ibmphp_hpc.c | 260 u8 rc; in i2c_ctrl_write() local 269 rc = 0; in i2c_ctrl_write() 330 rc = HPC_ERROR; in i2c_ctrl_write() 347 rc = HPC_ERROR; in i2c_ctrl_write() 350 debug_polling ("%s Exit rc[%x]\n", __FUNCTION__, rc); in i2c_ctrl_write() 351 return (rc); in i2c_ctrl_write() 393 u8 rc = -ENODEV; in pci_ctrl_write() local 397 rc = 0; in pci_ctrl_write() 399 return rc; in pci_ctrl_write() 404 u8 rc; in ctrl_read() local [all …]
|
D | ibmphp_core.c | 76 int rc = 1; in get_cur_bus_info() local 83 rc = ibmphp_hpc_readslot (slot_cur, READ_BUSSTATUS, NULL); in get_cur_bus_info() 85 if (rc) in get_cur_bus_info() 86 return rc; in get_cur_bus_info() 102 int rc; in slot_update() local 103 rc = ibmphp_hpc_readslot (*sl, READ_ALLSTAT, NULL); in slot_update() 104 if (rc) in slot_update() 105 return rc; in slot_update() 108 return rc; in slot_update() 216 int rc = 0; in set_attention_status() local [all …]
|
D | shpchp_ctrl.c | 62 u8 rc = 0; in shpchp_handle_attention_button() local 82 rc++; in shpchp_handle_attention_button() 108 if (rc) in shpchp_handle_attention_button() 119 u8 rc = 0; in shpchp_handle_switch_change() local 136 rc++; in shpchp_handle_switch_change() 163 if (rc) in shpchp_handle_switch_change() 166 return rc; in shpchp_handle_switch_change() 173 u8 rc = 0; in shpchp_handle_presence_change() local 189 rc++; in shpchp_handle_presence_change() 210 if (rc) in shpchp_handle_presence_change() [all …]
|
D | shpchprm_nonacpi.c | 195 int rc; in configure_existing_function() local 198 rc = phprm_get_used_resources (ctrl, func); in configure_existing_function() 200 if (!rc) { in configure_existing_function() 202 rc = phprm_delete_resources (&ctrl->bus_head, func->bus_head); in configure_existing_function() 203 rc |= phprm_delete_resources (&ctrl->io_head, func->io_head); in configure_existing_function() 204 rc |= phprm_delete_resources (&ctrl->mem_head, func->mem_head); in configure_existing_function() 205 rc |= phprm_delete_resources (&ctrl->p_mem_head, func->p_mem_head); in configure_existing_function() 206 if (rc) in configure_existing_function() 211 return rc; in configure_existing_function() 287 u32 rc; in shpchprm_find_available_resources() local [all …]
|
D | cpqphp_ctrl.c | 83 u8 rc = 0; in handle_switch_change() local 107 rc++; in handle_switch_change() 133 return rc; in handle_switch_change() 160 u8 rc = 0; in handle_presence_change() local 187 rc++; in handle_presence_change() 246 return rc; in handle_presence_change() 253 u8 rc = 0; in handle_power_fault() local 277 rc++; in handle_power_fault() 316 return rc; in handle_power_fault() 433 u32 rc; in do_pre_bridge_resource_split() local [all …]
|
D | pciehp_hpc.c | 538 int rc = 0; in hpc_set_attention_status() local 550 rc = hp_register_read_word(php_ctlr->pci_dev, SLOT_CTRL, slot_ctrl); in hpc_set_attention_status() 552 if (rc) { in hpc_set_attention_status() 554 return rc; in hpc_set_attention_status() 581 return rc; in hpc_set_attention_status() 590 int rc = 0; in hpc_set_green_led_on() local 603 rc = hp_register_read_word(php_ctlr->pci_dev, SLOT_CTRL, slot_ctrl); in hpc_set_green_led_on() 605 if (rc) { in hpc_set_green_led_on() 628 int rc = 0; in hpc_set_green_led_off() local 641 rc = hp_register_read_word(php_ctlr->pci_dev, SLOT_CTRL, slot_ctrl); in hpc_set_green_led_off() [all …]
|
/linux-2.4.37.9/fs/qnx4/ |
D | fsync.c | 65 int rc; in sync_iblock() local 72 rc = sync_block(inode, iblock, wait); in sync_iblock() 73 if (rc) in sync_iblock() 74 return rc; in sync_iblock() 90 int rc, err = 0; in sync_direct() local 93 rc = sync_block(inode, in sync_direct() 95 if (rc > 0) in sync_direct() 97 if (rc) in sync_direct() 98 err = rc; in sync_direct() 108 int rc, err = 0; in sync_indirect() local [all …]
|
/linux-2.4.37.9/fs/jfs/ |
D | namei.c | 62 int rc = 0; in jfs_create() local 77 if ((rc = get_UCSname(&dname, dentry))) in jfs_create() 87 rc = -ENOSPC; in jfs_create() 96 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() 97 jfs_err("jfs_create: dtSearch returned %d", rc); in jfs_create() 118 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create() 119 jfs_err("jfs_create: dtInsert returned %d", rc); in jfs_create() 120 if (rc == -EIO) in jfs_create() 138 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_create() 144 if (rc) { in jfs_create() [all …]
|
D | jfs_mount.c | 83 int rc = 0; /* Return code */ in jfs_mount() local 94 if ((rc = chkSuper(sb))) { in jfs_mount() 101 rc = -EIO; in jfs_mount() 111 if ((rc = diMount(ipaimap))) { in jfs_mount() 112 jfs_err("jfs_mount: diMount(ipaimap) failed w/rc = %d", rc); in jfs_mount() 121 rc = -EIO; in jfs_mount() 132 if ((rc = dbMount(ipbmap))) { in jfs_mount() 133 jfs_err("jfs_mount: dbMount failed w/rc = %d", rc); in jfs_mount() 152 rc = -EIO; in jfs_mount() 162 if ((rc = diMount(ipaimap2))) { in jfs_mount() [all …]
|
D | jfs_extent.c | 94 int rc; in extAlloc() local 142 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc() 144 return (rc); in extAlloc() 155 rc = xtExtend(0, ip, xoff, (int) nxlen, 0); in extAlloc() 157 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0); in extAlloc() 162 if (rc) { in extAlloc() 165 return (rc); in extAlloc() 219 int rc, nbperpage = JFS_SBI(sb)->nbperpage; in extRealloc() local 243 if ((rc = xtUpdate(0, ip, xp))) in extRealloc() 255 if ((rc = extBrealloc(ip, xaddr, xlen, &nxlen, &nxaddr))) in extRealloc() [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | nvram.c | 169 ssize_t rc; in read_nvram() local 172 rc = __read_nvram(buf, count, index); in read_nvram() 175 return rc; in read_nvram() 224 ssize_t rc; in write_nvram() local 227 rc = __write_nvram(buf, count, index); in write_nvram() 230 return rc; in write_nvram() 283 int rc; in nvram_init() local 311 rc = misc_register(&nvram_dev); in nvram_init() 312 if (rc) { in nvram_init() 313 printk(KERN_ERR "nvram_init: Failed misc_register (%d)\n", rc); in nvram_init() [all …]
|
D | HvLpEvent.c | 24 int rc = 1; in HvLpEvent_registerHandler() local 27 rc = 0; in HvLpEvent_registerHandler() 29 return rc; in HvLpEvent_registerHandler() 35 int rc = 1; in HvLpEvent_unregisterHandler() local 39 rc = 0; in HvLpEvent_unregisterHandler() 42 return rc; in HvLpEvent_unregisterHandler() 51 int rc = 1; in HvLpEvent_openPath() local 58 rc = 0; in HvLpEvent_openPath() 60 return rc; in HvLpEvent_openPath() 65 int rc = 1; in HvLpEvent_closePath() local [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | ov511.c | 84 #define FATAL_ERROR(rc) ((rc) < 0 && (rc) != -EPERM) argument 665 int rc; in reg_w() local 671 rc = usb_control_msg(ov->dev, in reg_w() 678 if (rc < 0) in reg_w() 679 err("reg write: error %d: %s", rc, symbolic(urb_errlist, rc)); in reg_w() 681 return rc; in reg_w() 689 int rc; in reg_r() local 692 rc = usb_control_msg(ov->dev, in reg_r() 698 if (rc < 0) { in reg_r() 699 err("reg read: error %d: %s", rc, symbolic(urb_errlist, rc)); in reg_r() [all …]
|
/linux-2.4.37.9/fs/intermezzo/ |
D | replicator.c | 150 int rc; in izo_rep_cache_init() local 152 if ((rc = izo_rep_cache_add(fset, &rec, last_offset)) < 0) { in izo_rep_cache_init() 154 return rc; in izo_rep_cache_init() 173 int rc; in izo_repstatus() local 174 rc = izo_rcvd_get(lr_server, fset, lr_client->lr_uuid); in izo_repstatus() 175 if (rc < 0 && rc != -EINVAL) { in izo_repstatus() 176 return rc; in izo_repstatus() 180 if (rc < 0 || (client_kmlsize == 0 && lr_client->lr_remote_offset == 0)) { in izo_repstatus() 183 rc = izo_rcvd_write(fset, lr_server); in izo_repstatus() 184 if (rc < 0) in izo_repstatus() [all …]
|
D | file.c | 64 int rc = 0; in presto_open_upcall() local 82 rc = presto_get_fileid(minor, fset, de); in presto_open_upcall() 89 CERROR("get_fileid failed %d, ino: %Lx, fetching by name\n", rc, in presto_open_upcall() 92 rc = izo_upc_open(minor, pathlen, path, fset->fset_name, &info); in presto_open_upcall() 94 return rc; in presto_open_upcall() 150 int rc = 0; in presto_file_open() local 185 rc = presto_open_upcall(minor, file->f_dentry); in presto_file_open() 186 if (rc) { in presto_file_open() 188 CERROR("%s: returning error %d\n", __FUNCTION__, rc); in presto_file_open() 189 return rc; in presto_file_open() [all …]
|
/linux-2.4.37.9/drivers/media/video/ |
D | bt832.c | 62 int i,rc; in bt832_hexdump() local 64 if (1 != (rc = i2c_master_send(i2c_client_s,buf,1))) in bt832_hexdump() 65 printk("bt832: i2c i/o error: rc == %d (should be 1)\n",rc); in bt832_hexdump() 69 if (65 != (rc=i2c_master_recv(i2c_client_s,buf,65))) in bt832_hexdump() 70 printk("bt832: i2c i/o error: rc == %d (should be 65)\n",rc); in bt832_hexdump() 94 int rc; in bt832_init() local 108 if (2 != (rc = i2c_master_send(i2c_client_s,buf,2))) in bt832_init() 109 printk("bt832: i2c i/o error VPS: rc == %d (should be 2)\n",rc); in bt832_init() 118 if (2 != (rc = i2c_master_send(i2c_client_s,buf,2))) in bt832_init() 119 printk("bt832: i2c i/o error LLPM: rc == %d (should be 2)\n",rc); in bt832_init() [all …]
|
/linux-2.4.37.9/drivers/s390/block/ |
D | dasd_diag.c | 65 int rc; in dia250() local 86 : "=&d" (rc) in dia250() 88 return rc; in dia250() 96 int rc; in mdsk_init_io() local 106 rc = dia250 (iib, INIT_BIO); in mdsk_init_io() 108 return rc & 3; in mdsk_init_io() 116 int rc; in mdsk_term_io() local 120 rc = dia250 (iib, TERM_BIO); in mdsk_term_io() 121 return rc & 3; in mdsk_term_io() 127 int rc; in dasd_start_diag() local [all …]
|
/linux-2.4.37.9/drivers/ide/pci/ |
D | delkin_cb.c | 56 int i, rc; in delkin_cb_probe() local 58 rc = pci_enable_device(dev); in delkin_cb_probe() 59 if (rc) { in delkin_cb_probe() 60 printk(KERN_ERR "delkin_cb: pci_enable_device failed (%d)\n", rc); in delkin_cb_probe() 61 return rc; in delkin_cb_probe() 63 rc = pci_request_regions(dev, "delkin_cb"); in delkin_cb_probe() 64 if (rc) { in delkin_cb_probe() 65 printk(KERN_ERR "delkin_cb: pci_request_regions failed (%d)\n", rc); in delkin_cb_probe() 67 return rc; in delkin_cb_probe() 84 rc = ide_register_hw(&hw, &hwif); in delkin_cb_probe() [all …]
|
/linux-2.4.37.9/drivers/usb/serial/ |
D | keyspan_pda.c | 298 int rc; in keyspan_pda_setbaud() local 317 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud() 327 return(rc); in keyspan_pda_setbaud() 407 int rc; in keyspan_pda_get_modem_info() local 409 rc = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in keyspan_pda_get_modem_info() 413 if (rc > 0) in keyspan_pda_get_modem_info() 415 return rc; in keyspan_pda_get_modem_info() 422 int rc; in keyspan_pda_set_modem_info() local 423 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_set_modem_info() 427 return rc; in keyspan_pda_set_modem_info() [all …]
|
/linux-2.4.37.9/drivers/s390/ |
D | sysinfo.c | 155 int rc = stsi (NULL, 0, 0, 0); in stsi_0() local 156 return rc == -1 ? rc : (((unsigned int)rc) >> 28); in stsi_0() 161 int rc = stsi (info, 1, 1, 1); in stsi_1_1_1() local 162 if (rc != -1) in stsi_1_1_1() 170 return rc == -1 ? rc : 0; in stsi_1_1_1() 175 int rc = stsi (info, 1, 2, 1); in stsi_1_2_1() local 176 if (rc != -1) in stsi_1_2_1() 181 return rc == -1 ? rc : 0; in stsi_1_2_1() 186 int rc = stsi (info, 1, 2, 2); in stsi_1_2_2() local 187 return rc == -1 ? rc : 0; in stsi_1_2_2() [all …]
|
/linux-2.4.37.9/drivers/sbus/char/ |
D | bpp.c | 356 int rc; in negotiate() local 370 rc = wait_for(BPP_GP_PError|BPP_GP_Select|BPP_GP_nFault, in negotiate() 375 if (rc == -1) return -ETIMEDOUT; in negotiate() 387 rc = wait_for(BPP_GP_nAck, 0, TIME_PSetup+TIME_PResponse, minor); in negotiate() 388 if (rc == -1) return -EIO; in negotiate() 400 int rc; in terminate() local 406 rc = wait_for(BPP_GP_Busy|BPP_GP_nFault, in terminate() 414 if (rc == -1) { in terminate() 424 rc = wait_for(BPP_GP_nAck, 0, TIME_PResponse, minor); in terminate() 425 if (rc == -1) { in terminate() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | i810_rng.c | 133 int rc = 0; in rng_enable() local 147 rc = -EIO; in rng_enable() 151 DPRINTK ("EXIT, returning %d\n", rc); in rng_enable() 152 return rc; in rng_enable() 182 int rc; in rng_dev_open() local 198 rc = rng_enable (); in rng_dev_open() 199 if (rc) { in rng_dev_open() 201 return rc; in rng_dev_open() 283 int rc; in rng_init_one() local 288 rc = misc_register (&rng_miscdev); in rng_init_one() [all …]
|