Lines Matching refs:parm
240 static int counter_attribute_create(const struct counter_attr_parm *const parm)
245 struct list_head *const attr_list = &parm->group->attr_list;
256 dev_attr->attr.name = kasprintf(GFP_KERNEL, "%s%s", parm->prefix,
257 parm->name);
262 if (parm->show) {
264 dev_attr->show = parm->show;
266 if (parm->store) {
268 dev_attr->store = parm->store;
272 counter_attr->component = parm->component;
276 parm->group->num_attr++;
332 struct counter_attr_parm parm;
346 parm.group = group;
347 parm.prefix = "";
348 parm.name = "name";
349 parm.show = counter_device_attr_name_show;
350 parm.store = NULL;
351 parm.component = name_comp;
352 err = counter_attribute_create(&parm);
411 struct counter_attr_parm parm;
428 parm.group = group;
429 parm.prefix = "";
430 parm.name = ext->name;
431 parm.show = (ext->read) ? counter_signal_ext_show : NULL;
432 parm.store = (ext->write) ? counter_signal_ext_store : NULL;
433 parm.component = signal_ext_comp;
434 err = counter_attribute_create(&parm);
454 struct counter_attr_parm parm;
464 parm.group = group;
465 parm.prefix = "";
466 parm.name = "signal";
467 parm.show = (counter->ops->signal_read) ? counter_signal_show : NULL;
468 parm.store = NULL;
469 parm.component = signal_comp;
470 err = counter_attribute_create(&parm);
631 struct counter_attr_parm parm;
657 parm.group = group;
658 parm.prefix = prefix;
659 parm.name = "action";
660 parm.show = (counter->ops->action_get) ? counter_action_show : NULL;
661 parm.store = (counter->ops->action_set) ? counter_action_store : NULL;
662 parm.component = action_comp;
663 err = counter_attribute_create(&parm);
679 parm.group = group;
680 parm.prefix = prefix;
681 parm.name = "action_available";
682 parm.show = counter_synapse_action_available_show;
683 parm.store = NULL;
684 parm.component = avail_comp;
685 err = counter_attribute_create(&parm);
845 struct counter_attr_parm parm;
862 parm.group = group;
863 parm.prefix = "";
864 parm.name = ext->name;
865 parm.show = (ext->read) ? counter_count_ext_show : NULL;
866 parm.store = (ext->write) ? counter_count_ext_store : NULL;
867 parm.component = count_ext_comp;
868 err = counter_attribute_create(&parm);
913 struct counter_attr_parm parm;
925 parm.group = group;
926 parm.prefix = "";
927 parm.name = "count";
928 parm.show = (counter->ops->count_read) ? counter_count_show : NULL;
929 parm.store = (counter->ops->count_write) ? counter_count_store : NULL;
930 parm.component = count_comp;
931 err = counter_attribute_create(&parm);
946 parm.group = group;
947 parm.prefix = "";
948 parm.name = "function";
949 parm.show = (counter->ops->function_get) ? counter_function_show : NULL;
950 parm.store = (counter->ops->function_set) ? counter_function_store : NULL;
951 parm.component = func_comp;
952 err = counter_attribute_create(&parm);
968 parm.group = group;
969 parm.prefix = "";
970 parm.name = "function_available";
971 parm.show = counter_count_function_available_show;
972 parm.store = NULL;
973 parm.component = avail_comp;
974 err = counter_attribute_create(&parm);
1059 struct counter_attr_parm parm;
1068 parm.group = group;
1069 parm.prefix = "";
1070 parm.name = name;
1071 parm.show = counter_device_attr_size_show;
1072 parm.store = NULL;
1073 parm.component = size_comp;
1074 err = counter_attribute_create(&parm);
1116 struct counter_attr_parm parm;
1131 parm.group = group;
1132 parm.prefix = "";
1133 parm.name = counter->ext[i].name;
1134 parm.show = (counter->ext[i].read) ? counter_device_ext_show : NULL;
1135 parm.store = (counter->ext[i].write) ? counter_device_ext_store : NULL;
1136 parm.component = ext_comp;
1137 err = counter_attribute_create(&parm);