Home
last modified time | relevance | path

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

12345678910>>...24

/Linux-v5.4/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c77 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument
93 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
94 packet->count = count; in intel_pt_get_long_tnt()
95 packet->payload = payload << 1; in intel_pt_get_long_tnt()
100 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument
107 packet->type = INTEL_PT_PIP; in intel_pt_get_pip()
109 packet->payload = payload >> 1; in intel_pt_get_pip()
111 packet->payload |= NR_FLAG; in intel_pt_get_pip()
116 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument
118 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dkfd_kernel_queue_v9.c73 struct pm4_mes_map_process *packet; in pm_map_process_v9() local
76 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9()
79 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9()
81 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9()
82 packet->bitfields2.process_quantum = 1; in pm_map_process_v9()
83 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9()
84 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9()
85 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9()
86 packet->bitfields14.num_gws = qpd->num_gws; in pm_map_process_v9()
87 packet->bitfields14.num_oac = qpd->num_oac; in pm_map_process_v9()
[all …]
Dkfd_kernel_queue_vi.c85 struct pm4_mes_map_process *packet; in pm_map_process_vi() local
87 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_vi()
91 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_vi()
93 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_vi()
94 packet->bitfields2.process_quantum = 1; in pm_map_process_vi()
95 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_vi()
96 packet->bitfields3.page_table_base = qpd->page_table_base; in pm_map_process_vi()
97 packet->bitfields10.gds_size = qpd->gds_size; in pm_map_process_vi()
98 packet->bitfields10.num_gws = qpd->num_gws; in pm_map_process_vi()
99 packet->bitfields10.num_oac = qpd->num_oac; in pm_map_process_vi()
[all …]
Dkfd_kernel_queue_v10.c74 struct pm4_mes_map_process *packet; in pm_map_process_v10() local
77 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v10()
80 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v10()
82 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v10()
83 packet->bitfields2.process_quantum = 1; in pm_map_process_v10()
84 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v10()
85 packet->bitfields14.gds_size = qpd->gds_size; in pm_map_process_v10()
86 packet->bitfields14.num_gws = qpd->num_gws; in pm_map_process_v10()
87 packet->bitfields14.num_oac = qpd->num_oac; in pm_map_process_v10()
88 packet->bitfields14.sdma_enable = 1; in pm_map_process_v10()
[all …]
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Ddriver.c251 struct hfi1_packet *packet) in rcv_hdrerr() argument
253 struct ib_header *rhdr = packet->hdr; in rcv_hdrerr()
254 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
261 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
265 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr()
268 if (packet->etype == RHF_RCV_TYPE_BYPASS) { in rcv_hdrerr()
275 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr()
277 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr()
278 packet->grh = &rhdr->u.l.grh; in rcv_hdrerr()
284 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
[all …]
/Linux-v5.4/net/sctp/
Doutput.c45 static enum sctp_xmit __sctp_packet_append_chunk(struct sctp_packet *packet,
47 static enum sctp_xmit sctp_packet_can_append_data(struct sctp_packet *packet,
49 static void sctp_packet_append_data(struct sctp_packet *packet,
51 static enum sctp_xmit sctp_packet_will_fit(struct sctp_packet *packet,
55 static void sctp_packet_reset(struct sctp_packet *packet) in sctp_packet_reset() argument
60 packet->size = packet->overhead; in sctp_packet_reset()
62 packet->has_cookie_echo = 0; in sctp_packet_reset()
63 packet->has_sack = 0; in sctp_packet_reset()
64 packet->has_data = 0; in sctp_packet_reset()
65 packet->has_auth = 0; in sctp_packet_reset()
[all …]
/Linux-v5.4/tools/perf/util/
Darm-spe-pkt-decoder.c86 struct arm_spe_pkt *packet) in arm_spe_get_payload() argument
96 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload()
97 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload()
98 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload()
99 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload()
106 static int arm_spe_get_pad(struct arm_spe_pkt *packet) in arm_spe_get_pad() argument
108 packet->type = ARM_SPE_PAD; in arm_spe_get_pad()
113 struct arm_spe_pkt *packet) in arm_spe_get_alignment() argument
120 packet->type = ARM_SPE_PAD; in arm_spe_get_alignment()
124 static int arm_spe_get_end(struct arm_spe_pkt *packet) in arm_spe_get_end() argument
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/tools/perf/arch/x86/tests/
Dintel-pt-pkt-decoder-test.c24 struct intel_pt_pkt packet; member
173 static int dump_packet(struct intel_pt_pkt *packet, u8 *bytes, int len) in dump_packet() argument
183 ret = intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in dump_packet()
197 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed()
200 static int fail(struct test_data *d, struct intel_pt_pkt *packet, int len, in fail() argument
209 if (packet->type != d->packet.type) in fail()
211 d->packet.type, packet->type); in fail()
213 if (packet->count != d->packet.count) in fail()
215 d->packet.count, packet->count); in fail()
217 if (packet->payload != d->packet.payload) in fail()
[all …]
/Linux-v5.4/drivers/media/platform/vivid/
Dvivid-vbi-gen.c176 static void vivid_vbi_gen_set_time_of_day(u8 *packet) in vivid_vbi_gen_set_time_of_day() argument
182 packet[0] = calc_parity(0x07); in vivid_vbi_gen_set_time_of_day()
183 packet[1] = calc_parity(0x01); in vivid_vbi_gen_set_time_of_day()
184 packet[2] = calc_parity(0x40 | tm.tm_min); in vivid_vbi_gen_set_time_of_day()
185 packet[3] = calc_parity(0x40 | tm.tm_hour); in vivid_vbi_gen_set_time_of_day()
186 packet[4] = calc_parity(0x40 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
189 packet[4] = calc_parity(0x60 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
190 packet[5] = calc_parity(0x40 | (1 + tm.tm_mon)); in vivid_vbi_gen_set_time_of_day()
191 packet[6] = calc_parity(0x40 | (1 + tm.tm_wday)); in vivid_vbi_gen_set_time_of_day()
192 packet[7] = calc_parity(0x40 | ((tm.tm_year - 90) & 0x3f)); in vivid_vbi_gen_set_time_of_day()
[all …]
/Linux-v5.4/drivers/tty/hvc/
Dhvsi.c145 static inline int len_packet(const uint8_t *packet) in len_packet() argument
147 return (int)((struct hvsi_header *)packet)->len; in len_packet()
150 static inline int is_header(const uint8_t *packet) in is_header() argument
152 struct hvsi_header *header = (struct hvsi_header *)packet; in is_header()
156 static inline int got_packet(const struct hvsi_struct *hp, uint8_t *packet) in got_packet() argument
158 if (hp->inbuf_end < packet + sizeof(struct hvsi_header)) in got_packet()
161 if (hp->inbuf_end < (packet + len_packet(packet))) in got_packet()
181 #define dbg_dump_packet(packet) dump_packet(packet) argument
184 #define dbg_dump_packet(packet) do { } while (0) argument
206 static void dump_packet(uint8_t *packet) in dump_packet() argument
[all …]
/Linux-v5.4/drivers/infiniband/core/
Duser_mad.c180 struct ib_umad_packet *packet) in queue_packet() argument
186 for (packet->mad.hdr.id = 0; in queue_packet()
187 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet()
188 packet->mad.hdr.id++) in queue_packet()
189 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
190 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
202 struct ib_umad_packet *packet) in dequeue_send() argument
205 list_del(&packet->list); in dequeue_send()
213 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local
215 dequeue_send(file, packet); in send_handler()
[all …]
/Linux-v5.4/drivers/input/mouse/
Delantech.c226 psmouse->pktsize, psmouse->packet); in elantech_packet_dump()
283 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v1() local
291 fingers = ((packet[1] & 0x80) >> 7) + in elantech_report_absolute_v1()
292 ((packet[1] & 0x30) >> 4); in elantech_report_absolute_v1()
298 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v1()
320 ((packet[1] & 0x0c) << 6) | packet[2]); in elantech_report_absolute_v1()
322 etd->y_max - (((packet[1] & 0x03) << 8) | packet[3])); in elantech_report_absolute_v1()
329 psmouse_report_standard_buttons(dev, packet[0]); in elantech_report_absolute_v1()
334 input_report_key(dev, BTN_FORWARD, packet[0] & 0x40); in elantech_report_absolute_v1()
336 input_report_key(dev, BTN_BACK, packet[0] & 0x80); in elantech_report_absolute_v1()
[all …]
Dtouchkit_ps2.c36 #define TOUCHKIT_GET_TOUCHED(packet) (((packet)[0]) & 0x01) argument
37 #define TOUCHKIT_GET_X(packet) (((packet)[1] << 7) | (packet)[2]) argument
38 #define TOUCHKIT_GET_Y(packet) (((packet)[3] << 7) | (packet)[4]) argument
42 unsigned char *packet = psmouse->packet; in touchkit_ps2_process_byte() local
48 input_report_abs(dev, ABS_X, TOUCHKIT_GET_X(packet)); in touchkit_ps2_process_byte()
49 input_report_abs(dev, ABS_Y, TOUCHKIT_GET_Y(packet)); in touchkit_ps2_process_byte()
50 input_report_key(dev, BTN_TOUCH, TOUCHKIT_GET_TOUCHED(packet)); in touchkit_ps2_process_byte()
Dlifebook.c137 u8 *packet = psmouse->packet; in lifebook_process_byte() local
138 bool relative_packet = packet[0] & 0x08; in lifebook_process_byte()
146 return (packet[0] & 0xf8) == 0x00 ? in lifebook_process_byte()
151 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ? in lifebook_process_byte()
154 return (packet[3] & 0xf8) == 0xc0 ? in lifebook_process_byte()
157 return (packet[4] & 0xc0) == (packet[2] & 0xc0) ? in lifebook_process_byte()
160 if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0)) in lifebook_process_byte()
162 if ((packet[5] & 0xc0) != (packet[1] & 0xc0)) in lifebook_process_byte()
175 ((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f)); in lifebook_process_byte()
177 4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f))); in lifebook_process_byte()
[all …]
Dfocaltech.c150 unsigned char *packet) in focaltech_process_touch_packet() argument
154 unsigned char fingers = packet[1]; in focaltech_process_touch_packet()
157 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_touch_packet()
174 unsigned char *packet) in focaltech_process_abs_packet() argument
180 finger = (packet[1] >> 4) - 1; in focaltech_process_abs_packet()
187 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_abs_packet()
189 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; in focaltech_process_abs_packet()
190 state->fingers[finger].y = (packet[3] << 8) | packet[4]; in focaltech_process_abs_packet()
191 state->width = packet[5] >> 4; in focaltech_process_abs_packet()
196 unsigned char *packet) in focaltech_process_rel_packet() argument
[all …]
Dlogips2pp.c44 u8 *packet = psmouse->packet; in ps2pp_process_byte() local
53 if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) { in ps2pp_process_byte()
56 switch ((packet[1] >> 4) | (packet[0] & 0x30)) { in ps2pp_process_byte()
61 packet[2] & 0x80 ? REL_HWHEEL : REL_WHEEL, in ps2pp_process_byte()
62 -sign_extend32(packet[2], 3)); in ps2pp_process_byte()
63 input_report_key(dev, BTN_SIDE, packet[2] & BIT(4)); in ps2pp_process_byte()
64 input_report_key(dev, BTN_EXTRA, packet[2] & BIT(5)); in ps2pp_process_byte()
70 input_report_key(dev, BTN_SIDE, packet[2] & BIT(0)); in ps2pp_process_byte()
71 input_report_key(dev, BTN_EXTRA, packet[2] & BIT(1)); in ps2pp_process_byte()
72 input_report_key(dev, BTN_TASK, packet[2] & BIT(2)); in ps2pp_process_byte()
[all …]
Dsentelic.c27 #define GET_ABS_X(packet) ((packet[1] << 2) | ((packet[3] >> 2) & 0x03)) argument
28 #define GET_ABS_Y(packet) ((packet[2] << 2) | (packet[3] & 0x03)) argument
636 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument
645 switch (packet[0] >> FSP_PKT_TYPE_SHIFT) { in fsp_packet_debug()
648 abs_x = GET_ABS_X(packet); in fsp_packet_debug()
649 abs_y = GET_ABS_Y(packet); in fsp_packet_debug()
668 packet[0], packet[1], packet[2], packet[3], abs_x, abs_y); in fsp_packet_debug()
677 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument
697 unsigned char *packet = psmouse->packet; in fsp_process_byte() local
708 fsp_packet_debug(psmouse, packet); in fsp_process_byte()
[all …]
/Linux-v5.4/drivers/usb/misc/sisusbvga/
Dsisusb.c527 struct sisusb_packet *packet) in sisusb_send_packet() argument
534 packet->data = 0; in sisusb_send_packet()
542 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_packet()
546 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet()
556 packet->data = le32_to_cpu(tmp); in sisusb_send_packet()
563 struct sisusb_packet *packet, unsigned int tflags) in sisusb_send_bridge_packet() argument
570 packet->data = 0; in sisusb_send_bridge_packet()
578 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_bridge_packet()
582 (char *)packet, NULL, 0, &bytes_transferred, tflags, 0); in sisusb_send_bridge_packet()
592 packet->data = le32_to_cpu(tmp); in sisusb_send_bridge_packet()
[all …]
/Linux-v5.4/drivers/tty/ipwireless/
Dhardware.c459 static void do_send_packet(struct ipw_hardware *hw, struct ipw_tx_packet *packet) in do_send_packet() argument
462 unsigned short data_left = packet->length - packet->offset; in do_send_packet()
467 (packet->fragment_count == 0) in do_send_packet()
478 pkt.hdr_first.protocol = packet->protocol; in do_send_packet()
479 pkt.hdr_first.address = packet->dest_addr; in do_send_packet()
483 if (packet->fragment_count == 0) { in do_send_packet()
485 pkt.hdr_first.length_lsb = (unsigned char) packet->length; in do_send_packet()
487 (unsigned char) (packet->length >> 8); in do_send_packet()
491 ((unsigned char *) packet) + sizeof(struct ipw_tx_packet) + in do_send_packet()
492 packet->offset, fragment_data_len); in do_send_packet()
[all …]
/Linux-v5.4/drivers/input/joystick/
Dfsia6b.c57 struct ibus_packet packet; member
70 fsia6b->packet.ibuf = (data << 8) | ((fsia6b->packet.ibuf >> 8) & 0xFF); in fsia6b_serio_irq()
72 switch (fsia6b->packet.state) { in fsia6b_serio_irq()
74 if (fsia6b->packet.ibuf == 0x4020) in fsia6b_serio_irq()
75 fsia6b->packet.state = COLLECT; in fsia6b_serio_irq()
79 fsia6b->packet.state = PROCESS; in fsia6b_serio_irq()
83 fsia6b->packet.channel[fsia6b->packet.offset] = in fsia6b_serio_irq()
84 fsia6b->packet.ibuf; in fsia6b_serio_irq()
85 fsia6b->packet.offset++; in fsia6b_serio_irq()
87 if (fsia6b->packet.offset == IBUS_SERVO_COUNT) { in fsia6b_serio_irq()
[all …]
Dxpad.c975 struct xpad_output_packet *pkt, *packet = NULL; in xpad_prepare_next_out_packet() local
991 packet = pkt; in xpad_prepare_next_out_packet()
996 if (packet) { in xpad_prepare_next_out_packet()
997 memcpy(xpad->odata, packet->data, packet->len); in xpad_prepare_next_out_packet()
998 xpad->irq_out->transfer_buffer_length = packet->len; in xpad_prepare_next_out_packet()
999 packet->pending = false; in xpad_prepare_next_out_packet()
1134 struct xpad_output_packet *packet = in xpad_inquiry_pad_presence() local
1141 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1142 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1143 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
[all …]
/Linux-v5.4/drivers/net/wireless/broadcom/b43legacy/
Dpio.c43 const u8 *packet, in tx_get_next_word() argument
54 source = packet; in tx_get_next_word()
65 const u8 *packet, in tx_data() argument
72 data = tx_get_next_word(txhdr, packet, in tx_data()
80 data = tx_get_next_word(txhdr, packet, in tx_data()
85 tx_octet(queue, packet[octets - in tx_data()
104 struct b43legacy_pio_txpacket *packet) in generate_cookie() argument
128 packetindex = pio_txpacket_getindex(packet); in generate_cookie()
138 struct b43legacy_pio_txpacket **packet) in parse_cookie() argument
163 *packet = &(queue->tx_packets_cache[packetindex]); in parse_cookie()
[all …]
/Linux-v5.4/drivers/media/platform/qcom/venus/
Dhfi_msgs.c181 void *packet) in hfi_event_notify() argument
183 struct hfi_msg_event_notify_pkt *pkt = packet; in hfi_event_notify()
185 if (!packet) in hfi_event_notify()
209 void *packet) in hfi_sys_init_done() argument
211 struct hfi_msg_sys_init_done_pkt *pkt = packet; in hfi_sys_init_done()
254 struct venus_inst *inst, void *packet) in hfi_sys_property_info() argument
256 struct hfi_msg_sys_property_info_pkt *pkt = packet; in hfi_sys_property_info()
276 void *packet) in hfi_sys_rel_resource_done() argument
278 struct hfi_msg_sys_release_resource_done_pkt *pkt = packet; in hfi_sys_rel_resource_done()
285 void *packet) in hfi_sys_ping_done() argument
[all …]

12345678910>>...24