/kernel/linux/linux-5.10/drivers/media/dvb-frontends/drx39xyj/ |
D | drxj.c | 1421 int rc; in drxdap_fasi_read_block() local 1483 rc = drxbsp_i2c_write_read(dev_addr, bufx, buf, in drxdap_fasi_read_block() 1485 if (rc == 0) in drxdap_fasi_read_block() 1486 rc = drxbsp_i2c_write_read(NULL, 0, NULL, dev_addr, todo, data); in drxdap_fasi_read_block() 1489 rc = drxbsp_i2c_write_read(dev_addr, bufx, buf, dev_addr, todo, in drxdap_fasi_read_block() 1495 } while (datasize && rc == 0); in drxdap_fasi_read_block() 1497 return rc; in drxdap_fasi_read_block() 1524 int rc; in drxdap_fasi_read_reg16() local 1529 rc = drxdap_fasi_read_block(dev_addr, addr, sizeof(*data), buf, flags); in drxdap_fasi_read_reg16() 1531 return rc; in drxdap_fasi_read_reg16() [all …]
|
/kernel/linux/linux-5.10/drivers/media/rc/keymaps/ |
D | Makefile | 2 obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \ 3 rc-alink-dtu-m.o \ 4 rc-anysee.o \ 5 rc-apac-viewcomp.o \ 6 rc-astrometa-t2hybrid.o \ 7 rc-asus-pc39.o \ 8 rc-asus-ps3-100.o \ 9 rc-ati-tv-wonder-hd-600.o \ 10 rc-ati-x10.o \ 11 rc-avermedia-a16d.o \ [all …]
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
D | mb86a20s.c | 219 int rc; in mb86a20s_i2c_writereg() local 221 rc = i2c_transfer(state->i2c, &msg, 1); in mb86a20s_i2c_writereg() 222 if (rc != 1) { in mb86a20s_i2c_writereg() 225 __func__, rc, reg, data); in mb86a20s_i2c_writereg() 226 return rc; in mb86a20s_i2c_writereg() 235 int i, rc; in mb86a20s_i2c_writeregdata() local 238 rc = mb86a20s_i2c_writereg(state, i2c_addr, rd[i].reg, in mb86a20s_i2c_writeregdata() 240 if (rc < 0) in mb86a20s_i2c_writeregdata() 241 return rc; in mb86a20s_i2c_writeregdata() 250 int rc; in mb86a20s_i2c_readreg() local [all …]
|
D | s921.c | 27 #define rc(args...) do { \ macro 205 int rc; in s921_i2c_writereg() local 207 rc = i2c_transfer(state->i2c, &msg, 1); in s921_i2c_writereg() 208 if (rc != 1) { in s921_i2c_writereg() 210 __func__, rc, reg, data); in s921_i2c_writereg() 211 return rc; in s921_i2c_writereg() 220 int i, rc; in s921_i2c_writeregdata() local 223 rc = s921_i2c_writereg(state, i2c_addr, rd[i].reg, rd[i].data); in s921_i2c_writeregdata() 224 if (rc < 0) in s921_i2c_writeregdata() 225 return rc; in s921_i2c_writeregdata() [all …]
|
/kernel/linux/linux-5.10/drivers/media/tuners/ |
D | r820t.c | 355 int rc, size, pos = 0; in r820t_write() local 370 rc = tuner_i2c_xfer_send(&priv->i2c_props, priv->buf, size + 1); in r820t_write() 371 if (rc != size + 1) { in r820t_write() 373 __func__, rc, reg, size, size, &priv->buf[1]); in r820t_write() 374 if (rc < 0) in r820t_write() 375 return rc; in r820t_write() 410 int rc = r820t_read_cache_reg(priv, reg); in r820t_write_reg_mask() local 412 if (rc < 0) in r820t_write_reg_mask() 413 return rc; in r820t_write_reg_mask() 415 tmp = (rc & ~bit_mask) | (tmp & bit_mask); in r820t_write_reg_mask() [all …]
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
D | It_posix_pthread_088.c | 42 int rc; in PthreadSignalHandlerF01() local 44 rc = pthread_cond_signal(&g_pthreadCondTest1); in PthreadSignalHandlerF01() 45 ICUNIT_ASSERT_EQUAL_VOID(rc, 0, rc); in PthreadSignalHandlerF01() 60 int rc; in PthreadF01() local 64 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF01() 65 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 67 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in PthreadF01() 68 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 74 rc = pthread_mutex_lock(&g_pthreadMutexTest1); in PthreadF01() 75 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() [all …]
|
D | It_posix_pthread_089.c | 42 int rc; in PthreadSignalHandlerF01() local 43 rc = pthread_cond_broadcast(&g_pthreadCondTest1); in PthreadSignalHandlerF01() 44 ICUNIT_ASSERT_EQUAL_VOID(rc, 0, rc); in PthreadSignalHandlerF01() 59 int rc; in PthreadF01() local 63 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF01() 64 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 66 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in PthreadF01() 67 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 73 rc = pthread_mutex_lock(&g_pthreadMutexTest1); in PthreadF01() 74 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() [all …]
|
D | It_posix_pthread_084.c | 42 int rc; in PthreadF01() local 44 rc = pthread_mutex_lock(&g_td.mutex); in PthreadF01() 45 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 49 rc = pthread_cond_wait(&g_td.cond, &g_td.mutex); in PthreadF01() 50 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 52 rc = pthread_mutex_trylock(&g_td.mutex); in PthreadF01() 53 ICUNIT_GOTO_NOT_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 57 rc = pthread_mutex_unlock(&g_td.mutex); in PthreadF01() 58 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 65 int i, rc; in Testcase() local [all …]
|
D | It_posix_pthread_083.c | 42 int rc; in PthreadF01() local 44 rc = pthread_mutex_lock(&g_td.mutex); in PthreadF01() 45 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 49 rc = pthread_cond_wait(&g_td.cond, &g_td.mutex); in PthreadF01() 50 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 54 rc = pthread_mutex_unlock(&g_td.mutex); in PthreadF01() 55 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 62 int i, rc; in Testcase() local 68 rc = pthread_mutex_init(&g_td.mutex, NULL); in Testcase() 69 ICUNIT_ASSERT_EQUAL(rc, 0, rc); in Testcase() [all …]
|
D | It_posix_pthread_082.c | 42 int rc; in PthreadF01() local 46 rc = pthread_mutex_lock(&g_td.mutex); in PthreadF01() 47 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 51 rc = gettimeofday(&curtime, NULL); in PthreadF01() 52 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 57 rc = pthread_cond_timedwait(&g_td.cond, &g_td.mutex, &timeout); in PthreadF01() 58 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 60 rc = pthread_mutex_trylock(&g_td.mutex); in PthreadF01() 61 ICUNIT_GOTO_NOT_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 65 rc = pthread_mutex_unlock(&g_td.mutex); in PthreadF01() [all …]
|
D | It_posix_pthread_107.c | 44 int rc; in PthreadF01() local 46 rc = pthread_mutex_lock(&g_pthreadMutexTest1); in PthreadF01() 47 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 54 rc = pthread_cond_wait(&g_pthreadCondTest1, &g_pthreadMutexTest1); in PthreadF01() 55 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 58 rc = pthread_mutex_unlock(&g_pthreadMutexTest1); in PthreadF01() 59 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 68 int rc; in PthreadF02() local 72 rc = pthread_mutex_lock(&g_pthreadMutexTest1); in PthreadF02() 73 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF02() [all …]
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
D | It_posix_pthread_088.cpp | 37 int rc; in PthreadSignalHandlerF01() local 39 rc = pthread_cond_signal(&g_pthreadCondTest100); in PthreadSignalHandlerF01() 40 ICUNIT_ASSERT_EQUAL_VOID(rc, 0, rc); in PthreadSignalHandlerF01() 55 int rc = 0; in pthread_f01() local 59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f01() 60 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 62 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f01() 63 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 68 rc = pthread_mutex_lock(&g_pthreadMutexTest100); in pthread_f01() 69 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() [all …]
|
D | It_posix_pthread_089.cpp | 38 int rc; in PthreadSignalHandlerF01() local 39 rc = pthread_cond_broadcast(&g_pthreadCondTest100); in PthreadSignalHandlerF01() 40 ICUNIT_ASSERT_EQUAL_VOID(rc, 0, rc); in PthreadSignalHandlerF01() 55 int rc = 0; in pthread_f01() local 59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f01() 60 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 62 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); in pthread_f01() 63 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 69 rc = pthread_mutex_lock(&g_pthreadMutexTest100); in pthread_f01() 70 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() [all …]
|
D | It_posix_pthread_092.cpp | 38 int rc; in pthread_f01() local 41 rc = pthread_mutex_lock(&g_td.mutex); in pthread_f01() 42 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 50 rc = pthread_cond_wait(&g_td.cond, &g_td.mutex); in pthread_f01() 51 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 56 rc = pthread_mutex_unlock(&g_td.mutex); in pthread_f01() 57 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 65 int rc; in pthread_f02() local 69 rc = pthread_mutex_lock(&g_td.mutex); in pthread_f02() 70 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f02() [all …]
|
D | It_posix_pthread_084.cpp | 35 int rc; in pthread_f01() local 38 rc = pthread_mutex_lock(&g_td.mutex); in pthread_f01() 39 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 43 rc = pthread_cond_wait(&g_td.cond, &g_td.mutex); in pthread_f01() 44 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 46 rc = pthread_mutex_trylock(&g_td.mutex); in pthread_f01() 47 ICUNIT_GOTO_NOT_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 51 rc = pthread_mutex_unlock(&g_td.mutex); in pthread_f01() 52 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 59 int i, rc; in Testcase() local [all …]
|
D | It_posix_pthread_083.cpp | 35 int rc; in pthread_f01() local 38 rc = pthread_mutex_lock(&g_td.mutex); in pthread_f01() 39 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 43 rc = pthread_cond_wait(&g_td.cond, &g_td.mutex); in pthread_f01() 44 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 48 rc = pthread_mutex_unlock(&g_td.mutex); in pthread_f01() 49 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 56 int i, rc; in Testcase() local 62 rc = pthread_mutex_init(&g_td.mutex, NULL); in Testcase() 63 ICUNIT_ASSERT_EQUAL(rc, 0, rc); in Testcase() [all …]
|
D | It_posix_pthread_081.cpp | 35 int rc; in pthread_f01() local 38 rc = pthread_mutex_lock(&g_td.mutex); in pthread_f01() 39 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 43 rc = pthread_cond_wait(&g_td.cond, &g_td.mutex); in pthread_f01() 44 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 46 rc = pthread_mutex_trylock(&g_td.mutex); in pthread_f01() 47 ICUNIT_GOTO_NOT_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 51 rc = pthread_mutex_unlock(&g_td.mutex); in pthread_f01() 52 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 60 int i, rc; in Testcase() local [all …]
|
D | It_posix_pthread_082.cpp | 35 int rc; in pthread_f01() local 40 rc = pthread_mutex_lock(&g_td.mutex); in pthread_f01() 41 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 45 rc = gettimeofday(&curtime, NULL); in pthread_f01() 46 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 51 rc = pthread_cond_timedwait(&g_td.cond, &g_td.mutex, &timeout); in pthread_f01() 52 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 54 rc = pthread_mutex_trylock(&g_td.mutex); in pthread_f01() 55 ICUNIT_GOTO_NOT_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 59 rc = pthread_mutex_unlock(&g_td.mutex); in pthread_f01() [all …]
|
D | It_posix_pthread_107.cpp | 36 int rc; in pthread_f01() local 38 rc = pthread_mutex_lock(&g_pthreadMutexTest1); in pthread_f01() 39 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 46 rc = pthread_cond_wait(&g_pthreadCondTest1, &g_pthreadMutexTest1); in pthread_f01() 47 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 50 rc = pthread_mutex_unlock(&g_pthreadMutexTest1); in pthread_f01() 51 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f01() 62 int rc; in pthread_f02() local 66 rc = pthread_mutex_lock(&g_pthreadMutexTest1); in pthread_f02() 67 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in pthread_f02() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | ucode_loader.c | 42 int rc; in brcms_ucode_data_init() local 44 rc = brcms_check_firmwares(wl); in brcms_ucode_data_init() 46 rc = rc < 0 ? rc : in brcms_ucode_data_init() 49 rc = rc < 0 ? in brcms_ucode_data_init() 50 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn0initvals24, in brcms_ucode_data_init() 52 rc = rc < 0 ? in brcms_ucode_data_init() 53 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn1bsinitvals24, in brcms_ucode_data_init() 55 rc = rc < 0 ? in brcms_ucode_data_init() 56 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn1initvals24, in brcms_ucode_data_init() 58 rc = rc < 0 ? rc : in brcms_ucode_data_init() [all …]
|
/kernel/linux/linux-5.10/security/selinux/ss/ |
D | policydb.c | 386 int rc; in roles_init() local 393 rc = -EINVAL; in roles_init() 398 rc = -ENOMEM; in roles_init() 403 rc = symtab_insert(&p->p_roles, key, role); in roles_init() 404 if (rc) in roles_init() 411 return rc; in roles_init() 720 int i, rc; in policydb_index() local 763 rc = cond_init_bool_indexes(p); in policydb_index() 764 if (rc) in policydb_index() 774 rc = hashtab_map(&p->symtab[i].table, index_f[i], p); in policydb_index() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | dps310.c | 63 #define DPS310_POLL_TIMEOUT_US(rc) ((rc) <= 0 ? 1000000 : 1000000 / (rc)) argument 112 int rc; in dps310_get_coefs() local 118 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 120 if (rc < 0) in dps310_get_coefs() 121 return rc; in dps310_get_coefs() 164 int rc; in dps310_get_pres_precision() local 167 rc = regmap_read(data->regmap, DPS310_PRS_CFG, &val); in dps310_get_pres_precision() 168 if (rc < 0) in dps310_get_pres_precision() 169 return rc; in dps310_get_pres_precision() 176 int rc; in dps310_get_temp_precision() local [all …]
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/ |
D | pthread_cond_test_002.cpp | 39 int rc; in PthreadF01() local 43 rc = pthread_mutex_lock(&g_pthreadMuxTest1); in PthreadF01() 44 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 46 rc = pthread_cond_wait(&g_pthrdCondTest1, &g_pthreadMuxTest1); in PthreadF01() 47 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 49 rc = pthread_mutex_unlock(&g_pthreadMuxTest1); in PthreadF01() 50 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF01() 62 int rc; in PthreadF02() local 65 rc = pthread_mutex_lock(&g_pthreadMuxTest1); in PthreadF02() 66 ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); in PthreadF02() [all …]
|
/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | qcom-wled.c | 233 int rc, i; in wled3_set_brightness() local 239 rc = regmap_bulk_write(wled->regmap, wled->ctrl_addr + in wled3_set_brightness() 242 if (rc < 0) in wled3_set_brightness() 243 return rc; in wled3_set_brightness() 251 int rc, i; in wled4_set_brightness() local 262 rc = regmap_bulk_write(wled->regmap, wled->sink_addr + in wled4_set_brightness() 265 if (rc < 0) in wled4_set_brightness() 266 return rc; in wled4_set_brightness() 274 int rc, offset; in wled5_set_brightness() local 288 rc = regmap_bulk_write(wled->regmap, wled->sink_addr + offset, in wled5_set_brightness() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/ |
D | stk1160-i2c.c | 56 int rc; in stk1160_i2c_write_reg() local 59 rc = stk1160_write_reg(dev, STK1160_SICTL_SDA, addr); in stk1160_i2c_write_reg() 60 if (rc < 0) in stk1160_i2c_write_reg() 61 return rc; in stk1160_i2c_write_reg() 64 rc = stk1160_write_reg(dev, STK1160_SBUSW_WA, reg); in stk1160_i2c_write_reg() 65 if (rc < 0) in stk1160_i2c_write_reg() 66 return rc; in stk1160_i2c_write_reg() 69 rc = stk1160_write_reg(dev, STK1160_SBUSW_WD, value); in stk1160_i2c_write_reg() 70 if (rc < 0) in stk1160_i2c_write_reg() 71 return rc; in stk1160_i2c_write_reg() [all …]
|