Home
last modified time | relevance | path

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

/drivers/block/drbd/
Ddrbd_nl.c304 struct genl_info *info, int retcode) in drbd_adm_finish() argument
322 adm_ctx->reply_dh->ret_code = retcode; in drbd_adm_finish()
772 enum drbd_ret_code retcode; in drbd_adm_set_role() local
774 retcode = drbd_adm_prepare(&adm_ctx, skb, info, DRBD_ADM_NEED_MINOR); in drbd_adm_set_role()
776 return retcode; in drbd_adm_set_role()
777 if (retcode != NO_ERROR) in drbd_adm_set_role()
784 retcode = ERR_MANDATORY_TAG; in drbd_adm_set_role()
793 retcode = (enum drbd_ret_code)drbd_set_role(adm_ctx.device, in drbd_adm_set_role()
796 retcode = (enum drbd_ret_code)drbd_set_role(adm_ctx.device, in drbd_adm_set_role()
802 drbd_adm_finish(&adm_ctx, info, retcode); in drbd_adm_set_role()
[all …]
Ddrbd_protocol.h376 u32 retcode; member
Ddrbd_receiver.c5626 int retcode = be32_to_cpu(p->retcode); in got_conn_RqSReply() local
5628 if (retcode >= SS_SUCCESS) { in got_conn_RqSReply()
5633 drbd_set_st_err_str(retcode), retcode); in got_conn_RqSReply()
5645 int retcode = be32_to_cpu(p->retcode); in got_RqSReply() local
5657 if (retcode >= SS_SUCCESS) { in got_RqSReply()
5662 drbd_set_st_err_str(retcode), retcode); in got_RqSReply()
Ddrbd_main.c1071 void drbd_send_sr_reply(struct drbd_peer_device *peer_device, enum drbd_state_rv retcode) in drbd_send_sr_reply() argument
1079 p->retcode = cpu_to_be32(retcode); in drbd_send_sr_reply()
1084 void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode) in conn_send_sr_reply() argument
1093 p->retcode = cpu_to_be32(retcode); in conn_send_sr_reply()
Ddrbd_int.h1117 extern void drbd_send_sr_reply(struct drbd_peer_device *, enum drbd_state_rv retcode);
1118 extern void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode);
/drivers/gpu/drm/
Ddrm_ioctl.c387 int if_version, retcode = 0; in drm_setversion() local
393 retcode = -EINVAL; in drm_setversion()
404 retcode = drm_set_busid(dev, file_priv); in drm_setversion()
405 if (retcode) in drm_setversion()
414 retcode = -EINVAL; in drm_setversion()
426 return retcode; in drm_setversion()
782 int retcode; in drm_ioctl_kernel() local
787 retcode = drm_ioctl_permit(flags, file_priv); in drm_ioctl_kernel()
788 if (unlikely(retcode)) in drm_ioctl_kernel()
789 return retcode; in drm_ioctl_kernel()
[all …]
Ddrm_agpsupport.c320 int retcode; in drm_agp_bind() local
329 retcode = drm_bind_agp(entry->memory, page); in drm_agp_bind()
330 if (retcode) in drm_agp_bind()
331 return retcode; in drm_agp_bind()
Ddrm_file.c414 int retcode = 0; in drm_open() local
431 retcode = drm_open_helper(filp, minor); in drm_open()
432 if (retcode) in drm_open()
435 retcode = drm_legacy_setup(dev); in drm_open()
436 if (retcode) { in drm_open()
452 return retcode; in drm_open()
Ddrm_bufs.c1492 int retcode = 0; in __drm_legacy_mapbufs() local
1521 retcode = -EINVAL; in __drm_legacy_mapbufs()
1535 retcode = (signed long)virtual; in __drm_legacy_mapbufs()
1542 retcode = -EFAULT; in __drm_legacy_mapbufs()
1549 DRM_DEBUG("%d buffers, retcode = %d\n", *p, retcode); in __drm_legacy_mapbufs()
1551 return retcode; in __drm_legacy_mapbufs()
/drivers/gpu/drm/i810/
Di810_dma.c133 int retcode = 0; in i810_map_buffer() local
150 retcode = PTR_ERR(buf_priv->virtual); in i810_map_buffer()
154 return retcode; in i810_map_buffer()
160 int retcode = 0; in i810_unmap_buffer() local
165 retcode = vm_munmap((unsigned long)buf_priv->virtual, in i810_unmap_buffer()
171 return retcode; in i810_unmap_buffer()
179 int retcode = 0; in i810_dma_get_buffer() local
183 retcode = -ENOMEM; in i810_dma_get_buffer()
184 DRM_DEBUG("retcode=%d\n", retcode); in i810_dma_get_buffer()
185 return retcode; in i810_dma_get_buffer()
[all …]
/drivers/gpu/drm/via/
Dvia_dma.c240 int retcode = 0; in via_dma_init() local
245 retcode = -EPERM; in via_dma_init()
247 retcode = via_initialize(dev, dev_priv, init); in via_dma_init()
251 retcode = -EPERM; in via_dma_init()
253 retcode = via_dma_cleanup(dev); in via_dma_init()
256 retcode = (dev_priv->ring.virtual_start != NULL) ? in via_dma_init()
260 retcode = -EINVAL; in via_dma_init()
264 return retcode; in via_dma_init()
/drivers/net/ethernet/qualcomm/
Dqca_uart.c83 s32 retcode; in qca_tty_receive() local
85 retcode = qcafrm_fsm_decode(&qca->frm_handle, in qca_tty_receive()
90 switch (retcode) { in qca_tty_receive()
106 n_stats->rx_bytes += retcode; in qca_tty_receive()
107 skb_put(qca->rx_skb, retcode); in qca_tty_receive()
Dqca_spi.c409 s32 retcode; in qcaspi_receive() local
411 retcode = qcafrm_fsm_decode(&qca->frm_handle, in qcaspi_receive()
416 switch (retcode) { in qcaspi_receive()
433 n_stats->rx_bytes += retcode; in qcaspi_receive()
434 skb_put(qca->rx_skb, retcode); in qcaspi_receive()
/drivers/misc/habanalabs/common/
Dhabanalabs_ioctl.c546 int retcode; in _hl_ioctl() local
559 retcode = -ENOTTY; in _hl_ioctl()
576 retcode = -ENOMEM; in _hl_ioctl()
584 retcode = -EFAULT; in _hl_ioctl()
591 retcode = func(hpriv, kdata); in _hl_ioctl()
594 retcode = -EFAULT; in _hl_ioctl()
597 if (retcode) in _hl_ioctl()
604 return retcode; in _hl_ioctl()
/drivers/usb/class/
Dusbtmc.c2324 int retcode; in usbtmc_probe() local
2355 retcode = usb_find_common_endpoints(iface_desc, in usbtmc_probe()
2357 if (retcode) { in usbtmc_probe()
2362 retcode = -EINVAL; in usbtmc_probe()
2373 retcode = usb_find_int_in_endpoint(iface_desc, &int_in); in usbtmc_probe()
2374 if (!retcode) { in usbtmc_probe()
2383 retcode = get_capabilities(data); in usbtmc_probe()
2384 if (retcode) in usbtmc_probe()
2391 retcode = -ENOMEM; in usbtmc_probe()
2402 retcode = -ENOMEM; in usbtmc_probe()
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c1878 int retcode = -EINVAL; in kfd_ioctl() local
1906 retcode = -EBADF; in kfd_ioctl()
1915 retcode = -EINVAL; in kfd_ioctl()
1925 retcode = -ENOMEM; in kfd_ioctl()
1935 retcode = -EFAULT; in kfd_ioctl()
1942 retcode = func(filep, process, kdata); in kfd_ioctl()
1946 retcode = -EFAULT; in kfd_ioctl()
1956 if (retcode) in kfd_ioctl()
1958 nr, arg, retcode); in kfd_ioctl()
1960 return retcode; in kfd_ioctl()
/drivers/s390/net/
Dqeth_l2_main.c31 static int qeth_l2_setdelmac_makerc(struct qeth_card *card, u16 retcode) in qeth_l2_setdelmac_makerc() argument
35 if (retcode) in qeth_l2_setdelmac_makerc()
36 QETH_CARD_TEXT_(card, 2, "err%04x", retcode); in qeth_l2_setdelmac_makerc()
37 switch (retcode) { in qeth_l2_setdelmac_makerc()
192 static int qeth_l2_setdelvlan_makerc(struct qeth_card *card, u16 retcode) in qeth_l2_setdelvlan_makerc() argument
194 if (retcode) in qeth_l2_setdelvlan_makerc()
195 QETH_CARD_TEXT_(card, 2, "err%04x", retcode); in qeth_l2_setdelvlan_makerc()
197 switch (retcode) { in qeth_l2_setdelvlan_makerc()
/drivers/scsi/pm8001/
Dpm8001_ctl.c752 fwControl->retcode = 0;/* OUT */ in pm8001_update_flash()
780 if (fwControl->retcode > FLASH_UPDATE_IN_PROGRESS) { in pm8001_update_flash()
781 pm8001_ha->fw_status = fwControl->retcode; in pm8001_update_flash()
Dpm8001_sas.h599 u32 retcode;/*ret code (status)*/ member
/drivers/net/ethernet/adaptec/
Dstarfire.c1430 int retcode = 0; in __netdev_rx() local
1452 retcode = 1; in __netdev_rx()
1537 retcode = 1; in __netdev_rx()
1546 retcode, np->rx_done, desc_status); in __netdev_rx()
1547 return retcode; in __netdev_rx()
/drivers/net/ethernet/intel/ice/
Dice_main.c1635 int retcode; in ice_force_phys_link_state() local
1650 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_force_phys_link_state()
1652 if (retcode) { in ice_force_phys_link_state()
1654 vsi->vsi_num, retcode); in ice_force_phys_link_state()
1655 retcode = -EIO; in ice_force_phys_link_state()
1670 retcode = -ENOMEM; in ice_force_phys_link_state()
1680 retcode = ice_aq_set_phy_cfg(&vsi->back->hw, pi, cfg, NULL); in ice_force_phys_link_state()
1681 if (retcode) { in ice_force_phys_link_state()
1683 vsi->vsi_num, retcode); in ice_force_phys_link_state()
1684 retcode = -EIO; in ice_force_phys_link_state()
[all …]
/drivers/scsi/
Dscsi_transport_iscsi.c3124 ev->r.retcode = transport->ep_poll(ep, in iscsi_if_transport_ep()
3817 ev->r.retcode = -ENOTCONN; in iscsi_if_transport_conn()
3830 ev->r.retcode = transport->bind_conn(session, conn, in iscsi_if_transport_conn()
3833 if (!ev->r.retcode) in iscsi_if_transport_conn()
3836 if (ev->r.retcode || !transport->ep_connect) in iscsi_if_transport_conn()
3851 ev->r.retcode = transport->start_conn(conn); in iscsi_if_transport_conn()
3852 if (!ev->r.retcode) in iscsi_if_transport_conn()
3863 ev->r.retcode = transport->send_pdu(conn, in iscsi_if_transport_conn()
/drivers/net/ethernet/nvidia/
Dforcedeth.c3788 int retcode; in nv_napi_poll() local
3798 retcode = nv_alloc_rx(dev); in nv_napi_poll()
3806 retcode = nv_alloc_rx_optimized(dev); in nv_napi_poll()
3808 } while (retcode == 0 && in nv_napi_poll()
3811 if (retcode) { in nv_napi_poll()
/drivers/net/wireless/intel/ipw2x00/
Dipw2200.h1960 int retcode; member
Dipw2200.c1355 priv->cmdlog[i].retcode, priv->cmdlog[i].cmd.cmd, in show_cmd_log()
2190 priv->cmdlog[priv->cmdlog_pos].retcode = -1; in __ipw_send_cmd()
2251 priv->cmdlog[priv->cmdlog_pos++].retcode = rc; in __ipw_send_cmd()