Home
last modified time | relevance | path

Searched refs:scan (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/drivers/net/wireless/st/cw1200/
Dscan.c17 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()
44 atomic_set(&priv->scan.in_progress, 0); in cw1200_scan_start()
45 cancel_delayed_work_sync(&priv->scan.timeout); in cw1200_scan_start()
87 down(&priv->scan.lock); in cw1200_hw_scan()
[all …]
Dpm.c190 if (down_trylock(&priv->scan.lock)) in cw1200_wow_suspend()
233 cw1200_suspend_work(&priv->scan.probe_work); in cw1200_wow_suspend()
285 cw1200_resume_work(priv, &priv->scan.probe_work, in cw1200_wow_suspend()
296 up(&priv->scan.lock); in cw1200_wow_suspend()
318 up(&priv->scan.lock); in cw1200_wow_resume()
342 cw1200_resume_work(priv, &priv->scan.probe_work, in cw1200_wow_resume()
/drivers/gpu/drm/
Ddrm_mm.c739 void drm_mm_scan_init_with_range(struct drm_mm_scan *scan, in drm_mm_scan_init_with_range() argument
752 scan->mm = mm; in drm_mm_scan_init_with_range()
757 scan->color = color; in drm_mm_scan_init_with_range()
758 scan->alignment = alignment; in drm_mm_scan_init_with_range()
759 scan->remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0; in drm_mm_scan_init_with_range()
760 scan->size = size; in drm_mm_scan_init_with_range()
761 scan->mode = mode; in drm_mm_scan_init_with_range()
764 scan->range_start = start; in drm_mm_scan_init_with_range()
765 scan->range_end = end; in drm_mm_scan_init_with_range()
767 scan->hit_start = U64_MAX; in drm_mm_scan_init_with_range()
[all …]
/drivers/net/wireless/ti/wl12xx/
Dscan.c18 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()
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()
120 cmd->params.n_ch = wl1271_get_scan_channels(wl, wl->scan.req, in wl1271_scan_send()
129 cmd->params.n_probe_reqs = wl->conf.scan.num_probe_reqs; in wl1271_scan_send()
138 if (wl->scan.ssid_len) { in wl1271_scan_send()
139 cmd->params.ssid_len = wl->scan.ssid_len; in wl1271_scan_send()
140 memcpy(cmd->params.ssid, wl->scan.ssid, wl->scan.ssid_len); in wl1271_scan_send()
[all …]
/drivers/net/wireless/intel/iwlwifi/dvm/
Dscan.c619 struct iwl_scan_cmd *scan; in iwlagn_request_scan() local
657 scan = priv->scan_cmd; in iwlagn_request_scan()
658 memset(scan, 0, scan_cmd_size); in iwlagn_request_scan()
660 scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; in iwlagn_request_scan()
661 scan->quiet_time = IWL_ACTIVE_QUIET_TIME; in iwlagn_request_scan()
679 scan->suspend_time = 0; in iwlagn_request_scan()
680 scan->max_out_time = cpu_to_le32(200 * 1024); in iwlagn_request_scan()
687 scan->suspend_time = cpu_to_le32(scan_suspend_time); in iwlagn_request_scan()
700 scan->quiet_time = cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwlagn_request_scan()
718 scan->direct_scan[p].id = WLAN_EID_SSID; in iwlagn_request_scan()
[all …]
/drivers/net/wireless/ti/wlcore/
Dscan.c40 if (wl->scan.state == WL1271_SCAN_STATE_IDLE) 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()
144 struct conf_scan_settings *c = &wl->conf.scan; in wlcore_scan_get_channels()
344 if (wl->scan.state != WL1271_SCAN_STATE_IDLE) in wlcore_scan()
347 wl->scan.state = WL1271_SCAN_STATE_2GHZ_ACTIVE; in wlcore_scan()
350 wl->scan.ssid_len = ssid_len; in wlcore_scan()
351 memcpy(wl->scan.ssid, ssid, ssid_len); in wlcore_scan()
[all …]
/drivers/net/wireless/marvell/libertas/
DREADME165 This command is used to do a specific scan.
178 Display the current contents of the driver scan table (ie. get the
179 scan results).
187 Initiate a customized scan and retrieve the results
197 bssid=xx:xx:xx:xx:xx:xx specify a BSSID filter for the scan
198 ssid="[SSID]" specify a SSID filter for the scan
199 keep=[0 or 1] keep the previous scan results (1), discard (0)
200 dur=[scan time] time to scan for each channel in milliseconds
205 The bssid and ssid fields, if blank, will produce an unfiltered scan.
210 1) Perform a passive scan on all channels for 20 ms per channel:
[all …]
/drivers/gpu/drm/i915/display/
Dintel_panel.c64 const struct drm_display_mode *scan, *best_mode = NULL; in intel_panel_edid_downclock_mode() local
68 list_for_each_entry(scan, &connector->base.probed_modes, head) { in intel_panel_edid_downclock_mode()
76 if (is_downclock_mode(scan, fixed_mode) && in intel_panel_edid_downclock_mode()
77 scan->clock < best_clock) { in intel_panel_edid_downclock_mode()
82 best_clock = scan->clock; in intel_panel_edid_downclock_mode()
83 best_mode = scan; in intel_panel_edid_downclock_mode()
106 const struct drm_display_mode *scan; in intel_panel_edid_fixed_mode() local
113 list_for_each_entry(scan, &connector->base.probed_modes, head) { in intel_panel_edid_fixed_mode()
114 if ((scan->type & DRM_MODE_TYPE_PREFERRED) == 0) in intel_panel_edid_fixed_mode()
117 fixed_mode = drm_mode_duplicate(&dev_priv->drm, scan); in intel_panel_edid_fixed_mode()
[all …]
/drivers/net/wireless/ath/ath9k/
Dantenna.c313 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 = true; in ath_ant_try_scan()
[all …]
/drivers/iio/orientation/
Dhid-sensor-rotation.c24 } 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.sampled_vals)); in dev_rot_capture_sample()
/drivers/gpu/drm/i915/
Di915_gem_evict.c53 mark_free(struct drm_mm_scan *scan, in mark_free() argument
62 return drm_mm_scan_add_block(scan, &vma->node); in mark_free()
106 struct drm_mm_scan scan; in i915_gem_evict_something() local
133 drm_mm_scan_init_with_range(&scan, &vm->mm, in i915_gem_evict_something()
173 if (mark_free(&scan, vma, flags, &eviction_list)) in i915_gem_evict_something()
179 ret = drm_mm_scan_remove_block(&scan, &vma->node); in i915_gem_evict_something()
225 if (drm_mm_scan_remove_block(&scan, &vma->node)) in i915_gem_evict_something()
239 while (ret == 0 && (node = drm_mm_scan_color_evict(&scan))) { in i915_gem_evict_something()
/drivers/media/rc/
Drc-main.c159 .scan = empty,
223 rc_map->scan = kmalloc(rc_map->alloc, GFP_KERNEL); in ir_create_table()
224 if (!rc_map->scan) { in ir_create_table()
247 kfree(rc_map->scan); in ir_free_table()
248 rc_map->scan = NULL; in ir_free_table()
267 struct rc_map_table *oldscan = rc_map->scan; in ir_resize_table()
292 memcpy(newscan, rc_map->scan, rc_map->len * sizeof(struct rc_map_table)); in ir_resize_table()
293 rc_map->scan = newscan; in ir_resize_table()
318 int old_keycode = rc_map->scan[index].keycode; in ir_update_mapping()
324 index, rc_map->scan[index].scancode); in ir_update_mapping()
[all …]
Dlirc_dev.c254 struct lirc_scancode scan; in lirc_transmit() local
256 if (n != sizeof(scan)) { in lirc_transmit()
261 if (copy_from_user(&scan, buf, sizeof(scan))) { in lirc_transmit()
266 if (scan.flags || scan.keycode || scan.timestamp || in lirc_transmit()
267 scan.rc_proto > RC_PROTO_MAX) { in lirc_transmit()
273 if (scan.scancode > U32_MAX || in lirc_transmit()
274 !rc_validate_scancode(scan.rc_proto, scan.scancode)) { in lirc_transmit()
285 ret = ir_raw_encode_scancode(scan.rc_proto, scan.scancode, in lirc_transmit()
306 int carrier = ir_raw_encode_carrier(scan.rc_proto); in lirc_transmit()
/drivers/net/wireless/mediatek/mt76/mt76x2/
Dmcu.c16 u8 bw_index, bool scan) in mt76x2_mcu_set_channel() argument
20 u8 scan; in mt76x2_mcu_set_channel() member
30 .scan = scan, in mt76x2_mcu_set_channel()
/drivers/iio/humidity/
Dhts221_buffer.c172 &hw->scan.channels[0], in hts221_buffer_handler_thread()
173 sizeof(hw->scan.channels[0])); in hts221_buffer_handler_thread()
180 &hw->scan.channels[1], in hts221_buffer_handler_thread()
181 sizeof(hw->scan.channels[1])); in hts221_buffer_handler_thread()
185 iio_push_to_buffers_with_timestamp(iio_dev, &hw->scan, in hts221_buffer_handler_thread()
Dam2315.c39 } scan; member
173 data->scan.chans[0] = sensor_data.hum_data; in am2315_trigger_handler()
174 data->scan.chans[1] = sensor_data.temp_data; in am2315_trigger_handler()
179 data->scan.chans[i] = (bit ? sensor_data.temp_data : in am2315_trigger_handler()
186 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, in am2315_trigger_handler()
/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c416 memcpy(hw->scan[ST_LSM6DSX_ID_GYRO].channels, in st_lsm6dsx_read_fifo()
418 sizeof(hw->scan[ST_LSM6DSX_ID_GYRO].channels)); in st_lsm6dsx_read_fifo()
419 offset += sizeof(hw->scan[ST_LSM6DSX_ID_GYRO].channels); in st_lsm6dsx_read_fifo()
422 memcpy(hw->scan[ST_LSM6DSX_ID_ACC].channels, in st_lsm6dsx_read_fifo()
424 sizeof(hw->scan[ST_LSM6DSX_ID_ACC].channels)); in st_lsm6dsx_read_fifo()
425 offset += sizeof(hw->scan[ST_LSM6DSX_ID_ACC].channels); in st_lsm6dsx_read_fifo()
428 memcpy(hw->scan[ST_LSM6DSX_ID_EXT0].channels, in st_lsm6dsx_read_fifo()
430 sizeof(hw->scan[ST_LSM6DSX_ID_EXT0].channels)); in st_lsm6dsx_read_fifo()
431 offset += sizeof(hw->scan[ST_LSM6DSX_ID_EXT0].channels); in st_lsm6dsx_read_fifo()
461 &hw->scan[ST_LSM6DSX_ID_GYRO], in st_lsm6dsx_read_fifo()
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-tvaudio.c317 static int tvaudio_checkcarrier(struct saa7134_dev *dev, struct mainscan *scan) in tvaudio_checkcarrier() argument
321 if (!(dev->tvnorm->id & scan->std)) { in tvaudio_checkcarrier()
323 scan->carr / 1000, scan->carr % 1000, scan->name); in tvaudio_checkcarrier()
329 audio_dbg(1, "debug %d:", scan->carr); in tvaudio_checkcarrier()
331 tvaudio_setcarrier(dev,scan->carr+i,scan->carr+i); in tvaudio_checkcarrier()
344 tvaudio_setcarrier(dev,scan->carr-90,scan->carr-90); in tvaudio_checkcarrier()
350 tvaudio_setcarrier(dev,scan->carr+90,scan->carr+90); in tvaudio_checkcarrier()
360 scan->carr / 1000, scan->carr % 1000, in tvaudio_checkcarrier()
361 scan->name, value, left, right); in tvaudio_checkcarrier()
/drivers/gpu/drm/selftests/
Dtest-drm_mm.c1260 static void show_scan(const struct drm_mm_scan *scan) in show_scan() argument
1263 scan->hit_start, scan->hit_end, in show_scan()
1264 scan->size, scan->alignment, scan->color); in show_scan()
1304 static bool evict_nodes(struct drm_mm_scan *scan, in evict_nodes() argument
1317 if (drm_mm_scan_add_block(scan, &e->node)) in evict_nodes()
1321 if (!drm_mm_scan_remove_block(scan, &e->node)) in evict_nodes()
1326 scan->size, count, scan->alignment, scan->color); in evict_nodes()
1336 while ((node = drm_mm_scan_color_evict(scan))) { in evict_nodes()
1342 if (drm_mm_scan_color_evict(scan)) { in evict_nodes()
1355 struct drm_mm_scan scan; in evict_nothing() local
[all …]
/drivers/gpu/drm/msm/
Dmsm_gem_shrinker.c64 scan(struct msm_drm_private *priv, unsigned nr_to_scan, struct list_head *list, in scan() function
130 freed = scan(priv, sc->nr_to_scan, &priv->inactive_dontneed, purge); in msm_gem_shrinker_scan()
136 int evicted = scan(priv, sc->nr_to_scan - freed, in msm_gem_shrinker_scan()
197 unmapped += scan(priv, vmap_shrink_limit - unmapped, in msm_gem_shrinker_vmap()
/drivers/rapidio/
Drio.c1903 struct rio_scan_node *scan; in rio_register_scan() local
1919 list_for_each_entry(scan, &rio_scans, node) { in rio_register_scan()
1920 if (scan->mport_id == mport_id) { in rio_register_scan()
1929 scan = kzalloc(sizeof(*scan), GFP_KERNEL); in rio_register_scan()
1930 if (!scan) { in rio_register_scan()
1935 scan->mport_id = mport_id; in rio_register_scan()
1936 scan->ops = scan_ops; in rio_register_scan()
1955 list_add_tail(&scan->node, &rio_scans); in rio_register_scan()
1978 struct rio_scan_node *scan; in rio_unregister_scan() local
1992 list_for_each_entry(scan, &rio_scans, node) { in rio_unregister_scan()
[all …]
/drivers/iio/light/
Das73211.c570 } scan; in as73211_trigger_handler() local
592 .len = sizeof(scan.chan), in as73211_trigger_handler()
593 .buf = (u8 *)&scan.chan, in as73211_trigger_handler()
605 (char *)&scan.chan[1], 3 * sizeof(scan.chan[1])); in as73211_trigger_handler()
615 scan.chan[1] = cpu_to_le16(U16_MAX); in as73211_trigger_handler()
616 scan.chan[2] = cpu_to_le16(U16_MAX); in as73211_trigger_handler()
617 scan.chan[3] = cpu_to_le16(U16_MAX); in as73211_trigger_handler()
620 iio_push_to_buffers_with_timestamp(indio_dev, &scan, iio_get_time_ns(indio_dev)); in as73211_trigger_handler()
/drivers/iio/proximity/
Dmb1232.c47 } scan; member
122 data->scan.distance = mb1232_read_distance(data); in mb1232_trigger_handler()
123 if (data->scan.distance < 0) in mb1232_trigger_handler()
126 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, in mb1232_trigger_handler()
/drivers/iio/chemical/
Dpms7003.c80 } scan; member
121 state->scan.data[PM1] = in pms7003_trigger_handler()
123 state->scan.data[PM2P5] = in pms7003_trigger_handler()
125 state->scan.data[PM10] = in pms7003_trigger_handler()
129 iio_push_to_buffers_with_timestamp(indio_dev, &state->scan, in pms7003_trigger_handler()
/drivers/iio/gyro/
Ditg3200_buffer.c56 } scan; in itg3200_trigger_handler() local
58 int ret = itg3200_read_all_channels(st->i2c, scan.buf); in itg3200_trigger_handler()
62 iio_push_to_buffers_with_timestamp(indio_dev, &scan, pf->timestamp); in itg3200_trigger_handler()

12345678910>>...13