Lines Matching refs:defs
327 struct mrvl_mesh_defaults *defs) in mesh_get_default_parameters() argument
340 memcpy(defs, &cmd.data[0], sizeof(struct mrvl_mesh_defaults)); in mesh_get_default_parameters()
354 struct mrvl_mesh_defaults defs; in bootflag_get() local
357 ret = mesh_get_default_parameters(dev, &defs); in bootflag_get()
362 return snprintf(buf, 12, "%d\n", le32_to_cpu(defs.bootflag)); in bootflag_get()
404 struct mrvl_mesh_defaults defs; in boottime_get() local
407 ret = mesh_get_default_parameters(dev, &defs); in boottime_get()
412 return snprintf(buf, 12, "%d\n", defs.boottime); in boottime_get()
463 struct mrvl_mesh_defaults defs; in channel_get() local
466 ret = mesh_get_default_parameters(dev, &defs); in channel_get()
471 return snprintf(buf, 12, "%d\n", le16_to_cpu(defs.channel)); in channel_get()
513 struct mrvl_mesh_defaults defs; in mesh_id_get() local
516 ret = mesh_get_default_parameters(dev, &defs); in mesh_id_get()
521 if (defs.meshie.val.mesh_id_len > IEEE80211_MAX_SSID_LEN) { in mesh_id_get()
523 defs.meshie.val.mesh_id_len = IEEE80211_MAX_SSID_LEN; in mesh_id_get()
526 memcpy(buf, defs.meshie.val.mesh_id, defs.meshie.val.mesh_id_len); in mesh_id_get()
527 buf[defs.meshie.val.mesh_id_len] = '\n'; in mesh_id_get()
528 buf[defs.meshie.val.mesh_id_len + 1] = '\0'; in mesh_id_get()
530 return defs.meshie.val.mesh_id_len + 1; in mesh_id_get()
544 struct mrvl_mesh_defaults defs; in mesh_id_set() local
557 ret = mesh_get_default_parameters(dev, &defs); in mesh_id_set()
562 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in mesh_id_set()
588 struct mrvl_mesh_defaults defs; in protocol_id_get() local
591 ret = mesh_get_default_parameters(dev, &defs); in protocol_id_get()
596 return snprintf(buf, 5, "%d\n", defs.meshie.val.active_protocol_id); in protocol_id_get()
610 struct mrvl_mesh_defaults defs; in protocol_id_set() local
622 ret = mesh_get_default_parameters(dev, &defs); in protocol_id_set()
628 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in protocol_id_set()
649 struct mrvl_mesh_defaults defs; in metric_id_get() local
652 ret = mesh_get_default_parameters(dev, &defs); in metric_id_get()
657 return snprintf(buf, 5, "%d\n", defs.meshie.val.active_metric_id); in metric_id_get()
671 struct mrvl_mesh_defaults defs; in metric_id_set() local
683 ret = mesh_get_default_parameters(dev, &defs); in metric_id_set()
689 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in metric_id_set()
710 struct mrvl_mesh_defaults defs; in capability_get() local
713 ret = mesh_get_default_parameters(dev, &defs); in capability_get()
718 return snprintf(buf, 5, "%d\n", defs.meshie.val.mesh_capability); in capability_get()
732 struct mrvl_mesh_defaults defs; in capability_set() local
744 ret = mesh_get_default_parameters(dev, &defs); in capability_set()
750 memcpy(ie, &defs.meshie, sizeof(struct mrvl_meshie)); in capability_set()