Home
last modified time | relevance | path

Searched refs:nf (Results 1 - 25 of 148) sorted by relevance

123456

/kernel/linux/linux-6.6/fs/nfsd/
H A Dfilecache.c124 struct nfsd_file *nf = container_of(rcu, struct nfsd_file, nf_rcu); in nfsd_file_slab_free() local
126 put_cred(nf->nf_cred); in nfsd_file_slab_free()
127 kmem_cache_free(nfsd_file_slab, nf); in nfsd_file_slab_free()
157 nfsd_file_mark_find_or_create(struct nfsd_file *nf, struct inode *inode) in nfsd_file_mark_find_or_create() argument
215 struct nfsd_file *nf; in nfsd_file_alloc() local
217 nf = kmem_cache_alloc(nfsd_file_slab, GFP_KERNEL); in nfsd_file_alloc()
218 if (unlikely(!nf)) in nfsd_file_alloc()
221 INIT_LIST_HEAD(&nf->nf_lru); in nfsd_file_alloc()
222 nf->nf_birthtime = ktime_get(); in nfsd_file_alloc()
223 nf in nfsd_file_alloc()
244 nfsd_file_check_write_error(struct nfsd_file *nf) nfsd_file_check_write_error() argument
254 nfsd_file_hash_remove(struct nfsd_file *nf) nfsd_file_hash_remove() argument
262 nfsd_file_unhash(struct nfsd_file *nf) nfsd_file_unhash() argument
272 nfsd_file_free(struct nfsd_file *nf) nfsd_file_free() argument
300 nfsd_file_check_writeback(struct nfsd_file *nf) nfsd_file_check_writeback() argument
322 nfsd_file_lru_add(struct nfsd_file *nf) nfsd_file_lru_add() argument
332 nfsd_file_lru_remove(struct nfsd_file *nf) nfsd_file_lru_remove() argument
342 nfsd_file_get(struct nfsd_file *nf) nfsd_file_get() argument
358 nfsd_file_put(struct nfsd_file *nf) nfsd_file_put() argument
396 struct nfsd_file *nf; nfsd_file_dispose_list() local
416 struct nfsd_file *nf = list_first_entry(dispose, nfsd_file_dispose_list_delayed() local
447 struct nfsd_file *nf = list_entry(item, struct nfsd_file, nf_lru); __releases() local
583 struct nfsd_file *nf; nfsd_file_queue_for_close() local
627 struct nfsd_file *nf; nfsd_file_close_inode_sync() local
803 struct nfsd_file *nf; __nfsd_file_cache_purge() local
929 struct nfsd_file *nf; nfsd_file_lookup_locked() local
967 struct nfsd_file *nf; nfsd_file_is_cached() local
991 struct nfsd_file *new, *nf; nfsd_file_do_acquire() local
[all...]
H A Dtrace.h884 TP_PROTO(struct nfsd_file *nf),
885 TP_ARGS(nf),
894 __entry->nf_inode = nf->nf_inode;
895 __entry->nf_ref = refcount_read(&nf->nf_ref);
896 __entry->nf_flags = nf->nf_flags;
897 __entry->nf_may = nf->nf_may;
898 __entry->nf_file = nf->nf_file;
910 TP_PROTO(struct nfsd_file *nf), \
911 TP_ARGS(nf))
921 const struct nfsd_file *nf
[all...]
/kernel/linux/linux-5.10/fs/nfsd/
H A Dfilecache.c85 struct nfsd_file *nf = container_of(rcu, struct nfsd_file, nf_rcu); in nfsd_file_slab_free() local
87 put_cred(nf->nf_cred); in nfsd_file_slab_free()
88 kmem_cache_free(nfsd_file_slab, nf); in nfsd_file_slab_free()
118 nfsd_file_mark_find_or_create(struct nfsd_file *nf) in nfsd_file_mark_find_or_create() argument
123 struct inode *inode = nf->nf_inode; in nfsd_file_mark_find_or_create()
176 struct nfsd_file *nf; in nfsd_file_alloc() local
178 nf = kmem_cache_alloc(nfsd_file_slab, GFP_KERNEL); in nfsd_file_alloc()
179 if (nf) { in nfsd_file_alloc()
180 INIT_HLIST_NODE(&nf->nf_node); in nfsd_file_alloc()
181 INIT_LIST_HEAD(&nf in nfsd_file_alloc()
203 nfsd_file_free(struct nfsd_file *nf) nfsd_file_free() argument
221 nfsd_file_check_writeback(struct nfsd_file *nf) nfsd_file_check_writeback() argument
234 nfsd_file_check_write_error(struct nfsd_file *nf) nfsd_file_check_write_error() argument
244 nfsd_file_do_unhash(struct nfsd_file *nf) nfsd_file_do_unhash() argument
258 nfsd_file_unhash(struct nfsd_file *nf) nfsd_file_unhash() argument
273 nfsd_file_unhash_and_release_locked(struct nfsd_file *nf, struct list_head *dispose) nfsd_file_unhash_and_release_locked() argument
289 nfsd_file_put_noref(struct nfsd_file *nf) nfsd_file_put_noref() argument
300 nfsd_file_put(struct nfsd_file *nf) nfsd_file_put() argument
320 nfsd_file_get(struct nfsd_file *nf) nfsd_file_get() argument
330 struct nfsd_file *nf; nfsd_file_dispose_list() local
343 struct nfsd_file *nf; nfsd_file_dispose_list_sync() local
388 struct nfsd_file *nf, *tmp; nfsd_file_list_add_pernet() local
400 struct nfsd_file *nf; nfsd_file_dispose_list_delayed() local
419 struct nfsd_file *nf = list_entry(item, struct nfsd_file, nf_lru); __releases() local
457 struct nfsd_file *nf; nfsd_file_lru_walk_list() local
511 struct nfsd_file *nf; __nfsd_file_close_inode() local
724 struct nfsd_file *nf; nfsd_file_cache_purge() local
886 struct nfsd_file *nf; nfsd_file_find_locked() local
918 struct nfsd_file *nf; nfsd_file_is_cached() local
942 struct nfsd_file *nf, *new; nfsd_file_acquire() local
[all...]
H A Dtrace.h417 TP_PROTO(struct nfsd_file *nf),
418 TP_ARGS(nf),
428 __entry->nf_hashval = nf->nf_hashval;
429 __entry->nf_inode = nf->nf_inode;
430 __entry->nf_ref = refcount_read(&nf->nf_ref);
431 __entry->nf_flags = nf->nf_flags;
432 __entry->nf_may = nf->nf_may;
433 __entry->nf_file = nf->nf_file;
446 TP_PROTO(struct nfsd_file *nf), \
447 TP_ARGS(nf))
[all...]
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
H A Divtv-yuv.c965 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
970 int update = nf->update; in ivtv_yuv_setup_frame()
973 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
974 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
975 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
976 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
977 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
978 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
979 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
980 nf in ivtv_yuv_setup_frame()
[all...]
/kernel/linux/linux-6.6/drivers/media/pci/ivtv/
H A Divtv-yuv.c967 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
972 int update = nf->update; in ivtv_yuv_setup_frame()
975 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
976 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
977 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
978 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
979 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
980 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
981 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
982 nf in ivtv_yuv_setup_frame()
[all...]
/kernel/linux/linux-6.6/drivers/platform/surface/aggregator/
H A Dcontroller.c150 struct ssam_event_notifier *nf; in ssam_nfblk_call_chain() local
155 list_for_each_entry_rcu(nf, &nh->head, base.node, in ssam_nfblk_call_chain()
157 if (ssam_event_matches_notifier(nf, event)) { in ssam_nfblk_call_chain()
158 ret = (ret & SSAM_NOTIF_STATE_MASK) | nf->base.fn(nf, event); in ssam_nfblk_call_chain()
300 * @nf: The notifier system reference.
308 * Note: ``nf->lock`` must be held when calling this function.
315 ssam_nf_refcount_inc(struct ssam_nf *nf, struct ssam_event_registry reg, in ssam_nf_refcount_inc() argument
320 struct rb_node **link = &nf->refcount.rb_node; in ssam_nf_refcount_inc()
324 lockdep_assert_held(&nf in ssam_nf_refcount_inc()
377 ssam_nf_refcount_dec(struct ssam_nf *nf, struct ssam_event_registry reg, struct ssam_event_id id) ssam_nf_refcount_dec() argument
422 ssam_nf_refcount_dec_free(struct ssam_nf *nf, struct ssam_event_registry reg, struct ssam_event_id id) ssam_nf_refcount_dec_free() argument
440 ssam_nf_refcount_empty(struct ssam_nf *nf) ssam_nf_refcount_empty() argument
464 ssam_nf_call(struct ssam_nf *nf, struct device *dev, u16 rqid, struct ssam_event *event) ssam_nf_call() argument
496 ssam_nf_init(struct ssam_nf *nf) ssam_nf_init() argument
521 ssam_nf_destroy(struct ssam_nf *nf) ssam_nf_destroy() argument
780 struct ssam_nf *nf; ssam_event_queue_work_fn() local
2178 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_nf_refcount_enable() local
2242 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_nf_refcount_disable_free() local
2293 struct ssam_nf *nf; ssam_notifier_register() local
2362 struct ssam_nf *nf; __ssam_notifier_unregister() local
2433 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_controller_event_enable() local
2484 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_controller_event_disable() local
2529 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_notifier_disable_registered() local
2574 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_notifier_restore_registered() local
2598 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_notifier_is_empty() local
2619 struct ssam_nf *nf = &ctrl->cplt.event.notif; ssam_notifier_unregister_all() local
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_log.c49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set()
53 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set()
55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set()
70 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset()
72 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset()
84 if (pf >= ARRAY_SIZE(init_net.nf.nf_loggers)) in nf_log_register()
131 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf()
138 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf()
146 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_unbind_pf()
149 RCU_INIT_POINTER(net->nf in nf_log_unbind_pf()
[all...]
H A Dcore.c275 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head()
277 return net->nf.hooks_arp + hooknum; in nf_hook_entry_head()
281 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head()
283 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head()
296 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head()
298 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head()
300 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head()
302 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head()
713 __netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf in netfilter_net_init()
[all...]
H A Dnf_queue.c37 WARN_ON(rcu_access_pointer(net->nf.queue_handler)); in nf_register_queue_handler()
38 rcu_assign_pointer(net->nf.queue_handler, qh); in nf_register_queue_handler()
45 RCU_INIT_POINTER(net->nf.queue_handler, NULL); in nf_unregister_queue_handler()
130 qh = rcu_dereference(net->nf.queue_handler); in nf_queue_nf_hook_drop()
176 qh = rcu_dereference(net->nf.queue_handler); in __nf_queue()
293 return rcu_dereference(net->nf.hooks_bridge[hooknum]); in nf_hook_entries_head()
296 return rcu_dereference(net->nf.hooks_ipv4[hooknum]); in nf_hook_entries_head()
298 return rcu_dereference(net->nf.hooks_ipv6[hooknum]); in nf_hook_entries_head()
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_log.c49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set()
53 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set()
55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set()
70 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset()
72 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset()
84 if (pf >= ARRAY_SIZE(init_net.nf.nf_loggers)) in nf_log_register()
131 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf()
138 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf()
146 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_unbind_pf()
149 RCU_INIT_POINTER(net->nf in nf_log_unbind_pf()
[all...]
H A Dcore.c287 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head()
289 return net->nf.hooks_arp + hooknum; in nf_hook_entry_head()
293 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head()
295 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head()
308 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head()
310 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head()
312 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head()
314 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head()
778 __netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf in netfilter_net_init()
[all...]
/kernel/linux/linux-6.6/net/ipv4/netfilter/
H A Dnf_defrag_ipv4.c110 if (net->nf.defrag_ipv4_users) { in defrag4_net_exit()
113 net->nf.defrag_ipv4_users = 0; in defrag4_net_exit()
150 if (net->nf.defrag_ipv4_users == UINT_MAX) { in nf_defrag_ipv4_enable()
155 if (net->nf.defrag_ipv4_users) { in nf_defrag_ipv4_enable()
156 net->nf.defrag_ipv4_users++; in nf_defrag_ipv4_enable()
163 net->nf.defrag_ipv4_users = 1; in nf_defrag_ipv4_enable()
174 if (net->nf.defrag_ipv4_users) { in nf_defrag_ipv4_disable()
175 net->nf.defrag_ipv4_users--; in nf_defrag_ipv4_disable()
176 if (net->nf.defrag_ipv4_users == 0) in nf_defrag_ipv4_disable()
/kernel/linux/linux-6.6/net/ipv6/netfilter/
H A Dnf_defrag_ipv6_hooks.c93 if (net->nf.defrag_ipv6_users) { in defrag6_net_exit()
96 net->nf.defrag_ipv6_users = 0; in defrag6_net_exit()
147 if (net->nf.defrag_ipv6_users == UINT_MAX) { in nf_defrag_ipv6_enable()
152 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_enable()
153 net->nf.defrag_ipv6_users++; in nf_defrag_ipv6_enable()
160 net->nf.defrag_ipv6_users = 1; in nf_defrag_ipv6_enable()
171 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_disable()
172 net->nf.defrag_ipv6_users--; in nf_defrag_ipv6_disable()
173 if (net->nf.defrag_ipv6_users == 0) in nf_defrag_ipv6_disable()
/kernel/linux/linux-6.6/drivers/platform/surface/
H A Dsurface_aggregator_cdev.c53 struct ssam_event_notifier nf; member
93 static u32 ssam_cdev_notifier(struct ssam_event_notifier *nf, const struct ssam_event *in) in ssam_cdev_notifier() argument
95 struct ssam_cdev_notifier *cdev_nf = container_of(nf, struct ssam_cdev_notifier, nf); in ssam_cdev_notifier()
139 struct ssam_cdev_notifier *nf; in ssam_cdev_notifier_register() local
157 nf = kzalloc(sizeof(*nf), GFP_KERNEL); in ssam_cdev_notifier_register()
158 if (!nf) { in ssam_cdev_notifier_register()
169 nf->client = client; in ssam_cdev_notifier_register()
170 nf in ssam_cdev_notifier_register()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
H A Dcalib.c73 s16 nf) in ath9k_hw_getchan_noise()
77 if (nf) { in ath9k_hw_getchan_noise()
78 s8 delta = nf - ATH9K_NF_CAL_NOISE_THRESH - in ath9k_hw_getchan_noise()
339 * here, the baseband nf cal will just be capped by our present in ath9k_hw_loadnf()
344 "Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x%x\n", in ath9k_hw_loadnf()
371 static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) in ath9k_hw_nf_sanitize() argument
383 if (!nf[i]) in ath9k_hw_nf_sanitize()
388 (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]); in ath9k_hw_nf_sanitize()
390 if (nf[i] > limit->max) { in ath9k_hw_nf_sanitize()
393 i, nf[ in ath9k_hw_nf_sanitize()
72 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan, s16 nf) ath9k_hw_getchan_noise() argument
407 int16_t nf, nfThresh; ath9k_hw_getnf() local
[all...]
H A Dar9002_phy.c334 int16_t nf; in ar9002_hw_do_getnf() local
336 nf = MS(REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9002_hw_do_getnf()
337 nfarray[0] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
339 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9002_hw_do_getnf()
341 nfarray[3] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
346 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9002_hw_do_getnf()
347 nfarray[1] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
349 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR9280_PHY_CH1_EXT_MINCCA_PWR); in ar9002_hw_do_getnf()
351 nfarray[4] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/
H A Dcalib.c73 s16 nf) in ath9k_hw_getchan_noise()
77 if (nf) { in ath9k_hw_getchan_noise()
78 s8 delta = nf - ATH9K_NF_CAL_NOISE_THRESH - in ath9k_hw_getchan_noise()
339 * here, the baseband nf cal will just be capped by our present in ath9k_hw_loadnf()
344 "Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x%x\n", in ath9k_hw_loadnf()
371 static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) in ath9k_hw_nf_sanitize() argument
383 if (!nf[i]) in ath9k_hw_nf_sanitize()
388 (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]); in ath9k_hw_nf_sanitize()
390 if (nf[i] > limit->max) { in ath9k_hw_nf_sanitize()
393 i, nf[ in ath9k_hw_nf_sanitize()
72 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan, s16 nf) ath9k_hw_getchan_noise() argument
407 int16_t nf, nfThresh; ath9k_hw_getnf() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/baikal-t1/
H A Dccu-pll.c76 unsigned long nf, in ccu_pll_calc_freq()
82 tmp *= nf; in ccu_pll_calc_freq()
156 unsigned long nr, nf, od; in ccu_pll_recalc_rate() local
161 nf = FIELD_GET(CCU_PLL_CTL_CLKF_MASK, val) + 1; in ccu_pll_recalc_rate()
164 return ccu_pll_calc_freq(parent_rate, nr, nf, od); in ccu_pll_recalc_rate()
168 unsigned long *nr, unsigned long *nf, in ccu_pll_calc_factors()
184 * Find a closest [nr;nf;od] vector taking into account the in ccu_pll_calc_factors()
225 *nf = n1; in ccu_pll_calc_factors()
234 unsigned long nr = 1, nf = 1, od = 1; in ccu_pll_round_rate() local
236 ccu_pll_calc_factors(rate, *parent_rate, &nr, &nf, in ccu_pll_round_rate()
74 ccu_pll_calc_freq(unsigned long ref_clk, unsigned long nr, unsigned long nf, unsigned long od) ccu_pll_calc_freq() argument
167 ccu_pll_calc_factors(unsigned long rate, unsigned long parent_rate, unsigned long *nr, unsigned long *nf, unsigned long *od) ccu_pll_calc_factors() argument
249 unsigned long nr, nf, od; ccu_pll_set_rate_reset() local
280 unsigned long nr, nf, od; ccu_pll_set_rate_norst() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/baikal-t1/
H A Dccu-pll.c76 unsigned long nf, in ccu_pll_calc_freq()
82 tmp *= nf; in ccu_pll_calc_freq()
156 unsigned long nr, nf, od; in ccu_pll_recalc_rate() local
161 nf = FIELD_GET(CCU_PLL_CTL_CLKF_MASK, val) + 1; in ccu_pll_recalc_rate()
164 return ccu_pll_calc_freq(parent_rate, nr, nf, od); in ccu_pll_recalc_rate()
168 unsigned long *nr, unsigned long *nf, in ccu_pll_calc_factors()
184 * Find a closest [nr;nf;od] vector taking into account the in ccu_pll_calc_factors()
225 *nf = n1; in ccu_pll_calc_factors()
234 unsigned long nr = 1, nf = 1, od = 1; in ccu_pll_round_rate() local
236 ccu_pll_calc_factors(rate, *parent_rate, &nr, &nf, in ccu_pll_round_rate()
74 ccu_pll_calc_freq(unsigned long ref_clk, unsigned long nr, unsigned long nf, unsigned long od) ccu_pll_calc_freq() argument
167 ccu_pll_calc_factors(unsigned long rate, unsigned long parent_rate, unsigned long *nr, unsigned long *nf, unsigned long *od) ccu_pll_calc_factors() argument
249 unsigned long nr, nf, od; ccu_pll_set_rate_reset() local
280 unsigned long nr, nf, od; ccu_pll_set_rate_norst() local
[all...]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
H A Dv4l2-jpeg.c131 static int v4l2_jpeg_decode_subsampling(u8 nf, u8 h_v) in v4l2_jpeg_decode_subsampling() argument
133 if (nf == 1) in v4l2_jpeg_decode_subsampling()
137 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling()
167 int p, y, x, nf; in jpeg_parse_frame_header() local
192 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header()
193 if (nf < 0) in jpeg_parse_frame_header()
194 return nf; in jpeg_parse_frame_header()
199 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header()
201 if (len != 8 + 3 * nf) in jpeg_parse_frame_header()
[all...]
/kernel/linux/linux-6.6/drivers/media/v4l2-core/
H A Dv4l2-jpeg.c132 static int v4l2_jpeg_decode_subsampling(u8 nf, u8 h_v) in v4l2_jpeg_decode_subsampling() argument
134 if (nf == 1) in v4l2_jpeg_decode_subsampling()
138 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling()
168 int p, y, x, nf; in jpeg_parse_frame_header() local
193 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header()
194 if (nf < 0) in jpeg_parse_frame_header()
195 return nf; in jpeg_parse_frame_header()
200 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header()
202 if (len != 8 + 3 * nf) in jpeg_parse_frame_header()
[all...]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_defrag_ipv4.c109 if (net->nf.defrag_ipv4) { in defrag4_net_exit()
112 net->nf.defrag_ipv4 = false; in defrag4_net_exit()
136 if (net->nf.defrag_ipv4) in nf_defrag_ipv4_enable()
140 if (net->nf.defrag_ipv4) in nf_defrag_ipv4_enable()
146 net->nf.defrag_ipv4 = true; in nf_defrag_ipv4_enable()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dnf_defrag_ipv6_hooks.c92 if (net->nf.defrag_ipv6) { in defrag6_net_exit()
95 net->nf.defrag_ipv6 = false; in defrag6_net_exit()
137 if (net->nf.defrag_ipv6) in nf_defrag_ipv6_enable()
141 if (net->nf.defrag_ipv6) in nf_defrag_ipv6_enable()
147 net->nf.defrag_ipv6 = true; in nf_defrag_ipv6_enable()
/kernel/linux/linux-5.10/drivers/clk/sirf/
H A Dclk-common.c85 /* fout = fin * nf / nr / od */ in pll_clk_recalc_rate()
87 u32 nf = (cfg0 & (BIT(13) - 1)) + 1; in pll_clk_recalc_rate() local
91 return fin / MHZ * nf / nr / od * MHZ; in pll_clk_recalc_rate()
98 unsigned long fin, nf, nr, od; in pll_clk_round_rate() local
102 * fout = fin * nf / (nr * od); in pll_clk_round_rate()
103 * set od = 1, nr = fin/MHz, so fout = nf * MHz in pll_clk_round_rate()
107 nf = rate / MHZ; in pll_clk_round_rate()
108 if (nf > BIT(13)) in pll_clk_round_rate()
109 nf = BIT(13); in pll_clk_round_rate()
110 if (nf < in pll_clk_round_rate()
130 unsigned long fin, nf, nr, od, reg; pll_clk_set_rate() local
[all...]

Completed in 19 milliseconds

123456