/linux-4.1.27/drivers/net/usb/ |
H A D | hso.c | 720 struct hso_net *odev = netdev_priv(net); hso_net_open() local 723 if (!odev) { hso_net_open() 728 odev->skb_tx_buf = NULL; hso_net_open() 731 spin_lock_irqsave(&odev->net_lock, flags); hso_net_open() 732 odev->rx_parse_state = WAIT_IP; hso_net_open() 733 odev->rx_buf_size = 0; hso_net_open() 734 odev->rx_buf_missing = sizeof(struct iphdr); hso_net_open() 735 spin_unlock_irqrestore(&odev->net_lock, flags); hso_net_open() 738 set_bit(HSO_NET_RUNNING, &odev->flags); hso_net_open() 739 hso_start_net_device(odev->parent); hso_net_open() 750 struct hso_net *odev = netdev_priv(net); hso_net_close() local 755 clear_bit(HSO_NET_RUNNING, &odev->flags); hso_net_close() 757 hso_stop_net_device(odev->parent); hso_net_close() 766 struct hso_net *odev = urb->context; write_bulk_callback() local 770 if (!odev || !test_bit(HSO_NET_RUNNING, &odev->flags)) { write_bulk_callback() 776 if (!netif_device_present(odev->net)) { write_bulk_callback() 785 handle_usb_error(status, __func__, odev->parent); write_bulk_callback() 787 hso_put_activity(odev->parent); write_bulk_callback() 790 netif_wake_queue(odev->net); write_bulk_callback() 797 struct hso_net *odev = netdev_priv(net); hso_net_start_xmit() local 802 if (hso_get_activity(odev->parent) == -EAGAIN) { hso_net_start_xmit() 803 odev->skb_tx_buf = skb; hso_net_start_xmit() 810 memcpy(odev->mux_bulk_tx_buf, skb->data, skb->len); hso_net_start_xmit() 814 usb_fill_bulk_urb(odev->mux_bulk_tx_urb, hso_net_start_xmit() 815 odev->parent->usb, hso_net_start_xmit() 816 usb_sndbulkpipe(odev->parent->usb, hso_net_start_xmit() 817 odev->out_endp-> hso_net_start_xmit() 819 odev->mux_bulk_tx_buf, skb->len, write_bulk_callback, hso_net_start_xmit() 820 odev); hso_net_start_xmit() 823 odev->mux_bulk_tx_urb->transfer_flags |= URB_ZERO_PACKET; hso_net_start_xmit() 826 result = usb_submit_urb(odev->mux_bulk_tx_urb, GFP_ATOMIC); hso_net_start_xmit() 828 dev_warn(&odev->parent->interface->dev, hso_net_start_xmit() 848 struct hso_net *odev = netdev_priv(net); hso_net_tx_timeout() local 850 if (!odev) hso_net_tx_timeout() 857 if (odev->mux_bulk_tx_urb && hso_net_tx_timeout() 858 (odev->mux_bulk_tx_urb->status == -EINPROGRESS)) hso_net_tx_timeout() 859 usb_unlink_urb(odev->mux_bulk_tx_urb); hso_net_tx_timeout() 866 static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt, packetizeRx() argument 879 switch (odev->rx_parse_state) { packetizeRx() 885 odev->rx_buf_missing) ? count : odev-> packetizeRx() 888 memcpy(((unsigned char *)(&odev->rx_ip_hdr)) + packetizeRx() 889 odev->rx_buf_size, ip_pkt + buffer_offset, packetizeRx() 892 odev->rx_buf_size += temp_bytes; packetizeRx() 894 odev->rx_buf_missing -= temp_bytes; packetizeRx() 897 if (!odev->rx_buf_missing) { packetizeRx() 900 frame_len = ntohs(odev->rx_ip_hdr.tot_len); packetizeRx() 904 dev_err(&odev->net->dev, packetizeRx() 907 odev->rx_parse_state = WAIT_SYNC; packetizeRx() 911 odev->skb_rx_buf = netdev_alloc_skb(odev->net, packetizeRx() 913 if (!odev->skb_rx_buf) { packetizeRx() 916 odev->rx_parse_state = WAIT_SYNC; packetizeRx() 923 skb_put(odev->skb_rx_buf, packetizeRx() 925 memcpy(tmp_rx_buf, (char *)&(odev->rx_ip_hdr), packetizeRx() 929 odev->rx_buf_size = sizeof(struct iphdr); packetizeRx() 932 odev->rx_buf_missing = packetizeRx() 934 odev->rx_parse_state = WAIT_DATA; packetizeRx() 939 temp_bytes = (count < odev->rx_buf_missing) packetizeRx() 940 ? count : odev->rx_buf_missing; packetizeRx() 945 tmp_rx_buf = skb_put(odev->skb_rx_buf, temp_bytes); packetizeRx() 948 odev->rx_buf_missing -= temp_bytes; packetizeRx() 951 odev->rx_buf_size += temp_bytes; packetizeRx() 952 if (!odev->rx_buf_missing) { packetizeRx() 955 odev->skb_rx_buf->protocol = cpu_to_be16(ETH_P_IP); packetizeRx() 956 skb_reset_mac_header(odev->skb_rx_buf); packetizeRx() 959 netif_rx(odev->skb_rx_buf); packetizeRx() 961 odev->skb_rx_buf = NULL; packetizeRx() 964 odev->net->stats.rx_packets++; packetizeRx() 966 odev->net->stats.rx_bytes += odev->rx_buf_size; packetizeRx() 968 odev->rx_buf_size = 0; packetizeRx() 969 odev->rx_buf_missing = sizeof(struct iphdr); packetizeRx() 970 odev->rx_parse_state = WAIT_IP; packetizeRx() 987 if (odev->rx_parse_state == WAIT_SYNC) { packetizeRx() 988 odev->rx_parse_state = WAIT_IP; packetizeRx() 989 odev->rx_buf_size = 0; packetizeRx() 990 odev->rx_buf_missing = sizeof(struct iphdr); packetizeRx() 1010 struct hso_net *odev = urb->context; read_bulk_callback() local 1017 handle_usb_error(status, __func__, odev->parent); read_bulk_callback() 1022 if (!odev || !test_bit(HSO_NET_RUNNING, &odev->flags)) { read_bulk_callback() 1028 net = odev->net; read_bulk_callback() 1035 if (odev->parent->port_spec & HSO_INFO_CRC_BUG) read_bulk_callback() 1036 fix_crc_bug(urb, odev->in_endp->wMaxPacketSize); read_bulk_callback() 1042 spin_lock(&odev->net_lock); read_bulk_callback() 1043 packetizeRx(odev, urb->transfer_buffer, urb->actual_length, read_bulk_callback() 1046 spin_unlock(&odev->net_lock); read_bulk_callback() 1052 odev->parent->usb, read_bulk_callback() 1053 usb_rcvbulkpipe(odev->parent->usb, read_bulk_callback() 1054 odev->in_endp-> read_bulk_callback() 1057 read_bulk_callback, odev); read_bulk_callback() 1063 dev_warn(&odev->parent->interface->dev, read_bulk_callback()
|
/linux-4.1.27/fs/exofs/ |
H A D | sys.c | 61 struct osd_dev *odev = edp->ored.od; osdname_show() local 62 const struct osd_dev_info *odi = osduld_device_info(odev); osdname_show() 69 struct osd_dev *odev = edp->ored.od; systemid_show() local 70 const struct osd_dev_info *odi = osduld_device_info(odev); systemid_show()
|
/linux-4.1.27/net/core/ |
H A D | pktgen.c | 372 struct net_device *odev; /* The out-going device. member in struct:pktgen_dev 578 pkt_dev->odev->dev_addr : pkt_dev->src_mac); pktgen_if_show() 1084 (!(pkt_dev->odev->priv_flags & IFF_TX_SKB_SHARING))) pktgen_if_write() 1138 (!(pkt_dev->odev->priv_flags & IFF_TX_SKB_SHARING))) pktgen_if_write() 1960 if (pkt_dev->odev != dev) pktgen_change_name() 2028 struct net_device *odev; pktgen_setup_dev() local 2032 if (pkt_dev->odev) { pktgen_setup_dev() 2033 dev_put(pkt_dev->odev); pktgen_setup_dev() 2034 pkt_dev->odev = NULL; pktgen_setup_dev() 2037 odev = pktgen_dev_get_by_name(pn, pkt_dev, ifname); pktgen_setup_dev() 2038 if (!odev) { pktgen_setup_dev() 2043 if (odev->type != ARPHRD_ETHER) { pktgen_setup_dev() 2046 } else if (!netif_running(odev)) { pktgen_setup_dev() 2050 pkt_dev->odev = odev; pktgen_setup_dev() 2054 dev_put(odev); pktgen_setup_dev() 2065 if (!pkt_dev->odev) { pktgen_setup_inject() 2066 pr_err("ERROR: pkt_dev->odev == NULL in setup_inject\n"); pktgen_setup_inject() 2068 "ERROR: pkt_dev->odev == NULL in setup_inject.\n"); pktgen_setup_inject() 2073 ntxq = pkt_dev->odev->real_num_tx_queues; pktgen_setup_inject() 2091 ether_addr_copy(&(pkt_dev->hh[6]), pkt_dev->odev->dev_addr); pktgen_setup_inject() 2122 idev = __in6_dev_get(pkt_dev->odev); pktgen_setup_inject() 2156 in_dev = __in_dev_get_rcu(pkt_dev->odev); pktgen_setup_inject() 2279 struct pktgen_net *pn = net_generic(dev_net(pkt_dev->odev), pg_net_id); get_ipsec_sa() 2325 pkt_dev->cur_queue_map = pkt_dev->cur_queue_map % pkt_dev->odev->real_num_tx_queues; set_cur_queue_map() 2540 struct net *net = dev_net(pkt_dev->odev); pktgen_output_ipsec() 2746 static struct sk_buff *fill_packet_ipv4(struct net_device *odev, fill_packet_ipv4() argument 2774 datalen = (odev->hard_header_len + 16) & ~0xf; fill_packet_ipv4() 2776 skb = pktgen_alloc_skb(odev, pkt_dev, datalen); fill_packet_ipv4() 2845 skb->dev = odev; fill_packet_ipv4() 2852 } else if (odev->features & NETIF_F_V4_CSUM) { fill_packet_ipv4() 2875 static struct sk_buff *fill_packet_ipv6(struct net_device *odev, fill_packet_ipv6() argument 2903 skb = pktgen_alloc_skb(odev, pkt_dev, 16); fill_packet_ipv6() 2979 skb->dev = odev; fill_packet_ipv6() 2986 } else if (odev->features & NETIF_F_V6_CSUM) { fill_packet_ipv6() 3004 static struct sk_buff *fill_packet(struct net_device *odev, fill_packet() argument 3008 return fill_packet_ipv6(odev, pkt_dev); fill_packet() 3010 return fill_packet_ipv4(odev, pkt_dev); fill_packet() 3035 * setup odev and create initial packet. pktgen_run() 3039 if (pkt_dev->odev) { pktgen_run() 3318 struct net_device *odev = pkt_dev->odev; pktgen_xmit() local 3323 if (unlikely(!netif_running(odev) || !netif_carrier_ok(odev))) { pktgen_xmit() 3342 pkt_dev->skb = fill_packet(odev, pkt_dev); pktgen_xmit() 3357 txq = skb_get_tx_queue(odev, pkt_dev->skb); pktgen_xmit() 3361 HARD_TX_LOCK(odev, txq, smp_processor_id()); pktgen_xmit() 3371 ret = netdev_start_xmit(pkt_dev->skb, odev, txq, --burst > 0); pktgen_xmit() 3402 HARD_TX_UNLOCK(odev, txq); pktgen_xmit() 3607 if (pkt_dev->odev->priv_flags & IFF_TX_SKB_SHARING) pktgen_add_device() 3628 pkt_dev->dst.dev = pkt_dev->odev; pktgen_add_device() 3636 dev_put(pkt_dev->odev); pktgen_add_device() 3728 if (pkt_dev->odev) { pktgen_remove_device() 3729 dev_put(pkt_dev->odev); pktgen_remove_device() 3730 pkt_dev->odev = NULL; pktgen_remove_device()
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_worker.c | 1458 struct drbd_device *odev = device; _drbd_may_sync_now() local 1462 if (!odev->ldev || odev->state.disk == D_DISKLESS) _drbd_may_sync_now() 1465 resync_after = rcu_dereference(odev->ldev->disk_conf)->resync_after; _drbd_may_sync_now() 1469 odev = minor_to_device(resync_after); _drbd_may_sync_now() 1470 if (!odev) _drbd_may_sync_now() 1472 if ((odev->state.conn >= C_SYNC_SOURCE && _drbd_may_sync_now() 1473 odev->state.conn <= C_PAUSED_SYNC_T) || _drbd_may_sync_now() 1474 odev->state.aftr_isp || odev->state.peer_isp || _drbd_may_sync_now() 1475 odev->state.user_isp) _drbd_may_sync_now() 1488 struct drbd_device *odev; _drbd_pause_after() local 1492 idr_for_each_entry(&drbd_devices, odev, i) { _drbd_pause_after() 1493 if (odev->state.conn == C_STANDALONE && odev->state.disk == D_DISKLESS) _drbd_pause_after() 1495 if (!_drbd_may_sync_now(odev)) _drbd_pause_after() 1496 rv |= (__drbd_set_state(_NS(odev, aftr_isp, 1), CS_HARD, NULL) _drbd_pause_after() 1512 struct drbd_device *odev; _drbd_resume_next() local 1516 idr_for_each_entry(&drbd_devices, odev, i) { _drbd_resume_next() 1517 if (odev->state.conn == C_STANDALONE && odev->state.disk == D_DISKLESS) _drbd_resume_next() 1519 if (odev->state.aftr_isp) { _drbd_resume_next() 1520 if (_drbd_may_sync_now(odev)) _drbd_resume_next() 1521 rv |= (__drbd_set_state(_NS(odev, aftr_isp, 0), _drbd_resume_next() 1547 struct drbd_device *odev; drbd_resync_after_valid() local 1556 odev = minor_to_device(o_minor); drbd_resync_after_valid() 1558 if (odev == device) drbd_resync_after_valid() 1567 if (!odev || !odev->ldev || odev->state.disk == D_DISKLESS) drbd_resync_after_valid() 1571 resync_after = rcu_dereference(odev->ldev->disk_conf)->resync_after; drbd_resync_after_valid() 1578 odev = minor_to_device(resync_after); drbd_resync_after_valid()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | platinumfb.c | 537 static int platinumfb_probe(struct platform_device* odev) platinumfb_probe() argument 539 struct device_node *dp = odev->dev.of_node; platinumfb_probe() 545 dev_info(&odev->dev, "Found Apple Platinum video hardware\n"); platinumfb_probe() 547 info = framebuffer_alloc(sizeof(*pinfo), &odev->dev); platinumfb_probe() 549 dev_err(&odev->dev, "Failed to allocate fbdev !\n"); platinumfb_probe() 556 dev_err(&odev->dev, "Can't get resources\n"); platinumfb_probe() 560 dev_dbg(&odev->dev, " registers : 0x%llx...0x%llx\n", platinumfb_probe() 563 dev_dbg(&odev->dev, " framebuffer: 0x%llx...0x%llx\n", platinumfb_probe() 635 dev_set_drvdata(&odev->dev, info); platinumfb_probe() 648 static int platinumfb_remove(struct platform_device* odev) platinumfb_remove() argument 650 struct fb_info *info = dev_get_drvdata(&odev->dev); platinumfb_remove()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | opp.c | 81 pr_debug("%s: no hwmod or odev for %s, [%d] cannot add OPPs.\n", omap_init_opp_table()
|
/linux-4.1.27/fs/efs/ |
H A D | efs.h | 47 __be16 odev; member in struct:edevs
|
H A D | inode.c | 115 rdev = be16_to_cpu(efs_inode->di_u.di_dev.odev); efs_iget()
|
/linux-4.1.27/net/netrom/ |
H A D | nr_route.c | 96 struct net_device *odev; nr_add_node() local 98 if ((odev=nr_dev_get(nr)) != NULL) { /* Can't add routes to ourself */ nr_add_node() 99 dev_put(odev); nr_add_node()
|
/linux-4.1.27/drivers/video/fbdev/via/ |
H A D | hw.c | 915 u32 odev = 0; via_parse_odev() local 924 odev |= device_mapping[i].device; via_parse_odev() 935 return odev; via_parse_odev() 938 void via_odev_to_seq(struct seq_file *m, u32 odev) via_odev_to_seq() argument 943 if (odev & device_mapping[i].device) { via_odev_to_seq()
|
H A D | hw.h | 652 void via_odev_to_seq(struct seq_file *m, u32 odev);
|
H A D | viafbdev.c | 1491 static ssize_t odev_update(const char __user *buffer, size_t count, u32 *odev) odev_update() argument 1512 *odev |= devices; odev_update() 1514 *odev &= ~devices; odev_update() 1516 *odev = devices; odev_update()
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | omap_udc.c | 2599 omap_udc_setup(struct platform_device *odev, struct usb_phy *xceiv) omap_udc_setup() argument
|