Home
last modified time | relevance | path

Searched refs:candidate (Results 1 – 25 of 66) sorted by relevance

123

/linux/drivers/staging/media/atomisp/pci/runtime/binary/src/
H A Dbinary.c1011 struct ia_css_binary_info *candidate = &xcandidate->sp; in ia_css_binary_find() local
1016 candidate, candidate->pipeline.mode, candidate->id); in ia_css_binary_find()
1023 if (!candidate->enable.continuous && in ia_css_binary_find()
1027 __LINE__, candidate->enable.continuous, in ia_css_binary_find()
1031 if (striped && candidate->iterator.num_stripes == 1) { in ia_css_binary_find()
1038 if (candidate->pipeline.isp_pipe_version != isp_pipe_version && in ia_css_binary_find()
1043 __LINE__, candidate->pipeline.isp_pipe_version, isp_pipe_version); in ia_css_binary_find()
1046 if (!candidate->enable.reduced_pipe && enable_reduced_pipe) { in ia_css_binary_find()
1048 __LINE__, candidate->enable.reduced_pipe, enable_reduced_pipe); in ia_css_binary_find()
1051 if (!candidate->enable.dvs_6axis && enable_dvs_6axis) { in ia_css_binary_find()
[all …]
/linux/fs/netfs/
H A Dfscache_cache.c61 struct fscache_cache *candidate, *cache, *unnamed = NULL; in fscache_lookup_cache() local
86 candidate = fscache_alloc_cache(name); in fscache_lookup_cache()
87 if (!candidate) in fscache_lookup_cache()
117 list_add_tail(&candidate->cache_link, &fscache_caches); in fscache_lookup_cache()
118 trace_fscache_cache(candidate->debug_id, in fscache_lookup_cache()
119 refcount_read(&candidate->ref), in fscache_lookup_cache()
122 return candidate; in fscache_lookup_cache()
129 cache->name = candidate->name; in fscache_lookup_cache()
130 candidate->name = NULL; in fscache_lookup_cache()
133 kfree(candidate->name); in fscache_lookup_cache()
[all …]
H A Dfscache_volume.c154 static void fscache_wait_on_volume_collision(struct fscache_volume *candidate, in fscache_wait_on_volume_collision() argument
157 wait_on_bit_timeout(&candidate->flags, FSCACHE_VOLUME_ACQUIRE_PENDING, in fscache_wait_on_volume_collision()
159 if (fscache_is_acquire_pending(candidate)) { in fscache_wait_on_volume_collision()
161 candidate->debug_id, collidee_debug_id); in fscache_wait_on_volume_collision()
163 wait_on_bit(&candidate->flags, FSCACHE_VOLUME_ACQUIRE_PENDING, in fscache_wait_on_volume_collision()
173 static bool fscache_hash_volume(struct fscache_volume *candidate) in fscache_hash_volume() argument
180 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1); in fscache_hash_volume()
185 if (fscache_volume_same(candidate, cursor)) { in fscache_hash_volume()
190 set_bit(FSCACHE_VOLUME_ACQUIRE_PENDING, &candidate->flags); in fscache_hash_volume()
196 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_volume()
[all …]
H A Dfscache_cookie.c382 static void fscache_wait_on_collision(struct fscache_cookie *candidate, in fscache_wait_on_collision() argument
391 candidate->debug_id, wait_for->debug_id); in fscache_wait_on_collision()
401 static bool fscache_hash_cookie(struct fscache_cookie *candidate) in fscache_hash_cookie() argument
408 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
413 if (fscache_cookie_same(candidate, cursor)) { in fscache_hash_cookie()
422 fscache_get_volume(candidate->volume, fscache_volume_get_cookie); in fscache_hash_cookie()
423 atomic_inc(&candidate->volume->n_cookies); in fscache_hash_cookie()
424 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_cookie()
425 set_bit(FSCACHE_COOKIE_IS_HASHED, &candidate->flags); in fscache_hash_cookie()
429 fscache_wait_on_collision(candidate, wait_for); in fscache_hash_cookie()
[all …]
/linux/fs/afs/
H A Dserver.c70 struct afs_server **candidate) in afs_install_server() argument
77 _enter("%p", candidate); in afs_install_server()
86 diff = memcmp(&(*candidate)->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server()
95 server = *candidate; in afs_install_server()
96 *candidate = NULL; in afs_install_server()
182 struct afs_server *server, *candidate = NULL; in afs_lookup_server() local
202 candidate = afs_alloc_server(cell, uuid); in afs_lookup_server()
203 if (!candidate) { in afs_lookup_server()
209 server = afs_install_server(cell, &candidate); in afs_lookup_server()
244 if (candidate) { in afs_lookup_server()
[all …]
H A Dvolume.c137 struct afs_volume *candidate, *volume; in afs_lookup_volume() local
139 candidate = afs_alloc_volume(params, vldb, &slist); in afs_lookup_volume()
140 if (IS_ERR(candidate)) in afs_lookup_volume()
141 return candidate; in afs_lookup_volume()
143 volume = afs_insert_volume_into_cell(params->cell, candidate); in afs_lookup_volume()
144 if (volume == candidate) in afs_lookup_volume()
147 afs_put_volume(candidate, afs_volume_trace_put_cell_dup); in afs_lookup_volume()
H A Dcell.c252 struct afs_cell *cell, *candidate, *cursor; in afs_lookup_cell() local
278 candidate = afs_alloc_cell(net, name, namesz, vllist); in afs_lookup_cell()
279 if (IS_ERR(candidate)) { in afs_lookup_cell()
280 _leave(" = %ld", PTR_ERR(candidate)); in afs_lookup_cell()
281 return candidate; in afs_lookup_cell()
307 cell = candidate; in afs_lookup_cell()
308 candidate = NULL; in afs_lookup_cell()
391 if (candidate) in afs_lookup_cell()
392 afs_put_cell(candidate, afs_cell_trace_put_candidate); in afs_lookup_cell()
/linux/security/keys/
H A Dkey.c52 struct key_user *candidate = NULL, *user; in key_user_lookup() local
74 if (!candidate) { in key_user_lookup()
80 candidate = kmalloc_obj(struct key_user); in key_user_lookup()
81 if (unlikely(!candidate)) in key_user_lookup()
92 refcount_set(&candidate->usage, 1); in key_user_lookup()
93 atomic_set(&candidate->nkeys, 0); in key_user_lookup()
94 atomic_set(&candidate->nikeys, 0); in key_user_lookup()
95 candidate->uid = uid; in key_user_lookup()
96 candidate->qnkeys = 0; in key_user_lookup()
97 candidate->qnbytes = 0; in key_user_lookup()
[all …]
/linux/drivers/net/wireless/realtek/rtl8xxxu/
H A D8192e.c1240 int i, candidate; in rtl8192eu_phy_iq_calibrate() local
1247 candidate = -1; in rtl8192eu_phy_iq_calibrate()
1259 candidate = 0; in rtl8192eu_phy_iq_calibrate()
1268 candidate = 0; in rtl8192eu_phy_iq_calibrate()
1275 candidate = 1; in rtl8192eu_phy_iq_calibrate()
1277 candidate = 3; in rtl8192eu_phy_iq_calibrate()
1290 if (candidate >= 0) { in rtl8192eu_phy_iq_calibrate()
1291 reg_e94 = result[candidate][0]; in rtl8192eu_phy_iq_calibrate()
1293 reg_e9c = result[candidate][1]; in rtl8192eu_phy_iq_calibrate()
1295 reg_ea4 = result[candidate][2]; in rtl8192eu_phy_iq_calibrate()
[all …]
H A D8723b.c1106 int i, candidate; in rtl8723bu_phy_iq_calibrate() local
1117 candidate = -1; in rtl8723bu_phy_iq_calibrate()
1131 candidate = 0; in rtl8723bu_phy_iq_calibrate()
1140 candidate = 0; in rtl8723bu_phy_iq_calibrate()
1147 candidate = 1; in rtl8723bu_phy_iq_calibrate()
1153 candidate = 3; in rtl8723bu_phy_iq_calibrate()
1155 candidate = -1; in rtl8723bu_phy_iq_calibrate()
1171 if (candidate >= 0) { in rtl8723bu_phy_iq_calibrate()
1172 reg_e94 = result[candidate][0]; in rtl8723bu_phy_iq_calibrate()
1174 reg_e9c = result[candidate][1]; in rtl8723bu_phy_iq_calibrate()
[all …]
H A D8188f.c1222 int i, candidate; in rtl8188fu_phy_iq_calibrate() local
1235 candidate = -1; in rtl8188fu_phy_iq_calibrate()
1245 candidate = 0; in rtl8188fu_phy_iq_calibrate()
1253 candidate = 0; in rtl8188fu_phy_iq_calibrate()
1259 candidate = 1; in rtl8188fu_phy_iq_calibrate()
1265 candidate = 3; in rtl8188fu_phy_iq_calibrate()
1267 candidate = -1; in rtl8188fu_phy_iq_calibrate()
1283 if (candidate >= 0) { in rtl8188fu_phy_iq_calibrate()
1284 reg_e94 = result[candidate][0]; in rtl8188fu_phy_iq_calibrate()
1286 reg_e9c = result[candidate][1]; in rtl8188fu_phy_iq_calibrate()
[all …]
H A D8192f.c1452 int i, candidate; in rtl8192fu_phy_iq_calibrate() local
1465 candidate = -1; in rtl8192fu_phy_iq_calibrate()
1476 candidate = 0; in rtl8192fu_phy_iq_calibrate()
1484 candidate = 0; in rtl8192fu_phy_iq_calibrate()
1490 candidate = 1; in rtl8192fu_phy_iq_calibrate()
1496 candidate = 3; in rtl8192fu_phy_iq_calibrate()
1498 candidate = -1; in rtl8192fu_phy_iq_calibrate()
1503 if (candidate >= 0) { in rtl8192fu_phy_iq_calibrate()
1504 reg_e94 = result[candidate][0]; in rtl8192fu_phy_iq_calibrate()
1505 reg_e9c = result[candidate][1]; in rtl8192fu_phy_iq_calibrate()
[all …]
H A D8710b.c1410 int i, candidate; in rtl8710bu_phy_iq_calibrate() local
1421 candidate = -1; in rtl8710bu_phy_iq_calibrate()
1431 candidate = 0; in rtl8710bu_phy_iq_calibrate()
1439 candidate = 0; in rtl8710bu_phy_iq_calibrate()
1445 candidate = 1; in rtl8710bu_phy_iq_calibrate()
1451 candidate = 3; in rtl8710bu_phy_iq_calibrate()
1453 candidate = -1; in rtl8710bu_phy_iq_calibrate()
1458 if (candidate >= 0) { in rtl8710bu_phy_iq_calibrate()
1459 reg_e94 = result[candidate][0]; in rtl8710bu_phy_iq_calibrate()
1460 reg_e9c = result[candidate][1]; in rtl8710bu_phy_iq_calibrate()
[all …]
H A Dcore.c2717 int result[][8], int candidate, bool tx_only) in rtl8xxxu_fill_iqk_matrix_a() argument
2729 x = result[candidate][0]; in rtl8xxxu_fill_iqk_matrix_a()
2745 y = result[candidate][1]; in rtl8xxxu_fill_iqk_matrix_a()
2771 reg = result[candidate][2]; in rtl8xxxu_fill_iqk_matrix_a()
2778 reg = result[candidate][3] & 0x3F; in rtl8xxxu_fill_iqk_matrix_a()
2785 reg = (result[candidate][3] >> 6) & 0xF; in rtl8xxxu_fill_iqk_matrix_a()
2794 int result[][8], int candidate, bool tx_only) in rtl8xxxu_fill_iqk_matrix_b() argument
2806 x = result[candidate][4]; in rtl8xxxu_fill_iqk_matrix_b()
2822 y = result[candidate][5]; in rtl8xxxu_fill_iqk_matrix_b()
2848 reg = result[candidate][6]; in rtl8xxxu_fill_iqk_matrix_b()
[all …]
/linux/fs/erofs/
H A Dnamei.c95 void *candidate = ERR_PTR(-ENOENT); in erofs_find_target_block() local
140 if (!IS_ERR(candidate)) in erofs_find_target_block()
149 candidate = de; in erofs_find_target_block()
154 if (!IS_ERR(candidate)) in erofs_find_target_block()
158 return candidate; in erofs_find_target_block()
/linux/net/rxrpc/
H A Dpeer_object.c337 struct rxrpc_peer *peer, *candidate; in rxrpc_lookup_peer() local
354 candidate = rxrpc_create_peer(local, srx, hash_key, gfp); in rxrpc_lookup_peer()
355 if (!candidate) { in rxrpc_lookup_peer()
368 &candidate->hash_link, hash_key); in rxrpc_lookup_peer()
369 list_add_tail(&candidate->keepalive_link, in rxrpc_lookup_peer()
376 rxrpc_free_peer(candidate); in rxrpc_lookup_peer()
378 peer = candidate; in rxrpc_lookup_peer()
H A Dconn_client.c252 struct rxrpc_bundle *bundle, *candidate; in rxrpc_look_up_bundle() local
291 candidate = rxrpc_alloc_bundle(call, gfp); in rxrpc_look_up_bundle()
292 if (!candidate) in rxrpc_look_up_bundle()
318 rb_link_node(&candidate->local_node, parent, pp); in rxrpc_look_up_bundle()
319 rb_insert_color(&candidate->local_node, &local->client_bundles); in rxrpc_look_up_bundle()
320 call->bundle = rxrpc_get_bundle(candidate, rxrpc_bundle_get_client_call); in rxrpc_look_up_bundle()
326 rxrpc_free_bundle(candidate); in rxrpc_look_up_bundle()
/linux/drivers/dma/
H A Dof-dma.c355 struct dma_chan *chan, *candidate = NULL; in of_dma_xlate_by_chan_id() local
362 candidate = chan; in of_dma_xlate_by_chan_id()
366 if (!candidate) in of_dma_xlate_by_chan_id()
369 return dma_get_slave_channel(candidate); in of_dma_xlate_by_chan_id()
/linux/security/tomoyo/
H A Ddomain.c709 const struct tomoyo_path_info *candidate; in tomoyo_find_next_domain() local
750 candidate = &exename; in tomoyo_find_next_domain()
757 candidate = ptr->aggregated_name; in tomoyo_find_next_domain()
763 retval = tomoyo_execute_permission(&ee->r, candidate); in tomoyo_find_next_domain()
775 candidate = ee->r.param.path.matched_path; in tomoyo_find_next_domain()
814 candidate)) { in tomoyo_find_next_domain()
819 candidate->name); in tomoyo_find_next_domain()
830 old_domain->ns->name, candidate->name); in tomoyo_find_next_domain()
852 old_domain->domainname->name, candidate->name); in tomoyo_find_next_domain()
/linux/tools/testing/selftests/kvm/lib/
H A Dsparsebit.c1169 struct node *candidate = NULL; in sparsebit_next_set() local
1182 candidate = nodep; in sparsebit_next_set()
1183 if (candidate->idx <= lowest_possible) { in sparsebit_next_set()
1192 if (!candidate) in sparsebit_next_set()
1195 assert(candidate->mask != 0); in sparsebit_next_set()
1204 assert(candidate->idx > lowest_possible); in sparsebit_next_set()
1206 return node_first_set(candidate, 0); in sparsebit_next_set()
1217 start = lowest_possible - candidate->idx; in sparsebit_next_set()
1219 if (start < MASK_BITS && candidate->mask >= (1 << start)) in sparsebit_next_set()
1220 return node_first_set(candidate, start); in sparsebit_next_set()
[all …]
/linux/kernel/power/
H A Dsuspend_test.c130 struct rtc_device *candidate = to_rtc_device(dev); in has_wakealarm() local
132 if (!test_bit(RTC_FEATURE_ALARM, candidate->features)) in has_wakealarm()
134 if (!device_may_wakeup(candidate->dev.parent)) in has_wakealarm()
/linux/drivers/iio/
H A Dindustrialio-gts-helper.c208 int *candidate = &scales[t_idx][i * 2]; in do_combined_scaletable() local
211 if (scale_smaller(candidate, &all_scales[new_idx - 2])) { in do_combined_scaletable()
212 all_scales[new_idx] = candidate[0]; in do_combined_scaletable()
213 all_scales[new_idx + 1] = candidate[1]; in do_combined_scaletable()
219 if (!scale_smaller(candidate, &all_scales[chk])) in do_combined_scaletable()
222 if (scale_eq(candidate, &all_scales[chk])) in do_combined_scaletable()
227 all_scales[chk] = candidate[0]; in do_combined_scaletable()
228 all_scales[chk + 1] = candidate[1]; in do_combined_scaletable()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_mlme.c1694 , struct wlan_network **candidate, struct wlan_network *competitor) in rtw_check_roaming_candidate() argument
1718 if (*candidate && (*candidate)->network.rssi >= competitor->network.rssi) in rtw_check_roaming_candidate()
1722 *candidate = competitor; in rtw_check_roaming_candidate()
1735 struct wlan_network *candidate = NULL; in rtw_select_roaming_candidate() local
1749 rtw_check_roaming_candidate(mlme, &candidate, pnetwork); in rtw_select_roaming_candidate()
1752 if (!candidate) { in rtw_select_roaming_candidate()
1756 mlme->roam_network = candidate; in rtw_select_roaming_candidate()
1758 if (!memcmp(candidate->network.mac_address, mlme->roam_tgt_addr, ETH_ALEN)) in rtw_select_roaming_candidate()
1775 , struct wlan_network **candidate, struct wlan_network *competitor) in rtw_check_join_candidate() argument
1804 if (!*candidate || (*candidate)->network.rssi < competitor->network.rssi) { in rtw_check_join_candidate()
[all …]
/linux/Documentation/admin-guide/mm/
H A Dksm.rst129 candidate for merging match the checksum of an empty
162 Historically KSM checked every candidate page for each scan. It did
182 specifies the target scan time in seconds to scan all the candidate
295 The number of candidate pages for KSM is dynamic. It can be often observed
296 that during the startup of an application more candidate pages need to be
298 sized for the maximum number of candidate pages. The scan time advisor can
302 number of candidate pages to scan. Two advisors are implemented: none and
309 scan all the KSM candidate pages. The parameter ``advisor_target_scan_time``
310 decides how aggressive the scan time advisor scans candidate pages. Lower
/linux/security/apparmor/
H A Ddomain.c395 struct aa_profile *profile, *candidate = NULL; in find_attach() local
474 candidate = profile; in find_attach()
484 candidate = profile; in find_attach()
489 if (!candidate || conflict) { in find_attach()
497 candidate = aa_get_newest_profile(candidate); in find_attach()
500 return &candidate->label; in find_attach()

123