Lines Matching refs:count
124 static ssize_t xgbe_common_read(char __user *buffer, size_t count, in xgbe_common_read() argument
137 if (count < strlen(buf)) { in xgbe_common_read()
142 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in xgbe_common_read()
148 static ssize_t xgbe_common_write(const char __user *buffer, size_t count, in xgbe_common_write() argument
158 if (count >= sizeof(workarea)) in xgbe_common_write()
162 buffer, count); in xgbe_common_write()
175 size_t count, loff_t *ppos) in xgmac_reg_addr_read() argument
179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read()
184 size_t count, loff_t *ppos) in xgmac_reg_addr_write() argument
188 return xgbe_common_write(buffer, count, ppos, in xgmac_reg_addr_write()
193 size_t count, loff_t *ppos) in xgmac_reg_value_read() argument
200 return xgbe_common_read(buffer, count, ppos, value); in xgmac_reg_value_read()
205 size_t count, loff_t *ppos) in xgmac_reg_value_write() argument
211 len = xgbe_common_write(buffer, count, ppos, &value); in xgmac_reg_value_write()
235 size_t count, loff_t *ppos) in xpcs_mmd_read() argument
239 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xpcs_mmd); in xpcs_mmd_read()
243 size_t count, loff_t *ppos) in xpcs_mmd_write() argument
247 return xgbe_common_write(buffer, count, ppos, in xpcs_mmd_write()
252 size_t count, loff_t *ppos) in xpcs_reg_addr_read() argument
256 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xpcs_reg); in xpcs_reg_addr_read()
260 size_t count, loff_t *ppos) in xpcs_reg_addr_write() argument
264 return xgbe_common_write(buffer, count, ppos, in xpcs_reg_addr_write()
269 size_t count, loff_t *ppos) in xpcs_reg_value_read() argument
277 return xgbe_common_read(buffer, count, ppos, value); in xpcs_reg_value_read()
282 size_t count, loff_t *ppos) in xpcs_reg_value_write() argument
288 len = xgbe_common_write(buffer, count, ppos, &value); in xpcs_reg_value_write()
320 size_t count, loff_t *ppos) in xprop_reg_addr_read() argument
324 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xprop_reg); in xprop_reg_addr_read()
329 size_t count, loff_t *ppos) in xprop_reg_addr_write() argument
333 return xgbe_common_write(buffer, count, ppos, in xprop_reg_addr_write()
338 size_t count, loff_t *ppos) in xprop_reg_value_read() argument
345 return xgbe_common_read(buffer, count, ppos, value); in xprop_reg_value_read()
350 size_t count, loff_t *ppos) in xprop_reg_value_write() argument
356 len = xgbe_common_write(buffer, count, ppos, &value); in xprop_reg_value_write()
380 size_t count, loff_t *ppos) in xi2c_reg_addr_read() argument
384 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xi2c_reg); in xi2c_reg_addr_read()
389 size_t count, loff_t *ppos) in xi2c_reg_addr_write() argument
393 return xgbe_common_write(buffer, count, ppos, in xi2c_reg_addr_write()
398 size_t count, loff_t *ppos) in xi2c_reg_value_read() argument
405 return xgbe_common_read(buffer, count, ppos, value); in xi2c_reg_value_read()
410 size_t count, loff_t *ppos) in xi2c_reg_value_write() argument
416 len = xgbe_common_write(buffer, count, ppos, &value); in xi2c_reg_value_write()