/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/ |
D | global1_vtu.c | 23 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 …]
|
D | global1.c | 82 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/ |
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 …]
|
D | analogix-anx6345.c | 101 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | reporter_rx.c | 13 int err; in mlx5e_query_rq_state() local 19 err = mlx5_core_query_rq(dev, rqn, out); in mlx5e_query_rq_state() 20 if (err) in mlx5e_query_rq_state() 28 return err; in mlx5e_query_rq_state() 65 int err; in mlx5e_rx_reporter_err_icosq_cqe_recover() local 71 err = mlx5_core_query_sq_state(mdev, icosq->sqn, &state); in mlx5e_rx_reporter_err_icosq_cqe_recover() 72 if (err) { in mlx5e_rx_reporter_err_icosq_cqe_recover() 74 icosq->sqn, err); in mlx5e_rx_reporter_err_icosq_cqe_recover() 82 err = mlx5e_wait_for_icosq_flush(icosq); in mlx5e_rx_reporter_err_icosq_cqe_recover() 83 if (err) in mlx5e_rx_reporter_err_icosq_cqe_recover() [all …]
|
D | health.c | 10 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 …]
|
D | reporter_tx.c | 41 int err; in mlx5e_tx_reporter_err_cqe_recover() local 50 err = mlx5_core_query_sq_state(mdev, sq->sqn, &state); in mlx5e_tx_reporter_err_cqe_recover() 51 if (err) { in mlx5e_tx_reporter_err_cqe_recover() 53 sq->sqn, err); in mlx5e_tx_reporter_err_cqe_recover() 62 err = mlx5e_wait_for_sq_flush(sq); in mlx5e_tx_reporter_err_cqe_recover() 63 if (err) in mlx5e_tx_reporter_err_cqe_recover() 71 err = mlx5e_health_sq_to_ready(sq->channel, sq->sqn); in mlx5e_tx_reporter_err_cqe_recover() 72 if (err) in mlx5e_tx_reporter_err_cqe_recover() 83 return err; in mlx5e_tx_reporter_err_cqe_recover() 97 int err; in mlx5e_tx_reporter_timeout_recover() local [all …]
|
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
D | health.c | 66 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 …]
|
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | pinning.c | 13 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 …]
|
D | sockopt_sk.c | 9 int fd, err; in getsetsockopt() local 30 goto err; in getsetsockopt() 34 err = setsockopt(fd, SOL_IP, IP_TOS, big_buf, optlen); in getsetsockopt() 35 if (err) { in getsetsockopt() 37 goto err; in getsetsockopt() 42 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen); in getsetsockopt() 43 if (err) { in getsetsockopt() 45 goto err; in getsetsockopt() 51 goto err; in getsetsockopt() 57 err = setsockopt(fd, SOL_IP, IP_TTL, &buf, 1); in getsetsockopt() [all …]
|
D | sockopt_multi.c | 10 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 …]
|
/kernel/linux/linux-5.10/sound/firewire/bebob/ |
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 …]
|
D | bebob_stream.c | 67 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 …]
|
/kernel/linux/linux-5.10/drivers/media/radio/ |
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 …]
|
/kernel/linux/linux-5.10/lib/ |
D | test_overflow.c | 227 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 …]
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | st-dma-fence-chain.c | 88 int err = 0; in sanitycheck() local 96 err = -ENOMEM; in sanitycheck() 103 return err; in sanitycheck() 123 int err = 0; in fence_chains_init() local 133 err = -ENOMEM; in fence_chains_init() 141 err = -ENOMEM; in fence_chains_init() 149 err = -ENOMEM; in fence_chains_init() 167 return err; in fence_chains_init() 189 int err; in find_seqno() local 192 err = fence_chains_init(&fc, 64, seqno_inc); in find_seqno() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/ |
D | pinctrl-mtk-common-v2.c | 191 int err; in mtk_hw_set_value() local 193 err = mtk_hw_pin_field_get(hw, desc, field, &pf); in mtk_hw_set_value() 194 if (err) in mtk_hw_set_value() 195 return err; in mtk_hw_set_value() 214 int err; in mtk_hw_get_value() local 216 err = mtk_hw_pin_field_get(hw, desc, field, &pf); in mtk_hw_get_value() 217 if (err) in mtk_hw_get_value() 218 return err; in mtk_hw_get_value() 302 int value, err; in mtk_xt_get_gpio_state() local 304 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/tests/ |
D | pagetest.c | 53 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 …]
|
/kernel/linux/linux-5.10/sound/firewire/oxfw/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/media/usb/gspca/m5602/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw.c | 29 int err; in dpaa2_switch_add_vlan() local 35 err = dpsw_vlan_add(ethsw->mc_io, 0, in dpaa2_switch_add_vlan() 37 if (err) { in dpaa2_switch_add_vlan() 38 dev_err(ethsw->dev, "dpsw_vlan_add err %d\n", err); in dpaa2_switch_add_vlan() 39 return err; in dpaa2_switch_add_vlan() 50 int err; in dpaa2_switch_port_is_up() local 52 err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_is_up() 55 if (err) { in dpaa2_switch_port_is_up() 56 netdev_err(netdev, "dpsw_if_get_link_state() err %d\n", err); in dpaa2_switch_port_is_up() 71 int err, ret; in dpaa2_switch_port_set_pvid() local [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_devlink.c | 133 int err; in hinic_flash_fw() local 219 err = hinic_port_msg_cmd(priv->hwdev, in hinic_flash_fw() 224 if (err || !out_size || fw_update_msg->status) { in hinic_flash_fw() 226 err, fw_update_msg->status, out_size); in hinic_flash_fw() 227 err = fw_update_msg->status ? in hinic_flash_fw() 230 return err; in hinic_flash_fw() 249 int err; in hinic_firmware_update() local 262 err = hinic_flash_fw(priv, fw->data, &host_image); in hinic_firmware_update() 263 if (err) { in hinic_firmware_update() 264 if (err == HINIC_FW_DISMATCH_ERROR) { in hinic_firmware_update() [all …]
|