Lines Matching refs:new_devdata
741 struct nx842_devdata *new_devdata = NULL; in nx842_OF_upd() local
749 new_devdata = kzalloc(sizeof(*new_devdata), GFP_NOFS); in nx842_OF_upd()
750 if (!new_devdata) in nx842_OF_upd()
762 kfree(new_devdata); in nx842_OF_upd()
766 memcpy(new_devdata, old_devdata, sizeof(*old_devdata)); in nx842_OF_upd()
767 new_devdata->counters = old_devdata->counters; in nx842_OF_upd()
789 ret = nx842_OF_upd_status(new_devdata, status); in nx842_OF_upd()
793 ret = nx842_OF_upd_maxsglen(new_devdata, maxsglen); in nx842_OF_upd()
797 ret = nx842_OF_upd_maxsyncop(new_devdata, maxsyncop); in nx842_OF_upd()
803 __func__, new_devdata->max_sync_size, in nx842_OF_upd()
806 __func__, new_devdata->max_sync_sg, in nx842_OF_upd()
809 __func__, new_devdata->max_sg_len, in nx842_OF_upd()
812 rcu_assign_pointer(devdata, new_devdata); in nx842_OF_upd()
815 dev_set_drvdata(new_devdata->dev, new_devdata); in nx842_OF_upd()
820 if (new_devdata) { in nx842_OF_upd()
822 nx842_OF_set_defaults(new_devdata); in nx842_OF_upd()
823 rcu_assign_pointer(devdata, new_devdata); in nx842_OF_upd()
826 dev_set_drvdata(new_devdata->dev, new_devdata); in nx842_OF_upd()
1033 struct nx842_devdata *old_devdata, *new_devdata = NULL; in nx842_probe() local
1037 new_devdata = kzalloc(sizeof(*new_devdata), GFP_NOFS); in nx842_probe()
1038 if (!new_devdata) in nx842_probe()
1041 new_devdata->counters = kzalloc(sizeof(*new_devdata->counters), in nx842_probe()
1043 if (!new_devdata->counters) { in nx842_probe()
1044 kfree(new_devdata); in nx842_probe()
1060 new_devdata->vdev = viodev; in nx842_probe()
1061 new_devdata->dev = &viodev->dev; in nx842_probe()
1062 nx842_OF_set_defaults(new_devdata); in nx842_probe()
1064 rcu_assign_pointer(devdata, new_devdata); in nx842_probe()
1105 if (new_devdata) in nx842_probe()
1106 kfree(new_devdata->counters); in nx842_probe()
1107 kfree(new_devdata); in nx842_probe()
1212 struct nx842_devdata *new_devdata; in nx842_pseries_init() local
1222 new_devdata = kzalloc(sizeof(*new_devdata), GFP_KERNEL); in nx842_pseries_init()
1223 if (!new_devdata) in nx842_pseries_init()
1226 RCU_INIT_POINTER(devdata, new_devdata); in nx842_pseries_init()
1236 kfree(new_devdata); in nx842_pseries_init()