Searched refs:packet (Results 1 - 25 of 135) sorted by relevance

123456

/drivers/input/mouse/
H A Dtouchkit_ps2.c49 #define TOUCHKIT_GET_TOUCHED(packet) (((packet)[0]) & 0x01)
50 #define TOUCHKIT_GET_X(packet) (((packet)[1] << 7) | (packet)[2])
51 #define TOUCHKIT_GET_Y(packet) (((packet)[3] << 7) | (packet)[4])
55 unsigned char *packet = psmouse->packet; local
[all...]
H A Dlifebook.c7 * TouchScreen detection, absolute mode setting and packet layout is taken from
139 unsigned char *packet = psmouse->packet; local
140 bool relative_packet = packet[0] & 0x08;
148 return (packet[0] & 0xf8) == 0x00 ?
153 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ?
156 return (packet[3] & 0xf8) == 0xc0 ?
159 return (packet[4] & 0xc0) == (packet[
[all...]
H A Delantech.c221 * Dump a complete mouse movement packet to the syslog
227 psmouse_printk(KERN_DEBUG, psmouse, "PS/2 packet [");
229 printk("%s0x%02x ", i ? ", " : " ", psmouse->packet[i]);
241 unsigned char *packet = psmouse->packet; local
249 fingers = ((packet[1] & 0x80) >> 7) +
250 ((packet[1] & 0x30) >> 4);
256 fingers = (packet[0] & 0xc0) >> 6;
265 elantech_debug("discarding packet\n");
278 ((packet[
329 unsigned char *packet = psmouse->packet; local
427 unsigned char *packet = psmouse->packet; local
470 unsigned char *packet = psmouse->packet; local
550 unsigned char *packet = psmouse->packet; local
568 unsigned char *packet = psmouse->packet; local
588 unsigned char *packet = psmouse->packet; local
617 unsigned char *packet = psmouse->packet; local
680 unsigned char *packet = psmouse->packet; local
708 unsigned char *packet = psmouse->packet; local
716 unsigned char *packet = psmouse->packet; local
749 unsigned char *packet = psmouse->packet; local
784 unsigned char *packet = psmouse->packet; local
[all...]
H A Dlogips2pp.c39 * Process a PS2++ or PS2T++ packet.
45 unsigned char *packet = psmouse->packet; local
51 * Full packet accumulated, process it
54 if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) {
56 /* Logitech extended packet */
57 switch ((packet[1] >> 4) | (packet[0] & 0x30)) {
61 input_report_rel(dev, packet[
[all...]
H A Dalps.c100 #define ALPS_PS2_INTERLEAVED 0x80 /* 3-byte PS/2 packet interleaved with
101 6-byte ALPS packet */
183 unsigned char *packet = psmouse->packet; local
190 left = packet[2] & 0x10;
191 right = packet[2] & 0x08;
193 x = packet[1] | ((packet[0] & 0x07) << 7);
194 y = packet[4] | ((packet[
474 unsigned char *packet = psmouse->packet; local
620 unsigned char *packet = psmouse->packet; local
712 unsigned char *packet = psmouse->packet; local
733 unsigned char *packet = psmouse->packet; local
803 unsigned char *packet = psmouse->packet; local
961 unsigned char *packet = psmouse->packet; local
1020 unsigned char *packet = psmouse->packet; local
1028 alps_report_bare_ps2_packet(struct psmouse *psmouse, unsigned char packet[], bool report_buttons) argument
[all...]
H A Dsentelic.c40 #define GET_ABS_X(packet) ((packet[1] << 2) | ((packet[3] >> 2) & 0x03))
41 #define GET_ABS_Y(packet) ((packet[2] << 2) | (packet[3] & 0x03))
420 /* reconfigure horizontal scrolling packet output */
647 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) argument
655 /* Interpret & dump the packet data. */
656 switch (packet[
688 fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) argument
708 unsigned char *packet = psmouse->packet; local
[all...]
/drivers/net/wireless/ath/ath6kl/
H A Dhtc_pipe.c25 struct htc_packet *packet);
29 static inline void restore_tx_packet(struct htc_packet *packet) argument
31 if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) {
32 skb_pull(packet->skb, sizeof(struct htc_frame_hdr));
33 packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF;
40 struct htc_packet *packet; local
65 packet = list_first_entry(queue_to_indicate,
68 list_del(&packet->list);
70 "%s: calling ep %d send complete callback on packet 0x%p\n",
71 __func__, ep->eid, packet);
77 send_packet_completion(struct htc_target *target, struct htc_packet *packet) argument
98 struct htc_packet *packet; local
177 struct htc_packet *packet; local
211 struct htc_packet *packet; local
306 struct htc_packet *packet, *tmp_pkt; local
502 destroy_htc_txctrl_packet(struct htc_packet *packet) argument
512 struct htc_packet *packet = NULL; local
530 htc_free_txctrl_packet(struct htc_target *target, struct htc_packet *packet) argument
541 htc_txctrl_complete(struct htc_target *target, struct htc_packet *packet) argument
695 struct htc_packet *packet; local
718 struct htc_packet *packet, *tmp_pkt, *found_packet = NULL; local
748 struct htc_packet *packet; local
787 struct htc_packet *packet, *tmp_pkt; local
818 struct htc_packet *packet; local
835 free_htc_packet_container(struct htc_target *target, struct htc_packet *packet) argument
922 struct htc_packet *packet; local
940 recv_packet_completion(struct htc_target *target, struct htc_endpoint *ep, struct htc_packet *packet) argument
959 struct htc_packet *packet; local
1109 struct htc_packet *packet; local
1170 htc_rxctrl_complete(struct htc_target *context, struct htc_packet *packet) argument
1233 struct htc_packet *packet = NULL; local
1421 struct htc_packet *packet; local
1474 struct htc_packet *packet; local
1493 struct htc_packet *packet; local
1551 ath6kl_htc_pipe_tx(struct htc_target *target, struct htc_packet *packet) argument
1637 struct htc_packet *packet, *tmp_pkt, *first; local
1686 struct htc_packet *packet, *tmp_pkt; local
[all...]
H A Dhtc_mbox.c359 static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags, argument
364 packet->buf -= HTC_HDR_LENGTH;
365 hdr = (struct htc_frame_hdr *)packet->buf;
368 put_unaligned((u16)packet->act_len, &hdr->payld_len);
370 hdr->eid = packet->endpoint;
386 struct htc_packet *packet = NULL; local
398 packet = list_first_entry(buf_list, struct htc_packet, list);
399 list_del(&packet->list);
403 packet->buf = packet
408 htc_tx_comp_update(struct htc_target *target, struct htc_endpoint *endpoint, struct htc_packet *packet) argument
451 htc_tx_comp_handler(struct htc_target *target, struct htc_packet *packet) argument
471 struct htc_packet *packet; local
507 ath6kl_htc_tx_issue(struct htc_target *target, struct htc_packet *packet) argument
605 struct htc_packet *packet; local
685 struct htc_packet *packet; local
762 struct htc_packet *packet; local
862 struct htc_packet *packet; local
1123 ath6kl_htc_mbox_tx(struct htc_target *target, struct htc_packet *packet) argument
1155 struct htc_packet *packet, *tmp_pkt; local
1271 htc_add_rxbuf(struct htc_target *target, struct htc_packet *packet) argument
1280 htc_reclaim_rxbuf(struct htc_target *target, struct htc_packet *packet, struct htc_endpoint *ep) argument
1294 reclaim_rx_ctrl_buf(struct htc_target *target, struct htc_packet *packet) argument
1302 ath6kl_htc_rx_packet(struct htc_target *target, struct htc_packet *packet, u32 rx_len) argument
1338 ath6kl_htc_rx_set_indicate(u32 lk_ahd, struct htc_endpoint *endpoint, struct htc_packet *packet) argument
1372 struct htc_packet *packet; local
1477 struct htc_packet *packet, *tmp_pkt; local
1805 ath6kl_htc_rx_process_hdr(struct htc_target *target, struct htc_packet *packet, u32 *next_lkahds, int *n_lkahds) argument
1902 ath6kl_htc_rx_complete(struct htc_endpoint *endpoint, struct htc_packet *packet) argument
1918 struct htc_packet *packet; local
2010 struct htc_packet *packet, *tmp_pkt; local
2063 struct htc_packet *packet, *tmp_pkt; local
2263 struct htc_packet *packet = NULL; local
2346 struct htc_packet *packet, *tmp_pkt; local
2386 struct htc_packet *packet, *tmp_pkt; local
2660 struct htc_packet *packet = NULL; local
2745 struct htc_packet *packet; local
2788 struct htc_packet *packet; local
2894 struct htc_packet *packet, *tmp_packet; local
[all...]
H A Dhtc.h126 /* packet flags */
285 /* caller's per packet specific context */
310 /* endpoint that this packet was sent/recv'd from */
325 * optimization for network-oriented data, the HTC packet
326 * can pass the network buffer corresponding to the HTC packet
405 * the number of credits that the current pending TX packet needs
534 struct htc_packet packet; member in struct:htc_control_buffer
544 HTC_SEND_QUEUE_OK = 0, /* packet was queued */
545 HTC_SEND_QUEUE_DROP = 1, /* this packet should be dropped */
555 int (*tx)(struct htc_target *target, struct htc_packet *packet);
635 set_htc_pkt_info(struct htc_packet *packet, void *context, u8 *buf, unsigned int len, enum htc_endpoint_id eid, u16 tag) argument
646 htc_rxpkt_reset(struct htc_packet *packet) argument
652 set_htc_rxpkt_info(struct htc_packet *packet, void *context, u8 *buf, unsigned long len, enum htc_endpoint_id eid) argument
[all...]
/drivers/media/platform/vivid/
H A Dvivid-vbi-gen.c188 static void vivid_vbi_gen_set_time_of_day(u8 *packet) argument
194 packet[0] = calc_parity(0x07);
195 packet[1] = calc_parity(0x01);
196 packet[2] = calc_parity(0x40 | tm.tm_min);
197 packet[3] = calc_parity(0x40 | tm.tm_hour);
198 packet[4] = calc_parity(0x40 | tm.tm_mday);
201 packet[4] = calc_parity(0x60 | tm.tm_mday);
202 packet[5] = calc_parity(0x40 | (1 + tm.tm_mon));
203 packet[6] = calc_parity(0x40 | (1 + tm.tm_wday));
204 packet[
228 vivid_vbi_gen_teletext(u8 *packet, unsigned line, unsigned frame) argument
[all...]
/drivers/tty/hvc/
H A Dhvsi.c81 /* inbuf is for packet reassembly. leave a little room for leftovers. */
88 atomic_t seqno; /* HVSI packet sequence number */
158 static inline int len_packet(const uint8_t *packet) argument
160 return (int)((struct hvsi_header *)packet)->len;
163 static inline int is_header(const uint8_t *packet) argument
165 struct hvsi_header *header = (struct hvsi_header *)packet;
169 static inline int got_packet(const struct hvsi_struct *hp, uint8_t *packet) argument
171 if (hp->inbuf_end < packet + sizeof(struct hvsi_header))
172 return 0; /* don't even have the packet header */
174 if (hp->inbuf_end < (packet
219 dump_packet(uint8_t *packet) argument
238 hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, struct tty_struct *tty, struct hvsi_struct **to_handshake) argument
267 hvsi_recv_response(struct hvsi_struct *hp, uint8_t *packet) argument
316 hvsi_recv_query(struct hvsi_struct *hp, uint8_t *packet) argument
361 hvsi_recv_data(struct hvsi_struct *hp, const uint8_t *packet) argument
402 uint8_t *packet = hp->inbuf; local
[all...]
/drivers/infiniband/core/
H A Duser_mad.c59 MODULE_DESCRIPTION("InfiniBand userspace MAD packet access");
165 struct ib_umad_packet *packet)
171 for (packet->mad.hdr.id = 0;
172 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS;
173 packet->mad.hdr.id++)
174 if (agent == __get_agent(file, packet->mad.hdr.id)) {
175 list_add_tail(&packet->list, &file->recv_list);
187 struct ib_umad_packet *packet)
190 list_del(&packet->list);
198 struct ib_umad_packet *packet local
163 queue_packet(struct ib_umad_file *file, struct ib_mad_agent *agent, struct ib_umad_packet *packet) argument
186 dequeue_send(struct ib_umad_file *file, struct ib_umad_packet *packet) argument
217 struct ib_umad_packet *packet; local
261 copy_recv_mad(struct ib_umad_file *file, char __user *buf, struct ib_umad_packet *packet, size_t count) argument
311 copy_send_mad(struct ib_umad_file *file, char __user *buf, struct ib_umad_packet *packet, size_t count) argument
334 struct ib_umad_packet *packet; local
410 is_duplicate(struct ib_umad_file *file, struct ib_umad_packet *packet) argument
447 struct ib_umad_packet *packet; local
969 struct ib_umad_packet *packet, *tmp; local
[all...]
/drivers/tty/ipwireless/
H A Dhardware.c126 /* Number of bytes in NL packet header (cannot do
130 /* Number of bytes in NL packet header (cannot do
154 /* Network packet header of the first packet (a special case) */
156 /* Network packet header of the following packets (if any) */
158 /* Complete network packet (header + data) */
238 /* Flag if hw is ready to send next packet */
304 /* Count of packet fragments, starting at 0 */
307 /* Called after packet is sent and before is freed */
458 static void do_send_packet(struct ipw_hardware *hw, struct ipw_tx_packet *packet) argument
554 pool_allocate(struct ipw_hardware *hw, struct ipw_rx_packet *packet, int minimum_free_space) argument
608 pool_free(struct ipw_hardware *hw, struct ipw_rx_packet *packet) argument
625 struct ipw_rx_packet *packet = NULL; local
710 struct ipw_rx_packet *packet = local
810 handle_received_packet(struct ipw_hardware *hw, const union nl_packet *packet, unsigned short len) argument
962 struct ipw_tx_packet *packet = NULL; local
1236 send_packet(struct ipw_hardware *hw, int priority, struct ipw_tx_packet *packet) argument
1254 struct ipw_tx_packet *packet = kzalloc( local
1279 struct ipw_control_packet *packet = kzalloc(header_size, GFP_ATOMIC); local
1298 struct ipw_tx_packet *packet; local
1316 struct ipw_control_packet *packet; local
1567 struct ipw_setup_reboot_msg_ack *packet; local
[all...]
/drivers/net/wireless/b43legacy/
H A Dpio.c56 const u8 *packet,
67 source = packet;
78 const u8 *packet,
85 data = tx_get_next_word(txhdr, packet,
93 data = tx_get_next_word(txhdr, packet,
98 tx_octet(queue, packet[octets -
117 struct b43legacy_pio_txpacket *packet)
124 * for the packet index (in the cache).
141 packetindex = pio_txpacket_getindex(packet);
151 struct b43legacy_pio_txpacket **packet)
55 tx_get_next_word(const u8 *txhdr, const u8 *packet, size_t txhdr_size, unsigned int *pos) argument
76 tx_data(struct b43legacy_pioqueue *queue, u8 *txhdr, const u8 *packet, unsigned int octets) argument
116 generate_cookie(struct b43legacy_pioqueue *queue, struct b43legacy_pio_txpacket *packet) argument
149 parse_cookie(struct b43legacy_wldev *dev, u16 cookie, struct b43legacy_pio_txpacket **packet) argument
185 pio_tx_write_fragment(struct b43legacy_pioqueue *queue, struct sk_buff *skb, struct b43legacy_pio_txpacket *packet, size_t txhdr_size) argument
215 free_txpacket(struct b43legacy_pio_txpacket *packet, int irq_context) argument
230 pio_tx_packet(struct b43legacy_pio_txpacket *packet) argument
285 struct b43legacy_pio_txpacket *packet, *tmp_packet; local
314 struct b43legacy_pio_txpacket *packet; local
383 struct b43legacy_pio_txpacket *packet, *tmp_packet; local
470 struct b43legacy_pio_txpacket *packet; local
492 struct b43legacy_pio_txpacket *packet; local
[all...]
H A Dpio.h47 #define pio_txpacket_getindex(packet) ((int)((packet) - \
48 (packet)->queue->tx_packets_cache))
62 /* Used packet slots in the device internal TX buffer. */
/drivers/isdn/sc/
H A DMakefile9 sc-y := shmem.o init.o packet.o command.o event.o \
/drivers/usb/misc/sisusbvga/
H A Dsisusb.c552 struct sisusb_packet *packet)
559 packet->data = 0;
567 SISUSB_CORRECT_ENDIANNESS_PACKET(packet);
569 /* 1. send the packet */
571 (char *)packet, NULL, 0, &bytes_transferred, 0, 0);
575 /* 2. if packet len == 6, it means we read, so wait for 32bit
576 * return value and write it to packet->data
581 packet->data = le32_to_cpu(tmp);
588 struct sisusb_packet *packet,
596 packet
551 sisusb_send_packet(struct sisusb_usb_data *sisusb, int len, struct sisusb_packet *packet) argument
587 sisusb_send_bridge_packet(struct sisusb_usb_data *sisusb, int len, struct sisusb_packet *packet, unsigned int tflags) argument
639 struct sisusb_packet packet; local
652 struct sisusb_packet packet; local
689 struct sisusb_packet packet; local
730 struct sisusb_packet packet; local
787 struct sisusb_packet packet; local
1005 struct sisusb_packet packet; local
1019 struct sisusb_packet packet; local
1058 struct sisusb_packet packet; local
1099 struct sisusb_packet packet; local
1375 struct sisusb_packet packet; local
1388 struct sisusb_packet packet; local
2168 struct sisusb_packet packet; local
[all...]
/drivers/media/rc/
H A Diguanair.c55 struct send_packet *packet; member in struct:iguanair
80 struct packet { struct
87 struct packet header;
201 /* if we sent an nop packet, do not expect a response */
202 if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP)
228 * On cold boot, the iguanair initializes on the first packet
229 * received but does not process that packet. Send an empty
230 * packet.
232 ir->packet->header.start = 0;
233 ir->packet
[all...]
/drivers/input/touchscreen/
H A Dads7846.c116 struct ads7846_packet *packet; member in struct:ads7846
695 struct ads7846_packet *packet = ts->packet; local
710 packet->tc.ignore = true;
728 packet->tc.ignore = true;
734 packet->tc.ignore = false;
749 struct ads7846_packet *packet = ts->packet; local
759 x = *(u16 *)packet->tc.x_buf;
760 y = *(u16 *)packet
981 struct ads7846_packet *packet = ts->packet; local
1257 struct ads7846_packet *packet; local
[all...]
H A Delo.c96 "unexpected packet: 0x%02x\n",
224 static int elo_command_10(struct elo *elo, unsigned char *packet) argument
233 elo->expected_packet = toupper(packet[0]);
241 csum += packet[i];
242 if (serio_write(elo->serio, packet[i]))
253 memcpy(packet, elo->response, ELO10_PACKET_LEN);
266 unsigned char packet[ELO10_PACKET_LEN] = { ELO10_ID_CMD }; local
268 if (elo_command_10(elo, packet))
271 dev->id.version = (packet[5] << 8) | packet[
[all...]
/drivers/input/
H A Dmousedev.c74 struct mousedev_hw_data packet; member in struct:mousedev
144 mousedev->packet.dx = tmp / FRACTION_DENOM;
146 tmp - mousedev->packet.dx * FRACTION_DENOM;
161 mousedev->packet.dy = tmp / FRACTION_DENOM;
163 mousedev->packet.dy * FRACTION_DENOM;
186 mousedev->packet.x = ((value - min) * xres) / size;
187 mousedev->packet.abs_event = 1;
200 mousedev->packet.y = yres - ((value - min) * yres) / size;
201 mousedev->packet.abs_event = 1;
211 mousedev->packet
263 mousedev_notify_readers(struct mousedev *mousedev, struct mousedev_hw_data *packet) argument
[all...]
/drivers/input/joystick/
H A Dgrip_mp.c58 * Multiport packet interpretation
61 #define PACKET_FULL 0x80000000 /* packet is full */
71 #define IO_GOT_PACKET 0x0100 /* Got a packet */
75 #define IO_RETRY 0x4000 /* Try again later to get packet */
149 * Gets a 28-bit packet from the multiport.
151 * After getting a packet successfully, commands encoded by sendcode may
156 * Returns a packet status code indicating whether packet is valid, the transfer
163 static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) argument
166 u8 data_mask; /* packet dat
300 multiport_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) argument
318 dig_mode_start(struct gameport *gameport, u32 *packet) argument
360 u32 packet; local
479 u32 packet; local
[all...]
/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-desc.c377 struct xgbe_packet_data *packet; local
390 packet = &ring->packet_data;
391 packet->rdesc_count = 0;
392 packet->length = 0;
394 tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
396 vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
400 if ((tso && (packet->mss != ring->tx.cur_mss)) ||
401 (vlan && (packet->vlan_ctag != ring->tx.cur_vlan_ctag)))
406 DBGPR(" TSO packet\n");
410 packet
[all...]
/drivers/net/hyperv/
H A Dnetvsc_drv.c232 struct hv_netvsc_packet *packet = (struct hv_netvsc_packet *)context; local
234 (unsigned long)packet->send_completion_tid;
235 u32 index = packet->send_buf_index;
237 kfree(packet);
285 /* The packet is laid out thus:
371 struct hv_netvsc_packet *packet; local
389 * of pages in a single packet.
399 /* Allocate a netvsc packet based on # of frags. */
400 packet = kzalloc(sizeof(struct hv_netvsc_packet) +
405 if (!packet) {
621 netvsc_recv_callback(struct hv_device *device_obj, struct hv_netvsc_packet *packet, struct ndis_tcp_ip_checksum_info *csum_info) argument
[all...]
/drivers/net/usb/
H A Dgl620a.c61 // max transmit packet number per transmit
63 // max packet length
82 struct gl_packet *packet; local
93 // get the packet count of the received skb
97 "genelink: invalid received packet count %u\n",
102 // set the current packet pointer to the first packet
103 packet = &header->packets;
105 // decrement the length for the packet count size 4 bytes
109 // get the packet lengt
[all...]

Completed in 446 milliseconds

123456