Home
last modified time | relevance | path

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

12345678910>>...169

/Linux-v5.4/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()
48 int err; in mv88e6xxx_g1_vtu_sid_read() local
50 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_SID, &val); in mv88e6xxx_g1_vtu_sid_read()
51 if (err) in mv88e6xxx_g1_vtu_sid_read()
52 return err; in mv88e6xxx_g1_vtu_sid_read()
78 int err; in mv88e6xxx_g1_vtu_op() local
80 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_VTU_OP, in mv88e6xxx_g1_vtu_op()
[all …]
Dglobal1.c85 int err; in mv88e6xxx_g1_set_switch_mac() local
88 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_01, reg); in mv88e6xxx_g1_set_switch_mac()
89 if (err) in mv88e6xxx_g1_set_switch_mac()
90 return err; in mv88e6xxx_g1_set_switch_mac()
93 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_23, reg); in mv88e6xxx_g1_set_switch_mac()
94 if (err) in mv88e6xxx_g1_set_switch_mac()
95 return err; in mv88e6xxx_g1_set_switch_mac()
98 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_MAC_45, reg); in mv88e6xxx_g1_set_switch_mac()
99 if (err) in mv88e6xxx_g1_set_switch_mac()
100 return err; in mv88e6xxx_g1_set_switch_mac()
[all …]
Dglobal1_atu.c28 int err; in mv88e6xxx_g1_atu_set_learn2all() local
30 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_learn2all()
31 if (err) in mv88e6xxx_g1_atu_set_learn2all()
32 return err; in mv88e6xxx_g1_atu_set_learn2all()
50 int err; in mv88e6xxx_g1_atu_set_age_time() local
58 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_age_time()
59 if (err) in mv88e6xxx_g1_atu_set_age_time()
60 return err; in mv88e6xxx_g1_atu_set_age_time()
66 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_ATU_CTL, val); in mv88e6xxx_g1_atu_set_age_time()
67 if (err) in mv88e6xxx_g1_atu_set_age_time()
[all …]
Dglobal2.c71 int err; in mv88e6xxx_g2_switch_mgmt_rsvd2cpu() local
73 err = mv88e6xxx_g2_read(chip, MV88E6XXX_G2_SWITCH_MGMT, &val); in mv88e6xxx_g2_switch_mgmt_rsvd2cpu()
74 if (err) in mv88e6xxx_g2_switch_mgmt_rsvd2cpu()
75 return err; in mv88e6xxx_g2_switch_mgmt_rsvd2cpu()
87 int err; in mv88e6185_g2_mgmt_rsvd2cpu() local
92 err = mv88e6xxx_g2_mgmt_enable_0x(chip, 0xffff); in mv88e6185_g2_mgmt_rsvd2cpu()
93 if (err) in mv88e6185_g2_mgmt_rsvd2cpu()
94 return err; in mv88e6185_g2_mgmt_rsvd2cpu()
101 int err; in mv88e6352_g2_mgmt_rsvd2cpu() local
106 err = mv88e6xxx_g2_mgmt_enable_2x(chip, 0xffff); in mv88e6352_g2_mgmt_rsvd2cpu()
[all …]
/Linux-v5.4/drivers/gpu/drm/bridge/
Danalogix-anx78xx.c105 int err; in anx78xx_aux_op_finished() local
107 err = regmap_read(anx78xx->map[I2C_IDX_TX_P0], SP_DP_AUX_CH_CTRL2_REG, in anx78xx_aux_op_finished()
109 if (err < 0) in anx78xx_aux_op_finished()
119 int err; in anx78xx_aux_wait() local
137 err = regmap_read(anx78xx->map[I2C_IDX_TX_P0], SP_AUX_CH_STATUS_REG, in anx78xx_aux_wait()
139 if (err < 0) { in anx78xx_aux_wait()
140 DRM_ERROR("Failed to read from AUX channel: %d\n", err); in anx78xx_aux_wait()
141 return err; in anx78xx_aux_wait()
155 int err; in anx78xx_aux_address() local
157 err = regmap_write(anx78xx->map[I2C_IDX_TX_P0], SP_AUX_ADDR_7_0_REG, in anx78xx_aux_address()
[all …]
/Linux-v5.4/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-v5.4/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.c67 int err; in snd_bebob_stream_get_rate() local
71 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate()
73 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate()
74 if (err < 0) in snd_bebob_stream_get_rate()
79 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate()
81 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate()
82 if (err < 0) in snd_bebob_stream_get_rate()
90 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate()
93 return err; in snd_bebob_stream_get_rate()
99 int err; in snd_bebob_stream_set_rate() local
[all …]
/Linux-v5.4/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-v5.4/lib/
Dtest_overflow.c227 err = 1; \
233 err = 1; \
240 int err = 0; \
248 return err; \
252 int err = 0; \
258 err |= do_test_ ## t(&t ## _tests[i]); \
259 return err; \
275 int err = 0; in test_overflow_calculation() local
277 err |= test_u8_overflow(); in test_overflow_calculation()
278 err |= test_s8_overflow(); in test_overflow_calculation()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhealth.c9 int err; in mlx5e_reporter_named_obj_nest_start() local
11 err = devlink_fmsg_pair_nest_start(fmsg, name); in mlx5e_reporter_named_obj_nest_start()
12 if (err) in mlx5e_reporter_named_obj_nest_start()
13 return err; in mlx5e_reporter_named_obj_nest_start()
15 err = devlink_fmsg_obj_nest_start(fmsg); in mlx5e_reporter_named_obj_nest_start()
16 if (err) in mlx5e_reporter_named_obj_nest_start()
17 return err; in mlx5e_reporter_named_obj_nest_start()
24 int err; in mlx5e_reporter_named_obj_nest_end() local
26 err = devlink_fmsg_obj_nest_end(fmsg); in mlx5e_reporter_named_obj_nest_end()
27 if (err) in mlx5e_reporter_named_obj_nest_end()
[all …]
/Linux-v5.4/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-v5.4/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.c179 int err; in mtk_hw_set_value() local
181 err = mtk_hw_pin_field_get(hw, desc, field, &pf); in mtk_hw_set_value()
182 if (err) in mtk_hw_set_value()
183 return err; in mtk_hw_set_value()
198 int err; in mtk_hw_get_value() local
200 err = mtk_hw_pin_field_get(hw, desc, field, &pf); in mtk_hw_get_value()
201 if (err) in mtk_hw_get_value()
202 return err; in mtk_hw_get_value()
254 int value, err; in mtk_xt_get_gpio_state() local
256 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state()
[all …]
/Linux-v5.4/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c31 int err; in ethsw_add_vlan() local
37 err = dpsw_vlan_add(ethsw->mc_io, 0, in ethsw_add_vlan()
39 if (err) { in ethsw_add_vlan()
40 dev_err(ethsw->dev, "dpsw_vlan_add err %d\n", err); in ethsw_add_vlan()
41 return err; in ethsw_add_vlan()
54 int err, ret; in ethsw_port_set_pvid() local
56 err = dpsw_if_get_tci(ethsw->mc_io, 0, ethsw->dpsw_handle, in ethsw_port_set_pvid()
58 if (err) { in ethsw_port_set_pvid()
59 netdev_err(netdev, "dpsw_if_get_tci err %d\n", err); in ethsw_port_set_pvid()
60 return err; in ethsw_port_set_pvid()
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/sound/firewire/tascam/
Dtascam-stream.c20 int err; in get_clock() local
23 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in get_clock()
26 if (err < 0) in get_clock()
27 return err; in get_clock()
49 int err; in set_clock() local
51 err = get_clock(tscm, &data); in set_clock()
52 if (err < 0) in set_clock()
53 return err; in set_clock()
81 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, in set_clock()
84 if (err < 0) in set_clock()
[all …]
/Linux-v5.4/drivers/media/usb/gspca/m5602/
Dm5602_po1030.c204 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()
229 return err; in po1030_init()
283 int i, err = 0; in po1030_start() local
292 err = m5602_write_sensor(sd, PO1030_CONTROL3, &data, 1); in po1030_start()
293 if (err < 0) in po1030_start()
294 return err; in po1030_start()
[all …]
/Linux-v5.4/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()
176 value, index, err); in ds_send_control_cmd()
177 return err; in ds_send_control_cmd()
180 return err; in ds_send_control_cmd()
185 int err; in ds_send_control_mode() local
187 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), in ds_send_control_mode()
189 if (err < 0) { in ds_send_control_mode()
191 value, index, err); in ds_send_control_mode()
[all …]
/Linux-v5.4/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-v5.4/drivers/net/phy/
Dmarvell.c214 int err; in marvell_ack_interrupt() local
217 err = phy_read(phydev, MII_M1011_IEVENT); in marvell_ack_interrupt()
219 if (err < 0) in marvell_ack_interrupt()
220 return err; in marvell_ack_interrupt()
227 int err; in marvell_config_intr() local
230 err = phy_write(phydev, MII_M1011_IMASK, in marvell_config_intr()
233 err = phy_write(phydev, MII_M1011_IMASK, in marvell_config_intr()
236 return err; in marvell_config_intr()
242 int err; in marvell_set_polarity() local
268 err = phy_write(phydev, MII_M1011_PHY_SCR, val); in marvell_set_polarity()
[all …]
/Linux-v5.4/arch/sparc/include/asm/
Dtermios.h33 int err; \
34 err = get_user(tmp, &(termio)->c_iflag); \
36 err |= get_user(tmp, &(termio)->c_oflag); \
38 err |= get_user(tmp, &(termio)->c_cflag); \
40 err |= get_user(tmp, &(termio)->c_lflag); \
42 err |= copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
43 err; \
53 int err; \
54 err = put_user((termios)->c_iflag, &(termio)->c_iflag); \
55 err |= put_user((termios)->c_oflag, &(termio)->c_oflag); \
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dsockopt_multi.c10 int err; in prog_attach() local
12 err = libbpf_prog_type_by_name(title, &prog_type, &attach_type); in prog_attach()
13 if (err) { in prog_attach()
24 err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, in prog_attach()
26 if (err) { in prog_attach()
39 int err; in prog_detach() local
41 err = libbpf_prog_type_by_name(title, &prog_type, &attach_type); in prog_detach()
42 if (err) in prog_detach()
49 err = bpf_prog_detach2(bpf_program__fd(prog), cgroup_fd, in prog_detach()
51 if (err) in prog_detach()
[all …]
/Linux-v5.4/drivers/media/tuners/
Dfc0011.c111 int err; in fc0011_init() local
116 err = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0011_init()
118 if (err) { in fc0011_init()
120 return err; in fc0011_init()
122 err = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0011_init()
124 if (err) { in fc0011_init()
126 return err; in fc0011_init()
135 int err; in fc0011_vcocal_trigger() local
137 err = fc0011_writereg(priv, FC11_REG_VCOCAL, FC11_VCOCAL_RESET); in fc0011_vcocal_trigger()
138 if (err) in fc0011_vcocal_trigger()
[all …]

12345678910>>...169