Home
last modified time | relevance | path

Searched refs:itr (Results 1 – 25 of 77) sorted by relevance

1234

/Linux-v5.4/tools/perf/arch/arm/util/
Dcs-etm.c37 struct auxtrace_record itr; member
59 static bool cs_etm_is_etmv4(struct auxtrace_record *itr, int cpu);
61 static int cs_etm_set_context_id(struct auxtrace_record *itr, in cs_etm_set_context_id() argument
70 ptr = container_of(itr, struct cs_etm_recording, itr); in cs_etm_set_context_id()
73 if (!cs_etm_is_etmv4(itr, cpu)) in cs_etm_set_context_id()
110 static int cs_etm_set_timestamp(struct auxtrace_record *itr, in cs_etm_set_timestamp() argument
119 ptr = container_of(itr, struct cs_etm_recording, itr); in cs_etm_set_timestamp()
122 if (!cs_etm_is_etmv4(itr, cpu)) in cs_etm_set_timestamp()
158 static int cs_etm_set_option(struct auxtrace_record *itr, in cs_etm_set_option() argument
172 err = cs_etm_set_context_id(itr, evsel, i); in cs_etm_set_option()
[all …]
/Linux-v5.4/tools/perf/arch/x86/util/
Dintel-bts.c40 struct auxtrace_record itr; member
56 intel_bts_info_priv_size(struct auxtrace_record *itr __maybe_unused, in intel_bts_info_priv_size()
62 static int intel_bts_info_fill(struct auxtrace_record *itr, in intel_bts_info_fill() argument
68 container_of(itr, struct intel_bts_recording, itr); in intel_bts_info_fill()
105 static int intel_bts_recording_options(struct auxtrace_record *itr, in intel_bts_recording_options() argument
110 container_of(itr, struct intel_bts_recording, itr); in intel_bts_recording_options()
245 static int intel_bts_parse_snapshot_options(struct auxtrace_record *itr, in intel_bts_parse_snapshot_options() argument
250 container_of(itr, struct intel_bts_recording, itr); in intel_bts_parse_snapshot_options()
268 static u64 intel_bts_reference(struct auxtrace_record *itr __maybe_unused) in intel_bts_reference()
307 static void intel_bts_recording_free(struct auxtrace_record *itr) in intel_bts_recording_free() argument
[all …]
Dintel-pt.c47 struct auxtrace_record itr; member
235 static int intel_pt_parse_snapshot_options(struct auxtrace_record *itr, in intel_pt_parse_snapshot_options() argument
240 container_of(itr, struct intel_pt_recording, itr); in intel_pt_parse_snapshot_options()
295 intel_pt_info_priv_size(struct auxtrace_record *itr, struct evlist *evlist) in intel_pt_info_priv_size() argument
298 container_of(itr, struct intel_pt_recording, itr); in intel_pt_info_priv_size()
316 static int intel_pt_info_fill(struct auxtrace_record *itr, in intel_pt_info_fill() argument
322 container_of(itr, struct intel_pt_recording, itr); in intel_pt_info_fill()
574 static int intel_pt_recording_options(struct auxtrace_record *itr, in intel_pt_recording_options() argument
579 container_of(itr, struct intel_pt_recording, itr); in intel_pt_recording_options()
809 static int intel_pt_snapshot_start(struct auxtrace_record *itr) in intel_pt_snapshot_start() argument
[all …]
/Linux-v5.4/tools/perf/arch/arm64/util/
Darm-spe.c30 struct auxtrace_record itr; member
36 arm_spe_info_priv_size(struct auxtrace_record *itr __maybe_unused, in arm_spe_info_priv_size()
42 static int arm_spe_info_fill(struct auxtrace_record *itr, in arm_spe_info_fill() argument
48 container_of(itr, struct arm_spe_recording, itr); in arm_spe_info_fill()
63 static int arm_spe_recording_options(struct auxtrace_record *itr, in arm_spe_recording_options() argument
68 container_of(itr, struct arm_spe_recording, itr); in arm_spe_recording_options()
144 static u64 arm_spe_reference(struct auxtrace_record *itr __maybe_unused) in arm_spe_reference()
153 static void arm_spe_recording_free(struct auxtrace_record *itr) in arm_spe_recording_free() argument
156 container_of(itr, struct arm_spe_recording, itr); in arm_spe_recording_free()
161 static int arm_spe_read_finish(struct auxtrace_record *itr, int idx) in arm_spe_read_finish() argument
[all …]
/Linux-v5.4/drivers/staging/uwb/
Dest.c246 unsigned itr; in uwb_est_register() local
256 for (itr = 0; itr < uwb_est_used; itr++) in uwb_est_register()
257 if (uwb_est[itr].type_event_high < type in uwb_est_register()
258 && uwb_est[itr].vendor < vendor in uwb_est_register()
259 && uwb_est[itr].product < product) in uwb_est_register()
263 if (itr < uwb_est_used) in uwb_est_register()
264 memmove(&uwb_est[itr+1], &uwb_est[itr], uwb_est_used - itr); in uwb_est_register()
265 uwb_est[itr].type_event_high = type << 8 | event_high; in uwb_est_register()
266 uwb_est[itr].vendor = vendor; in uwb_est_register()
267 uwb_est[itr].product = product; in uwb_est_register()
[all …]
Ddrp-avail.c129 unsigned long get_val(u8 *array, size_t itr, size_t len) in get_val() argument
132 size_t top = itr + len; in get_val()
136 while (itr < top) { in get_val()
194 size_t itr, len; in buffer_to_bmp() local
197 itr = 0; in buffer_to_bmp()
198 while (itr < buffer_size) { in buffer_to_bmp()
199 len = buffer_size - itr >= sizeof(val) ? in buffer_to_bmp()
200 sizeof(val) : buffer_size - itr; in buffer_to_bmp()
201 val = get_val(buffer, itr, len); in buffer_to_bmp()
202 bmp_itr[itr / sizeof(val)] = val; in buffer_to_bmp()
[all …]
/Linux-v5.4/drivers/staging/wusbcore/
Dmmc.c84 unsigned handle, itr; in wusbhc_mmcie_set() local
101 for (itr = 0; itr < wusbhc->mmcies_max - 1; itr++) { in wusbhc_mmcie_set()
102 if (wusbhc->mmcie[itr] == wuie) { in wusbhc_mmcie_set()
103 handle = itr; in wusbhc_mmcie_set()
106 if (wusbhc->mmcie[itr] == NULL) in wusbhc_mmcie_set()
107 handle = itr; in wusbhc_mmcie_set()
130 unsigned handle, itr; in wusbhc_mmcie_rm() local
133 for (itr = 0; itr < wusbhc->mmcies_max; itr++) { in wusbhc_mmcie_rm()
134 if (wusbhc->mmcie[itr] == wuie) { in wusbhc_mmcie_rm()
135 handle = itr; in wusbhc_mmcie_rm()
[all …]
Ddevconnect.c694 void *itr, *top; in wusb_dev_bos_grok() local
697 itr = (void *)bos + sizeof(*bos); in wusb_dev_bos_grok()
698 top = itr + desc_size - sizeof(*bos); in wusb_dev_bos_grok()
699 while (itr < top) { in wusb_dev_bos_grok()
700 struct usb_dev_cap_header *cap_hdr = itr; in wusb_dev_bos_grok()
703 if (top - itr < sizeof(*cap_hdr)) { in wusb_dev_bos_grok()
706 (int)(itr - (void *)bos), top - itr); in wusb_dev_bos_grok()
714 if (cap_size > top - itr) { in wusb_dev_bos_grok()
718 (int)(itr - (void *)bos), in wusb_dev_bos_grok()
719 cap_type, cap_size, top - itr); in wusb_dev_bos_grok()
[all …]
Drh.c411 size_t port_size, itr; in wusbhc_rh_create() local
416 for (itr = 0; itr < wusbhc->ports_max; itr++) in wusbhc_rh_create()
417 wusb_port_init(&wusbhc->port[itr]); in wusbhc_rh_create()
Dwa-nep.c80 void *itr; in wa_notif_dispatch() local
97 itr = nw->data; in wa_notif_dispatch()
104 notif_hdr = itr; in wa_notif_dispatch()
107 itr += notif_hdr->bLength; in wa_notif_dispatch()
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dadf_dev_mgr.c80 struct list_head *itr; in adf_find_vf() local
82 list_for_each(itr, &vfs_table) { in adf_find_vf()
84 list_entry(itr, struct vf_id_map, list); in adf_find_vf()
94 struct list_head *itr; in adf_get_vf_real_id() local
96 list_for_each(itr, &vfs_table) { in adf_get_vf_real_id()
98 list_entry(itr, struct vf_id_map, list); in adf_get_vf_real_id()
144 struct list_head *itr; in adf_devmgr_update_class_index() local
147 list_for_each(itr, &accel_table) { in adf_devmgr_update_class_index()
149 list_entry(itr, struct adf_accel_dev, list); in adf_devmgr_update_class_index()
186 struct list_head *itr; in adf_devmgr_add_dev() local
[all …]
/Linux-v5.4/tools/perf/util/
Dauxtrace.h318 int (*recording_options)(struct auxtrace_record *itr,
321 size_t (*info_priv_size)(struct auxtrace_record *itr,
323 int (*info_fill)(struct auxtrace_record *itr,
327 void (*free)(struct auxtrace_record *itr);
328 int (*snapshot_start)(struct auxtrace_record *itr);
329 int (*snapshot_finish)(struct auxtrace_record *itr);
330 int (*find_snapshot)(struct auxtrace_record *itr, int idx,
333 int (*parse_snapshot_options)(struct auxtrace_record *itr,
336 u64 (*reference)(struct auxtrace_record *itr);
337 int (*read_finish)(struct auxtrace_record *itr, int idx);
[all …]
Dauxtrace.c508 size_t auxtrace_record__info_priv_size(struct auxtrace_record *itr, in auxtrace_record__info_priv_size() argument
511 if (itr) in auxtrace_record__info_priv_size()
512 return itr->info_priv_size(itr, evlist); in auxtrace_record__info_priv_size()
522 int auxtrace_record__info_fill(struct auxtrace_record *itr, in auxtrace_record__info_fill() argument
527 if (itr) in auxtrace_record__info_fill()
528 return itr->info_fill(itr, session, auxtrace_info, priv_size); in auxtrace_record__info_fill()
532 void auxtrace_record__free(struct auxtrace_record *itr) in auxtrace_record__free() argument
534 if (itr) in auxtrace_record__free()
535 itr->free(itr); in auxtrace_record__free()
538 int auxtrace_record__snapshot_start(struct auxtrace_record *itr) in auxtrace_record__snapshot_start() argument
[all …]
/Linux-v5.4/include/linux/wimax/
Ddebug.h423 struct d_level *itr, *top; in d_submodule_set() local
426 for (itr = d_level, top = itr + d_level_size; itr < top; itr++) { in d_submodule_set()
428 if (itr->name == NULL) { in d_submodule_set()
430 tag, itr, index); in d_submodule_set()
433 if (!strcmp(itr->name, submodule)) { in d_submodule_set()
434 itr->level = level; in d_submodule_set()
/Linux-v5.4/tools/perf/arch/s390/util/
Dauxtrace.c19 static void cpumsf_free(struct auxtrace_record *itr) in cpumsf_free() argument
21 free(itr); in cpumsf_free()
24 static size_t cpumsf_info_priv_size(struct auxtrace_record *itr __maybe_unused, in cpumsf_info_priv_size()
31 cpumsf_info_fill(struct auxtrace_record *itr __maybe_unused, in cpumsf_info_fill()
41 cpumsf_reference(struct auxtrace_record *itr __maybe_unused) in cpumsf_reference()
76 cpumsf_parse_snapshot_options(struct auxtrace_record *itr __maybe_unused, in cpumsf_parse_snapshot_options()
/Linux-v5.4/net/dcb/
Ddcbnl.c1034 struct dcb_app_type *itr; in dcbnl_ieee_fill() local
1117 list_for_each_entry(itr, &dcb_app_list, list) { in dcbnl_ieee_fill()
1118 if (itr->ifindex == netdev->ifindex) { in dcbnl_ieee_fill()
1119 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), in dcbnl_ieee_fill()
1120 &itr->app); in dcbnl_ieee_fill()
1230 struct dcb_app_type *itr; in dcbnl_cee_fill() local
1276 list_for_each_entry(itr, &dcb_app_list, list) { in dcbnl_cee_fill()
1277 if (itr->ifindex == netdev->ifindex) { in dcbnl_cee_fill()
1284 itr->app.selector); in dcbnl_cee_fill()
1289 itr->app.protocol); in dcbnl_cee_fill()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/e1000e/
Dparam.c337 adapter->itr = InterruptThrottleRate[bd]; in e1000e_check_options()
344 if ((adapter->itr > 4) && in e1000e_check_options()
345 e1000_validate_option(&adapter->itr, &opt, adapter)) in e1000e_check_options()
346 adapter->itr = opt.def; in e1000e_check_options()
351 adapter->itr = opt.def; in e1000e_check_options()
356 if (adapter->itr > 4) in e1000e_check_options()
359 adapter->itr); in e1000e_check_options()
362 adapter->itr_setting = adapter->itr; in e1000e_check_options()
363 switch (adapter->itr) { in e1000e_check_options()
371 adapter->itr = 20000; in e1000e_check_options()
[all …]
/Linux-v5.4/drivers/staging/uwb/i1480/dfu/
Dusb.c101 size_t buffer_size, itr = 0; in i1480_usb_write() local
106 memcpy(i1480->cmd_buf, buffer + itr, buffer_size); in i1480_usb_write()
114 itr += result; in i1480_usb_write()
139 size_t itr, read_size = i1480->buf_size; in i1480_usb_read() local
149 for (itr = 0; itr < size; itr += read_size) { in i1480_usb_read()
150 size_t itr_addr = addr + itr; in i1480_usb_read()
151 size_t itr_size = min(read_size, size - itr); in i1480_usb_read()
156 i1480->cmd_buf + itr, itr_size, in i1480_usb_read()
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_txrx.c1140 unsigned int itr) in ice_adjust_itr_by_size_and_speed() argument
1144 itr += DIV_ROUND_UP(17 * (avg_pkt_size + 24), in ice_adjust_itr_by_size_and_speed()
1148 itr += DIV_ROUND_UP(34 * (avg_pkt_size + 24), in ice_adjust_itr_by_size_and_speed()
1152 itr += DIV_ROUND_UP(43 * (avg_pkt_size + 24), in ice_adjust_itr_by_size_and_speed()
1156 itr += DIV_ROUND_UP(68 * (avg_pkt_size + 24), in ice_adjust_itr_by_size_and_speed()
1160 itr += DIV_ROUND_UP(85 * (avg_pkt_size + 24), in ice_adjust_itr_by_size_and_speed()
1166 itr += DIV_ROUND_UP(170 * (avg_pkt_size + 24), in ice_adjust_itr_by_size_and_speed()
1171 if ((itr & ICE_ITR_MASK) > ICE_ITR_ADAPTIVE_MAX_USECS) { in ice_adjust_itr_by_size_and_speed()
1172 itr &= ICE_ITR_ADAPTIVE_LATENCY; in ice_adjust_itr_by_size_and_speed()
1173 itr += ICE_ITR_ADAPTIVE_MAX_USECS; in ice_adjust_itr_by_size_and_speed()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/e1000/
De1000_param.c438 adapter->itr = InterruptThrottleRate[bd]; in e1000_check_options()
439 switch (adapter->itr) { in e1000_check_options()
446 adapter->itr_setting = adapter->itr; in e1000_check_options()
447 adapter->itr = 20000; in e1000_check_options()
452 adapter->itr_setting = adapter->itr; in e1000_check_options()
453 adapter->itr = 20000; in e1000_check_options()
458 adapter->itr_setting = adapter->itr; in e1000_check_options()
461 e1000_validate_option(&adapter->itr, &opt, in e1000_check_options()
468 adapter->itr_setting = adapter->itr & ~3; in e1000_check_options()
473 adapter->itr = 20000; in e1000_check_options()
/Linux-v5.4/drivers/staging/wusbcore/host/
Dhwa-hc.c556 char *itr; in wa_fill_descr() local
564 itr = usb_dev->rawdescriptors[actconfig_idx]; in wa_fill_descr()
567 hdr = (struct usb_descriptor_header *) itr; in wa_fill_descr()
571 (itr - usb_dev->rawdescriptors[actconfig_idx]), in wa_fill_descr()
575 itr += hdr->bLength; in wa_fill_descr()
630 void *itr, *top; in hwahc_security_create() local
638 itr = usb_dev->rawdescriptors[index]; in hwahc_security_create()
640 top = itr + itr_size; in hwahc_security_create()
663 itr = (void *) secd + sizeof(*secd); in hwahc_security_create()
667 while (itr < top) { in hwahc_security_create()
[all …]
/Linux-v5.4/tools/testing/selftests/gpio/
Dgpio-mockup-chardev.c34 struct libmnt_iter *itr = NULL; in get_debugfs() local
42 itr = mnt_new_iter(MNT_ITER_FORWARD); in get_debugfs()
43 if (!itr) in get_debugfs()
49 while (mnt_table_next_fs(tb, itr, &fs) == 0) { in get_debugfs()
63 mnt_free_iter(itr); in get_debugfs()
/Linux-v5.4/drivers/net/ethernet/qualcomm/emac/
Demac-sgmii-qdf2432.c107 const struct emac_reg_write *itr, size_t size) in emac_reg_write_all() argument
111 for (i = 0; i < size; ++itr, ++i) in emac_reg_write_all()
112 writel(itr->val, base + itr->offset); in emac_reg_write_all()
Demac-sgmii-qdf2400.c117 const struct emac_reg_write *itr, size_t size) in emac_reg_write_all() argument
121 for (i = 0; i < size; ++itr, ++i) in emac_reg_write_all()
122 writel(itr->val, base + itr->offset); in emac_reg_write_all()
/Linux-v5.4/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c418 unsigned int avg_wire_size, packets, bytes, itr; in iavf_update_itr() local
430 itr = iavf_container_is_rx(q_vector, rc) ? in iavf_update_itr()
449 itr = rc->target_itr; in iavf_update_itr()
464 itr = IAVF_ITR_ADAPTIVE_LATENCY; in iavf_update_itr()
493 itr = rc->target_itr + IAVF_ITR_ADAPTIVE_MIN_INC; in iavf_update_itr()
494 if ((itr & IAVF_ITR_MASK) > IAVF_ITR_ADAPTIVE_MAX_USECS) { in iavf_update_itr()
495 itr &= IAVF_ITR_ADAPTIVE_LATENCY; in iavf_update_itr()
496 itr += IAVF_ITR_ADAPTIVE_MAX_USECS; in iavf_update_itr()
502 itr = min(q_vector->tx.current_itr, q_vector->rx.current_itr); in iavf_update_itr()
503 itr &= IAVF_ITR_MASK; in iavf_update_itr()
[all …]

1234