/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
H A D | scan.c | 11 #include "scan.h" 17 static int cw1200_scan_start(struct cw1200_common *priv, struct wsm_scan *scan) in cw1200_scan_start() argument 31 scan->type, scan->num_channels, scan->flags); in cw1200_scan_start() 33 for (i = 0; i < scan->num_channels; ++i) in cw1200_scan_start() 34 tmo += scan->ch[i].max_chan_time + 10; in cw1200_scan_start() 37 atomic_set(&priv->scan.in_progress, 1); in cw1200_scan_start() 40 queue_delayed_work(priv->workqueue, &priv->scan.timeout, in cw1200_scan_start() 42 ret = wsm_scan(priv, scan); in cw1200_scan_start() 131 struct wsm_scan scan = { cw1200_scan_work() local 370 struct wsm_scan scan = { cw1200_probe_work() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/ |
H A D | scan.c | 11 #include "scan.h" 17 static int cw1200_scan_start(struct cw1200_common *priv, struct wsm_scan *scan) in cw1200_scan_start() argument 31 scan->type, scan->num_channels, scan->flags); in cw1200_scan_start() 33 for (i = 0; i < scan->num_channels; ++i) in cw1200_scan_start() 34 tmo += scan->ch[i].max_chan_time + 10; in cw1200_scan_start() 37 atomic_set(&priv->scan.in_progress, 1); in cw1200_scan_start() 40 queue_delayed_work(priv->workqueue, &priv->scan.timeout, in cw1200_scan_start() 42 ret = wsm_scan(priv, scan); in cw1200_scan_start() 131 struct wsm_scan scan = { cw1200_scan_work() local 370 struct wsm_scan scan = { cw1200_probe_work() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_mm.c | 690 * DOC: lru scan roster 700 * interfaces. First a scan operation needs to be initialized with 710 * in the scan mode no other operation is allowed. 713 * reported true) in the scan, and any overlapping nodes after color adjustment 717 * scan operation even begins this is linear in the number of objects. It 723 * @scan: scan state 724 * @mm: drm_mm to scan 736 * As long as the scan list is non-empty, no other operations than 737 * adding/removing nodes to/from the scan lis 739 drm_mm_scan_init_with_range(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, enum drm_mm_insert_mode mode) drm_mm_scan_init_with_range() argument 783 drm_mm_scan_add_block(struct drm_mm_scan *scan, struct drm_mm_node *node) drm_mm_scan_add_block() argument 874 drm_mm_scan_remove_block(struct drm_mm_scan *scan, struct drm_mm_node *node) drm_mm_scan_remove_block() argument 915 drm_mm_scan_color_evict(struct drm_mm_scan *scan) drm_mm_scan_color_evict() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_mm.c | 687 * DOC: lru scan roster 697 * interfaces. First a scan operation needs to be initialized with 707 * in the scan mode no other operation is allowed. 710 * reported true) in the scan, and any overlapping nodes after color adjustment 714 * scan operation even begins this is linear in the number of objects. It 720 * @scan: scan state 721 * @mm: drm_mm to scan 733 * As long as the scan list is non-empty, no other operations than 734 * adding/removing nodes to/from the scan lis 736 drm_mm_scan_init_with_range(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, enum drm_mm_insert_mode mode) drm_mm_scan_init_with_range() argument 780 drm_mm_scan_add_block(struct drm_mm_scan *scan, struct drm_mm_node *node) drm_mm_scan_add_block() argument 871 drm_mm_scan_remove_block(struct drm_mm_scan *scan, struct drm_mm_node *node) drm_mm_scan_remove_block() argument 912 drm_mm_scan_color_evict(struct drm_mm_scan *scan) drm_mm_scan_color_evict() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl12xx/ |
H A D | scan.c | 9 #include "scan.h" 18 struct conf_scan_settings *c = &wl->conf.scan; in wl1271_get_scan_channels() 27 if (!test_bit(i, wl->scan.scanned_ch) && in wl1271_get_scan_channels() 31 * In passive scans, we scan all remaining in wl1271_get_scan_channels() 33 * In active scans, we only scan channels not in wl1271_get_scan_channels() 69 set_bit(i, wl->scan.scanned_ch); in wl1271_get_scan_channels() 91 if (!passive && wl->scan.req->n_ssids == 0) in wl1271_scan_send() 101 if (wl->conf.scan.split_scan_timeout) in wl1271_scan_send() 107 /* scan on the dev role if the regular one is not started */ in wl1271_scan_send() 120 cmd->params.n_ch = wl1271_get_scan_channels(wl, wl->scan in wl1271_scan_send() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl12xx/ |
H A D | scan.c | 9 #include "scan.h" 18 struct conf_scan_settings *c = &wl->conf.scan; in wl1271_get_scan_channels() 27 if (!test_bit(i, wl->scan.scanned_ch) && in wl1271_get_scan_channels() 31 * In passive scans, we scan all remaining in wl1271_get_scan_channels() 33 * In active scans, we only scan channels not in wl1271_get_scan_channels() 69 set_bit(i, wl->scan.scanned_ch); in wl1271_get_scan_channels() 91 if (!passive && wl->scan.req->n_ssids == 0) in wl1271_scan_send() 101 if (wl->conf.scan.split_scan_timeout) in wl1271_scan_send() 107 /* scan on the dev role if the regular one is not started */ in wl1271_scan_send() 120 cmd->params.n_ch = wl1271_get_scan_channels(wl, wl->scan in wl1271_scan_send() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | scan.c | 19 /* For active scan, listen ACTIVE_DWELL_TIME (msec) on each channel after 28 /* For passive scan, listen PASSIVE_DWELL_TIME (msec) on each channel. 30 * For the most reliable scan, set > AP beacon interval (typically 100msec). */ 50 * to receive scan abort command or it does not perform in iwl_send_scan_abort() 51 * hardware scan currently */ in iwl_send_scan_abort() 63 /* The scan abort will return 1 for success or in iwl_send_scan_abort() 65 * due to simply not being in an active scan which in iwl_send_scan_abort() 66 * can occur if we send the scan abort before we in iwl_send_scan_abort() 67 * the microcode has notified us that a scan is in iwl_send_scan_abort() 84 /* check if scan wa in iwl_complete_scan() 619 struct iwl_scan_cmd *scan; iwlagn_request_scan() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | scan.c | 15 /* For active scan, listen ACTIVE_DWELL_TIME (msec) on each channel after 24 /* For passive scan, listen PASSIVE_DWELL_TIME (msec) on each channel. 26 * For the most reliable scan, set > AP beacon interval (typically 100msec). */ 46 * to receive scan abort command or it does not perform in iwl_send_scan_abort() 47 * hardware scan currently */ in iwl_send_scan_abort() 59 /* The scan abort will return 1 for success or in iwl_send_scan_abort() 61 * due to simply not being in an active scan which in iwl_send_scan_abort() 62 * can occur if we send the scan abort before we in iwl_send_scan_abort() 63 * the microcode has notified us that a scan is in iwl_send_scan_abort() 80 /* check if scan wa in iwl_complete_scan() 615 struct iwl_scan_cmd *scan; iwlagn_request_scan() local [all...] |
/kernel/linux/linux-5.10/lib/zlib_deflate/ |
H A D | deflate.c | 564 register Byte *scan = s->window + s->strstart; /* current string */ in longest_match() local 582 register ush scan_start = *(ush*)scan; in longest_match() 583 register ush scan_end = *(ush*)(scan+best_len-1); in longest_match() 586 register Byte scan_end1 = scan[best_len-1]; in longest_match() 587 register Byte scan_end = scan[best_len]; in longest_match() 620 /* It is not necessary to compare scan[2] and match[2] since they are in longest_match() 629 Assert(scan[2] == match[2], "scan[2]?"); in longest_match() 630 scan++, match++; in longest_match() 632 } while (*(ush*)(scan in longest_match() [all...] |
/kernel/linux/linux-6.6/lib/zlib_deflate/ |
H A D | deflate.c | 571 register Byte *scan = s->window + s->strstart; /* current string */ in longest_match() local 589 register ush scan_start = *(ush*)scan; in longest_match() 590 register ush scan_end = *(ush*)(scan+best_len-1); in longest_match() 593 register Byte scan_end1 = scan[best_len-1]; in longest_match() 594 register Byte scan_end = scan[best_len]; in longest_match() 627 /* It is not necessary to compare scan[2] and match[2] since they are in longest_match() 636 Assert(scan[2] == match[2], "scan[2]?"); in longest_match() 637 scan++, match++; in longest_match() 639 } while (*(ush*)(scan in longest_match() [all...] |
/kernel/linux/linux-5.10/arch/sparc/mm/ |
H A D | io-unit.c | 99 unsigned long rotor, scan, limit; in iounit_get_area() local 116 scan = rotor; in iounit_get_area() 117 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area() 118 if (scan + npages > limit) { in iounit_get_area() 121 scan = iounit->limit[j - 1]; in iounit_get_area() 129 for (k = 1, scan++; k < npages; k++) in iounit_get_area() 130 if (test_bit(scan++, iounit->bmap)) in iounit_get_area() 132 iounit->rotor[j - 1] = (scan < limit) ? scan in iounit_get_area() [all...] |
/kernel/linux/linux-6.6/arch/sparc/mm/ |
H A D | io-unit.c | 100 unsigned long rotor, scan, limit; in iounit_get_area() local 117 scan = rotor; in iounit_get_area() 118 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area() 119 if (scan + npages > limit) { in iounit_get_area() 122 scan = iounit->limit[j - 1]; in iounit_get_area() 130 for (k = 1, scan++; k < npages; k++) in iounit_get_area() 131 if (test_bit(scan++, iounit->bmap)) in iounit_get_area() 133 iounit->rotor[j - 1] = (scan < limit) ? scan in iounit_get_area() [all...] |
/kernel/linux/linux-5.10/tools/power/cpupower/utils/ |
H A D | cpufreq-set.c | 66 const char *scan; in string_to_frequency() local 74 for (scan = str; isdigit(*scan) || *scan == '.'; scan++) { in string_to_frequency() 75 if (*scan == '.' && match_count == 0) in string_to_frequency() 77 else if (*scan == '.' && match_count == 1) in string_to_frequency() 81 if (*scan) { in string_to_frequency() 85 scan[i] && tolower(scan[ in string_to_frequency() [all...] |
/kernel/linux/linux-6.6/tools/power/cpupower/utils/ |
H A D | cpufreq-set.c | 66 const char *scan; in string_to_frequency() local 74 for (scan = str; isdigit(*scan) || *scan == '.'; scan++) { in string_to_frequency() 75 if (*scan == '.' && match_count == 0) in string_to_frequency() 77 else if (*scan == '.' && match_count == 1) in string_to_frequency() 81 if (*scan) { in string_to_frequency() 85 scan[i] && tolower(scan[ in string_to_frequency() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
H A D | scan.c | 16 #include "scan.h" 40 if (wl->scan.state == WL1271_SCAN_STATE_IDLE) in wl1271_scan_complete_work() 46 * Rearm the tx watchdog just before idling scan. This in wl1271_scan_complete_work() 51 wl->scan.state = WL1271_SCAN_STATE_IDLE; in wl1271_scan_complete_work() 52 memset(wl->scan.scanned_ch, 0, sizeof(wl->scan.scanned_ch)); in wl1271_scan_complete_work() 53 wl->scan.req = NULL; in wl1271_scan_complete_work() 67 if (wl->scan.failed) { in wl1271_scan_complete_work() 142 /* configure dwell times according to scan type */ in wlcore_scan_get_channels() 144 struct conf_scan_settings *c = &wl->conf.scan; in wlcore_scan_get_channels() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wlcore/ |
H A D | scan.c | 16 #include "scan.h" 40 if (wl->scan.state == WL1271_SCAN_STATE_IDLE) in wl1271_scan_complete_work() 46 * Rearm the tx watchdog just before idling scan. This in wl1271_scan_complete_work() 51 wl->scan.state = WL1271_SCAN_STATE_IDLE; in wl1271_scan_complete_work() 52 memset(wl->scan.scanned_ch, 0, sizeof(wl->scan.scanned_ch)); in wl1271_scan_complete_work() 53 wl->scan.req = NULL; in wl1271_scan_complete_work() 65 if (wl->scan.failed) { in wl1271_scan_complete_work() 140 /* configure dwell times according to scan type */ in wlcore_scan_get_channels() 142 struct conf_scan_settings *c = &wl->conf.scan; in wlcore_scan_get_channels() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | memfd.c | 78 int error, scan; in memfd_wait_for_pins() local 83 for (scan = 0; scan <= LAST_SCAN; scan++) { in memfd_wait_for_pins() 90 if (!scan) in memfd_wait_for_pins() 92 else if (schedule_timeout_killable((HZ << scan) / 200)) in memfd_wait_for_pins() 93 scan = LAST_SCAN; in memfd_wait_for_pins() 108 * On the last scan, we clean up all those tags in memfd_wait_for_pins() 112 if (scan == LAST_SCAN) in memfd_wait_for_pins()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A D | i915_gem_evict.c | 52 mark_free(struct drm_mm_scan *scan, in mark_free() argument 61 return drm_mm_scan_add_block(scan, &vma->node); in mark_free() 94 struct drm_mm_scan scan; in i915_gem_evict_something() local 121 drm_mm_scan_init_with_range(&scan, &vm->mm, in i915_gem_evict_something() 142 * scan to the end. The assumption is that the working set in i915_gem_evict_something() 146 * Given that assumption, the MRU order of the scan list is in i915_gem_evict_something() 147 * fairly static, and keeping it in least-recently scan order in i915_gem_evict_something() 161 if (mark_free(&scan, vma, flags, &eviction_list)) in i915_gem_evict_something() 167 ret = drm_mm_scan_remove_block(&scan, &vma->node); in i915_gem_evict_something() 213 if (drm_mm_scan_remove_block(&scan, in i915_gem_evict_something() [all...] |
/kernel/linux/linux-6.6/drivers/iio/orientation/ |
H A D | hid-sensor-rotation.c | 24 } scan; member 82 vals[i] = rot_state->scan.sampled_vals[i]; in dev_rot_read_raw() 157 iio_push_to_buffers_with_timestamp(indio_dev, &rot_state->scan, in dev_rot_proc_event() 177 rot_state->scan.sampled_vals[0] = ((s16 *)raw_data)[0]; in dev_rot_capture_sample() 178 rot_state->scan.sampled_vals[1] = ((s16 *)raw_data)[1]; in dev_rot_capture_sample() 179 rot_state->scan.sampled_vals[2] = ((s16 *)raw_data)[2]; in dev_rot_capture_sample() 180 rot_state->scan.sampled_vals[3] = ((s16 *)raw_data)[3]; in dev_rot_capture_sample() 182 memcpy(&rot_state->scan.sampled_vals, raw_data, in dev_rot_capture_sample() 183 sizeof(rot_state->scan.sampled_vals)); in dev_rot_capture_sample() 187 sizeof(rot_state->scan in dev_rot_capture_sample() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | antenna.c | 313 antcomb->scan = false; in ath_select_ant_div_from_quick_scan() 441 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 451 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 458 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 468 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 500 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 509 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 515 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 524 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 598 antcomb->scan in ath_ant_try_scan() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | antenna.c | 313 antcomb->scan = false; in ath_select_ant_div_from_quick_scan() 441 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 451 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 458 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 468 if (!(antcomb->scan) && in ath_ant_div_conf_fast_divbias() 500 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 509 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 515 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 524 if (!antcomb->scan && (alt_ratio > antcomb->ant_ratio)) in ath_ant_div_conf_fast_divbias() 598 antcomb->scan in ath_ant_try_scan() [all...] |
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | lirc_dev.c | 243 struct lirc_scancode scan; in lirc_transmit() local 245 if (n != sizeof(scan)) { in lirc_transmit() 250 if (copy_from_user(&scan, buf, sizeof(scan))) { in lirc_transmit() 255 if (scan.flags || scan.keycode || scan.timestamp || in lirc_transmit() 256 scan.rc_proto > RC_PROTO_MAX) { in lirc_transmit() 262 if (scan.scancode > U32_MAX || in lirc_transmit() 263 !rc_validate_scancode(scan in lirc_transmit() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
H A D | i915_gem_evict.c | 96 mark_free(struct drm_mm_scan *scan, in mark_free() argument 109 return drm_mm_scan_add_block(scan, &vma->node); in mark_free() 155 struct drm_mm_scan scan; in i915_gem_evict_something() local 183 drm_mm_scan_init_with_range(&scan, &vm->mm, in i915_gem_evict_something() 211 * scan to the end. The assumption is that the working set in i915_gem_evict_something() 215 * Given that assumption, the MRU order of the scan list is in i915_gem_evict_something() 216 * fairly static, and keeping it in least-recently scan order in i915_gem_evict_something() 230 if (mark_free(&scan, ww, vma, flags, &eviction_list)) in i915_gem_evict_something() 236 ret = drm_mm_scan_remove_block(&scan, &vma->node); in i915_gem_evict_something() 283 if (drm_mm_scan_remove_block(&scan, in i915_gem_evict_something() [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | memfd.c | 79 int error, scan; in memfd_wait_for_pins() local 84 for (scan = 0; scan <= LAST_SCAN; scan++) { in memfd_wait_for_pins() 91 if (!scan) in memfd_wait_for_pins() 93 else if (schedule_timeout_killable((HZ << scan) / 200)) in memfd_wait_for_pins() 94 scan = LAST_SCAN; in memfd_wait_for_pins() 109 * On the last scan, we clean up all those tags in memfd_wait_for_pins() 113 if (scan == LAST_SCAN) in memfd_wait_for_pins()
|
/kernel/linux/linux-5.10/drivers/iio/humidity/ |
H A D | hts221_buffer.c | 170 &hw->scan.channels[0], in hts221_buffer_handler_thread() 171 sizeof(hw->scan.channels[0])); in hts221_buffer_handler_thread() 178 &hw->scan.channels[1], in hts221_buffer_handler_thread() 179 sizeof(hw->scan.channels[1])); in hts221_buffer_handler_thread() 183 iio_push_to_buffers_with_timestamp(iio_dev, &hw->scan, in hts221_buffer_handler_thread()
|