| /linux/tools/testing/selftests/net/ |
| H A D | nl_netdev.py | 11 def empty_check(nf) -> None: argument 12 devs = nf.dev_get({}, dump=True) 16 def lo_check(nf) -> None: argument 17 lo_info = nf.dev_get({"ifindex": 1}) 22 def napi_list_check(nf) -> None: argument 28 napis = nf.napi_get({'ifindex': nsim.ifindex}, dump=True) 34 napis = nf.napi_get({'ifindex': nsim.ifindex}, dump=True) 38 def napi_set_threaded(nf) -> None: argument 48 napis = nf.napi_get({'ifindex': nsim.ifindex}, dump=True) 55 nf.napi_set({'id': napi0_id, 'threaded': "enabled"}) [all …]
|
| /linux/drivers/platform/surface/aggregator/ |
| H A D | controller.c | 150 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() 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() 377 ssam_nf_refcount_dec(struct ssam_nf *nf, struct ssam_event_registry reg, in ssam_nf_refcount_dec() argument 382 struct rb_node *node = nf->refcount.rb_node; in ssam_nf_refcount_dec() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_log.c | 49 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() 157 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf() 164 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf() 172 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_unbind_pf() 175 RCU_INIT_POINTER(net->nf.nf_loggers[pf], NULL); in nf_log_unbind_pf() [all …]
|
| H A D | core.c | 284 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head() 286 return net->nf.hooks_arp + hooknum; in nf_hook_entry_head() 290 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head() 292 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head() 305 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head() 307 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head() 309 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head() 311 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head() 773 __netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf in __netfilter_net_init() [all...] |
| H A D | nfnetlink_hook.c | 288 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4)) in nfnl_hook_entries_head() 290 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nfnl_hook_entries_head() 293 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6)) in nfnl_hook_entries_head() 295 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nfnl_hook_entries_head() 299 if (hook >= ARRAY_SIZE(net->nf.hooks_arp)) in nfnl_hook_entries_head() 301 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nfnl_hook_entries_head() 306 if (hook >= ARRAY_SIZE(net->nf.hooks_bridge)) in nfnl_hook_entries_head() 308 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nfnl_hook_entries_head()
|
| H A D | nf_hooks_lwtunnel.c | 86 net->nf.nf_lwtnl_dir_header = hdr; in nf_lwtunnel_net_init() 100 table = net->nf.nf_lwtnl_dir_header->ctl_table_arg; in nf_lwtunnel_net_exit() 101 unregister_net_sysctl_table(net->nf.nf_lwtnl_dir_header); in nf_lwtunnel_net_exit()
|
| /linux/net/ipv6/netfilter/ |
| H A D | nf_defrag_ipv6_hooks.c | 93 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 D | nf_defrag_ipv4.c | 110 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/platform/surface/ |
| H A D | surface_aggregator_cdev.c | 53 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->nf.base.fn = ssam_cdev_notifier; in ssam_cdev_notifier_register() 171 nf->nf.base.priority = priority; in ssam_cdev_notifier_register() 172 nf->nf.event.id.target_category = tc; in ssam_cdev_notifier_register() [all …]
|
| H A D | surface_aggregator_hub.c | 60 u32 (*notify)(struct ssam_event_notifier *nf, const struct ssam_event *event); 244 static u32 ssam_base_hub_notif(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_base_hub_notif() argument 246 struct ssam_hub *hub = container_of(nf, struct ssam_hub, notif); in ssam_base_hub_notif() 315 static u32 ssam_kip_hub_notif(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_kip_hub_notif() argument 317 struct ssam_hub *hub = container_of(nf, struct ssam_hub, notif); in ssam_kip_hub_notif()
|
| H A D | surface_aggregator_tabletsw.c | 54 u32 (*notify)(struct ssam_event_notifier *nf, const struct ssam_event *event); 287 static u32 ssam_kip_sw_notif(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_kip_sw_notif() argument 289 struct ssam_tablet_sw *sw = container_of(nf, struct ssam_tablet_sw, notif); in ssam_kip_sw_notif() 586 static u32 ssam_pos_sw_notif(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_pos_sw_notif() argument 588 struct ssam_tablet_sw *sw = container_of(nf, struct ssam_tablet_sw, notif); in ssam_pos_sw_notif()
|
| /linux/drivers/clk/baikal-t1/ |
| H A D | ccu-pll.c | 76 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 225 *nf = n1; in ccu_pll_calc_factors() 234 unsigned long nr = 1, nf = 1, od = 1; in ccu_pll_determine_rate() local 236 ccu_pll_calc_factors(req->rate, req->best_parent_rate, &nr, &nf, &od); in ccu_pll_determine_rate() 238 req->rate = ccu_pll_calc_freq(req->best_parent_rate, nr, nf, od); in ccu_pll_determine_rate() [all …]
|
| /linux/drivers/clk/renesas/ |
| H A D | rcar-gen4-cpg.c | 87 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/fs/nfsd/ |
| H A D | trace.h | 1081 TP_PROTO(struct nfsd_file *nf), 1082 TP_ARGS(nf), 1091 __entry->nf_inode = nf->nf_inode; 1092 __entry->nf_ref = refcount_read(&nf->nf_ref); 1093 __entry->nf_flags = nf->nf_flags; 1094 __entry->nf_may = nf->nf_may; 1095 __entry->nf_file = nf->nf_file; 1107 TP_PROTO(struct nfsd_file *nf), \ 1108 TP_ARGS(nf)) 1117 const struct nfsd_file *nf [all …]
|
| H A D | vfs.c | 1093 struct nfsd_file *nf, loff_t offset, unsigned long *count, in nfsd_direct_read() argument 1103 init_sync_kiocb(&kiocb, nf->nf_file); in nfsd_direct_read() 1107 dio_start = round_down(offset, nf->nf_dio_read_offset_align); in nfsd_direct_read() 1108 dio_end = round_up((u64)offset + *count, nf->nf_dio_read_offset_align); in nfsd_direct_read() 1129 host_err = vfs_iocb_iter_read(nf->nf_file, &kiocb, &iter); in nfsd_direct_read() 1151 return nfsd_finish_read(rqstp, fhp, nf->nf_file, offset, count, in nfsd_direct_read() 1172 struct nfsd_file *nf, loff_t offset, unsigned long *count, in nfsd_iter_read() argument 1175 struct file *file = nf->nf_file; in nfsd_iter_read() 1189 if (nf->nf_dio_read_offset_align && !rqstp->rq_res.page_len) in nfsd_iter_read() 1190 return nfsd_direct_read(rqstp, fhp, nf, offset, in nfsd_iter_read() [all …]
|
| H A D | localio.c | 120 static void nfsd_file_dio_alignment(struct nfsd_file *nf, in nfsd_file_dio_alignment() argument 125 *nf_dio_mem_align = nf->nf_dio_mem_align; in nfsd_file_dio_alignment() 126 *nf_dio_offset_align = nf->nf_dio_offset_align; in nfsd_file_dio_alignment() 127 *nf_dio_read_offset_align = nf->nf_dio_read_offset_align; in nfsd_file_dio_alignment()
|
| H A D | nfs4state.c | 1210 struct nfsd_file *nf = NULL; in put_deleg_file() local 1214 swap(nf, fp->fi_deleg_file); in put_deleg_file() 1219 if (nf) in put_deleg_file() 1220 nfsd_file_put(nf); in put_deleg_file() 1266 struct nfsd_file *nf = fp->fi_deleg_file; in nfs4_unlock_deleg_lease() local 1270 nfsd4_finalize_deleg_timestamps(dp, nf->nf_file); in nfs4_unlock_deleg_lease() 1271 kernel_setlease(nf->nf_file, F_UNLCK, NULL, (void **)&dp); in nfs4_unlock_deleg_lease() 1556 struct nfsd_file *nf; in nfs4_free_lock_stateid() local 1558 nf = find_any_file(stp->st_stid.sc_file); in nfs4_free_lock_stateid() 1559 if (nf) { in nfs4_free_lock_stateid() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9002_phy.c | 334 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()
|
| H A D | ar5008_phy.c | 1140 int16_t nf; in ar5008_hw_do_getnf() local 1142 nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); in ar5008_hw_do_getnf() 1143 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1145 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); in ar5008_hw_do_getnf() 1146 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1148 nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); in ar5008_hw_do_getnf() 1149 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1154 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); in ar5008_hw_do_getnf() 1155 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1157 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); in ar5008_hw_do_getnf() [all …]
|
| /linux/drivers/video/ |
| H A D | sticore.c | 526 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/include/linux/ |
| H A D | netfilter.h | 245 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook() 248 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook() 252 if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp))) in nf_hook() 254 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook() 259 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook() 339 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST() 342 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST()
|
| /linux/Documentation/networking/ |
| H A D | nf_conntrack-sysctl.rst | 223 TCP connections may be offloaded from nf conntrack to nf flow table. 224 Once aged, the connection is returned to nf conntrack. 230 UDP connections may be offloaded from nf conntrack to nf flow table. 231 Once aged, the connection is returned to nf conntrack.
|
| /linux/drivers/clk/ |
| H A D | clk-sp7021.c | 147 unsigned long fvco, nf; in plltv_integer_div() local 161 nf = fvco * m_table[m]; in plltv_integer_div() 162 n = nf / F_27M; in plltv_integer_div() 163 if ((n * F_27M) == nf) in plltv_integer_div() 214 unsigned long fvco, nf, f, fout = 0; in plltv_fractional_div() local 240 nf = fvco * m; in plltv_fractional_div() 241 nint = nf / pp[3]; in plltv_fractional_div() 248 nfra = (((nf % pp[3]) * mod * pp[4]) + (F_27M / 2)) / F_27M; in plltv_fractional_div()
|
| /linux/drivers/block/aoe/ |
| H A D | aoecmd.c | 561 struct frame *nf; in reassign_frame() local 564 nf = newframe(f->t->d); in reassign_frame() 565 if (!nf) in reassign_frame() 567 if (nf->t == f->t) { in reassign_frame() 568 aoe_freetframe(nf); in reassign_frame() 572 skb = nf->skb; in reassign_frame() 573 nf->skb = f->skb; in reassign_frame() 574 nf->buf = f->buf; in reassign_frame() 575 nf->iter = f->iter; in reassign_frame() 576 nf->waited = 0; in reassign_frame() [all …]
|
| /linux/net/sched/ |
| H A D | cls_route.c | 319 struct route4_filter *nf; in route4_delete() local 331 for (nf = rtnl_dereference(*fp); nf; in route4_delete() 332 fp = &nf->next, nf = rtnl_dereference(*fp)) { in route4_delete() 333 if (nf == f) { in route4_delete()
|