Lines Matching refs:nw
90 int tries, nr, nw; in wf_fcu_read_reg() local
97 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg()
98 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_read_reg()
103 if (nw <= 0) { in wf_fcu_read_reg()
104 pr_err("Failure writing address to FCU: %d", nw); in wf_fcu_read_reg()
105 nr = nw; in wf_fcu_read_reg()
117 pr_err("wf_fcu: Failure reading data from FCU: %d", nw); in wf_fcu_read_reg()
126 int tries, nw; in wf_fcu_write_reg() local
134 nw = i2c_master_send(pv->i2c, buf, nb); in wf_fcu_write_reg()
135 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_write_reg()
140 if (nw < 0) in wf_fcu_write_reg()
141 pr_err("wf_fcu: Failure writing to FCU: %d", nw); in wf_fcu_write_reg()
142 return nw; in wf_fcu_write_reg()