Home
last modified time | relevance | path

Searched refs:pri (Results 1 – 25 of 34) sorted by relevance

12

/arch/um/drivers/
Ddaemon_user.c47 static int connect_to_switch(struct daemon_data *pri) in connect_to_switch() argument
49 struct sockaddr_un *ctl_addr = pri->ctl_addr; in connect_to_switch()
50 struct sockaddr_un *local_addr = pri->local_addr; in connect_to_switch()
55 pri->control = socket(AF_UNIX, SOCK_STREAM, 0); in connect_to_switch()
56 if (pri->control < 0) { in connect_to_switch()
63 if (connect(pri->control, (struct sockaddr *) ctl_addr, in connect_to_switch()
97 n = write(pri->control, &req, sizeof(req)); in connect_to_switch()
105 n = read(pri->control, sun, sizeof(*sun)); in connect_to_switch()
113 pri->data_addr = sun; in connect_to_switch()
121 close(pri->control); in connect_to_switch()
[all …]
Dpcap_user.c18 struct pcap_data *pri = data; in pcap_user_init() local
22 p = pcap_open_live(pri->host_if, ETH_MAX_PACKET + ETH_HEADER_OTHER, in pcap_user_init()
23 pri->promisc, 0, errors); in pcap_user_init()
30 pri->dev = dev; in pcap_user_init()
31 pri->pcap = p; in pcap_user_init()
37 struct pcap_data *pri = data; in pcap_open() local
41 if (pri->pcap == NULL) in pcap_open()
44 if (pri->filter != NULL) { in pcap_open()
45 err = dev_netmask(pri->dev, &netmask); in pcap_open()
51 pri->compiled = uml_kmalloc(sizeof(struct bpf_program), in pcap_open()
[all …]
Dumcast_user.c43 struct umcast_data *pri = data; in umcast_user_init() local
45 pri->remote_addr = new_addr(pri->addr, pri->rport); in umcast_user_init()
46 if (pri->unicast) in umcast_user_init()
47 pri->listen_addr = new_addr(NULL, pri->lport); in umcast_user_init()
49 pri->listen_addr = pri->remote_addr; in umcast_user_init()
50 pri->dev = dev; in umcast_user_init()
56 struct umcast_data *pri = data; in umcast_remove() local
58 kfree(pri->listen_addr); in umcast_remove()
59 if (pri->unicast) in umcast_remove()
60 kfree(pri->remote_addr); in umcast_remove()
[all …]
Dslirp_user.c16 struct slirp_data *pri = data; in slirp_user_init() local
18 pri->dev = dev; in slirp_user_init()
51 struct slirp_data *pri = data; in slirp_open() local
58 err = slirp_tramp(pri->argw.argv, fds[1]); in slirp_open()
65 pri->slave = fds[1]; in slirp_open()
66 pri->slip.pos = 0; in slirp_open()
67 pri->slip.esc = 0; in slirp_open()
68 pri->pid = err; in slirp_open()
79 struct slirp_data *pri = data; in slirp_close() local
83 close(pri->slave); in slirp_close()
[all …]
Dslip_user.c21 struct slip_data *pri = data; in slip_user_init() local
23 pri->dev = dev; in slip_user_init()
125 struct slip_data *pri = data; in slip_open() local
151 pri->slave = sfd; in slip_open()
152 pri->slip.pos = 0; in slip_open()
153 pri->slip.esc = 0; in slip_open()
154 if (pri->gate_addr != NULL) { in slip_open()
156 strcpy(gate_buf, pri->gate_addr); in slip_open()
165 err = os_get_ifname(pri->slave, pri->name); in slip_open()
171 iter_addresses(pri->dev, open_addr, pri->name); in slip_open()
[all …]
Dvde_user.c15 struct vde_data *pri = data; in vde_user_init() local
19 pri->dev = dev; in vde_user_init()
21 conn = vde_open(pri->vde_switch, pri->descr, pri->args); in vde_user_init()
32 pri->conn = conn; in vde_user_init()
39 struct vde_data *pri = data; in vde_user_open() local
41 if (pri->conn != NULL) in vde_user_open()
42 return vde_datafd(pri->conn); in vde_user_open()
50 struct vde_data *pri = data; in vde_remove() local
52 if (pri->conn != NULL) { in vde_remove()
54 vde_close(pri->conn); in vde_remove()
[all …]
Dvde_kern.c19 struct uml_net_private *pri; in vde_init() local
22 pri = netdev_priv(dev); in vde_init()
23 vpri = (struct vde_data *) pri->user; in vde_init()
41 struct vde_data *pri = (struct vde_data *) &lp->user; in vde_read() local
43 if (pri->conn != NULL) in vde_read()
44 return vde_user_read(pri->conn, skb_mac_header(skb), in vde_read()
53 struct vde_data *pri = (struct vde_data *) &lp->user; in vde_write() local
55 if (pri->conn != NULL) in vde_write()
56 return vde_user_write((void *)pri->conn, skb->data, in vde_write()
Dslip.h18 extern int slip_user_read(int fd, void *buf, int len, struct slip_data *pri);
19 extern int slip_user_write(int fd, void *buf, int len, struct slip_data *pri);
Dslirp.h30 extern int slirp_user_read(int fd, void *buf, int len, struct slirp_data *pri);
32 struct slirp_data *pri);
Ddaemon_kern.c21 struct uml_net_private *pri; in daemon_init() local
25 pri = netdev_priv(dev); in daemon_init()
26 dpri = (struct daemon_data *) pri->user; in daemon_init()
Dpcap_kern.c20 struct uml_net_private *pri; in pcap_init() local
24 pri = netdev_priv(dev); in pcap_init()
25 ppri = (struct pcap_data *) pri->user; in pcap_init()
Dpcap_user.h20 extern int pcap_user_read(int fd, void *buf, int len, struct pcap_data *pri);
Dumcast_kern.c29 struct uml_net_private *pri; in umcast_init() local
33 pri = netdev_priv(dev); in umcast_init()
34 dpri = (struct umcast_data *) pri->user; in umcast_init()
Dumcast.h25 struct umcast_data *pri);
Ddaemon.h27 struct daemon_data *pri);
/arch/um/os-Linux/drivers/
Dtuntap_user.c22 struct tuntap_data *pri = data; in tuntap_user_init() local
24 pri->dev = dev; in tuntap_user_init()
31 struct tuntap_data *pri = data; in tuntap_add_addr() local
33 tap_check_ips(pri->gate_addr, addr); in tuntap_add_addr()
34 if ((pri->fd == -1) || pri->fixed_config) in tuntap_add_addr()
36 open_addr(addr, netmask, pri->dev_name); in tuntap_add_addr()
42 struct tuntap_data *pri = data; in tuntap_del_addr() local
44 if ((pri->fd == -1) || pri->fixed_config) in tuntap_del_addr()
46 close_addr(addr, netmask, pri->dev_name); in tuntap_del_addr()
131 struct tuntap_data *pri = data; in tuntap_open() local
[all …]
Dethertap_user.c24 struct ethertap_data *pri = data; in etap_user_init() local
26 pri->dev = dev; in etap_user_init()
139 struct ethertap_data *pri = data; in etap_open() local
143 err = tap_open_common(pri->dev, pri->gate_addr); in etap_open()
163 err = etap_tramp(pri->dev_name, pri->gate_addr, control_fds[0], in etap_open()
182 pri->data_fd = data_fds[0]; in etap_open()
183 pri->control_fd = control_fds[0]; in etap_open()
184 iter_addresses(pri->dev, etap_open_addr, &pri->control_fd); in etap_open()
198 struct ethertap_data *pri = data; in etap_close() local
200 iter_addresses(pri->dev, etap_close_addr, &pri->control_fd); in etap_close()
[all …]
Dtuntap_kern.c20 struct uml_net_private *pri; in tuntap_init() local
24 pri = netdev_priv(dev); in tuntap_init()
25 tpri = (struct tuntap_data *) pri->user; in tuntap_init()
Dethertap_kern.c21 struct uml_net_private *pri; in etap_init() local
25 pri = netdev_priv(dev); in etap_init()
26 epri = (struct ethertap_data *) pri->user; in etap_init()
/arch/x86/kernel/cpu/
Dhypervisor.c57 uint32_t pri, max_pri = 0; in detect_hypervisor_vendor() local
60 pri = (*p)->detect(); in detect_hypervisor_vendor()
61 if (pri > max_pri) { in detect_hypervisor_vendor()
62 max_pri = pri; in detect_hypervisor_vendor()
/arch/arm/mach-davinci/
Dirq.c106 u32 pri; in davinci_irq_init() local
108 for (j = 0, pri = 0; j < 32; j += 4, davinci_def_priorities++) in davinci_irq_init()
109 pri |= (*davinci_def_priorities & 0x07) << j; in davinci_irq_init()
110 davinci_irq_writel(pri, i); in davinci_irq_init()
/arch/mips/include/asm/
Dtraps.h32 #define nmi_notifier(fn, pri) \ argument
36 .priority = pri \
Dcop2.h62 #define cu2_notifier(fn, pri) \ argument
66 .priority = pri \
Dcpu-info.h127 #define proc_cpuinfo_notifier(fn, pri) \ argument
131 .priority = pri \
/arch/sh/boards/mach-microdev/
Dirq.c86 unsigned long priorityReg, priorities, pri; in enable_microdev_irq() local
94 pri = 15 - irq; in enable_microdev_irq()
102 priorities |= MICRODEV_FPGA_INTPRI_LEVEL(fpgaIrq, pri); in enable_microdev_irq()

12