/drivers/net/wireless/ath/ath6kl/ |
D | htc_mbox.c | 360 static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags, in ath6kl_htc_tx_prep_pkt() argument 365 packet->buf -= HTC_HDR_LENGTH; in ath6kl_htc_tx_prep_pkt() 366 hdr = (struct htc_frame_hdr *)packet->buf; in ath6kl_htc_tx_prep_pkt() 369 put_unaligned((u16)packet->act_len, &hdr->payld_len); in ath6kl_htc_tx_prep_pkt() 371 hdr->eid = packet->endpoint; in ath6kl_htc_tx_prep_pkt() 387 struct htc_packet *packet = NULL; in htc_get_control_buf() local 399 packet = list_first_entry(buf_list, struct htc_packet, list); in htc_get_control_buf() 400 list_del(&packet->list); in htc_get_control_buf() 404 packet->buf = packet->buf_start + HTC_HDR_LENGTH; in htc_get_control_buf() 406 return packet; in htc_get_control_buf() [all …]
|
D | htc_pipe.c | 25 struct htc_packet *packet); 29 static inline void restore_tx_packet(struct htc_packet *packet) in restore_tx_packet() argument 31 if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) { in restore_tx_packet() 32 skb_pull(packet->skb, sizeof(struct htc_frame_hdr)); in restore_tx_packet() 33 packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF; in restore_tx_packet() 40 struct htc_packet *packet; in do_send_completion() local 65 packet = list_first_entry(queue_to_indicate, in do_send_completion() 68 list_del(&packet->list); in do_send_completion() 71 __func__, ep->eid, packet); in do_send_completion() 72 ep->ep_cb.tx_complete(ep->target, packet); in do_send_completion() [all …]
|
D | htc.h | 534 struct htc_packet packet; member 555 int (*tx)(struct htc_target *target, struct htc_packet *packet); 635 static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, in set_htc_pkt_info() argument 639 packet->pkt_cntxt = context; in set_htc_pkt_info() 640 packet->buf = buf; in set_htc_pkt_info() 641 packet->act_len = len; in set_htc_pkt_info() 642 packet->endpoint = eid; in set_htc_pkt_info() 643 packet->info.tx.tag = tag; in set_htc_pkt_info() 646 static inline void htc_rxpkt_reset(struct htc_packet *packet) in htc_rxpkt_reset() argument 648 packet->buf = packet->buf_start; in htc_rxpkt_reset() [all …]
|
/drivers/input/mouse/ |
D | elantech.c | 227 printk("%s0x%02x ", i ? ", " : " ", psmouse->packet[i]); in elantech_packet_dump() 239 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v1() local 247 fingers = ((packet[1] & 0x80) >> 7) + in elantech_report_absolute_v1() 248 ((packet[1] & 0x30) >> 4); in elantech_report_absolute_v1() 254 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v1() 276 ((packet[1] & 0x0c) << 6) | packet[2]); in elantech_report_absolute_v1() 278 etd->y_max - (((packet[1] & 0x03) << 8) | packet[3])); in elantech_report_absolute_v1() 284 input_report_key(dev, BTN_LEFT, packet[0] & 0x01); in elantech_report_absolute_v1() 285 input_report_key(dev, BTN_RIGHT, packet[0] & 0x02); in elantech_report_absolute_v1() 290 input_report_key(dev, BTN_FORWARD, packet[0] & 0x40); in elantech_report_absolute_v1() [all …]
|
D | lifebook.c | 139 unsigned char *packet = psmouse->packet; in lifebook_process_byte() local 140 bool relative_packet = packet[0] & 0x08; in lifebook_process_byte() 148 return (packet[0] & 0xf8) == 0x00 ? in lifebook_process_byte() 153 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ? in lifebook_process_byte() 156 return (packet[3] & 0xf8) == 0xc0 ? in lifebook_process_byte() 159 return (packet[4] & 0xc0) == (packet[2] & 0xc0) ? in lifebook_process_byte() 162 if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0)) in lifebook_process_byte() 164 if ((packet[5] & 0xc0) != (packet[1] & 0xc0)) in lifebook_process_byte() 177 ((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f)); in lifebook_process_byte() 179 4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f))); in lifebook_process_byte() [all …]
|
D | logips2pp.c | 45 unsigned char *packet = psmouse->packet; in ps2pp_process_byte() local 54 if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) { in ps2pp_process_byte() 57 switch ((packet[1] >> 4) | (packet[0] & 0x30)) { in ps2pp_process_byte() 61 input_report_rel(dev, packet[2] & 0x80 ? REL_HWHEEL : REL_WHEEL, in ps2pp_process_byte() 62 (int) (packet[2] & 8) - (int) (packet[2] & 7)); in ps2pp_process_byte() 63 input_report_key(dev, BTN_SIDE, (packet[2] >> 4) & 1); in ps2pp_process_byte() 64 input_report_key(dev, BTN_EXTRA, (packet[2] >> 5) & 1); in ps2pp_process_byte() 70 input_report_key(dev, BTN_SIDE, (packet[2]) & 1); in ps2pp_process_byte() 71 input_report_key(dev, BTN_EXTRA, (packet[2] >> 1) & 1); in ps2pp_process_byte() 72 input_report_key(dev, BTN_BACK, (packet[2] >> 3) & 1); in ps2pp_process_byte() [all …]
|
D | alps.c | 161 unsigned char *packet = psmouse->packet; in alps_process_packet_v1_v2() local 168 left = packet[2] & 0x10; in alps_process_packet_v1_v2() 169 right = packet[2] & 0x08; in alps_process_packet_v1_v2() 171 x = packet[1] | ((packet[0] & 0x07) << 7); in alps_process_packet_v1_v2() 172 y = packet[4] | ((packet[3] & 0x07) << 7); in alps_process_packet_v1_v2() 173 z = packet[5]; in alps_process_packet_v1_v2() 175 left = packet[3] & 1; in alps_process_packet_v1_v2() 176 right = packet[3] & 2; in alps_process_packet_v1_v2() 177 middle = packet[3] & 4; in alps_process_packet_v1_v2() 178 x = packet[1] | ((packet[2] & 0x78) << (7 - 3)); in alps_process_packet_v1_v2() [all …]
|
D | sentelic.c | 40 #define GET_ABS_X(packet) ((packet[1] << 2) | ((packet[3] >> 2) & 0x03)) argument 41 #define GET_ABS_Y(packet) ((packet[2] << 2) | (packet[3] & 0x03)) argument 647 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument 656 switch (packet[0] >> FSP_PKT_TYPE_SHIFT) { in fsp_packet_debug() 659 abs_x = GET_ABS_X(packet); in fsp_packet_debug() 660 abs_y = GET_ABS_Y(packet); in fsp_packet_debug() 679 packet[0], packet[1], packet[2], packet[3], abs_x, abs_y); in fsp_packet_debug() 688 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument 708 unsigned char *packet = psmouse->packet; in fsp_process_byte() local 720 fsp_packet_debug(psmouse, packet); in fsp_process_byte() [all …]
|
D | touchkit_ps2.c | 49 #define TOUCHKIT_GET_TOUCHED(packet) (((packet)[0]) & 0x01) argument 50 #define TOUCHKIT_GET_X(packet) (((packet)[1] << 7) | (packet)[2]) argument 51 #define TOUCHKIT_GET_Y(packet) (((packet)[3] << 7) | (packet)[4]) argument 55 unsigned char *packet = psmouse->packet; in touchkit_ps2_process_byte() local 61 input_report_abs(dev, ABS_X, TOUCHKIT_GET_X(packet)); in touchkit_ps2_process_byte() 62 input_report_abs(dev, ABS_Y, TOUCHKIT_GET_Y(packet)); in touchkit_ps2_process_byte() 63 input_report_key(dev, BTN_TOUCH, TOUCHKIT_GET_TOUCHED(packet)); in touchkit_ps2_process_byte()
|
D | hgpk.c | 309 static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet) in hgpk_is_byte_valid() argument 317 valid = (packet[0] & 0x0C) == 0x08; in hgpk_is_byte_valid() 322 packet[0] == HGPK_GS : !(packet[pktcnt - 1] & 0x80); in hgpk_is_byte_valid() 327 packet[0] == HGPK_PT : !(packet[pktcnt - 1] & 0x80); in hgpk_is_byte_valid() 338 priv->mode, pktcnt, 6, psmouse->packet); in hgpk_is_byte_valid() 347 unsigned char *packet = psmouse->packet; in hgpk_process_advanced_packet() local 348 int down = !!(packet[2] & 2); in hgpk_process_advanced_packet() 349 int left = !!(packet[3] & 1); in hgpk_process_advanced_packet() 350 int right = !!(packet[3] & 2); in hgpk_process_advanced_packet() 351 int x = packet[1] | ((packet[2] & 0x78) << 4); in hgpk_process_advanced_packet() [all …]
|
D | cypress_ps2.c | 128 memcpy(param, psmouse->packet, pktsize); in cypress_ps2_read_cmd_status() 453 unsigned char *packet = psmouse->packet; in cypress_parse_packet() local 454 unsigned char header_byte = packet[0]; in cypress_parse_packet() 470 ((packet[1] & 0x70) << 4) | packet[2]; in cypress_parse_packet() 472 ((packet[1] & 0x07) << 8) | packet[3]; in cypress_parse_packet() 474 report_data->contacts[0].z = packet[4]; in cypress_parse_packet() 478 ((packet[1] & 0x70) << 4) | packet[2]; in cypress_parse_packet() 480 ((packet[1] & 0x07) << 8) | packet[3]; in cypress_parse_packet() 482 report_data->contacts[0].z = packet[4]; in cypress_parse_packet() 485 ((packet[5] & 0xf0) << 4) | packet[6]; in cypress_parse_packet() [all …]
|
/drivers/tty/hvc/ |
D | hvsi.c | 158 static inline int len_packet(const uint8_t *packet) in len_packet() argument 160 return (int)((struct hvsi_header *)packet)->len; in len_packet() 163 static inline int is_header(const uint8_t *packet) in is_header() argument 165 struct hvsi_header *header = (struct hvsi_header *)packet; in is_header() 169 static inline int got_packet(const struct hvsi_struct *hp, uint8_t *packet) in got_packet() argument 171 if (hp->inbuf_end < packet + sizeof(struct hvsi_header)) in got_packet() 174 if (hp->inbuf_end < (packet + len_packet(packet))) in got_packet() 194 #define dbg_dump_packet(packet) dump_packet(packet) argument 197 #define dbg_dump_packet(packet) do { } while (0) argument 219 static void dump_packet(uint8_t *packet) in dump_packet() argument [all …]
|
/drivers/infiniband/core/ |
D | user_mad.c | 159 struct ib_umad_packet *packet) in queue_packet() argument 165 for (packet->mad.hdr.id = 0; in queue_packet() 166 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet() 167 packet->mad.hdr.id++) in queue_packet() 168 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 169 list_add_tail(&packet->list, &file->recv_list); in queue_packet() 181 struct ib_umad_packet *packet) in dequeue_send() argument 184 list_del(&packet->list); in dequeue_send() 192 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local 194 dequeue_send(file, packet); in send_handler() [all …]
|
/drivers/usb/misc/sisusbvga/ |
D | sisusb.c | 552 struct sisusb_packet *packet) in sisusb_send_packet() argument 559 packet->data = 0; in sisusb_send_packet() 567 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_packet() 571 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet() 581 packet->data = le32_to_cpu(tmp); in sisusb_send_packet() 588 struct sisusb_packet *packet, in sisusb_send_bridge_packet() argument 596 packet->data = 0; in sisusb_send_bridge_packet() 604 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_bridge_packet() 608 (char *)packet, NULL, 0, &bytes_transferred, tflags, 0); in sisusb_send_bridge_packet() 618 packet->data = le32_to_cpu(tmp); in sisusb_send_bridge_packet() [all …]
|
/drivers/tty/ipwireless/ |
D | hardware.c | 458 static void do_send_packet(struct ipw_hardware *hw, struct ipw_tx_packet *packet) in do_send_packet() argument 461 unsigned short data_left = packet->length - packet->offset; in do_send_packet() 466 (packet->fragment_count == 0) in do_send_packet() 477 pkt.hdr_first.protocol = packet->protocol; in do_send_packet() 478 pkt.hdr_first.address = packet->dest_addr; in do_send_packet() 482 if (packet->fragment_count == 0) { in do_send_packet() 484 pkt.hdr_first.length_lsb = (unsigned char) packet->length; in do_send_packet() 486 (unsigned char) (packet->length >> 8); in do_send_packet() 490 ((unsigned char *) packet) + sizeof(struct ipw_tx_packet) + in do_send_packet() 491 packet->offset, fragment_data_len); in do_send_packet() [all …]
|
/drivers/net/hyperv/ |
D | netvsc_drv.c | 125 struct hv_netvsc_packet *packet = (struct hv_netvsc_packet *)context; in netvsc_xmit_completion() local 127 (unsigned long)packet->completion.send.send_completion_tid; in netvsc_xmit_completion() 129 kfree(packet); in netvsc_xmit_completion() 138 struct hv_netvsc_packet *packet; in netvsc_start_xmit() local 148 packet = kzalloc(sizeof(struct hv_netvsc_packet) + in netvsc_start_xmit() 152 if (!packet) { in netvsc_start_xmit() 161 packet->vlan_tci = skb->vlan_tci; in netvsc_start_xmit() 163 packet->extension = (void *)(unsigned long)packet + in netvsc_start_xmit() 168 packet->page_buf_cnt = num_pages - 1; in netvsc_start_xmit() 171 packet->total_data_buflen = skb->len; in netvsc_start_xmit() [all …]
|
D | netvsc.c | 440 struct vmpacket_descriptor *packet) in netvsc_send_completion() argument 452 nvsp_packet = (struct nvsp_message *)((unsigned long)packet + in netvsc_send_completion() 453 (packet->offset8 << 3)); in netvsc_send_completion() 470 packet->trans_id; in netvsc_send_completion() 497 struct hv_netvsc_packet *packet) in netvsc_send() argument 511 if (packet->is_data_pkt) { in netvsc_send() 524 if (packet->completion.send.send_completion) in netvsc_send() 525 req_id = (ulong)packet; in netvsc_send() 529 if (packet->page_buf_cnt) { in netvsc_send() 531 packet->page_buf, in netvsc_send() [all …]
|
/drivers/net/wireless/b43legacy/ |
D | pio.c | 56 const u8 *packet, in tx_get_next_word() argument 67 source = packet; in tx_get_next_word() 78 const u8 *packet, in tx_data() argument 85 data = tx_get_next_word(txhdr, packet, in tx_data() 93 data = tx_get_next_word(txhdr, packet, in tx_data() 98 tx_octet(queue, packet[octets - in tx_data() 117 struct b43legacy_pio_txpacket *packet) in generate_cookie() argument 141 packetindex = pio_txpacket_getindex(packet); in generate_cookie() 151 struct b43legacy_pio_txpacket **packet) in parse_cookie() argument 176 *packet = &(queue->tx_packets_cache[packetindex]); in parse_cookie() [all …]
|
/drivers/staging/asus_oled/ |
D | asus_oled.c | 144 static void setup_packet_header(struct asus_oled_packet *packet, char flags, in setup_packet_header() argument 148 memset(packet, 0, sizeof(struct asus_oled_header)); in setup_packet_header() 149 packet->header.magic1 = 0x55; in setup_packet_header() 150 packet->header.magic2 = 0xaa; in setup_packet_header() 151 packet->header.flags = flags; in setup_packet_header() 152 packet->header.value3 = value3; in setup_packet_header() 153 packet->header.buffer1 = buffer1; in setup_packet_header() 154 packet->header.buffer2 = buffer2; in setup_packet_header() 155 packet->header.value6 = value6; in setup_packet_header() 156 packet->header.value7 = value7; in setup_packet_header() [all …]
|
/drivers/input/touchscreen/ |
D | ads7846.c | 115 struct ads7846_packet *packet; member 724 struct ads7846_packet *packet = ts->packet; in ads7846_read_state() local 739 packet->tc.ignore = true; in ads7846_read_state() 757 packet->tc.ignore = true; in ads7846_read_state() 763 packet->tc.ignore = false; in ads7846_read_state() 778 struct ads7846_packet *packet = ts->packet; in ads7846_report_state() local 788 x = *(u16 *)packet->tc.x_buf; in ads7846_report_state() 789 y = *(u16 *)packet->tc.y_buf; in ads7846_report_state() 793 x = packet->tc.x; in ads7846_report_state() 794 y = packet->tc.y; in ads7846_report_state() [all …]
|
D | elo.c | 225 static int elo_command_10(struct elo *elo, unsigned char *packet) in elo_command_10() argument 234 elo->expected_packet = toupper(packet[0]); in elo_command_10() 242 csum += packet[i]; in elo_command_10() 243 if (serio_write(elo->serio, packet[i])) in elo_command_10() 254 memcpy(packet, elo->response, ELO10_PACKET_LEN); in elo_command_10() 267 unsigned char packet[ELO10_PACKET_LEN] = { ELO10_ID_CMD }; in elo_setup_10() local 269 if (elo_command_10(elo, packet)) in elo_setup_10() 272 dev->id.version = (packet[5] << 8) | packet[4]; in elo_setup_10() 276 if (packet[3] & ELO10_PRESSURE) in elo_setup_10() 281 elo_types[(packet[1] -'0') & 0x03], in elo_setup_10() [all …]
|
/drivers/media/rc/ |
D | iguanair.c | 55 struct send_packet *packet; member 80 struct packet { struct 87 struct packet header; argument 202 if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP) in iguanair_irq_out() 232 ir->packet->header.start = 0; in iguanair_get_features() 233 ir->packet->header.direction = DIR_OUT; in iguanair_get_features() 234 ir->packet->header.cmd = CMD_NOP; in iguanair_get_features() 235 iguanair_send(ir, sizeof(ir->packet->header)); in iguanair_get_features() 237 ir->packet->header.cmd = CMD_GET_VERSION; in iguanair_get_features() 238 rc = iguanair_send(ir, sizeof(ir->packet->header)); in iguanair_get_features() [all …]
|
/drivers/firewire/ |
D | ohci.c | 1288 struct fw_packet *packet; member 1297 struct fw_packet *packet) in at_context_queue_packet() argument 1308 packet->ack = RCODE_SEND_ERROR; in at_context_queue_packet() 1313 d[0].res_count = cpu_to_le16(packet->timestamp); in at_context_queue_packet() 1321 tcode = (packet->header[0] >> 4) & 0x0f; in at_context_queue_packet() 1333 header[0] = cpu_to_le32((packet->header[0] & 0xffff) | in at_context_queue_packet() 1334 (packet->speed << 16)); in at_context_queue_packet() 1335 header[1] = cpu_to_le32((packet->header[1] & 0xffff) | in at_context_queue_packet() 1336 (packet->header[0] & 0xffff0000)); in at_context_queue_packet() 1337 header[2] = cpu_to_le32(packet->header[2]); in at_context_queue_packet() [all …]
|
D | core-transaction.c | 128 if (card->driver->cancel_packet(card, &transaction->packet) == 0) in fw_cancel_transaction() 177 static void transmit_complete_callback(struct fw_packet *packet, in transmit_complete_callback() argument 181 container_of(packet, struct fw_transaction, packet); in transmit_complete_callback() 211 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, in fw_fill_request() argument 218 packet->header[0] = in fw_fill_request() 222 packet->header_length = 4; in fw_fill_request() 223 packet->payload = payload; in fw_fill_request() 224 packet->payload_length = length; in fw_fill_request() 235 packet->header[0] = in fw_fill_request() 240 packet->header[1] = in fw_fill_request() [all …]
|
/drivers/input/ |
D | mousedev.c | 75 struct mousedev_hw_data packet; member 145 mousedev->packet.dx = tmp / FRACTION_DENOM; in mousedev_touchpad_event() 147 tmp - mousedev->packet.dx * FRACTION_DENOM; in mousedev_touchpad_event() 162 mousedev->packet.dy = tmp / FRACTION_DENOM; in mousedev_touchpad_event() 164 mousedev->packet.dy * FRACTION_DENOM; in mousedev_touchpad_event() 187 mousedev->packet.x = ((value - min) * xres) / size; in mousedev_abs_event() 188 mousedev->packet.abs_event = 1; in mousedev_abs_event() 201 mousedev->packet.y = yres - ((value - min) * yres) / size; in mousedev_abs_event() 202 mousedev->packet.abs_event = 1; in mousedev_abs_event() 212 mousedev->packet.dx += value; in mousedev_rel_event() [all …]
|