Home
last modified time | relevance | path

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

12345678910>>...184

/linux-6.1.9/drivers/net/dsa/mv88e6xxx/
Dglobal1_vtu.c23 int err; in mv88e6xxx_g1_vtu_fid_read() local
25 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_FID, &val); in mv88e6xxx_g1_vtu_fid_read()
26 if (err) in mv88e6xxx_g1_vtu_fid_read()
27 return err; in mv88e6xxx_g1_vtu_fid_read()
50 int err; in mv88e6xxx_g1_vtu_sid_read() local
52 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_SID, &val); in mv88e6xxx_g1_vtu_sid_read()
53 if (err) in mv88e6xxx_g1_vtu_sid_read()
54 return err; in mv88e6xxx_g1_vtu_sid_read()
79 int err; in mv88e6xxx_g1_vtu_op() local
81 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_VTU_OP, in mv88e6xxx_g1_vtu_op()
[all …]
Dglobal1.c82 int err; in mv88e6xxx_g1_wait_eeprom_done() local
88 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STS, &val); in mv88e6xxx_g1_wait_eeprom_done()
89 if (err) { in mv88e6xxx_g1_wait_eeprom_done()
116 int err; in mv88e6xxx_g1_set_switch_mac() local
119 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_01, reg); in mv88e6xxx_g1_set_switch_mac()
120 if (err) in mv88e6xxx_g1_set_switch_mac()
121 return err; in mv88e6xxx_g1_set_switch_mac()
124 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_23, reg); in mv88e6xxx_g1_set_switch_mac()
125 if (err) in mv88e6xxx_g1_set_switch_mac()
126 return err; in mv88e6xxx_g1_set_switch_mac()
[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.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dreporter_rx.c16 int err; in mlx5e_query_rq_state() local
22 err = mlx5_core_query_rq(dev, rqn, out); in mlx5e_query_rq_state()
23 if (err) in mlx5e_query_rq_state()
31 return err; in mlx5e_query_rq_state()
71 int err; in mlx5e_rx_reporter_err_icosq_cqe_recover() local
83 err = mlx5_core_query_sq_state(mdev, icosq->sqn, &state); in mlx5e_rx_reporter_err_icosq_cqe_recover()
84 if (err) { in mlx5e_rx_reporter_err_icosq_cqe_recover()
86 icosq->sqn, err); in mlx5e_rx_reporter_err_icosq_cqe_recover()
97 err = mlx5e_wait_for_icosq_flush(icosq); in mlx5e_rx_reporter_err_icosq_cqe_recover()
98 if (err) in mlx5e_rx_reporter_err_icosq_cqe_recover()
[all …]
Dreporter_tx.c46 int err; in mlx5e_tx_reporter_err_cqe_recover() local
55 err = mlx5_core_query_sq_state(mdev, sq->sqn, &state); in mlx5e_tx_reporter_err_cqe_recover()
56 if (err) { in mlx5e_tx_reporter_err_cqe_recover()
58 sq->sqn, err); in mlx5e_tx_reporter_err_cqe_recover()
67 err = mlx5e_wait_for_sq_flush(sq); in mlx5e_tx_reporter_err_cqe_recover()
68 if (err) in mlx5e_tx_reporter_err_cqe_recover()
76 err = mlx5e_health_sq_to_ready(mdev, dev, sq->sqn); in mlx5e_tx_reporter_err_cqe_recover()
77 if (err) in mlx5e_tx_reporter_err_cqe_recover()
88 return err; in mlx5e_tx_reporter_err_cqe_recover()
102 int err; in mlx5e_tx_reporter_timeout_recover() local
[all …]
Dhealth.c10 int err; in mlx5e_health_fmsg_named_obj_nest_start() local
12 err = devlink_fmsg_pair_nest_start(fmsg, name); in mlx5e_health_fmsg_named_obj_nest_start()
13 if (err) in mlx5e_health_fmsg_named_obj_nest_start()
14 return err; in mlx5e_health_fmsg_named_obj_nest_start()
16 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5e_health_fmsg_named_obj_nest_start()
17 if (err) in mlx5e_health_fmsg_named_obj_nest_start()
18 return err; in mlx5e_health_fmsg_named_obj_nest_start()
25 int err; in mlx5e_health_fmsg_named_obj_nest_end() local
27 err = devlink_fmsg_obj_nest_end(fmsg); in mlx5e_health_fmsg_named_obj_nest_end()
28 if (err) in mlx5e_health_fmsg_named_obj_nest_end()
[all …]
/linux-6.1.9/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.c101 int err; in anx6345_dp_link_training() local
103 err = anx6345_clear_bits(anx6345->map[I2C_IDX_TXCOM], in anx6345_dp_link_training()
106 if (err) in anx6345_dp_link_training()
107 return err; in anx6345_dp_link_training()
109 err = drm_dp_dpcd_readb(&anx6345->aux, DP_MAX_LINK_RATE, &dp_bw); in anx6345_dp_link_training()
110 if (err < 0) in anx6345_dp_link_training()
111 return err; in anx6345_dp_link_training()
123 err = anx6345_set_bits(anx6345->map[I2C_IDX_TXCOM], SP_VID_CTRL1_REG, in anx6345_dp_link_training()
125 if (err) in anx6345_dp_link_training()
126 return err; in anx6345_dp_link_training()
[all …]
/linux-6.1.9/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.1.9/tools/testing/selftests/bpf/prog_tests/
Dpinning.c13 int err; in get_map_id() local
21 err = bpf_obj_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 …]
Dtest_bpffs.c36 int err, map; in fn() local
38 err = unshare(CLONE_NEWNS); in fn()
39 if (!ASSERT_OK(err, "unshare")) in fn()
42 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
43 if (!ASSERT_OK(err, "mount /")) in fn()
46 err = umount(TDIR); in fn()
47 if (!ASSERT_OK(err, "umount " TDIR)) in fn()
50 err = mount("none", TDIR, "tmpfs", 0, NULL); in fn()
51 if (!ASSERT_OK(err, "mount tmpfs")) in fn()
54 err = mkdir(TDIR "/fs1", 0777); in fn()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_ptp_hw.c300 int err; in ice_read_phy_reg_e822() local
305 err = ice_sbq_rw_reg(hw, &msg); in ice_read_phy_reg_e822()
306 if (err) { in ice_read_phy_reg_e822()
308 err); in ice_read_phy_reg_e822()
309 return err; in ice_read_phy_reg_e822()
334 int err; in ice_read_64b_phy_reg_e822() local
345 err = ice_read_phy_reg_e822(hw, port, low_addr, &low); in ice_read_64b_phy_reg_e822()
346 if (err) { in ice_read_64b_phy_reg_e822()
348 low_addr, err); in ice_read_64b_phy_reg_e822()
349 return err; in ice_read_64b_phy_reg_e822()
[all …]
/linux-6.1.9/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.1.9/drivers/net/netdevsim/
Dhealth.c66 int err; in nsim_dev_dummy_fmsg_put() local
69 err = devlink_fmsg_bool_pair_put(fmsg, "test_bool", true); in nsim_dev_dummy_fmsg_put()
70 if (err) in nsim_dev_dummy_fmsg_put()
71 return err; in nsim_dev_dummy_fmsg_put()
72 err = devlink_fmsg_u8_pair_put(fmsg, "test_u8", 1); in nsim_dev_dummy_fmsg_put()
73 if (err) in nsim_dev_dummy_fmsg_put()
74 return err; in nsim_dev_dummy_fmsg_put()
75 err = devlink_fmsg_u32_pair_put(fmsg, "test_u32", 3); in nsim_dev_dummy_fmsg_put()
76 if (err) in nsim_dev_dummy_fmsg_put()
77 return err; in nsim_dev_dummy_fmsg_put()
[all …]
/linux-6.1.9/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.1.9/drivers/dma-buf/
Dst-dma-fence-chain.c80 int err = 0; in sanitycheck() local
88 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.1.9/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.1.9/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.1.9/sound/firewire/oxfw/
Doxfw-stream.c43 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-6.1.9/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.1.9/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.1.9/drivers/gpu/drm/bridge/
Dparade-ps8622.c88 int err = 0; in ps8622_send_config() local
91 err = ps8622_set(cl, 0x02, 0xa1, 0x01); in ps8622_send_config()
92 if (err) in ps8622_send_config()
96 err = ps8622_set(cl, 0x04, 0x14, 0x01); in ps8622_send_config()
97 if (err) in ps8622_send_config()
101 err = ps8622_set(cl, 0x04, 0xe3, 0x20); in ps8622_send_config()
102 if (err) in ps8622_send_config()
106 err = ps8622_set(cl, 0x04, 0xe2, 0x80); in ps8622_send_config()
107 if (err) in ps8622_send_config()
114 err = ps8622_set(cl, 0x04, 0x8a, 0x0c); in ps8622_send_config()
[all …]
/linux-6.1.9/drivers/w1/masters/
Dds2490.c170 int err; in ds_send_control_cmd() local
172 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), in ds_send_control_cmd()
174 if (err < 0) { in ds_send_control_cmd()
177 value, index, err); in ds_send_control_cmd()
178 return err; in ds_send_control_cmd()
181 return err; in ds_send_control_cmd()
186 int err; in ds_send_control_mode() local
188 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), in ds_send_control_mode()
190 if (err < 0) { in ds_send_control_mode()
193 value, index, err); in ds_send_control_mode()
[all …]

12345678910>>...184