/kernel/linux/linux-5.10/fs/reiserfs/ |
D | fix_node.c | 54 struct virtual_node *vn = tb->tb_vn; in create_virtual_node() local 61 vn->vn_size = in create_virtual_node() 66 vn->vn_nr_item = (vn->vn_size - DC_SIZE) / (DC_SIZE + KEY_SIZE); in create_virtual_node() 71 vn->vn_nr_item = in create_virtual_node() 72 B_NR_ITEMS(Sh) + ((vn->vn_mode == M_INSERT) ? 1 : 0) - in create_virtual_node() 73 ((vn->vn_mode == M_DELETE) ? 1 : 0); in create_virtual_node() 76 vn->vn_vi = (struct virtual_item *)(tb->tb_vn + 1); in create_virtual_node() 77 memset(vn->vn_vi, 0, vn->vn_nr_item * sizeof(struct virtual_item)); in create_virtual_node() 78 vn->vn_free_ptr += vn->vn_nr_item * sizeof(struct virtual_item); in create_virtual_node() 85 && (vn->vn_mode != M_DELETE || vn->vn_affected_item_num)) in create_virtual_node() [all …]
|
D | item_ops.c | 60 static int sd_create_vi(struct virtual_node *vn, in sd_create_vi() argument 150 static int direct_create_vi(struct virtual_node *vn, in direct_create_vi() argument 288 static int indirect_create_vi(struct virtual_node *vn, in indirect_create_vi() argument 458 static int direntry_create_vi(struct virtual_node *vn, in direntry_create_vi() argument 479 ((is_affected) ? ((vn->vn_mode == M_CUT) ? -1 : in direntry_create_vi() 480 (vn->vn_mode == M_PASTE ? 1 : 0)) : 0); in direntry_create_vi() 483 j = old_entry_num(is_affected, i, vn->vn_pos_in_item, in direntry_create_vi() 484 vn->vn_mode); in direntry_create_vi() 493 if (is_affected && vn->vn_mode == M_PASTE) in direntry_create_vi() 494 dir_u->entry_sizes[vn->vn_pos_in_item] = insert_size; in direntry_create_vi() [all …]
|
/kernel/linux/linux-4.19/fs/reiserfs/ |
D | fix_node.c | 54 struct virtual_node *vn = tb->tb_vn; in create_virtual_node() local 61 vn->vn_size = in create_virtual_node() 66 vn->vn_nr_item = (vn->vn_size - DC_SIZE) / (DC_SIZE + KEY_SIZE); in create_virtual_node() 71 vn->vn_nr_item = in create_virtual_node() 72 B_NR_ITEMS(Sh) + ((vn->vn_mode == M_INSERT) ? 1 : 0) - in create_virtual_node() 73 ((vn->vn_mode == M_DELETE) ? 1 : 0); in create_virtual_node() 76 vn->vn_vi = (struct virtual_item *)(tb->tb_vn + 1); in create_virtual_node() 77 memset(vn->vn_vi, 0, vn->vn_nr_item * sizeof(struct virtual_item)); in create_virtual_node() 78 vn->vn_free_ptr += vn->vn_nr_item * sizeof(struct virtual_item); in create_virtual_node() 85 && (vn->vn_mode != M_DELETE || vn->vn_affected_item_num)) in create_virtual_node() [all …]
|
D | item_ops.c | 60 static int sd_create_vi(struct virtual_node *vn, in sd_create_vi() argument 150 static int direct_create_vi(struct virtual_node *vn, in direct_create_vi() argument 288 static int indirect_create_vi(struct virtual_node *vn, in indirect_create_vi() argument 458 static int direntry_create_vi(struct virtual_node *vn, in direntry_create_vi() argument 479 ((is_affected) ? ((vn->vn_mode == M_CUT) ? -1 : in direntry_create_vi() 480 (vn->vn_mode == M_PASTE ? 1 : 0)) : 0); in direntry_create_vi() 483 j = old_entry_num(is_affected, i, vn->vn_pos_in_item, in direntry_create_vi() 484 vn->vn_mode); in direntry_create_vi() 493 if (is_affected && vn->vn_mode == M_PASTE) in direntry_create_vi() 494 dir_u->entry_sizes[vn->vn_pos_in_item] = insert_size; in direntry_create_vi() [all …]
|
/kernel/linux/linux-5.10/net/8021q/ |
D | vlanproc.c | 94 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_proc_cleanup() local 96 if (vn->proc_vlan_conf) in vlan_proc_cleanup() 97 remove_proc_entry(name_conf, vn->proc_vlan_dir); in vlan_proc_cleanup() 99 if (vn->proc_vlan_dir) in vlan_proc_cleanup() 113 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_proc_init() local 115 vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net); in vlan_proc_init() 116 if (!vn->proc_vlan_dir) in vlan_proc_init() 119 vn->proc_vlan_conf = proc_create_net(name_conf, S_IFREG | 0600, in vlan_proc_init() 120 vn->proc_vlan_dir, &vlan_seq_ops, in vlan_proc_init() 122 if (!vn->proc_vlan_conf) in vlan_proc_init() [all …]
|
D | vlan.c | 222 struct vlan_net *vn = net_generic(net, vlan_net_id); in register_vlan_device() local 235 switch (vn->name_type) { in register_vlan_device() 611 struct vlan_net *vn; in vlan_ioctl_handler() local 613 vn = net_generic(net, vlan_net_id); in vlan_ioctl_handler() 614 vn->name_type = args.u.name_type; in vlan_ioctl_handler() 663 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_init_net() local 666 vn->name_type = VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD; in vlan_init_net()
|
/kernel/linux/linux-4.19/net/8021q/ |
D | vlanproc.c | 97 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_proc_cleanup() local 99 if (vn->proc_vlan_conf) in vlan_proc_cleanup() 100 remove_proc_entry(name_conf, vn->proc_vlan_dir); in vlan_proc_cleanup() 102 if (vn->proc_vlan_dir) in vlan_proc_cleanup() 116 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_proc_init() local 118 vn->proc_vlan_dir = proc_net_mkdir(net, name_root, net->proc_net); in vlan_proc_init() 119 if (!vn->proc_vlan_dir) in vlan_proc_init() 122 vn->proc_vlan_conf = proc_create_net(name_conf, S_IFREG | 0600, in vlan_proc_init() 123 vn->proc_vlan_dir, &vlan_seq_ops, in vlan_proc_init() 125 if (!vn->proc_vlan_conf) in vlan_proc_init() [all …]
|
D | vlan.c | 215 struct vlan_net *vn = net_generic(net, vlan_net_id); in register_vlan_device() local 228 switch (vn->name_type) { in register_vlan_device() 600 struct vlan_net *vn; in vlan_ioctl_handler() local 602 vn = net_generic(net, vlan_net_id); in vlan_ioctl_handler() 603 vn->name_type = args.u.name_type; in vlan_ioctl_handler() 739 struct vlan_net *vn = net_generic(net, vlan_net_id); in vlan_init_net() local 742 vn->name_type = VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD; in vlan_init_net()
|
/kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | memnv04.c | 35 struct nv04_mem_map_vn vn; in nv04_mem_map() member 41 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_mem_map() 55 struct nv04_mem_vn vn; in nv04_mem_new() member 59 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_mem_new()
|
D | memgf100.c | 39 struct gf100_mem_map_vn vn; in gf100_mem_map() member 50 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gf100_mem_map() 73 struct gf100_mem_vn vn; in gf100_mem_new() member 82 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gf100_mem_new()
|
D | memnv50.c | 39 struct nv50_mem_map_vn vn; in nv50_mem_map() member 52 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in nv50_mem_map() 70 struct nv50_mem_vn vn; in nv50_mem_new() member 80 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in nv50_mem_new()
|
D | vmmnv04.c | 84 struct nv04_vmm_map_vn vn; in nv04_vmm_valid() member 87 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_vmm_valid() 108 struct nv04_vmm_vn vn; in nv04_vmm_new_() member 116 return nvif_unvers(-ENOSYS, &argv, &argc, args->vn); in nv04_vmm_new_()
|
D | vmmgm200.c | 148 struct gm200_vmm_vn vn; in gm200_vmm_new_() member 161 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gm200_vmm_new_()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | memnv04.c | 35 struct nv04_mem_map_vn vn; in nv04_mem_map() member 41 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_mem_map() 55 struct nv04_mem_vn vn; in nv04_mem_new() member 59 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_mem_new()
|
D | memnv50.c | 39 struct nv50_mem_map_vn vn; in nv50_mem_map() member 52 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in nv50_mem_map() 70 struct nv50_mem_vn vn; in nv50_mem_new() member 80 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in nv50_mem_new()
|
D | memgf100.c | 39 struct gf100_mem_map_vn vn; in gf100_mem_map() member 50 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gf100_mem_map() 73 struct gf100_mem_vn vn; in gf100_mem_new() member 82 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gf100_mem_new()
|
D | vmmnv04.c | 84 struct nv04_vmm_map_vn vn; in nv04_vmm_valid() member 87 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_vmm_valid() 108 struct nv04_vmm_vn vn; in nv04_vmm_new_() member 117 return nvif_unvers(-ENOSYS, &argv, &argc, args->vn); in nv04_vmm_new_()
|
D | vmmgp100.c | 405 struct gp100_vmm_map_vn vn; in gp100_vmm_valid() member 423 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gp100_vmm_valid() 516 struct gp100_vmm_fault_replay_vn vn; in gp100_vmm_fault_replay() member 520 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gp100_vmm_fault_replay() 600 struct gp100_vmm_vn vn; in gp100_vmm_new_() member 609 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gp100_vmm_new_()
|
/kernel/linux/linux-4.19/drivers/net/ |
D | vxlan.c | 193 struct vxlan_net *vn = net_generic(net, vxlan_net_id); in vs_head() local 195 return &vn->sock_list[hash_32(ntohs(port), PORT_HASH_BITS)]; in vs_head() 1063 static bool vxlan_group_used(struct vxlan_net *vn, struct vxlan_dev *dev) in vxlan_group_used() argument 1085 list_for_each_entry(vxlan, &vn->vxlan_list, next) { in vxlan_group_used() 1114 struct vxlan_net *vn; in __vxlan_sock_release_prep() local 1121 vn = net_generic(sock_net(vs->sock->sk), vxlan_net_id); in __vxlan_sock_release_prep() 1122 spin_lock(&vn->sock_lock); in __vxlan_sock_release_prep() 1128 spin_unlock(&vn->sock_lock); in __vxlan_sock_release_prep() 2435 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in vxlan_vs_del_dev() local 2437 spin_lock(&vn->sock_lock); in vxlan_vs_del_dev() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ |
D | vxlan.c | 171 struct vxlan_net *vn = net_generic(net, vxlan_net_id); in vs_head() local 173 return &vn->sock_list[hash_32(ntohs(port), PORT_HASH_BITS)]; in vs_head() 1521 static bool vxlan_group_used(struct vxlan_net *vn, struct vxlan_dev *dev) in vxlan_group_used() argument 1543 list_for_each_entry(vxlan, &vn->vxlan_list, next) { in vxlan_group_used() 1572 struct vxlan_net *vn; in __vxlan_sock_release_prep() local 1579 vn = net_generic(sock_net(vs->sock->sk), vxlan_net_id); in __vxlan_sock_release_prep() 1580 spin_lock(&vn->sock_lock); in __vxlan_sock_release_prep() 1586 spin_unlock(&vn->sock_lock); in __vxlan_sock_release_prep() 3017 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in vxlan_vs_del_dev() local 3019 spin_lock(&vn->sock_lock); in vxlan_vs_del_dev() [all …]
|
/kernel/linux/linux-4.19/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.h | 910 static inline int func_by_vn(struct bnx2x *bp, int vn) in func_by_vn() argument 912 return 2 * vn + BP_PORT(bp); in func_by_vn() 1333 int vn; in bnx2x_link_sync_notify() local 1336 for (vn = VN_0; vn < BP_MAX_VN_NUM(bp); vn++) { in bnx2x_link_sync_notify() 1337 if (vn == BP_VN(bp)) in bnx2x_link_sync_notify() 1340 func = func_by_vn(bp, vn); in bnx2x_link_sync_notify()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.h | 904 static inline int func_by_vn(struct bnx2x *bp, int vn) in func_by_vn() argument 906 return 2 * vn + BP_PORT(bp); in func_by_vn() 1327 int vn; in bnx2x_link_sync_notify() local 1330 for (vn = VN_0; vn < BP_MAX_VN_NUM(bp); vn++) { in bnx2x_link_sync_notify() 1331 if (vn == BP_VN(bp)) in bnx2x_link_sync_notify() 1334 func = func_by_vn(bp, vn); in bnx2x_link_sync_notify()
|
/kernel/linux/linux-4.19/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 550 struct fip_vn_desc *vn; in fcoe_ctlr_send_keep_alive() local 560 len = sizeof(*kal) + ports * sizeof(*vn); in fcoe_ctlr_send_keep_alive() 575 ports * sizeof(*vn)) / FIP_BPW); in fcoe_ctlr_send_keep_alive() 584 vn = (struct fip_vn_desc *)(kal + 1); in fcoe_ctlr_send_keep_alive() 585 vn->fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_send_keep_alive() 586 vn->fd_desc.fip_dlen = sizeof(*vn) / FIP_BPW; in fcoe_ctlr_send_keep_alive() 587 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive() 588 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 589 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive() 2040 struct fip_vn_desc vn; in fcoe_ctlr_vn_send() member [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 539 struct fip_vn_desc *vn; in fcoe_ctlr_send_keep_alive() local 549 len = sizeof(*kal) + ports * sizeof(*vn); in fcoe_ctlr_send_keep_alive() 564 ports * sizeof(*vn)) / FIP_BPW); in fcoe_ctlr_send_keep_alive() 573 vn = (struct fip_vn_desc *)(kal + 1); in fcoe_ctlr_send_keep_alive() 574 vn->fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_send_keep_alive() 575 vn->fd_desc.fip_dlen = sizeof(*vn) / FIP_BPW; in fcoe_ctlr_send_keep_alive() 576 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive() 577 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 578 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive() 2031 struct fip_vn_desc vn; in fcoe_ctlr_vn_send() member [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
D | sun8i_vi_layer.c | 80 u32 vn = 0, vm = 0; in sun8i_vi_layer_update_coord() local 157 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord() 158 src_h = vn; in sun8i_vi_layer_update_coord() 193 SUN8I_MIXER_CHAN_VI_DS_N(vn) | in sun8i_vi_layer_update_coord() 197 SUN8I_MIXER_CHAN_VI_DS_N(vn) | in sun8i_vi_layer_update_coord()
|