Lines Matching refs:grp
1121 struct applesmc_node_group *grp; in applesmc_destroy_nodes() local
1124 for (grp = groups; grp->nodes; grp++) { in applesmc_destroy_nodes()
1125 for (node = grp->nodes; node->sda.dev_attr.attr.name; node++) in applesmc_destroy_nodes()
1128 kfree(grp->nodes); in applesmc_destroy_nodes()
1129 grp->nodes = NULL; in applesmc_destroy_nodes()
1138 struct applesmc_node_group *grp; in applesmc_create_nodes() local
1143 for (grp = groups; grp->format; grp++) { in applesmc_create_nodes()
1144 grp->nodes = kcalloc(num + 1, sizeof(*node), GFP_KERNEL); in applesmc_create_nodes()
1145 if (!grp->nodes) { in applesmc_create_nodes()
1150 node = &grp->nodes[i]; in applesmc_create_nodes()
1151 scnprintf(node->name, sizeof(node->name), grp->format, in applesmc_create_nodes()
1153 node->sda.index = (grp->option << 16) | (i & 0xffff); in applesmc_create_nodes()
1154 node->sda.dev_attr.show = grp->show; in applesmc_create_nodes()
1155 node->sda.dev_attr.store = grp->store; in applesmc_create_nodes()
1159 attr->mode = 0444 | (grp->store ? 0200 : 0); in applesmc_create_nodes()