Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/staging/media/atomisp/pci/runtime/binary/src/
Dbinary.c1036 struct ia_css_binary_info *candidate = &xcandidate->sp; in __ia_css_binary_find() local
1041 candidate, candidate->pipeline.mode, candidate->id); in __ia_css_binary_find()
1048 if (!candidate->enable.continuous && in __ia_css_binary_find()
1052 __LINE__, candidate->enable.continuous, in __ia_css_binary_find()
1057 if (striped && candidate->iterator.num_stripes == 1) { in __ia_css_binary_find()
1064 if (candidate->pipeline.isp_pipe_version != isp_pipe_version && in __ia_css_binary_find()
1071 candidate->pipeline.isp_pipe_version, isp_pipe_version); in __ia_css_binary_find()
1074 if (!candidate->enable.reduced_pipe && enable_reduced_pipe) { in __ia_css_binary_find()
1078 candidate->enable.reduced_pipe, in __ia_css_binary_find()
1082 if (!candidate->enable.dvs_6axis && enable_dvs_6axis) { in __ia_css_binary_find()
[all …]
/linux-6.1.9/fs/fscache/
Dcache.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 …]
Dvolume.c141 static void fscache_wait_on_volume_collision(struct fscache_volume *candidate, in fscache_wait_on_volume_collision() argument
144 wait_var_event_timeout(&candidate->flags, in fscache_wait_on_volume_collision()
145 !fscache_is_acquire_pending(candidate), 20 * HZ); in fscache_wait_on_volume_collision()
146 if (fscache_is_acquire_pending(candidate)) { in fscache_wait_on_volume_collision()
148 candidate->debug_id, collidee_debug_id); in fscache_wait_on_volume_collision()
150 wait_var_event(&candidate->flags, !fscache_is_acquire_pending(candidate)); in fscache_wait_on_volume_collision()
159 static bool fscache_hash_volume(struct fscache_volume *candidate) in fscache_hash_volume() argument
166 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_volume_hash) - 1); in fscache_hash_volume()
171 if (fscache_volume_same(candidate, cursor)) { in fscache_hash_volume()
176 set_bit(FSCACHE_VOLUME_ACQUIRE_PENDING, &candidate->flags); in fscache_hash_volume()
[all …]
Dcookie.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-6.1.9/net/rxrpc/
Dconn_client.c270 struct rxrpc_bundle *bundle, *candidate; in rxrpc_look_up_bundle() local
305 candidate = rxrpc_alloc_bundle(cp, gfp); in rxrpc_look_up_bundle()
306 if (!candidate) in rxrpc_look_up_bundle()
332 candidate->debug_id = atomic_inc_return(&rxrpc_bundle_id); in rxrpc_look_up_bundle()
333 rb_link_node(&candidate->local_node, parent, pp); in rxrpc_look_up_bundle()
334 rb_insert_color(&candidate->local_node, &local->client_bundles); in rxrpc_look_up_bundle()
335 rxrpc_get_bundle(candidate); in rxrpc_look_up_bundle()
337 _leave(" = %u [new]", candidate->debug_id); in rxrpc_look_up_bundle()
338 return candidate; in rxrpc_look_up_bundle()
341 rxrpc_free_bundle(candidate); in rxrpc_look_up_bundle()
[all …]
Dpeer_object.c335 struct rxrpc_peer *peer, *candidate; in rxrpc_lookup_peer() local
352 candidate = rxrpc_create_peer(rx, local, srx, hash_key, gfp); in rxrpc_lookup_peer()
353 if (!candidate) { in rxrpc_lookup_peer()
366 &candidate->hash_link, hash_key); in rxrpc_lookup_peer()
367 list_add_tail(&candidate->keepalive_link, in rxrpc_lookup_peer()
374 rxrpc_free_peer(candidate); in rxrpc_lookup_peer()
376 peer = candidate; in rxrpc_lookup_peer()
/linux-6.1.9/fs/afs/
Dserver.c138 struct afs_server *candidate) in afs_install_server() argument
146 _enter("%p", candidate); in afs_install_server()
157 diff = memcmp(&candidate->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server()
177 rcu_assign_pointer(server->uuid_next, candidate); in afs_install_server()
178 candidate->uuid_prev = server; in afs_install_server()
179 server = candidate; in afs_install_server()
184 server = candidate; in afs_install_server()
287 struct afs_server *server, *candidate; in afs_lookup_server() local
302 candidate = afs_alloc_server(cell, uuid, alist); in afs_lookup_server()
303 if (!candidate) { in afs_lookup_server()
[all …]
Dvolume.c121 struct afs_volume *candidate, *volume; in afs_lookup_volume() local
123 candidate = afs_alloc_volume(params, vldb, type_mask); in afs_lookup_volume()
124 if (IS_ERR(candidate)) in afs_lookup_volume()
125 return candidate; in afs_lookup_volume()
127 volume = afs_insert_volume_into_cell(params->cell, candidate); in afs_lookup_volume()
128 if (volume != candidate) in afs_lookup_volume()
129 afs_put_volume(params->net, candidate, afs_volume_trace_put_cell_dup); in afs_lookup_volume()
Dcell.c238 struct afs_cell *cell, *candidate, *cursor; in afs_lookup_cell() local
258 candidate = afs_alloc_cell(net, name, namesz, vllist); in afs_lookup_cell()
259 if (IS_ERR(candidate)) { in afs_lookup_cell()
260 _leave(" = %ld", PTR_ERR(candidate)); in afs_lookup_cell()
261 return candidate; in afs_lookup_cell()
287 cell = candidate; in afs_lookup_cell()
288 candidate = NULL; in afs_lookup_cell()
326 if (candidate) in afs_lookup_cell()
327 afs_put_cell(candidate, afs_cell_trace_put_candidate); in afs_lookup_cell()
/linux-6.1.9/security/keys/
Dkey.c53 struct key_user *candidate = NULL, *user; in key_user_lookup() local
75 if (!candidate) { in key_user_lookup()
81 candidate = kmalloc(sizeof(struct key_user), GFP_KERNEL); in key_user_lookup()
82 if (unlikely(!candidate)) in key_user_lookup()
93 refcount_set(&candidate->usage, 1); in key_user_lookup()
94 atomic_set(&candidate->nkeys, 0); in key_user_lookup()
95 atomic_set(&candidate->nikeys, 0); in key_user_lookup()
96 candidate->uid = uid; in key_user_lookup()
97 candidate->qnkeys = 0; in key_user_lookup()
98 candidate->qnbytes = 0; in key_user_lookup()
[all …]
/linux-6.1.9/fs/erofs/
Dnamei.c97 void *candidate = ERR_PTR(-ENOENT); in find_target_block_classic() local
147 if (!IS_ERR(candidate)) in find_target_block_classic()
150 candidate = de; in find_target_block_classic()
161 if (!IS_ERR(candidate)) in find_target_block_classic()
165 return candidate; in find_target_block_classic()
/linux-6.1.9/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8192e.c1244 int i, candidate; in rtl8192eu_phy_iq_calibrate() local
1251 candidate = -1; in rtl8192eu_phy_iq_calibrate()
1263 candidate = 0; in rtl8192eu_phy_iq_calibrate()
1272 candidate = 0; in rtl8192eu_phy_iq_calibrate()
1279 candidate = 1; in rtl8192eu_phy_iq_calibrate()
1281 candidate = 3; in rtl8192eu_phy_iq_calibrate()
1294 if (candidate >= 0) { in rtl8192eu_phy_iq_calibrate()
1295 reg_e94 = result[candidate][0]; in rtl8192eu_phy_iq_calibrate()
1297 reg_e9c = result[candidate][1]; in rtl8192eu_phy_iq_calibrate()
1299 reg_ea4 = result[candidate][2]; in rtl8192eu_phy_iq_calibrate()
[all …]
Drtl8xxxu_8723b.c1090 int i, candidate; in rtl8723bu_phy_iq_calibrate() local
1101 candidate = -1; in rtl8723bu_phy_iq_calibrate()
1115 candidate = 0; in rtl8723bu_phy_iq_calibrate()
1124 candidate = 0; in rtl8723bu_phy_iq_calibrate()
1131 candidate = 1; in rtl8723bu_phy_iq_calibrate()
1137 candidate = 3; in rtl8723bu_phy_iq_calibrate()
1139 candidate = -1; in rtl8723bu_phy_iq_calibrate()
1155 if (candidate >= 0) { in rtl8723bu_phy_iq_calibrate()
1156 reg_e94 = result[candidate][0]; in rtl8723bu_phy_iq_calibrate()
1158 reg_e9c = result[candidate][1]; in rtl8723bu_phy_iq_calibrate()
[all …]
Drtl8xxxu_core.c2653 int result[][8], int candidate, bool tx_only) in rtl8xxxu_fill_iqk_matrix_a() argument
2665 x = result[candidate][0]; in rtl8xxxu_fill_iqk_matrix_a()
2681 y = result[candidate][1]; in rtl8xxxu_fill_iqk_matrix_a()
2707 reg = result[candidate][2]; in rtl8xxxu_fill_iqk_matrix_a()
2714 reg = result[candidate][3] & 0x3F; in rtl8xxxu_fill_iqk_matrix_a()
2721 reg = (result[candidate][3] >> 6) & 0xF; in rtl8xxxu_fill_iqk_matrix_a()
2730 int result[][8], int candidate, bool tx_only) in rtl8xxxu_fill_iqk_matrix_b() argument
2742 x = result[candidate][4]; in rtl8xxxu_fill_iqk_matrix_b()
2758 y = result[candidate][5]; in rtl8xxxu_fill_iqk_matrix_b()
2784 reg = result[candidate][6]; in rtl8xxxu_fill_iqk_matrix_b()
[all …]
/linux-6.1.9/drivers/dma/
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-6.1.9/kernel/power/
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-6.1.9/security/tomoyo/
Ddomain.c708 const struct tomoyo_path_info *candidate; in tomoyo_find_next_domain() local
739 candidate = &exename; in tomoyo_find_next_domain()
746 candidate = ptr->aggregated_name; in tomoyo_find_next_domain()
752 retval = tomoyo_execute_permission(&ee->r, candidate); in tomoyo_find_next_domain()
764 candidate = ee->r.param.path.matched_path; in tomoyo_find_next_domain()
804 candidate)) { in tomoyo_find_next_domain()
809 candidate->name); in tomoyo_find_next_domain()
820 old_domain->ns->name, candidate->name); in tomoyo_find_next_domain()
842 old_domain->domainname->name, candidate->name); in tomoyo_find_next_domain()
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dsparsebit.c1170 struct node *candidate = NULL; in sparsebit_next_set() local
1183 candidate = nodep; in sparsebit_next_set()
1184 if (candidate->idx <= lowest_possible) { in sparsebit_next_set()
1193 if (!candidate) in sparsebit_next_set()
1196 assert(candidate->mask != 0); in sparsebit_next_set()
1205 assert(candidate->idx > lowest_possible); in sparsebit_next_set()
1207 return node_first_set(candidate, 0); in sparsebit_next_set()
1218 start = lowest_possible - candidate->idx; in sparsebit_next_set()
1220 if (start < MASK_BITS && candidate->mask >= (1 << start)) in sparsebit_next_set()
1221 return node_first_set(candidate, start); in sparsebit_next_set()
[all …]
/linux-6.1.9/drivers/staging/rtl8723bs/core/
Drtw_mlme.c1709 , struct wlan_network **candidate, struct wlan_network *competitor) in rtw_check_roaming_candidate() argument
1733 if (*candidate && (*candidate)->network.rssi >= competitor->network.rssi) in rtw_check_roaming_candidate()
1737 *candidate = competitor; in rtw_check_roaming_candidate()
1750 struct wlan_network *candidate = NULL; in rtw_select_roaming_candidate() local
1765 rtw_check_roaming_candidate(mlme, &candidate, pnetwork); in rtw_select_roaming_candidate()
1769 if (!candidate) { in rtw_select_roaming_candidate()
1773 mlme->roam_network = candidate; in rtw_select_roaming_candidate()
1775 if (!memcmp(candidate->network.mac_address, mlme->roam_tgt_addr, ETH_ALEN)) in rtw_select_roaming_candidate()
1792 , struct wlan_network **candidate, struct wlan_network *competitor) in rtw_check_join_candidate() argument
1821 if (!*candidate || (*candidate)->network.rssi < competitor->network.rssi) { in rtw_check_join_candidate()
[all …]
/linux-6.1.9/drivers/phy/renesas/
Dphy-rcar-gen3-usb2.c630 enum usb_dr_mode candidate = USB_DR_MODE_UNKNOWN; in rcar_gen3_get_dr_mode() local
642 if (candidate == USB_DR_MODE_UNKNOWN) in rcar_gen3_get_dr_mode()
643 candidate = mode; in rcar_gen3_get_dr_mode()
644 else if (candidate != mode) in rcar_gen3_get_dr_mode()
649 return candidate; in rcar_gen3_get_dr_mode()
/linux-6.1.9/security/apparmor/
Ddomain.c393 struct aa_profile *profile, *candidate = NULL; in find_attach() local
468 candidate = profile; in find_attach()
478 candidate = profile; in find_attach()
483 if (!candidate || conflict) { in find_attach()
491 candidate = aa_get_newest_profile(candidate); in find_attach()
494 return &candidate->label; in find_attach()
/linux-6.1.9/Documentation/block/
Ddeadline-iosched.rst62 request, or it fits at the front. That is called either a back merge candidate
63 or a front merge candidate. Due to the way files are typically laid out,
/linux-6.1.9/drivers/dma/qcom/
Dqcom_adm.c722 struct dma_chan *chan, *candidate = NULL; in adm_dma_xlate() local
730 candidate = chan; in adm_dma_xlate()
734 if (!candidate) in adm_dma_xlate()
737 achan = to_adm_chan(candidate); in adm_dma_xlate()
743 return dma_get_slave_channel(candidate); in adm_dma_xlate()
/linux-6.1.9/arch/sparc/mm/
Dinit_64.c1130 u64 arc, candidate, best_latency = ~(u64)0; in scan_arcs_for_cfg_handle() local
1132 candidate = MDESC_NODE_NULL; in scan_arcs_for_cfg_handle()
1146 candidate = target; in scan_arcs_for_cfg_handle()
1151 if (candidate == MDESC_NODE_NULL) in scan_arcs_for_cfg_handle()
1154 return scan_pio_for_cfg_handle(md, candidate, cfg_handle); in scan_arcs_for_cfg_handle()
1389 struct mdesc_mlgroup *candidate = NULL; in numa_attach_mlgroup() local
1399 candidate = m; in numa_attach_mlgroup()
1403 if (!candidate) in numa_attach_mlgroup()
1415 n->mask = candidate->mask; in numa_attach_mlgroup()
1416 n->match = candidate->match; in numa_attach_mlgroup()
[all …]
/linux-6.1.9/sound/pci/emu10k1/
Dmemory.c100 struct list_head *candidate = &emu->mapped_link_head; in search_empty_map_area() local
115 candidate = pos; in search_empty_map_area()
125 *nextp = candidate; in search_empty_map_area()

1234