Home
last modified time | relevance | path

Searched refs:retcode (Results 1 – 25 of 28) sorted by relevance

12

/drivers/block/drbd/
Ddrbd_nl.c288 struct genl_info *info, int retcode) in drbd_adm_finish() argument
306 adm_ctx->reply_dh->ret_code = retcode; in drbd_adm_finish()
755 enum drbd_ret_code retcode; in drbd_adm_set_role() local
757 retcode = drbd_adm_prepare(&adm_ctx, skb, info, DRBD_ADM_NEED_MINOR); in drbd_adm_set_role()
759 return retcode; in drbd_adm_set_role()
760 if (retcode != NO_ERROR) in drbd_adm_set_role()
767 retcode = ERR_MANDATORY_TAG; in drbd_adm_set_role()
776 retcode = drbd_set_role(adm_ctx.device, R_PRIMARY, parms.assume_uptodate); in drbd_adm_set_role()
778 retcode = drbd_set_role(adm_ctx.device, R_SECONDARY, 0); in drbd_adm_set_role()
783 drbd_adm_finish(&adm_ctx, info, retcode); in drbd_adm_set_role()
[all …]
Ddrbd_protocol.h328 u32 retcode; member
Ddrbd_receiver.c5493 int retcode = be32_to_cpu(p->retcode); in got_conn_RqSReply() local
5495 if (retcode >= SS_SUCCESS) { in got_conn_RqSReply()
5500 drbd_set_st_err_str(retcode), retcode); in got_conn_RqSReply()
5512 int retcode = be32_to_cpu(p->retcode); in got_RqSReply() local
5524 if (retcode >= SS_SUCCESS) { in got_RqSReply()
5529 drbd_set_st_err_str(retcode), retcode); in got_RqSReply()
Ddrbd_main.c1072 void drbd_send_sr_reply(struct drbd_peer_device *peer_device, enum drbd_state_rv retcode) in drbd_send_sr_reply() argument
1080 p->retcode = cpu_to_be32(retcode); in drbd_send_sr_reply()
1085 void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode) in conn_send_sr_reply() argument
1094 p->retcode = cpu_to_be32(retcode); in conn_send_sr_reply()
Ddrbd_int.h1133 extern void drbd_send_sr_reply(struct drbd_peer_device *, enum drbd_state_rv retcode);
1134 extern void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode);
/drivers/gpu/drm/
Ddrm_ioctl.c334 int if_version, retcode = 0; in drm_setversion() local
339 retcode = -EINVAL; in drm_setversion()
350 retcode = drm_set_busid(dev, file_priv); in drm_setversion()
351 if (retcode) in drm_setversion()
360 retcode = -EINVAL; in drm_setversion()
371 return retcode; in drm_setversion()
656 int retcode = -EINVAL; in drm_ioctl() local
699 retcode = -EINVAL; in drm_ioctl()
703 retcode = drm_ioctl_permit(ioctl->flags, file_priv); in drm_ioctl()
704 if (unlikely(retcode)) in drm_ioctl()
[all …]
Ddrm_fops.c127 int retcode; in drm_open() local
141 retcode = drm_open_helper(filp, minor); in drm_open()
142 if (retcode) in drm_open()
145 retcode = drm_setup(dev); in drm_open()
146 if (retcode) in drm_open()
154 return retcode; in drm_open()
Ddrm_agpsupport.c314 int retcode; in drm_agp_bind() local
324 if ((retcode = drm_bind_agp(entry->memory, page))) in drm_agp_bind()
325 return retcode; in drm_agp_bind()
Ddrm_bufs.c1446 int retcode = 0; in drm_legacy_mapbufs() local
1478 retcode = -EINVAL; in drm_legacy_mapbufs()
1492 retcode = (signed long)virtual; in drm_legacy_mapbufs()
1501 retcode = -EFAULT; in drm_legacy_mapbufs()
1507 retcode = -EFAULT; in drm_legacy_mapbufs()
1512 retcode = -EFAULT; in drm_legacy_mapbufs()
1518 retcode = -EFAULT; in drm_legacy_mapbufs()
1525 DRM_DEBUG("%d buffers, retcode = %d\n", request->count, retcode); in drm_legacy_mapbufs()
1527 return retcode; in drm_legacy_mapbufs()
/drivers/gpu/drm/i810/
Di810_dma.c128 int retcode = 0; in i810_map_buffer() local
145 retcode = PTR_ERR(buf_priv->virtual); in i810_map_buffer()
149 return retcode; in i810_map_buffer()
155 int retcode = 0; in i810_unmap_buffer() local
160 retcode = vm_munmap((unsigned long)buf_priv->virtual, in i810_unmap_buffer()
166 return retcode; in i810_unmap_buffer()
174 int retcode = 0; in i810_dma_get_buffer() local
178 retcode = -ENOMEM; in i810_dma_get_buffer()
179 DRM_DEBUG("retcode=%d\n", retcode); in i810_dma_get_buffer()
180 return retcode; in i810_dma_get_buffer()
[all …]
/drivers/nvme/host/
Dscsi.c1609 u32 retcode; in nvme_trans_do_nvme_io() local
1634 retcode = copy_from_user(&sgl, hdr->dxferp + in nvme_trans_do_nvme_io()
1637 if (retcode) in nvme_trans_do_nvme_io()
2382 int retcode; in nvme_scsi_translate() local
2394 retcode = nvme_trans_status_code(hdr, NVME_SC_SUCCESS); in nvme_scsi_translate()
2395 if (retcode) in nvme_scsi_translate()
2396 return retcode; in nvme_scsi_translate()
2405 retcode = nvme_trans_io(ns, hdr, 0, cmd); in nvme_scsi_translate()
2411 retcode = nvme_trans_io(ns, hdr, 1, cmd); in nvme_scsi_translate()
2414 retcode = nvme_trans_inquiry(ns, hdr, cmd); in nvme_scsi_translate()
[all …]
/drivers/gpu/drm/via/
Dvia_dma.c233 int retcode = 0; in via_dma_init() local
238 retcode = -EPERM; in via_dma_init()
240 retcode = via_initialize(dev, dev_priv, init); in via_dma_init()
244 retcode = -EPERM; in via_dma_init()
246 retcode = via_dma_cleanup(dev); in via_dma_init()
249 retcode = (dev_priv->ring.virtual_start != NULL) ? in via_dma_init()
253 retcode = -EINVAL; in via_dma_init()
257 return retcode; in via_dma_init()
/drivers/usb/class/
Dusbtmc.c1379 int retcode; in usbtmc_probe() local
1449 retcode = -ENODEV; in usbtmc_probe()
1468 retcode = get_capabilities(data); in usbtmc_probe()
1469 if (retcode) in usbtmc_probe()
1472 retcode = sysfs_create_group(&intf->dev.kobj, in usbtmc_probe()
1479 retcode = -ENOMEM; in usbtmc_probe()
1490 retcode = -ENOMEM; in usbtmc_probe()
1501 retcode = usb_submit_urb(data->iin_urb, GFP_KERNEL); in usbtmc_probe()
1502 if (retcode) { in usbtmc_probe()
1508 retcode = sysfs_create_group(&intf->dev.kobj, &data_attr_grp); in usbtmc_probe()
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c915 int retcode = -EINVAL; in kfd_ioctl() local
947 retcode = -EINVAL; in kfd_ioctl()
957 retcode = -ENOMEM; in kfd_ioctl()
967 retcode = -EFAULT; in kfd_ioctl()
974 retcode = func(filep, process, kdata); in kfd_ioctl()
978 retcode = -EFAULT; in kfd_ioctl()
988 if (retcode) in kfd_ioctl()
989 dev_dbg(kfd_device, "ret = %d\n", retcode); in kfd_ioctl()
991 return retcode; in kfd_ioctl()
/drivers/net/ethernet/qualcomm/
Dqca_spi.c351 s32 retcode; in qcaspi_receive() local
353 retcode = qcafrm_fsm_decode(&qca->frm_handle, in qcaspi_receive()
358 switch (retcode) { in qcaspi_receive()
375 n_stats->rx_bytes += retcode; in qcaspi_receive()
376 skb_put(qca->rx_skb, retcode); in qcaspi_receive()
/drivers/mtd/nand/
Dpxa3xx_nand.c260 int retcode; member
749 info->retcode = ERR_DMABUSERR; in pxa3xx_nand_data_dma_irq()
825 info->retcode = ERR_UNCORERR; in pxa3xx_nand_irq()
827 info->retcode = ERR_CORERR; in pxa3xx_nand_irq()
946 info->retcode = ERR_NONE; in prepare_start_command()
1357 if (info->retcode == ERR_CORERR && info->use_ecc) { in pxa3xx_nand_read_page_hwecc()
1360 } else if (info->retcode == ERR_UNCORERR) { in pxa3xx_nand_read_page_hwecc()
1367 info->retcode = ERR_NONE; in pxa3xx_nand_read_page_hwecc()
1448 if (info->retcode == ERR_NONE) in pxa3xx_nand_waitfunc()
/drivers/scsi/
Dfdomain.c897 int retcode; in __fdomain_16x0_detect() local
979 retcode = request_irq( interrupt_level, in __fdomain_16x0_detect()
982 if (retcode < 0) { in __fdomain_16x0_detect()
983 if (retcode == -EINVAL) { in __fdomain_16x0_detect()
987 } else if (retcode == -EBUSY) { in __fdomain_16x0_detect()
Dscsi_transport_iscsi.c2880 ev->r.retcode = transport->ep_poll(ep, in iscsi_if_transport_ep()
3570 ev->r.retcode = transport->bind_conn(session, conn, in iscsi_if_recv_msg()
3573 if (ev->r.retcode || !transport->ep_connect) in iscsi_if_recv_msg()
3594 ev->r.retcode = transport->start_conn(conn); in iscsi_if_recv_msg()
3608 ev->r.retcode = transport->send_pdu(conn, in iscsi_if_recv_msg()
/drivers/gpu/drm/i915/
Dintel_guc.h88 int retcode; member
Di915_guc_submission.c614 client->retcode = b_ret; in i915_guc_submit()
/drivers/scsi/pm8001/
Dpm8001_ctl.c596 fwControl->retcode = 0;/* OUT */ in pm8001_update_flash()
624 if (fwControl->retcode > FLASH_UPDATE_IN_PROGRESS) { in pm8001_update_flash()
625 pm8001_ha->fw_status = fwControl->retcode; in pm8001_update_flash()
Dpm8001_sas.h593 u32 retcode;/*ret code (status)*/ member
/drivers/net/ethernet/adaptec/
Dstarfire.c1443 int retcode = 0; in __netdev_rx() local
1465 retcode = 1; in __netdev_rx()
1548 retcode = 1; in __netdev_rx()
1557 retcode, np->rx_done, desc_status); in __netdev_rx()
1558 return retcode; in __netdev_rx()
/drivers/s390/net/
Dqeth_l2_main.c131 static int qeth_setdel_makerc(struct qeth_card *card, int retcode) in qeth_setdel_makerc() argument
135 if (retcode) in qeth_setdel_makerc()
136 QETH_CARD_TEXT_(card, 2, "err%04x", retcode); in qeth_setdel_makerc()
137 switch (retcode) { in qeth_setdel_makerc()
/drivers/net/ethernet/nvidia/
Dforcedeth.c3701 int retcode; in nv_napi_poll() local
3711 retcode = nv_alloc_rx(dev); in nv_napi_poll()
3719 retcode = nv_alloc_rx_optimized(dev); in nv_napi_poll()
3721 } while (retcode == 0 && in nv_napi_poll()
3724 if (retcode) { in nv_napi_poll()

12