Home
last modified time | relevance | path

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

12345678910>>...29

/linux-6.12.1/drivers/infiniband/hw/hfi1/
Ddriver.c208 struct hfi1_packet *packet) in rcv_hdrerr() argument
210 struct ib_header *rhdr = packet->hdr; in rcv_hdrerr()
211 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr()
218 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr()
222 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr()
225 if (packet->etype == RHF_RCV_TYPE_BYPASS) { in rcv_hdrerr()
232 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr()
234 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr()
235 packet->grh = &rhdr->u.l.grh; in rcv_hdrerr()
241 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr()
[all …]
/linux-6.12.1/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c74 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument
90 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt()
91 packet->count = count; in intel_pt_get_long_tnt()
92 packet->payload = payload << 1; in intel_pt_get_long_tnt()
97 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument
104 packet->type = INTEL_PT_PIP; in intel_pt_get_pip()
106 packet->payload = payload; in intel_pt_get_pip()
111 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument
113 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop()
118 struct intel_pt_pkt *packet) in intel_pt_get_cbr() argument
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/
Dkfd_packet_manager_vi.c45 struct pm4_mes_map_process *packet; in pm_map_process_vi() local
47 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_vi()
51 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_vi()
53 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_vi()
54 packet->bitfields2.process_quantum = 10; in pm_map_process_vi()
55 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_vi()
56 packet->bitfields3.page_table_base = qpd->page_table_base; in pm_map_process_vi()
57 packet->bitfields10.gds_size = qpd->gds_size; in pm_map_process_vi()
58 packet->bitfields10.num_gws = qpd->num_gws; in pm_map_process_vi()
59 packet->bitfields10.num_oac = qpd->num_oac; in pm_map_process_vi()
[all …]
Dkfd_packet_manager_v9.c35 struct pm4_mes_map_process *packet; in pm_map_process_v9() local
42 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9()
44 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9()
47 packet->bitfields2.exec_cleaner_shader = 1; in pm_map_process_v9()
48 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9()
49 packet->bitfields2.process_quantum = 10; in pm_map_process_v9()
50 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9()
51 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9()
52 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9()
53 packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0; in pm_map_process_v9()
[all …]
/linux-6.12.1/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-6.12.1/tools/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c49 struct arm_spe_pkt *packet) in arm_spe_get_payload() argument
59 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload()
60 case 2: packet->payload = get_unaligned_le16(buf); break; in arm_spe_get_payload()
61 case 4: packet->payload = get_unaligned_le32(buf); break; in arm_spe_get_payload()
62 case 8: packet->payload = get_unaligned_le64(buf); break; in arm_spe_get_payload()
69 static int arm_spe_get_pad(struct arm_spe_pkt *packet) in arm_spe_get_pad() argument
71 packet->type = ARM_SPE_PAD; in arm_spe_get_pad()
76 struct arm_spe_pkt *packet) in arm_spe_get_alignment() argument
83 packet->type = ARM_SPE_PAD; in arm_spe_get_alignment()
87 static int arm_spe_get_end(struct arm_spe_pkt *packet) in arm_spe_get_end() argument
[all …]
/linux-6.12.1/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()
367 put_unaligned_le16(packet->act_len, &hdr->payld_len); in ath6kl_htc_tx_prep_pkt()
369 hdr->eid = packet->endpoint; in ath6kl_htc_tx_prep_pkt()
385 struct htc_packet *packet = NULL; in htc_get_control_buf() local
397 packet = list_first_entry(buf_list, struct htc_packet, list); in htc_get_control_buf()
398 list_del(&packet->list); in htc_get_control_buf()
402 packet->buf = packet->buf_start + HTC_HDR_LENGTH; in htc_get_control_buf()
404 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-6.12.1/drivers/platform/surface/aggregator/
Dssh_packet_layer.c329 static bool __ssh_ptl_should_drop_ack_packet(struct ssh_packet *packet) in __ssh_ptl_should_drop_ack_packet() argument
334 trace_ssam_ei_tx_drop_ack_packet(packet); in __ssh_ptl_should_drop_ack_packet()
335 ptl_info(packet->ptl, "packet error injection: dropping ACK packet %p\n", in __ssh_ptl_should_drop_ack_packet()
336 packet); in __ssh_ptl_should_drop_ack_packet()
341 static bool __ssh_ptl_should_drop_nak_packet(struct ssh_packet *packet) in __ssh_ptl_should_drop_nak_packet() argument
346 trace_ssam_ei_tx_drop_nak_packet(packet); in __ssh_ptl_should_drop_nak_packet()
347 ptl_info(packet->ptl, "packet error injection: dropping NAK packet %p\n", in __ssh_ptl_should_drop_nak_packet()
348 packet); in __ssh_ptl_should_drop_nak_packet()
353 static bool __ssh_ptl_should_drop_dsq_packet(struct ssh_packet *packet) in __ssh_ptl_should_drop_dsq_packet() argument
358 trace_ssam_ei_tx_drop_dsq_packet(packet); in __ssh_ptl_should_drop_dsq_packet()
[all …]
/linux-6.12.1/drivers/media/test-drivers/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-6.12.1/drivers/usb/misc/sisusbvga/
Dsisusbvga.c513 struct sisusb_packet *packet) in sisusb_send_packet() argument
520 packet->data = 0; in sisusb_send_packet()
528 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_packet()
532 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet()
542 packet->data = le32_to_cpu(tmp); in sisusb_send_packet()
549 struct sisusb_packet *packet, unsigned int tflags) in sisusb_send_bridge_packet() argument
556 packet->data = 0; in sisusb_send_bridge_packet()
564 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_bridge_packet()
568 (char *)packet, NULL, 0, &bytes_transferred, tflags, 0); in sisusb_send_bridge_packet()
578 packet->data = le32_to_cpu(tmp); in sisusb_send_bridge_packet()
[all …]
/linux-6.12.1/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-6.12.1/drivers/input/mouse/
Delantech.c267 psmouse->pktsize, psmouse->packet); in elantech_packet_dump()
324 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v1() local
332 fingers = ((packet[1] & 0x80) >> 7) + in elantech_report_absolute_v1()
333 ((packet[1] & 0x30) >> 4); in elantech_report_absolute_v1()
339 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v1()
361 ((packet[1] & 0x0c) << 6) | packet[2]); in elantech_report_absolute_v1()
363 etd->y_max - (((packet[1] & 0x03) << 8) | packet[3])); in elantech_report_absolute_v1()
370 psmouse_report_standard_buttons(dev, packet[0]); in elantech_report_absolute_v1()
375 input_report_key(dev, BTN_FORWARD, packet[0] & 0x40); in elantech_report_absolute_v1()
377 input_report_key(dev, BTN_BACK, packet[0] & 0x80); in elantech_report_absolute_v1()
[all …]
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 …]
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()
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 …]
/linux-6.12.1/drivers/infiniband/core/
Duser_mad.c187 struct ib_umad_packet *packet, bool is_recv_mad) in queue_packet() argument
197 for (packet->mad.hdr.id = 0; in queue_packet()
198 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet()
199 packet->mad.hdr.id++) in queue_packet()
200 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
201 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
214 struct ib_umad_packet *packet) in dequeue_send() argument
217 list_del(&packet->list); in dequeue_send()
225 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local
227 dequeue_send(file, packet); in send_handler()
[all …]
/linux-6.12.1/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-6.12.1/tools/perf/arch/x86/tests/
Dintel-pt-test.c29 struct intel_pt_pkt packet; member
189 static int dump_packet(const struct intel_pt_pkt *packet, const u8 *bytes, int len) in dump_packet() argument
199 ret = intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in dump_packet()
213 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed()
216 static int fail(const struct test_data *d, struct intel_pt_pkt *packet, int len, in fail() argument
225 if (packet->type != d->packet.type) in fail()
227 d->packet.type, packet->type); in fail()
229 if (packet->count != d->packet.count) in fail()
231 d->packet.count, packet->count); in fail()
233 if (packet->payload != d->packet.payload) in fail()
[all …]
/linux-6.12.1/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-6.12.1/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.c1236 struct xpad_output_packet *pkt, *packet = NULL; in xpad_prepare_next_out_packet() local
1252 packet = pkt; in xpad_prepare_next_out_packet()
1257 if (packet) { in xpad_prepare_next_out_packet()
1258 memcpy(xpad->odata, packet->data, packet->len); in xpad_prepare_next_out_packet()
1259 xpad->irq_out->transfer_buffer_length = packet->len; in xpad_prepare_next_out_packet()
1260 packet->pending = false; in xpad_prepare_next_out_packet()
1395 struct xpad_output_packet *packet = in xpad_inquiry_pad_presence() local
1402 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1403 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1404 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
[all …]
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/
Dicmps-accept.c192 } packet = {}; in icmp_interfere4() local
199 packet_len = sizeof(packet); in icmp_interfere4()
200 set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst); in icmp_interfere4()
202 packet.icmph.type = type; in icmp_interfere4()
203 packet.icmph.code = code; in icmp_interfere4()
205 randomize_buffer(&packet.icmph.un.frag.mtu, in icmp_interfere4()
206 sizeof(packet.icmph.un.frag.mtu)); in icmp_interfere4()
209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4()
210 set_ip4hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src); in icmp_interfere4()
212 packet.tcph.sport = dst->sin_port; in icmp_interfere4()
[all …]
Dicmps-discard.c192 } packet = {}; in icmp_interfere4() local
199 packet_len = sizeof(packet); in icmp_interfere4()
200 set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst); in icmp_interfere4()
202 packet.icmph.type = type; in icmp_interfere4()
203 packet.icmph.code = code; in icmp_interfere4()
205 randomize_buffer(&packet.icmph.un.frag.mtu, in icmp_interfere4()
206 sizeof(packet.icmph.un.frag.mtu)); in icmp_interfere4()
209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4()
210 set_ip4hdr(&packet.iphe, packet_len, IPPROTO_TCP, dst, src); in icmp_interfere4()
212 packet.tcph.sport = dst->sin_port; in icmp_interfere4()
[all …]
/linux-6.12.1/drivers/gpio/
Dgpio-ljca.c80 struct ljca_gpio_packet *packet = in ljca_gpio_config() local
85 packet->item[0].index = gpio_id; in ljca_gpio_config()
86 packet->item[0].value = config | ljca_gpio->connect_mode[gpio_id]; in ljca_gpio_config()
87 packet->num = 1; in ljca_gpio_config()
89 ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_CONFIG, (u8 *)packet, in ljca_gpio_config()
90 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_config()
100 struct ljca_gpio_packet *packet = in ljca_gpio_read() local
105 packet->num = 1; in ljca_gpio_read()
106 packet->item[0].index = gpio_id; in ljca_gpio_read()
107 ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_READ, (u8 *)packet, in ljca_gpio_read()
[all …]

12345678910>>...29