| /linux/tools/perf/util/ |
| H A D | parse-events.c | 65 struct parse_events_term *term; in get_config_str() local 70 list_for_each_entry(term, &head_terms->terms, list) in get_config_str() 71 if (term->type_term == type_term) in get_config_str() 72 return term->val.str; in get_config_str() 90 struct parse_events_term *term; in get_config_cpu() local 96 list_for_each_entry(term, &head_terms->terms, list) { in get_config_cpu() 99 if (term->type_term != PARSE_EVENTS__TERM_TYPE_CPU) in get_config_cpu() 102 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) { in get_config_cpu() 103 term_cpus = perf_cpu_map__new_int(term->val.num); in get_config_cpu() 105 struct perf_pmu *pmu = perf_pmus__find(term->val.str); 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 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 517 int err = parse_events_term__str(&term, PARSE_EVENTS__TERM_TYPE_RAW, [all …]
|
| H A D | parse-events.l | 113 static int term(yyscan_t scanner, enum parse_events__term_type type) in term() function 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); } 293 freq { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_SAMPLE_FREQ); } 294 branch_type { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_BRANCH_SAMPLE_TYPE); } [all …]
|
| H A D | pmu.c | 782 struct parse_events_term *term; in pmu_alias_terms() local 793 list_for_each_entry(term, &alias_terms.terms, list) { in pmu_alias_terms() 798 term->weak = true; in pmu_alias_terms() 1440 static int pmu_resolve_param_term(struct parse_events_term *term, in pmu_resolve_param_term() argument 1448 t->config && !strcmp(t->config, term->config)) { in pmu_resolve_param_term() 1456 printf("Required parameter '%s' not specified\n", term->config); in pmu_resolve_param_term() 1489 struct parse_events_term *term, in pmu_config_term() argument 1502 if (term->used) in pmu_config_term() 1510 if (parse_events__is_hardcoded_term(term)) { in pmu_config_term() 1519 switch (term->type_term) { in pmu_config_term() [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 | 317 struct parse_events_term *term, in drm_pmu__index_for_event() 320 if (term->type_term == PARSE_EVENTS__TERM_TYPE_USER) { in drm_pmu__config_term() 321 int i = drm_pmu__index_for_event(drm, term->config); in drm_pmu__config_term() argument 331 parse_events_error__handle(err, term->err_val, in drm_pmu__config_term() 333 "unexpected drm event term (%s) %s", in drm_pmu__config_term() 334 parse_events__term_type_str(term->type_term), in drm_pmu__config_term() 335 term->config) < 0 in drm_pmu__config_term() 336 ? strdup("unexpected drm event term") in drm_pmu__config_term() 349 struct parse_events_term *term; in drm_pmu__config_terms() 351 list_for_each_entry(term, in drm_pmu__config_terms() 353 struct parse_events_term *term; drm_pmu__config_terms() local 367 struct parse_events_term *term = drm_pmu__check_alias() local [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() 637 parse_events__term_type_str(term->type_term), in hwmon_pmu__config_term() 638 term->config) < 0 in hwmon_pmu__config_term() 652 struct parse_events_term *term; in hwmon_pmu__config_terms() local 659 list_for_each_entry(term, &terms->terms, list) { in hwmon_pmu__config_terms() 660 if (hwmon_pmu__config_term(hwm, attr, term, err)) in hwmon_pmu__config_terms() [all …]
|
| H A D | bpf-filter.c | 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 621 expr->term = term; in perf_bpf_filter_expr__new()
|
| 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 | parse-events.h | 175 int parse_events__is_hardcoded_term(struct parse_events_term *term); 176 int parse_events_term__num(struct parse_events_term **term, 181 int parse_events_term__str(struct parse_events_term **term, 185 int parse_events_term__term(struct parse_events_term **term, 190 const struct parse_events_term *term); 191 void parse_events_term__delete(struct parse_events_term *term);
|
| H A D | bpf-filter.y | 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/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 …]
|
| H A D | siw_qp.c | 367 struct iwarp_terminate *term = NULL; in siw_send_terminate() local 394 term = kzalloc_obj(*term); in siw_send_terminate() 395 if (!term) in siw_send_terminate() 398 term->ddp_qn = cpu_to_be32(RDMAP_UNTAGGED_QN_TERMINATE); in siw_send_terminate() 399 term->ddp_mo = 0; in siw_send_terminate() 400 term->ddp_msn = cpu_to_be32(1); in siw_send_terminate() 402 iov[0].iov_base = term; in siw_send_terminate() 403 iov[0].iov_len = sizeof(*term); in siw_send_terminate() 410 kfree(term); in siw_send_terminate() 414 memcpy(&term->ctrl, &iwarp_pktinfo[RDMAP_TERMINATE].ctrl, in siw_send_terminate() [all …]
|
| /linux/net/netfilter/ |
| H A D | xt_repldata.h | 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; \
|
| /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 in parse_term_uac2_iterm_unit() 806 parse_term_uac3_iterm_unit(struct mixer_build * state,struct usb_audio_term * term,void * p1,int id) parse_term_uac3_iterm_unit() argument 836 parse_term_mixer_unit(struct mixer_build * state,struct usb_audio_term * term,void * p1,int id) parse_term_mixer_unit() argument 857 parse_term_selector_unit(struct mixer_build * state,struct usb_audio_term * term,void * p1,int id) parse_term_selector_unit() argument 875 parse_term_proc_unit(struct mixer_build * state,struct usb_audio_term * term,void * p1,int id,int vtype) parse_term_proc_unit() argument 904 parse_term_effect_unit(struct mixer_build * state,struct usb_audio_term * term,void * p1,int id) parse_term_effect_unit() argument 919 parse_term_uac2_clock_source(struct mixer_build * state,struct usb_audio_term * term,void * p1,int id) parse_term_uac2_clock_source() argument 931 parse_term_uac3_clock_source(struct mixer_build * state,struct usb_audio_term * term,void * p1,int id) parse_term_uac3_clock_source() argument 949 __check_input_term(struct mixer_build * state,int id,struct usb_audio_term * term) __check_input_term() argument 1021 check_input_term(struct mixer_build * state,int id,struct usb_audio_term * term) check_input_term() argument 1975 get_connector_control_name(struct usb_mixer_interface * mixer,struct usb_audio_term * term,bool is_input,char * name,int name_size) get_connector_control_name() argument 2006 build_connector_control(struct usb_mixer_interface * mixer,const struct usbmix_name_map * imap,struct usb_audio_term * term,bool is_input) build_connector_control() argument [all...] |
| /linux/include/drm/ |
| H A D | drm_fixed.h | 215 s64 sum = DRM_FIXED_ONE, term, y = x; in drm_fixp_exp() local 221 term = y; in drm_fixp_exp() 223 while (term >= tolerance) { in drm_fixp_exp() 224 sum = sum + term; in drm_fixp_exp() 226 term = drm_fixp_mul(term, div64_s64(y, count)); in drm_fixp_exp()
|
| /linux/tools/testing/selftests/arm64/signal/testcases/ |
| H A D | testcases.c | 12 struct _aarch64_ctx *term; in validate_extra_context() local 18 term = GET_RESV_NEXT_HEAD(&extra->head); in validate_extra_context() 19 if (!term || term->magic || term->size) { in validate_extra_context() 27 else if (extra->datap != (uint64_t)term + 0x10UL) in validate_extra_context()
|
| /linux/include/linux/usb/ |
| H A D | pd_vdo.h | 371 #define VDO_CABLE(hw, fw, cbl, lat, term, tx1d, tx2d, rx1d, rx2d, cur, vps, sopp, usbss) \ argument 373 | ((lat) & 0x7) << 13 | ((term) & 0x3) << 11 | (tx1d) << 10 \ 376 #define VDO_PCABLE(hw, fw, ver, conn, lat, term, vbm, cur, spd) \ argument 378 | ((conn) & 0x3) << 18 | ((lat) & 0xf) << 13 | ((term) & 0x3) << 11 \ 380 #define VDO_ACABLE1(hw, fw, ver, conn, lat, term, vbm, sbu, sbut, cur, vbt, sopp, spd) \ argument 382 | ((conn) & 0x3) << 18 | ((lat) & 0xf) << 13 | ((term) & 0x3) << 11 \
|
| /linux/tools/perf/tests/ |
| H A D | parse-events.c | 816 struct parse_events_term *term; in test__checkterms_simple() local 819 term = list_entry(terms->terms.next, struct parse_events_term, list); in test__checkterms_simple() 820 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple() 821 term->type_term == PARSE_EVENTS__TERM_TYPE_CONFIG); in test__checkterms_simple() 823 term->type_val == PARSE_EVENTS__TERM_TYPE_NUM); in test__checkterms_simple() 824 TEST_ASSERT_VAL("wrong val", term->val.num == 10); in test__checkterms_simple() 825 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config")); in test__checkterms_simple() 828 term = list_entry(term->list.next, struct parse_events_term, list); in test__checkterms_simple() 829 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple() [all...] |
| /linux/tools/testing/selftests/watchdog/ |
| H A D | watchdog-test.c | 68 static void term(int sig) in term() function 346 signal(SIGINT, term); in main() 347 signal(SIGTERM, term); in main() 348 signal(SIGKILL, term); in main() 349 signal(SIGQUIT, term); in main()
|
| /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 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/rust/quote/ |
| H A D | ext.rs | 54 fn append_terminated<I, U>(&mut self, iter: I, term: U) in append_terminated() 93 fn append_terminated<I, U>(&mut self, iter: I, term: U) in append_terminated() 101 term.to_tokens(self); in append_terminated()
|
| /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/drivers/net/can/dev/ |
| H A D | dev.c | 540 static int can_set_termination(struct net_device *ndev, u16 term) in can_set_termination() argument 545 if (term == priv->termination_gpio_ohms[CAN_TERMINATION_GPIO_ENABLED]) in can_set_termination() 560 u32 term; in can_get_termination() local 574 ret = device_property_read_u32(dev, "termination-ohms", &term); in can_get_termination() 581 if (term > U16_MAX) { in can_get_termination() 583 term, U16_MAX); in can_get_termination() 592 priv->termination_gpio_ohms[CAN_TERMINATION_GPIO_ENABLED] = term; in can_get_termination()
|