| /linux/tools/perf/util/ |
| H A D | parse-events.c | 11 #include "term.h" 66 struct parse_events_term *term; in get_config_str() local 71 list_for_each_entry(term, &head_terms->terms, list) in get_config_str() 72 if (term->type_term == type_term) in get_config_str() 73 return term->val.str; in get_config_str() 91 struct parse_events_term *term; in get_config_cpu() local 97 list_for_each_entry(term, &head_terms->terms, list) { in get_config_cpu() 100 if (term->type_term != PARSE_EVENTS__TERM_TYPE_CPU) in get_config_cpu() 103 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) { in get_config_cpu() 104 term_cpus = perf_cpu_map__new_int(term->val.num); in get_config_cpu() [all …]
|
| H A D | parse-events.y | 75 %type <term> event_term 76 %destructor { parse_events_term__delete ($$); } <term> 106 struct parse_events_term *term; member 238 * no name was on an event via a term, set the name to the entire text 489 struct parse_events_term *term = $3; variable 492 parse_events_term__delete(term); 495 list_add_tail(&term->list, &head->terms); 502 struct parse_events_term *term = $1; variable 507 list_add_tail(&term->list, &head->terms); 516 struct parse_events_term *term; variable [all …]
|
| H A D | parse-events.l | 113 static int term(yyscan_t scanner, enum parse_events__term_type type) in term() function 217 /* PE_NAME token when inside a config term list, allows ':'. */ 284 * Please update config_term_names when new static term is added. 286 config { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG); } 287 config1 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG1); } 288 config2 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG2); } 289 config3 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG3); } 290 config4 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG4); } 291 name { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NAME); } 292 period { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_SAMPLE_PERIOD); } [all …]
|
| H A D | parse-events.h | 91 /** @list: The term list the term is a part of. */ 94 * @config: The left-hand side of a term assignment, so the term 99 * @val: The right-hand side of a term assignment that can either be a 106 /** @type_val: The union variable in val to be used for the term. */ 109 * @type_term: A predefined term type or PARSE_EVENTS__TERM_TYPE_USER 114 * @err_term: The column index of the term from parsing, used during 123 /** @used: Was the term used during parameterized-eval. */ 126 * @weak: A term from the sysfs or json encoding of an event that 131 * @no_value: Is there no value. If a numeric term has no value then the 154 /* Holds returned terms for term parsing. */ [all …]
|
| H A D | pmu.c | 807 struct parse_events_term *term; in pmu_alias_terms() local 818 list_for_each_entry(term, &alias_terms.terms, list) { in pmu_alias_terms() 823 term->weak = true; in pmu_alias_terms() 1378 * by passing a config term on the command line. 1389 struct evsel_config_term *term = evsel__get_config_term(evsel, CFG_CHG); in evsel__set_config_if_unset() local 1391 if (term) in evsel__set_config_if_unset() 1392 user_bits = term->val.cfg_chg; in evsel__set_config_if_unset() 1477 * Term is a string term, and might be a param-term. Try to look up it's value 1479 * - We have a term like "base-or-format-term=param-term", 1480 * - We need to find the value supplied for "param-term" (with param-term named [all …]
|
| H A D | bpf-filter.l | 14 static int sample(enum perf_bpf_filter_term term) in sample() argument 17 perf_bpf_filter_lval.sample.term = term; in sample() 22 static int sample_part(enum perf_bpf_filter_term term, int part) in sample_part() argument 25 perf_bpf_filter_lval.sample.term = term; in sample_part() 30 static int sample_path(enum perf_bpf_filter_term term) in sample_path() argument 33 perf_bpf_filter_lval.sample.term = term; in sample_path()
|
| H A D | drm_pmu.c | 321 struct parse_events_term *term, in drm_pmu__config_term() argument 324 if (term->type_term == PARSE_EVENTS__TERM_TYPE_USER) { in drm_pmu__config_term() 325 int i = drm_pmu__index_for_event(drm, term->config); in drm_pmu__config_term() 335 parse_events_error__handle(err, term->err_val, in drm_pmu__config_term() 337 "unexpected drm event term (%s) %s", in drm_pmu__config_term() 338 parse_events__term_type_str(term->type_term), in drm_pmu__config_term() 339 term->config) < 0 in drm_pmu__config_term() 340 ? strdup("unexpected drm event term") in drm_pmu__config_term() 353 struct parse_events_term *term; in drm_pmu__config_terms() local 355 list_for_each_entry(term, &terms->terms, list) { in drm_pmu__config_terms() [all …]
|
| H A D | hwmon_pmu.c | 587 struct parse_events_term *term, in hwmon_pmu__config_term() argument 590 if (term->type_term == PARSE_EVENTS__TERM_TYPE_USER) { in hwmon_pmu__config_term() 594 if (parse_hwmon_filename(term->config, &type, &number, in hwmon_pmu__config_term() 612 !strcasecmp(term->config, value->name)) { in hwmon_pmu__config_term() 634 parse_events_error__handle(err, term->err_val, in hwmon_pmu__config_term() 636 "unexpected hwmon event term (%s) %s", in hwmon_pmu__config_term() 637 parse_events__term_type_str(term->type_term), in hwmon_pmu__config_term() 638 term->config) < 0 in hwmon_pmu__config_term() 639 ? strdup("unexpected hwmon event term") in hwmon_pmu__config_term() 652 struct parse_events_term *term; in hwmon_pmu__config_terms() local [all …]
|
| H A D | color_config.c | 32 char *term = getenv("TERM"); in perf_config_colorbool() local 33 if (term && strcmp(term, "dumb")) in perf_config_colorbool()
|
| H A D | bpf-filter.c | 7 * Each filter expression contains a sample flag (term) to compare, an operation 28 * task id (tgid) --------------+ | .... | | | ... | .term (+ part) 125 if (expr->term >= PBF_TERM_SAMPLE_START && expr->term <= PBF_TERM_SAMPLE_END && in check_sample_flags() 126 (evsel->core.attr.sample_type & (1 << (expr->term - PBF_TERM_SAMPLE_START)))) in check_sample_flags() 129 if (expr->term == PBF_TERM_UID || expr->term == PBF_TERM_GID) { in check_sample_flags() 144 info = get_sample_info(expr->term); in check_sample_flags() 147 evsel__name(evsel), expr->term); in check_sample_flags() 171 entry[i].term = expr->term; in get_filter_entries() 184 entry[i].term = group->term; in get_filter_entries() 612 struct perf_bpf_filter_expr *perf_bpf_filter_expr__new(enum perf_bpf_filter_term term, in perf_bpf_filter_expr__new() argument [all …]
|
| H A D | bpf-filter.y | 19 /* To indicate if the current term needs a pathname or not */ 35 enum perf_bpf_filter_term term; 88 $$ = perf_bpf_filter_expr__new($1.term, $1.part, $2, $3); 105 $$ = perf_bpf_filter_expr__new($1.term, $1.part, $2, cgroup_id);
|
| /linux/Documentation/userspace-api/media/ |
| H A D | glossary.rst | 17 A :term:`Device Driver` that implements the main logic to talk with 46 An API designed to control a subset of the :term:`Media Hardware` 54 A specialized :term:`Microprocessor`, with its architecture 60 An :term:`IC` circuit designed to be configured by a customer or 66 A subset of the :term:`Media Hardware`. For example an :term:`I²C` or 67 :term:`SPI` device, or an :term:`IP Block` inside an 68 :term:`SoC` or :term:`FPGA`. 71 A group of :term:`hardware components <Hardware Component>` that 73 instance, the :term:`SoC` :term:`ISP` :term:`IP Block` 77 Also known as :term:`Peripheral`. [all …]
|
| /linux/net/netfilter/ |
| H A D | xt_repldata.h | 5 * 'entries' and 'term' are never anywhere referenced by word in code. In fact, 13 * struct type##_error term; 25 struct type##_error *term; \ 27 __alignof__(*term) - 1) & ~(__alignof__(*term) - 1); \ 28 tbl = kzalloc(term_offset + sizeof(*term), GFP_KERNEL); \ 31 term = (struct type##_error *)&(((char *)tbl)[term_offset]); \ 33 *term = (struct type##_error)typ2##_ERROR_INIT; \
|
| H A D | nf_conntrack_ftp.c | 68 char term; member 77 .term = '\r', 85 .term = '\r', 101 .term = ')', 109 get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, u_int8_t term) in get_ipv6_addr() argument 112 int ret = in6_pton(src, min_t(size_t, dlen, 0xffff), (u8 *)dst, term, &end); in get_ipv6_addr() 119 int array_size, char sep, char term) in try_number() argument 136 if ((*data == term || !term) && i == array_size - 1) in try_number() 151 struct nf_conntrack_man *cmd, char term, in try_rfc959() argument 157 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959() [all …]
|
| /linux/drivers/infiniband/sw/siw/ |
| H A D | iwarp.h | 216 static inline u8 __rdmap_term_layer(struct iwarp_terminate *term) in __rdmap_term_layer() argument 218 return term->layer; in __rdmap_term_layer() 221 static inline void __rdmap_term_set_layer(struct iwarp_terminate *term, in __rdmap_term_set_layer() argument 224 term->layer = layer & 0xf; in __rdmap_term_set_layer() 227 static inline u8 __rdmap_term_etype(struct iwarp_terminate *term) in __rdmap_term_etype() argument 229 return term->etype; in __rdmap_term_etype() 232 static inline void __rdmap_term_set_etype(struct iwarp_terminate *term, in __rdmap_term_set_etype() argument 235 term->etype = etype & 0xf; in __rdmap_term_set_etype() 238 static inline u8 __rdmap_term_ecode(struct iwarp_terminate *term) in __rdmap_term_ecode() argument 240 return term->ecode; in __rdmap_term_ecode() [all …]
|
| /linux/lib/ |
| H A D | polynomial.c | 81 const struct polynomial_term *term = poly->terms; in polynomial_calc() local 89 * We walk over each degree term up to the free one, and perform in polynomial_calc() 90 * the redistributed multiplication of the term coefficient, its in polynomial_calc() 97 tmp = term->coef; in polynomial_calc() 98 for (deg = 0; deg < term->deg; ++deg) in polynomial_calc() 99 tmp = mult_frac(tmp, data, term->divider); in polynomial_calc() 100 ret += tmp / term->divider_leftover; in polynomial_calc() 101 } while ((term++)->deg); in polynomial_calc()
|
| /linux/drivers/pinctrl/intel/ |
| H A D | pinctrl-tangier.c | 275 u32 value, term; in tng_config_get() local 283 term = (value & BUFCFG_PUPD_VAL_MASK) >> BUFCFG_PUPD_VAL_SHIFT; in tng_config_get() 295 switch (term) { in tng_config_get() 316 switch (term) { in tng_config_get() 361 u32 mask, term, value = 0; in tng_config_set_pin() local 371 term = BUFCFG_PUPD_VAL_50K; in tng_config_set_pin() 375 term = BUFCFG_PUPD_VAL_20K; in tng_config_set_pin() 378 term = BUFCFG_PUPD_VAL_2K; in tng_config_set_pin() 381 term = BUFCFG_PUPD_VAL_910; in tng_config_set_pin() 388 value = BUFCFG_PU_EN | (term << BUFCFG_PUPD_VAL_SHIFT); in tng_config_set_pin() [all …]
|
| /linux/Documentation/driver-api/thermal/ |
| H A D | power_allocator.rst | 104 thermal governor allows the configuration of two proportional term 105 constants: `k_po` and `k_pu`. `k_po` is the proportional term 108 proportional term constant during temperature undershoot periods 123 proportional term will be 2 * `sustainable_power`. The default value 133 The proportional term is proportional to the difference between the 158 Therefore, the proportional term alone linearly decreases power from 165 `k_i` configures the PID loop's integral term constant. This term 166 allows the PID controller to compensate for long term drift and for 170 integral term. This term is then multiplied by `k_i` and the result 177 `k_d` configures the PID loop's derivative term constant. It's
|
| /linux/tools/perf/Documentation/ |
| H A D | intel-acr.txt | 11 term and a bitmask ("acr_mask") for each relevant event specifying the 26 The acr_mask term is a hexadecimal value representing a bitmask of the 34 ratio-to-prev Event Term 36 To simplify this, an event term "ratio-to-prev" is provided which is used 37 alongside the sample period term n or the -c/--count option. This would 46 ratio-to-prev is the ratio of the event using the term relative
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-h264.c | 65 * For long term references, frame_num is set to in v4l2_h264_init_reflist_builder() 139 /* Short term pics first. */ in v4l2_h264_p_ref_list_cmp() 147 * For frames, short term pics are in descending pic num order and long in v4l2_h264_p_ref_list_cmp() 148 * term ones in ascending order. For fields, the same direction is used in v4l2_h264_p_ref_list_cmp() 178 /* Short term pics first. */ in v4l2_h264_b0_ref_list_cmp() 185 /* Long term pics in ascending frame num order. */ in v4l2_h264_b0_ref_list_cmp() 195 * Short term pics with POC < cur POC first in POC descending order in v4l2_h264_b0_ref_list_cmp() 196 * followed by short term pics with POC > cur POC in POC ascending in v4l2_h264_b0_ref_list_cmp() 223 /* Short term pics first. */ in v4l2_h264_b1_ref_list_cmp() 230 /* Long term pics in ascending frame num order. */ in v4l2_h264_b1_ref_list_cmp() [all …]
|
| /linux/include/linux/ |
| H A D | polynomial.h | 10 * struct polynomial_term - one term descriptor of a polynomial 11 * @deg: degree of the term. 12 * @coef: multiplication factor of the term. 26 * @terms: polynomial terms, last term must have degree of 0
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-thermal | 122 The derivative term of the power allocator governor's PID 130 The integral term of the power allocator governor's PID 131 controller. This term allows the PID controller to compensate 132 for long term drift. For more information see 139 The proportional term of the power allocator governor's PID 149 The proportional term of the power allocator governor's PID 160 above which the integral term of the power allocator 162 example, if integral_cutoff is 0, then the integral term only
|
| /linux/sound/usb/ |
| H A D | mixer.c | 767 struct usb_audio_term *term); 770 struct usb_audio_term *term, in parse_term_uac1_iterm_unit() argument 775 term->type = le16_to_cpu(d->wTerminalType); in parse_term_uac1_iterm_unit() 776 term->channels = d->bNrChannels; in parse_term_uac1_iterm_unit() 777 term->chconfig = le16_to_cpu(d->wChannelConfig); in parse_term_uac1_iterm_unit() 778 term->name = d->iTerminal; in parse_term_uac1_iterm_unit() 783 struct usb_audio_term *term, in parse_term_uac2_iterm_unit() argument 790 err = __check_input_term(state, d->bCSourceID, term); in parse_term_uac2_iterm_unit() 794 /* save input term properties after recursion, in parse_term_uac2_iterm_unit() 797 term->id = id; in parse_term_uac2_iterm_unit() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_pid.c | 39 /* Calculate error term */ in wf_pid_run() 56 /* Calculate integral term */ in wf_pid_run() 61 /* Calculate derivative term */ in wf_pid_run() 94 /* Calculate error term */ in wf_cpu_pid_run() 114 /* Calculate integral term */ in wf_cpu_pid_run() 124 /* Calculate derivative term */ in wf_cpu_pid_run() 130 /* Calculate proportional term */ in wf_cpu_pid_run()
|
| /linux/drivers/media/usb/uvc/ |
| H A D | uvc_driver.c | 980 struct uvc_entity *unit, *term; in uvc_parse_standard_control() local 1064 term = uvc_alloc_new_entity(dev, type | UVC_TERM_INPUT, in uvc_parse_standard_control() 1066 if (IS_ERR(term)) in uvc_parse_standard_control() 1067 return PTR_ERR(term); in uvc_parse_standard_control() 1069 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) { in uvc_parse_standard_control() 1070 term->camera.bControlSize = n; in uvc_parse_standard_control() 1071 term->camera.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control() 1072 term->camera.wObjectiveFocalLengthMin = in uvc_parse_standard_control() 1074 term->camera.wObjectiveFocalLengthMax = in uvc_parse_standard_control() 1076 term->camera.wOcularFocalLength = in uvc_parse_standard_control() [all …]
|