Home
last modified time | relevance | path

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

12345678910>>...290

/linux-6.12.1/drivers/net/dsa/mv88e6xxx/
Dglobal1_vtu.c24 int err; in mv88e6xxx_g1_vtu_fid_read() local
26 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_FID, &val); in mv88e6xxx_g1_vtu_fid_read()
27 if (err) in mv88e6xxx_g1_vtu_fid_read()
28 return err; in mv88e6xxx_g1_vtu_fid_read()
51 int err; in mv88e6xxx_g1_vtu_sid_read() local
53 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_SID, &val); in mv88e6xxx_g1_vtu_sid_read()
54 if (err) in mv88e6xxx_g1_vtu_sid_read()
55 return err; in mv88e6xxx_g1_vtu_sid_read()
80 int err; in mv88e6xxx_g1_vtu_op() local
82 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_VTU_OP, in mv88e6xxx_g1_vtu_op()
[all …]
Dglobal1.c83 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 …]
Dglobal1_atu.c30 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 …]
Dport.c54 int err; in mv88e6185_port_set_pause() local
56 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_STS, &reg); in mv88e6185_port_set_pause()
57 if (err) in mv88e6185_port_set_pause()
58 return err; in mv88e6185_port_set_pause()
81 int err; in mv88e6xxx_port_set_rgmii_delay() local
83 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_MAC_CTL, &reg); in mv88e6xxx_port_set_rgmii_delay()
84 if (err) in mv88e6xxx_port_set_rgmii_delay()
85 return err; in mv88e6xxx_port_set_rgmii_delay()
107 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_MAC_CTL, reg); in mv88e6xxx_port_set_rgmii_delay()
108 if (err) in mv88e6xxx_port_set_rgmii_delay()
[all …]
/linux-6.12.1/drivers/gpu/drm/bridge/analogix/
Danalogix-anx78xx.c117 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 …]
Danalogix-anx6345.c100 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-6.12.1/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c98 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-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dpinning.c13 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 …]
Dlinked_list.c279 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 …]
Dtest_bpffs.c37 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-6.12.1/drivers/spi/
Dspi-airoha-snfi.c233 int err; in airoha_snand_set_fifo_op() local
236 err = regmap_write(as_ctrl->regmap_ctrl, REG_SPI_CTRL_OPFIFO_WDATA, 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_read_poll_timeout(as_ctrl->regmap_ctrl, in airoha_snand_set_fifo_op()
246 if (err) in airoha_snand_set_fifo_op()
247 return err; in airoha_snand_set_fifo_op()
249 err = regmap_write(as_ctrl->regmap_ctrl, REG_SPI_CTRL_OPFIFO_WR, in airoha_snand_set_fifo_op()
251 if (err) in airoha_snand_set_fifo_op()
252 return err; in airoha_snand_set_fifo_op()
[all …]
/linux-6.12.1/sound/firewire/bebob/
Dbebob_command.c14 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 …]
Dbebob_stream.c66 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-6.12.1/tools/testing/selftests/damon/
D_damon_sysfs.py59 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-6.12.1/drivers/ptp/
Dptp_fc3.c77 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-6.12.1/drivers/media/radio/
Dsaa7706h.c129 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-6.12.1/drivers/dma-buf/
Dst-dma-fence-chain.c80 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-6.12.1/drivers/net/ethernet/intel/ice/
Dice_ptp_hw.c246 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-6.12.1/drivers/net/ethernet/chelsio/cxgb3/
Dael1002.c86 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-6.12.1/drivers/mtd/tests/
Dpagetest.c53 int err = 0, i; in verify_eraseblock() local
68 err = mtdtest_read(mtd, addr0, bufsize, twopages); in verify_eraseblock()
69 if (err) in verify_eraseblock()
70 return err; in verify_eraseblock()
71 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages); in verify_eraseblock()
72 if (err) in verify_eraseblock()
73 return err; in verify_eraseblock()
75 err = mtdtest_read(mtd, addr, bufsize, twopages); in verify_eraseblock()
76 if (err) in verify_eraseblock()
89 err = mtdtest_read(mtd, addr0, bufsize, twopages); in verify_eraseblock()
[all …]
Dsubpagetest.c46 int err = 0; in write_eraseblock() local
50 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
51 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
58 return err ? err : -1; in write_eraseblock()
64 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock()
65 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
72 return err ? err : -1; in write_eraseblock()
75 return err; in write_eraseblock()
81 int err = 0, k; in write_eraseblock2() local
88 err = mtd_write(mtd, addr, subpgsize * k, &written, writebuf); in write_eraseblock2()
[all …]
/linux-6.12.1/drivers/mfd/
Dtwl4030-power.c189 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-6.12.1/drivers/media/usb/gspca/m5602/
Dm5602_po1030.c158 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-6.12.1/drivers/w1/masters/
Dds2490.c172 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-6.12.1/drivers/gpu/drm/bridge/
Dparade-ps8622.c87 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 …]

12345678910>>...290