/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | driver.c | 208 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.1.9/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 78 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument 94 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt() 95 packet->count = count; in intel_pt_get_long_tnt() 96 packet->payload = payload << 1; in intel_pt_get_long_tnt() 101 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument 108 packet->type = INTEL_PT_PIP; in intel_pt_get_pip() 110 packet->payload = payload; in intel_pt_get_pip() 115 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument 117 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop() 122 struct intel_pt_pkt *packet) in intel_pt_get_cbr() argument [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_packet_manager_vi.c | 45 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 …]
|
D | kfd_packet_manager_v9.c | 35 struct pm4_mes_map_process *packet; in pm_map_process_v9() local 38 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9() 40 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9() 42 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9() 43 packet->bitfields2.process_quantum = 10; in pm_map_process_v9() 44 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9() 45 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9() 46 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9() 47 packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0; in pm_map_process_v9() 48 packet->bitfields14.num_oac = qpd->num_oac; in pm_map_process_v9() [all …]
|
/linux-6.1.9/net/sctp/ |
D | output.c | 45 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.1.9/tools/perf/util/arm-spe-decoder/ |
D | arm-spe-pkt-decoder.c | 62 struct arm_spe_pkt *packet) in arm_spe_get_payload() argument 72 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload() 73 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload() 74 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload() 75 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload() 82 static int arm_spe_get_pad(struct arm_spe_pkt *packet) in arm_spe_get_pad() argument 84 packet->type = ARM_SPE_PAD; in arm_spe_get_pad() 89 struct arm_spe_pkt *packet) in arm_spe_get_alignment() argument 96 packet->type = ARM_SPE_PAD; in arm_spe_get_alignment() 100 static int arm_spe_get_end(struct arm_spe_pkt *packet) in arm_spe_get_end() argument [all …]
|
/linux-6.1.9/drivers/net/wireless/ath/ath6kl/ |
D | htc_mbox.c | 359 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 …]
|
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 …]
|
/linux-6.1.9/drivers/platform/surface/aggregator/ |
D | ssh_packet_layer.c | 329 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.1.9/tools/perf/arch/x86/tests/ |
D | intel-pt-pkt-decoder-test.c | 24 struct intel_pt_pkt packet; member 184 static int dump_packet(struct intel_pt_pkt *packet, u8 *bytes, int len) in dump_packet() argument 194 ret = intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in dump_packet() 208 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed() 211 static int fail(struct test_data *d, struct intel_pt_pkt *packet, int len, in fail() argument 220 if (packet->type != d->packet.type) in fail() 222 d->packet.type, packet->type); in fail() 224 if (packet->count != d->packet.count) in fail() 226 d->packet.count, packet->count); in fail() 228 if (packet->payload != d->packet.payload) in fail() [all …]
|
/linux-6.1.9/drivers/media/test-drivers/vivid/ |
D | vivid-vbi-gen.c | 176 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.1.9/drivers/tty/hvc/ |
D | hvsi.c | 145 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.1.9/drivers/input/mouse/ |
D | elantech.c | 267 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 …]
|
D | lifebook.c | 137 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 …]
|
D | touchkit_ps2.c | 36 #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()
|
D | focaltech.c | 150 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 …]
|
D | logips2pp.c | 44 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 …]
|
D | sentelic.c | 27 #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-6.1.9/drivers/usb/misc/sisusbvga/ |
D | sisusb.c | 527 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-6.1.9/drivers/infiniband/core/ |
D | user_mad.c | 180 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-6.1.9/drivers/tty/ipwireless/ |
D | hardware.c | 459 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.1.9/drivers/net/wireless/broadcom/b43legacy/ |
D | pio.c | 43 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.1.9/drivers/input/joystick/ |
D | fsia6b.c | 57 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 …]
|
D | xpad.c | 1197 struct xpad_output_packet *pkt, *packet = NULL; in xpad_prepare_next_out_packet() local 1213 packet = pkt; in xpad_prepare_next_out_packet() 1218 if (packet) { in xpad_prepare_next_out_packet() 1219 memcpy(xpad->odata, packet->data, packet->len); in xpad_prepare_next_out_packet() 1220 xpad->irq_out->transfer_buffer_length = packet->len; in xpad_prepare_next_out_packet() 1221 packet->pending = false; in xpad_prepare_next_out_packet() 1356 struct xpad_output_packet *packet = in xpad_inquiry_pad_presence() local 1363 packet->data[0] = 0x08; in xpad_inquiry_pad_presence() 1364 packet->data[1] = 0x00; in xpad_inquiry_pad_presence() 1365 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence() [all …]
|
/linux-6.1.9/drivers/nvmem/ |
D | microchip-otpc.c | 60 struct mchp_otpc_packet *packet; in mchp_otpc_id_to_packet() local 65 list_for_each_entry(packet, &otpc->packets, list) { in mchp_otpc_id_to_packet() 66 if (packet->id == id) in mchp_otpc_id_to_packet() 67 return packet; in mchp_otpc_id_to_packet() 150 struct mchp_otpc_packet *packet; in mchp_otpc_read() local 162 packet = mchp_otpc_id_to_packet(otpc, off / 4); in mchp_otpc_read() 163 if (!packet) in mchp_otpc_read() 165 offset = packet->offset; in mchp_otpc_read() 195 struct mchp_otpc_packet *packet; in mchp_otpc_init_packets_list() local 212 packet = devm_kzalloc(otpc->dev, sizeof(*packet), GFP_KERNEL); in mchp_otpc_init_packets_list() [all …]
|