Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/fs/fscache/
Dnetfs.c18 struct fscache_cookie *candidate, *cookie; in __fscache_register_netfs() local
23 candidate = fscache_alloc_cookie(&fscache_fsdef_index, in __fscache_register_netfs()
28 if (!candidate) { in __fscache_register_netfs()
33 candidate->flags = 1 << FSCACHE_COOKIE_ENABLED; in __fscache_register_netfs()
36 cookie = fscache_hash_cookie(candidate); in __fscache_register_netfs()
39 if (cookie != candidate) { in __fscache_register_netfs()
40 trace_fscache_cookie(candidate, fscache_cookie_discard, 1); in __fscache_register_netfs()
41 fscache_free_cookie(candidate); in __fscache_register_netfs()
55 fscache_cookie_put(candidate, fscache_cookie_put_dup_netfs); in __fscache_register_netfs()
Dcookie.c183 struct fscache_cookie *fscache_hash_cookie(struct fscache_cookie *candidate) in fscache_hash_cookie() argument
190 bucket = candidate->key_hash & (ARRAY_SIZE(fscache_cookie_hash) - 1); in fscache_hash_cookie()
195 if (fscache_compare_cookie(candidate, cursor) == 0) in fscache_hash_cookie()
199 __set_bit(FSCACHE_COOKIE_ACQUIRED, &candidate->flags); in fscache_hash_cookie()
200 fscache_cookie_get(candidate->parent, fscache_cookie_get_acquire_parent); in fscache_hash_cookie()
201 atomic_inc(&candidate->parent->n_children); in fscache_hash_cookie()
202 hlist_bl_add_head(&candidate->hash_link, h); in fscache_hash_cookie()
204 return candidate; in fscache_hash_cookie()
212 fscache_print_cookie(candidate, 'N'); in fscache_hash_cookie()
246 struct fscache_cookie *candidate, *cookie; in __fscache_acquire_cookie() local
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/binary/src/
Dbinary.c1493 struct ia_css_binary_info *candidate = &xcandidate->sp; in __ia_css_binary_find() local
1498 candidate, candidate->pipeline.mode, candidate->id); in __ia_css_binary_find()
1505 if (!candidate->enable.continuous && in __ia_css_binary_find()
1509 __LINE__, candidate->enable.continuous, in __ia_css_binary_find()
1514 if (striped && candidate->iterator.num_stripes == 1) { in __ia_css_binary_find()
1521 if (candidate->pipeline.isp_pipe_version != isp_pipe_version && in __ia_css_binary_find()
1528 candidate->pipeline.isp_pipe_version, isp_pipe_version); in __ia_css_binary_find()
1531 if (!candidate->enable.reduced_pipe && enable_reduced_pipe) { in __ia_css_binary_find()
1535 candidate->enable.reduced_pipe, in __ia_css_binary_find()
1539 if (!candidate->enable.dvs_6axis && enable_dvs_6axis) { in __ia_css_binary_find()
[all …]
/kernel/linux/linux-5.10/net/rxrpc/
Dconn_client.c276 struct rxrpc_bundle *bundle, *candidate; in rxrpc_look_up_bundle() local
311 candidate = rxrpc_alloc_bundle(cp, gfp); in rxrpc_look_up_bundle()
312 if (!candidate) in rxrpc_look_up_bundle()
338 candidate->debug_id = atomic_inc_return(&rxrpc_bundle_id); in rxrpc_look_up_bundle()
339 rb_link_node(&candidate->local_node, parent, pp); in rxrpc_look_up_bundle()
340 rb_insert_color(&candidate->local_node, &local->client_bundles); in rxrpc_look_up_bundle()
341 rxrpc_get_bundle(candidate); in rxrpc_look_up_bundle()
343 _leave(" = %u [new]", candidate->debug_id); in rxrpc_look_up_bundle()
344 return candidate; in rxrpc_look_up_bundle()
347 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()
/kernel/linux/linux-5.10/fs/erofs/
Dnamei.c97 struct page *candidate = ERR_PTR(-ENOENT); in find_target_block_classic() local
148 if (!IS_ERR(candidate)) in find_target_block_classic()
149 put_page(candidate); in find_target_block_classic()
150 candidate = page; in find_target_block_classic()
161 if (!IS_ERR(candidate)) in find_target_block_classic()
162 put_page(candidate); in find_target_block_classic()
165 return candidate; in find_target_block_classic()
/kernel/linux/linux-5.10/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()
286 struct afs_server *server, *candidate; in afs_lookup_server() local
301 candidate = afs_alloc_server(cell, uuid, alist); in afs_lookup_server()
302 if (!candidate) { in afs_lookup_server()
[all …]
Dvolume.c122 struct afs_volume *candidate, *volume; in afs_lookup_volume() local
124 candidate = afs_alloc_volume(params, vldb, type_mask); in afs_lookup_volume()
125 if (IS_ERR(candidate)) in afs_lookup_volume()
126 return candidate; in afs_lookup_volume()
128 volume = afs_insert_volume_into_cell(params->cell, candidate); in afs_lookup_volume()
129 if (volume != candidate) in afs_lookup_volume()
130 afs_put_volume(params->net, candidate, afs_volume_trace_put_cell_dup); in afs_lookup_volume()
Dcell.c236 struct afs_cell *cell, *candidate, *cursor; in afs_lookup_cell() local
256 candidate = afs_alloc_cell(net, name, namesz, vllist); in afs_lookup_cell()
257 if (IS_ERR(candidate)) { in afs_lookup_cell()
258 _leave(" = %ld", PTR_ERR(candidate)); in afs_lookup_cell()
259 return candidate; in afs_lookup_cell()
285 cell = candidate; in afs_lookup_cell()
286 candidate = NULL; in afs_lookup_cell()
324 if (candidate) in afs_lookup_cell()
325 afs_put_cell(candidate, afs_cell_trace_put_candidate); in afs_lookup_cell()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c2649 int result[][8], int candidate, bool tx_only) in rtl8xxxu_fill_iqk_matrix_a() argument
2661 x = result[candidate][0]; in rtl8xxxu_fill_iqk_matrix_a()
2677 y = result[candidate][1]; in rtl8xxxu_fill_iqk_matrix_a()
2703 reg = result[candidate][2]; in rtl8xxxu_fill_iqk_matrix_a()
2710 reg = result[candidate][3] & 0x3F; in rtl8xxxu_fill_iqk_matrix_a()
2717 reg = (result[candidate][3] >> 6) & 0xF; in rtl8xxxu_fill_iqk_matrix_a()
2726 int result[][8], int candidate, bool tx_only) in rtl8xxxu_fill_iqk_matrix_b() argument
2738 x = result[candidate][4]; in rtl8xxxu_fill_iqk_matrix_b()
2754 y = result[candidate][5]; in rtl8xxxu_fill_iqk_matrix_b()
2780 reg = result[candidate][6]; in rtl8xxxu_fill_iqk_matrix_b()
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Dof-dma.c345 struct dma_chan *chan, *candidate = NULL; in of_dma_xlate_by_chan_id() local
352 candidate = chan; in of_dma_xlate_by_chan_id()
356 if (!candidate) in of_dma_xlate_by_chan_id()
359 return dma_get_slave_channel(candidate); in of_dma_xlate_by_chan_id()
/kernel/linux/linux-5.10/kernel/power/
Dsuspend_test.c130 struct rtc_device *candidate = to_rtc_device(dev); in has_wakealarm() local
132 if (!candidate->ops->set_alarm) in has_wakealarm()
134 if (!device_may_wakeup(candidate->dev.parent)) in has_wakealarm()
/kernel/linux/linux-5.10/security/tomoyo/
Ddomain.c710 const struct tomoyo_path_info *candidate; in tomoyo_find_next_domain() local
741 candidate = &exename; in tomoyo_find_next_domain()
748 candidate = ptr->aggregated_name; in tomoyo_find_next_domain()
754 retval = tomoyo_execute_permission(&ee->r, candidate); in tomoyo_find_next_domain()
766 candidate = ee->r.param.path.matched_path; in tomoyo_find_next_domain()
806 candidate)) { in tomoyo_find_next_domain()
811 candidate->name); in tomoyo_find_next_domain()
822 old_domain->ns->name, candidate->name); in tomoyo_find_next_domain()
844 old_domain->domainname->name, candidate->name); in tomoyo_find_next_domain()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_mlme.c1882 , struct wlan_network **candidate, struct wlan_network *competitor) in rtw_check_roaming_candidate() argument
1915 if (*candidate != NULL && (*candidate)->network.Rssi >= competitor->network.Rssi) in rtw_check_roaming_candidate()
1919 *candidate = competitor; in rtw_check_roaming_candidate()
1932 struct wlan_network *candidate = NULL; in rtw_select_roaming_candidate() local
1961 rtw_check_roaming_candidate(mlme, &candidate, pnetwork); in rtw_select_roaming_candidate()
1965 if (!candidate) { in rtw_select_roaming_candidate()
1971 candidate->network.Ssid.Ssid, MAC_ARG(candidate->network.MacAddress), in rtw_select_roaming_candidate()
1972 candidate->network.Configuration.DSConfig); in rtw_select_roaming_candidate()
1974 mlme->roam_network = candidate; in rtw_select_roaming_candidate()
1976 if (!memcmp(candidate->network.MacAddress, mlme->roam_tgt_addr, ETH_ALEN)) in rtw_select_roaming_candidate()
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/
Dhmdfs_share.c215 struct qstr candidate = QSTR_INIT(filename, strlen(filename)); in reset_item_opened_status() local
219 item = hmdfs_lookup_share_item(&sbi->share_table, &candidate); in reset_item_opened_status()
281 struct qstr candidate = QSTR_INIT(filename, strlen(filename)); in hmdfs_check_share_access_permission() local
286 item = hmdfs_lookup_share_item(&sbi->share_table, &candidate); in hmdfs_check_share_access_permission()
/kernel/linux/linux-5.10/drivers/phy/renesas/
Dphy-rcar-gen3-usb2.c587 enum usb_dr_mode candidate = USB_DR_MODE_UNKNOWN; in rcar_gen3_get_dr_mode() local
599 if (candidate == USB_DR_MODE_UNKNOWN) in rcar_gen3_get_dr_mode()
600 candidate = mode; in rcar_gen3_get_dr_mode()
601 else if (candidate != mode) in rcar_gen3_get_dr_mode()
606 return candidate; in rcar_gen3_get_dr_mode()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/
Drtw_mlme.c1400 , struct wlan_network **candidate, struct wlan_network *competitor) in rtw_check_join_candidate() argument
1430 if (!*candidate || (*candidate)->network.Rssi < competitor->network.Rssi) { in rtw_check_join_candidate()
1431 *candidate = competitor; in rtw_check_join_candidate()
1438 (*candidate)->network.ssid.ssid, in rtw_check_join_candidate()
1439 (*candidate)->network.MacAddress, in rtw_check_join_candidate()
1440 (int)(*candidate)->network.Rssi); in rtw_check_join_candidate()
1462 struct wlan_network *candidate = NULL; in rtw_select_and_join_from_scanned_queue() local
1477 rtw_check_join_candidate(pmlmepriv, &candidate, pnetwork); in rtw_select_and_join_from_scanned_queue()
1479 if (!candidate) { in rtw_select_and_join_from_scanned_queue()
1485 candidate->network.ssid.ssid, candidate->network.MacAddress, in rtw_select_and_join_from_scanned_queue()
[all …]
/kernel/linux/linux-5.10/security/apparmor/
Ddomain.c392 struct aa_profile *profile, *candidate = NULL; in find_attach() local
467 candidate = profile; in find_attach()
477 candidate = profile; in find_attach()
482 if (!candidate || conflict) { in find_attach()
490 candidate = aa_get_newest_profile(candidate); in find_attach()
493 return &candidate->label; in find_attach()
/kernel/linux/linux-5.10/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,
/kernel/linux/linux-5.10/arch/sparc/mm/
Dinit_64.c1128 u64 arc, candidate, best_latency = ~(u64)0; in scan_arcs_for_cfg_handle() local
1130 candidate = MDESC_NODE_NULL; in scan_arcs_for_cfg_handle()
1144 candidate = target; in scan_arcs_for_cfg_handle()
1149 if (candidate == MDESC_NODE_NULL) in scan_arcs_for_cfg_handle()
1152 return scan_pio_for_cfg_handle(md, candidate, cfg_handle); in scan_arcs_for_cfg_handle()
1387 struct mdesc_mlgroup *candidate = NULL; in numa_attach_mlgroup() local
1397 candidate = m; in numa_attach_mlgroup()
1401 if (!candidate) in numa_attach_mlgroup()
1413 n->mask = candidate->mask; in numa_attach_mlgroup()
1414 n->match = candidate->match; in numa_attach_mlgroup()
[all …]
/kernel/linux/linux-5.10/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()

123