Home
last modified time | relevance | path

Searched refs:new_ops (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/staging/blackbox/
H A Dblackbox_core.c486 struct bbox_ops *new_ops = NULL; in bbox_register_module_ops() local
495 new_ops = kmalloc(sizeof(*new_ops), GFP_KERNEL); in bbox_register_module_ops()
496 if (!new_ops) in bbox_register_module_ops()
498 memset(new_ops, 0, sizeof(*new_ops)); in bbox_register_module_ops()
499 memcpy(&new_ops->ops, ops, sizeof(*ops)); in bbox_register_module_ops()
507 kfree(new_ops); in bbox_register_module_ops()
515 list_add_tail(&new_ops->list, &ops_list); in bbox_register_module_ops()
/kernel/linux/linux-6.6/drivers/staging/blackbox/
H A Dblackbox_core.c486 struct bbox_ops *new_ops = NULL; in bbox_register_module_ops() local
495 new_ops = kmalloc(sizeof(*new_ops), GFP_KERNEL); in bbox_register_module_ops()
496 if (!new_ops) in bbox_register_module_ops()
498 memset(new_ops, 0, sizeof(*new_ops)); in bbox_register_module_ops()
499 memcpy(&new_ops->ops, ops, sizeof(*ops)); in bbox_register_module_ops()
507 kfree(new_ops); in bbox_register_module_ops()
515 list_add_tail(&new_ops->list, &ops_list); in bbox_register_module_ops()
/kernel/linux/linux-5.10/net/netfilter/
H A Dcore.c109 struct nf_hook_ops **new_ops; in nf_hook_entries_grow() local
132 new_ops = nf_hook_entries_get_hook_ops(new); in nf_hook_entries_grow()
143 new_ops[nhooks] = (void *)orig_ops[i]; in nf_hook_entries_grow()
147 new_ops[nhooks] = (void *)reg; in nf_hook_entries_grow()
156 new_ops[nhooks] = (void *)reg; in nf_hook_entries_grow()
228 struct nf_hook_ops **new_ops; in __nf_hook_entries_try_shrink() local
252 new_ops = nf_hook_entries_get_hook_ops(new); in __nf_hook_entries_try_shrink()
257 new_ops[j] = (void *)orig_ops[i]; in __nf_hook_entries_try_shrink()
/kernel/linux/linux-6.6/net/netfilter/
H A Dcore.c109 struct nf_hook_ops **new_ops; in nf_hook_entries_grow() local
144 new_ops = nf_hook_entries_get_hook_ops(new); in nf_hook_entries_grow()
155 new_ops[nhooks] = (void *)orig_ops[i]; in nf_hook_entries_grow()
159 new_ops[nhooks] = (void *)reg; in nf_hook_entries_grow()
168 new_ops[nhooks] = (void *)reg; in nf_hook_entries_grow()
240 struct nf_hook_ops **new_ops; in __nf_hook_entries_try_shrink() local
264 new_ops = nf_hook_entries_get_hook_ops(new); in __nf_hook_entries_try_shrink()
269 new_ops[j] = (void *)orig_ops[i]; in __nf_hook_entries_try_shrink()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_btree_staging.h51 struct xfs_btree_ops **new_ops);
H A Dxfs_btree_staging.c208 * staging functionality work. If new_ops is not NULL, these new ops will be
215 struct xfs_btree_ops **new_ops) in xfs_btree_stage_ifakeroot()
235 if (new_ops) in xfs_btree_stage_ifakeroot()
236 *new_ops = nops; in xfs_btree_stage_ifakeroot()
212 xfs_btree_stage_ifakeroot( struct xfs_btree_cur *cur, struct xbtree_ifakeroot *ifake, struct xfs_btree_ops **new_ops) xfs_btree_stage_ifakeroot() argument
/kernel/linux/linux-5.10/net/atm/
H A Dmpc.h37 struct net_device_ops new_ops; member
H A Dmpc.c320 mpc->new_ops = *mpc->old_ops; in start_mpc()
321 mpc->new_ops.ndo_start_xmit = mpc_send_packet; in start_mpc()
322 dev->netdev_ops = &mpc->new_ops; in start_mpc()
332 if (dev->netdev_ops != &mpc->new_ops) { in stop_mpc()
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_btree_staging.h51 struct xfs_btree_ops **new_ops);
H A Dxfs_btree_staging.c208 * staging functionality work. If new_ops is not NULL, these new ops will be
215 struct xfs_btree_ops **new_ops) in xfs_btree_stage_ifakeroot()
235 if (new_ops) in xfs_btree_stage_ifakeroot()
236 *new_ops = nops; in xfs_btree_stage_ifakeroot()
212 xfs_btree_stage_ifakeroot( struct xfs_btree_cur *cur, struct xbtree_ifakeroot *ifake, struct xfs_btree_ops **new_ops) xfs_btree_stage_ifakeroot() argument
/kernel/linux/linux-6.6/net/atm/
H A Dmpc.h37 struct net_device_ops new_ops; member
H A Dmpc.c320 mpc->new_ops = *mpc->old_ops; in start_mpc()
321 mpc->new_ops.ndo_start_xmit = mpc_send_packet; in start_mpc()
322 dev->netdev_ops = &mpc->new_ops; in start_mpc()
332 if (dev->netdev_ops != &mpc->new_ops) { in stop_mpc()

Completed in 11 milliseconds