/linux/drivers/infiniband/hw/hfi1/ |
H A D | driver.c | 694 packet->rhqoff += packet->rsize; in skip_rcv_packet() 716 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet_napi() 728 packet->rcd->rhf_rcv_function_map[packet->etype](packet); in process_rcv_packet_napi() 732 packet->rhqoff += packet->rsize; in process_rcv_packet_napi() 753 packet->ebuf = get_egrbuf(packet->rcd, packet->rhf, in process_rcv_packet() 774 packet->rcd->rhf_rcv_function_map[packet->etype](packet); in process_rcv_packet() 800 update_usrhead(packet->rcd, packet->rhqoff, packet->updegr, in process_rcv_update() 1441 packet->hlen = (u8 *)packet->rhf_addr - (u8 *)packet->hdr; in hfi1_setup_ib_header() 1544 packet->ohdr = packet->ebuf; in hfi1_setup_bypass_packet() 1557 packet->grh = packet->ebuf; in hfi1_setup_bypass_packet() [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-pkt-decoder.c | 91 packet->count = count; in intel_pt_get_long_tnt() 134 packet->count = 5; in intel_pt_get_vmcs() 218 switch (packet->count) { in intel_pt_get_ptwrite() 415 packet->count = count; in intel_pt_get_short_tnt() 484 packet->type = type; in intel_pt_get_ip() 501 packet->payload = 16; in intel_pt_get_mode() 590 packet); in intel_pt_do_get_packet() 593 packet); in intel_pt_do_get_packet() 654 if (packet->count) in intel_pt_upd_pkt_ctx() 722 if (!(packet->count)) in intel_pt_pkt_desc() [all …]
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_packet_manager_vi.c | 106 packet->bitfields4.valid = 1; in pm_runlist_vi() 185 packet->mqd_addr_lo = in pm_map_queues_vi() 188 packet->mqd_addr_hi = in pm_map_queues_vi() 191 packet->wptr_addr_lo = in pm_map_queues_vi() 194 packet->wptr_addr_hi = in pm_map_queues_vi() 216 packet->bitfields2.action = in pm_unmap_queues_vi() 219 packet->bitfields2.action = in pm_unmap_queues_vi() 260 packet->bitfields2.command = in pm_query_status_vi() 279 sizeof(*packet)); in pm_release_mem_vi() 286 packet->bitfields2.atc = 0; in pm_release_mem_vi() [all …]
|
H A D | kfd_packet_manager_v9.c | 143 struct pm4_mes_runlist *packet; in pm_runlist_v9() local 170 packet->bitfields4.valid = 1; in pm_runlist_v9() 224 packet->bitfields2.queue_sel = in pm_map_queues_v9() 275 packet->mqd_addr_lo = in pm_map_queues_v9() 278 packet->mqd_addr_hi = in pm_map_queues_v9() 281 packet->wptr_addr_lo = in pm_map_queues_v9() 284 packet->wptr_addr_hi = in pm_map_queues_v9() 320 packet->data = reg_data; in pm_set_grace_period_v9() 346 packet->bitfields2.action = in pm_unmap_queues_v9() 349 packet->bitfields2.action = in pm_unmap_queues_v9() [all …]
|
/linux/net/sctp/ |
H A D | output.c | 60 packet->size = packet->overhead; 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() 67 packet->auth = NULL; in sctp_packet_reset() 82 packet->vtag = vtag; in sctp_packet_config() 96 packet->size = packet->overhead; in sctp_packet_config() 157 packet->vtag = 0; in sctp_packet_init() 187 packet, packet->size, chunk, chunk->skb ? chunk->skb->len : -1); in sctp_packet_transmit_chunk() 598 head = alloc_skb((gso ? packet->overhead : packet->size) + in sctp_packet_transmit() [all …]
|
/linux/tools/perf/util/arm-spe-decoder/ |
H A D | arm-spe-pkt-decoder.c | 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() 102 packet->type = ARM_SPE_END; in arm_spe_get_end() 107 struct arm_spe_pkt *packet) in arm_spe_get_timestamp() argument 116 packet->type = ARM_SPE_EVENTS; in arm_spe_get_events() 138 packet->type = ARM_SPE_CONTEXT; in arm_spe_get_context() 338 switch (packet->index) { in arm_spe_pkt_desc_op_type() 479 switch (packet->index) { in arm_spe_pkt_desc_counter() 499 int idx = packet->index; in arm_spe_pkt_desc() [all …]
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | htc_mbox.c | 418 packet->status, packet->endpoint, packet->act_len, in htc_tx_comp_update() 483 packet = scat_req->scat_list[0].packet; in htc_async_tx_scat_complete() 840 packet->buf, packet->act_len); in ath6kl_htc_tx_bundle() 930 packet->completion(packet->context, packet); in ath6kl_htc_tx_from_queue() 1128 packet->endpoint, packet->buf, packet->act_len); in ath6kl_htc_mbox_tx() 1179 packet, packet->act_len, in ath6kl_htc_mbox_flush_txep() 1317 packet, packet->info.rx.exp_hdr, in ath6kl_htc_rx_packet() 1839 packet->act_len = min(packet->act_len, packet->buf_len); in ath6kl_htc_rx_process_hdr() 2294 packet->buf, packet->act_len); in htc_wait_for_ctrl_msg() 2397 packet, packet->buf_len, in ath6kl_htc_mbox_flush_rx_buf() [all …]
|
H A D | htc_pipe.c | 221 skb = packet->skb; in htc_issue_packets() 503 skb = packet->skb; in destroy_htc_txctrl_packet() 505 kfree(packet); in destroy_htc_txctrl_packet() 520 kfree(packet); in build_htc_txctrl_packet() 525 return packet; in build_htc_txctrl_packet() 828 return packet; in alloc_htc_packet_container() 1116 packet, packet->buf_len, in htc_flush_rx_queue() 1296 packet = NULL; in ath6kl_htc_pipe_conn_service() 1468 kfree(packet); in ath6kl_htc_pipe_cleanup() 1545 __func__, packet->endpoint, packet->buf, in ath6kl_htc_pipe_tx() [all …]
|
/linux/drivers/platform/surface/aggregator/ |
H A D | ssh_packet_layer.c | 336 packet); in __ssh_ptl_should_drop_ack_packet() 348 packet); in __ssh_ptl_should_drop_nak_packet() 361 packet); in __ssh_ptl_should_drop_dsq_packet() 369 if (!packet->data.ptr || !packet->data.len) in ssh_ptl_should_drop_packet() 408 if (!packet->data.ptr || !packet->data.len) in ssh_ptl_tx_inject_invalid_data() 421 packet); in ssh_ptl_tx_inject_invalid_data() 428 memset(packet->data.ptr, 0xb3, packet->data.len); in ssh_ptl_tx_inject_invalid_data() 531 if (packet) in ssh_packet_get() 549 if (packet) in ssh_packet_put() 947 packet = p; in ssh_ptl_tx_pop() [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-vbi-gen.c | 203 packet[13] = calc_parity(0); in vivid_vbi_gen_set_time_of_day() 222 memset(packet + 2, 0x20, 40); in vivid_vbi_gen_teletext() 227 packet[4] = hamming[0]; in vivid_vbi_gen_teletext() 228 packet[5] = hamming[0]; in vivid_vbi_gen_teletext() 229 packet[6] = hamming[0]; in vivid_vbi_gen_teletext() 230 packet[7] = hamming[0]; in vivid_vbi_gen_teletext() 231 packet[8] = hamming[0]; in vivid_vbi_gen_teletext() 232 packet[9] = hamming[1]; in vivid_vbi_gen_teletext() 235 packet += offset; in vivid_vbi_gen_teletext() 237 packet[7] = '0' + frame / 10; in vivid_vbi_gen_teletext() [all …]
|
/linux/drivers/usb/misc/sisusbvga/ |
H A D | sisusbvga.c | 520 packet->data = 0; in sisusb_send_packet() 556 packet->data = 0; in sisusb_send_bridge_packet() 847 &packet, 0); in sisusb_write_mem_bulk() 852 &packet, 0); in sisusb_write_mem_bulk() 857 &packet, 0); in sisusb_write_mem_bulk() 888 &packet, 0); in sisusb_write_mem_bulk() 893 &packet, 0); in sisusb_write_mem_bulk() 959 CLEARPACKET(&packet); in sisusb_read_memio_byte() 1280 packet.data = data; in sisusb_write_pci_config() 1293 *data = packet.data; in sisusb_read_pci_config() [all …]
|
/linux/drivers/tty/hvc/ |
H A D | hvsi.c | 161 if (hp->inbuf_end < (packet + len_packet(packet))) in got_packet() 181 #define dbg_dump_packet(packet) dump_packet(packet) argument 293 dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); in hvsi_version_respond() 409 while ((packet < hp->inbuf_end) && got_packet(hp, packet)) { in hvsi_load_chunk() 415 while ((packet < hp->inbuf_end) && (!is_header(packet))) in hvsi_load_chunk() 416 packet++; in hvsi_load_chunk() 446 packet += len_packet(packet); in hvsi_load_chunk() 551 dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); in hvsi_query() 598 dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); in hvsi_set_mctrl() 694 dbg_dump_hex((uint8_t*)&packet, packet.hdr.len); in hvsi_close_protocol() [all …]
|
/linux/drivers/input/mouse/ |
H A D | elantech.c | 324 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v1() local 361 ((packet[1] & 0x0c) << 6) | packet[2]); in elantech_report_absolute_v1() 412 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v2() local 509 unsigned char *packet = psmouse->packet; in elantech_report_trackpoint() local 527 packet[1] >> 7 == packet[4] >> 7 || in elantech_report_trackpoint() 528 packet[2] >> 7 == packet[5] >> 7) { in elantech_report_trackpoint() 563 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v3() local 641 unsigned char *packet = psmouse->packet; in elantech_input_sync_v4() local 656 unsigned char *packet = psmouse->packet; in process_packet_status_v4() local 676 unsigned char *packet = psmouse->packet; in process_packet_head_v4() local [all …]
|
H A D | lifebook.c | 137 u8 *packet = psmouse->packet; in lifebook_process_byte() local 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() 180 (packet[1] | ((packet[0] & 0x30) << 4))); in lifebook_process_byte() [all …]
|
H A 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()
|
H A D | focaltech.c | 150 unsigned char *packet) in focaltech_process_touch_packet() argument 154 unsigned char fingers = packet[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() 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 202 state->pressed = packet[0] >> 7; in focaltech_process_rel_packet() 228 unsigned char *packet = psmouse->packet; in focaltech_process_packet() local [all …]
|
/linux/drivers/infiniband/core/ |
H A D | user_mad.c | 237 kfree(packet); in send_handler() 250 packet = kzalloc(sizeof *packet, GFP_KERNEL); in recv_handler() 251 if (!packet) in recv_handler() 299 kfree(packet); in recv_handler() 373 if (copy_to_user(buf, packet->mad.data, packet->length)) in copy_send_mad() 524 if (!packet) in ib_umad_write() 603 packet->msg->timeout_ms = packet->mad.hdr.timeout_ms; in ib_umad_write() 604 packet->msg->retries = packet->mad.hdr.retries; in ib_umad_write() 605 packet->msg->context[0] = packet; in ib_umad_write() 608 memcpy(packet->msg->mad, packet->mad.data, IB_MGMT_MAD_HDR); in ib_umad_write() [all …]
|
/linux/drivers/tty/ipwireless/ |
H A D | hardware.c | 462 unsigned short data_left = packet->length - packet->offset; in do_send_packet() 497 if (packet->offset == packet->length) in do_send_packet() 502 if (packet->offset < packet->length) { in do_send_packet() 515 packet->packet_callback(packet->callback_data, in do_send_packet() 560 if (!packet) { in pool_allocate() 582 if (!packet) in pool_allocate() 688 if (packet) { in queue_received_packet() 1259 if (!packet) in alloc_data_packet() 1282 if (!packet) in alloc_ctrl_packet() 1303 if (!packet) in ipwireless_send_packet() [all …]
|
/linux/tools/perf/arch/x86/tests/ |
H A D | intel-pt-test.c | 29 struct intel_pt_pkt packet; member 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() 263 struct intel_pt_pkt packet; in test_one() local 267 memset(&packet, 0xff, sizeof(packet)); in test_one() 293 if (ret != d->len || packet.type != d->packet.type || in test_one() 294 packet.count != d->packet.count || in test_one() [all …]
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A 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 207 if (packet->skb) { in free_txpacket() 229 free_txpacket(packet, 1); in pio_tx_packet() 249 free_txpacket(packet, 1); in pio_tx_packet() 308 packet->queue = queue; in setup_txqueues() 463 packet->skb = skb; in b43legacy_pio_tx() 485 if (!packet->skb) in b43legacy_pio_handle_txstatus() 525 packet->skb = NULL; in b43legacy_pio_handle_txstatus() [all …]
|
/linux/drivers/input/joystick/ |
H A 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() 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() 88 fsia6b->packet.offset = 0; in fsia6b_serio_irq() 89 fsia6b->packet.state = SYNC; in fsia6b_serio_irq() 139 fsia6b->packet.ibuf = 0; in fsia6b_serio_connect() 140 fsia6b->packet.offset = 0; in fsia6b_serio_connect() [all …]
|
H A D | xpad.c | 1248 packet = pkt; in xpad_prepare_next_out_packet() 1253 if (packet) { in xpad_prepare_next_out_packet() 1254 memcpy(xpad->odata, packet->data, packet->len); in xpad_prepare_next_out_packet() 1410 packet->len = 12; in xpad_inquiry_pad_presence() 1470 memcpy(packet->data, mode_report_ack, packet->len); in xpadone_ack_mode_report() 1507 packet->len = 6; in xpad_play_effect() 1520 packet->len = 8; in xpad_play_effect() 1537 packet->len = 12; in xpad_play_effect() 1555 packet->len = 13; in xpad_play_effect() 1635 packet->len = 3; in xpad_send_led_command() [all …]
|
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | icmps-accept.c | 192 } packet = {}; in icmp_interfere4() local 202 packet.icmph.type = type; in icmp_interfere4() 209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4() 216 packet_len = sizeof(packet) - sizeof(packet.iph); in icmp_interfere4() 217 packet.icmph.checksum = checksum4_fold((void *)&packet.icmph, in icmp_interfere4() 220 bytes = sendto(sk, &packet, sizeof(packet), 0, in icmp_interfere4() 307 } packet = {}; in icmp6_interfere() local 315 packet_len = sizeof(packet) - sizeof(packet.iph); in icmp6_interfere() 321 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp6_interfere() 328 packet_len = sizeof(packet) - sizeof(packet.iph); in icmp6_interfere() [all …]
|
H A D | icmps-discard.c | 192 } packet = {}; in icmp_interfere4() local 202 packet.icmph.type = type; in icmp_interfere4() 209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4() 216 packet_len = sizeof(packet) - sizeof(packet.iph); in icmp_interfere4() 217 packet.icmph.checksum = checksum4_fold((void *)&packet.icmph, in icmp_interfere4() 220 bytes = sendto(sk, &packet, sizeof(packet), 0, in icmp_interfere4() 307 } packet = {}; in icmp6_interfere() local 315 packet_len = sizeof(packet) - sizeof(packet.iph); in icmp6_interfere() 321 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp6_interfere() 328 packet_len = sizeof(packet) - sizeof(packet.iph); in icmp6_interfere() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-ljca.c | 85 packet->item[0].index = gpio_id; in ljca_gpio_config() 87 packet->num = 1; in ljca_gpio_config() 90 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_config() 105 packet->num = 1; in ljca_gpio_read() 108 struct_size(packet, item, packet->num), in ljca_gpio_read() 129 packet->num = 1; in ljca_gpio_write() 134 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_write() 252 packet->num = 1; in ljca_enable_irq() 254 packet->item[0].value = 0; in ljca_enable_irq() 258 (u8 *)packet, struct_size(packet, item, packet->num), in ljca_enable_irq() [all …]
|