/Linux-v4.19/drivers/gpu/drm/bridge/ |
D | analogix-anx78xx.c | 115 int err; in anx78xx_aux_op_finished() local 117 err = regmap_read(anx78xx->map[I2C_IDX_TX_P0], SP_DP_AUX_CH_CTRL2_REG, in anx78xx_aux_op_finished() 119 if (err < 0) in anx78xx_aux_op_finished() 129 int err; in anx78xx_aux_wait() local 147 err = regmap_read(anx78xx->map[I2C_IDX_TX_P0], SP_AUX_CH_STATUS_REG, in anx78xx_aux_wait() 149 if (err < 0) { in anx78xx_aux_wait() 150 DRM_ERROR("Failed to read from AUX channel: %d\n", err); in anx78xx_aux_wait() 151 return err; in anx78xx_aux_wait() 165 int err; in anx78xx_aux_address() local 167 err = regmap_write(anx78xx->map[I2C_IDX_TX_P0], SP_AUX_ADDR_7_0_REG, in anx78xx_aux_address() [all …]
|
/Linux-v4.19/drivers/net/dsa/mv88e6xxx/ |
D | global1_vtu.c | 26 int err; in mv88e6xxx_g1_vtu_fid_read() local 28 err = mv88e6xxx_g1_read(chip, MV88E6352_G1_VTU_FID, &val); in mv88e6xxx_g1_vtu_fid_read() 29 if (err) in mv88e6xxx_g1_vtu_fid_read() 30 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 …]
|
D | global1.c | 44 int i, err; in mv88e6185_g1_wait_ppu_disabled() local 47 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STS, &state); in mv88e6185_g1_wait_ppu_disabled() 48 if (err) in mv88e6185_g1_wait_ppu_disabled() 49 return err; in mv88e6185_g1_wait_ppu_disabled() 65 int i, err; in mv88e6185_g1_wait_ppu_polling() local 68 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STS, &state); in mv88e6185_g1_wait_ppu_polling() 69 if (err) in mv88e6185_g1_wait_ppu_polling() 70 return err; in mv88e6185_g1_wait_ppu_polling() 86 int i, err; in mv88e6352_g1_wait_ppu_polling() local 89 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STS, &state); in mv88e6352_g1_wait_ppu_polling() [all …]
|
D | port.c | 49 int err; in mv88e6185_port_set_pause() local 51 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_STS, ®); in mv88e6185_port_set_pause() 52 if (err) in mv88e6185_port_set_pause() 53 return err; in mv88e6185_port_set_pause() 76 int err; in mv88e6xxx_port_set_rgmii_delay() local 78 err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_MAC_CTL, ®); in mv88e6xxx_port_set_rgmii_delay() 79 if (err) in mv88e6xxx_port_set_rgmii_delay() 80 return err; in mv88e6xxx_port_set_rgmii_delay() 102 err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_MAC_CTL, reg); in mv88e6xxx_port_set_rgmii_delay() 103 if (err) in mv88e6xxx_port_set_rgmii_delay() [all …]
|
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 …]
|
D | global2.c | 78 int err; in mv88e6xxx_g2_switch_mgmt_rsvd2cpu() local 80 err = mv88e6xxx_g2_read(chip, MV88E6XXX_G2_SWITCH_MGMT, &val); in mv88e6xxx_g2_switch_mgmt_rsvd2cpu() 81 if (err) in mv88e6xxx_g2_switch_mgmt_rsvd2cpu() 82 return err; in mv88e6xxx_g2_switch_mgmt_rsvd2cpu() 94 int err; in mv88e6185_g2_mgmt_rsvd2cpu() local 99 err = mv88e6xxx_g2_mgmt_enable_0x(chip, 0xffff); in mv88e6185_g2_mgmt_rsvd2cpu() 100 if (err) in mv88e6185_g2_mgmt_rsvd2cpu() 101 return err; in mv88e6185_g2_mgmt_rsvd2cpu() 108 int err; in mv88e6352_g2_mgmt_rsvd2cpu() local 113 err = mv88e6xxx_g2_mgmt_enable_2x(chip, 0xffff); in mv88e6352_g2_mgmt_rsvd2cpu() [all …]
|
/Linux-v4.19/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 111 int err; in gssx_enc_option() local 113 err = gssx_enc_buffer(xdr, &opt->option); in gssx_enc_option() 114 if (err) in gssx_enc_option() 115 return err; in gssx_enc_option() 116 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option() 117 return err; in gssx_enc_option() 123 int err; in gssx_dec_option() local 125 err = gssx_dec_buffer(xdr, &opt->option); in gssx_dec_option() 126 if (err) in gssx_dec_option() 127 return err; in gssx_dec_option() [all …]
|
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw.c | 31 int err; in ethsw_add_vlan() local 42 err = dpsw_vlan_add(ethsw->mc_io, 0, in ethsw_add_vlan() 44 if (err) { in ethsw_add_vlan() 45 dev_err(ethsw->dev, "dpsw_vlan_add err %d\n", err); in ethsw_add_vlan() 46 return err; in ethsw_add_vlan() 59 int err, ret; in ethsw_port_set_pvid() local 61 err = dpsw_if_get_tci(ethsw->mc_io, 0, ethsw->dpsw_handle, in ethsw_port_set_pvid() 63 if (err) { in ethsw_port_set_pvid() 64 netdev_err(netdev, "dpsw_if_get_tci err %d\n", err); in ethsw_port_set_pvid() 65 return err; in ethsw_port_set_pvid() [all …]
|
/Linux-v4.19/sound/firewire/bebob/ |
D | bebob_command.c | 15 int err; in avc_audio_set_selector() local 31 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector() 34 if (err < 0) in avc_audio_set_selector() 36 else if (err < 9) in avc_audio_set_selector() 37 err = -EIO; in avc_audio_set_selector() 39 err = -ENOSYS; in avc_audio_set_selector() 41 err = -EINVAL; in avc_audio_set_selector() 43 err = 0; in avc_audio_set_selector() 46 return err; in avc_audio_set_selector() 53 int err; in avc_audio_get_selector() local [all …]
|
D | bebob_stream.c | 68 int err; in snd_bebob_stream_get_rate() local 72 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate() 74 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate() 75 if (err < 0) in snd_bebob_stream_get_rate() 80 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate() 82 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate() 83 if (err < 0) in snd_bebob_stream_get_rate() 91 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate() 94 return err; in snd_bebob_stream_get_rate() 100 int err; in snd_bebob_stream_set_rate() local [all …]
|
/Linux-v4.19/drivers/media/radio/ |
D | saa7706h.c | 137 int err = i2c_master_send(client, data, len); in saa7706h_i2c_send() local 138 if (err == len) in saa7706h_i2c_send() 140 return err > 0 ? -EIO : err; in saa7706h_i2c_send() 146 int err = i2c_transfer(client->adapter, msgs, num); in saa7706h_i2c_transfer() local 147 if (err == num) in saa7706h_i2c_transfer() 149 return err > 0 ? -EIO : err; in saa7706h_i2c_transfer() 168 int *err) in saa7706h_set_reg24_err() argument 170 return *err ? *err : saa7706h_set_reg24(sd, reg, val); in saa7706h_set_reg24_err() 188 int *err) in saa7706h_set_reg16_err() argument 190 return *err ? *err : saa7706h_set_reg16(sd, reg, val); in saa7706h_set_reg16_err() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/net/phy/ |
D | marvell.c | 209 int err; in marvell_ack_interrupt() local 212 err = phy_read(phydev, MII_M1011_IEVENT); in marvell_ack_interrupt() 214 if (err < 0) in marvell_ack_interrupt() 215 return err; in marvell_ack_interrupt() 222 int err; in marvell_config_intr() local 225 err = phy_write(phydev, MII_M1011_IMASK, in marvell_config_intr() 228 err = phy_write(phydev, MII_M1011_IMASK, in marvell_config_intr() 231 return err; in marvell_config_intr() 237 int err; in marvell_set_polarity() local 263 err = phy_write(phydev, MII_M1011_PHY_SCR, val); in marvell_set_polarity() [all …]
|
/Linux-v4.19/drivers/mtd/tests/ |
D | pagetest.c | 65 int err = 0, i; in verify_eraseblock() local 80 err = mtdtest_read(mtd, addr0, bufsize, twopages); in verify_eraseblock() 81 if (err) in verify_eraseblock() 82 return err; in verify_eraseblock() 83 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages); in verify_eraseblock() 84 if (err) in verify_eraseblock() 85 return err; in verify_eraseblock() 87 err = mtdtest_read(mtd, addr, bufsize, twopages); in verify_eraseblock() 88 if (err) in verify_eraseblock() 101 err = mtdtest_read(mtd, addr0, bufsize, twopages); in verify_eraseblock() [all …]
|
D | subpagetest.c | 59 int err = 0; in write_eraseblock() local 63 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock() 64 if (unlikely(err || written != subpgsize)) { in write_eraseblock() 71 return err ? err : -1; in write_eraseblock() 77 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock() 78 if (unlikely(err || written != subpgsize)) { in write_eraseblock() 85 return err ? err : -1; in write_eraseblock() 88 return err; in write_eraseblock() 94 int err = 0, k; in write_eraseblock2() local 101 err = mtd_write(mtd, addr, subpgsize * k, &written, writebuf); in write_eraseblock2() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/media/usb/gspca/m5602/ |
D | m5602_po1030.c | 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() 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-v4.19/drivers/w1/masters/ |
D | ds2490.c | 184 int err; in ds_send_control_cmd() local 186 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), in ds_send_control_cmd() 188 if (err < 0) { in ds_send_control_cmd() 190 value, index, err); in ds_send_control_cmd() 191 return err; in ds_send_control_cmd() 194 return err; in ds_send_control_cmd() 199 int err; in ds_send_control_mode() local 201 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), in ds_send_control_mode() 203 if (err < 0) { in ds_send_control_mode() 205 value, index, err); in ds_send_control_mode() [all …]
|
/Linux-v4.19/sound/firewire/tascam/ |
D | tascam-stream.c | 17 int err; in get_clock() local 19 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in get_clock() 22 if (err >= 0) in get_clock() 25 return err; in get_clock() 33 int err; in set_clock() local 35 err = get_clock(tscm, &data); in set_clock() 36 if (err < 0) in set_clock() 37 return err; in set_clock() 65 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, in set_clock() 68 if (err < 0) in set_clock() [all …]
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | termios.h | 33 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-v4.19/drivers/media/tuners/ |
D | fc0011.c | 120 int err; in fc0011_init() local 125 err = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0011_init() 127 if (err) { in fc0011_init() 129 return err; in fc0011_init() 131 err = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0011_init() 133 if (err) { in fc0011_init() 135 return err; in fc0011_init() 144 int err; in fc0011_vcocal_trigger() local 146 err = fc0011_writereg(priv, FC11_REG_VCOCAL, FC11_VCOCAL_RESET); in fc0011_vcocal_trigger() 147 if (err) in fc0011_vcocal_trigger() [all …]
|
/Linux-v4.19/drivers/xen/xen-pciback/ |
D | xenbus.c | 110 int err = 0; in xen_pcibk_do_attach() local 117 err = xenbus_map_ring_valloc(pdev->xdev, &gnt_ref, 1, &vaddr); in xen_pcibk_do_attach() 118 if (err < 0) { in xen_pcibk_do_attach() 119 xenbus_dev_fatal(pdev->xdev, err, in xen_pcibk_do_attach() 126 err = bind_interdomain_evtchn_to_irqhandler( in xen_pcibk_do_attach() 129 if (err < 0) { in xen_pcibk_do_attach() 130 xenbus_dev_fatal(pdev->xdev, err, in xen_pcibk_do_attach() 134 pdev->evtchn_irq = err; in xen_pcibk_do_attach() 135 err = 0; in xen_pcibk_do_attach() 139 return err; in xen_pcibk_do_attach() [all …]
|
/Linux-v4.19/drivers/net/wireless/intersil/orinoco/ |
D | hw.c | 75 int err; in determine_fw_capabilities() local 81 err = HERMES_READ_RECORD(hw, USER_BAP, HERMES_RID_NICID, &nic_id); in determine_fw_capabilities() 82 if (err) { in determine_fw_capabilities() 84 err); in determine_fw_capabilities() 85 return err; in determine_fw_capabilities() 104 err = HERMES_READ_RECORD(hw, USER_BAP, HERMES_RID_STAID, &sta_id); in determine_fw_capabilities() 105 if (err) { in determine_fw_capabilities() 107 err); in determine_fw_capabilities() 108 return err; in determine_fw_capabilities() 180 err = hw->ops->read_ltv(hw, USER_BAP, in determine_fw_capabilities() [all …]
|
/Linux-v4.19/tools/testing/selftests/x86/ |
D | test_FCMOV.c | 56 int err = 0; in main() local 68 err |= !(fcmovb(0) == 1.0); err |= !(fcmovnb(0) != 1.0); in main() 69 err |= !(fcmove(0) == 1.0); err |= !(fcmovne(0) != 1.0); in main() 70 err |= !(fcmovbe(0) == 1.0); err |= !(fcmovnbe(0) != 1.0); in main() 71 err |= !(fcmovu(0) == 1.0); err |= !(fcmovnu(0) != 1.0); in main() 73 err |= !(fcmovb(CF) != 1.0); err |= !(fcmovnb(CF) == 1.0); in main() 74 err |= !(fcmove(CF) == 1.0); err |= !(fcmovne(CF) != 1.0); in main() 75 err |= !(fcmovbe(CF) != 1.0); err |= !(fcmovnbe(CF) == 1.0); in main() 76 err |= !(fcmovu(CF) == 1.0); err |= !(fcmovnu(CF) != 1.0); in main() 78 err |= !(fcmovb(ZF) == 1.0); err |= !(fcmovnb(ZF) != 1.0); in main() [all …]
|