/drivers/infiniband/hw/hfi1/ |
D | driver.c | 255 struct hfi1_packet *packet) in rcv_hdrerr() argument 257 struct ib_header *rhdr = packet->hdr; in rcv_hdrerr() 258 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr() 265 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr() 269 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr() 272 if (packet->etype == RHF_RCV_TYPE_BYPASS) { in rcv_hdrerr() 279 packet->ohdr = &rhdr->u.oth; in rcv_hdrerr() 281 packet->ohdr = &rhdr->u.l.oth; in rcv_hdrerr() 282 packet->grh = &rhdr->u.l.grh; in rcv_hdrerr() 288 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr() [all …]
|
D | verbs.c | 316 static inline opcode_handler qp_ok(struct hfi1_packet *packet) in qp_ok() argument 318 if (!(ib_rvt_state_ops[packet->qp->state] & RVT_PROCESS_RECV_OK)) in qp_ok() 320 if (((packet->opcode & RVT_OPCODE_QP_MASK) == in qp_ok() 321 packet->qp->allowed_ops) || in qp_ok() 322 (packet->opcode == IB_OPCODE_CNP)) in qp_ok() 323 return opcode_handler_tbl[packet->opcode]; in qp_ok() 359 static opcode_handler tid_qp_ok(int opcode, struct hfi1_packet *packet) in tid_qp_ok() argument 361 if (packet->qp->ibqp.qp_type != IB_QPT_RC || in tid_qp_ok() 362 !(ib_rvt_state_ops[packet->qp->state] & RVT_PROCESS_RECV_OK)) in tid_qp_ok() 369 void hfi1_kdeth_eager_rcv(struct hfi1_packet *packet) in hfi1_kdeth_eager_rcv() argument [all …]
|
D | trace_rx.h | 66 TP_PROTO(struct hfi1_packet *packet), 67 TP_ARGS(packet), 68 TP_STRUCT__entry(DD_DEV_ENTRY(packet->rcd->dd) 77 TP_fast_assign(DD_DEV_ASSIGN(packet->rcd->dd); 78 __entry->eflags = rhf_err_flags(packet->rhf); 79 __entry->ctxt = packet->rcd->ctxt; 80 __entry->etype = packet->etype; 81 __entry->hlen = packet->hlen; 82 __entry->tlen = packet->tlen; 83 __entry->updegr = packet->updegr; [all …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_packet_manager_vi.c | 44 struct pm4_mes_map_process *packet; in pm_map_process_vi() local 46 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_vi() 50 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_vi() 52 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_vi() 53 packet->bitfields2.process_quantum = 10; in pm_map_process_vi() 54 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_vi() 55 packet->bitfields3.page_table_base = qpd->page_table_base; in pm_map_process_vi() 56 packet->bitfields10.gds_size = qpd->gds_size; in pm_map_process_vi() 57 packet->bitfields10.num_gws = qpd->num_gws; in pm_map_process_vi() 58 packet->bitfields10.num_oac = qpd->num_oac; in pm_map_process_vi() [all …]
|
D | kfd_packet_manager_v9.c | 33 struct pm4_mes_map_process *packet; in pm_map_process_v9() local 36 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9() 39 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9() 41 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9() 42 packet->bitfields2.process_quantum = 10; in pm_map_process_v9() 43 packet->bitfields2.pasid = qpd->pqm->process->pasid; in pm_map_process_v9() 44 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9() 45 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9() 46 packet->bitfields14.num_gws = (qpd->mapped_gws_queue) ? qpd->num_gws : 0; in pm_map_process_v9() 47 packet->bitfields14.num_oac = qpd->num_oac; in pm_map_process_v9() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 | alps.c | 251 unsigned char *packet = psmouse->packet; in alps_process_packet_v1_v2() local 258 left = packet[2] & 0x10; in alps_process_packet_v1_v2() 259 right = packet[2] & 0x08; in alps_process_packet_v1_v2() 261 x = packet[1] | ((packet[0] & 0x07) << 7); in alps_process_packet_v1_v2() 262 y = packet[4] | ((packet[3] & 0x07) << 7); in alps_process_packet_v1_v2() 263 z = packet[5]; in alps_process_packet_v1_v2() 265 left = packet[3] & 1; in alps_process_packet_v1_v2() 266 right = packet[3] & 2; in alps_process_packet_v1_v2() 267 middle = packet[3] & 4; in alps_process_packet_v1_v2() 268 x = packet[1] | ((packet[2] & 0x78) << (7 - 3)); in alps_process_packet_v1_v2() [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 …]
|
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 …]
|
/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 …]
|
/drivers/infiniband/core/ |
D | user_mad.c | 185 struct ib_umad_packet *packet) in queue_packet() argument 191 for (packet->mad.hdr.id = 0; in queue_packet() 192 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet() 193 packet->mad.hdr.id++) in queue_packet() 194 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 195 list_add_tail(&packet->list, &file->recv_list); in queue_packet() 207 struct ib_umad_packet *packet) in dequeue_send() argument 210 list_del(&packet->list); in dequeue_send() 218 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local 220 dequeue_send(file, packet); in send_handler() [all …]
|
/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 …]
|
/drivers/input/joystick/ |
D | xpad.c | 1033 struct xpad_output_packet *pkt, *packet = NULL; in xpad_prepare_next_out_packet() local 1049 packet = pkt; in xpad_prepare_next_out_packet() 1054 if (packet) { in xpad_prepare_next_out_packet() 1055 memcpy(xpad->odata, packet->data, packet->len); in xpad_prepare_next_out_packet() 1056 xpad->irq_out->transfer_buffer_length = packet->len; in xpad_prepare_next_out_packet() 1057 packet->pending = false; in xpad_prepare_next_out_packet() 1192 struct xpad_output_packet *packet = in xpad_inquiry_pad_presence() local 1199 packet->data[0] = 0x08; in xpad_inquiry_pad_presence() 1200 packet->data[1] = 0x00; in xpad_inquiry_pad_presence() 1201 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence() [all …]
|
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 …]
|
/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 …]
|
/drivers/media/platform/qcom/venus/ |
D | hfi_msgs.c | 181 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 …]
|
/drivers/media/rc/ |
D | iguanair.c | 39 struct send_packet *packet; member 64 struct packet { struct 71 struct packet header; argument 185 if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP) in iguanair_irq_out() 215 ir->packet->header.start = 0; in iguanair_get_features() 216 ir->packet->header.direction = DIR_OUT; in iguanair_get_features() 217 ir->packet->header.cmd = CMD_NOP; in iguanair_get_features() 218 iguanair_send(ir, sizeof(ir->packet->header)); in iguanair_get_features() 220 ir->packet->header.cmd = CMD_GET_VERSION; in iguanair_get_features() 221 rc = iguanair_send(ir, sizeof(ir->packet->header)); in iguanair_get_features() [all …]
|
/drivers/input/touchscreen/ |
D | ads7846.c | 118 struct ads7846_packet *packet; member 715 struct ads7846_packet *packet = ts->packet; in ads7846_set_cmd_val() local 719 packet->y = val; in ads7846_set_cmd_val() 722 packet->x = val; in ads7846_set_cmd_val() 725 packet->z1 = val; in ads7846_set_cmd_val() 728 packet->z2 = val; in ads7846_set_cmd_val() 776 struct ads7846_packet *packet = ts->packet; in ads7846_filter() local 781 packet->ignore = false; in ads7846_filter() 782 for (cmd_idx = packet->last_cmd_idx; cmd_idx < packet->cmds - 1; cmd_idx++) { in ads7846_filter() 783 struct ads7846_buf_layout *l = &packet->l[cmd_idx]; in ads7846_filter() [all …]
|