/linux/arch/um/drivers/ |
A D | daemon_user.c | 122 close(pri->control); in connect_to_switch() 137 pri->ctl_addr = new_addr(pri->ctl_sock, in daemon_user_init() 144 pri->dev = dev; in daemon_user_init() 145 pri->fd = connect_to_switch(pri); in daemon_user_init() 146 if (pri->fd < 0) { in daemon_user_init() 149 return pri->fd; in daemon_user_init() 158 return pri->fd; in daemon_open() 165 close(pri->fd); in daemon_remove() 166 pri->fd = -1; in daemon_remove() 167 close(pri->control); in daemon_remove() [all …]
|
A D | pcap_user.c | 18 struct pcap_data *pri = data; in pcap_user_init() local 30 pri->dev = dev; in pcap_user_init() 31 pri->pcap = p; in pcap_user_init() 41 if (pri->pcap == NULL) in pcap_user_open() 44 if (pri->filter != NULL) { in pcap_user_open() 60 pri->filter, pri->optimize, netmask); in pcap_user_open() 67 err = pcap_setfilter(pri->pcap, pri->compiled); in pcap_user_open() 75 return PCAP_FD(pri->pcap); in pcap_user_open() 78 kfree(pri->compiled); in pcap_user_open() 89 if (pri->pcap != NULL) in pcap_remove() [all …]
|
A D | umcast_user.c | 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() 58 kfree(pri->listen_addr); in umcast_remove() 59 if (pri->unicast) in umcast_remove() 61 pri->listen_addr = pri->remote_addr = NULL; in umcast_remove() 94 if (!pri->unicast) { in umcast_open() 122 if (!pri->unicast) { in umcast_open() [all …]
|
A D | slip_user.c | 23 pri->dev = dev; in slip_user_init() 152 pri->slave = sfd; in slip_open() 153 pri->slip.pos = 0; in slip_open() 154 pri->slip.esc = 0; in slip_open() 166 err = os_get_ifname(pri->slave, pri->name); in slip_open() 172 iter_addresses(pri->dev, open_addr, pri->name); in slip_open() 200 iter_addresses(pri->dev, close_addr, pri->name); in slip_close() 209 close(pri->slave); in slip_close() 210 pri->slave = -1; in slip_close() 228 if (pri->slave < 0) in slip_add_addr() [all …]
|
A D | slirp_user.c | 16 struct slirp_data *pri = data; in slirp_user_init() local 18 pri->dev = dev; in slirp_user_init() 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() 83 close(pri->slave); in slirp_close() 85 pri->slave = -1; in slirp_close() 87 if (pri->pid<1) { in slirp_close() 99 err = helper_wait(pri->pid); in slirp_close() [all …]
|
A D | vde_user.c | 15 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() 52 if (pri->conn != NULL) { in vde_remove() 54 vde_close(pri->conn); in vde_remove() 55 pri->conn = NULL; in vde_remove() 56 kfree(pri->args); in vde_remove() [all …]
|
A D | vde_kern.c | 19 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()
|
A D | daemon_kern.c | 21 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()
|
A D | pcap_kern.c | 20 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()
|
/linux/arch/um/os-Linux/drivers/ |
A D | tuntap_user.c | 24 pri->dev = dev; in tuntap_user_init() 34 if ((pri->fd == -1) || pri->fixed_config) in tuntap_add_addr() 44 if ((pri->fd == -1) || pri->fixed_config) in tuntap_del_addr() 135 err = tap_open_common(pri->dev, pri->gate_addr); in tuntap_open() 145 return pri->fd; in tuntap_open() 154 close(pri->fd); in tuntap_open() 172 err = tuntap_open_tramp(pri->gate_addr, &pri->fd, fds[0], in tuntap_open() 190 iter_addresses(pri->dev, open_addr, pri->dev_name); in tuntap_open() 193 return pri->fd; in tuntap_open() 201 iter_addresses(pri->dev, close_addr, pri->dev_name); in tuntap_close() [all …]
|
A D | ethertap_user.c | 26 pri->dev = dev; in etap_user_init() 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() 184 iter_addresses(pri->dev, etap_open_addr, &pri->control_fd); in etap_open() 200 iter_addresses(pri->dev, etap_close_addr, &pri->control_fd); in etap_close() 211 close(pri->data_fd); in etap_close() 212 pri->data_fd = -1; in etap_close() 213 close(pri->control_fd); in etap_close() 214 pri->control_fd = -1; in etap_close() 223 if (pri->control_fd == -1) in etap_add_addr() [all …]
|
A D | tuntap_kern.c | 20 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()
|
A D | ethertap_kern.c | 21 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()
|
/linux/drivers/irqchip/ |
A D | irq-renesas-h8s.c | 38 unsigned short pri; in h8s_disable_irq() local 43 pri = ~(0x000f << pos); in h8s_disable_irq() 44 pri &= readw(addr); in h8s_disable_irq() 45 writew(pri, addr); in h8s_disable_irq() 52 unsigned short pri; in h8s_enable_irq() local 57 pri = ~(0x000f << pos); in h8s_enable_irq() 58 pri &= readw(addr); in h8s_enable_irq() 59 pri |= 1 << pos; in h8s_enable_irq() 60 writew(pri, addr); in h8s_enable_irq()
|
/linux/drivers/pci/ |
A D | ats.c | 200 int pri = pdev->pri_cap; in pci_enable_pri() local 216 if (!pri) in pci_enable_pri() 229 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_enable_pri() 245 int pri = pdev->pri_cap; in pci_disable_pri() local 254 if (!pri) in pci_disable_pri() 257 pci_read_config_word(pdev, pri + PCI_PRI_CTRL, &control); in pci_disable_pri() 259 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_disable_pri() 273 int pri = pdev->pri_cap; in pci_restore_pri_state() local 281 if (!pri) in pci_restore_pri_state() 298 int pri = pdev->pri_cap; in pci_reset_pri() local [all …]
|
/linux/drivers/isdn/mISDN/ |
A D | clock.c | 55 int pri = -128; in select_iclock() local 58 if (iclock->pri > pri) { in select_iclock() 59 pri = iclock->pri; in select_iclock() 87 *mISDN_register_clock(char *name, int pri, clockctl_func_t *ctl, void *priv) in mISDN_register_clock() argument 93 printk(KERN_DEBUG "%s: %s %d\n", __func__, name, pri); in mISDN_register_clock() 100 iclock->pri = pri; in mISDN_register_clock() 118 iclock->pri); in mISDN_unregister_clock()
|
A D | l1oip_core.c | 1046 if (hc->pri) { in l1oip_dctrl() 1054 if (!hc->pri) { in l1oip_dctrl() 1294 hc->pri = pri; in init_card() 1295 hc->d_idx = pri ? 16 : 3; in init_card() 1298 if (hc->pri) in init_card() 1377 if (pri) in init_card() 1436 int pri, bundle; in l1oip_init() local 1450 pri = 0; in l1oip_init() 1454 pri = 1; in l1oip_init() 1458 pri = 0; in l1oip_init() [all …]
|
/linux/drivers/pinctrl/ |
A D | pinctrl-sx150x.c | 91 } pri; member 161 .pri.x123 = { 181 .pri.x123 = { 204 .pri.x123 = { 227 .pri.x456 = { 246 .pri.x456 = { 268 .pri.x456 = { 291 .pri.x789 = { 312 .pri.x789 = { 333 .pri.x789 = { [all …]
|
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/ |
A D | device.h | 29 void __iomem *pri; member 105 #define nvkm_rd08(d,a) ioread8((d)->pri + (a)) 106 #define nvkm_rd16(d,a) ioread16_native((d)->pri + (a)) 107 #define nvkm_rd32(d,a) ioread32_native((d)->pri + (a)) 108 #define nvkm_wr08(d,a,v) iowrite8((v), (d)->pri + (a)) 109 #define nvkm_wr16(d,a,v) iowrite16_native((v), (d)->pri + (a)) 110 #define nvkm_wr32(d,a,v) iowrite32_native((v), (d)->pri + (a))
|
/linux/arch/x86/kernel/cpu/ |
A D | hypervisor.c | 65 uint32_t pri, max_pri = 0; in detect_hypervisor_vendor() local 71 pri = (*p)->detect(); in detect_hypervisor_vendor() 72 if (pri > max_pri) { in detect_hypervisor_vendor() 73 max_pri = pri; in detect_hypervisor_vendor()
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | qp.c | 1373 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in destroy_qp_common() 1897 if (!qp->pri.smac && !qp->pri.smac_port) { in handle_eth_ud_smac_index() 2555 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in __mlx4_ib_modify_qp() 2585 (!qp->pri.candidate_smac && qp->pri.candidate_smac_port)) { in __mlx4_ib_modify_qp() 2589 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) in __mlx4_ib_modify_qp() 2591 qp->pri.smac = qp->pri.candidate_smac; in __mlx4_ib_modify_qp() 2592 qp->pri.smac_index = qp->pri.candidate_smac_index; in __mlx4_ib_modify_qp() 2593 qp->pri.smac_port = qp->pri.candidate_smac_port; in __mlx4_ib_modify_qp() 2623 qp->pri.vid = qp->pri.candidate_vid; in __mlx4_ib_modify_qp() 2624 qp->pri.vlan_port = qp->pri.candidate_vlan_port; in __mlx4_ib_modify_qp() [all …]
|
/linux/include/linux/ |
A D | memory.h | 128 static inline int hotplug_memory_notifier(notifier_fn_t fn, int pri) in hotplug_memory_notifier() argument 157 #define hotplug_memory_notifier(fn, pri) ({ \ argument 159 { .notifier_call = fn, .priority = pri };\
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_dcb.c | 185 pri = index ; in bnx2x_dcbx_get_ap_priority() 684 u8 pri; in bnx2x_dcbx_dcbnl_app_up() local 687 for (pri = MAX_PFC_PRIORITIES - 1; pri > 0; pri--) in bnx2x_dcbx_dcbnl_app_up() 690 return pri; in bnx2x_dcbx_dcbnl_app_up() 1077 u8 pri = 0; in bnx2x_dcbx_print_cos_params() local 1104 for (pri = 0; pri < LLFC_DRIVER_TRAFFIC_TYPE_MAX; pri++) { in bnx2x_dcbx_print_cos_params() 1107 pri, pfc_fw_cfg->traffic_type_to_priority_cos[pri].priority); in bnx2x_dcbx_print_cos_params() 1111 pri, pfc_fw_cfg->traffic_type_to_priority_cos[pri].cos); in bnx2x_dcbx_print_cos_params() 1873 for (pri = 0; pri < LLFC_DRIVER_TRAFFIC_TYPE_MAX; pri++) { in bnx2x_dcbx_fw_struct() 1874 tt2cos[pri].priority = ttp[pri]; in bnx2x_dcbx_fw_struct() [all …]
|
/linux/tools/testing/selftests/powerpc/nx-gzip/ |
A D | gzip_vas.c | 51 static int open_device_nodes(char *devname, int pri, struct nx_handle *handle) in open_device_nodes() argument 65 txattr.vas_id = pri; in open_device_nodes() 88 void *nx_function_begin(int function, int pri) in nx_function_begin() argument 109 rc = open_device_nodes(devname, pri, nxhandle); in nx_function_begin()
|
/linux/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cptlf.c | 51 static int cptlf_set_pri(struct otx2_cptlf_info *lf, int pri) in cptlf_set_pri() argument 63 lf_ctrl.s.pri = pri ? 1 : 0; in cptlf_set_pri() 93 int eng_grp_mask, int pri) in cptlf_set_grp_and_pri() argument 98 ret = cptlf_set_pri(&lfs->lf[slot], pri); in cptlf_set_grp_and_pri() 370 int otx2_cptlf_init(struct otx2_cptlfs_info *lfs, u8 eng_grp_mask, int pri, in otx2_cptlf_init() argument 410 ret = cptlf_set_grp_and_pri(lfs, eng_grp_mask, pri); in otx2_cptlf_init()
|