• Home
  • Raw
  • Download

Lines Matching refs:pdata

177 	struct xgbe_prv_data *pdata = filp->private_data;  in xgmac_reg_addr_read()  local
179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read()
186 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_write() local
189 &pdata->debugfs_xgmac_reg); in xgmac_reg_addr_write()
195 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_read() local
198 value = XGMAC_IOREAD(pdata, pdata->debugfs_xgmac_reg); in xgmac_reg_value_read()
207 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_write() local
215 XGMAC_IOWRITE(pdata, pdata->debugfs_xgmac_reg, value); in xgmac_reg_value_write()
237 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_read() local
239 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xpcs_mmd); in xpcs_mmd_read()
245 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_write() local
248 &pdata->debugfs_xpcs_mmd); in xpcs_mmd_write()
254 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_addr_read() local
256 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xpcs_reg); in xpcs_reg_addr_read()
262 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_addr_write() local
265 &pdata->debugfs_xpcs_reg); in xpcs_reg_addr_write()
271 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_value_read() local
274 value = XMDIO_READ(pdata, pdata->debugfs_xpcs_mmd, in xpcs_reg_value_read()
275 pdata->debugfs_xpcs_reg); in xpcs_reg_value_read()
284 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_value_write() local
292 XMDIO_WRITE(pdata, pdata->debugfs_xpcs_mmd, pdata->debugfs_xpcs_reg, in xpcs_reg_value_write()
319 void xgbe_debugfs_init(struct xgbe_prv_data *pdata) in xgbe_debugfs_init() argument
325 pdata->debugfs_xgmac_reg = 0; in xgbe_debugfs_init()
326 pdata->debugfs_xpcs_mmd = 1; in xgbe_debugfs_init()
327 pdata->debugfs_xpcs_reg = 0; in xgbe_debugfs_init()
329 buf = kasprintf(GFP_KERNEL, "amd-xgbe-%s", pdata->netdev->name); in xgbe_debugfs_init()
333 pdata->xgbe_debugfs = debugfs_create_dir(buf, NULL); in xgbe_debugfs_init()
334 if (!pdata->xgbe_debugfs) { in xgbe_debugfs_init()
335 netdev_err(pdata->netdev, "debugfs_create_dir failed\n"); in xgbe_debugfs_init()
341 pdata->xgbe_debugfs, pdata, in xgbe_debugfs_init()
344 netdev_err(pdata->netdev, "debugfs_create_file failed\n"); in xgbe_debugfs_init()
347 pdata->xgbe_debugfs, pdata, in xgbe_debugfs_init()
350 netdev_err(pdata->netdev, "debugfs_create_file failed\n"); in xgbe_debugfs_init()
353 pdata->xgbe_debugfs, pdata, in xgbe_debugfs_init()
356 netdev_err(pdata->netdev, "debugfs_create_file failed\n"); in xgbe_debugfs_init()
359 pdata->xgbe_debugfs, pdata, in xgbe_debugfs_init()
362 netdev_err(pdata->netdev, "debugfs_create_file failed\n"); in xgbe_debugfs_init()
365 pdata->xgbe_debugfs, pdata, in xgbe_debugfs_init()
368 netdev_err(pdata->netdev, "debugfs_create_file failed\n"); in xgbe_debugfs_init()
373 void xgbe_debugfs_exit(struct xgbe_prv_data *pdata) in xgbe_debugfs_exit() argument
375 debugfs_remove_recursive(pdata->xgbe_debugfs); in xgbe_debugfs_exit()
376 pdata->xgbe_debugfs = NULL; in xgbe_debugfs_exit()