/drivers/net/wireless/st/cw1200/ |
D | scan.c | 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() 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 …]
|
D | pm.c | 190 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/ |
D | drm_mm.c | 736 void drm_mm_scan_init_with_range(struct drm_mm_scan *scan, in drm_mm_scan_init_with_range() argument 749 scan->mm = mm; in drm_mm_scan_init_with_range() 754 scan->color = color; in drm_mm_scan_init_with_range() 755 scan->alignment = alignment; in drm_mm_scan_init_with_range() 756 scan->remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0; in drm_mm_scan_init_with_range() 757 scan->size = size; in drm_mm_scan_init_with_range() 758 scan->mode = mode; in drm_mm_scan_init_with_range() 761 scan->range_start = start; in drm_mm_scan_init_with_range() 762 scan->range_end = end; in drm_mm_scan_init_with_range() 764 scan->hit_start = U64_MAX; in drm_mm_scan_init_with_range() [all …]
|
/drivers/net/wireless/ti/wl12xx/ |
D | scan.c | 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() 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/ |
D | scan.c | 615 struct iwl_scan_cmd *scan; in iwlagn_request_scan() local 659 scan = priv->scan_cmd; in iwlagn_request_scan() 660 memset(scan, 0, priv->scan_cmd_size); in iwlagn_request_scan() 662 scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; in iwlagn_request_scan() 663 scan->quiet_time = IWL_ACTIVE_QUIET_TIME; in iwlagn_request_scan() 681 scan->suspend_time = 0; in iwlagn_request_scan() 682 scan->max_out_time = cpu_to_le32(200 * 1024); in iwlagn_request_scan() 689 scan->suspend_time = cpu_to_le32(scan_suspend_time); in iwlagn_request_scan() 702 scan->quiet_time = cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwlagn_request_scan() 720 scan->direct_scan[p].id = WLAN_EID_SSID; in iwlagn_request_scan() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | scan.c | 40 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() 65 if (wl->scan.failed) { in wl1271_scan_complete_work() 142 struct conf_scan_settings *c = &wl->conf.scan; in wlcore_scan_get_channels() 342 if (wl->scan.state != WL1271_SCAN_STATE_IDLE) in wlcore_scan() 345 wl->scan.state = WL1271_SCAN_STATE_2GHZ_ACTIVE; in wlcore_scan() 348 wl->scan.ssid_len = ssid_len; in wlcore_scan() 349 memcpy(wl->scan.ssid, ssid, ssid_len); in wlcore_scan() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | README | 165 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/net/wireless/ath/ath9k/ |
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 = true; in ath_ant_try_scan() [all …]
|
/drivers/iio/orientation/ |
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.sampled_vals)); in dev_rot_capture_sample()
|
/drivers/media/rc/ |
D | rc-main.c | 159 .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 …]
|
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.rc_proto, scan.scancode)) { in lirc_transmit() 274 ret = ir_raw_encode_scancode(scan.rc_proto, scan.scancode, in lirc_transmit() 295 int carrier = ir_raw_encode_carrier(scan.rc_proto); in lirc_transmit()
|
/drivers/gpu/drm/i915/ |
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() 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, &vma->node)) { in i915_gem_evict_something() 300 while (ret == 0 && (node = drm_mm_scan_color_evict(&scan))) { in i915_gem_evict_something()
|
/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_buffer.c | 417 memcpy(hw->scan[ST_LSM6DSX_ID_GYRO].channels, in st_lsm6dsx_read_fifo() 419 sizeof(hw->scan[ST_LSM6DSX_ID_GYRO].channels)); in st_lsm6dsx_read_fifo() 420 offset += sizeof(hw->scan[ST_LSM6DSX_ID_GYRO].channels); in st_lsm6dsx_read_fifo() 423 memcpy(hw->scan[ST_LSM6DSX_ID_ACC].channels, in st_lsm6dsx_read_fifo() 425 sizeof(hw->scan[ST_LSM6DSX_ID_ACC].channels)); in st_lsm6dsx_read_fifo() 426 offset += sizeof(hw->scan[ST_LSM6DSX_ID_ACC].channels); in st_lsm6dsx_read_fifo() 429 memcpy(hw->scan[ST_LSM6DSX_ID_EXT0].channels, in st_lsm6dsx_read_fifo() 431 sizeof(hw->scan[ST_LSM6DSX_ID_EXT0].channels)); in st_lsm6dsx_read_fifo() 432 offset += sizeof(hw->scan[ST_LSM6DSX_ID_EXT0].channels); in st_lsm6dsx_read_fifo() 469 &hw->scan[ST_LSM6DSX_ID_GYRO], in st_lsm6dsx_read_fifo() [all …]
|
/drivers/iio/humidity/ |
D | hts221_buffer.c | 173 &hw->scan.channels[0], in hts221_buffer_handler_thread() 174 sizeof(hw->scan.channels[0])); in hts221_buffer_handler_thread() 181 &hw->scan.channels[1], in hts221_buffer_handler_thread() 182 sizeof(hw->scan.channels[1])); in hts221_buffer_handler_thread() 186 iio_push_to_buffers_with_timestamp(iio_dev, &hw->scan, in hts221_buffer_handler_thread()
|
D | am2315.c | 39 } 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/net/wireless/mediatek/mt76/mt76x2/ |
D | mcu.c | 16 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/media/pci/saa7134/ |
D | saa7134-tvaudio.c | 317 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/tests/ |
D | drm_mm_test.c | 1147 static void show_scan(struct kunit *test, const struct drm_mm_scan *scan) in show_scan() argument 1150 scan->hit_start, scan->hit_end, scan->size, scan->alignment, scan->color); in show_scan() 1186 static bool evict_nodes(struct kunit *test, struct drm_mm_scan *scan, in evict_nodes() argument 1196 if (drm_mm_scan_add_block(scan, &e->node)) in evict_nodes() 1200 if (!drm_mm_scan_remove_block(scan, &e->node)) in evict_nodes() 1206 scan->size, count, scan->alignment, scan->color); in evict_nodes() 1216 while ((node = drm_mm_scan_color_evict(scan))) { in evict_nodes() 1222 if (drm_mm_scan_color_evict(scan)) { in evict_nodes() 1235 struct drm_mm_scan scan; in evict_nothing() local 1241 drm_mm_scan_init(&scan, mm, 1, 0, 0, 0); in evict_nothing() [all …]
|
/drivers/rapidio/ |
D | rio.c | 1903 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/ |
D | as73211.c | 570 } 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/ |
D | mb1232.c | 49 } scan; member 124 data->scan.distance = mb1232_read_distance(data); in mb1232_trigger_handler() 125 if (data->scan.distance < 0) in mb1232_trigger_handler() 128 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, in mb1232_trigger_handler()
|
/drivers/iio/chemical/ |
D | pms7003.c | 80 } 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/ |
D | itg3200_buffer.c | 56 } 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()
|
/drivers/iio/accel/ |
D | mma7455_core.c | 62 } scan; member 100 mma7455->scan.channels, in mma7455_trigger_handler() 101 sizeof(mma7455->scan.channels)); in mma7455_trigger_handler() 105 iio_push_to_buffers_with_timestamp(indio_dev, &mma7455->scan, in mma7455_trigger_handler()
|
/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_trigger.c | 165 unsigned int scan; in inv_mpu6050_set_enable() local 169 scan = inv_scan_query(indio_dev); in inv_mpu6050_set_enable() 177 result = inv_mpu6050_switch_engine(st, false, ~scan); in inv_mpu6050_set_enable() 180 result = inv_mpu6050_switch_engine(st, true, scan); in inv_mpu6050_set_enable()
|