/drivers/net/wireless/zd1211rw/ |
D | zd_rf_al7230b.c | 77 int r; in zd1211b_al7230b_finalize() local 86 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al7230b_finalize() 87 if (r) in zd1211b_al7230b_finalize() 88 return r; in zd1211b_al7230b_finalize() 92 r = zd_iowrite16_locked(chip, 0xe5, ZD_CR9); in zd1211b_al7230b_finalize() 93 if (r) in zd1211b_al7230b_finalize() 94 return r; in zd1211b_al7230b_finalize() 102 int r; in zd1211_al7230b_init_hw() local 171 r = zd_iowrite16a_locked(chip, ioreqs_1, ARRAY_SIZE(ioreqs_1)); in zd1211_al7230b_init_hw() 172 if (r) in zd1211_al7230b_init_hw() [all …]
|
D | zd_chip.c | 109 int r; in zd_ioread32v_locked() local 130 r = zd_ioread16v_locked(chip, v16, a16, count16); in zd_ioread32v_locked() 131 if (r) { in zd_ioread32v_locked() 133 "error: zd_ioread16v_locked. Error number %d\n", r); in zd_ioread32v_locked() 134 return r; in zd_ioread32v_locked() 149 int i, j, r; in _zd_iowrite32v_async_locked() local 174 r = zd_usb_iowrite16v_async(&chip->usb, ioreqs16, count16); in _zd_iowrite32v_async_locked() 176 if (r) { in _zd_iowrite32v_async_locked() 178 "error %d in zd_usb_write16v\n", r); in _zd_iowrite32v_async_locked() 181 return r; in _zd_iowrite32v_async_locked() [all …]
|
D | zd_rf_al2230.c | 81 int r; in zd1211b_al2230_finalize_rf() local 91 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al2230_finalize_rf() 92 if (r) in zd1211b_al2230_finalize_rf() 93 return r; in zd1211b_al2230_finalize_rf() 97 r = zd_iowrite16_locked(chip, 0xe1, ZD_CR9); in zd1211b_al2230_finalize_rf() 98 if (r) in zd1211b_al2230_finalize_rf() 99 return r; in zd1211b_al2230_finalize_rf() 107 int r; in zd1211_al2230_init_hw() local 180 r = zd_iowrite16a_locked(chip, ioreqs_init, ARRAY_SIZE(ioreqs_init)); in zd1211_al2230_init_hw() 181 if (r) in zd1211_al2230_init_hw() [all …]
|
D | zd_rf_uw2453.c | 258 int r; in uw2453_synth_set_channel() local 267 r = zd_rfwrite_locked(chip, val, RF_RV_BITS); in uw2453_synth_set_channel() 268 if (r) in uw2453_synth_set_channel() 269 return r; in uw2453_synth_set_channel() 311 int i, r; in uw2453_init_hw() local 378 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in uw2453_init_hw() 379 if (r) in uw2453_init_hw() 380 return r; in uw2453_init_hw() 382 r = zd_rfwritev_locked(chip, rv, ARRAY_SIZE(rv), RF_RV_BITS); in uw2453_init_hw() 383 if (r) in uw2453_init_hw() [all …]
|
/drivers/staging/csr/ |
D | csr_wifi_hip_card_sdio.c | 169 CsrResult r; in unifi_init_card() local 177 r = unifi_init(card); in unifi_init_card() 178 if (r != CSR_RESULT_SUCCESS) in unifi_init_card() 180 return r; in unifi_init_card() 183 r = unifi_hip_init(card); in unifi_init_card() 184 if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE) in unifi_init_card() 186 return r; in unifi_init_card() 188 if (r != CSR_RESULT_SUCCESS) in unifi_init_card() 191 return r; in unifi_init_card() 214 CsrResult r; in unifi_init() local [all …]
|
D | sme_blocking.c | 176 long r; in _sme_wait_for_reply() local 179 r = wait_event_interruptible_timeout(priv->sme_request_wq, in _sme_wait_for_reply() 182 unifi_trace(priv, UDBG5, "sme_wait_for_reply: %s awake (%d)\n", func ? func : "", r); in _sme_wait_for_reply() 184 if (r == -ERESTARTSYS) { in _sme_wait_for_reply() 188 return r; in _sme_wait_for_reply() 192 (func ? func : ""), priv->sme_reply.request_status, timeout, r); in _sme_wait_for_reply() 198 if ((r == 0) && (priv->sme_reply.request_status != SME_REQUEST_RECEIVED)) { in _sme_wait_for_reply() 211 func ? func : "", r); in _sme_wait_for_reply() 228 int r; in sme_mgt_wifi_on() local 245 r = sme_init_request(priv); in sme_mgt_wifi_on() [all …]
|
D | csr_wifi_hip_download.c | 57 CsrResult r; in _find_in_slut() local 63 r = card_wait_for_firmware_to_start(card, &slut_address); in _find_in_slut() 64 if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE) in _find_in_slut() 66 return r; in _find_in_slut() 68 if (r != CSR_RESULT_SUCCESS) in _find_in_slut() 71 return r; in _find_in_slut() 82 r = ConvertCsrSdioToCsrHipResult(card, csrResult); in _find_in_slut() 83 return r; in _find_in_slut() 99 r = unifi_card_read16(card, slut_address, &finger_print); in _find_in_slut() 100 if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE) in _find_in_slut() [all …]
|
D | csr_wifi_hip_card_sdio_mem.c | 59 CsrResult r = CSR_RESULT_SUCCESS; in retrying_read8() local 124 r = CSR_RESULT_FAILURE; in retrying_read8() 127 return r; in retrying_read8() 134 CsrResult r = CSR_RESULT_SUCCESS; in retrying_write8() local 197 r = CSR_RESULT_FAILURE; in retrying_write8() 200 return r; in retrying_write8() 208 CsrResult r = CSR_RESULT_SUCCESS; in retrying_read16() local 258 r = CSR_RESULT_FAILURE; in retrying_read16() 261 return r; in retrying_read16() 269 CsrResult r = CSR_RESULT_SUCCESS; in retrying_write16() local [all …]
|
/drivers/md/ |
D | dm-thin-metadata.c | 371 int r; in __superblock_all_zeroes() local 380 r = dm_bm_read_lock(bm, THIN_SUPERBLOCK_LOCATION, NULL, &b); in __superblock_all_zeroes() 381 if (r) in __superblock_all_zeroes() 382 return r; in __superblock_all_zeroes() 436 int r; in __write_initial_superblock() local 445 r = dm_sm_root_size(pmd->metadata_sm, &metadata_len); in __write_initial_superblock() 446 if (r < 0) in __write_initial_superblock() 447 return r; in __write_initial_superblock() 449 r = dm_sm_root_size(pmd->data_sm, &data_len); in __write_initial_superblock() 450 if (r < 0) in __write_initial_superblock() [all …]
|
D | dm-cache-metadata.c | 203 int r; in __superblock_all_zeroes() local 212 r = dm_bm_read_lock(bm, CACHE_SUPERBLOCK_LOCATION, NULL, &b); in __superblock_all_zeroes() 213 if (r) in __superblock_all_zeroes() 214 return r; in __superblock_all_zeroes() 247 int r; in __write_initial_superblock() local 257 r = dm_sm_root_size(cmd->metadata_sm, &metadata_len); in __write_initial_superblock() 258 if (r < 0) in __write_initial_superblock() 259 return r; in __write_initial_superblock() 261 r = dm_tm_pre_commit(cmd->tm); in __write_initial_superblock() 262 if (r < 0) in __write_initial_superblock() [all …]
|
D | dm-log-userspace-base.c | 79 int r; in userspace_do_request() local 87 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request() 90 if (r != -ESRCH) in userspace_do_request() 91 return r; in userspace_do_request() 98 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request() 102 if (!r) in userspace_do_request() 106 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request() 108 if (!r) in userspace_do_request() 111 DMERR("Error trying to resume userspace log: %d", r); in userspace_do_request() 160 int r = 0; in userspace_ctr() local [all …]
|
/drivers/media/radio/ |
D | radio-wl1273.c | 112 int i, r = 0; in wl1273_fm_write_fw() local 124 r = i2c_transfer(client->adapter, &msg, 1); in wl1273_fm_write_fw() 125 if (r < 0 && i < len + 1) in wl1273_fm_write_fw() 133 if (i == len || r == 1) in wl1273_fm_write_fw() 134 r = 0; in wl1273_fm_write_fw() 136 return r; in wl1273_fm_write_fw() 164 int r; in wl1273_fm_rds() local 169 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_rds() 170 if (r) in wl1273_fm_rds() 171 return r; in wl1273_fm_rds() [all …]
|
/drivers/nfc/pn544/ |
D | pn544.c | 138 int r = 0; in pn544_hci_open() local 143 r = -EBUSY; in pn544_hci_open() 147 r = info->phy_ops->enable(info->phy_id); in pn544_hci_open() 149 if (r == 0) in pn544_hci_open() 154 return r; in pn544_hci_open() 259 int r; in pn544_hci_ready() local 267 r = nfc_hci_send_cmd(hdev, PN544_SYS_MGMT_GATE, PN544_WRITE, in pn544_hci_ready() 269 if (r < 0) in pn544_hci_ready() 270 return r; in pn544_hci_ready() 288 r = nfc_hci_set_param(hdev, NFC_HCI_ADMIN_GATE, in pn544_hci_ready() [all …]
|
/drivers/video/omap2/dss/ |
D | ti_hdmi_4xxx_ip.c | 93 u32 r; in hdmi_pll_init() local 100 r = hdmi_read_reg(pll_base, PLLCTRL_CFG1); in hdmi_pll_init() 101 r = FLD_MOD(r, fmt->regm, 20, 9); /* CFG1_PLL_REGM */ in hdmi_pll_init() 102 r = FLD_MOD(r, fmt->regn - 1, 8, 1); /* CFG1_PLL_REGN */ in hdmi_pll_init() 104 hdmi_write_reg(pll_base, PLLCTRL_CFG1, r); in hdmi_pll_init() 106 r = hdmi_read_reg(pll_base, PLLCTRL_CFG2); in hdmi_pll_init() 108 r = FLD_MOD(r, 0x0, 12, 12); /* PLL_HIGHFREQ divide by 2 */ in hdmi_pll_init() 109 r = FLD_MOD(r, 0x1, 13, 13); /* PLL_REFEN */ in hdmi_pll_init() 110 r = FLD_MOD(r, 0x0, 14, 14); /* PHY_CLKINEN de-assert during locking */ in hdmi_pll_init() 111 r = FLD_MOD(r, fmt->refsel, 22, 21); /* REFSEL */ in hdmi_pll_init() [all …]
|
D | manager-sysfs.c | 50 int r = 0; in manager_display_store() local 73 r = mgr->unset_output(mgr); in manager_display_store() 74 if (r) { in manager_display_store() 92 r = mgr->set_output(mgr, out); in manager_display_store() 93 if (r) { in manager_display_store() 98 r = mgr->apply(mgr); in manager_display_store() 99 if (r) { in manager_display_store() 109 return r ? r : size; in manager_display_store() 127 int r; in manager_default_color_store() local 129 r = kstrtouint(buf, 0, &color); in manager_default_color_store() [all …]
|
D | overlay-sysfs.c | 48 int i, r; in overlay_manager_store() local 78 r = dispc_runtime_get(); in overlay_manager_store() 79 if (r) in overlay_manager_store() 80 return r; in overlay_manager_store() 84 r = ovl->unset_manager(ovl); in overlay_manager_store() 85 if (r) { in overlay_manager_store() 90 r = old_mgr->apply(old_mgr); in overlay_manager_store() 91 if (r) in overlay_manager_store() 96 r = ovl->set_manager(ovl, mgr); in overlay_manager_store() 97 if (r) { in overlay_manager_store() [all …]
|
/drivers/video/omap2/displays/ |
D | panel-taal.c | 123 int r; in taal_dcs_read_1() local 126 r = dsi_vc_dcs_read(td->dssdev, td->channel, dcs_cmd, buf, 1); in taal_dcs_read_1() 128 if (r < 0) in taal_dcs_read_1() 129 return r; in taal_dcs_read_1() 153 int r; in taal_sleep_in() local 158 r = dsi_vc_dcs_write_nosync(td->dssdev, td->channel, &cmd, 1); in taal_sleep_in() 159 if (r) in taal_sleep_in() 160 return r; in taal_sleep_in() 171 int r; in taal_sleep_out() local 175 r = taal_dcs_write_0(td, MIPI_DCS_EXIT_SLEEP_MODE); in taal_sleep_out() [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_test.c | 41 int r, ring; in radeon_do_test_moves() local 72 r = 1; in radeon_do_test_moves() 76 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, RADEON_GEM_DOMAIN_VRAM, in radeon_do_test_moves() 78 if (r) { in radeon_do_test_moves() 82 r = radeon_bo_reserve(vram_obj, false); in radeon_do_test_moves() 83 if (unlikely(r != 0)) in radeon_do_test_moves() 85 r = radeon_bo_pin(vram_obj, RADEON_GEM_DOMAIN_VRAM, &vram_addr); in radeon_do_test_moves() 86 if (r) { in radeon_do_test_moves() 95 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, in radeon_do_test_moves() 97 if (r) { in radeon_do_test_moves() [all …]
|
D | radeon_uvd.c | 60 int i, r; in radeon_uvd_init() local 65 r = IS_ERR(pdev); in radeon_uvd_init() 66 if (r) { in radeon_uvd_init() 107 r = request_firmware(&rdev->uvd_fw, fw_name, &pdev->dev); in radeon_uvd_init() 108 if (r) { in radeon_uvd_init() 112 return r; in radeon_uvd_init() 119 r = radeon_bo_create(rdev, bo_size, PAGE_SIZE, true, in radeon_uvd_init() 121 if (r) { in radeon_uvd_init() 122 dev_err(rdev->dev, "(%d) failed to allocate UVD bo\n", r); in radeon_uvd_init() 123 return r; in radeon_uvd_init() [all …]
|
D | r520.c | 170 int r; in r520_startup() local 180 r = rv370_pcie_gart_enable(rdev); in r520_startup() 181 if (r) in r520_startup() 182 return r; in r520_startup() 186 r = radeon_wb_init(rdev); in r520_startup() 187 if (r) in r520_startup() 188 return r; in r520_startup() 190 r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX); in r520_startup() 191 if (r) { in r520_startup() 192 dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r); in r520_startup() [all …]
|
/drivers/md/persistent-data/ |
D | dm-space-map-common.c | 234 int r; in sm_ll_extend() local 252 r = dm_tm_new_block(ll->tm, &dm_sm_bitmap_validator, &b); in sm_ll_extend() 253 if (r < 0) in sm_ll_extend() 254 return r; in sm_ll_extend() 257 r = dm_tm_unlock(ll->tm, b); in sm_ll_extend() 258 if (r < 0) in sm_ll_extend() 259 return r; in sm_ll_extend() 264 r = ll->save_ie(ll, i, &idx); in sm_ll_extend() 265 if (r < 0) in sm_ll_extend() 266 return r; in sm_ll_extend() [all …]
|
D | dm-space-map-disk.c | 74 int r; in sm_disk_count_is_more_than_one() local 77 r = sm_disk_get_count(sm, b, &count); in sm_disk_count_is_more_than_one() 78 if (r) in sm_disk_count_is_more_than_one() 79 return r; in sm_disk_count_is_more_than_one() 87 int r; in sm_disk_set_count() local 92 r = sm_ll_insert(&smd->ll, b, count, &ev); in sm_disk_set_count() 93 if (!r) { in sm_disk_set_count() 111 r = sm_ll_lookup(&smd->old_ll, b, &old_count); in sm_disk_set_count() 112 if (r) in sm_disk_set_count() 113 return r; in sm_disk_set_count() [all …]
|
/drivers/net/ethernet/smsc/ |
D | smc91x.h | 63 #define SMC_inb(a, r) readb((a) + (r)) argument 64 #define SMC_inw(a, r) readw((a) + (r)) argument 65 #define SMC_inl(a, r) readl((a) + (r)) argument 66 #define SMC_outb(v, a, r) writeb(v, (a) + (r)) argument 67 #define SMC_outl(v, a, r) writel(v, (a) + (r)) argument 68 #define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) argument 69 #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) argument 70 #define SMC_insl(a, r, p, l) readsl((a) + (r), p, l) argument 71 #define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l) argument 94 #define SMC_inb(a, r) readb((a) + (r)) argument [all …]
|
/drivers/video/omap2/omapfb/ |
D | omapfb-ioctl.c | 69 int r = 0; in omapfb_setup_plane() local 74 r = -EINVAL; in omapfb_setup_plane() 84 r = -EINVAL; in omapfb_setup_plane() 103 r = -EINVAL; in omapfb_setup_plane() 115 r = ovl->disable(ovl); in omapfb_setup_plane() 116 if (r) in omapfb_setup_plane() 121 r = omapfb_setup_overlay(fbi, ovl, pi->pos_x, pi->pos_y, in omapfb_setup_plane() 123 if (r) in omapfb_setup_plane() 135 r = ovl->set_overlay_info(ovl, &info); in omapfb_setup_plane() 136 if (r) in omapfb_setup_plane() [all …]
|
/drivers/input/keyboard/ |
D | pxa930_rotary.c | 33 static void clear_sbcr(struct pxa930_rotary *r) in clear_sbcr() argument 35 uint32_t sbcr = __raw_readl(r->mmio_base + SBCR); in clear_sbcr() 37 __raw_writel(sbcr | SBCR_ERSB, r->mmio_base + SBCR); in clear_sbcr() 38 __raw_writel(sbcr & ~SBCR_ERSB, r->mmio_base + SBCR); in clear_sbcr() 43 struct pxa930_rotary *r = dev_id; in rotary_irq() local 44 struct pxa930_rotary_platform_data *pdata = r->pdata; in rotary_irq() 47 ercr = __raw_readl(r->mmio_base + ERCR) & 0xf; in rotary_irq() 48 clear_sbcr(r); in rotary_irq() 50 delta = ercr - r->last_ercr; in rotary_irq() 54 r->last_ercr = ercr; in rotary_irq() [all …]
|