Home
last modified time | relevance | path

Searched full:nf (Results 1 – 25 of 201) sorted by relevance

123456789

/linux/fs/nfsd/
H A Dfilecache.c122 struct nfsd_file *nf = container_of(rcu, struct nfsd_file, nf_rcu); in nfsd_file_slab_free() local
124 put_cred(nf->nf_cred); in nfsd_file_slab_free()
125 kmem_cache_free(nfsd_file_slab, nf); in nfsd_file_slab_free()
213 struct nfsd_file *nf; in nfsd_file_alloc() local
215 nf = kmem_cache_alloc(nfsd_file_slab, GFP_KERNEL); in nfsd_file_alloc()
216 if (unlikely(!nf)) in nfsd_file_alloc()
220 INIT_LIST_HEAD(&nf->nf_lru); in nfsd_file_alloc()
221 INIT_LIST_HEAD(&nf->nf_gc); in nfsd_file_alloc()
222 nf->nf_birthtime = ktime_get(); in nfsd_file_alloc()
223 nf->nf_file = NULL; in nfsd_file_alloc()
[all …]
H A Dtrace.h1034 TP_PROTO(struct nfsd_file *nf),
1035 TP_ARGS(nf),
1044 __entry->nf_inode = nf->nf_inode;
1045 __entry->nf_ref = refcount_read(&nf->nf_ref);
1046 __entry->nf_flags = nf->nf_flags;
1047 __entry->nf_may = nf->nf_may;
1048 __entry->nf_file = nf->nf_file;
1060 TP_PROTO(struct nfsd_file *nf), \
1061 TP_ARGS(nf))
1071 const struct nfsd_file *nf
[all …]
H A Dfilecache.h57 void nfsd_file_put(struct nfsd_file *nf);
58 void nfsd_file_put_local(struct nfsd_file *nf);
59 struct nfsd_file *nfsd_file_get(struct nfsd_file *nf);
60 struct file *nfsd_file_file(struct nfsd_file *nf);
/linux/drivers/net/wireless/ath/ath9k/
H A Dcalib.c70 s16 nf) in ath9k_hw_getchan_noise() argument
74 if (nf) { in ath9k_hw_getchan_noise()
75 s8 delta = nf - ATH9K_NF_CAL_NOISE_THRESH - in ath9k_hw_getchan_noise()
144 * Re-enable the enforcement of the NF maximum again. in ath9k_hw_update_nfcal_hist_buffer()
282 * stop NF cal if ongoing to ensure NF load completes immediately in ath9k_hw_loadnf()
292 * Load software filtered NF value into baseband internal minCCApwr in ath9k_hw_loadnf()
316 * Restart NF so it can continue. in ath9k_hw_loadnf()
336 * here, the baseband nf cal will just be capped by our present in ath9k_hw_loadnf()
341 "Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x%x\n", in ath9k_hw_loadnf()
368 static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) in ath9k_hw_nf_sanitize() argument
[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()
/linux/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.nf_loggers[pf], NULL); 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()
776 __netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf.hooks_ipv4)); in netfilter_net_init()
777 __netfilter_net_init(net->nf.hooks_ipv6, ARRAY_SIZE(net->nf.hooks_ipv6)); in netfilter_net_init()
[all …]
H A Dnfnetlink_hook.c250 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4)) in nfnl_hook_entries_head()
252 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nfnl_hook_entries_head()
255 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6)) in nfnl_hook_entries_head()
257 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nfnl_hook_entries_head()
261 if (hook >= ARRAY_SIZE(net->nf.hooks_arp)) in nfnl_hook_entries_head()
263 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nfnl_hook_entries_head()
268 if (hook >= ARRAY_SIZE(net->nf.hooks_bridge)) in nfnl_hook_entries_head()
270 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nfnl_hook_entries_head()
/linux/drivers/media/pci/ivtv/
H A Divtv-yuv.c973 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
978 int update = nf->update; in ivtv_yuv_setup_frame()
981 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
982 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
983 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
984 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
985 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
986 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
987 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
988 nf->dst_h = args->dst.height; in ivtv_yuv_setup_frame()
[all …]
/linux/tools/testing/selftests/net/
H A Dnl_netdev.py10 def empty_check(nf) -> None: argument
11 devs = nf.dev_get({}, dump=True)
15 def lo_check(nf) -> None: argument
16 lo_info = nf.dev_get({"ifindex": 1})
21 def page_pool_check(nf) -> None: argument
32 pp_list = nf.page_pool_get({}, dump=True)
54 pp_list = nf.page_pool_get({}, dump=True)
91 nf = NetdevFamily()
93 args=(nf, ))
H A Dbig_tcp.sh96 [ "$NF" = "6" ] && ipt="ip6tables"
106 [ "$NF" = "6" ] && ipt="ip6tables"
115 [ "$NF" = "6" ] && ipt="ip6tables"
124 [ "$NF" = "6" ] && serip=$SERVER_IP6
127 ip net exec $netns netperf -$NF -t TCP_STREAM -l 1 -H $serip -- -m 262144 2>&1 >/dev/null
180 NF=4 testup && echo "***v4 Tests Done***" && \
181 NF=6 testup && echo "***v6 Tests Done***"
/linux/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->lock); in ssam_nf_refcount_inc()
355 rb_insert_color(&entry->node, &nf->refcount); in ssam_nf_refcount_inc()
[all …]
/linux/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()
/linux/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()
/linux/drivers/clk/baikal-t1/
H A Dccu-pll.c76 unsigned long nf, in ccu_pll_calc_freq() argument
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() argument
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, &od); in ccu_pll_round_rate()
[all …]
/linux/drivers/clk/renesas/
H A Drcar-gen4-cpg.c87 unsigned int ni, nf; in cpg_pll_8_25_clk_recalc_rate() local
93 nf = FIELD_GET(CPG_PLLxCR1_NF25, readl(pll_clk->pllcr1_reg)); in cpg_pll_8_25_clk_recalc_rate()
94 rate += mul_u64_u32_shr(parent_rate, nf, 24); in cpg_pll_8_25_clk_recalc_rate()
104 unsigned int min_mult, max_mult, ni, nf; in cpg_pll_8_25_clk_determine_rate() local
118 nf = 0; in cpg_pll_8_25_clk_determine_rate()
121 nf = div64_ul((u64)(req->rate - prate * ni) << 24, in cpg_pll_8_25_clk_determine_rate()
127 nf = 0; in cpg_pll_8_25_clk_determine_rate()
129 req->rate = prate * ni + mul_u64_u32_shr(req->best_parent_rate, nf, 24); in cpg_pll_8_25_clk_determine_rate()
140 unsigned int ni, nf; in cpg_pll_8_25_clk_set_rate() local
147 nf = 0; in cpg_pll_8_25_clk_set_rate()
[all …]
/linux/Documentation/networking/
H A Dnf_conntrack-sysctl.rst224 TCP connections may be offloaded from nf conntrack to nf flow table.
225 Once aged, the connection is returned to nf conntrack.
231 UDP connections may be offloaded from nf conntrack to nf flow table.
232 Once aged, the connection is returned to nf conntrack.
/linux/scripts/
H A Dgenerate_builtin_ranges.awk110 ARGIND == 2 && FNR == 1 && NF == 7 && $1 == "VMA" && $7 == "Symbol" {
123 ARGIND == 2 && map_is_lld && NF == 5 && /[0-9] [^ ]+$/ {
133 ARGIND == 2 && map_is_lld && !anchor && NF == 7 && raw_addr == "0x"$1 && $6 == "=" && $7 == "." {
143 ARGIND == 2 && map_is_lld && NF == 5 && $5 ~ /:\(/ {
159 ARGIND == 2 && map_is_lld && sect && !anchor && NF == 5 && $5 ~ /^[_A-Za-z][_A-Za-z0-9]*$/ {
174 ARGIND == 2 && !map_is_lld && NF == 1 && /^[^ ]/ {
189 ARGIND >= 2 && !map_is_lld && NF == 1 && /^ [^ \*]/ {
250 ARGIND == 2 && !anchor && NF == 4 && raw_addr == $1 && $3 == "=" && $4 == "." {
263 ARGIND == 2 && !anchor && NF == 2 && $1 ~ /^0x/ && $2 !~ /^0x/ {
284 ARGIND == 2 && sect && NF == 4 && /^ [^ \*]/ && !($1 in sect_addend) {
[all …]
H A Dverify_builtin_ranges.awk177 ARGIND >= 4 && FNR == 1 && NF == 7 && $1 == "VMA" && $7 == "Symbol" {
184 ARGIND >= 4 && map_is_lld && NF == 5 && /[0-9] [^ ]+$/ {
190 ARGIND >= 4 && map_is_lld && NF == 5 && $5 ~ /:\(/ {
202 ARGIND >= 4 && map_is_lld && NF == 5 && $5 ~ /^[A-Za-z_][A-Za-z0-9_]*$/ {
214 ARGIND >= 4 && !map_is_lld && NF == 1 && /^[^ ]/ {
250 ARGIND >= 4 && /^ [^ \*]/ && NF == 1 {
262 ARGIND == 4 && /^ [^ ]/ && NF == 4 {
288 ARGIND >= 4 && /^ [^ ]/ && NF == 4 {
310 ARGIND >= 4 && /^ / && NF == 2 && $1 ~ /^0x/ {
H A Dver_linux41 if ($NF ~ libc || $NF ~ libcpp)
42 if (!seen[ver = version("readlink " $NF)]++)
43 printversion("Linux C" ($NF ~ libcpp? "++" : "") " Library", ver)
/linux/drivers/media/v4l2-core/
H A Dv4l2-jpeg.c248 static int v4l2_jpeg_decode_subsampling(u8 nf, u8 h_v) in v4l2_jpeg_decode_subsampling() argument
250 if (nf == 1) in v4l2_jpeg_decode_subsampling()
254 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling()
278 /* Lf = 8 + 3 * Nf, Nf >= 1 */ in jpeg_parse_frame_header()
284 int p, y, x, nf; in jpeg_parse_frame_header() local
309 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header()
310 if (nf < 0) in jpeg_parse_frame_header()
311 return nf; in jpeg_parse_frame_header()
313 * The spec allows 1 <= Nf <= 255, but we only support up to 4 in jpeg_parse_frame_header()
316 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header()
[all …]
/linux/Documentation/driver-api/surface_aggregator/
H A Dclient.rst348 u32 notifier_callback(struct ssam_event_notifier *nf,
360 struct ssam_event_notifier *nf)
363 nf->base.priority = 1;
366 nf->base.fn = notifier_callback;
369 nf->event.reg = SSAM_EVENT_REGISTRY_KIP;
372 nf->event.id.target_category = sdev->uid.category;
373 nf->event.id.instance = sdev->uid.instance;
380 nf->event.mask = SSAM_EVENT_MASK_STRICT;
383 nf->event.flags = SSAM_EVENT_SEQUENCED;
385 return ssam_notifier_register(sdev->ctrl, nf);
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dnetfilter_link_attach.c60 ASSERT_EQ(info.netfilter.pf, nf_expected.pf, "info nf protocol family"); in verify_netfilter_link_info()
61 ASSERT_EQ(info.netfilter.hooknum, nf_expected.hooknum, "info nf hooknum"); in verify_netfilter_link_info()
62 ASSERT_EQ(info.netfilter.priority, nf_expected.priority, "info nf priority"); in verify_netfilter_link_info()
63 ASSERT_EQ(info.netfilter.flags, nf_expected.flags, "info nf flags"); in verify_netfilter_link_info()
/linux/drivers/video/
H A Dsticore.c526 struct sti_rom_font *nf; in sti_select_fbfont() local
543 nf = kzalloc(size, STI_LOWMEM); in sti_select_fbfont()
544 if (!nf) in sti_select_fbfont()
547 nf->first_char = 0; in sti_select_fbfont()
548 nf->last_char = fbfont->charcount - 1; in sti_select_fbfont()
549 nf->width = fbfont->width; in sti_select_fbfont()
550 nf->height = fbfont->height; in sti_select_fbfont()
551 nf->font_type = STI_FONT_HPROMAN8; in sti_select_fbfont()
552 nf->bytes_per_char = bpc; in sti_select_fbfont()
553 nf->next_font = 0; in sti_select_fbfont()
[all …]
/linux/drivers/gpu/drm/gma500/
H A Doaktrail_hdmi.c108 struct intel_range vco, np, nr, nf; member
114 int nf; member
131 .nf = { .min = NF_MIN, .max = NF_MAX },
182 int np, nr, nf; in oaktrail_hdmi_find_dpll() local
200 nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk); in oaktrail_hdmi_find_dpll()
201 DRM_DEBUG_KMS("np, nr, nf %d %d %d\n", np, nr, nf); in oaktrail_hdmi_find_dpll()
204 * 1024 x 768 np = 1; nr = 0x26; nf = 0x0fd8000; in oaktrail_hdmi_find_dpll()
205 * 1280 x 1024 np = 1; nr = 0x17; nf = 0x1034000; in oaktrail_hdmi_find_dpll()
209 best_clock->nf = (nf << 14); in oaktrail_hdmi_find_dpll()
315 REG_WRITE(DPLL_DIV_CTRL, ((clock.nf << 6) | clock.nr)); in oaktrail_crtc_hdmi_mode_set()
[all …]

123456789