Lines Matching full:defs

342 				       struct mrvl_mesh_defaults *defs)  in mesh_get_default_parameters()  argument
355 memcpy(defs, &cmd.data[0], sizeof(struct mrvl_mesh_defaults)); in mesh_get_default_parameters()
369 struct mrvl_mesh_defaults defs; in bootflag_show() local
372 ret = mesh_get_default_parameters(dev, &defs); in bootflag_show()
377 return sysfs_emit(buf, "%d\n", le32_to_cpu(defs.bootflag)); in bootflag_show()
421 struct mrvl_mesh_defaults defs; in boottime_show() local
424 ret = mesh_get_default_parameters(dev, &defs); in boottime_show()
429 return sysfs_emit(buf, "%d\n", defs.boottime); in boottime_show()
484 struct mrvl_mesh_defaults defs; in channel_show() local
487 ret = mesh_get_default_parameters(dev, &defs); in channel_show()
492 return sysfs_emit(buf, "%d\n", le16_to_cpu(defs.channel)); in channel_show()
536 struct mrvl_mesh_defaults defs; in mesh_id_show() local
539 ret = mesh_get_default_parameters(dev, &defs); in mesh_id_show()
544 if (defs.meshie.val.mesh_id_len > IEEE80211_MAX_SSID_LEN) { in mesh_id_show()
546 defs.meshie.val.mesh_id_len = IEEE80211_MAX_SSID_LEN; in mesh_id_show()
549 memcpy(buf, defs.meshie.val.mesh_id, defs.meshie.val.mesh_id_len); in mesh_id_show()
550 buf[defs.meshie.val.mesh_id_len] = '\n'; in mesh_id_show()
551 buf[defs.meshie.val.mesh_id_len + 1] = '\0'; in mesh_id_show()
553 return defs.meshie.val.mesh_id_len + 1; in mesh_id_show()
567 struct mrvl_mesh_defaults defs; in mesh_id_store() local
580 ret = mesh_get_default_parameters(dev, &defs); in mesh_id_store()
585 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in mesh_id_store()
612 struct mrvl_mesh_defaults defs; in protocol_id_show() local
615 ret = mesh_get_default_parameters(dev, &defs); in protocol_id_show()
620 return sysfs_emit(buf, "%d\n", defs.meshie.val.active_protocol_id); in protocol_id_show()
635 struct mrvl_mesh_defaults defs; in protocol_id_store() local
650 ret = mesh_get_default_parameters(dev, &defs); in protocol_id_store()
656 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in protocol_id_store()
677 struct mrvl_mesh_defaults defs; in metric_id_show() local
680 ret = mesh_get_default_parameters(dev, &defs); in metric_id_show()
685 return sysfs_emit(buf, "%d\n", defs.meshie.val.active_metric_id); in metric_id_show()
700 struct mrvl_mesh_defaults defs; in metric_id_store() local
712 ret = mesh_get_default_parameters(dev, &defs); in metric_id_store()
718 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in metric_id_store()
739 struct mrvl_mesh_defaults defs; in capability_show() local
742 ret = mesh_get_default_parameters(dev, &defs); in capability_show()
747 return sysfs_emit(buf, "%d\n", defs.meshie.val.mesh_capability); in capability_show()
762 struct mrvl_mesh_defaults defs; in capability_store() local
774 ret = mesh_get_default_parameters(dev, &defs); in capability_store()
780 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in capability_store()