/linux/drivers/gpu/drm/bridge/analogix/ |
H A D | analogix-anx78xx.c | 117 int err; in anx78xx_set_hpd() local 119 err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_RX_P0], in anx78xx_set_hpd() 121 if (err) in anx78xx_set_hpd() 122 return err; in anx78xx_set_hpd() 124 err = anx78xx_set_bits(anx78xx->map[I2C_IDX_TX_P2], SP_VID_CTRL3_REG, in anx78xx_set_hpd() 126 if (err) in anx78xx_set_hpd() 127 return err; in anx78xx_set_hpd() 134 int err; in anx78xx_clear_hpd() local 136 err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_TX_P2], SP_VID_CTRL3_REG, in anx78xx_clear_hpd() 138 if (err) in anx78xx_clear_hpd() [all …]
|
H A D | analogix-anx6345.c | 100 int err; in anx6345_dp_link_training() local 102 err = anx6345_clear_bits(anx6345->map[I2C_IDX_TXCOM], in anx6345_dp_link_training() 105 if (err) in anx6345_dp_link_training() 106 return err; in anx6345_dp_link_training() 108 err = drm_dp_dpcd_readb(&anx6345->aux, DP_MAX_LINK_RATE, &dp_bw); in anx6345_dp_link_training() 109 if (err < 0) in anx6345_dp_link_training() 110 return err; in anx6345_dp_link_training() 122 err = anx6345_set_bits(anx6345->map[I2C_IDX_TXCOM], SP_VID_CTRL1_REG, in anx6345_dp_link_training() 124 if (err) in anx6345_dp_link_training() 125 return err; in anx6345_dp_link_training() [all …]
|
/linux/net/sunrpc/auth_gss/ |
H A D | gss_rpc_xdr.c | 98 int err; in gssx_enc_option() local 100 err = gssx_enc_buffer(xdr, &opt->option); in gssx_enc_option() 101 if (err) in gssx_enc_option() 102 return err; in gssx_enc_option() 103 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option() 104 return err; in gssx_enc_option() 110 int err; in gssx_dec_option() local 112 err = gssx_dec_buffer(xdr, &opt->option); in gssx_dec_option() 113 if (err) in gssx_dec_option() 114 return err; in gssx_dec_option() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | pinning.c | 13 int err; in get_map_id() local 21 err = bpf_map_get_info_by_fd(bpf_map__fd(map), in get_map_id() 23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id() 40 int err, map_fd; in test_pinning() local 47 err = libbpf_get_error(obj); in test_pinning() 48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning() 55 err = libbpf_get_error(obj); in test_pinning() 56 if (CHECK(err, "default open", "err %d errno %d\n", err, errno)) { in test_pinning() 61 err = bpf_object__load(obj); in test_pinning() 62 if (CHECK(err, "default load", "err %d errno %d\n", err, errno)) in test_pinning() [all …]
|
H A D | linked_list.c | 279 int id, err; in list_and_rb_node_same_struct() local 298 err = btf__add_field(btf, "a", LIST_NODE, 0, 0); in list_and_rb_node_same_struct() 299 if (!ASSERT_OK(err, "btf__add_field bar::a")) in list_and_rb_node_same_struct() 301 err = btf__add_field(btf, "c", bpf_rb_node_btf_id, 192, 0); in list_and_rb_node_same_struct() 302 if (!ASSERT_OK(err, "btf__add_field bar::c")) in list_and_rb_node_same_struct() 305 err = btf__add_field(btf, "ref", bpf_refcount_btf_id, 448, 0); in list_and_rb_node_same_struct() 306 if (!ASSERT_OK(err, "btf__add_field bar::ref")) in list_and_rb_node_same_struct() 313 err = btf__add_field(btf, "a", LIST_HEAD, 0, 0); in list_and_rb_node_same_struct() 314 if (!ASSERT_OK(err, "btf__add_field foo::a")) in list_and_rb_node_same_struct() 316 err = btf__add_field(btf, "b", SPIN_LOCK, 128, 0); in list_and_rb_node_same_struct() [all …]
|
H A D | test_bpffs.c | 37 int err, map; in fn() local 39 err = unshare(CLONE_NEWNS); in fn() 40 if (!ASSERT_OK(err, "unshare")) in fn() 43 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn() 44 if (!ASSERT_OK(err, "mount /")) in fn() 47 err = mkdir(TDIR, 0777); in fn() 51 if ((err && errno != EEXIST) && !ASSERT_OK(err, "mkdir " TDIR)) in fn() 54 err = mount("none", TDIR, "tmpfs", 0, NULL); in fn() 55 if (!ASSERT_OK(err, "mount tmpfs")) in fn() 58 err = mkdir(TDIR "/fs1", 0777); in fn() [all …]
|
/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | global1.c | 83 int err; in mv88e6250_g1_eeprom_reload() local 85 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &val); in mv88e6250_g1_eeprom_reload() 86 if (err) in mv88e6250_g1_eeprom_reload() 87 return err; in mv88e6250_g1_eeprom_reload() 91 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_CTL1, val); in mv88e6250_g1_eeprom_reload() 92 if (err) in mv88e6250_g1_eeprom_reload() 93 return err; in mv88e6250_g1_eeprom_reload() 102 int err; in mv88e6xxx_g1_is_eeprom_done() local 104 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STS, &val); in mv88e6xxx_g1_is_eeprom_done() 105 if (err < 0) { in mv88e6xxx_g1_is_eeprom_done() [all …]
|
H A D | global1_atu.c | 30 int err; in mv88e6xxx_g1_atu_set_learn2all() local 32 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_learn2all() 33 if (err) in mv88e6xxx_g1_atu_set_learn2all() 34 return err; in mv88e6xxx_g1_atu_set_learn2all() 52 int err; in mv88e6xxx_g1_atu_set_age_time() local 60 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_age_time() 61 if (err) in mv88e6xxx_g1_atu_set_age_time() 62 return err; in mv88e6xxx_g1_atu_set_age_time() 68 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_ATU_CTL, val); in mv88e6xxx_g1_atu_set_age_time() 69 if (err) in mv88e6xxx_g1_atu_set_age_time() [all …]
|
/linux/tools/testing/selftests/damon/ |
H A D | _damon_sysfs.py | 59 err = write_file( 61 if err is not None: 62 return err 63 err = write_file( 65 if err is not None: 66 return err 67 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'), 69 if err is not None: 70 return err 71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'), [all …]
|
/linux/sound/firewire/bebob/ |
H A D | bebob_command.c | 14 int err; in avc_audio_set_selector() local 30 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector() 33 if (err < 0) in avc_audio_set_selector() 35 else if (err < 9) in avc_audio_set_selector() 36 err = -EIO; in avc_audio_set_selector() 38 err = -ENOSYS; in avc_audio_set_selector() 40 err = -EINVAL; in avc_audio_set_selector() 42 err = 0; in avc_audio_set_selector() 45 return err; in avc_audio_set_selector() 52 int err; in avc_audio_get_selector() local [all …]
|
H A D | bebob_stream.c | 66 int err; in snd_bebob_stream_get_rate() local 70 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate() 72 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate() 73 if (err < 0) in snd_bebob_stream_get_rate() 78 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate() 80 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate() 81 if (err < 0) in snd_bebob_stream_get_rate() 89 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate() 92 return err; in snd_bebob_stream_get_rate() 98 int err; in snd_bebob_stream_set_rate() local [all …]
|
/linux/drivers/ptp/ |
H A D | ptp_fc3.c | 77 int err; in idtfc3_set_lpf_mode() local 85 err = regmap_bulk_write(idtfc3->regmap, LPF_MODE_CNFG, &mode, sizeof(mode)); in idtfc3_set_lpf_mode() 86 if (err) in idtfc3_set_lpf_mode() 87 return err; in idtfc3_set_lpf_mode() 97 int err; in idtfc3_enable_lpf() local 99 err = regmap_bulk_read(idtfc3->regmap, LPF_CTRL, &val, sizeof(val)); in idtfc3_enable_lpf() 100 if (err) in idtfc3_enable_lpf() 101 return err; in idtfc3_enable_lpf() 113 int err; in idtfc3_get_time_ref_freq() local 118 err = regmap_bulk_read(idtfc3->regmap, TIME_CLOCK_MEAS_DIV_CNFG, buf, sizeof(buf)); in idtfc3_get_time_ref_freq() [all …]
|
/linux/drivers/spi/ |
H A D | spi-airoha-snfi.c | 226 int err; in airoha_snand_set_fifo_op() local 229 err = regmap_write(as_ctrl->regmap_ctrl, REG_SPI_CTRL_OPFIFO_WDATA, in airoha_snand_set_fifo_op() 232 if (err) in airoha_snand_set_fifo_op() 233 return err; in airoha_snand_set_fifo_op() 235 err = regmap_read_poll_timeout(as_ctrl->regmap_ctrl, in airoha_snand_set_fifo_op() 239 if (err) in airoha_snand_set_fifo_op() 240 return err; in airoha_snand_set_fifo_op() 242 err = regmap_write(as_ctrl->regmap_ctrl, REG_SPI_CTRL_OPFIFO_WR, in airoha_snand_set_fifo_op() 244 if (err) in airoha_snand_set_fifo_op() 245 return err; in airoha_snand_set_fifo_op() [all …]
|
/linux/drivers/media/radio/ |
H A D | saa7706h.c | 129 int err = i2c_master_send(client, data, len); in saa7706h_i2c_send() local 130 if (err == len) in saa7706h_i2c_send() 132 return err > 0 ? -EIO : err; in saa7706h_i2c_send() 138 int err = i2c_transfer(client->adapter, msgs, num); in saa7706h_i2c_transfer() local 139 if (err == num) in saa7706h_i2c_transfer() 141 return err > 0 ? -EIO : err; in saa7706h_i2c_transfer() 160 int *err) in saa7706h_set_reg24_err() argument 162 return *err ? *err : saa7706h_set_reg24(sd, reg, val); in saa7706h_set_reg24_err() 180 int *err) in saa7706h_set_reg16_err() argument 182 return *err ? *err : saa7706h_set_reg16(sd, reg, val); in saa7706h_set_reg16_err() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ptp_hw.c | 246 int err; in ice_read_cgu_reg_e82x() local 248 err = ice_sbq_rw_reg(hw, &cgu_msg, ICE_AQ_FLAG_RD); in ice_read_cgu_reg_e82x() 249 if (err) { in ice_read_cgu_reg_e82x() 251 addr, err); in ice_read_cgu_reg_e82x() 252 return err; in ice_read_cgu_reg_e82x() 279 int err; in ice_write_cgu_reg_e82x() local 281 err = ice_sbq_rw_reg(hw, &cgu_msg, ICE_AQ_FLAG_RD); in ice_write_cgu_reg_e82x() 282 if (err) { in ice_write_cgu_reg_e82x() 284 addr, err); in ice_write_cgu_reg_e82x() 285 return err; in ice_write_cgu_reg_e82x() [all …]
|
/linux/drivers/dma-buf/ |
H A D | st-dma-fence-chain.c | 80 int err = 0; in sanitycheck() local 90 err = -ENOMEM; in sanitycheck() 97 return err; in sanitycheck() 117 int err = 0; in fence_chains_init() local 127 err = -ENOMEM; in fence_chains_init() 135 err = -ENOMEM; in fence_chains_init() 143 err = -ENOMEM; in fence_chains_init() 163 return err; in fence_chains_init() 185 int err; in find_seqno() local 188 err = fence_chains_init(&fc, 64, seqno_inc); in find_seqno() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | ael1002.c | 86 int err; in set_phy_regs() local 88 for (err = 0; rv->mmd_addr && !err; rv++) { in set_phy_regs() 90 err = t3_mdio_write(phy, rv->mmd_addr, rv->reg_addr, in set_phy_regs() 93 err = t3_mdio_change_bits(phy, rv->mmd_addr, in set_phy_regs() 97 return err; in set_phy_regs() 115 int i, err; in ael_i2c_rd() local 118 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL_I2C_CTRL, in ael_i2c_rd() 120 if (err) in ael_i2c_rd() 121 return err; in ael_i2c_rd() 125 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_STAT, &stat); in ael_i2c_rd() [all …]
|
/linux/drivers/mfd/ |
H A D | twl4030-power.c | 189 int err; in twl4030_write_script_byte() local 191 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_MEMORY_ADDRESS); in twl4030_write_script_byte() 192 if (err) in twl4030_write_script_byte() 194 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, byte, R_MEMORY_DATA); in twl4030_write_script_byte() 196 return err; in twl4030_write_script_byte() 202 int err; in twl4030_write_script_ins() local 205 err = twl4030_write_script_byte(address++, pmb_message >> 8); in twl4030_write_script_ins() 206 if (err) in twl4030_write_script_ins() 208 err = twl4030_write_script_byte(address++, pmb_message & 0xff); in twl4030_write_script_ins() 209 if (err) in twl4030_write_script_ins() [all …]
|
/linux/drivers/media/usb/gspca/m5602/ |
H A D | m5602_po1030.c | 158 int err; in po1030_probe() local 177 err = m5602_write_sensor(sd, preinit_po1030[i][1], in po1030_probe() 180 err = m5602_write_bridge(sd, preinit_po1030[i][1], in po1030_probe() 182 if (err < 0) in po1030_probe() 183 return err; in po1030_probe() 204 int i, err = 0; in po1030_init() local 207 for (i = 0; i < ARRAY_SIZE(init_po1030) && !err; i++) { in po1030_init() 212 err = m5602_write_bridge(sd, in po1030_init() 219 err = m5602_write_sensor(sd, in po1030_init() 228 if (err < 0) in po1030_init() [all …]
|
/linux/drivers/w1/masters/ |
H A D | ds2490.c | 172 int err; in ds_send_control_cmd() local 174 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), in ds_send_control_cmd() 176 if (err < 0) { in ds_send_control_cmd() 179 value, index, err); in ds_send_control_cmd() 180 return err; in ds_send_control_cmd() 183 return err; in ds_send_control_cmd() 188 int err; in ds_send_control_mode() local 190 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), in ds_send_control_mode() 192 if (err < 0) { in ds_send_control_mode() 195 value, index, err); in ds_send_control_mode() [all …]
|
/linux/drivers/gpu/drm/bridge/ |
H A D | parade-ps8622.c | 87 int err = 0; in ps8622_send_config() local 90 err = ps8622_set(cl, 0x02, 0xa1, 0x01); in ps8622_send_config() 91 if (err) in ps8622_send_config() 95 err = ps8622_set(cl, 0x04, 0x14, 0x01); in ps8622_send_config() 96 if (err) in ps8622_send_config() 100 err = ps8622_set(cl, 0x04, 0xe3, 0x20); in ps8622_send_config() 101 if (err) in ps8622_send_config() 105 err = ps8622_set(cl, 0x04, 0xe2, 0x80); in ps8622_send_config() 106 if (err) in ps8622_send_config() 113 err = ps8622_set(cl, 0x04, 0x8a, 0x0c); in ps8622_send_config() [all …]
|
/linux/sound/firewire/oxfw/ |
H A D | oxfw-stream.c | 43 int err; in set_rate() local 45 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 47 if (err < 0) in set_rate() 51 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 54 return err; in set_rate() 64 int i, err; in set_stream_format() local 76 err = snd_oxfw_stream_parse_format(formats[i], &formation); in set_stream_format() 77 if (err < 0) in set_stream_format() 78 return err; in set_stream_format() 93 err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); in set_stream_format() [all …]
|
/linux/drivers/firmware/ |
H A D | arm_sdei.c | 112 sdei_cross_call_return(struct sdei_crosscall_args *arg, int err) in sdei_cross_call_return() argument 114 if (err && (atomic_inc_return(&arg->errors) == 1)) in sdei_cross_call_return() 115 arg->first_error = err; in sdei_cross_call_return() 141 int err; in invoke_sdei_fn() local 147 err = sdei_to_linux_errno(res.a0); in invoke_sdei_fn() 155 err = -EIO; in invoke_sdei_fn() 162 return err; in invoke_sdei_fn() 201 int err; in sdei_event_create() local 210 err = -ENOMEM; in sdei_event_create() 217 err = sdei_api_event_get_info(event_num, SDEI_EVENT_INFO_EV_PRIORITY, in sdei_event_create() [all …]
|
/linux/sound/firewire/digi00x/ |
H A D | digi00x-stream.c | 34 int err; in snd_dg00x_stream_get_local_rate() local 36 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, in snd_dg00x_stream_get_local_rate() 39 if (err < 0) in snd_dg00x_stream_get_local_rate() 40 return err; in snd_dg00x_stream_get_local_rate() 46 err = -EIO; in snd_dg00x_stream_get_local_rate() 48 return err; in snd_dg00x_stream_get_local_rate() 73 int err; in snd_dg00x_stream_get_clock() local 75 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, in snd_dg00x_stream_get_clock() 78 if (err < 0) in snd_dg00x_stream_get_clock() 79 return err; in snd_dg00x_stream_get_clock() [all …]
|
/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 196 int err; in mtk_hw_set_value() local 198 err = mtk_hw_pin_field_get(hw, desc, field, &pf); in mtk_hw_set_value() 199 if (err) in mtk_hw_set_value() 200 return err; in mtk_hw_set_value() 219 int err; in mtk_hw_get_value() local 221 err = mtk_hw_pin_field_get(hw, desc, field, &pf); in mtk_hw_get_value() 222 if (err) in mtk_hw_get_value() 223 return err; in mtk_hw_get_value() 307 int value, err; in mtk_xt_get_gpio_state() local 309 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state() [all …]
|