/kernel/linux/linux-5.10/drivers/media/pci/sta2x11/ |
H A D | sta2x11_vip.c | 203 static inline void reg_write(struct sta2x11_vip *vip, unsigned int reg, u32 val) in reg_write() argument 205 iowrite32((val), (vip->iomem)+(reg)); in reg_write() 208 static inline u32 reg_read(struct sta2x11_vip *vip, unsigned int reg) in reg_read() argument 210 return ioread32((vip->iomem)+(reg)); in reg_read() 213 static void start_dma(struct sta2x11_vip *vip, struct vip_buffer *vip_buf) in start_dma() argument 217 if (vip->format.field == V4L2_FIELD_INTERLACED) in start_dma() 218 offset = vip->format.width * 2; in start_dma() 220 spin_lock_irq(&vip->slock); in start_dma() 222 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CT in start_dma() 230 vip_active_buf_next(struct sta2x11_vip *vip) vip_active_buf_next() argument 256 struct sta2x11_vip *vip = vb2_get_drv_priv(vq); queue_setup() local 284 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); buffer_prepare() local 302 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); buffer_queue() local 319 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); buffer_finish() local 333 struct sta2x11_vip *vip = vb2_get_drv_priv(vq); start_streaming() local 349 struct sta2x11_vip *vip = vb2_get_drv_priv(vq); stop_streaming() local 404 struct sta2x11_vip *vip = video_drvdata(file); vidioc_querycap() local 429 struct sta2x11_vip *vip = video_drvdata(file); vidioc_s_std() local 464 struct sta2x11_vip *vip = video_drvdata(file); vidioc_g_std() local 482 struct sta2x11_vip *vip = video_drvdata(file); vidioc_querystd() local 514 struct sta2x11_vip *vip = video_drvdata(file); vidioc_s_input() local 539 struct sta2x11_vip *vip = video_drvdata(file); vidioc_g_input() local 586 struct sta2x11_vip *vip = video_drvdata(file); vidioc_try_fmt_vid_cap() local 644 struct sta2x11_vip *vip = video_drvdata(file); vidioc_s_fmt_vid_cap() local 711 struct sta2x11_vip *vip = video_drvdata(file); vidioc_g_fmt_vid_cap() local 773 vip_irq(int irq, struct sta2x11_vip *vip) vip_irq() argument 812 sta2x11_vip_init_register(struct sta2x11_vip *vip) sta2x11_vip_init_register() argument 826 sta2x11_vip_clear_register(struct sta2x11_vip *vip) sta2x11_vip_clear_register() argument 839 sta2x11_vip_init_buffer(struct sta2x11_vip *vip) sta2x11_vip_init_buffer() argument 866 sta2x11_vip_init_controls(struct sta2x11_vip *vip) sta2x11_vip_init_controls() argument 964 struct sta2x11_vip *vip; sta2x11_vip_init_one() local 1142 struct sta2x11_vip *vip = sta2x11_vip_remove_one() local 1180 struct sta2x11_vip *vip = sta2x11_vip_suspend() local 1214 struct sta2x11_vip *vip = sta2x11_vip_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/sta2x11/ |
H A D | sta2x11_vip.c | 204 static inline void reg_write(struct sta2x11_vip *vip, unsigned int reg, u32 val) in reg_write() argument 206 iowrite32((val), (vip->iomem)+(reg)); in reg_write() 209 static inline u32 reg_read(struct sta2x11_vip *vip, unsigned int reg) in reg_read() argument 211 return ioread32((vip->iomem)+(reg)); in reg_read() 214 static void start_dma(struct sta2x11_vip *vip, struct vip_buffer *vip_buf) in start_dma() argument 218 if (vip->format.field == V4L2_FIELD_INTERLACED) in start_dma() 219 offset = vip->format.width * 2; in start_dma() 221 spin_lock_irq(&vip->slock); in start_dma() 223 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CT in start_dma() 231 vip_active_buf_next(struct sta2x11_vip *vip) vip_active_buf_next() argument 257 struct sta2x11_vip *vip = vb2_get_drv_priv(vq); queue_setup() local 285 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); buffer_prepare() local 303 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); buffer_queue() local 320 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); buffer_finish() local 334 struct sta2x11_vip *vip = vb2_get_drv_priv(vq); start_streaming() local 350 struct sta2x11_vip *vip = vb2_get_drv_priv(vq); stop_streaming() local 426 struct sta2x11_vip *vip = video_drvdata(file); vidioc_s_std() local 461 struct sta2x11_vip *vip = video_drvdata(file); vidioc_g_std() local 479 struct sta2x11_vip *vip = video_drvdata(file); vidioc_querystd() local 511 struct sta2x11_vip *vip = video_drvdata(file); vidioc_s_input() local 536 struct sta2x11_vip *vip = video_drvdata(file); vidioc_g_input() local 583 struct sta2x11_vip *vip = video_drvdata(file); vidioc_try_fmt_vid_cap() local 641 struct sta2x11_vip *vip = video_drvdata(file); vidioc_s_fmt_vid_cap() local 708 struct sta2x11_vip *vip = video_drvdata(file); vidioc_g_fmt_vid_cap() local 770 vip_irq(int irq, struct sta2x11_vip *vip) vip_irq() argument 809 sta2x11_vip_init_register(struct sta2x11_vip *vip) sta2x11_vip_init_register() argument 823 sta2x11_vip_clear_register(struct sta2x11_vip *vip) sta2x11_vip_clear_register() argument 836 sta2x11_vip_init_buffer(struct sta2x11_vip *vip) sta2x11_vip_init_buffer() argument 863 sta2x11_vip_init_controls(struct sta2x11_vip *vip) sta2x11_vip_init_controls() argument 964 struct sta2x11_vip *vip; sta2x11_vip_init_one() local 1142 struct sta2x11_vip *vip = sta2x11_vip_remove_one() local 1180 struct sta2x11_vip *vip = sta2x11_vip_suspend() local 1214 struct sta2x11_vip *vip = sta2x11_vip_resume() local [all...] |
/kernel/linux/linux-5.10/fs/freevxfs/ |
H A D | vxfs_inode.c | 51 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino) in vxfs_dumpi() argument 60 printk(KERN_DEBUG "mode is %x\n", vip->vii_mode); in vxfs_dumpi() 62 vip->vii_nlink, vip->vii_uid, vip->vii_gid); in vxfs_dumpi() 64 vip->vii_size, vip->vii_blocks); in vxfs_dumpi() 65 printk(KERN_DEBUG "orgtype:%u\n", vip->vii_orgtype); in vxfs_dumpi() 71 * @vip: VxFS inode 78 vxfs_transmod(struct vxfs_inode_info *vip) in vxfs_transmod() argument 100 dip2vip_cpy(struct vxfs_sb_info *sbi, struct vxfs_inode_info *vip, struct vxfs_dinode *dip) dip2vip_cpy() argument 180 struct vxfs_inode_info *vip = VXFS_INO(inode); vxfs_blkiget() local 184 dip2vip_cpy(VXFS_SBI(sbp), vip, dip); vxfs_blkiget() local 211 __vxfs_iget(struct inode *ilistp, struct vxfs_inode_info *vip, ino_t ino) __vxfs_iget() argument 280 struct vxfs_inode_info *vip; vxfs_iget() local [all...] |
H A D | vxfs_bmap.c | 70 struct vxfs_inode_info *vip = VXFS_INO(ip); in vxfs_bmap_ext4() local 73 u32 indsize = fs32_to_cpu(sbi, vip->vii_ext4.ve4_indsize); in vxfs_bmap_ext4() 80 struct direct *d = vip->vii_ext4.ve4_direct + i; in vxfs_bmap_ext4() 92 fs32_to_cpu(sbi, vip->vii_ext4.ve4_indir[0])); in vxfs_bmap_ext4() 212 struct vxfs_inode_info *vip = VXFS_INO(ip); in vxfs_bmap_typed() local 218 struct vxfs_typed *typ = vip->vii_org.typed + i; in vxfs_bmap_typed() 276 struct vxfs_inode_info *vip = VXFS_INO(ip); in vxfs_bmap1() local 278 if (VXFS_ISEXT4(vip)) in vxfs_bmap1() 280 if (VXFS_ISTYPED(vip)) in vxfs_bmap1() 282 if (VXFS_ISNONE(vip)) in vxfs_bmap1() [all...] |
H A D | vxfs_fshead.c | 112 struct vxfs_inode_info *vip; in vxfs_read_fshead() local 120 vip = VXFS_INO(infp->vsi_fship); in vxfs_read_fshead() 121 if (!VXFS_ISFSH(vip)) { in vxfs_read_fshead() 123 vip->vii_mode & VXFS_TYPE_MASK); in vxfs_read_fshead() 129 vxfs_dumpi(vip, infp->vsi_fshino); in vxfs_read_fshead()
|
/kernel/linux/linux-6.6/fs/freevxfs/ |
H A D | vxfs_inode.c | 27 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino) in vxfs_dumpi() argument 36 printk(KERN_DEBUG "mode is %x\n", vip->vii_mode); in vxfs_dumpi() 38 vip->vii_nlink, vip->vii_uid, vip->vii_gid); in vxfs_dumpi() 40 vip->vii_size, vip->vii_blocks); in vxfs_dumpi() 41 printk(KERN_DEBUG "orgtype:%u\n", vip->vii_orgtype); in vxfs_dumpi() 47 * @vip: VxFS inode 54 vxfs_transmod(struct vxfs_inode_info *vip) in vxfs_transmod() argument 76 dip2vip_cpy(struct vxfs_sb_info *sbi, struct vxfs_inode_info *vip, struct vxfs_dinode *dip) dip2vip_cpy() argument 155 struct vxfs_inode_info *vip = VXFS_INO(inode); vxfs_blkiget() local 159 dip2vip_cpy(VXFS_SBI(sbp), vip, dip); vxfs_blkiget() local 186 __vxfs_iget(struct inode *ilistp, struct vxfs_inode_info *vip, ino_t ino) __vxfs_iget() argument 255 struct vxfs_inode_info *vip; vxfs_iget() local [all...] |
H A D | vxfs_bmap.c | 46 struct vxfs_inode_info *vip = VXFS_INO(ip); in vxfs_bmap_ext4() local 49 u32 indsize = fs32_to_cpu(sbi, vip->vii_ext4.ve4_indsize); in vxfs_bmap_ext4() 56 struct direct *d = vip->vii_ext4.ve4_direct + i; in vxfs_bmap_ext4() 68 fs32_to_cpu(sbi, vip->vii_ext4.ve4_indir[0])); in vxfs_bmap_ext4() 188 struct vxfs_inode_info *vip = VXFS_INO(ip); in vxfs_bmap_typed() local 194 struct vxfs_typed *typ = vip->vii_org.typed + i; in vxfs_bmap_typed() 252 struct vxfs_inode_info *vip = VXFS_INO(ip); in vxfs_bmap1() local 254 if (VXFS_ISEXT4(vip)) in vxfs_bmap1() 256 if (VXFS_ISTYPED(vip)) in vxfs_bmap1() 258 if (VXFS_ISNONE(vip)) in vxfs_bmap1() [all...] |
H A D | vxfs_fshead.c | 88 struct vxfs_inode_info *vip; in vxfs_read_fshead() local 96 vip = VXFS_INO(infp->vsi_fship); in vxfs_read_fshead() 97 if (!VXFS_ISFSH(vip)) { in vxfs_read_fshead() 99 vip->vii_mode & VXFS_TYPE_MASK); in vxfs_read_fshead() 105 vxfs_dumpi(vip, infp->vsi_fshino); in vxfs_read_fshead()
|
/kernel/linux/linux-6.6/drivers/staging/media/tegra-video/ |
H A D | vip.c | 21 #include "vip.h" 54 struct tegra_vip *vip = vip_channel_to_vip(vip_chan); in tegra_vip_enable_stream() local 58 err = pm_runtime_resume_and_get(vip->dev); in tegra_vip_enable_stream() 60 return dev_err_probe(vip->dev, err, "failed to get runtime PM\n"); in tegra_vip_enable_stream() 62 err = vip->soc->ops->vip_start_streaming(vip_chan); in tegra_vip_enable_stream() 74 pm_runtime_put(vip->dev); in tegra_vip_enable_stream() 81 struct tegra_vip *vip = vip_channel_to_vip(vip_chan); in tegra_vip_disable_stream() local 86 pm_runtime_put(vip->dev); in tegra_vip_disable_stream() 111 static int tegra_vip_channel_of_parse(struct tegra_vip *vip) in tegra_vip_channel_of_parse() argument 113 struct device *dev = vip in tegra_vip_channel_of_parse() 158 tegra_vip_channel_init(struct tegra_vip *vip) tegra_vip_channel_init() argument 192 struct tegra_vip *vip = host1x_client_to_vip(client); tegra_vip_init() local 212 struct tegra_vip *vip = host1x_client_to_vip(client); tegra_vip_exit() local 229 struct tegra_vip *vip; tegra_vip_probe() local 259 struct tegra_vip *vip = platform_get_drvdata(pdev); tegra_vip_remove() local [all...] |
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
H A D | core_cia.c | 46 #define vip volatile int * macro 116 stat0 = *(vip)CIA_IOC_CIA_ERR; in conf_read() 117 *(vip)CIA_IOC_CIA_ERR = stat0; in conf_read() 119 *(vip)CIA_IOC_CIA_ERR; /* re-read to force write */ in conf_read() 123 cia_cfg = *(vip)CIA_IOC_CFG; in conf_read() 124 *(vip)CIA_IOC_CFG = (cia_cfg & ~3) | 1; in conf_read() 126 *(vip)CIA_IOC_CFG; in conf_read() 136 value = *(vip)addr; in conf_read() 149 *(vip)CIA_IOC_CFG = cia_cfg; in conf_read() 151 *(vip)CIA_IOC_CF in conf_read() [all...] |
/kernel/linux/linux-6.6/arch/alpha/kernel/ |
H A D | core_cia.c | 46 #define vip volatile int * macro 116 stat0 = *(vip)CIA_IOC_CIA_ERR; in conf_read() 117 *(vip)CIA_IOC_CIA_ERR = stat0; in conf_read() 119 *(vip)CIA_IOC_CIA_ERR; /* re-read to force write */ in conf_read() 123 cia_cfg = *(vip)CIA_IOC_CFG; in conf_read() 124 *(vip)CIA_IOC_CFG = (cia_cfg & ~3) | 1; in conf_read() 126 *(vip)CIA_IOC_CFG; in conf_read() 136 value = *(vip)addr; in conf_read() 149 *(vip)CIA_IOC_CFG = cia_cfg; in conf_read() 151 *(vip)CIA_IOC_CF in conf_read() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | xdp_tx_iptunnel_kern.c | 31 __type(key, struct vip); 87 struct vip vip = {}; in handle_ipv4() local 99 vip.protocol = iph->protocol; in handle_ipv4() 100 vip.family = AF_INET; in handle_ipv4() 101 vip.daddr.v4 = iph->daddr; in handle_ipv4() 102 vip.dport = dport; in handle_ipv4() 105 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4() 110 /* The vip key is found. Add an IP header and send it out */ in handle_ipv4() 147 count_tx(vip in handle_ipv4() 161 struct vip vip = {}; handle_ipv6() local [all...] |
H A D | xdp_tx_iptunnel_user.c | 88 printf(" -a <vip-service-address> IPv4 or IPv6\n"); in usage() 89 printf(" -p <vip-service-port> A port range (e.g. 433-444) is also allowed\n"); in usage() 167 struct vip vip = {}; in main() local 173 vip.protocol = IPPROTO_TCP; in main() 190 vip.family = parse_ipstr(optarg, vip.daddr.v6); in main() 191 if (vip.family == AF_UNSPEC) in main() 199 vip.protocol = atoi(optarg); in main() 289 vip in main() [all...] |
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | xdp_tx_iptunnel_kern.c | 31 __type(key, struct vip); 87 struct vip vip = {}; in handle_ipv4() local 99 vip.protocol = iph->protocol; in handle_ipv4() 100 vip.family = AF_INET; in handle_ipv4() 101 vip.daddr.v4 = iph->daddr; in handle_ipv4() 102 vip.dport = dport; in handle_ipv4() 105 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4() 110 /* The vip key is found. Add an IP header and send it out */ in handle_ipv4() 147 count_tx(vip in handle_ipv4() 161 struct vip vip = {}; handle_ipv6() local [all...] |
H A D | xdp_tx_iptunnel_user.c | 87 printf(" -a <vip-service-address> IPv4 or IPv6\n"); in usage() 88 printf(" -p <vip-service-port> A port range (e.g. 433-444) is also allowed\n"); in usage() 163 struct vip vip = {}; in main() local 169 vip.protocol = IPPROTO_TCP; in main() 186 vip.family = parse_ipstr(optarg, vip.daddr.v6); in main() 187 if (vip.family == AF_UNSPEC) in main() 195 vip.protocol = atoi(optarg); in main() 285 vip in main() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp.c | 35 __type(key, struct vip); 90 struct vip vip = {}; in handle_ipv4() local 102 vip.protocol = iph->protocol; in handle_ipv4() 103 vip.family = AF_INET; in handle_ipv4() 104 vip.daddr.v4 = iph->daddr; in handle_ipv4() 105 vip.dport = dport; in handle_ipv4() 108 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4() 148 count_tx(vip.protocol); in handle_ipv4() 162 struct vip vi in handle_ipv6() local [all...] |
H A D | test_xdp_loop.c | 31 __type(key, struct vip); 86 struct vip vip = {}; in handle_ipv4() local 98 vip.protocol = iph->protocol; in handle_ipv4() 99 vip.family = AF_INET; in handle_ipv4() 100 vip.daddr.v4 = iph->daddr; in handle_ipv4() 101 vip.dport = dport; in handle_ipv4() 104 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4() 144 count_tx(vip.protocol); in handle_ipv4() 158 struct vip vi in handle_ipv6() local [all...] |
H A D | test_l4lb.c | 175 __type(key, struct vip); 338 struct vip vip = {}; in process_packet() local 407 memcpy(vip.daddr.v6, pckt.dstv6, 16); in process_packet() 409 vip.daddr.v4 = pckt.dst; in process_packet() 411 vip.dport = pckt.port16[1]; in process_packet() 412 vip.protocol = pckt.proto; in process_packet() 413 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() 415 vip.dport = 0; in process_packet() 416 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() [all...] |
H A D | test_l4lb_noinline.c | 169 __type(key, struct vip); 335 struct vip vip = {}; in process_packet() local 404 memcpy(vip.daddr.v6, pckt.dstv6, 16); in process_packet() 406 vip.daddr.v4 = pckt.dst; in process_packet() 408 vip.dport = pckt.port16[1]; in process_packet() 409 vip.protocol = pckt.proto; in process_packet() 410 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() 412 vip.dport = 0; in process_packet() 413 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp.c | 33 __type(key, struct vip); 88 struct vip vip = {}; in handle_ipv4() local 100 vip.protocol = iph->protocol; in handle_ipv4() 101 vip.family = AF_INET; in handle_ipv4() 102 vip.daddr.v4 = iph->daddr; in handle_ipv4() 103 vip.dport = dport; in handle_ipv4() 106 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4() 146 count_tx(vip.protocol); in handle_ipv4() 160 struct vip vi in handle_ipv6() local [all...] |
H A D | test_xdp_dynptr.c | 37 __type(key, struct vip); 89 struct vip vip = {}; in handle_ipv4() local 110 vip.protocol = iph->protocol; in handle_ipv4() 111 vip.family = AF_INET; in handle_ipv4() 112 vip.daddr.v4 = iph->daddr; in handle_ipv4() 113 vip.dport = dport; in handle_ipv4() 116 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4() 154 count_tx(vip.protocol); in handle_ipv4() 170 struct vip vi in handle_ipv6() local [all...] |
H A D | test_xdp_loop.c | 29 __type(key, struct vip); 84 struct vip vip = {}; in handle_ipv4() local 96 vip.protocol = iph->protocol; in handle_ipv4() 97 vip.family = AF_INET; in handle_ipv4() 98 vip.daddr.v4 = iph->daddr; in handle_ipv4() 99 vip.dport = dport; in handle_ipv4() 102 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4() 142 count_tx(vip.protocol); in handle_ipv4() 156 struct vip vi in handle_ipv6() local [all...] |
H A D | test_l4lb_noinline_dynptr.c | 171 __type(key, struct vip); 340 struct vip vip = {}; in process_packet() local 411 memcpy(vip.daddr.v6, pckt.dstv6, 16); in process_packet() 413 vip.daddr.v4 = pckt.dst; in process_packet() 415 vip.dport = pckt.port16[1]; in process_packet() 416 vip.protocol = pckt.proto; in process_packet() 417 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() 419 vip.dport = 0; in process_packet() 420 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() [all...] |
H A D | test_l4lb_noinline.c | 169 __type(key, struct vip); 335 struct vip vip = {}; in process_packet() local 404 memcpy(vip.daddr.v6, pckt.dstv6, 16); in process_packet() 406 vip.daddr.v4 = pckt.dst; in process_packet() 408 vip.dport = pckt.port16[1]; in process_packet() 409 vip.protocol = pckt.proto; in process_packet() 410 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() 412 vip.dport = 0; in process_packet() 413 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() [all...] |
H A D | test_l4lb.c | 173 __type(key, struct vip); 336 struct vip vip = {}; in process_packet() local 405 memcpy(vip.daddr.v6, pckt.dstv6, 16); in process_packet() 407 vip.daddr.v4 = pckt.dst; in process_packet() 409 vip.dport = pckt.port16[1]; in process_packet() 410 vip.protocol = pckt.proto; in process_packet() 411 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() 413 vip.dport = 0; in process_packet() 414 vip_info = bpf_map_lookup_elem(&vip_map, &vip); in process_packet() [all...] |