/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | rc.yaml | 4 $id: http://devicetree.org/schemas/media/rc.yaml# 17 linux,rc-map-name: 23 - rc-adstech-dvb-t-pci 24 - rc-alink-dtu-m 25 - rc-anysee 26 - rc-apac-viewcomp 27 - rc-astrometa-t2hybrid 28 - rc-asus-pc39 29 - rc-asus-ps3-100 30 - rc-ati-tv-wonder-hd-600 [all …]
|
/openbmc/linux/drivers/media/rc/keymaps/ |
H A D | Makefile | 6 rc-adstech-dvb-t-pci.o \ 7 rc-alink-dtu-m.o \ 8 rc-anysee.o \ 9 rc-apac-viewcomp.o \ 10 rc-astrometa-t2hybrid.o \ 11 rc-asus-pc39.o \ 12 rc-asus-ps3-100.o \ 13 rc-ati-tv-wonder-hd-600.o \ 14 rc-ati-x10.o \ 15 rc-avermedia-a16d.o \ [all …]
|
/openbmc/linux/include/media/ |
H A D | rc-map.h | 3 * rc-map.h - define RC map names used by RC drivers 180 * rc_map_list from rc-cec.c 185 /* Routines from rc-map.c */ 202 * rc_map_get - gets an RC map from its name 203 * @name: name of the RC scancode map 209 #define RC_MAP_ADSTECH_DVB_T_PCI "rc-adstech-dvb-t-pci" 210 #define RC_MAP_ALINK_DTU_M "rc-alink-dtu-m" 211 #define RC_MAP_ANYSEE "rc-anysee" 212 #define RC_MAP_APAC_VIEWCOMP "rc-apac-viewcomp" 213 #define RC_MAP_ASTROMETA_T2HYBRID "rc-astrometa-t2hybrid" [all …]
|
/openbmc/hiomapd/ |
H A D | transport_dbus.c | 22 int rc; in transport_dbus_property_update() local 40 rc = sd_bus_emit_properties_changed_strv(context->bus, in transport_dbus_property_update() 46 return (rc < 0) ? rc : 0; in transport_dbus_property_update() 78 int rc; in transport_dbus_reset() local 85 rc = context->protocol->reset(context); in transport_dbus_reset() 86 if (rc < 0) { in transport_dbus_reset() 87 return rc; in transport_dbus_reset() 90 rc = sd_bus_message_new_method_return(m, &n); in transport_dbus_reset() 91 if (rc < 0) { in transport_dbus_reset() 92 MSG_ERR("sd_bus_message_new_method_return failed: %d\n", rc); in transport_dbus_reset() [all …]
|
H A D | mboxctl.c | 55 int rc; in init_mboxctl_dbus() local 57 rc = sd_bus_default_system(&context->bus); in init_mboxctl_dbus() 58 if (rc < 0) { in init_mboxctl_dbus() 60 strerror(-rc)); in init_mboxctl_dbus() 63 return rc; in init_mboxctl_dbus() 70 int rc; in mboxctl_directive() local 72 rc = sd_bus_message_new_method_call(context->bus, &m, in mboxctl_directive() 77 if (rc < 0) { in mboxctl_directive() 79 strerror(-rc)); in mboxctl_directive() 83 rc = sd_bus_call(context->bus, m, 0, &error, NULL); in mboxctl_directive() [all …]
|
/openbmc/pldm/platform-mc/ |
H A D | platform_manager.cpp | 30 auto rc = in initTerminus() local 32 if (rc) in initTerminus() 36 "TID", tid, "ERROR", rc); in initTerminus() 48 auto rc = in initTerminus() local 50 if (rc) in initTerminus() 54 "TID", tid, "ERROR", rc); in initTerminus() 60 auto rc = co_await getPDRs(terminus); in initTerminus() local 61 if (rc) in initTerminus() 65 "TID", tid, "ERROR", rc); in initTerminus() 90 auto rc = co_await eventMessageBufferSize( in initTerminus() local [all …]
|
/openbmc/linux/security/selinux/ss/ |
H A D | policydb.c | 381 int rc; in roles_init() local 388 rc = -EINVAL; in roles_init() 393 rc = -ENOMEM; in roles_init() 398 rc = symtab_insert(&p->p_roles, key, role); in roles_init() 399 if (rc) in roles_init() 406 return rc; in roles_init() 717 int i, rc; in policydb_index() local 758 rc = cond_init_bool_indexes(p); in policydb_index() 759 if (rc) in policydb_index() 769 rc = hashtab_map(&p->symtab[i].table, index_f[i], p); in policydb_index() [all …]
|
/openbmc/libpldm/src/dsp/ |
H A D | platform.c | 191 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_set_state_effecter_states_resp() local 192 if (rc != PLDM_SUCCESS) { in encode_set_state_effecter_states_resp() 193 return rc; in encode_set_state_effecter_states_resp() 223 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_set_state_effecter_states_req() local 224 if (rc != PLDM_SUCCESS) { in encode_set_state_effecter_states_req() 225 return rc; in encode_set_state_effecter_states_req() 270 int rc; in decode_set_state_effecter_states_req() local 282 rc = pldm_msgbuf_init_errno(buf, in decode_set_state_effecter_states_req() 285 if (rc) { in decode_set_state_effecter_states_req() 286 return pldm_xlate_errno(rc); in decode_set_state_effecter_states_req() [all …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | q54sj108a2.c | 76 int rc; in q54sj108a2_debugfs_read() local 86 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_OPERATION); in q54sj108a2_debugfs_read() 87 if (rc < 0) in q54sj108a2_debugfs_read() 88 return rc; in q54sj108a2_debugfs_read() 90 rc = snprintf(data, 3, "%02x", rc); in q54sj108a2_debugfs_read() 93 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_WRITE_PROTECT); in q54sj108a2_debugfs_read() 94 if (rc < 0) in q54sj108a2_debugfs_read() 95 return rc; in q54sj108a2_debugfs_read() 97 rc = snprintf(data, 3, "%02x", rc); in q54sj108a2_debugfs_read() 100 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_VOUT_OV_FAULT_RESPONSE); in q54sj108a2_debugfs_read() [all …]
|
H A D | ibm-cffps.c | 81 int rc; in ibm_cffps_debugfs_read_input_history() local 99 rc = pmbus_lock_interruptible(psu->client); in ibm_cffps_debugfs_read_input_history() 100 if (rc) in ibm_cffps_debugfs_read_input_history() 101 return rc; in ibm_cffps_debugfs_read_input_history() 103 rc = pmbus_set_page(psu->client, 0, 0xff); in ibm_cffps_debugfs_read_input_history() 104 if (rc) { in ibm_cffps_debugfs_read_input_history() 106 return rc; in ibm_cffps_debugfs_read_input_history() 113 rc = i2c_transfer(psu->client->adapter, msg, 2); in ibm_cffps_debugfs_read_input_history() 115 if (rc < 0) in ibm_cffps_debugfs_read_input_history() 116 return rc; in ibm_cffps_debugfs_read_input_history() [all …]
|
/openbmc/u-boot/drivers/power/ |
H A D | axp209.c | 34 int rc; in axp_set_dcdc2() local 41 rc = pmic_bus_setbits(AXP209_OUTPUT_CTRL, AXP209_OUTPUT_CTRL_DCDC2); in axp_set_dcdc2() 42 if (rc) in axp_set_dcdc2() 43 return rc; in axp_set_dcdc2() 48 while ((rc = pmic_bus_read(AXP209_DCDC2_VOLTAGE, ¤t)) == 0 && in axp_set_dcdc2() 55 rc = pmic_bus_write(AXP209_DCDC2_VOLTAGE, current); in axp_set_dcdc2() 56 if (rc) in axp_set_dcdc2() 60 return rc; in axp_set_dcdc2() 66 int rc; in axp_set_dcdc3() local 72 rc = pmic_bus_write(AXP209_DCDC3_VOLTAGE, cfg); in axp_set_dcdc3() [all …]
|
/openbmc/linux/drivers/video/backlight/ |
H A 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 …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A 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() 224 "%s: writereg error (rc == %i, reg == 0x%02x, data == 0x%02x)\n", 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() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A 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 …]
|
/openbmc/linux/net/nfc/ |
H A D | digital_technology.c | 136 u8 rc; member 220 int rc; in digital_in_recv_ats() local 223 rc = PTR_ERR(resp); in digital_in_recv_ats() 229 rc = -EIO; in digital_in_recv_ats() 241 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443); in digital_in_recv_ats() 247 if (rc) in digital_in_recv_ats() 254 int rc; in digital_in_send_rats() local 264 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_ats, in digital_in_send_rats() 266 if (rc) in digital_in_send_rats() 269 return rc; in digital_in_send_rats() [all …]
|
/openbmc/phosphor-mboxd/ |
H A D | mboxctl.c | 79 int rc; in init_mboxctl_dbus() local 81 rc = sd_bus_default_system(&context->bus); in init_mboxctl_dbus() 82 if (rc < 0) { in init_mboxctl_dbus() 84 strerror(-rc)); in init_mboxctl_dbus() 87 return rc; in init_mboxctl_dbus() 98 int rc; in send_dbus_msg() local 101 rc = sd_bus_message_new_method_call(context->bus, &m, DBUS_NAME, in send_dbus_msg() 103 if (rc < 0) { in send_dbus_msg() 105 strerror(-rc)); in send_dbus_msg() 106 rc = -E_DBUS_INTERNAL; in send_dbus_msg() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/drx39xyj/ |
H A D | drxj.c | 612 /* RC setting */ 1376 pr_debug("drx3933 i2c operation addr=%x i2c=%p, wc=%x rc=%x\n", in drxbsp_i2c_write_read() 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 [all …]
|
/openbmc/linux/drivers/iio/pressure/ |
H A D | dps310.c | 63 #define DPS310_POLL_TIMEOUT_US(rc) ((rc) <= 0 ? 1000000 : 1000000 / (rc)) argument 113 int rc; in dps310_get_coefs() local 119 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 121 if (rc < 0) in dps310_get_coefs() 122 return rc; in dps310_get_coefs() 170 int rc; in dps310_temp_workaround() local 173 rc = regmap_read(data->regmap, 0x32, ®); in dps310_temp_workaround() 174 if (rc) in dps310_temp_workaround() 175 return rc; in dps310_temp_workaround() 184 rc = regmap_write(data->regmap, 0x0e, 0xA5); in dps310_temp_workaround() [all …]
|
/openbmc/linux/drivers/media/tuners/ |
H A D | r820t.c | 375 int rc, size, pos = 0; in r820t_write() local 390 rc = tuner_i2c_xfer_send(&priv->i2c_props, priv->buf, size + 1); in r820t_write() 391 if (rc != size + 1) { in r820t_write() 393 __func__, rc, reg, size, size, &priv->buf[1]); in r820t_write() 394 if (rc < 0) in r820t_write() 395 return rc; in r820t_write() 430 int rc = r820t_read_cache_reg(priv, reg); in r820t_write_reg_mask() local 432 if (rc < 0) in r820t_write_reg_mask() 433 return rc; in r820t_write_reg_mask() 435 tmp = (rc & ~bit_mask) | (tmp & bit_mask); in r820t_write_reg_mask() [all …]
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/ |
H A D | pldm_utils.cpp | 42 auto rc = pldm_instance_db_init_default(&pldmInstanceIdDb); in initPLDMInstanceIdDb() local 43 if (rc) in initPLDMInstanceIdDb() 45 lg2::error("Error calling pldm_instance_db_init_default, rc = {RC}", in initPLDMInstanceIdDb() 46 "RC", rc); in initPLDMInstanceIdDb() 55 auto rc = pldm_instance_db_destroy(pldmInstanceIdDb); in destroyPLDMInstanceIdDb() local 56 if (rc) in destroyPLDMInstanceIdDb() 58 lg2::error("pldm_instance_db_destroy failed rc = {RC}", "RC", rc); in destroyPLDMInstanceIdDb() 66 auto rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &instanceID); in getPLDMInstanceID() local 67 if (rc == -EAGAIN) in getPLDMInstanceID() 70 rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &instanceID); in getPLDMInstanceID() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-pm8xxx.c | 75 int rc; in pm8xxx_rtc_read_nvmem_offset() local 79 rc = PTR_ERR(buf); in pm8xxx_rtc_read_nvmem_offset() 80 dev_dbg(rtc_dd->dev, "failed to read nvmem offset: %d\n", rc); in pm8xxx_rtc_read_nvmem_offset() 81 return rc; in pm8xxx_rtc_read_nvmem_offset() 100 int rc; in pm8xxx_rtc_write_nvmem_offset() local 104 rc = nvmem_cell_write(rtc_dd->nvmem_cell, buf, sizeof(buf)); in pm8xxx_rtc_write_nvmem_offset() 105 if (rc < 0) { in pm8xxx_rtc_write_nvmem_offset() 106 dev_dbg(rtc_dd->dev, "failed to write nvmem offset: %d\n", rc); in pm8xxx_rtc_write_nvmem_offset() 107 return rc; in pm8xxx_rtc_write_nvmem_offset() 126 int rc; in pm8xxx_rtc_read_raw() local [all …]
|
/openbmc/linux/fs/smb/client/ |
H A D | dfs.c | 24 int rc; in dfs_parse_target_referral() local 45 rc = smb3_parse_devname(path, ctx); in dfs_parse_target_referral() 46 if (rc) in dfs_parse_target_referral() 49 rc = dns_resolve_server_name_to_ip(path, (struct sockaddr *)&ctx->dstaddr, NULL); in dfs_parse_target_referral() 53 return rc; in dfs_parse_target_referral() 59 int rc; in get_session() local 62 rc = cifs_mount_get_session(mnt_ctx); in get_session() 65 return rc; in get_session() 89 int rc; in parse_dfs_target() local 92 rc = ref_walk_get_tgt(rw, tgt); in parse_dfs_target() [all …]
|
/openbmc/linux/lib/ |
H A D | decompress_unlzma.c | 67 struct rc { struct 91 static void INIT rc_read(struct rc *rc) in rc_read() argument 93 rc->buffer_size = rc->fill((char *)rc->buffer, LZMA_IOBUF_SIZE); in rc_read() 94 if (rc->buffer_size <= 0) in rc_read() 95 rc->error("unexpected EOF"); in rc_read() 96 rc->ptr = rc->buffer; in rc_read() 97 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_read() 101 static inline void INIT rc_init(struct rc *rc, in rc_init() argument 106 rc->fill = fill; in rc_init() 108 rc->fill = nofill; in rc_init() [all …]
|
/openbmc/linux/drivers/fsi/ |
H A D | fsi-scom.c | 80 int rc; in __put_scom() local 83 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA0_REG, &data, in __put_scom() 85 if (rc) in __put_scom() 86 return rc; in __put_scom() 89 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA1_REG, &data, in __put_scom() 91 if (rc) in __put_scom() 92 return rc; in __put_scom() 95 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_CMD_REG, &data, in __put_scom() 97 if (rc) in __put_scom() 98 return rc; in __put_scom() [all …]
|
/openbmc/linux/drivers/media/usb/stk1160/ |
H A 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 …]
|