Home
last modified time | relevance | path

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

/openbmc/qemu/hw/net/
H A Dmsf2-emac.c142 uint8_t pktcnt; in msf2_dma_tx() local
172 pktcnt++; in msf2_dma_tx()
292 uint8_t pktcnt; in emac_write() local
348 pktcnt--; in emac_write()
350 PKTCNT, pktcnt); in emac_write()
351 if (pktcnt == 0) { in emac_write()
362 pktcnt--; in emac_write()
364 PKTCNT, pktcnt); in emac_write()
365 if (pktcnt == 0) { in emac_write()
465 uint8_t pktcnt; in emac_rx() local
[all …]
/openbmc/linux/drivers/input/mouse/
H A Dhgpk.c309 int pktcnt = psmouse->pktcnt; in hgpk_is_byte_valid() local
318 valid = pktcnt == 1 ? in hgpk_is_byte_valid()
319 packet[0] == HGPK_GS : !(packet[pktcnt - 1] & 0x80); in hgpk_is_byte_valid()
323 valid = pktcnt == 1 ? in hgpk_is_byte_valid()
324 packet[0] == HGPK_PT : !(packet[pktcnt - 1] & 0x80); in hgpk_is_byte_valid()
335 priv->mode, pktcnt, 6, psmouse->packet); in hgpk_is_byte_valid()
467 if (psmouse->pktcnt >= psmouse->pktsize) { in hgpk_process_byte()
H A Dpsmouse-base.c160 if (psmouse->pktcnt < psmouse->pktsize) in psmouse_process_byte()
256 psmouse->pktcnt = psmouse->out_of_sync_cnt = 0; in __psmouse_set_state()
287 psmouse->pktcnt); in psmouse_handle_byte()
296 psmouse->pktcnt = 0; in psmouse_handle_byte()
300 psmouse->pktcnt = 0; in psmouse_handle_byte()
387 psmouse->packet[psmouse->pktcnt++] = data; in psmouse_receive_byte()
391 if (psmouse->pktcnt == 1) { in psmouse_receive_byte()
405 psmouse->pktcnt = 1; in psmouse_receive_byte()
409 psmouse->packet[psmouse->pktcnt++] = data; in psmouse_receive_byte()
417 psmouse->pktcnt == 1 && psmouse->resync_time && in psmouse_receive_byte()
[all …]
H A Dalps.c940 switch (psmouse->pktcnt) { in alps_is_valid_package_v7()
1502 if (psmouse->pktcnt < 6) in alps_handle_interleaved_ps2()
1505 if (psmouse->pktcnt == 6) { in alps_handle_interleaved_ps2()
1540 psmouse->pktcnt = 1; in alps_handle_interleaved_ps2()
1571 psmouse->pktcnt = 4; in alps_handle_interleaved_ps2()
1584 if (psmouse->pktcnt == psmouse->pktsize) { in alps_flush_packet()
1600 psmouse->pktcnt = 0; in alps_flush_packet()
1621 if (psmouse->pktcnt == 3) { in alps_process_byte()
1645 psmouse->pktcnt >= 2 && psmouse->pktcnt <= psmouse->pktsize && in alps_process_byte()
1648 psmouse->pktcnt - 1, in alps_process_byte()
[all …]
H A Dcypress_ps2.c111 psmouse->pktcnt = 0; in cypress_ps2_read_cmd_status()
121 (psmouse->pktcnt >= pktsize), in cypress_ps2_read_cmd_status()
131 psmouse->pktcnt = 0; in cypress_ps2_read_cmd_status()
561 int index = psmouse->pktcnt - 1; in cypress_validate_byte()
604 if (psmouse->pktcnt >= cytp->pkt_size) { in cypress_protocol_handler()
H A Dlifebook.c141 if (psmouse->pktcnt != 3) in lifebook_process_byte()
144 switch (psmouse->pktcnt) { in lifebook_process_byte()
H A Dtouchkit_ps2.c45 if (psmouse->pktcnt != 5) in touchkit_ps2_process_byte()
H A Dbyd.c278 if (psmouse->pktcnt > 0 && !(pkt[0] & PS2_ALWAYS_1)) { in byd_process_byte()
284 if (psmouse->pktcnt < psmouse->pktsize) in byd_process_byte()
H A Dpsmouse.h99 unsigned char pktcnt; member
H A Dvmmouse.c227 switch (psmouse->pktcnt) { in vmmouse_process_byte()
H A Dlogips2pp.c46 if (psmouse->pktcnt < 3) in ps2pp_process_byte()
H A Dfocaltech.c253 if (psmouse->pktcnt >= 6) { /* Full packet received */ in focaltech_process_byte()
H A Dsynaptics.c1215 if (psmouse->pktcnt >= 6) { /* Full packet received */ in synaptics_process_byte()
1230 return synaptics_validate_byte(psmouse, psmouse->pktcnt - 1, priv->pkt_type) ? in synaptics_process_byte()
H A Dsentelic.c701 if (psmouse->pktcnt < 4) in fsp_process_byte()
H A Delantech.c928 if (psmouse->pktcnt < psmouse->pktsize) in elantech_process_byte()
/openbmc/u-boot/drivers/usb/gadget/
H A Ddwc2_udc_otg_xfer_dma.c95 u32 length, pktcnt; in setdma_rx() local
106 pktcnt = 1; in setdma_rx()
108 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_rx()
117 writel(DOEPT_SIZ_PKT_CNT(pktcnt) | DOEPT_SIZ_XFER_SIZE(length), in setdma_rx()
129 buf, pktcnt, length); in setdma_rx()
137 u32 length, pktcnt; in setdma_tx() local
154 pktcnt = 1; in setdma_tx()
156 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_tx()
165 writel(DIEPT_SIZ_PKT_CNT(pktcnt) | DIEPT_SIZ_XFER_SIZE(length), in setdma_tx()
187 buf, pktcnt, length); in setdma_tx()
/openbmc/linux/include/uapi/linux/
H A Dmroute6.h102 unsigned long pktcnt; member
H A Dmroute.h95 unsigned long pktcnt; member
/openbmc/linux/drivers/usb/host/
H A Docteon-hcd.c284 int pktcnt; member
1483 usbc_hctsiz.s.pktcnt = packets_to_transfer; in cvmx_usb_start_channel_control()
1730 usbc_hctsiz.s.pktcnt = packets_to_transfer; in cvmx_usb_start_channel()
1822 transaction->pktcnt = usbc_hctsiz.s.pktcnt; in cvmx_usb_start_channel()
2703 packets_processed = transaction->pktcnt - usbc_hctsiz.s.pktcnt; in cvmx_usb_poll_channel()
H A Docteon-hcd.h1271 __BITFIELD_FIELD(u32 pktcnt : 10,
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Ddma.c933 int pktcnt = 1; in dma_rx() local
958 pktcnt++; in dma_rx()
983 pktcnt = 1; in dma_rx()
989 return pktcnt; in dma_rx()
/openbmc/linux/net/tipc/
H A Dlink.c1981 u16 pktlen, pktcnt, seqno = l->snd_nxt; in tipc_link_tnl_prepare() local
2033 pktcnt = l->snd_nxt - buf_seqno(skb_peek(&l->transmq)); in tipc_link_tnl_prepare()
2035 pktcnt = skb_queue_len(&l->transmq); in tipc_link_tnl_prepare()
2036 pktcnt += skb_queue_len(&l->backlogq); in tipc_link_tnl_prepare()
2037 msg_set_msgcnt(&tnlhdr, pktcnt); in tipc_link_tnl_prepare()
2065 pktcnt += skb_queue_len(&frags) - 1; in tipc_link_tnl_prepare()
2097 msg_set_msgcnt(hdr, pktcnt); in tipc_link_tnl_prepare()
/openbmc/linux/net/ipv6/
H A Dip6mr.c1920 sr->pktcnt = c->_c.mfc_un.res.pkt; in ip6mr_ioctl()
1937 compat_ulong_t pktcnt; member
1992 sr.pktcnt = c->_c.mfc_un.res.pkt; in ip6mr_compat_ioctl()
/openbmc/linux/net/ipv4/
H A Dipmr.c1657 sr->pktcnt = c->_c.mfc_un.res.pkt; in ipmr_ioctl()
1674 compat_ulong_t pktcnt; member
1729 sr.pktcnt = c->_c.mfc_un.res.pkt; in ipmr_compat_ioctl()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcfg80211.c3069 struct brcmf_pktcnt_le pktcnt; in brcmf_cfg80211_get_station_ibss() local
3094 err = brcmf_fil_cmd_data_get(ifp, BRCMF_C_GET_GET_PKTCNTS, &pktcnt, in brcmf_cfg80211_get_station_ibss()
3095 sizeof(pktcnt)); in brcmf_cfg80211_get_station_ibss()
3104 sinfo->rx_packets = le32_to_cpu(pktcnt.rx_good_pkt); in brcmf_cfg80211_get_station_ibss()
3105 sinfo->rx_dropped_misc = le32_to_cpu(pktcnt.rx_bad_pkt); in brcmf_cfg80211_get_station_ibss()
3106 sinfo->tx_packets = le32_to_cpu(pktcnt.tx_good_pkt); in brcmf_cfg80211_get_station_ibss()
3107 sinfo->tx_failed = le32_to_cpu(pktcnt.tx_bad_pkt); in brcmf_cfg80211_get_station_ibss()