Lines Matching refs:defs
337 struct mrvl_mesh_defaults *defs) in mesh_get_default_parameters() argument
350 memcpy(defs, &cmd.data[0], sizeof(struct mrvl_mesh_defaults)); in mesh_get_default_parameters()
364 struct mrvl_mesh_defaults defs; in bootflag_show() local
367 ret = mesh_get_default_parameters(dev, &defs); in bootflag_show()
372 return sysfs_emit(buf, "%d\n", le32_to_cpu(defs.bootflag)); in bootflag_show()
414 struct mrvl_mesh_defaults defs; in boottime_show() local
417 ret = mesh_get_default_parameters(dev, &defs); in boottime_show()
422 return sysfs_emit(buf, "%d\n", defs.boottime); in boottime_show()
474 struct mrvl_mesh_defaults defs; in channel_show() local
477 ret = mesh_get_default_parameters(dev, &defs); in channel_show()
482 return sysfs_emit(buf, "%d\n", le16_to_cpu(defs.channel)); in channel_show()
524 struct mrvl_mesh_defaults defs; in mesh_id_show() local
527 ret = mesh_get_default_parameters(dev, &defs); in mesh_id_show()
532 if (defs.meshie.val.mesh_id_len > IEEE80211_MAX_SSID_LEN) { in mesh_id_show()
534 defs.meshie.val.mesh_id_len = IEEE80211_MAX_SSID_LEN; in mesh_id_show()
537 memcpy(buf, defs.meshie.val.mesh_id, defs.meshie.val.mesh_id_len); in mesh_id_show()
538 buf[defs.meshie.val.mesh_id_len] = '\n'; in mesh_id_show()
539 buf[defs.meshie.val.mesh_id_len + 1] = '\0'; in mesh_id_show()
541 return defs.meshie.val.mesh_id_len + 1; in mesh_id_show()
555 struct mrvl_mesh_defaults defs; in mesh_id_store() local
568 ret = mesh_get_default_parameters(dev, &defs); in mesh_id_store()
573 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in mesh_id_store()
600 struct mrvl_mesh_defaults defs; in protocol_id_show() local
603 ret = mesh_get_default_parameters(dev, &defs); in protocol_id_show()
608 return sysfs_emit(buf, "%d\n", defs.meshie.val.active_protocol_id); in protocol_id_show()
623 struct mrvl_mesh_defaults defs; in protocol_id_store() local
635 ret = mesh_get_default_parameters(dev, &defs); in protocol_id_store()
641 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in protocol_id_store()
662 struct mrvl_mesh_defaults defs; in metric_id_show() local
665 ret = mesh_get_default_parameters(dev, &defs); in metric_id_show()
670 return sysfs_emit(buf, "%d\n", defs.meshie.val.active_metric_id); in metric_id_show()
685 struct mrvl_mesh_defaults defs; in metric_id_store() local
697 ret = mesh_get_default_parameters(dev, &defs); in metric_id_store()
703 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in metric_id_store()
724 struct mrvl_mesh_defaults defs; in capability_show() local
727 ret = mesh_get_default_parameters(dev, &defs); in capability_show()
732 return sysfs_emit(buf, "%d\n", defs.meshie.val.mesh_capability); in capability_show()
747 struct mrvl_mesh_defaults defs; in capability_store() local
759 ret = mesh_get_default_parameters(dev, &defs); in capability_store()
765 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in capability_store()