Lines Matching refs:nw
89 int tries, nr, nw; in wf_fcu_read_reg() local
96 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg()
97 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_read_reg()
102 if (nw <= 0) { in wf_fcu_read_reg()
103 pr_err("Failure writing address to FCU: %d", nw); in wf_fcu_read_reg()
104 nr = nw; in wf_fcu_read_reg()
116 pr_err("wf_fcu: Failure reading data from FCU: %d", nw); in wf_fcu_read_reg()
125 int tries, nw; in wf_fcu_write_reg() local
133 nw = i2c_master_send(pv->i2c, buf, nb); in wf_fcu_write_reg()
134 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_write_reg()
139 if (nw < 0) in wf_fcu_write_reg()
140 pr_err("wf_fcu: Failure writing to FCU: %d", nw); in wf_fcu_write_reg()
141 return nw; in wf_fcu_write_reg()