Home
last modified time | relevance | path

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

12345678

/drivers/infiniband/hw/hfi1/
Ddriver.c277 struct hfi1_packet *packet) in rcv_hdrerr() argument
279 struct ib_header *rhdr = packet->hdr; in rcv_hdrerr()
280 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
286 if (packet->rhf & (RHF_VCRC_ERR | RHF_ICRC_ERR)) in rcv_hdrerr()
289 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
292 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr()
368 if (rhf_use_egr_bfr(packet->rhf)) in rcv_hdrerr()
369 ebuf = packet->ebuf; in rcv_hdrerr()
394 sc5 = hdr2sc(rhdr, packet->rhf); in rcv_hdrerr()
424 packet->rhf &= ~RHF_RCV_TYPE_ERR_SMASK; in rcv_hdrerr()
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_packet_manager.c125 struct pm4_runlist *packet; in pm_create_runlist() local
129 packet = (struct pm4_runlist *)buffer; in pm_create_runlist()
132 packet->header.u32all = build_pm4_header(IT_RUN_LIST, in pm_create_runlist()
135 packet->bitfields4.ib_size = ib_size_in_dwords; in pm_create_runlist()
136 packet->bitfields4.chain = chain ? 1 : 0; in pm_create_runlist()
137 packet->bitfields4.offload_polling = 0; in pm_create_runlist()
138 packet->bitfields4.valid = 1; in pm_create_runlist()
139 packet->ordinal2 = lower_32_bits(ib); in pm_create_runlist()
140 packet->bitfields3.ib_base_hi = upper_32_bits(ib); in pm_create_runlist()
148 struct pm4_map_process *packet; in pm_create_map_process() local
[all …]
/drivers/net/wireless/ath/ath6kl/
Dhtc_mbox.c359 static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags, in ath6kl_htc_tx_prep_pkt() argument
364 packet->buf -= HTC_HDR_LENGTH; in ath6kl_htc_tx_prep_pkt()
365 hdr = (struct htc_frame_hdr *)packet->buf; in ath6kl_htc_tx_prep_pkt()
368 put_unaligned((u16)packet->act_len, &hdr->payld_len); in ath6kl_htc_tx_prep_pkt()
370 hdr->eid = packet->endpoint; in ath6kl_htc_tx_prep_pkt()
386 struct htc_packet *packet = NULL; in htc_get_control_buf() local
398 packet = list_first_entry(buf_list, struct htc_packet, list); in htc_get_control_buf()
399 list_del(&packet->list); in htc_get_control_buf()
403 packet->buf = packet->buf_start + HTC_HDR_LENGTH; in htc_get_control_buf()
405 return packet; in htc_get_control_buf()
[all …]
Dhtc_pipe.c25 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 …]
Dhtc.h534 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/
Delantech.c226 psmouse->pktsize, psmouse->packet); in elantech_packet_dump()
237 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v1() local
245 fingers = ((packet[1] & 0x80) >> 7) + in elantech_report_absolute_v1()
246 ((packet[1] & 0x30) >> 4); in elantech_report_absolute_v1()
252 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v1()
274 ((packet[1] & 0x0c) << 6) | packet[2]); in elantech_report_absolute_v1()
276 etd->y_max - (((packet[1] & 0x03) << 8) | packet[3])); in elantech_report_absolute_v1()
282 input_report_key(dev, BTN_LEFT, packet[0] & 0x01); in elantech_report_absolute_v1()
283 input_report_key(dev, BTN_RIGHT, packet[0] & 0x02); in elantech_report_absolute_v1()
288 input_report_key(dev, BTN_FORWARD, packet[0] & 0x40); in elantech_report_absolute_v1()
[all …]
Dlifebook.c139 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 …]
Dlogips2pp.c45 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 …]
Dsentelic.c40 #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
649 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument
658 switch (packet[0] >> FSP_PKT_TYPE_SHIFT) { in fsp_packet_debug()
661 abs_x = GET_ABS_X(packet); in fsp_packet_debug()
662 abs_y = GET_ABS_Y(packet); in fsp_packet_debug()
681 packet[0], packet[1], packet[2], packet[3], abs_x, abs_y); in fsp_packet_debug()
690 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument
710 unsigned char *packet = psmouse->packet; in fsp_process_byte() local
722 fsp_packet_debug(psmouse, packet); in fsp_process_byte()
[all …]
Dfocaltech.c154 unsigned char *packet) in focaltech_process_touch_packet() argument
158 unsigned char fingers = packet[1]; in focaltech_process_touch_packet()
161 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_touch_packet()
178 unsigned char *packet) in focaltech_process_abs_packet() argument
184 finger = (packet[1] >> 4) - 1; in focaltech_process_abs_packet()
191 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_abs_packet()
193 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; in focaltech_process_abs_packet()
194 state->fingers[finger].y = (packet[3] << 8) | packet[4]; in focaltech_process_abs_packet()
195 state->width = packet[5] >> 4; in focaltech_process_abs_packet()
200 unsigned char *packet) in focaltech_process_rel_packet() argument
[all …]
Dtouchkit_ps2.c49 #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()
Dalps.c248 unsigned char *packet = psmouse->packet; in alps_process_packet_v1_v2() local
255 left = packet[2] & 0x10; in alps_process_packet_v1_v2()
256 right = packet[2] & 0x08; in alps_process_packet_v1_v2()
258 x = packet[1] | ((packet[0] & 0x07) << 7); in alps_process_packet_v1_v2()
259 y = packet[4] | ((packet[3] & 0x07) << 7); in alps_process_packet_v1_v2()
260 z = packet[5]; in alps_process_packet_v1_v2()
262 left = packet[3] & 1; in alps_process_packet_v1_v2()
263 right = packet[3] & 2; in alps_process_packet_v1_v2()
264 middle = packet[3] & 4; in alps_process_packet_v1_v2()
265 x = packet[1] | ((packet[2] & 0x78) << (7 - 3)); in alps_process_packet_v1_v2()
[all …]
Dhgpk.c309 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 …]
/drivers/media/platform/vivid/
Dvivid-vbi-gen.c188 static void vivid_vbi_gen_set_time_of_day(u8 *packet) in vivid_vbi_gen_set_time_of_day() argument
194 packet[0] = calc_parity(0x07); in vivid_vbi_gen_set_time_of_day()
195 packet[1] = calc_parity(0x01); in vivid_vbi_gen_set_time_of_day()
196 packet[2] = calc_parity(0x40 | tm.tm_min); in vivid_vbi_gen_set_time_of_day()
197 packet[3] = calc_parity(0x40 | tm.tm_hour); in vivid_vbi_gen_set_time_of_day()
198 packet[4] = calc_parity(0x40 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
201 packet[4] = calc_parity(0x60 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
202 packet[5] = calc_parity(0x40 | (1 + tm.tm_mon)); in vivid_vbi_gen_set_time_of_day()
203 packet[6] = calc_parity(0x40 | (1 + tm.tm_wday)); in vivid_vbi_gen_set_time_of_day()
204 packet[7] = calc_parity(0x40 | ((tm.tm_year - 90) & 0x3f)); in vivid_vbi_gen_set_time_of_day()
[all …]
/drivers/tty/hvc/
Dhvsi.c158 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/
Duser_mad.c164 struct ib_umad_packet *packet) in queue_packet() argument
170 for (packet->mad.hdr.id = 0; in queue_packet()
171 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet()
172 packet->mad.hdr.id++) in queue_packet()
173 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
174 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
186 struct ib_umad_packet *packet) in dequeue_send() argument
189 list_del(&packet->list); in dequeue_send()
197 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local
199 dequeue_send(file, packet); in send_handler()
[all …]
/drivers/usb/misc/sisusbvga/
Dsisusb.c526 struct sisusb_packet *packet) in sisusb_send_packet() argument
533 packet->data = 0; in sisusb_send_packet()
541 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_packet()
545 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet()
555 packet->data = le32_to_cpu(tmp); in sisusb_send_packet()
562 struct sisusb_packet *packet, unsigned int tflags) in sisusb_send_bridge_packet() argument
569 packet->data = 0; in sisusb_send_bridge_packet()
577 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_bridge_packet()
581 (char *)packet, NULL, 0, &bytes_transferred, tflags, 0); in sisusb_send_bridge_packet()
591 packet->data = le32_to_cpu(tmp); in sisusb_send_bridge_packet()
[all …]
/drivers/input/joystick/
Dxpad.c759 struct xpad_output_packet *pkt, *packet = NULL; in xpad_prepare_next_out_packet() local
771 packet = pkt; in xpad_prepare_next_out_packet()
776 if (packet) { in xpad_prepare_next_out_packet()
777 memcpy(xpad->odata, packet->data, packet->len); in xpad_prepare_next_out_packet()
778 xpad->irq_out->transfer_buffer_length = packet->len; in xpad_prepare_next_out_packet()
779 packet->pending = false; in xpad_prepare_next_out_packet()
920 struct xpad_output_packet *packet = in xpad_inquiry_pad_presence() local
927 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
928 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
929 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
[all …]
/drivers/tty/ipwireless/
Dhardware.c458 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/wireless/broadcom/b43legacy/
Dpio.c56 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/input/touchscreen/
Dads7846.c116 struct ads7846_packet *packet; member
697 struct ads7846_packet *packet = ts->packet; in ads7846_read_state() local
712 packet->tc.ignore = true; in ads7846_read_state()
730 packet->tc.ignore = true; in ads7846_read_state()
736 packet->tc.ignore = false; in ads7846_read_state()
751 struct ads7846_packet *packet = ts->packet; in ads7846_report_state() local
761 x = *(u16 *)packet->tc.x_buf; in ads7846_report_state()
762 y = *(u16 *)packet->tc.y_buf; in ads7846_report_state()
766 x = packet->tc.x; in ads7846_report_state()
767 y = packet->tc.y; in ads7846_report_state()
[all …]
/drivers/media/rc/
Diguanair.c55 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/net/hyperv/
Dnetvsc.c633 struct vmpacket_descriptor *packet) in netvsc_send_tx_complete() argument
635 struct sk_buff *skb = (struct sk_buff *)(unsigned long)packet->trans_id; in netvsc_send_tx_complete()
674 struct vmpacket_descriptor *packet) in netvsc_send_completion() argument
679 nvsp_packet = (struct nvsp_message *)((unsigned long)packet + in netvsc_send_completion()
680 (packet->offset8 << 3)); in netvsc_send_completion()
695 device, packet); in netvsc_send_completion()
733 struct hv_netvsc_packet *packet, in netvsc_copy_to_send_buf() argument
746 u32 remain = packet->total_data_buflen % net_device->pkt_align; in netvsc_copy_to_send_buf()
747 u32 page_count = packet->cp_partial ? packet->rmsg_pgcnt : in netvsc_copy_to_send_buf()
748 packet->page_buf_cnt; in netvsc_copy_to_send_buf()
[all …]
/drivers/input/
Dmousedev.c75 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 …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c1157 struct xgbe_packet_data *packet) in xgbe_prep_tx_tstamp() argument
1161 if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) { in xgbe_prep_tx_tstamp()
1165 XGMAC_SET_BITS(packet->attributes, in xgbe_prep_tx_tstamp()
1174 if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) in xgbe_prep_tx_tstamp()
1178 static void xgbe_prep_vlan(struct sk_buff *skb, struct xgbe_packet_data *packet) in xgbe_prep_vlan() argument
1181 packet->vlan_ctag = skb_vlan_tag_get(skb); in xgbe_prep_vlan()
1184 static int xgbe_prep_tso(struct sk_buff *skb, struct xgbe_packet_data *packet) in xgbe_prep_tso() argument
1188 if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_prep_tso()
1196 packet->header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in xgbe_prep_tso()
1197 packet->tcp_header_len = tcp_hdrlen(skb); in xgbe_prep_tso()
[all …]

12345678